1/*! For license information please see 2.5b960e92.chunk.js.LICENSE.txt */ 2(this["webpackJsonpgowaterfall-miscellaneous"]=this["webpackJsonpgowaterfall-miscellaneous"]||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(104)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return h})),n.d(t,"__exportStar",(function(){return d})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return m})),n.d(t,"__spreadArrays",(function(){return g})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return _}
2)),n.d(t,"__makeTemplateObject",(function(){return E})),n.d(t,"__importStar",(function(){return S})),n.d(t,"__importDefault",(function(){return k})),n.d(t,"__classPrivateFieldGet",(function(){return T})),n.d(t,"__classPrivateFieldSet",(function(){return C}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(s){o=[6,s],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}function d(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function g(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function b(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
vendor: 5,470 bytes, line 2
2function S(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function C(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return L})),n.d(t,"b",(function(){return x})),n.d(t,"c",(function(){return F})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return _})),n.d(t,"f",(function(){return U})),n.d(t,"g",(function(){return G})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return V})),n.d(t,"j",(function(){return Y})),n.d(t,"k",(function(){return te})),n.d(t,"l",(function(){return ne})),n.d(t,"m",(function(){return ee})),n.d(t,"n",(function(){return D})),n.d(t,"o",(function(){return ie})),n.d(t,"p",(function(){return M})),n.d(t,"q",(function(){return q})),n.d(t,"r",(function(){return R})),n.d(t,"s",(function(){return re})),n.d(t,"t",(function(){return N})),n.d(t,"u",(function(){return J})),n.d(t,"v",(function(){return X})),n.d(t,"w",(function(){return z})),n.d(t,"x",(function(){return B})),n.d(t,"y",(function(){return l})),n.d(t,"z",(function(){return W})),n.d(t,"A",(function(){return j})),n.d(t,"B",(function(){return H})),n.d(t,"C",(function(){return K})),n.d(t,"D",(function(){return $})),n.d(t,"E",(function(){return b})),n.d(t,"F",(function(){return C})),n.d(t,"G",(function(){return s})),n.d(t,"H",(function(){return T})),n.d(t,"I",(function(){return w})),n.d(t,"J",(function(){return A})),n.d(t,"K",(function(){return p})),n.d(t,"L",(function(){return f})),n.d(t,"M",(function(){return g})),n.d(t,"N",(function(){return d})),n.d(t,"O",(function(){return k})),n.d(t,"P",(function(){return u})),n.d(t,"Q",(function(){return h})),n.d(t,"R",(function(){return O})),n.d(t,"S",(function(){return S})),n.d(t,"T",(function(){return E}));var r=n(10),i=n(3),o=n(6),a=n(54),s=function(e){return function(){return e}}(!0),u=function(){};var c=function(e){return e};"function"===typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;function l(e,t,n){if(!t(e))throw new Error(n)}var f=function(e,t){Object(i.a)(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))},h=function(e,t){var n;return(n=[]).concat.apply(n,t.map(e))};function d(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function p(e){var t=!1;return function(){t||(t=!0,e())}}var v=function(e){throw e},m=function(e){return{value:e,done:!0}};function g(e,t,n){void 0===t&&(t=v),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:m,isSagaIterator:!0};return"undefined"!==typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function y(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var b=function(e){return new Error("\n redux-saga: Error checking hooks detected an inconsistent state. This is likely a bug\n in redux-saga code and not yours. Thanks for reporting this in the project's github repo.\n Error: "+e+"\n")},w=function(e){return Array.apply(null,new Array(e))},_=function(e){return function(t){return e(Object.defineProperty(t,r.f,{value:!0}))}},E=function(e){return e===r.k},S=function(e){return e===r.j},k=function(e){return E(e)||S(e)};function T(e,t){var n=Object.keys(e),r=n.length;var i,a=0,s=Object(o.a)(e)?w(r):{},c={};return n.forEach((function(e){var n=function(n,o){i||(o||k(n)?(t.cancel(),t(n,o)):(s[e]=n,++a===r&&(i=!0,t(s))))};n.cancel=u,c[e]=n})),t.cancel=function(){i||(i=!0,n.forEach((function(e){return c[e].cancel()})))},c}function C(e){return{name:e.name||"anonymous",location:O(e)}}function O(e){return e[r.g]}function x(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var I={isEmpty:s,put:u,take:u};function P(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},u=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=u(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:u}}var A=function(){return I},N=function(e){return P(e,3)},j=function(e){return P(e,4)},R="TAKE",D="PUT",L="ALL",M="RACE",F="CALL",z="CPS",U="FORK",V="JOIN",B="CANCEL",q="SELECT",W="ACTION_CHANNEL",H="CANCELLED",K="FLUSH",G="GET_CONTEXT",$="SET_CONTEXT",Q=function(e,t){var n;return(n={})[r.c]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Y(e,t){return void 0===e&&(e="*"),Object(o.i)(e)?(Object(o.g)(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),Q(R,{pattern:e})):Object(o.f)(e)&&Object(o.g)(t)&&Object(o.i)(t)?Q(R,{channel:e,pattern:t}):Object(o.b)(e)?(Object(o.g)(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),Q(R,{channel:e})):void 0}function X(e,t){return Object(o.n)(t)&&(t=e,e=void 0),Q(D,{channel:e,action:t})}function J(e){var t=Q(M,e);return t.combinator=!0,t}function Z(e,t){var n,r=null;
2return Object(o.d)(e)?n=e:(Object(o.a)(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Object(o.k)(n)&&Object(o.d)(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function ee(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Q(F,Z(e,n))}function te(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Q(U,Z(e,n))}function ne(e){return void 0===e&&(e=r.h),Q(B,e)}function re(e,t){return Q(W,{pattern:e,buffer:t})}var ie=ee.bind(null,a.a)},function(e,t,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(149)()},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return g})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return f})),n.d(t,"f",(function(){return m})),n.d(t,"g",(function(){return o})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return h})),n.d(t,"j",(function(){return l})),n.d(t,"k",(function(){return s})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return i}));var r=n(10),i=function(e){return null===e||void 0===e},o=function(e){return null!==e&&void 0!==e},a=function(e){return"function"===typeof e},s=function(e){return"string"===typeof e},u=Array.isArray,c=function(e){return e&&!u(e)&&"object"===typeof e},l=function(e){return e&&a(e.then)},f=function(e){return e&&a(e.next)&&a(e.throw)},h=function e(t){return t&&(s(t)||v(t)||a(t)||u(t)&&t.every(e))},d=function(e){return e&&a(e.take)&&a(e.close)},p=function(e){return a(e)&&e.hasOwnProperty("toString")},v=function(e){return Boolean(e)&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},m=function(e){return d(e)&&e[r.e]},g=function(e){return e&&e[r.c]}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"createGlobalStyle",(function(){return nt})),n.d(t,"css",(function(){return be})),n.d(t,"isStyledComponent",(function(){return C})),n.d(t,"keyframes",(function(){return it})),n.d(t,"ServerStyleSheet",(function(){return Ge})),n.d(t,"StyleSheetConsumer",(function(){return Qe})),n.d(t,"StyleSheetContext",(function(){return $e})),n.d(t,"StyleSheetManager",(function(){return Ye})),n.d(t,"ThemeConsumer",(function(){return He})),n.d(t,"ThemeContext",(function(){return We})),n.d(t,"ThemeProvider",(function(){return Ke})),n.d(t,"withTheme",(function(){return ot})),n.d(t,"__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS",(function(){return at}));var r=n(66),i=n.n(r),o=n(90),a=n.n(o),s=n(0),u=n.n(s),c=n(55),l=n(33),f=n(67),h=n(100),d=n(101),p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},g=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},_=function(e){return"object"===("undefined"===typeof e?"undefined":v(e))&&e.constructor===Object},E=Object.freeze([]),S=Object.freeze({});function k(e){return"function"===typeof e}function T(e){return e.displayName||e.name||"Component"}function C(e){return e&&"string"===typeof e.styledComponentId}var O="undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_ATTR)||"data-styled",x="undefined"!==typeof window&&"HTMLElement"in window,I="boolean"===typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!==typeof e&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_DISABLE_SPEEDY||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_DISABLE_SPEEDY)||!1,P={};var A=function(e){function t(n){m(this,t);for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];var a=w(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+n+" for more information."+(i.length>0?" Additional arguments: "+i.join(", "):"")));return w(a)}return b(t,e),t}(Error),N=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,j=function(e){var t=""+(e||""),n=[];return t.replace(N,(function(e,t,r){return n.push({componentId:t,matchIndex:r}),e})),n.map((function(e,r){var i=e.componentId,o=e.matchIndex,a=n[r+1];return{componentId:i,cssFromDOM:a?t.slice(o,a.matchIndex):t.slice(o)}}))},R=/^\s*\/\/.*$/gm,D=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),L=new i.a({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),M=[],F=function(e){if(-2===e){var t=M;return M=[],t}},z=a()((function(e){M.push(e)})),U=void 0,V=void 0,B=void 0,q=function(e,t,n){return t>0&&-1!==n.slice(0,t).indexOf(V)&&n.slice(t-V.length,t)!==V?"."+U:e};L.use([function(e,t,n){2===e&&n.length&&n[0].lastIndexOf(V)>0&&(n[0]=n[0].replace(B,q))},z,F]),D.use([z,F]);var W=function(e){return D("",e)};function H(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",i=e.join("").replace(R,""),o=t&&n?n+" "+t+" { "+i+" }":i;return U=r,V=t,B=new RegExp("\\"+V+"\\b","g"),L(n||!t?"":t,o)}var K=function(){return n.nc},G=function(e,t,n){n&&((e[t]||(e[t]=Object.create(null)))[n]=!0)},$=function(e,t){e[t]=Object.create(null)},Q=function(e){return function(t,n){return void 0!==e[t]&&e[t][n]}},Y=function(e){var t="";for(var n in e)t+=Object.keys(e[n]).join(" ")+" ";return t.trim()},X=function(e){if(e.sheet)return e.sheet;for(var t=e.ownerDocument.styleSheets.length,n=0;n<t;n+=1){var r=e.ownerDocument.styleSheets[n];if(r.ownerNode===e)return r}throw new A(10)},J=function(e,t,n){if(!t)return!1;var r=e.cssRules.length;try{e.insertRule(t,n<=r?n:r)}catch(i){return!1}return!0},Z=function(e){return"\n/* sc-component-id: "+e+" */\n"},ee=function(e,t){for(var n=0,r=0;r<=t;r+=1)n+=e[r];return n},te=function(e,t){return function(n){var r=K();return"<style "+[r&&'nonce="'+r+'"',O+'="'+Y(t)+'"','data-styled-version="4.4.1"',n].filter(
vendor: 19,476 bytes, line 2
2Boolean).join(" ")+">"+e()+"</style>"}},ne=function(e,t){return function(){var n,r=((n={})[O]=Y(t),n["data-styled-version"]="4.4.1",n),i=K();return i&&(r.nonce=i),u.a.createElement("style",y({},r,{dangerouslySetInnerHTML:{__html:e()}}))}},re=function(e){return function(){return Object.keys(e)}},ie=function(e,t){return e.createTextNode(Z(t))},oe=function e(t,n){var r=void 0===t?Object.create(null):t,i=void 0===n?Object.create(null):n,o=function(e){var t=i[e];return void 0!==t?t:i[e]=[""]},a=function(){var e="";for(var t in i){var n=i[t][0];n&&(e+=Z(t)+n)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var n in e)t[n]=y({},e[n]);return t}(r),n=Object.create(null);for(var o in i)n[o]=[i[o][0]];return e(t,n)},css:a,getIds:re(i),hasNameForId:Q(r),insertMarker:o,insertRules:function(e,t,n){o(e)[0]+=t.join(" "),G(r,e,n)},removeRules:function(e){var t=i[e];void 0!==t&&(t[0]="",$(r,e))},sealed:!1,styleTag:null,toElement:ne(a,r),toHTML:te(a,r)}},ae=function(e,t,n,r,i){if(x&&!n){var o=function(e,t,n){var r=document;e?r=e.ownerDocument:t&&(r=t.ownerDocument);var i=r.createElement("style");i.setAttribute(O,""),i.setAttribute("data-styled-version","4.4.1");var o=K();if(o&&i.setAttribute("nonce",o),i.appendChild(r.createTextNode("")),e&&!t)e.appendChild(i);else{if(!t||!e||!t.parentNode)throw new A(6);t.parentNode.insertBefore(i,n?t:t.nextSibling)}return i}(e,t,r);return I?function(e,t){var n=Object.create(null),r=Object.create(null),i=void 0!==t,o=!1,a=function(t){var i=r[t];return void 0!==i?i:(r[t]=ie(e.ownerDocument,t),e.appendChild(r[t]),n[t]=Object.create(null),r[t])},s=function(){var e="";for(var t in r)e+=r[t].data;return e};return{clone:function(){throw new A(5)},css:s,getIds:re(r),hasNameForId:Q(n),insertMarker:a,insertRules:function(e,r,s){for(var u=a(e),c=[],l=r.length,f=0;f<l;f+=1){var h=r[f],d=i;if(d&&-1!==h.indexOf("@import"))c.push(h);else{d=!1;var p=f===l-1?"":" ";u.appendData(""+h+p)}}G(n,e,s),i&&c.length>0&&(o=!0,t().insertRules(e+"-import",c))},removeRules:function(a){var s=r[a];if(void 0!==s){var u=ie(e.ownerDocument,a);e.replaceChild(u,s),r[a]=u,$(n,a),i&&o&&t().removeRules(a+"-import")}},sealed:!1,styleTag:e,toElement:ne(s,n),toHTML:te(s,n)}}(o,i):function(e,t){var n=Object.create(null),r=Object.create(null),i=[],o=void 0!==t,a=!1,s=function(e){var t=r[e];return void 0!==t?t:(r[e]=i.length,i.push(0),$(n,e),r[e])},u=function(){var t=X(e).cssRules,n="";for(var o in r){n+=Z(o);for(var a=r[o],s=ee(i,a),u=s-i[a];u<s;u+=1){var c=t[u];void 0!==c&&(n+=c.cssText)}}return n};return{clone:function(){throw new A(5)},css:u,getIds:re(r),hasNameForId:Q(n),insertMarker:s,insertRules:function(r,u,c){for(var l=s(r),f=X(e),h=ee(i,l),d=0,p=[],v=u.length,m=0;m<v;m+=1){var g=u[m],y=o;y&&-1!==g.indexOf("@import")?p.push(g):J(f,g,h+d)&&(y=!1,d+=1)}o&&p.length>0&&(a=!0,t().insertRules(r+"-import",p)),i[l]+=d,G(n,r,c)},removeRules:function(s){var u=r[s];if(void 0!==u&&!1!==e.isConnected){var c=i[u];!function(e,t,n){for(var r=t-n,i=t;i>r;i-=1)e.deleteRule(i)}(X(e),ee(i,u)-1,c),i[u]=0,$(n,s),o&&a&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:ne(u,n),toHTML:te(u,n)}}(o,i)}return oe()},se=/\s+/,ue=void 0;ue=x?I?40:1e3:-1;var ce=0,le=void 0,fe=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x?document.head:null,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];m(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var n=t.tags[0];return t.importRuleTag=ae(t.target,n?n.styleTag:null,t.forceServer,!0)},ce+=1,this.id=ce,this.forceServer=r,this.target=r?null:n,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!x||this.forceServer)return this;var e=[],t=[],n=!1,r=document.querySelectorAll("style["+O+'][data-styled-version="4.4.1"]'),i=r.length;if(!i)return this;for(var o=0;o<i;o+=1){var a=r[o];n||(n=!!a.getAttribute("data-styled-streamed"));for(var s,u=(a.getAttribute(O)||"").trim().split(se),c=u.length,l=0;l<c;l+=1)s=u[l],this.rehydratedNames[s]=!0;t.push.apply(t,j(a.textContent)),e.push(a)}var f=t.length;if(!f)return this;var h=this.makeTag(null);!function(e,t,n){for(var r=0,i=n.length;r<i;r+=1){var o=n[r],a=o.componentId,s=o.cssFromDOM,u=W(s);e.insertRules(a,u)}for(var c=0,l=t.length;c<l;c+=1){var f=t[c];f.parentNode&&f.parentNode.removeChild(f)}}(h,e,t),this.capacity=Math.max(1,ue-f),this.tags.push(h);for(var d=0;d<f;d+=1)this.tagMap[t[d].componentId]=h;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];le=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map((function(e){for(var n=e.getIds(),r=e.clone(),i=0;i<n.length;i+=1)t.tagMap[n[i]]=r;return r})),t.rehydratedNames=y({},this.rehydratedNames),t.deferred=y({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach((function(e){e.sealed=!0}))},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ae(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var n=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=ue,n=this.makeTag(n),this.tags.push(n)),this.tagMap[e]=n},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var n=this.tagMap[e];return void 0!==n&&n.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,n){for(var r=this.clones,i=0;i<r.length;i+=1)r[i].inject(e,t,n);var o=this.getTagForId(e);if(void 0!==this.deferred[e]){var a=this.deferred[e].concat(t);o.insertRules(e,a,n),this.deferred[e]=void 0}else o.insertRules(e,t,n)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var n=this.clones,r=0;r<n.length;r+=1)n[r].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map((function(e){return e.toHTML()})).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map((function(t,n){var r="sc-"+e+"-"+n;return Object(s.cloneElement)(t.toElement(),{key:r})}))},g(e,null,[{key:"master",get:function(){return le||(le=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),he=function(){function e(t,n){var r=this;m(this,e),this.inject=function(e){e.hasNameForId(r.id,r.name)||e.inject(r.id,r.rules,r.name)},this.toString=function(){throw new A(12,String(r.name))},this.name=t,this.rules=n,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),de=/([A-Z])/g,pe=/^ms-/;function ve(e){return e.replace(de,"-$1").toLowerCase().replace(pe,"-ms-")}var me=function(e){return void 0===e||null===e||!1===e||""===e},ge=function e(t,n){var r=[];return Object.keys(t).forEach((function(n){if(!me(t[n])){if(_(t[n]))return r.push.apply(r,e(t[n],n)),r;if(k(t[n]))return r.push(ve(n)+":",t[n],";"),r;r.push(ve(n)+": "+function(e,t){return null==t||"boolean"===typeof t||""===t?"":"number"!==typeof t||0===t||e in c.a?String(t).trim():t+"px"}(n,t[n])+";")}return r})),n?[n+" {"].concat(r,["}"]):r};function ye(e,t,n){if(Array.isArray(e)){for(var r,i=[],o=0,a=e.length;o<a;o+=1)null!==(r=ye(e[o],t,n))&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));return i}return me(e)?null:C(e)?"."+e.styledComponentId:k(e)?"function"!==typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ye(e(t),t,n):e instanceof he?n?(e.inject(n),e.getName()):e:_(e)?ge(e):e.toString();var s}function be(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return k(e)||_(e)?ye(p(E,[e].concat(n))):ye(p(e,n))}function we(e){for(var t,n=0|e.length,r=0|n,i=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(i)|(255&e.charCodeAt(++i))<<8|(255&e.charCodeAt(++i))<<16|(255&e.charCodeAt(++i))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++i;switch(n){case 3:r^=(255&e.charCodeAt(i+2))<<16;case 2:r^=(255&e.charCodeAt(i+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(i)))+((1540483477*(r>>>16)&65535)<<16)}return((r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16))^r>>>15)>>>0}var _e=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t="",n=void 0;for(n=e;n>52;n=Math.floor(n/52))t=_e(n%52)+t;return _e(n%52)+t}function Se(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(Array.isArray(r)&&!Se(r,t))return!1;if(k(r)&&!C(r))return!1}return!t.some((function(e){return k(e)||function(e){for(var t in e)if(k(e[t]))return!0;return!1}(e)}))}var ke,Te=function(e){return Ee(we(e))},Ce=function(){function e(t,n,r){m(this,e),this.rules=t,this.isStatic=Se(t,n),this.componentId=r,fe.master.hasId(r)||fe.master.deferredInject(r,[])}return e.prototype.generateAndInjectStyles=function(e,t){var n=this.isStatic,r=this.componentId,i=this.lastClassName;if(x&&n&&"string"===typeof i&&t.hasNameForId(r,i))return i;var o=ye(this.rules,e,t),a=Te(this.componentId+o.join(""));return t.hasNameForId(r,a)||t.inject(this.componentId,H(o,"."+a,void 0,r),a),this.lastClassName=a,a},e.generateName=function(e){return Te(e)},e}(),Oe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,r=!!n&&e.theme===n.theme,i=e.theme&&!r?e.theme:t||n.theme;return i},xe=/[[\].#*$><+~=|^:(),"'`-]+/g,Ie=/(^-|-$)/g;function Pe(e){return e.replace(xe,"-").replace(Ie,"")}function Ae(e){return"string"===typeof e&&!0}var Ne={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},je={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Re=((ke={})[l.ForwardRef]={$$typeof:!0,render:!0},ke),De=Object.defineProperty,Le=Object.getOwnPropertyNames,Me=Object.getOwnPropertySymbols,Fe=void 0===Me?function(){return[]}:Me,ze=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,Ve=Object.prototype,Be=Array.prototype;function qe(e,t,n){if("string"!==typeof t){var r=Ue(t);r&&r!==Ve&&qe(e,r,n);for(var i=Be.concat(Le(t),Fe(t)),o=Re[e.$$typeof]||Ne,a=Re[t.$$typeof]||Ne,s=i.length,u=void 0,c=void 0;s--;)if(c=i[s],!je[c]&&(!n||!n[c])&&(!a||!a[c])&&(!o||!o[c])&&(u=ze(t,c)))try{De(e,c,u)}catch(l){}return e}return e}var We=Object(s.createContext)(),He=We.Consumer,Ke=function(e){function t(n){m(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext.bind(r)),r.renderInner=r.renderInner.bind(r),r}return b(t,e),t.prototype.render=function(){return this.props.children?u.a.createElement(We.Consumer,null,this.renderInner):null},t.prototype.renderInner=function(e){var t=this.getContext(this.props.theme,e);return u.a.createElement(We.Provider,{value:t},this.props.children)},t.prototype.getTheme=function(e,t){if(k(e))return e(t);if(null===e||Array.isArray(e)||"object"!==("undefined"===typeof e?"undefined":v(e)))throw new A(8);return y({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(s.Component),Ge=function(){function e(){m(this,e),this.masterSheet=fe.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new A(2);return u.a.createElement(Ye,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new A(3)},e}(),$e=Object(s.createContext)(),Qe=$e.Consumer,Ye=function(e){function t(n){m(this,t);var r=w(this,e.call(this,n));return r.getContext=Object(f.a)(r.getContext),r}return b(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new fe(t);throw new A(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,r=e.target;return u.a.createElement($e.Provider,{value:this.getContext(n,r)},t)},t}(s.Component),Xe={};var Je=function(e){function t(){m(this,t);var n=w(this,e.call(this));return n.attrs={},n.renderOuter=n.renderOuter.bind(n),n.renderInner=n.renderInner.bind(n),n}return b(t,e),t.prototype.render=function(){return u.a.createElement(Qe,null,this.renderOuter)},t.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():u.a.createElement(He,null,this.renderInner)},t.prototype.renderInner=function(e){var t=this.props.forwardedComponent,n=t.componentStyle,r=t.defaultProps,i=(t.displayName,t.foldedComponentIds),o=t.styledComponentId,a=t.target,u=void 0;u=n.isStatic?this.generateAndInjectStyles(S,this.props):this.generateAndInjectStyles(Oe(this.props,e,r)||S,this.props);var c=this.props.as||this.attrs.as||a,l=Ae(c),f={},d=y({},this.props,this.attrs),p=void 0;for(p in d)"forwardedComponent"!==p&&"as"!==p&&("forwardedRef"===p?f.ref=d[p]:"forwardedAs"===p?f.as=d[p]:l&&!Object(h.a)(p)||(f[p]=d[p]));return this.props.style&&this.attrs.style&&(f.style=y({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(i,o,u!==o?u:null,this.props.className,this.attrs.className).filter(Boolean).join(" "),Object(s.createElement)(c,f)},t.prototype.buildExecutionContext=function(e,t,n){var r=this,i=y({},t,{theme:e});return n.length?(this.attrs={},n.forEach((function(e){var t,n=e,o=!1,a=void 0,s=void 0;for(s in k(n)&&(n=n(i),o=!0),n)a=n[s],o||!k(a)||(t=a)&&t.prototype&&t.prototype.isReactComponent||C(a)||(a=a(i)),r.attrs[s]=a,i[s]=a})),i):i},t.prototype.generateAndInjectStyles=function(e,t){var n=t.forwardedComponent,r=n.attrs,i=n.componentStyle;n.warnTooManyClasses;return i.isStatic&&!r.length?i.generateAndInjectStyles(S,this.styleSheet):i.generateAndInjectStyles(this.buildExecutionContext(e,t,r),this.styleSheet)},t}(s.Component);function Ze(e,t,n){var r=C(e),i=!Ae(e),o=t.displayName,a=void 0===o?function(e){return Ae(e)?"styled."+e:"Styled("+T(e)+")"}(e):o,s=t.componentId,c=void 0===s?function(e,t,n){var r="string"!==typeof t?"sc":Pe(t),i=(Xe[r]||0)+1;Xe[r]=i;var o=r+"-"+e.generateName(r+i);return n?n+"-"+o:o}(Ce,t.displayName,t.parentComponentId):s,l=t.ParentComponent,f=void 0===l?Je:l,h=t.attrs,p=void 0===h?E:h,v=t.displayName&&t.componentId?Pe(t.displayName)+"-"+t.componentId:t.componentId||c,m=r&&e.attrs?Array.prototype.concat(e.attrs,p).filter(Boolean):p,g=new Ce(r?e.componentStyle.rules.concat(n):n,m,v),b=void 0,w=function(e,t){return u.a.createElement(f,y({},e,{forwardedComponent:b,forwardedRef:t}))};return w.displayName=a,(b=u.a.forwardRef(w)).displayName=a,b.attrs=m,b.componentStyle=g,b.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):E,b.styledComponentId=v,b.target=r?e.target:e,b.withComponent=function(e){var r=t.componentId,i=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["componentId"]),o=r&&r+"-"+(Ae(e)?e:Pe(T(e)));return Ze(e,y({},i,{attrs:m,componentId:o,ParentComponent:f}),n)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Object(d.a)(e.defaultProps,t):t}}),b.toString=function(){return"."+b.styledComponentId},i&&qe(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}var et=function(e){return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;if(!Object(l.isValidElementType)(n))throw new A(1,String(n));var i=function(){return t(n,r,be.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,y({},r,i))},i.attrs=function(i){return e(t,n,y({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(Ze,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){et[e]=et(e)}));var tt=function(){function e(t,n){m(this,e),this.rules=t,this.componentId=n,this.isStatic=Se(t,E),fe.master.hasId(n)||fe.master.deferredInject(n,[])}return e.prototype.createStyles=function(e,t){var n=H(ye(this.rules,e,t),"");t.inject(this.componentId,n)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}();function nt(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)),o="sc-global-"+we(JSON.stringify(i)),a=new tt(i,o),s=function(e){function t(n){m(this,t);var r=w(this,e.call(this,n)),i=r.constructor,o=i.globalStyle,a=i.styledComponentId;return x&&(window.scCGSHMRCache[a]=(window.scCGSHMRCache[a]||0)+1),r.state={globalStyle:o,styledComponentId:a},r}return b(t,e),t.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},t.prototype.render=function(){var e=this;return u.a.createElement(Qe,null,(function(t){e.styleSheet=t||fe.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(P,e.styleSheet),null):u.a.createElement(He,null,(function(t){var r=e.constructor.defaultProps,i=y({},e.props);return"undefined"!==typeof t&&(i.theme=Oe(e.props,t,r)),n.renderStyles(i,e.styleSheet),null}))}))},t}(u.a.Component);return s.globalStyle=a,s.styledComponentId=o,s}x&&(window.scCGSHMRCache={});var rt=function(e){return e.replace(/\s|\\n/g,"")};function it(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=be.apply(void 0,[e].concat(n)),o=Ee(we(rt(JSON.stringify(i))));return new he(o,H(i,o,"@keyframes"))}var ot=function(e){var t=u.a.forwardRef((function(t,n){return u.a.createElement(He,null,(function(r){var i=e.defaultProps,o=Oe(t,r,i);return u.a.createElement(e,y({},t,{theme:o,ref:n}))}
2))}));return qe(t,e),t.displayName="WithTheme("+T(e)+")",t},at={StyleSheet:fe};t.default=et}.call(this,n(39))},function(e,t,n){"use strict";function r(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(33),i=n(0),o=n.n(i),a=n(95),s=n.n(a),u=n(96),c=n(55),l=n(69),f=n(35),h=n.n(f);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},m=Object.freeze([]),g=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var _="undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})&&(Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_ATTR)||"data-styled",E="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof e&&void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0})&&(void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_DISABLE_SPEEDY?"false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).REACT_APP_SC_DISABLE_SPEEDY:void 0!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_DISABLE_SPEEDY&&""!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_DISABLE_SPEEDY&&("false"!==Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_DISABLE_SPEEDY&&Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).SC_DISABLE_SPEEDY)));function k(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var T=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&k(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,u=t.length;s<u;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),C=new Map,O=new Map,x=1,I=function(e){if(C.has(e))return C.get(e);for(;O.has(x);)x++;var t=x++;return C.set(e,t),O.set(t,e),t},P=function(e){return O.get(e)},A=function(e,t){t>=x&&(x=t+1),C.set(e,t),O.set(t,e)}
vendor: 4,559 bytes, line 2
2,N="style["+_+'][data-styled-version="5.3.11"]',j=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),R=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},D=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(j);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(A(c,u),R(e,c,s[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},L=function(){return n.nc},M=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.11");var a=L();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},F=function(){function e(e){var t=this.element=M(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}k(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),z=function(){function e(e){var t=this.element=M(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),U=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=E,B={isServer:!E,useCSSOMInjection:!S},q=function(){function e(e,t,n){void 0===e&&(e=g),void 0===t&&(t={}),this.options=d({},B,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&E&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(N),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(_)&&(D(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return I(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new U(i):r?new F(i):new z(i),new T(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(I(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(I(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(I(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=P(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(a&&s&&a.size){var u=_+".g"+i+'[id="'+o+'"]',c="";void 0!==a&&a.forEach((function(e){e.length>0&&(c+=e+",")})),r+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,H=function(e){return String.fromCharCode(e+(e>25?39:97))};function K(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=H(t%52)+n;return(H(t%52)+n).replace(W,"$1-$2")}var G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return G(5381,e)};function Q(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var Y=$("5.3.11"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Q(e),this.componentId=t,this.baseHash=G(Y,t),this.baseStyle=n,q.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n
vendor: 4,766 bytes, line 2
2)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ve(this.rules,e,t,n).join(""),a=K(G(this.baseHash,o)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=G(this.baseHash,n.hash),l="",f=0;f<u;f++){var h=this.rules[f];if("string"==typeof h)l+=h;else if(h){var d=ve(h,e,t,n),p=Array.isArray(d)?d.join(""):d;c=G(c,p+f),l+=p}}if(l){var v=K(c>>>0);if(!t.hasNameForId(r,v)){var m=n(l,"."+v,void 0,r);t.insertRules(r,v,m)}i.push(v)}}return i.join(" ")},e}(),J=/^\s*\/\/.*$/gm,Z=[":","[",".","#"];function ee(e){var t,n,r,i,o=void 0===e?g:e,a=o.options,s=void 0===a?g:a,c=o.plugins,l=void 0===c?m:c,f=new u.a(s),h=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),p=function(e,r,o){return 0===r&&-1!==Z.indexOf(o[n.length])||o.match(i)?e:"."+t};function v(e,o,a,s){void 0===s&&(s="&");var u=e.replace(J,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},d,function(e){if(-2===e){var t=h;return h=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||k(15),G(e,t.name)}),5381).toString():"",v}var te=o.a.createContext(),ne=(te.Consumer,o.a.createContext()),re=(ne.Consumer,new q),ie=ee();function oe(){return Object(i.useContext)(te)||re}function ae(){return Object(i.useContext)(ne)||ie}function se(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=oe(),u=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(te.Provider,{value:u},o.a.createElement(ne.Provider,{value:c},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return k(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,le=/([A-Z])/g,fe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function de(e){return ce.test(e)?e.replace(le,he).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ve(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return pe(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(u=e)||u.prototype&&u.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof ue?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!pe(t[a])&&(Array.isArray(t[a])&&t[a].isCss||y(t[a])?o.push(de(a)+":",t[a],";"):v(t[a])?o.push.apply(o,e(t[a],a)):o.push(de(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in c.a||r.startsWith("--")?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var u}var me=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||v(e)?me(ve(p(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:me(ve(p(e,n)))}new Set;var ye=function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(be,"-").replace(we,"")}var Ee=function(e){return K($(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var ke=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Te=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var r=e[n];ke(t)&&ke(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];
2if(ke(a))for(var s in a)Te(s)&&Ce(e,a[s],s)}return e}var xe=o.a.createContext();xe.Consumer;var Ie={};function Pe(e,t,n){var r=w(e),a=!Se(e),s=t.attrs,u=void 0===s?m:s,c=t.componentId,f=void 0===c?function(e,t){var n="string"!=typeof e?"sc":_e(e);Ie[n]=(Ie[n]||0)+1;var r=n+"-"+Ee("5.3.11"+n+Ie[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):c,p=t.displayName,v=void 0===p?function(e){return Se(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,_=t.displayName&&t.componentId?_e(t.displayName)+"-"+t.componentId:t.componentId||f,E=r&&e.attrs?Array.prototype.concat(e.attrs,u).filter(Boolean):u,S=t.shouldForwardProp;r&&e.shouldForwardProp&&(S=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var k,T=new X(n,_,r?e.componentStyle:void 0),C=T.isStatic&&0===u.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,f=e.styledComponentId,h=e.target,p=function(e,t,n){void 0===e&&(e=g);var r=d({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(ye(t,Object(i.useContext)(xe),s)||g,t,o),v=p[0],m=p[1],b=function(e,t,n,r){var i=oe(),o=ae();return t?e.generateAndInjectStyles(g,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,v),w=n,_=m.$as||t.$as||m.as||t.as||h,E=Se(_),S=m!==t?d({},t,{},m):t,k={};for(var T in S)"$"!==T[0]&&"as"!==T&&("forwardedAs"===T?k.as=S[T]:(c?c(T,l.a,_):!E||Object(l.a)(T))&&(k[T]=S[T]));return t.style&&m.style!==t.style&&(k.style=d({},t.style,{},m.style)),k.className=Array.prototype.concat(u,f,b!==f?b:null,t.className,m.className).filter(Boolean).join(" "),k.ref=w,Object(i.createElement)(_,k)}(k,e,t,C)};return O.displayName=v,(k=o.a.forwardRef(O)).attrs=E,k.componentStyle=T,k.displayName=v,k.shouldForwardProp=S,k.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,k.styledComponentId=_,k.target=r?e.target:e,k.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:_e(b(e)));return Pe(e,d({},i,{attrs:E,componentId:o}),n)},Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Oe({},e.defaultProps,t):t}}),Object.defineProperty(k,"toString",{value:function(){return"."+k.styledComponentId}}),a&&h()(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),k}var Ae=function(e){return function e(t,n,i){if(void 0===i&&(i=g),!Object(r.isValidElementType)(n))return k(1,String(n));var o=function(){return t(n,i,ge.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,d({},i,{},r))},o.attrs=function(r){return e(t,n,d({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Pe,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ae[e]=Ae(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),q.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&q.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=L();
2return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.3.11"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?k(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return k(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.11",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=L();return r&&(n.nonce=r),[o.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new q({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?k(2):o.a.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return k(3)}}();t.a=Ae}).call(this,n(39))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return p})),n.d(t,"h",(function(){return l})),n.d(t,"i",(function(){return f})),n.d(t,"j",(function(){return h})),n.d(t,"k",(function(){return d}));var r=function(e){return"@@redux-saga/"+e}
2,i=r("CANCEL_PROMISE"),o=r("CHANNEL_END"),a=r("IO"),s=r("MATCH"),u=r("MULTICAST"),c=r("SAGA_ACTION"),l=r("SELF_CANCELLATION"),f=r("TASK"),h=r("TASK_CANCEL"),d=r("TERMINATE"),p=r("LOCATION")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.borderRadiusContainerSize=t.sizeContainer=t.sizeItem=t.commonStyle=void 0;t.commonStyle={margin:"auto",position:"absolute",left:0,right:0,top:0,bottom:0};t.sizeItem={small:"10px",default:"12px",large:"14px"};t.sizeContainer={small:"24px",default:"30px",large:"36px"};t.borderRadiusContainerSize={small:"12px",default:"15px",large:"18px"}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n(3);var r=n(0),i=n.n(r),o=i.a.createContext({});o.Consumer,o.Provider;function a(e,t){var n=Object(r.useContext)(o);return e||n[t]||t}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,l=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,d=63&c;u||(d=64,a||(h=64)),r.push(n[l],n[f],n[h],n[d])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{o=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw Error();var c=o<<2|a>>4;if(r.push(c),64!==s){var l=a<<4&240|s>>2;if(r.push(l),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return u.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function l(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=l(e[n],t[n]));return e}var f=function(){function e(){var e=this;this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}},e}();function h(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function d(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(t){return!1}}var p=function(e){function t(n,r){var i=e.call(this,r)||this;return i.code=n,i.name="FirebaseError",Object.setPrototypeOf(i,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(i,v.prototype.create),i}return r.__extends(t,e),t}(Error),v=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n}return e.prototype.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],a=o?m(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new p(i,s),c=0,l=Object.keys(r);c<l.length;c++){var f=l[c];"_"!==f.slice(-1)&&(f in u&&console.warn('Overwriting FirebaseError base field "'+f+'" can cause unexpected behavior.'),u[f]=r[f])}return u},e}();function m(e,t){return e.replace(g,(function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"}))}var g=/\{\$([^}]+)}/g;function y(e){return JSON.parse(e)}var b=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=y(c(o[0])||""),n=y(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:r,signature:i}};var w=function(){function e(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=64,this.pad_[0]=128;for(var e=1;e<this.blockSize;++e)this.pad_[e]=0;this.reset()}return e.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},e.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"===typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},e.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0===o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"===typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o===this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o===this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},e.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},e}();var _=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
2ise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((function(){e(n)})).catch((function(e){n.error(e)}))}return e.prototype.next=function(e){this.forEachObserver((function(t){t.next(e)}))},e.prototype.error=function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)},e.prototype.complete=function(){this.forEachObserver((function(e){e.complete()})),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"===typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=E),void 0===r.error&&(r.error=E),void 0===r.complete&&(r.complete=E);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))},e}();function E(){}function S(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}t.CONSTANTS=i,t.Deferred=f,t.ErrorFactory=v,t.FirebaseError=p,t.MAX_VALUE_MILLIS=144e5,t.RANDOM_FACTOR=.5,t.Sha1=w,t.areCookiesEnabled=function(){return!(!navigator||!navigator.cookieEnabled)},t.assert=o,t.assertionError=a,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then((function(){e.apply(void 0,n)})).catch((function(e){t&&t(e)}))}},t.base64=u,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return u.encodeByteArray(t,!0)},t.calculateBackoffMillis=function(e,t,n){void 0===t&&(t=1e3),void 0===n&&(n=2);var r=t*Math.pow(n,e),i=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+i)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.createSubscribe=function(e,t){var n=new _(e,t);return n.subscribe.bind(n)},t.decode=b,t.deepCopy=function(e){return l(void 0,e)},t.deepExtend=l,t.errorPrefix=S,t.getUA=h,t.isAdmin=function(e){var t=b(e).claims;return"object"===typeof t&&!0===t.admin},t.isBrowser=function(){return"object"===typeof self&&self.self===self},t.isBrowserExtension=function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id},t.isElectron=function(){return h().indexOf("Electron/")>=0},t.isEmpty=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0},t.isIE=function(){var e=h();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0},t.isIndexedDBAvailable=function(){return"indexedDB"in self&&null!=indexedDB},t.isMobileCordova=function(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNode=d,t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"===typeof navigator&&"ReactNative"===navigator.product},t.isSafari=function(){return!d()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")},t.isUWP=function(){return h().indexOf("MSAppHost/")>=0},t.isValidFormat=function(e){var t=b(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t=b(e).claims,n=Math.floor((new Date).getTime()/1e3),r=0,i=0;return"object"===typeof t&&(t.hasOwnProperty("nbf")?r=t.nbf:t.hasOwnProperty("iat")&&(r=t.iat),i=t.hasOwnProperty("exp")?t.exp:r+86400),!!n&&!!r&&!!i&&n>=r&&n<=i},t.issuedAtTime=function(e){var t=b(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.jsonEval=y,t.map=function(e,t,n){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r},t.querystring=function(e){for(var t=[],n=function(e,n){Array.isArray(n)?n.forEac
2h((function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))})):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))},r=0,i=Object.entries(e);r<i.length;r++){var o=i[r];n(o[0],o[1])}return t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}})),t},t.safeGet=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;r++,o(r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},t.stringify=function(e){return JSON.stringify(e)},t.validateArgCount=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(S(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(S(e,t,r)+"must be a valid context object.")},t.validateIndexedDBOpenable=function(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=window.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||window.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(o){t(o)}}))},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!==typeof n)throw new Error(S(e,t,r)+"must be a valid firebase namespace.")}}).call(this,n(46))},function(e,t,n){"use strict";var r=n(0);var i=function(e){const t=Object(r.useRef)(e);return Object(r.useEffect)(()=>{t.current=e},[e]),t};function o(e){const t=i(e);return Object(r.useCallback)((function(){return t.current&&t.current(...arguments)}),[t])}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return w})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return S}));var r=n(18),i=n(0),o=n.n(i),a=n(4),s=n.n(a),u=n(22),c=n(26),l=n(3),f=n(68),h=n.n(f),d=(n(33),n(5)),p=(n(35),"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{});function v(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var m=o.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return p[e]=(p[e]||0)+1}()+"__",u=function(e){function n(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).emitter=v(t.props.value),t}Object(r.a)(n,e);var i=n.prototype;return i.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},i.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):1073741823,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},i.render=function(){return this.props.children},n}(o.a.Component);u.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var c=function(t){function n(){for(var e,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(e=t.call.apply(t,[this].concat(r))||this).observedBits=void 0,e.state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(r.a)(n,t);var i=n.prototype;return i.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},i.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},i.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},i.getValue=function(){return this.context[a]?this.context[a].get():e},i.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(o.a.Component);return c.contextTypes=((i={})[a]=s.a.object,i),{Provider:u,Consumer:c}},g=function(e){var t=m();return t.displayName=e,t},y=g("Router-History"),b=g("Router"),w=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._pendingLocation=e}))),n}Object(r.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){var e=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen((function(t){e._isMounted&&e.setState({location:t})}
2))),this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},n.render=function(){return o.a.createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(y.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;o.a.Component;var _={},E=0;function S(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,o=void 0!==i&&i,a=n.strict,s=void 0!==a&&a,u=n.sensitive,c=void 0!==u&&u;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=_[n]||(_[n]={});if(r[e])return r[e];var i=[],o={regexp:h()(e,i,t),keys:i};return E<1e4&&(r[e]=o,E++),o}(n,{end:o,strict:s,sensitive:c}),i=r.regexp,a=r.keys,u=i.exec(e);if(!u)return null;var l=u[0],f=u.slice(1),d=e===l;return o&&!d?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:d,params:a.reduce((function(e,t,n){return e[t.name]=f[n],e}),{})}}),null)}var k=function(e){function t(){return e.apply(this,arguments)||this}return Object(r.a)(t,e),t.prototype.render=function(){var e=this;return o.a.createElement(b.Consumer,null,(function(t){t||Object(c.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?S(n.pathname,e.props):t.match,i=Object(l.a)({},t,{location:n,match:r}),a=e.props,s=a.children,u=a.component,f=a.render;return Array.isArray(s)&&function(e){return 0===o.a.Children.count(e)}(s)&&(s=null),o.a.createElement(b.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:u?o.a.createElement(u,i):f?f(i):null:"function"===typeof s?s(i):null)}))},t}(o.a.Component);function T(e){return"/"===e.charAt(0)?e:"/"+e}function C(e,t){if(!e)return t;var n=T(e);return 0!==t.pathname.indexOf(n)?t:Object(l.a)({},t,{pathname:t.pathname.substr(n.length)})}function O(e){return"string"===typeof e?e:Object(u.e)(e)}function x(e){return function(){Object(c.a)(!1)}}function I(){}o.a.Component;o.a.Component;o.a.useContext}).call(this,n(46))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=n(1),a=n(14),s=n(21),u=n(37),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new a.ErrorFactory("app","Firebase",c),f=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),h=new u.Logger("@firebase/app"),d=function(){function e(e,t,n){var r,i,u=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=a.deepCopy(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return u}),"PUBLIC"));try{for(var c=o.__values(this.firebase_.INTERNAL.components.values()),l=c.next();!l.done;l=c.next()){var f=l.value;this._addComponent(f)}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise((function(t){e.checkDestroyed_(),t()})).then((function(){return e.firebase_.INTERNAL.removeApp(e.name_),Promise.all(e.container.getProviders().map((function(e){return e.delete()})))})).then((function(){e.isDeleted_=!0}))},e.prototype._getService=function(e,t){return void 0===t&&(t="[DEFAULT]"),this.checkDestroyed_(),this.container.getProvider(e).getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t="[DEFAULT]"),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){h.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},e}();d.prototype.name&&d.prototype.options||d.prototype.delete||console.log("dc");var p=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={});if("object"!==typeof i||null===i){i={name:i}}var o=i;void 0===o.name&&(o.name="[DEFAULT]");var s=o.name;if("string"!==typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if(a.contains(t,s))throw l.create("duplicate-app",{appName:s});var u=new e(n,o,r);return t[s]=u,u},app:i,registerVersion:function(e,t,n){var r,i=null!==(r=f[e])&&void 0!==r?r:e;n&&(i+="-"+n);var o=i.match(/\s|\//),a=t.match(/\s|\//);if(o||a){var u=['Unable to register library "'+i+'" with version "'+t+'":'];return o&&u.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&a&&u.push("and"),a&&u.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void h.warn(u.join(" "))}c(new s.Component(i+"-version",(function(){return{library:i,version:t}}),"VERSION"))},setLogLevel:u.setLogLevel,onLog:function(e,t){if(null!==e&&"function"!==typeof e)throw l.create("invalid-log-argument",{appName:name});u.setUserLogHandler(e,t)},apps:null,SDK_VERSION:"7.20.0",INTERNAL:{registerComponent:c,removeApp:function(e){delete t[e]},components:n,useAsService:function(e,t){if("serverAuth"===t)return null;return t}}};function i(e){if(e=e||"[DEFAULT]",!a.contains(t,e))throw l.create("no-app",{appName:e});return t[e]}function c(s){var u,c,f=s.name;if(n.has(f))return h.debug("There were multiple attempts to register component "+f+"."),"PUBLIC"===s.type?r[f]:null;if(n.set(f,s),"PUBLIC"===s.type){var d=function(e){if(void 0===e&&(e=i()),"function"!==typeof e[f])throw l.create("invalid-app-argument",{appName:f});return e[f]()};void 0!==s.serviceProps&&a.deepExtend(d,s.serviceProps),r[f]=d,e.prototype[f]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._getService.bind(this,f);return n.apply(this,s.multipleInstances?e:[])}}try{for(var p=o.__values(Object.keys(t)),v=p.next();!v.done;v=p.next()){var m=v.value;t[m]._addComponent(s)}}catch(g){u={error:g}}finally{try{v&&!v.done&&(c=p.return)&&c.call(p)}finally{if(u)throw u.error}}return"PUBLIC"===s.type?r[f]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(t).map((function(e){return t[e]}))}}),i.App=e,r}(d);return t.INTERNAL=o.__assign(o.__assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){a.deepExtend(t,e)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}(),v=function(){function e(e){this.container=e}return e.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return t.library+"/"+t.version}return null})).filter((function(e){return e})).join(" ")},e}();if(a.isBrowser()&&void 0!==self.firebase){h.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var m=self.firebase.SDK_VERSION;m&&m.indexOf("LITE")>=0&&h.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var g=p.initializeApp;p.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.isNode()&&h.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the rollup-plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/rollup-plugin-node-resolve\n '),g.apply(void 0,e)};var y=p;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new v(e)}),"PRIVATE")),e.registerVersion("@firebase/app","0.6.11",t),e.registerVersion("fire-js","")}(y),t.default=y,t.firebase=y},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",(function(){return i}))},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(105)},function(e,t,n){"use strict";n(10),n(3);var r=n(6),i=n(2),o=(n(54),function(e){return{done:!0,value:e}}),a={};function s(e){return Object(r.b)(e)?"channel":Object(r.l)(e)?String(e):Object(r.d)(e)?e.name:String(e)}function u(e,t,n){var r,s,u,c=t;function l(t,n){if(c===a)return o(t);if(n&&!s)throw c=a,n;r&&r(t);var i=n?e[s](n):e[c]();return c=i.nextState,u=i.effect,r=i.stateUpdater,s=i.errorState,c===a?o(t):u}return Object(i.M)(l,(function(e){return l(null,e)}),n)}function c(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,c,l={done:!1,value:Object(i.j)(e)},f=function(e){return{done:!1,value:i.k.apply(void 0,[t].concat(r,[e]))}},h=function(e){return{done:!1,value:Object(i.l)(e)}},d=function(e){return a=e},p=function(e){return c=e};return u({q1:function(){return{nextState:"q2",effect:l,stateUpdater:p}},q2:function(){return a?{nextState:"q3",effect:h(a)}:{nextState:"q1",effect:f(c),stateUpdater:d}},q3:function(){return{nextState:"q1",effect:f(c),stateUpdater:d}}},"q1","takeLatest("+s(e)+", "+t.name+")")}function l(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return i.k.apply(void 0,[c,e,t].concat(r))}n.d(t,"a",(function(){return i.m})),n.d(t,"b",(function(){return i.v})),n.d(t,"c",(function(){return l}))},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(14),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY"}return e.prototype.setInstantiationMode=function(e){return this.instantiationMode=e,this},e.prototype.setMultipleInstances=function(e){return this.multipleInstances=e,this},e.prototype.setServiceProps=function(e){return this.serviceProps=e,this},e}(),a=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map}return e.prototype.get=function(e){void 0===e&&(e="[DEFAULT]");var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.Deferred;this.instancesDeferred.set(t,n);try{var r=this.getOrInitializeService(t);r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t=r.__assign({identifier:"[DEFAULT]",optional:!1},e),n=t.identifier,i=t.optional,o=this.normalizeInstanceIdentifier(n);try{var a=this.getOrInitializeService(o);if(!a){if(i)return null;throw Error("Service "+this.name+" is not available")}return a}catch(s){if(i)return null;throw s}},e.prototype.getComponent=function(){return this.component},e.prototype.setComponent=function(e){var t,n;if(e.name!==this.name)throw Error("Mismatching Component "+e.name+" for Provider "+this.name+".");if(this.component)throw Error("Component for "+this.name+" has already been provided");if(this.component=e,function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService("[DEFAULT]")}catch(f){}try{for(var i=r.__values(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var a=r.__read(o.value,2),s=a[0],u=a[1],c=this.normalizeInstanceIdentifier(s);try{var l=this.getOrInitializeService(c);u.resolve(l)}catch(f){}}}catch(h){t={error:h}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}},e.prototype.clearInstance=function(e){void 0===e&&(e="[DEFAULT]"),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(r.__spread(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})),e.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()}))))];case 1:return t.sent(),[2]}}))}))},e.prototype.isComponentSet=function(){return null!=this.component},e.prototype.getOrInitializeService=function(e){var t=this.instances.get(e);return!t&&this.component&&(t=this.component.instanceFactory(this.container,function(e){return"[DEFAULT]"===e?void 0:e}(e)),this.instances.set(e,t)),t||null},e.prototype.normalizeInstanceIdentifier=function(e){return this.component?this.component.multipleInstances?e:"[DEFAULT]":e},e}();var s=function(){function e(e){this.name=e,this.providers=new Map}return e.prototype.addComponent=function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component "+e.name+" has already been registered with "+this.name);t.setComponent(e)},e.prototype.addOrOverwriteComponent=function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)},e.prototype.getProvider=function(e){if(this.providers.has(e))return this.providers.get(e);var t=new a(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}();t.Component=o,t.ComponentContainer=s,t.Provider=a},function(e,t,n){"use strict";var r=n(3);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var a=function(e,t){void 0===t&&(t="");var n,r=e&&e.split("/")||[],a=t&&t.split("/")||[],s=e&&i(e),u=t&&i(t),c=s||u;if(e&&i(e)?a=r:r.length&&(a.pop(),a=a.concat(r)),!a.length)return"/";if(a.length){var l=a[a.length-1];n="."===l||".."===l||""===l}else n=!1;for(var f=0,h=a.length;h>=0;h--){var d=a[h];"."===d?o(a,h):".."===d?(o(a,h),f++):f&&(o(a,h),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;
2if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(26);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function h(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function m(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function g(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}n.d(t,"a",(function(){return _})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return m})),n.d(t,"e",(function(){return p}));var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}function w(){try{return window.history.state||{}}catch(e){return{}}}function _(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)}(),i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e,a=o.forceRefresh,s=void 0!==a&&a,u=o.getUserConfirmation,f=void 0===u?b:u,m=o.keyLength,_=void 0===m?6:m,E=e.basename?d(l(e.basename)):"";function S(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return E&&(o=h(o,E)),v(o,r,n)}function k(){return Math.random().toString(36).substr(2,_)}var T=g();function C(e){Object(r.a)(F,e),F.length=t.length,T.notifyListeners(F.location,F.action)}function O(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(S(e.state))}function x(){P(S(w()))}var I=!1;function P(e){if(I)I=!1,C();else{T.confirmTransitionTo(e,"POP",f,(function(t){t?C({action:"POP",location:e}):function(e){var t=F.location,n=N.indexOf(t.key);-1===n&&(n=0);var r=N.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(I=!0,R(i))}(e)}))}}var A=S(w()),N=[A.key];function j(e){return E+p(e)}function R(e){t.go(e)}var D=0;function L(e){1===(D+=e)&&1===e?(window.addEventListener("popstate",O),i&&window.addEventListener("hashchange",x)):0===D&&(window.removeEventListener("popstate",O),i&&window.removeEventListener("hashchange",x))}var M=!1;var F={length:t.length,action:"POP",location:A,createHref:j,push:function(e,r){var i=v(e,r,k(),F.location);T.confirmTransitionTo(i,"PUSH",f,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.pushState({key:o,state:a},null,r),s)window.location.href=r;else{var u=N.indexOf(F.location.key),c=N.slice(0,u+1);c.push(i.key),N=c,C({action:"PUSH",location:i})}else window.location.href=r}}))},replace:function(e,r){var i=v(e,r,k(),F.location);T.confirmTransitionTo(i,"REPLACE",f,(function(e){if(e){var r=j(i),o=i.key,a=i.state;if(n)if(t.replaceState({key:o,state:a},null,r),s)window.location.replace(r);else{var u=N.indexOf(F.location.key);
2-1!==u&&(N[u]=i.key),C({action:"REPLACE",location:i})}else window.location.replace(r)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(e){void 0===e&&(e=!1);var t=T.setPrompt(e);return M||(L(1),M=!0),function(){return M&&(M=!1,L(-1)),t()}},listen:function(e){var t=T.appendListener(e);return L(1),function(){L(-1),t()}}};return F}var E={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+f(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:f,decodePath:l},slash:{encodePath:l,decodePath:l}};function S(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function k(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(S(window.location.href)+"#"+e)}function C(e){void 0===e&&(e={}),y||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,o=void 0===i?b:i,a=n.hashType,s=void 0===a?"slash":a,u=e.basename?d(l(e.basename)):"",f=E[s],m=f.encodePath,w=f.decodePath;function _(){var e=w(k());return u&&(e=h(e,u)),v(e)}var C=g();function O(e){Object(r.a)(z,e),z.length=t.length,C.notifyListeners(z.location,z.action)}var x=!1,I=null;function P(){var e,t,n=k(),r=m(n);if(n!==r)T(r);else{var i=_(),a=z.location;if(!x&&(t=i,(e=a).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(I===p(i))return;I=null,function(e){if(x)x=!1,O();else{C.confirmTransitionTo(e,"POP",o,(function(t){t?O({action:"POP",location:e}):function(e){var t=z.location,n=R.lastIndexOf(p(t));-1===n&&(n=0);var r=R.lastIndexOf(p(e));-1===r&&(r=0);var i=n-r;i&&(x=!0,D(i))}(e)}))}}(i)}}var A=k(),N=m(A);A!==N&&T(N);var j=_(),R=[p(j)];function D(e){t.go(e)}var L=0;function M(e){1===(L+=e)&&1===e?window.addEventListener("hashchange",P):0===L&&window.removeEventListener("hashchange",P)}var F=!1;var z={length:t.length,action:"POP",location:j,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=S(window.location.href)),n+"#"+m(u+p(e))},push:function(e,t){var n=v(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"PUSH",o,(function(e){if(e){var t=p(n),r=m(u+t);if(k()!==r){I=t,function(e){window.location.hash=e}(r);var i=R.lastIndexOf(p(z.location)),o=R.slice(0,i+1);o.push(t),R=o,O({action:"PUSH",location:n})}else O()}}))},replace:function(e,t){var n=v(e,void 0,void 0,z.location);C.confirmTransitionTo(n,"REPLACE",o,(function(e){if(e){var t=p(n),r=m(u+t);k()!==r&&(I=t,T(r));var i=R.indexOf(p(z.location));-1!==i&&(R[i]=t),O({action:"REPLACE",location:n})}}))},go:D,goBack:function(){D(-1)},goForward:function(){D(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return F||(M(1),F=!0),function(){return F&&(F=!1,M(-1)),t()}},listen:function(e){var t=C.appendListener(e);return M(1),function(){M(-1),t()}}};return z}function O(e,t,n){return Math.min(Math.max(e,t),n)}function x(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,o=void 0===i?["/"]:i,a=t.initialIndex,s=void 0===a?0:a,u=t.keyLength,c=void 0===u?6:u,l=g();function f(e){Object(r.a)(w,e),w.length=w.entries.length,l.notifyListeners(w.location,w.action)}function h(){return Math.random().toString(36).substr(2,c)}var d=O(s,0,o.length-1),m=o.map((function(e){return v(e,void 0,"string"===typeof e?h():e.key||h())})),y=p;function b(e){var t=O(w.index+e,0,w.entries.length-1),r=w.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var w={length:m.length,action:"POP",location:m[d],index:d,entries:m,createHref:y,push:function(e,t){var r=v(e,t,h(),w.location);l.confirmTransitionTo(r,"PUSH",n,(function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=v(e,t,h(),w.location);l.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=w.index+e;return t>=0&&t<w.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return w}},function(e,t,n){"use strict";var r=n(72),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!
2a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";var r=n(80),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:o,isArrayBuffer:function(e){return"[object ArrayBuffer]"===i.call(e)},isBuffer:function(e){return null!==e&&!a(e)&&null!==e.constructor&&!a(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!==typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:s,isUndefined:a,isDate:function(e){return"[object Date]"===i.call(e)},isFile:function(e){return"[object File]"===i.call(e)},isBlob:function(e){return"[object Blob]"===i.call(e)},isFunction:u,isStream:function(e){return s(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!==typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:c,merge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]=n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},deepMerge:function e(){var t={};function n(n,r){"object"===typeof t[r]&&"object"===typeof n?t[r]=e(t[r],n):t[r]="object"===typeof n?e({},n):n}for(var r=0,i=arguments.length;r<i;r++)c(arguments[r],n);return t},extend:function(e,t,n){return c(t,(function(t,i){e[i]=n&&"function"===typeof t?r(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument||document}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r="Invariant failed";function i(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),o=i.a.createContext(null);var a=function(e){e()};function s(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,i=n={callback:e,next:null,prev:n};return i.prev?i.prev.next=i:t=i,function(){r&&null!==t&&(r=!1,i.next?i.next.prev=i.prev:n=i.prev,i.prev?i.prev.next=i.next:t=i.next)}}}}var u={notify:function(){},get:function(){return[]}};function c(e,t){var n,r=u;function i(){a.onStateChange&&a.onStateChange()}function o(){n||(n=t?t.addNestedSub(i):e.subscribe(i),r=s())}var a={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:i,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=u)},getListeners:function(){return r}};return a}var l="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;var f=function(e){var t=e.store,n=e.context,a=e.children,s=Object(r.useMemo)((function(){var e=c(t);return{store:t,subscription:e}}),[t]),u=Object(r.useMemo)((function(){return t.getState()}),[t]);l((function(){var e=s.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),u!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[s,u]);var f=n||o;return i.a.createElement(f.Provider,{value:s},a)};n(3),n(5),n(35),n(88);function h(){return Object(r.useContext)(o)}function d(e){void 0===e&&(e=o);var t=e===o?h:function(){return Object(r.useContext)(e)};return function(){return t().store}}var p=d();function v(e){void 0===e&&(e=o);var t=e===o?p:d(e);return function(){return t().dispatch}}var m=v(),g=function(e,t){return e===t};function y(e){void 0===e&&(e=o);var t=e===o?h:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=g);var i=t(),o=function(e,t,n,i){var o,a=Object(r.useReducer)((function(e){return e+1}),0)[1],s=Object(r.useMemo)((function(){return c(n,i)}),[n,i]),u=Object(r.useRef)(),f=Object(r.useRef)(),h=Object(r.useRef)(),d=Object(r.useRef)(),p=n.getState();try{if(e!==f.current||p!==h.current||u.current){var v=e(p);o=void 0!==d.current&&t(v,d.current)?d.current:v}else o=d.current}catch(m){throw u.current&&(m.message+="\nThe error may be correlated with this previous error:\n"+u.current.stack+"\n\n"),m}return l((function(){f.current=e,h.current=p,d.current=o,u.current=void 0})),l((function(){function e(){try{var e=n.getState();if(e===h.current)return;var r=f.current(e);
2if(t(r,d.current))return;d.current=r,h.current=e}catch(m){u.current=m}a()}return s.onStateChange=e,s.trySubscribe(),e(),function(){return s.tryUnsubscribe()}}),[n,s]),o}(e,n,i.store,i.subscription);return Object(r.useDebugValue)(o),o}}var b,w=y(),_=n(19);n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return w})),b=_.unstable_batchedUpdates,a=b},function(e,t,n){"use strict";var r,i=n(5),o=n(3),a=n(12),s=n.n(a),u=n(41),c=n(34),l=n(25),f=n(49);function h(e){if((!r&&0!==r||e)&&c.a){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),r=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return r}var d=n(56),p=n(15),v=n(65);function m(e,t){return function(e){var t=Object(l.a)(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var g=/([A-Z])/g;var y=/^ms-/;function b(e){return function(e){return e.replace(g,"-$1").toLowerCase()}(e).replace(y,"-ms-")}var w=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;var _=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(b(t))||m(e).getPropertyValue(b(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?!function(e){return!(!e||!w.test(e))}(i)?n+=b(i)+": "+o+";":r+=i+"("+o+") ":e.style.removeProperty(b(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n},E=n(29);function S(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent(t,n,r),e.dispatchEvent(i)}}(e,"transitionend",!0)}),t+n),o=Object(E.a)(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}function k(e,t,n,r){null==n&&(n=function(e){var t=_(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var i=S(e,n,r),o=Object(E.a)(e,"transitionend",t);return function(){i(),o()}}var T=n(0),C=n.n(T);function O(e){void 0===e&&(e=Object(l.a)());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(n){return e.body}}var x=n(48),I=n(4),P=n.n(I),A=n(19),N=n.n(A),j=n(57),R=n(59),D=n(44);function L(e,t){e.classList?e.classList.add(t):Object(D.a)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}
2function M(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function F(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=M(e.className,t):e.setAttribute("class",M(e.className&&e.className.baseVal||"",t))}function z(e){return"window"in e&&e.window===e?e:"nodeType"in(t=e)&&t.nodeType===document.DOCUMENT_NODE&&e.defaultView||!1;var t}function U(e){var t;return z(e)||(t=e)&&"body"===t.tagName.toLowerCase()?function(e){var t=z(e)?Object(l.a)():Object(l.a)(e),n=z(e)||t.defaultView;return t.body.clientWidth<n.innerWidth}(e):e.scrollHeight>e.clientHeight}var V=["template","script","style"],B=function(e,t,n){[].forEach.call(e.children,(function(e){-1===t.indexOf(e)&&function(e){var t=e.nodeType,n=e.tagName;return 1===t&&-1===V.indexOf(n.toLowerCase())}(e)&&n(e)}))};function q(e,t){t&&(e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden"))}var W,H=function(){function e(e){var t=void 0===e?{}:e,n=t.hideSiblingNodes,r=void 0===n||n,i=t.handleContainerOverflow,o=void 0===i||i;this.hideSiblingNodes=void 0,this.handleContainerOverflow=void 0,this.modals=void 0,this.containers=void 0,this.data=void 0,this.scrollbarSize=void 0,this.hideSiblingNodes=r,this.handleContainerOverflow=o,this.modals=[],this.containers=[],this.data=[],this.scrollbarSize=h()}var t=e.prototype;return t.isContainerOverflowing=function(e){var t=this.data[this.containerIndexFromModal(e)];return t&&t.overflowing},t.containerIndexFromModal=function(e){return function(e,t){var n=-1;return e.some((function(e,r){return!!t(e,r)&&(n=r,!0)})),n}(this.data,(function(t){return-1!==t.modals.indexOf(e)}))},t.setContainerStyle=function(e,t){var n={overflow:"hidden"};e.style={overflow:t.style.overflow,paddingRight:t.style.paddingRight},e.overflowing&&(n.paddingRight=parseInt(_(t,"paddingRight")||"0",10)+this.scrollbarSize+"px"),_(t,n)},t.removeContainerStyle=function(e,t){Object.assign(t.style,e.style)},t.add=function(e,t,n){var r=this.modals.indexOf(e),i=this.containers.indexOf(t);if(-1!==r)return r;if(r=this.modals.length,this.modals.push(e),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;B(e,[n,r],(function(e){return q(!0,e)}))}(t,e),-1!==i)return this.data[i].modals.push(e),r;var o={modals:[e],classes:n?n.split(/\s+/):[],overflowing:U(t)};return this.handleContainerOverflow&&this.setContainerStyle(o,t),o.classes.forEach(L.bind(null,t)),this.containers.push(t),this.data.push(o),r},t.remove=function(e){var t=this.modals.indexOf(e);if(-1!==t){var n=this.containerIndexFromModal(e),r=this.data[n],i=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.classes.forEach(F.bind(null,i)),this.handleContainerOverflow&&this.removeContainerStyle(r,i),this.hideSiblingNodes&&function(e,t){var n=t.dialog,r=t.backdrop;B(e,[n,r],(function(e){return q(!1,e)}))}(i,e),this.containers.splice(n,1),this.data.splice(n,1);else if(this.hideSiblingNodes){var o=r.modals[r.modals.length-1],a=o.backdrop;q(!1,o.dialog),q(!1,a)}}},t.isTopModal=function(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e},e}(),K=function(e){var t;return"undefined"===typeof document?null:null==e?Object(l.a)().body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),null!=(t=e)&&t.nodeType&&e||null)};function G(e){var t=e||(W||(W=new H),W),n=Object(T.useRef)({dialog:null,backdrop:null});return Object.assign(n.current,{add:function(e,r){return t.add(n.current,e,r)},remove:function(){return t.remove(n.current)},isTopModal:function(){return t.isTopModal(n.current)},setDialogRef:Object(T.useCallback)((function(e){n.current.dialog=e}),[]),setBackdropRef:Object(T.useCallback)((function(e){n.current.backdrop=e}),[])})}var $=Object(T.forwardRef)((function(e,t){var n=e.show,r=void 0!==n&&n,a=e.role,s=void 0===a?"dialog":a,u=e.className,l=e.style,f=e.children,h=e.backdrop,d=void 0===h||h,m=e.keyboard,g=void 0===m||m,y=e.onBackdropClick,b=e.onEscapeKeyDown,w=e.transition,_=e.backdropTransition,S=e.autoFocus,k=void 0===S||S,I=e.enforceFocus,P=void 0===I||I,A=e.restoreFocus,D=void 0===A||A,L=e.restoreFocusOptions,M=e.renderDialog,F=e.renderBackdrop,z=void 0===F?function(e){return C.a.createElement("div",e)}:F,U=e.manager,V=e.container,B=e.containerClassName,q=e.onShow,W=e.onHide,H=void 0===W?function(){}:W,$=e.onExit,Q=e.onExited,Y=e.onExiting,X=e.onEnter,J=e.onEntering,Z=e.onEntered,ee=Object(i.a)(e,["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","backdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","containerClassName","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"]),te=function(e,t){var n=Object(T.useState)((function(){return K(e)})),r=n[0],i=n[1];if(!r){var o=K(e);o&&i(o)}return Object(T.useEffect)((function(){t&&r&&t(r)}),[t,r]),Object(T.useEffect)((function(){var t=K(e);t!==r&&i(t)}),[e,r]),r}(V),ne=G(U),re=Object(j.a)(),ie=Object(R.a)(r),oe=Object(T.useState)(!r),ae=oe[0],se=oe[1],ue=Object(T.useRef)(null);Object(T.useImperativeHandle)(t,(function(){return ne}),[ne]),c.a&&!ie&&r&&(ue.current=O()),w||r||ae?r&&ae&&se(!1):se(!0);var ce=Object(p.a)((function(){if(ne.add(te,B),ve.current=Object(E.a)(document,"keydown",de),pe.current=Object(E.a)(document,"focus",(function(){return setTimeout(fe)}),!0),q&&q(),k){var e=O(document);ne.dialog&&e&&!Object(x.a)(ne.dialog,e)&&(ue.current=e,ne.dialog.focus())}})),le=Object(p.a)((function(){var e;(ne.remove(),null==ve.current||ve.current(),null==pe.current||pe.current(),D)&&(null==(e=ue.current)||null==e.focus||e.focus(L),ue.current=null)}));Object(T.useEffect)((function(){r&&te&&ce()}),[r,te,ce]),Object(T.useEffect)((function(){ae&&le()}
2),[ae,le]),Object(v.a)((function(){le()}));var fe=Object(p.a)((function(){if(P&&re()&&ne.isTopModal()){var e=O();ne.dialog&&e&&!Object(x.a)(ne.dialog,e)&&ne.dialog.focus()}})),he=Object(p.a)((function(e){e.target===e.currentTarget&&(null==y||y(e),!0===d&&H())})),de=Object(p.a)((function(e){g&&27===e.keyCode&&ne.isTopModal()&&(null==b||b(e),e.defaultPrevented||H())})),pe=Object(T.useRef)(),ve=Object(T.useRef)(),me=w;if(!te||!(r||me&&!ae))return null;var ge=Object(o.a)({role:s,ref:ne.setDialogRef,"aria-modal":"dialog"===s||void 0},ee,{style:l,className:u,tabIndex:-1}),ye=M?M(ge):C.a.createElement("div",ge,C.a.cloneElement(f,{role:"document"}));me&&(ye=C.a.createElement(me,{appear:!0,unmountOnExit:!0,in:!!r,onExit:$,onExiting:Y,onExited:function(){se(!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null==Q||Q.apply(void 0,t)},onEnter:X,onEntering:J,onEntered:Z},ye));var be=null;if(d){var we=_;be=z({ref:ne.setBackdropRef,onClick:he}),we&&(be=C.a.createElement(we,{appear:!0,in:!!r},be))}return C.a.createElement(C.a.Fragment,null,N.a.createPortal(C.a.createElement(C.a.Fragment,null,be,ye),te))})),Q={show:P.a.bool,container:P.a.any,onShow:P.a.func,onHide:P.a.func,backdrop:P.a.oneOfType([P.a.bool,P.a.oneOf(["static"])]),renderDialog:P.a.func,renderBackdrop:P.a.func,onEscapeKeyDown:P.a.func,onBackdropClick:P.a.func,containerClassName:P.a.string,keyboard:P.a.bool,transition:P.a.elementType,backdropTransition:P.a.elementType,autoFocus:P.a.bool,enforceFocus:P.a.bool,restoreFocus:P.a.bool,restoreFocusOptions:P.a.shape({preventScroll:P.a.bool}),onEnter:P.a.func,onEntering:P.a.func,onEntered:P.a.func,onExit:P.a.func,onExiting:P.a.func,onExited:P.a.func,manager:P.a.instanceOf(H)};$.displayName="Modal",$.propTypes=Q;var Y=Object.assign($,{Manager:H}),X=(n(53),n(18)),J=n(31),Z=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",ee=".sticky-top",te=".navbar-toggler",ne=function(e){function t(){return e.apply(this,arguments)||this}Object(X.a)(t,e);var n=t.prototype;return n.adjustAndStore=function(e,t,n){var r,i=t.style[e];t.dataset[e]=i,_(t,((r={})[e]=parseFloat(_(t,e))+n+"px",r))},n.restore=function(e,t){var n,r=t.dataset[e];void 0!==r&&(delete t.dataset[e],_(t,((n={})[e]=r,n)))},n.setContainerStyle=function(t,n){var r=this;if(e.prototype.setContainerStyle.call(this,t,n),t.overflowing){var i=h();Object(J.a)(n,Z).forEach((function(e){return r.adjustAndStore("paddingRight",e,i)})),Object(J.a)(n,ee).forEach((function(e){return r.adjustAndStore("marginRight",e,-i)})),Object(J.a)(n,te).forEach((function(e){return r.adjustAndStore("marginRight",e,i)}))}},n.removeContainerStyle=function(t,n){var r=this;e.prototype.removeContainerStyle.call(this,t,n),Object(J.a)(n,Z).forEach((function(e){return r.restore("paddingRight",e)})),Object(J.a)(n,ee).forEach((function(e){return r.restore("marginRight",e)})),Object(J.a)(n,te).forEach((function(e){return r.restore("marginRight",e)}))},t}(H),re=!1,ie=C.a.createContext(null),oe=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i="exited",r.appearStatus="entering"):i="entered":i=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:i},r.nextCallback=null,r}Object(X.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),"entering"===t){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:N.a.findDOMNode(this);n&&function(e){e.scrollTop}(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.
2isMounting:e,i=this.props.nodeRef?[r]:[N.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),u=r?s.appear:s.enter;!e&&!n||re?this.safeSetState({status:"entered"},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:"entering"},(function(){t.props.onEntering(o,a),t.onTransitionEnd(u,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:N.a.findDOMNode(this);t&&!re?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:N.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(i.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return C.a.createElement(ie.Provider,{value:null},"function"===typeof n?n(e,r):C.a.cloneElement(C.a.Children.only(n),r))},t}(C.a.Component);function ae(){}oe.contextType=ie,oe.propTypes={},oe.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ae,onEntering:ae,onEntered:ae,onExit:ae,onExiting:ae,onExited:ae},oe.UNMOUNTED="unmounted",oe.EXITED="exited",oe.ENTERING="entering",oe.ENTERED="entered",oe.EXITING="exiting";var se=oe;function ue(e,t){var n=_(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function ce(e,t){var n=ue(e,"transitionDuration"),r=ue(e,"transitionDelay"),i=k(e,(function(n){n.target===e&&(i(),t(n))}),n+r)}var le,fe=["className","children"],he=((le={}).entering="show",le.entered="show",le),de=C.a.forwardRef((function(e,t){var n=e.className,r=e.children,a=Object(i.a)(e,fe),u=Object(T.useCallback)((function(e){!function(e){e.offsetHeight}(e),a.onEnter&&a.onEnter(e)}),[a]);return C.a.createElement(se,Object(o.a)({ref:t,addEndListener:ce},a,{onEnter:u}),(function(e,t){return C.a.cloneElement(r,Object(o.a)({},t,{className:s()("fade",n,r.props.className,he[e])}))}))}));de.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},de.displayName="Fade";var pe=de,ve=n(30),me=Object(ve.a)("modal-body"),ge=C.a.createContext({onHide:function(){}}),ye=n(13),be=["bsPrefix","className","contentClassName","centered","size","children","scrollable"],we=C.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,a=e.contentClassName,u=e.centered,c=e.size,l=e.children,f=e.scrollable,h=Object(i.a)(e,be),d=(n=Object(ye.a)(n,"modal"))+"-dialog";return C.a.createElement("div",Object(o.a)({},h,{ref:t,className:s()(d,r,c&&n+"-"+c,u&&d+"-centered",f&&d+"-scrollable")}),C.a.createElement("div",{className:s()(n+"-content",a)},l))}));we.displayName="ModalDialog";var _e=we,Ee=Object(ve.a)("modal-footer"),Se=["label","onClick","className"],ke={label:P.a.string.isRequired,onClick:P.a.func},Te=C.a.forwardRef((function(e,t){var n=e.label,r=e.onClick,a=e.className,u=Object(i.a)(e,Se);return C.a.createElement("button",Object(o.a)({ref:t,type:"button",className:s()("close",a),onClick:r},u),C.a.createElement("span",{"aria-hidden":"true"},"\xd7"),C.a.createElement("span",{className:"sr-only"},n))}));Te.displayName="CloseButton",Te.propTypes=ke,Te.defaultProps={label:"Close"};var Ce=Te,Oe=["bsPrefix","closeLabel","closeButton","onHide","className","children"],xe=C.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.closeLabel,a=e.closeButton,u=e.onHide,c=e.className,l=e.children,f=Object(i.a)(e,Oe);n=Object(ye.a)(n,"modal-header");var h=Object(T.useContext)(ge),d=Object(p.a)((function(){h&&h.onHide(),u&&u()}));return C.a.createElement("div",Object(o.a)({ref:t},f,{className:s()(c,n)}),l,a&&C.a.createElement(Ce,{label:r,onClick:d}))}));xe.displayName="ModalHeader",xe.defaultProps={closeLabel:"Close",closeButton:!1};var Ie,Pe,Ae=xe,Ne=(Ie="h4",C.a.forwardRef((function(e,t){return C.a.createElement("div",Object(o.a)({},e,{ref:t,className:s()(e.className,Ie)}))}))),je=Object(ve.a)("modal-title",{Component:Ne}),Re=["bsPrefix","className","style","dialogClassName","contentClassName","children","dialogAs","aria-labelledby","aria-describedby","aria-label","show","animation","backdrop","keyboard","onEscapeKeyDown","onShow","onHide","container","autoF
2ocus","enforceFocus","restoreFocus","restoreFocusOptions","onEntered","onExit","onExiting","onEnter","onEntering","onExited","backdropClassName","manager"],De={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:_e};function Le(e){return C.a.createElement(pe,Object(o.a)({},e,{timeout:null}))}function Me(e){return C.a.createElement(pe,Object(o.a)({},e,{timeout:null}))}var Fe=C.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,a=e.style,m=e.dialogClassName,g=e.contentClassName,y=e.children,b=e.dialogAs,w=e["aria-labelledby"],_=e["aria-describedby"],E=e["aria-label"],S=e.show,O=e.animation,x=e.backdrop,I=e.keyboard,P=e.onEscapeKeyDown,A=e.onShow,N=e.onHide,j=e.container,R=e.autoFocus,D=e.enforceFocus,L=e.restoreFocus,M=e.restoreFocusOptions,F=e.onEntered,z=e.onExit,U=e.onExiting,V=e.onEnter,B=e.onEntering,q=e.onExited,W=e.backdropClassName,H=e.manager,K=Object(i.a)(e,Re),G=Object(T.useState)({}),$=G[0],Q=G[1],X=Object(T.useState)(!1),J=X[0],Z=X[1],ee=Object(T.useRef)(!1),te=Object(T.useRef)(!1),re=Object(T.useRef)(null),ie=Object(d.a)(),oe=ie[0],ae=ie[1],se=Object(p.a)(N);n=Object(ye.a)(n,"modal"),Object(T.useImperativeHandle)(t,(function(){return{get _modal(){return oe}}}),[oe]);var ue=Object(T.useMemo)((function(){return{onHide:se}}),[se]);function ce(){return H||(Pe||(Pe=new ne),Pe)}function le(e){if(c.a){var t=ce().isContainerOverflowing(oe),n=e.scrollHeight>Object(l.a)(e).documentElement.clientHeight;Q({paddingRight:t&&!n?h():void 0,paddingLeft:!t&&n?h():void 0})}}var fe=Object(p.a)((function(){oe&&le(oe.dialog)}));Object(v.a)((function(){Object(f.a)(window,"resize",fe),re.current&&re.current()}));var he=function(){ee.current=!0},de=function(e){ee.current&&oe&&e.target===oe.dialog&&(te.current=!0),ee.current=!1},pe=function(){Z(!0),re.current=k(oe.dialog,(function(){Z(!1)}))},ve=function(e){"static"!==x?te.current||e.target!==e.currentTarget?te.current=!1:null==N||N():function(e){e.target===e.currentTarget&&pe()}(e)},me=Object(T.useCallback)((function(e){return C.a.createElement("div",Object(o.a)({},e,{className:s()(n+"-backdrop",W,!O&&"show")}))}),[O,W,n]),be=Object(o.a)({},a,$);O||(be.display="block");return C.a.createElement(ge.Provider,{value:ue},C.a.createElement(Y,{show:S,ref:ae,backdrop:x,container:j,keyboard:!0,autoFocus:R,enforceFocus:D,restoreFocus:L,restoreFocusOptions:M,onEscapeKeyDown:function(e){I||"static"!==x?I&&P&&P(e):(e.preventDefault(),pe())},onShow:A,onHide:N,onEnter:function(e,t){e&&(e.style.display="block",le(e)),null==V||V(e,t)},onEntering:function(e,t){null==B||B(e,t),Object(u.a)(window,"resize",fe)},onEntered:F,onExit:function(e){null==re.current||re.current(),null==z||z(e)},onExiting:U,onExited:function(e){e&&(e.style.display=""),null==q||q(e),Object(f.a)(window,"resize",fe)},manager:ce(),containerClassName:n+"-open",transition:O?Le:void 0,backdropTransition:O?Me:void 0,renderBackdrop:me,renderDialog:function(e){return C.a.createElement("div",Object(o.a)({role:"dialog"},e,{style:be,className:s()(r,n,J&&n+"-static"),onClick:x?ve:void 0,onMouseUp:de,"aria-label":E,"aria-labelledby":w,"aria-describedby":_}),C.a.createElement(b,Object(o.a)({},K,{onMouseDown:he,className:m,contentClassName:g}),y))}}))}));Fe.displayName="Modal",Fe.defaultProps=De,Fe.Body=me,Fe.Header=Ae,Fe.Title=je,Fe.Footer=Ee,Fe.Dialog=_e,Fe.TRANSITION_DURATION=300,Fe.BACKDROP_TRANSITION_DURATION=150;t.a=Fe},function(e,t,n){"use strict";var r=n(41),i=n(49);t.a=function(e,t,n,o){return Object(r.a)(e,t,n,o),function(){Object(i.a)(e,t,n,o)}}},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(12),a=n.n(o),s=/-(.)/g;var u=n(0),c=n.n(u),l=n(13);n.d(t,"a",(function(){return d}));var f=["className","bsPrefix","as"],h=function(e){return e[0].toUpperCase()+(t=e,t.replace(s,(function(e,t){return t.toUpperCase()}))).slice(1);var t};function d(e,t){var n=void 0===t?{}:t,o=n.displayName,s=void 0===o?h(e):o,u=n.Component,d=n.defaultProps,p=c.a.forwardRef((function(t,n){var o=t.className,s=t.bsPrefix,h=t.as,d=void 0===h?u||"div":h,p=Object(i.a)(t,f),v=Object(l.a)(s,e);return c.a.createElement(d,Object(r.a)({ref:n,className:a()(o,v)},p))}));return p.defaultProps=d,p.displayName=s,p}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=Function.prototype.bind.call(Function.prototype.call,[].slice);function i(e,t){return r(e.querySelectorAll(t))}},,function(e,t,n){"use strict";e.exports=n(112)},function(e,t,n){"use strict";t.a=!("undefined"===typeof window||!window.document||!window.document.createElement)},function(e,t,n){"use strict";var r=n(33),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<a.length;++m){var g=a[m];if(!o[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=h(n,g);try{c(t,g,y)}catch(b){}}}}return t}},function(e,t,n){!function(e){"use strict";function t(e){return Array.prototype.slice.call(e)}function n(e){return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function r(e,t,r){var i,o=new Promise((function(o,a){n(i=e[t].apply(e,r)).then(o,a)}));return o.request=i,o}function i(e,t,n){var i=r(e,t,n);return i.then((function(e){if(e)return new l(e,i.request)}))}
2function o(e,t,n){n.forEach((function(n){Object.defineProperty(e.prototype,n,{get:function(){return this[t][n]},set:function(e){this[t][n]=e}})}))}function a(e,t,n,i){i.forEach((function(i){i in n.prototype&&(e.prototype[i]=function(){return r(this[t],i,arguments)})}))}function s(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return this[t][r].apply(this[t],arguments)})}))}function u(e,t,n,r){r.forEach((function(r){r in n.prototype&&(e.prototype[r]=function(){return i(this[t],r,arguments)})}))}function c(e){this._index=e}function l(e,t){this._cursor=e,this._request=t}function f(e){this._store=e}function h(e){this._tx=e,this.complete=new Promise((function(t,n){e.oncomplete=function(){t()},e.onerror=function(){n(e.error)},e.onabort=function(){n(e.error)}}))}function d(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new h(n)}function p(e){this._db=e}o(c,"_index",["name","keyPath","multiEntry","unique"]),a(c,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),u(c,"_index",IDBIndex,["openCursor","o
2penKeyCursor"]),o(l,"_cursor",["direction","key","primaryKey","value"]),a(l,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach((function(e){e in IDBCursor.prototype&&(l.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then((function(){return t._cursor[e].apply(t._cursor,r),n(t._request).then((function(e){if(e)return new l(e,t._request)}))}))})})),f.prototype.createIndex=function(){return new c(this._store.createIndex.apply(this._store,arguments))},f.prototype.index=function(){return new c(this._store.index.apply(this._store,arguments))},o(f,"_store",["name","keyPath","indexNames","autoIncrement"]),a(f,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),u(f,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),s(f,"_store",IDBObjectStore,["deleteIndex"]),h.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},o(h,"_tx",["objectStoreNames","mode"]),s(h,"_tx",IDBTransaction,["abort"]),d.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},o(d,"_db",["name","version","objectStoreNames"]),s(d,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new h(this._db.transaction.apply(this._db,arguments))},o(p,"_db",["name","version","objectStoreNames"]),s(p,"_db",IDBDatabase,["close"]),["openCursor","o
2penKeyCursor"].forEach((function(e){[f,c].forEach((function(n){e in n.prototype&&(n.prototype[e.replace("open","iterate")]=function(){var n=t(arguments),r=n[n.length-1],i=this._store||this._index,o=i[e].apply(i,n.slice(0,-1));o.onsuccess=function(){r(o.result)}})}))})),[c,f].forEach((function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var n=this,r=[];return new Promise((function(i){n.iterateCursor(e,(function(e){e?(r.push(e.value),void 0===t||r.length!=t?e.continue():i(r)):i(r)}))}))})})),e.openDb=function(e,t,n){var i=r(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){n&&n(new d(o.result,e.oldVersion,o.transaction))}),i.then((function(e){return new p(e)}))},e.deleteDb=function(e){return r(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t,n){"use strict";function r(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var i;n.r(t),n.d(t,"LogLevel",(function(){return o})),n.d(t,"Logger",(function(){return f})),n.d(t,"setLogLevel",(function(){return h})),n.d(t,"setUserLogHandler",(function(){return d}));var o,a=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(o||(o={}));var s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,c=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),l=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var o=(new Date).toISOString(),a=c[t];if(!a)throw new Error("Attempted to log a message with an invalid logType (value: "+t+")");console[a].apply(console,r(["["+o+"] "+e.name+":"],n))}},f=function(){function e(e){this.name=e,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,a.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in o))throw new TypeError('Invalid value "'+e+'" assigned to `logLevel`');this._logLevel=e},enumerable:!1,configurable:!0}),e.prototype.setLogLevel=function(e){this._logLevel="string"===typeof e?s[e]:e},Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e},enumerable:!1,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],e)),this._logHandler.apply(this,r([this,o.DEBUG],e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],e)),this._logHandler.apply(this,r([this,o.VERBOSE],e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],e)),this._logHandler.apply(this,r([this,o.INFO],e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],e)),this._logHandler.apply(this,r([this,o.WARN],e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],e)),this._logHandler.apply(this,r([this,o.ERROR],e))},e}();function h(e){a.forEach((function(t){t.setLogLevel(e)}))}function d(e,t){for(var n=function(n){var r=null;t&&t.level&&(r=s[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map((function(e){if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((function(e){return e})).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:o[n].toLowerCase(),message:s,args:i,type:t.name})}},r=0,i=a;r<i.length;r++){n(i[r])}}},function(e,t,n){"use strict";var r=n(0);const i=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;t.a=function(e,t){return Object(r.useMemo)(()=>function(e,t){const n=i(e),r=i(t);return e=>{n&&n(e),r&&r(e)}}(e,t),[e,t])}},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);
2if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),1!==c.length||l||s(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(0),i=n.n(r).a.createContext(null);t.a=i},function(e,t,n){"use strict";var r=n(34),i=!1,o=!1;try{var a={get passive(){return i=!0},get once(){return o=i=!0}};r.a&&(window.addEventListener("test",a,a),window.removeEventListener("test",a,!0))}catch(s){}t.a=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!o){var a=r.once,s=r.capture,u=n;!o&&a&&(u=n.__once||function e(r){this.removeEventListener(t,e,s),n.call(this,r)},n.__once=u),e.addEventListener(t,u,i?r:s)}e.addEventListener(t,n,r)}},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)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}function o(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return f})),n.d(t,"applyMiddleware",(function(){return b})),n.d(t,"bindActionCreators",(function(){return g})),n.d(t,"combineReducers",(function(){return v})),n.d(t,"compose",(function(){return y})),n.d(t,"createStore",(function(){return d})),n.d(t,"legacy_createStore",(function(){return p}));var c="function"===typeof Symbol&&Symbol.observable||"@@observable",l=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+l(),REPLACE:"@@redux/REPLACE"+l(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+l()}};function h(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function d(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(u(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(u(1));return n(d)(e,t)}if("function"!==typeof e)throw new Error(u(2));var i=e,o=t,a=[],s=a,l=!1;function p(){s===a&&(s=a.slice())}function v(){if(l)throw new Error(u(3));return o}function m(e){if("function"!==typeof e)throw new Error(u(4));if(l)throw new Error(u(5));var t=!0;return p(),s.push(e),function(){if(t){if(l)throw new Error(u(6));t=!1,p();var n=s.indexOf(e);s.splice(n,1),a=null}}}function g(e){if(!h(e))throw new Error(u(7));if("undefined"===typeof e.type)throw new Error(u(8));if(l)throw new Error(u(9));try{l=!0,o=i(o,e)}finally{l=!1}for(var t=a=s,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!==typeof e)throw new Error(u(10));i=e,g({type:f.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(v())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e}return g({type:f.INIT}),(r={dispatch:g,subscribe:m,getState:v,replaceReducer:y})[c]=b,r}var p=d;function v(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"===typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:f.INIT}))throw new Error(u(12));if("undefined"===typeof n(void 0,{type:f.PROBE_UNKNOWN_ACTION()}))throw new Error(u(13))}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var c=a[s],l=n[c],f=e[c],h=l(f,t);if("undefined"===typeof h){t&&t.type;throw new Error(u(14))}
2i[c]=h,r=r||h!==f}return(r=r||a.length!==Object.keys(e).length)?i:e}}function m(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if("function"===typeof e)return m(e,t);if("object"!==typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var i=e[r];"function"===typeof i&&(n[r]=m(i,t))}return n}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},o=t.map((function(e){return e(i)}));return r=y.apply(void 0,o)(n.dispatch),s(s({},n),{},{dispatch:r})}}}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return(u=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function c(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e,t,n){return(l="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var f=function(e){return Object.keys(e).map((function(t){return e[t]}))},h=function(e){return Array.prototype.slice.call(e)},d=function(e){console.warn("".concat("SweetAlert2:"," ").concat(e))},p=function(e){console.error("".concat("SweetAlert2:"," ").concat(e))},v=[],m=function(e,t){var n;n='"'.concat(e,'" is deprecated and will be removed in the next major release. Please use "').concat(t,'" instead.'),-1===v.indexOf(n)&&(v.push(n),d(n))},g=function(e){return"function"===typeof e?e():e},y=function(e){return e&&"function"===typeof e.toPromise},b=function(e){return y(e)?e.toPromise():Promise.resolve(e)},w=function(e){return e&&Promise.resolve(e)===e},_=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),E=function(t){return t instanceof Element||function(t){return"object"===e(t)&&t.jquery}(t)},S=function(e){var t={};for(var n in e)t[e[n]]="swal2-"+e[n];return t},k=S(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","to
2p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),T=S(["success","warning","info","question","error"]),C=function(){return document.body.querySelector(".".concat(k.container))},O=function(e){var t=C();return t?t.querySelector(e):null},x=function(e){return O(".".concat(e))},I=function(){return x(k.popup)},P=function(){var e=I();return h(e.querySelectorAll(".".concat(k.icon)))},A=function(){var e=P().filter((function(e){return ce(e)}));return e.length?e[0]:null},N=function(){return x(k.title)},j=function(){return x(k.content)},R=function(){return x(k.image)},D=function(){return x(k["progress-steps"])},L=function(){return x(k["validation-message"])},M=function(){return O(".".concat(k.actions," .").concat(k.confirm))},F=function(){return O(".".concat(k.actions," .").concat(k.cancel))},z=function(){return x(k.actions)},U=function(){return x(k.header)},V=function(){return x(k.footer)},B=function(){return x(k["timer-progress-bar"])},q=function(){return x(k.close)},W=function(){var e=h(I().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((function(e,t){return(e=parseInt(e.getAttribute("tabindex")))>(t=parseInt(t.getAttribute("tabindex")))?1:e<t?-1:0})),t=h(I().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((function(e){return"-1"!==e.getAttribute("tabindex")}));return function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(e.concat(t)).filter((function(e){return ce(e)}))},H=function(){return!K()&&!document.body.classList.contains(k["no-backdrop"])},K=function(){return document.body.classList.contains(k["toast-shown"])},G=function(){return I().hasAttribute("data-loading")},$={previousBodyPadding:null},Q=function(e,t){if(e.textContent="",t){var n=(new DOMParser).parseFromString(t,"text/html");h(n.querySelector("head").childNodes).forEach((function(t){e.appendChild(t)})),h(n.querySelector("body").childNodes).forEach((function(t){e.appendChild(t)}))}},Y=function(e,t){if(!t)return!1;for(var n=t.split(/\s+/),r=0;r<n.length;r++)if(!e.classList.contains(n[r]))return!1;return!0},X=function(t,n,r){if(function(e,t){h(e.classList).forEach((function(n){-1===f(k).indexOf(n)&&-1===f(T).indexOf(n)&&-1===f(t.showClass).indexOf(n)&&e.classList.remove(n)}))}(t,n),n.customClass&&n.customClass[r]){if("string"!==typeof n.customClass[r]&&!n.customClass[r].forEach)return d("Invalid type of customClass.".concat(r,'! Expected string or iterable object, got "').concat(e(n.customClass[r]),'"'));ne(t,n.customClass[r])}};function J(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return ie(e,k[t]);case"checkbox":return e.querySelector(".".concat(k.checkbox," input"));case"radio":return e.querySelector(".".concat(k.radio," input:checked"))||e.querySelector(".".concat(k.radio," input:first-child"));case"range":return e.querySelector(".".concat(k.range," input"));default:return ie(e,k.input)}}var Z,ee=function(e){if(e.focus(),"file"!==e.type){var t=e.value;e.value="",e.value=t}},te=function(e,t,n){e&&t&&("string"===typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach((function(t){e.forEach?e.forEach((function(e){n?e.classList.add(t):e.classList.remove(t)})):n?e.classList.add(t):e.classList.remove(t)})))},ne=function(e,t){te(e,t,!0)},re=function(e,t){te(e,t,!1)},ie=function(e,t){for(var n=0;n<e.childNodes.length;n++)if(Y(e.childNodes[n],t))return e.childNodes[n]},oe=function(e,t,n){n||0===parseInt(n)?e.style[t]="number"===typeof n?"".concat(n,"px"):n:e.style.removeProperty(t)},ae=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";e.style.opacity="",e.style.display=t},se=function(e){e.style.opacity="",e.style.display="none"},ue=function(e,t,n){t?ae(e,n):se(e)},ce=function(e){return!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))},le=function(e){return!!(e.scrollHeight>e.clientHeight)},fe=function(e){var t=window.getComputedStyle(e),n=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return n>0||r>0},he=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=B();ce(n)&&(t&&(n.style.transition="none",n.style.width="100%"),setTimeout((function(){n.style.transition="width ".concat(e/1e3,"s linear"),n.style.width="0%"}),10))},de=function(){return"undefined"===typeof window||"undefined"===typeof document},pe='\n <div aria-labelledby="'.concat(k.title,'" aria-describedby="').concat(k.content,'" class="').concat(k.popup,'" tabindex="-1">\n <div class="').concat(k.header,'">\n <ul class="').concat(k["progress-steps"],'"></ul>\n <div class="').concat(k.icon," ").concat(T.error,'"></div>\n <div class="').concat(k.icon," ").concat(T.question,'"></div>\n <div class="').concat(k.icon," ").concat(T.warning,'"></div>\n <div class="').concat(k.icon," ").concat(T.info,'"></div>\n <div class="').concat(k.icon," ").concat(T.success,'"></div>\n <img class="').concat(k.image,'" />\n <h2 class="').concat(k.title,'" id="').concat(k.title,'"></h2>\n <button type="button" class="').concat(k.close,'"></button>\n </div>\n <div class="').concat(k.content,'">\n <div id="').concat(k.content,'" class="').concat(k["html-container"],'"></div>\n <input class="').concat(k.input,'" />\n <input type="file" class="').concat(k.file,'" />\n <div class="').concat(k.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(k.select,'"></select>\n <div class="').concat(k.radio,'"></div>
2\n <label for="').concat(k.checkbox,'" class="').concat(k.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(k.label,'"></span>\n </label>\n <textarea class="').concat(k.textarea,'"></textarea>\n <div class="').concat(k["validation-message"],'" id="').concat(k["validation-message"],'"></div>\n </div>\n <div class="').concat(k.actions,'">\n <button type="button" class="').concat(k.confirm,'">OK</button>\n <button type="button" class="').concat(k.cancel,'">Cancel</button>\n </div>\n <div class="').concat(k.footer,'"></div>\n <div class="').concat(k["timer-progress-bar-container"],'">\n <div class="').concat(k["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),ve=function(e){fn.isVisible()&&Z!==e.target.value&&fn.resetValidationMessage(),Z=e.target.value},me=function(e){var t=function(){var e=C();return!!e&&(e.parentNode.removeChild(e),re([document.documentElement,document.body],[k["no-backdrop"],k["toast-shown"],k["has-column"]]),!0)}();if(de())p("SweetAlert2 requires document to initialize");else{var n=document.createElement("div");n.className=k.container,t&&ne(n,k["no-transition"]),Q(n,pe);var r,i="string"===typeof(r=e.target)?document.querySelector(r):r;i.appendChild(n),function(e){var t=I();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")}(e),function(e){"rtl"===window.getComputedStyle(e).direction&&ne(C(),k.rtl)}(i),function(){var e=j(),t=ie(e,k.input),n=ie(e,k.file),r=e.querySelector(".".concat(k.range," input")),i=e.querySelector(".".concat(k.range," output")),o=ie(e,k.select),a=e.querySelector(".".concat(k.checkbox," input")),s=ie(e,k.textarea);t.oninput=ve,n.onchange=ve,o.onchange=ve,a.onchange=ve,s.oninput=ve,r.oninput=function(e){ve(e),i.value=r.value},r.onchange=function(e){ve(e),r.nextSibling.value=r.value}}()}},ge=function(t,n){t instanceof HTMLElement?n.appendChild(t):"object"===e(t)?ye(t,n):t&&Q(n,t)},ye=function(e,t){e.jquery?be(t,e):Q(t,e.toString())},be=function(e,t){if(e.textContent="",0 in t)for(var n=0;n in t;n++)e.appendChild(t[n].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},we=function(){if(de())return!1;var e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&"undefined"!==typeof e.style[n])return t[n];return!1}(),_e=function(e,t){var n=z(),r=M(),i=F();t.showConfirmButton||t.showCancelButton||se(n),X(n,t,"actions"),Ee(r,"confirm",t),Ee(i,"cancel",t),t.buttonsStyling?function(e,t,n){if(ne([e,t],k.styled),n.confirmButtonColor&&(e.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(t.style.backgroundColor=n.cancelButtonColor),!G()){var r=window.getComputedStyle(e).getPropertyValue("background-color");e.style.borderLeftColor=r,e.style.borderRightColor=r}}(r,i,t):(re([r,i],k.styled),r.style.backgroundColor=r.style.borderLeftColor=r.style.borderRightColor="",i.style.backgroundColor=i.style.borderLeftColor=i.style.borderRightColor=""),t.reverseButtons&&r.parentNode.insertBefore(i,r)};function Ee(e,t,n){var r;ue(e,n["show".concat((r=t,r.charAt(0).toUpperCase()+r.slice(1)),"Button")],"inline-block"),Q(e,n["".concat(t,"ButtonText")]),e.setAttribute("aria-label",n["".concat(t,"ButtonAriaLabel")]),e.className=k[t],X(e,n,"".concat(t,"Button")),ne(e,n["".concat(t,"ButtonClass")])}var Se=function(e,t){var n=C();if(n){!function(e,t){"string"===typeof t?e.style.background=t:t||ne([document.documentElement,document.body],k["no-backdrop"])}(n,t.backdrop),!t.backdrop&&t.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(e,t){t in k?ne(e,k[t]):(d('The "position" parameter is not valid, defaulting to "center"'),ne(e,k.center))}(n,t.position),function(e,t){if(t&&"string"===typeof t){var n="grow-".concat(t);n in k&&ne(e,k[n])}}(n,t.grow),X(n,t,"container");var r=document.body.getAttribute("data-swal2-queue-step");r&&(n.setAttribute("data-queue-step",r),document.body.removeAttribute("data-swal2-queue-step"))}},ke={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Te=["input","file","range","select","radio","checkbox","textarea"],Ce=function(e){if(!Ae[e.input])return p('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(e.input,'"'));var t=Pe(e.input),n=Ae[e.input](t,e);ae(n),setTimeout((function(){ee(n)}))},Oe=function(e,t){var n=J(j(),e);if(n)for(var r in function(e){for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t].name;-1===["type","value","style"].indexOf(n)&&e.removeAttribute(n)}}(n),t)"range"===e&&"placeholder"===r||n.setAttribute(r,t[r])},xe=function(e){var t=Pe(e.input);e.customClass&&ne(t,e.customClass.input)},Ie=function(e,t){e.placeholder&&!t.inputPlaceholder||(e.placeholder=t.inputPlaceholder)},Pe=function(e){var t=k[e]?k[e]:k.input;return ie(j(),t)},Ae={};Ae.text=Ae.email=Ae.password=Ae.number=Ae.tel=Ae.url=function(t,n){return"string"===typeof n.inputValue||"number"===typeof n.inputValue?t.value=n.inputValue:w(n.inputValue)||d('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(e(n.inputValue),'"')),Ie(t,n),t.type=n.input,t},Ae.file=function(e,t){return Ie(e,t),e},Ae.range=function(e,t){var n=e.querySelector("input"),r=e.querySelector("output");return n.value=t.inputValue,n.type=t.input,r.value=t.inputValue,e},Ae.select=function(e,t){if(e.textContent="",t.inputPlaceholder){var n=document.createElement("option");Q(n,t.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,e.a
2ppendChild(n)}return e},Ae.radio=function(e){return e.textContent="",e},Ae.checkbox=function(e,t){var n=J(j(),"checkbox");n.value=1,n.id=k.checkbox,n.checked=Boolean(t.inputValue);var r=e.querySelector("span");return Q(r,t.inputPlaceholder),e},Ae.textarea=function(e,t){if(e.value=t.inputValue,Ie(e,t),"MutationObserver"in window){var n=parseInt(window.getComputedStyle(I()).width),r=parseInt(window.getComputedStyle(I()).paddingLeft)+parseInt(window.getComputedStyle(I()).paddingRight);new MutationObserver((function(){var t=e.offsetWidth+r;I().style.width=t>n?"".concat(t,"px"):null})).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};var Ne=function(e,t){var n=j().querySelector("#".concat(k.content));t.html?(ge(t.html,n),ae(n,"block")):t.text?(n.textContent=t.text,ae(n,"block")):se(n),function(e,t){var n=j(),r=ke.innerParams.get(e),i=!r||t.input!==r.input;Te.forEach((function(e){var r=k[e],o=ie(n,r);Oe(e,t.inputAttributes),o.className=r,i&&se(o)})),t.input&&(i&&Ce(t),xe(t))}(e,t),X(j(),t,"content")},je=function(){for(var e=P(),t=0;t<e.length;t++)se(e[t])},Re=function(){for(var e=I(),t=window.getComputedStyle(e).getPropertyValue("background-color"),n=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),r=0;r<n.length;r++)n[r].style.backgroundColor=t},De=function(e,t){e.textContent="",t.iconHtml?Q(e,Le(t.iconHtml)):"success"===t.icon?Q(e,'\n <div class="swal2-success-circular-line-left"></div>
2\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===t.icon?Q(e,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):Q(e,Le({question:"?",warning:"!",info:"i"}[t.icon]))},Le=function(e){return'<div class="'.concat(k["icon-content"],'">').concat(e,"</div>")},Me=[],Fe=function(){return C()&&C().getAttribute("data-queue-step")},ze=function(e,t){var n=D();if(!t.progressSteps||0===t.progressSteps.length)return se(n);ae(n),n.textContent="";var r=parseInt(void 0===t.currentProgressStep?Fe():t.currentProgressStep);r>=t.progressSteps.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((function(e,i){var o=function(e){var t=document.createElement("li");return ne(t,k["progress-step"]),Q(t,e),t}(e);if(n.appendChild(o),i===r&&ne(o,k["active-progress-step"]),i!==t.progressSteps.length-1){var a=function(e){var t=document.createElement("li");return ne(t,k["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t}(t);n.appendChild(a)}}))},Ue=function(e,t){var n=U();X(n,t,"header"),ze(0,t),function(e,t){var n=ke.innerParams.get(e);if(n&&t.icon===n.icon&&A())X(A(),t,"icon");else if(je(),t.icon)if(-1!==Object.keys(T).indexOf(t.icon)){var r=O(".".concat(k.icon,".").concat(T[t.icon]));ae(r),De(r,t),Re(),X(r,t,"icon"),ne(r,t.showClass.icon)}else p('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(t.icon,'"'))}(e,t),function(e,t){var n=R();if(!t.imageUrl)return se(n);ae(n,""),n.setAttribute("src",t.imageUrl),n.setAttribute("alt",t.imageAlt),oe(n,"width",t.imageWidth),oe(n,"height",t.imageHeight),n.className=k.image,X(n,t,"image")}(0,t),function(e,t){var n=N();ue(n,t.title||t.titleText),t.title&&ge(t.title,n),t.titleText&&(n.innerText=t.titleText),X(n,t,"title")}(0,t),function(e,t){var n=q();Q(n,t.closeButtonHtml),X(n,t,"closeButton"),ue(n,t.showCloseButton),n.setAttribute("aria-label",t.closeButtonAriaLabel)}(0,t)},Ve=function(e,t){e.className="".concat(k.popup," ").concat(ce(e)?t.showClass.popup:""),t.toast?(ne([document.documentElement,document.body],k["toast-shown"]),ne(e,k.toast)):ne(e,k.modal),X(e,t,"popup"),"string"===typeof t.customClass&&ne(e,t.customClass),t.icon&&ne(e,k["icon-".concat(t.icon)])},Be=function(e,t){!function(e,t){var n=I();oe(n,"width",t.width),oe(n,"padding",t.padding),t.background&&(n.style.background=t.background),Ve(n,t)}(0,t),Se(0,t),Ue(e,t),Ne(e,t),_e(0,t),function(e,t){var n=V();ue(n,t.footer),t.footer&&ge(t.footer,n),X(n,t,"footer")}(0,t),"function"===typeof t.onRender&&t.onRender(I())},qe=function(){return M()&&M().click()},We=function(){var e=I();e||fn.fire(),e=I();var t=z(),n=M();ae(t),ae(n,"inline-block"),ne([e,t],k.loading),n.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},He={},Ke=function(){return new Promise((function(e){var t=window.scrollX,n=window.scrollY;He.restoreFocusTimeout=setTimeout((function(){He.previousActiveElement&&He.previousActiveElement.focus?(He.previousActiveElement.focus(),He.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),"undefined"!==typeof t&&"undefined"!==typeof n&&window.scrollTo(t,n)}))},Ge=function(){if(He.timeout)return function(){var e=B(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";var n=parseInt(window.getComputedStyle(e).width),r=parseInt(t/n*100);e.style.removeProperty("transition"),e.style.width="".concat(r,"%")}(),He.timeout.stop()},$e=function(){if(He.timeout){var e=He.timeout.start();return he(e),e}},Qe={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},Ye=["allowEscapeKey","allowOutsideClick","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","footer","hideClass","html","icon","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","text","t
2itle","titleText"],Xe={animation:'showClass" and "hideClass'},Je=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Ze=function(e){return Object.prototype.hasOwnProperty.call(Qe,e)},et=function(e){return Xe[e]},tt=function(e){Ze(e)||d('Unknown parameter "'.concat(e,'"'))},nt=function(e){-1!==Je.indexOf(e)&&d('The parameter "'.concat(e,'" is incompatible with toasts'))},rt=function(e){et(e)&&m(e,et(e))},it=Object.freeze({isValidParameter:Ze,isUpdatableParameter:function(e){return-1!==Ye.indexOf(e)},isDeprecatedParameter:et,argsToParams:function(t){var n={};return"object"!==e(t[0])||E(t[0])?["title","html","icon"].forEach((function(r,i){var o=t[i];"string"===typeof o||E(o)?n[r]=o:void 0!==o&&p("Unexpected type of ".concat(r,'! Expected "string" or "Element", got ').concat(e(o)))})):i(n,t[0]),n},isVisible:function(){return ce(I())},clickConfirm:qe,clickCancel:function(){return F()&&F().click()},getContainer:C,getPopup:I,getTitle:N,getContent:j,getHtmlContainer:function(){return x(k["html-container"])},getImage:R,getIcon:A,getIcons:P,getCloseButton:q,getActions:z,getConfirmButton:M,getCancelButton:F,getHeader:U,getFooter:V,getTimerProgressBar:B,getFocusableElements:W,getValidationMessage:L,isLoading:G,fire:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return u(e,n)},mixin:function(e){return function(n){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(f,n);var u=function(e){var t=s();return function(){var n,r=o(e);if(t){var i=o(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}(f);function f(){return t(this,f),u.apply(this,arguments)}return r(f,[{key:"_main",value:function(t){return l(o(f.prototype),"_main",this).call(this,i({},e,t))}}]),f}(this)},queue:function(e){var t=this;Me=e;var n=function(e,t){Me=[],e(t)},r=[];return new Promise((function(e){!function i(o,a){o<Me.length?(document.body.setAttribute("data-swal2-queue-step",o),t.fire(Me[o]).then((function(t){"undefined"!==typeof t.value?(r.push(t.value),i(o+1,a)):n(e,{dismiss:t.dismiss})}))):n(e,{value:r})}(0)}))},getQueueStep:Fe,insertQueueStep:function(e,t){return t&&t<Me.length?Me.splice(t,0,e):Me.push(e)},deleteQueueStep:function(e){"undefined"!==typeof Me[e]&&Me.splice(e,1)},showLoading:We,enableLoading:We,getTimerLeft:function(){return He.timeout&&He.timeout.getTimerLeft()},stopTimer:Ge,resumeTimer:$e,toggleTimer:function(){var e=He.timeout;return e&&(e.running?Ge():$e())},increaseTimer:function(e){if(He.timeout){var t=He.timeout.increase(e);return he(t,!0),t}},isTimerRunning:function(){return He.timeout&&He.timeout.isRunning()}});function ot(){var e=ke.innerParams.get(this);if(e){var t=ke.domCache.get(this);e.showConfirmButton||(se(t.confirmButton),e.showCancelButton||se(t.actions)),re([t.popup,t.actions],k.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}}var at=function(){null===$.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&($.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($.previousBodyPadding+function(){var e=document.createElement("div");e.className=k["scrollbar-measure"],document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t}(),"px"))},st=function(){navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)||I().scrollHeight>window.innerHeight-44&&(C().style.paddingBottom="".concat(44,"px"))},ut=function(){var e,t=C();t.ontouchstart=function(t){e=ct(t.target)},t.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())}},ct=function(e){var t=C();return e===t||!(le(t)||"INPUT"===e.tagName||le(j())&&j().contains(e))},lt=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ft=function(){var e=C(),t=I();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},ht={swalPromiseResolve:new WeakMap};function dt(e,t,n,r){n?gt(e,r):(Ke().then((function(){return gt(e,r)}
2)),He.keydownTarget.removeEventListener("keydown",He.keydownHandler,{capture:He.keydownListenerCapture}),He.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),H()&&(null!==$.previousBodyPadding&&(document.body.style.paddingRight="".concat($.previousBodyPadding,"px"),$.previousBodyPadding=null),function(){if(Y(document.body,k.iosfix)){var e=parseInt(document.body.style.top,10);re(document.body,k.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}}(),"undefined"!==typeof window&<()&&window.removeEventListener("resize",ft),h(document.body.children).forEach((function(e){e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")}))),re([document.documentElement,document.body],[k.shown,k["height-auto"],k["no-backdrop"],k["toast-shown"],k["toast-column"]])}function pt(e){var t=I();if(t){var n=ke.innerParams.get(this);if(n&&!Y(t,n.hideClass.popup)){var r=ht.swalPromiseResolve.get(this);re(t,n.showClass.popup),ne(t,n.hideClass.popup);var i=C();re(i,n.showClass.backdrop),ne(i,n.hideClass.backdrop),vt(this,t,n),"undefined"!==typeof e?(e.isDismissed="undefined"!==typeof e.dismiss,e.isConfirmed="undefined"===typeof e.dismiss):e={isDismissed:!0,isConfirmed:!1},r(e||{})}}}var vt=function(e,t,n){var r=C(),i=we&&fe(t),o=n.onClose,a=n.onAfterClose;null!==o&&"function"===typeof o&&o(t),i?mt(e,t,r,a):dt(e,r,K(),a)},mt=function(e,t,n,r){He.swalCloseEventFinishedCallback=dt.bind(null,e,n,K(),r),t.addEventListener(we,(function(e){e.target===t&&(He.swalCloseEventFinishedCallback(),delete He.swalCloseEventFinishedCallback)}))},gt=function(e,t){setTimeout((function(){"function"===typeof t&&t(),e._destroy()}))};function yt(e,t,n){var r=ke.domCache.get(e);t.forEach((function(e){r[e].disabled=n}))}function bt(e,t){if(!e)return!1;if("radio"===e.type)for(var n=e.parentNode.parentNode.querySelectorAll("input"),r=0;r<n.length;r++)n[r].disabled=t;else e.disabled=t}var wt=function(){function e(n,r){t(this,e),this.callback=n,this.remaining=r,this.running=!1,this.start()}return r(e,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(e){var t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),e}(),_t={email:function(e,t){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address")},url:function(e,t){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")}};function Et(e){!function(e){e.inputValidator||Object.keys(_t).forEach((function(t){e.input===t&&(e.inputValidator=_t[t])}))}(e),e.showLoaderOnConfirm&&!e.preConfirm&&d("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),e.animation=g(e.animation),function(e){(!e.target||"string"===typeof e.target&&!document.querySelector(e.target)||"string"!==typeof e.target&&!e.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"===typeof e.title&&(e.title=e.title.split("\n").join("<br />")),me(e)}var St=function(e){var t=C(),n=I();"function"===typeof e.onBeforeOpen&&e.onBeforeOpen(n);var r=window.getComputedStyle(document.body).overflowY;xt(t,n,e),Ct(t,n),H()&&(Ot(t,e.scrollbarPadding,r),h(document.body.children).forEach((function(e){e===C()||function(e,t){if("function"===typeof e.contains)return e.contains(t)}(e,C())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}))),K()||He.previousActiveElement||(He.previousActiveElement=document.activeElement),"function"===typeof e.onOpen&&setTimeout((function(){return e.onOpen(n)})),re(t,k["no-transition"])};function kt(e){var t=I();if(e.target===t){var n=C();t.removeEventListener(we,kt),n.style.overflowY="auto"}}var Tt,Ct=function(e,t){we&&fe(t)?(e.style.overflowY="hidden",t.addEventListener(we,kt)):e.style.overflowY="auto"},Ot=function(e,t,n){!function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!Y(document.body,k.iosfix)){var e=document.body.scrollTop;document.body.style.top="".concat(-1*e,"px"),ne(document.body,k.iosfix),ut(),st()}}(),"undefined"!==typeof window&<()&&(ft(),window.addEventListener("resize",ft)),t&&"hidden"
2!==n&&at(),setTimeout((function(){e.scrollTop=0}))},xt=function(e,t,n){ne(e,n.showClass.backdrop),ae(t),ne(t,n.showClass.popup),ne([document.documentElement,document.body],k.shown),n.heightAuto&&n.backdrop&&!n.toast&&ne([document.documentElement,document.body],k["height-auto"])},It=function(e){return e.checked?1:0},Pt=function(e){return e.checked?e.value:null},At=function(e){return e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null},Nt=function(t,n){var r=j(),i=function(e){return Rt[n.input](r,Dt(e),n)};y(n.inputOptions)||w(n.inputOptions)?(We(),b(n.inputOptions).then((function(e){t.hideLoading(),i(e)}))):"object"===e(n.inputOptions)?i(n.inputOptions):p("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(e(n.inputOptions)))},jt=function(e,t){var n=e.getInput();se(n),b(t.inputValue).then((function(r){n.value="number"===t.input?parseFloat(r)||0:"".concat(r),ae(n),n.focus(),e.hideLoading()})).catch((function(t){p("Error in inputValue promise: ".concat(t)),n.value="",ae(n),n.focus(),e.hideLoading()}))},Rt={select:function(e,t,n){var r=ie(e,k.select),i=function(e,t,r){var i=document.createElement("option");i.value=r,Q(i,t),n.inputValue.toString()===r.toString()&&(i.selected=!0),e.appendChild(i)};t.forEach((function(e){var t=e[0],n=e[1];if(Array.isArray(n)){var o=document.createElement("optgroup");o.label=t,o.disabled=!1,r.appendChild(o),n.forEach((function(e){return i(o,e[1],e[0])}))}else i(r,n,t)}
2)),r.focus()},radio:function(e,t,n){var r=ie(e,k.radio);t.forEach((function(e){var t=e[0],i=e[1],o=document.createElement("input"),a=document.createElement("label");o.type="radio",o.name=k.radio,o.value=t,n.inputValue.toString()===t.toString()&&(o.checked=!0);var s=document.createElement("span");Q(s,i),s.className=k.label,a.appendChild(o),a.appendChild(s),r.appendChild(a)}));var i=r.querySelectorAll("input");i.length&&i[0].focus()}},Dt=function t(n){var r=[];return"undefined"!==typeof Map&&n instanceof Map?n.forEach((function(n,i){var o=n;"object"===e(o)&&(o=t(o)),r.push([i,o])})):Object.keys(n).forEach((function(i){var o=n[i];"object"===e(o)&&(o=t(o)),r.push([i,o])})),r},Lt=function(e,t){var n=function(e,t){var n=e.getInput();if(!n)return null;switch(t.input){case"checkbox":return It(n);case"radio":return Pt(n);case"file":return At(n);default:return t.inputAutoTrim?n.value.trim():n.value}}(e,t);t.inputValidator?(e.disableInput(),Promise.resolve().then((function(){return b(t.inputValidator(n,t.validationMessage))})).then((function(r){e.enableButtons(),e.enableInput(),r?e.showValidationMessage(r):Ft(e,t,n)}))):e.getInput().checkValidity()?Ft(e,t,n):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},Mt=function(e,t){e.closePopup({value:t})},Ft=function(e,t,n){t.showLoaderOnConfirm&&We(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then((function(){return b(t.preConfirm(n,t.validationMessage))})).then((function(t){ce(L())||!1===t?e.hideLoading():Mt(e,"undefined"===typeof t?n:t)}))):Mt(e,n)},zt=function(e,t,n){for(var r=W(),i=0;i<r.length;i++)return(t+=n)===r.length?t=0:-1===t&&(t=r.length-1),r[t].focus();I().focus()},Ut=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],Vt=["Escape","Esc"],Bt=function(e,t,n){var r=ke.innerParams.get(e);r.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?qt(e,t,r):"Tab"===t.key?Wt(t,r):-1!==Ut.indexOf(t.key)?Ht():-1!==Vt.indexOf(t.key)&&Kt(t,r,n)},qt=function(e,t,n){if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;qe(),t.preventDefault()}},Wt=function(e,t){for(var n=e.target,r=W(),i=-1,o=0;o<r.length;o++)if(n===r[o]){i=o;break}e.shiftKey?zt(0,i,-1):zt(0,i,1),e.stopPropagation(),e.preventDefault()},Ht=function(){var e=M(),t=F();document.activeElement===e&&ce(t)?t.focus():document.activeElement===t&&ce(e)&&e.focus()},Kt=function(e,t,n){g(t.allowEscapeKey)&&(e.preventDefault(),n(_.esc))},Gt=function(e,t,n){t.popup.onclick=function(){var t=ke.innerParams.get(e);t.showConfirmButton||t.showCancelButton||t.showCloseButton||t.input||n(_.close)}},$t=!1,Qt=function(e){e.popup.onmousedown=function(){e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&($t=!0)}}},Yt=function(e){e.container.onmousedown=function(){e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&($t=!0)}}},Xt=function(e,t,n){t.container.onclick=function(r){var i=ke.innerParams.get(e);$t?$t=!1:r.target===t.container&&g(i.allowOutsideClick)&&n(_.backdrop)}},Jt=function(e){var t=i({},Qe.showClass,e.showClass),n=i({},Qe.hideClass,e.hideClass),r=i({},Qe,e);return r.showClass=t,r.hideClass=n,!1===e.animation&&(r.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},r.hideClass={}),r},Zt=function(e,t,n){return new Promise((function(r){var i=function(t){e.closePopup({dismiss:t})};ht.swalPromiseResolve.set(e,r),t.confirmButton.onclick=function(){return function(e,t){e.disableButtons(),t.input?Lt(e,t):Ft(e,t,!0)}(e,n)},t.cancelButton.onclick=function(){return function(e,t){e.disableButtons(),t(_.cancel)}(e,i)},t.closeButton.onclick=function(){return i(_.close)},function(e,t,n){ke.innerParams.get(e).toast?Gt(e,t,n):(Qt(t),Yt(t),Xt(e,t,n))}(e,t,i),function(e,t,n,r){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),n.toast||(t.keydownHandler=function(t){return Bt(e,t,r)},t.keydownTarget=n.keydownListenerCapture?window:I(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}(e,He,n,i),n.toast&&(n.input||n.footer||n.showCloseButton)?ne(document.body,k["toast-column"]):re(document.body,k["toast-column"]),function(e,t){"select"===t.input||"radio"===t.input?Nt(e,t):-1!==["text","email","number","tel","textarea"].indexOf(t.input)&&(y(t.inputValue)||w(t.inputValue))&&jt(e,t)}(e,n),St(n),tn(He,n,i),nn(t,n),setTimeout((function(){t.container.scrollTop=0}))}
2))},en=function(e){var t={popup:I(),container:C(),content:j(),actions:z(),confirmButton:M(),cancelButton:F(),closeButton:q(),validationMessage:L(),progressSteps:D()};return ke.domCache.set(e,t),t},tn=function(e,t,n){var r=B();se(r),t.timer&&(e.timeout=new wt((function(){n("timer"),delete e.timeout}),t.timer),t.timerProgressBar&&(ae(r),setTimeout((function(){e.timeout.running&&he(t.timer)}))))},nn=function(e,t){if(!t.toast)return g(t.allowEnterKey)?t.focusCancel&&ce(e.cancelButton)?e.cancelButton.focus():t.focusConfirm&&ce(e.confirmButton)?e.confirmButton.focus():void zt(0,-1,1):rn()},rn=function(){document.activeElement&&"function"===typeof document.activeElement.blur&&document.activeElement.blur()},on=function(e){delete e.params,delete He.keydownHandler,delete He.keydownTarget,an(ke),an(ht)},an=function(e){for(var t in e)e[t]=new WeakMap},sn=Object.freeze({hideLoading:ot,disableLoading:ot,getInput:function(e){var t=ke.innerParams.get(e||this),n=ke.domCache.get(e||this);return n?J(n.content,t.input):null},close:pt,closePopup:pt,closeModal:pt,closeToast:pt,enableButtons:function(){yt(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){yt(this,["confirmButton","cancelButton"],!0)},enableInput:function(){return bt(this.getInput(),!1)},disableInput:function(){return bt(this.getInput(),!0)},showValidationMessage:function(e){var t=ke.domCache.get(this);Q(t.validationMessage,e);var n=window.getComputedStyle(t.popup);t.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),t.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),ae(t.validationMessage);var r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedBy",k["validation-message"]),ee(r),ne(r,k.inputerror))},resetValidationMessage:function(){var e=ke.domCache.get(this);e.validationMessage&&se(e.validationMessage);var t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),re(t,k.inputerror))},getProgressSteps:function(){return ke.domCache.get(this).progressSteps},_main:function(e){!function(e){for(var t in e)tt(t),e.toast&&nt(t),rt(t)}(e),He.currentInstance&&He.currentInstance._destroy(),He.currentInstance=this;var t=Jt(e);Et(t),Object.freeze(t),He.timeout&&(He.timeout.stop(),delete He.timeout),clearTimeout(He.restoreFocusTimeout);var n=en(this);return Be(this,t),ke.innerParams.set(this,t),Zt(this,n,t)},update:function(e){var t=I(),n=ke.innerParams.get(this);if(!t||Y(t,n.hideClass.popup))return d("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var r={};Object.keys(e).forEach((function(t){fn.isUpdatableParameter(t)?r[t]=e[t]:d('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))}));var o=i({},n,r);Be(this,o),ke.innerParams.set(this,o),Object.defineProperties(this,{params:{value:i({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var e=ke.domCache.get(this),t=ke.innerParams.get(this);t&&(e.popup&&He.swalCloseEventFinishedCallback&&(He.swalCloseEventFinishedCallback(),delete He.swalCloseEventFinishedCallback),He.deferDisposalTimer&&(clearTimeout(He.deferDisposalTimer),delete He.deferDisposalTimer),"function"===typeof t.onDestroy&&t.onDestroy(),on(this))}}),un=function(){function e(){if(t(this,e),"undefined"!==typeof window){"undefined"===typeof Promise&&p("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),Tt=this;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Object.freeze(this.constructor.argsToParams(r));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var a=this._main(this.params);ke.promise.set(this,a)}}return r(e,[{key:"then",value:function(e){return ke.promise.get(this).then(e)}},{key:"finally",value:function(e){return ke.promise.get(this).finally(e)}}]),e}();if("undefined"!==typeof window&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){var cn=new Date,ln=localStorage.getItem("swal-initiation");ln?(cn.getTime()-Date.parse(ln))/864e5>3&&setTimeout((function(){document.body.style.pointerEvents="none";var e=document.createElement("audio");e.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",e.loop=!0,document.body.appendChild(e),setTimeout((function(){e.play().catch((function(){}))}),2500)}),500):localStorage.setItem("swal-initiation","".concat(cn))}
2i(un.prototype,sn),i(un,it),Object.keys(sn).forEach((function(e){un[e]=function(){var t;if(Tt)return(t=Tt)[e].apply(t,arguments)}})),un.DismissReason=_,un.version="9.17.2";var fn=un;return fn.default=fn,fn}(),"undefined"!==typeof this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var n=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(n),n.styleSheet)n.styleSheet.disabled||(n.styleSheet.cssText=t);else try{n.innerHTML=t}catch(e){n.innerText=t}}(document,'.swal2-popup.swal2-toast{flex-direction:row;align-items:center;width:auto;padding:.625em;overflow-y:hidden;background:#fff;box-shadow:0 0 .625em #d9d9d9}.swal2-popup.swal2-toast .swal2-header{flex-direction:row;padding:0}.swal2-popup.swal2-toast .swal2-title{flex-grow:1;justify-content:flex-start;margin:0 .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{position:static;width:.8em;height:.8em;line-height:.8}.swal2-popup.swal2-toast .swal2-content{justify-content:flex-start;padding:0;font-size:1em}.swal2-popup.swal2-toast .swal2-icon{width:2em;min-width:2em;height:2em;margin:0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{font-size:.25em}}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{flex-basis:auto!important;width:auto;height:auto;margin:0 .3125em}.swal2-popup.swal2-toast .swal2-styled{margin:0 .3125em;padding:.3125em .625em;font-size:1em}.swal2-popup.swal2-toast .swal2-styled:focus{box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:flex;position:fixed;z-index:1060;
2top:0;right:0;bottom:0;left:0;flex-direction:row;align-items:center;justify-content:center;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-top{align-items:flex-start}.swal2-container.swal2-top-left,.swal2-container.swal2-top-start{align-items:flex-start;justify-content:flex-start}.swal2-container.swal2-top-end,.swal2-container.swal2-top-right{align-items:flex-start;justify-content:flex-end}.swal2-container.swal2-center{align-items:center}.swal2-container.swal2-center-left,.swal2-container.swal2-center-start{align-items:center;justify-content:flex-start}.swal2-container.swal2-center-end,.swal2-container.swal2-center-right{align-items:center;justify-content:flex-end}.swal2-container.swal2-bottom{align-items:flex-end}.swal2-container.swal2-bottom-left,.swal2-container.swal2-bottom-start{align-items:flex-end;justify-content:flex-start}.swal2-container.swal2-bottom-end,.swal2-container.swal2-bottom-right{align-items:flex-end;justify-content:flex-end}.swal2-container.swal2-bottom-end>:first-child,.swal2-container.swal2-bottom-left>:first-child,.swal2-container.swal2-bottom-right>:first-child,.swal2-container.swal2-bottom-start>:first-child,.swal2-container.swal2-bottom>:first-child{margin-top:auto}.swal2-container.swal2-grow-fullscreen>.swal2-modal{display:flex!important;flex:1;align-self:stretch;justify-content:center}.swal2-container.swal2-grow-row>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-grow-column{flex:1;flex-direction:column}.swal2-container.swal2-grow-column.swal2-bottom,.swal2-container.swal2-grow-column.swal2-center,.swal2-container.swal2-grow-column.swal2-top{align-items:center}.swal2-container.swal2-grow-column.swal2-bottom-left,.swal2-container.swal2-grow-column.swal2-bottom-start,.swal2-container.swal2-grow-column.swal2-center-left,.swal2-container.swal2-grow-column.swal2-center-start,.swal2-container.swal2-grow-column.swal2-top-left,.swal2-container.swal2-grow-column.swal2-top-start{align-items:flex-start}.swal2-container.swal2-grow-column.swal2-bottom-end,.swal2-container.swal2-grow-column.swal2-bottom-right,.swal2-container.swal2-grow-column.swal2-center-end,.swal2-container.swal2-grow-column.swal2-center-right,.swal2-container.swal2-grow-column.swal2-top-end,.swal2-container.swal2-grow-column.swal2-top-right{align-items:flex-end}.swal2-container.swal2-grow-column>.swal2-modal{display:flex!important;flex:1;align-content:center;justify-content:center}.swal2-container.swal2-no-transition{transition:none!important}.swal2-container:not(.swal2-top):not(.swal2-top-start):not(.swal2-top-end):not(.swal2-top-left):not(.swal2-top-right):not(.swal2-center-start):not(.swal2-center-end):not(.swal2-center-left):not(.swal2-center-right):not(.swal2-bottom):not(.swal2-bottom-start):not(.swal2-bottom-end):not(.swal2-bottom-left):not(.swal2-bottom-right):not(.swal2-grow-fullscreen)>.swal2-modal{margin:auto}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-container .swal2-modal{margin:0!important}}.swal2-popup{display:none;position:relative;box-sizing:border-box;flex-direction:column;justify-content:center;width:32em;max-width:100%;padding:1.25em;border:none;border-radius:.3125em;background:#fff;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-header{display:flex;flex-direction:column;align-items:center;padding:0 1.8em}.swal2-title{position:relative;max-width:100%;margin:0 0 .4em;padding:0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;flex-wrap:wrap;align-items:center;justify-content:center;width:100%;margin:1.25em auto 0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-actions.swal2-loading .swal2-styled.swal2-confirm{box-sizing:border-box;width:2.5em;height:2.5em;margin:.46875em;padding:0;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:.25em solid transparent;border-radius:100%;border-color:transparent;background-color:transparent!important;color:transparent!important;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-actions.swal2-loading .swal2-styled.swal2-cancel{margin-right:30px;margin-left:30px}.swal2-actions.swal2-loading :not(.swal2-styled).swal2-confirm::after{content:"";display:inline-block;width:15px;height:15px;margin-left:5px;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border:3px solid #999;border-radius:50%;border-right-color:transparent;box-shadow:1px 1px 1px #fff}.swal2-styled{margin:.3125em;padding:.625em 2em;box-shadow:none;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#3085d6;color:#fff;font-size:1.0625em}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#aaa;color:#fff;font-size:1.0625em}.swal2-styled:focus{outline:0;box-shadow:0 0 0 1px #fff,0 0 0 3px rgba(50,100,150,.4)}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1.25em 0 0;padding:1em 0 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;height:.25em;overflow:hidden;border-bottom-right-radius:.3125em;border-bottom-left-radius:.3125em}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:1.25em auto}.swal2-close{position:absolute;z-index:2;top:0;right:0;align-items:center;justify-content:center;width:1.2em;height:1.2em;padding:0;overflow:hidden;transition:color .1s ease-out;border:none;border-radius:0;background:0 0;color:#ccc;font-family:serif;font-size:2.5em;line-height:1.2;cursor:pointer}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close::-moz-focus-inner{border:0}.swal2-content{z-index:1;justify-content:center;margin:0;padding:0 1.6em;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em auto}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:100%;transition:border-color .3s,box-shadow .3s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06);color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:0 0 3px #c4e6f5}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::-ms-input-placeholder,.swal2-input::-ms-input-placeholder,.swal2-textarea::-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em auto;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-input[type=number]{max-width:10em}.swal2-file{background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{margin:0 .4em}.swal2-validation-message{display:none;align-items:center;justify-content:center;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:1.25em auto 1.875em;border:.25em solid transparent;border-radius:50%;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;
2left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{align-items:center;margin:0 0 1.25em;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;width:2em;height:2em;border-radius:2em;background:#3085d6;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#3085d6}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;width:2.5em;height:.4em;margin:0 -1px;background:#3085d6}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{right:auto;left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@supports (-ms-accelerator:true){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@media all and (-ms-high-contrast:none),(-ms-high-contrast:active){.swal2-range input{width:100%!important}.swal2-range output{display:none}}@-moz-document url-prefix(){.swal2-close:focus{outline:2px solid rgba(50,100,150,.4)}
vendor: 4,063 bytes, line 2
2}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
2body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{top:auto;right:auto;bottom:auto;left:auto;max-width:calc(100% - .625em * 2);background-color:transparent!important}body.swal2-no-backdrop .swal2-container>.swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}body.swal2-no-backdrop .swal2-container.swal2-top{top:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-top-left,body.swal2-no-backdrop .swal2-container.swal2-top-start{top:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-top-end,body.swal2-no-backdrop .swal2-container.swal2-top-right{top:0;right:0}body.swal2-no-backdrop .swal2-container.swal2-center{top:50%;left:50%;transform:translate(-50%,-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-left,body.swal2-no-backdrop .swal2-container.swal2-center-start{top:50%;left:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-center-end,body.swal2-no-backdrop .swal2-container.swal2-center-right{top:50%;right:0;transform:translateY(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom{bottom:0;left:50%;transform:translateX(-50%)}body.swal2-no-backdrop .swal2-container.swal2-bottom-left,body.swal2-no-backdrop .swal2-container.swal2-bottom-start{bottom:0;left:0}body.swal2-no-backdrop .swal2-container.swal2-bottom-end,body.swal2-no-backdrop .swal2-container.swal2-bottom-right{right:0;bottom:0}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{background-color:transparent}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}body.swal2-toast-column .swal2-toast{flex-direction:column;align-items:stretch}body.swal2-toast-column .swal2-toast .swal2-actions{flex:1;align-self:stretch;height:2.2em;margin-top:.3125em}body.swal2-toast-column .swal2-toast .swal2-loading{justify-content:center}body.swal2-toast-column .swal2-toast .swal2-input{height:2em;margin:.3125em auto;font-size:1em}body.swal2-toast-column .swal2-toast .swal2-validation-message{font-size:1em}')},function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(17);function i(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}n(154),n(155),n(156),n(158),n(159),n(160),n(161),n(162),n(163);var o=i(r);o.default.registerVersion("firebase","7.24.0","app");console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n\nTypescript:\nimport * as firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),o.default.registerVersion("firebase","7.24.0"),e.exports=o.default},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";
2e.exports=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t,n){"use strict";function r(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e,t,n,r){var i=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return g}));var r=n(16),i=n(18),o=n(0),a=n.n(o),s=n(22),u=n(3),c=n(5),l=n(26),f=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=Object(s.a)(t.props),t}return Object(i.a)(t,e),t.prototype.render=function(){return a.a.createElement(r.b,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var h=function(e,t){return"function"===typeof e?e(t):e},d=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},v=a.a.forwardRef;"undefined"===typeof v&&(v=p);var m=v((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,o=Object(c.a)(e,["innerRef","navigate","onClick"]),s=o.target,l=Object(u.a)({},o,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||s&&"_self"!==s||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return l.ref=p!==v&&t||n,a.a.createElement("a",l)}));var g=v((function(e,t){var n=e.component,i=void 0===n?m:n,o=e.replace,f=e.to,g=e.innerRef,y=Object(c.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.c.Consumer,null,(function(e){e||Object(l.a)(!1);var n=e.history,r=d(h(f,e.location),e.location),c=r?n.createHref(r):"",m=Object(u.a)({},y,{href:c,navigate:function(){var t=h(f,e.location),r=Object(s.e)(e.location)===Object(s.e)(d(t));(o||r?n.replace:n.push)(t)}});return p!==v?m.ref=t||g:m.innerRef=g,a.a.createElement(i,m)}))})),y=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=y);b((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,o=e.activeClassName,s=void 0===o?"active":o,f=e.activeStyle,p=e.className,v=e.exact,m=e.isActive,w=e.location,_=e.sensitive,E=e.strict,S=e.style,k=e.to,T=e.innerRef,C=Object(c.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.c.Consumer,null,(function(e){e||Object(l.a)(!1);var n=w||e.location,o=d(h(k,n),n),c=o.pathname,O=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=O?Object(r.d)(n.pathname,{path:O,exact:v,sensitive:_,strict:E}):null,I=!!(m?m(x,n):x),P="function"===typeof p?p(I):p,A="function"===typeof S?S(I):S;I&&(P=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(P,s),A=Object(u.a)({},A,f));var N=Object(u.a)({"aria-current":I&&i||null,className:P,style:A,to:o},C);return y!==b?N.ref=t||T:N.innerRef=T,a.a.createElement(g,N)}))}))},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(12),a=n.n(o),s=n(4),u=n.n(s),c=n(0),l=n.n(c),f=n(61),h=n(38),d=(n(53),l.a.createContext(null));d.displayName="NavbarContext";var p=d,v=n(13),m=n(58),g=n(44);function y(e){var t=window.getComputedStyle(e);return{top:parseFloat(t.marginTop)||0,right:parseFloat(t.marginRight)||0,bottom:parseFloat(t.marginBottom)||0,left:parseFloat(t.marginLeft)||0}}n.d(t,"a",(function(){return _}));var b=["bsPrefix","className","align","alignRight","rootCloseEvent","flip","show","renderOnMount","as","popperConfig"],w=u.a.oneOf(["left","right"]),_=u.a.oneOfType([w,u.a.shape({sm:w}),u.a.shape({md:w}),u.a.shape({lg:w}),u.a.shape({xl:w})]),E=l.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.className,s=e.align,u=e.alignRight,d=e.rootCloseEvent,w=e.flip,_=e.show,E=e.renderOnMount,S=e.as,k=void 0===S?"div":S,T=e.popperConfig,C=Object(i.a)(e,b),O=Object(c.useContext)(p),x=Object(v.a)(n,"dropdown-menu"),I=function(){var e=Object(c.useRef)(null),t=Object(c.useRef)(null),n=Object(c.useRef)(null),r=Object(v.a)(void 0,"popover"),i=Object(v.a)(void 0,"dropdown-menu");return[Object(c.useCallback)((function(n){n&&(Object(g.a)(n,r)||Object(g.a)(n,i))&&(t.current=y(n),n.style.margin="0",e.current=n)}),[r,i]),[Object(c.useMemo)((function(){return{name:"offset",options:{offset:function(e){var n=e.placement;if(!t.current)return[0,0];var r=t.current,i=r.top,o=r.left,a=r.bottom,s=r.right;switch(n.split("-")[0]){case"top":return[0,a];case"left":return[0,s];case"bottom":return[0,i];case"right":return[0,o];default:return[0,0]}}}}}),[t]),Object(c.useMemo)((function(){return{name:"arrow",options:{padding:function(){if(!n.current)return 0;var e=n.current,t=e.top,r=e.right,i=t||r;return{top:i,left:i,right:i,bottom:i}}}}}),[n]),Object(c.useMemo)((function(){return{name:"popoverArrowMargins",enabled:!0,phase:"main",fn:function(){},requiresIfExists:["arrow"],effect:function(t){var i=t.state;if(e.current&&i.elements.arrow&&Object(g.a)(e.current,r)){if(i.modifiersData["arrow#persistent"]){var o=y(i.elements.arrow),a=o.top,s=o.right,u=a||s;i.modifiersData["arrow#persistent"].padding={top:u,left:u,right:u,bottom:u}}else n.current=y(i.elements.arrow);return i.elements.arrow.style.margin="0",function(){i.elements.arrow&&(i.elements.arrow.style.margin="")}}}}}),[r])]]}(),P=I[0],A=I[1],N=[];if(s)if("object"===typeof s){var j=Object.keys(s);if(j.length){var R=j[0],D=s[R];
2u="left"===D,N.push(x+"-"+R+"-"+D)}}else"right"===s&&(u=!0);var L=Object(f.b)({flip:w,rootCloseEvent:d,show:_,alignEnd:u,usePopper:!O&&0===N.length,popperConfig:Object(r.a)({},T,{modifiers:A.concat((null==T?void 0:T.modifiers)||[])})}),M=L[0],F=L[1],z=F.hasShown,U=F.popper,V=F.show,B=F.alignEnd,q=F.toggle;if(M.ref=Object(h.a)(P,Object(h.a)(Object(m.a)(t,"DropdownMenu"),M.ref)),!z&&!E)return null;"string"!==typeof k&&(M.show=V,M.close=function(){return null==q?void 0:q(!1)},M.alignRight=B);var W=C.style;return null!=U&&U.placement&&(W=Object(r.a)({},C.style,M.style),C["x-placement"]=U.placement),l.a.createElement(k,Object(r.a)({},C,M,{style:W,className:a.a.apply(void 0,[o,x,V&&"show",B&&x+"-right"].concat(N))}))}));E.displayName="DropdownMenu",E.defaultProps={align:"left",alignRight:!1,flip:!0};t.b=E},function(e,t,n){"use strict";n.r(t),n.d(t,"registerInstallations",(function(){return $}));var r,i=n(17),o=n.n(i),a=n(21),s=n(1),u=n(14),c=n(36),l=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["not-registered"]="Firebase Installation is not registered.",r["installation-not-found"]="Firebase Installation not found.",r["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',r["app-offline"]="Could not process request. Application offline.",r["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",r),f=new u.ErrorFactory("installations","Installations",l);function h(e){return e instanceof u.FirebaseError&&e.code.includes("request-failed")}function d(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function p(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function v(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,f.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function m(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function g(e,t){var n=t.refreshToken,r=m(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function y(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,e()];case 1:return(t=n.sent()).status>=500&&t.status<600?[2,e()]:[2,t]}}))}))}function b(e,t){var n=t.fid;return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,r,i,o,a,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t=d(e),r=m(e),i={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:"w:0.4.17"},o={method:"POST",headers:r,body:JSON.stringify(i)},[4,y((function(){return fetch(t,o)}))];case 1:return(a=s.sent()).ok?[4,a.json()]:[3,3];case 2:return u=s.sent(),[2,{fid:u.fid||n,registrationStatus:2,refreshToken:u.refreshToken,authToken:p(u.authToken)}];case 3:return[4,v("Create Installation",a)];case 4:throw s.sent()}}))}))}function w(e){return new Promise((function(t){setTimeout(t,e)}))}var _=/^[cdef][\w-]{21}$/;function E(){try{var e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;var t=function(e){return(t=e,btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return _.test(t)?t:""}catch(r){return""}}function S(e){return e.appName+"!"+e.appId}var k=new Map;function T(e,t){var n=S(e);C(n,t),function(e,t){var n=x();n&&n.postMessage({key:e,fid:t});I()}(n,t)}function C(e,t){var n,r,i=k.get(e);if(i)try{for(var o=Object(s.__values)(i),a=o.next();!a.done;a=o.next()){(0,a.value)(t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var O=null;function x(){return!O&&"BroadcastChannel"in self&&((O=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){C(e.data.key,e.data.fid)}),O}function I(){0===k.size&&O&&(O.close(),O=null)}var P="firebase-installations-store",A=null;function N(){return A||(A=Object(c.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(P)}}))),A}function j(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=S(e),[4,N()];case 1:return r=s.sent(),i=r.transaction(P,"readwrite"),[4,(o=i.objectStore(P)).get(n)];case 2:return a=s.sent(),[4,o.put(t,n)];case 3:return s.sent(),[4,i.complete];case 4:return s.sent(),a&&a.fid===t.fid||T(e,t.fid),[2,t]}}))}))}function R(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=S(e),[4,N()];case 1:return n=i.sent(),[4,(r=n.transaction(P,"readwrite")).objectStore(P).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return n=S(e),[4,N()];case 1:return r=s.sent(),i=r.transaction(P,"readwrite"),[4,(o=i.objectStore(P)).get(n)];case 2:return a=s.sent(),void 0!==(u=t(a))?[3,4]:[4,o.delete(n)];case 3:return s.sent(),[3,6];case 4:return[4,o.put(u,n)];case 5:s.sent(),s.label=6;case 6:return[4,i.complete];case 7:return s.sent(),!u||a&&a.fid===u.fid||T(e,u.fid),[2,u]}}))}))}function L(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,D(e,(function(n){var r=function(e){return z(e||{fid:E(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){var n=Promise.reject(f.create("app-offline"));return{installationEntry:t,registrationPromise:n}}var r={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},i=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,b(e,t)];case 1:return n=i.sent(),[2,j(e,n)];case 2:return h(r=i.sent())&&409===r.serverCode?[4,R(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,j(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}
2))}))}(e,r);return{installationEntry:r,registrationPromise:i}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:M(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}))];case 1:return""!==(n=i.sent()).fid?[3,3]:(r={},[4,t]);case 2:return[2,(r.installationEntry=i.sent(),r)];case 3:return[2,{installationEntry:n,registrationPromise:t}]}}))}))}function M(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,F(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,w(100)];case 3:return o.sent(),[4,F(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,L(e)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function F(e){return D(e,(function(e){if(!e)throw f.create("installation-not-found");return z(e)}))}function z(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function U(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,i,o,a,u,c,l;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return e=function(e,t){var n=t.fid;return d(e)+"/"+n+"/authTokens:generate"}(n,t),i=g(n,t),(o=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",o.getPlatformInfoString()),a={installation:{sdkVersion:"w:0.4.17"}},u={method:"POST",headers:i,body:JSON.stringify(a)},[4,y((function(){return fetch(e,u)}))];case 1:return(c=s.sent()).ok?[4,c.json()]:[3,3];case 2:return l=s.sent(),[2,p(l)];case 3:return[4,v("Generate Auth Token",c)];case 4:throw s.sent()}}))}))}function V(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return[4,D(e.appConfig,(function(r){if(!q(r))throw f.create("not-registered");var i=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){var t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,B(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,w(100)];case 3:return i.sent(),[4,B(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,V(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw f.create("app-offline");var o=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(s.__assign)(Object(s.__assign)({},e),{authToken:t})}(r);return n=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,U(e,t)];case 1:return n=o.sent(),i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:n}),[4,j(e.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return!h(r=o.sent())||401!==r.serverCode&&404!==r.serverCode?[3,5]:[4,R(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=Object(s.__assign)(Object(s.__assign)({},t),{authToken:{requestStatus:0}}),[4,j(e.appConfig,i)];case 6:o.sent(),o.label=7;case 7:throw r;case 8:return[2]}}
2))}))}(e,o),o}))];case 1:return r=o.sent(),n?[4,n]:[3,3];case 2:return i=o.sent(),[3,4];case 3:i=r.authToken,o.label=4;case 4:return[2,i]}}))}))}function B(e){return D(e,(function(e){if(!q(e))throw f.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+1e4<Date.now()?Object(s.__assign)(Object(s.__assign)({},e),{authToken:{requestStatus:0}}):e}))}function q(e){return void 0!==e&&2===e.registrationStatus}function W(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,L(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function H(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return n=function(e,t){var n=t.fid;return d(e)+"/"+n}(e,t),r=g(e,t),i={method:"DELETE",headers:r},[4,y((function(){return fetch(n,i)}))];case 1:return(o=a.sent()).ok?[3,3]:[4,v("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}}
2))}))}function K(e,t){var n=e.appConfig;return function(e,t){x();var n=S(e),r=k.get(n);r||(r=new Set,k.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=S(e),r=k.get(n);r&&(r.delete(t),0===r.size&&k.delete(n),I())}(n,t)}}function G(e){return f.create("missing-app-config-values",{valueName:e})}function $(e){e.INTERNAL.registerComponent(new a.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw G("App Configuration");if(!e.name)throw G("App Name");try{for(var r=Object(s.__values)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw G(o)}}catch(a){t={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),platformLoggerProvider:e.getProvider("platform-logger")};return{app:t,getId:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,L(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):V(e).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return[4,W(e.appConfig)];case 1:return n.sent(),[4,V(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,D(t=e.appConfig,(function(e){if(!e||0!==e.registrationStatus)return e}))];case 1:if(!(n=r.sent()))return[3,6];if(1!==n.registrationStatus)return[3,2];throw f.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw f.create("app-offline");case 3:return[4,H(t,n)];case 4:return r.sent(),[4,R(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}
2))}))}(n)},onIdChange:function(e){return K(n,e)}}}),"PUBLIC")),e.registerVersion("@firebase/installations","0.4.17")}$(o.a)},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";var r=n(10);t.a=function(e,t){var n;void 0===t&&(t=!0);var i=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return i[r.a]=function(){clearTimeout(n)},i}},function(e,t,n){"use strict";t.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(){return Object(r.useState)(null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(){const e=Object(r.useRef)(!0),t=Object(r.useRef)(()=>e.current);return Object(r.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(47),n(0),n(38);function r(e,t){return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){const t=Object(r.useRef)(null);return Object(r.useEffect)(()=>{t.current=e}),t.current}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));var r=n(4),i=n.n(r),o=n(0),a=n.n(o),s=n(40),u=function(){};function c(){var e=Object(o.useContext)(s.a)||{},t=e.show,n=void 0!==t&&t,r=e.toggle,i=void 0===r?u:r,a=e.setToggle,c=Object(o.useCallback)((function(e){i(!n,e)}),[n,i]);return[{ref:a||u,onClick:c,"aria-haspopup":!0,"aria-expanded":!!n},{show:n,toggle:i}]}var l={children:i.a.func.isRequired};function f(e){var t=e.children,n=c(),r=n[0],i=n[1];return a.a.createElement(a.a.Fragment,null,t(r,i))}f.displayName="ReactOverlaysDropdownToggle",f.propTypes=l,t.a=f},function(e,t,n){"use strict";var r=n(5),i=n(3),o=n(4),a=n.n(o),s=n(0),u=n.n(s),c=n(56),l=n(40),f=n(57);var h=function(e){const t=Object(f.a)();return[e[0],Object(s.useCallback)(n=>{if(t())return e[1](n)},[t,e[1]])]};function d(e){return e.split("-")[0]}function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof p(e).Element||e instanceof Element}function m(e){return e instanceof p(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!==typeof ShadowRoot&&(e instanceof p(e).ShadowRoot||e instanceof ShadowRoot)}var y=Math.max,b=Math.min,w=Math.round;function _(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function E(){return!/^((?!chrome|android).)*safari/i.test(_())}function S(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&m(e)&&(i=e.offsetWidth>0&&w(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&w(r.height)/e.offsetHeight||1);var a=(v(e)?p(e):window).visualViewport,s=!E()&&n,u=(r.left+(s&&a?a.offsetLeft:0))/i,c=(r.top+(s&&a?a.offsetTop:0))/o,l=r.width/i,f=r.height/o;return{width:l,height:f,top:c,right:u+l,bottom:c+f,left:u,x:u,y:c}}function k(e){var t=S(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function T(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function C(e){return e?(e.nodeName||"").toLowerCase():null}function O(e){return p(e).getComputedStyle(e)}function x(e){return["table","td","th"].indexOf(C(e))>=0}function I(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function P(e){return"html"===C(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||I(e)}function A(e){return m(e)&&"fixed"!==O(e).position?e.offsetParent:null}function N(e){for(var t=p(e),n=A(e);n&&x(n)&&"static"===O(n).position;)n=A(n);return n&&("html"===C(n)||"body"===C(n)&&"static"===O(n).position)?t:n||function(e){var t=/firefox/i.test(_());if(/Trident/i.test(_())&&m(e)&&"fixed"===O(e).position)return null;var n=P(e);for(g(n)&&(n=n.host);m(n)&&["html","body"].indexOf(C(n))<0;){var r=O(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function j(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function R(e,t,n){return y(e,b(t,n))}function D(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function L(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var M="top",F="bottom",z="right",U="left",V=[M,F,z,U],B=V.reduce((function(e,t){return e.concat([t+"-start",t+"-end"])}),[]),q=[].concat(V,["auto"]).reduce((function(e,t){return e.concat([t,t+"-start",t+"-end"])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var H={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=d(n.placement),u=j(s),c=[U,z].indexOf(s)>=0?"height":"width";if(o&&a){var l=function(e,t){return D("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:L(e,V))}(i.padding,n),f=k(o),h="y"===u?M:U,p="y"===u?F:z,v=n.rects.reference[c]+n.rects.reference[u]-a[u]-n.rects.popper[c],m=a[u]-n.rects.reference[u],g=N(o),y=g?"y"===u?g.clientHeight||0:g.clientWidth||0:0,b=v/2-m/2,w=l[h],_=y-f[c]-l[p],E=y/2-f[c]/2+b,S=R(w,E,_),T=u;n.modifiersData[r]=((t={})[T]=S,t.centerOffset=S-E,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&T(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function K(e){return e.split("-")[1]}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};
vendor: 4,615 bytes, line 2
2function $(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,l=e.roundOffsets,f=e.isFixed,h=a.x,d=void 0===h?0:h,v=a.y,m=void 0===v?0:v,g="function"===typeof l?l({x:d,y:m}):{x:d,y:m};d=g.x,m=g.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),_=U,E=M,S=window;if(c){var k=N(n),T="clientHeight",C="clientWidth";if(k===p(n)&&"static"!==O(k=I(n)).position&&"absolute"===s&&(T="scrollHeight",C="scrollWidth"),k=k,i===M||(i===U||i===z)&&"end"===o)E=F,m-=(f&&k===S&&S.visualViewport?S.visualViewport.height:k[T])-r.height,m*=u?1:-1;if(i===U||(i===M||i===F)&&"end"===o)_=z,d-=(f&&k===S&&S.visualViewport?S.visualViewport.width:k[C])-r.width,d*=u?1:-1}var x,P=Object.assign({position:s},c&&G),A=!0===l?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:w(n*i)/i||0,y:w(r*i)/i||0}}({x:d,y:m},p(n)):{x:d,y:m};return d=A.x,m=A.y,u?Object.assign({},P,((x={})[E]=b?"0":"",x[_]=y?"0":"",x.transform=(S.devicePixelRatio||1)<=1?"translate("+d+"px, "+m+"px)":"translate3d("+d+"px, "+m+"px, 0)",x)):Object.assign({},P,((t={})[E]=b?m+"px":"",t[_]=y?d+"px":"",t.transform="",t))}var Q={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,c={placement:d(t.placement),variation:K(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,$(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,$(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Y={passive:!0};var X={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,a=r.resize,s=void 0===a||a,u=p(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",n.update,Y)})),s&&u.addEventListener("resize",n.update,Y),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Y)})),s&&u.removeEventListener("resize",n.update,Y)}},data:{}},J={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(function(e){return J[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e){var t=p(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function re(e){return S(I(e)).left+ne(e).scrollLeft}function ie(e){var t=O(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function oe(e,t){var n;void 0===t&&(t=[]);var r=function e(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:m(t)&&ie(t)?t:e(P(t))}(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=p(r),a=i?[o].concat(o.visualViewport||[],ie(r)?r:[]):r,s=t.concat(a);return i?s:s.concat(oe(P(a)))}function ae(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function se(e,t,n){return"viewport"===t?ae(function(e,t){var n=p(e),r=I(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,u=0;if(i){o=i.width,a=i.height;var c=E();(c||!c&&"fixed"===t)&&(s=i.offsetLeft,u=i.offsetTop)}return{width:o,height:a,x:s+re(e),y:u}}(e,n)):v(t)?function(e,t){var n=S(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ae(function(e){var t,n=I(e),r=ne(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=y(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=y(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+re(e),u=-r.scrollTop;return"rtl"===O(i||n).direction&&(s+=y(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(I(e)))}function ue(e,t,n,r){var i="clippingParents"===t?function(e){var t=oe(P(e)),n=["absolute","fixed"].indexOf(O(e).position)>=0&&m(e)?N(e):e;return v(n)?t.filter((function(e){return v(e)&&T(e,n)&&"body"!==C(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),a=o[0],s=o.reduce((function(t,n){var i=se(e,n,r);
2return t.top=y(i.top,t.top),t.right=b(i.right,t.right),t.bottom=b(i.bottom,t.bottom),t.left=y(i.left,t.left),t}),se(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ce(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?d(i):null,a=i?K(i):null,s=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(o){case M:t={x:s,y:n.y-r.height};break;case F:t={x:s,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:u};break;case U:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var c=o?j(o):null;if(null!=c){var l="y"===c?"height":"width";switch(a){case"start":t[c]=t[c]-(n[l]/2-r[l]/2);break;case"end":t[c]=t[c]+(n[l]/2-r[l]/2)}}return t}function le(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,a=void 0===o?e.strategy:o,s=n.boundary,u=void 0===s?"clippingParents":s,c=n.rootBoundary,l=void 0===c?"viewport":c,f=n.elementContext,h=void 0===f?"popper":f,d=n.altBoundary,p=void 0!==d&&d,m=n.padding,g=void 0===m?0:m,y=D("number"!==typeof g?g:L(g,V)),b="popper"===h?"reference":"popper",w=e.rects.popper,_=e.elements[p?b:h],E=ue(v(_)?_:_.contextElement||I(e.elements.popper),u,l,a),k=S(e.elements.reference),T=ce({reference:k,element:w,strategy:"absolute",placement:i}
vendor: 6,202 bytes, line 2
2),C=ae(Object.assign({},w,T)),O="popper"===h?C:k,x={top:E.top-O.top+y.top,bottom:O.bottom-E.bottom+y.bottom,left:E.left-O.left+y.left,right:O.right-E.right+y.right},P=e.modifiersData.offset;if("popper"===h&&P){var A=P[i];Object.keys(x).forEach((function(e){var t=[z,F].indexOf(e)>=0?1:-1,n=[M,F].indexOf(e)>=0?"y":"x";x[e]+=A[n]*t}))}return x}var fe={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,c=n.padding,l=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,v=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,y=d(g),b=u||(y===g||!v?[Z(g)]:function(e){if("auto"===d(e))return[];var t=Z(e);return[te(e),t,te(t)]}(g)),w=[g].concat(b).reduce((function(e,n){return e.concat("auto"===d(n)?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?q:u,l=K(r),f=l?s?B:B.filter((function(e){return K(e)===l})):V,h=f.filter((function(e){return c.indexOf(e)>=0}));0===h.length&&(h=f);var p=h.reduce((function(t,n){return t[n]=le(e,{placement:n,boundary:i,rootBoundary:o,padding:a})[d(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:l,rootBoundary:f,padding:c,flipVariations:v,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,E=t.rects.popper,S=new Map,k=!0,T=w[0],C=0;C<w.length;C++){var O=w[C],x=d(O),I="start"===K(O),P=[M,F].indexOf(x)>=0,A=P?"width":"height",N=le(t,{placement:O,boundary:l,rootBoundary:f,altBoundary:h,padding:c}),j=P?I?z:U:I?F:M;_[A]>E[A]&&(j=Z(j));var R=Z(j),D=[];if(o&&D.push(N[x]<=0),s&&D.push(N[j]<=0,N[R]<=0),D.every((function(e){return e}))){T=O,k=!1;break}S.set(O,D)}if(k)for(var L=function(e){var t=w.find((function(t){var n=S.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return T=t,"break"},W=v?3:1;W>0;W--){if("break"===L(W))break}t.placement!==T&&(t.modifiersData[r]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function he(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function de(e){return[M,z,F,U].some((function(t){return e[t]>=0}))}var pe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=le(t,{elementContext:"reference"}),s=le(t,{altBoundary:!0}),u=he(a,r),c=he(s,i,o),l=de(u),f=de(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:l,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":f})}};var ve={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,a=q.reduce((function(e,n){return e[n]=function(e,t,n){var r=d(e),i=[U,M].indexOf(r)>=0?-1:1,o="function"===typeof n?n(Object.assign({},t,{placement:e})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[U,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,o),e}),{}),s=a[t.placement],u=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var me={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ce({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var ge={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,c=n.rootBoundary,l=n.altBoundary,f=n.padding,h=n.tether,p=void 0===h||h,v=n.tetherOffset,m=void 0===v?0:v,g=le(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:l}),w=d(t.placement),_=K(t.placement),E=!_,S=j(w),T="x"===S?"y":"x",C=t.modifiersData.popperOffsets,O=t.rects.reference,x=t.rects.popper,I="function"===typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,P="number"===typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(o){var L,V="y"===S?M:U,B="y"===S?F:z,q="y"===S?"height":"width",W=C[S],H=W+g[V],G=W-g[B],$=p?-x[q]/2:0,Q="start"===_?O[q]:x[q],Y="start"===_?-x[q]:-O[q],X=t.elements.arrow,J=p&&X?k(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Z[V],te=Z[B],ne=R(0,O[q],J[q]),re=E?O[q]/2-$-ne-ee-P.mainAxis:Q-ne-ee-P.mainAxis,ie=E?-O[q]/2+$+ne+te+P.mainAxis:Y+ne+te+P.mainAxis,oe=t.elements.arrow&&N(t.elements.arrow),ae=oe?"y"===S?oe.clientTop||0:oe.clientLeft||0:0,se=null!=(L=null==A?void 0:A[S])?L:0,ue=W+ie-se,ce=R(p?b(H,W+re-se-ae):H,W,p?y(G,ue):G);C[S]=ce,D[S]=ce-W}if(s){var fe,he="x"===S?M:U,de="x"===S?F:z,pe=C[T],ve="y"===T?"height":"width",me=pe+g[he],ge=pe-g[de],ye=-1!==[M,U].indexOf(w),be=null!=(fe=null==A?void 0:A[T])?fe:0,we=ye?me:pe-O[ve]-x[ve]-be+P.altAxis,_e=ye?pe+O[ve]+x[ve]-be-P.altAxis:ge,Ee=p&&ye?function(e,t,n){var r=R(e,t,n);return r>n?n:r}(we,pe,_e):R(p?we:me,pe,p?_e:ge);C[T]=Ee,D[T]=Ee-pe}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function ye(e,t,n){void 0===n&&(n=!1);var r=m(t),i=m(t)&&function(e){var t=e.getBoundingClientRect(),n=w(t.width)/e.offsetWidth||1,r=w(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),o=I(t),a=S(e,i,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==C(t)||ie(o))&&(s=function(e){return e!==p(e)&&m(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:ne(e);var t}(t)),m(t)?((u=S(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=re(o))),{x:a.left+s.scrollLeft-u.x,y:a.top+s.scrollTop-u.y,width:a.width,height:a.height}}function be(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(i){n.add(i.name),[].concat(i.requires||[],i.requiresIfExists||[]).forEac
2h((function(r){if(!n.has(r)){var i=t.get(r);i&&e(i)}})),r.push(i)}(e)})),r}function we(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var _e={placement:"bottom",modifiers:[],strategy:"absolute"};function Ee(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Se(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?_e:i;return function(e,t,n){void 0===n&&(n=o);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},_e,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,u={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;c(),i.options=Object.assign({},o,i.options,s),i.scrollParents={reference:v(e)?oe(e):e.contextElement?oe(e.contextElement):[],popper:oe(t)};var l=function(e){var t=be(e);return W.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=l.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"===typeof o){var s=o({state:i,name:t,instance:u,options:r});a.push(s||function(){})}})),u.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Ee(t,n)){i.rects={reference:ye(t,N(n),"fixed"===i.options.strategy),popper:k(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var o=i.orderedModifiers[r],a=o.fn,c=o.options,l=void 0===c?{}:c,f=o.name;"function"===typeof a&&(i=a({state:i,options:l,name:f,instance:u})||i)}else i.reset=!1,r=-1}}},update:we((function(){return new Promise((function(e){u.forceUpdate(),e(i)}))})),destroy:function(){c(),s=!0}};if(!Ee(e,t))return u;function c(){a.forEach((function(e){return e()})),a=[]}return u.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var ke=Se({defaultModifiers:[pe,me,Q,X,ve,fe,ge,H]}),Te=function(e){return{position:e,top:"0",left:"0",opacity:"0",pointerEvents:"none"}},Ce={name:"applyStyles",enabled:!1},Oe={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var i=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));i.length?n.setAttribute("aria-describedby",i.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,i=n.reference,o=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in i){var a=i.getAttribute("aria-describedby");if(a&&-1!==a.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",a?a+","+r.id:r.id)}}},xe=[];var Ie=function(e,t,n){var o=void 0===n?{}:n,a=o.enabled,u=void 0===a||a,c=o.placement,l=void 0===c?"bottom":c,f=o.strategy,d=void 0===f?"absolute":f,p=o.modifiers,v=void 0===p?xe:p,m=Object(r.a)(o,["enabled","placement","strategy","modifiers"]),g=Object(s.useRef)(),y=Object(s.useCallback)((function(){var e;null==(e=g.current)||e.update()}),[]),b=Object(s.useCallback)((function(){var e;null==(e=g.current)||e.forceUpdate()}),[]),w=h(Object(s.useState)({placement:l,update:y,forceUpdate:b,attributes:{},styles:{popper:Te(d),arrow:{}}})),_=w[0],E=w[1],S=Object(s.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),E({state:t,styles:n,attributes:r,update:y,forceUpdate:b,placement:t.placement})}}}),[y,b,E]);return Object(s.useEffect)((function(){g.current&&u&&g.current.setOptions({placement:l,strategy:d,modifiers:[].concat(v,[S,Ce])})}
2),[d,l,S,u]),Object(s.useEffect)((function(){if(u&&null!=e&&null!=t)return g.current=ke(e,t,Object(i.a)({},m,{placement:l,strategy:d,modifiers:[].concat(v,[Oe,S])})),function(){null!=g.current&&(g.current.destroy(),g.current=void 0,E((function(e){return Object(i.a)({},e,{attributes:{},styles:{popper:Te(d)}})})))}}),[u,e,t]),_},Pe=n(48),Ae=n(29),Ne=n(15),je=n(53),Re=n.n(je),De=n(25),Le=n(19),Me=n.n(Le);var Fe=function(e){return Object(De.a)(function(e){return e&&"setState"in e?Me.a.findDOMNode(e):null!=e?e:null}(e))},ze=function(){};var Ue=function(e){return e&&("current"in e?e.current:e)};var Ve=function(e,t,n){var r=void 0===n?{}:n,i=r.disabled,o=r.clickTrigger,a=void 0===o?"click":o,u=Object(s.useRef)(!1),c=t||ze,l=Object(s.useCallback)((function(t){var n,r,i=Ue(e);Re()(!!i,"RootClose captured a close event but does not have a ref to compare it to. useRootClose(), should be passed a ref that resolves to a DOM node"),u.current=!i||!!((r=t).metaKey||r.altKey||r.ctrlKey||r.shiftKey)||!function(e){return 0===e.button}(t)||!!Object(Pe.a)(i,null!=(n=null==t.composedPath?void 0:t.composedPath()[0])?n:t.target)}),[e]),f=Object(Ne.a)((function(e){u.current||c(e)})),h=Object(Ne.a)((function(e){27===e.keyCode&&c(e)}));Object(s.useEffect)((function(){if(!i&&null!=e){var t=window.event,n=Fe(Ue(e)),r=Object(Ae.a)(n,a,l,!0),o=Object(Ae.a)(n,a,(function(e){e!==t?f(e):t=void 0})),s=Object(Ae.a)(n,"keyup",(function(e){e!==t?h(e):t=void 0})),u=[];return"ontouchstart"in n.documentElement&&(u=[].slice.call(n.body.children).map((function(e){return Object(Ae.a)(e,"mousemove",ze)}))),function(){r(),o(),s(),u.forEach((function(e){return e()}))}}}),[e,i,a,l,f,h])};function Be(e){var t,n,r,o,a,s=e.enabled,u=e.enableEvents,c=e.placement,l=e.flip,f=e.offset,h=e.fixed,d=e.containerPadding,p=e.arrowElement,v=e.popperConfig,m=void 0===v?{}:v,g=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(m.modifiers);return Object(i.a)({},m,{placement:c,enabled:s,strategy:h?"fixed":m.strategy,modifiers:(a=Object(i.a)({},g,{eventListeners:{enabled:u},preventOverflow:Object(i.a)({},g.preventOverflow,{options:d?Object(i.a)({padding:d},null==(t=g.preventOverflow)?void 0:t.options):null==(n=g.preventOverflow)?void 0:n.options}),offset:{options:Object(i.a)({offset:f},null==(r=g.offset)?void 0:r.options)},arrow:Object(i.a)({},g.arrow,{enabled:!!p,options:Object(i.a)({},null==(o=g.arrow)?void 0:o.options,{element:p})}),flip:Object(i.a)({enabled:!!l},g.flip)}),void 0===a&&(a={}),Array.isArray(a)?a:Object.keys(a).map((function(e){return a[e].name=e,a[e]})))})}n.d(t,"b",(function(){return We}));var qe=function(){};function We(e){void 0===e&&(e={});var t=Object(s.useContext)(l.a),n=Object(c.a)(),r=n[0],o=n[1],a=Object(s.useRef)(!1),u=e,f=u.flip,h=u.offset,d=u.rootCloseEvent,p=u.fixed,v=void 0!==p&&p,m=u.popperConfig,g=void 0===m?{}:m,y=u.usePopper,b=void 0===y?!!t:y,w=null==(null==t?void 0:t.show)?!!e.show:t.show,_=null==(null==t?void 0:t.alignEnd)?e.alignEnd:t.alignEnd;w&&!a.current&&(a.current=!0);var E=t||{},S=E.drop,k=E.setMenu,T=E.menuElement,C=E.toggleElement,O=_?"bottom-end":"bottom-start";"up"===S?O=_?"top-end":"top-start":"right"===S?O=_?"right-end":"right-start":"left"===S&&(O=_?"left-end":"left-start");var x=Ie(C,T,Be({placement:O,enabled:!(!b||!w),enableEvents:w,offset:h,flip:f,fixed:v,arrowElement:r,popperConfig:g})),I=Object(i.a)({ref:k||qe,"aria-labelledby":null==C?void 0:C.id},x.attributes.popper,{style:x.styles.popper}),P={show:w,alignEnd:_,hasShown:a.current,toggle:null==t?void 0:t.toggle,popper:b?x:null,arrowProps:b?Object(i.a)({ref:o},x.attributes.arrow,{style:x.styles.arrow}):{}};return Ve(T,(function(e){null==t||t.toggle(!1,e)}),{clickTrigger:d,disabled:!w}),[I,P]}var He={children:a.a.func.isRequired,show:a.a.bool,alignEnd:a.a.bool,flip:a.a.bool,usePopper:a.a.oneOf([!0,!1]),popperConfig:a.a.object,rootCloseEvent:a.a.string};function Ke(e){var t=e.children,n=We(Object(r.a)(e,["children"])),i=n[0],o=n[1];return u.a.createElement(u.a.Fragment,null,o.hasShown?t(i,o):null)}
2Ke.displayName="ReactOverlaysDropdownMenu",Ke.propTypes=He,Ke.defaultProps={usePopper:!0};t.a=Ke},function(e,t,n){"use strict";var r,i=n(3),o=n(5),a=n(12),s=n.n(a),u=n(0),c=n.n(u);var l=n(31),f=n(41),h=n(4),d=n.n(h);n(47);function p(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function v(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function m(e,t,n){var r=Object(u.useRef)(void 0!==e),i=Object(u.useState)(t),o=i[0],a=i[1],s=void 0!==e,c=r.current;return r.current=s,!s&&c&&o!==t&&a(t),[s?e:o,Object(u.useCallback)((function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n&&n.apply(void 0,[e].concat(r)),a(e)}),[n])]}n(18);function g(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function y(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function b(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}g.__suppressDeprecationWarning=!0,y.__suppressDeprecationWarning=!0,b.__suppressDeprecationWarning=!0;var w=n(59);var _=n(15);function E(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=Object(_.a)(n);Object(u.useEffect)(()=>{const n="function"===typeof e?e():e;return n.addEventListener(t,i,r),()=>n.removeEventListener(t,i,r)},[e])}var S=n(40),k=n(61),T=n(60),C={children:d.a.node,drop:d.a.oneOf(["up","left","right","down"]),focusFirstItemOnShow:d.a.oneOf([!1,!0,"keyboard"]),itemSelector:d.a.string,alignEnd:d.a.bool,show:d.a.bool,defaultShow:d.a.bool,onToggle:d.a.func};function O(){var e=function(){const[,e]=Object(u.useReducer)(e=>!e,!1);return e}(),t=Object(u.useRef)(null),n=Object(u.useCallback)((function(n){t.current=n,e()}),[e]);return[t,n]}function x(e){var t=e.drop,n=e.alignEnd,i=e.defaultShow,o=e.show,a=e.onToggle,s=e.itemSelector,h=void 0===s?"* > *":s,d=e.focusFirstItemOnShow,p=e.children,v=m(o,i,a),g=v[0],y=v[1],b=O(),k=b[0],T=b[1],C=k.current,x=O(),I=x[0],P=x[1],A=I.current,N=Object(w.a)(g),j=Object(u.useRef)(null),R=Object(u.useRef)(!1),D=Object(u.useCallback)((function(e,t){y(e,t)}),[y]),L=Object(u.useMemo)((function(){return{toggle:D,drop:t,show:g,alignEnd:n,menuElement:C,toggleElement:A,setMenu:T,setToggle:P}}),[D,t,g,n,C,A,T,P]);C&&N&&!g&&(R.current=C.contains(document.activeElement));var M=Object(_.a)((function(){A&&A.focus&&A.focus()})),F=Object(_.a)((function(){var e=j.current,t=d;if(null==t&&(t=!(!k.current||!function(e,t){if(!r){var n=document.body,i=n.matches||n.matchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector;r=function(e,t){return i.call(e,t)}}return r(e,t)}(k.current,"[role=menu]"))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=Object(l.a)(k.current,h)[0];n&&n.focus&&n.focus()}}));Object(u.useEffect)((function(){g?F():R.current&&(R.current=!1,M())}),[g,R,M,F]),Object(u.useEffect)((function(){j.current=null}));var z=function(e,t){if(!k.current)return null;var n=Object(l.a)(k.current,h),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=Object(u.useCallback)(()=>document,[]);E(r,e,t,n)}("keydown",(function(e){var t,n,r=e.key,i=e.target,o=null==(t=k.current)?void 0:t.contains(i),a=null==(n=I.current)?void 0:n.contains(i);if((!/input|textarea/i.test(i.tagName)||!(" "===r||"Escape"!==r&&o))&&(o||a)&&(k.current||"Tab"!==r))switch(j.current=e.type,r){case"ArrowUp":var s=z(i,-1);return s&&s.focus&&s.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),g){var u=z(i,1);u&&u.focus&&u.focus()}else y(!0,e);return;case"Tab":Object(f.a)(document,"keyup",(function(t){var n;
2("Tab"!==t.key||t.target)&&null!=(n=k.current)&&n.contains(t.target)||y(!1,e)}),{once:!0});break;case"Escape":e.preventDefault(),e.stopPropagation(),y(!1,e)}})),c.a.createElement(S.a.Provider,{value:L},p)}x.displayName="ReactOverlaysDropdown",x.propTypes=C,x.Menu=k.a,x.Toggle=T.a;var I=x,P=function(e,t){return void 0===t&&(t=null),null!=e?String(e):t||null},A=c.a.createContext(null),N=n(13),j=c.a.createContext(null);j.displayName="NavContext";var R=j,D=n(63),L=["bsPrefix","className","children","eventKey","disabled","href","onClick","onSelect","active","as"],M={as:D.a,disabled:!1},F=c.a.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,a=e.children,l=e.eventKey,f=e.disabled,h=e.href,d=e.onClick,p=e.onSelect,v=e.active,m=e.as,g=Object(o.a)(e,L),y=Object(N.a)(n,"dropdown-item"),b=Object(u.useContext)(A),w=(Object(u.useContext)(R)||{}).activeKey,E=P(l,h),S=null==v&&null!=E?P(w)===E:v,k=Object(_.a)((function(e){f||(d&&d(e),b&&b(E,e),p&&p(E,e))}));return c.a.createElement(m,Object(i.a)({},g,{ref:t,href:h,disabled:f,className:s()(r,y,S&&"active",f&&"disabled"),onClick:k}),a)}));F.displayName="DropdownItem",F.defaultProps=M;var z=F,U=n(51),V=n(64),B=n(30),q=["bsPrefix","drop","show","className","alignRight","onSelect","onToggle","focusFirstItemOnShow","as","navbar"],W=Object(B.a)("dropdown-header",{defaultProps:{role:"heading"}}),H=Object(B.a)("dropdown-divider",{defaultProps:{role:"separator"}}),K=Object(B.a)("dropdown-item-text",{Component:"span"}),G=c.a.forwardRef((function(e,t){var n=function(e,t){return Object.keys(t).reduce((function(n,r){var a,s=n,u=s[p(r)],c=s[r],l=Object(o.a)(s,[p(r),r].map(v)),f=t[r],h=m(c,u,e[f]),d=h[0],g=h[1];return Object(i.a)({},l,((a={})[r]=d,a[f]=g,a))}),e)}(e,{show:"onToggle"}),r=n.bsPrefix,a=n.drop,l=n.show,f=n.className,h=n.alignRight,d=n.onSelect,g=n.onToggle,y=n.focusFirstItemOnShow,b=n.as,w=void 0===b?"div":b,E=(n.navbar,Object(o.a)(n,q)),S=Object(u.useContext)(A),k=Object(N.a)(r,"dropdown"),T=Object(_.a)((function(e,t,n){void 0===n&&(n=t.type),t.currentTarget!==document||"keydown"===n&&"Escape"!==t.key||(n="rootClose"),g&&g(e,t,{source:n})})),C=Object(_.a)((function(e,t){S&&S(e,t),d&&d(e,t),T(!1,t,"select")}));return c.a.createElement(A.Provider,{value:C},c.a.createElement(I,{drop:a,show:l,alignEnd:h,onToggle:T,focusFirstItemOnShow:y,itemSelector:"."+k+"-item:not(.disabled):not(:disabled)"},c.a.createElement(w,Object(i.a)({},E,{ref:t,className:s()(f,l&&"show",(!a||"down"===a)&&k,"up"===a&&"dropup","right"===a&&"dropright","left"===a&&"dropleft")}))))}));G.displayName="Dropdown",G.defaultProps={navbar:!1},G.Divider=H,G.Header=W,G.Item=z,G.ItemText=K,G.Menu=U.b,G.Toggle=V.a;t.a=G},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(0),a=n.n(o);var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return null!=e})).reduce((function(e,t){if("function"!==typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),null)},u=["as","disabled","onKeyDown"];function c(e){return!e||"#"===e.trim()}var l=a.a.forwardRef((function(e,t){var n=e.as,o=void 0===n?"a":n,l=e.disabled,f=e.onKeyDown,h=Object(i.a)(e,u),d=function(e){var t=h.href,n=h.onClick;(l||c(t))&&e.preventDefault(),l?e.stopPropagation():n&&n(e)};return c(h.href)&&(h.role=h.role||"button",h.href=h.href||"#"),l&&(h.tabIndex=-1,h["aria-disabled"]=!0),a.a.createElement(o,Object(r.a)({ref:t},h,{onClick:d,onKeyDown:s((function(e){" "===e.key&&(e.preventDefault(),d(e))}),f)}))}));l.displayName="SafeAnchor";t.a=l},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(12),a=n.n(o),s=(n(200),n(0)),u=n.n(s),c=n(60),l=n(38),f=n(13),h=n(63),d=["bsPrefix","variant","size","active","className","block","type","as"],p=u.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.variant,s=e.size,c=e.active,l=e.className,p=e.block,v=e.type,m=e.as,g=Object(i.a)(e,d),y=Object(f.a)(n,"btn"),b=a()(l,y,c&&"active",o&&y+"-"+o,p&&y+"-block",s&&y+"-"+s);if(g.href)return u.a.createElement(h.a,Object(r.a)({},g,{as:m,ref:t,className:a()(b,g.disabled&&"disabled")}));t&&(g.ref=t),v?g.type=v:m||(g.type="button");var w=m||"button";return u.a.createElement(w,Object(r.a)({},g,{className:b}))}));p.displayName="Button",p.defaultProps={variant:"primary",active:!1,disabled:!1};var v=p,m=n(58),g=["bsPrefix","split","className","childBsPrefix","as"],y=u.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.split,s=e.className,h=e.childBsPrefix,d=e.as,p=void 0===d?v:d,y=Object(i.a)(e,g),b=Object(f.a)(n,"dropdown-toggle");void 0!==h&&(y.bsPrefix=h);var w=Object(c.b)()[0];return w.ref=Object(l.a)(w.ref,Object(m.a)(t,"DropdownToggle")),u.a.createElement(p,Object(r.a)({className:a()(s,b,o&&b+"-split")},w,y))}));y.displayName="DropdownToggle";t.a=y},function(e,t,n){"use strict";var r=n(0);function i(e){const t=function(e){const t=Object(r.useRef)(e);return t.current=e,t}(e);Object(r.useEffect)(()=>()=>t.current(),[])}n.d(t,"a",(function(){return i}))},function(e,t,n){e.exports=function e(t){"use strict";
vendor: 14,592 bytes, line 2
2var n=/^\0+/g,r=/[\0\r\f]/g,i=/: */g,o=/zoo|gra/,a=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,u=/ +\s*(?![^(]*[)])/g,c=/ *[\0] */g,l=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,h=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,d=/\W+/g,p=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,m=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,y=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,w=/\s{2,}/g,_=/([^\(])(:+) */g,E=/[svh]\w+-[tblr]{2}/,S=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,T=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,I="-webkit-",P="-moz-",A="-ms-",N=59,j=125,R=123,D=40,L=41,M=10,F=13,z=32,U=45,V=42,B=44,q=58,W=47,H=1,K=1,G=0,$=1,Q=1,Y=1,X=0,J=0,Z=0,ee=[],te=[],ne=0,re=null,ie=0,oe=1,ae="",se="",ue="";function ce(e,t,i,o,a){for(var s,u,l=0,f=0,h=0,d=0,g=0,y=0,b=0,w=0,E=0,k=0,T=0,C=0,O=0,x=0,P=0,A=0,X=0,te=0,re=0,fe=i.length,ge=fe-1,ye="",be="",we="",_e="",Ee="",Se="";P<fe;){if(b=i.charCodeAt(P),P===ge&&f+d+h+l!==0&&(0!==f&&(b=f===W?M:W),d=h=l=0,fe++,ge++),f+d+h+l===0){if(P===ge&&(A>0&&(be=be.replace(r,"")),be.trim().length>0)){switch(b){case z:case 9:case N:case F:case M:break;default:be+=i.charAt(P)}b=N}if(1===X)switch(b){case R:case j:case N:case 34:case 39:case D:case L:case B:X=0;case 9:case F:case M:case z:break;default:for(X=0,re=P,g=b,P--,b=N;re<fe;)switch(i.charCodeAt(re++)){case M:case F:case N:++P,b=g,re=fe;break;case q:A>0&&(++P,b=g);case R:re=fe}}switch(b){case R:for(g=(be=be.trim()).charCodeAt(0),T=1,re=++P;P<fe;){switch(b=i.charCodeAt(P)){case R:T++;break;case j:T--;break;case W:switch(y=i.charCodeAt(P+1)){case V:case W:P=me(y,P,ge,i)}break;case 91:b++;case D:b++;case 34:case 39:for(;P++<ge&&i.charCodeAt(P)!==b;);}if(0===T)break;P++}switch(we=i.substring(re,P),0===g&&(g=(be=be.replace(n,"").trim()).charCodeAt(0)),g){case 64:switch(A>0&&(be=be.replace(r,"")),y=be.charCodeAt(1)){case 100:case 109:case 115:case U:s=t;break;default:s=ee}if(re=(we=ce(t,s,we,y,a+1)).length,Z>0&&0===re&&(re=be.length),ne>0&&(u=ve(3,we,s=le(ee,be,te),t,K,H,re,y,a,o),be=s.join(""),void 0!==u&&0===(re=(we=u.trim()).length)&&(y=0,we="")),re>0)switch(y){case 115:be=be.replace(S,pe);case 100:case 109:case U:we=be+"{"+we+"}";break;case 107:we=(be=be.replace(p,"$1 $2"+(oe>0?ae:"")))+"{"+we+"}",we=1===Q||2===Q&&de("@"+we,3)?"@"+I+we+"@"+we:"@"+we;break;default:we=be+we,112===o&&(_e+=we,we="")}else we="";break;default:we=ce(t,le(t,be,te),we,o,a+1)}Ee+=we,C=0,X=0,x=0,A=0,te=0,O=0,be="",we="",b=i.charCodeAt(++P);break;case j:case N:if((re=(be=(A>0?be.replace(r,""):be).trim()).length)>1)switch(0===x&&((g=be.charCodeAt(0))===U||g>96&&g<123)&&(re=(be=be.replace(" ",":")).length),ne>0&&void 0!==(u=ve(1,be,t,e,K,H,_e.length,o,a,o))&&0===(re=(be=u.trim()).length)&&(be="\0\0"),g=be.charCodeAt(0),y=be.charCodeAt(1),g){case 0:break;case 64:if(105===y||99===y){Se+=be+i.charAt(P);break}default:if(be.charCodeAt(re-1)===q)break;_e+=he(be,g,y,be.charCodeAt(2))}C=0,X=0,x=0,A=0,te=0,be="",b=i.charCodeAt(++P)}}switch(b){case F:case M:if(f+d+h+l+J===0)switch(k){case L:case 39:case 34:case 64:case 126:case 62:case V:case 43:case W:case U:case q:case B:case N:case R:case j:break;default:x>0&&(X=1)}f===W?f=0:$+C===0&&107!==o&&be.length>0&&(A=1,be+="\0"),ne*ie>0&&ve(0,be,t,e,K,H,_e.length,o,a,o),H=1,K++;break;case N:case j:if(f+d+h+l===0){H++;break}default:switch(H++,ye=i.charAt(P),b){case 9:case z:if(d+l+f===0)switch(w){case B:case q:case 9:case z:ye="";break;default:b!==z&&(ye=" ")}break;case 0:ye="\\0";break;case 12:ye="\\f";break;case 11:ye="\\v";break;case 38:d+f+l===0&&$>0&&(te=1,A=1,ye="\f"+ye);break;case 108:if(d+f+l+G===0&&x>0)switch(P-x){case 2:112===w&&i.charCodeAt(P-3)===q&&(G=w);case 8:111===E&&(G=E)}break;case q:d+f+l===0&&(x=P);break;case B:f+h+d+l===0&&(A=1,ye+="\r");break;case 34:case 39:0===f&&(d=d===b?0:0===d?b:d);break;case 91:d+f+h===0&&l++;break;case 93:d+f+h===0&&l--;break;case L:d+f+l===0&&h--;break;case D:if(d+f+l===0){if(0===C)switch(2*w+3*E){case 533:break;default:T=0,C=1}h++}break;case 64:f+h+d+l+x+O===0&&(O=1);break;case V:case W:if(d+l+h>0)break;switch(f){case 0:switch(2*b+3*i.charCodeAt(P+1)){case 235:f=W;break;case 220:re=P,f=V}break;case V:b===W&&w===V&&re+2!==P&&(33===i.charCodeAt(re+2)&&(_e+=i.substring(re,P+1)),ye="",f=0)}}if(0===f){if($+d+l+O===0&&107!==o&&b!==N)switch(b){case B:case 126:case 62:case 43:case L:case D:if(0===C){switch(w){case 9:case z:case M:case F:ye+="\0";break;default:ye="\0"+ye+(b===B?"":"\0")}A=1}else switch(b){case D:x+7===P&&108===w&&(x=0),C=++T;break;case L:0==(C=--T)&&(A=1,ye+="\0")}break;case 9:case z:switch(w){case 0:case R:case j:case N:case B:case 12:case 9:case z:case M:case F:break;default:0===C&&(A=1,ye+="\0")}}be+=ye,b!==z&&9!==b&&(k=b)}}E=w,w=b,P++}if(re=_e.length,Z>0&&0===re&&0===Ee.length&&0===t[0].length==0&&(109!==o||1===t.length&&($>0?se:ue)===t[0])&&(re=t.join(",").length+2),re>0){if(s=0===$&&107!==o?function(e){for(var t,n,i=0,o=e.length,a=Array(o);i<o;++i){for(var s=e[i].split(c),u="",l=0,f=0,h=0,d=0,p=s.length;l<p;++l)if(!(0===(f=(n=s[l]).length)&&p>1)){if(h=u.charCodeAt(u.length-1),d=n.charCodeAt(0),t="",0!==l)switch(h){case V:case 126:case 62:case 43:case z:case D:break;default:t=" "}switch(d){case 38:n=t+se;case 126:case 62:case 43:case z:case L:case D:break;case 91:n=t+n+se;break;case q:switch(2*n.charCodeAt(1)+3*n.charCodeAt(2)){case 530:if(Y>0){n=t+n.substring(8,f-1);break}default:(l<1||s[l-1].length<1)&&(n=t+se+n)}break;case B:t="";default:n=f>1&&n.indexOf(":")>0?t+n.replace(_,"$1"+se+"$2"):t+n+se}u+=n}a[i]=u.replace(r,"").trim()}return a}(t):t,ne>0&&void 0!==(u=ve(2,_e,s,e,K,H,re,o,a,o))&&0===(_e=u).length)return Se+_e+Ee;if(_e=s.join(",")+"{"+_e+"}",Q*G!=0){switch(2!==Q||de(_e,2)||(G=0),G){case 111:_e=_e.replace(m,":-moz-$1")+_e;break;case 112:_e=_e.replace(v,"::"+I+"input-$1")+_e.replace(v,"::-moz-$1")+_e.replace(v,":-ms-input-$1")+_e}G=0}}return Se+_e+Ee}function le(e,t,n){var r=t.trim().split(l),i=r,o=r.length,a=e.length;switch(a){case 0:case 1:for(var s=0,u=0===a?"":e[0]+" ";s<o;++s)i[s]=fe(u,i[s],n,a).trim();break;default:s=0;var c=0;for(i=[];s<o;++s)for(var f=0;f<a;++f)i[c++]=fe(e[f]+" ",r[s],n,a).trim()}return i}function fe(e,t,n,r){var i=t,o=i.charCodeAt(0);switch(o<33&&(o=(i=i.trim()).charCodeAt(0)),o){case 38:switch($+r){case 0:case 1:if(0===e.trim().length)break;default:return i.replace(f,"$1"+e.trim())}break;case q:switch(i.charCodeAt(1)){case 103:if(Y>0&&$>0)return i.replace(h,"$1").replace(f,"$1"+ue);break;default:return e.trim()+i.replace(f,"$1"+e.trim())}default:if(n*$>0&&i.indexOf("\f")>0)return i.replace(f,(e.charCodeAt(0)===q?"":"$1")+e.trim())}return e+i}function he(e,t,n,r){var c,l=0,f=e+";",h=2*t+3*n+4*r;if(944===h)return function(e){var t=e.length,n=e.indexOf(":",9)+1,r=e.substring(0,n).trim(),i=e.substring(n,t-1).trim();switch(e.charCodeAt(9)*oe){case 0:break;case U:if(110!==e.charCodeAt(10))break;default:var o=i.split((i="",s)),a=0;for(n=0,t=o.length;a<t;n=0,++a){for(var c=o[a],l=c.split(u);c=l[n];){var f=c.charCodeAt(0);if(1===oe&&(f>64&&f<90||f>96&&f<123||95===f||f===U&&c.charCodeAt(1)!==U))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=ae}}l[n++]=c}i+=(0===a?"":",")+l.join(" ")}}return i=r+i+";",1===Q||2===Q&&de(i,1)?I+i+i:i}(f);if(0===Q||2===Q&&!de(f,1))return f;switch(h){case 1015:return 97===f.charCodeAt(10)?I+f+f:f;case 951:return 116===f.charCodeAt(3)?I+f+f:f;case 963:return 110===f.charCodeAt(5)?I+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return I+f+f;case 978:return I+f+P+f+f;case 1019:case 983:return I+f+P+f+A+f+f;case 883:return f.charCodeAt(8)===U?I+f+f:f.indexOf("image-set(",11)>0?f.replace(x,"$1"+I+"$2")+f:f;case 932:if(f.charCodeAt(4)===U)switch(f.charCodeAt(5)){case 103:return I+"box-"+f.replace("-grow","")+I+f+A+f.replace("grow","positive")+f;case 115:return I+f+A+f.replace("shrink","negative")+f;case 98:return I+f+A+f.replace("basis","preferred-size")+f}return I+f+A+f+f;case 964:return I+f+A+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return c=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),I+"box-pack"+c+I+f+A+"flex-pack"+c+f;case 1005:return o.test(f)?f.replace(i,":"+I)+f.replace(i,":"+P)+f:f;case 1e3:switch(l=(c=f.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(l)){case 226:c=f.replace(E,"tb");break;case 232:c=f.replace(E,"tb-rl");break;case 220:c=f.replace(E,"lr");break;default:return f}return I+f+A+c+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(l=(f=e).length-10,h=(c=(33===f.charCodeAt(l)?f.substring(0,l):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(c.charCodeAt(8)<111)break;case 115:f=f.replace(c,I+c)+";"+f;break;case 207:case 102:f=f.replace(c,I+(h>102?"inline-":"")+"box")+";"+f.replace(c,I+c)+";"+f.replace(c,A+c+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===U)switch(f.charCodeAt(6)){case 105:return c=f.replace("-items",""),I+f+I+"box-"+c+A+"flex-"+c+f;case 115:return I+f+A+"flex-item-"+f.replace(T,"")+f;default:return I+f+A+"flex-line-pack"+f.replace("align-content","").replace(T,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==U||122===f.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?he(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):f.replace(c,I+c)+f.replace(c,P+c.replace("fill-",""))+f;break;case 962:if(f=I+f+(102===f.charCodeAt(5)?A+f:"")+f,n+r===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(a,"$1"+I+"$2")+f}return f}function de(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10),i=e.substring(n+1,e.length-1);return re(2!==t?r:r.replace(C,"$1"),i,t)}function pe(e,t){var n=he(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function ve(e,t,n,r,i,o,a,s,u,c){for(var l,f=0,h=t;f<ne;++f)switch(l=te[f].call(ye,e,h,n,r,i,o,a,s,u,c)){case void 0:case!1:case!0:case null:break;default:h=l}if(h!==t)return h}function me(e,t,n,r){for(var i=t+1;i<n;++i)switch(r.charCodeAt(i)){case W:if(e===V&&r.charCodeAt(i-1)===V&&t+2!==i)return i+1;break;case M:if(e===W)return i+1}return i}function ge(e){for(var t in e){var n=e[t];switch(t){case"keyframe":oe=0|n;break;case"global":Y=0|n;break;case"cascade":$=0|n;break;case"compress":X=0|n;break;case"semicolon":J=0|n;break;case"preserve":Z=0|n;break;case"prefix":re=null,n?"function"!=typeof n?Q=1:(Q=2,re=n):Q=0}}return ge}function ye(t,n){if(void 0!==this&&this.constructor===ye)return e(t);var i=t,o=i.charCodeAt(0);o<33&&(o=(i=i.trim()).charCodeAt(0)),oe>0&&(ae=i.replace(d,91===o?"":"-")),o=1,1===$?ue=i:se=i;var a,s=[ue];ne>0&&void 0!==(a=ve(-1,n,s,s,K,H,0,0,0,0))&&"string"==typeof a&&(n=a);var u=ce(ee,s,n,0,0);return ne>0&&void 0!==(a=ve(-2,u,s,s,K,H,u.length,0,0,0))&&"string"!=typeof(u=a)&&(o=0),ae="",ue="",se="",G=0,K=1,H=1,X*o==0?u:u.replace(r,"").replace(g,"").replace(y,"$1").replace(b,"$1").replace(w," ")}return ye.use=function e(t){switch(t){case void 0:case null:ne=te.length=0;break;default:if("function"==typeof t)te[ne++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else ie=0|!!t}return e},ye.set=ge,void 0!==t&&ge(t),ye}(null)},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(i=e[n],o=t[n],!(i===o||r(i)&&r(o)))return!1;var i,o;return!0}t.a=function(e,t){var n;void 0===t&&(t=i);var r,o=[],a=!1;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}},function(e,t,n){var r=n(201);e.exports=d,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],h=n[1],d=n.index;if(s+=e.slice(a,d),a=d+f.length,h)s+=h[1];else{var p=e[a],v=n[2],m=n[3],g=n[4],y=n[5],b=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=v&&null!=p&&p!==v,E="+"===b||"*"===b,S="?"===b||"*"===b,k=n[2]||l,T=g||y;r.push({name:m||o++,prefix:v||"",delimiter:k,optional:S,repeat:E,partial:_,asterisk:!!w,pattern:T?c(T):w?".*":"[^"+u(k)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"===typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",f(t)));return function(t,i){for(var o="",s=t||{},u=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!==typeof l){var f,h=s[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var d=0;d<h.length;d++){if(f=u(h[d]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===d?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(h).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(h),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e&&e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"===typeof c)a+=u(c);else{var h=u(c.prefix),d="(?:"+c.pattern+")";t.push(c),c.repeat&&(d+="(?:"+h+d+")*"),a+=d=c.optional?c.partial?h+"("+d+")?":"(?:"+h+"("+d+"))?":h+"("+d+")"}}var p=u(n.delimiter||"/"),v=a.slice(-p.length)===p;
2return i||(a=(v?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+p+"|$)",l(new RegExp("^"+a,f(n)),t)}function d(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(d(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},function(e,t,n){"use strict";function r(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}n.d(t,"a",(function(){return o}));var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,o=r((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}))},,function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;
2if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,u=a(e),c=1;c<arguments.length;c++){for(var l in n=Object(arguments[c]))i.call(n,l)&&(u[l]=n[l]);if(r){s=r(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(u[s[f]]=n[s[f]])}}return u}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(23);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(23),i=n(169),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(76)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(o)})),e.exports=s}).call(this,n(39))},function(e,t,n){"use strict";var r=n(23),i=n(170),o=n(73),a=n(172),s=n(175),u=n(176),c=n(77);e.exports=function(e){return new Promise((function(t,l){var f=e.data,h=e.headers;r.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",v=e.auth.password||"";h.Authorization="Basic "+btoa(p+":"+v)}var m=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};i(t,l,r),d=null}},d.onabort=function(){d&&(l(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n(177),y=(e.withCredentials||u(m))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(h[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(h,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),l(e),d=null)})),void 0===f&&(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(171);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(u,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
2,r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(24);function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";(function(t){var r=n(24),i=n(188),o={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s={adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n(84)),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"===typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){s.headers[e]=r.merge(o)})),e.exports=s}).call(this,n(39))},function(e,t,n){"use strict";var r=n(24),i=n(189),o=n(81),a=n(191),s=n(194),u=n(195),c=n(85);e.exports=function(e){return new Promise((function(t,l){var f=e.data,h=e.headers;r.isFormData(f)&&delete h["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",v=e.auth.password||"";h.Authorization="Basic "+btoa(p+":"+v)}var m=a(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),o(m,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};i(t,l,r),d=null}},d.onabort=function(){d&&(l(c("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){l(c("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),l(c(t,e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=n(196),y=(e.withCredentials||u(m))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(h[e.xsrfHeaderName]=y)}if("setRequestHeader"in d&&r.forEach(h,(function(e,t){"undefined"===typeof f&&"content-type"===t.toLowerCase()?delete h[t]:d.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"===typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),l(e),d=null)})),void 0===f&&(f=null),d.send(f)}))}},function(e,t,n){"use strict";var r=n(190);e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),u=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(u,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")}
2,r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){"use strict";e.exports=n(113)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"CommonLoading",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"WaveLoading",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"CircleLoading",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"LoopCircleLoading",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"TransverseLoading",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"BlockLoading",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"BoxLoading",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"CircleToBlockLoading",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"TouchBallLoading",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"DisappearedLoading",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"BlockReserveLoading",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"WaveTopBottomLoading",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"NineCellLoading",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"WindMillLoading",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"BabelLoading",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"JumpCircleLoading",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"MeteorRainLoading",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"RotateCircleLoading",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"StickyBallLoading",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"SemipolarLoading",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"SolarSystemLoading",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"LadderLoading",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"HeartBoomLoading",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"RollBoxLoading",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"RectGraduallyShowLoading",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"PointSpreadLoading",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"ThreeHorseLoading",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"PassThrouthLoading",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"CoffeeLoading",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"BatteryLoading",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"EatLoading",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"DiamonLoading",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"BlockRotateLoading",{enumerable:!0,get:function(){return D.default}});var r=L(n(114)),i=L(n(115)),o=L(n(116)),a=L(n(117)),s=L(n(118)),u=L(n(119)),c=L(n(121)),l=L(n(123)),f=L(n(124)),h=L(n(125)),d=L(n(126)),p=L(n(127)),v=L(n(128)),m=L(n(129)),g=L(n(130)),y=L(n(131)),b=L(n(132)),w=L(n(133)),_=L(n(134)),E=L(n(135)),S=L(n(136)),k=L(n(137)),T=L(n(138)),C=L(n(139)),O=L(n(140)),x=L(n(141)),I=L(n(142)),P=L(n(143)),A=L(n(144)),N=L(n(145)),j=L(n(146)),R=L(n(147)),D=L(n(148));function L(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){e.exports=function(){"use strict";return function(e){function t(t){if(t)try{e(t+"}")}catch(n){}}return function(n,r,i,o,a,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}}()},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(0)),o=u(n(4));n(151);var a=u(n(152)),s=u(n(153));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var l={display:"flex",alignItems:"center",justifyContent:"center",flexWrap:"wrap",width:"100%"},f="NOT_SUPPORTED_EXTENSION",h="FILESIZE_TOO_LARGE",d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={pictures:[].concat(c(e.defaultImages)),files:[],fileErrors:[]},n.inputElement="",n.onDropFile=n.onDropFile.bind(n),n.onUploadClick=n.onUploadClick.bind(n),n.triggerFileUpload=n.triggerFileUpload.bind(n),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t,n){t.files!==this.state.files&&this.props.onChange(this.state.files,this.state.pictures)}},{key:"componentWillReceiveProps",value:function(e){e.defaultImages!==this.props.defaultImages&&this.setState({pictures:e.defaultImages})}},{key:"hasExtension",value:function(e){var t="("+this.props.imgExtension.join("|").replace(/\./g,"\\.")+")$";return new RegExp(t,"i").test(e)}},{key:"onDropFile",value:function(e){for(var t=this,n=e.target.files,r=[],i=[],o=0;o<n.length;o++){var a=n[o],s={name:a.name};this.hasExtension(a.name)?a.size>this.props.maxFileSize?(s=Object.assign(s,{type:h}),i.push(s)):r.push(this.readFile(a)):(s=Object.assign(s,{type:f}),i.push(s))}this.setState({fileErrors:i});var u=this.props.singleImage;Promise.all(r).then((function(e){var n=u?[]:t.state.pictures.slice(),r=u?[]:t.state.files.slice();e.forEach((function(e){n.push(e.dataURL),r.push(e.file)})),t.setState({pictures:n,files:r})}))}},{key:"onUploadClick",value:function(e){e.target.value=null}},{key:"readFile",value:function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(n){var r=n.target.result;r=r.replace(";base64",";name="+e.name+";base64"),t({file:e,dataURL:r})},r.readAsDataURL(e)}))}},{key:"removeImage",value:function(e){var t=this,n=this.state.pictures.findIndex((function(t){return t===e})),r=this.state.pictures.filter((function(e,t){return t!==n})),i=this.state.files.filter((function(e,t){return t!==n}));this.setState({pictures:r,files:i},(function(){t.props.onChange(t.state.files,t.state.pictures)}))}},{key:"renderErrors",value:function(){var e=this;return this.state.fileErrors.map((function(t,n){return i.default.createElement("div",{className:"errorMessage "+e.props.errorClass,key:n,style:e.props.errorStyle},"* ",t.name," ",t.type===h?e.props.fileSizeError:e.props.fileTypeError)}))}},{key:"renderIcon",value:function(){if(this.props.withIcon)return i.default.createElement("img",{src:s.default,className:"uploadIcon",alt:"Upload Icon"})}},{key:"renderLabel",value:function(){if(this.props.withLabel)return i.default.createElement("p",{className:this.props.labelClass,style:this.props.labelStyles},this.props.label)}},{key:"renderPreview",value:function(){return i.default.createElement("div",{className:"uploadPicturesWrapper"},i.default.createElement(a.default,{enterAnimation:"fade",leaveAnimation:"fade",style:l},this.renderPreviewPictures()))}},{key:"renderPreviewPictures",value:function(){var e=this;return this.state.pictures.map((function(t,n){return i.default.createElement("div",{key:n,className:"uploadPictureContainer"},i.default.createElement("div",{className:"deleteImage",onClick:function(){return e.removeImage(t)}},"X"),i.default.createElement("img",{src:t,className:"uploadPicture",alt:"preview"}))}))}},{key:"triggerFileUpload",value:function(){this.inputElement.click()}},{key:"clearPictures",value:function(){this.setState({pictures:[]})}},{key:"render",value:function(){var e=this;return i.default.createElement("div",{className:"fileUploader "+this.props.className,style:this.props.style},i.default.createElement("div",{className:"fileContainer",style:this.props.fileContainerStyle},this.renderIcon(),this.renderLabel(),i.default.createElement("div",{className:"errorsContainer"},this.renderErrors()),i.default.createElement("button",{type:this.props.buttonType,className:"chooseFileButton "+this.props.buttonClassName,style:this.props.buttonStyles,onClick:this.triggerFileUpload},this.props.buttonText),i.default.createElement("input",{type:"file",ref:function(t){return e.inputElement=t},name:this.props.name,multiple:!this.props.singleImage,onChange:this.onDropFile,onClick:this.onUploadClick,accept:this.props.accept}),this.props.withPreview?this.renderPreview():null))}}]),t}(i.default.Component);d.defaultProps={className:"",fileContainerStyle:{},buttonClassName:"",buttonStyles:{},withPreview:!1,accept:"image/*",name:"",withIcon:!0,buttonText:"Cho
2ose images",buttonType:"button",withLabel:!0,label:"Max file size: 5mb, accepted: jpg|gif|png",labelStyles:{},labelClass:"",imgExtension:[".jpg",".jpeg",".gif",".png"],maxFileSize:5242880,fileSizeError:" file size is too big",fileTypeError:" is not a supported file extension",errorClass:"",style:{},errorStyle:{},singleImage:!1,onChange:function(){},defaultImages:[]},d.propTypes={style:o.default.object,fileContainerStyle:o.default.object,className:o.default.string,onChange:o.default.func,onDelete:o.default.func,buttonClassName:o.default.string,buttonStyles:o.default.object,buttonType:o.default.string,withPreview:o.default.bool,accept:o.default.string,name:o.default.string,withIcon:o.default.bool,buttonText:o.default.string,withLabel:o.default.bool,label:o.default.string,labelStyles:o.default.object,labelClass:o.default.string,imgExtension:o.default.array,maxFileSize:o.default.number,fileSizeError:o.default.string,fileTypeError:o.default.string,errorClass:o.default.string,errorStyle:o.default.object,singleImage:o.default.bool,defaultImages:o.default.array},t.default=d},function(e,t,n){e.exports=n(164)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.client=void 0;var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(180),o=s(n(182)),a=s(n(199));function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function c(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=function e(t){l(this,e),t.apiUri&&t.apiVersion&&t.apiKey?(this.Accesstoken=new d(t),this.Account=new p(t),this.Campaign=new v(t),this.Channel=new m(t),this.Contact=new g(t),this.Domain=new y(t),this.Email=new b(t),this.Export=new w(t),this.File=new _(t),this.List=new E(t),this.Log=new S(t),this.Segment=new k(t),this.Sms=new T(t),this.Template=new C(t),this.Validemail=new O(t)):console.error("Missing mandatory options!")};t.client=f;t.default=f;var h=function e(t){l(this,e),this._makeCall=function(e,n,r){if((0,i.includes)(["POST","GET"],r.toUpperCase())){(0,i.isObject)(n)||(n={}),n.apikey=t.apiKey;var s=new a.default,u=s.getHeaders();return(0,i.forEach)(n,(function(e,t){s.append(t,e)})),(0,o.default)({method:r,url:t.apiUri+t.apiVersion+e,data:s,headers:u}).then((function(e){if(!e.data.success)throw e.error;return e.data}))}console.error("makeCall: unsupported method type: "+r)}},d=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/accesstoken/add",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/accesstoken/delete",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/accesstoken/list",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/accesstoken/update",e,"POST")}}]),t}(h),p=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"AddDedicatedSupport",value:function(e){return this._makeCall("/account/adddedicatedsupport",e,"POST")}},{key:"AddSubAccount",value:function(e){return this._makeCall("/account/addsubaccount",e,"POST")}},{key:"AddSubAccountCredits",value:function(e){return this._makeCall("/account/addsubaccountcredits",e,"POST")}},{key:"AddWebhook",value:function(e){return this._makeCall("/account/addwebhook",e,"POST")}},{key:"ChangeEmail",value:function(e){return this._makeCall("/account/changeemail",e,"POST")}},{key:"ChangePassword",value:function(e){return this._makeCall("/account/changepassword",e,"POST")}},{key:"ChangeSubAccountPassword",value:function(e){return this._makeCall("/account/changesubaccountpassword",e,"POST")}},{key:"DeleteSubAccount",value:function(e){return this._makeCall("/account/deletesubaccount",e,"POST")}},{key:"DeleteWebhook",value:function(e){return this._makeCall("/account/deletewebhook",e,"POST")}},{key:"GetSubAccountApiKey",value:function(e){return this._makeCall("/account/getsubaccountapikey",e,"POST")}},{key:"GetSubAccountList",value:function(e){return this._makeCall("/account/getsubaccountlist",e,"POST")}},{key:"Load",value:function(e){return this._makeCall("/account/load",e,"POST")}},{key:"LoadAdvancedOptions",value:function(e){return this._makeCall("/account/loadadvancedoptions",e,"POST")}},{key:"LoadEmailCreditsHistory",value:function(e){return this._makeCall("/account/loademailcreditshistory",e,"POST")}},{key:"LoadInboundOptions",value:function(e){return this._makeCall("/account/loadinboundoptions",e,"POST")}},{key:"LoadPaymentHistory",value:function(e){return this._makeCall("/account/loadpaymenthistory",e,"POST")}},{key:"LoadPayoutHistory",value:function(e){return this._makeCall("/account/loadpayouthistory",e,"POST")}},{key:"LoadReferralDetails",value:function(e){return this._makeCall("/account/loadreferraldetails",e,"POST")}},{key:"LoadReputationHistory",value:function(e){return this._makeCall("/account/loadreputationhistory",e,"POST")}},{key:"LoadReputationImpact",value:function(e){return this._makeCall("/account/loadreputationimpact",e,"POST")}},{key:"LoadSpamCheck",value:function(e){return this._makeCall("/account/loadspamcheck",e,"POST")}},{key:"LoadSubAccountsEmailCreditsHistory",value:function(e){return this._makeCall("/account/loadsubaccountsemailcreditshistory",e,"POST")}},{key:"LoadSubAccountSettings",value:function(e){return this._makeCall("/account/loadsubaccountsettings",e,"POST")}},{key:"LoadUsage",value:function(e){return this._makeCall("/account/loadusage",e,"POST")}},{key:"LoadWebhook",value:function(e){return this._makeCall("/account/loadwebhook",e,"POST")}},{key:"LoadWebNotificationOptions",value:function(e){return this._makeCall("/account/loadwebnotificationoptions",e,"POST")}},{key:"Overview",value:function(e){return this._makeCall("/account/overview",e,"POST")}},{key:"ProfileOverview",value:function(e){return this._makeCall("/account/profileoverview",e,"POST")}},{key:"RemoveSubAccountCredits",value:function(e){return this._makeCall("/account/removesubaccountcredits",e,"POST")}},{key:"RequestNewApiKey",value:function(e){return this._makeCall("/account/requestnewapikey",e,"POST")}},{key:"RequestPrivateIP",value:function(e){return this._makeCall("/account/requestprivateip",e,"POST")}},{key:"UpdateAdvancedOptions",value:function(e){return this._makeCall("/account/updateadvancedoptions",e,"POST")}},{key:"UpdateCustomBranding",value:function(e){return this._makeCall("/account/updatecustombranding",e,"POST")}},{key:"UpdateInboundNotifications",value:function(e){return this._makeCall("/account/updateinboundnotifications",e,"POST")}},{key:"UpdateProfile",value:function(e){return this._makeCall("/account/updateprofile",e,"POST")}},{key:"UpdateSubAccountSettings",value:function(e){return this._makeCall("/account/updatesubaccountsettings",e,"POST")}},{key:"UpdateWebhook",value:function(e){return this._makeCall("/account/updatewebhook",e,"POST")}}]),t}(h),v=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/campaign/add",e,"POST")}},{key:"Copy",value:function(e){return this._makeCall("/campaign/copy",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/campaign/delete",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/campaign/export",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/campaign/list",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/campaign/update",e,"POST")}}]),t}(h),m=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/channel/add",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/channel/delete",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/channel/export",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/channel/list",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/channel/update",e,"POST")}}]),t}(h),g=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/contact/add",e,"POST")}},{key:"AddBlocked",value:function(e){return this._makeCall("/contact/addblocked",e,"POST")}},{key:"ChangeProperty",value:function(e){return this._makeCall("/contact/changeproperty",e,"POST")}},{key:"ChangeStatus",value:function(e){return this._makeCall("/contact/changestatus",e,"POST")}},{key:"Count",value:function(e){return this._makeCall("/contact/count",e,"POST")}},{key:"CountByStatus",value:function(e){return this._makeCall("/contact/countbystatus",e,"POST")}},{key:"CountByUnsubscribeReason",value:function(e){return this._makeCall("/contact/countbyunsubscribereason",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/contact/delete",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/contact/export",e,"POST")}},{key:"ExportUnsubscribeReasonCount",value:function(e){return this._makeCall("/contact/exportunsubscribereasoncount",e,"POST")}},{key:"FindContact",value:function(e){return this._makeCall("/contact/findcontact",e,"POST")}},{key:"GetContactsByList",value:function(e){return this._makeCall("/contact/getcontactsbylist",e,"POST")}},{key:"GetContactsBySegment",value:function(e){return this._makeCall("/contact/getcontactsbysegment",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/contact/list",e,"POST")}},{key:"LoadBlocked",value:function(e){return this._makeCall("/contact/loadblocked",e,"POST")}},{key:"LoadContact",value:function(e){return this._makeCall("/contact/loadcontact",e,"POST")}},{key:"LoadHistory",value:function(e){return this._makeCall("/contact/loadhistory",e,"POST")}},{key:"QuickAdd",value:function(e){return this._makeCall("/contact/quickadd",e,"POST")}},{key:"Subscribe",value:function(e){return this._makeCall("/contact/subscribe",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/contact/update",e,"POST")}},{key:"Upload",value:function(e){return this._makeCall("/contact/upload",e,"POST")}}]),t}(h),y=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/domain/add",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/domain/delete",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/domain/list",e,"POST")}},{key:"SetDefault",value:function(e){return this._makeCall("/domain/setdefault",e,"POST")}},{key:"SetVerp",value:function(e){return this._makeCall("/domain/setverp",e,"POST")}},{key:"VerifyDkim",value:function(e){return this._makeCall("/domain/verifydkim",e,"POST")}},{key:"VerifyMX",value:function(e){return this._makeCall("/domain/verifymx",e,"POST")}},{key:"VerifySpf",value:function(e){return this._makeCall("/domain/verifyspf",e,"POST")}},{key:"VerifyTracking",value:function(e){return this._makeCall("/domain/verifytracking",e,"POST")}}]),t}(h),b=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"GetStatus",value:function(e){return this._makeCall("/email/getstatus",e,"POST")}},{key:"ListAttachments",value:function(e){return this._makeCall("/email/listattachments",e,"POST")}},{key:"Send",value:function(e){return this._makeCall("/email/send",e,"POST")}},{key:"Status",value:function(e){return this._makeCall("/email/status",e,"POST")}},{key:"VerificationResult",value:function(e){return this._makeCall("/email/verificationresult",e,"POST")}},{key:"Verify",value:function(e){return this._makeCall("/email/verify",e,"POST")}},{key:"VerifyList",value:function(e){return this._makeCall("/email/verifylist",e,"POST")}},{key:"View",value:function(e){return this._makeCall("/email/view",e,"POST")}}]),t}(h),w=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"CheckStatus",value:function(e){return this._makeCall("/export/checkstatus",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/export/delete",e,"POST")}},{key:"DownloadBulk",value:function(e){return this._makeCall("/export/downloadbulk",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/export/list",e,"POST")}}]),t}(h),_=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Delete",value:function(e){return this._makeCall("/file/delete",e,"POST")}},{key:"Download",value:function(e){return this._makeCall("/file/download",e,"POST")}},{key:"ListAll",value:function(e){return this._makeCall("/file/listall",e,"POST")}},{key:"Load",value:function(e){return this._makeCall("/file/load",e,"POST")}},{key:"Upload",value:function(e){return this._makeCall("/file/upload",e,"POST")}}]),t}(h),E=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/list/add",e,"POST")}},{key:"AddContacts",value:function(e){return this._makeCall("/list/addcontacts",e,"POST")}},{key:"Copy",value:function(e){return this._makeCall("/list/copy",e,"POST")}},{key:"CreateFromCampaign",value:function(e){return this._makeCall("/list/createfromcampaign",e,"POST")}},{key:"CreateNthSelectionLists",value:function(e){return this._makeCall("/list/createnthselectionlists",e,"POST")}},{key:"CreateRandomList",value:function(e){return this._makeCall("/list/createrandomlist",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/list/delete",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/list/export",e,"POST")}},{key:"list",value:function(e){return this._makeCall("/list/list",e,"POST")}},{key:"Load",value:function(e){return this._makeCall("/list/load",e,"POST")}},{key:"MoveContacts",value:function(e){return this._makeCall("/list/movecontacts",e,"POST")}},{key:"RemoveContacts",value:function(e){return this._makeCall("/list/removecontacts",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/list/update",e,"POST")}}]),t}(h),S=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"CancelInProgress",value:function(e){return this._makeCall("/log/cancelinprogress",e,"POST")}},{key:"Events",value:function(e){return this._makeCall("/log/events",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/log/export",e,"POST")}},{key:"ExportEvents",value:function(e){return this._makeCall("/log/exportevents",e,"POST")}},{key:"ExportLinkTracking",value:function(e){return this._makeCall("/log/exportlinktracking",e,"POST")}},{key:"LinkTracking",value:function(e){return this._makeCall("/log/linktracking",e,"POST")}},{key:"Load",value:function(e){return this._makeCall("/log/load",e,"POST")}},{key:"LoadNotifications",value:function(e){return this._makeCall("/log/loadnotifications",e,"POST")}},{key:"Summary",value:function(e){return this._makeCall("/log/summary",e,"POST")}}]),t}(h),k=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/segment/add",e,"POST")}},{key:"Copy",value:function(e){return this._makeCall("/segment/copy",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/segment/delete",e,"POST")}},{key:"Export",value:function(e){return this._makeCall("/segment/export",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/segment/list",
2e,"POST")}},{key:"LoadByName",value:function(e){return this._makeCall("/segment/loadbyname",e,"POST")}},{key:"LoadTrackedHistory",value:function(e){return this._makeCall("/segment/loadtrackedhistory",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/segment/update",e,"POST")}}]),t}(h),T=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Send",value:function(e){return this._makeCall("/sms/send",e,"POST")}}]),t}(h),C=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/template/add",e,"POST")}},{key:"AddTag",value:function(e){return this._makeCall("/template/addtag",e,"POST")}},{key:"Copy",value:function(e){return this._makeCall("/template/copy",e,"POST")}},{key:"Delete",value:function(e){return this._makeCall("/template/delete",e,"POST")}},{key:"DeleteBulk",value:function(e){return this._makeCall("/template/deletebulk",e,"POST")}},{key:"DeleteTag",value:function(e){return this._makeCall("/template/deletetag",e,"POST")}},{key:"GetList",value:function(e){return this._makeCall("/template/getlist",e,"POST")}},{key:"GetTagList",value:function(e){return this._makeCall("/template/gettaglist",e,"POST")}},{key:"IsUsedByCampaign",value:function(e){return this._makeCall("/template/isusedbycampaign",e,"POST")}},{key:"LoadTemplate",value:function(e){return this._makeCall("/template/loadtemplate",e,"POST")}},{key:"ReadRssFeed",value:function(e){return this._makeCall("/template/readrssfeed",e,"POST")}},{key:"Update",value:function(e){return this._makeCall("/template/update",e,"POST")}},{key:"UpdateDefaultOptions",value:function(e){return this._makeCall("/template/updatedefaultoptions",e,"POST")}}]),t}(h),O=function(e){function t(e){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return c(t,e),r(t,[{key:"Add",value:function(e){return this._makeCall("/validemail/add",e,"POST")}},{key:"List",value:function(e){return this._makeCall("/validemail/list",e,"POST")}},{key:"Remove",value:function(e){return this._makeCall("/validemail/remove",e,"POST")}},{key:"ResendEmailVerification",value:function(e){return this._makeCall("/validemail/resendemailverification",e,"POST")}}]),t}(h)},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(0),a=n.n(o),s=n(4),u=n.n(s),c=n(62),l=n(64),f=n(51),h=["title","children","bsPrefix","rootCloseEvent","variant","size","menuAlign","menuRole","renderMenuOnMount","disabled","href","id"],d={id:u.a.any,href:u.a.string,onClick:u.a.func,title:u.a.node.isRequired,disabled:u.a.bool,menuAlign:f.a,menuRole:u.a.string,renderMenuOnMount:u.a.bool,rootCloseEvent:u.a.string,bsPrefix:u.a.string,variant:u.a.string,size:u.a.string},p=a.a.forwardRef((function(e,t){var n=e.title,o=e.children,s=e.bsPrefix,u=e.rootCloseEvent,d=e.variant,p=e.size,v=e.menuAlign,m=e.menuRole,g=e.renderMenuOnMount,y=e.disabled,b=e.href,w=e.id,_=Object(i.a)(e,h);return a.a.createElement(c.a,Object(r.a)({ref:t},_),a.a.createElement(l.a,{id:w,href:b,size:p,variant:d,disabled:y,childBsPrefix:s},n),a.a.createElement(f.b,{align:v,role:m,renderOnMount:g,rootCloseEvent:u},o))}));p.displayName="DropdownButton",p.propTypes=d,t.a=p},function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<o.length;u++){var c=o[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=n?n.call(r,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},function(e,t,n){"use strict";t.a=function(e){function t(e,t,r){var i=t.trim().split(p);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<o;++s)for(var c=0;c<a;++c)t[u++]=n(e[c]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>
vendor: 4,187 bytes, line 2
2r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(v,"$1"+e.trim());case 58:return e.trim()+t.replace(v,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(v,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===I||2===I&&i(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(T,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return h.test(a)?a.replace(f,":-webkit-")+a.replace(f,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(E,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(E,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===k.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),j(2!==t?r:r.replace(S,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(_," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,c,l){for(var f,h=0,d=t;h<N;++h)switch(f=A[h].call(u,e,d,n,r,i,o,a,s,c,l)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(j=null,e?"function"!==typeof e?I=1:(I=2,j=e):I=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<N){var u=a(-1,n,s,s,O,C,0,0,0,0);void 0!==u&&"string"===typeof u&&(n=u)}var f=function e(n,s,u,f,h){for(var d,p,v,b,_,E=0,S=0,k=0,T=0,A=0,j=0,D=v=d=0,L=0,M=0,F=0,z=0,U=u.length,V=U-1,B="",q="",W="",H="";L<U;){if(p=u.charCodeAt(L),L===V&&0!==S+T+k+E&&(0!==S&&(p=47===S?10:47),T=k=E=0,U++,V++),0===S+T+k+E){if(L===V&&(0<M&&(B=B.replace(l,"")),0<B.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:B+=u.charAt(L)}p=59}
2switch(p){case 123:for(d=(B=B.trim()).charCodeAt(0),v=1,z=++L;L<U;){switch(p=u.charCodeAt(L)){case 123:v++;break;case 125:v--;break;case 47:switch(p=u.charCodeAt(L+1)){case 42:case 47:e:{for(D=L+1;D<V;++D)switch(u.charCodeAt(D)){case 47:if(42===p&&42===u.charCodeAt(D-1)&&L+2!==D){L=D+1;break e}break;case 10:if(47===p){L=D+1;break e}}L=D}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<V&&u.charCodeAt(L)!==p;);}if(0===v)break;L++}switch(v=u.substring(z,L),0===d&&(d=(B=B.replace(c,"").trim()).charCodeAt(0)),d){case 64:switch(0<M&&(B=B.replace(l,"")),p=B.charCodeAt(1)){case 100:case 109:case 115:case 45:M=s;break;default:M=P}if(z=(v=e(s,M,v,p,h+1)).length,0<N&&(_=a(3,v,M=t(P,B,F),s,O,C,z,p,h,f),B=M.join(""),void 0!==_&&0===(z=(v=_.trim()).length)&&(p=0,v="")),0<z)switch(p){case 115:B=B.replace(w,o);case 100:case 109:case 45:v=B+"{"+v+"}";break;case 107:v=(B=B.replace(m,"$1 $2"))+"{"+v+"}",v=1===I||2===I&&i("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=B+v,112===f&&(q+=v,v="")}else v="";break;default:v=e(s,t(s,B,F),v,f,h+1)}W+=v,v=F=M=D=d=0,B="",p=u.charCodeAt(++L);break;case 125:case 59:if(1<(z=(B=(0<M?B.replace(l,""):B).trim()).length))switch(0===D&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(z=(B=B.replace(" ",":")).length),0<N&&void 0!==(_=a(1,B,s,n,O,C,q.length,f,h,f))&&0===(z=(B=_.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),p=B.charCodeAt(1),d){case 0:break;case 64:if(105===p||99===p){H+=B+u.charAt(L);break}default:58!==B.charCodeAt(z-1)&&(q+=r(B,d,p,B.charCodeAt(2)))}F=M=D=d=0,B="",p=u.charCodeAt(++L)}}switch(p){case 13:case 10:47===S?S=0:0===1+d&&107!==f&&0<B.length&&(M=1,B+="\0"),0<N*R&&a(0,B,s,n,O,C,q.length,f,h,f),C=1,O++;break;case 59:case 125:if(0===S+T+k+E){C++;break}default:switch(C++,b=u.charAt(L),p){case 9:case 32:if(0===T+E+S)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==p&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===T+S+E&&(M=F=1,b="\f"+b);break;case 108:if(0===T+S+E+x&&0<D)switch(L-D){case 2:112===A&&58===u.charCodeAt(L-3)&&(x=A);case 8:111===j&&(x=j)}break;case 58:0===T+S+E&&(D=L);break;case 44:0===S+k+T+E&&(M=1,b+="\r");break;case 34:case 39:0===S&&(T=T===p?0:0===T?p:T);break;case 91:0===T+S+k&&E++;break;case 93:0===T+S+k&&E--;break;case 41:0===T+S+E&&k--;break;case 40:if(0===T+S+E){if(0===d)switch(2*A+3*j){case 533:break;default:d=1}k++}break;case 64:0===S+k+T+E+D+v&&(v=1);break;case 42:case 47:if(!(0<T+E+k))switch(S){case 0:switch(2*p+3*u.charCodeAt(L+1)){case 235:S=47;break;case 220:z=L,S=42}break;case 42:47===p&&42===A&&z+2!==L&&(33===u.charCodeAt(z+2)&&(q+=u.substring(z,L+1)),b="",S=0)}}0===S&&(B+=b)}j=A,A=p,L++}if(0<(z=q.length)){if(M=s,0<N&&(void 0!==(_=a(2,q,M,n,O,C,z,f,h,f))&&0===(q=_).length))return H+q+W;if(q=M.join(",")+"{"+q+"}",0!==I*x){switch(2!==I||i(q,2)||(x=0),x){case 111:q=q.replace(y,":-moz-$1")+q;break;case 112:q=q.replace(g,"::-webkit-input-$1")+q.replace(g,"::-moz-$1")+q.replace(g,":-ms-input-$1")+q}x=0}}return H+q+W}(P,s,n,0,0);return 0<N&&(void 0!==(u=a(-2,f,s,s,O,C,f.length,0,0,0))&&(f=u)),"",x=0,C=O=1,f}var c=/^\0+/g,l=/[\0\r\f]/g,f=/: */g,h=/zoo|gra/,d=/([,: ])(transform)/g,p=/,\r+?/g,v=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,y=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,_=/([\s\S]*?);/g,E=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,k=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,C=1,O=1,x=0,I=1,P=[],A=[],N=0,j=null,R=0;return u.use=function e(t){switch(t){case void 0:case null:N=A.length=0;break;default:if("function"===typeof t)A[N++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},u.set=s,void 0!==e&&s(e),u}},function(e,t,n){"use strict";var r=n(42).compose;t.__esModule=!0,t.composeWithDevTools="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"===typeof arguments[0]?r:r.apply(null,arguments)},t.devToolsEnhancer="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}}},function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var i=r(n(17));i.default.registerVersion("firebase","7.24.0","app"),e.exports=i.default},function(e,t,n){"use strict";var r=n(10),i=n(3),o=n(5),a=n(6),s=n(2);function u(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e}var c=u,l=(n(54),[]),f=0;function h(e){try{v(),e()}finally{m()}}function d(e){l.push(e),f||(v(),g())}function p(e){try{return v(),e()}finally{g()}}function v(){f++}function m(){f--}function g(){var e;
vendor: 14,035 bytes, line 2
2for(m();!f&&void 0!==(e=l.shift());)h(e)}var y=function(e){return function(t){return e.some((function(e){return S(e)(t)}))}},b=function(e){return function(t){return e(t)}},w=function(e){return function(t){return t.type===String(e)}},_=function(e){return function(t){return t.type===e}},E=function(){return s.G};function S(e){var t="*"===e?E:Object(a.k)(e)?w:Object(a.a)(e)?y:Object(a.l)(e)?w:Object(a.d)(e)?b:Object(a.m)(e)?_:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var k={type:r.b},T=function(e){return e&&e.type===r.b};function C(e){void 0===e&&(e=Object(s.A)());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(k):e.isEmpty()?(n.push(r),r.cancel=function(){Object(s.N)(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(k):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++){(0,e[r])(k)}}}}}function O(){var e=function(){var e,t=!1,n=[],i=n,o=function(){i===n&&(i=n.slice())},a=function(){t=!0;var e=n=i;i=[],e.forEach((function(e){e(k)}))};return(e={})[r.e]=!0,e.put=function(e){if(!t)if(T(e))a();else for(var o=n=i,s=0,u=o.length;s<u;s++){var c=o[s];c[r.d](e)&&(c.cancel(),c(e))}},e.take=function(e,n){void 0===n&&(n=E),t?e(k):(e[r.d]=n,o(),i.push(e),e.cancel=Object(s.K)((function(){o(),Object(s.N)(i,e)})))},e.close=a,e}(),t=e.put;return e.put=function(e){e[r.f]?t(e):d((function(){t(e)}))},e}function x(e,t){var n=e[r.a];Object(a.d)(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var I,P=0,A=function(){return++P};function N(e){e.isRunning()&&e.cancel()}var j=((I={})[s.r]=function(e,t,n){var i=t.channel,o=void 0===i?e.channel:i,s=t.pattern,u=t.maybe,c=function(e){e instanceof Error?n(e,!0):!T(e)||u?n(e):n(r.k)};try{o.take(c,Object(a.g)(s)?S(s):null)}catch(l){return void n(l,!0)}n.cancel=c.cancel},I[s.n]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;d((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(s){return void n(s,!0)}o&&Object(a.j)(t)?x(t,n):n(t)}))},I[s.a]=function(e,t,n,r){var i=r.digestEffect,o=P,u=Object.keys(t);if(0!==u.length){var c=Object(s.H)(t,n);u.forEach((function(e){i(t[e],o,c[e],e)}))}else n(Object(a.a)(t)?[]:{})},I[s.p]=function(e,t,n,r){var i=r.digestEffect,o=P,u=Object.keys(t),c=Object(a.a)(t)?Object(s.I)(u.length):{},l={},f=!1;u.forEach((function(e){var t=function(t,r){f||(r||Object(s.O)(t)?(n.cancel(),n(t,r)):(n.cancel(),f=!0,c[e]=t,n(c)))};t.cancel=s.P,l[e]=t})),n.cancel=function(){f||(f=!0,u.forEach((function(e){return l[e].cancel()})))},u.forEach((function(e){f||i(t[e],o,l[e],e)}))},I[s.c]=function(e,t,n,r){var i=t.context,o=t.fn,u=t.args,c=r.task;try{var l=o.apply(i,u);if(Object(a.j)(l))return void x(l,n);if(Object(a.e)(l))return void B(e,l,c.context,P,Object(s.F)(o),!1,n);n(l)}catch(f){n(f,!0)}},I[s.w]=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var s=function(e,t){Object(a.n)(e)?n(t):n(e,!0)};i.apply(r,o.concat(s)),s.cancel&&(n.cancel=s.cancel)}catch(u){n(u,!0)}},I[s.f]=function(e,t,n,r){var i=t.context,o=t.fn,u=t.args,c=t.detached,l=r.task,f=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(Object(a.e)(i))return i;var o=!1;return Object(s.M)((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!Object(a.j)(i)})}))}catch(u){return Object(s.M)((function(){throw u}))}}({context:i,fn:o,args:u}),h=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Object(s.F)(t)}(f,o);p((function(){var t=B(e,f,l.context,P,h,c,void 0);c?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},I[s.i]=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&Object(s.N)(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(Object(a.a)(t)){if(0===t.length)return void n([]);var u=Object(s.H)(t,n);t.forEach((function(e,t){o(e,u[t])}))}else o(t,n)},I[s.x]=function(e,t,n,i){var o=i.task;t===r.h?N(o):Object(a.a)(t)?t.forEach(N):N(t),n()},I[s.q]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(o){n(o,!0)}},I[s.z]=function(e,t,n){var r=t.pattern,i=C(t.buffer),o=S(r),a=function t(n){T(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},I[s.B]=function(e,t,n,r){n(r.task.isCancelled())},I[s.C]=function(e,t,n){t.flush(n)},I[s.g]=function(e,t,n,r){n(r.task.context[t])},I[s.D]=function(e,t,n,r){var i=r.task;Object(s.L)(i.context,t),n()},I);function R(e,t){return e+"?"+t}function D(e){var t=e.name,n=e.location;return n?t+" "+R(n.fileName,n.lineNumber):t}function L(e){var t=Object(s.Q)((function(e){return e.cancelledTasks}),e);return t.length?["Tasks cancelled due to error:"].concat(t).join("\n"):""}var M=null,F=[],z=function(){M=null,F.length=0},U=function(){var e=F[0],t=F.slice(1),n=e.crashedEffect?function(e){var t=Object(s.R)(e);return t?t.code+" "+R(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+D(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+D(e.meta)})),[L(F)]).join("\n")};function V(e,t,n,i,o,a,u){var l;void 0===u&&(u=s.P);var f,h,d=0,p=null,v=[],m=Object.create(n),g=function(e,t,n){var r,i=[],o=!1;function a(e){t(),c(),n(e,!0)}function u(t){i.push(t),t.cont=function(u,c){o||(Object(s.N)(i,t),t.cont=s.P,c?a(u):(t===e&&(r=u),i.length||(o=!0,n(r))))}}function c(){o||(o=!0,i.forEach((function(e){e.cont=s.P,e.cancel()})),i=[])}return u(e),{addTask:u,cancelAll:c,abort:a,getTasks:function(){return i}}}(t,(function(){v.push.apply(v,g.getTasks().map((function(e){return e.meta.name})))}),y);function y(t,n){if(n){if(d=2,(a={meta:o,cancelledTasks:v}).crashedEffect=M,F.push(a),b.isRoot){var i=U();z(),e.onError(t,{sagaStack:i})}h=t,p&&p.reject(t)}else t===r.j?d=1:1!==d&&(d=3),f=t,p&&p.resolve(t);var a;b.cont(t,n),b.joiners.forEach((function(e){e.cb(t,n)})),b.joiners=null}var b=((l={})[r.i]=!0,l.id=i,l.meta=o,l.isRoot=a,l.context=m,l.joiners=[],l.queue=g,l.cancel=function(){0===d&&(d=1,g.cancelAll(),y(r.j,!1))},l.cont=u,l.end=y,l.setContext=function(e){Object(s.L)(m,e)},l.toPromise=function(){return p||(p=c(),2===d?p.reject(h):0!==d&&p.resolve(f)),p.promise},l.isRunning=function(){return 0===d},l.isCancelled=function(){return 1===d||0===d&&1===t.status},l.isAborted=function(){return 2===d},l.result=function(){return f},l.error=function(){return h},l);return b}function B(e,t,n,i,o,u,c){var l=e.finalizeRunEffect((function(t,n,i){if(Object(a.j)(t))x(t,i);else if(Object(a.e)(t))B(e,t,h.context,n,o,!1,i);else if(t&&t[r.c]){(0,j[t.type])(e,t.payload,i,d)}else i(t)}));p.cancel=s.P;var f={meta:o,cancel:function(){0===f.status&&(f.status=1,p(r.j))},status:0},h=V(e,f,n,i,o,u,c),d={task:h,digestEffect:v};return c&&(c.cancel=h.cancel),p(),h;function p(e,n){try{var o;n?(o=t.throw(e),z()):Object(s.S)(e)?(f.status=1,p.cancel(),o=Object(a.d)(t.return)?t.return(r.j):{done:!0,value:r.j}):o=Object(s.T)(e)?Object(a.d)(t.return)?t.return():{done:!0}:t.next(e),o.done?(1!==f.status&&(f.status=3),f.cont(o.value)):v(o.value,i,p)}catch(u){if(1===f.status)throw u;f.status=2,f.cont(u,!0)}}function v(t,n,r,i){void 0===i&&(i="");var o,a=A();function u(n,i){o||(o=!0,r.cancel=s.P,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&function(e){M=e}(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),u.cancel=s.P,r.cancel=function(){o||(o=!0,u.cancel(),u.cancel=s.P,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},l(t,a,u)}}function q(e,t){var n=e.channel,r=void 0===n?O():n,i=e.dispatch,o=e.getState,a=e.context,u=void 0===a?{}:a,c=e.sagaMonitor,l=e.effectMiddlewares,f=e.onError,h=void 0===f?s.d:f;for(var d=arguments.length,v=new Array(d>2?d-2:0),m=2;m<d;m++)v[m-2]=arguments[m];var g=t.apply(void 0,v);var y,b=A();if(c&&(c.rootSagaStarted=c.rootSagaStarted||s.P,c.effectTriggered=c.effectTriggered||s.P,c.effectResolved=c.effectResolved||s.P,c.effectRejected=c.effectRejected||s.P,c.effectCancelled=c.effectCancelled||s.P,c.actionDispatched=c.actionDispatched||s.P,c.rootSagaStarted({effectId:b,saga:t,args:v})),l){var w=s.b.apply(void 0,l);y=function(e){return function(t,n,r){return w((function(t){return e(t,n,r)}))(t)}}}else y=s.h;var _={channel:r,dispatch:Object(s.e)(i),getState:o,sagaMonitor:c,onError:h,finalizeRunEffect:y};return p((function(){var e=B(_,g,u,b,Object(s.F)(t),!0,void 0);return c&&c.effectResolved(b,e),e}))}var W=function(e){var t,n=void 0===e?{}:e,r=n.context,a=void 0===r?{}:r,u=n.channel,c=void 0===u?O():u,l=n.sagaMonitor,f=Object(o.a)(n,["context","channel","sagaMonitor"]);function h(e){var n=e.getState,r=e.dispatch;return t=q.bind(null,Object(i.a)({},f,{context:a,channel:c,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return c.put(t),n}}}return h.run=function(){return t.apply(void 0,arguments)},h.setContext=function(e){Object(s.L)(a,e)},h};t.a=W},function(e,t,n){"use strict";var r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return r.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.a=i},function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function i(e){return"Undefined"===r(e)}function o(e){return"Null"===r(e)}function a(e){return"Object"===r(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function s(e){return"Array"===r(e)}function u(e){return"Symbol"===r(e)}var c,l,f,h,d;c=o,l=i;function p(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function v(e,t,n,r){var i=r.propertyIsEnumerable(t)?"enumerable":"nonenumerable";"enumerable"===i&&(e[t]=n),"nonenumerable"===i&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}
2function m(e,t,n){if(!a(t))return n&&s(n)&&n.forEach((function(n){t=n(e,t)})),t;var r={};a(e)&&(r=p(Object.getOwnPropertyNames(e),Object.getOwnPropertySymbols(e)).reduce((function(n,r){var i=e[r];return(!u(r)&&!Object.getOwnPropertyNames(t).includes(r)||u(r)&&!Object.getOwnPropertySymbols(t).includes(r))&&v(n,r,i,e),n}),{}));return p(Object.getOwnPropertyNames(t),Object.getOwnPropertySymbols(t)).reduce((function(r,i){var o=t[i],u=a(e)?e[i]:void 0;return n&&s(n)&&n.forEach((function(e){o=e(u,o)})),void 0!==u&&a(o)&&(o=m(u,o,n)),v(r,i,o,t),r}),r)}t.a=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=null,i=e;return a(e)&&e.extensions&&1===Object.keys(e).length&&(i={},r=e.extensions),t.reduce((function(e,t){return m(e,t,r)}),i)}},,,function(e,t,n){"use strict";var r=n(71),i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=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;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}function _(){}function E(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||y}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=w.prototype;var S=E.prototype=new _;S.constructor=E,r(S,w.prototype),S.isPureReactComponent=!0;var k={current:null},T=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,i={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)T.call(t,r)&&!C.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:s,props:i,_owner:k.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}var I=/\/+/g,P=[];function A(e,t,n,r){if(P.length){var i=P.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+R(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var l=n+R(s=t[c],c);u+=e(s,l,r,i)}else if(null===t||"object"!==typeof t?l=null:l="function"===typeof(l=m&&t[m]||t["@@iterator"])?l:null,"function"===typeof l)for(t=l.call(t),c=0;!(s=t.next()).done;)u+=e(s=s.value,l=n+R(s,c++),r,i);else if("object"===s)throw r=""+t,Error(g(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return u}
vendor: 4,223 bytes, line 2
2(e,"",t,n)}function R(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function D(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,(function(e){return e})):null!=e&&(x(e)&&(e=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(I,"$&/")+"/")+n)),r.push(e))}function M(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(I,"$&/")+"/"),j(e,L,t=A(t,o,r,i)),N(t)}var F={current:null};function z(){var e=F.current;if(null===e)throw Error(g(321));return e}var U={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:k,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;j(e,D,t=A(null,null,t,n)),N(t)},count:function(e){return j(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!x(e))throw Error(g(143));return e}},t.Component=w,t.Fragment=s,t.Profiler=c,t.PureComponent=E,t.StrictMode=u,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(g(267,e));var i=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=k.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)T.call(t,l)&&!C.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:o,type:e.type,key:a,ref:s,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=O,t.createFactory=function(e){var t=O.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return z().useCallback(e,t)},t.useContext=function(e,t){return z().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return z().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return z().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return z().useLayoutEffect(e,t)},t.useMemo=function(e,t){return z().useMemo(e,t)},t.useReducer=function(e,t,n){return z().useReducer(e,t,n)},t.useRef=function(e){return z().useRef(e)},t.useState=function(e){return z().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(0),i=n(71),o=n(106);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function s(e,t,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var u=!1,c=null,l=!1,f=null,h={onError:function(e){u=!0,c=e}};function d(e,t,n,r,i,o,a,l,f){u=!1,c=null,s.apply(h,arguments)}var p=null,v=null,m=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=m(n),function(e,t,n,r,i,o,s,h,p){if(d.apply(this,arguments),u){if(!u)throw Error(a(198));var v=c;u=!1,c=null,l||(l=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!E[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in E[n]=t,n=t.eventTypes){var i=void 0,o=n[r],s=t,u=r;if(S.hasOwnProperty(u))throw Error(a(99,u));S[u]=o;
vendor: 4,751 bytes, line 2
2var c=o.phasedRegistrationNames;if(c){for(i in c)c.hasOwnProperty(i)&&_(c[i],s,u);i=!0}else o.registrationName?(_(o.registrationName,s,u),i=!0):i=!1;if(!i)throw Error(a(98,r,e))}}}}function _(e,t,n){if(k[e])throw Error(a(100,e));k[e]=t,T[e]=t.eventTypes[n].dependencies}var E=[],S={},k={},T={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var O=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),x=null,I=null,P=null;function A(e){if(e=v(e)){if("function"!==typeof x)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),x(e.stateNode,e.type,t))}}function N(e){I?P?P.push(e):P=[e]:I=e}function j(){if(I){var e=I,t=P;if(P=I=null,A(e),t)for(e=0;e<t.length;e++)A(t[e])}}function R(e,t){return e(t)}function D(e,t,n,r,i){return e(t,n,r,i)}function L(){}var M=R,F=!1,z=!1;function U(){null===I&&null===P||(L(),j())}function V(e,t,n){if(z)return e(t,n);z=!0;try{return M(e,t,n)}finally{z=!1,U()}}var B=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,q=Object.prototype.hasOwnProperty,W={},H={};function K(e,t,n,r,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var G={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){G[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];G[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){G[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){G[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){G[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){G[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){G[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){G[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){G[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace($,Q);G[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace($,Q);G[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace($,Q);G[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),G.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){G[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));
vendor: 5,473 bytes, line 2
2var Y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(e,t,n,r){var i=G.hasOwnProperty(t)?G[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!q.call(H,e)||!q.call(W,e)&&(B.test(e)?H[e]=!0:(W[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}Y.hasOwnProperty("ReactCurrentDispatcher")||(Y.ReactCurrentDispatcher={current:null}),Y.hasOwnProperty("ReactCurrentBatchConfig")||(Y.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Z="function"===typeof Symbol&&Symbol.for,ee=Z?Symbol.for("react.element"):60103,te=Z?Symbol.for("react.portal"):60106,ne=Z?Symbol.for("react.fragment"):60107,re=Z?Symbol.for("react.strict_mode"):60108,ie=Z?Symbol.for("react.profiler"):60114,oe=Z?Symbol.for("react.provider"):60109,ae=Z?Symbol.for("react.context"):60110,se=Z?Symbol.for("react.concurrent_mode"):60111,ue=Z?Symbol.for("react.forward_ref"):60112,ce=Z?Symbol.for("react.suspense"):60113,le=Z?Symbol.for("react.suspense_list"):60120,fe=Z?Symbol.for("react.memo"):60115,he=Z?Symbol.for("react.lazy"):60116,de=Z?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case le:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case oe:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return me(e.type);case de:return me(e.render);case he:if(e=1===e._status?e._result:null)return me(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,o=me(e.type);n=null,r&&(n=me(r.type)),r=o,o="",i?o=" (at "+i.fileName.replace(J,"")+":"+i.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function _e(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Ee(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Se(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ke(e,t){null!=(t=t.checked)&&X(e,"checked",t,!1)}function Te(e,t){ke(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&Oe(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Oe(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function xe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";
vendor: 13,407 bytes, line 2
2return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ie(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Pe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Ne(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Re="http://www.w3.org/1999/xhtml",De="http://www.w3.org/2000/svg";function Le(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Fe,ze=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==De||"innerHTML"in e)e.innerHTML=t;else{for((Fe=Fe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ve(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Be={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},qe={},We={};function He(e){if(qe[e])return qe[e];if(!Be[e])return e;var t,n=Be[e];for(t in n)if(n.hasOwnProperty(t)&&t in We)return qe[e]=n[t];return e}O&&(We=document.createElement("div").style,"AnimationEvent"in window||(delete Be.animationend.animation,delete Be.animationiteration.animation,delete Be.animationstart.animation),"TransitionEvent"in window||delete Be.transitionend.transition);var Ke=He("animationend"),Ge=He("animationiteration"),$e=He("animationstart"),Qe=He("transitionend"),Ye="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xe=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Xe.get(e);return void 0===t&&(t=new Map,Xe.set(e,t)),t}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Ze(e)!==e)throw Error(a(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return tt(i),e;if(o===r)return tt(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var ot=null;function at(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function st(e){if(null!==e&&(ot=rt(ot,e)),e=ot,ot=null,e){if(it(e,at),ot)throw Error(a(95));if(l)throw e=f,l=!1,f=null,e}}function ut(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function ct(e){if(!O)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&<.push(e)}function ht(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=On(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ut(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var s=null,u=0;u<E.length;u++){var c=E[u];c&&(c=c.extractEvents(r,t,o,i,a))&&(s=rt(s,c))}st(s)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":$t(t,"scroll",!0);break;case"focus":case"blur":$t(t,"focus",!0),$t(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ct(e)&&$t(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ye.indexOf(e)&&Gt(e,t)}n.set(e,null)}}var vt,mt,gt,yt=!1,bt=[],wt=null,_t=null,Et=null,St=new Map,kt=new Map,Tt=[],Ct="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Ot="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function xt(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function It(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":_t=null;break;case"mouseover":case"mouseout":Et=null;break;case"pointerover":case"pointerout":St.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":kt.delete(t.pointerId)}}function Pt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=xt(t,n,r,i,o),null!==t&&(null!==(t=xn(t))&&mt(t)),e):(e.eventSystemFlags|=r,e)}function At(e){var t=On(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){gt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Nt(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=xn(t);return null!==n&&mt(n),e.blockedOn=t,!1}return!0}function jt(e,t,n){Nt(e)&&n.delete(t)}function Rt(){for(yt=!1;0<bt.length;){var e=bt[0];if(null!==e.blockedOn){null!==(e=xn(e.blockedOn))&&vt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:bt.shift()}null!==wt&&Nt(wt)&&(wt=null),null!==_t&&Nt(_t)&&(_t=null),null!==Et&&Nt(Et)&&(Et=null),St.forEach(jt),kt.forEach(jt)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,yt||(yt=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Rt)))}function Lt(e){function t(t){return Dt(t,e)}if(0<bt.length){Dt(bt[0],e);for(var n=1;n<bt.length;n++){var r=bt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Dt(wt,e),null!==_t&&Dt(_t,e),null!==Et&&Dt(Et,e),St.forEach(t),kt.forEach(t),n=0;n<Tt.length;n++)(r=Tt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Tt.length&&null===(n=Tt[0]).blockedOn;)At(n),null===n.blockedOn&&Tt.shift()}var Mt={},Ft=new Map,zt=new Map,Ut=["abort","abort",Ke,"animationEnd",Ge,"animationIteration",$e,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Vt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],o="on"+(i[0].toUpperCase()+i.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},zt.set(r,t),Ft.set(r,o),Mt[i]=o}}Vt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Vt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Vt(Ut,2);for(var Bt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),qt=0;qt<Bt.length;qt++)zt.set(Bt[qt],0);var Wt=o.unstable_UserBlockingPriority,Ht=o.unstable_runWithPriority,Kt=!0;function Gt(e,t){$t(t,e,!1)}function $t(e,t,n){var r=zt.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Yt.bind(null,t,1,e);break;default:r=Xt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){F||L();var i=Xt,o=F;F=!0;try{D(i,e,t,n,r)}finally{(F=o)||U()}}function Yt(e,t,n,r){Ht(Wt,Xt.bind(null,e,t,n,r))}function Xt(e,t,n,r){if(Kt)if(0<bt.length&&-1<Ct.indexOf(e))e=xt(null,e,t,n,r),bt.push(e);else{var i=Jt(e,t,n,r);if(null===i)It(e,r);else if(-1<Ct.indexOf(e))e=xt(i,e,t,n,r),bt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return wt=Pt(wt,e,t,n,r,i),!0;case"dragenter":return _t=Pt(_t,e,t,n,r,i),!0;case"mouseover":return Et=Pt(Et,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return St.set(o,Pt(St.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,kt.set(o,Pt(kt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){It(e,r),e=ht(e,r,null,t);try{V(dt,e)}finally{ft(e)}}}}function Jt(e,t,n,r){if(null!==(n=On(n=ut(r)))){var i=Ze(n);if(null===i)n=null;else{var o=i.tag;if(13===o){if(null!==(n=et(i)))return n;n=null}else if(3===o){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ht(e,r,n,t);try{V(dt,e)}finally{ft(e)}return null}var Zt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Zt.hasOwnProperty(e)&&Zt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}
2Object.keys(Zt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Zt[t]=Zt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function on(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function an(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sn=Re;function un(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=T[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function cn(){}function ln(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var e=window,t=ln();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ln((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn=null,mn=null;function gn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function yn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var bn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function _n(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function En(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Sn=Math.random().toString(36).slice(2),kn="__reactInternalInstance$"+Sn,Tn="__reactEventHandlers$"+Sn,Cn="__reactContainere$"+Sn;function On(e){var t=e[kn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cn]||n[kn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=En(e);null!==e;){if(n=e[kn])return n;e=En(e)}return t}n=(e=n).parentNode}return null}function xn(e){return!(e=e[kn]||e[Cn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Pn(e){return e[Tn]||null}function An(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Nn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}
vendor: 3,018 bytes, line 2
2function jn(e,t,n){(t=Nn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Rn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=An(t);for(t=n.length;0<t--;)jn(n[t],"captured",e);for(t=0;t<n.length;t++)jn(n[t],"bubbled",e)}}function Dn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Nn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){e&&e.dispatchConfig.registrationName&&Dn(e._targetInst,null,e)}function Mn(e){it(e,Rn)}var Fn=null,zn=null,Un=null;function Vn(){if(Un)return Un;var e,t,n=zn,r=n.length,i="value"in Fn?Fn.value:Fn.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Un=i.slice(e,1<t?1-t:void 0)}function Bn(){return!0}function qn(){return!1}function Wn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Bn:qn,this.isPropagationStopped=qn,this}function Hn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Kn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Hn,e.release=Kn}i(Wn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Bn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Bn)},persist:function(){this.isPersistent=Bn},isPersistent:qn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=qn,this._dispatchInstances=this._dispatchListeners=null}}),Wn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Wn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(Wn);var $n=Wn.extend({data:null}),Qn=Wn.extend({data:null}),Yn=[9,13,27,32],Xn=O&&"CompositionEvent"in window,Jn=null;O&&"documentMode"in document&&(Jn=document.documentMode);var Zn=O&&"TextEvent"in window&&!Jn,er=O&&(!Xn||Jn&&8<Jn&&11>
vendor: 9,393 bytes, line 2
2=Jn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Yn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function or(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var ar=!1;var sr={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Xn)e:{switch(e){case"compositionstart":var o=nr.compositionStart;break e;case"compositionend":o=nr.compositionEnd;break e;case"compositionupdate":o=nr.compositionUpdate;break e}o=void 0}else ar?ir(e,n)&&(o=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=nr.compositionStart);return o?(er&&"ko"!==n.locale&&(ar||o!==nr.compositionStart?o===nr.compositionEnd&&ar&&(i=Vn()):(zn="value"in(Fn=r)?Fn.value:Fn.textContent,ar=!0)),o=$n.getPooled(o,t,n,r),i?o.data=i:null!==(i=or(n))&&(o.data=i),Mn(o),i=o):i=null,(e=Zn?function(e,t){switch(e){case"compositionend":return or(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(ar)return"compositionend"===e||!Xn&&ir(e,t)?(e=Vn(),Un=zn=Fn=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(nr.beforeInput,t,n,r)).data=e,Mn(t)):t=null,null===i?t:null===t?i:[i,t]}},ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!ur[e.type]:"textarea"===t}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Wn.getPooled(lr.change,e,t,n)).type="change",N(n),Mn(e),e}var hr=null,dr=null;function pr(e){st(e)}function vr(e){if(_e(In(e)))return e}function mr(e,t){if("change"===e)return t}var gr=!1;function yr(){hr&&(hr.detachEvent("onpropertychange",br),dr=hr=null)}function br(e){if("value"===e.propertyName&&vr(dr))if(e=fr(dr,e,ut(e)),F)st(e);else{F=!0;try{R(pr,e)}finally{F=!1,U()}}}function wr(e,t,n){"focus"===e?(yr(),dr=n,(hr=t).attachEvent("onpropertychange",br)):"blur"===e&&yr()}function _r(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(dr)}function Er(e,t){if("click"===e)return vr(t)}function Sr(e,t){if("input"===e||"change"===e)return vr(t)}O&&(gr=ct("input")&&(!document.documentMode||9<document.documentMode));var kr={eventTypes:lr,_isInputEventSupported:gr,extractEvents:function(e,t,n,r){var i=t?In(t):window,o=i.nodeName&&i.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===i.type)var a=mr;else if(cr(i))if(gr)a=Sr;else{a=_r;var s=wr}else(o=i.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Er);if(a&&(a=a(e,t)))return fr(a,n,r);s&&s(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Oe(i,"number",i.value)}},Tr=Wn.extend({view:null,detail:null}),Cr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cr[e])&&!!t[e]}function xr(){return Or}var Ir=0,Pr=0,Ar=!1,Nr=!1,jr=Tr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:xr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ir;return Ir=e.screenX,Ar?"mousemove"===e.type?e.screenX-t:0:(Ar=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Pr;return Pr=e.screenY,Nr?"mousemove"===e.type?e.screenY-t:0:(Nr=!0,0)}}),Rr=jr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Dr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Lr={eventTypes:Dr,extractEvents:function(e,t,n,r,i){var o="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(o&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!a&&!o)return null;(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?On(t):null)&&(t!==Ze(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var s=jr,u=Dr.mouseLeave,c=Dr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Rr,u=Dr.pointerLeave,c=Dr.pointerEnter,l="pointer");if(e=null==a?o:In(a),o=null==t?o:In(t),(u=s.getPooled(u,a,n,r)).type=l+"leave",u.target=e,u.relatedTarget=o,(n=s.getPooled(c,t,n,r)).type=l+"enter",n.target=o,n.relatedTarget=e,l=t,(r=a)&&l)e:{for(c=l,a=0,e=s=r;e;e=An(e))a++;for(e=0,t=c;t;t=An(t))e++;for(;0<a-e;)s=An(s),a--;for(;0<e-a;)c=An(c),e--;for(;a--;){if(s===c||s===c.alternate)break e;s=An(s),c=An(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)s.push(r),r=An(r);for(r=[];l&&l!==c&&(null===(a=l.alternate)||a!==c);)r.push(l),l=An(l);for(l=0;l<s.length;l++)Dn(s[l],"bubbled",u);for(l=r.length;0<l--;)Dn(r[l],"captured",n);return 0===(64&i)?[u]:[u,n]}};var Mr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Fr=Object.prototype.hasOwnProperty;function zr(e,t){if(Mr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Fr.call(t,n[r])||!Mr(e[n[r]],t[n[r]]))return!1;return!0}var Ur=O&&"documentMode"in document&&11>=document.documentMode,Vr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Br=null,qr=null,Wr=null,Hr=!1;function Kr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Hr||null==Br||Br!==ln(n)?null:("selectionStart"in(n=Br)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wr&&zr(Wr,n)?null:(Wr=n,(e=Wn.getPooled(Vr.select,qr,e,t)).type="select",e.target=Br,Mn(e),e))}var Gr={eventTypes:Vr,extractEvents:function(e,t,n,r,i,o){if(!(o=!(i=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Je(i),o=T.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?In(t):window,e){case"focus":(cr(i)||"true"===i.contentEditable)&&(Br=i,qr=t,Wr=null);break;case"blur":Wr=qr=Br=null;break;case"mousedown":Hr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Hr=!1,Kr(n,r);case"selectionchange":if(Ur)break;case"keydown":case"keyup":return Kr(n,r)}return null}},$r=Wn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Wn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Yr=Tr.extend({relatedTarget:null});function Xr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Jr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=Tr.extend({key:function(e){if(e.key){var t=Jr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Xr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?Zr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:xr,charCode:function(e){return"keypress"===e.type?Xr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Xr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=jr.extend({dataTransfer:null}),ni=Tr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:xr}),ri=Wn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=jr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),oi={eventTypes:Mt,extractEvents:function(e,t,n,r){var i=Ft.get(e);if(!i)return null;switch(e){case"keypress":if(0===Xr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Yr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=jr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case Ke:case Ge:case $e:e=$r;break;case Qe:e=ri;break;case"scroll":e=Tr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Rr;break;default:e=Wn}return Mn(t=e.getPooled(i,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=Pn,v=xn,m=In,C({SimpleEventPlugin:oi,EnterLeaveEventPlugin:Lr,ChangeEventPlugin:kr,SelectEventPlugin:Gr,BeforeInputEventPlugin:sr});var ai=[],si=-1;function ui(e){0>si||(e.current=ai[si],ai[si]=null,si--)}function ci(e,t){si++,ai[si]=e.current,e.current=t}var li={},fi={current:li},hi={current:!1},di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function mi(){ui(hi),ui(fi)}function gi(e,t,n){if(fi.current!==li)throw Error(a(168));ci(fi,t),ci(hi,n)}function yi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw Error(a(108,me(t)||"Unknown",o));return i({},n,{},r)}function bi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=fi.current,ci(fi,e),ci(hi,hi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=yi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ui(hi),ui(fi),ci(fi,e)):ui(hi),ci(hi,n)}var _i=o.unstable_runWithPriority,Ei=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,ki=o.unstable_requestPaint,Ti=o.unstable_now,Ci=o.unstable_getCurrentPriorityLevel,Oi=o.unstable_ImmediatePriority,xi=o.unstable_UserBlockingPriority,Ii=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ai=o.unstable_IdlePriority,Ni={},ji=o.unstable_shouldYield,Ri=void 0!==ki?ki:function(){},Di=null,Li=null,Mi=!1,Fi=Ti(),zi=1e4>Fi?Ti:function(){return Ti()-Fi};function Ui(){switch(Ci()){case Oi:return 99;case xi:return 98;case Ii:return 97;case Pi:return 96;case Ai:return 95;default:throw Error(a(332))}}function Vi(e){switch(e){case 99:return Oi;case 98:return xi;case 97:return Ii;case 96:return Pi;case 95:return Ai;default:throw Error(a(332))}}function Bi(e,t){return e=Vi(e),_i(e,t)}
2function qi(e,t,n){return e=Vi(e),Ei(e,t,n)}function Wi(e){return null===Di?(Di=[e],Li=Ei(Oi,Ki)):Di.push(e),Ni}function Hi(){if(null!==Li){var e=Li;Li=null,Si(e)}Ki()}function Ki(){if(!Mi&&null!==Di){Mi=!0;var e=0;try{var t=Di;Bi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Di=null}catch(n){throw null!==Di&&(Di=Di.slice(e+1)),Ei(Oi,Hi),n}finally{Mi=!1}}}function Gi(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function $i(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Yi=null,Xi=null,Ji=null;function Zi(){Ji=Xi=Yi=null}function eo(e){var t=Qi.current;ui(Qi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function no(e,t){Yi=e,Ji=Xi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Pa=!0),e.firstContext=null)}function ro(e,t){if(Ji!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Ji=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Xi){if(null===Yi)throw Error(a(308));Xi=t,Yi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Xi=Xi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function so(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function uo(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function co(e,t){var n=e.alternate;null!==n&&ao(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function lo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.baseQueue,s=o.shared.pending;if(null!==s){if(null!==a){var u=a.next;a.next=s.next,s.next=u}a=s,o.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=s))}if(null!==a){u=a.next;var c=o.baseState,l=0,f=null,h=null,d=null;if(null!==u)for(var p=u;;){if((s=p.expirationTime)<r){var v={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=v,f=c):d=d.next=v,s>l&&(l=s)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),ou(s,p.suspenseConfig);e:{var m=e,g=p;switch(s=t,v=n,g.tag){case 1:if("function"===typeof(m=g.payload)){c=m.call(v,c,s);break e}c=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(s="function"===typeof(m=g.payload)?m.call(v,c,s):m)||void 0===s)break e;c=i({},c,s);break e;case 2:io=!0}}null!==p.callback&&(e.effectTag|=32,null===(s=o.effects)?o.effects=[p]:s.push(p))}if(null===(p=p.next)||p===u){if(null===(s=o.shared.pending))break;p=a.next=s.next,s.next=u,o.baseQueue=a=s,o.shared.pending=null}}null===d?f=c:d.next=h,o.baseState=f,o.baseQueue=d,au(l),e.expirationTime=l,e.memoizedState=c}}function fo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(a(191,r));r.call(i)}}}var ho=Y.ReactCurrentBatchConfig,po=(new r.Component).refs;function vo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var mo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=ho.suspense;(i=so(r=Gs(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),$s(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Ks(),i=ho.suspense;(i=so(r=Gs(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),uo(e,i),$s(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Ks(),r=ho.suspense;(r=so(n=Gs(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),uo(e,r),$s(e,n)}};function go(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!zr(n,r)||!zr(i,o))}function yo(e,t,n){var r=!1,i=li,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=vi(t)?di:fi.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mo,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function bo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mo.enqueueReplaceState(t,t.state,null)}function wo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=po,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=vi(t)?di:fi.current,i.context=pi(e,o)),lo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(vo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&mo.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var _o=Array.isArray;function Eo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;
vendor: 11,189 bytes, line 2
2t===po&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function So(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function ko(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Cu(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function s(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Iu(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Eo(e,t,n),r.return=e,r):((r=Ou(n.type,n.key,n.props,null,e.mode,r)).ref=Eo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=xu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Iu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ou(t.type,t.key,t.props,null,e.mode,n)).ref=Eo(e,null,t),n.return=e,n;case te:return(t=Pu(t,e.mode,n)).return=e,t}if(_o(t)||ve(t))return(t=xu(t,e.mode,n,null)).return=e,t;So(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case te:return n.key===i?l(e,t,n,r):null}if(_o(n)||ve(n))return null!==i?null:f(e,t,n,r,null);So(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||ve(r))return f(t,e=e.get(n)||null,r,i,null);So(t,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(i,f,s[v],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,v),null===l?c=g:l.sibling=g,l=g,f=m}if(v===s.length)return n(i,f),c;if(null===f){for(;v<s.length;v++)null!==(f=h(i,s[v],u))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(i,e)})),c}function m(i,s,u,c){var l=ve(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,v=s,m=s=0,g=null,y=u.next();null!==v&&!y.done;m++,y=u.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=d(i,v,y.value,c);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,m),null===f?l=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),l;if(null===v){for(;!y.done;m++,y=u.next())null!==(y=h(i,y.value,c))&&(s=o(y,s,m),null===f?l=y:f.sibling=y,f=y);return l}for(v=r(i,v);!y.done;m++,y=u.next())null!==(y=p(v,i,m,y.value,c))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?l=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,o,u){var c="object"===typeof o&&null!==o&&o.type===ne&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case ee:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===ne){n(e,c.sibling),(r=i(c,o.props.children)).return=e,e=r;break e}break;default:if(c.elementType===o.type){n(e,c.sibling),(r=i(c,o.props)).ref=Eo(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===ne?((r=xu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Ou(o.type,o.key,o.props,null,e.mode,u)).ref=Eo(e,r,o),u.return=e,e=u)}return s(e);case te:e:{for(c=o.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Pu(o,e.mode,u)).return=e,e=r}return s(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o)).return=e,e=r):(n(e,r),(r=Iu(o,e.mode,u)).return=e,e=r),s(e);if(_o(o))return v(e,r,o,u);if(ve(o))return m(e,r,o,u);if(l&&So(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var To=ko(!0),Co=ko(!1),Oo={},xo={current:Oo},Io={current:Oo},Po={current:Oo};function Ao(e){if(e===Oo)throw Error(a(174));return e}function No(e,t){switch(ci(Po,t),ci(Io,e),ci(xo,Oo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,"");break;default:t=Me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ui(xo),ci(xo,t)}function jo(){ui(xo),ui(Io),ui(Po)}function Ro(e){Ao(Po.current);var t=Ao(xo.current),n=Me(t,e.type);t!==n&&(ci(Io,e),ci(xo,n))}function Do(e){Io.current===e&&(ui(xo),ui(Io))}var Lo={current:0};function Mo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Fo(e,t){return{responder:e,props:t}}var zo=Y.ReactCurrentDispatcher,Uo=Y.ReactCurrentBatchConfig,Vo=0,Bo=null,qo=null,Wo=null,Ho=!1;function Ko(){throw Error(a(321))}function Go(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function $o(e,t,n,r,i,o){if(Vo=o,Bo=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,zo.current=null===e||null===e.memoizedState?ga:ya,e=n(r,i),t.expirationTime===Vo){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(a(301));o+=1,Wo=qo=null,t.updateQueue=null,zo.current=ba,e=n(r,i)}while(t.expirationTime===Vo)}if(zo.current=ma,t=null!==qo&&null!==qo.next,Vo=0,Wo=qo=Bo=null,Ho=!1,t)throw Error(a(300));return e}function Qo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wo?Bo.memoizedState=Wo=e:Wo=Wo.next=e,Wo}function Yo(){if(null===qo){var e=Bo.alternate;e=null!==e?e.memoizedState:null}else e=qo.next;var t=null===Wo?Bo.memoizedState:Wo.next;if(null!==t)Wo=t,qo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(qo=e).memoizedState,baseState:qo.baseState,baseQueue:qo.baseQueue,queue:qo.queue,next:null},null===Wo?Bo.memoizedState=Wo=e:Wo=Wo.next=e}return Wo}function Xo(e,t){return"function"===typeof t?t(e):t}function Jo(e){var t=Yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=qo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var u=s=o=null,c=i;do{var l=c.expirationTime;if(l<Vo){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,l>Bo.expirationTime&&(Bo.expirationTime=l,au(l))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),ou(l,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,Mr(r,t.memoizedState)||(Pa=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Zo(e){var t=Yo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);Mr(o,t.memoizedState)||(Pa=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ea(e){var t=Qo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Xo,lastRenderedState:e}).dispatch=va.bind(null,Bo,e),[t.memoizedState,e]}function ta(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Bo.updateQueue)?(t={lastEffect:null},Bo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function na(){return Yo().memoizedState}function ra(e,t,n,r){var i=Qo();Bo.effectTag|=e,i.memoizedState=ta(1|t,n,void 0,void 0===r?null:r)}function ia(e,t,n,r){var i=Yo();r=void 0===r?null:r;var o=void 0;if(null!==qo){var a=qo.memoizedState;if(o=a.destroy,null!==r&&Go(r,a.deps))return void ta(t,n,o,r)}Bo.effectTag|=e,i.memoizedState=ta(1|t,n,o,r)}function oa(e,t){return ra(516,4,e,t)}function aa(e,t){return ia(516,4,e,t)}function sa(e,t){return ia(4,2,e,t)}function ua(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ca(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ia(4,2,ua.bind(null,t,e),n)}function la(){}function fa(e,t){return Qo().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function da(e,t){var n=Yo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Go(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function pa(e,t,n){var r=Ui();Bi(98>r?98:r,(function(){e(!0)})),Bi(97<r?97:r,(function(){var r=Uo.suspense;Uo.suspense=void 0===t?null:t;try{e(!1),n()}finally{Uo.suspense=r}}))}function va(e,t,n){var r=Ks(),i=ho.suspense;i={expirationTime:r=Gs(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?i.next=i:(i.next=o.next,o.next=i),t.pending=i,o=e.alternate,e===Bo||null!==o&&o===Bo)Ho=!0,i.expirationTime=Vo,Bo.expirationTime=Vo;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.eagerReducer=o,i.eagerState=s,Mr(s,a))return}catch(u){}$s(e,r)}}var ma={readContext:ro,useCallback:Ko,useContext:Ko,useEffect:Ko,useImperativeHandle:Ko,useLayoutEffect:Ko,useMemo:Ko,useReducer:Ko,useRef
2:Ko,useState:Ko,useDebugValue:Ko,useResponder:Ko,useDeferredValue:Ko,useTransition:Ko},ga={readContext:ro,useCallback:fa,useContext:ro,useEffect:oa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ra(4,2,ua.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ra(4,2,e,t)},useMemo:function(e,t){var n=Qo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Bo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Qo().memoizedState=e},useState:ea,useDebugValue:la,useResponder:Fo,useDeferredValue:function(e,t){var n=ea(e),r=n[0],i=n[1];return oa((function(){var n=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ea(!1),n=t[0];return t=t[1],[fa(pa.bind(null,t,e),[t,e]),n]}},ya={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:da,useReducer:Jo,useRef:na,useState:function(){return Jo(Xo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(e,t){var n=Jo(Xo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Jo(Xo),n=t[0];return t=t[1],[ha(pa.bind(null,t,e),[t,e]),n]}},ba={readContext:ro,useCallback:ha,useContext:ro,useEffect:aa,useImperativeHandle:ca,useLayoutEffect:sa,useMemo:da,useReducer:Zo,useRef:na,useState:function(){return Zo(Xo)},useDebugValue:la,useResponder:Fo,useDeferredValue:function(e,t){var n=Zo(Xo),r=n[0],i=n[1];return aa((function(){var n=Uo.suspense;Uo.suspense=void 0===t?null:t;try{i(e)}finally{Uo.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Zo(Xo),n=t[0];return t=t[1],[ha(pa.bind(null,t,e),[t,e]),n]}},wa=null,_a=null,Ea=!1;function Sa(e,t){var n=ku(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function ka(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Ta(e){if(Ea){var t=_a;if(t){var n=t;if(!ka(e,t)){if(!(t=_n(n.nextSibling))||!ka(e,t))return e.effectTag=-1025&e.effectTag|2,Ea=!1,void(wa=e);Sa(wa,n)}wa=e,_a=_n(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ea=!1,wa=e}}function Ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wa=e}function Oa(e){if(e!==wa)return!1;if(!Ea)return Ca(e),Ea=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!yn(t,e.memoizedProps))for(t=_a;t;)Sa(e,t),t=_n(t.nextSibling);if(Ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){_a=_n(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}_a=null}}else _a=wa?_n(e.stateNode.nextSibling):null;return!0}function xa(){_a=wa=null,Ea=!1}var Ia=Y.ReactCurrentOwner,Pa=!1;function Aa(e,t,n,r){t.child=null===e?Co(t,null,n,r):To(t,e.child,n,r)}function Na(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=$o(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Aa(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),$a(e,t,i))}function ja(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||Tu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ou(n.type,null,r,null,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ra(e,t,a,r,i,o))}return a=e.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:zr)(i,r)&&e.ref===t.ref)?$a(e,t,o):(t.effectTag|=1,(e=Cu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ra(e,t,n,r,i,o){return null!==e&&zr(e.memoizedProps,r)&&e.ref===t.ref&&(Pa=!1,i<o)?(t.expirationTime=e.expirationTime,$a(e,t,o)):La(e,t,n,r,o)}function Da(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function La(e,t,n,r,i){var o=vi(n)?di:fi.current;return o=pi(t,o),no(t,i),n=$o(e,t,n,r,o,i),null===e||Pa?(t.effectTag|=1,Aa(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),$a(e,t,i))}function Ma(e,t,n,r,i){if(vi(n)){var o=!0;bi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),yo(t,n,r),wo(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=ro(c):c=pi(t,c=vi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&bo(t,a,r,c),io=!1;var h=t.memoizedState;a.state=h,lo(t,r,a,i),u=t.memoizedState,s!==r||h!==u||hi.current||io?("function"===typeof l&&(vo(t,n,l,r),u=t.memoizedState),(s=io||go(t,n,s,r,h,u,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,ao(e,t),s=t.memoizedProps,a.props=t.type===t.elementType?s:$i(t.type,s),u=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=ro(c):c=pi(t,c=vi(n)?di:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&bo(t,a,r,c),io=!1,u=t.memoizedState,a.state=u,lo(t,r,a,i),h=t.memoizedState,s!==r||u!==h||hi.current||io?("function"===typeof l&&(vo(t,n,l,r),h=t.memoizedState),(l=io||go(t,n,s,r,u,h,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,c)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=c,r=l):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return Fa(e,t,n,r,o,i)}function Fa(e,t,n,r,i,o){Da(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return i&&wi(t,n,!1),$a(e,t,o);r=t.stateNode,Ia.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=To(t,e.child,null,o),t.child=To(t,null,s,o)):Aa(e,t,s,o),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function za(e){var t=e.stateNode;t.pendingContext?gi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&gi(0,t.context,!1),No(e,t.containerInfo)}var Ua,Va,Ba,qa={dehydrated:null,retryTime:0};function Wa(e,t,n){var r,i=t.mode,o=t.pendingProps,a=Lo.current,s=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(s=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),ci(Lo,1&a),null===e){if(void 0!==o.fallback&&Ta(t),s){if
vendor: 18,664 bytes, line 2
2(s=o.fallback,(o=xu(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=xu(s,i,n,null)).return=t,o.sibling=n,t.memoizedState=qa,t.child=o,n}return i=o.children,t.memoizedState=null,t.child=Co(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,s){if(o=o.fallback,(n=Cu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(s=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(i=Cu(i,o)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=qa,t.child=n,i}return n=To(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,s){if(s=o.fallback,(o=xu(null,i,0,null)).return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return(n=xu(s,i,n,null)).return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=qa,t.child=o,n}return t.memoizedState=null,t.child=To(t,e,o.children,n)}function Ha(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),to(e.return,t)}function Ka(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=i,a.lastEffect=o)}function Ga(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Aa(e,t,r.children,n),0!==(2&(r=Lo.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ha(e,n);else if(19===e.tag)Ha(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ci(Lo,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Mo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ka(t,!1,i,n,o,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Mo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ka(t,!0,n,null,o,t.lastEffect);break;case"together":Ka(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function $a(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&au(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Cu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Cu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ya(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&mi(),null;case 3:return jo(),ui(hi),ui(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!Oa(t)||(t.effectTag|=4),null;case 5:Do(t),n=Ao(Po.current);var o=t.type;if(null!==e&&null!=t.stateNode)Va(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ao(xo.current),Oa(t)){r=t.stateNode,o=t.type;var s=t.memoizedProps;switch(r[kn]=t,r[Tn]=s,o){case"iframe":case"object":case"embed":Gt("load",r);break;case"video":case"audio":for(e=0;e<Ye.length;e++)Gt(Ye[e],r);break;case"source":Gt("error",r);break;case"img":case"image":case"link":Gt("error",r),Gt("load",r);break;case"form":Gt("reset",r),Gt("submit",r);break;case"details":Gt("toggle",r);break;case"input":Se(r,s),Gt("invalid",r),un(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Gt("invalid",r),un(n,"onChange");break;case"textarea":Ae(r,s),Gt("invalid",r),un(n,"onChange")}for(var u in on(o,s),e=null,s)if(s.hasOwnProperty(u)){var c=s[u];"children"===u?"string"===typeof c?r.textContent!==c&&(e=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(e=["children",""+c]):k.hasOwnProperty(u)&&null!=c&&un(n,u)}switch(o){case"input":we(r),Ce(r,s,!0);break;case"textarea":we(r),je(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=cn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===sn&&(e=Le(o)),e===sn?"script"===o?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(o,{is:r.is}):(e=u.createElement(o),"select"===o&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,o),e[kn]=t,e[Tn]=r,Ua(e,t),t.stateNode=e,u=an(o,r),o){case"iframe":case"object":case"embed":Gt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Ye.length;c++)Gt(Ye[c],e);c=r;break;case"source":Gt("error",e),c=r;break;case"img":case"image":case"link":Gt("error",e),Gt("load",e),c=r;break;case"form":Gt("reset",e),Gt("submit",e),c=r;break;case"details":Gt("toggle",e),c=r;break;case"input":Se(e,r),c=Ee(e,r),Gt("invalid",e),un(n,"onChange");break;case"option":c=xe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=i({},r,{value:void 0}),Gt("invalid",e),un(n,"onChange");break;case"textarea":Ae(e,r),c=Pe(e,r),Gt("invalid",e),un(n,"onChange");break;default:c=r}on(o,c);var l=c;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?nn(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&ze(e,f):"children"===s?"string"===typeof f?("textarea"!==o||""!==f)&&Ue(e,f):"number"===typeof f&&Ue(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?null!=f&&un(n,s):null!=f&&X(e,s,f,u))}switch(o){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),je(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ie(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(e.onclick=cn)}gn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Ao(Po.current),Ao(xo.current),Oa(t)?(n=t.stateNode,r=t.memoizedProps,n[kn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[kn]=t,t.stateNode=n)}return null;case 13:return ui(Lo),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&Oa(t):(r=null!==(o=e.memoizedState),n||null===o||null!==(o=e.child.sibling)&&(null!==(s=t.firstEffect)?(t.firstEffect=o,o.nextEffect=s):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Lo.current)?Os===ws&&(Os=_s):(Os!==ws&&Os!==_s||(Os=Es),0!==Ns&&null!==ks&&(ju(ks,Cs),Ru(ks,Ns)))),(n||r)&&(t.effectTag|=4),null);case 4:return jo(),null;case 10:return eo(t),null;case 17:return vi(t.type)&&mi(),null;case 19:if(ui(Lo),null===(r=t.memoizedState))return null;if(o=0!==(64&t.effectTag),null===(s=r.rendering)){if(o)Qa(r,!1);else if(Os!==ws||null!==e&&0!==(64&e.effectTag))for(s=t.child;null!==s;){if(null!==(e=Mo(s))){for(t.effectTag|=64,Qa(r,!1),null!==(o=e.updateQueue)&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)s=n,(o=r).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(e=o.alternate)?(o.childExpirationTime=0,o.expirationTime=s,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,s=e.dependencies,o.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),r=r.sibling;return ci(Lo,1&Lo.current|2),t.child}s=s.sibling}}else{if(!o)if(null!==(e=Mo(s))){if(t.effectTag|=64,o=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Qa(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*zi()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,Qa(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=zi()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=zi(),n.sibling=null,t=Lo.current,ci(Lo,o?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function Xa(e){switch(e.tag){case 1:vi(e.type)&&mi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(jo(),ui(hi),ui(fi),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Do(e),null;case 13:return ui(Lo),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ui(Lo),null;case 4:return jo(),null;case 10:return eo(e),null;default:return null}}function Ja(e,t){return{value:e,source:t,stack:ge(t)}}Ua=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s,u,c=t.stateNode;switch(Ao(xo.current),e=null,n){case"input":a=Ee(c,a),r=Ee(c,r),e=[];break;case"option":a=xe(c,a),r=xe(c,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=Pe(c,a),r=Pe(c,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=cn)}for(s in on(n,r),n=null,a)if(!r.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(u in c=a[s])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(k.hasOwnProperty(s)?e||(e=[]):(e=e||[]).push(s,null));for(s in r){var l=r[s];if(c=null!=a?a[s]:void 0,r.hasOwnProperty(s)&&l!==c&&(null!=l||null!=c))if("style"===s)if(c){for(u in c)!c.hasOwnProperty(u)||l&&l.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in l)l.hasOwnProperty(u)&&c[u]!==l[u]&&(n||(n={}),n[u]=l[u])}else n||(e||(e=[]),e.push(s,n)),n=l;else"dangerouslySetInnerHTML"===s?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(e=e||[]).push(s,l)):"children"===s?c===l||"string"!==typeof l&&"number"!==typeof l||(e=e||[]).push(s,""+l):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(k.hasOwnProperty(s)?(null!=l&&un(o,s),e||c===l||(e=[])):(e=e||[]).push(s,l))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},Ba=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Za="function"===typeof WeakSet?WeakSet:Set;function es(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ge(n)),null!==n&&me(n.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function ts(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){yu(e,n)}else t.current=null}function ns(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:$i(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function rs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function is(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function os(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void is(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:$i(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fo(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fo(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&gn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(e,t,n){switch("function"===typeof Eu&&Eu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Bi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(o){yu(i,o)}}e=e.next}while(e!==r)}))}break;case 1:ts(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){yu(e,n)}}(t,n);break;case 5:ts(t);break;case 4:ls(e,t,n)}}function ss(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&ss(t)}function us(e){return 5===e.tag||3===e.tag||4===e.tag}function cs(e){e:{for(var t=e.return;null!==t;){if(us(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(Ue(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||us(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=cn));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,o=5===i||6===i;if(o)t=o?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function ls(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var u=e,c=o,l=n,f=c;;)if(as(u,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(u=r,c=o.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(as(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function fs(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void rs(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Tn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&ke(n,r),an(e,i),t=an(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?nn(n,u):"dangerouslySetInnerHTML"===s?ze(n,u):"children"===s?Ue(n,u):X(n,s,u,t)}switch(e){case"input":Te(n,r);break;case"textarea":Ne(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ie(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ie(n,!!r.multiple,r.defaultValue,!0):Ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Rs=zi()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?"function"===typeof(o=o.style).setProperty?o.setProperty("display","none","important"):o.display="none":(o=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,o.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(o=e.child.sibling).return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void hs(t);case 19:return void hs(t);case 17:return}throw Error(a(163))}function hs(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Za),t.forEach((function(t){var r=wu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var ds="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=so(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ls||(Ls=!0,Ms=r),es(e,t)},n}
vendor: 7,594 bytes, line 2
2function vs(e,t,n){(n=so(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return es(e,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Fs?Fs=new Set([this]):Fs.add(this),es(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var ms,gs=Math.ceil,ys=Y.ReactCurrentDispatcher,bs=Y.ReactCurrentOwner,ws=0,_s=3,Es=4,Ss=0,ks=null,Ts=null,Cs=0,Os=ws,xs=null,Is=1073741823,Ps=1073741823,As=null,Ns=0,js=!1,Rs=0,Ds=null,Ls=!1,Ms=null,Fs=null,zs=!1,Us=null,Vs=90,Bs=null,qs=0,Ws=null,Hs=0;function Ks(){return 0!==(48&Ss)?1073741821-(zi()/10|0):0!==Hs?Hs:Hs=1073741821-(zi()/10|0)}function Gs(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Ui();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&Ss))return Cs;if(null!==n)e=Gi(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gi(e,150,100);break;case 97:case 96:e=Gi(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==ks&&e===Cs&&--e,e}function $s(e,t){if(50<qs)throw qs=0,Ws=null,Error(a(185));if(null!==(e=Qs(e,t))){var n=Ui();1073741823===t?0!==(8&Ss)&&0===(48&Ss)?Zs(e):(Xs(e),0===Ss&&Hi()):Xs(e),0===(4&Ss)||98!==n&&99!==n||(null===Bs?Bs=new Map([[e,t]]):(void 0===(n=Bs.get(e))||n>t)&&Bs.set(e,t))}}function Qs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(ks===i&&(au(t),Os===Es&&ju(i,Cs)),Ru(i,t)),i}function Ys(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Nu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Xs(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Wi(Zs.bind(null,e));else{var t=Ys(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Ks();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ni&&Si(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Wi(Zs.bind(null,e)):qi(r,Js.bind(null,e),{timeout:10*(1073741821-t)-zi()}),e.callbackNode=t}}}function Js(e,t){if(Hs=0,t)return Du(e,t=Ks()),Xs(e),null;var n=Ys(e);if(0!==n){if(t=e.callbackNode,0!==(48&Ss))throw Error(a(327));if(vu(),e===ks&&n===Cs||nu(e,n),null!==Ts){var r=Ss;Ss|=16;for(var i=iu();;)try{uu();break}catch(u){ru(e,u)}if(Zi(),Ss=r,ys.current=i,1===Os)throw t=xs,nu(e,n),ju(e,n),Xs(e),t;if(null===Ts)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Os,ks=null,r){case ws:case 1:throw Error(a(345));case 2:Du(e,2<n?2:n);break;case _s:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(i)),1073741823===Is&&10<(i=Rs+500-zi())){if(js){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,nu(e,n);break}}if(0!==(o=Ys(e))&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=bn(hu.bind(null,e),i);break}hu(e);break;case Es:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fu(i)),js&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nu(e,n);break}if(0!==(i=Ys(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ps?r=10*(1073741821-Ps)-zi():1073741823===Is?r=0:(r=10*(1073741821-Is)-5e3,0>(r=(i=zi())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*gs(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=bn(hu.bind(null,e),r);break}hu(e);break;case 5:if(1073741823!==Is&&null!==As){o=Is;var s=As;if(0>=(r=0|s.busyMinDurationMs)?r=0:(i=0|s.busyDelayMs,r=(o=zi()-(10*(1073741821-o)-(0|s.timeoutMs||5e3)))<=i?0:i+r-o),10<r){ju(e,n),e.timeoutHandle=bn(hu.bind(null,e),r);break}}hu(e);break;default:throw Error(a(329))}if(Xs(e),e.callbackNode===t)return Js.bind(null,e)}}return null}function Zs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Ss))throw Error(a(327));if(vu(),e===ks&&t===Cs||nu(e,t),null!==Ts){var n=Ss;Ss|=16;for(var r=iu();;)try{su();break}catch(i){ru(e,i)}if(Zi(),Ss=n,ys.current=r,1===Os)throw n=xs,nu(e,t),ju(e,t),Xs(e),n;if(null!==Ts)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,ks=null,hu(e),Xs(e)}return null}function eu(e,t){var n=Ss;Ss|=1;try{return e(t)}finally{0===(Ss=n)&&Hi()}}function tu(e,t){var n=Ss;Ss&=-2,Ss|=8;try{return e(t)}finally{0===(Ss=n)&&Hi()}}function nu(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==Ts)for(n=Ts.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&mi();break;case 3:jo(),ui(hi),ui(fi);break;case 5:Do(r);break;case 4:jo();break;case 13:case 19:ui(Lo);break;case 10:eo(r)}n=n.return}ks=e,Ts=Cu(e.current,null),Cs=t,Os=ws,xs=null,Ps=Is=1073741823,As=null,Ns=0,js=!1}function ru(e,t){for(;;){try{if(Zi(),zo.current=ma,Ho)for(var n=Bo.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Vo=0,Wo=qo=Bo=null,Ho=!1,null===Ts||null===Ts.return)return Os=1,xs=t,Ts=null;e:{var i=e,o=Ts.return,a=Ts,s=t;if(t=Cs,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var u=s;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var l=0!==(1&Lo.current),f=o;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(h){var v=f.updateQueue;if(null===v){var m=new Set;m.add(u),f.updateQueue=m}else v.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=so(1073741823,null);g.tag=2,uo(a,g)}a.expirationTime=1073741823;break e}s=void 0,a=t;var y=i.pingCache;if(null===y?(y=i.pingCache=new ds,s=new Set,y.set(u,s)):void 0===(s=y.get(u))&&(s=new Set,y.set(u,s)),!s.has(a)){s.add(a);var b=bu.bind(null,i,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);s=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}5!==Os&&(Os=2),s=Ja(s,a),f=o;do{switch(f.tag){case 3:u=s,f.effectTag|=4096,f.expirationTime=t,co(f,ps(f,u,t));break e;case 1:u=s;var w=f.type,_=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==_&&"function"===typeof _.componentDidCatch&&(null===Fs||!Fs.has(_)))){f.effectTag|=4096,f.expirationTime=t,co(f,vs(f,u,t));break e}}f=f.return}while(null!==f)}Ts=lu(Ts)}catch(E){t=E;continue}break}}function iu(){var e=ys.current;return ys.current=ma,null===e?ma:e}function ou(e,t){e<Is&&2<e&&(Is=e),null!==t&&e<Ps&&2<e&&(Ps=e,As=t)}function au(e){e>Ns&&(Ns=e)}function su(){for(;null!==Ts;)Ts=cu(Ts)}function uu(){for(;null!==Ts&&!ji();)Ts=cu(Ts)}function cu(e){var t=ms(e.alternate,e,Cs);
vendor: 10,093 bytes, line 2
2return e.memoizedProps=e.pendingProps,null===t&&(t=lu(e)),bs.current=null,t}function lu(e){Ts=e;do{var t=Ts.alternate;if(e=Ts.return,0===(2048&Ts.effectTag)){if(t=Ya(t,Ts,Cs),1===Cs||1!==Ts.childExpirationTime){for(var n=0,r=Ts.child;null!==r;){var i=r.expirationTime,o=r.childExpirationTime;i>n&&(n=i),o>n&&(n=o),r=r.sibling}Ts.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Ts.firstEffect),null!==Ts.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Ts.firstEffect),e.lastEffect=Ts.lastEffect),1<Ts.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Ts:e.firstEffect=Ts,e.lastEffect=Ts))}else{if(null!==(t=Xa(Ts)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Ts.sibling))return t;Ts=e}while(null!==Ts);return Os===ws&&(Os=5),null}function fu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hu(e){var t=Ui();return Bi(99,du.bind(null,e,t)),null}function du(e,t){do{vu()}while(null!==Us);if(0!==(48&Ss))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fu(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===ks&&(Ts=ks=null,Cs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var o=Ss;Ss|=32,bs.current=null,vn=Kt;var s=dn();if(pn(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{var c=(u=(u=s.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var l=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(C){u=null;break e}var h=0,d=-1,p=-1,v=0,m=0,g=s,y=null;t:for(;;){for(var b;g!==u||0!==l&&3!==g.nodeType||(d=h+l),g!==f||0!==c&&3!==g.nodeType||(p=h+c),3===g.nodeType&&(h+=g.nodeValue.length),null!==(b=g.firstChild);)y=g,g=b;for(;;){if(g===s)break t;if(y===u&&++v===l&&(d=h),y===f&&++m===c&&(p=h),null!==(b=g.nextSibling))break;y=(g=y).parentNode}g=b}u=-1===d||-1===p?null:{start:d,end:p}}else u=null}u=u||{start:0,end:0}}else u=null;mn={activeElementDetached:null,focusedElem:s,selectionRange:u},Kt=!1,Ds=i;do{try{pu()}catch(C){if(null===Ds)throw Error(a(330));yu(Ds,C),Ds=Ds.nextEffect}}while(null!==Ds);Ds=i;do{try{for(s=e,u=t;null!==Ds;){var w=Ds.effectTag;if(16&w&&Ue(Ds.stateNode,""),128&w){var _=Ds.alternate;if(null!==_){var E=_.ref;null!==E&&("function"===typeof E?E(null):E.current=null)}}switch(1038&w){case 2:cs(Ds),Ds.effectTag&=-3;break;case 6:cs(Ds),Ds.effectTag&=-3,fs(Ds.alternate,Ds);break;case 1024:Ds.effectTag&=-1025;break;case 1028:Ds.effectTag&=-1025,fs(Ds.alternate,Ds);break;case 4:fs(Ds.alternate,Ds);break;case 8:ls(s,l=Ds,u),ss(l)}Ds=Ds.nextEffect}}catch(C){if(null===Ds)throw Error(a(330));yu(Ds,C),Ds=Ds.nextEffect}}while(null!==Ds);if(E=mn,_=dn(),w=E.focusedElem,u=E.selectionRange,_!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==u&&pn(w)&&(_=u.start,void 0===(E=u.end)&&(E=_),"selectionStart"in w?(w.selectionStart=_,w.selectionEnd=Math.min(E,w.value.length)):(E=(_=w.ownerDocument||document)&&_.defaultView||window).getSelection&&(E=E.getSelection(),l=w.textContent.length,s=Math.min(u.start,l),u=void 0===u.end?s:Math.min(u.end,l),!E.extend&&s>u&&(l=u,u=s,s=l),l=hn(w,s),f=hn(w,u),l&&f&&(1!==E.rangeCount||E.anchorNode!==l.node||E.anchorOffset!==l.offset||E.focusNode!==f.node||E.focusOffset!==f.offset)&&((_=_.createRange()).setStart(l.node,l.offset),E.removeAllRanges(),s>u?(E.addRange(_),E.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),E.addRange(_))))),_=[];for(E=w;E=E.parentNode;)1===E.nodeType&&_.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<_.length;w++)(E=_[w]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Kt=!!vn,mn=vn=null,e.current=n,Ds=i;do{try{for(w=e;null!==Ds;){var S=Ds.effectTag;if(36&S&&os(w,Ds.alternate,Ds),128&S){_=void 0;var k=Ds.ref;if(null!==k){var T=Ds.stateNode;switch(Ds.tag){case 5:_=T;break;default:_=T}"function"===typeof k?k(_):k.current=_}}Ds=Ds.nextEffect}}catch(C){if(null===Ds)throw Error(a(330));yu(Ds,C),Ds=Ds.nextEffect}}while(null!==Ds);Ds=null,Ri(),Ss=o}else e.current=n;if(zs)zs=!1,Us=e,Vs=t;else for(Ds=i;null!==Ds;)t=Ds.nextEffect,Ds.nextEffect=null,Ds=t;if(0===(t=e.firstPendingTime)&&(Fs=null),1073741823===t?e===Ws?qs++:(qs=0,Ws=e):qs=0,"function"===typeof _u&&_u(n.stateNode,r),Xs(e),Ls)throw Ls=!1,e=Ms,Ms=null,e;return 0!==(8&Ss)||Hi(),null}function pu(){for(;null!==Ds;){var e=Ds.effectTag;0!==(256&e)&&ns(Ds.alternate,Ds),0===(512&e)||zs||(zs=!0,qi(97,(function(){return vu(),null}))),Ds=Ds.nextEffect}}function vu(){if(90!==Vs){var e=97<Vs?97:Vs;return Vs=90,Bi(e,mu)}}function mu(){if(null===Us)return!1;var e=Us;if(Us=null,0!==(48&Ss))throw Error(a(331));var t=Ss;for(Ss|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:rs(5,n),is(5,n)}}catch(r){if(null===e)throw Error(a(330));yu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Ss=t,Hi(),!0}function gu(e,t,n){uo(e,t=ps(e,t=Ja(n,t),1073741823)),null!==(e=Qs(e,1073741823))&&Xs(e)}function yu(e,t){if(3===e.tag)gu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){gu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Fs||!Fs.has(r))){uo(n,e=vs(n,e=Ja(t,e),1073741823)),null!==(n=Qs(n,1073741823))&&Xs(n);break}}n=n.return}}function bu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),ks===e&&Cs===n?Os===Es||Os===_s&&1073741823===Is&&zi()-Rs<500?nu(e,Cs):js=!0:Nu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Xs(e)))}function wu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=Gs(t=Ks(),e,null)),null!==(e=Qs(e,t))&&Xs(e)}ms=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||hi.current)Pa=!0;else{if(r<n){switch(Pa=!1,t.tag){case 3:za(t),xa();break;case 5:if(Ro(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&bi(t);break;case 4:No(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,ci(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Wa(e,t,n):(ci(Lo,1&Lo.current),null!==(t=$a(e,t,n))?t.sibling:null);ci(Lo,1&Lo.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Ga(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),ci(Lo,Lo.current),!r)return null}return $a(e,t,n)}Pa=!1}}else Pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=pi(t,fi.current),no(t,n),i=$o(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var o=!0;bi(t)}else o=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,oo(t);var s=r.getDerivedStateFromProps;"function"===typeof s&&vo(t,r,s,e),i.updater=mo,t.stateNode=i,i._reactInternalFiber=t,wo(t,r,e,n),t=Fa(null,t,r,!0,o,n)}else t.tag=0,Aa(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,o=t.tag=function(e){if("function"===typeof e)return Tu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(i),e=$i(i,e),o){case 0:t=La(null,t,i,e,n);break e;case 1:t=Ma(null,t,i,e,n);break e;case 11:t=Na(null,t,i,e,n);break e;case 14:t=ja(null,t,i,$i(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 1:return r=t.type,i=t.pendingProps,Ma(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 3:if(za(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,ao(e,t),lo(t,r,null,n),(r=t.memoizedState.element)===i)xa(),t=$a(e,t,n);else{if((i=t.stateNode.hydrate)&&(_a=_n(t.stateNode.containerInfo.firstChild),wa=t,i=Ea=!0),i)for(n=Co(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Aa(e,t,r,n),xa();t=t.child}return t;case 5:return Ro(t),null===e&&Ta(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,yn(r,i)?s=null:null!==o&&yn(r,o)&&(t.effectTag|=16),Da(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Aa(e,t,s,n),t=t.child),t;case 6:return null===e&&Ta(t),null;case 13:return Wa(e,t,n);case 4:return No(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=To(t,null,r,n):Aa(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Na(e,t,r,i=t.elementType===r?i:$i(r,i),n);case 7:return Aa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Aa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value;var u=t.type._context;if(ci(Qi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=Mr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._
vendor: 8,000 bytes, line 2
2calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!hi.current){t=$a(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){s=u.child;for(var l=c.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&o)){1===u.tag&&((l=so(n,null)).tag=2,uo(u,l)),u.expirationTime<n&&(u.expirationTime=n),null!==(l=u.alternate)&&l.expirationTime<n&&(l.expirationTime=n),to(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}l=l.next}}else s=10===u.tag&&u.type===t.type?null:u.child;if(null!==s)s.return=u;else for(s=u;null!==s;){if(s===t){s=null;break}if(null!==(u=s.sibling)){u.return=s.return,s=u;break}s=s.return}u=s}Aa(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(o=t.pendingProps).children,no(t,n),r=r(i=ro(i,o.unstable_observedBits)),t.effectTag|=1,Aa(e,t,r,n),t.child;case 14:return o=$i(i=t.type,t.pendingProps),ja(e,t,i,o=$i(i.type,o),r,n);case 15:return Ra(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:$i(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(r)?(e=!0,bi(t)):e=!1,no(t,n),yo(t,r,i),wo(t,r,i,n),Fa(null,t,r,!0,e,n);case 19:return Ga(e,t,n)}throw Error(a(156,t.tag))};var _u=null,Eu=null;function Su(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function ku(e,t,n,r){return new Su(e,t,n,r)}function Tu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Cu(e,t){var n=e.alternate;return null===n?((n=ku(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ou(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Tu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case ne:return xu(n.children,i,o,t);case se:s=8,i|=7;break;case re:s=8,i|=1;break;case ie:return(e=ku(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=o,e;case ce:return(e=ku(13,n,t,i)).type=ce,e.elementType=ce,e.expirationTime=o,e;case le:return(e=ku(19,n,t,i)).elementType=le,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case oe:s=10;break e;case ae:s=9;break e;case ue:s=11;break e;case fe:s=14;break e;case he:s=16,r=null;break e;case de:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=ku(s,n,t,i)).elementType=e,t.type=r,t.expirationTime=o,t}function xu(e,t,n,r){return(e=ku(7,e,r,t)).expirationTime=n,e}function Iu(e,t,n){return(e=ku(6,e,null,t)).expirationTime=n,e}function Pu(e,t,n){return(t=ku(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Au(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Nu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function ju(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ru(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Du(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Lu(e,t,n,r){var i=t.current,o=Ks(),s=ho.suspense;o=Gs(o,i,s);e:if(n){t:{if(Ze(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(vi(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(vi(c)){n=yi(n,c,u);break e}}n=u}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=so(o,s)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),uo(i,t),$s(i,o),o}function Mu(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Fu(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function zu(e,t){Fu(e,t),(e=e.alternate)&&Fu(e,t)}function Uu(e,t,n){var r=new Au(e,t,n=null!=n&&!0===n.hydrate),i=ku(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,oo(i),e[Cn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);Ct.forEach((function(e){pt(e,t,n)})),Ot.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Vu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Bu(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o._internalRoot;if("function"===typeof i){var s=i;i=function(){var e=Mu(a);s.call(e)}}Lu(t,a,e,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Uu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Mu(a);u.call(e)}}tu((function(){Lu(t,a,e,i)}))}return Mu(a)}function qu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Wu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Vu(t))throw Error(a(200));return qu(e,t,null,n)}Uu.prototype.render=function(e){Lu(e,this._internalRoot,null,null)},Uu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Lu(null,e,null,(function(){t[Cn]=null}))},vt=function(e){if(13===e.tag){var t=Gi(Ks(),150,100);$s(e,t),zu(e,t)}},mt=function(e){13===e.tag&&($s(e,3),zu(e,3))},gt=function(e){if(13===e.tag){var t=Ks();$s(e,t=Gs(t,e,null)),zu(e,t)}},x=function(e,t,n){switch(t){case"input":if(Te(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Pn(r);if(!i)throw Error(a(90));_e(r),Te(r,i)}}}break;case"textarea":Ne(e,n);break;case"select":null!=(t=n.value)&&Ie(e,!!n.multiple,t,!1)}},R=eu,D=function(e,t,n,r,i){var o=Ss;Ss|=4;try{return Bi(98,e.bind(null,t,n,r,i))}finally{0===(Ss=o)&&Hi()}},L=function(){0===(49&Ss)&&(function(){if(null!==Bs){var e=Bs;Bs=null,e.forEach((function(e,t){Du(t,e),Xs(t)})),Hi()}}(),vu())},M=function(e,t){var n=Ss;Ss|=2;try{return e(t)}finally{0===(Ss=n)&&Hi()}};var Hu={Events:[xn,In,Pn,C,S,Mn,function(e){it(e,Ln)},N,j,Xt,st,vu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;
vendor: 4,819 bytes, line 2
2if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);_u=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Eu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:On,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,t.createPortal=Wu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Ss))throw Error(a(187));var n=Ss;Ss|=1;try{return Bi(99,e.bind(null,t))}finally{Ss=n,Hi()}},t.hydrate=function(e,t,n){if(!Vu(t))throw Error(a(200));return Bu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Vu(t))throw Error(a(200));return Bu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Vu(e))throw Error(a(40));return!!e._reactRootContainer&&(tu((function(){Bu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Cn]=null}))})),!0)},t.unstable_batchedUpdates=eu,t.unstable_createPortal=function(e,t){return Wu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Bu(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(107)},function(e,t,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var u=null,c=null,l=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(n){throw setTimeout(l,0),n}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(l,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)t.unstable_now=function(){return h.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var y=!1,b=null,w=-1,_=5,E=0;a=function(){return t.unstable_now()>=E},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var S=new MessageChannel,k=S.port2;S.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();E=e+_;try{b(!0,e)?k.postMessage(null):(y=!1,b=null)}catch(n){throw k.postMessage(null),n}}else y=!1},r=function(e){b=e,y||(y=!0,k.postMessage(null))},i=function(e,n){w=p((function(){e(t.unstable_now())}),n)},o=function(){v(w),w=-1}}function T(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<x(i,t)))break e;e[r]=t,e[n]=i,n=r}}function C(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,u=e[s];if(void 0!==a&&0>x(a,n))void 0!==u&&0>x(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>x(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var I=[],P=[],A=1,N=null,j=3,R=!1,D=!1,L=!1;function M(e){for(var t=C(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,T(I,t)}t=C(P)}}function F(e){if(L=!1,M(e),!D)if(null!==C(I))D=!0,r(z);else{var t=C(P);null!==t&&i(F,t.startTime-e)}}function z(e,n){D=!1,L&&(L=!1,o()),R=!0;var r=j;try{for(M(n),N=C(I);null!==N&&(!(N.expirationTime>n)||e&&!a());){var s=N.callback;if(null!==s){N.callback=null,j=N.priorityLevel;var u=s(N.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?N.callback=u:N===C(I)&&O(I),M(n)}
2else O(I);N=C(I)}if(null!==N)var c=!0;else{var l=C(P);null!==l&&i(F,l.startTime-n),c=!1}return c}finally{N=null,j=r,R=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||R||(D=!0,r(z))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return C(I)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?s+u:s,a="number"===typeof a.timeout?a.timeout:U(e)}else a=U(e),u=s;return e={id:A++,callback:n,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>s?(e.sortIndex=u,T(P,e),null===C(I)&&e===C(P)&&(L?o():L=!0,i(F,u-s))):(e.sortIndex=a,T(I,e),D||R||(D=!0,r(z))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=C(I);return n!==N&&null!==N&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<N.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}}},,,,function(e,t,n){},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,u=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case h:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case o:return t}}}function S(e){return E(e)===h}t.AsyncMode=f,t.ConcurrentMode=h,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=g,t.Memo=m,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||E(e)===f},t.isConcurrentMode=S,t.isContextConsumer=function(e){return E(e)===l},t.isContextProvider=function(e){return E(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===g},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===u},t.isStrictMode=function(e){return E(e)===s},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===h||e===u||e===s||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===_||e.$$typeof===y)},t.typeOf=E},function(e,t,n){"use strict";var r=60103,i=60106,o=60107,a=60108,s=60114,u=60109,c=60110,l=60112,f=60113,h=60120,d=60115,p=60116,v=60121,m=60122,g=60117,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;r=w("react.element"),i=w("react.portal"),o=w("react.fragment"),a=w("react.strict_mode"),s=w("react.profiler"),u=w("react.provider"),c=w("react.context"),l=w("react.forward_ref"),f=w("react.suspense"),h=w("react.suspense_list"),d=w("react.memo"),p=w("react.lazy"),v=w("react.block"),m=w("react.server.block"),g=w("react.fundamental"),y=w("react.debug_trace_mode"),b=w("react.legacy_hidden")}function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case f:case h:return e;default:switch(e=e&&e.$$typeof){case c:case l:case p:case d:case u:return e;default:return t}}case i:return t}}}var E=u,S=r,k=l,T=o,C=p,O=d,x=i,I=s,P=a,A=f;t.ContextConsumer=c,t.ContextProvider=E,t.Element=S,t.ForwardRef=k,t.Fragment=T,t.Lazy=C,t.Memo=O,t.Portal=x,t.Profiler=I,t.StrictMode=P,t.Suspense=A,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return _(e)===c},t.isContextProvider=function(e){return _(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return _(e)===l},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===p},t.isMemo=function(e){return _(e)===d},t.isPortal=function(e){return _(e)===i},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===y||e===a||e===f||e===h||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===d||e.$$typeof===u||e.$$typeof===c||e.$$typeof===l||e.$$typeof===g||e.$$typeof===v||e[0]===m)},t.typeOf=_},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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=g(["\n display: inline-block;\n height: ",";\n width: ",";\n border-radius: 50%;\n background: ",";\n position: absolute;\n left: 50%;\n margin-top: -10px;\n margin-left: -10px;\n"]);return c=function(){return e},e}function l(){var e=g(["\n animation-delay: 0.8s;\n"]);return l=function(){return e},e}function f(){var e=g(["\n animation-delay: 0.6s;\n"]);return f=function(){return e},e}function h(){var e=g(["\n animation-delay: 0.4s;\n"]);return h=function(){return e},e}function d(){var e=g(["\n animation-delay: 0.2s;\n"]);return d=function(){return e},e}function p(){var e=g(["\n width: 100%;\n height: 100%;\n position: absolute;\n animation: "," ","s linear infinite;\n"]);return p=function(){return e},e}function v(){var e=g(["\n width: 50px;\n height: 50px;\n"]);return v=function(){return e},e}function m(){var e=g(["\n 0%{\n transform: rotate(0deg);\n }\n 10%{\n transform: rotate(45deg);\n }\n 50%{\n opacity: 1;\n transform: rotate(160deg);\n }\n 62%{\n opacity: 0;\n }\n 65%{\n opacity: 0;\n transform: rotate(200deg);\n }\n 90%{\n transform: rotate(340deg);\n }\n 100%{\n transform: rotate(360deg);\n }\n"]);return m=function(){return e},e}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y=(0,a.keyframes)(m()),b=a.default.div(v()),w=a.default.div(p(),y,(function(e){return e.speed||2})),_=(0,a.default)(w)(d()),E=(0,a.default)(w)(h()),S=(0,a.default)(w)(f()),k=(0,a.default)(w)(l()),T=a.default.span(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"})),C=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.speed,i=e.color,a=e.size,u=void 0===a?"default":a;return o.default.createElement(b,{style:n,speed:r,color:i,size:u},o.default.createElement(_,{speed:r},o.default.createElement(T,{color:i,size:u})),o.default.createElement(E,{speed:r},o.default.createElement(T,{color:i,size:u})),o.default.createElement(S,{speed:r},o.default.createElement(T,{color:i,size:u})),o.default.createElement(k,{speed:r},o.default.createElement(T,{color:i,size:u})))};t.default=C},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=g(["\n animation-delay: -0.8s;\n"]);return c=function(){return e},e}function l(){var e=g(["\n animation-delay: -0.9s;\n"]);return l=function(){return e},e}function f(){var e=g(["\n animation-delay: -1s;\n"]);return f=function(){return e},e}function h(){var e=g(["\n animation-delay: -1.1s;\n"]);return h=function(){return e},e}function d(){var e=g(["\n animation-delay: -1.2s;\n"]);return d=function(){return e},e}function p(){var e=g(["\n background-color: ",";\n height: 100%;\n width: 6px;\n display: inline-block;\n margin-left: 5px;\n animation: "," ","s infinite ease-in-out;\n"]);return p=function(){return e},e}function v(){var e=g(["\n width: 100px;\n height: ",";\n text-align: center;\n font-size: 10px;\n"]);return v=function(){return e},e}function m(){var e=g(["\n 0%,\n 40%,\n 100% {\n -webkit-transform: scaleY(0.4);\n }\n 20% {\n -webkit-transform: scaleY(1);\n }\n"]);return m=function(){return e},e}function g(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var y=(0,a.keyframes)(m()),b=a.default.div(v(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),w=a.default.div(p(),(function(e){return e.color||"#00adb5"}),y,(function(e){return e.speed||1.2})),_=(0,a.default)(w)(d()),E=(0,a.default)(w)(h()),S=(0,a.default)(w)(f()),k=(0,a.default)(w)(l()),T=(0,a.default)(w)(c()),C=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(b,{style:n,size:u},o.default.createElement(_,{color:r,speed:i}),o.default.createElement(E,{color:r,speed:i}),o.default.createElement(S,{color:r,speed:i}),o.default.createElement(k,{color:r,speed:i}),o.default.createElement(T,{color:r,speed:i}))};t.default=C},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n animation-delay: 0.8s;\n"]);return c=function(){return e},e}function l(){var e=m(["\n animation-delay: 0.6s;\n"]);return l=function(){return e},e}function f(){var e=m(["\n animation-delay: 0.4s;\n"]);return f=function(){return e},e}function h(){var e=m(["\n animation-delay: 0.2s;\n"]);return h=function(){return e},e}function d(){var e=m(["\n display: inline-block;\n height: ",";\n width: ",";\n margin-top: 50%;\n margin-right: 5px;\n background: ",";\n transform-origin: right bottom;\n animation: "," ","s ease infinite;\n"]);return d=function(){return e},e}function p(){var e=m(["\n width: 100px;\n height: 100px;\n"]);return p=function(){return e},e}function v(){var e=m(["\n 0%{\n opacity: 1;\n transform: scale(1);\n }\n 100%{\n opacity: 0;\n transform: rotate(90deg) scale(.3);\n }\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=a.default.div(p()),b=a.default.span(d(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),g,(function(e){return e.speed||2})),w=(0,a.default)(b)(h()),_=(0,a.default)(b)(f()),E=(0,a.default)(b)(l()),S=(0,a.default)(b)(c()),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(y,{style:n},o.default.createElement(w,{color:r,speed:i,size:u}),o.default.createElement(_,{color:r,speed:i,size:u}),o.default.createElement(E,{color:r,speed:i,size:u}),o.default.createElement(S,{color:r,speed:i,size:u}))};t.default=k},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=x(["\n animation-delay: -0.1s;\n left: 0;\n bottom: 0;\n"]);return c=function(){return e},e}function l(){var e=x(["\n animation-delay: -0.4s;\n right: 0;\n bottom: 0;\n"]);return l=function(){return e},e}function f(){var e=x(["\n animation-delay: -0.7s;\n top: 0;\n right: 0;\n"]);return f=function(){return e},e}function h(){var e=x(["\n top: 0;\n left: 0;\n animation-delay: -1s;\n"]);return h=function(){return e},e}function d(){var e=x(["\n animation-delay: -0.2s;\n left: 0;\n bottom: 0;\n"]);return d=function(){return e},e}function p(){var e=x(["\n animation-delay: -0.5s;\n right: 0;\n bottom: 0;\n"]);return p=function(){return e},e}function v(){var e=x(["\n animation-delay: -0.8s;\n top: 0;\n right: 0;\n"]);return v=function(){return e},e}function m(){var e=x(["\n top: 0;\n left: 0;\n animation-delay: -1.1s;\n"]);return m=function(){return e},e}function g(){var e=x(["\n animation-delay: -0.3s;\n left: 0;\n bottom: 0;\n"]);return g=function(){return e},e}function y(){var e=x(["\n animation-delay: -0.6s;\n right: 0;\n bottom: 0;\n"]);return y=function(){return e},e}function b(){var e=x(["\n animation-delay: -0.9s;\n top: 0;\n right: 0;\n"]);return b=function(){return e},e}function w(){var e=x(["\n top: 0;\n left: 0;\n"]);return w=function(){return e},e}function _(){var e=x(["\n transform: rotateZ(90deg);\n"]);return _=function(){return e},e}function E(){var e=x(["\n transform: rotateZ(45deg);\n"]);return E=function(){return e},e}function S(){var e=x([""]);return S=function(){return e},e}function k(){var e=x(["\n width: ",";\n height: ",";\n background-color: "," ;\n border-radius: 100%;\n position: absolute;\n animation: "," ","s infinite ease-in-out;\n animation-fill-mode: both;\n"]);return k=function(){return e},e}function T(){var e=x(["\n position: absolute;\n width: 100%;\n height: 100%;\n"]);return T=function(){return e},e}function C(){var e=x(["\n position: absolute;\n width: 48px;\n height: 48px;\n"]);return C=function(){return e},e}function O(){var e=x(["\n 0%,\n 80%,\n 100% {\n transform: scale(0);\n -webkit-transform: scale(0);\n }\n 40% {\n transform: scale(1);\n -webkit-transform: scale(1);\n }\n"]);return O=function(){return e},e}function x(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var I=(0,a.keyframes)(O()),P=a.default.div(C()),A=a.default.div(T()),N=a.default.div(k(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),I,(function(e){return e.speed||1.2})),j=(0,a.default)(A)(S()),R=(0,a.default)(A)(E()),D=(0,a.default)(A)(_()),L=(0,a.default)(N)(w()),M=(0,a.default)(N)(b()),F=(0,a.default)(N)(y()),z=(0,a.default)(N)(g()),U=(0,a.default)(N)(m()),V=(0,a.default)(N)(v()),B=(0,a.default)(N)(p()),q=(0,a.default)(N)(d()),W=(0,a.default)(N)(h()),H=(0,a.default)(N)(f()),K=(0,a.default)(N)(l()),G=(0,a.default)(N)(c()),$=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.size,a=void 0===i?"default":i,u=e.speed;return o.default.createElement(P,{style:n},o.default.createElement(j,null,o.default.createElement(L,{color:r,size:a,speed:u}),o.default.createElement(M,{color:r,size:a,speed:u}),o.default.createElement(F,{color:r,size:a,speed:u}),o.default.createElement(z,{color:r,size:a,speed:u})),o.default.createElement(R,null,o.default.createElement(U,{color:r,size:a,speed:u}),o.default.createElement(V,{color:r,size:a,speed:u}),o.default.createElement(B,{color:r,size:a,speed:u}),o.default.createElement(q,{color:r,size:a,speed:u})),o.default.createElement(D,null,o.default.createElement(W,{color:r,size:a,speed:u}),o.default.createElement(H,{color:r,size:a,speed:u}),o.default.createElement(K,{color:r,size:a,speed:u}),o.default.createElement(G,{color:r,size:a,speed:u})))};t.default=$},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=v(["\n animation-delay: -0.16s;\n\n"]);return c=function(){return e},e}function l(){var e=v(["\n animation-delay: -0.32s;\n"]);return l=function(){return e},e}function f(){var e=v(["\n animation-delay: -0.48s;\n"]);return f=function(){return e},e}function h(){var e=v(["\n width: ",";\n height: ",";\n margin-top: calc(50% - "," / 2);\n background-color: ",";\n border-radius: 100%;\n display: inline-block;\n animation: "," ","s infinite ease-in-out;\n animation-fill-mode: both;\n"]);return h=function(){return e},e}function d(){var e=v(["\n width: 150px;\n height: 150px;\n text-align: center;\n"]);return d=function(){return e},e}function p(){var e=v(["\n 0%,\n 80%,\n 100% {\n -webkit-transform: scale(0);\n }\n 40% {\n -webkit-transform: scale(1);\n }\n"]);return p=function(){return e},e}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,a.keyframes)(p()),g=a.default.div(d()),y=a.default.div(h(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),m,(function(e){return e.speed||1.4})),b=(0,a.default)(y)(f()),w=(0,a.default)(y)(l()),_=(0,a.default)(y)(c()),E=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(g,{style:n},o.default.createElement(b,{color:r,size:u,speed:i}),o.default.createElement(w,{color:r,size:u,speed:i}),o.default.createElement(_,{color:r,size:u,speed:i}))};t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n(0)),i=s(n(7)),o=n(120),a=n(11);function s(e){return e&&e.__esModule?e:{default:e}}function u(){var e=p(["\n animation: "," ","s infinite ease-in-out;\n"]);return u=function(){return e},e}function c(){var e=p(["\n animation: "," ","s infinite ease-in-out;\n"]);return c=function(){return e},e}function l(){var e=p(["\n animation: "," ","s infinite ease-in-out;\n"]);return l=function(){return e},e}function f(){var e=p(["\n animation: "," ","s infinite ease-in-out;\n"]);return f=function(){return e},e}function h(){var e=p(["\n width: ",";\n height: ",";\n margin: auto;\n"]);return h=function(){return e},e}function d(){var e=p(["\n width: ",";\n height: ",";\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n align-items: center;\n animation: "," ","s infinite ease-in-out;\n"]);return d=function(){return e},e}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=i.default.div(d(),(function(e){return a.sizeContainer[e.size]||a.sizeContainer.default}),(function(e){return a.sizeContainer[e.size]||a.sizeContainer.default}),o.Rotate,(function(e){return e.speed||8})),m=i.default.div(h(),(function(e){return a.sizeItem[e.size]||a.sizeItem.default}),(function(e){return a.sizeItem[e.size]||a.sizeItem.default})),g=(0,i.default)(m)(f(),(function(e){return(0,o.animateFirst)(e.color||"#00adb5")}),(function(e){return e.speed/4||2})),y=(0,i.default)(m)(l(),(function(e){return(0,o.animateTwo)(e.color||"#00adb5")}),(function(e){return e.speed/4||2})),b=(0,i.default)(m)(c(),(function(e){return(0,o.animateThree)(e.color||"#00adb5")}),(function(e){return e.speed/4||2})),w=(0,i.default)(m)(u(),(function(e){return(0,o.animateFour)(e.color||"#00adb5")}),(function(e){return e.speed/4||2})),_=function(e){var t=e.style,n=void 0===t?a.commonStyle:t,i=e.speed,o=e.size,s=void 0===o?"default":o,u=e.color;return r.default.createElement(v,{style:n,speed:i,size:s},r.default.createElement(g,{speed:i,size:s,color:u}),r.default.createElement(y,{speed:i,size:s,color:u}),r.default.createElement(w,{speed:i,size:s,color:u}),r.default.createElement(b,{speed:i,size:s,color:u}))};t.default=_},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.animateFour=t.animateThree=t.animateTwo=t.animateFirst=t.Rotate=void 0;var r=n(7);function i(){var e=c(["\n 0% {\n background: ",";\n }\n 25% {\n background: ",";\n }\n 50% {\n background: ",";\n }\n 75% {\n background: ",";\n }\n 100% {\n background: ",";\n }\n"]);return i=function(){return e},e}function o(){var e=c(["\n 0% {\n background: ",";\n }\n 25% {\n background: ",";\n }\n 50% {\n background: ",";\n }\n 75% {\n background: ",";\n }\n 100% {\n background: ",";\n }\n"]);return o=function(){return e},e}function a(){var e=c(["\n 0% {\n background: ",";\n }\n 25% {\n background: ",";\n }\n 50% {\n background: ",";\n }\n 75% {\n background: ",";\n }\n 100% {\n background: ",";\n }\n"]);return a=function(){return e},e}function s(){var e=c(["\n 0% {\n background: ",";\n }\n 25% {\n background: ",";\n }\n 50% {\n background: ",";\n }\n 75% {\n background: ",";\n }\n 100% {\n background: ",";\n }\n"]);return s=function(){return e},e}function u(){var e=c(["\n 0% {\n transform: rotate(0deg);\n }\n 25% {\n transform: rotate(90deg);\n }\n 50% {\n transform: rotate(180deg);\n }\n 75% {\n transform: rotate(270deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return u=function(){return e},e}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var l=(0,r.keyframes)(u());t.Rotate=l;t.animateFirst=function(e){return(0,r.keyframes)(s(),"#f9c094",e,e,e,"#f9c094")};t.animateTwo=function(e){return(0,r.keyframes)(a(),e,"#f9c094",e,e,e)};t.animateThree=function(e){return(0,r.keyframes)(o(),e,e,"#f9c094",e,e)};t.animateFour=function(e){return(0,r.keyframes)(i(),e,e,e,"#f9c094",e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(n(0)),i=n(122),o=n(11);function a(e){return e&&e.__esModule?e:{default:e}}function s(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n width: ",";\n height: ",";\n &:before {\n content: '';\n width:",";\n height: 5px;\n background: #000;\n opacity: 0.1;\n position: absolute;\n top: calc("," + 10px) ;\n left: 0;\n border-radius: 50%;\n animation: "," ","s linear infinite;\n }\n &:after {\n content: '';\n width: ",";\n height:",";\n background: ",";\n animation: "," ","s linear infinite;\n position: absolute;\n top: 0;\n left: 0;\n border-radius: 3px;\n }\n"]);return s=function(){return e},e}var u=a(n(7)).default.div(s(),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),i.animate,(function(e){return e.speed||.5}),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),(function(e){return o.sizeContainer[e.size]||o.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),i.shadow,(function(e){return e.speed||.5})),c=function(e){var t=e.style,n=void 0===t?o.commonStyle:t,i=e.color,a=e.speed,s=e.size,c=void 0===s?"default":s;return r.default.createElement(u,{style:n,color:i,speed:a,size:c})};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.animate=t.shadow=void 0;var r=n(7);function i(){var e=a(["\n 0%,\n 100% {\n transform: scale(1, 1);\n }\n 50% {\n transform: scale(1.2, 1);\n }\n"]);return i=function(){return e},e}function o(){var e=a(["\n 17% {\n border-bottom-right-radius: 3px;\n }\n 25% {\n transform: translateY(9px) rotate(22.5deg);\n }\n 50% {\n transform: translateY(18px) scale(1, 0.9) rotate(45deg);\n border-bottom-right-radius: 40px;\n }\n 75% {\n transform: translateY(9px) rotate(67.5deg);\n }\n 100% {\n transform: translateY(0) rotate(90deg);\n }\n"]);return o=function(){return e},e}function a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var s=(0,r.keyframes)(o());t.shadow=s;var u=(0,r.keyframes)(i());t.animate=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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=v(["\n animation-delay: calc(","s * 4 / -1.5);\n"]);return c=function(){return e},e}function l(){var e=v(["\n animation-delay: calc(","s * 3 / -1.5);\n"]);return l=function(){return e},e}function f(){var e=v(["\n animation-delay: calc(","s * 2 / -1.5);\n"]);return f=function(){return e},e}function h(){var e=v(["\n height: ",";\n width: ",";\n background-color: ",";\n position: absolute;\n margin: auto;\n border-radius: 2px;\n transform: translateY(0) rotate(45deg) scale(0);\n animation: "," ","s linear infinite;\n"]);return h=function(){return e},e}function d(){var e=v(["\n height: 100px;\n width: 100px;\n display: flex;\n justify-content: space-between;\n flex-wrap: nowrap;\n align-items: center;\n"]);return d=function(){return e},e}function p(){var e=v(["\n 0% {\n transform: translateX(-50%) rotate(45deg) scale(0);\n }\n 50% {\n transform: translateX(125%) rotate(45deg) scale(1);\n }\n 100% {\n transform: translateX(300%) rotate(45deg) scale(0);\n }\n"]);return p=function(){return e},e}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,a.keyframes)(p()),g=a.default.div(d()),y=a.default.div(h(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),m,(function(e){return e.speed||3})),b=(0,a.default)(y)(f(),(function(e){return e.speed||3})),w=(0,a.default)(y)(l(),(function(e){return e.speed||3})),_=(0,a.default)(y)(c(),(function(e){return e.speed||3})),E=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.size,a=void 0===i?"default":i,u=e.speed;return o.default.createElement(g,{style:n},o.default.createElement(b,{color:r,size:a,speed:u}),o.default.createElement(w,{color:r,size:a,speed:u}),o.default.createElement(_,{color:r,size:a,speed:u}))};t.default=E},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=v(["\n transform: translateX(-95%);\n animation: "," ","s ease-out alternate infinite ;\n"]);return c=function(){return e},e}function l(){var e=v(["\n transform: translateX(-100%);\n animation: "," ","s ease-in alternate infinite ;\n"]);return l=function(){return e},e}function f(){var e=v(["\n width: ",";\n height: ",";\n border-radius: 50%;\n background: ",";\n"]);return f=function(){return e},e}function h(){var e=v(["\n width: ","px;\n height: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-flow: nowrap;\n"]);return h=function(){return e},e}function d(){var e=v(["\n 50% {\n transform: translateX(-95%);\n }\n 100% {\n transform: translateX(100%);\n }\n"]);return d=function(){return e},e}function p(){var e=v(["\n 50%,\n 100% {\n transform: translateX(95%);\n }\n"]);return p=function(){return e},e}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,a.keyframes)(p()),g=(0,a.keyframes)(d()),y=a.default.div(h(),(function(e){return"small"===e.size?50:"large"===e.size?68:59}),(function(e){return"small"===e.size?50:"large"===e.size?68:59})),b=a.default.div(f(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"})),w=(0,a.default)(b)(l(),m,(function(e){return e.speed||1})),_=(0,a.default)(b)(c(),g,(function(e){return e.speed||1})),E=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size;return o.default.createElement(y,{style:n,size:a},o.default.createElement(w,{color:r,speed:i,size:a}),o.default.createElement(b,{color:r,size:a}),o.default.createElement(_,{color:r,speed:i,size:a}))};t.default=E},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=p(["\n animation-delay: -","s;\n"]);return c=function(){return e},e}function l(){var e=p(["\n animation-delay: -","s;\n"]);return l=function(){return e},e}function f(){var e=p(["\n width: ",";\n height: ",";\n border-radius: 50%;\n background: ",";\n animation: "," ","s ease-in-out alternate infinite;\n"]);return f=function(){return e},e}function h(){var e=p(["\n width: 60px;\n height: 60px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-flow: nowrap;\n"]);return h=function(){return e},e}function d(){var e=p(["\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n"]);return d=function(){return e},e}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=(0,a.keyframes)(d()),m=a.default.div(h()),g=a.default.div(f(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),v,(function(e){return e.speed||.8})),y=(0,a.default)(g)(l(),(function(e){return e.speed/2||.4})),b=(0,a.default)(g)(c(),(function(e){return e.speed/4||.2})),w=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(m,{style:n},o.default.createElement(y,{color:r,speed:i,size:u}),o.default.createElement(b,{color:r,speed:i,size:u}),o.default.createElement(g,{color:r,speed:i,size:u}))};t.default=w},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n margin: auto;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n width: ",";\n height: ",";\n transform: rotate(0);\n background: ",";\n animation: "," ","s infinite;\n"]);return c=function(){return e},e}function l(){var e=h(["\n perspective: 120px;\n width: 120px;\n height: 120px;\n position: relative;\n"]);return l=function(){return e},e}function f(){var e=h(["\n 50% {\n transform: rotateY(-180deg);\n }\n 100% {\n transform: rotateY(-180deg) rotateX(-180deg);\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l()),v=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.speed||1})),m=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(p,{style:n},o.default.createElement(v,{color:r,speed:i,size:u}))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=p(["\n animation-delay: -","s;\n"]);return c=function(){return e},e}function l(){var e=p(["\n animation-delay: -","s;\n"]);return l=function(){return e},e}function f(){var e=p(["\n width: ",";\n height:",";\n border-radius: 50%;\n background: ",";\n animation: "," ","s ease-in-out alternate infinite;\n"]);return f=function(){return e},e}function h(){var e=p(["\n width: ","px;\n height: ","px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-flow: nowrap;\n"]);return h=function(){return e},e}function d(){var e=p(["\n from {\n transform: translateY(-100%);\n }\n to {\n transform: translateY(100%);\n }\n"]);return d=function(){return e},e}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=(0,a.keyframes)(d()),m=a.default.div(h(),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50})),g=a.default.div(f(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),v,(function(e){return e.speed||.8})),y=(0,a.default)(g)(l(),(function(e){return e.speed/2||.4})),b=(0,a.default)(g)(c(),(function(e){return e.speed/4||.2})),w=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(m,{style:n,size:u},o.default.createElement(y,{color:r,speed:i,size:u}),o.default.createElement(b,{color:r,speed:i,size:u}),o.default.createElement(g,{color:r,speed:i,size:u}))};t.default=w},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n height: calc( "," / 4) ;\n width:calc( "," / 4) ;\n background-color: ",";\n border-radius: 50%;\nanimation: "," ","s alternate ease-in-out infinite;\n"]);return c=function(){return e},e}function l(){var e=h(["\n height: calc( "," * 2) ;\n width: calc( "," * 2) ;\n display: grid;\n grid-template-rows: repeat(3, 1fr);\n grid-template-columns: repeat(3, 1fr);\n justify-items: center;\n align-items: center;\n > div:nth-child(2) > div:nth-child(4) {\n animation-delay: ","s;\n }\n > div:nth-of-type(3),\n > div:nth-of-type(5),\n > div:nth-of-type(7) {\n animation-delay: ","s;\n }\n > div:nth-of-type(6),\n > div:nth-of-type(8) {\n animation-delay: ","s;\n }\n > div:nth-of-type(9) {\n animation-delay: ","s;\n }\n"]);return l=function(){return e},e}function f(){var e=h(["\n to {\n opacity: 0.3;\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.speed*(1/6)||.25}),(function(e){return e.speed/3||.5}),(function(e){return e.speed/2||.75}),(function(e){return e.speed*(2/3)||1})),v=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.speed||1.5})),m=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.size,a=void 0===i?"default":i,u=e.speed;return o.default.createElement(p,{style:n,speed:u},Array.from(Array(9)).map((function(e,t){return o.default.createElement(v,{size:a,color:r,speed:u,key:t})})))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n position: relative;\n animation: "," ","s infinite linear;\n"]);return c=function(){return e},e}function l(){var e=m(["\n width: 4px;\n height: 4px;\n border: 3px "," solid;\n background: #fff;\n border-radius: 5px;\n transform: translateX(-3px) translateY(-4px);\n position:absolute;\n"]);return l=function(){return e},e}function f(){var e=m(["\n height: 0;\n width: 2px;\n border-width: ","px 2px 0px 2px;\n border-style: solid solid none;\n border-color: "," transparent transparent;\n transform-origin: 5px 0;\n transform: rotate(300deg);\n position: absolute;\n"]);return f=function(){return e},e}function h(){var e=m(["\n height: 0;\n width: 2px;\n border-width: ","px 2px 0px 2px;\n border-style: solid solid none;\n border-color: "," transparent transparent;\n transform-origin: 2px -1px;\n transform: rotate(180deg);\n position: absolute;\n"]);return h=function(){return e},e}function d(){var e=m(["\n height: 0;\n width: 2px;\n border-width: ","px 2px 0px 2px;\n border-style: solid solid none;\n border-color: "," transparent transparent;\n transform-origin: 0 -2px;\n transform: rotate(60deg);\n position: absolute;\n"]);return d=function(){return e},e}function p(){var e=m(["\n height: 0;\n width: 4px;\n border-width: 0 4px ","px 4px;\n border-style: none solid solid;\n border-color: transparent transparent ",";\n position: relative;\n padding-top: 25px;\n"]);return p=function(){return e},e}function v(){var e=m(["\n 0% {\n transform: rotate(360deg);\n }\n 50% {\n transform: rotate(180deg);\n }\n 100% {\n transform: rotate(0deg);\n }\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=a.default.div(p(),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return e.color||"#00adb5"})),b=a.default.div(d(),(function(e){return"small"===e.size?24:"large"===e.size?40:30}),(function(e){return e.color||"#00adb5"})),w=a.default.div(h(),(function(e){return"small"===e.size?24:"large"===e.size?40:30}),(function(e){return e.color||"#00adb5"})),_=a.default.div(f(),(function(e){return"small"===e.size?24:"large"===e.size?40:30}),(function(e){return e.color||"#00adb5"})),E=a.default.div(l(),(function(e){return e.color||"#00adb5"})),S=a.default.div(c(),g,(function(e){return e.speed||5})),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(y,{style:n,color:r,size:u},o.default.createElement(E,{color:r}),o.default.createElement(S,{speed:i},o.default.createElement(b,{color:r,size:u}),o.default.createElement(w,{color:r,size:u}),o.default.createElement(_,{color:r,size:u})))};t.default=k},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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=f(["\n height: ",";\n width: ",";\n border-radius:",";\n background: ",";\n animation: "," ","s linear infinite;\n"]);return c=function(){return e},e}function l(){var e=f(["\n\t0% {\n\t\t-webkit-transform: scale(0.1);\n\t\topacity: 1;\n\t}\n\t50% {\n\t\t-webkit-transform: scale(1);\n\t\topacity: 0.5;\n\t}\n\t100% {\n\t\t-webkit-transform: scale(1.5);\n\t\topacity: 0.1;\n\t}\n"]);return l=function(){return e},e}function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=(0,a.keyframes)(l()),d=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.borderRadiusContainerSize[e.size]||s.borderRadiusContainerSize.default}),(function(e){return e.color||"#00adb5"}),h,(function(e){return e.speed||2})),p=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.speed,i=e.color,a=e.size,u=void 0===a?"default":a;return o.default.createElement(d,{style:n,speed:r,color:i,size:u})};t.default=p},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=d(["\n width: ",";\n height: 4px;\n position: absolute;\n bottom: 0;\n left: 0;\n background-color: ",";\n"]);return c=function(){return e},e}function l(){var e=d(["\n width: ",";\n height: ",";\n border-radius: 50%;\n background-color: ",";\n animation: "," ","s ease-out infinite alternate;\n"]);return l=function(){return e},e}function f(){var e=d(["\n width: ",";\n height: ",";\n position: relative;\n /* overflow: hidden; */\n display: flex;\n justify-content: center;\n align-items: flex-end;\n"]);return f=function(){return e},e}function h(){var e=d(["\n 0% {\n transform: translateY(0) scaleX(1.2) scaleY(0.8);\n }\n 25% {\n transform: translateY(-10px) scaleX(1) scaleY(1);\n }\n 100% {\n background-color: #f9c094;\n transform: translateY(-40px);\n }\n"]);return h=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p=(0,a.keyframes)(h()),v=a.default.div(f(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),m=a.default.div(l(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),p,(function(e){return e.speed||.5})),g=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"})),y=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(v,{style:n,size:u},o.default.createElement(m,{color:r,speed:i,size:u}),o.default.createElement(g,{color:r,size:u}))};t.default=y},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=d(["\n height: 2px;\n background: linear-gradient(-45deg, ",", rgba(0, 0, 255, 0));\n position: absolute;\n border-radius: 50%;\n animation: "," ","s ease-in-out infinite, "," ","s ease-in-out infinite;\n"]);return c=function(){return e},e}function l(){var e=d(["\n width: ","px;\n height: ","px;\n position: relative;\n transform: rotateZ(45deg);\n > div:nth-of-type(1) {\n top: 30%;\n left: 25%;\n animation-delay: 0s;\n }\n > div:nth-of-type(2) {\n top: 10%;\n left: 0%;\n animation-delay: 0.8s;\n }\n > div:nth-of-type(3) {\n top: 15%;\n left: 10%;\n animation-delay: 0.5s;\n }\n > div:nth-of-type(4) {\n top: 25%;\n left: 30%;\n animation-delay: 1.6s;\n }\n > div:nth-of-type(5) {\n top: 40%;\n left: 4%;\n animation-delay: 3.2s;\n }\n > div:nth-of-type(6) {\n top: 55%;\n left: 18%;\n animation-delay: 1.2s;\n }\n > div:nth-of-type(7) {\n top: 66%;\n left: 3%;\n animation-delay: 0.4s;\n }\n > div:nth-of-type(8) {\n top: 77%;\n left: 24%;\n animation-delay: 2s;\n }\n > div:nth-of-type(9) {\n top: 83%;\n left: 30%;\n animation-delay: 1s;\n }\n"]);return l=function(){return e},e}function f(){var e=d(["\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(60px);\n }\n"]);return f=function(){return e},e}function h(){var e=d(["\n 0% {\n width: 0;\n }\n 50% {\n width: 40px;\n }\n 100% {\n width: 0;\n }\n"]);return h=function(){return e},e}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var p=(0,a.keyframes)(h()),v=(0,a.keyframes)(f()),m=a.default.div(l(),(function(e){return"small"===e.size?68:"large"===e.size?88:80}),(function(e){return"small"===e.size?68:"large"===e.size?88:80})),g=a.default.div(c(),(function(e){return e.color||"#00adb5"}),p,(function(e){return e.speed||3}),v,(function(e){return e.speed||3})),y=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(m,{style:n,size:u},Array.from(Array(9)).map((function(e,t){return o.default.createElement(g,{color:r,speed:i,key:t})})))};t.default=y},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n right: 0;\n bottom: 0;\n"]);return c=function(){return e},e}function l(){var e=m(["\n left: 0;\n bottom: 0;\n"]);return l=function(){return e},e}function f(){var e=m(["\n right: 0;\n top: 0;\n"]);return f=function(){return e},e}function h(){var e=m(["\n left: 0;\n top: 0;\n"]);return h=function(){return e},e}function d(){var e=m(["\n width: ",";\n height: ",";\n position: relative;\n overflow: hidden;\n animation: "," ","s linear infinite;\n > div {\n width: ",";\n height: ",";\n border-radius: 50%;\n position: absolute;\n background-color: ",";\n animation: "," ","s linear infinite alternate;\n }\n > div:nth-of-type(1) {\n animation-delay: 0s;\n }\n > div:nth-of-type(2) {\n animation-delay: ","s;\n }\n > div:nth-of-type(3) {\n animation-delay: ","s;\n }\n > div:nth-of-type(4) {\n animation-delay: ","s;\n }\n"]);return d=function(){return e},e}function p(){var e=m(["\n from {\n opacity: 1;\n }\n to {\n opacity: 0.3;\n }\n"]);return p=function(){return e},e}function v(){var e=m(["\n 0% {\n transform: rotate(0);\n }\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=(0,a.keyframes)(p()),b=a.default.div(d(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),g,(function(e){return e.speed||2.4}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),y,(function(e){return e.speed||2.4}),(function(e){return e.speed/3||.8}),(function(e){return e.speed/3*2||1.6}),(function(e){return e.speed/3*3||2.4})),w=a.default.div(h()),_=a.default.div(f()),E=a.default.div(l()),S=a.default.div(c()),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(b,{style:n,speed:i,color:r,size:u},o.default.createElement(w,{color:r,speed:i,size:u}),o.default.createElement(_,{color:r,speed:i,size:u}),o.default.createElement(E,{color:r,speed:i,size:u}),o.default.createElement(S,{color:r,speed:i,size:u}))};t.default=k},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=p(["\n width: ",";\n height: ",";\n border-radius: 100%;\n position: relative;\n background-color: ",";\n animation: "," ","s -","s infinite;\n"]);return c=function(){return e},e}function l(){var e=p(["\n width: ",";\n height: ",";\n border-radius: 100%;\n position: relative;\n z-index: 1;\n background-color: ",";\n animation: "," ","s 0s infinite;\n"]);return l=function(){return e},e}function f(){var e=p(["\n width: ",";\n height: ",";\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n"]);return f=function(){return e},e}function h(){var e=p(["\n width: ",";\n height: ",";\n position: relative;\n /* overflow: hidden; */\n"]);return h=function(){return e},e}function d(){var e=p(["\n 0% {\n transform: translateY(-8px);\n }\n\n 50% {\n transform: translateY(12px);\n opacity: 0.3;\n }\n 100% {\n transform: translateY(-8px);\n }\n"]);return d=function(){return e},e}function p(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var v=(0,a.keyframes)(d()),m=a.default.div(h(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),g=a.default.div(f(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),y=a.default.div(l(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),v,(function(e){return e.speed||2})),b=a.default.div(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.inColor||"#f9c094"}),v,(function(e){return e.speed||2}),(function(e){return e.speed/2||1})),w=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.inColor,a=e.speed,u=e.size,c=void 0===u?"default":u;return o.default.createElement(m,{style:n,size:c},o.default.createElement(g,null,o.default.createElement(y,{color:r,speed:a,size:c}),o.default.createElement(b,{inColor:i,speed:a,size:c})))};t.default=w},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n box-sizing: border-box;\n border-radius: 50%;\n position: absolute;\n border: calc(","px * 0.05) solid transparent;\n border-top-color: ",";\n border-left-color: ",";\n"]);return c=function(){return e},e}function l(){var e=h(["\n width: ","px;\n height: ","px;\n position: relative;\n /* overflow: hidden; */\n >
2 div:nth-child(1) {\n height: calc(","px - ","px * 0.2 * 0);\n width: calc(","px - ","px * 0.2 * 0);\n top: calc(","px * 0.1 * 0);\n left: calc(","px * 0.1 * 0);\n animation: "," ","s infinite;\n animation-delay: calc(","s * 0.1 * 4);\n z-index: 5;\n }\n > div:nth-child(2) {\n height: calc(","px - ","px * 0.2 * 1);\n width: calc(","px - ","px * 0.2 * 1);\n top: calc(","px * 0.1 * 1);\n left: calc(","px * 0.1 * 1);\n animation: "," ","s infinite;\n animation-delay: calc(","s * 0.1 * 3);\n z-index: 4;\n }\n > div:nth-child(3) {\n height: calc(","px - ","px * 0.2 * 2);\n width: calc(","px - ","px * 0.2 * 2);\n top: calc(","px * 0.1 * 2);\n left: calc(","px * 0.1 * 2);\n animation: "," ","s infinite;\n animation-delay: calc(","s * 0.1 * 2);\n z-index: 3;\n }\n > div:nth-child(4) {\n height: calc(","px - ","px * 0.2 * 3);\n width: calc(","px - ","px * 0.2 * 3);\n top: calc(","px * 0.1 * 3);\n left: calc(","px * 0.1 * 3);\n animation: "," ","s infinite;\n animation-delay: calc(","s * 0.1 * 1);\n z-index: 2;\n }\n > div:nth-child(5) {\n height: calc(","px - ","px * 0.2 * 4);\n width: calc(","px - ","px * 0.2 * 4);\n top: calc(","px * 0.1 * 4);\n left: calc(","px * 0.1 * 4);\n animation: "," ","s infinite;\n animation-delay: calc(","s * 0.1 * 0);\n z-index: 1;\n }\n"]);return l=function(){return e},e}function f(){var e=h(["\n 50% {\n transform: rotate(360deg) scale(0.7);\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l(),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),d,(function(e){return e.speed||2}),(function(e){return e.speed||2}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),d,(function(e){return e.speed||2}),(function(e){return e.speed||2}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),d,(function(e){return e.speed||2}),(function(e){return e.speed||2}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),d,(function(e){return e.speed||2}),(function(e){return e.speed||2}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),d,(function(e){return e.speed||2}),(function(e){return e.speed||2})),v=a.default.div(c(),(function(e){return"small"===e.size?40:"large"===e.size?60:50}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"})),m=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(p,{style:n,speed:i,size:u},Array.from(Array(5)).map((function(e,t){return o.default.createElement(v,{color:r,speed:i,size:u,key:t})})))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n width: ","px;\n height: ","px;\n border-radius: 100%;\n background-color: ",";\n position: absolute;\n left: ","px;\n top: ","px;\n"]);return c=function(){return e},e}function l(){var e=m(["\n width: ","px;\n height: ","px;\n border-radius: 100%;\n border: 1px solid;\n border-color: ",";\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: ","px;\n margin-top: ","px;\n box-sizing: border-box;\n animation: "," ","s linear infinite;\n"]);return l=function(){return e},e}function f(){var e=m(["\n width: ","px;\n height: ","px;\n border-radius: 100%;\n background-color: ",";\n position: absolute;\n left: ","px;\n top: ","px;\n"]);return f=function(){return e},e}function h(){var e=m(["\n width: ","px;\n height: ","px;\n border-radius: 100%;\n border: 1px solid;\n border-color: ",";\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: ","px;\n margin-top: ","px;\n box-sizing: border-box;\n animation: "," ","s linear infinite;\n"]);return h=function(){return e},e}function d(){var e=m(["\n width: ","px;;\n height: ","px;;\n border-radius: 100%;\n background-color: ",";\n position: absolute;\n left: 50%;\n top: 50%;\n margin-left: ","px;\n margin-top: ","px;\n"]);return d=function(){return e},e}function p(){var e=m(["\n width: ","px;\n height: ","px;\n position: relative;\n /* overflow: hidden; */\n"]);return p=function(){return e},e}function v(){var e=m(["\n 100% {\n transform: rotate(360deg);\n }\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=a.default.div(p(),(function(e){return"small"===e.size?44:"large"===e.size?56:50}),(function(e){return"small"===e.size?44:"large"===e.size?56:50})),b=a.default.div(d(),(function(e){return"small"===e.size?2:"large"===e.size?6:4}),(function(e){return"small"===e.size?2:"large"===e.size?6:4}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size?-1:"large"===e.size?-3:-2}),(function(e){return"small"===e.size?-1:"large"===e.size?-3:-2})),w=a.default.div(h(),(function(e){return"small"===e.size?24:"large"===e.size?36:30}),(function(e){return"small"===e.size?24:"large"===e.size?36:30}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size?-12:"large"===e.size?-18:-15}),(function(e){return"small"===e.size?-12:"large"===e.size?-18:-15}),g,(function(e){return e.speed||2})),_=a.default.div(f(),(function(e){return"small"===e.size?4:"large"===e.size?8:6}),(function(e){return"small"===e.size?4:"large"===e.size?8:6}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size||"large"===e.size?1:0}),(function(e){return"small"===e.size?1:"large"===e.size?3:2})),E=a.default.div(l(),(function(e){return"small"===e.size?54:"large"===e.size?66:60}),(function(e){return"small"===e.size?54:"large"===e.size?66:60}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size?-27:"large"===e.size?-33:-30}),(function(e){return"small"===e.size?-27:"large"===e.size?-33:-30}),g,(function(e){return 1.5*e.speed||3})),S=a.default.div(c(),(function(e){return"small"===e.size?6:"large"===e.size?10:8}),(function(e){return"small"===e.size?6:"large"===e.size?10:8}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size?6:"large"===e.size?8:7}),(function(e){return"small"===e.size?1:"large"===e.size?3:2})),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(y,{style:n,size:u},o.default.createElement(b,{color:r,size:u}),o.default.createElement(w,{color:r,speed:i,size:u},o.default.createElement(_,{color:r,size:u})),o.default.createElement(E,{color:r,speed:i,size:u},o.default.createElement(S,{color:r,size:u})))};t.default=k},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=w(["\n height: 1px;\n width: 18px;\n background-color: ",";\n position: absolute;\n left: 50%;\n margin-left: -9px;\n top: 50px;\n animation: "," ","s ease infinite;\n"]);return c=function(){return e},e}function l(){var e=w(["\n height: 1px;\n width: 18px;\n background-color: ",";\n position: absolute;\n left: 50%;\n margin-left: -9px;\n top: 30px;\n animation: "," ","s ease infinite;\n"]);return l=function(){return e},e}function f(){var e=w(["\n height: 1px;\n width: 18px;\n background-color: ",";\n position: absolute;\n left: 50%;\n margin-left: -9px;\n top: 10px;\n animation: "," ","s ease infinite;\n"]);return f=function(){return e},e}function h(){var e=w(["\n height: 0;\n\twidth: 1px;\n\tborder-bottom: ","px solid ",";\n\tborder-left: 1px solid transparent;\n\tborder-right: 1px solid transparent;\n position: absolute;\n right: 0;\n bottom: 0;\n animation: "," ","s ease infinite;\n"]);return h=function(){return e},e}function d(){var e=w(["\n height: 0;\n\twidth: 1px;\n\tborder-bottom: ","px solid ",";\n\tborder-left: 1px solid transparent;\n\tborder-right: 1px solid transparent;\n position: absolute;\n left: 0;\n bottom: 0;\n animation: "," ","s ease infinite;\n"]);return d=function(){return e},e}function p(){var e=w(["\n width: ","px;\n height: ","px;\n position: relative;\n overflow: hidden;\n"]);return p=function(){return e},e}function v(){var e=w(["\n 0%, \n 30% {\n transform: translateY(68px);\n }\n 40%,\n 80% {\n transform: translateY(0);\n }\n 90%,\n 100% {\n transform: translateY(-68px);\n }\n"]);return v=function(){return e},e}function m(){var e=w(["\n 0%, \n 20% {\n transform: translateY(68px);\n }\n 30%,\n 70% {\n transform: translateY(0);\n }\n 80%,\n 100% {\n transform: translateY(-68px);\n }\n"]);return m=function(){return e},e}function g(){var e=w(["\n 0%, \n 10% {\n transform: translateY(68px);\n }\n 20%,\n 60% {\n transform: translateY(0);\n }\n 70%,\n 100% {\n transform: translateY(-68px);\n }\n"]);return g=function(){return e},e}function y(){var e=w(["\n 0%, \n 40% {\n transform: translateY(68px);\n }\n 50%,\n 90% {\n transform: translateY(0);\n }\n 100% {\n transform: translateY(-68px);\n }\n"]);return y=function(){return e},e}function b(){var e=w(["\n 0% {\n transform: translateY(68px);\n }\n 10%,\n 50% {\n transform: translateY(0);\n }\n 60%,\n 100% {\n transform: translateY(-68px);\n }\n"]);return b=function(){return e},e}function w(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _=(0,a.keyframes)(b()),E=(0,a.keyframes)(y()),S=(0,a.keyframes)(g()),k=(0,a.keyframes)(m()),T=(0,a.keyframes)(v()),C=a.default.div(p(),(function(e){return"small"===e.size?16:"large"===e.size?24:20}),(function(e){return"small"===e.size?60:"large"===e.size?68:64})),O=a.default.div(d(),(function(e){return"small"===e.size?60:"large"===e.size?68:64}),(function(e){return e.color||"#00adb5"}),_,(function(e){return e.speed||4})),x=a.default.div(h(),(function(e){return"small"===e.size?60:"large"===e.size?68:64}),(function(e){return e.color||"#00adb5"}),E,(function(e){return e.speed||4})),I=a.default.div(f(),(function(e){return e.color||"#00adb5"}),S,(function(e){return e.speed||4})),P=a.default.div(l(),(function(e){return e.color||"#00adb5"}),k,(function(e){return e.speed||4})),A=a.default.div(c(),(function(e){return e.color||"#00adb5"}),T,(function(e){return e.speed||4})),N=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(C,{style:n},o.default.createElement(O,{color:r,speed:i,size:u}),o.default.createElement(x,{color:r,speed:i,size:u}),o.default.createElement(I,{color:r,speed:i,size:u}),o.default.createElement(P,{color:r,speed:i,size:u}),o.default.createElement(A,{color:r,speed:i,size:u}))};t.default=N},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n width: ",";\n height: ",";\n background-color: ",";\n position: relative;\n transform: rotate(45deg);\n animation: "," ","s ease infinite;\n &::before {\n content: '';\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n position: absolute;\n left: -50%;\n bottom: 0;\n }\n &::after {\n content: '';\n width: 100%;\n height: 100%;\n border-radius: 50%;\n background-color: ",";\n position: absolute;\n top: -50%;\n right: 0;\n }\n"]);return c=function(){return e},e}function l(){var e=h(["\n width: ",";\n height: ",";\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n /* overflow: hidden; */\n"]);return l=function(){return e},e}function f(){var e=h(["\n 0% {\n transform: rotate(45deg) scale(1);\n }\n 20% {\n transform: rotate(45deg) scale(1.1);\n }\n 40% {\n transform: rotate(45deg) scale(1);\n }\n 60% {\n transform: rotate(45deg) scale(1.2);\n }\n 100% {\n transform: rotate(45deg) scale(1);\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),v=a.default.div(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.speed||2}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"})),m=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(p,{style:n,size:u},o.default.createElement(v,{color:r,speed:i,size:u}))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n width: ",";\n height: ",";\n background-color: ",";\n animation: "," ","s ease infinite;\n position: absolute;\n left: ",";\n bottom: 0;\n"]);return c=function(){return e},e}function l(){var e=m(["\n width: ",";\n height: ",";\n background-color: ",";\n animation: "," ","s ease infinite;\n position: absolute;\n left: ",";\n bottom: ",";\n transform-origin: left bottom;\n"]);return l=function(){return e},e}function f(){var e=m(["\n width: ",";\n height: ",";\n background-color: ",";\n animation: "," ","s ease infinite;\n position: absolute;\n left: 0;\n bottom: 0;\n transform-origin: right top;\n"]);return f=function(){return e},e}function h(){var e=m(["\n width: ",";\n height: ",";\n position: relative;\n /* overflow: hidden; */\n"]);return h=function(){return e},e}function d(){var e=m(["\n 0%,\n 51% {\n transform: translateX(0);\n }\n 70% {\n transform: translateX(-100%);\n }\n 100% {\n transform: translateX(-100%);\n }\n"]);return d=function(){return e},e}function p(){var e=m(["\n 0%,\n 50% {\n transform: rotate(0deg) translateX(0);\n opacity: 0;\n }\n 51% {\n transform: rotate(0deg) translateX(0);\n opacity: 1;\n }\n 70% {\n transform: rotate(0deg) translateX(-100%);\n opacity: 1;\n }\n 90% {\n transform: rotate(180deg) translateX(-100%);\n opacity: 1;\n }\n 100% {\n transform: rotate(180deg) translateX(-100%);\n opacity: 1;\n }\n"]);return p=function(){return e},e}function v(){var e=m(["\n 0%,\n 20% {\n transform: rotate(0deg);\n opacity: 1;\n }\n 50% {\n transform: rotate(180deg);\n opacity: 1;\n }\n 60%,\n 70% {\n transform: rotate(180deg);\n opacity: 0;\n }\n 100% {\n transform: rotate(180deg);\n opacity: 0;\n }\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=(0,a.keyframes)(p()),b=(0,a.keyframes)(d()),w=a.default.div(h(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default})),_=a.default.div(f(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),g,(function(e){return e.speed||3})),E=a.default.div(l(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),y,(function(e){return e.speed||3}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]})),S=a.default.div(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]}),(function(e){return e.color||"#00adb5"}),b,(function(e){return e.speed||3}),(function(e){return s.sizeItem[e.size]||s.sizeItem[e.size]})),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(w,{style:n,size:u},o.default.createElement(_,{size:u,color:r,speed:i}),o.default.createElement(E,{size:u,color:r,speed:i}),o.default.createElement(S,{size:u,color:r,speed:i}))};t.default=k},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=v(["\n width: 12.5%;\n height: 100%;\n background-color: ",";\n"]);return c=function(){return e},e}function l(){var e=v(["\n width: 100%;\n height: 100%;\n display: flex;\n flex-wrap: nowrap;\n position: absolute;\n z-index: 1;\n left: 0;\n top: 0;\n >div {\n animation: "," ","s ease-in-out infinite;\n }\n >div:nth-of-type(8) {\n animation-delay: 0s;\n }\n >div:nth-of-type(7) {\n animation-delay: ","s;\n }\n >div:nth-of-type(6) {\n animation-delay: ","s;\n }\n >div:nth-of-type(5) {\n animation-delay: ","s;\n }\n >div:nth-of-type(4) {\n animation-delay: ","s;\n }\n >div:nth-of-type(3) {\n animation-delay: ","s;\n }\n >div:nth-of-type(2) {\n animation-delay: ","s;\n }\n >div:nth-of-type(1) {\n animation-delay: ","s;\n }\n"]);return l=function(){return e},e}function f(){var e=v(["\n width: 100%;\n height: 100%;\n background-color: ",";\n position: absolute;\n z-index: 2;\n left: 0;\n top: 0;\n animation: "," ","s linear infinite;\n"]);return f=function(){return e},e}function h(){var e=v(["\n width: ","px;\n height: ","px;\n position: relative;\n overflow: hidden;\n"]);return h=function(){return e},e}function d(){var e=v(["\n 0% {\n transform: translateX(0);\n }\n 100% {\n transform: translateX(-100%)\n }\n"]);return d=function(){return e},e}function p(){var e=v(["\n 0% {\n opacity: 0.3;\n }\n 25% {\n opacity: 1;\n }\n 50% {\n opacity: 0.3;\n }\n 65% {\n opacity: 1;\n }\n 100% {\n opacity: 0.3;\n }\n"]);return p=function(){return e},e}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,a.keyframes)(p()),g=(0,a.keyframes)(d()),y=a.default.div(h(),(function(e){return"small"===e.size?56:"large"===e.size?64:60}),(function(e){return"small"===e.size?12:"large"===e.size?20:16})),b=(a.default.div(f(),(function(e){return e.color||"#00adb5"}),g,(function(e){return e.speed||4})),a.default.div(l(),m,(function(e){return e.speed||4}),(function(e){return e.speed/16*1||.25}),(function(e){return e.speed/16*2||.5}),(function(e){return e.speed/16*3||.75}),(function(e){return e.speed/16*4||1}),(function(e){return e.speed/16*5||1.25}),(function(e){return e.speed/16*6||1.5}),(function(e){return e.speed/16*7||1.75}))),w=a.default.div(c(),(function(e){return e.color||"#00adb5"})),_=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.speed,a=e.size,u=void 0===a?"default":a;return o.default.createElement(y,{style:n,speed:i,color:r,size:u},o.default.createElement(b,null,Array.from(Array(8)).map((function(e,t){return o.default.createElement(w,{speed:i,color:r,size:u,key:t})}))))};t.default=_},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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n width: ",";\n height: ",";\n border-radius: 50%;\n background-color: ",";\n margin: 7px;\n display: flex;\n justify-content: center;\n align-items: center;\n &:before {\n content: '';\n width: ",";\n height: ",";\n border-radius: 50%;\n background-color: ",";\n opacity: 0.7;\n animation: "," 2s infinite cubic-bezier(0, 0, 0.49, 1.02);\n animation-delay: ","ms;\n transition: 0.5s all ease;\n transform: scale(1);\n }\n"]);return c=function(){return e},e}function l(){var e=h(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 120px;\n width: 120px;\n overflow: hidden;\n animation-delay: 1s;\n"]);return l=function(){return e},e}function f(){var e=h(["\n 0% {\n transform: scale(1);\n }\n 50%,\n 75% {\n transform: scale(2.5);\n }\n 78%, 100% {\n opacity: 0;\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l()),v=a.default.div(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.delay})),m=function(e){var t=e.speed,n=e.color,r=e.style,i=void 0===r?s.commonStyle:r,a=e.size,u=void 0===a?"default":a;return o.default.createElement(p,{style:i},o.default.createElement(v,{delay:"250",speed:t,color:n,size:u}),o.default.createElement(v,{delay:"500",speed:t,color:n,size:u}),o.default.createElement(v,{delay:"750",speed:t,color:n,size:u}),o.default.createElement(v,{delay:"1000",speed:t,color:n,size:u}))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n display: block;\n width: 100%;\n height: 100%;\n border-radius: 3px;\n background: ",";\n animation: "," ","s linear infinite;\n"]);return c=function(){return e},e}function l(){var e=h(["\n width: ","px;\n height: 8px;\n border-radius: 4px;\n margin: 0 auto;\n position: relative;\n background: #fff;\n overflow: hidden;\n"]);return l=function(){return e},e}function f(){var e=h(["\n 0%{\n transform: translate(-","px);\n }\n 50%{\n transform: translate(0);\n }\n 100%{\n transform: translate(","px);\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=a.default.div(l(),(function(e){return"small"===e.size?60:"large"===e.size?100:80})),p=a.default.span(c(),(function(e){return e.color||"#00adb5"}),(function(e){return t="small"===e.size?60:"large"===e.size?100:80,(0,a.keyframes)(f(),t,t);var t}),(function(e){return e.speed||2})),v=function(e){var t=e.speed,n=e.color,r=e.style,i=void 0===r?s.commonStyle:r,a=e.size,u=void 0===a?"default":a;return o.default.createElement(d,{style:i,color:n,size:u},o.default.createElement(p,{speed:t,style:i,color:n,size:u}))};t.default=v},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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n width: ",";\n height:",";\n margin-top: ","px;\n border-radius: 50%;\n background: ",";\n position: absolute;\n margin-left: -8px;\n animation: "," ","s ease-in infinite alternate;\n"]);return c=function(){return e},e}function l(){var e=h(["\n width: 100px;\n height: 4px;\n border-radius: 2px;\n margin: 0 auto;\n position: relative;\n background: ",";\n"]);return l=function(){return e},e}function f(){var e=h(["\n 0%{\n }\n 100%{\n margin-left: 92px;\n }\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l(),(function(e){return e.color||"#00adb5"})),v=a.default.div(c(),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return s.sizeItem[e.size]||s.sizeItem.default}),(function(e){return"small"===e.size?-3:(e.size,-5)}),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.speed||1})),m=function(e){var t=e.speed,n=e.color,r=e.style,i=void 0===r?s.commonStyle:r,a=e.size,u=void 0===a?"default":a;return o.default.createElement(p,{style:i,speed:t,color:n},o.default.createElement(v,{speed:t,color:n,size:u}))};t.default=m},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=f(["\n height: ",";\n width: ",";\n border: 1px "," solid;\n border-radius: 0px 0px 5px 5px;\n position: relative;\n &::after {\n content: '';\n width: 5px;\n height: 12px;\n position: absolute;\n border: 1px solid ",";\n border-left: none;\n border-radius: 0px "," "," 0px;\n top: 4px;\n left: ",";\n }\n &::before {\n content: '';\n width: 1px;\n height: 6px;\n position: absolute;\n background-color: ",";\n top: -10px;\n left: ","px;\n box-shadow: 5px 0px 0px 0px ",", 5px -5px 0px 0px ",", 10px 0px 0px 0px ",";\n animation: "," ","s linear infinite alternate;\n }\n"]);return c=function(){return e},e}function l(){var e=f(["\n 0%{\n height: 0px;\n },\n 100%{\n height: 6px;\n }\n"]);return l=function(){return e},e}function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=(0,a.keyframes)(l()),d=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return e.color||"#00adb5"}),(function(e){return"small"===e.size?6:"large"===e.size?12:8}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"}),h,(function(e){return e.speed||1})),p=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.size,a=void 0===i?"default":i,u=e.speed;return o.default.createElement(d,{style:n,color:r,size:a,speed:u})};t.default=p},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=f(["\n width: ",";\n height: 14px;\n border: 1px #fff solid;\n border-radius: 2px;\n position: relative;\n animation: ","\n ","s linear infinite;\n &::after {\n width: 2px;\n height: 7px;\n background-color: #fff;\n border-radius: 0px 1px 1px 0px;\n position: absolute;\n content: '';\n top: 2px;\n right: -4px;\n }\n"]);return c=function(){return e},e}function l(){var e=f(["\n 0%{box-shadow: inset 0px 0px 0px ",";}\n 100%{box-shadow: inset "," 0px 0px ","}\n"]);return l=function(){return e},e}function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var h=a.default.div(c(),(function(e){return s.sizeContainer[e.size]||s.sizeContainer.default}),(function(e){return t=e.color||"#00adb5",n=s.sizeContainer[e.size]||s.sizeContainer.default,(0,a.keyframes)(l(),t,n,t);var t,n}),(function(e){return e.speed||4})),d=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,i=e.size,a=void 0===i?"default":i,u=e.speed;return o.default.createElement(h,{style:n,color:r,size:a,speed:u})};t.default=d},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=h(["\n position: absolute;\n top: 45px;\n left: 25px;\n width: 0px;\n height: 0px;\n border-right: 12px solid transparent;\n border-top: 12px solid "," ;\n border-left: 12px solid "," ;\n border-bottom: 12px solid "," ;\n border-top-left-radius: 12px;\n border-top-right-radius: 12px;\n border-bottom-left-radius: 12px;\n border-bottom-right-radius: 12px;\n"]);return c=function(){return e},e}function l(){var e=h(["\n position: absolute;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n margin: 75px;\n display: inline-block;\n vertical-align: middle;\n border: 8px dotted "," ;\n transition: all 1s ease;\n animation: "," ","s linear infinite;\n border-bottom-width: 1px;\n border-bottom-color: "," ;\n border-left-width: 2px;\n border-left-color: "," ;\n border-top-width: 3px;\n border-right-width: 4px;\n border-top-color: "," ;\n"]);return l=function(){return e},e}function f(){var e=h(["\n 0% {\n transform: rotate(0deg);\n}\n 100% {\n transform: rotate(-360deg);\n}\n"]);return f=function(){return e},e}function h(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var d=(0,a.keyframes)(f()),p=a.default.div(l(),(function(e){return e.color||"#00adb5"}),d,(function(e){return e.speed||1}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"})),v=a.default.div(c(),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"})),m=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.speed,i=e.color;return o.default.createElement(p,{style:n,speed:r,color:i},o.default.createElement(v,{color:i}))};t.default=m},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)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=m(["\n left: 0;\n top: 30px;\n"]);return c=function(){return e},e}function l(){var e=m(["\n top: 60px;\n left: 30px;\n"]);return l=function(){return e},e}function f(){var e=m(["\n left: 60px;\n top: 30px;\n"]);return f=function(){return e},e}function h(){var e=m(["\n top: 0;\n left: 30px;\n"]);return h=function(){return e},e}function d(){var e=m(["\n position: absolute;\n animation: "," ","s ease alternate infinite;\n transform: scale(0.2);\n &::before {\n position: absolute;\n content: '';\n left: 50px;\n top: 0;\n width: 50px;\n height: 80px;\n background: "," ;\n border-radius: 50px 50px 0 0;\n transform: rotate(-45deg);\n transform-origin: 0 100%;\n }\n &::after {\n position: absolute;\n content: '';\n left: 50px;\n top: 0;\n width: 50px;\n height: 80px;\n background:"," ;\n border-radius: 50px 50px 0 0;\n left: 0;\n transform: rotate(45deg);\n transform-origin: 100% 100%;\n }\n"]);return d=function(){return e},e}function p(){var e=m(["\n position: relative;\n width: 60px;\n height: 60px;\n border-radius: 50%;\n margin: 75px;\n display: inline-block;\n vertical-align: middle;\n"]);return p=function(){return e},e}function v(){var e=m(["\n 0% {\n top: 19px;\n left: 19px;\n}\n 100% {\n}\n"]);return v=function(){return e},e}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var g=(0,a.keyframes)(v()),y=a.default.div(p()),b=a.default.div(d(),g,(function(e){return e.speed||1}),(function(e){return e.color||"#00adb5"}),(function(e){return e.color||"#00adb5"})),w=(0,a.default)(b)(h()),_=(0,a.default)(b)(f()),E=(0,a.default)(b)(l()),S=(0,a.default)(b)(c()),k=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.speed,i=e.color;return o.default.createElement(y,{style:n,speed:r,color:i},o.default.createElement(w,{color:i,speed:r}),o.default.createElement(_,{color:i,speed:r}),o.default.createElement(E,{color:i,speed:r}),o.default.createElement(S,{color:i,speed:r}))};t.default=k},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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,o=(i=n(0))&&i.__esModule?i:{default:i},a=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n(7)),s=n(11);function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(){var e=v(["\n animation-delay: -","s;\n top:auto;\n\tbottom:0;\n"]);return c=function(){return e},e}function l(){var e=v([""]);return l=function(){return e},e}function f(){var e=v(["\n\tposition:absolute;\n\ttop:0;\n\twidth:25px;\n\theight:25px;\n\tborder-radius:100%;\n\tbackground-color: ",";\n animation: "," ","s ease-in-out infinite;\n"]);return f=function(){return e},e}function h(){var e=v(["\n position: relative;\n width: 45px;\n height: 45px;\n margin: 0 auto;\n animation: "," 2s linear infinite;\n"]);return h=function(){return e},e}function d(){var e=v(["\n\t0%,100% {\n\ttransform:scale(0)\n}\n50% {\n\ttransform:scale(1)\n}\n"]);return d=function(){return e},e}function p(){var e=v(["\n\t100% {\n\ttransform:rotate(360deg)\n}\n"]);return p=function(){return e},e}function v(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var m=(0,a.keyframes)(p()),g=(0,a.keyframes)(d()),y=a.default.div(h(),m),b=a.default.div(f(),(function(e){return e.color||"#00adb5"}),g,(function(e){return e.speed||2})),w=(0,a.default)(b)(l()),_=(0,a.default)(b)(c(),(function(e){return e.speed/2||1})),E=function(e){var t=e.style,n=void 0===t?s.commonStyle:t,r=e.color,
2i=e.speed;e.size;return o.default.createElement(y,{style:n},o.default.createElement(w,{color:r,speed:i}),o.default.createElement(_,{color:r,speed:i}))};t.default=E},function(e,t,n){"use strict";var r=n(150);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(19),a=n.n(o);function s(e){var t=!1;return function(){t||(console.warn(e),t=!0)}}s("\n>> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to <FlipMove>. Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg. <div>), or a non-functional component.\n"),s("\n>> Error, via react-flip-move <<\n\nYou provided a primitive (text or number) node as a child to <FlipMove>. Flip Move needs containers with unique keys to move children around.\n\nPlease wrap your value in a native element (eg. <span>), or a component.\n");var u=s("\n>> Warning, via react-flip-move <<\n\nWhen using \"wrapperless\" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default \"static\" position.\n\nFlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.\n\nTo avoid seeing this warning, simply apply a non-static position to that parent node.\n"),c=s("\n>> Warning, via react-flip-move <<\n\nOne or more of Flip Move's child elements have the html attribute 'disabled' set to true.\n\nPlease note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.\n"),l={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},f={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},h=l,d=function(e,t){for(var n=0;n<t.length;n++)if(e(t[n],n,t))return t[n]},p=function(e){return(p=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)};var v=function(e){var t={};return function(n){return t[n]||(t[n]=e(n)),t[n]}}((function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()})),m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},w=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t};function _(e){var t,n;return n=t=function(t){function n(){return g(this,n),w(this,t.apply(this,arguments))}return b(n,t),n.prototype.checkChildren=function(e){},n.prototype.convertProps=function(e){var t={children:e.children,easing:e.easing,onStart:e.onStart,onFinish:e.onFinish,onStartAll:e.onStartAll,onFinishAll:e.onFinishAll,typeName:e.typeName,disableAllAnimations:e.disableAllAnimations,getPosition:e.getPosition,maintainContainerHeight:e.maintainContainerHeight,verticalAlignment:e.verticalAlignment,duration:this.convertTimingProp("duration"),delay:this.convertTimingProp("delay"),staggerDurationBy:this.convertTimingProp("staggerDurationBy"),staggerDelayBy:this.convertTimingProp("staggerDelayBy"),appearAnimation:this.convertAnimationProp(e.appearAnimation,h),enterAnimation:this.convertAnimationProp(e.enterAnimation,l),leaveAnimation:this.convertAnimationProp(e.leaveAnimation,f),delegated:{}};this.checkChildren(t.children);var n=Object.keys(t),r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n={};return Object.keys(e).forEach((function(r){-1===t.indexOf(r)&&(n[r]=e[r])})),n}(this.props,n);return r.style=y({position:"relative"},r.style),t.delegated=r,t},n.prototype.convertTimingProp=function(e){var t=this.props[e],r="number"===typeof t?t:parseInt(t,10);return isNaN(r)?n.defaultProps[e]:r},n.prototype.convertAnimationProp=function(e,t){switch("undefined"===typeof e?"undefined":m(e)){case"boolean":return t[e?"elevator":"none"];case"string":return-1===Object.keys(t).indexOf(e)?t.elevator:t[e];default:return e}},n.prototype.render=function(){return i.a.createElement(e,this.convertProps(this.props))},n}(r.Component),t.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:"elevator",leaveAnimation:"elevator",disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},n}function E(e){var t=e.domNode,n=e.styles;
2Object.keys(n).forEach((function(e){t.style.setProperty(v(e),n[e])}))}var S=function(e){var t=e.childDomNode,n={top:0,left:0,right:0,bottom:0,height:0,width:0},r=e.childBoundingBox||n,i=e.parentBoundingBox||n,o=(0,e.getPosition)(t),a=o.top-i.top,s=o.left-i.left;return[r.left-s,r.top-a]},k=function(e,t){var n=t.delay,r=t.duration,i=t.staggerDurationBy,o=t.staggerDelayBy,a=t.easing;n+=e*o,r+=e*i;return["transform","opacity"].map((function(e){return e+" "+r+"ms "+a+" "+n+"ms"})).join(", ")},T=function(){var e={transition:"transitionend","-o-transition":"oTransitionEnd","-moz-transition":"transitionend","-webkit-transition":"webkitTransitionEnd"};if("undefined"===typeof document)return"";var t=document.createElement("fakeelement"),n=d((function(e){return void 0!==t.style.getPropertyValue(e)}),Object.keys(e));return n?e[n]:""}(),C=!T;function O(e){return e.key||""}function x(e){return r.Children.toArray(e)}var I=_(function(e){function t(){var n,r;g(this,t);for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];return n=r=w(this,e.call.apply(e,[this].concat(o))),r.state={children:x(r.props?r.props.children:[]).map((function(e){return y({},e,{element:e,appearing:!0})}))},r.childrenData={},r.parentData={domNode:null,boundingBox:null},r.heightPlaceholderData={domNode:null},r.remainingAnimations=0,r.childrenToAnimate=[],r.findDOMContainer=function(){var e=a.a.findDOMNode(r),t=e&&e.parentNode;t&&t instanceof HTMLElement&&("static"===window.getComputedStyle(t).position&&(t.style.position="relative",u()),r.parentData.domNode=t)},r.runAnimation=function(){var e=r.state.children.filter(r.doesChildNeedToBeAnimated),t=e.map((function(e){return r.computeInitialStyles(e)}));e.forEach((function(e,n){r.remainingAnimations+=1,r.childrenToAnimate.push(O(e)),r.animateChild(e,n,t[n])})),"function"===typeof r.props.onStartAll&&r.callChildrenHook(r.props.onStartAll)},r.doesChildNeedToBeAnimated=function(e){if(!O(e))return!1;var t=r.getChildData(O(e)),n=t.domNode,i=t.boundingBox,o=r.parentData.boundingBox;if(!n)return!1;var a=r.props,s=a.appearAnimation,u=a.enterAnimation,c=a.leaveAnimation,l=a.getPosition,f=e.appearing&&s,h=e.entering&&u,d=e.leaving&&c;if(f||h||d)return!0;var p=S({childDomNode:n,childBoundingBox:i,parentBoundingBox:o,getPosition:l}),v=p[0],m=p[1];return 0!==v||0!==m},w(r,n)}return b(t,e),t.prototype.componentDidMount=function(){null===this.props.typeName&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.componentDidUpdate=function(e){null===this.props.typeName&&this.findDOMContainer(),!function(e,t){if(e===t)return!0;var n=!p(e)||!p(t),r=e.length!==t.length;return!n&&!r&&function(e,t){for(var n=0;n<t.length;n++)if(!e(t[n],n,t))return!1;return!0}((function(e,n){return e===t[n]}),e)}(x(this.props.children).map((function(e){return e.key})),x(e.children).map((function(e){return e.key})))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.calculateNextSetOfChildren=function(e){var t=this,n=e.map((function(e){var n=t.findChildByKey(e.key),r=!n||n.leaving;return y({},e,{element:e,entering:r})})),r=0;return this.state.children.forEach((function(i,o){if(!d((function(e){return e.key===O(i)}),e)&&t.props.leaveAnimation){var a=y({},i,{leaving:!0}),s=o+r;n.splice(s,0,a),r+=1}})),n},t.prototype.prepForAnimation=function(){var e=this,t=this.props,n=t.leaveAnimation,r=t.maintainContainerHeight,i=t.getPosition;n&&(this.state.children.filter((function(e){return e.leaving})).forEach((function(t){var n=e.getChildData(O(t));!e.isAnimationDisabled(e.props)&&n.domNode&&n.domNode.disabled&&c(),n.boundingBox&&function(e,t){var n=e.domNode,r=e.boundingBox;if(n&&r){var i=window.getComputedStyle(n),o=["margin-top","margin-left","margin-right"].reduce((function(e,t){var n,r=i.getPropertyValue(t);return y({},e,((n={})[t]=Number(r.replace("px","")),n))}),{});E({domNode:n,styles:{position:"absolute",top:("bottom"===t?r.top-r.height:r.top)-o["margin-top"]+"px",left:r.left-o["margin-left"]+"px",right:r.right-o["margin-right"]+"px"}})}}(n,e.props.verticalAlignment)})),r&&this.heightPlaceholderData.domNode&&function(e){var t=e.domNode,n=e.parentData,r=e.getPosition,i=n.domNode,o=n.boundingBox;
2if(i&&o){E({domNode:t,styles:{height:"0"}});var a=o.height-r(i).height;E({domNode:t,styles:{height:a>0?a+"px":"0"}})}}({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:i}));this.state.children.forEach((function(t){var n=e.getChildData(O(t)).domNode;n&&(t.entering||t.leaving||E({domNode:n,styles:{transition:""}}))}))},t.prototype.UNSAFE_componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=x(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map((function(e){return y({},e,{element:e})})):this.calculateNextSetOfChildren(t)})},t.prototype.animateChild=function(e,t,n){var r=this,i=this.getChildData(O(e)).domNode;i&&(E({domNode:i,styles:n}),this.props.onStart&&this.props.onStart(e,i),requestAnimationFrame((function(){requestAnimationFrame((function(){var n={transition:k(t,r.props),transform:"",opacity:""};e.appearing&&r.props.appearAnimation?n=y({},n,r.props.appearAnimation.to):e.entering&&r.props.enterAnimation?n=y({},n,r.props.enterAnimation.to):e.leaving&&r.props.leaveAnimation&&(n=y({},n,r.props.leaveAnimation.to)),E({domNode:i,styles:n})}))})),this.bindTransitionEndHandler(e))},t.prototype.bindTransitionEndHandler=function(e){var t=this,n=this.getChildData(O(e)).domNode;if(n){n.addEventListener(T,(function r(i){i.target===n&&(n.style.transition="",t.triggerFinishHooks(e,n),n.removeEventListener(T,r),e.leaving&&t.removeChildData(O(e)))}))}},t.prototype.triggerFinishHooks=function(e,t){var n=this;if(this.props.onFinish&&this.props.onFinish(e,t),this.remainingAnimations-=1,0===this.remainingAnimations){var r=this.state.children.filter((function(e){return!e.leaving})).map((function(e){return y({},e,{element:e.element,appearing:!1,entering:!1})}));this.setState({children:r},(function(){"function"===typeof n.props.onFinishAll&&n.callChildrenHook(n.props.onFinishAll),n.childrenToAnimate=[]})),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},t.prototype.callChildrenHook=function(e){var t=this,n=[],r=[];this.childrenToAnimate.forEach((function(e){var i=t.findChildByKey(e);i&&(n.push(i),t.hasChildData(e)&&r.push(t.getChildData(e).domNode))})),e(n,r)},t.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var n=[];this.state.children.forEach((function(r){var i=O(r);if(i)if(e.hasChildData(i)){var o=e.getChildData(i);o.domNode&&r?n.push(function(e){var t=e.childDomNode,n=e.parentDomNode,r=e.getPosition,i=r(n),o=r(t),a=o.top,s=o.left,u=o.right,c=o.bottom,l=o.width,f=o.height;return{top:a-i.top,left:s-i.left,right:i.right-u,bottom:i.bottom-c,width:l,height:f}}({childDomNode:o.domNode,parentDomNode:t,getPosition:e.props.getPosition})):n.push(null)}else n.push(null);else n.push(null)})),this.state.children.forEach((function(t,r){var i=O(t),o=n[r];i&&e.setChildData(i,{boundingBox:o})}))}},t.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?y({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(O(e)),n=t.domNode,r=t.boundingBox,i=this.parentData.boundingBox;if(!n)return{};var o=S({childDomNode:n,childBoundingBox:r,parentBoundingBox:i,getPosition:this.props.getPosition});return{transform:"translate("+o[0]+"px, "+o[1]+"px)"}},t.prototype.isAnimationDisabled=function(e){return C||e.disableAllAnimations||0===e.duration&&0===e.delay&&0===e.staggerDurationBy&&0===e.staggerDelayBy},t.prototype.findChildByKey=function(e){return d((function(t){return O(t)===e}),this.state.children)},t.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},t.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},t.prototype.setChildData=function(e,t){this.childrenData[e]=y({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState((function(t){return y({},t,{children:t.children.filter((function(t){return t.element.key!==e}))})}))},t.prototype.createHeightPlaceholder=function(){var e=this,t=this.props.typeName,n="ul"===t||"ol"===t?"li":"div";return Object(r.createElement)(n,{key:"height-placeholder",ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:"hidden",height:0}})},t.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map((function(t){return Object(r.cloneElement)(t.element,{ref:function(n){if(n){var r=function(e){if("undefined"===typeof HTMLElement)return null;if(e instanceof HTMLElement)return e;var t=Object(o.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t}(n);e.setChildData(O(t),{domNode:r})}}})}))},t.prototype.render=function(){var e=this,t=this.props,n=t.typeName,i=t.delegated,o=t.leaveAnimation,a=t.maintainContainerHeight,s=this.childrenWithRefs();if(o&&a&&s.push(this.createHeightPlaceholder()),!n)return s;var u=y({},i,{children:s,ref:function(t){e.parentData.domNode=t}});return Object(r.createElement)(n,u)},t}(r.Component));t.default=I},function(e,t,n){e.exports=n.p+"static/media/UploadIcon.1cedb6e9.svg"}
2,function(e,t,n){(function(e){(function(){var t,r=n(17).default,i="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var o=function(t){t=["object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof e&&e,t];for(var n=0;n<t.length;++n){var r=t[n];if(r&&r.Math==Math)return r}return globalThis}(this);function a(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function s(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:a(e)}}!function(e,t){if(t){var n=o;e=e.split(".");for(var r=0;r<e.length-1;r++){var a=e[r];a in n||(n[a]={}),n=n[a]}(t=t(r=n[e=e[e.length-1]]))!=r&&null!=t&&i(n,e,{configurable:!0,writable:!0,value:t})}}("Promise",(function(e){function t(e){this.b=0,this.c=void 0,this.a=[];var t=this.f();try{e(t.resolve,t.reject)}catch(n){t.reject(n)}}function n(){this.a=null}function r(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.b=function(e){if(null==this.a){this.a=[];var t=this;this.c((function(){t.g()}))}this.a.push(e)};var i=o.setTimeout;n.prototype.c=function(e){i(e,0)},n.prototype.g=function(){for(;this.a&&this.a.length;){var e=this.a;this.a=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(r){this.f(r)}}}this.a=null},n.prototype.f=function(e){this.c((function(){throw e}))},t.prototype.f=function(){function e(e){return function(r){n||(n=!0,e.call(t,r))}}var t=this,n=!1;return{resolve:e(this.v),reject:e(this.g)}},t.prototype.v=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.o(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.m(e):this.h(e)}},t.prototype.m=function(e){var t=void 0;try{t=e.then}catch(n){return void this.g(n)}"function"==typeof t?this.u(t,e):this.h(e)},t.prototype.g=function(e){this.i(2,e)},t.prototype.h=function(e){this.i(1,e)},t.prototype.i=function(e,t){if(0!=this.b)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.b);this.b=e,this.c=t,this.l()},t.prototype.l=function(){if(null!=this.a){for(var e=0;e<this.a.length;++e)a.b(this.a[e]);this.a=null}};var a=new n;return t.prototype.o=function(e){var t=this.f();e.Pa(t.resolve,t.reject)},t.prototype.u=function(e,t){var n=this.f();try{e.call(t,n.resolve,n.reject)}catch(r){n.reject(r)}},t.prototype.then=function(e,n){function r(e,t){return"function"==typeof e?function(t){try{i(e(t))}catch(n){o(n)}}:t}var i,o,a=new t((function(e,t){i=e,o=t}));return this.Pa(r(e,i),r(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Pa=function(e,t){function n(){switch(r.b){case 1:e(r.c);break;case 2:t(r.c);break;default:throw Error("Unexpected state: "+r.b)}}var r=this;null==this.a?a.b(n):this.a.push(n)},t.resolve=r,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var i=s(e),o=i.next();!o.done;o=i.next())r(o.value).Pa(t,n)}))},t.all=function(e){var n=s(e),i=n.next();return i.done?r([]):new t((function(e,t){function o(t){return function(n){a[t]=n,0==--s&&e(a)}}var a=[],s=0;do{a.push(void 0),s++,r(i.value).Pa(o(a.length-1),t),i=n.next()}while(!i.done)}))},t}));var u=u||{},c=this||self,l=/^[\w+/_-]+[=]{0,2}$/,f=null;function h(){}function d(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&"undefined"!=typeof e.splice&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||"undefined"!=typeof e.call&&"undefined"!=typeof e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&"undefined"==typeof e.call)return"object";return t}function p(e){var t=d(e);return"array"==t||"object"==t&&"number"==typeof e.length}function v(e){return"function"==d(e)}function m(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function g(e){return Object.prototype.hasOwnProperty.call(e,y)&&e[y]||(e[y]=++b)}var y="closure_uid_"+(1e9*Math.random()>>>0),b=0;function w(e,t,n){return e.call.apply(e.bind,arguments)}function _(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function E(e,t,n){return(E=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?w:_).apply(null,arguments)}
2function S(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var k=Date.now||function(){return+new Date};function T(e,t){function n(){}n.prototype=t.prototype,e.$a=t.prototype,e.prototype=new n,e.prototype.constructor=e}function C(e,t,n){this.code=I+e,this.message=t||P[e]||"",this.a=n||null}function O(e){var t=e&&e.code;return t?new C(t.substring(I.length),e.message,e.serverResponse):null}T(C,Error),C.prototype.w=function(){var e={code:this.code,message:this.message};return this.a&&(e.serverResponse=this.a),e},C.prototype.toJSON=function(){return this.w()};var x,I="auth/",P={"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must al
2ways have a verified email.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invali
2d-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."},A={kd:{Sa:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},rd:{Sa:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://securetoken.googleapis.com/v1/token",Va:"https://identitytoolkit.googleapis.com/v2/",id:"p"},td:{Sa:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Ya:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Va:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},ud:{Sa:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Ya:"https://test-securetoken.sandbox.googleapis.com/v1/token",Va:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function N(e){for(var t in A)if(A[t].id===e)return{firebaseEndpoint:(e=A[t]).Sa,secureTokenEndpoint:e.Ya,identityPlatformEndpoint:e.Va};return null}function j(e){if(!e)return!1;
2try{return!!e.$goog_Thenable}catch(t){return!1}}function R(e){if(Error.captureStackTrace)Error.captureStackTrace(this,R);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function D(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");R.call(this,n+e[r])}function L(e,t){throw new D("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function M(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function F(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function z(){this.b=this.a=null}x=N("__EID__")?"__EID__":void 0,T(R,Error),R.prototype.name="CustomError",T(D,R),D.prototype.name="AssertionError",M.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var U=new M((function(){return new B}),(function(e){e.reset()}));function V(){var e=yt,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function B(){this.next=this.b=this.a=null}z.prototype.add=function(e,t){var n=U.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},B.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},B.prototype.reset=function(){this.next=this.b=this.a=null};var q=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},W=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"===typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};var H=Array.prototype.filter?function(e,t){return Array.prototype.filter.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=[],i=0,o="string"===typeof e?e.split(""):e,a=0;a<n;a++)if(a in o){var s=o[a];t.call(void 0,s,a,e)&&(r[i++]=s)}return r},K=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),i="string"===typeof e?e.split(""):e,o=0;o<n;o++)o in i&&(r[o]=t.call(void 0,i[o],o,e));return r},G=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e))return!0;return!1};function $(e,t){return 0<=q(e,t)}function Q(e,t){var n;return(n=0<=(t=q(e,t)))&&Array.prototype.splice.call(e,t,1),n}function Y(e,t){!function(e,t){for(var n="string"===typeof e?e.split(""):e,r=e.length-1;0<=r;--r)r in n&&t.call(void 0,n[r],r,e)}(e,(function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0}))}function X(e){return Array.prototype.concat.apply([],arguments)}function J(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}var Z,ee=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},te=/&/g,ne=/</g,re=/>/g,ie=/"/g,oe=/'/g,ae=/\x00/g,se=/[\x00&<>"']/;function ue(e,t){return-1!=e.indexOf(t)}function ce(e,t){return e<t?-1:e>t?1:0}e:{var le=c.navigator;if(le){var fe=le.userAgent;if(fe){Z=fe;break e}}Z=""}function he(e){return ue(Z,e)}function de(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function pe(e){for(var t in e)return!1;return!0}function ve(e){var t,n={};for(t in e)n[t]=e[t];return n}var me="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ge(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<me.length;o++)n=me[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ye(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||c).Element&&r.Location){var i=r;break e}}catch(a){}i=null}if(i&&"undefined"!=typeof i[t]&&(!e||!(e instanceof i[t])&&(e instanceof i.Location||e instanceof i.Element))){if(m(e))try{var o=e.constructor.displayName||e.constructor.name||Object.prototype.toString.call(e)}catch(a){o="<object could not be stringified>"}else o=void 0===e?"undefined":null===e?"null":typeof e;L("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}function be(e,t){this.a=e===Ee&&t||"",this.b=_e}function we(e){return e instanceof be&&e.constructor===be&&e.b===_e?e.a:(L("expected object of type Const, got '"+e+"'"),"type_error:Const")}be.prototype.sa=!0,be.prototype.ra=function(){return this.a},be.prototype.toString=function(){return"Const{"+this.a+"}"};var _e={},Ee={},Se=new be(Ee,"");function ke(e,t){this.a=e===Pe&&t||"",this.b=Ie}function Te(e){return e instanceof ke&&e.constructor===ke&&e.b===Ie?e.a:(L("expected object of type TrustedResourceUrl, got '"+e+"' of type "+d(e)),"type_error:TrustedResourceUrl")}function Ce(e,t){var n=we(e);if(!xe.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return e=n.replace(Oe,(function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format str
2ing, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof be?we(e):encodeURIComponent(String(e))})),new ke(Pe,e)}ke.prototype.sa=!0,ke.prototype.ra=function(){return this.a.toString()},ke.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var Oe=/%{(\w+)}/g,xe=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ie={},Pe={};function Ae(e,t){this.a=e===Le&&t||"",this.b=De}function Ne(e){return e instanceof Ae&&e.constructor===Ae&&e.b===De?e.a:(L("expected object of type SafeUrl, got '"+e+"' of type "+d(e)),"type_error:SafeUrl")}Ae.prototype.sa=!0,Ae.prototype.ra=function(){return this.a.toString()},Ae.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var je=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Re(e){return e instanceof Ae?e:(e="object"==typeof e&&e.sa?e.ra():String(e),je.test(e)||(e="about:invalid#zClosurez"),new Ae(Le,e))}var De={},Le={};function Me(){this.a="",this.b=ze}function Fe(e){return e instanceof Me&&e.constructor===Me&&e.b===ze?e.a:(L("expected object of type SafeHtml, got '"+e+"' of type "+d(e)),"type_error:SafeHtml")}Me.prototype.sa=!0,Me.prototype.ra=function(){return this.a.toString()},Me.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var ze={};function Ue(e){var t=new Me;return t.a=e,t}Ue("<!DOCTYPE html>");var Ve=Ue("");function Be(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}function qe(e){return se.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(te,"&")),-1!=e.indexOf("<")&&(e=e.replace(ne,"<")),-1!=e.indexOf(">")&&(e=e.replace(re,">")),-1!=e.indexOf('"')&&(e=e.replace(ie,""")),-1!=e.indexOf("'")&&(e=e.replace(oe,"'")),-1!=e.indexOf("\0")&&(e=e.replace(ae,"�"))),e}function We(e){return We[" "](e),e}Ue("<br>"),We[" "]=h;var He,Ke=he("Opera"),Ge=he("Trident")||he("MSIE"),$e=he("Edge"),Qe=$e||Ge,Ye=he("Gecko")&&!(ue(Z.toLowerCase(),"webkit")&&!he("Edge"))&&!(he("Trident")||he("MSIE"))&&!he("Edge"),Xe=ue(Z.toLowerCase(),"webkit")&&!he("Edge");function Je(){var e=c.document;return e?e.documentMode:void 0}e:{var Ze="",et=function(){var e=Z;return Ye?/rv:([^\);]+)(\)|;)/.exec(e):$e?/Edge\/([\d\.]+)/.exec(e):Ge?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Xe?/WebKit\/(\S+)/.exec(e):Ke?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(et&&(Ze=et?et[1]:""),Ge){var tt=Je();if(null!=tt&&tt>parseFloat(Ze)){He=String(tt);break e}}He=Ze}var nt,rt={};function it(e){return function(e,t){var n=rt;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=ee(String(He)).split("."),r=ee(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=ce(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||ce(0==a[2].length,0==s[2].length)||ce(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}nt=c.document&&Ge?Je():void 0;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(sa){}var ot=!Ge||9<=Number(nt);function at(e){var t=document;return"string"===typeof e?t.getElementById(e):e}function st(e,t){de(t,(function(t,n){t&&"object"==typeof t&&t.sa&&(t=t.ra()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:lt.hasOwnProperty(n)?e.setAttribute(lt[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var ut,ct,lt={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ft(e,t,n){function r(n){n&&t.appendChild("string"===typeof n?e.createTextNode(n):n)}for(var i=2;i<n.length;i++){var o=n[i];!p(o)||m(o)&&0<o.nodeType?r(o):W(dt(o)?J(o):o,r)}}function ht(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function dt(e){if(e&&"number"==typeof e.length){if(m(e))return"function"==typeof e.item||"string"==typeof e.item;if(v(e))return"function"==typeof e.item}return!1}function pt(e){c.setTimeout((function(){throw e}
2),0)}function vt(){var e=c.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!he("Presto")&&(e=function(){var e=ht(document,"IFRAME");e.style.display="none",function(e){var t=new ke(Pe,we(Se));ye(e,"HTMLIFrameElement"),e.src=Te(t).toString()}(e),document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(Fe(Ve)),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=E((function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()}),this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),"undefined"!==typeof e&&!he("Trident")&&!he("MSIE")){var t=new e,n={},r=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).Fb;n.Fb=null,e()}},function(e){r.next={Fb:e},r=r.next,t.port2.postMessage(0)}}return function(e){c.setTimeout(e,0)}}function mt(e,t){ct||function(){if(c.Promise&&c.Promise.resolve){var e=c.Promise.resolve(void 0);ct=function(){e.then(bt)}}else ct=function(){var e=bt;!v(c.setImmediate)||c.Window&&c.Window.prototype&&!he("Edge")&&c.Window.prototype.setImmediate==c.setImmediate?(ut||(ut=vt()),ut(e)):c.setImmediate(e)}}(),gt||(ct(),gt=!0),yt.add(e,t)}var gt=!1,yt=new z;function bt(){for(var e;e=V();){try{e.a.call(e.b)}catch(t){pt(t)}F(U,e)}gt=!1}function wt(e,t){if(this.a=_t,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=h)try{var n=this;e.call(t,(function(e){jt(n,Et,e)}),(function(e){if(!(e instanceof Ut))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}jt(n,St,e)}))}catch(r){jt(this,St,r)}}var _t=0,Et=2,St=3;function kt(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}kt.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var Tt=new M((function(){return new kt}),(function(e){e.reset()}));function Ct(e,t,n){var r=Tt.get();return r.g=e,r.b=t,r.f=n,r}function Ot(e){if(e instanceof wt)return e;var t=new wt(h);return jt(t,Et,e),t}function xt(e){return new wt((function(t,n){n(e)}))}function It(e,t,n){Rt(e,t,n,null)||mt(S(t,e))}function Pt(e){return new wt((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,o){n--,r[e]=i?{Ob:!0,value:o}:{Ob:!1,reason:o},0==n&&t(r)},o=0;o<e.length;o++)It(e[o],S(i,o,!0),S(i,o,!1));else t(r)}))}function At(e,t){e.b||e.a!=Et&&e.a!=St||Dt(e),e.f?e.f.next=t:e.b=t,e.f=t}function Nt(e,t,n,r){var i=Ct(null,null,null);return i.a=new wt((function(e,o){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(a){o(a)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof Ut?o(t):e(i)}catch(a){o(a)}}:o})),i.a.c=e,At(e,i),i.a}function jt(e,t,n){e.a==_t&&(e===n&&(t=St,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Rt(n,e.Zc,e.$c,e)||(e.i=n,e.a=t,e.c=null,Dt(e),t!=St||n instanceof Ut||function(e,t){e.g=!0,mt((function(){e.g&&zt.call(null,t)}))}(e,n)))}function Rt(e,t,n,r){if(e instanceof wt)return At(e,Ct(t||h,n||null,r)),!0;if(j(e))return e.then(t,n,r),!0;if(m(e))try{var i=e.then;if(v(i))return function(e,t,n,r,i){function o(e){a||(a=!0,r.call(i,e))}var a=!1;try{t.call(e,(function(e){a||(a=!0,n.call(i,e))}),o)}catch(s){o(s)}}(e,i,t,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Dt(e){e.h||(e.h=!0,mt(e.fc,e))}function Lt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Mt(e,t,n,r){if(n==St&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Ft(t,n,r);else try{t.c?t.g.call(t.f):Ft(t,n,r)}catch(i){zt.call(null,i)}F(Tt,t)}function Ft(e,t,n){t==Et?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}wt.prototype.then=function(e,t,n){return Nt(this,v(e)?e:null,v(t)?t:null,n)},wt.prototype.$goog_Thenable=!0,(t=wt.prototype).na=function(e,t){return(e=Ct(e,e,t)).c=!0,At(this,e),this},t.s=function(e,t){return Nt(this,null,e,t)},t.cancel=function(e){if(this.a==_t){var t=new Ut(e);mt((function(){!function e(t,n){if(t.a==_t)if(t.c){var r=t.c;if(r.b){for(var i=0,o=null,a=null,s=r.b;s&&(s.c||(i++,s.a==t&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);
2o&&(r.a==_t&&1==i?e(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):Lt(r),Mt(r,o,St,n)))}t.c=null}else jt(t,St,n)}(this,t)}),this)}},t.Zc=function(e){this.a=_t,jt(this,Et,e)},t.$c=function(e){this.a=_t,jt(this,St,e)},t.fc=function(){for(var e;e=Lt(this);)Mt(this,e,this.a,this.i);this.h=!1};var zt=pt;function Ut(e){R.call(this,e)}function Vt(){0!=Bt&&(qt[g(this)]=this),this.xa=this.xa,this.oa=this.oa}T(Ut,R),Ut.prototype.name="cancel";var Bt=0,qt={};function Wt(e){if(!e.xa&&(e.xa=!0,e.Da(),0!=Bt)){var t=g(e);if(0!=Bt&&e.oa&&0<e.oa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete qt[t]}}Vt.prototype.xa=!1,Vt.prototype.Da=function(){if(this.oa)for(;this.oa.length;)this.oa.shift()()};var Ht=Object.freeze||function(e){return e},Kt=!Ge||9<=Number(nt),Gt=Ge&&!it("9"),$t=function(){if(!c.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{c.addEventListener("test",h,t),c.removeEventListener("test",h,t)}catch(n){}return e}();function Qt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Yt(e,t){if(Qt.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Ye){e:{try{We(t.nodeName);var i=!0;break e}catch(o){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:Xt[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Qt.prototype.preventDefault=function(){this.defaultPrevented=!0},T(Yt,Qt);var Xt=Ht({2:"touch",3:"pen",4:"mouse"});Yt.prototype.preventDefault=function(){Yt.$a.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,Gt)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}},Yt.prototype.g=function(){return this.a};var Jt="closure_listenable_"+(1e6*Math.random()|0),Zt=0;function en(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Ua=i,this.key=++Zt,this.va=this.Oa=!1}function tn(e){e.va=!0,e.listener=null,e.proxy=null,e.src=null,e.Ua=null}function nn(e){this.src=e,this.a={},this.b=0}function rn(e,t){var n=t.type;n in e.a&&Q(e.a[n],t)&&(tn(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function on(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.va&&o.listener==t&&o.capture==!!n&&o.Ua==r)return i}return-1}nn.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=on(e,t,r,i);return-1<a?(t=e[a],n||(t.Oa=!1)):((t=new en(t,this.src,o,!!r,i)).Oa=n,e.push(t)),t};var an="closure_lm_"+(1e6*Math.random()|0),sn={};function un(e,t,n,r,i){if(r&&r.once)ln(e,t,n,r,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)un(e,t[o],n,r,i);else n=bn(n),e&&e[Jt]?_n(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!1,r,i)}function cn(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=m(i)?!!i.capture:!!i,s=gn(e);if(s||(e[an]=s=new nn(e)),!(n=s.add(t,n,r,a,o)).proxy){if(r=function(){var e=mn,t=Kt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)$t||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(dn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function ln(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)ln(e,t[o],n,r,i);else n=bn(n),e&&e[Jt]?En(e,t,n,m(r)?!!r.capture:!!r,i):cn(e,t,n,!0,r,i)}function fn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)fn(e,t[o],n,r,i);else r=m(r)?!!r.capture:!!r,n=bn(n),e&&e[Jt]?(e=e.v,(t=String(t).toString())in e.a&&(-1<(n=on(o=e.a[t],n,r,i))&&(tn(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=gn(e))&&(t=e.a[t.toString()],e=-1,t&&(e=on(t,n,r,i)),(n=-1<e?t[e]:null)&&hn(n))}function hn(e){if("number"!==typeof e&&e&&!e.va){var t=e.src;if(t&&t[Jt])rn(t.v,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(dn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=gn(t))?(rn(n,e),0==n.b&&(n.src=null,t[an]=null)):tn(e)}}}function dn(e){return e in sn?sn[e]:sn[e]="on"+e}function pn(e,t,n,r){var i=!0;if((e=gn(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.va&&(o=vn(o,r),i=i&&!1!==o)}return i}function vn(e,t){var n=e.listener,r=e.Ua||e.src;return e.Oa&&hn(e),n.call(r,t)}function mn(e,t){if(e.va)return!0;
2if(!Kt){if(!t)e:{t=["window","event"];for(var n=c,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}if(t=new Yt(r=t,this),n=!0,!(0>r.keyCode||void 0!=r.returnValue)){e:{var i=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(a){i=!0}(i||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],i=t.b;i;i=i.parentNode)r.push(i);for(e=e.type,i=r.length-1;0<=i;i--){t.b=r[i];var o=pn(r[i],e,!0,t);n=n&&o}for(i=0;i<r.length;i++)t.b=r[i],o=pn(r[i],e,!1,t),n=n&&o}return n}return vn(e,new Yt(t,this))}function gn(e){return(e=e[an])instanceof nn?e:null}var yn="__closure_events_fn_"+(1e9*Math.random()>>>0);function bn(e){return v(e)?e:(e[yn]||(e[yn]=function(t){return e.handleEvent(t)}),e[yn])}function wn(){Vt.call(this),this.v=new nn(this),this.$b=this,this.fb=null}function _n(e,t,n,r,i){e.v.add(String(t),n,!1,r,i)}function En(e,t,n,r,i){e.v.add(String(t),n,!0,r,i)}function Sn(e,t,n,r){if(!(t=e.v.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.va&&a.capture==n){var s=a.listener,u=a.Ua||a.src;a.Oa&&rn(e.v,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function kn(e,t,n){if(v(e))n&&(e=E(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=E(e.handleEvent,e)}return 2147483647<Number(t)?-1:c.setTimeout(e,t||0)}function Tn(e){var t=null;return new wt((function(n,r){-1==(t=kn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).s((function(e){throw c.clearTimeout(t),e}))}function Cn(e){if(e.V&&"function"==typeof e.V)return e.V();if("string"===typeof e)return e.split("");if(p(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function On(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.V||"function"!=typeof e.V){if(p(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function xn(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof xn)for(n=e.Y(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function In(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Pn(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Pn(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Pn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}T(wn,Vt),wn.prototype[Jt]=!0,wn.prototype.addEventListener=function(e,t,n,r){un(this,e,t,n,r)},wn.prototype.removeEventListener=function(e,t,n,r){fn(this,e,t,n,r)},wn.prototype.dispatchEvent=function(e){var t,n=this.fb;if(n)for(t=[];n;n=n.fb)t.push(n);n=this.$b;var r=e.type||e;if("string"===typeof e)e=new Qt(e,n);else if(e instanceof Qt)e.target=e.target||n;else{var i=e;ge(e=new Qt(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.b=t[o];i=Sn(a,r,!0,e)&&i}if(i=Sn(a=e.b=n,r,!0,e)&&i,i=Sn(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=Sn(a=e.b=t[o],r,!1,e)&&i;return i},wn.prototype.Da=function(){if(wn.$a.Da.call(this),this.v){var e,t=this.v;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)tn(n[r]);delete t.a[e],t.b--}}this.fb=null},(t=xn.prototype).V=function(){In(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},t.Y=function(){return In(this),this.a.concat()},t.clear=function(){this.b={},this.c=this.a.length=0},t.get=function(e,t){return Pn(this.b,e)?this.b[e]:t},t.set=function(e,t){Pn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},t.forEach=function(e,t){for(var n=this.Y(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var An=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/\\#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Nn(e,t){var n;this.a=this.l=this.f="",this.g=null,this.h=this.c="",this.i=!1,e instanceof Nn?(this.i=void 0!==t?t:e.i,jn(this,e.f),this.l=e.l,this.a=e.a,Rn(this,e.g),this.c=e.c,Dn(this,er(e.b)),this.h=e.h):e&&(n=String(e).match(An))?(this.i=!!t,jn(this,n[1]||"",!0),this.l=Un(n[2]||""),this.a=Un(n[3]||"",!0),Rn(this,n[4]),this.c=Un(n[5]||"",!0),Dn(this,n[6]||"",!0),this.h=Un(n[7]||"")):(this.i=!!t,this.b=new $n(null,this.i))}function jn(e,t,n){e.f=n?Un(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Rn(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.g=t}else e.g=null}function Dn(e,t,n){t instanceof $n?(e.b=t,function(e,t){t&&!e.f&&(Qn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Xn(this,t),Zn(this,n,e))}),e)),e.f=t}(e.b,e.i)):(n||(t=Vn(t,Kn)),e.b=new $n(t,e.i))}function Ln(e,t,n){e.b.set(t,n)}function Mn(e,t){return e.b.get(t)}function Fn(e){return e instanceof Nn?new Nn(e):new Nn(e,void 0)}function zn(e,t,n,r){var i=new Nn(null,void 0);return e&&jn(i,e),t&&(i.a=t),n&&Rn(i,n),r&&(i.c=r),i}function Un(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Vn(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Bn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Bn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Nn.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Vn(t,qn,!0),":");var n=this.a;return(n||"file"==t)&&(e.push("//"),(t=this.l)&&e.push(Vn(t,qn,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.g)&&e.push(":",String(n))),(n=this.c)&&(this.a&&"/"!=n.charAt(0)&&e.push("/"),e.push(Vn(n,"/"==n.charAt(0)?Hn:Wn,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.h)&&e.push("#",Vn(n,Gn)),e.join("")},Nn.prototype.resolve=function(e){var t=new Nn(this),n=!!e.f;n?jn(t,e.f):n=!!e.l,n?t.l=e.l:n=!!e.a,n?t.a=e.a:n=null!=e.g;var r=e.c;if(n)Rn(t,e.g);else if(n=!!e.c){if("/"!=r.charAt(0))if(this.a&&!this.c)r="/"+r;else{var i=t.c.lastIndexOf("/");-1!=i&&(r=t.c.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ue(i,"./")||ue(i,"/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?t.c=r:n=""!==e.b.toString(),n?Dn(t,er(e.b)):n=!!e.h,n&&(t.h=e.h),t};var qn=/[#\/\?@]/g,Wn=/[#\?:]/g,Hn=/[#\?]/g,Kn=/[#\?@]/g,Gn=/#/g;function $n(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qn(e){e.a||(e.a=new xn,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Yn(e){var t=On(e);
2if("undefined"==typeof t)throw Error("Keys are undefined");var n=new $n(null,void 0);e=Cn(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];Array.isArray(o)?Zn(n,i,o):n.add(i,o)}return n}function Xn(e,t){Qn(e),t=tr(e,t),Pn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Pn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&In(e)))}function Jn(e,t){return Qn(e),t=tr(e,t),Pn(e.a.b,t)}function Zn(e,t,n){Xn(e,t),0<n.length&&(e.c=null,e.a.set(tr(e,t),J(n)),e.b+=n.length)}function er(e){var t=new $n;return t.c=e.c,e.a&&(t.a=new xn(e.a),t.b=e.b),t}function tr(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function nr(e){var t=[];return function e(t,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(Array.isArray(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),e(t,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(a=n[i])&&(r.push(o),ar(i,r),r.push(":"),e(t,a,r),o=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":ar(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new rr,e,t),t.join("")}function rr(){}(t=$n.prototype).add=function(e,t){Qn(this),this.c=null,e=tr(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},t.clear=function(){this.a=this.c=null,this.b=0},t.forEach=function(e,t){Qn(this),this.a.forEach((function(n,r){W(n,(function(n){e.call(t,n,r,this)}),this)}),this)},t.Y=function(){Qn(this);for(var e=this.a.V(),t=this.a.Y(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},t.V=function(e){Qn(this);var t=[];if("string"===typeof e)Jn(this,e)&&(t=X(t,this.a.get(tr(this,e))));else{e=this.a.V();for(var n=0;n<e.length;n++)t=X(t,e[n])}return t},t.set=function(e,t){return Qn(this),this.c=null,Jn(this,e=tr(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},t.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},t.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.Y(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.V(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var ir={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},or=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function ar(e,t){t.push('"',e.replace(or,(function(e){var t=ir[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ir[e]=t),t})),'"')}function sr(){var e=Cr();return Ge&&!!nt&&11==nt||/Edge\/\d+/.test(e)}function ur(){return c.window&&c.window.location.href||self&&self.location&&self.location.href||""}function cr(e,t){t=t||c.window;var n="about:blank";e&&(n=Ne(Re(e))),t.location.href=n}function lr(e){return!!((e=(e||Cr()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function fr(e){e=e||c.window;try{e.close()}catch(t){}}function hr(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=Cr().toLowerCase(),r&&(t.target=r,ue(n,"crios/")&&(t.target="_blank")),Sr(Cr())==_r&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Ae?n:Re("undefined"!=typeof n.href?n.href:String(n)),n=e.target||n.target,i=[],e)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(e[a]?1:0))}var a=i.join(",");if((he("iPhone")&&!he("iPod")&&!he("iPad")||he("iPad")||he("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(ye(a=ht(document,"A"),"HTMLAnchorElement"),t instanceof Ae||t instanceof Ae||(t="object"==typeof t&&t.sa?t.ra():String(t),je.test(t)||(t="about:invalid#zClosurez"),t=new Ae(Le,t)),a.href=Ne(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=r.open("",n,a),e=Ne(t),a&&(Qe&&ue(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e=Ue('<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+qe(e)+'">'),r=a.document)&&(r.write(Fe(e)),r.close())):(a=r.open(Ne(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var dr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,pr=/^[^@]+@[^@]+$/;function vr(){var e=null;return new wt((function(t){"complete"==c.document.readyState?t():(e=function(){t()},ln(window,"load",e))})).s((function(t){throw fn(window,"load",e),t}))}function mr(e){return e=e||Cr(),!("file:"!==Ar()&&"ionic:"!==Ar()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function gr(){var e=c.window;try{return!(!e||e==e.top)}catch(t){return!1}}function yr(){return"undefined"!==typeof c.WorkerGlobalScope&&"function"===typeof c.importScripts}function br(){return r.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.INTERNAL.hasOwnProperty("node")?"Node":yr()?"Worker":"Browser"}function wr(){var e=br();return"ReactNative"===e||"Node"===e}var _r="Firefox",Er="Chrome";function Sr(e){var t=e.toLowerCase();return ue(t,"opera/")||ue(t,"opr/")||ue(t,"opios/")?"Opera":ue(t,"iemobile")?"IEMobile":ue(t,"msie")||ue(t,"trident/")?"IE":ue(t,"edge/")?"Edge":ue(t,"firefox/")?_r:ue(t,"silk/")?"Silk":ue(t,"blackberry")?"Blackberry":ue(t,"webos")?"Webos":!ue(t,"safari/")||ue(t,"chrome/")||ue(t,"crios/")||ue(t,"android")?!ue(t,"chrome/")&&!ue(t,"crios/")||ue(t,"edge/")?ue(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":Er:"Safari"}var kr={ld:"FirebaseCore-web",nd:"FirebaseUI-web"};function Tr(e,t){t=t||[];var n,r=[],i={};for(n in kr)i[kr[n]]=!0;for(n=0;n<t.length;n++)"undefined"!==typeof i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=br())?r=Sr(i=Cr()):"Worker"===r&&(r=Sr(i=Cr())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Cr(){return c.navigator&&c.navigator.userAgent||""}function Or(e,t){e=e.split("."),t=t||c;for(var n=0;n<e.length&&"object"==typeof t&&null!=t;n++)t=t[e[n]];return n!=e.length&&(t=void 0),t}function xr(){try{var e=c.localStorage,t=Lr();if(e)return e.setItem(t,"1"),e.removeItem(t),!sr()||!!c.indexedDB}catch(n){return yr()&&!!c.indexedDB}return!1}function Ir(){return(Pr()||"chrome-extension:"===Ar()||mr())&&!wr()&&xr()&&!yr()}function Pr(){return"http:"===Ar()||"https:"===Ar()}function Ar(){return c.location&&c.location.protocol||null}function Nr(e){return!lr(e=e||Cr())&&Sr(e)!=_r}function jr(e){return"undefined"===typeof e?null:nr(e)}function Rr(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function Dr(e){if(null!==e)return JSON.parse(e)}function Lr(e){return e||Math.floor(1e9*Math.random()).toString()}function Mr(e){return"Safari"!=Sr(e=e||Cr())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function Fr(){var e=c.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var n=0;n<e.CP.length;n++)e.CP[n]=null}function zr(e,t){if(e>
2t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Cr(),t=br(),this.b=lr(e)||"ReactNative"===t}function Ur(){var e=c.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function Vr(e){"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e)}function Br(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(n){}return null}function qr(){return!(!Or("fireauth.oauthhelper",c)&&!Or("fireauth.iframe",c))}zr.prototype.get=function(){var e=c.navigator;return!e||"boolean"!==typeof e.onLine||!Pr()&&"chrome-extension:"!==Ar()&&"undefined"===typeof e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Wr,Hr={};function Kr(e){Hr[e]||(Hr[e]=!0,Vr(e))}try{var Gr={};Object.defineProperty(Gr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Gr,"abcd",{configurable:!0,enumerable:!0,value:2}),Wr=2==Gr.abcd}catch(sa){Wr=!1}function $r(e,t,n){Wr?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Qr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&$r(e,n,t[n])}function Yr(e){var t={};return Qr(t,e),t}function Xr(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)$r(t,n,Xr(e[n]));return t}function Jr(e){var t=e&&(e[ri]?"phone":null);if(!(t&&e&&e[ni]))throw new C("internal-error","Internal assert: invalid MultiFactorInfo object");$r(this,"uid",e[ni]),$r(this,"displayName",e[ei]||null);var n=null;e[ti]&&(n=new Date(e[ti]).toUTCString()),$r(this,"enrollmentTime",n),$r(this,"factorId",t)}function Zr(e){try{var t=new ii(e)}catch(n){t=null}return t}Jr.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var ei="displayName",ti="enrolledAt",ni="mfaEnrollmentId",ri="phoneInfo";function ii(e){Jr.call(this,e),$r(this,"phoneNumber",e[ri])}function oi(e){var t={},n=e[ci],r=e[fi],i=e[hi];if(e=Zr(e[li]),!i||i!=si&&i!=ui&&!n||i==ui&&!r||i==ai&&!e)throw Error("Invalid checkActionCode response!");i==ui?(t[pi]=n||null,t[mi]=n||null,t[di]=r):(t[pi]=r||null,t[mi]=r||null,t[di]=n||null),t[vi]=e||null,$r(this,yi,i),$r(this,gi,Xr(t))}T(ii,Jr),ii.prototype.w=function(){var e=ii.$a.w.call(this);return e.phoneNumber=this.phoneNumber,e};var ai="REVERT_SECOND_FACTOR_ADDITION",si="EMAIL_SIGNIN",ui="VERIFY_AND_CHANGE_EMAIL",ci="email",li="mfaInfo",fi="newEmail",hi="requestType",di="email",pi="fromEmail",vi="multiFactorInfo",mi="previousEmail",gi="data",yi="operation";function bi(e){var t=Mn(e=Fn(e),wi)||null,n=Mn(e,_i)||null,r=Mn(e,ki)||null;if(r=r&&Ci[r]||null,!t||!n||!r)throw new C("argument-error",wi+", "+_i+"and "+ki+" are required in a valid action code URL.");Qr(this,{apiKey:t,operation:r,code:n,continueUrl:Mn(e,Ei)||null,languageCode:Mn(e,Si)||null,tenantId:Mn(e,Ti)||null})}var wi="apiKey",_i="oobCode",Ei="continueUrl",Si="languageCode",ki="mode",Ti="tenantId",Ci={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:ai,signIn:si,verifyAndChangeEmail:ui,verifyEmail:"VERIFY_EMAIL"};function Oi(e){try{return new bi(e)}catch(t){return null}}function xi(e){var t=e[ji];if("undefined"===typeof t)throw new C("missing-continue-uri");if("string"!==typeof t||"string"===typeof t&&!t.length)throw new C("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Ii];if(n&&"object"===typeof n){t=n[Li];var r=n[Ri];if(n=n[Di],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof r&&"boolean"!==typeof r)throw new C("argument-error",Ri+" property must be a boolean when specified.");if(this.g=!!r,"undefined"!==typeof n&&("string"!==typeof n||"string"===typeof n&&!n.length))throw new C("argument-error",Di+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new C("argument-error",Li+" property must be a non empty string when specified.");if("undefined"!==typeof r||"undefined"!==typeof n)throw new C("missing-android-pkg-name")}}else if("undefined"!==typeof n)throw new C("argument-error",Ii+" property must be a non null object when specified.");if(this.f=null,(t=e[Ni])&&"object"===typeof t){if("string"===typeof(t=t[Mi])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new C("argument-error",Mi+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new C("argument-error",Ni+" property must be a non null object when specified.");if("undefined"!==typeof(t=e[Ai])&&"boolean"!==typeof t)throw new C("argument-error",Ai+" property must be a boolean when specified.");if(this.c=!!t,"undefined"!==typeof(e=e[Pi])&&("string"!==typeof e||"string"===typeof e&&!e.length))throw new C("argument-error",Pi+" property must be a non empty string when specified.");this.i=e||null}var Ii="android",Pi="dynamicLinkDomain",Ai="handleCodeInApp",Ni="iOS",ji="url",Ri="installApp",Di="minimumVersion",Li="packageName",Mi="bundleId";function Fi(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t.dynamicLinkDomain=e.i,t)null===t[n]&&delete t[n];return t}var zi=null;function Ui(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=zi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!zi){zi={};for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],n=0;5>n;n++)for(var r=e.concat(t[n].split("")),i=0;i<r.length;i++){var o=r[i];void 0===zi[o]&&(zi[o]=i)}}}();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,(function(e){t+=String.fromCharCode(e)})),t}function Vi(e){var t=qi(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.g=e,this.c=t.exp,this.h=t.sub,k(),this.a=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.b=!!t.is_anonymous||"anonymous"==this.a}function Bi(e){try{return new Vi(e)}catch(t){return null}}function qi(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Ui(e))}catch(r){}return null}Vi.prototype.S=function(){return this.f},Vi.prototype.i=function(){return this.b},Vi.prototype.toString=function(){return this.g};var Wi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Hi=["client_id","response_type","scope","redirect_uri","state"],Ki={md:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Wa:Hi},od:{Ja:null,ua:500,ta:750,fa:"github.com",Wa:Hi},pd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Wa:Hi},vd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Wa:Wi},jd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Wa:[]}};function Gi(e){for(var t in Ki)if(Ki[t].fa==e)return Ki[t];return null}function $i(e){var t={};t["facebook.com"]=Zi,t["google.com"]=to,t["github.com"]=eo,t["twitter.com"]=no;var n=e&&e[Yi];try{if(n)return t[n]?new t[n](e):new Ji(e);if("undefined"!==typeof e[Qi])return new Xi(e)}catch(r){}return null}var Qi="idToken",Yi="providerId";function Xi(e){var t=e[Yi];if(!t&&e[Qi]){var n=Bi(e[Qi]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,"undefined"!==typeof e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),$r(this,"providerId",t),$r(this,"isNewUser",n)}function Ji(e){Xi.call(this,e),$r(this,"profile",Xr((e=Dr(e.rawUserInfo||"{}"))||{}))}function Zi(e){if(Ji.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function eo(e){if(Ji.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");$r(this,"username",this.profile&&this.profile.login||null)}function to(e){if(Ji.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function no(e){if(Ji.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");$r(this,"username",e.screenName||null)}function ro(e){var t=Fn(e),n=Mn(t,"link"),r=Mn(Fn(n),"link");return t=Mn(t,"deep_link_id"),Mn(Fn(t),"link")||t||r||n||e}function io(e,t){if(!e&&!t)throw new C("internal-error","Internal assert: no raw session string available");if(e&&t)throw new C("internal-error","Internal assert: unable to determine the session type");this.a=e||null,this.b=t||null,this.type=this.a?oo:ao}T(Ji,Xi),T(Zi,Ji),T(eo,Ji),T(to,Ji),T(no,Ji);var oo="enroll",ao="signin";function so(){}function uo(e,t){return e.then((function(e){if(e[Xa]){var n=Bi(e[Xa]);if(!n||t!=n.h)throw new C("user-mismatch");return e}throw new C("user-mismatch")})).s((function(e){throw e&&e.code&&e.code==I+"user-not-found"?new C("user-mismatch"):e}))}function co(e,t){if(!t)throw new C("internal-error","failed to construct a credential");this.a=t,$r(this,"providerId",e),$r(this,"signInMethod",e)}function lo(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function fo(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new co(e.providerId,e.pendingToken)}catch(t){}return null}
2function ho(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&$r(this,"idToken",t.idToken),t.accessToken&&$r(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&$r(this,"nonce",t.nonce),t.pendingToken&&(this.a=t.pendingToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new C("internal-error","failed to construct a credential");$r(this,"accessToken",t.oauthToken),$r(this,"secret",t.oauthTokenSecret)}$r(this,"providerId",e),$r(this,"signInMethod",n)}function po(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,e.nonce&&!e.a&&(t.nonce=e.nonce),t={postBody:Yn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function vo(e){if(e&&e.providerId&&e.signInMethod){var t={idToken:e.oauthIdToken,accessToken:e.oauthTokenSecret?null:e.oauthAccessToken,oauthTokenSecret:e.oauthTokenSecret,oauthToken:e.oauthTokenSecret&&e.oauthAccessToken,nonce:e.nonce,pendingToken:e.pendingToken};try{return new ho(e.providerId,t,e.signInMethod)}catch(n){}}return null}function mo(e,t){this.Pc=t||[],Qr(this,{providerId:e,isOAuthProvider:!0}),this.Hb={},this.ob=(Gi(e)||{}).Ja||null,this.nb=null}function go(e){if("string"!==typeof e||0!=e.indexOf("saml."))throw new C("argument-error",'SAML provider IDs must be prefixed with "saml."');mo.call(this,e,[])}function yo(e){mo.call(this,e,Hi),this.a=[]}function bo(){yo.call(this,"facebook.com")}function wo(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new bo).credential({accessToken:t})}function _o(){yo.call(this,"github.com")}function Eo(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return m(e)&&(t=e.accessToken),(new _o).credential({accessToken:t})}function So(){yo.call(this,"google.com"),this.Ca("profile")}function ko(e,t){var n=e;return m(e)&&(n=e.idToken,t=e.accessToken),(new So).credential({idToken:n,accessToken:t})}function To(){mo.call(this,"twitter.com",Wi)}function Co(e,t){var n=e;if(m(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new C("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new ho("twitter.com",n,"twitter.com")}function Oo(e,t,n){this.a=e,this.f=t,$r(this,"providerId","password"),$r(this,"signInMethod",n===Io.EMAIL_LINK_SIGN_IN_METHOD?Io.EMAIL_LINK_SIGN_IN_METHOD:Io.EMAIL_PASSWORD_SIGN_IN_METHOD)}function xo(e){return e&&e.email&&e.password?new Oo(e.email,e.password,e.signInMethod):null}function Io(){Qr(this,{providerId:"password",isOAuthProvider:!1})}function Po(e,t){if(!(t=Ao(t)))throw new C("argument-error","Invalid email link!");return new Oo(e,t.code,Io.EMAIL_LINK_SIGN_IN_METHOD)}function Ao(e){return(e=Oi(e=ro(e)))&&e.operation===si?e:null}function No(e){if(!(e.cb&&e.bb||e.La&&e.ea))throw new C("internal-error");this.a=e,$r(this,"providerId","phone"),this.fa="phone",$r(this,"signInMethod","phone")}function jo(e){if(e&&"phone"===e.providerId&&(e.verificationId&&e.verificationCode||e.temporaryProof&&e.phoneNumber)){var t={};return W(["verificationId","verificationCode","temporaryProof","phoneNumber"],(function(n){e[n]&&(t[n]=e[n])})),new No(t)}return null}function Ro(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.cb,code:e.a.bb}}function Do(e){try{this.a=e||r.auth()}catch(t){throw new C("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}Qr(this,{providerId:"phone",isOAuthProvider:!1})}function Lo(e,t){if(!e)throw new C("missing-verification-id");if(!t)throw new C("missing-verification-code");return new No({cb:e,bb:t})}function Mo(e){if(e.temporaryProof&&e.phoneNumber)return new No({La:e.temporaryProof,ea:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret,i=e&&e.nonce,o=e&&e.oauthIdToken,a=e&&e.pendingToken;try{switch(t){case"google.com":return ko(o,n);case"facebook.com":return wo(n);case"github.com":return Eo(n);case"twitter.com":return Co(n,r);default:return n||r||o||a?a?0==t.indexOf("saml.")?new co(t,a):new ho(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new yo(t).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function Fo(e){if(!e.isOAuthProvider)throw new C("invalid-oauth-provider")}function zo(e,t,n,r,i,o,a){if(this.c=e,this.b=t||null,this.g=n||null,this.f=r||null,this.i=o||null,this.h=a||null,this.a=i||null,!this.g&&!this.a)throw new C("invalid-auth-event");
2if(this.g&&this.a)throw new C("invalid-auth-event");if(this.g&&!this.f)throw new C("invalid-auth-event")}function Uo(e){return(e=e||{}).type?new zo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&O(e.error),e.postBody,e.tenantId):null}function Vo(){this.b=null,this.a=[]}io.prototype.Ha=function(){return this.a?Ot(this.a):Ot(this.b)},io.prototype.w=function(){return this.type==oo?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},so.prototype.ja=function(){},so.prototype.b=function(){},so.prototype.c=function(){},so.prototype.w=function(){},co.prototype.ja=function(e){return bs(e,lo(this))},co.prototype.b=function(e,t){var n=lo(this);return n.idToken=t,ws(e,n)},co.prototype.c=function(e,t){return uo(_s(e,lo(this)),t)},co.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},ho.prototype.ja=function(e){return bs(e,po(this))},ho.prototype.b=function(e,t){var n=po(this);return n.idToken=t,ws(e,n)},ho.prototype.c=function(e,t){return uo(_s(e,po(this)),t)},ho.prototype.w=function(){var e={providerId:this.providerId,sign
2InMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),this.nonce&&(e.nonce=this.nonce),this.a&&(e.pendingToken=this.a),e},mo.prototype.Ka=function(e){return this.Hb=ve(e),this},T(go,mo),T(yo,mo),yo.prototype.Ca=function(e){return $(this.a,e)||this.a.push(e),this},yo.prototype.Pb=function(){return J(this.a)},yo.prototype.credential=function(e,t){var n;if(!(n=m(e)?{idToken:e.idToken||null,accessToken:e.accessToken||null,nonce:e.rawNonce||null}:{idToken:e||null,accessToken:t||null}).idToken&&!n.accessToken)throw new C("argument-error","credential failed: must provide the ID token and/or the access token.");return new ho(this.providerId,n,this.providerId)},T(bo,yo),$r(bo,"PROVIDER_ID","facebook.com"),$r(bo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),T(_o,yo),$r(_o,"PROVIDER_ID","github.com"),$r(_o,"GITHUB_SIGN_IN_METHOD","github.com"),T(So,yo),$r(So,"PROVIDER_ID","google.com"),$r(So,"GOOGLE_SIGN_IN_METHOD","google.com"),T(To,mo),$r(To,"PROVIDER_ID","twitter.com"),$r(To,"TWITTER_SIGN_IN_METHOD","twitter.com"),Oo.prototype.ja=function(e){return this.signInMethod==Io.EMAIL_LINK_SIGN_IN_METHOD?nu(e,Is,{email:this.a,oobCode:this.f}):nu(e,Xs,{email:this.a,password:this.f})},Oo.prototype.b=function(e,t){return this.signInMethod==Io.EMAIL_LINK_SIGN_IN_METHOD?nu(e,Ps,{idToken:t,email:this.a,oobCode:this.f}):nu(e,qs,{idToken:t,email:this.a,password:this.f})},Oo.prototype.c=function(e,t){return uo(this.ja(e),t)},Oo.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Qr(Io,{PROVIDER_ID:"password"}),Qr(Io,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Qr(Io,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),No.prototype.ja=function(e){return e.eb(Ro(this))},No.prototype.b=function(e,t){var n=Ro(this);return n.idToken=t,nu(e,Zs,n)},No.prototype.c=function(e,t){var n=Ro(this);return n.operation="REAUTH",uo(e=nu(e,eu,n),t)},No.prototype.w=function(){var e={providerId:"phone"};return this.a.cb&&(e.verificationId=this.a.cb),this.a.bb&&(e.verificationCode=this.a.bb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},Do.prototype.eb=function(e,t){var n=this.a.a;return Ot(t.verify()).then((function(r){if("string"!==typeof r)throw new C("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":var i=m(e)?e.session:null,o=m(e)?e.phoneNumber:e;return(i&&i.type==oo?i.Ha().then((function(e){return function(e,t){return nu(e,Hs,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==ao?i.Ha().then((function(t){return function(e,t){return nu(e,Ks,t).then((function(e){return e.phoneResponseInfo.sessionInfo}))}(n,{mfaPendingCredential:t,mfaEnrollmentId:e.multiFactorHint&&e.multiFactorHint.uid||e.multiFactorUid,phoneSignInInfo:{recaptchaToken:r}})})):function(e,t){return nu(e,Vs,t)}(n,{phoneNumber:o,recaptchaToken:r})).then((function(e){return"function"===typeof t.reset&&t.reset(),e}),(function(e){throw"function"===typeof t.reset&&t.reset(),e}));default:throw new C("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}}))},Qr(Do,{PROVIDER_ID:"phone"}),Qr(Do,{PHONE_SIGN_IN_METHOD:"phone"}),zo.prototype.getUid=function(){var e=[];return e.push(this.c),this.b&&e.push(this.b),this.f&&e.push(this.f),this.h&&e.push(this.h),e.join("-")},zo.prototype.S=function(){return this.h},zo.prototype.w=function(){return{type:this.c,eventId:this.b,urlResponse:this.g,sessionId:this.f,postBody:this.i,tenantId:this.h,error:this.a&&this.a.w()}};var Bo,qo=null;function Wo(e){var t="unauthorized-domain",n=void 0,r=Fn(e);e=r.a,"chrome-extension"==(r=r.f)?n=Be("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=Be("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",C.call(this,t,n)}
2function Ho(e,t,n){C.call(this,e,n),(e=t||{}).Ib&&$r(this,"email",e.Ib),e.ea&&$r(this,"phoneNumber",e.ea),e.credential&&$r(this,"credential",e.credential),e.Yb&&$r(this,"tenantId",e.Yb)}function Ko(e){if(e.code){var t=e.code||"";0==t.indexOf(I)&&(t=t.substring(I.length));var n={credential:Mo(e),Yb:e.tenantId};if(e.email)n.Ib=e.email;else if(e.phoneNumber)n.ea=e.phoneNumber;else if(!n.credential)return new C(t,e.message||void 0);return new Ho(t,n,e.message)}return null}function Go(){}function $o(e){return e.c||(e.c=e.b())}function Qo(){}function Yo(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(i){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Xo(){}function Jo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=E(this.pc,this),this.a.onerror=E(this.Rb,this),this.a.onprogress=E(this.qc,this),this.a.ontimeout=E(this.uc,this)}function Zo(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function ea(e,t,n){this.reset(e,t,n,void 0,void 0)}T(Wo,C),T(Ho,C),Ho.prototype.w=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber),this.tenantId&&(e.tenantId=this.tenantId);var t=this.credential&&this.credential.w();return t&&ge(e,t),e},Ho.prototype.toJSON=function(){return this.w()},Go.prototype.c=null,T(Qo,Go),Qo.prototype.a=function(){var e=Yo(this);return e?new ActiveXObject(e):new XMLHttpRequest},Qo.prototype.b=function(){var e={};return Yo(this)&&(e[0]=!0,e[1]=!0),e},Bo=new Qo,T(Xo,Go),Xo.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new Jo;throw Error("Unsupported browser")},Xo.prototype.b=function(){return{}},(t=Jo.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},t.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},t.abort=function(){this.a.abort()},t.setRequestHeader=function(){},t.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},t.pc=function(){this.status=200,this.response=this.responseText=this.a.responseText,Zo(this,4)},t.Rb=function(){this.status=500,this.response=this.responseText="",Zo(this,4)},t.uc=function(){this.Rb()},t.qc=function(){this.status=200,Zo(this,1)},t.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},ea.prototype.a=null;function ta(e){this.f=e,this.b=this.c=this.a=null}function na(e,t){this.name=e,this.value=t}ea.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||k(),delete this.a},na.prototype.toString=function(){return this.name};var ra=new na("SEVERE",1e3),ia=new na("WARNING",900),oa=new na("CONFIG",700),aa=new na("FINE",500);ta.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(L("Root logger has no level set."),null)}(this).value)for(v(t)&&(t=t()),e=new ea(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var sa,ua={},ca=null;function la(e){var t;if(ca||(ca=new ta(""),ua[""]=ca,ca.c=oa),!(t=ua[e])){t=new ta(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=la(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,ua[e]=t}return t}function fa(e,t){e&&e.log(aa,t,void 0)}function ha(e){this.f=e}function da(e){wn.call(this),this.o=e,this.readyState=pa,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.i=new Headers,this.b=null,this.m="GET",this.g="",this.a=!1,this.h=la("goog.net.FetchXmlHttp"),this.l=this.c=this.f=null}T(ha,Go),ha.prototype.a=function(){return new da(this.f)},ha.prototype.b=(sa={},function(){return sa}),T(da,wn);var pa=0;function va(e){e.c.read().then(e.oc.bind(e)).catch(e.Ta.bind(e))}function ma(e,t){t&&e.f&&(e.status=e.f.status,e.statusText=e.f.statusText),e.readyState=4,e.f=null,e.c=null,e.l=null,ga(e)}function ga(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function ya(e){wn.call(this),this.headers=new xn,this.O=e||null,this.c=!1,this.A=this.a=null,this.h=this.P=this.l="",this.f=this.N=this.i=this.G=!1,this.g=0,this.o=null,this.m=ba,this.u=this.R=!1}(t=da.prototype).open=function(e,t){if(this.readyState!=pa)throw this.abort(),Error("Error reopening a connection");this.m=e,this.g=t,this.readyState=1,ga(this)},t.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.i,method:this.m,credentials:void 0,cache:void 0};
2e&&(t.body=e),this.o.fetch(new Request(this.g,t)).then(this.tc.bind(this),this.Ta.bind(this))},t.abort=function(){this.response=this.responseText="",this.i=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,ma(this,!1)),this.readyState=pa},t.tc=function(e){this.a&&(this.f=e,this.b||(this.b=e.headers,this.readyState=2,ga(this)),this.a&&(this.readyState=3,ga(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.rc.bind(this),this.Ta.bind(this)):"undefined"!==typeof c.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.l=new TextDecoder,va(this)):e.text().then(this.sc.bind(this),this.Ta.bind(this)))))},t.oc=function(e){if(this.a){var t=this.l.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?ma(this,!0):ga(this),3==this.readyState&&va(this)}},t.sc=function(e){this.a&&(this.response=this.responseText=e,ma(this,!0))},t.rc=function(e){this.a&&(this.response=e,ma(this,!0))},t.Ta=function(e){var t=this.h;t&&t.log(ia,"Failed to fetch url "+this.g,e instanceof Error?e:Error(e)),this.a&&ma(this,!0)},t.setRequestHeader=function(e,t){this.i.append(e,t)},t.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.h)&&e.log(ia,"Attempting to get response header but no headers have been received for url: "+this.g,void 0),"")},t.getAllResponseHeaders=function(){if(!this.b){var e=this.h;return e&&e.log(ia,"Attempting to get all response headers but no headers have been received for url: "+this.g,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},T(ya,wn);var ba="";ya.prototype.b=la("goog.net.XhrIo");var wa=/^https?$/i,_a=["POST","PUT"];function Ea(e,t,n,r,i){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);n=n?n.toUpperCase():"GET",e.l=t,e.h="",e.P=n,e.G=!1,e.c=!0,e.a=e.O?e.O.a():Bo.a(),e.A=e.O?$o(e.O):$o(Bo),e.a.onreadystatechange=E(e.Ub,e);try{fa(e.b,Aa(e,"Opening Xhr")),e.N=!0,e.a.open(n,String(t),!0),e.N=!1}catch(a){return fa(e.b,Aa(e,"Error opening Xhr: "+a.message)),void ka(e,a)}t=r||"";var o=new xn(e.headers);i&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(p(e)||"string"===typeof e)W(e,t,void 0);else for(var n=On(e),r=Cn(e),i=r.length,o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}(i,(function(e,t){o.set(t,e)})),i=function(e){e:{for(var t=Sa,n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(o.Y()),r=c.FormData&&t instanceof c.FormData,!$(_a,n)||i||r||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach((function(e,t){this.a.setRequestHeader(t,e)}),e),e.m&&(e.a.responseType=e.m),"withCredentials"in e.a&&e.a.withCredentials!==e.R&&(e.a.withCredentials=e.R);try{xa(e),0<e.g&&(e.u=function(e){return Ge&&it(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(e.a),fa(e.b,Aa(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=E(e.Ma,e)):e.o=kn(e.Ma,e.g,e)),fa(e.b,Aa(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(a){fa(e.b,Aa(e,"Send error: "+a.message)),ka(e,a)}}function Sa(e){return"content-type"==e.toLowerCase()}function ka(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Ta(e),Oa(e)}function Ta(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Ca(e){if(e.c&&"undefined"!=typeof u)if(e.A[1]&&4==Ia(e)&&2==Pa(e))fa(e.b,Aa(e,"Local request error detected and ignored"));else if(e.i&&4==Ia(e))kn(e.Ub,0,e);else if(e.dispatchEvent("readystatechange"),4==Ia(e)){fa(e.b,Aa(e,"Request complete")),e.c=!1;try{var t,n=Pa(e);e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.l).match(An)[1]||null;if(!o&&c.self&&c.self.location){var a=c.self.location.protocol;o=a.substr(0,a.length-1)}i=!wa.test(o?o.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var s=2<Ia(e)?e.a.statusText:""}catch(l){fa(e.b,"Can not get status: "+l.message),s=""}e.h=s+" ["+Pa(e)+"]",Ta(e)}}finally{Oa(e)}}}function Oa(e,t){if(e.a){xa(e);var n=e.a,r=e.A[0]?h:null;e.a=null,e.A=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(e=e.b)&&e.log(ra,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function xa(e){e.a&&e.u&&(e.a.ontimeout=null),e.o&&(c.clearTimeout(e.o),e.o=null)}function Ia(e){return e.a?e.a.readyState:0}
2function Pa(e){try{return 2<Ia(e)?e.a.status:-1}catch(t){return-1}}function Aa(e,t){return t+" ["+e.P+" "+e.l+" "+Pa(e)+"]"}function Na(e){var t=qa;this.g=[],this.u=t,this.o=e||null,this.f=this.a=!1,this.c=void 0,this.m=this.A=this.i=!1,this.h=0,this.b=null,this.l=0}function ja(e,t,n){e.a=!0,e.c=n,e.f=!t,Ma(e)}function Ra(e){if(e.a){if(!e.m)throw new Fa(e);e.m=!1}}function Da(e,t,n,r){e.g.push([t,n,r]),e.a&&Ma(e)}function La(e){return G(e.g,(function(e){return v(e[1])}))}function Ma(e){if(e.h&&e.a&&La(e)){var t=e.h,n=Va[t];n&&(c.clearTimeout(n.a),delete Va[t]),e.h=0}e.b&&(e.b.l--,delete e.b),t=e.c;for(var r=n=!1;e.g.length&&!e.i;){var i=e.g.shift(),o=i[0],a=i[1];if(i=i[2],o=e.f?a:o)try{var s=o.call(i||e.o,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(j(t)||"function"===typeof c.Promise&&t instanceof c.Promise)&&(r=!0,e.i=!0)}catch(u){t=u,e.f=!0,La(e)||(n=!0)}}e.c=t,r&&(s=E(e.v,e,!0),r=E(e.v,e,!1),t instanceof Na?(Da(t,s,r),t.A=!0):t.then(s,r)),n&&(t=new Ua(t),Va[t.a]=t,e.h=t.a)}function Fa(){R.call(this)}function za(){R.call(this)}function Ua(e){this.a=c.setTimeout(E(this.c,this),0),this.b=e}(t=ya.prototype).Ma=function(){"undefined"!=typeof u&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",fa(this.b,Aa(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},t.abort=function(){this.a&&this.c&&(fa(this.b,Aa(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Oa(this))},t.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Oa(this,!0)),ya.$a.Da.call(this)},t.Ub=function(){this.xa||(this.N||this.i||this.f?Ca(this):this.Ic())},t.Ic=function(){Ca(this)},t.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case ba:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(ra,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return fa(this.b,"Can not get response: "+t.message),null}},Na.prototype.cancel=function(e){if(this.a)this.c instanceof Na&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.l--,0>=t.l&&t.cancel())}this.u?this.u.call(this.o,this):this.m=!0,this.a||(e=new za(this),Ra(this),ja(this,!1,e))}},Na.prototype.v=function(e,t){this.i=!1,ja(this,e,t)},Na.prototype.then=function(e,t,n){var r,i,o=new wt((function(e,t){r=e,i=t}));return Da(this,r,(function(e){e instanceof za?o.cancel():i(e)})),o.then(e,t,n)},Na.prototype.$goog_Thenable=!0,T(Fa,R),Fa.prototype.message="Deferred has already fired",Fa.prototype.name="AlreadyCalledError",T(za,R),za.prototype.message="Deferred was canceled",za.prototype.name="CanceledError",Ua.prototype.c=function(){throw delete Va[this.a],this.b};var Va={};function Ba(e){var t={},n=t.document||document,r=Te(e).toString(),i=ht(document,"SCRIPT"),o={Vb:i,Ma:void 0},a=new Na(o),s=null,u=null!=t.timeout?t.timeout:5e3;return 0<u&&(s=window.setTimeout((function(){Wa(i,!0);var e=new Ga(Ka,"Timeout reached for loading script "+r);Ra(a),ja(a,!1,e)}),u),o.Ma=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Wa(i,t.wd||!1,s),Ra(a),ja(a,!0,null))},i.onerror=function(){Wa(i,!0,s);var e=new Ga(Ha,"Error while loading script "+r);Ra(a),ja(a,!1,e)},ge(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),st(i,o),function(e,t){ye(e,"HTMLScriptElement"),e.src=Te(t),null===f&&(f=(t=(t=c.document).querySelector&&t.querySelector("script[nonce]"))&&(t=t.nonce||t.getAttribute("nonce"))&&l.test(t)?t:""),(t=f)&&e.setAttribute("nonce",t)}(i,e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),a}function qa(){if(this&&this.Vb){var e=this.Vb;e&&"SCRIPT"==e.tagName&&Wa(e,!0,this.Ma)}}function Wa(e,t,n){null!=n&&c.clearTimeout(n),e.onload=h,e.onerror=h,e.onreadystatechange=h,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var Ha=0,Ka=1;function Ga(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),R.call(this,n),this.code=e}function $a(e){this.f=e}
2function Qa(e,t,n){if(this.c=e,e=t||{},this.l=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.v=e.secureTokenTimeout||Ja,this.g=ve(e.secureTokenHeaders||Za),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.m=e.firebaseTimeout||es,this.a=ve(e.firebaseHeaders||ts),n&&(this.a["X-Client-Version"]=n,this.g["X-Client-Version"]=n),n="Node"==br(),!(n=c.XMLHttpRequest||n&&r.INTERNAL.node&&r.INTERNAL.node.XMLHttpRequest)&&!yr())throw new C("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,yr()?this.f=new ha(self):wr()?this.f=new $a(n):this.f=new Xo,this.b=null}T(Ga,R),T($a,Go),$a.prototype.a=function(){return new this.f},$a.prototype.b=function(){return{}};var Ya,Xa="idToken",Ja=new zr(3e4,6e4),Za={"Content-Type":"application/x-www-form-urlencoded"},es=new zr(3e4,6e4),ts={"Content-Type":"application/json"};function ns(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function rs(e,t){t&&(e.l=is("https://securetoken.googleapis.com/v1/token",t),e.h=is("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",t),e.i=is("https://identitytoolkit.googleapis.com/v2/",t))}function is(e,t){return e=Fn(e),t=Fn(t.url),e.c=e.a+e.c,jn(e,t.f),e.a=t.a,Rn(e,t.g),e.toString()}function os(e,t){t?(e.a["X-Client-Version"]=t,e.g["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.g["X-Client-Version"])}function as(e,t,n,r,i,o,a){(function(){var e=Cr();return!((e=Sr(e)!=Er?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!Ge||!nt||9<nt)})()||yr()?e=E(e.u,e):(Ya||(Ya=new wt((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{c[us]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Da(e,null,t,void 0)}(Ba(Ce(ss,{onload:us})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=E(e.o,e)),e(t,n,r,i,o,a)}Qa.prototype.S=function(){return this.b},Qa.prototype.u=function(e,t,n,r,i,o){if(yr()&&("undefined"===typeof c.fetch||"undefined"===typeof c.Headers||"undefined"===typeof c.Request))throw new C("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var a=new ya(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}_n(a,"complete",(function(){s&&clearTimeout(s);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return fa(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(n){e=null}t&&t(e)})),En(a,"ready",(function(){s&&clearTimeout(s),Wt(this)})),En(a,"timeout",(function(){s&&clearTimeout(s),Wt(this),t&&t(null)})),Ea(a,e,n,r,i)};var ss=new be(Ee,"https://apis.google.com/js/client.js?onload=%{onload}"),us="__fcb"+Math.floor(1e6*Math.random()).toString();function cs(e,t,n,r,i,o,a){var s=Fn(t+n);Ln(s,"key",e.c),a&&Ln(s,"cb",k().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&Ln(s,c,i[c]);return new wt((function(t,n){as(e,s.toString(),(function(e){e?e.error?n(iu(e,o||{})):t(e):n(new C("network-request-failed"))}),r,u?void 0:nr(Rr(i)),e.a,e.m.get())}))}function ls(e){if("string"!==typeof(e=e.email)||!pr.test(e))throw new C("invalid-email")}function fs(e){"email"in e&&ls(e)}function hs(e){if(!e[Xa]){if(e.mfaPendingCredential)throw new C("multi-factor-auth-required",null,ve(e));throw new C("internal-error")}}function ds(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new C("internal-error")}else{if(!e.sessionInfo)throw new C("missing-verification-id");if(!e.code)throw new C("missing-verification-code")}}Qa.prototype.o=function(e,t,n,r,i){var o=this;Ya.then((function(){window.gapi.client.setApiKey(o.c);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})})).s((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},Qa.prototype.yb=function(){return nu(this,Ws,{})},Qa.prototype.Ab=function(e,t){return nu(this,Bs,{idToken:e,email:t})},Qa.prototype.Bb=function(e,t){return nu(this,qs,{idToken:e,password:t})};var ps={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function vs(e){if(!e.phoneVerificationInfo)throw new C("internal-error");
2if(!e.phoneVerificationInfo.sessionInfo)throw new C("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new C("missing-verification-code")}function ms(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new C("internal-error")}function gs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(Jn(e=new $n(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function ys(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Ko(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Ko(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Ko(e)):e.errorMessage&&(t=ru(e.errorMessage)),t)throw t;hs(e)}function bs(e,t){return t.returnIdpCredential=!0,nu(e,Gs,t)}function ws(e,t){return t.returnIdpCredential=!0,nu(e,Qs,t)}function _s(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,nu(e,$s,t)}function Es(e){if(!e.oobCode)throw new C("invalid-action-code")}(t=Qa.prototype).Cb=function(e,t){var n={idToken:e},r=[];return de(ps,(function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),nu(this,Bs,n)},t.ub=function(e,t){return ge(e={requestType:"PASSWORD_RESET",email:e},t),nu(this,Ms,e)},t.vb=function(e,t){return ge(e={requestType:"EMAIL_SIGNIN",email:e},t),nu(this,Rs,e)},t.tb=function(e,t){return ge(e={requestType:"VERIFY_EMAIL",idToken:e},t),nu(this,Ds,e)},t.Db=function(e,t,n){return ge(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),nu(this,Ls,e)},t.eb=function(e){return nu(this,Js,e)},t.mb=function(e,t){return nu(this,Us,{oobCode:e,newPassword:t})},t.Qa=function(e){return nu(this,ks,{oobCode:e})},t.ib=function(e){return nu(this,Ss,{oobCode:e})};var Ss={endpoint:"setAccountInfo",B:Es,Z:"email",C:!0},ks={endpoint:"resetPassword",B:Es,F:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new C("internal-error")},C:!0},Ts={endpoint:"signupNewUser",B:function(e){if(ls(e),!e.password)throw new C("weak-password")},F:hs,U:!0,C:!0},Cs={endpoint:"createAuthUri",C:!0},Os={endpoint:"deleteAccount",M:["idToken"]},xs={endpoint:"setAccountInfo",M:["idToken","deleteProvider"],B:function(e){if("array"!=d(e.deleteProvider))throw new C("internal-error")}},Is={endpoint:"emailLinkSignin",M:["email","oobCode"],B:ls,F:hs,U:!0,C:!0},Ps={endpoint:"emailLinkSignin",M:["idToken","email","oobCode"],B:ls,F:hs,U:!0},As={endpoint:"accounts/mfaEnrollment:finalize",M:["idToken","phoneVerificationInfo"],B:vs,F:hs,C:!0,Na:!0},Ns={endpoint:"accounts/mfaSignIn:finalize",M:["mfaPendingCredential","phoneVerificationInfo"],B:vs,F:hs,C:!0,Na:!0},js={endpoint:"getAccountInfo"},Rs={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new C("internal-error");ls(e)},Z:"email",C:!0},Ds={endpoint:"getOobConfirmationCode",M:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new C("internal-error")},Z:"email",C:!0},Ls={endpoint:"getOobConfirmationCode",M:["idToken","newEmail","requestType"],B:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new C("internal-error")},Z:"email",C:!0},Ms={endpoint:"getOobConfirmationCode",M:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new C("internal-error");ls(e)},Z:"email",C:!0},Fs={kb:!0,endpoint:"getProjectConfig",Tb:"GET"},zs={kb:!0,endpoint:"getRecaptchaParam",Tb:"GET",F:function(e){if(!e.recaptchaSiteKey)throw new C("internal-error")}},Us={endpoint:"resetPassword",B:Es,Z:"email",C:!0},Vs={endpoint:"sendVerificationCode",M:["phoneNumber","recaptchaToken"],Z:"sessionInfo",C:!0},Bs={endpoint:"setAccountInfo",M:["idToken"],B:fs,U:!0},qs={endpoint:"setAccountInfo",M:["idToken"],B:function(e){if(fs(e),!e.password)throw new C("weak-password")},F:hs,U:!0},Ws={endpoint:"signupNewUser",F:hs,U:!0,C:!0},Hs={endpoint:"accounts/mfaEnrollment:start",M:["idToken","phoneEnrollmentInfo"],B:function(e){if(!e.phoneEnrollmentInfo)throw new C("internal-error");
2if(!e.phoneEnrollmentInfo.phoneNumber)throw new C("missing-phone-number");if(!e.phoneEnrollmentInfo.recaptchaToken)throw new C("missing-app-credential")},F:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new C("internal-error")},C:!0,Na:!0},Ks={endpoint:"accounts/mfaSignIn:start",M:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],B:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new C("missing-app-credential")},F:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new C("internal-error")},C:!0,Na:!0},Gs={endpoint:"verifyAssertion",B:ms,Xa:gs,F:ys,U:!0,C:!0},$s={endpoint:"verifyAssertion",B:ms,Xa:gs,F:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new C("user-not-found");if(e.errorMessage)throw ru(e.errorMessage);hs(e)},U:!0,C:!0},Qs={endpoint:"verifyAssertion",B:function(e){if(ms(e),!e.idToken)throw new C("internal-error")},Xa:gs,F:ys,U:!0},Ys={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new C("invalid-custom-token")},F:hs,U:!0,C:!0},Xs={endpoint:"verifyPassword",B:function(e){if(ls(e),!e.password)throw new C("wrong-password")},F:hs,U:!0,C:!0},Js={endpoint:"verifyPhoneNumber",B:ds,F:hs,C:!0},Zs={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new C("internal-error");ds(e)},F:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Ko(e);hs(e)}},eu={Gb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:ds,F:hs,C:!0},tu={endpoint:"accounts/mfaEnrollment:withdraw",M:["idToken","mfaEnrollmentId"],F:function(e){if(!!e[Xa]^!!e.refreshToken)throw new C("internal-error")},C:!0,Na:!0};function nu(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(void 0===r||null===r||""===r)return!1}return!0}(n,t.M))return xt(new C("internal-error"));var r,i=!!t.Na,o=t.Tb||"POST";return Ot(n).then(t.B).then((function(){return t.U&&(n.returnSecureToken=!0),t.C&&e.b&&"undefined"===typeof n.tenantId&&(n.tenantId=e.b),cs(e,i?e.i:e.h,t.endpoint,o,n,t.Gb,t.kb||!1)})).then((function(e){return r=e,t.Xa?t.Xa(n,r):r})).then(t.F).then((function(){if(!t.Z)return r;if(!(t.Z in r))throw new C("internal-error");return r[t.Z]}))}function ru(e){return iu({error:{errors:[{message:e}],code:400,message:e}})}function iu(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new C(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",ge(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_OR_INVALID_
2NONCE:"missing-or-invalid-nonce",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",INVALID_PROVIDER_ID:"invalid-provider-id",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",REJECTED_CREDENTIAL:"rejected-credential",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_DYNAMIC_LINK_DOMAIN:"invalid-dynamic-link-domain",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash",UNSUPPORTED_TENANT_OPERATION:"unsupported-tenant-operation",INVALID_TENANT_ID:"invalid-tenant-id",TENANT_ID_MISMATCH:"tenant-id-mismatch",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",EMAIL_CHANGE_NEEDS_VERIFICATION:"email-change-needs-verification",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",UNSUPPORTED_FIRST_FACTOR:"unsupported-first-factor",UNVERIFIED_EMAIL:"unverified-email"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*([\s\S]*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new C(r[i],t);return!t&&e&&(t=jr(e)),new C("internal-error",t)}function ou(e){this.b=e,this.a=null,this.qb=function(e){return(cu||(cu=new wt((function(e,t){function n(){Fr(),Or("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){Fr(),t(Error("Network Error"))},timeout:su.get()})}if(Or("gapi.iframes.Iframe"))e();else if(Or("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();c[r]=function(){Or("gapi.load")?n():t(Error("Network Error"))},Ot(Ba(r=Ce(au,{onload:r}))).s((function(){t(Error("Network Error"))}))}})).s((function(e){throw cu=null,e})))).then((function(){return new wt((function(t,n){Or("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},(function(r){function i(){clearTimeout(o),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var o=setTimeout((function(){n(Error("Network Error"))}),uu.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var au=new be(Ee,"https://apis.google.com/js/api.js?onload=%{onload}"),su=new zr(3e4,6e4),uu=new zr(5e3,15e3),cu=null;function lu(e,t,n,r){this.l=e,this.h=t,this.i=n,this.g=r,this.f=null,this.g?e=zn((e=Fn(this.g.url)).f,e.a,e.g,"/emulator/auth/iframe"):e=zn("https",this.l,null,"/__/auth/iframe"),this.a=e,Ln(this.a,"apiKey",this.h),Ln(this.a,"appName",this.i),this.b=null,this.c=[]}function fu(e,t,n,r,i,o){this.u=e,this.o=t,this.c=n,this.v=r,this.m=o,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function hu(e){try{return r.app(e).auth().Ga()}catch(t){return[]}}function du(e,t,n,r,i,o){this.o=e,this.g=t,this.b=n,this.f=o,this.c=r||null,this.i=i||null,this.l=this.u=this.A=null,this.h=[],this.v=this.a=null}function pu(e){var t=ur();return function(e){return nu(e,Fs,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Fn(t),r=n.f;n=n.a;for(var i=0;i<e.length;i++){var o=e[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=Fn(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:dr.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new Wo(ur())}))}function vu(e){return e.v||(e.v=vr().then((function(){if(!e.u){var t=e.c,n=e.i,r=hu(e.b),i=new lu(e.o,e.g,e.b,e.f);i.f=t,i.b=n,i.c=J(r||[]),e.u=i.toString()}e.m=new ou(e.u),function(e){if(!e.m)throw Error("IfcHandler must be initialized!");!function(e,t){e.qb.then((function(){e.a.register("authEvent",t,Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.m,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Uo(t.authEvent),n=0;n<e.h.length;n++)r=e.h[n](t)||r;return(n={}).status=r?"ACK":"ERROR",Ot(n)}return n.status="ERROR",Ot(n)}))}(e)}))),e.v}function mu(e){return e.l||(e.A=e.c?Tr(e.c,hu(e.b)):null,e.l=new Qa(e.g,N(e.i),e.A),e.f&&rs(e.l,e.f)),e.l}function gu(e,t,n,r,i,o,a,s,u,c,l,f){return(e=new fu(e,t,n,r,i,f)).l=o,e.g=a,e.i=s,e.b=ve(u||null),e.f=c,e.xb(l).toString()}function yu(e){if(this.a=e||r.INTERNAL.reactNative&&r.INTERNAL.reactNative.AsyncStorage,!this.a)throw new C("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function bu(e){this.b=e,this.a={},this.f=E(this.c,this)}lu.prototype.toString=function(){return this.f?Ln(this.a,"v",this.f):Xn(this.a.b,"v"),this.b?Ln(this.a,"eid",this.b):Xn(this.a.b,"eid"),this.c.length?Ln(this.a,"fw",this.c.join(",")):Xn(this.a.b,"fw"),this.a.toString()},fu.prototype.xb=function(e){return this.h=e,this},fu.prototype.toString=function(){if(this.m){var e=Fn(this.m.url);e=zn(e.f,e.a,e.g,"/emulator/auth/handler")}else e=zn("https",this.u,null,"/__/auth/handler");
2if(Ln(e,"apiKey",this.o),Ln(e,"appName",this.c),Ln(e,"authType",this.v),this.a.isOAuthProvider){var t=this.a;try{var n=r.app(this.c).auth().ka()}catch(u){n=null}for(var i in t.nb=n,Ln(e,"providerId",this.a.providerId),t=Rr((n=this.a).Hb))t[i]=t[i].toString();i=n.Pc,t=ve(t);for(var o=0;o<i.length;o++){var a=i[o];a in t&&delete t[a]}n.ob&&n.nb&&!t[n.ob]&&(t[n.ob]=n.nb),pe(t)||Ln(e,"customParameters",jr(t))}if("function"===typeof this.a.Pb&&((n=this.a.Pb()).length&&Ln(e,"scopes",n.join(","))),this.l?Ln(e,"redirectUrl",this.l):Xn(e.b,"redirectUrl"),this.g?Ln(e,"eventId",this.g):Xn(e.b,"eventId"),this.i?Ln(e,"v",this.i):Xn(e.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Mn(e,s)&&Ln(e,s,this.b[s]);return this.h?Ln(e,"tid",this.h):Xn(e.b,"tid"),this.f?Ln(e,"eid",this.f):Xn(e.b,"eid"),(s=hu(this.c)).length&&Ln(e,"fw",s.join(",")),e.toString()},(t=du.prototype).Nb=function(e,t,n){var r=new C("popup-closed-by-user"),i=new C("web-storage-unsupported"),o=this,a=!1;return this.la().then((function(){(function(e){var t={type:"webStorageSupport"};return vu(e).then((function(){return function(e,t){return e.qb.then((function(){return new wt((function(n){e.a.send(t.type,t,n,Or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.m,t)})).then((function(e){if(e&&e.length&&"undefined"!==typeof e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()}))})(o).then((function(n){n||(e&&fr(e),t(i),a=!0)}))})).s((function(){})).then((function(){if(!a)return function(e){return new wt((function(t){return function n(){Tn(2e3).then((function(){if(e&&!e.closed)return n();t()}))}()}))}(e)})).then((function(){if(!a)return Tn(n).then((function(){t(r)}))}))},t.Wb=function(){var e=Cr();return!Nr(e)&&!Mr(e)},t.Sb=function(){return!1}
2,t.Lb=function(e,t,n,r,i,o,a,s){if(!e)return xt(new C("popup-blocked"));if(a&&!Nr())return this.la().s((function(t){fr(e),i(t)})),r(),Ot();this.a||(this.a=pu(mu(this)));var u=this;return this.a.then((function(){var t=u.la().s((function(t){throw fr(e),i(t),t}));return r(),t})).then((function(){(Fo(n),a)||cr(gu(u.o,u.g,u.b,t,n,null,o,u.c,void 0,u.i,s,u.f),e)})).s((function(e){throw"auth/network-request-failed"==e.code&&(u.a=null),e}))},t.Mb=function(e,t,n,r){this.a||(this.a=pu(mu(this)));var i=this;return this.a.then((function(){Fo(t),cr(gu(i.o,i.g,i.b,e,t,ur(),n,i.c,void 0,i.i,r,i.f))})).s((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},t.la=function(){var e=this;return vu(this).then((function(){return e.m.qb})).s((function(){throw e.a=null,new C("network-request-failed")}))},t.Zb=function(){return!0},t.Ea=function(e){this.h.push(e)},t.Ra=function(e){Y(this.h,(function(t){return t==e}))},(t=yu.prototype).get=function(e){return Ot(this.a.getItem(e)).then((function(e){return e&&Dr(e)}))},t.set=function(e,t){return Ot(this.a.setItem(e,jr(t)))},t.T=function(e){return Ot(this.a.removeItem(e))},t.ca=function(){},t.ia=function(){};var wu,_u=[];function Eu(e,t,n){pe(e.a)&&e.b.addEventListener("message",e.f),"undefined"===typeof e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function Su(e){this.a=e}function ku(e){this.c=e,this.b=!1,this.a=[]}function Tu(e,t,n,r){var i,o,a,s,u=n||{},c=null;if(e.b)return xt(Error("connection_unavailable"));var l=r?800:50,f="undefined"!==typeof MessageChannel?new MessageChannel:null;return new wt((function(n,r){f?(i=Math.floor(Math.random()*Math.pow(10,20)).toString(),f.port1.start(),a=setTimeout((function(){r(Error("unsupported_event"))}),l),c={messageChannel:f,onMessage:o=function(e){e.data.eventId===i&&("ack"===e.data.status?(clearTimeout(a),s=setTimeout((function(){r(Error("timeout"))}),3e3)):"done"===e.data.status?(clearTimeout(s),"undefined"!==typeof e.data.response?n(e.data.response):r(Error("unknown_error"))):(clearTimeout(a),clearTimeout(s),r(Error("invalid_response"))))}},e.a.push(c),f.port1.addEventListener("message",o),e.c.postMessage({eventType:t,eventId:i,data:u},[f.port2])):r(Error("connection_unavailable"))})).then((function(t){return Cu(e,c),t})).s((function(t){throw Cu(e,c),t}))}function Cu(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),Y(e.a,(function(e){return e==t}))}}function Ou(){if(!Pu())throw new C("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=c.indexedDB,this.type="indexedDB",this.g=this.l=this.f=this.i=null,this.o=!1,this.h=null;var e=this;yr()&&self?(this.l=function(){var e=yr()?self:null;if(W(_u,(function(n){n.b==e&&(t=n)})),!t){var t=new bu(e);_u.push(t)}return t}(),Eu(this.l,"keyChanged",(function(t,n){return Du(e).then((function(t){return 0<t.length&&W(e.a,(function(e){e(t)})),{keyProcessed:$(t,n.key)}}))})),Eu(this.l,"ping",(function(){return Ot(["keyChanged"])}))):function(){var e=c.navigator;return e&&e.serviceWorker?Ot().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).s((function(){return null})):Ot(null)}().then((function(t){(e.h=t)&&(e.g=new ku(new Su(t)),Tu(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&$(t[0].value,"keyChanged")&&(e.o=!0)})).s((function(){})))}))}function xu(e){return new wt((function(t,n){var r=e.m.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(t){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(t){n(t)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new wt((function(t,n){var r=e.m.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}}))}(e).then((function(){return xu(e)})).then((function(e){t(e)})).s((function(e){n(e)}))}}))}function Iu(e){return e.v||(e.v=xu(e)),e.v}function Pu(){try{return!!c.indexedDB}catch(sa){return!1}}function Au(e){return e.objectStore("firebaseLocalStorage")}function Nu(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function ju(e){return new wt((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Ru(e,t){return e.g&&e.h&&function(){var e=c.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Tu(e.g,"keyChanged",{key:t},e.o).then((function(){})).s((function(){})):Ot()}function Du(e){return Iu(e).then((function(e){var t=Au(Nu(e,!1));return t.getAll?ju(t.getAll()):new wt((function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(e.target.error)}}))})).then((function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=function e(t,n){var r,i=[];for(r in t)r in n?typeof t[r]!=typeof n[r]?i.push(r):"object"==typeof t[r]&&null!=t[r]&&null!=n[r]?0<e(t[r],n[r]).length&&i.push(r):t[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in t||i.push(r);return i}(e.c,n),e.c=n}return r}))}function Lu(e){e.i&&e.i.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function Mu(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Ot().then((function(){if(Pu()){var e=Lr(),r="__sak"+e;return wu||(wu=new Ou),(n=wu).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.T(r)})).then((function(){return n})).s((function(){return t.c}))}return t.c})).then((function(e){return t.type=e.type,e.ca((function(e){W(t.a,(function(t){t(e)}))})),e}))}function Fu(){this.a={},this.type="inMemory"}function zu(){if(!function(){var e="Node"==br();if(!(e=Uu()||e&&r.INTERNAL.node&&r.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==br())throw new C("internal-error","The LocalStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Uu()||r.INTERNAL.node.localStorage,this.type="localStorage"}function Uu(){try{var e=c.localStorage,t=Lr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Vu(){this.type="nullStorage"}function Bu(){if(!function(){var e="Node"==br();if(!(e=qu()||e&&r.INTERNAL.node&&r.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(t){return!1}}()){if("Node"==br())throw new C("internal-error","The SessionStorage compatibility library was not found.");throw new C("web-storage-unsupported")}
2this.a=qu()||r.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function qu(){try{var e=c.sessionStorage,t=Lr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Wu(){var e={};e.Browser=Gu,e.Node=$u,e.ReactNative=Qu,e.Worker=Yu,this.a=e[br()]}bu.prototype.c=function(e){var t=e.data.eventType,n=e.data.eventId,r=this.a[t];if(r&&0<r.length){e.ports[0].postMessage({status:"ack",eventId:n,eventType:t,response:null});var i=[];W(r,(function(t){i.push(Ot().then((function(){return t(e.origin,e.data.data)})))})),Pt(i).then((function(r){var i=[];W(r,(function(e){i.push({fulfilled:e.Ob,value:e.value,reason:e.reason?e.reason.message:void 0})})),W(i,(function(e){for(var t in e)"undefined"===typeof e[t]&&delete e[t]})),e.ports[0].postMessage({status:"done",eventId:n,eventType:t,response:i})}))}},Su.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},ku.prototype.close=function(){for(;0<this.a.length;)Cu(this,this.a[0]);this.b=!0},(t=Ou.prototype).set=function(e,t){var n,r=!1,i=this;return Iu(this).then((function(t){return ju((t=Au(Nu(n=t,!0))).get(e))})).then((function(o){var a=Au(Nu(n,!0));return o?(o.value=t,ju(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=e,o.value=t,ju(a.add(o)))})).then((function(){return i.c[e]=t,Ru(i,e)})).na((function(){r&&i.b--}))},t.get=function(e){return Iu(this).then((function(t){return ju(Au(Nu(t,!1)).get(e))})).then((function(e){return e&&e.value}))},t.T=function(e){var t=!1,n=this;return Iu(this).then((function(r){return t=!0,n.b++,ju(Au(Nu(r,!0)).delete(e))})).then((function(){return delete n.c[e],Ru(n,e)})).na((function(){t&&n.b--}))},t.ca=function(e){0==this.a.length&&function(e){Lu(e),function t(){e.f=setTimeout((function(){e.i=Du(e).then((function(t){0<t.length&&W(e.a,(function(e){e(t)}))})).then((function(){t()})).s((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}()}(this),this.a.push(e)},t.ia=function(e){Y(this.a,(function(t){return t==e})),0==this.a.length&&Lu(this)},(t=Mu.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},t.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},t.T=function(e){return this.b.then((function(t){return t.T(e)}))},t.ca=function(e){this.a.push(e)},t.ia=function(e){Y(this.a,(function(t){return t==e}))},(t=Fu.prototype).get=function(e){return Ot(this.a[e])},t.set=function(e,t){return this.a[e]=t,Ot()},t.T=function(e){return delete this.a[e],Ot()},t.ca=function(){},t.ia=function(){},(t=zu.prototype).get=function(e){var t=this;return Ot().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Ot().then((function(){var r=jr(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return Ot().then((function(){t.a.removeItem(e)}))},t.ca=function(e){c.window&&un(c.window,"storage",e)},t.ia=function(e){c.window&&fn(c.window,"storage",e)},(t=Vu.prototype).get=function(){return Ot(null)},t.set=function(){return Ot()},t.T=function(){return Ot()},t.ca=function(){},t.ia=function(){},(t=Bu.prototype).get=function(e){var t=this;return Ot().then((function(){return Dr(t.a.getItem(e))}))},t.set=function(e,t){var n=this;return Ot().then((function(){var r=jr(t);null===r?n.T(e):n.a.setItem(e,r)}))},t.T=function(e){var t=this;return Ot().then((function(){t.a.removeItem(e)}))},t.ca=function(){},t.ia=function(){};var Hu,Ku,Gu={D:zu,ab:Bu},$u={D:zu,ab:Bu},Qu={D:yu,ab:Vu},Yu={D:zu,ab:Vu},Xu={qd:"local",NONE:"none",sd:"session"};function Ju(){var e=!(Mr(Cr())||!gr()),t=Nr(),n=xr();this.v=e,this.h=t,this.l=n,this.a={},Hu||(Hu=new Wu),e=Hu;try{this.g=!sr()&&qr()||!c.indexedDB?new e.a.D:new Mu(yr()?new Fu:new e.a.D)}catch(r){this.g=new Fu,this.h=!0}try{this.i=new e.a.ab}catch(r){this.i=new Fu}this.m=new Fu,this.f=E(this.Xb,this),this.b={}}function Zu(){return Ku||(Ku=new Ju),Ku}function ec(e,t){switch(t){case"session":return e.i;case"none":return e.m;default:return e.g}}function tc(e,t){return"firebase:"+e.name+(t?":"+t:"")}function nc(e,t,n){return n=tc(t,n),"local"==t.D&&(e.b[n]=null),ec(e,t.D).T(n)}function rc(e){e.c&&(clearInterval(e.c),e.c=null)}function ic(e){this.a=e,this.b=Zu()}(t=Ju.prototype).get=function(e,t){return ec(this,e.D).get(tc(e,t))},t.set=function(e,t,n){var r=tc(e,n),i=this,o=ec(this,e.D);return o.set(r,t).then((function(){return o.get(r)})).then((function(t){"local"==e.D&&(i.b[r]=t)}))},t.addListener=function(e,t,n){e=tc(e,t),this.l&&(this.b[e]=c.localStorage.getItem(e)),pe(this.a)&&(ec(this,"local").ca(this.f),this.h||(sr()||!qr())&&c.indexedDB||!this.l||function(e){rc(e),e.c=setInterval((function(){for(var t in e.a){var n=c.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Yt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Xb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},t.removeListener=function(e,t,n){e=tc(e,t),this.a[e]&&(Y(this.a[e],(function(e){return e==n}
2)),0==this.a[e].length&&delete this.a[e]),pe(this.a)&&(ec(this,"local").ia(this.f),rc(this))},t.Xb=function(e){if(e&&e.g){var t=e.a.key;if(null==t)for(var n in this.a){var r=this.b[n];"undefined"===typeof r&&(r=null);var i=c.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.lb(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?ec(this,"local").ia(this.f):rc(this),this.v)if(n=c.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?c.localStorage.setItem(t,r):c.localStorage.removeItem(t);else if(this.b[t]===r&&"undefined"===typeof e.a.a)return;var o=this;n=function(){"undefined"===typeof e.a.a&&o.b[t]===c.localStorage.getItem(t)||(o.b[t]=c.localStorage.getItem(t),o.lb(t))},Ge&&nt&&10==nt&&c.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else W(e,E(this.lb,this))},t.lb=function(e){this.a[e]&&W(this.a[e],(function(e){e()}))};var oc,ac={name:"authEvent",D:"local"};function sc(){this.a=Zu()}function uc(e,t){this.b=cc,this.f=c.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=c.Int32Array?new Int32Array(64):Array(64),void 0===oc&&(oc=c.Int32Array?new Int32Array(mc):mc),this.reset()}T(uc,(function(){this.b=-1}));for(var cc=64,lc=cc-1,fc=[],hc=0;hc<lc;hc++)fc[hc]=0;var dc=X(128,fc);function pc(e){for(var t=e.f,n=e.l,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var o=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=o+a|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],u=0|e.a[3],c=0|e.a[4],l=0|e.a[5],f=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&f)+(0|oc[t])|0)+(0|n[t])|0)|0,o=f,f=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+u|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+l|0,e.a[6]=e.a[6]+f|0,e.a[7]=e.a[7]+o|0}function vc(e,t,n){void 0===n&&(n=t.length);var r=0,i=e.c;if("string"===typeof t)for(;r<n;)e.f[i++]=t.charCodeAt(r++),i==e.b&&(pc(e),i=0);else{if(!p(t))throw Error("message must be string or array");for(;r<n;){var o=t[r++];if(!("number"==typeof o&&0<=o&&255>=o&&o==(0|o)))throw Error("message must be a byte array");e.f[i++]=o,i==e.b&&(pc(e),i=0)}}e.c=i,e.g+=n}uc.prototype.reset=function(){this.g=this.c=0,this.a=c.Int32Array?new Int32Array(this.h):J(this.h)};var mc=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function gc(){uc.call(this,8,yc)}T(gc,uc);var yc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function bc(e,t,n,r,i,o){this.m=e,this.i=t,this.l=n,this.v=r||null,this.u=i||null,this.o=o,this.h=t+":"+n,this.A=new sc,this.g=new ic(this.h),this.f=null,this.b=[],this.a=this.c=null}function wc(e){return new C("invalid-cordova-configuration",e)}function _c(e){var t=new gc;vc(t,e),e=[];var n=8*t.g;56>t.c?vc(t,dc,56-t.c):vc(t,dc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(pc(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return K(e,(function(e){return 1<(e=e.toString(16)).length?e:"0"+e})).join("")}(e)}function Ec(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(r){}}function Sc(e){return e.f||(e.f=e.la().then((function(){return new wt((function(t){e.Ea((function n(r){return t(r),e.Ra(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),kc(e).then((function(r){var i=n;
2if(r&&t&&t.url){var o=null;-1!=(i=ro(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"===typeof(o=Dr(Mn(o=Fn(i),"firebaseError")||null))?O(o):null)?new zo(r.c,r.b,null,null,o,null,r.S()):new zo(r.c,r.b,i,r.f,null,null,r.S())),i=o||n}Ec(e,i)}))}var n=new zo("unknown",null,null,null,new C("no-auth-event")),r=!1,i=Tn(500).then((function(){return kc(e).then((function(){r||Ec(e,n)}))})),o=c.handleOpenURL;c.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Or("BuildInfo.packageName",c).toLowerCase()+"://")&&t({url:e}),"function"===typeof o)try{o(e)}catch(n){console.error(n)}},qo||(qo=new Vo),function(e){var t=qo;t.a.push(e),t.b||(t.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"===typeof(e=Or("universalLinks.subscribe",c))&&e(null,t.b))}(t)}(e)}))}))),e.f}function kc(e){var t=null;return function(e){return e.b.get(ac,e.a).then((function(e){return Uo(e)}))}(e.g).then((function(n){return t=n,nc((n=e.g).b,ac,n.a)})).then((function(){return t}))}function Tc(e){this.a=e,this.b=Zu()}(t=bc.prototype).la=function(){return this.Ia?this.Ia:this.Ia=(mr(void 0)?vr().then((function(){return new wt((function(e,t){var n=c.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):xt(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Or("universalLinks.subscribe",c))throw wc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Or("BuildInfo.packageName",c))throw wc("cordova-plugin-buildinfo is not installed");if("function"!==typeof Or("cordova.plugins.browsertab.openUrl",c))throw wc("cordova-plugin-browsertab is not installed");if("function"!==typeof Or("cordova.InAppBrowser.open",c))throw wc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new C("cordova-not-ready")}))},t.Nb=function(e,t){return t(new C("operation-not-supported-in-this-environment")),Ot()},t.Lb=function(){return xt(new C("operation-not-supported-in-this-environment"))},t.Zb=function(){return!1},t.Wb=function(){return!0},t.Sb=function(){return!0},t.Mb=function(e,t,n,r){if(this.c)return xt(new C("redirect-operation-pending"));var i=this,o=c.document,a=null,s=null,u=null,l=null;return this.c=Ot().then((function(){return Fo(t),Sc(i)})).then((function(){return function(e,t,n,r,i){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new zo(t,r,null,o,new C("no-auth-event"),null,i),s=Or("BuildInfo.packageName",c);if("string"!==typeof s)throw new C("invalid-cordova-configuration");var u=Or("BuildInfo.displayName",c),l={};if(Cr().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=s;else{if(!Cr().toLowerCase().match(/android/))return xt(new C("operation-not-supported-in-this-environment"));l.apn=s}u&&(l.appDisplayName=u),o=_c(o),l.sessionId=o;var f=gu(e.m,e.i,e.l,t,n,null,r,e.v,l,e.u,i,e.o);return e.la().then((function(){var t=e.h;return e.A.a.set(ac,a.w(),t)})).then((function(){var t=Or("cordova.plugins.browsertab.isAvailable",c);if("function"!==typeof t)throw new C("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!==typeof(n=Or("cordova.plugins.browsertab.openUrl",c)))throw new C("invalid-cordova-configuration");n(f)}else{if("function"!==typeof(n=Or("cordova.InAppBrowser.open",c)))throw new C("invalid-cordova-configuration");t=Cr(),e.a=n(f,t.match(/(iPad|iPhone|iPod).*OS 7_\d/i)||t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)?"_blank":"_system","location=yes")}}))}))}(i,e,t,n,r)})).then((function(){return new wt((function(e,t){s=function(){var t=Or("cordova.plugins.browsertab.close",c);return e(),"function"===typeof t&&t(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(s),u=function(){a||(a=Tn(2e3).then((function(){t(new C("redirect-cancelled-by-user"))})))},l=function(){Ur()&&u()},o.addEventListener("resume",u,!1),Cr().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)})).s((function(e){return kc(i).then((function(){throw e}))}))})).na((function(){u&&o.removeEventListener("resume",u,!1),l&&o.removeEventListener("visibilitychange",l,!1),a&&a.cancel(),s&&i.Ra(s),i.c=null}))},t.Ea=function(e){this.b.push(e),Sc(this).s((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new zo("unknown",null,null,null,new C("no-auth-event")),e(t))}))},t.Ra=function(e){Y(this.b,(function(t){return t==e}))};
2var Cc={name:"pendingRedirect",D:"session"};function Oc(e){return nc(e.b,Cc,e.a)}function xc(e,t,n,r){this.i={},this.u=0,this.O=e,this.m=t,this.v=n,this.G=r,this.h=[],this.f=!1,this.l=E(this.o,this),this.b=new qc,this.A=new $c,this.g=new Tc(Vc(this.m,this.v)),this.c={},this.c.unknown=this.b,this.c.signInViaRedirect=this.b,this.c.linkViaRedirect=this.b,this.c.reauthViaRedirect=this.b,this.c.signInViaPopup=this.A,this.c.linkViaPopup=this.A,this.c.reauthViaPopup=this.A,this.a=Ic(this.O,this.m,this.v,x,this.G)}function Ic(e,t,n,i,o){var a=r.SDK_VERSION||null;return mr()?new bc(e,t,n,a,i,o):new du(e,t,n,a,i,o)}function Pc(e){e.f||(e.f=!0,e.a.Ea(e.l));var t=e.a;return e.a.la().s((function(n){throw e.a==t&&e.reset(),n}))}function Ac(e){e.a.Wb()&&Pc(e).s((function(t){var n=new zo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Mc(t)&&e.o(n)})),e.a.Sb()||Wc(e.b)}function Nc(e,t){$(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(Cc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Oc(e.g).then((function(){Pc(e).s((function(t){var n=new zo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));Mc(t)&&e.o(n)}))})):Ac(e)})).s((function(){Ac(e)}))}function jc(e,t){Y(e.h,(function(e){return e==t}))}xc.prototype.reset=function(){this.f=!1,this.a.Ra(this.l),this.a=Ic(this.O,this.m,this.v,null,this.G),this.i={}},xc.prototype.o=function(e){if(!e)throw new C("invalid-auth-event");if(6e5<=k()-this.u&&(this.i={},this.u=0),e&&e.getUid()&&this.i.hasOwnProperty(e.getUid()))return!1;for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.Eb(e.c,e.b)){(t=this.c[e.c])&&(t.h(e,r),e&&(e.f||e.b)&&(this.i[e.getUid()]=!0,this.u=k())),t=!0;break}}return Wc(this.b),t};var Rc=new zr(2e3,1e4),Dc=new zr(3e4,6e4);function Lc(e,t,n,r,i,o,a){return e.a.Lb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ea(e.l))}),(function(){e.reset()}),i,o,a)}function Mc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Fc(e,t,n,r,i){var o;return function(e){return e.b.set(Cc,"pending",e.a)}(e.g).then((function(){return e.a.Mb(t,n,r,i).s((function(t){if(Mc(t))throw new C("operation-not-supported-in-this-environment");return o=t,Oc(e.g).then((function(){throw o}))})).then((function(){return e.a.Zb()?new wt((function(){})):Oc(e.g).then((function(){return e.qa()})).then((function(){})).s((function(){}))}))}))}function zc(e,t,n,r,i){return e.a.Nb(r,(function(e){t.ma(n,null,e,i)}),Rc.get())}xc.prototype.qa=function(){return this.b.qa()};var Uc={};function Vc(e,t,n){return e=e+":"+t,n&&(e=e+":"+n.url),e}function Bc(e,t,n,r){var i=Vc(t,n,r);return Uc[i]||(Uc[i]=new xc(e,t,n,r)),Uc[i]}function qc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function Wc(e){e.g||(e.g=!0,Gc(e,!1,null,null))}function Hc(e){e.g&&!e.i&&Gc(e,!1,null,null)}function Kc(e,t){if(e.b=function(){return Ot(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Gc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return xt(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Kc(e,n):Kc(e,{user:null}),e.f=[],e.c=[]}function $c(){}function Qc(){this.hb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.hb},set:function(e){this.hb=e},enumerable:!1})}function Yc(e,t){this.a=t,$r(this,"verificationId",e)}function Xc(e,t,n,r){return new Do(e).eb(t,n).then((function(e){return new Yc(e,r)}))}function Jc(e){var t=qi(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new C("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");Qr(this,{token:e,expirationTime:Br(1e3*t.exp),authTime:Br(1e3*t.auth_time),issuedAtTime:Br(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,signInSecondFactor:t.firebase&&t.firebase.sign_in_second_factor?t.firebase.sign_in_second_factor:null,claims:t})}function Zc(e,t,n){var r=t&&t[tl];if(!r)throw new C("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=ve(t),this.g=n,this.c=new io(null,r),this.b=[];var i=this;W(t[el]||[],(function(e){(e=Zr(e))&&i.b.push(e)})),$r(this,"auth",this.a),$r(this,"session",this.c),$r(this,"hints",this.b)}qc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},qc.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.c,r=e.b,i=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;this.i=!(!i&&!o),"unknown"!=n||i||o?e.a?(Gc(this,!0,null,e.a),Ot()):t.Fa(n,r)?function(e,t,n){n=n.Fa(t.c,t.b);var r=t.g,i=t.f,o=t.i,a=t.S(),s=!!t.c.match(/Redirect$/);n(r,i,a,o).then((function(t){Gc(e,s,t,null)})).s((function(t){Gc(e,s,null,t)}))}(this,e,t):xt(new C("invalid-auth-event")):(Gc(this,!1,null,null),Ot())}else xt(new C("invalid-auth-event"))},qc.prototype.qa=function(){var e=this;return new wt((function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new C("timeout");e.a&&e.a.cancel(),e.a=Tn(Dc.get()).then((function(){e.b||(e.g=!0,Gc(e,!0,null,t))}))}(e))}))},$c.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.ma(e.c,null,e.a,e.b),Ot()):t.Fa(n,r)?function(e,t){var n=e.b,r=e.c;t.Fa(r,n)(e.g,e.f,e.S(),e.i).then((function(e){t.ma(r,e,null,n)})).s((function(e){t.ma(r,null,e,n)}
2))}(e,t):xt(new C("invalid-auth-event"))}else xt(new C("invalid-auth-event"))},Yc.prototype.confirm=function(e){return e=Lo(this.verificationId,e),this.a(e)};var el="mfaInfo",tl="mfaPendingCredential";function nl(e,t,n,r){C.call(this,"multi-factor-auth-required",r,t),this.b=new Zc(e,t,n),$r(this,"resolver",this.b)}function rl(e,t,n){if(e&&m(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new nl(t,e.serverResponse,n,e.message)}catch(r){}return null}function il(){}function ol(e){$r(this,"factorId",e.fa),this.a=e}function al(e){if(ol.call(this,e),this.a.fa!=Do.PROVIDER_ID)throw new C("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function sl(e,t){for(var n in Qt.call(this,e),t)this[n]=t[n]}function ul(e,t){this.a=e,this.b=[],this.c=E(this.xc,this),un(this.a,"userReloaded",this.c);var n=[];t&&t.multiFactor&&t.multiFactor.enrolledFactors&&W(t.multiFactor.enrolledFactors,(function(e){var t=null,r={};if(e){e.uid&&(r[ni]=e.uid),e.displayName&&(r[ei]=e.displayName),e.enrollmentTime&&(r[ti]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[ri]=e.phoneNumber);try{t=new ii(r)}catch(i){}e=t}else e=null;e&&n.push(e)})),cl(this,n)}function cl(e,t){e.b=t,$r(e,"enrolledFactors",t)}function ll(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function fl(e){this.c=e,this.b=this.a=null}function hl(e){return e.b&&1e3*e.b.c||0}function dl(e,t){var n=t.refreshToken;e.b=Bi(t[Xa]||""),e.a=n}function pl(e,t){return function(e,t){return new wt((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?as(e,e.l+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(iu(e)):e.access_token&&e.refresh_token?n(e):r(new C("internal-error")):r(new C("network-request-failed"))}),"POST",Yn(t).toString(),e.g,e.v.get()):r(new C("internal-error"))}))}(e.c,t).then((function(t){return e.b=Bi(t.access_token),e.a=t.refresh_token,{accessToken:e.b.toString(),refreshToken:e.a}})).s((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function vl(e,t){this.a=e||null,this.b=t||null,Qr(this,{lastSignInTime:Br(t||null),creationTime:Br(e||null)})}function ml(e,t,n,r,i,o){Qr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}function gl(e,t,n){this.G=[],this.l=e.apiKey,this.m=e.appName,this.o=e.authDomain||null;var i=r.SDK_VERSION?Tr(r.SDK_VERSION):null;this.a=new Qa(this.l,N(x),i),e.emulatorConfig&&rs(this.a,e.emulatorConfig),this.b=new fl(this.a),Tl(this,t[Xa]),dl(this.b,t),$r(this,"refreshToken",this.b.a),xl(this,n||{}),wn.call(this),this.P=!1,this.o&&Ir()&&(this.i=Bc(this.o,this.l,this.m)),this.R=[],this.f=null,this.u=function(e){return new ll((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=hl(e.b)-k()-3e5;return 0<t?t:0}))}(this),this.$=E(this.gb,this);var o=this;this.pa=null,this.Ba=function(e){o.wa(e.h)},this.ba=null,this.za=function(e){rs(o.a,e.c)},this.W=null,this.X=[],this.Aa=function(e){wl(o,e.f)},this.aa=null,this.N=new ul(this,n),$r(this,"multiFactor",this.N)}function yl(e,t){e.ba&&fn(e.ba,"languageCodeChanged",e.Ba),(e.ba=t)&&un(t,"languageCodeChanged",e.Ba)}function bl(e,t){e.W&&fn(e.W,"emulatorConfigChanged",e.za),(e.W=t)&&un(t,"emulatorConfigChanged",e.za)}function wl(e,t){e.X=t,os(e.a,r.SDK_VERSION?Tr(r.SDK_VERSION,e.X):null)}function _l(e,t){e.aa&&fn(e.aa,"frameworkChanged",e.Aa),(e.aa=t)&&un(t,"frameworkChanged",e.Aa)}function El(e){try{return r.app(e.m).auth()}catch(t){throw new C("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Sl(e){e.A||e.u.b||(e.u.start(),fn(e,"tokenChanged",e.$),un(e,"tokenChanged",e.$))}function kl(e){fn(e,"tokenChanged",e.$),e.u.stop()}function Tl(e,t){e.ya=t,$r(e,"_lat",t)}function Cl(e){for(var t=[],n=0;n<e.R.length;n++)t.push(e.R[n](e));return Pt(t).then((function(){return e}))}function Ol(e){e.i&&!e.P&&(e.P=!0,Nc(e.i,e))}function xl(e,t){Qr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,tenantId:t.tenantId||null,metadata:new vl(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Il(){}function Pl(e){return Ot().then((function(){if(e.A)throw new C("app-deleted")}))}function Al(e){return K(e.providerData,(function(e){return e.providerId}))}function Nl(e,t){t&&(jl(e,t.providerId),e.providerData.push(t))}function jl(e,t){Y(e.providerData,(function(e){return e.providerId==t}))}function Rl(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&$r(e,t,n)}function Dl(e,t){e!=t&&(Qr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,tenantId:t.tenantId,providerData:[]}),t.metadata?$r(e,"metadata",function(e){return new vl(e.a,e.b)}(t.metadata)):$r(e,"metadata",new vl),W(t.providerData,(function(t){Nl(e,t)})),function(e,t){e.b=t.b,e.a=t.a}(e.b,t.b),$r(e,"refreshToken",e.b.a),cl(e.N,t.N.b))}function Ll(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return nu(e.a,js,{idToken:t}).then(E(e.Jc,e))}(e,t).then((function(){return n||Rl(e,"isAnonymous",!1),t}))}))}function Ml(e,t){t[Xa]&&e.ya!=t[Xa]&&(dl(e.b,t),e.dispatchEvent(new sl("tokenChanged")),Tl(e,t[Xa]),Rl(e,"refreshToken",e.b.a))}function Fl(e,t){return Ll(e).then((function(){if($(Al(e),t))return Cl(e).then((function(){throw new C("provider-already-linked")}))}))}function zl(e,t,n){return Yr({user:e,credential:Mo(t),additionalUserInfo:t=$i(t),operationType:n})}function Ul(e,t){return Ml(e,t),e.reload().then((function(){return e}))}function Vl(e,t,n,i,o){if(!Ir())return xt(new C("operation-not-supported-in-this-environment"));if(e.f&&!o)return xt(e.f);var a=Gi(n.providerId),s=Lr(e.uid+":::"),u=null;(!Nr()||gr())&&e.o&&n.isOAuthProvider&&(u=gu(e.o,e.l,e.m,t,n,null,s,r.SDK_VERSION||null,null,null,e.tenantId));var c=hr(u,a&&a.ua,a&&a.ta);return i=i().then((function(){if(ql(e),!o)return e.I().then((function(){}))})).then((function(){return Lc(e.i,c,t,n,s,!!u,e.tenantId)})).then((function(){return new wt((function(n,r){e.ma(t,null,new C("cancelled-popup-request"),e.h||null),e.g=n,e.O=r,e.h=s,e.c=zc(e.i,e,t,c,s)}))})).then((function(e){return c&&fr(c),e?Yr(e):null})).s((function(e){throw c&&fr(c),e})),Wl(e,i,o)}function Bl(e,t,n,r,i){if(!Ir())return xt(new C("operation-not-supported-in-this-environment"));if(e.f&&!i)return xt(e.f);var o=null,a=Lr(e.uid+":::");return r=r().then((function(){if(ql(e),!i)return e.I().then((function(){}))})).then((function(){return e.ga=a,Cl(e)})).then((function(t){return e.ha&&(t=(t=e.ha).b.set(Gl,e.w(),t.a)),t})).then((function(){return Fc(e.i,t,n,a,e.tenantId)}
2)).s((function(t){if(o=t,e.ha)return $l(e.ha);throw o})).then((function(){if(o)throw o})),Wl(e,r,i)}function ql(e){if(!e.i||!e.P){if(e.i&&!e.P)throw new C("internal-error");throw new C("auth-domain-config-required")}}function Wl(e,t,n){var r=function(e,t,n){return e.f&&!n?(t.cancel(),xt(e.f)):t.s((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.f||e.dispatchEvent(new sl("userInvalidated")),e.f=t),t}))}(e,t,n);return e.G.push(r),r.na((function(){Q(e.G,r)})),r.s((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=rl(t.w(),El(e),E(e.ic,e))),n||t}))}function Hl(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName,emulatorConfig:e.emulatorConfig},n={};if(!e.stsTokenManager||!e.stsTokenManager.accessToken)return null;n[Xa]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=new gl(t,n,e);return e.providerData&&W(e.providerData,(function(e){e&&Nl(r,Yr(e))})),e.redirectEventId&&(r.ga=e.redirectEventId),r}function Kl(e){this.a=e,this.b=Zu()}Zc.prototype.Qc=function(e){var t=this;return e.rb(this.a.a,this.c).then((function(e){var n=ve(t.f);return delete n[el],delete n[tl],ge(n,e),t.g(n)}))},T(nl,C),il.prototype.rb=function(e,t,n){return t.type==oo?function(e,t,n,r){return n.Ha().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),ge(n,{phoneVerificationInfo:Ro(e.a)}),nu(t,As,n)}))}(this,e,t,n):function(e,t,n){return n.Ha().then((function(n){return ge(n={mfaPendingCredential:n},{phoneVerificationInfo:Ro(e.a)}),nu(t,Ns,n)}))}(this,e,t)},T(ol,il),T(al,ol),T(sl,Qt),(t=ul.prototype).xc=function(e){cl(this,function(e){var t=[];return W(e.mfaInfo||[],(function(e){(e=Zr(e))&&t.push(e)})),t}(e.gd))},t.Qb=function(){return this.a.I().then((function(e){return new io(e,null)}))},t.ec=function(e,t){var n=this,r=this.a.a;return this.Qb().then((function(n){return e.rb(r,n,t)})).then((function(e){return Ml(n.a,e),n.a.reload()}))},t.ad=function(e){var t=this,n="string"===typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return nu(r,tu,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=H(t.b,(function(e){return e.uid!=n}));return cl(t,r),Ml(t.a,e),t.a.reload().s((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},t.w=function(){return{multiFactor:{enrolledFactors:K(this.b,(function(e){return e.w()}))}}},ll.prototype.start=function(){this.a=this.c,function e(t,n){t.stop(),t.b=Tn(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,n)).then((function(){return function(){var e=c.document,t=null;return Ur()||!e?Ot():new wt((function(n){t=function(){Ur()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).s((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return t.h()})).then((function(){e(t,!0)})).s((function(n){t.i(n)&&e(t,!1)}))}(this,!0)},ll.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},fl.prototype.w=function(){return{apiKey:this.c.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:hl(this)}},fl.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?xt(new C("user-token-expired")):e||!this.b||k()>hl(this)-3e4?this.a?pl(this,{grant_type:"refresh_token",refresh_token:this.a}):Ot(null):Ot({accessToken:this.b.toString(),refreshToken:this.a})},vl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},T(gl,wn),gl.prototype.wa=function(e){this.pa=e,ns(this.a,e)},gl.prototype.ka=function(){return this.pa},gl.prototype.Ga=function(){return J(this.X)},gl.prototype.gb=function(){this.u.b&&(this.u.stop(),this.u.start())},$r(gl.prototype,"providerId","firebase"),(t=gl.prototype).reload=function(){var e=this;return Wl(this,Pl(this).then((function(){return Ll(e).then((function(){return Cl(e)})).then(Il)})))},t.nc=function(e){return this.I(e).then((function(e){return new Jc(e)}))},t.I=function(e){var t=this;return Wl(this,Pl(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new C("internal-error");
2return e.accessToken!=t.ya&&(Tl(t,e.accessToken),t.dispatchEvent(new sl("tokenChanged"))),Rl(t,"refreshToken",e.refreshToken),e.accessToken})))},t.Jc=function(e){if(!(e=e.users)||!e.length)throw new C("internal-error");xl(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt,tenantId:e.tenantId});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?K(e,(function(e){return new ml(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Nl(this,t[n]);Rl(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new sl("userReloaded",{gd:e}))},t.Kc=function(e){return Kr("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.sb(e)},t.sb=function(e){var t=this,n=null;return Wl(this,e.c(this.a,this.uid).then((function(e){return Ml(t,e),n=zl(t,e,"reauthenticate"),t.f=null,t.reload()})).then((function(){return n})),!0)},t.Bc=function(e){return Kr("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.pb(e)},t.pb=function(e){var t=this,n=null;return Wl(this,Fl(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=zl(t,e,"link"),Ul(t,e)})).then((function(){return n})))},t.Cc=function(e,t){var n=this;return Wl(this,Fl(this,"phone").then((function(){return Xc(El(n),e,t,E(n.pb,n))})))},t.Lc=function(e,t){var n=this;return Wl(this,Ot().then((function(){return Xc(El(n),e,t,E(n.sb,n))})),!0)},t.Ab=function(e){var t=this;return Wl(this,this.I().then((function(n){return t.a.Ab(n,e)})).then((function(e){return Ml(t,e),t.reload()})))},t.dd=function(e){var t=this;return Wl(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Ml(t,e),t.reload()})))},t.Bb=function(e){var t=this;return Wl(this,this.I().then((function(n){return t.a.Bb(n,e)})).then((function(e){return Ml(t,e),t.reload()})))},t.Cb=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Pl(this);var t=this;return Wl(this,this.I().then((function(n){return t.a.Cb(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Ml(t,e),Rl(t,"displayName",e.displayName||null),Rl(t,"photoURL",e.photoUrl||null),W(t.providerData,(function(e){"password"===e.providerId&&($r(e,"displayName",t.displayName),$r(e,"photoURL",t.photoURL))})),Cl(t)})).then(Il))},t.bd=function(e){var t=this;return Wl(this,Ll(this).then((function(n){return $(Al(t),e)?function(e,t,n){return nu(e,xs,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return W(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),W(Al(t),(function(e){n[e]||jl(t,e)})),n[Do.PROVIDER_ID]||$r(t,"phoneNumber",null),Cl(t)})):Cl(t).then((function(){throw new C("no-such-provider")}))})))},t.delete=function(){var e=this;return Wl(this,this.I().then((function(t){return nu(e.a,Os,{idToken:t})})).then((function(){e.dispatchEvent(new sl("userDeleted"))}))).then((function(){for(var t=0;t<e.G.length;t++)e.G[t].cancel("app-deleted");yl(e,null),bl(e,null),_l(e,null),e.G=[],e.A=!0,kl(e),$r(e,"refreshToken",null),e.i&&jc(e.i,e)}))},t.Eb=function(e,t){return!!("linkViaPopup"==e&&(this.h||null)==t&&this.g||"reauthViaPopup"==e&&(this.h||null)==t&&this.g||"linkViaRedirect"==e&&(this.ga||null)==t||"reauthViaRedirect"==e&&(this.ga||null)==t)},t.ma=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.h||null)||(n&&this.O?this.O(n):t&&!n&&this.g&&this.g(t),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(e,t){return"linkViaPopup"==e&&t==(this.h||null)?E(this.Jb,this):"reauthViaPopup"==e&&t==(this.h||null)?E(this.Kb,this):"linkViaRedirect"==e&&(this.ga||null)==t?E(this.Jb,this):"reauthViaRedirect"==e&&(this.ga||null)==t?E(this.Kb,this):null},t.Dc=function(e){var t=this;return Vl(this,"linkViaPopup",e,(function(){return Fl(t,e.providerId).then((function(){return Cl(t)}))}),!1)},t.Mc=function(e){return Vl(this,"reauthViaPopup",e,(function(){return Ot()}),!0)},t.Ec=function(e){var t=this;return Bl(this,"linkViaRedirect",e,(function(){return Fl(t,e.providerId)}),!1)},t.Nc=function(e){return Bl(this,"reauthViaRedirect",e,(function(){return Ot()}),!0)},t.Jb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Wl(this,this.I().then((function(n){return ws(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return o=zl(i,e,"link"),Ul(i,e)})).then((function(){return o}
2)))},t.Kb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Wl(this,Ot().then((function(){return uo(_s(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return o=zl(i,e,"reauthenticate"),Ml(i,e),i.f=null,i.reload()})).then((function(){return o})),!0)},t.tb=function(e){var t=this,n=null;return Wl(this,this.I().then((function(t){return n=t,"undefined"===typeof e||pe(e)?{}:Fi(new xi(e))})).then((function(e){return t.a.tb(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},t.Db=function(e,t){var n=this,r=null;return Wl(this,this.I().then((function(e){return r=e,"undefined"===typeof t||pe(t)?{}:Fi(new xi(t))})).then((function(t){return n.a.Db(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},t.ic=function(e){var t=null,n=this;return Wl(this,e=uo(Ot(e),n.uid).then((function(e){return t=zl(n,e,"reauthenticate"),Ml(n,e),n.f=null,n.reload()})).then((function(){return t})),!0)},t.toJSON=function(){return this.w()},t.w=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,tenantId:this.tenantId,providerData:[],apiKey:this.l,appName:this.m,authDomain:this.o,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&ge(e,this.metadata.w()),W(this.providerData,(function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))})),ge(e,this.N.w()),e};var Gl={name:"redirectUser",D:"session"};function $l(e){return nc(e.b,Gl,e.a)}function Ql(e){this.a=e,this.b=Zu(),this.c=null,this.f=function(e){var t=Jl("local"),n=Jl("session"),r=Jl("none");return function(e,t,n){var r=tc(t,n),i=ec(e,t.D);return e.get(t,n).then((function(o){var a=null;try{a=Dr(c.localStorage.getItem(r))}catch(s){}if(a&&!o)return c.localStorage.removeItem(r),e.set(t,a,n);a&&o&&"localStorage"!=i.type&&c.localStorage.removeItem(r)}))}(e.b,t,e.a).then((function(){return e.b.get(n,e.a)})).then((function(i){return i?n:e.b.get(r,e.a).then((function(n){return n?r:e.b.get(t,e.a).then((function(n){return n?t:e.b.get(Xl,e.a).then((function(e){return e?Jl(e):t}))}))}))})).then((function(t){return e.c=t,Yl(e,t.D)})).s((function(){e.c||(e.c=t)}))}(this),this.b.addListener(Jl("local"),this.a,E(this.g,this))}function Yl(e,t){var n,r=[];for(n in Xu)Xu[n]!==t&&r.push(nc(e.b,Jl(Xu[n]),e.a));return r.push(nc(e.b,Xl,e.a)),function(e){return new wt((function(t,n){var r=e.length,i=[];if(r)for(var o=function(e,n){r--,i[e]=n,0==r&&t(i)},a=function(e){n(e)},s=0;s<e.length;s++)It(e[s],S(o,s),a);else t(i)}))}(r)}Ql.prototype.g=function(){var e=this,t=Jl("local");nf(this,(function(){return Ot().then((function(){return e.c&&"local"!=e.c.D?e.b.get(t,e.a):null})).then((function(n){if(n)return Yl(e,"local").then((function(){e.c=t}))}))}))};var Xl={name:"persistence",D:"session"};function Jl(e){return{name:"authUser",D:e}}function Zl(e,t){return nf(e,(function(){return e.b.set(e.c,t.w(),e.a)}))}function ef(e){return nf(e,(function(){return nc(e.b,e.c,e.a)}))}function tf(e,t,n){return nf(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),e&&n&&(e.emulatorConfig=n),Hl(e||{})}))}))}function nf(e,t){return e.f=e.f.then(t,t),e.f}function rf(e){if(this.m=!1,$r(this,"settings",new Qc),$r(this,"app",e),!df(this).options||!df(this).options.apiKey)throw new C("invalid-api-key");e=r.SDK_VERSION?Tr(r.SDK_VERSION):null,this.a=new Qa(df(this).options&&df(this).options.apiKey,N(x),e),this.R=[],this.u=[],this.P=[],this.ac=r.INTERNAL.createSubscribe(E(this.yc,this)),this.X=void 0,this.bc=r.INTERNAL.createSubscribe(E(this.zc,this)),ff(this,null),this.l=new Ql(df(this).options.apiKey+":"+df(this).name),this.G=new Kl(df(this).options.apiKey+":"+df(this).name),this.$=gf(this,function(e){var t=df(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(Gl,e.a).then((function(e){return e&&t&&(e.authDomain=t),Hl(e||{})}))}(e.G,df(e).options.authDomain).then((function(t){return(e.o=t)&&(t.ha=e.G),$l(e.G)}));return gf(e,t)}(e).then((function(){return tf(e.l,t,e.f)})).then((function(t){return t?(t.ha=e.G,e.o&&(e.o.ga||null)==(t.ga||null)?t:t.reload().then((function(){return Zl(e.l,t).then((function(){return t}))})).s((function(n){return"auth/network-request-failed"==n.code?t:ef(e.l)}))):null})).then((function(t){ff(e,t||null)}));return gf(e,n)}(this)),this.i=gf(this,function(e){return e.$.then((function(){return cf(e)})).s((function(){})).then((function(){if(!e.m)return e.pa()})).s((function(){})).then((function(){if(!e.m){e.ba=!0;var t=e.l;t.b.addListener(Jl("local"),t.a,e.pa)}}))}(this)),this.ba=!1,this.pa=E(this.Yc,this),this.Ba=E(this.da,this),this.ya=E(this.kc,this),this.za=E(this.vc,this),this.Aa=E(this.wc,this),this.b=null,function(e){var t=df(e).options.authDomain,n=df(e).options.apiKey;t&&Ir()&&(e.gb=e.$.then((function(){if(!e.m){if(e.b=Bc(t,n,df(e).name,e.f),Nc(e.b,e),pf(e)&&Ol(pf(e)),e.o){Ol(e.o);var r=e.o;r.wa(e.ka()),yl(r,e),wl(r=e.o,e.N),_l(r,e),rs((r=e.o).a,e.f),bl(r,e),e.o=null}return e.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=E(this.delete,this),this.INTERNAL.logFramework=E(this.Fc,this),this.A=0,wn.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ka()},set:function(e){this.wa(e)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.S()},set:function(e){this.xb(e)},enumerable:!1}),e.W=null}(this),this.N=[],this.f=null}function of(e){Qt.call(this,"languageCodeChanged"),this.h=e}function af(e){Qt.call(this,"emulatorConfigChanged"),this.c=e}function sf(e){Qt.call(this,"frameworkChanged"),this.f=e}function uf(e){return e.gb||xt(new C("auth-domain-config-required"))}function cf(e){if(!Ir())return xt(new C("operation-not-supported-in-this-environment"));var t=uf(e).then((function(){return e.b.qa()})).then((function(e){return e?Yr(e):null}));return gf(e,t)}function lf(e,t){var n={};return n.apiKey=df(e).options.apiKey,n.authDomain=df(e).options.authDomain,n.appName=df(e).name,e.f&&(n.emulatorConfig=e.f),e.$.then((function(){return function(e,t,n,r){var i=new gl(e,t);return n&&(i.ha=n),r&&wl(i,r),i.reload().then((function(){return i}))}(n,t,e.G,e.Ga())})).then((function(t){return pf(e)&&t.uid==pf(e).uid?(Dl(pf(e),t),e.da(t)):(ff(e,t),Ol(t),e.da(t))})).then((function(){mf(e)}))}
2function ff(e,t){pf(e)&&(function(e,t){Y(e.R,(function(e){return e==t}))}(pf(e),e.Ba),fn(pf(e),"tokenChanged",e.ya),fn(pf(e),"userDeleted",e.za),fn(pf(e),"userInvalidated",e.Aa),kl(pf(e))),t&&(t.R.push(e.Ba),un(t,"tokenChanged",e.ya),un(t,"userDeleted",e.za),un(t,"userInvalidated",e.Aa),0<e.A&&Sl(t)),$r(e,"currentUser",t),t&&(t.wa(e.ka()),yl(t,e),wl(t,e.N),_l(t,e),rs(t.a,e.f),bl(t,e))}function hf(e,t){var n=null,r=null;return gf(e,t.then((function(t){return n=Mo(t),r=$i(t),lf(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=rl(t.w(),e,E(e.jc,e))),n||t})).then((function(){return Yr({user:pf(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function df(e){return e.app}function pf(e){return e.currentUser}function vf(e){return pf(e)&&pf(e)._lat||null}function mf(e){if(e.ba){for(var t=0;t<e.u.length;t++)e.u[t]&&e.u[t](vf(e));if(e.X!==e.getUid()&&e.P.length)for(e.X=e.getUid(),t=0;t<e.P.length;t++)e.P[t]&&e.P[t](vf(e))}}function gf(e,t){return e.R.push(t),t.na((function(){Q(e.R,t)})),t}function yf(){}function bf(){this.a={},this.b=1e12}Ql.prototype.wb=function(e){var t=null,n=this;return function(e){var t=new C("invalid-persistence-type"),n=new C("unsupported-persistence-type");e:{for(r in Xu)if(Xu[r]==e){var r=!0;break e}r=!1}if(!r||"string"!==typeof e)throw t;switch(br()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Pu()&&"none"!==e)throw n;break;default:if(!xr()&&"none"!==e)throw n}}(e),nf(this,(function(){return e!=n.c.D?n.b.get(n.c,n.a).then((function(r){return t=r,Yl(n,e)})).then((function(){if(n.c=Jl(e),t)return n.b.set(n.c,t,n.a)})):Ot()}))},T(rf,wn),T(of,Qt),T(af,Qt),T(sf,Qt),(t=rf.prototype).wb=function(e){return gf(this,e=this.l.wb(e))},t.wa=function(e){this.aa===e||this.m||(this.aa=e,ns(this.a,this.aa),this.dispatchEvent(new of(this.ka())))},t.ka=function(){return this.aa},t.ed=function(){var e=c.navigator;this.wa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},t.fd=function(e){if(!this.f){if(!/^https?:\/\//.test(e))throw new C("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");Vr("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),c.document&&vr().then((function(){var e=c.document.createElement("div");e.innerText="Running in emulator mode. Do not use with production credentials.",e.style.position="fixed",e.style.width="100%",e.style.backgroundColor="#ffffff",e.style.border=".1em solid #000000",e.style.color="#ff0000",e.style.bottom="0px",e.style.left="0px",e.style.margin="0px",e.style.zIndex=1e4,e.style.textAlign="center",e.classList.add("firebase-emulator-warning"),c.document.body.appendChild(e)})),this.f={url:e},this.settings.hb=!0,rs(this.a,this.f),this.dispatchEvent(new af(this.f))}},t.Fc=function(e){this.N.push(e),os(this.a,r.SDK_VERSION?Tr(r.SDK_VERSION,this.N):null),this.dispatchEvent(new sf(this.N))},t.Ga=function(){return J(this.N)},t.xb=function(e){this.W===e||this.m||(this.W=e,this.a.b=this.W)},t.S=function(){return this.W},t.toJSON=function(){return{apiKey:df(this).options.apiKey,authDomain:df(this).options.authDomain,appName:df(this).name,currentUser:pf(this)&&pf(this).w()}},t.Eb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.h==t&&!!this.g;default:return!1}},t.ma=function(e,t,n,r){"signInViaPopup"==e&&this.h==r&&(n&&this.O?this.O(n):t&&!n&&this.g&&this.g(t),this.c&&(this.c.cancel(),this.c=null),delete this.g,delete this.O)},t.Fa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.h==t&&this.g?E(this.hc,this):null},t.hc=function(e,t,n,r){var i=this,o={requestUri:e,postBody:r,sessionId:t,tenantId:n};return this.c&&(this.c.cancel(),this.c=null),i.$.then((function(){return hf(i,bs(i.a,o))}))},t.Wc=function(e){if(!Ir())return xt(new C("operation-not-supported-in-this-environment"));var t=this,n=Gi(e.providerId),i=Lr(),o=null;(!Nr()||gr())&&df(this).options.authDomain&&e.isOAuthProvider&&(o=gu(df(this).options.authDomain,df(this).options.apiKey,df(this).name,"signInViaPopup",e,null,i,r.SDK_VERSION||null,null,null,this.S(),this.f));var a=hr(o,n&&n.ua,n&&n.ta);return gf(this,n=uf(this).then((function(n){return Lc(n,a,"signInViaPopup",e,i,!!o,t.S())})).then((function(){return new wt((function(e,n){t.ma("signInViaPopup",null,new C("cancelled-popup-request"),t.h),t.g=e,t.O=n,t.h=i,t.c=zc(t.b,t,"signInViaPopup",a,i)}))})).then((function(e){return a&&fr(a),e?Yr(e):null})).s((function(e){throw a&&fr(a),e})))},t.Xc=function(e){if(!Ir())return xt(new C("operation-not-supported-in-this-environment"));var t=this;return gf(this,uf(this).then((function(){return function(e){return nf(e,(function(){return e.b.set(Xl,e.c.D,e.a)}))}(t.l)})).then((function(){return Fc(t.b,"signInViaRedirect",e,void 0,t.S())})))},t.qa=function(){var e=this;return cf(this).then((function(t){return e.b&&Hc(e.b.b),t})).s((function(t){throw e.b&&Hc(e.b.b),t}))},t.cd=function(e){if(!e)return xt(new C("null-user"));if(this.W!=e.tenantId)return xt(new C("tenant-id-mismatch"));var t=this,n={};n.apiKey=df(this).options.apiKey,n.authDomain=df(this).options.authDomain,n.appName=df(this).name;var r=function(e,t,n,r){var i=e.b,o={};return o[Xa]=i.b&&i.b.toString(),o.refreshToken=i.a,t=new gl(t||{apiKey:e.l,authDomain:e.o,appName:e.m},o),n&&(t.ha=n),r&&wl(t,r),Dl(t,e),t}(e,n,t.G,t.Ga());return gf(this,this.i.then((function(){if(df(t).options.apiKey!=e.l)return r.reload()})).then((function(){return pf(t)&&e.uid==pf(t).uid?(Dl(pf(t),e),t.da(e)):(ff(t,r),Ol(r),t.da(r))})).then((function(){mf(t)})))},t.zb=function(){var e=this;return gf(this,this.i.then((function(){return e.b&&Hc(e.b.b),pf(e)?(ff(e,null),ef(e.l).then((function(){mf(e)}))):Ot()})))},t.Yc=function(){var e=this;return tf(this.l,df(this).options.authDomain).then((function(t){if(!e.m){var n;if(n=pf(e)&&t){n=pf(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Dl(pf(e),t),pf(e).I();(pf(e)||t)&&(ff(e,t),t&&(Ol(t),t.ha=e.G),e.b&&Nc(e.b,e),mf(e))}}))},t.da=function(e){return Zl(this.l,e)},t.kc=function(){mf(this),this.da(pf(this))},t.vc=function(){this.zb()},t.wc=function(){this.zb()},t.jc=function(e){var t=this;return this.i.then((function(){return hf(t,Ot(e))}))},t.yc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(pf(t))}))},t.zc=function(e){var t=this;!function(e,t){e.P.push(t),gf(e,e.i.then((function(){!e.m&&$(e.P,t)&&e.X!==e.getUid()&&(e.X=e.getUid(),t(vf(e)))})))}(this,(function(){e.next(pf(t))}))},t.Hc=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){"function"===typeof e?e(pf(r)):"function"===typeof e.next&&e.next(pf(r))})),this.ac(e,t,n)},t.Gc=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){r.X=r.getUid(),"function"===typeof e?e(pf(r)):"function"===typeof e.next&&e.next(pf(r))}
2)),this.bc(e,t,n)},t.mc=function(e){var t=this;return gf(this,this.i.then((function(){return pf(t)?pf(t).I(e).then((function(e){return{accessToken:e}})):null})))},t.Sc=function(e){var t=this;return this.i.then((function(){return hf(t,nu(t.a,Ys,{token:e}))})).then((function(e){var n=e.user;return Rl(n,"isAnonymous",!1),t.da(n),e}))},t.Tc=function(e,t){var n=this;return this.i.then((function(){return hf(n,nu(n.a,Xs,{email:e,password:t}))}))},t.dc=function(e,t){var n=this;return this.i.then((function(){return hf(n,nu(n.a,Ts,{email:e,password:t}))}))},t.Za=function(e){var t=this;return this.i.then((function(){return hf(t,e.ja(t.a))}))},t.Rc=function(e){return Kr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.Za(e)},t.yb=function(){var e=this;return this.i.then((function(){var t=pf(e);if(t&&t.isAnonymous){var n=Yr({providerId:null,isNewUser:!1});return Yr({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return hf(e,e.a.yb()).then((function(t){var n=t.user;return Rl(n,"isAnonymous",!0),e.da(n),t}))}))},t.getUid=function(){return pf(this)&&pf(this).uid||null},t.cc=function(e){this.addAuthTokenListener(e),this.A++,0<this.A&&pf(this)&&Sl(pf(this))},t.Oc=function(e){var t=this;W(this.u,(function(n){n==e&&t.A--})),0>this.A&&(this.A=0),0==this.A&&pf(this)&&kl(pf(this)),this.removeAuthTokenListener(e)},t.addAuthTokenListener=function(e){var t=this;this.u.push(e),gf(this,this.i.then((function(){t.m||$(t.u,e)&&e(vf(t))})))},t.removeAuthTokenListener=function(e){Y(this.u,(function(t){return t==e}))},t.delete=function(){this.m=!0;for(var e=0;e<this.R.length;e++)this.R[e].cancel("app-deleted");return this.R=[],this.l&&(e=this.l).b.removeListener(Jl("local"),e.a,this.pa),this.b&&(jc(this.b,this),Hc(this.b.b)),Promise.resolve()},t.gc=function(e){return gf(this,function(e,t){return nu(e,Cs,{identifier:t,continueUri:Pr()?ur():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.a,e))},t.Ac=function(e){return!!Ao(e)},t.vb=function(e,t){var n=this;return gf(this,Ot().then((function(){var e=new xi(t);if(!e.c)throw new C("argument-error",Ai+" must be true when sending sign in link to email");return Fi(e)})).then((function(t){return n.a.vb(e,t)})).then((function(){})))},t.hd=function(e){return this.Qa(e).then((function(e){return e.data.email}))},t.mb=function(e,t){return gf(this,this.a.mb(e,t).then((function(){})))},t.Qa=function(e){return gf(this,this.a.Qa(e).then((function(e){return new oi(e)})))},t.ib=function(e){return gf(this,this.a.ib(e).then((function(){})))},t.ub=function(e,t){var n=this;return gf(this,Ot().then((function(){return"undefined"===typeof t||pe(t)?{}:Fi(new xi(t))})).then((function(t){return n.a.ub(e,t)})).then((function(){})))},t.Vc=function(e,t){return gf(this,Xc(this,e,t,E(this.Za,this)))},t.Uc=function(e,t){var n=this;return gf(this,Ot().then((function(){var r=t||ur(),i=Po(e,r);if(!(r=Ao(r)))throw new C("argument-error","Invalid email link!");if(r.tenantId!==n.S())throw new C("tenant-id-mismatch");return n.Za(i)})))},yf.prototype.render=function(){},yf.prototype.reset=function(){},yf.prototype.getResponse=function(){},yf.prototype.execute=function(){};var wf=null;function _f(e,t){return(t=Ef(t))&&e.a[t]||null}function Ef(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function Sf(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=at(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():un(this.f,"click",this.i)}function kf(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Tf(){}function Cf(){}bf.prototype.render=function(e,t){return this.a[this.b.toString()]=new Sf(e,t),this.b++},bf.prototype.reset=function(e){var t=_f(this,e);e=Ef(e),t&&e&&(t.delete(),delete this.a[e])},bf.prototype.getResponse=function(e){return(e=_f(this,e))?e.getResponse():null},bf.prototype.execute=function(e){(e=_f(this,e))&&e.execute()},Sf.prototype.getResponse=function(){return kf(this),this.b},Sf.prototype.execute=function(){kf(this);var e=this;this.a||(this.a=setTimeout((function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(r){}e.a=setTimeout((function(){if(e.a=null,e.b=null,n)try{n()}catch(r){}e.h&&e.execute()}),6e4)}),500))},Sf.prototype.delete=function(){kf(this),this.g=!0,clearTimeout(this.a),this.a=null,f
2n(this.f,"click",this.i)},$r(Tf,"FACTOR_ID","phone"),Cf.prototype.g=function(){return wf||(wf=new bf),Ot(wf)},Cf.prototype.c=function(){};var Of=null;function xf(){this.b=c.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var If=new be(Ee,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Pf=new zr(3e4,6e4);xf.prototype.g=function(e){var t=this;return new wt((function(n,r){var i=setTimeout((function(){r(new C("network-request-failed"))}),Pf.get());!c.grecaptcha||e!==t.f&&!t.b?(c[t.a]=function(){if(c.grecaptcha){t.f=e;var o=c.grecaptcha.render;c.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(i),n(c.grecaptcha)}else clearTimeout(i),r(new C("internal-error"));delete c[t.a]},Ot(Ba(Ce(If,{onload:t.a,hl:e||""}))).s((function(){clearTimeout(i),r(new C("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(c.grecaptcha))}))},xf.prototype.c=function(){this.b--};var Af=null;function Nf(e,t,n,r,i,o,a){if($r(this,"type","recaptcha"),this.c=this.f=null,this.A=!1,this.m=t,this.g=null,a?(Of||(Of=new Cf),a=Of):(Af||(Af=new xf),a=Af),this.v=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[Df])throw new C("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[Lf],!c.document)throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!at(t)||!this.i&&at(t).hasChildNodes())throw new C("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.o=new Qa(e,o||null,i||null),this.u=r||function(){return null};var s=this;this.l=[];var u=this.a[jf];this.a[jf]=function(e){if(Mf(s,e),"function"===typeof u)u(e);else if("string"===typeof u){var t=Or(u,c);"function"===typeof t&&t(e)}};var l=this.a[Rf];this.a[Rf]=function(){if(Mf(s,null),"function"===typeof l)l();else if("string"===typeof l){var e=Or(l,c);"function"===typeof e&&e()}}}var jf="callback",Rf="expired-callback",Df="sitekey",Lf="size";function Mf(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(r){}}function Ff(e,t){return e.h.push(t),t.na((function(){Q(e.h,t)})),t}function zf(e){if(e.A)throw new C("internal-error","RecaptchaVerifier instance has been destroyed.")}function Uf(e,t,n){var i=!1;try{this.b=n||r.app()}catch(s){throw new C("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new C("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().Ga()}catch(s){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(s){}a=r.SDK_VERSION?Tr(r.SDK_VERSION,a):null,Nf.call(this,n,e,t,(function(){try{var e=o.b.auth().ka()}catch(t){e=null}return e}),a,N(x),i)}function Vf(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new C("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=t.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=t[i].optional&&void 0===n[i],!t[i].K(n[i])&&!o){if(t=t[i],0>i||i>=Bf.length)throw new C("internal-error","Argument validator received an unsupported number of arguments.");n=Bf[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.J+".";break e}r=null}}if(r)throw new C("argument-error",e+" failed: "+r)}(t=Nf.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=Ff(this,Ot().then((function(){if(Pr()&&!yr())return vr();throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.v.g(e.u())})).then((function(t){return e.g=t,nu(e.o,zs,{})})).then((function(t){e.a[Df]=t.recaptchaSiteKey})).s((function(t){throw e.f=null,t})))},t.render=function(){zf(this);var e=this;return Ff(this,this.Ia().then((function(){if(null===e.c){var t=e.m;if(!e.i){var n=at(t);t=function(e,t,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!ot&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',qe(a.name),'"'),a.type){o.push(' type="',qe(a.type),'"');var s={};ge(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=ht(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):st(o,a)),2<r.length&&ft(i,o,r),o}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},t.verify=function(){zf(this);var e=this;return Ff(this,this.render().then((function(t){return new wt((function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){Y(e.l,(function(e){return e==t}))}(e,i),n(t))};e.l.push(i),e.i&&e.g.execute(e.c)}}))})))},t.reset=function(){zf(this),null!==this.c&&this.g.reset(this.c)},t.clear=function(){zf(this),this.A=!0,this.v.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=at(this.m);for(var t;t=e.firstChild;)e.removeChild(t)}},T(Uf,Nf);var Bf="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function qf(e,t){return{name:e||"",J:"a valid string",optional:!!t,K:function(e){return"string"===typeof e}}}function Wf(e,t){return{name:e||"",J:"a boolean",optional:!!t,K:function(e){return"boolean"===typeof e}}}function Hf(e,t){return{name:e||"",J:"a valid object",optional:!!t,K:m}}function Kf(e,t){return{name:e||"",J:"a function",optional:!!t,K:function(e){return"function"===typeof e}}}function Gf(e,t){return{name:e||"",J:"null",optional:!!t,K:function(e){return null===e}}}function $f(e){return{name:e?e+"Credential":"credential",J:e?"a valid "+e+" credential":"a valid credential",optional:!1,K:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ja||!n)}}}function Qf(e,t){return m(e)&&"string"===typeof e.type&&e.type===t&&"function"===typeof e.Ha}function Yf(e){return m(e)&&"string"===typeof e.uid}function Xf(e,t,n,r){return{name:n||"",J:e.J+" or "+t.J,optional:!!r,K:function(n){return e.K(n)||t.K(n)}}}function Jf(e,t){for(var n in t){var r=t[n].name;e[r]=th(r,e[n],t[n].j)}}function Zf(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:S((function(e){return this[e]}
2),n),set:S((function(e,t,n,r){Vf(e,[n],[r],!0),this[t]=r}),r,n,t[n].jb),enumerable:!0})}}function eh(e,t,n,r){e[t]=th(t,n,r)}function th(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Vf(o,n,e),t.apply(this,e)}if(!n)return t;var i,o=function(e){return(e=e.split("."))[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}Jf(rf.prototype,{ib:{name:"applyActionCode",j:[qf("code")]},Qa:{name:"checkActionCode",j:[qf("code")]},mb:{name:"confirmPasswordReset",j:[qf("code"),qf("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[qf("email"),qf("password")]},gc:{name:"fetchSignInMethodsForEmail",j:[qf("email")]},qa:{name:"getRedirectResult",j:[]},Ac:{name:"isSignInWithEmailLink",j:[qf("emailLink")]},Gc:{name:"onAuthStateChanged",j:[Xf(Hf(),Kf(),"nextOrObserver"),Kf("opt_error",!0),Kf("opt_completed",!0)]},Hc:{name:"onIdTokenChanged",j:[Xf(Hf(),Kf(),"nextOrObserver"),Kf("opt_error",!0),Kf("opt_completed",!0)]},ub:{name:"sendPasswordResetEmail",j:[qf("email"),Xf(Hf("opt_actionCodeSettings",!0),Gf(null,!0),"opt_actionCodeSettings",!0)]},vb:{name:"sendSignInLinkToEmail",j:[qf("email"),Hf("actionCodeSettings")]},wb:{name:"setPersistence",j:[qf("persistence")]},Rc:{name:"signInAndRetrieveDataWithCredential",j:[$f()]},yb:{name:"signInAnonymously",j:[]},Za:{name:"signInWithCredential",j:[$f()]},Sc:{name:"signInWithCustomToken",j:[qf("token")]},Tc:{name:"signInWithEmailAndPassword",j:[qf("email"),qf("password")]},Uc:{name:"signInWithEmailLink",j:[qf("email"),qf("emailLink",!0)]},Vc:{name:"signInWithPhoneNumber",j:[qf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Wc:{name:"signInWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Xc:{name:"signInWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},cd:{name:"updateCurrentUser",j:[Xf({name:"user",J:"an instance of Firebase User",optional:!1,K:function(e){return!!(e&&e instanceof gl)}},Gf(),"user")]},zb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[qf(null,!0)]},ed:{name:"useDeviceLanguage",j:[]},fd:{name:"useEmulator",j:[qf("url")]},hd:{name:"verifyPasswordResetCode",j:[qf("code")]}}),Zf(rf.prototype,{lc:{name:"languageCode",jb:Xf(qf(),Gf(),"languageCode")},ti:{name:"tenantId",jb:Xf(qf(),Gf(),"tenantId")}}),rf.Persistence=Xu,rf.Persistence.LOCAL="local",rf.Persistence.SESSION="session",rf.Persistence.NONE="none",Jf(gl.prototype,{delete:{name:"delete",j:[]},nc:{name:"getIdTokenResult",j:[Wf("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Wf("opt_forceRefresh",!0)]},Bc:{name:"linkAndRetrieveDataWithCredential",j:[$f()]},pb:{name:"linkWithCredential",j:[$f()]},Cc:{name:"linkWithPhoneNumber",j:[qf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Dc:{name:"linkWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ec:{name:"linkWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Kc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[$f()]},sb:{name:"reauthenticateWithCredential",j:[$f()]},Lc:{name:"reauthenticateWithPhoneNumber",j:[qf("phoneNumber"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Mc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Nc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",J:"a valid Auth provider",optional:!1,K:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},tb:{name:"sendEmailVerification",j:[Xf(Hf("opt_actionCodeSettings",!0),Gf(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[qf(null,!0)]},bd:{name:"unlink",j:[qf("provider")]},Ab:{name:"updateEmail",j:[qf("email")]},Bb:{name:"updatePassword",j:[qf("password")]},dd:{name:"updatePhoneNumber",j:[$f("phone")]},Cb:{name:"updateProfile",j:[Hf("profile")]},Db:{name:"verifyBeforeUpdateEmail",j:[qf("email"),Xf(Hf("opt_actionCodeSettings",!0),Gf(null,!0),"opt_actionCodeSettings",!0)]}}),Jf(bf.prototype,{execute:{name:"execute"},render:{name:"render"}
2,reset:{name:"reset"},getResponse:{name:"getResponse"}}),Jf(yf.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),Jf(wt.prototype,{na:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),Zf(Qc.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",jb:Wf("appVerificationDisabledForTesting")}}),Jf(Yc.prototype,{confirm:{name:"confirm",j:[qf("verificationCode")]}}),eh(so,"fromJSON",(function(e){e="string"===typeof e?JSON.parse(e):e;for(var t,n=[vo,xo,jo,fo],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[Xf(qf(),Hf(),"json")]),eh(Io,"credential",(function(e,t){return new Oo(e,t)}),[qf("email"),qf("password")]),Jf(Oo.prototype,{w:{name:"toJSON",j:[qf(null,!0)]}}),Jf(bo.prototype,{Ca:{name:"addScope",j:[qf("scope")]},Ka:{name:"setCustomParameters",j:[Hf("customOAuthParameters")]}}),eh(bo,"credential",wo,[Xf(qf(),Hf(),"token")]),eh(Io,"credentialWithLink",Po,[qf("email"),qf("emailLink")]),Jf(_o.prototype,{Ca:{name:"addScope",j:[qf("scope")]},Ka:{name:"setCustomParameters",j:[Hf("customOAuthParameters")]}}),eh(_o,"credential",Eo,[Xf(qf(),Hf(),"token")]),Jf(So.prototype,{Ca:{name:"addScope",j:[qf("scope")]},Ka:{name:"setCustomParameters",j:[Hf("customOAuthParameters")]}}),eh(So,"credential",ko,[Xf(qf(),Xf(Hf(),Gf()),"idToken"),Xf(qf(),Gf(),"accessToken",!0)]),Jf(To.prototype,{Ka:{name:"setCustomParameters",j:[Hf("customOAuthParameters")]}}),eh(To,"credential",Co,[Xf(qf(),Hf(),"token"),qf("secret",!0)]),Jf(yo.prototype,{Ca:{name:"addScope",j:[qf("scope")]},credential:{name:"credential",j:[Xf(qf(),Xf(Hf(),Gf()),"optionsOrIdToken"),Xf(qf(),Gf(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Hf("customOAuthParameters")]}}),Jf(ho.prototype,{w:{name:"toJSON",j:[qf(null,!0)]}}),Jf(co.prototype,{w:{name:"toJSON",j:[qf(null,!0)]}}),eh(Do,"credential",Lo,[qf("verificationId"),qf("verificationCode")]),Jf(Do.prototype,{eb:{name:"verifyPhoneNumber",j:[Xf(qf(),{name:"phoneInfoOptions",J:"valid phone info options",optional:!1,K:function(e){return!!e&&(e.session&&e.phoneNumber?Qf(e.session,oo)&&"string"===typeof e.phoneNumber:e.session&&e.multiFactorHint?Qf(e.session,ao)&&Yf(e.multiFactorHint):e.session&&e.multiFactorUid?Qf(e.session,ao)&&"string"===typeof e.multiFactorUid:!!e.phoneNumber&&"string"===typeof e.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",J:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,K:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}}),Jf(No.prototype,{w:{name:"toJSON",j:[qf(null,!0)]}}),Jf(C.prototype,{toJSON:{name:"toJSON",j:[qf(null,!0)]}}),Jf(Ho.prototype,{toJSON:{name:"toJSON",j:[qf(null,!0)]}}),Jf(Wo.prototype,{toJSON:{name:"toJSON",j:[qf(null,!0)]}}),Jf(nl.prototype,{toJSON:{name:"toJSON",j:[qf(null,!0)]}}),Jf(Zc.prototype,{Qc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}}]}}),Jf(ul.prototype,{Qb:{name:"getSession",j:[]},ec:{name:"enroll",j:[{name:"multiFactorAssertion",J:"a valid multiFactorAssertion",optional:!1,K:function(e){return!!e&&!!e.rb}},qf("displayName",!0)]},ad:{name:"unenroll",j:[Xf({name:"multiFactorInfo",J:"a valid multiFactorInfo",optional:!1,K:Yf},qf(),"multiFactorInfoIdentifier")]}}),Jf(Uf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),eh(bi,"parseLink",Oi,[qf("link")]),eh(Tf,"assertion",(function(e){return new al(e)}),[$f("phone")]),function(){if("undefined"===typeof r||!r.INTERNAL||!r.INTERNAL.registerComponent)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={ActionCodeInfo:{Operation:{EMAIL_SIGNIN:si,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:ai,VERIFY_AND_CHANGE_EMAIL:ui,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:rf,AuthCredential:so,Error:C};eh(e,"EmailAuthProvider",Io,[]),eh(e,"FacebookAuthProvider",bo,[]),eh(e,"GithubAuthProvider",_o,[]),eh(e,"GoogleAuthProvider",So,[]),eh(e,"TwitterAuthProvider",To,[]),eh(e,"OAuthProvider",yo,[qf("providerId")]),eh(e,"SAMLAuthProvider",go,[qf("providerId")]),eh(e,"PhoneAuthProvider",Do,[{name:"auth",J:"an instance of Firebase Auth",optional:!0,K:function(e){return!!(e&&e instanceof rf)}}]),eh(e,"RecaptchaVerifier",Uf,[Xf(qf(),{name:"",J:"an HTML element",optional:!1,K:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Hf("recaptchaParameters",!0),{name:"app",J:"an instance of Firebase App",optional:!0,K:function(e){return!!(e&&e instanceof r.app.App)}}]),eh(e,"ActionCodeURL",bi,[]),eh(e,"PhoneMultiFactorGenerator",Tf,[]),r.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new rf(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),r.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:E((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:E(e.mc,e),addAuthTokenListener:E(e.cc,e),removeAuthTokenListener:E(e.Oc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),r.registerVersion("@firebase/auth","0.15.0"),r.INTERNAL.extendNamespace({User:gl})}()}).apply("undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n(46))},function(e,t,n){"use strict";
2(function(r){Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),o=n(1),a=n(14),s=n(37),u=n(21);function c(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var l=c(i),f=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),a.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:a.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),h=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return a.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),d=function(e){try{if("undefined"!==typeof window&&"undefined"!==typeof window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new f(t)}}catch(n){}return new h},p=d("localStorage"),v=d("sessionStorage"),m=new s.Logger("@firebase/database"),g=function(){var e=1;return function(){return e++}}(),y=function(e){var t=a.stringToByteArray(e),n=new a.Sha1;n.update(t);var r=n.digest();return a.base64.encodeByteArray(r)},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++){var i=e[r];Array.isArray(i)||i&&"object"===typeof i&&"number"===typeof i.length?n+=b.apply(null,i):n+="object"===typeof i?a.stringify(i):i,n+=" "}return n},w=null,_=!0,E=function(e,t){a.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(m.logLevel=s.LogLevel.VERBOSE,w=m.log.bind(m),t&&v.set("logging_enabled",!0)):"function"===typeof e?w=e:(w=null,v.remove("logging_enabled"))},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===_&&(_=!1,null===w&&!0===v.get("logging_enabled")&&E(!0)),w){var n=b.apply(null,e);w(n)}},k=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];S.apply(void 0,o.__spread([e],t))}},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+b.apply(void 0,o.__spread(e));m.error(n)},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+b.apply(void 0,o.__spread(e));throw m.error(n),new Error(n)},O=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+b.apply(void 0,o.__spread(e));m.warn(n)},x=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},I="[MIN_NAME]",P="[MAX_NAME]",A=function(e,t){if(e===t)return 0;if(e===I||t===P)return-1;if(t===I||e===P)return 1;var n=z(e),r=z(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},N=function(e,t){return e===t?0:e<t?-1:1},j=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+a.stringify(t))},R=function(e){if("object"!==typeof e||null===e)return a.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=a.stringify(t[i]),r+=":",r+=R(e[t[i]]);return r+="}"},D=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function L(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var M=function(e){a.assert(!x(e),"Invalid JSON number");var t,n,r,i,o;0===e?(n=0,r=0,t=1/e===-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var s=[];for(o=52;o;o-=1)s.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(t?1:0),s.reverse();var u=s.join(""),c="";for(o=0;o<64;o+=8){var l=parseInt(u.substr(o,8),2).toString(16);1===l.length&&(l="0"+l),c+=l}return c.toLowerCase()},F=new RegExp("^-?(0*)\\d{1,10}$"),z=function(e){if(F.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},U=function(e){try{e()}catch(t){setTimeout((function(){var e=t.stack||"";throw O("Exception was thrown by user callback.",e),t}),Math.floor(0))}},V=function(e,t){var n=setTimeout(e,t);return"object"===typeof n&&n.unref&&n.unref(),n},B=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")}
2,enumerable:!1,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var o=A(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),q=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=a.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!1,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!1,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=a.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=a.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0===this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),W=function(){function e(e,t,n,r,i,o,a){void 0===i&&(i=!1),void 0===o&&(o=""),void 0===a&&(a=!1),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.nodeAdmin=i,this.persistenceKey=o,this.includeNamespaceInQueryParams=a,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=p.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()||this.includeNamespaceInQueryParams},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&p.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(a.assert("string"===typeof e,"typeof type must == string"),a.assert("object"===typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if("long_polling"!==e)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return L(t,(function(e,t){r.push(e+"="+t)}
2)),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var H,K,G=function(e,t){var n=$(e),r=n.namespace;"firebase.com"===n.domain&&C(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||C("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||"undefined"!==typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&O("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var i="ws"===n.scheme||"wss"===n.scheme;return{repoInfo:new W(n.host,n.secure,r,t,i,"",r!==n.subdomain),path:new B(n.pathString)}},$=function(e){var t="",n="",r="",i="",a="",s=!0,u="https",c=443;if("string"===typeof e){var l=e.indexOf("//");l>=0&&(u=e.substring(0,l-1),e=e.substring(l+2));var f=e.indexOf("/");-1===f&&(f=e.length);var h=e.indexOf("?");-1===h&&(h=e.length),t=e.substring(0,Math.min(f,h)),f<h&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(o){}t+="/"+i}return t}(e.substring(f,h)));var d=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=o.__values(e.split("&")),a=i.next();!a.done;a=i.next()){var s=a.value;if(0!==s.length){var u=s.split("=");2===u.length?r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):O("Invalid query segment '"+s+"' in query '"+e+"'")}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,h)));(l=t.indexOf(":"))>=0?(s="https"===u||"wss"===u,c=parseInt(t.substring(l+1),10)):l=t.length;var p=t.slice(0,l);if("localhost"===p.toLowerCase())n="localhost";else if(p.split(".").length<=2)n=p;else{var v=t.indexOf(".");r=t.substring(0,v).toLowerCase(),n=t.substring(v+1),a=r}"ns"in d&&(a=d.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:s,scheme:u,pathString:i,namespace:a}},Q=/[\[\].#$\/\u0000-\u001F\u007F]/,Y=/[\[\].#$\u0000-\u001F\u007F]/,X=function(e){return"string"===typeof e&&0!==e.length&&!Q.test(e)},J=function(e){return"string"===typeof e&&0!==e.length&&!Y.test(e)},Z=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!x(e)||e&&"object"===typeof e&&a.contains(e,".sv")},ee=function(e,t,n,r,i){i&&void 0===n||te(a.errorPrefix(e,t,i),n,r)},te=function(e,t,n){var r=n instanceof B?new q(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"===typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(x(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"===typeof t&&t.length>10485760/3&&a.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"===typeof t){var i=!1,o=!1;if(L(t,(function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!X(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),te(e,n,r),r.pop()})),i&&o)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ne=function(e,t,n,r,i){if(!i||void 0!==n){var o=a.errorPrefix(e,t,i);if(!n||"object"!==typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var s=[];L(n,(function(e,t){var n=new B(e);if(te(o,t,r.child(n)),".priority"===n.getBack()&&!Z(t))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=(r=t[n]).slice(),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);
2else if(!X(i[o]))throw new Error(e+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(B.comparePaths);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&a.contains(r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}}(o,s)}},re=function(e,t,n,r){if(!r||void 0!==n){if(x(n))throw new Error(a.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Z(n))throw new Error(a.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},ie=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(a.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},oe=function(e,t,n,r){if((!r||void 0!==n)&&!X(n))throw new Error(a.errorPrefix(e,t,r)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},ae=function(e,t,n,r){if((!r||void 0!==n)&&!J(n))throw new Error(a.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},se=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),ae(e,t,n,r)},ue=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},ce=function(e,t,n){var r=n.path.toString();if("string"!==typeof n.repoInfo.host||0===n.repoInfo.host.length||!X(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),J(e)}(r))throw new Error(a.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},le=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(a.errorPrefix(e,t,r)+"must be a boolean.")},fe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){a.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),a.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){a.validateArgCount("OnDisconnect.remove",0,1,arguments.length),ue("OnDisconnect.remove",this.path_),a.validateCallback("OnDisconnect.remove",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){a.validateArgCount("OnDisconnect.set",1,2,arguments.length),ue("OnDisconnect.set",this.path_),ee("OnDisconnect.set",1,e,this.path_,!1),a.validateCallback("OnDisconnect.set",2,t,!0);var n=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){a.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),ue("OnDisconnect.setWithPriority",this.path_),ee("OnDisconnect.setWithPriority",1,e,this.path_,!1),re("OnDisconnect.setWithPriority",2,t,!1),a.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new a.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(a.validateArgCount("OnDisconnect.update",1,2,arguments.length),ue("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,O("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ne("OnDisconnect.update",1,e,this.path_,!1),a.validateCallback("OnDisconnect.update",2,t,!0);var i=new a.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),he=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return a.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),de=function(){var e="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",t=0,n=[];return function(r){var i,o=r===t;t=r;var s=new Array(8);for(i=7;i>=0;i--)s[i]=e.charAt(r%64),r=Math.floor(r/64);a.assert(0===r,"Cannot push at time == 0");var u=s.join("");if(o){for(i=11;i>=0&&63===n[i];i--)n[i]=0;n[i]++}else for(i=0;i<12;i++)n[i]=Math.floor(64*Math.random());for(i=0;i<12;i++)u+=e.charAt(n[i]);return a.assert(20===u.length,"nextPushId: Length should be 20."),u}}(),pe=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ve=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new pe(I,e),r=new pe(I,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return pe.MIN},e}(),me=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return H},set:function(e){H=e}
2,enumerable:!1,configurable:!0}),t.prototype.compare=function(e,t){return A(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw a.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return pe.MIN},t.prototype.maxPost=function(){return new pe(P,H)},t.prototype.makePost=function(e,t){return a.assert("string"===typeof e,"KeyIndex indexValue must always be a string."),new pe(e,H)},t.prototype.toString=function(){return".key"},t}(ve),ge=new me;var ye,be,we,_e=function(e){return"number"===typeof e?"number:"+M(e):"string:"+e},Ee=function(e){if(e.isLeafNode()){var t=e.val();a.assert("string"===typeof t||"number"===typeof t||"object"===typeof t&&a.contains(t,".sv"),"Priority must be a string or number.")}else a.assert(e===K||e.isEmpty(),"priority of unexpected type.");a.assert(e===K||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Se=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,a.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Ee(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return ye},set:function(e){ye=e},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(a.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+_e(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?M(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(a.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(r);return a.assert(i>=0,"Unknown leaf type: "+n),a.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var ke,Te,Ce=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?A(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return pe.MIN},t.prototype.maxPost=function(){return new pe(P,new Se("[PRIORITY-POST]",we))},t.prototype.makePost=function(e,t){var n=be(e);return new pe(t,new Se("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ve)),Oe=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var o=1;!e.isEmpty();)if(e=e,o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),xe=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:Pe.EMPTY_NODE,this.right=null!=o?o:Pe.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,
2null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||!!e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Pe.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Pe.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");
2if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check_();if(e!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Ie=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new xe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Pe=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,xe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,xe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Oe(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Oe(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Oe(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Oe(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Ie,e}(),Ae=Math.log(2),Ne=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Ae,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),je=function(e,t,n,r){e.sort(t);var i=function(t,r){var o,a,s=r-t;if(0===s)return null;if(1===s)return o=e[t],a=n?n(o):o,new xe(a,o.node,xe.BLACK,null,null);var u=parseInt(s/2,10)+t,c=i(t,u),l=i(u+1,r);return o=e[u],a=n?n(o):o,new xe(a,o.node,xe.BLACK,c,l)},o=function(t){for(var r=null,o=null,a=e.length,s=function(t,r){var o=a-t,s=a;a-=t;var c=i(o+1,s),l=e[o],f=n?n(l):l;u(new xe(f,l.node,r,null,c))},u=function(e){r?(r.left=e,r=e):(o=e,r=e)},c=0;c<t.count;++c){var l=t.nextBitIsOne(),f=Math.pow(2,t.count-(c+1));l?s(f,xe.BLACK):(s(f,xe.BLACK),s(f,xe.RED))}return o}(new Ne(e.length));return new Pe(r||t,o)},Re={},De=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return a.assert(Re&&Ce,"ChildrenNode.ts has not been loaded"),ke=ke||new e({".priority":Re},{".priority":Ce})},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=a.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof Pe?t:null},e.prototype.hasIndex=function(e){return a.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){a.assert(t!==ge,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],s=!1,u=n.getIterator(pe.Wrap),c=u.getNext();c;)s=s||t.isDefinedOn(c.node),i.push(c),c=u.getNext();r=s?je(i,t.getCompare()):Re;var l=t.toString(),f=o.__assign({},this.indexSet_);f[l]=t;var h=o.__assign({},this.indexes_);return h[l]=r,new e(h,f)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(a.map(this.indexes_,(function(e,i){var o=a.safeGet(r.indexSet_,i);if(a.assert(o,"Missing index implementation for "+i),e===Re){if(o.isDefinedOn(t.node)){for(var s=[],u=n.getIterator(pe.Wrap),c=u.getNext();c;)c.name!==t.name&&s.push(c),c=u.getNext();return s.push(t),je(s,o.getCompare())}return Re}var l=n.get(t.name),f=e;return l&&(f=f.remove(new pe(t.name,l))),f.insert(t,t.node)})),this.indexSet_)}
2,e.prototype.removeFromIndexes=function(t,n){return new e(a.map(this.indexes_,(function(e){if(e===Re)return e;var r=n.get(t.name);return r?e.remove(new pe(t.name,r)):e})),this.indexSet_)},e}();function Le(e,t){return A(e.name,t.name)}function Me(e,t){return A(e,t)}var Fe=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Ee(this.priorityNode_),this.children_.isEmpty()&&a.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Te||(Te=new e(new Pe(Me),null,De.Default))},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Te},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Te:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(a.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new pe(t,n),i=void 0,o=void 0;n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_));var s=i.isEmpty()?Te:this.priorityNode_;return new e(i,s,o)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;a.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild(Ce,(function(a,s){n[a]=s.val(t),r++,o&&e.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1})),!t&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+_e(this.getPriority().val())+":"),this.forEachChild(Ce,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new pe(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new pe(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new pe(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal((function(e){return t(e.name,e.node)})):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getIteratorFrom(e.name,pe.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,(function(e){return e}));for(var r=this.children_.getReverseIteratorFrom(e.name,pe.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===ze?-1:0},e.prototype.withIndex=function(t){if(t===ge||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===ge||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;
2if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Ce),r=t.getIterator(Ce),i=n.getNext(),o=r.getNext();i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===ge?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),ze=new(function(e){function t(){return e.call(this,new Pe(Me),Fe.EMPTY_NODE,De.Default)||this}return o.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Fe.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Fe));Object.defineProperties(pe,{MIN:{value:new pe(I,Fe.EMPTY_NODE)},MAX:{value:new pe(P,ze)}}),me.__EMPTY_NODE=Fe.EMPTY_NODE,Se.__childrenNodeConstructor=Fe,K=ze,function(e){we=e}(ze);function Ue(e,t){if(void 0===t&&(t=null),null===e)return Fe.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),a.assert(null===t||"string"===typeof t||"number"===typeof t||"object"===typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"===typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!==typeof e||".sv"in e)return new Se(e,Ue(t));if(e instanceof Array){var n=Fe.EMPTY_NODE;return L(e,(function(t,r){if(a.contains(e,t)&&"."!==t.substring(0,1)){var i=Ue(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(t,i))}})),n.updatePriority(Ue(t))}var r=[],i=!1;if(L(e,(function(e,t){if("."!==e.substring(0,1)){var n=Ue(t);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new pe(e,n)))}})),0===r.length)return Fe.EMPTY_NODE;var o=je(r,Le,(function(e){return e.name}),Me);if(i){var s=je(r,Ce.getCompare());return new Fe(o,Ue(t),new De({".priority":s},{".priority":Ce}))}return new Fe(o,Ue(t),De.Default)}!function(e){be=e}(Ue);var Ve,Be=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?A(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return pe.MIN},t.prototype.maxPost=function(){return pe.MAX},t.prototype.makePost=function(e,t){var n=Ue(e);return new pe(t,n)},t.prototype.toString=function(){return".value"},t}(ve)),qe=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,a.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return o.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?A(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=Ue(e),r=Fe.EMPTY_NODE.updateChild(this.indexPath_,n);return new pe(t,r)},t.prototype.maxPost=function(){var e=Fe.EMPTY_NODE.updateChild(this.indexPath_,ze);return new pe(P,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ve),We=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return a.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return a.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return a.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return a.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){a.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),ae("DataSnapshot.child",1,t,!1);var n=new B(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,Ce)},e.prototype.hasChild=function(e){a.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),ae("DataSnapshot.hasChild",1,e,!1);var t=new B(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return a.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;if(a.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),a.validateCallback("DataSnapshot.forEach",1,t,!1),this.node_.isLeafNode())return!1;var r=this.node_;return!!r.forEachChild(this.index_,(function(r,i){return t(new e(i,n.ref_.child(r),Ce))}))},e.prototype.hasChildren=function(){return a.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()}
2,enumerable:!1,configurable:!0}),e.prototype.numChildren=function(){return a.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return a.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),He=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+a.stringify(this.snapshot.exportVal())},e}(),Ke=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),Ge=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new He("value",this,new We(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),$e=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,a.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Ke(this,e,t):null},e.prototype.createEvent=function(e,t){a.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new He(e.type,this,new We(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){var n=this;if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var r=Object.keys(t.callbacks_),i=Object.keys(this.callbacks_),o=r.length;if(o===i.length){if(1===o){var a=r[0],s=i[0];return s===a&&(!t.callbacks_[a]||!this.callbacks_[s]||t.callbacks_[a]===this.callbacks_[s])}return i.every((function(e){return t.callbacks_[e]===n.callbacks_[e]}))}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Qe=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(Ve,"Reference.ts has not been loaded"),Ve},set:function(e){Ve=e},enumerable:!1,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===ge){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==I)throw new Error(r);if("string"!==typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==P)throw new Error(r);if("string"!==typeof n)throw new Error(i)}}else if(e.getIndex()===Ce){if(null!=t&&!Z(t)||null!=n&&!Z(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(a.assert(e.getIndex()instanceof qe||e.getIndex()===Be,"unknown index type."),null!=t&&"object"===typeof t||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return a.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){a.validateArgCount("Query.on",2,4,arguments.length),ie("Query.on",1,t,!1),a.validateCallback("Query.on",2,n,!1);var o=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,o.cancel,o.context);else{var s={};s[t]=n,this.onChildEvent(s,o.cancel,o.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new Ge(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new $e(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){a.validateArgCount("Query.off",0,3,arguments.length),ie("Query.off",1,e,!0),a.validateCallback("Query.off",2,t,!0),a.validateContextObject("Query.off",3,n,!0);var r=null,i=null;if("value"===e){var o=t||null;r=new Ge(o,null,n||null)}else e&&(t&&((i={}
2)[e]=t),r=new $e(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var o=this;a.validateArgCount("Query.once",1,4,arguments.length),ie("Query.once",1,t,!1),a.validateCallback("Query.once",2,n,!0);var s=e.getCancelAndContextArgs_("Query.once",r,i),u=!0,c=new a.Deferred;c.promise.catch((function(){}));var l=function(e){u&&(u=!1,o.off(t,l),n&&n.bind(s.context)(e),c.resolve(e))};return this.on(t,l,(function(e){o.off(t,l),s.cancel&&s.cancel.bind(s.context)(e),c.reject(e)})),c.promise},e.prototype.limitToFirst=function(t){if(a.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(a.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!==typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(a.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');ae("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new B(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new qe(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){a.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(ge);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){a.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Ce);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){a.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Be);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.startAt",0,2,arguments.length),ee("Query.startAt",1,t,this.path,!0),oe("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.endAt",0,2,arguments.length),ee("Query.endAt",1,t,this.path,!0),oe("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(a.validateArgCount("Query.equalTo",1,2,arguments.length),ee("Query.equalTo",1,e,this.path,!1),oe("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set
2(by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return a.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return a.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=R(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(a.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){var n="Query.isEqual failed: First argument must be an instance of firebase.database.Query.";throw new Error(n)}var r=this.repo===t.repo,i=this.path.equals(t.path),o=this.queryIdentifier()===t.queryIdentifier();return r&&i&&o},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,a.validateCallback(e,3,r.cancel,!0),r.context=n,a.validateContextObject(e,4,r.context,!0);else if(t)if("object"===typeof t&&null!==t)r.context=t;else{if("function"!==typeof t)throw new Error(a.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),Ye=function(){function e(e){this.node_=e}return e.prototype.getImmediateChild=function(t){return new e(this.node_.getImmediateChild(t))},e.prototype.node=function(){return this.node_},e}(),Xe=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=this.path_.child(t);return new e(this.syncTree_,n)},e.prototype.node=function(){return this.syncTree_.calcCompleteEventCache(this.path_)},e}(),Je=function(e,t,n){return e&&"object"===typeof e?(a.assert(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?Ze(e[".sv"],t,n):"object"===typeof e[".sv"]?et(e[".sv"],t):void a.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},Ze=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:a.assert(!1,"Unexpected server value: "+e)}},et=function(e,t,n){e.hasOwnProperty("increment")||a.assert(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!==typeof r&&a.assert(!1,"Unexpected increment value: "+r);var i=t.node();if(a.assert(null!==i&&"undefined"!==typeof i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var o=i.getValue();return"number"!==typeof o?r:o+r},tt=function(e,t,n,r){return rt(t,new Xe(n,e),r)},nt=function(e,t,n){return rt(e,new Ye(t),n)};function rt(e,t,n){var r,i=e.getPriority().val(),o=Je(i,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var a=e,s=Je(a.getValue(),t,n);return s!==a.getValue()||o!==a.getPriority().val()?new Se(s,Ue(o)):e}var u=e;return r=u,o!==u.getPriority().val()&&(r=r.updatePriority(new Se(o))),u.forEachChild(Ce,(function(e,i){var o=rt(i,t.getImmediateChild(e),n);o!==i&&(r=r.updateImmediateChild(e,o))})),r}var it,ot=function(){function e(){this.value=null,this.children=new Map}return e.prototype.find=function(e){if(null!=this.value)return this.value.getChild(e);if(!e.isEmpty()&&this.children.size>0){var t=e.getFront();return e=e.popFront(),this.children.has(t)?this.children.get(t).find(e):null}return null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value=n,this.children.clear();else if(null!==this.value)this.value=this.value.updateChild(t,n);else{var r=t.getFront();this.children.has(r)||this.children.set(r,new e);var i=this.children.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value=null,this.children.clear(),!0;if(null!==this.value){if(this.value.isLeafNode())return!1;var t=this.value;this.value=null;var n=this;return t.forEachChild(Ce,(function(e,t){n.remember(new B(e),t)})),this.forget(e)}if(this.children.size>0){var r=e.getFront();if(e=e.popFront(),this.children.has(r))this.children.get(r).forget(e)&&this.children.delete(r);return 0===this.children.size}return!0},e.prototype.forEachTree=function(e,t){null!==this.value?t(e,this.value):this.forEachChild((function(n,r){var i=new B(e.toString()+"/"+n);r.forEachTree(i,t)}))}
2,e.prototype.forEachChild=function(e){this.children.forEach((function(t,n){e(n,t)}))},e}();!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(it||(it={}));var at,st,ut=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,a.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),ct=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=it.ACK_USER_WRITE,this.source=ut.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return a.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new B(t));return new e(B.Empty,n,this.revert)}return a.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),lt=function(){function e(e,t){void 0===t&&(at||(at=new Pe(N)),t=at),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return L(t,(function(e,t){n=n.set(new B(e),t)})),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:B.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=i?{path:new B(n).child(i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,(function(){return!0}))},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=(this.children.get(r)||e.Empty).set(t.popFront(),n),o=this.children.insert(r,i);return new e(this.value,o)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?e.Empty:new e(this.value,o)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),o=void 0;return o=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,o)},e.prototype.fold=function(e){return this.fold_(B.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(e.child(r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,B.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),o=this.children.get(i);return o?o.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,B.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(B.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(e.child(n),t)})),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal((function(t,n){n.value&&e(t,n.value)}))},e.Empty=new e(null),e}(),ft=function(){function e(e,t){this.source=e,this.path=t,this.type=it.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,B.Empty):new e(this.source,this.path.popFront())},e}(),ht=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=it.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,B.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),dt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=it.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new B(t));return n.isEmpty()?null:n.value?new ht(this.source,B.Empty,n.value):new e(this.source,B.Empty,n)}return a.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),pt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),vt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new pt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new pt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new pt(Fe.EMPTY_NODE,!1,!1),new pt(Fe.EMPTY_NODE,!1,!1)),e}(),mt=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),gt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,o){a.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=e.getImmediateChild(t);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()===n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(mt.childRemovedChange(t,s)):a.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?o.trackChildChange(mt.childAddedChange(t,n)):o.trackChildChange(mt.childChangedChange(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Ce,(function(e,r){t.hasChild(e)||n.trackChildChange(mt.childRemovedChange(e,r))})),t.isLeafNode()||t.forEachChild(Ce,(function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(mt.childChangedChange(t,r,i))}else n.trackChildChange(mt.childAddedChange(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Fe.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),yt=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;a.assert(t===mt.CHILD_ADDED||t===mt.CHILD_CHANGED||t===mt.CHILD_REMOVED,"Only child changes supported for tracking"),a.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if(t===mt.CHILD_ADDED&&i===mt.CHILD_REMOVED)this.changeMap.set(n,mt.childChangedChange(n,e.snapshotNode,r.snapshotNode));else if(t===mt.CHILD_REMOVED&&i===mt.CHILD_ADDED)this.changeMap.delete(n);else if(t===mt.CHILD_REMOVED&&i===mt.CHILD_CHANGED)this.changeMap.set(n,mt.childRemovedChange(n,r.oldSnap));else if(t===mt.CHILD_CHANGED&&i===mt.CHILD_ADDED)this.changeMap.set(n,mt.childAddedChange(n,e.snapshotNode));else{if(t!==mt.CHILD_CHANGED||i!==mt.CHILD_CHANGED)throw a.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,mt.childChangedChange(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),bt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),wt=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new pt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),_t=function(e,t){this.viewCache=e,this.changes=t},Et=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){a.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),a.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var o,s,u=new yt;if(n.type===it.OVERWRITE){var c=n;c.source.fromUser?o=this.applyUserOverwrite_(t,c.path,c.snap,r,i,u):(a.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),o=this.applyServerOverwrite_(t,c.path,c.snap,r,i,s,u))}else if(n.type===it.MERGE){var l=n;l.source.fromUser?o=this.applyUserMerge_(t,l.path,l.children,r,i,u):(a.assert(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.getServerCache().isFiltered(),o=this.applyServerMerge_(t,l.path,l.children,r,i,s,u))}else if(n.type===it.ACK_USER_WRITE){var f=n;o=f.revert?this.revertUserWrite_(t,f.path,r,i,u):this.ackUserWrite_(t,f.path,f.affectedTree,r,i,u)}else{if(n.type!==it.LISTEN_COMPLETE)throw a.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(t,n.path,r,u)}var h=u.getChanges();return e.maybeAddValueEvent_(t,o,h),new _t(o,h)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=e.getCompleteEventSnap();(n.length>
20||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(mt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var o=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var s=void 0,u=void 0;if(t.isEmpty())if(a.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),l=c instanceof Fe?c:Fe.EMPTY_NODE,f=n.calcCompleteEventChildren(l);s=this.filter_.updateFullNode(e.getEventCache().getNode(),f,i)}else{var h=n.calcCompleteEventCache(e.getCompleteServerSnap());s=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var d=t.getFront();if(".priority"===d){a.assert(1===t.getLength(),"Can't have a priority with additional path components");var p=o.getNode();u=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,p,u);s=null!=v?this.filter_.updatePriority(p,v):o.getNode()}else{var m=t.popFront(),g=void 0;if(o.isCompleteForChild(d)){u=e.getServerCache().getNode();var y=n.calcEventCacheAfterServerOverwrite(t,o.getNode(),u);g=null!=y?o.getNode().getImmediateChild(d).updateChild(m,y):o.getNode().getImmediateChild(d)}else g=n.calcCompleteChild(d,e.getServerCache());s=null!=g?this.filter_.updateChild(o.getNode(),d,g,m,r,i):o.getNode()}}return e.updateEventSnap(s,o.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,o,a){var s,u=e.getServerCache(),c=o?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(u.getNode(),n,null);else if(c.filtersNodes()&&!u.isFiltered()){var l=u.getNode().updateChild(t,n);s=c.updateFullNode(u.getNode(),l,null)}else{var f=t.getFront();if(!u.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),d=u.getNode().getImmediateChild(f).updateChild(h,n);s=".priority"===f?c.updatePriority(u.getNode(),d):c.updateChild(u.getNode(),f,d,h,bt,null)}var p=e.updateServerSnap(s,u.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),v=new wt(r,p,i);return this.generateEventCacheAfterServerEvent_(p,t,r,v,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,o){var a,s,u=e.getEventCache(),c=new wt(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,o),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var l=t.getFront();if(".priority"===l)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var f=t.popFront(),h=u.getNode().getImmediateChild(l),d=void 0;if(f.isEmpty())d=n;else{var p=c.getCompleteChild(l);d=null!=p?".priority"===f.getBack()&&p.getChild(f.parent()).isEmpty()?p:p.updateChild(f,n):Fe.EMPTY_NODE}if(h.equals(d))a=e;else{var v=this.filter_.updateChild(u.getNode(),l,d,f,c,o);a=e.updateEventSnap(v,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,o,a){var s=this,u=t;return r.foreach((function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())&&(u=s.applyUserOverwrite_(u,l,c,i,o,a))})),r.foreach((function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())||(u=s.applyUserOverwrite_(u,l,c,i,o,a))})),u},e.prototype.applyMerge_=function(e,t){return t.foreach((function(t,n){e=e.updateChild(t,n)})),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,o,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var u,c=e;u=t.isEmpty()?n:lt.Empty.setTree(t,n);var l=e.getServerCache().getNode();return u.children.inorderTraversal((function(t,n){if(l.hasChild(t)){var u=e.getServerCache().getNode().getImmediateChild(t),f=s.applyMerge_(u,n);c=s.applyServerOverwrite_(c,new B(t),f,r,i,o,a)}})),u.children.inorderTraversal((function(t,n){var u=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!l.hasChild(t)&&!u){var f=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(f,n);c=s.applyServerOverwrite_(c,new B(t),h,r,i,o,a)}})),c},e.prototype.ackUserWrite_=function(e,t,n,r,i,o){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,a,o);if(t.isEmpty()){var u=lt.Empty;
2return s.getNode().forEachChild(ge,(function(e,t){u=u.set(new B(e),t)})),this.applyServerMerge_(e,t,u,r,i,a,o)}return e}var c=lt.Empty;return n.foreach((function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))})),this.applyServerMerge_(e,t,c,r,i,a,o)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),o=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,t,n,bt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var o;if(null!=n.shadowingWrite(t))return e;var s=new wt(n,e,r),u=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var l=void 0;if(e.getServerCache().isFullyInitialized())l=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var f=e.getServerCache().getNode();a.assert(f instanceof Fe,"serverChildren would be complete if leaf node"),l=n.calcCompleteEventChildren(f)}l=l,c=this.filter_.updateFullNode(u,l,i)}else{var h=t.getFront(),d=n.calcCompleteChild(h,e.getServerCache());null==d&&e.getServerCache().isCompleteForChild(h)&&(d=u.getImmediateChild(h)),(c=null!=d?this.filter_.updateChild(u,h,d,t.popFront(),s,i):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(u,h,Fe.EMPTY_NODE,t.popFront(),s,i):u).isEmpty()&&e.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,o,i))}return o=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(B.Empty),e.updateEventSnap(c,o,this.filter_.filtersNodes())},e}(),St=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],o=[];return e.forEach((function(e){e.type===mt.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(mt.childMovedChange(e.childName,e.snapshotNode))})),this.generateEventsForType_(i,mt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,mt.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,mt.CHILD_MOVED,o,n,t),this.generateEventsForType_(i,mt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,mt.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var o=this,a=n.filter((function(e){return e.type===t}));a.sort(this.compareChanges_.bind(this)),a.forEach((function(t){var n=o.materializeSingleChange_(t,i);r.forEach((function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,o.query_))}))}))},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type||(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_)),e},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw a.assertionError("Should only compare child_ events.");var n=new pe(e.childName,e.snapshotNode),r=new pe(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),kt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new gt(n.getIndex()),i=n.getNodeFilter();this.processor_=new Et(i);var o=t.getServerCache(),a=t.getEventCache(),s=r.updateFullNode(Fe.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(Fe.EMPTY_NODE,a.getNode(),null),c=new pt(s,o.isFullyInitialized(),r.filtersNodes()),l=new pt(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new vt(l,c),this.eventGenerator_=new St(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){a.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach((function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)}))}if(e){for(var i=[],o=0;o<this.eventRegistrations_.length;++o){var s=this.eventRegistrations_[o];if(s.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(o+1));break}}else i.push(s)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===it.MERGE&&null!==e.source.queryId&&(a.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full c
2ache before handling merges"),a.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),a.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild(Ce,(function(e,t){n.push(mt.childAddedChange(e,t))}));return t.isFullyInitialized()&&n.push(mt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),Tt=function(){function e(){this.views=new Map}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(st,"Reference.ts has not been loaded"),st},set:function(e){a.assert(!st,"__referenceConstructor has already been defined"),st=e},enumerable:!1,configurable:!0}),e.prototype.isEmpty=function(){return 0===this.views.size},e.prototype.applyOperation=function(e,t,n){var r,i,s=e.source.queryId;if(null!==s){var u=this.views.get(s);return a.assert(null!=u,"SyncTree gave us an op for an invalid query."),u.applyOperation(e,t,n)}var c=[];try{for(var l=o.__values(this.views.values()),f=l.next();!f.done;f=l.next()){u=f.value;c=c.concat(u.applyOperation(e,t,n))}}catch(h){r={error:h}}finally{try{f&&!f.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return c},e.prototype.addEventRegistration=function(e,t,n,r,i){var o=e.queryIdentifier(),a=this.views.get(o);if(!a){var s=n.calcCompleteEventCache(i?r:null),u=!1;s?u=!0:r instanceof Fe?(s=n.calcCompleteEventChildren(r),u=!1):(s=Fe.EMPTY_NODE,u=!1);var c=new vt(new pt(s,u,!1),new pt(r,i,!1));a=new kt(e,c),this.views.set(o,a)}return a.addEventRegistration(t),a.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i,a,s=t.queryIdentifier(),u=[],c=[],l=this.hasCompleteView();if("default"===s)try{for(var f=o.__values(this.views.entries()),h=f.next();!h.done;h=f.next()){var d=o.__read(h.value,2),p=d[0],v=d[1];c=c.concat(v.removeEventRegistration(n,r)),v.isEmpty()&&(this.views.delete(p),v.getQuery().getQueryParams().loadsAllData()||u.push(v.getQuery()))}}catch(m){i={error:m}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}else(v=this.views.get(s))&&(c=c.concat(v.removeEventRegistration(n,r)),v.isEmpty()&&(this.views.delete(s),v.getQuery().getQueryParams().loadsAllData()||u.push(v.getQuery())));return l&&!this.hasCompleteView()&&u.push(new e.__referenceConstructor(t.repo,t.path)),{removed:u,events:c}},e.prototype.getQueryViews=function(){var e,t,n=[];try{for(var r=o.__values(this.views.values()),i=r.next();!i.done;i=r.next()){var a=i.value;a.getQuery().getQueryParams().loadsAllData()||n.push(a)}}catch(s){e={error:s}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}return n},e.prototype.getCompleteServerCache=function(e){var t,n,r=null;try{for(var i=o.__values(this.views.values()),a=i.next();!a.done;a=i.next()){var s=a.value;r=r||s.getCompleteServerCache(e)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return this.views.get(t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){var e,t;try{for(var n=o.__values(this.views.values()),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.getQuery().getQueryParams().loadsAllData())return i}}catch(a){e={error:a}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return null},e}(),Ct=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new lt(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,o=r.value,a=B.relativePath(i,t);return o=o.updateChild(a,n),new e(this.writeTree_.set(i,o))}var s=new lt(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return L(t,(function(t,r){n=n.addWrite(e.child(t),r)})),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,lt.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(B.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Ce,(function(t,n){e.push(new pe(t,n))})):this.writeTree_.children.inorderTraversal((function(t,n){null!=n.value&&e.push(new pe(t,n.value))})),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new lt(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(e){return function e(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal((function(n,o){".priority"===n?(a.assert(null!==o.value,"Priority writes must al
2ways be leaf nodes"),i=o.value):r=e(t.child(n),o,r)})),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r}(B.Empty,this.writeTree_,e)},e.Empty=new e(new lt(null)),e}();var Ot=function(){function e(){this.visibleWrites_=Ct.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new xt(e,this)},e.prototype.addOverwrite=function(e,t,n,r){a.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){a.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex((function(t){return t.writeId===e}));a.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,o=!1,s=this.allWrites_.length-1;i&&s>=0;){var u=this.allWrites_[s];u.visible&&(s>=n&&this.recordContainsPath_(u,r.path)?i=!1:r.path.contains(u.path)&&(o=!0)),s--}if(i){if(o)return this.resetTree_(),!0;r.snap?this.visibleWrites_=this.visibleWrites_.removeWrite(r.path):L(r.children,(function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))}));return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(t);if(!i&&o.isEmpty())return n;if(i||null!=n||o.hasCompleteWrite(B.Empty)){var a=e.layerTree_(this.allWrites_,(function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))}),t);c=n||Fe.EMPTY_NODE;return a.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var u=this.visibleWrites_.childCompoundWrite(t);if(u.isEmpty())return n;if(null!=n||u.hasCompleteWrite(B.Empty)){var c=n||Fe.EMPTY_NODE;return u.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Fe.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(Ce,(function(e,t){n=n.updateImmediateChild(e,t)})),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Ce,(function(e,t){var r=i.childCompoundWrite(new B(e)).apply(t);n=n.updateImmediateChild(e,r)}
2)),i.getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach((function(e){n=n.updateImmediateChild(e.name,e.node)})),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){a.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(t):o.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,o){var a,s=this.visibleWrites_.childCompoundWrite(e),u=s.getCompleteNode(B.Empty);if(null!=u)a=u;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var c=[],l=o.getCompare(),f=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),h=f.getNext();h&&c.length<r;)0!==l(h,n)&&c.push(h),h=f.getNext();return c},e.prototype.recordContainsPath_=function(e,t){if(e.snap)return e.path.contains(t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&e.path.child(n).contains(t))return!0;return!1},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,B.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=Ct.Empty,i=0;i<e.length;++i){var o=e[i];if(t(o)){var s=o.path,u=void 0;if(o.snap)n.contains(s)?(u=B.relativePath(n,s),r=r.addWrite(u,o.snap)):s.contains(n)&&(u=B.relativePath(s,n),r=r.addWrite(B.Empty,o.snap.getChild(u)));else{if(!o.children)throw a.assertionError("WriteRecord should have .snap or .children");if(n.contains(s))u=B.relativePath(n,s),r=r.addWrites(u,o.children);else if(s.contains(n))if((u=B.relativePath(s,n)).isEmpty())r=r.addWrites(B.Empty,o.children);else{var c=a.safeGet(o.children,u.getFront());if(c){var l=c.getChild(u.popFront());r=r.addWrite(B.Empty,l)}}}}}return r},e}(),xt=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),It=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=lt.Empty,this.pendingWriteTree_=new Ot,this.tagToQueryMap=new Map,this.queryToTagMap=new Map}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new ht(ut.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=lt.fromObject(t);return this.applyOperationToSyncPoints_(new dt(ut.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=lt.Empty;return null!=n.snap?r=r.set(B.Empty,!0):L(n.children,(function(e,t){r=r.set(new B(e),t)})),this.applyOperationToSyncPoints_(new ct(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new ht(ut.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=lt.fromObject(t);return this.applyOperationToSyncPoints_(new dt(ut.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new ft(ut.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=B.relativePath(a,t),c=new ht(ut.forServerTaggedQuery(s),u,n);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=B.relativePath(a,t),c=lt.fromObject(n),l=new dt(ut.forServerTaggedQuery(s),u,c);return this.applyTaggedOperation_(a,l)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),o=i.path,a=i.queryId,s=B.relativePath(o,t),u=new ft(ut.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,u)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,o=!1;this.syncPointTree_.foreachOnPath(r,(function(e,t){var n=B.relativePath(e,r);i=i||t.getCompleteServerCache(n),o=o||t.hasCompleteView()}));var s,u=this.syncPointTree_.get(r);(u?(o=o||u.hasCompleteView(),i=i||u.getCompleteServerCache(B.Empty)):(u=new Tt,this.syncPointTree_=this.syncPointTree_.set(r,u)),null!=i)?s=!0:(s=!1,i=Fe.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=t.getCompleteServerCache(B.Empty);n&&(i=i.updateImmediateChild(e,n))})));var c=u.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var l=e.makeQueryKey_(t);a.assert(!this.queryToTagMap.has(l),"View does not exist, but we have a tag");var f=e.getNextQueryTag_();this.queryToTagMap.set(l,f),this.tagToQueryMap.set(f,l)}var h=this.pendingWriteTree_.childWrites(r),d=u.addEventRegistration(t,n,h,i,s);if(!c&&!o){var p=u.viewForQuery(t);d=d.concat(this.setupListener_(t,p))}return d},e.prototype.removeEventRegistration=function(t,n,r){var i=this,o=t.path,a=this.syncPointTree_.get(o),s=[];
2if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var u=a.removeEventRegistration(t,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var c=u.removed;s=u.events;var l=-1!==c.findIndex((function(e){return e.getQueryParams().loadsAllData()})),f=this.syncPointTree_.findOnPath(o,(function(e,t){return t.hasCompleteView()}));if(l&&!f){var h=this.syncPointTree_.subtree(o);if(!h.isEmpty())for(var d=this.collectDistinctViewsForSubTree_(h),p=0;p<d.length;++p){var v=d[p],m=v.getQuery(),g=this.createListenerForView_(v);this.listenProvider_.startListening(e.queryForListening_(m),this.tagForQuery_(m),g.hashFn,g.onComplete)}}if(!f&&c.length>0&&!r)if(l){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach((function(t){var n=i.queryToTagMap.get(e.makeQueryKey_(t));i.listenProvider_.stopListening(e.queryForListening_(t),n)}));this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,(function(t,n){var r=B.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i}));return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold((function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),L(n,(function(e,t){r=r.concat(t)})),r}))},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),o=this.queryToTagMap.get(i);this.queryToTagMap.delete(i),this.tagToQueryMap.delete(o)}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&
2!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),o=this.createListenerForView_(n),s=this.listenProvider_.startListening(e.queryForListening_(t),i,o.hashFn,o.onComplete),u=this.syncPointTree_.subtree(r);if(i)a.assert(!u.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=u.fold((function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map((function(e){return e.getQuery()})))),L(n,(function(e,t){r=r.concat(t)})),r})),l=0;l<c.length;++l){var f=c[l];this.listenProvider_.stopListening(e.queryForListening_(f),this.tagForQuery_(f))}return s},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Fe.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"===e?n="Client doesn't have permission to access the desired data.":"unavailable"===e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return a.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new B(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap.get(e)},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return this.queryToTagMap.get(n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);a.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(B.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(B.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(B.Empty));var o=[],a=e.path.getFront(),s=e.operationForChild(a),u=t.children.get(a);if(u&&s){var c=n?n.getImmediateChild(a):null,l=r.child(a);o=o.concat(this.applyOperationHelper_(s,u,c,l))}return i&&(o=o.concat(i.applyOperation(e,r,n))),o},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,o=t.get(B.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(B.Empty));var a=[];return t.children.inorderTraversal((function(t,o){var s=n?n.getImmediateChild(t):null,u=r.child(t),c=e.operationForChild(t);c&&(a=a.concat(i.applyOperationDescendantsHelper_(c,o,s,u)))})),o&&(a=a.concat(o.applyOperation(e,r,n))),a},e.nextQueryTag_=1,e}(),Pt=function(){function e(){this.rootNode_=Fe.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),At=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),a.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return a.deepCopy(this.counters_)},e}(),Nt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new At),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),jt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=o.__assign({},e);return this.last_&&L(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Rt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new jt(e);var n=1e4+2e4*Math.random();V(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;L(t,(function(t,i){i>0&&a.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)})),r&&this.server_.reportStats(n),V(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),Dt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new Lt(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.equals(e)}))},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_((function(t){return t.contains(e)||e.contains(t)}))},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),Lt=function(){function e(e){this.path_=e,this.events_=[]}
2return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();w&&S("event: "+t.toString()),U(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Mt=function(){function e(e){this.allowedEvents_=e,this.listeners_={},a.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=o.__spread(this.listeners_[e]),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){a.assert(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),Ft=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!==typeof document&&"undefined"!==typeof document.addEventListener&&("undefined"!==typeof document.hidden?(n="visibilitychange",t="hidden"):"undefined"!==typeof document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):"undefined"!==typeof document.msHidden?(n="msvisibilitychange",t="msHidden"):"undefined"!==typeof document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,(function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))}),!1),r}return o.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Mt),zt=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||a.isMobileCordova()||(window.addEventListener("online",(function(){t.online_||(t.online_=!0,t.trigger("online",!0))}),!1),window.addEventListener("offline",(function(){t.online_&&(t.online_=!1,t.trigger("online",!1))}),!1)),t}return o.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Mt),Ut=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&U((function(){n.onMessage_(e[t])}))},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Vt=function(){function e(e,t,n,r,i){this.connId=e,this.repoInfo=t,this.applicationId=n,this.transportSessionId=r,this.lastSessionId=i,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=k(e),this.stats_=Nt.getCollection(t),this.urlFn=function(e){return t.connectionURL("long_polling",e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Ut(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout((function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null}),Math.floor(3e4)),function(e){if(a.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",(function(){"complete"===document.readyState&&n()})),window.attachEvent("onload",n))}}((function(){if(!n.isClosed_){n.scriptTagHolder=new Bt((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.__read(e,5),i=r[0],a=r[1],s=r[2];r[3],r[4];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"===i)n.id=a,n.password=s;else{if("close"!==i)throw new Error("Unrecognized command received: "+i);a?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(a,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=o.__read(e,2),i=r[0],a=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,a)}),(function(){n.onClosed_()}),n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,(function(){}))}}))},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return!a.isNodeSdk()&&(!!e.forceAllow_||!e.forceDisallow_&&"undefined"!==typeof document&&null!=document.createElement&&!("object"===typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"===typeof Windows&&"object"===typeof Windows.UI))},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}
2,e.prototype.send=function(e){var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=a.base64Encode(t),r=D(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!a.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=a.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),Bt=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,a.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=g(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))o='<script>document.domain="'+document.domain+'";<\/script>';var s="<html><body>"+o+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(u){S("frame writing exception"),u.stack&&S(u.stack),S(u)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||S("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var e=this;this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout((function(){null!==e.myIFrame&&(document.body.removeChild(e.myIFrame),e.myIFrame=null)}),Math.floor(0)));var t=this.onDisconnect;t&&(this.onDisconnect=null,t())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t);var r=function(){n.outstandingRequests.delete(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,(function(){clearTimeout(i),r()}))},e.prototype.addTag=function(e,t){var n=this;a.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout((function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){S("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}}),Math.floor(1))},e}(),qt="";var Wt=null;"undefined"!==typeof MozWebSocket?Wt=MozWebSocket:"undefined"!==typeof WebSocket&&(Wt=WebSocket);var Ht=function(){function e(t,n,r,i,o){this.connId=t,this.applicationId=r,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=k(this.connId),this.stats_=Nt.getCollection(n),this.connURL=e.connectionURL_(n,i,o),this.nodeAdmin=n.nodeAdmin}return e.connectionURL_=function(e,t,n){var r={v:"5"};return!a.isNodeSdk()&&"undefined"!==typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(a.isNodeSdk()){var i=this.nodeAdmin?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/5/"+qt+"/"+r.platform+"/"+i,"X-Firebase-GMPID":this.applicationId||""}},s=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}),u=0===this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;u&&(o.proxy={origin:u}),this.mySock=new Wt(this.connURL,[],o)}else{o={headers:{"X-Firebase-GMPID":this.applicationId||""}};this.mySock=new Wt(this.connURL,[],o)}}catch(l){this.log_("Error instantiating WebSocket.");var c=l.message||l.data;return c&&this.log_(c),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0}
2,this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!==typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Wt&&!e.forceDisallow_},e.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=a.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(a.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=D(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(t){this.log_("Exception thrown from WebSocket.send():",t.message||t.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Kt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Vt,Ht]},enumerable:!1,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=Ht&&Ht.isAvailable(),a=i&&!Ht.previouslyFailed();if(t.webSocketOnly&&(i||O("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),a=!0),a)this.transports_=[Ht];else{var s=this.transports_=[];try{for(var u=o.__values(e.ALL_TRANSPORTS),c=u.next();!c.done;c=u.next()){var l=c.value;l&&l.isAvailable()&&s.push(l)}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Gt=function(){function e(e,t,n,r,i,o,a,s){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.onMessage_=r,this.onReady_=i,this.onDisconnect_=o,this.onKill_=a,this.lastSessionId=s,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=k("c:"+this.id+":"),this.transportManager_=new Kt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout((function(){e.conn_&&e.conn_.open(n,r)}),Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=V((function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>
2102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))}),Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!==t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=j("t",e),n=j("d",e);if("c"===t)this.onSecondaryControl_(n);else{if("d"!==t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=j("t",e),n=j("d",e);"c"===t?this.onControl_(n):"d"===t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=j("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?T("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):T("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&O("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),V((function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())}),Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):V((function(){n.sendPingOnPrimaryIfNecessary_()}),Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(p.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),$t=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),Qt=function(e){function t(n,r,i,o,s,u,c){var l=e.call(this)||this;if(l.repoInfo_=n,l.applicationId_=r,l.onDataUpdate_=i,l.onConnectStatus_=o,l.onServerInfoUpdate_=s,l.authTokenProvider_=u,l.authOverride_=c,l.id=t.nextPersistentConnectionId_++,l.log_=k("p:"+l.id+":"),l.interruptReasons_={},l.listens=new Map,l.outstandingPuts_=[],l.outstandingPutCount_=0,l.onDisconnectRequestQueue_=[],l.connected_=!1,l.reconnectDelay_=1e3,l.maxReconnectDelay_=3e5,l.securityDebugCallback_=null,l.lastSessionId=null,l.establishConnectionTimer_=null,l.visible_=!1,l.requestCBHash_={},l.requestNumber_=0,l.realtime_=null,l.authToken_=null,l.forceTokenRefresh_=!1,l.invali
2dAuthTokenCount_=0,l.firstConnection_=!0,l.lastConnectionAttemptTime_=null,l.lastConnectionEstablishedTime_=null,c&&!a.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return l.scheduleConnect_(0),Ft.getInstance().on("visible",l.onVisible_,l),-1===n.host.indexOf("fblocal")&&zt.getInstance().on("online",l.onOnline_,l),l}return o.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(a.stringify(i)),a.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),o=e.path.toString();this.log_("Listen called for "+o+" "+i),this.listens.has(o)||this.listens.set(o,new Map),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),a.assert(!this.listens.get(o).has(i),"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(o).set(i,s),this.connected_&&this.sendListen_(s)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),o=r.queryIdentifier();this.log_("Listen on "+i+" for "+o);var a={p:i};e.tag&&(a.q=r.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,(function(a){var s=a.d,u=a.s;t.warnOnListenWarnings_(s,r),(n.listens.get(i)&&n.listens.get(i).get(o))===e&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(i,o),e.onComplete&&e.onComplete(u,s))}))},t.warnOnListenWarnings_=function(e,t){if(e&&"object"===typeof e&&a.contains(e,"w")){var n=a.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();O("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},(function(){})),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||a.isAdmin(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=a.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"===typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,(function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))}))}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,(function(e){r&&setTimeout((function(){r(e.s,e.d)}),Math.floor(0))}))},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,(function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)}))},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,(function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}}))}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+a.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):T("Unrecognized action received from server: "+a.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;a.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout((function(){t.establishConnectionTimer_=null,t.establishConnection_()}),Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=1e3),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);
2t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){var e=this;if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var n=this.onDataMessage_.bind(this),r=this.onReady_.bind(this),i=this.onRealtimeDisconnect_.bind(this),o=this.id+":"+t.nextConnectionId_++,s=this,u=this.lastSessionId,c=!1,l=null,f=function(){l?l.close():(c=!0,i())};this.realtime_={close:f,sendRequest:function(e){a.assert(l,"sendRequest call when we're not connected not allowed."),l.sendRequest(e)}};var h=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(h).then((function(e){c?S("getToken() completed but was canceled"):(S("getToken() completed. Creating connection."),s.authToken_=e&&e.accessToken,l=new Gt(o,s.repoInfo_,s.applicationId_,n,r,i,(function(e){O(e+" ("+s.repoInfo_.toString()+")"),s.interrupt("server_kill")}),u))})).then(null,(function(t){s.log_("Failed to get token: "+t),c||(e.repoInfo_.nodeAdmin&&O(t),f())}))}},t.prototype.interrupt=function(e){S("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){S("Resuming connection for reason: "+e),delete this.interruptReasons_[e],a.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=1e3,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map((function(e){return R(e)})).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new B(e).toString();if(this.listens.has(r)){var i=this.listens.get(r);n=i.get(t),i.delete(t),0===i.size&&this.listens.delete(r)}else n=void 0;return n},t.prototype.onAuthRevoked_=function(e,t){S("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e,t,n,r;this.tryAuth();try{for(var i=o.__values(this.listens.values()),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(s.values())),c=u.next();!c.done;c=u.next()){var l=c.value;this.sendListen_(l)}}catch(d){n={error:d}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}for(var f=0;f<this.outstandingPuts_.length;f++)this.outstandingPuts_[f]&&this.sendPut_(f);for(;this.onDisconnectRequestQueue_.length;){var h=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(h.action,h.pathString,h.data,h.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";a.isNodeSdk()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+qt.replace(/\./g,"-")]=1,a.isMobileCordova()?e["framework.cordova"]=1:a.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=zt.getInstance().currentlyOnline();return a.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}($t),Yt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=k("p:rest:"),i.listens_={},i}return o.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(a.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var o=this,s=e.path.toString();this.log_("Listen called for "+s+" "+e.queryIdentifier());var u=t.getListenId_(e,r),c={};this.listens_[u]=c;var l=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",l,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(s,n,!1,r),a.safeGet(o.listens_,u)===c)&&i(e?401===e?"permission_denied":"rest_error:"+e:"ok",null)}))},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then((function(i){var o=i&&i.accessToken;o&&(t.auth=o);var s=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+a.querystring(t);r.log_("Sending REST request for "+s);var u=new XMLHttpRequest;u.onreadystatechange=function(){if(n&&4===u.readyState){r.log_("REST Response for "+s+" received. status:",u.status,"response:",u.responseText);var e=null;if(u.status>=200&&u.status<300){try{e=a.jsonEval(u.responseText)}catch(t){O("Failed to parse JSON response for "+s+": "+u.responseText)}n(null,e)}else 401!==u.status&&404!==u.status&&O("Got unsuccessful REST response for "+s+" Status: "+u.status),n(u.status);n=null}},u.open("GET",s,!0),u.send()}))},t}($t),Xt=function(){function e(e,t,n,r){var i=this;if(this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Dt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new ot,this.persistentConnection_=null,this.stats_=Nt.getCollection(e),t||("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)this.server_=new Yt(this.repoInfo_,this.onDataUpdate_.bind(this),r),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if("undefined"!==typeof o&&null!==o){if("object"!==typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{a.stringify(o)}catch(s){throw new Error("Invalid authOverride provided: "+s)}}this.persistentConnection_=new Qt(this.repoInfo_,n.options.appId,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),r,o),this.server_=this.persistentConnection_}r.addTokenChangeListener((function(e){i.server_.refreshAuthToken(e)})),this.statsReporter_=Nt.getOrCreateReporter(e,(function(){return new Rt(i.stats_,i.server_)})),this.transactionsInit_(),this.infoData_=new Pt,this.infoSyncTree_=new It({startListening:function(e,t,n,r){var o=[],a=i.infoData_.getNode(e.path);return a.isEmpty()||(o=i.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout((function(){r("ok")}),0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new It({startListening:function(e,t,n,r){return i.server_.listen(e,n,t,(function(t,n){var o=r(t,n);i.eventQueue_.raiseEventsForChangedPath(e.path,o)})),[]},stopListening:function(e,t){i.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new B(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e}
2,e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new B(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var o=[];if(r)if(n){var s=a.map(t,(function(e){return Ue(e)}));o=this.serverSyncTree_.applyTaggedQueryMerge(i,s,r)}else{var u=Ue(t);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,u,r)}else if(n){var c=a.map(t,(function(e){return Ue(e)}));o=this.serverSyncTree_.applyServerMerge(i,c)}else{var l=Ue(t);o=this.serverSyncTree_.applyServerOverwrite(i,l)}var f=i;o.length>0&&(f=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(f,o)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;L(e,(function(e,n){t.updateInfo_(e,n)}))},e.prototype.updateInfo_=function(e,t){var n=new B("/.info/"+e),r=Ue(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var o=this.generateServerValues(),a=Ue(t,n),s=this.serverSyncTree_.calcCompleteEventCache(e),u=nt(a,s,o),c=this.getNextWriteId_(),l=this.serverSyncTree_.applyUserOverwrite(e,u,c,!0);this.eventQueue_.queueEvents(l),this.server_.put(e.toString(),a.val(!0),(function(t,n){var o="ok"===t;o||O("set at "+e+" failed: "+t);var a=i.serverSyncTree_.ackUserWrite(c,!o);i.eventQueue_.raiseEventsForChangedPath(e,a),i.callOnCompleteCallback(r,t,n)}));var f=this.abortTransactions_(e);this.rerunTransactions_(f),this.eventQueue_.raiseEventsForChangedPath(f,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,o=this.generateServerValues(),a={};if(L(t,(function(t,n){i=!1,a[t]=tt(e.child(t),Ue(n),r.serverSyncTree_,o)})),i)S("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var s=this.getNextWriteId_(),u=this.serverSyncTree_.applyUserMerge(e,a,s);this.eventQueue_.queueEvents(u),this.server_.merge(e.toString(),t,(function(t,i){var o="ok"===t;o||O("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(s,!o),u=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(u,a),r.callOnCompleteCallback(n,t,i)})),L(t,(function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)})),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=new ot;this.onDisconnect_.forEachTree(B.Empty,(function(r,i){var o=tt(r,i,e.serverSyncTree_,t);n.remember(r,o)}));var r=[];n.forEachTree(B.Empty,(function(t,n){r=r.concat(e.serverSyncTree_.applyServerOverwrite(t,n));var i=e.abortTransactions_(t);e.rerunTransactions_(i)})),this.onDisconnect_=new ot,this.eventQueue_.raiseEventsForChangedPath(B.Empty,r)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),(function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)}))},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=Ue(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),(function(t,o){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,o)}))},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,o=Ue(t,n);this.server_.onDisconnectPut(e.toString(),o.val(!0),(function(t,n){"ok"===t&&i.onDisconnect_.remember(e,o),i.callOnCompleteCallback(r,t,n)}))},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(a.isEmpty(t))return S("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,(function(i,o){"ok"===i&&L(t,(function(t,n){var i=Ue(n);r.onDisconnect_.remember(e.child(t),i)})),r.callOnCompleteCallback(n,i,o)}))},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!==typeof console){var t;e?(this.statsListener_||(this.statsListener_=new jt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce((function(e,t){return Math.max(t.length,e)}),0);L(t,(function(e,t){for(var r=e,i=e.length;i<n+2;i++)r+=" ";console.log(r+t)}))}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),S.apply(void 0,o.__spread([n],e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&U((function(){if("ok"===t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var o=new Error(i);o.code=r,e(o)}}))},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new ln(this))}
2,enumerable:!1,configurable:!0}),e}(),Jt=function(){function e(t){this.indexedFilter_=new gt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,o){return this.matches(new pe(t,n))||(n=Fe.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Fe.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Fe.EMPTY_NODE);var i=this;return t.forEachChild(Ce,(function(e,t){i.matches(new pe(e,t))||(r=r.updateImmediateChild(e,Fe.EMPTY_NODE))})),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),Zt=function(){function e(e){this.rangedFilter_=new Jt(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,o){return this.rangedFilter_.matches(new pe(t,n))||(n=Fe.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,o):this.fullLimitUpdateChild_(e,t,n,i,o)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Fe.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Fe.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;i.hasNext()&&o<this.limit_;){var a=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Fe.EMPTY_NODE);var s=void 0,u=void 0,c=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),u=this.rangedFilter_.getStartPost();var l=this.index_.getCompare();c=function(e,t){return l(t,e)}}else i=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),u=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();o=0;for(var f=!1;i.hasNext();){a=i.getNext();!f&&c(s,a)<=0&&(f=!0),f&&o<this.limit_&&c(a,u)<=0?o++:r=r.updateImmediateChild(a.name,Fe.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var o;if(this.reverse_){var s=this.index_.getCompare();o=function(e,t){return s(t,e)}}else o=this.index_.getCompare();var u=e;a.assert(u.numChildren()===this.limit_,"");var c=new pe(t,n),l=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),f=this.rangedFilter_.matches(c);if(u.hasChild(t)){for(var h=u.getImmediateChild(t),d=r.getChildAfterChild(this.index_,l,this.reverse_);null!=d&&(d.name===t||u.hasChild(d.name));)d=r.getChildAfterChild(this.index_,d,this.reverse_);var p=null==d?1:o(d,c);if(f&&!n.isEmpty()&&p>=0)return null!=i&&i.trackChildChange(mt.childChangedChange(t,n,h)),u.updateImmediateChild(t,n);null!=i&&i.trackChildChange(mt.childRemovedChange(t,h));var v=u.updateImmediateChild(t,Fe.EMPTY_NODE);return null!=d&&this.rangedFilter_.matches(d)?(null!=i&&i.trackChildChange(mt.childAddedChange(d.name,d.node)),v.updateImmediateChild(d.name,d.node)):v}return n.isEmpty()?e:f&&o(l,c)>=0?(null!=i&&(i.trackChildChange(mt.childRemovedChange(l.name,l.node)),i.trackChildChange(mt.childAddedChange(t,n))),u.updateImmediateChild(t,n).updateImmediateChild(l.name,Fe.EMPTY_NODE)):e},e}(),en=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ce}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:
2I},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:P},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return a.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==Ce&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===Ce},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new gt(this.getIndex()):this.hasLimit()?new Zt(this):new Jt(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()||(this.index_===Ce?t=n.PRIORITY_INDEX:this.index_===Be?t=n.VALUE_INDEX:this.index_===ge?t=n.KEY_INDEX:(a.assert(this.index_ instanceof qe,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=a.stringify(t),this.startSet_&&(r[n.START_AT]=a.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+a.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=a.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+a.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_)),r},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),tn=function(e){function t(t,n){if(!(t instanceof Xt))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,en.DEFAULT,!1)||this}return o.__extends(t,e),t.prototype.getKey=function(){return a.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return a.validateArgCount("Reference.child",1,1,arguments.length),"number"===typeof e?e=String(e):e instanceof B||(null===this.path.getFront()?se("Reference.child",1,e,!1):ae("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){a.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){a.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){a.validateArgCount("Reference.set",1,2,arguments.length),ue("Reference.set",this.path),ee("Reference.set",1,e,this.path,!1),a.validateCallback("Reference.set",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(a.validateArgCount("Reference.update",1,2,arguments.length),ue("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];
2e=n,O("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ne("Reference.update",1,e,this.path,!1),a.validateCallback("Reference.update",2,t,!0);var i=new a.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(a.validateArgCount("Reference.setWithPriority",2,3,arguments.length),ue("Reference.setWithPriority",this.path),ee("Reference.setWithPriority",1,e,this.path,!1),re("Reference.setWithPriority",2,t,!1),a.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new a.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return a.validateArgCount("Reference.remove",0,1,arguments.length),ue("Reference.remove",this.path),a.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(a.validateArgCount("Reference.transaction",1,3,arguments.length),ue("Reference.transaction",this.path),a.validateCallback("Reference.transaction",1,e,!1),a.validateCallback("Reference.transaction",2,t,!0),le("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new a.Deferred;"function"===typeof t&&r.promise.catch((function(){}));var i=function(e,n,i){e?r.reject(e):r.resolve(new he(n,i)),"function"===typeof t&&t(e,n,i)};return this.repo.startTransaction(this.path,e,i,n),r.promise},t.prototype.setPriority=function(e,t){a.validateArgCount("Reference.setPriority",1,2,arguments.length),ue("Reference.setPriority",this.path),re("Reference.setPriority",1,e,!1),a.validateCallback("Reference.setPriority",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){a.validateArgCount("Reference.push",0,2,arguments.length),ue("Reference.push",this.path),ee("Reference.push",1,e,this.path,!0),a.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=de(r),o=this.child(i),s=this.child(i);return n=null!=e?o.set(e,t).then((function(){return s})):Promise.resolve(s),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"===typeof t&&n.catch((function(){})),o},t.prototype.onDisconnect=function(){return ue("Reference.onDisconnect",this.path),new fe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!1,configurable:!0}),t}(Qe);Qe.__referenceConstructor=tn,Tt.__referenceConstructor=tn;var nn,rn=function(){this.children={},this.childCount=0,this.value=null},on=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new rn),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n=t instanceof B?t:new B(t),r=this,i=n.getFront();null!==i;){r=new e(i,r,a.safeGet(r.node_.children,i)||new rn),i=(n=n.popFront()).getFront()}return r},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){a.assert("undefined"!==typeof e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;L(this.node_.children,(function(r,i){t(new e(r,n,i))}))},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild((function(t){t.forEachDescendant(e,!0,n)})),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild((function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)}))},e.prototype.path=function(){return new B(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=a.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(nn||(nn={})),Xt.MAX_TRANSACTION_RETRIES_=25,Xt.prototype.transactionsInit_=function(){this.transactionQueueTree_=new on},Xt.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},o=new tn(this,e);o.on("value",i);var s={path:e,update:t,onComplete:n,status:null,order:g(),applyLocally:r,retryCount:0,unwatcher:function(){o.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=this.getLatestState_(e);s.currentInputSnapshot=u;var c=s.update(u.val());if(void 0===c){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var l=new We(s.currentInputSnapshot,new tn(this,s.path),Ce);s.onComplete(null,!1,l)}}else{te("transaction failed: Data returned ",c,s.path),s.status=nn.RUN;var f=this.transactionQueueTree_.subTree(e),h=f.getValue()||[];h.push(s),f.setValue(h);var d=void 0;if("object"===typeof c&&null!==c&&a.contains(c,".priority"))d=a.safeGet(c,".priority"),a.assert(Z(d),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else d=(this.serverSyncTree_.calcCompleteEventCache(e)||Fe.EMPTY_NODE).getPriority().val();d=d;var p=this.generateServerValues(),v=Ue(c,d),m=nt(v,u,p);s.currentOutputSnapshotRaw=v,s.currentOutputSnapshotResolved=m,s.currentWriteId=this.getNextWriteId_();var y=this.serverSyncTree_.applyUserOverwrite(e,m,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,y),this.sendReadyTransactions_()}},Xt.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Fe.EMPTY_NODE},Xt.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);a.assert(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return e.status===nn.RUN}
2))&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild((function(e){t.sendReadyTransactions_(e)}))},Xt.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map((function(e){return e.currentWriteId})),i=this.getLatestState_(e,r),o=i,s=i.hash(),u=0;u<t.length;u++){var c=t[u];a.assert(c.status===nn.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=nn.SENT,c.retryCount++;var l=B.relativePath(e,c.path);o=o.updateChild(l,c.currentOutputSnapshotRaw)}var f=o.val(!0),h=e;this.server_.put(h.toString(),f,(function(r){n.log_("transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=0;a<t.length;a++){if(t[a].status=nn.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,u=new tn(n,t[a].path),c=new We(s,u,Ce);o.push(t[a].onComplete.bind(null,null,!0,c))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(a=0;a<o.length;a++)U(o[a])}else{if("datastale"===r)for(a=0;a<t.length;a++)t[a].status===nn.SENT_NEEDS_ABORT?t[a].status=nn.NEEDS_ABORT:t[a].status=nn.RUN;else{O("transaction at "+h.toString()+" failed: "+r);for(a=0;a<t.length;a++)t[a].status=nn.NEEDS_ABORT,t[a].abortReason=r}n.rerunTransactions_(e)}}),s)},Xt.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},Xt.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],i=[],o=e.filter((function(e){return e.status===nn.RUN})).map((function(e){return e.currentWriteId})),s=0;s<e.length;s++){var u=e[s],c=B.relativePath(t,u.path),l=!1,f=void 0;if(a.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),u.status===nn.NEEDS_ABORT)l=!0,f=u.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else if(u.status===nn.RUN)if(u.retryCount>=Xt.MAX_TRANSACTION_RETRIES_)l=!0,f="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else{var h=this.getLatestState_(u.path,o);u.currentInputSnapshot=h;var d=e[s].update(h.val());if(void 0!==d){te("transaction failed: Data returned ",d,u.path);var p=Ue(d);"object"===typeof d&&null!=d&&a.contains(d,".priority")||(p=p.updatePriority(h.getPriority()));var v=u.currentWriteId,m=this.generateServerValues(),g=nt(p,h,m);u.currentOutputSnapshotRaw=p,u.currentOutputSnapshotResolved=g,u.currentWriteId=this.getNextWriteId_(),o.splice(o.indexOf(v),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(u.path,g,u.currentWriteId,u.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(v,!0))}else l=!0,f="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],l&&(e[s].status=nn.COMPLETED,n=e[s].unwatcher,setTimeout(n,Math.floor(0)),e[s].onComplete))if("nodata"===f){var y=new tn(this,e[s].path),b=e[s].currentInputSnapshot,w=new We(b,y,Ce);r.push(e[s].onComplete.bind(null,null,!1,w))}else r.push(e[s].onComplete.bind(null,new Error(f),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(s=0;s<r.length;s++)U(r[s]);this.sendReadyTransactions_()}},Xt.prototype.getAncestorTransactionNode_=function(e){var t,n=this.transactionQueueTree_;for(t=e.getFront();null!==t&&null===n.getValue();)n=n.subTree(t),t=(e=e.popFront()).getFront();return n},Xt.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort((function(e,t){return e.order-t.order})),t},Xt.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild((function(e){n.aggregateTransactionQueuesForNode_(e,t)}))},Xt.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==nn.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild((function(e){t.pruneCompletedTransactionsBelowNode_(e)}))},Xt.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor((function(e){t.abortTransactionsOnNode_(e)})),this.abortTransactionsOnNode_(r),r.forEachDescendant((function(e){t.abortTransactionsOnNode_(e)})),n},Xt.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,o=0;o<t.length;o++)if(t[o].status===nn.SENT_NEEDS_ABORT);else if(t[o].status===nn.SENT)a.assert(i===o-1,"All SENT items should be at beginning of queue."),i=o,t[o].status=nn.SENT_NEEDS_ABORT,t[o].abortReason="set";else if(a.assert(t[o].status===nn.RUN,"Unexpected transaction status in abort"),t[o].unwatcher(),r
2=r.concat(this.serverSyncTree_.ackUserWrite(t[o].currentWriteId,!0)),t[o].onComplete){n.push(t[o].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(o=0;o<n.length;o++)U(n[o])}};var an,sn=function(){function e(e,t){var n=this;this.app_=e,this.authProvider_=t,this.auth_=null,this.auth_=t.getImmediate({optional:!0}),this.auth_||t.get().then((function(e){return n.auth_=e}))}return e.prototype.getToken=function(e){return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(S("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)})):Promise.resolve(null)},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):(setTimeout((function(){return e(null)}),0),this.authProvider_.get().then((function(t){return t.addAuthTokenListener(e)})))},e.prototype.removeTokenChangeListener=function(e){this.authProvider_.get().then((function(t){return t.removeAuthTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',O(e)},e}(),un=function(){function e(){}return e.prototype.getToken=function(t){return Promise.resolve({accessToken:e.EMULATOR_AUTH_TOKEN})},e.prototype.addTokenChangeListener=function(t){t(e.EMULATOR_AUTH_TOKEN)},e.prototype.removeTokenChangeListener=function(e){},e.prototype.notifyForInvalidToken=function(){},e.EMULATOR_AUTH_TOKEN="owner",e}(),cn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return an||(an=new e),an},e.prototype.interrupt=function(){var e,t,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=u.next();!c.done;c=u.next()){var l=c.value;this.repos_[s][l].interrupt()}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(h){e={error:h}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.resume=function(){var e,t,n,r;try{for(var i=o.__values(Object.keys(this.repos_)),a=i.next();!a.done;a=i.next()){var s=a.value;try{for(var u=(n=void 0,o.__values(Object.keys(this.repos_[s]))),c=u.next();!c.done;c=u.next()){var l=c.value;this.repos_[s][l].resume()}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(h){e={error:h}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}},e.prototype.databaseFromApp=function(e,t,n,i){var o=n||e.options.databaseURL;void 0===o&&(e.options.projectId||C("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),S("Using default host for project ",e.options.projectId),o=e.options.projectId+"-default-rtdb.firebaseio.com");var a,s=G(o,i),u=s.repoInfo,c=void 0;"undefined"!==typeof r&&(c=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}).FIREBASE_DATABASE_EMULATOR_HOST),c?(a=!0,o="http://"+c+"?ns="+u.namespace,u=(s=G(o,i)).repoInfo):a=!s.repoInfo.secure;var l=i&&a?new un:new sn(e,t);return ce("Invalid Firebase Database URL",1,s),s.path.isEmpty()||C("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(u,e,l).database},e.prototype.deleteRepo=function(e){var t=a.safeGet(this.repos_,e.app.name);t&&a.safeGet(t,e.repoInfo_.toURLString())===e||C("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t,n){var r=a.safeGet(this.repos_,t.name);r||(r={},this.repos_[t.name]=r);var i=a.safeGet(r,e.toURLString());return i&&C("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),i=new Xt(e,this.useRestClient_,t,n),r[e.toURLString()]=i,i},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),ln=function(){function e(e){this.repo_=e,e instanceof Xt||C("Don't call new Database() directly - please use firebase.database()."),this.root_=new tn(e,B.Empty),this.INTERNAL=new fn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app}
2,enumerable:!1,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),a.validateArgCount("database.ref",0,1,arguments.length),e instanceof tn?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),a.validateArgCount(t,1,1,arguments.length);var n=G(e,this.repo_.repoInfo_.nodeAdmin);ce(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&C(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&C("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){a.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){a.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"},increment:function(e){return{".sv":{increment:e}}}},e}(),fn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return o.__awaiter(this,void 0,void 0,(function(){return o.__generator(this,(function(e){return this.database.checkDeleted_("delete"),cn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]}))}))},e}(),hn=Object.freeze({__proto__:null,forceLongPolling:function(){Ht.forceDisallow(),Vt.forceAllow()},forceWebSockets:function(){Vt.forceDisallow()},isWebSocketsAvailable:function(){return Ht.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),dn=Qt;Qt.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Qt.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var pn=Gt,vn=W,mn=Object.freeze({__proto__:null,DataConnection:dn,RealTimeConnection:pn,hijackHash:function(e){var t=Qt.prototype.put;return Qt.prototype.put=function(n,r,i,o){void 0!==o&&(o=e()),t.call(this,n,r,i,o)},function(){Qt.prototype.put=t}},ConnectionTarget:vn,queryIdentifier:function(e){return e.queryIdentifier()},forceRestClient:function(e){cn.getInstance().forceRestClient(e)}}),gn=ln.ServerValue;function yn(t){!function(e){qt=e}(t.SDK_VERSION);var n=t.INTERNAL.registerComponent(new u.Component("database",(function(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return cn.getInstance().databaseFromApp(n,r,t)}),"PUBLIC").setServiceProps({Reference:tn,Query:Qe,Database:ln,DataSnapshot:We,enableLogging:E,INTERNAL:hn,ServerValue:gn,TEST_ACCESS:mn}).setMultipleInstances(!0));t.registerVersion("@firebase/database","0.6.13"),a.isNodeSdk()&&(e.exports=n)}yn(l.default),t.DataSnapshot=We,t.Database=ln,t.OnDisconnect=fe,t.Query=Qe,t.Reference=tn,t.ServerValue=gn,t.enableLogging=E,t.registerDatabase=yn}).call(this,n(39))},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(17),o=n(37),a=n(14),s=n(157),u=n(21);var c=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),l={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},f=function(e){function t(t,n){var r=this;return(r=e.call(this,n)||this).code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return r.__extends(t,e),t}(Error),h=new o.Logger("@firebase/firestore");function d(){return h.logLevel}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.DEBUG){var i=t.map(g);h.debug.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+e],i))}}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.ERROR){var i=t.map(g);h.error.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+e],i))}}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(h.logLevel<=o.LogLevel.WARN){var i=t.map(g);h.warn.apply(h,r.__spreadArrays(["Firestore (7.24.0): "+e],i))}}function g(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function y(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE (7.24.0) INTERNAL ASSERTION FAILED: "+e;throw v(t),new Error(t)}function b(e,t){e||y()}function w(e,t){return e}function _(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function E(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function S(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var k=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&y(),void 0===n?n=e.length-t:n>e.length-t&&y(),this.segments=e,this.offset=t,this.t=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.t}
2,enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.i(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.o(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.u=function(e){return e=void 0===e?1:e,this.o(this.segments,this.offset+e,this.length-e)},e.prototype.h=function(){return this.o(this.segments,this.offset,this.length-1)},e.prototype.l=function(){return this.segments[this.offset]},e.prototype._=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.m=function(){return 0===this.length},e.prototype.T=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.I=function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.A=function(){return this.segments.slice(this.offset,this.limit())},e.i=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.o=function(e,n,r){return new t(e,n,r)},t.prototype.R=function(){return this.A().join("/")},t.prototype.toString=function(){return this.R()},t.g=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i];if(a.indexOf("//")>=0)throw new f(l.INVALID_ARGUMENT,"Invalid segment ("+a+"). Paths must not contain // in them.");r.push.apply(r,a.split("/").filter((function(e){return e.length>0})))}return new t(r)},t.P=function(){return new t([])},t}(k),C=/^[_a-zA-Z][_a-zA-Z0-9]*$/,O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.o=function(e,n,r){return new t(e,n,r)},t.V=function(e){return C.test(e)},t.prototype.R=function(){return this.A().map((function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.V(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.R()},t.prototype.p=function(){return 1===this.length&&"__name__"===this.get(0)},t.v=function(){return new t(["__name__"])},t.S=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new f(l.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new f(l.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new f(l.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new f(l.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.P=function(){return new t([])},t}(k),x=function(){function e(e){this.path=e}return e.D=function(t){return new e(T.g(t))},e.C=function(t){return new e(T.g(t).u(5))},e.prototype.N=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===T.i(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.i=function(e,t){return T.i(e.path,t.path)},e.F=function(e){return e.length%2==0},e.$=function(t){return new e(new T(t.slice()))},e}();function I(e,t){if(0!==t.length)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() does not support arguments, but was called with "+G(t.length,"argument")+".")}function P(e,t,n){if(t.length!==n)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires "+G(n,"argument")+", but was called with "+G(t.length,"argument")+".")}function A(e,t,n){if(t.length<n)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires at least "+G(n,"argument")+", but was called with "+G(t.length,"argument")+".")}function N(e,t,n,r){if(t.length<n||t.length>r)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+G(t.length,"argument")+".")}function j(e,t,n,r){z(e,t,K(n)+" argument",r)}function R(e,t,n,r){void 0!==r&&j(e,t,n,r)}function D(e,t,n,r){z(e,t,n+" option",r)}function L(e,t,n,r){void 0!==r&&D(e,t,n,r)}function M(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(V(u))}var c=V(r);throw new f(l.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(e,0,n,r,i)}function F(e,t,n,r){if(!t.some((function(e){return e===r})))throw new f(l.INVALID_ARGUMENT,"Invalid value "+V(r)+" provided to function "+e+"() for its "+K(n)+" argument. Acceptable values: "+t.join(", "));return r}function z(e,t,n,r){if(!("object"===t?U(r):"non-empty string"===t?"string"==typeof r&&""!==r:typeof r===t)){var i=V(r);throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function U(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function V(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":y()}function B(e,t,n){if(void 0===n)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+K(t)+" argument, but it was undefined.")}function q(e,t,n){E(t,(function(t,r){if(n.indexOf(t)<0)throw new f(l.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))}))}function W(e,t,n,r){var i=V(r);return new f(l.INVALID_ARGUMENT,"Function "+e+"() requires its "+K(n)+" argument to be a "+t+", but it was: "+i)}function H(e,t,n){if(n<=0)throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires its "+K(t)+" argument to be a positive number, but it was: "+n+".")}function K(e){switch(e){case 1:return"first";
2case 2:return"second";case 3:return"third";default:return e+"th"}}function G(e,t){return e+" "+t+(1===e?"":"s")}function $(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;r++)n[r]=Math.floor(256*Math.random());return n}var Q=function(){function e(){}return e.k=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=$(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n},e}();function Y(e,t){return e<t?-1:e>t?1:0}function X(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}function J(e){return e+"\0"}var Z=function(){function e(e){this.M=e}return e.fromBase64String=function(t){return new e(atob(t))},e.fromUint8Array=function(t){return new e(function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t))},e.prototype.toBase64=function(){return e=this.M,btoa(e);var e},e.prototype.toUint8Array=function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.M)},e.prototype.O=function(){return 2*this.M.length},e.prototype.L=function(e){return Y(this.M,e.M)},e.prototype.isEqual=function(e){return this.M===e.M},e}();Z.B=new Z("");var ee=function(){function e(e){this.q=e}return e.fromBase64String=function(t){try{return new e(Z.fromBase64String(t))}catch(t){throw new f(l.INVALID_ARGUMENT,"Failed to construct Bytes from Base64 string: "+t)}},e.fromUint8Array=function(t){return new e(Z.fromUint8Array(t))},e.prototype.toBase64=function(){return this.q.toBase64()},e.prototype.toUint8Array=function(){return this.q.toUint8Array()},e.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this.q.isEqual(e.q)},e}();function te(){if("undefined"==typeof Uint8Array)throw new f(l.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function ne(){if("undefined"==typeof atob)throw new f(l.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.fromBase64String=function(e){P("Blob.fromBase64String",arguments,1),j("Blob.fromBase64String","string",1,e),ne();try{return new t(Z.fromBase64String(e))}catch(e){throw new f(l.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},t.fromUint8Array=function(e){if(P("Blob.fromUint8Array",arguments,1),te(),!(e instanceof Uint8Array))throw W("Blob.fromUint8Array","Uint8Array",1,e);return new t(Z.fromUint8Array(e))},t.prototype.toBase64=function(){return P("Blob.toBase64",arguments,0),ne(),e.prototype.toBase64.call(this)},t.prototype.toUint8Array=function(){return P("Blob.toUint8Array",arguments,0),te(),e.prototype.toUint8Array.call(this)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(ee),ie=function(e,t,n,r,i,o){this.U=e,this.persistenceKey=t,this.host=n,this.ssl=r,this.forceLongPolling=i,this.W=o},oe=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"j",{get:function(){return"(default)"===this.database},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.L=function(e){return Y(this.projectId,e.projectId)||Y(this.database,e.database)},e}(),ae=function(){function e(e,t){this.K=e,this.G=t,this.H={}}return e.prototype.get=function(e){var t=this.K(e),n=this.H[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(this.G(a,e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.K(e),r=this.H[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.G(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t])}else this.H[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.K(e),n=this.H[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.G(n[r][0],e))return 1===n.length?delete this.H[t]:n.splice(r,1),!0;return!1}
2,e.prototype.forEach=function(e){E(this.H,(function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];e(a,s)}}))},e.prototype.m=function(){return S(this.H)},e}(),se=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new f(l.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new f(l.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new f(l.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new f(l.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype.Y=function(e){return this.seconds===e.seconds?Y(this.nanoseconds,e.nanoseconds):Y(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e.prototype.toJSON=function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}},e.prototype.valueOf=function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")},e}(),ue=function(){function e(e){this.timestamp=e}return e.J=function(t){return new e(t)},e.min=function(){return new e(new se(0,0))},e.prototype.L=function(e){return this.timestamp.Y(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.X=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.Z=function(){return this.timestamp},e}();function ce(e){return null==e}function le(e){return 0===e&&1/e==-1/0}function fe(e){return"number"==typeof e&&Number.isInteger(e)&&!le(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var he=function(e,t,n,r,i,o,a){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=o,this.endAt=a,this.tt=null};function de(e,t,n,r,i,o,a){return void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o=null),void 0===a&&(a=null),new he(e,t,n,r,i,o,a)}function pe(e){var t=w(e);if(null===t.tt){var n=t.path.R();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return function(e){return e.field.R()+e.op.toString()+it(e.value)}(e)})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return(t=e).field.R()+t.dir;var t})).join(","),ce(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=sr(t.startAt)),t.endAt&&(n+="|ub:",n+=sr(t.endAt)),t.tt=n}return t.tt}function ve(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!hr(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if(i=e.filters[r],o=t.filters[r],i.op!==o.op||!i.field.isEqual(o.field)||!et(i.value,o.value))return!1;var i,o;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!cr(e.startAt,t.startAt)&&cr(e.endAt,t.endAt)}function me(e){return x.F(e.path)&&null===e.collectionGroup&&0===e.filters.length}var ge,ye,be=function(){function e(e,t,n,r,i,o,a){void 0===i&&(i=ue.min()),void 0===o&&(o=ue.min()),void 0===a&&(a=Z.B),this.target=e,this.targetId=t,this.et=n,this.sequenceNumber=r,this.nt=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return e.prototype.st=function(t){return new e(this.target,this.targetId,this.et,t,this.nt,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.it=function(t,n){return new e(this.target,this.targetId,this.et,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.rt=function(t){return new e(this.target,this.targetId,this.et,this.sequenceNumber,this.nt,t,this.resumeToken)},e}(),we=function(e){this.count=e};function _e(e){switch(e){case l.OK:return y();case l.CANCELLED:case l.UNKNOWN:case l.DEADLINE_EXCEEDED:case l.RESOURCE_EXHAUSTED:case l.INTERNAL:case l.UNAVAILABLE:case l.UNAUTHENTICATED:return!1;case l.INVALID_ARGUMENT:case l.NOT_FOUND:case l.ALREADY_EXISTS:case l.PERMISSION_DENIED:case l.FAILED_PRECONDITION:case l.ABORTED:case l.OUT_OF_RANGE:case l.UNIMPLEMENT
2ED:case l.DATA_LOSS:return!0;default:return y()}}function Ee(e){if(void 0===e)return v("GRPC error has no .code"),l.UNKNOWN;switch(e){case ge.OK:return l.OK;case ge.CANCELLED:return l.CANCELLED;case ge.UNKNOWN:return l.UNKNOWN;case ge.DEADLINE_EXCEEDED:return l.DEADLINE_EXCEEDED;case ge.RESOURCE_EXHAUSTED:return l.RESOURCE_EXHAUSTED;case ge.INTERNAL:return l.INTERNAL;case ge.UNAVAILABLE:return l.UNAVAILABLE;case ge.UNAUTHENTICATED:return l.UNAUTHENTICATED;case ge.INVALID_ARGUMENT:return l.INVALID_ARGUMENT;case ge.NOT_FOUND:return l.NOT_FOUND;case ge.ALREADY_EXISTS:return l.ALREADY_EXISTS;case ge.PERMISSION_DENIED:return l.PERMISSION_DENIED;case ge.FAILED_PRECONDITION:return l.FAILED_PRECONDITION;case ge.ABORTED:return l.ABORTED;case ge.OUT_OF_RANGE:return l.OUT_OF_RANGE;case ge.UNIMPLEMENTED:return l.UNIMPLEMENTED;case ge.DATA_LOSS:return l.DATA_LOSS;default:return y()}}(ye=ge||(ge={}))[ye.OK=0]="OK",ye[ye.CANCELLED=1]="CANCELLED",ye[ye.UNKNOWN=2]="UNKNOWN",ye[ye.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",ye[ye.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",ye[ye.NOT_FOUND=5]="NOT_FOUND",ye[ye.ALREADY_EXISTS=6]="ALREADY_EXISTS",ye[ye.PERMISSION_DENIED=7]="PERMISSION_DENIED",ye[ye.UNAUTHENTICATED=16]="UNAUTHENTICATED",ye[ye.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",ye[ye.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",ye[ye.ABORTED=10]="ABORTED",ye[ye.OUT_OF_RANGE=11]="OUT_OF_RANGE",ye[ye.UNIMPLEMENTED=12]="UNIMPLEMENTED",ye[ye.INTERNAL=13]="INTERNAL",ye[ye.UNAVAILABLE=14]="UNAVAILABLE",ye[ye.DATA_LOSS=15]="DATA_LOSS";var Se=function(){function e(e,t){this.i=e,this.root=t||Te.EMPTY}return e.prototype.ot=function(t,n){return new e(this.i,this.root.ot(t,n,this.i).copy(null,null,Te.at,null,null))},e.prototype.remove=function(t){return new e(this.i,this.root.remove(t,this.i).copy(null,null,Te.at,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.m();){var n=this.i(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.m();){var r=this.i(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.m=function(){return this.root.m()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),e.prototype.ct=function(){return this.root.ct()},e.prototype.ut=function(){return this.root.ut()},e.prototype.ht=function(e){return this.root.ht(e)},e.prototype.forEach=function(e){this.ht((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.ht((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.lt=function(e){return this.root.lt(e)},e.prototype._t=function(){return new ke(this.root,null,this.i,!1)},e.prototype.ft=function(e){return new ke(this.root,e,this.i,!1)},e.prototype.dt=function(){return new ke(this.root,null,this.i,!0)},e.prototype.wt=function(e){return new ke(this.root,e,this.i,!0)},e}(),ke=function(){function e(e,t,n,r){this.Tt=r,this.Et=[];for(var i=1;!e.m();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.Tt?e.left:e.right;else{if(0===i){this.Et.push(e);break}this.Et.push(e),e=this.Tt?e.right:e.left}}return e.prototype.It=function(){var e=this.Et.pop(),t={key:e.key,value:e.value};if(this.Tt)for(e=e.left;!e.m();)this.Et.push(e),e=e.right;else for(e=e.right;!e.m();)this.Et.push(e),e=e.left;return t},e.prototype.At=function(){return this.Et.length>0},e.prototype.Rt=function(){if(0===this.Et.length)return null;var e=this.Et[this.Et.length-1];return{key:e.key,value:e.value}},e}(),Te=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.m=function(){return!1},e.prototype.ht=function(e){return this.left.ht(e)||e(this.key,this.value)||this.right.ht(e)},e.prototype.lt=function(e){return this.right.lt(e)||e(this.key,this.value)||this.left.lt(e)},e.prototype.min=function(){return this.left.m()?this:this.left.min()},e.prototype.ct=function(){return this.min().key},e.prototype.ut=function(){return this.right.m()?this.key:this.right.ut()},e.prototype.ot=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.ot(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.ot(e,t,n))).gt()},e.prototype.Pt=function(){if(this.left.m())return e.EMPTY;var t=this;return t.left.yt()||t.left.left.yt()||(t=t.Vt()),(t=t.copy(null,null,null,t.left.Pt(),null)).gt()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.m()||i.left.yt()||i.left.left.yt()||(i=i.Vt()),i=i.copy(null,null,null,i.left.remove(t,n),null);
2else{if(i.left.yt()&&(i=i.bt()),i.right.m()||i.right.yt()||i.right.left.yt()||(i=i.vt()),0===n(t,i.key)){if(i.right.m())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.Pt())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.gt()},e.prototype.yt=function(){return this.color},e.prototype.gt=function(){var e=this;return e.right.yt()&&!e.left.yt()&&(e=e.St()),e.left.yt()&&e.left.left.yt()&&(e=e.bt()),e.left.yt()&&e.right.yt()&&(e=e.Dt()),e},e.prototype.Vt=function(){var e=this.Dt();return e.right.left.yt()&&(e=(e=(e=e.copy(null,null,null,null,e.right.bt())).St()).Dt()),e},e.prototype.vt=function(){var e=this.Dt();return e.left.left.yt()&&(e=(e=e.bt()).Dt()),e},e.prototype.St=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.bt=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.Dt=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.Ct=function(){var e=this.Nt();return Math.pow(2,e)<=this.size+1},e.prototype.Nt=function(){if(this.yt()&&this.left.yt())throw y();if(this.right.yt())throw y();var e=this.left.Nt();if(e!==this.right.Nt())throw y();return e+(this.yt()?0:1)},e}();Te.EMPTY=null,Te.RED=!0,Te.at=!1,Te.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw y()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw y()},enumerable:!1,configurable:!0}),e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.ot=function(e,t,n){return new Te(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.m=function(){return!0},e.prototype.ht=function(e){return!1},e.prototype.lt=function(e){return!1},e.prototype.ct=function(){return null},e.prototype.ut=function(){return null},e.prototype.yt=function(){return!1},e.prototype.Ct=function(){return!0},e.prototype.Nt=function(){return 0},e}());var Ce=function(){function e(e){this.i=e,this.data=new Se(this.i)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.ct()},e.prototype.last=function(){return this.data.ut()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!1,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.ht((function(t,n){return e(t),!1}))},e.prototype.Ft=function(e,t){for(var n=this.data.ft(e[0]);n.At();){var r=n.It();if(this.i(r.key,e[1])>=0)return;t(r.key)}},e.prototype.xt=function(e,t){var n;for(n=void 0!==t?this.data.ft(t):this.data._t();n.At();)if(!e(n.It().key))return},e.prototype.$t=function(e){var t=this.data.ft(e);return t.At()?t.It().key:null},e.prototype._t=function(){return new Oe(this.data._t())},e.prototype.ft=function(e){return new Oe(this.data.ft(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).ot(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.m=function(){return this.data.m()},e.prototype.kt=function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data._t(),r=t.data._t();n.At();){var i=n.It().key,o=r.It().key;if(0!==this.i(i,o))return!1}return!0},e.prototype.A=function(){var e=[];return this.forEach((function(t){e.push(t)})),e},e.prototype.toString=function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.i);return n.data=t,n},e}(),Oe=function(){function e(e){this.Mt=e}return e.prototype.It=function(){return this.Mt.It().key},e.prototype.At=function(){return this.Mt.At()},e}(),xe=new Se(x.i);function Ie(){return xe}function Pe(){return Ie()}var Ae=new Se(x.i);function Ne(){return Ae}var je=new Se(x.i),Re=new Ce(x.i);function De(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Re,r=0,i=e;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var Le=new Ce(Y);function Me(){return Le}var Fe=function(){function e(e){this.i=e?function(t,n){return e(t,n)||x.i(t.key,n.key)}:function(e,t){return x.i(e.key,t.key)}
2,this.Ot=Ne(),this.Lt=new Se(this.i)}return e.Bt=function(t){return new e(t.i)},e.prototype.has=function(e){return null!=this.Ot.get(e)},e.prototype.get=function(e){return this.Ot.get(e)},e.prototype.first=function(){return this.Lt.ct()},e.prototype.last=function(){return this.Lt.ut()},e.prototype.m=function(){return this.Lt.m()},e.prototype.indexOf=function(e){var t=this.Ot.get(e);return t?this.Lt.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.Lt.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.Lt.ht((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.Ot.ot(e.key,e),t.Lt.ot(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.Ot.remove(e),this.Lt.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.Lt._t(),r=t.Lt._t();n.At();){var i=n.It().key,o=r.It().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.i=this.i,r.Ot=t,r.Lt=n,r},e}(),ze=function(){function e(){this.qt=new Se(x.i)}return e.prototype.track=function(e){var t=e.doc.key,n=this.qt.get(t);n?0!==e.type&&3===n.type?this.qt=this.qt.ot(t,e):3===e.type&&1!==n.type?this.qt=this.qt.ot(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.qt=this.qt.ot(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.qt=this.qt.ot(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.qt=this.qt.remove(t):1===e.type&&2===n.type?this.qt=this.qt.ot(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.qt=this.qt.ot(t,{type:2,doc:e.doc}):y():this.qt=this.qt.ot(t,e)},e.prototype.Ut=function(){var e=[];return this.qt.ht((function(t,n){e.push(n)})),e},e}(),Ue=function(){function e(e,t,n,r,i,o,a,s){this.query=e,this.docs=t,this.Qt=n,this.docChanges=r,this.Wt=i,this.fromCache=o,this.jt=a,this.Kt=s}return e.Gt=function(t,n,r,i){var o=[];return n.forEach((function(e){o.push({type:0,doc:e})})),new e(t,n,Fe.Bt(n),o,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.Wt.m()},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.jt===e.jt&&this.Wt.isEqual(e.Wt)&&Kn(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.Qt.isEqual(e.Qt)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),Ve=function(){function e(e,t,n,r,i){this.nt=e,this.zt=t,this.Ht=n,this.Yt=r,this.Jt=i}return e.Xt=function(t,n){var r=new Map;return r.set(t,Be.Zt(t,n)),new e(ue.min(),r,Me(),Ie(),De())},e}(),Be=function(){function e(e,t,n,r,i){this.resumeToken=e,this.te=t,this.ee=n,this.ne=r,this.se=i}return e.Zt=function(t,n){return new e(Z.B,n,De(),De(),De())},e}(),qe=function(e,t,n,r){this.ie=e,this.removedTargetIds=t,this.key=n,this.re=r},We=function(e,t){this.targetId=e,this.oe=t},He=function(e,t,n,r){void 0===n&&(n=Z.B),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},Ke=function(){function e(){this.ae=0,this.ce=Qe(),this.ue=Z.B,this.he=!1,this.le=!0}return Object.defineProperty(e.prototype,"te",{get:function(){return this.he},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.ue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_e",{get:function(){return 0!==this.ae},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fe",{get:function(){return this.le},enumerable:!1,configurable:!0}),e.prototype.de=function(e){e.O()>0&&(this.le=!0,this.ue=e)},e.prototype.we=function(){var e=De(),t=De(),n=De();return this.ce.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:y()}})),new Be(this.ue,this.he,e,t,n)},e.prototype.me=function(){this.le=!1,this.ce=Qe()},e.prototype.Te=function(e,t){this.le=!0,this.ce=this.ce.ot(e,t)},e.prototype.Ee=function(e){this.le=!0,this.ce=this.ce.remove(e)},e.prototype.Ie=function(){this.ae+=1},e.prototype.Ae=function(){this.ae-=1},e.prototype.Re=function(){this.le=!0,this.he=!0},e}(),Ge=function(){function e(e){this.ge=e,this.Pe=new Map,this.ye=Ie(),this.Ve=$e(
2),this.pe=new Ce(Y)}return e.prototype.be=function(e){for(var t=0,n=e.ie;t<n.length;t++){var r=n[t];e.re instanceof Pn?this.ve(r,e.re):e.re instanceof An&&this.Se(r,e.key,e.re)}for(var i=0,o=e.removedTargetIds;i<o.length;i++){var a=o[i];this.Se(a,e.key,e.re)}},e.prototype.De=function(e){var t=this;this.Ce(e,(function(n){var r=t.Ne(n);switch(e.state){case 0:t.Fe(n)&&r.de(e.resumeToken);break;case 1:r.Ae(),r._e||r.me(),r.de(e.resumeToken);break;case 2:r.Ae(),r._e||t.removeTarget(n);break;case 3:t.Fe(n)&&(r.Re(),r.de(e.resumeToken));break;case 4:t.Fe(n)&&(t.xe(n),r.de(e.resumeToken));break;default:y()}}))},e.prototype.Ce=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.Pe.forEach((function(e,r){n.Fe(r)&&t(r)}))},e.prototype.$e=function(e){var t=e.targetId,n=e.oe.count,r=this.ke(t);if(r){var i=r.target;if(me(i))if(0===n){var o=new x(i.path);this.Se(t,o,new An(o,ue.min()))}else b(1===n);else this.Me(t)!==n&&(this.xe(t),this.pe=this.pe.add(t))}},e.prototype.Oe=function(e){var t=this,n=new Map;this.Pe.forEach((function(r,i){var o=t.ke(i);if(o){if(r.te&&me(o.target)){var a=new x(o.target.path);null!==t.ye.get(a)||t.Le(i,a)||t.Se(i,a,new An(a,e))}r.fe&&(n.set(i,r.we()),r.me())}}));var r=De();this.Ve.forEach((function(e,n){var i=!0;n.xt((function(e){var n=t.ke(e);return!n||2===n.et||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new Ve(e,n,this.pe,this.ye,r);return this.ye=Ie(),this.Ve=$e(),this.pe=new Ce(Y),i},e.prototype.ve=function(e,t){if(this.Fe(e)){var n=this.Le(e,t.key)?2:0;this.Ne(e).Te(t.key,n),this.ye=this.ye.ot(t.key,t),this.Ve=this.Ve.ot(t.key,this.Be(t.key).add(e))}},e.prototype.Se=function(e,t,n){if(this.Fe(e)){var r=this.Ne(e);this.Le(e,t)?r.Te(t,1):r.Ee(t),this.Ve=this.Ve.ot(t,this.Be(t).delete(e)),n&&(this.ye=this.ye.ot(t,n))}},e.prototype.removeTarget=function(e){this.Pe.delete(e)},e.prototype.Me=function(e){var t=this.Ne(e).we();return this.ge.qe(e).size+t.ee.size-t.se.size},e.prototype.Ie=function(e){this.Ne(e).Ie()},e.prototype.Ne=function(e){var t=this.Pe.get(e);return t||(t=new Ke,this.Pe.set(e,t)),t},e.prototype.Be=function(e){var t=this.Ve.get(e);return t||(t=new Ce(Y),this.Ve=this.Ve.ot(e,t)),t},e.prototype.Fe=function(e){var t=null!==this.ke(e);return t||p("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ke=function(e){var t=this.Pe.get(e);return t&&t._e?null:this.ge.Ue(e)},e.prototype.xe=function(e){var t=this;this.Pe.set(e,new Ke),this.ge.qe(e).forEach((function(n){t.Se(e,n,null)}))},e.prototype.Le=function(e,t){return this.ge.qe(e).has(t)},e}();function $e(){return new Se(x.i)}function Qe(){return new Se(x.i)}function Ye(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Xe(e){var t=ot(e.mapValue.fields.__local_write_time__.timestampValue);return new se(t.seconds,t.nanos)}var Je=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Ze(e){return"nullValue"in e?0:"booleanValue"in e?1:"integerValue"in e||"doubleValue"in e?2:"timestampValue"in e?3:"stringValue"in e?5:"bytesValue"in e?6:"referenceValue"in e?7:"geoPointValue"in e?8:"arrayValue"in e?9:"mapValue"in e?Ye(e)?4:10:y()}function et(e,t){var n=Ze(e);if(n!==Ze(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Xe(e).isEqual(Xe(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=ot(e.timestampValue),r=ot(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return st(e.bytesValue).isEqual(st(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return at(e.geoPointValue.latitude)===at(t.geoPointValue.latitude)&&at(e.geoPointValue.longitude)===at(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return at(e.integerValue)===at(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=at(e.doubleValue),r=at(t.doubleValue);return n===r?le(n)===le(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return X(e.arrayValue.values||[],t.arrayValue.values||[],et);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(_(n)!==_(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!et(n[i],r[i])))return!1;return!0}(e,t);default:return y()}}function tt(e,t){return void 0!==(e.values||[]).find((function(e){return et(e,t)}))}function nt(e,t){var n=Ze(e),r=Ze(t);if(n!==r)return Y(n,r);switch(n){case 0:return 0;case 1:return Y(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=at(e.integerValue||e.doubleValue),r=at(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return rt(e.timestampValue,t.timestampValue);case 4:return rt(Xe(e),Xe(t));case 5:return Y(e.stringValue,t.stringValue);case 6:return function(e,t){var n=st(e),r=st(t);return n.L(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var o=Y(n[i],r[i]);if(0!==o)return o}return Y(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Y(at(e.latitude),at(t.latitude));return 0!==n?n:Y(at(e.longitude),at(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var o=nt(n[i],r[i]);if(o)return o}return Y(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n=e.fields||{},r=Object.keys(n),i=t.fields||{},o=Object.keys(i);r.sort(),o.sort();for(var a=0;a<r.length&&a<o.length;++a){var s=Y(r[a],o[a]);if(0!==s)return s;var u=nt(n[r[a]],i[o[a]]);if(0!==u)return u}return Y(r.length,o.length)}(e.mapValue,t.mapValue);default:throw y()}}function rt(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Y(e,t);var n=ot(e),r=ot(t),i=Y(n.seconds,r.seconds);return 0!==i?i:Y(n.nanos,r.nanos)}function it(e){return function e(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(e){var t=ot(e);return"time("+t.seconds+","+t.nanos+")"}
2(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?st(t.bytesValue).toBase64():"referenceValue"in t?(r=t.referenceValue,x.C(r).toString()):"geoPointValue"in t?"geo("+(n=t.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in t?function(t){for(var n="[",r=!0,i=0,o=t.values||[];i<o.length;i++)r?r=!1:n+=",",n+=e(o[i]);return n+"]"}(t.arrayValue):"mapValue"in t?function(t){for(var n="{",r=!0,i=0,o=Object.keys(t.fields||{}).sort();i<o.length;i++){var a=o[i];r?r=!1:n+=",",n+=a+":"+e(t.fields[a])}return n+"}"}(t.mapValue):y();var n,r}(e)}function ot(e){if(b(!!e),"string"==typeof e){var t=0,n=Je.exec(e);if(b(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:at(e.seconds),nanos:at(e.nanos)}}function at(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function st(e){return"string"==typeof e?Z.fromBase64String(e):Z.fromUint8Array(e)}function ut(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.R()}}function ct(e){return!!e&&"integerValue"in e}function lt(e){return!!e&&"arrayValue"in e}function ft(e){return!!e&&"nullValue"in e}function ht(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function dt(e){return!!e&&"mapValue"in e}var pt={asc:"ASCENDING",desc:"DESCENDING"},vt={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},mt=function(e,t){this.U=e,this.Qe=t};function gt(e){return{integerValue:""+e}}function yt(e,t){if(e.Qe){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:le(t)?"-0":t}}function bt(e,t){return fe(t)?gt(t):yt(e,t)}function wt(e,t){return e.Qe?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}}function _t(e,t){return e.Qe?t.toBase64():t.toUint8Array()}function Et(e,t){return wt(e,t.Z())}function St(e){return b(!!e),ue.J(function(e){var t=ot(e);return new se(t.seconds,t.nanos)}(e))}function kt(e,t){return function(e){return new T(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).R()}function Tt(e){var t=T.g(e);return b(Gt(t)),t}function Ct(e,t){return kt(e.U,t.path)}function Ot(e,t){var n=Tt(t);return b(n.get(1)===e.U.projectId),b(!n.get(3)&&!e.U.database||n.get(3)===e.U.database),new x(At(n))}function xt(e,t){return kt(e.U,t)}function It(e){var t=Tt(e);return 4===t.length?T.P():At(t)}function Pt(e){return new T(["projects",e.U.projectId,"databases",e.U.database]).R()}function At(e){return b(e.length>4&&"documents"===e.get(4)),e.u(5)}function Nt(e,t,n){return{name:Ct(e,t),fields:n.proto.mapValue.fields}}function jt(e,t){var n;if(t instanceof yn)n={update:Nt(e,t.key,t.value)};
2else if(t instanceof kn)n={delete:Ct(e,t.key)};else if(t instanceof bn)n={update:Nt(e,t.key,t.data),updateMask:Kt(t.We)};else if(t instanceof _n)n={transform:{document:Ct(e,t.key),fieldTransforms:t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof Jt)return{fieldPath:t.field.R(),setToServerValue:"REQUEST_TIME"};if(n instanceof Zt)return{fieldPath:t.field.R(),appendMissingElements:{values:n.elements}};if(n instanceof tn)return{fieldPath:t.field.R(),removeAllFromArray:{values:n.elements}};if(n instanceof rn)return{fieldPath:t.field.R(),increment:n.je};throw y()}(0,e)}))}};else{if(!(t instanceof Tn))return y();n={verify:Ct(e,t.key)}}return t.Ge.Ke||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:Et(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:y()}(e,t.Ge)),n}function Rt(e,t){var n=t.currentDocument?function(e){return void 0!==e.updateTime?ln.updateTime(St(e.updateTime)):void 0!==e.exists?ln.exists(e.exists):ln.ze()}(t.currentDocument):ln.ze();if(t.update){t.update.name;var r=Ot(e,t.update.name),i=new Cn({mapValue:{fields:t.update.fields}});if(t.updateMask){var o=function(e){var t=e.fieldPaths||[];return new sn(t.map((function(e){return O.S(e)})))}(t.updateMask);return new bn(r,i,o,n)}return new yn(r,i,n)}if(t.delete){var a=Ot(e,t.delete);return new kn(a,n)}if(t.transform){var s=Ot(e,t.transform.document),u=t.transform.fieldTransforms.map((function(t){return function(e,t){var n=null;if("setToServerValue"in t)b("REQUEST_TIME"===t.setToServerValue),n=new Jt;else if("appendMissingElements"in t){var r=t.appendMissingElements.values||[];n=new Zt(r)}else if("removeAllFromArray"in t){var i=t.removeAllFromArray.values||[];n=new tn(i)}else"increment"in t?n=new rn(e,t.increment):y();var o=O.S(t.fieldPath);return new un(o,n)}(e,t)}));return b(!0===n.exists),new _n(s,u)}if(t.verify){var c=Ot(e,t.verify);return new Tn(c,n)}return y()}function Dt(e,t){return{documents:[xt(e,t.path)]}}function Lt(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=xt(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=xt(e,r.h()),n.structuredQuery.from=[{collectionId:r._()}]);var i=function(e){if(0!==e.length){var t=e.map((function(e){return function(e){if("=="===e.op){if(ht(e.value))return{unaryFilter:{field:Bt(e.field),op:"IS_NAN"}};if(ft(e.value))return{unaryFilter:{field:Bt(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(ht(e.value))return{unaryFilter:{field:Bt(e.field),op:"IS_NOT_NAN"}};if(ft(e.value))return{unaryFilter:{field:Bt(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Bt(e.field),op:Vt(e.op),value:e.value}}}(e)}));return 1===t.length?t[0]:{compositeFilter:{op:"AND",filters:t}}}}(t.filters);i&&(n.structuredQuery.where=i);var o=function(e){if(0!==e.length)return e.map((function(e){return function(e){return{field:Bt(e.field),direction:Ut(e.dir)}}(e)}))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(e,t){return e.Qe||ce(t)?t:{value:t}}(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=Ft(t.startAt)),t.endAt&&(n.structuredQuery.endAt=Ft(t.endAt)),n}function Mt(e){var t=It(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){b(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var a=[];n.where&&(a=function e(t){return t?void 0!==t.unaryFilter?[Ht(t)]:void 0!==t.fieldFilter?[Wt(t)]:void 0!==t.compositeFilter?t.compositeFilter.filters.map((function(t){return e(t)})).reduce((function(e,t){return e.concat(t)})):y():[]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(e){return function(e){return new lr(qt(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)})));var u=null;n.limit&&(u=function(e){var t;return ce(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=zt(n.startAt));var l=null;return n.endAt&&(l=zt(n.endAt)),Bn(Rn(t,i,s,a,u,"F",c,l))}function Ft(e){return{before:e.before,values:e.position}}function zt(e){var t=!!e.before,n=e.values||[];return new ar(n,t)}function Ut(e){return pt[e]}function Vt(e){return vt[e]}function Bt(e){return{fieldPath:e.R()}}function qt(e){return O.S(e.fieldPath)}function Wt(e){return Xn.create(qt(e.fieldFilter.field),function(e){switch(e){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return y()}}(e.fieldFilter.op),e.fieldFilter.value)}function Ht(e){switch(e.unaryFilter.op){case"IS_NAN":var t=qt(e.unaryFilter.field);return Xn.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=qt(e.unaryFilter.field);return Xn.create(n,"==",{nullValue:"NULL_VALUE"});
2case"IS_NOT_NAN":var r=qt(e.unaryFilter.field);return Xn.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=qt(e.unaryFilter.field);return Xn.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return y()}}function Kt(e){var t=[];return e.fields.forEach((function(e){return t.push(e.R())})),{fieldPaths:t}}function Gt(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}var $t=function(){this.He=void 0};function Qt(e,t,n){return e instanceof Jt?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof Zt?en(e,t):e instanceof tn?nn(e,t):function(e,t){var n=Xt(e,t),r=on(n)+on(e.je);return ct(n)&&ct(e.je)?gt(r):yt(e.serializer,r)}(e,t)}function Yt(e,t,n){return e instanceof Zt?en(e,t):e instanceof tn?nn(e,t):n}function Xt(e,t){return e instanceof rn?ct(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var Jt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}($t),Zt=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return r.__extends(t,e),t}($t);function en(e,t){for(var n=an(t),r=function(e){n.some((function(t){return et(t,e)}))||n.push(e)},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var tn=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return r.__extends(t,e),t}($t);function nn(e,t){for(var n=an(t),r=function(e){n=n.filter((function(t){return!et(t,e)}))},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var rn=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).serializer=t,r.je=n,r}return r.__extends(t,e),t}($t);function on(e){return at(e.integerValue||e.doubleValue)}function an(e){return lt(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var sn=function(){function e(e){this.fields=e,e.sort(O.i)}return e.prototype.Ye=function(e){for(var t=0,n=this.fields;t<n.length;t++)if(n[t].T(e))return!0;return!1},e.prototype.isEqual=function(e){return X(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))},e}(),un=function(e,t){this.field=e,this.transform=t},cn=function(e,t){this.version=e,this.transformResults=t},ln=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.ze=function(){return new e},e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"Ke",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)},e}();function fn(e,t){return void 0!==e.updateTime?t instanceof Pn&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t instanceof Pn}var hn=function(){};function dn(e,t,n){return e instanceof yn?function(e,t,n){return new Pn(e.key,n.version,e.value,{hasCommittedMutations:!0})}(e,0,n):e instanceof bn?function(e,t,n){if(!fn(e.Ge,t))return new Nn(e.key,n.version);var r=wn(e,t);return new Pn(e.key,n.version,r,{hasCommittedMutations:!0})}(e,t,n):e instanceof _n?function(e,t,n){if(b(null!=n.transformResults),!fn(e.Ge,t))return new Nn(e.key,n.version);var r=En(e,t),i=function(e,t,n){var r=[];b(e.length===n.length);for(var i=0;i<n.length;i++){var o=e[i],a=o.transform,s=null;t instanceof Pn&&(s=t.field(o.field)),r.push(Yt(a,s,n[i]))}return r}(e.fieldTransforms,t,n.transformResults),o=n.version,a=Sn(e,r.data(),i);return new Pn(e.key,o,a,{hasCommittedMutations:!0})}(e,t,n):function(e,t,n){return new An(e.key,n.version,{hasCommittedMutations:!0})}(e,0,n)}function pn(e,t,n,r){return e instanceof yn?function(e,t){if(!fn(e.Ge,t))return t;var n=gn(t);return new Pn(e.key,n,e.value,{Je:!0})}(e,t):e instanceof bn?function(e,t){if(!fn(e.Ge,t))return t;var n=gn(t),r=wn(e,t);return new Pn(e.key,n,r,{Je:!0})}(e,t):e instanceof _n?function(e,t,n,r){if(!fn(e.Ge,t))return t;var i=En(e,t),o=function(e,t,n,r){for(var i=[],o=0,a=e;o<a.length;o++){var s=a[o],u=s.transform,c=null;n instanceof Pn&&(c=n.field(s.field)),null===c&&r instanceof Pn&&(c=r.field(s.field)),i.push(Qt(u,c,t))}return i}(e.fieldTransforms,n,t,r),a=Sn(e,i.data(),o);
2return new Pn(e.key,i.version,a,{Je:!0})}(e,t,r,n):function(e,t){return fn(e.Ge,t)?new An(e.key,ue.min()):t}(e,t)}function vn(e,t){return e instanceof _n?function(e,t){for(var n=null,r=0,i=e.fieldTransforms;r<i.length;r++){var o=i[r],a=t instanceof Pn?t.field(o.field):void 0,s=Xt(o.transform,a||null);null!=s&&(n=null==n?(new On).set(o.field,s):n.set(o.field,s))}return n?n.Xe():null}(e,t):null}function mn(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.Ge.isEqual(t.Ge)&&(0===e.type?e.value.isEqual(t.value):1===e.type?e.data.isEqual(t.data)&&e.We.isEqual(t.We):2!==e.type||X(e.fieldTransforms,e.fieldTransforms,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Zt&&t instanceof Zt||e instanceof tn&&t instanceof tn?X(e.elements,t.elements,et):e instanceof rn&&t instanceof rn?et(e.je,t.je):e instanceof Jt&&t instanceof Jt}(e.transform,t.transform)}(e,t)})))}function gn(e){return e instanceof Pn?e.version:ue.min()}var yn=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).key=t,i.value=n,i.Ge=r,i.type=0,i}return r.__extends(t,e),t}(hn),bn=function(e){function t(t,n,r,i){var o=this;return(o=e.call(this)||this).key=t,o.data=n,o.We=r,o.Ge=i,o.type=1,o}return r.__extends(t,e),t}(hn);function wn(e,t){return function(e,t){var n=new On(t);return e.We.fields.forEach((function(t){if(!t.m()){var r=e.data.field(t);null!==r?n.set(t,r):n.delete(t)}})),n.Xe()}(e,t instanceof Pn?t.data():Cn.empty())}var _n=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.fieldTransforms=n,r.type=2,r.Ge=ln.exists(!0),r}return r.__extends(t,e),t}(hn);function En(e,t){return t}function Sn(e,t,n){for(var r=new On(t),i=0;i<e.fieldTransforms.length;i++){var o=e.fieldTransforms[i];r.set(o.field,n[i])}return r.Xe()}var kn=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Ge=n,r.type=3,r}return r.__extends(t,e),t}(hn),Tn=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.Ge=n,r.type=4,r}return r.__extends(t,e),t}(hn),Cn=function(){function e(e){this.proto=e}return e.empty=function(){return new e({mapValue:{}})},e.prototype.field=function(e){if(e.m())return this.proto;for(var t=this.proto,n=0;n<e.length-1;++n){if(!t.mapValue.fields)return null;if(!dt(t=t.mapValue.fields[e.get(n)]))return null}return(t=(t.mapValue.fields||{})[e._()])||null},e.prototype.isEqual=function(e){return et(this.proto,e.proto)},e}(),On=function(){function e(e){void 0===e&&(e=Cn.empty()),this.Ze=e,this.tn=new Map}return e.prototype.set=function(e,t){return this.en(e,t),this},e.prototype.delete=function(e){return this.en(e,null),this},e.prototype.en=function(e,t){for(var n=this.tn,r=0;r<e.length-1;++r){var i=e.get(r),o=n.get(i);o instanceof Map?n=o:o&&10===Ze(o)?(o=new Map(Object.entries(o.mapValue.fields||{})),n.set(i,o),n=o):(o=new Map,n.set(i,o),n=o)}n.set(e._(),t)},e.prototype.Xe=function(){var e=this.nn(O.P(),this.tn);return null!=e?new Cn(e):this.Ze},e.prototype.nn=function(e,t){var n=this,r=!1,i=this.Ze.field(e),o=dt(i)?Object.assign({},i.mapValue.fields):{};return t.forEach((function(t,i){if(t instanceof Map){var a=n.nn(e.child(i),t);null!=a&&(o[i]=a,r=!0)}else null!==t?(o[i]=t,r=!0):o.hasOwnProperty(i)&&(delete o[i],r=!0)})),r?{mapValue:{fields:o}}:null},e}();function xn(e){var t=[];return E(e.fields||{},(function(e,n){var r=new O([e]);if(dt(n)){var i=xn(n.mapValue).fields;if(0===i.length)t.push(r);else for(var o=0,a=i;o<a.length;o++){var s=a[o];t.push(r.child(s))}}else t.push(r)})),new sn(t)}var In=function(e,t){this.key=e,this.version=t},Pn=function(e){function t(t,n,r,i){var o=this;return(o=e.call(this,t,n)||this).sn=r,o.Je=!!i.Je,o.hasCommittedMutations=!!i.hasCommittedMutations,o}return r.__extends(t,e),t.prototype.field=function(e){return this.sn.field(e)},t.prototype.data=function(){return this.sn},t.prototype.rn=function(){return this.sn.proto},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.Je===e.Je&&this.hasCommittedMutations===e.hasCommittedMutations&&this.sn.isEqual(e.sn)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.sn.toString()+", {hasLocalMutations: "+this.Je+"}), {hasCommittedMutations: "+this.hasCommittedMutations+"})"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.Je||this.hasCommittedMutations}
2,enumerable:!1,configurable:!0}),t}(In),An=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n)||this).hasCommittedMutations=!(!r||!r.hasCommittedMutations),i}return r.__extends(t,e),t.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.hasCommittedMutations===this.hasCommittedMutations&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(In),Nn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.toString=function(){return"UnknownDocument("+this.key+", "+this.version+")"},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},t}(In),jn=function(e,t,n,r,i,o,a,s){void 0===t&&(t=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===o&&(o="F"),void 0===a&&(a=null),void 0===s&&(s=null),this.path=e,this.collectionGroup=t,this.on=n,this.filters=r,this.limit=i,this.an=o,this.startAt=a,this.endAt=s,this.cn=null,this.un=null,this.startAt,this.endAt};function Rn(e,t,n,r,i,o,a,s){return new jn(e,t,n,r,i,o,a,s)}function Dn(e){return new jn(e)}function Ln(e){return!ce(e.limit)&&"F"===e.an}function Mn(e){return!ce(e.limit)&&"L"===e.an}function Fn(e){return e.on.length>0?e.on[0].field:null}function zn(e){for(var t=0,n=e.filters;t<n.length;t++){var r=n[t];if(r.hn())return r.field}return null}function Un(e){return null!==e.collectionGroup}function Vn(e){var t=w(e);if(null===t.cn){t.cn=[];var n=zn(t),r=Fn(t);if(null!==n&&null===r)n.p()||t.cn.push(new lr(n)),t.cn.push(new lr(O.v(),"asc"));else{for(var i=!1,o=0,a=t.on;o<a.length;o++){var s=a[o];t.cn.push(s),s.field.p()&&(i=!0)}if(!i){var u=t.on.length>0?t.on[t.on.length-1].dir:"asc";t.cn.push(new lr(O.v(),u))}}}return t.cn}function Bn(e){var t=w(e);if(!t.un)if("F"===t.an)t.un=de(t.path,t.collectionGroup,Vn(t),t.filters,t.limit,t.startAt,t.endAt);else{for(var n=[],r=0,i=Vn(t);r<i.length;r++){var o=i[r],a="desc"===o.dir?"asc":"desc";n.push(new lr(o.field,a))}var s=t.endAt?new ar(t.endAt.position,!t.endAt.before):null,u=t.startAt?new ar(t.startAt.position,!t.startAt.before):null;t.un=de(t.path,t.collectionGroup,n,t.filters,t.limit,s,u)}return t.un}function qn(e,t,n){return new jn(e.path,e.collectionGroup,e.on.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Wn(e,t){return new jn(e.path,e.collectionGroup,e.on.slice(),e.filters.slice(),e.limit,e.an,t,e.endAt)}function Hn(e,t){return new jn(e.path,e.collectionGroup,e.on.slice(),e.filters.slice(),e.limit,e.an,e.startAt,t)}function Kn(e,t){return ve(Bn(e),Bn(t))&&e.an===t.an}function Gn(e){return pe(Bn(e))+"|lt:"+e.an}function $n(e){return"Query(target="+function(e){var t=e.path.R();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: ["+e.filters.map((function(e){return(t=e).field.R()+" "+t.op+" "+it(t.value);var t})).join(", ")+"]"),ce(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: ["+e.orderBy.map((function(e){return(t=e).field.R()+" ("+t.dir+")";var t})).join(", ")+"]"),e.startAt&&(t+=", startAt: "+sr(e.startAt)),e.endAt&&(t+=", endAt: "+sr(e.endAt)),"Target("+t+")"}(Bn(e))+"; limitType="+e.an+")"}function Qn(e,t){return function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.N(e.collectionGroup)&&e.path.T(n):x.F(e.path)?e.path.isEqual(n):e.path.I(n)}(e,t)&&function(e,t){for(var n=0,r=e.on;n<r.length;n++){var i=r[n];if(!i.field.p()&&null===t.field(i.field))return!1}return!0}(e,t)&&function(e,t){for(var n=0,r=e.filters;n<r.length;n++)if(!r[n].matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!ur(e.startAt,Vn(e),t))&&(!e.endAt||!ur(e.endAt,Vn(e),t))}(e,t)}function Yn(e){return function(t,n){for(var r=!1,i=0,o=Vn(e);i<o.length;i++){var a=o[i],s=fr(a,t,n);if(0!==s)return s;r=r||a.field.p()}return 0}}var Xn=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).field=t,i.op=n,i.value=r,i}return r.__extends(t,e),t.create=function(e,n,r){if(e.p())return"in"===n||"not-in"===n?this.ln(e,n,r):new Jn(e,n,r);if(ft(r)){if("=="!==n&&"!="!==n)throw new f(l.INVALID_ARGUMENT,"Invalid query. Null only supports '==' and '!=' comparisons.");return new t(e,n,r)}if(ht(r)){if("=="!==n&&"!="!==n)throw new f(l.INVALID_ARGUMENT,"Invalid query. NaN only supports '==' and '!=' comparisons.");return new t(e,n,r)}return"array-contains"===n?new nr(e,r):"in"===n?new rr(e,r):"not-in"===n?new ir(e,r):"array-contains-any"===n?new or(e,r):new t(e,n,r)},t.ln=function(e,t,n){return"in"===t?new Zn(e,n):new er(e,n)},t.prototype.matches=function(e){var t=e.field(this.field);return"!="===this.op?null!==t&&this._n(nt(t,this.value)):null!==t&&Ze(this.value)===Ze(t)&&this._n(nt(t,this.value))},t.prototype._n=function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return y()}},t.prototype.hn=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},t}((function(){})),Jn=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=x.C(r.referenceValue),i}return r.__extends(t,e),t.prototype.matches=function(e){var t=x.i(e.key,this.key);return this._n(t)},t}(Xn),Zn=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"in",n)||this).keys=tr("in",n),r}return r.__extends(t,e),t.prototype.matches=function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Xn),er=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"not-in",n)||this).keys=tr("not-in",n),r}return r.__extends(t,e),t.prototype.matches=function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))},t}(Xn);function tr(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return x.C(e.referenceValue)}))}var nr=function(e){function t(t,n){return e.call(this,t,"array-contains",n)||this}return r.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return lt(t)&&tt(t.arrayValue,this.value)},t}(Xn),rr=function(e){function t(t,n){return e.call(this,t,"in",n)||this}return r.__extends(t,e),t.prototype.matches=function(e){var t=e.field(this.field);return null!==t&&tt(this.value.arrayValue,t)},t}(Xn),ir=function(e){function t(t,n){return e.call(this,t,"not-in",n)||this}return r.__extends(t,e),t.prototype.matches=function(e){if(tt(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.field(this.field);return null!==t&&!tt(this.value.arrayValue,t)},t}(Xn),or=function(e){function t(t,n){return e.call(this,t,"array-contains-any",n)||this}return r.__extends(t,e),t.prototype.matches=function(e){var t=this,n=e.field(this.field);return!(!lt(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return tt(t.value.arrayValue,e)}))},t}(Xn),ar=function(e,t){this.position=e,this.before=t};function sr(e){return(e.before?"b":"a")+":"+e.position.map((function(e){return it(e)})).join(",")}function ur(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var o=t[i],a=e.position[i];if(r=o.field.p()?x.i(x.C(a.referenceValue),n.key):nt(a,n.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return e.before?r<=0:r<0}function cr(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.before!==t.before||e.position.length!==t.position.length)return!1;for(var n=0;n<e.position.length;n++)if(!et(e.position[n],t.position[n]))return!1;return!0}var lr=function(e,t){void 0===t&&(t="asc"),this.field=e,this.dir=t};function fr(e,t,n){var r=e.field.p()?x.i(t.key,n.key):function(e,t,n){var r=t.field(e),i=n.field(e);return null!==r&&null!==i?nt(r,i):y()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return y()}}function hr(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}var dr=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},pr=function(){function e(e,t,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.fn=e,this.dn=t,this.wn=n,this.mn=r,this.Tn=i,this.En=0,this.In=null,this.An=Date.now(),this.reset()}return e.prototype.reset=function(){this.En=0},e.prototype.Rn=function(){this.En=this.Tn},e.prototype.gn=function(e){var t=this;this.cancel();var n=Math.floor(this.En+this.Pn()),r=Math.max(0,Date.now()-this.An),i=Math.max(0,n-r);i>0&&p("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.En+" ms, delay with
2jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.In=this.fn.yn(this.dn,i,(function(){return t.An=Date.now(),e()})),this.En*=this.mn,this.En<this.wn&&(this.En=this.wn),this.En>this.Tn&&(this.En=this.Tn)},e.prototype.Vn=function(){null!==this.In&&(this.In.pn(),this.In=null)},e.prototype.cancel=function(){null!==this.In&&(this.In.cancel(),this.In=null)},e.prototype.Pn=function(){return(Math.random()-.5)*this.En},e}(),vr=function(){function e(e){var t=this;this.bn=null,this.vn=null,this.result=void 0,this.error=void 0,this.Sn=!1,this.Dn=!1,e((function(e){t.Sn=!0,t.result=e,t.bn&&t.bn(e)}),(function(e){t.Sn=!0,t.error=e,t.vn&&t.vn(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.Dn&&y(),this.Dn=!0,this.Sn?this.error?this.Cn(n,this.error):this.Nn(t,this.result):new e((function(e,i){r.bn=function(n){r.Nn(t,n).next(e,i)},r.vn=function(t){r.Cn(n,t).next(e,i)}}))},e.prototype.Fn=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.xn=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.Nn=function(t,n){return t?this.xn((function(){return t(n)})):e.resolve(n)},e.prototype.Cn=function(t,n){return t?this.xn((function(){return t(n)})):e.reject(n)},e.resolve=function(t){return new e((function(e,n){e(t)}))}
2,e.reject=function(t){return new e((function(e,n){n(t)}))},e.$n=function(t){return new e((function(e,n){var r=0,i=0,o=!1;t.forEach((function(t){++r,t.next((function(){++i,o&&i===r&&e()}),(function(e){return n(e)}))})),o=!0,i===r&&e()}))},e.kn=function(t){for(var n=e.resolve(!1),r=function(t){n=n.next((function(n){return n?e.resolve(n):t()}))},i=0,o=t;i<o.length;i++)r(o[i]);return n},e.forEach=function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.$n(r)},e}(),mr=function(){function t(e,n,r){this.name=e,this.version=n,this.Mn=r,12.2===t.On(a.getUA())&&v("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}return t.delete=function(e){return p("SimpleDb","Removing database:",e),Er(window.indexedDB.deleteDatabase(e)).Fn()},t.Ln=function(){if("undefined"==typeof indexedDB)return!1;if(t.Bn())return!0;var e=a.getUA(),n=t.On(e),r=0<n&&n<10,i=t.qn(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)},t.Bn=function(){var t;return"undefined"!=typeof e&&"YES"===(null===(t=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0}))||void 0===t?void 0:t.Un)},t.Qn=function(e,t){return e.store(t)},t.On=function(e){var t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)},t.qn=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.Wn=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(p("SimpleDb","Opening database:",this.name),t=this,[4,new Promise((function(t,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(e){var n=e.target.result;t(n)},i.onblocked=function(){r(new yr(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(t){var n=t.target.error;"VersionError"===n.name?r(new f(l.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):r(new yr(e,n))},i.onupgradeneeded=function(e){p("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',e.oldVersion);var t=e.target.result;n.Mn.createOrUpgrade(t,i.transaction,e.oldVersion,n.version).next((function(){p("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:t.db=r.sent(),r.label=2;case 2:return[2,(this.jn&&(this.db.onversionchange=function(e){return n.jn(e)}),this.db)]}}))}))},t.prototype.Kn=function(e){this.jn=e,this.db&&(this.db.onversionchange=function(t){return e(t)})},t.prototype.runTransaction=function(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,c;return r.__generator(this,(function(l){switch(l.label){case 0:o="readonly"===t,a=0,s=function(){var t,s,c,l,f;return r.__generator(this,(function(r){switch(r.label){case 0:++a,r.label=1;case 1:return r.trys.push([1,4,,5]),[4,u.Wn(e)];case 2:return u.db=r.sent(),t=wr.open(u.db,e,o?"readonly":"readwrite",n),s=i(t).catch((function(e){return t.abort(e),vr.reject(e)})).Fn(),c={},s.catch((function(){})),[4,t.Gn];case 3:return[2,(c.value=(r.sent(),s),c)];case 4:return l=r.sent(),f="FirebaseError"!==l.name&&a<3,p("SimpleDb","Transaction failed with error:",l.message,"Retrying:",f),u.close(),f?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[2]}}
2))},u=this,l.label=1;case 1:return[5,s()];case 2:if("object"==typeof(c=l.sent()))return[2,c.value];l.label=3;case 3:return[3,1];case 4:return[2]}}))}))},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),gr=function(){function e(e){this.zn=e,this.Hn=!1,this.Yn=null}return Object.defineProperty(e.prototype,"Sn",{get:function(){return this.Hn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Jn",{get:function(){return this.Yn},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.zn=e},enumerable:!1,configurable:!0}),e.prototype.done=function(){this.Hn=!0},e.prototype.Xn=function(e){this.Yn=e},e.prototype.delete=function(){return Er(this.zn.delete())},e}(),yr=function(e){function t(t,n){var r=this;return(r=e.call(this,l.UNAVAILABLE,"IndexedDB transaction '"+t+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return r.__extends(t,e),t}(f);function br(e){return"IndexedDbTransactionError"===e.name}var wr=function(){function e(e,t){var n=this;this.action=e,this.transaction=t,this.aborted=!1,this.Zn=new dr,this.transaction.oncomplete=function(){n.Zn.resolve()},this.transaction.onabort=function(){t.error?n.Zn.reject(new yr(e,t.error)):n.Zn.resolve()},this.transaction.onerror=function(t){var r=kr(t.target.error);n.Zn.reject(new yr(e,r))}}return e.open=function(t,n,r,i){try{return new e(n,t.transaction(i,r))}catch(t){throw new yr(n,t)}},Object.defineProperty(e.prototype,"Gn",{get:function(){return this.Zn.promise},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){e&&this.Zn.reject(e),this.aborted||(p("SimpleDb","Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return new _r(t)},e}(),_r=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(p("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),Er(n)},e.prototype.add=function(e){return p("SimpleDb","ADD",this.store.name,e,e),Er(this.store.add(e))},e.prototype.get=function(e){var t=this;return Er(this.store.get(e)).next((function(n){return void 0===n&&(n=null),p("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return p("SimpleDb","DELETE",this.store.name,e),Er(this.store.delete(e))},e.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),Er(this.store.count())},e.prototype.ts=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.es(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.ns=function(e,t){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.ss=!1;var r=this.cursor(n);return this.es(r,(function(e,t,n){return n.delete()}))},e.prototype.rs=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.es(r,t)},e.prototype.os=function(e){var t=this.cursor({});return new vr((function(n,r){t.onerror=function(e){var t=kr(e.target.error);r(t)},t.onsuccess=function(t){var r=t.target.result;r?e(r.primaryKey,r.value).next((function(e){e?r.continue():n()})):n()}}))},e.prototype.es=function(e,t){var n=[];return new vr((function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var o=new gr(i),a=t(i.primaryKey,i.value,o);if(a instanceof vr){var s=a.catch((function(e){return o.done(),vr.reject(e)}));n.push(s)}o.Sn?r():null===o.Jn?i.continue():i.continue(o.Jn)}else r()}})).next((function(){return vr.$n(n)}))},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.ss?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function Er(e){return new vr((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=kr(e.target.error);n(t)}}))}var Sr=!1;function kr(e){var t=mr.On(a.getUA());if(t>=12.2&&t<13){var n="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(n)>=0){var r=new f("internal","IOS_INDEXEDDB_BUG1: IndexedDb has thrown '"+n+"'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.");return Sr||(Sr=!0,setTimeout((function(){throw r}),0)),r}}return e}function Tr(){return"undefined"!=typeof window?window:null}function Cr(){return"undefined"!=typeof document?document:null}var Or=function(){function e(e,t,n,r,i){this.cs=e,this.dn=t,this.us=n,this.op=r,this.hs=i,this.ls=new dr,this.then=this.ls.promise.then.bind(this.ls.promise),this.ls.promise.catch((function(e){}))}return e._s=function(t,n,r,i,o){var a=new e(t,n,Date.now()+r,i,o);return a.start(r),a},e.prototype.start=function(e){var t=this;this.fs=setTimeout((function(){return t.ds()}),e)},e.prototype.pn=function(){return this.ds()},e.prototype.cancel=function(e){null!==this.fs&&(this.clearTimeout(),this.ls.reject(new f(l.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.ds=function(){var e=this;this.cs.ws((function(){return null!==e.fs?(e.clearTimeout(),e.op().then((function(t){return e.ls.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.fs&&(this.hs(this),clearTimeout(this.fs),this.fs=null)},e}(),xr=function(){function e(){var e=this;this.Ts=Promise.resolve(),this.Es=[],this.Is=!1,this.As=[],this.Rs=null,this.gs=!1,this.Ps=[],this.ys=new pr(this,"async_queue_retry"),this.Vs=function(){var t=Cr();t&&p("AsyncQueue","Visibility state changed to ",t.visibilityState),e.ys.Vn()};var t=Cr();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Vs)}return Object.defineProperty(e.prototype,"ps",{get:function(){return this.Is}
2,enumerable:!1,configurable:!0}),e.prototype.ws=function(e){this.enqueue(e)},e.prototype.bs=function(e){this.vs(),this.Ss(e)},e.prototype.Ds=function(){if(!this.Is){this.Is=!0;var e=Cr();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Vs)}},e.prototype.enqueue=function(e){return this.vs(),this.Is?new Promise((function(e){})):this.Ss(e)},e.prototype.Cs=function(e){var t=this;this.ws((function(){return t.Es.push(e),t.Ns()}))},e.prototype.Ns=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(0===this.Es.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.Es[0]()];case 2:return n.sent(),this.Es.shift(),this.ys.reset(),[3,4];case 3:if(!br(e=n.sent()))throw e;return p("AsyncQueue","Operation failed with retryable error: "+e),[3,4];case 4:this.Es.length>0&&this.ys.gn((function(){return t.Ns()})),n.label=5;case 5:return[2]}}))}))},e.prototype.Ss=function(e){var t=this,n=this.Ts.then((function(){return t.gs=!0,e().catch((function(e){throw t.Rs=e,t.gs=!1,v("INTERNAL UNHANDLED ERROR: ",function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e)),e})).then((function(e){return t.gs=!1,e}))}));return this.Ts=n,n},e.prototype.yn=function(e,t,n){var r=this;this.vs(),this.Ps.indexOf(e)>-1&&(t=0);var i=Or._s(this,e,t,n,(function(e){return r.Fs(e)}));return this.As.push(i),i},e.prototype.vs=function(){this.Rs&&y()},e.prototype.xs=function(){},e.prototype.$s=function(){return r.__awaiter(this,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return[4,e=this.Ts];case 1:t.sent(),t.label=2;case 2:if(e!==this.Ts)return[3,0];t.label=3;case 3:return[2]}}
2))}))},e.prototype.ks=function(e){for(var t=0,n=this.As;t<n.length;t++)if(n[t].dn===e)return!0;return!1},e.prototype.Ms=function(e){var t=this;return this.$s().then((function(){t.As.sort((function(e,t){return e.us-t.us}));for(var n=0,r=t.As;n<r.length;n++){var i=r[n];if(i.pn(),"all"!==e&&i.dn===e)break}return t.$s()}))},e.prototype.Os=function(e){this.Ps.push(e)},e.prototype.Fs=function(e){var t=this.As.indexOf(e);this.As.splice(t,1)},e}();function Ir(e,t){if(v("AsyncQueue",t+": "+e),br(e))return new f(l.UNAVAILABLE,t+": "+e);throw e}var Pr=function(){this.Ls=void 0,this.listeners=[]},Ar=function(){this.Bs=new ae((function(e){return Gn(e)}),Kn),this.onlineState="Unknown",this.qs=new Set};function Nr(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:if(n=w(e),i=t.query,o=!1,(a=n.Bs.get(i))||(o=!0,a=new Pr),!o)return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),s=a,[4,n.Us(i)];case 2:return s.Ls=r.sent(),[3,4];case 3:return u=r.sent(),c=Ir(u,"Initialization of query '"+$n(t.query)+"' failed"),[2,void t.onError(c)];case 4:return n.Bs.set(i,a),a.listeners.push(t),t.Qs(n.onlineState),a.Ls&&t.Ws(a.Ls)&&Lr(n),[2]}}))}))}function jr(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s;return r.__generator(this,(function(r){return n=w(e),i=t.query,o=!1,(a=n.Bs.get(i))&&(s=a.listeners.indexOf(t))>=0&&(a.listeners.splice(s,1),o=0===a.listeners.length),o?[2,(n.Bs.delete(i),n.js(i))]:[2]}))}))}function Rr(e,t){for(var n=w(e),r=!1,i=0,o=t;i<o.length;i++){var a=o[i],s=a.query,u=n.Bs.get(s);if(u){for(var c=0,l=u.listeners;c<l.length;c++)l[c].Ws(a)&&(r=!0);u.Ls=a}}r&&Lr(n)}function Dr(e,t,n){var r=w(e),i=r.Bs.get(t);if(i)for(var o=0,a=i.listeners;o<a.length;o++)a[o].onError(n);r.Bs.delete(t)}function Lr(e){e.qs.forEach((function(e){e.next()}))}var Mr=function(){function e(e,t,n){this.query=e,this.Ks=t,this.Gs=!1,this.zs=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.Ws=function(e){if(!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&t.push(i)}e=new Ue(e.query,e.docs,e.Qt,t,e.Wt,e.fromCache,e.jt,!0)}var o=!1;return this.Gs?this.Hs(e)&&(this.Ks.next(e),o=!0):this.Ys(e,this.onlineState)&&(this.Js(e),o=!0),this.zs=e,o},e.prototype.onError=function(e){this.Ks.error(e)},e.prototype.Qs=function(e){this.onlineState=e;var t=!1;return this.zs&&!this.Gs&&this.Ys(this.zs,e)&&(this.Js(this.zs),t=!0),t},e.prototype.Ys=function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return!(this.options.Xs&&n||e.docs.m()&&"Offline"!==t)},e.prototype.Hs=function(e){if(e.docChanges.length>0)return!0;var t=this.zs&&this.zs.hasPendingWrites!==e.hasPendingWrites;return!(!e.jt&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.Js=function(e){e=Ue.Gt(e.query,e.docs,e.Wt,e.fromCache),this.Gs=!0,this.Ks.next(e)},e}(),Fr=function(){function e(e){this.uid=e}return e.prototype.Zs=function(){return null!=this.uid},e.prototype.ti=function(){return this.Zs()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();Fr.UNAUTHENTICATED=new Fr(null),Fr.ei=new Fr("google-credentials-uid"),Fr.ni=new Fr("first-party-uid");var zr=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.si=function(e){return n.ii(e)},this.ri=function(e){return t.oi(e)})}return e.prototype.ii=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.ri&&this.ri(e),e},e}();function Ur(e,t){return"firestore_clients_"+e+"_"+t}function Vr(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.Zs()&&(r+="_"+t.uid),r}function Br(e,t){return"firestore_targets_"+e+"_"+t}zr.ai=-1;var qr=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.ci=function(t,n,r){var i=JSON.parse(r),o="object"==typeof i&&-1!==["pending","acknowledged","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error),a=void 0;return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(a=new f(i.error.code,i.error.message)),o?new e(t,n,i.state,a):(v("SharedCl
2ientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.ui=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Wr=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.ci=function(t,n){var r=JSON.parse(n),i="object"==typeof r&&-1!==["not-current","current","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error),o=void 0;return i&&r.error&&(i="string"==typeof r.error.message&&"string"==typeof r.error.code)&&(o=new f(r.error.code,r.error.message)),i?new e(t,r.state,o):(v("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.ui=function(){var e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)},e}(),Hr=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.ci=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=Me(),a=0;i&&a<r.activeTargetIds.length;++a)i=fe(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new e(t,o):(v("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),Kr=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.ci=function(t){var n=JSON.parse(t);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new e(n.clientId,n.onlineState):(v("SharedClientState","Failed to parse online state: "+t),null)},e}(),Gr=function(){function e(){this.activeTargetIds=Me()}return e.prototype.hi=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.li=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.ui=function(){var e={activeTargetIds:this.activeTargetIds.A(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),$r=function(){function e(e,t,n,r,i){this.window=e,this.fn=t,this.persistenceKey=n,this._i=r,this.fi=null,this.di=null,this.si=null,this.wi=this.mi.bind(this),this.Ti=new Se(Y),this.Ei=!1,this.Ii=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ai=Ur(this.persistenceKey,this._i),this.Ri=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.Ti=this.Ti.ot(this._i,new Gr),this.gi=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Pi=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.yi=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Vi=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.window.addEventListener("storage",this.wi)}return e.Ln=function(e){return!(!e||!e.localStorage)},e.prototype.start=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t,n,i,o,a,s,u,c,l,f,h=this;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,this.fi.pi()];case 1:for(e=r.sent(),t=0,n=e;t<n.length;t++)(i=n[t])!==this._i&&(o=this.getItem(Ur(this.persistenceKey,i)))&&(a=Hr.ci(i,o))&&(this.Ti=this.Ti.ot(a.clientId,a));for(this.bi(),(s=this.storage.getItem(this.Vi))&&(u=this.vi(s))&&this.Si(u),c=0,l=this.Ii;c<l.length;c++)f=l[c],this.mi(f);return this.Ii=[],this.window.addEventListener("unload",(function(){return h.Di()})),this.Ei=!0,[2]}}))}))},e.prototype.oi=function(e){this.setItem(this.Ri,JSON.stringify(e))},e.prototype.Ci=function(){return this.Ni(this.Ti)},e.prototype.Fi=function(e){var t=!1;return this.Ti.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t},e.prototype.xi=function(e){this.$i(e,"pending")},e.prototype.ki=function(e,t,n){this.$i(e,t,n),this.Mi(e)},e.prototype.Oi=function(e){var t="not-current";if(this.Fi(e)){var n=this.storage.getItem(Br(this.persistenceKey,e));if(n){var r=Wr.ci(e,n);r&&(t=r.state)}}return this.Li.hi(e),this.bi(),t},e.prototype.Bi=function(e){this.Li.li(e),this.bi()},e.prototype.qi=function(e){return this.Li.activeTargetIds.has(e)},e.prototype.Ui=function(e){this.removeItem(Br(this.persistenceKey,e))},e.prototype.Qi=function(e,t,n){this.Wi(e,t,n)},e.prototype.ji=function(e,t,n){var r=this;t.forEach((function(e){r.Mi(e)}
2)),this.currentUser=e,n.forEach((function(e){r.xi(e)}))},e.prototype.Ki=function(e){this.Gi(e)},e.prototype.Di=function(){this.Ei&&(this.window.removeEventListener("storage",this.wi),this.removeItem(this.Ai),this.Ei=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return p("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){p("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){p("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.mi=function(e){var t=this,n=e;if(n.storageArea===this.storage){if(p("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Ai)return void v("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.fn.Cs((function(){return r.__awaiter(t,void 0,void 0,(function(){var e,t,i,o,a,s;return r.__generator(this,(function(r){if(this.Ei){if(null!==n.key)if(this.gi.test(n.key)){if(null==n.newValue)return e=this.zi(n.key),[2,this.Hi(e,null)];if(t=this.Yi(n.key,n.newValue))return[2,this.Hi(t.clientId,t)]}else if(this.Pi.test(n.key)){if(null!==n.newValue&&(i=this.Ji(n.key,n.newValue)))return[2,this.Xi(i)]}else if(this.yi.test(n.key)){if(null!==n.newValue&&(o=this.Zi(n.key,n.newValue)))return[2,this.tr(o)]}else if(n.key===this.Vi){if(null!==n.newValue&&(a=this.vi(n.newValue)))return[2,this.Si(a)]}else n.key===this.Ri&&(s=function(e){var t=zr.ai;if(null!=e)try{var n=JSON.parse(e);b("number"==typeof n),t=n}catch(e){v("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(n.newValue))!==zr.ai&&this.si(s)}else this.Ii.push(n);return[2]}))}))}))}},Object.defineProperty(e.prototype,"Li",{get:function(){return this.Ti.get(this._i)},enumerable:!1,configurable:!0}),e.prototype.bi=function(){this.setItem(this.Ai,this.Li.ui())},e.prototype.$i=function(e,t,n){var r=new qr(this.currentUser,e,t,n),i=Vr(this.persistenceKey,this.currentUser,e);this.setItem(i,r.ui())},e.prototype.Mi=function(e){var t=Vr(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.Gi=function(e){var t={clientId:this._i,onlineState:e};this.storage.setItem(this.Vi,JSON.stringify(t))},e.prototype.Wi=function(e,t,n){var r=Br(this.persistenceKey,e),i=new Wr(e,t,n);this.setItem(r,i.ui())},e.prototype.zi=function(e){var t=this.gi.exec(e);return t?t[1]:null},e.prototype.Yi=function(e,t){var n=this.zi(e);return Hr.ci(n,t)},e.prototype.Ji=function(e,t){var n=this.Pi.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return qr.ci(new Fr(i),r,t)},e.prototype.Zi=function(e,t){var n=this.yi.exec(e),r=Number(n[1]);return Wr.ci(r,t)},e.prototype.vi=function(e){return Kr.ci(e)},e.prototype.Xi=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return e.user.uid===this.currentUser.uid?[2,this.fi.er(e.batchId,e.state,e.error)]:(p("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])}))}))},e.prototype.tr=function(e){return this.fi.nr(e.targetId,e.state,e.error)},e.prototype.Hi=function(e,t){var n=this,r=t?this.Ti.ot(e,t):this.Ti.remove(e),i=this.Ni(this.Ti),o=this.Ni(r),a=[],s=[];return o.forEach((function(e){i.has(e)||a.push(e)})),i.forEach((function(e){o.has(e)||s.push(e)})),this.fi.sr(a,s).then((function(){n.Ti=r}))},e.prototype.Si=function(e){this.Ti.get(e.clientId)&&this.di(e.onlineState)},e.prototype.Ni=function(e){var t=Me();return e.forEach((function(e,n){t=t.kt(n.activeTargetIds)})),t},e}(),Qr=function(){function e(){this.ir=new Gr,this.rr={},this.di=null,this.si=null}return e.prototype.xi=function(e){},e.prototype.ki=function(e,t,n){},e.prototype.Oi=function(e){return this.ir.hi(e),this.rr[e]||"not-current"},e.prototype.Qi=function(e,t,n){this.rr[e]=t},e.prototype.Bi=function(e){this.ir.li(e)},e.prototype.qi=function(e){return this.ir.activeTargetIds.has(e)},e.prototype.Ui=function(e){delete this.rr[e]},e.prototype.Ci=function(){return this.ir.activeTargetIds},e.prototype.Fi=function(e){return this.ir.activeTargetIds.has(e)},e.prototype.start=function(){return this.ir=new Gr,Promise.resolve()},e.prototype.ji=function(e,t,n){},e.prototype.Ki=function(e){},e.prototype.Di=function(){},e.prototype.oi=function(e){},e}(),Yr=function(){function e(e,t,n,r){this.batchId=e,this.ar=t,this.baseMutations=n,this.mutations=r}return e.prototype.cr=function(e,t,n){for(var r=n.ur,i=0;i<this.mutations.length;i++){var o=this.mutations[i];o.key.isEqual(e)&&(t=dn(o,t,r[i]))}return t},e.prototype.hr=function(e,t){for(var n=0,r=this.baseMutations;n<r.length;n++){var i=r[n];i.key.isEqual(e)&&(t=pn(i,t,t,this.ar))}for(var o=t,a=0,s=this.mutations;a<s.length;a++){var u=s[a];u.key.isEqual(e)&&(t=pn(u,t,o,this.ar))}return t},e.prototype.lr=function(e){var t=this,n=e;return this.mutations.forEach((function(r){var i=t.hr(r.key,e.get(r.key));i&&(n=n.ot(r.key,i))})),n},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),De())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&X(this.mutations,e.mutations,(function(e,t){return mn(e,t)}))&&X(this.baseMutations,e.baseMutations,(function(e,t){return mn(e,t)}))},e}(),Xr=function(){function e(e,t,n,r){this.batch=e,this._r=t,this.ur=n,this.dr=r}return e.from=function(t,n,r){b(t.mutations.length===r.length);for(var i=je,o=t.mutations,a=0;a<o.length;a++)i=i.ot(o[a].key,r[a].version);return new e(t,n,r,i)},e}(),Jr=function(){function e(){this.wr=new ae((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.mr=!1}return Object.defineProperty(e.prototype,"readTime",{get:function(){return this.Tr},set:function(e){this.Tr=e}
2,enumerable:!1,configurable:!0}),e.prototype.Er=function(e,t){this.Ir(),this.readTime=t,this.wr.set(e.key,e)},e.prototype.Ar=function(e,t){this.Ir(),t&&(this.readTime=t),this.wr.set(e,null)},e.prototype.Rr=function(e,t){this.Ir();var n=this.wr.get(t);return void 0!==n?vr.resolve(n):this.gr(e,t)},e.prototype.getEntries=function(e,t){return this.Pr(e,t)},e.prototype.apply=function(e){return this.Ir(),this.mr=!0,this.yr(e)},e.prototype.Ir=function(){},e}(),Zr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",ei=function(){function e(){this.Vr=[]}return e.prototype.pr=function(e){this.Vr.push(e)},e.prototype.br=function(){this.Vr.forEach((function(e){return e()}))},e}(),ti=function(){function e(e,t,n){this.vr=e,this.Sr=t,this.Dr=n}return e.prototype.Cr=function(e,t){var n=this;return this.Sr.Nr(e,t).next((function(r){return n.Fr(e,t,r)}))},e.prototype.Fr=function(e,t,n){return this.vr.Rr(e,t).next((function(e){for(var r=0,i=n;r<i.length;r++)e=i[r].hr(t,e);return e}))},e.prototype.$r=function(e,t,n){var r=Pe();return t.forEach((function(e,t){for(var i=0,o=n;i<o.length;i++)t=o[i].hr(e,t);r=r.ot(e,t)})),r},e.prototype.kr=function(e,t){var n=this;return this.vr.getEntries(e,t).next((function(t){return n.Mr(e,t)}))},e.prototype.Mr=function(e,t){var n=this;return this.Sr.Or(e,t).next((function(r){var i=n.$r(e,t,r),o=Ie();return i.forEach((function(e,t){t||(t=new An(e,ue.min())),o=o.ot(e,t)})),o}))},e.prototype.Lr=function(e,t,n){return function(e){return x.F(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.Br(e,t.path):Un(t)?this.qr(e,t,n):this.Ur(e,t,n)},e.prototype.Br=function(e,t){return this.Cr(e,new x(t)).next((function(e){var t=Ne();return e instanceof Pn&&(t=t.ot(e.key,e)),t}))},e.prototype.qr=function(e,t,n){var r=this,i=t.collectionGroup,o=Ne();return this.Dr.Qr(e,i).next((function(a){return vr.forEach(a,(function(a){var s=function(e,t){return new jn(t,null,e.on.slice(),e.filters.slice(),e.limit,e.an,e.startAt,e.endAt)}(t,a.child(i));return r.Ur(e,s,n).next((function(e){e.forEach((function(e,t){o=o.ot(e,t)}))}))})).next((function(){return o}))}))},e.prototype.Ur=function(e,t,n){var r,i,o=this;return this.vr.Lr(e,t,n).next((function(n){return r=n,o.Sr.Wr(e,t)})).next((function(t){return i=t,o.jr(e,i,r).next((function(e){r=e;for(var t=0,n=i;t<n.length;t++)for(var o=n[t],a=0,s=o.mutations;a<s.length;a++){var u=s[a],c=u.key,l=r.get(c),f=pn(u,l,l,o.ar);r=f instanceof Pn?r.ot(c,f):r.remove(c)}}))})).next((function(){return r.forEach((function(e,n){Qn(t,n)||(r=r.remove(e))})),r}))},e.prototype.jr=function(e,t,n){for(var r=De(),i=0,o=t;i<o.length;i++)for(var a=0,s=o[i].mutations;a<s.length;a++){var u=s[a];u instanceof bn&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.vr.getEntries(e,r).next((function(e){return e.forEach((function(e,t){null!==t&&t instanceof Pn&&(c=c.ot(e,t))})),c}))},e}(),ni=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.Kr=n,this.Gr=r}return e.zr=function(t,n){for(var r=De(),i=De(),o=0,a=n.docChanges;o<a.length;o++){var s=a[o];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new e(t,n.fromCache,r,i)},e}();function ri(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=Y(n,i);return 0===a?Y(r,o):a}var ii=function(){function e(e){this.Hr=e,this.buffer=new Ce(ri),this.Yr=0}return e.prototype.Jr=function(){return++this.Yr},e.prototype.Xr=function(e){var t=[e,this.Jr()];if(this.buffer.size<this.Hr)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();ri(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}},Object.defineProperty(e.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),e}(),oi={Zr:!1,eo:0,no:0,so:0},ai=function(){function e(e,t,n){this.io=e,this.ro=t,this.oo=n}return e.ao=function(t){return new e(t,e.co,e.uo)},e}();ai.ho=-1,ai.lo=1048576,ai._o=41943040,ai.co=10,ai.uo=1e3,ai.fo=new ai(ai._o,ai.co,ai.uo),ai.do=new ai(ai.ho,0,0);var si=function(){function e(e,t){this.wo=e,this.cs=t,this.mo=!1,this.To=null}return e.prototype.start=function(e){this.wo.params.io!==ai.ho&&this.Eo(e)},e.prototype.stop=function(){this.To&&(this.To.cancel(),this.To=null)},Object.defineProperty(e.prototype,"Ei",{get:function(){return null!==this.To}
2,enumerable:!1,configurable:!0}),e.prototype.Eo=function(e){var t=this,n=this.mo?3e5:6e4;p("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.To=this.cs.yn("lru_garbage_collection",n,(function(){return r.__awaiter(t,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:this.To=null,this.mo=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,e.Io(this.wo)];case 2:return n.sent(),[3,7];case 3:return br(t=n.sent())?(p("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",t),[3,6]):[3,4];case 4:return[4,Oo(t)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.Eo(e)];case 8:return n.sent(),[2]}}))}))}))},e}(),ui=function(){function e(e,t){this.Ao=e,this.params=t}return e.prototype.Ro=function(e,t){return this.Ao.Po(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.yo=function(e,t){var n=this;if(0===t)return vr.resolve(zr.ai);var r=new ii(t);return this.Ao.Ce(e,(function(e){return r.Xr(e.sequenceNumber)})).next((function(){return n.Ao.Vo(e,(function(e){return r.Xr(e)}))})).next((function(){return r.maxValue}))},e.prototype.po=function(e,t,n){return this.Ao.po(e,t,n)},e.prototype.bo=function(e,t){return this.Ao.bo(e,t)},e.prototype.vo=function(e,t){var n=this;return this.params.io===ai.ho?(p("LruGarbageCollector","Garbage collection skipped; disabled"),vr.resolve(oi)):this.So(e).next((function(r){return r<n.params.io?(p("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.io),oi):n.Do(e,t)}))},e.prototype.So=function(e){return this.Ao.So(e)},e.prototype.Do=function(e,t){var n,r,i,a,s,u,c,l=this,f=Date.now();return this.Ro(e,this.params.ro).next((function(t){return t>l.params.oo?(p("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.oo+" from "+t),r=l.params.oo):r=t,a=Date.now(),l.yo(e,r)})).next((function(r){return n=r,s=Date.now(),l.po(e,n,t)})).next((function(t){return i=t,u=Date.now(),l.bo(e,n)})).next((function(e){return c=Date.now(),d()<=o.LogLevel.DEBUG&&p("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-f)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+i+" targets in "+(u-s)+"ms\n\tRemoved "+e+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-f)+"ms"),vr.resolve({Zr:!0,eo:r,no:i,so:e})}))},e}();function ci(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=fi(t)),t=li(e.get(n),t);return fi(t)}function li(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=o}}return n}function fi(e){return e+"\x01\x01"}function hi(e){var t=e.length;if(b(t>=2),2===t)return b("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),T.P();for(var n=t-2,r=[],i="",o=0;o<t;){var a=e.indexOf("\x01",o);switch((a<0||a>n)&&y(),e.charAt(a+1)){case"\x01":var s=e.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=e.substring(o,a),i+="\0";break;case"\x11":i+=e.substring(o,a+1);break;default:y()}o=a+2}return new T(r)}var di=function(e){this.Co=e};function pi(e,t){if(t.document)return function(e,t,n){var r=Ot(e,t.name),i=St(t.updateTime),o=new Cn({mapValue:{fields:t.fields}});return new Pn(r,i,o,{hasCommittedMutations:!!n})}(e.Co,t.document,!!t.hasCommittedMutations);if(t.noDocument){var n=x.$(t.noDocument.path),r=bi(t.noDocument.readTime);return new An(n,r,{hasCommittedMutations:!!t.hasCommittedMutations})}if(t.unknownDocument){var i=x.$(t.unknownDocument.path),o=bi(t.unknownDocument.version);return new Nn(i,o)}return y()}function vi(e,t,n){var r=mi(n),i=t.key.path.h().A();
2if(t instanceof Pn){var o=function(e,t){return{name:Ct(e,t.key),fields:t.rn().mapValue.fields,updateTime:wt(e,t.version.Z())}}(e.Co,t),a=t.hasCommittedMutations;return new Hi(null,null,o,a,r,i)}if(t instanceof An){var s=t.key.path.A(),u=yi(t.version),c=t.hasCommittedMutations;return new Hi(null,new qi(s,u),null,c,r,i)}if(t instanceof Nn){var l=t.key.path.A(),f=yi(t.version);return new Hi(new Wi(l,f),null,null,!0,r,i)}return y()}function mi(e){var t=e.Z();return[t.seconds,t.nanoseconds]}function gi(e){var t=new se(e[0],e[1]);return ue.J(t)}function yi(e){var t=e.Z();return new Fi(t.seconds,t.nanoseconds)}function bi(e){var t=new se(e.seconds,e.nanoseconds);return ue.J(t)}function wi(e,t){var n=(t.baseMutations||[]).map((function(t){return Rt(e.Co,t)})),r=t.mutations.map((function(t){return Rt(e.Co,t)})),i=se.fromMillis(t.localWriteTimeMs);return new Yr(t.batchId,i,n,r)}function _i(e){var t,n,r=bi(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?bi(e.lastLimboFreeSnapshotVersion):ue.min();return void 0!==e.query.documents?(b(1===(n=e.query).documents.length),t=Bn(Dn(It(n.documents[0])))):t=Mt(e.query),new be(t,e.targetId,0,e.lastListenSequenceNumber,r,i,Z.fromBase64String(e.resumeToken))}function Ei(e,t){var n,r=yi(t.nt),i=yi(t.lastLimboFreeSnapshotVersion);n=me(t.target)?Dt(e.Co,t.target):Lt(e.Co,t.target);var o=t.resumeToken.toBase64();return new Gi(t.targetId,pe(t.target),r,o,t.sequenceNumber,i,n)}var Si=function(){function e(e,t,n,r){this.userId=e,this.serializer=t,this.Dr=n,this.No=r,this.Fo={}}return e.xo=function(t,n,r,i){return b(""!==t.uid),new e(t.Zs()?t.uid:"",n,r,i)},e.prototype.$o=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Ci(e).rs({index:Vi.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.ko=function(e,t,n,r){var i=this,o=Oi(e),a=Ci(e);return a.add({}).next((function(s){b("number"==typeof s);for(var u=new Yr(s,t,n,r),c=function(e,t,n){var r=n.baseMutations.map((function(t){return jt(e.Co,t)})),i=n.mutations.map((function(t){return jt(e.Co,t)}));return new Vi(t,n.batchId,n.ar.toMillis(),r,i)}(i.serializer,i.userId,u),l=[],f=new Ce((function(e,t){return Y(e.R(),t.R())})),h=0,d=r;h<d.length;h++){var p=d[h],v=Bi.key(i.userId,p.key.path,s);f=f.add(p.key.path.h()),l.push(a.put(c)),l.push(o.put(v,Bi.PLACEHOLDER))}return f.forEach((function(t){l.push(i.Dr.Mo(e,t))})),e.pr((function(){i.Fo[s]=u.keys()})),vr.$n(l).next((function(){return u}))}))},e.prototype.Oo=function(e,t){var n=this;return Ci(e).get(t).next((function(e){return e?(b(e.userId===n.userId),wi(n.serializer,e)):null}))},e.prototype.Lo=function(e,t){var n=this;return this.Fo[t]?vr.resolve(this.Fo[t]):this.Oo(e,t).next((function(e){if(e){var r=e.keys();return n.Fo[t]=r,r}return null}))},e.prototype.Bo=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return Ci(e).rs({index:Vi.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(b(t.batchId>=r),o=wi(n.serializer,t)),i.done()})).next((function(){return o}))},e.prototype.qo=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return Ci(e).rs({index:Vi.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.Uo=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return Ci(e).ts(Vi.userMutationsIndex,n).next((function(e){return e.map((function(e){return wi(t.serializer,e)}))}))},e.prototype.Nr=function(e,t){var n=this,r=Bi.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return Oi(e).rs({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=hi(u);if(s===n.userId&&t.path.isEqual(l))return Ci(e).get(c).next((function(e){if(!e)throw y();b(e.userId===n.userId),o.push(wi(n.serializer,e))}));a.done()})).next((function(){return o}))},e.prototype.Or=function(e,t){var n=this,r=new Ce(Y),i=[];return t.forEach((function(t){var o=Bi.prefixForPath(n.userId,t.path),a=IDBKeyRange.lowerBound(o),s=Oi(e).rs({range:a},(function(e,i,o){var a=e[0],s=e[1],u=e[2],c=hi(s);a===n.userId&&t.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),vr.$n(i).next((function(){return n.Qo(e,r)}))},e.prototype.Wr=function(e,t){var n=this,r=t.path,i=r.length+1,o=Bi.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Ce(Y);return Oi(e).rs({range:a},(function(e,t,o){var a=e[0],u=e[1],c=e[2],l=hi(u);
2a===n.userId&&r.T(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Qo(e,s)}))},e.prototype.Qo=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(Ci(e).get(t).next((function(e){if(null===e)throw y();b(e.userId===n.userId),r.push(wi(n.serializer,e))})))})),vr.$n(i).next((function(){return r}))},e.prototype.Wo=function(e,t){var n=this;return Ti(e.jo,this.userId,t).next((function(r){return e.pr((function(){n.Ko(t.batchId)})),vr.forEach(r,(function(t){return n.No.Go(e,t)}))}))},e.prototype.Ko=function(e){delete this.Fo[e]},e.prototype.zo=function(e){var t=this;return this.$o(e).next((function(n){if(!n)return vr.resolve();var r=IDBKeyRange.lowerBound(Bi.prefixForUser(t.userId)),i=[];return Oi(e).rs({range:r},(function(e,n,r){if(e[0]===t.userId){var o=hi(e[1]);i.push(o)}else r.done()})).next((function(){b(0===i.length)}))}))},e.prototype.Ho=function(e,t){return ki(e,this.userId,t)},e.prototype.Yo=function(e){var t=this;return xi(e).get(this.userId).next((function(e){return e||new Ui(t.userId,-1,"")}))},e}();function ki(e,t,n){var r=Bi.prefixForPath(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return Oi(e).rs({range:o,ss:!0},(function(e,n,r){var o=e[0],s=e[1];e[2],o===t&&s===i&&(a=!0),r.done()})).next((function(){return a}))}function Ti(e,t,n){var r=e.store(Vi.store),i=e.store(Bi.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.rs({range:a},(function(e,t,n){return s++,n.delete()}));o.push(u.next((function(){b(1===s)})));for(var c=[],l=0,f=n.mutations;l<f.length;l++){var h=f[l],d=Bi.key(t,h.key.path,n.batchId);o.push(i.delete(d)),c.push(h.key)}return vr.$n(o).next((function(){return c}))}function Ci(e){return co.Qn(e,Vi.store)}function Oi(e){return co.Qn(e,Bi.store)}function xi(e){return co.Qn(e,Ui.store)}var Ii=function(){function e(e,t){this.serializer=e,this.Dr=t}return e.prototype.Er=function(e,t,n){return Ni(e).put(ji(t),n)},e.prototype.Ar=function(e,t){var n=Ni(e),r=ji(t);return n.delete(r)},e.prototype.updateMetadata=function(e,t){var n=this;return this.getMetadata(e).next((function(r){return r.byteSize+=t,n.Jo(e,r)}))},e.prototype.Rr=function(e,t){var n=this;return Ni(e).get(ji(t)).next((function(e){return n.Xo(e)}))},e.prototype.Zo=function(e,t){var n=this;return Ni(e).get(ji(t)).next((function(e){var t=n.Xo(e);return t?{ta:t,size:Ri(e)}:null}))},e.prototype.getEntries=function(e,t){var n=this,r=Pe();return this.ea(e,t,(function(e,t){var i=n.Xo(t);r=r.ot(e,i)})).next((function(){return r}))},e.prototype.na=function(e,t){var n=this,r=Pe(),i=new Se(x.i);return this.ea(e,t,(function(e,t){var o=n.Xo(t);o?(r=r.ot(e,o),i=i.ot(e,Ri(t))):(r=r.ot(e,null),i=i.ot(e,0))})).next((function(){return{sa:r,ia:i}}))},e.prototype.ea=function(e,t,n){if(t.m())return vr.resolve();var r=IDBKeyRange.bound(t.first().path.A(),t.last().path.A()),i=t._t(),o=i.It();return Ni(e).rs({range:r},(function(e,t,r){for(var a=x.$(e);o&&x.i(o,a)<0;)n(o,null),o=i.It();o&&o.isEqual(a)&&(n(o,t),o=i.At()?i.It():null),o?r.Xn(o.path.A()):r.done()})).next((function(){for(;o;)n(o,null),o=i.At()?i.It():null}))},e.prototype.Lr=function(e,t,n){var r=this,i=Ne(),o=t.path.length+1,a={};if(n.isEqual(ue.min())){var s=t.path.A();a.range=IDBKeyRange.lowerBound(s)}else{var u=t.path.A(),c=mi(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Hi.collectionReadTimeIndex}return Ni(e).rs(a,(function(e,n,a){if(e.length===o){var s=pi(r.serializer,n);t.path.T(s.key.path)?s instanceof Pn&&Qn(t,s)&&(i=i.ot(s.key,s)):a.done()}})).next((function(){return i}))},e.prototype.ra=function(e){return new Pi(this,!!e&&e.oa)},e.prototype.aa=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return Ai(e).get(Ki.key).next((function(e){return b(!!e),e}))},e.prototype.Jo=function(e,t){return Ai(e).put(Ki.key,t)},e.prototype.Xo=function(e){if(e){var t=pi(this.serializer,e);return t instanceof An&&t.version.isEqual(ue.min())?null:t}return null},e}(),Pi=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).ca=t,r.oa=n,r.ua=new ae((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),r}return r.__extends(t,e),t.prototype.yr=function(e){var t=this,n=[],r=0,i=new Ce((function(e,t){return Y(e.R(),t.R())}));return this.wr.forEach((function(o,a){var s=t.ua.get(o);if(a){var u=vi(t.ca.serializer,a,t.readTime);i=i.add(o.path.h());var c=Ri(u);r+=c-s,n.push(t.ca.Er(e,o,u))}else if(r-=s,t.oa){var l=vi(t.ca.serializer,new An(o,ue.min()),t.readTime);n.push(t.ca.Er(e,o,l))}else n.push(t.ca.Ar(e,o))}
2)),i.forEach((function(r){n.push(t.ca.Dr.Mo(e,r))})),n.push(this.ca.updateMetadata(e,r)),vr.$n(n)},t.prototype.gr=function(e,t){var n=this;return this.ca.Zo(e,t).next((function(e){return null===e?(n.ua.set(t,0),null):(n.ua.set(t,e.size),e.ta)}))},t.prototype.Pr=function(e,t){var n=this;return this.ca.na(e,t).next((function(e){var t=e.sa;return e.ia.forEach((function(e,t){n.ua.set(e,t)})),t}))},t}(Jr);function Ai(e){return co.Qn(e,Ki.store)}function Ni(e){return co.Qn(e,Hi.store)}function ji(e){return e.path.A()}function Ri(e){var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw y();t=e.noDocument}return JSON.stringify(t).length}var Di=function(){function e(){this.ha=new Li}return e.prototype.Mo=function(e,t){return this.ha.add(t),vr.resolve()},e.prototype.Qr=function(e,t){return vr.resolve(this.ha.getEntries(t))},e}(),Li=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e._(),n=e.h(),r=this.index[t]||new Ce(T.i),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e._(),n=e.h(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new Ce(T.i)).A()},e}(),Mi=function(){function e(e){this.serializer=e}return e.prototype.createOrUpgrade=function(e,t,n,r){var i=this;b(n<r&&n>=0&&r<=10);var o=new wr("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore(zi.store)}(e),function(e){e.createObjectStore(Ui.store,{keyPath:Ui.keyPath}),e.createObjectStore(Vi.store,{keyPath:Vi.keyPath,autoIncrement:!0}).createIndex(Vi.userMutationsIndex,Vi.userMutationsKeyPath,{unique:!0}),e.createObjectStore(Bi.store)}(e),Xi(e),function(e){e.createObjectStore(Hi.store)}(e));var a=vr.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore($i.store),e.deleteObjectStore(Gi.store),e.deleteObjectStore(Qi.store)}(e),Xi(e)),a=a.next((function(){return function(e){var t=e.store(Qi.store),n=new Qi(0,0,ue.min().Z(),0);return t.put(Qi.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(e,t){return t.store(Vi.store).ts().next((function(n){e.deleteObjectStore(Vi.store),e.createObjectStore(Vi.store,{keyPath:Vi.keyPath,autoIncrement:!0}).createIndex(Vi.userMutationsIndex,Vi.userMutationsKeyPath,{unique:!0});var r=t.store(Vi.store),i=n.map((function(e){return r.put(e)}));return vr.$n(i)}))}(e,o)}))),a=a.next((function(){!function(e){e.createObjectStore(Ji.store,{keyPath:Ji.keyPath})}(e)}))),n<5&&r>=5&&(a=a.next((function(){return i.removeAcknowledgedMutations(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(e){e.createObjectStore(Ki.store)}(e),i.addDocumentGlobal(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ensureSequenceNumbers(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.createCollectionParentIndex(e,o)}))),n<9&&r>=9&&(a=a.next((function(){!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e),function(e){var t=e.objectStore(Hi.store);t.createIndex(Hi.readTimeIndex,Hi.readTimeIndexPath,{unique:!1}),t.createIndex(Hi.collectionReadTimeIndex,Hi.collectionReadTimeIndexPath,{unique:!1})}(t)}))),n<10&&r>=10&&(a=a.next((function(){return i.rewriteCanonicalIds(o)}))),a},e.prototype.addDocumentGlobal=function(e){var t=0;return e.store(Hi.store).rs((function(e,n){t+=Ri(n)})).next((function(){var n=new Ki(t);return e.store(Ki.store).put(Ki.key,n)}))},e.prototype.removeAcknowledgedMutations=function(e){var t=this,n=e.store(Ui.store),r=e.store(Vi.store);return n.ts().next((function(n){return vr.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.ts(Vi.userMutationsIndex,i).next((function(r){return vr.forEach(r,(function(r){b(r.userId===n.userId);var i=wi(t.serializer,r);return Ti(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ensureSequenceNumbers=function(e){var t=e.store($i.store),n=e.store(Hi.store);return e.store(Qi.store).get(Qi.key).next((function(e){var r=[];return n.rs((function(n,i){var o=new T(n),a=function(e){return[0,ci(e)]}(o);r.push(t.get(a).next((function(n){return n?vr.resolve():function(n){return t.put(new $i(0,ci(n),e.highestListenSequenceNumber))}(o)})))})).next((function(){return vr.$n(r)}))}
2))},e.prototype.createCollectionParentIndex=function(e,t){e.createObjectStore(Yi.store,{keyPath:Yi.keyPath});var n=t.store(Yi.store),r=new Li,i=function(e){if(r.add(e)){var t=e._(),i=e.h();return n.put({collectionId:t,parent:ci(i)})}};return t.store(Hi.store).rs({ss:!0},(function(e,t){var n=new T(e);return i(n.h())})).next((function(){return t.store(Bi.store).rs({ss:!0},(function(e,t){e[0];var n=e[1],r=(e[2],hi(n));return i(r.h())}))}))},e.prototype.rewriteCanonicalIds=function(e){var t=this,n=e.store(Gi.store);return n.rs((function(e,r){var i=_i(r),o=Ei(t.serializer,i);return n.put(o)}))},e}(),Fi=function(e,t){this.seconds=e,this.nanoseconds=t},zi=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};zi.store="owner",zi.key="owner";var Ui=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};Ui.store="mutationQueues",Ui.keyPath="userId";var Vi=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Vi.store="mutations",Vi.keyPath="batchId",Vi.userMutationsIndex="userMutationsIndex",Vi.userMutationsKeyPath=["userId","batchId"];var Bi=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,ci(t)]},e.key=function(e,t,n){return[e,ci(t),n]},e}();Bi.store="documentMutations",Bi.PLACEHOLDER=new Bi;var qi=function(e,t){this.path=e,this.readTime=t},Wi=function(e,t){this.path=e,this.version=t},Hi=function(e,t,n,r,i,o){this.unknownDocument=e,this.noDocument=t,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=o};Hi.store="remoteDocuments",Hi.readTimeIndex="readTimeIndex",Hi.readTimeIndexPath="readTime",Hi.collectionReadTimeIndex="collectionReadTimeIndex",Hi.collectionReadTimeIndexPath=["parentPath","readTime"];var Ki=function(e){this.byteSize=e};Ki.store="remoteDocumentGlobal",Ki.key="remoteDocumentGlobalKey";var Gi=function(e,t,n,r,i,o,a){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=o,this.query=a};Gi.store="targets",Gi.keyPath="targetId",Gi.queryTargetsIndexName="queryTargetsIndex",Gi.queryTargetsKeyPath=["canonicalId","targetId"];var $i=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};$i.store="targetDocuments",$i.keyPath=["targetId","path"],$i.documentTargetsIndex="documentTargetsIndex",$i.documentTargetsKeyPath=["path","targetId"];var Qi=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Qi.key="targetGlobalKey",Qi.store="targetGlobal";var Yi=function(e,t){this.collectionId=e,this.parent=t};function Xi(e){e.createObjectStore($i.store,{keyPath:$i.keyPath}).createIndex($i.documentTargetsIndex,$i.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Gi.store,{keyPath:Gi.keyPath}).createIndex(Gi.queryTargetsIndexName,Gi.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(Qi.store)}Yi.store="collectionParents",Yi.keyPath=["collectionId","parent"];var Ji=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};Ji.store="clientMetadata",Ji.keyPath="clientId";var Zi=r.__spreadArrays(r.__spreadArrays(r.__spreadArrays([Ui.store,Vi.store,Bi.store,Hi.store,Gi.store,zi.store,Qi.store,$i.store],[Ji.store]),[Ki.store]),[Yi.store]),eo=function(){function e(){this.la=new Li}return e.prototype.Mo=function(e,t){var n=this;if(!this.la.has(t)){var r=t._(),i=t.h();e.pr((function(){n.la.add(t)}));var o={collectionId:r,parent:ci(i)};return to(e).put(o)}return vr.resolve()},e.prototype.Qr=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[J(t),""],!1,!0);return to(e).ts(r).next((function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];if(o.collectionId!==t)break;n.push(hi(o.parent))}return n}))},e}();function to(e){return co.Qn(e,Yi.store)}var no=function(){function e(e){this._a=e}return e.prototype.next=function(){return this._a+=2,this._a},e.fa=function(){return new e(0)},e.da=function(){return new e(-1)},e}
2(),ro=function(){function e(e,t){this.No=e,this.serializer=t}return e.prototype.wa=function(e){var t=this;return this.ma(e).next((function(n){var r=new no(n.highestTargetId);return n.highestTargetId=r.next(),t.Ta(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.Ea=function(e){return this.ma(e).next((function(e){return ue.J(new se(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.Ia=function(e){return this.ma(e).next((function(e){return e.highestListenSequenceNumber}))},e.prototype.Aa=function(e,t,n){var r=this;return this.ma(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.Z()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.Ta(e,i)}))},e.prototype.Ra=function(e,t){var n=this;return this.ga(e,t).next((function(){return n.ma(e).next((function(r){return r.targetCount+=1,n.Pa(t,r),n.Ta(e,r)}))}))},e.prototype.ya=function(e,t){return this.ga(e,t)},e.prototype.Va=function(e,t){var n=this;return this.pa(e,t.targetId).next((function(){return io(e).delete(t.targetId)})).next((function(){return n.ma(e)})).next((function(t){return b(t.targetCount>0),t.targetCount-=1,n.Ta(e,t)}))},e.prototype.po=function(e,t,n){var r=this,i=0,o=[];return io(e).rs((function(a,s){var u=_i(s);u.sequenceNumber<=t&&null===n.get(u.targetId)&&(i++,o.push(r.Va(e,u)))})).next((function(){return vr.$n(o)})).next((function(){return i}))},e.prototype.Ce=function(e,t){return io(e).rs((function(e,n){var r=_i(n);t(r)}))},e.prototype.ma=function(e){return oo(e).get(Qi.key).next((function(e){return b(null!==e),e}))},e.prototype.Ta=function(e,t){return oo(e).put(Qi.key,t)},e.prototype.ga=function(e,t){return io(e).put(Ei(this.serializer,t))},e.prototype.Pa=function(e,t){var n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n},e.prototype.ba=function(e){return this.ma(e).next((function(e){return e.targetCount}))},e.prototype.va=function(e,t){var n=pe(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return io(e).rs({range:r,index:Gi.queryTargetsIndexName},(function(e,n,r){var o=_i(n);ve(t,o.target)&&(i=o,r.done())})).next((function(){return i}))},e.prototype.Sa=function(e,t,n){var r=this,i=[],o=ao(e);return t.forEach((function(t){var a=ci(t.path);i.push(o.put(new $i(n,a))),i.push(r.No.Da(e,n,t))})),vr.$n(i)},e.prototype.Ca=function(e,t,n){var r=this,i=ao(e);return vr.forEach(t,(function(t){var o=ci(t.path);return vr.$n([i.delete([n,o]),r.No.Na(e,n,t)])}))},e.prototype.pa=function(e,t){var n=ao(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.Fa=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=ao(e),i=De();return r.rs({range:n,ss:!0},(function(e,t,n){var r=hi(e[1]),o=new x(r);i=i.add(o)})).next((function(){return i}))},e.prototype.Ho=function(e,t){var n=ci(t.path),r=IDBKeyRange.bound([n],[J(n)],!1,!0),i=0;return ao(e).rs({index:$i.documentTargetsIndex,ss:!0,range:r},(function(e,t,n){var r=e[0];e[1],0!==r&&(i++,n.done())})).next((function(){return i>0}))},e.prototype.Ue=function(e,t){return io(e).get(t).next((function(e){return e?_i(e):null}))},e}();function io(e){return co.Qn(e,Gi.store)}function oo(e){return co.Qn(e,Qi.store)}function ao(e){return co.Qn(e,$i.store)}var so="Failed to obtain exclusive access to the persistence layer. To allow shared access, make sure to invoke `enablePersistence()` with `synchronizeTabs:true` in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",uo=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).jo=t,r.xa=n,r}return r.__extends(t,e),t}(ei),co=function(){function e(t,n,r,i,o,a,s,u,c,h){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.fn=o,this.window=a,this.document=s,this.$a=c,this.ka=h,this.Ma=null,this.Oa=!1,this.isPrimary=!1,this.networkEnabled=!0,this.La=null,this.inForeground=!1,this.Ba=null,this.qa=null,this.Ua=Number.NEGATIVE_INFINITY,this.Qa=function(e){return Promise.resolve()}
2,!e.Ln())throw new f(l.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.No=new ho(this,i),this.Wa=n+"main",this.serializer=new di(u),this.ja=new mr(this.Wa,10,new Mi(this.serializer)),this.Ka=new ro(this.No,this.serializer),this.Dr=new eo,this.vr=function(e,t){return new Ii(e,t)}(this.serializer,this.Dr),this.window&&this.window.localStorage?this.Ga=this.window.localStorage:(this.Ga=null,!1===h&&v("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return e.Qn=function(e,t){if(e instanceof uo)return mr.Qn(e.jo,t);throw y()},e.prototype.start=function(){var e=this;return this.za().then((function(){if(!e.isPrimary&&!e.allowTabSynchronization)throw new f(l.FAILED_PRECONDITION,so);return e.Ha(),e.Ya(),e.Ja(),e.runTransaction("getHighestListenSequenceNumber","readonly",(function(t){return e.Ka.Ia(t)}))})).then((function(t){e.Ma=new zr(t,e.$a)})).then((function(){e.Oa=!0})).catch((function(t){return e.ja&&e.ja.close(),Promise.reject(t)}))},e.prototype.Xa=function(e){var t=this;return this.Qa=function(n){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){return this.Ei?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.Za=function(e){var t=this;this.ja.Kn((function(n){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return null===n.newVersion?[4,e()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
2))}))}))},e.prototype.tc=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.fn.ws((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.Ei?[4,this.za()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.za=function(){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(t){return fo(t).put(new Ji(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.ec(t).next((function(t){t||(e.isPrimary=!1,e.fn.Cs((function(){return e.Qa(!1)})))}))})).next((function(){return e.nc(t)})).next((function(n){return e.isPrimary&&!n?e.sc(t).next((function(){return!1})):!!n&&e.ic(t).next((function(){return!0}))}))})).catch((function(t){if(br(t))return p("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;if(!e.allowTabSynchronization)throw t;return p("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.fn.Cs((function(){return e.Qa(t)})),e.isPrimary=t}))},e.prototype.ec=function(e){var t=this;return lo(e).get(zi.key).next((function(e){return vr.resolve(t.rc(e))}))},e.prototype.oc=function(e){return fo(e).delete(this.clientId)},e.prototype.ac=function(){return r.__awaiter(this,void 0,void 0,(function(){var t,n,i,o,a=this;return r.__generator(this,(function(r){switch(r.label){case 0:return!this.isPrimary||this.cc(this.Ua,18e5)?[3,2]:(this.Ua=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(t){var n=e.Qn(t,Ji.store);return n.ts().next((function(e){var t=a.uc(e,18e5),r=e.filter((function(e){return-1===t.indexOf(e)}));return vr.forEach(r,(function(e){return n.delete(e.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(t=r.sent(),this.Ga)for(n=0,i=t;n<i.length;n++)o=i[n],this.Ga.removeItem(this.hc(o.clientId));r.label=2;case 2:return[2]}}
2))}))},e.prototype.Ja=function(){var e=this;this.qa=this.fn.yn("client_metadata_refresh",4e3,(function(){return e.za().then((function(){return e.ac()})).then((function(){return e.Ja()}))}))},e.prototype.rc=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.nc=function(e){var t=this;return this.ka?vr.resolve(!0):lo(e).get(zi.key).next((function(n){if(null!==n&&t.cc(n.leaseTimestampMs,5e3)&&!t.lc(n.ownerId)){if(t.rc(n)&&t.networkEnabled)return!0;if(!t.rc(n)){if(!n.allowTabSynchronization)throw new f(l.FAILED_PRECONDITION,so);return!1}}return!(!t.networkEnabled||!t.inForeground)||fo(e).ts().next((function(e){return void 0===t.uc(e,5e3).find((function(e){if(t.clientId!==e.clientId){var n=!t.networkEnabled&&e.networkEnabled,r=!t.inForeground&&e.inForeground,i=t.networkEnabled===e.networkEnabled;if(n||r&&i)return!0}return!1}))}))})).next((function(e){return t.isPrimary!==e&&p("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.Di=function(){return r.__awaiter(this,void 0,void 0,(function(){var e=this;return r.__generator(this,(function(t){switch(t.label){case 0:return this.Oa=!1,this._c(),this.qa&&(this.qa.cancel(),this.qa=null),this.fc(),this.dc(),[4,this.ja.runTransaction("shutdown","readwrite",[zi.store,Ji.store],(function(t){var n=new uo(t,zr.ai);return e.sc(n).next((function(){return e.oc(n)}))}))];case 1:return t.sent(),this.ja.close(),this.wc(),[2]}}))}))},e.prototype.uc=function(e,t){var n=this;return e.filter((function(e){return n.cc(e.updateTimeMs,t)&&!n.lc(e.clientId)}))},e.prototype.pi=function(){var e=this;return this.runTransaction("getActiveClients","readonly",(function(t){return fo(t).ts().next((function(t){return e.uc(t,18e5).map((function(e){return e.clientId}))}))}))},Object.defineProperty(e.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),e.prototype.mc=function(e){return Si.xo(e,this.serializer,this.Dr,this.No)},e.prototype.Tc=function(){return this.Ka},e.prototype.Ec=function(){return this.vr},e.prototype.Ic=function(){return this.Dr},e.prototype.runTransaction=function(e,t,n){var r=this;p("IndexedDbPersistence","Starting transaction:",e);var i,o="readonly"===t?"readonly":"readwrite";return this.ja.runTransaction(e,o,Zi,(function(o){return i=new uo(o,r.Ma?r.Ma.next():zr.ai),"readwrite-primary"===t?r.ec(i).next((function(e){return!!e||r.nc(i)})).next((function(t){if(!t)throw v("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.fn.Cs((function(){return r.Qa(!1)})),new f(l.FAILED_PRECONDITION,Zr);return n(i)})).next((function(e){return r.ic(i).next((function(){return e}))})):r.Ac(i).next((function(){return n(i)}))})).then((function(e){return i.br(),e}))},e.prototype.Ac=function(e){var t=this;return lo(e).get(zi.key).next((function(e){if(null!==e&&t.cc(e.leaseTimestampMs,5e3)&&!t.lc(e.ownerId)&&!t.rc(e)&&!(t.ka||t.allowTabSynchronization&&e.allowTabSynchronization))throw new f(l.FAILED_PRECONDITION,so)}))},e.prototype.ic=function(e){var t=new zi(this.clientId,this.allowTabSynchronization,Date.now());return lo(e).put(zi.key,t)},e.Ln=function(){return mr.Ln()},e.prototype.sc=function(e){var t=this,n=lo(e);return n.get(zi.key).next((function(e){return t.rc(e)?(p("IndexedDbPersistence","Releasing primary lease."),n.delete(zi.key)):vr.resolve()}))},e.prototype.cc=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(v("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.Ha=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ba=function(){e.fn.ws((function(){return e.inForeground="visible"===e.document.visibilityState,e.za()}))},this.document.addEventListener("visibilitychange",this.Ba),this.inForeground="visible"===this.document.visibilityState)},e.prototype.fc=function(){this.Ba&&(this.document.removeEventListener("visibilitychange",this.Ba),this.Ba=null)},e.prototype.Ya=function(){var e,t=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.La=function(){t._c(),t.fn.ws((function(){return t.Di()}))},this.window.addEventListener("unload",this.La))},e.prototype.dc=function(){this.La&&(this.window.removeEventListener("unload",this.La),this.La=null)},e.prototype.lc=function(e){var t;try{var n=null!==(null===(t=this.Ga)||void 0===t?void 0:t.getItem(this.hc(e)));return p("IndexedDbPersistence","Client '"+e+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(e){return v("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype._c=function(){if(this.Ga)try{this.Ga.setItem(this.hc(this.clientId),String(Date.now()))}catch(r){v("Failed to set zombie client id.",r)}},e.prototype.wc=function(){if(this.Ga)try{this.Ga.removeItem(this.hc(this.clientId))}catch(r){}},e.prototype.hc=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function lo(e){return co.Qn(e,zi.store)}function fo(e){return co.Qn(e,Ji.store)}var ho=function(){function e(e,t){this.db=e,this.wo=new ui(this,t)}return e.prototype.Po=function(e){var t=this.Rc(e);return this.db.Tc().ba(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.Rc=function(e){var t=0;return this.Vo(e,(function(e){t++})).next((function(){return t}))},e.prototype.Ce=function(e,t){return this.db.Tc().Ce(e,t)},e.prototype.Vo=function(e,t){return this.gc(e,(function(e,n){return t(n)}))},e.prototype.Da=function(e,t,n){return po(e,n)},e.prototype.Na=function(e,t,n){return po(e,n)}
2,e.prototype.po=function(e,t,n){return this.db.Tc().po(e,t,n)},e.prototype.Go=function(e,t){return po(e,t)},e.prototype.Pc=function(e,t){return function(e,t){var n=!1;return xi(e).os((function(r){return ki(e,r,t).next((function(e){return e&&(n=!0),vr.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.bo=function(e,t){var n=this,r=this.db.Ec().ra(),i=[],o=0;return this.gc(e,(function(a,s){if(s<=t){var u=n.Pc(e,a).next((function(t){if(!t)return o++,r.Rr(e,a).next((function(){return r.Ar(a),ao(e).delete([0,ci(a.path)])}))}));i.push(u)}})).next((function(){return vr.$n(i)})).next((function(){return r.apply(e)})).next((function(){return o}))},e.prototype.removeTarget=function(e,t){var n=t.st(e.xa);return this.db.Tc().ya(e,n)},e.prototype.yc=function(e,t){return po(e,t)},e.prototype.gc=function(e,t){var n,r=ao(e),i=zr.ai;return r.rs({index:$i.documentTargetsIndex},(function(e,r){var o=e[0],a=(e[1],r.path),s=r.sequenceNumber;0===o?(i!==zr.ai&&t(new x(hi(n)),i),i=s,n=a):i=zr.ai})).next((function(){i!==zr.ai&&t(new x(hi(n)),i)}))},e.prototype.So=function(e){return this.db.Ec().aa(e)},e}();function po(e,t){return ao(e).put(function(e,t){return new $i(0,ci(e.path),t)}(t,e.xa))}function vo(e,t){var n=e.projectId;return e.j||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}var mo=function(){function e(e,t,n){this.persistence=e,this.Vc=t,this.bc=new Se(Y),this.vc=new ae((function(e){return pe(e)}),ve),this.Sc=ue.min(),this.Sr=e.mc(n),this.Dc=e.Ec(),this.Ka=e.Tc(),this.Cc=new ti(this.Dc,this.Sr,this.persistence.Ic()),this.Vc.Nc(this.Cc)}return e.prototype.Io=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.vo(n,t.bc)}))},e}();function go(e,t){var n=w(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.Dc.ra({oa:!0});return function(e,t,n,r){var i=n.batch,o=i.keys(),a=vr.resolve();return o.forEach((function(e){a=a.next((function(){return r.Rr(t,e)})).next((function(t){var o=t,a=n.dr.get(e);b(null!==a),(!o||o.version.L(a)<0)&&(o=i.cr(e,o,n))&&r.Er(o,n._r)}))})),a.next((function(){return e.Sr.Wo(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)})).next((function(){return n.Sr.zo(e)})).next((function(){return n.Cc.kr(e,r)}))}))}function yo(e){var t=w(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Ka.Ea(e)}))}function bo(e,t){var n=w(e),r=t.nt,i=n.bc;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var o=n.Dc.ra({oa:!0});i=n.bc;var a=[];t.zt.forEach((function(t,o){var s=i.get(o);if(s){a.push(n.Ka.Ca(e,t.se,o).next((function(){return n.Ka.Sa(e,t.ee,o)})));var u=t.resumeToken;if(u.O()>0){var c=s.it(u,r).st(e.xa);i=i.ot(o,c),function(e,t,n){return b(t.resumeToken.O()>0),0===e.resumeToken.O()||t.nt.X()-e.nt.X()>=3e8||n.ee.size+n.ne.size+n.se.size>0}(s,c,t)&&a.push(n.Ka.ya(e,c))}}}));var s=Ie(),u=De();if(t.Yt.forEach((function(e,t){u=u.add(e)})),a.push(o.getEntries(e,u).next((function(i){t.Yt.forEach((function(u,c){var l=i.get(u);c instanceof An&&c.version.isEqual(ue.min())?(o.Ar(u,r),s=s.ot(u,c)):null==l||c.version.L(l.version)>0||0===c.version.L(l.version)&&l.hasPendingWrites?(o.Er(c,r),s=s.ot(u,c)):p("LocalStore","Ignoring outdated watch update for ",u,". Current version:",l.version," Watch version:",c.version),t.Jt.has(u)&&a.push(n.persistence.No.yc(e,u))}))}))),!r.isEqual(ue.min())){var c=n.Ka.Ea(e).next((function(t){return n.Ka.Aa(e,e.xa,r)}));a.push(c)}return vr.$n(a).next((function(){return o.apply(e)})).next((function(){return n.Cc.Mr(e,s)}))})).then((function(e){return n.bc=i,e}))}function wo(e,t){var n=w(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n.Sr.Bo(e,t)}))}function _o(e,t){var n=w(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.Ka.va(e,t).next((function(i){return i?(r=i,vr.resolve(r)):n.Ka.wa(e).next((function(i){return r=new be(t,i,0,e.xa),n.Ka.Ra(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.bc.get(e.targetId);return(null===r||e.nt.L(r.nt)>0)&&(n.bc=n.bc.ot(e.targetId,e),n.vc.set(t,e.targetId)),e}))}function Eo(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:i=w(e),o=i.bc.get(t),a=n?"readwrite":"readwrite-primary",r.label=1;case 1:return r.trys.push([1,4,,5]),n?[3,3]:[4,i.persistence.runTransaction("Release target",a,(function(e){return i.persistence.No.removeTarget(e,o)}))];case 2:r.sent(),r.label=3;case 3:return[3,5];case 4:if(!br(s=r.sent()))throw s;return p("LocalStore","Failed to update sequence numbers for target "+t+": "+s),[3,5];case 5:return i.bc=i.bc.remove(t),i.vc.delete(o.target),[2]}}))}))}function So(e,t,n){var r=w(e),i=ue.min(),o=De();
2return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=w(e),i=r.vc.get(n);return void 0!==i?vr.resolve(r.bc.get(i)):r.Ka.va(t,n)}(r,e,Bn(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.Ka.Fa(e,t.targetId).next((function(e){o=e}))})).next((function(){return r.Vc.Lr(e,t,n?i:ue.min(),n?o:De())})).next((function(e){return{documents:e,Fc:o}}))}))}function ko(e,t){var n=w(e),r=w(n.Ka),i=n.bc.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(e){return r.Ue(e,t).next((function(e){return e?e.target:null}))}))}function To(e){var t=w(e);return t.persistence.runTransaction("Get new document changes","readonly",(function(e){return function(e,t,n){var r=w(e),i=Ie(),o=mi(n),a=Ni(t),s=IDBKeyRange.lowerBound(o,!0);return a.rs({index:Hi.readTimeIndex,range:s},(function(e,t){var n=pi(r.serializer,t);i=i.ot(n.key,n),o=t.readTime})).next((function(){return{xc:i,readTime:gi(o)}}))}(t.Dc,e,t.Sc)})).then((function(e){var n=e.xc,r=e.readTime;return t.Sc=r,n}))}function Co(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){return[2,(t=w(e)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(e){return function(e){var t=Ni(e),n=ue.min();return t.rs({index:Hi.readTimeIndex,reverse:!0},(function(e,t,r){t.readTime&&(n=gi(t.readTime)),r.done()})).next((function(){return n}))}(e)})).then((function(e){t.Sc=e}))]}))}))}function Oo(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){if(e.code!==l.FAILED_PRECONDITION||e.message!==Zr)throw e;return p("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}var xo=function(){function e(){this.$c=new Ce(Io.kc),this.Mc=new Ce(Io.Oc)}return e.prototype.m=function(){return this.$c.m()},e.prototype.Da=function(e,t){var n=new Io(e,t);this.$c=this.$c.add(n),this.Mc=this.Mc.add(n)},e.prototype.Lc=function(e,t){var n=this;e.forEach((function(e){return n.Da(e,t)}))},e.prototype.Na=function(e,t){this.Bc(new Io(e,t))},e.prototype.qc=function(e,t){var n=this;e.forEach((function(e){return n.Na(e,t)}))},e.prototype.Uc=function(e){var t=this,n=new x(new T([])),r=new Io(n,e),i=new Io(n,e+1),o=[];return this.Mc.Ft([r,i],(function(e){t.Bc(e),o.push(e.key)})),o},e.prototype.Qc=function(){var e=this;this.$c.forEach((function(t){return e.Bc(t)}))},e.prototype.Bc=function(e){this.$c=this.$c.delete(e),this.Mc=this.Mc.delete(e)},e.prototype.Wc=function(e){var t=new x(new T([])),n=new Io(t,e),r=new Io(t,e+1),i=De();return this.Mc.Ft([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.Ho=function(e){var t=new Io(e,0),n=this.$c.$t(t);return null!==n&&e.isEqual(n.key)},e}(),Io=function(){function e(e,t){this.key=e,this.jc=t}return e.kc=function(e,t){return x.i(e.key,t.key)||Y(e.jc,t.jc)},e.Oc=function(e,t){return Y(e.jc,t.jc)||x.i(e.key,t.key)},e}(),Po=function(e,t){this.user=t,this.type="OAuth",this.Kc={},this.Kc.Authorization="Bearer "+e},Ao=function(){function e(){this.Gc=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.zc=function(){},e.prototype.Hc=function(e){this.Gc=e,e(Fr.UNAUTHENTICATED)},e.prototype.Yc=function(){this.Gc=null},e}(),No=function(){function e(e){var t=this;this.Jc=null,this.currentUser=Fr.UNAUTHENTICATED,this.Xc=!1,this.Zc=0,this.Gc=null,this.forceRefresh=!1,this.Jc=function(){t.Zc++,t.currentUser=t.tu(),t.Xc=!0,t.Gc&&t.Gc(t.currentUser)},this.Zc=0,this.auth=e.getImmediate({optional:!0}),this.auth?this.auth.addAuthTokenListener(this.Jc):(this.Jc(null),e.get().then((function(e){t.auth=e,t.Jc&&t.auth.addAuthTokenListener(t.Jc)}),(function(){})))}return e.prototype.getToken=function(){var e=this,t=this.Zc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.Zc!==t?(p("FirebaseCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(b("string"==typeof n.accessToken),new Po(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype.zc=function(){this.forceRefresh=!0},e.prototype.Hc=function(e){this.Gc=e,this.Xc&&e(this.currentUser)},e.prototype.Yc=function(){this.auth&&this.auth.removeAuthTokenListener(this.Jc),this.Jc=null,this.Gc=null},e.prototype.tu=function(){var e=this.auth&&this.auth.getUid();return b(null===e||"string"==typeof e),new Fr(e)},e}(),jo=function(){function e(e,t){this.eu=e,this.nu=t,this.type="FirstParty",this.user=Fr.ni}return Object.defineProperty(e.prototype,"Kc",{get:function(){var e={"X-Goog-AuthUser":this.nu},t=this.eu.auth.getAuthHeaderValueForFirstParty([]);return t&&(e.Authorization=t),e}
2,enumerable:!1,configurable:!0}),e}(),Ro=function(){function e(e,t){this.eu=e,this.nu=t}return e.prototype.getToken=function(){return Promise.resolve(new jo(this.eu,this.nu))},e.prototype.Hc=function(e){e(Fr.ni)},e.prototype.Yc=function(){},e.prototype.zc=function(){},e}(),Do=function(){function e(e,t,n,r,i,o){this.fn=e,this.su=n,this.iu=r,this.ru=i,this.listener=o,this.state=0,this.ou=0,this.au=null,this.stream=null,this.ys=new pr(e,t)}return e.prototype.cu=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.uu=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.hu()},e.prototype.stop=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.cu()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},e.prototype.lu=function(){this.state=0,this.ys.reset()},e.prototype._u=function(){var e=this;this.uu()&&null===this.au&&(this.au=this.fn.yn(this.su,6e4,(function(){return e.fu()})))},e.prototype.du=function(e){this.wu(),this.stream.send(e)},e.prototype.fu=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.uu()?[2,this.close(0)]:[2]}))}))},e.prototype.wu=function(){this.au&&(this.au.cancel(),this.au=null)},e.prototype.close=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return this.wu(),this.ys.cancel(),this.ou++,3!==e?this.ys.reset():t&&t.code===l.RESOURCE_EXHAUSTED?(v(t.toString()),v("Using maximum backoff delay to prevent overloading the backend."),this.ys.Rn()):t&&t.code===l.UNAUTHENTICATED&&this.ru.zc(),null!==this.stream&&(this.mu(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.Tu(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.mu=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.Eu(this.ou),n=this.ou;this.ru.getToken().then((function(t){e.ou===n&&e.Iu(t)}),(function(n){t((function(){var t=new f(l.UNKNOWN,"Fetching auth token failed: "+n.message);return e.Au(t)}))}))},e.prototype.Iu=function(e){var t=this,n=this.Eu(this.ou);this.stream=this.Ru(e),this.stream.gu((function(){n((function(){return t.state=2,t.listener.gu()}))})),this.stream.Tu((function(e){n((function(){return t.Au(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.hu=function(){var e=this;this.state=4,this.ys.gn((function(){return r.__awaiter(e,void 0,void 0,(function(){return r.__generator(this,(function(e){return this.state=0,this.start(),[2]}))}))}))},e.prototype.Au=function(e){return p("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.Eu=function(e){var t=this;return function(n){t.fn.ws((function(){return t.ou===e?n():(p("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),Lo=function(e){function t(t,n,r,i,o){var a=this;return(a=e.call(this,t,"listen_stream_connection_backoff","listen_stream_idle",n,r,o)||this).serializer=i,a}return r.__extends(t,e),t.prototype.Ru=function(e){return this.iu.Pu("Listen",e)},t.prototype.onMessage=function(e){this.ys.reset();var t=function(e,t){var n;if("targetChange"in t){t.targetChange;var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:y()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.Qe?(b(void 0===t||"string"==typeof t),Z.fromBase64String(t||"")):(b(void 0===t||t instanceof Uint8Array),Z.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=t.targetChange.cause,s=a&&function(e){var t=void 0===e.code?l.UNKNOWN:Ee(e.code);return new f(t,e.message||"")}(a);n=new He(r,i,o,s||null)}else if("documentChange"in t){t.documentChange;var u=t.documentChange;u.document,u.document.name,u.document.updateTime;var c=Ot(e,u.document.name),h=St(u.document.updateTime),d=new Cn({mapValue:{fields:u.document.fields}}),p=new Pn(c,h,d,{}),v=u.targetIds||[],m=u.removedTargetIds||[];n=new qe(v,m,p.key,p)}else if("documentDelete"in t){t.documentDelete;var g=t.documentDelete;g.document;var w=Ot(e,g.document),_=g.readTime?St(g.readTime):ue.min(),E=new An(w,_),S=g.removedTargetIds||[];n=new qe([],S,E.key,E)}else if("documentRemove"in t){t.documentRemove;var k=t.documentRemove;k.document;var T=Ot(e,k.document),C=k.removedTargetIds||[];n=new qe([],C,T,null)}else{if(!("filter"in t))return y();t.filter;var O=t.filter;O.targetId;var x=O.count||0,I=new we(x),P=O.targetId;n=new We(P,I)}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return ue.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?ue.min():t.readTime?St(t.readTime):ue.min()}(e);return this.listener.yu(t,n)},t.prototype.Vu=function(e){var t={};t.database=Pt(this.serializer),t.addTarget=function(e,t){var n,r=t.target;return(n=me(r)?{documents:Dt(e,r)}:{query:Lt(e,r)}).targetId=t.targetId,t.resumeToken.O()>0&&(n.resumeToken=_t(e,t.resumeToken)),n}(this.serializer,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return y()}}(0,t.et);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.du(t)},t.prototype.pu=function(e){var t={};t.database=Pt(this.serializer),t.removeTarget=e,this.du(t)},t}(Do),Mo=function(e){function t(t,n,r,i,o){var a=this;return(a=e.call(this,t,"write_stream_connection_backoff","write_stream_idle",n,r,o)||this).serializer
2=i,a.bu=!1,a}return r.__extends(t,e),Object.defineProperty(t.prototype,"vu",{get:function(){return this.bu},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.bu=!1,this.lastStreamToken=void 0,e.prototype.start.call(this)},t.prototype.mu=function(){this.bu&&this.Su([])},t.prototype.Ru=function(e){return this.iu.Pu("Write",e)},t.prototype.onMessage=function(e){if(b(!!e.streamToken),this.lastStreamToken=e.streamToken,this.bu){this.ys.reset();var t=function(e,t){return e&&e.length>0?(b(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?St(e.updateTime):St(t);n.isEqual(ue.min())&&(n=St(t));var r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults),new cn(n,r)}(e,t)}))):[]}(e.writeResults,e.commitTime),n=St(e.commitTime);return this.listener.Du(n,t)}return b(!e.writeResults||0===e.writeResults.length),this.bu=!0,this.listener.Cu()},t.prototype.Nu=function(){var e={};e.database=Pt(this.serializer),this.du(e)},t.prototype.Su=function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return jt(t.serializer,e)}))};this.du(n)},t}(Do),Fo=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).credentials=t,i.iu=n,i.serializer=r,i.Fu=!1,i}return r.__extends(t,e),t.prototype.xu=function(){if(this.Fu)throw new f(l.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.$u=function(e,t,n){var r=this;return this.xu(),this.credentials.getToken().then((function(i){return r.iu.$u(e,t,n,i)})).catch((function(e){throw e.code===l.UNAUTHENTICATED&&r.credentials.zc(),e}))},t.prototype.ku=function(e,t,n){var r=this;return this.xu(),this.credentials.getToken().then((function(i){return r.iu.ku(e,t,n,i)})).catch((function(e){throw e.code===l.UNAUTHENTICATED&&r.credentials.zc(),e}))},t.prototype.terminate=function(){this.Fu=!1},t}((function(){})),zo=function(){function e(e,t){this.cs=e,this.di=t,this.state="Unknown",this.Mu=0,this.Ou=null,this.Lu=!0}return e.prototype.Bu=function(){var e=this;0===this.Mu&&(this.qu("Unknown"),this.Ou=this.cs.yn("online_state_timeout",1e4,(function(){return e.Ou=null,e.Uu("Backend didn't respond within 10 seconds."),e.qu("Offline"),Promise.resolve()})))},e.prototype.Qu=function(e){"Online"===this.state?this.qu("Unknown"):(this.Mu++,this.Mu>=1&&(this.Wu(),this.Uu("Connection failed 1 times. Most recent error: "+e.toString()),this.qu("Offline")))},e.prototype.set=function(e){this.Wu(),this.Mu=0,"Online"===e&&(this.Lu=!1),this.qu(e)},e.prototype.qu=function(e){e!==this.state&&(this.state=e,this.di(e))},e.prototype.Uu=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.Lu?(v(t),this.Lu=!1):p("OnlineStateTracker",t)},e.prototype.Wu=function(){null!==this.Ou&&(this.Ou.cancel(),this.Ou=null)},e}(),Uo=function(e,t,n,i,o){var a=this;this.ju=e,this.Ku=t,this.cs=n,this.Gu={},this.zu=[],this.Hu=new Map,this.Yu=new Set,this.Ju=[],this.Xu=o,this.Xu.Zu((function(e){n.ws((function(){return r.__awaiter(a,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return Yo(this)?(p("RemoteStore","Restarting streams for network reachability change."),[4,function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return(t=w(e)).Yu.add(4),[4,Bo(t)];case 1:return n.sent(),t.th.set("Unknown"),t.Yu.delete(4),[4,Vo(t)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
2))}))}))})),this.th=new zo(n,i)};function Vo(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n;return r.__generator(this,(function(r){switch(r.label){case 0:if(!Yo(e))return[3,4];t=0,n=e.Ju,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))}function Bo(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n;return r.__generator(this,(function(r){switch(r.label){case 0:t=0,n=e.Ju,r.label=1;case 1:return t<n.length?[4,(0,n[t])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return t++,[3,1];case 4:return[2]}}))}))}function qo(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return t=w(e),p("RemoteStore","RemoteStore shutting down."),t.Yu.add(5),[4,Bo(t)];case 1:return n.sent(),t.Xu.Di(),t.th.set("Unknown"),[2]}}))}))}function Wo(e,t){var n=w(e);n.Hu.has(t.targetId)||(n.Hu.set(t.targetId,t),Qo(n)?$o(n):fa(n).uu()&&Ko(n,t))}function Ho(e,t){var n=w(e),r=fa(n);n.Hu.delete(t),r.uu()&&Go(n,t),0===n.Hu.size&&(r.uu()?r._u():Yo(n)&&n.th.set("Unknown"))}function Ko(e,t){e.eh.Ie(t.targetId),fa(e).Vu(t)}function Go(e,t){e.eh.Ie(t),fa(e).pu(t)}function $o(e){e.eh=new Ge({qe:function(t){return e.Gu.qe(t)},Ue:function(t){return e.Hu.get(t)||null}}),fa(e).start(),e.th.Bu()}function Qo(e){return Yo(e)&&!fa(e).cu()&&e.Hu.size>0}function Yo(e){return 0===w(e).Yu.size}function Xo(e){e.eh=void 0}function Jo(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return e.Hu.forEach((function(t,n){Ko(e,t)})),[2]}))}))}function Zo(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){return Xo(e),Qo(e)?(e.th.Qu(t),$o(e)):e.th.set("Unknown"),[2]}))}))}function ea(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a;return r.__generator(this,(function(s){switch(s.label){case 0:if(e.th.set("Online"),!(t instanceof He&&2===t.state&&t.cause))return[3,6];s.label=1;case 1:return s.trys.push([1,3,,5]),[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:n=t.cause,i=0,o=t.targetIds,r.label=1;case 1:return i<o.length?(a=o[i],e.Hu.has(a)?[4,e.Gu.nh(a,n)]:[3,3]):[3,5];case 2:r.sent(),e.Hu.delete(a),e.eh.removeTarget(a),r.label=3;case 3:r.label=4;case 4:return i++,[3,1];case 5:return[2]}}
2))}))}(e,t)];case 2:return s.sent(),[3,5];case 3:return i=s.sent(),p("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),i),[4,ta(e,i)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof qe?e.eh.be(t):t instanceof We?e.eh.$e(t):e.eh.De(t),n.isEqual(ue.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,yo(e.ju)];case 8:return o=s.sent(),n.L(o)>=0?[4,function(e,t){var n=e.eh.Oe(t);return n.zt.forEach((function(n,r){if(n.resumeToken.O()>0){var i=e.Hu.get(r);i&&e.Hu.set(r,i.it(n.resumeToken,t))}})),n.Ht.forEach((function(t){var n=e.Hu.get(t);if(n){e.Hu.set(t,n.it(Z.B,n.nt)),Go(e,t);var r=new be(n.target,t,1,n.sequenceNumber);Ko(e,r)}})),e.Gu.sh(n)}(e,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return p("RemoteStore","Failed to raise snapshot:",a=s.sent()),[4,ta(e,a)];case 12:return s.sent(),[3,13];case 13:return[2]}}))}))}function ta(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i=this;return r.__generator(this,(function(o){switch(o.label){case 0:if(!br(t))throw t;return e.Yu.add(1),[4,Bo(e)];case 1:return o.sent(),e.th.set("Offline"),n||(n=function(){return yo(e.ju)}),e.cs.Cs((function(){return r.__awaiter(i,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return p("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return t.sent(),e.Yu.delete(1),[4,Vo(e)];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))}function na(e,t){return t().catch((function(n){return ta(e,n,t)}))}function ra(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n,i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:t=w(e),n=ha(t),i=t.zu.length>0?t.zu[t.zu.length-1].batchId:-1,r.label=1;case 1:if(!function(e){return Yo(e)&&e.zu.length<10}(t))return[3,7];r.label=2;case 2:return r.trys.push([2,4,,6]),[4,wo(t.ju,i)];case 3:return null===(o=r.sent())?(0===t.zu.length&&n._u(),[3,7]):(i=o.batchId,function(e,t){e.zu.push(t);var n=ha(e);n.uu()&&n.vu&&n.Su(t.mutations)}(t,o),[3,6]);case 4:return a=r.sent(),[4,ta(t,a)];case 5:return r.sent(),[3,6];case 6:return[3,1];case 7:return ia(t)&&oa(t),[2]}}))}))}function ia(e){return Yo(e)&&!ha(e).cu()&&e.zu.length>0}function oa(e){ha(e).start()}function aa(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){return ha(e).Nu(),[2]}))}))}function sa(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n,i,o;return r.__generator(this,(function(r){for(t=ha(e),n=0,i=e.zu;n<i.length;n++)o=i[n],t.Su(o.mutations);return[2]}))}))}function ua(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return i=e.zu.shift(),o=Xr.from(i,t,n),[4,na(e,(function(){return e.Gu.ih(o)}))];case 1:return r.sent(),[4,ra(e)];case 2:return r.sent(),[2]}}))}))}function ca(e,t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return t&&ha(e).vu?[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return _e(i=t.code)&&i!==l.ABORTED?(n=e.zu.shift(),ha(e).lu(),[4,na(e,(function(){return e.Gu.rh(n.batchId,t)}))]):[3,3];case 1:return r.sent(),[4,ra(e)];case 2:r.sent(),r.label=3;case 3:return[2]}}
2))}))}(e,t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return ia(e)&&oa(e),[2]}}))}))}function la(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n;return r.__generator(this,(function(r){switch(r.label){case 0:return n=w(e),t?(n.Yu.delete(2),[4,Vo(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return t?[3,4]:(n.Yu.add(2),[4,Bo(n)]);case 3:r.sent(),n.th.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function fa(e){var t=this;return e.oh||(e.oh=function(e,t,n){var r=w(e);return r.xu(),new Lo(t,r.iu,r.credentials,r.serializer,n)}(e.Ku,e.cs,{gu:Jo.bind(null,e),Tu:Zo.bind(null,e),yu:ea.bind(null,e)}),e.Ju.push((function(n){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return n?(e.oh.lu(),Qo(e)?$o(e):e.th.set("Unknown"),[3,3]):[3,1];case 1:return[4,e.oh.stop()];case 2:t.sent(),Xo(e),t.label=3;case 3:return[2]}}))}))}))),e.oh}function ha(e){var t=this;return e.ah||(e.ah=function(e,t,n){var r=w(e);return r.xu(),new Mo(t,r.iu,r.credentials,r.serializer,n)}(e.Ku,e.cs,{gu:aa.bind(null,e),Tu:ca.bind(null,e),Cu:sa.bind(null,e),Du:ua.bind(null,e)}),e.Ju.push((function(n){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return n?(e.ah.lu(),[4,ra(e)]):[3,2];case 1:return t.sent(),[3,4];case 2:return[4,e.ah.stop()];case 3:t.sent(),e.zu.length>0&&(p("RemoteStore","Stopping write stream with "+e.zu.length+" pending writes"),e.zu=[]),t.label=4;case 4:return[2]}}
2))}))}))),e.ah}var da=function(e){this.key=e},pa=function(e){this.key=e},va=function(){function e(e,t){this.query=e,this.uh=t,this.hh=null,this.te=!1,this.lh=De(),this.Wt=De(),this._h=Yn(e),this.fh=new Fe(this._h)}return Object.defineProperty(e.prototype,"dh",{get:function(){return this.uh},enumerable:!1,configurable:!0}),e.prototype.wh=function(e,t){var n=this,r=t?t.mh:new ze,i=t?t.fh:this.fh,o=t?t.Wt:this.Wt,a=i,s=!1,u=Ln(this.query)&&i.size===this.query.limit?i.last():null,c=Mn(this.query)&&i.size===this.query.limit?i.first():null;if(e.ht((function(e,t){var l=i.get(e),f=t instanceof Pn?t:null;f&&(f=Qn(n.query,f)?f:null);var h=!!l&&n.Wt.has(l.key),d=!!f&&(f.Je||n.Wt.has(f.key)&&f.hasCommittedMutations),p=!1;l&&f?l.data().isEqual(f.data())?h!==d&&(r.track({type:3,doc:f}),p=!0):n.Th(l,f)||(r.track({type:2,doc:f}),p=!0,(u&&n._h(f,u)>0||c&&n._h(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),p=!0):l&&!f&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(s=!0)),p&&(f?(a=a.add(f),o=d?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)))})),Ln(this.query)||Mn(this.query))for(;a.size>this.query.limit;){var l=Ln(this.query)?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fh:a,mh:r,Eh:s,Wt:o}},e.prototype.Th=function(e,t){return e.Je&&t.hasCommittedMutations&&!t.Je},e.prototype.yr=function(e,t,n){var r=this,i=this.fh;this.fh=e.fh,this.Wt=e.Wt;var o=e.mh.Ut();o.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return y()}};return n(e)-n(t)}(e.type,t.type)||r._h(e.doc,t.doc)})),this.Ih(n);var a=t?this.Ah():[],s=0===this.lh.size&&this.te?1:0,u=s!==this.hh;return this.hh=s,0!==o.length||u?{snapshot:new Ue(this.query,e.fh,i,o,e.Wt,0===s,u,!1),Rh:a}:{Rh:a}},e.prototype.Qs=function(e){return this.te&&"Offline"===e?(this.te=!1,this.yr({fh:this.fh,mh:new ze,Wt:this.Wt,Eh:!1},!1)):{Rh:[]}},e.prototype.gh=function(e){return!this.uh.has(e)&&!!this.fh.has(e)&&!this.fh.get(e).Je},e.prototype.Ih=function(e){var t=this;e&&(e.ee.forEach((function(e){return t.uh=t.uh.add(e)})),e.ne.forEach((function(e){})),e.se.forEach((function(e){return t.uh=t.uh.delete(e)})),this.te=e.te)},e.prototype.Ah=function(){var e=this;if(!this.te)return[];var t=this.lh;this.lh=De(),this.fh.forEach((function(t){e.gh(t.key)&&(e.lh=e.lh.add(t.key))}));var n=[];return t.forEach((function(t){e.lh.has(t)||n.push(new pa(t))})),this.lh.forEach((function(e){t.has(e)||n.push(new da(e))})),n},e.prototype.Ph=function(e){this.uh=e.Fc,this.lh=De();var t=this.wh(e.documents);return this.yr(t,!0)},e.prototype.yh=function(){return Ue.Gt(this.query,this.fh,this.Wt,0===this.hh)},e}(),ma=function(e,t,n){this.query=e,this.targetId=t,this.view=n},ga=function(e){this.key=e,this.Vh=!1},ya=function(){function e(e,t,n,r,i,o){this.ju=e,this.ph=t,this.bh=n,this.Sh=r,this.currentUser=i,this.Dh=o,this.Ch={},this.Nh=new ae((function(e){return Gn(e)}),Kn),this.Fh=new Map,this.xh=[],this.$h=new Se(x.i),this.kh=new Map,this.Mh=new xo,this.Oh={},this.Lh=new Map,this.Bh=no.da(),this.onlineState="Unknown",this.qh=void 0}return Object.defineProperty(e.prototype,"Uh",{get:function(){return!0===this.qh},enumerable:!1,configurable:!0}),e}();function ba(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u;return r.__generator(this,(function(r){switch(r.label){case 0:return n=Ha(e),(a=n.Nh.get(t))?(i=a.targetId,n.Sh.Oi(i),o=a.view.yh(),[3,4]):[3,1];case 1:return[4,_o(n.ju,Bn(t))];case 2:return s=r.sent(),u=n.Sh.Oi(s.targetId),i=s.targetId,[4,wa(n,t,i,"current"===u)];case 3:o=r.sent(),n.Uh&&Wo(n.ph,s),r.label=4;case 4:return[2,o]}}))}))}function wa(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s,u,c,l;return r.__generator(this,(function(f){switch(f.label){case 0:return e.Qh=function(t,n,i){return function(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:return(o=t.view.wh(n)).Eh?[4,So(e.ju,t.query,!1).then((function(e){var n=e.documents;return t.view.wh(n,o)}))]:[3,2];case 1:o=r.sent(),r.label=2;case 2:return a=i&&i.zt.get(t.targetId),s=t.view.yr(o,e.Uh,a),[2,(Aa(e,t.targetId,s.Rh),s.snapshot)]}}))}))}(e,t,n,i)},[4,So(e.ju,t,!0)];case 1:return o=f.sent(),a=new va(t,o.Fc),s=a.wh(o.documents),u=Be.Zt(n,i&&"Offline"!==e.onlineState),c=a.yr(s,e.Uh,u),Aa(e,n,c.Rh),l=new ma(t,n,a),[2,(e.Nh.set(t,l),e.Fh.has(n)?e.Fh.get(n).push(t):e.Fh.set(n,[t]),c.snapshot)]}}))}))}function _a(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return n=w(e),i=n.Nh.get(t),(o=n.Fh.get(i.targetId)).length>1?[2,(n.Fh.set(i.targetId,o.filter((function(e){return!Kn(e,t)}))),void n.Nh.delete(t))]:n.Uh?(n.Sh.Bi(i.targetId),n.Sh.Fi(i.targetId)?[3,2]:[4,Eo(n.ju,i.targetId,!1).then((function(){n.Sh.Ui(i.targetId),Ho(n.ph,i.targetId),Ia(n,i.targetId)})).catch(Oo)]):[3,3];case 1:r.sent(),r.label=2;case 2:return[3,5];case 3:return Ia(n,i.targetId),[4,Eo(n.ju,i.targetId,!0)];case 4:r.sent(),r.label=5;case 5:return[2]}}
2))}))}function Ea(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:n=w(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,bo(n.ju,t)];case 2:return i=r.sent(),t.zt.forEach((function(e,t){var r=n.kh.get(t);r&&(b(e.ee.size+e.ne.size+e.se.size<=1),e.ee.size>0?r.Vh=!0:e.ne.size>0?b(r.Vh):e.se.size>0&&(b(r.Vh),r.Vh=!1))})),[4,Ra(n,i,t)];case 3:return r.sent(),[3,6];case 4:return[4,Oo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))}function Sa(e,t,n){var r=w(e);if(r.Uh&&0===n||!r.Uh&&1===n){var i=[];r.Nh.forEach((function(e,n){var r=n.view.Qs(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=w(e);n.onlineState=t;var r=!1;n.Bs.forEach((function(e,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].Qs(t)&&(r=!0)})),r&&Lr(n)}(r.bh,t),i.length&&r.Ch.yu(i),r.onlineState=t,r.Uh&&r.Sh.Ki(t)}}function ka(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:return(i=w(e)).Sh.Qi(t,"rejected",n),o=i.kh.get(t),(a=o&&o.key)?(s=(s=new Se(x.i)).ot(a,new An(a,ue.min())),u=De().add(a),c=new Ve(ue.min(),new Map,new Ce(Y),s,u),[4,Ea(i,c)]):[3,2];case 1:return r.sent(),i.$h=i.$h.remove(a),i.kh.delete(t),ja(i),[3,4];case 2:return[4,Eo(i.ju,t,!1).then((function(){return Ia(i,t,n)})).catch(Oo)];case 3:r.sent(),r.label=4;case 4:return[2]}}
2))}))}function Ta(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:n=w(e),i=t.batch.batchId,r.label=1;case 1:return r.trys.push([1,4,,6]),[4,go(n.ju,t)];case 2:return o=r.sent(),xa(n,i,null),Oa(n,i),n.Sh.ki(i,"acknowledged"),[4,Ra(n,o)];case 3:return r.sent(),[3,6];case 4:return[4,Oo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}))}))}function Ca(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o;return r.__generator(this,(function(r){switch(r.label){case 0:i=w(e),r.label=1;case 1:return r.trys.push([1,4,,6]),[4,function(e,t){var n=w(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;return n.Sr.Oo(e,t).next((function(t){return b(null!==t),r=t.keys(),n.Sr.Wo(e,t)})).next((function(){return n.Sr.zo(e)})).next((function(){return n.Cc.kr(e,r)}))}))}(i.ju,t)];case 2:return o=r.sent(),xa(i,t,n),Oa(i,t),i.Sh.ki(t,"rejected",n),[4,Ra(i,o)];case 3:return r.sent(),[3,6];case 4:return[4,Oo(r.sent())];case 5:return r.sent(),[3,6];case 6:return[2]}}
2))}))}function Oa(e,t){(e.Lh.get(t)||[]).forEach((function(e){e.resolve()})),e.Lh.delete(t)}function xa(e,t,n){var r=w(e),i=r.Oh[r.currentUser.ti()];if(i){var o=i.get(t);o&&(n?o.reject(n):o.resolve(),i=i.remove(t)),r.Oh[r.currentUser.ti()]=i}}function Ia(e,t,n){void 0===n&&(n=null),e.Sh.Bi(t);for(var r=0,i=e.Fh.get(t);r<i.length;r++){var o=i[r];e.Nh.delete(o),n&&e.Ch.Wh(o,n)}e.Fh.delete(t),e.Uh&&e.Mh.Uc(t).forEach((function(t){e.Mh.Ho(t)||Pa(e,t)}))}function Pa(e,t){var n=e.$h.get(t);null!==n&&(Ho(e.ph,n),e.$h=e.$h.remove(t),e.kh.delete(n),ja(e))}function Aa(e,t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof da?(e.Mh.Da(o.key,t),Na(e,o)):o instanceof pa?(p("SyncEngine","Document no longer in limbo: "+o.key),e.Mh.Na(o.key,t),e.Mh.Ho(o.key)||Pa(e,o.key)):y()}}function Na(e,t){var n=t.key;e.$h.get(n)||(p("SyncEngine","New document in limbo: "+n),e.xh.push(n),ja(e))}function ja(e){for(;e.xh.length>0&&e.$h.size<e.Dh;){var t=e.xh.shift(),n=e.Bh.next();e.kh.set(n,new ga(t)),e.$h=e.$h.ot(t,n),Wo(e.ph,new be(Bn(Dn(t.path)),n,2,zr.ai))}}function Ra(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s;return r.__generator(this,(function(u){switch(u.label){case 0:return i=w(e),o=[],a=[],s=[],i.Nh.m()?[3,3]:(i.Nh.forEac
2h((function(e,r){s.push(i.Qh(r,t,n).then((function(e){if(e){i.Uh&&i.Sh.Qi(r.targetId,e.fromCache?"not-current":"current"),o.push(e);var t=ni.zr(r.targetId,e);a.push(t)}})))})),[4,Promise.all(s)]);case 1:return u.sent(),i.Ch.yu(o),[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,c,l,f;return r.__generator(this,(function(r){switch(r.label){case 0:n=w(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return vr.forEach(t,(function(t){return vr.forEach(t.Kr,(function(r){return n.persistence.No.Da(e,t.targetId,r)})).next((function(){return vr.forEach(t.Gr,(function(r){return n.persistence.No.Na(e,t.targetId,r)}))}))}))}))];case 2:return r.sent(),[3,4];case 3:if(!br(i=r.sent()))throw i;return p("LocalStore","Failed to update sequence numbers: "+i),[3,4];case 4:for(o=0,a=t;o<a.length;o++)s=a[o],u=s.targetId,s.fromCache||(c=n.bc.get(u),l=c.nt,f=c.rt(l),n.bc=n.bc.ot(u,f));return[2]}}))}))}(i.ju,a)];case 2:u.sent(),u.label=3;case 3:return[2]}}
2))}))}function Da(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(o){switch(o.label){case 0:return(n=w(e)).currentUser.isEqual(t)?[3,3]:(p("SyncEngine","User change. New user:",t.ti()),[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=w(e),i=n.Sr,o=n.Cc,[4,n.persistence.runTransaction("Handle user change","readonly",(function(e){var r;return n.Sr.Uo(e).next((function(a){return r=a,i=n.persistence.mc(t),o=new ti(n.Dc,i,n.persistence.Ic()),i.Uo(e)})).next((function(t){for(var n=[],i=[],a=De(),s=0,u=r;s<u.length;s++){var c=u[s];n.push(c.batchId);for(var l=0,f=c.mutations;l<f.length;l++){var h=f[l];a=a.add(h.key)}}for(var d=0,p=t;d<p.length;d++){var v=p[d];i.push(v.batchId);for(var m=0,g=v.mutations;m<g.length;m++){var y=g[m];a=a.add(y.key)}}return o.kr(e,a).next((function(e){return{jh:e,Kh:n,Gh:i}}))}))}))];case 1:return a=r.sent(),[2,(n.Sr=i,n.Cc=o,n.Vc.Nc(n.Cc),a)]}}))}))}(n.ju,t)]);case 1:return i=o.sent(),n.currentUser=t,function(e,t){e.Lh.forEach((function(e){e.forEach((function(e){e.reject(new f(l.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.Lh.clear()}(n),n.Sh.ji(t,i.Kh,i.Gh),[4,Ra(n,i.jh)];case 2:o.sent(),o.label=3;case 3:return[2]}}
2))}))}function La(e,t){var n=w(e),r=n.kh.get(t);if(r&&r.Vh)return De().add(r.key);var i=De(),o=n.Fh.get(t);if(!o)return i;for(var a=0,s=o;a<s.length;a++){var u=s[a],c=n.Nh.get(u);i=i.kt(c.view.dh)}return i}function Ma(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,So((n=w(e)).ju,t.query,!0)];case 1:return i=r.sent(),o=t.view.Ph(i),[2,(n.Uh&&Aa(n,t.targetId,o.Rh),o)]}}))}))}function Fa(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,function(e,t){var n=w(e),r=w(n.Sr);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(e){return r.Lo(e,t).next((function(t){return t?n.Cc.kr(e,t):vr.resolve(null)}))}))}((o=w(e)).ju,t)];case 1:return null===(a=r.sent())?[3,6]:"pending"!==n?[3,3]:[4,ra(o.ph)];case 2:return r.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(xa(o,t,i||null),Oa(o,t),function(e,t){w(w(e).Sr).Ko(t)}(o.ju,t)):y(),r.label=4;case 4:return[4,Ra(o,a)];case 5:return r.sent(),[3,7];case 6:p("SyncEngine","Cannot apply mutation batch with id: "+t),r.label=7;case 7:return[2]}}
2))}))}function za(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,c,l;return r.__generator(this,(function(r){switch(r.label){case 0:return Ha(n=w(e)),Ka(n),!0!==t||!0===n.qh?[3,3]:(i=n.Sh.Ci(),[4,Ua(n,i.A())]);case 1:return o=r.sent(),n.qh=!0,[4,la(n.ph,!0)];case 2:for(r.sent(),a=0,s=o;a<s.length;a++)u=s[a],Wo(n.ph,u);return[3,7];case 3:return!1!==t||!1===n.qh?[3,7]:(c=[],l=Promise.resolve(),n.Fh.forEach((function(e,t){n.Sh.qi(t)?c.push(t):l=l.then((function(){return Ia(n,t),Eo(n.ju,t,!0)})),Ho(n.ph,t)})),[4,l]);case 4:return r.sent(),[4,Ua(n,c)];case 5:return r.sent(),function(e){var t=w(e);t.kh.forEach((function(e,n){Ho(t.ph,n)})),t.Mh.Qc(),t.kh=new Map,t.$h=new Se(x.i)}(n),n.qh=!1,[4,la(n.ph,!1)];case 6:r.sent(),r.label=7;case 7:return[2]}}))}))}function Ua(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u,c,l,f,h,d,p,v,m;return r.__generator(this,(function(r){switch(r.label){case 0:n=w(e),i=[],o=[],a=0,s=t,r.label=1;case 1:return a<s.length?(u=s[a],c=void 0,(l=n.Fh.get(u))&&0!==l.length?[4,_o(n.ju,Bn(l[0]))]:[3,7]):[3,13];case 2:c=r.sent(),f=0,h=l,r.label=3;case 3:return f<h.length?(d=h[f],p=n.Nh.get(d),[4,Ma(n,p)]):[3,6];case 4:(v=r.sent()).snapshot&&o.push(v.snapshot),r.label=5;case 5:return f++,[3,3];case 6:return[3,11];case 7:return[4,ko(n.ju,u)];case 8:return m=r.sent(),[4,_o(n.ju,m)];case 9:return c=r.sent(),[4,wa(n,Va(m),u,!1)];case 10:r.sent(),r.label=11;case 11:i.push(c),r.label=12;case 12:return a++,[3,1];case 13:return[2,(n.Ch.yu(o),i)]}}))}))}function Va(e){return Rn(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function Ba(e){var t=w(e);return w(w(t.ju).persistence).pi()}function qa(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:return(o=w(e)).qh?(p("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!o.Fh.has(t))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,To(o.ju)];case 3:return a=r.sent(),s=Ve.Xt(t,"current"===n),[4,Ra(o,a,s)];case 4:return r.sent(),[3,8];case 5:return[4,Eo(o.ju,t,!0)];case 6:return r.sent(),Ia(o,t,i),[3,8];case 7:y(),r.label=8;case 8:return[2]}}
2))}))}function Wa(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,h,d;return r.__generator(this,(function(v){switch(v.label){case 0:if(!(i=Ha(e)).qh)return[3,10];o=0,a=t,v.label=1;case 1:return o<a.length?(s=a[o],i.Fh.has(s)?(p("SyncEngine","Adding an already active target "+s),[3,5]):[4,ko(i.ju,s)]):[3,6];case 2:return u=v.sent(),[4,_o(i.ju,u)];case 3:return c=v.sent(),[4,wa(i,Va(u),c.targetId,!1)];case 4:v.sent(),Wo(i.ph,c),v.label=5;case 5:return o++,[3,1];case 6:l=function(e){return r.__generator(this,(function(t){switch(t.label){case 0:return i.Fh.has(e)?[4,Eo(i.ju,e,!1).then((function(){Ho(i.ph,e),Ia(i,e)})).catch(Oo)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))},f=0,h=n,v.label=7;case 7:return f<h.length?(d=h[f],[5,l(d)]):[3,10];case 8:v.sent(),v.label=9;case 9:return f++,[3,7];case 10:return[2]}}))}))}function Ha(e){var t=w(e);return t.ph.Gu.sh=Ea.bind(null,t),t.ph.Gu.qe=La.bind(null,t),t.ph.Gu.nh=ka.bind(null,t),t.Ch.yu=Rr.bind(null,t.bh),t.Ch.Wh=Dr.bind(null,t.bh),t}function Ka(e){var t=w(e);return t.ph.Gu.ih=Ta.bind(null,t),t.ph.Gu.rh=Ca.bind(null,t),t}var Ga=function(){function e(){}return e.prototype.Nc=function(e){this.zh=e},e.prototype.Lr=function(e,t,n,r){var i=this;return function(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.on.length||1===e.on.length&&e.on[0].field.p())}(t)||n.isEqual(ue.min())?this.Hh(e,t):this.zh.kr(e,r).next((function(a){var s=i.Yh(t,a);return(Ln(t)||Mn(t))&&i.Eh(t.an,s,r,n)?i.Hh(e,t):(d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),$n(t)),i.zh.Lr(e,t,n).next((function(e){return s.forEach((function(t){e=e.ot(t.key,t)})),e})))}))},e.prototype.Yh=function(e,t){var n=new Ce(Yn(e));return t.forEach((function(t,r){r instanceof Pn&&Qn(e,r)&&(n=n.add(r))})),n},e.prototype.Eh=function(e,t,n,r){if(n.size!==t.size)return!0;var i="F"===e?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.L(r)>0)},e.prototype.Hh=function(e,t){return d()<=o.LogLevel.DEBUG&&p("IndexFreeQueryEngine","Using full collection scan to execute query:",$n(t)),this.zh.Lr(e,t,ue.min())},e}(),$a=function(){function e(e,t){this.Dr=e,this.No=t,this.Sr=[],this.Jh=1,this.Xh=new Ce(Io.kc)}return e.prototype.$o=function(e){return vr.resolve(0===this.Sr.length)},e.prototype.ko=function(e,t,n,r){var i=this.Jh;this.Jh++,this.Sr.length>0&&this.Sr[this.Sr.length-1];var o=new Yr(i,t,n,r);this.Sr.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.Xh=this.Xh.add(new Io(u.key,i)),this.Dr.Mo(e,u.key.path.h())}return vr.resolve(o)},e.prototype.Oo=function(e,t){return vr.resolve(this.Zh(t))},e.prototype.Bo=function(e,t){var n=t+1,r=this.tl(n),i=r<0?0:r;return vr.resolve(this.Sr.length>i?this.Sr[i]:null)},e.prototype.qo=function(){return vr.resolve(0===this.Sr.length?-1:this.Jh-1)},e.prototype.Uo=function(e){return vr.resolve(this.Sr.slice())},e.prototype.Nr=function(e,t){var n=this,r=new Io(t,0),i=new Io(t,Number.POSITIVE_INFINITY),o=[];return this.Xh.Ft([r,i],(function(e){var t=n.Zh(e.jc);o.push(t)})),vr.resolve(o)},e.prototype.Or=function(e,t){var n=this,r=new Ce(Y);return t.forEach((function(e){var t=new Io(e,0),i=new Io(e,Number.POSITIVE_INFINITY);n.Xh.Ft([t,i],(function(e){r=r.add(e.jc)}))})),vr.resolve(this.el(r))},e.prototype.Wr=function(e,t){var n=t.path,r=n.length+1,i=n;x.F(i)||(i=i.child(""));var o=new Io(new x(i),0),a=new Ce(Y);return this.Xh.xt((function(e){var t=e.key.path;return!!n.T(t)&&(t.length===r&&(a=a.add(e.jc)),!0)}),o),vr.resolve(this.el(a))},e.prototype.el=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.Zh(e);null!==r&&n.push(r)})),n},e.prototype.Wo=function(e,t){var n=this;b(0===this.nl(t.batchId,"removed")),this.Sr.shift();var r=this.Xh;return vr.forEach(t.mutations,(function(i){var o=new Io(i.key,t.batchId);return r=r.delete(o),n.No.Go(e,i.key)})).next((function(){n.Xh=r}))},e.prototype.Ko=function(e){},e.prototype.Ho=function(e,t){var n=new Io(t,0),r=this.Xh.$t(n);return vr.resolve(t.isEqual(r&&r.key))},e.prototype.zo=function(e){return this.Sr.length,vr.resolve()},e.prototype.nl=function(e,t){return this.tl(e)},e.prototype.tl=function(e){return 0===this.Sr.length?0:e-this.Sr[0].batchId},e.prototype.Zh=function(e){var t=this.tl(e);return t<0||t>=this.Sr.length?null:this.Sr[t]},e}(),Qa=function(){function e(e,t){this.Dr=e,this.sl=t,this.docs=new Se(x.i),this.size=0}return e.prototype.Er=function(e,t,n){var r=t.key,i=this.docs.get(r),o=i?i.size:0,a=this.sl(t);return this.docs=this.docs.ot(r,{ta:t,size:a,readTime:n}),this.size+=a-o,this.Dr.Mo(e,r.path.h())},e.prototype.Ar=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.Rr=function(e,t){var n=this.docs.get(t);return vr.resolve(n?n.ta:null)},e.prototype.getEntries=function(e,t){var n=this,r=Pe();return t.forEach((function(e){var t=n.docs.get(e);r=r.ot(e,t?t.ta:null)})),vr.resolve(r)},e.prototype.Lr=function(e,t,n){for(var r=Ne(),i=new x(t.path.child("")),o=this.docs.ft(i);o.At();){var a=o.It(),s=a.key,u=a.value,c=u.ta,l=u.readTime;if(!t.path.T(s.path))break;l.L(n)<=0||c instanceof Pn&&Qn(t,c)&&(r=r.ot(c.key,c))}return vr.resolve(r)},e.prototype.il=function(e,t){return vr.forEach(this.docs,(function(e){return t(e)}))},e.prototype.ra=function(e){return new Ya(this)},e.prototype.aa=function(e){return vr.resolve(this.size)},e}(),Ya=function(e){function t(t){var n=this;return(n=e.call(this)||this).ca=t,n}return r.__extends(t,e),t.prototype.yr=function(e){var t=this,n=[];return this.wr.forEach((function(r,i){i?n.push(t.ca.Er(e,i,t.readTime)):t.ca.Ar(r)})),vr.$n(n)},t.prototype.gr=function(e,t){return this.ca.Rr(e,t)},t.prototype.Pr=function(e,t){return this.ca.getEntries(e,t)},t}
2(Jr),Xa=function(){function e(e){this.persistence=e,this.rl=new ae((function(e){return pe(e)}),ve),this.lastRemoteSnapshotVersion=ue.min(),this.highestTargetId=0,this.ol=0,this.al=new xo,this.targetCount=0,this.cl=no.fa()}return e.prototype.Ce=function(e,t){return this.rl.forEach((function(e,n){return t(n)})),vr.resolve()},e.prototype.Ea=function(e){return vr.resolve(this.lastRemoteSnapshotVersion)},e.prototype.Ia=function(e){return vr.resolve(this.ol)},e.prototype.wa=function(e){return this.highestTargetId=this.cl.next(),vr.resolve(this.highestTargetId)},e.prototype.Aa=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.ol&&(this.ol=t),vr.resolve()},e.prototype.ga=function(e){this.rl.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.cl=new no(t),this.highestTargetId=t),e.sequenceNumber>this.ol&&(this.ol=e.sequenceNumber)},e.prototype.Ra=function(e,t){return this.ga(t),this.targetCount+=1,vr.resolve()},e.prototype.ya=function(e,t){return this.ga(t),vr.resolve()},e.prototype.Va=function(e,t){return this.rl.delete(t.target),this.al.Uc(t.targetId),this.targetCount-=1,vr.resolve()},e.prototype.po=function(e,t,n){var r=this,i=0,o=[];return this.rl.forEach((function(a,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.rl.delete(a),o.push(r.pa(e,s.targetId)),i++)})),vr.$n(o).next((function(){return i}))},e.prototype.ba=function(e){return vr.resolve(this.targetCount)},e.prototype.va=function(e,t){var n=this.rl.get(t)||null;return vr.resolve(n)},e.prototype.Sa=function(e,t,n){return this.al.Lc(t,n),vr.resolve()},e.prototype.Ca=function(e,t,n){this.al.qc(t,n);var r=this.persistence.No,i=[];return r&&t.forEach((function(t){i.push(r.Go(e,t))})),vr.$n(i)},e.prototype.pa=function(e,t){return this.al.Uc(t),vr.resolve()},e.prototype.Fa=function(e,t){var n=this.al.Wc(t);return vr.resolve(n)},e.prototype.Ho=function(e,t){return vr.resolve(this.al.Ho(t))},e}(),Ja=function(){function e(e){var t=this;this.ul={},this.Ma=new zr(0),this.Oa=!1,this.Oa=!0,this.No=e(this),this.Ka=new Xa(this),this.Dr=new Di,this.vr=function(e,n){return new Qa(e,(function(e){return t.No.hl(e)}))}(this.Dr)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.Di=function(){return this.Oa=!1,Promise.resolve()},Object.defineProperty(e.prototype,"Ei",{get:function(){return this.Oa},enumerable:!1,configurable:!0}),e.prototype.Za=function(){},e.prototype.tc=function(){},e.prototype.Ic=function(){return this.Dr},e.prototype.mc=function(e){var t=this.ul[e.ti()];return t||(t=new $a(this.Dr,this.No),this.ul[e.ti()]=t),t},e.prototype.Tc=function(){return this.Ka},e.prototype.Ec=function(){return this.vr},e.prototype.runTransaction=function(e,t,n){var r=this;p("MemoryPersistence","Starting transaction:",e);var i=new Za(this.Ma.next());return this.No.ll(),n(i).next((function(e){return r.No._l(i).next((function(){return e}))})).Fn().then((function(e){return i.br(),e}))},e.prototype.fl=function(e,t){return vr.kn(Object.values(this.ul).map((function(n){return function(){return n.Ho(e,t)}})))},e}(),Za=function(e){function t(t){var n=this;return(n=e.call(this)||this).xa=t,n}return r.__extends(t,e),t}(ei),es=function(){function e(e){this.persistence=e,this.dl=new xo,this.wl=null}return e.ml=function(t){return new e(t)},Object.defineProperty(e.prototype,"Tl",{get:function(){if(this.wl)return this.wl;throw y()},enumerable:!1,configurable:!0}),e.prototype.Da=function(e,t,n){return this.dl.Da(n,t),this.Tl.delete(n.toString()),vr.resolve()},e.prototype.Na=function(e,t,n){return this.dl.Na(n,t),this.Tl.add(n.toString()),vr.resolve()},e.prototype.Go=function(e,t){return this.Tl.add(t.toString()),vr.resolve()},e.prototype.removeTarget=function(e,t){var n=this;this.dl.Uc(t.targetId).forEach((function(e){return n.Tl.add(e.toString())}));var r=this.persistence.Tc();return r.Fa(e,t.targetId).next((function(e){e.forEach((function(e){return n.Tl.add(e.toString())}))})).next((function(){return r.Va(e,t)}))},e.prototype.ll=function(){this.wl=new Set},e.prototype._l=function(e){var t=this,n=this.persistence.Ec().ra();return vr.forEach(this.Tl,(function(r){var i=x.D(r);return t.El(e,i).next((function(e){e||n.Ar(i)}))})).next((function(){return t.wl=null,n.apply(e)}))},e.prototype.yc=function(e,t){var n=this;return this.El(e,t).next((function(e){e?n.Tl.delete(t.toString()):n.Tl.add(t.toString())}))},e.prototype.hl=function(e){return 0},e.prototype.El=function(e,t){var n=this;return vr.kn([function(){return vr.resolve(n.dl.Ho(t))},function(){return n.persistence.Tc().Ho(e,t)},function(){return n.persistence.fl(e,t)}])},e}(),ts=function(){function e(e){this.Il=e.Il,this.Al=e.Al}return e.prototype.gu=function(e){this.Rl=e},e.prototype.Tu=function(e){this.gl=e},e.prototype.onMessage=function(e){this.Pl=e},e.prototype.close=function(){this.Al()},e.prototype.send=function(e){this.Il(e)},e.prototype.yl=function(){this.Rl()},e.prototype.Vl=function(e){this.gl(e)},e.prototype.pl=function(e){this.Pl(e)},e}(),ns={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},rs=function(e){function t(t){var n=this;return(n=e.call(this,t)||this).forceLongPolling=t.forceLongPolling,n.W=t.W,n}return r.__extends(t,e),t.prototype.Nl=function(e,t,n,r){return new Promise((function(i,o){var a=new s.XhrIo;
2a.listenOnce(s.EventType.COMPLETE,(function(){try{switch(a.getLastErrorCode()){case s.ErrorCode.NO_ERROR:var t=a.getResponseJson();p("Connection","XHR received:",JSON.stringify(t)),i(t);break;case s.ErrorCode.TIMEOUT:p("Connection",'RPC "'+e+'" timed out'),o(new f(l.DEADLINE_EXCEEDED,"Request time out"));break;case s.ErrorCode.HTTP_ERROR:var n=a.getStatus();if(p("Connection",'RPC "'+e+'" failed with status:',n,"response text:",a.getResponseText()),n>0){var r=a.getResponseJson().error;if(r&&r.status&&r.message){var u=function(e){var t=e.toLowerCase().replace("_","-");return Object.values(l).indexOf(t)>=0?t:l.UNKNOWN}(r.status);o(new f(u,r.message))}else o(new f(l.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new f(l.UNAVAILABLE,"Connection failed."));break;default:y()}}finally{p("Connection",'RPC "'+e+'" completed.')}}));var u=JSON.stringify(r);a.send(t,"POST",u,n,15)}))},t.prototype.Pu=function(e,t){var n=[this.vl,"/","google.firestore.v1.Firestore","/",e,"/channel"],r=s.createWebChannelTransport(),i={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.U.projectId+"/databases/"+this.U.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.W};this.Cl(i.initMessageHeaders,t),a.isMobileCordova()||a.isReactNative()||a.isElectron()||a.isIE()||a.isUWP()||a.isBrowserExtension()||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");p("Connection","Creating WebChannel: "+o,i);var u=r.createWebChannel(o,i),c=!1,h=!1,d=new ts({Il:function(e){h?p("Connection","Not sending because WebChannel is closed:",e):(c||(p("Connection","Opening WebChannel transport."),u.open(),c=!0),p("Connection","WebChannel sending:",e),u.send(e))},Al:function(){return u.close()}}),v=function(e,t){u.listen(e,(function(e){try{t(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return v(s.WebChannel.EventType.OPEN,(function(){h||p("Connection","WebChannel transport opened.")})),v(s.WebChannel.EventType.CLOSE,(function(){h||(h=!0,p("Connection","WebChannel transport closed"),d.Vl())})),v(s.WebChannel.EventType.ERROR,(function(e){h||(h=!0,m("Connection","WebChannel transport errored:",e),d.Vl(new f(l.UNAVAILABLE,"The operation could not be completed")))})),v(s.WebChannel.EventType.MESSAGE,(function(e){var t;if(!h){var n=e.data[0];b(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){p("Connection","WebChannel received error:",i);var o=i.status,a=function(e){var t=ge[e];if(void 0!==t)return Ee(t)}(o),s=i.message;void 0===a&&(a=l.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),h=!0,d.Vl(new f(a,s)),u.close()}else p("Connection","WebChannel received:",n),d.pl(n)}})),setTimeout((function(){d.yl()}),0),d},t}(function(){function e(e){this.bl=e,this.U=e.U;var t=e.ssl?"https":"http";this.vl=t+"://"+e.host,this.Sl="projects/"+this.U.projectId+"/databases/"+this.U.database+"/documents"}return e.prototype.$u=function(e,t,n,r){var i=this.Dl(e,t);p("RestConnection","Sending: ",i,n);var o={};return this.Cl(o,r),this.Nl(e,i,o,n).then((function(e){return p("RestConnection","Received: ",e),e}),(function(t){throw m("RestConnection",e+" failed with error: ",t,"url: ",i,"request:",n),t}))},e.prototype.ku=function(e,t,n,r){return this.$u(e,t,n,r)},e.prototype.Cl=function(e,t){if(e["X-Goog-Api-Client"]="gl-js/ fire/7.24.0",e["Content-Type"]="text/plain",t)for(var n in t.Kc)t.Kc.hasOwnProperty(n)&&(e[n]=t.Kc[n])},e.prototype.Dl=function(e,t){var n=ns[e];return this.vl+"/v1/"+t+":"+n},e}()),is=function(){function e(){var e=this;this.Fl=function(){return e.xl()},this.$l=function(){return e.kl()},this.Ml=[],this.Ol()}return e.prototype.Zu=function(e){this.Ml.push(e)},e.prototype.Di=function(){window.removeEventListener("online",this.Fl),window.removeEventListener("offline",this.$l)},e.prototype.Ol=function(){window.addEventListener("online",this.Fl),window.addEventListener("offline",this.$l)},e.prototype.xl=function(){p("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.Ml;e<t.length;e++)(0,t[e])(0)},e.prototype.kl=function(){p("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.Ml;e<t.length;e++)(0,t[e])(1)},e.Ln=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),os=function(){function e(){}return e.prototype.Zu=function(e){},e.prototype.Di=function(){},e}();function as(e){return new mt(e,!0)}var ss="You are using the memory-only build of Firestore. Persistence support is only available via the @firebase/firestore bundle or the firebase-firestore.js build.",us=function(){function e(){}return e.prototype.initialize=function(e){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return this.Sh=this.Ll(e),this.persistence=this.Bl(e),[4,this.persistence.start()];case 1:return t.sent(),this.ql=this.Ul(e),this.ju=this.Ql(e),[2]}}))}))},e.prototype.Ul=function(e){return null},e.prototype.Ql=function(e){return t=this.persistence,n=new Ga,r=e.Wl,new mo(t,n,r);var t,n,r},e.prototype.Bl=function(e){if(e.persistenceSettings.jl)throw new f(l.FAILED_PRECONDITION,ss);return new Ja(es.ml)},e.prototype.Ll=function(e){return new Qr},e.prototype.terminate=function(){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.ql&&this.ql.stop(),[4,this.Sh.Di()];case 1:return e.sent(),[4,this.persistence.Di()];case 2:return e.sent(),[2]}}))}))},e.prototype.clearPersistence=function(e,t){throw new f(l.FAILED_PRECONDITION,ss)},e}(),cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(o){switch(o.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return o.sent(),n=this.Kl.fi,this.Sh instanceof $r?(this.Sh.fi={er:Fa.bind(null,n),nr:qa.bind(null,n),sr:Wa.bind(null,n),pi:Ba.bind(null,n)},[4,this.Sh.start()]):[3,3];case 2:o.sent(),o.label=3;case 3:return[4,this.persistence.Xa((function(e){return r.__awaiter(i,void 0,void 0,(function(){return r.__generator(this,(function(t){switch(t.label){case 0:return[4,za(this.Kl.fi,e)];case 1:return t.sent(),this.ql&&(e&&!this.ql.Ei?this.ql.start(this.ju):e||this.ql.stop()),[2]}}))}))}))];case 4:return o.sent(),[2]}}))}))},t.prototype.Ll=function(e){if(e.persistenceSettings.jl&&e.persistenceSettings.synchronizeTabs){var t=Tr();
2if(!$r.Ln(t))throw new f(l.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=vo(e.bl.U,e.bl.persistenceKey);return new $r(t,e.cs,n,e.clientId,e.Wl)}return new Qr},t}(function(e){function t(t){var n=this;return(n=e.call(this)||this).Kl=t,n}return r.__extends(t,e),t.prototype.initialize=function(t){return r.__awaiter(this,void 0,void 0,(function(){return r.__generator(this,(function(n){switch(n.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return n.sent(),[4,Co(this.ju)];case 2:return n.sent(),[4,this.Kl.initialize(this,t)];case 3:return n.sent(),[4,Ka(this.Kl.fi)];case 4:return n.sent(),[4,ra(this.Kl.ph)];case 5:return n.sent(),[2]}}))}))},t.prototype.Ul=function(e){var t=this.persistence.No.wo;return new si(t,e.cs)},t.prototype.Bl=function(e){var t=vo(e.bl.U,e.bl.persistenceKey),n=as(e.bl.U);return new co(e.persistenceSettings.synchronizeTabs,t,e.clientId,ai.ao(e.persistenceSettings.cacheSizeBytes),e.cs,Tr(),Cr(),n,this.Sh,e.persistenceSettings.ka)},t.prototype.Ll=function(e){return new Qr},t.prototype.clearPersistence=function(e,t){return function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return mr.Ln()?(t=e+"main",[4,mr.delete(t)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))}(vo(e,t))},t}(us)),ls=function(){function e(){}return e.prototype.initialize=function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.ju?[3,2]:(this.ju=e.ju,this.Sh=e.Sh,this.Ku=this.Gl(t),this.ph=this.zl(t),this.bh=this.Hl(t),this.fi=this.Yl(t),this.Sh.di=function(e){return Sa(n.fi,e,1)},this.ph.Gu.Jl=Da.bind(null,this.fi),[4,la(this.ph,this.fi.Uh)]);case 1:r.sent(),r.label=2;case 2:return[2]}}
2))}))},e.prototype.Hl=function(e){return new Ar},e.prototype.Gl=function(e){var t,n=as(e.bl.U),r=(t=e.bl,new rs(t));return function(e,t,n){return new Fo(e,t,n)}(e.credentials,r,n)},e.prototype.zl=function(e){var t,n,r,i,o,a=this;return t=this.ju,n=this.Ku,r=e.cs,i=function(e){return Sa(a.fi,e,0)},o=is.Ln()?new is:new os,new Uo(t,n,r,i,o)},e.prototype.Yl=function(e){return function(e,t,n,r,i,o,a){var s=new ya(e,t,n,r,i,o);return a&&(s.qh=!0),s}(this.ju,this.ph,this.bh,this.Sh,e.Wl,e.Dh,!e.persistenceSettings.jl||!e.persistenceSettings.synchronizeTabs)},e.prototype.terminate=function(){return qo(this.ph)},e}(),fs=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.observer.next&&this.Xl(this.observer.next,e)},e.prototype.error=function(e){this.observer.error?this.Xl(this.observer.error,e):console.error("Uncaught Error in snapshot listener:",e)},e.prototype.Zl=function(){this.muted=!0},e.prototype.Xl=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}(),hs=function(e){!function(e,t,n,r){if(!(t instanceof Array)||t.length<1)throw new f(l.INVALID_ARGUMENT,"Function FieldPath() requires its fieldNames argument to be an array with at least "+G(1,"element")+".")}(0,e);for(var t=0;t<e.length;++t)if(j("FieldPath","string",t,e[t]),0===e[t].length)throw new f(l.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this.t_=new O(e)},ds=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.call(this,t)||this}return r.__extends(t,e),t.documentId=function(){return new t(O.v().R())},t.prototype.isEqual=function(e){if(!(e instanceof t))throw W("isEqual","FieldPath",1,e);return this.t_.isEqual(e.t_)},t}(hs),ps=new RegExp("[~\\*/\\[\\]]"),vs=function(e){this.e_=e},ms=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.n_=function(e){if(2!==e.s_)throw 1===e.s_?e.i_(this.e_+"() can only appear at the top level of your update data"):e.i_(this.e_+"() cannot be used with set() unless you pass {merge:true}");return e.We.push(e.path),null},t.prototype.isEqual=function(e){return e instanceof t},t}(vs);function gs(e,t,n){return new Is({s_:3,r_:t.settings.r_,methodName:e.e_,o_:n},t.U,t.serializer,t.ignoreUndefinedProperties)}var ys=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.n_=function(e){return new un(e.path,new Jt)},t.prototype.isEqual=function(e){return e instanceof t},t}(vs),bs=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).a_=n,r}return r.__extends(t,e),t.prototype.n_=function(e){var t=gs(this,e,!0),n=this.a_.map((function(e){return Ds(e,t)})),r=new Zt(n);return new un(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(vs),ws=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).a_=n,r}return r.__extends(t,e),t.prototype.n_=function(e){var t=gs(this,e,!0),n=this.a_.map((function(e){return Ds(e,t)})),r=new tn(n);return new un(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}(vs),_s=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).c_=n,r}return r.__extends(t,e),t.prototype.n_=function(e){var t=new rn(e.serializer,bt(e.serializer,this.c_));return new un(e.path,t)},t.prototype.isEqual=function(e){return this===e},t}(vs),Es=function(){function e(e,t){if(P("GeoPoint",arguments,2),j("GeoPoint","number",1,e),j("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new f(l.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new f(l.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this.u_=e,this.h_=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this.u_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this.h_},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this.u_===e.u_&&this.h_===e.h_},e.prototype.toJSON=function(){return{latitude:this.u_,longitude:this.h_}},e.prototype.Y=function(e){return Y(this.u_,e.u_)||Y(this.h_,e.h_)},e}(),Ss=function(e){this.l_=e},ks=/^__.*__$/,Ts=function(e,t,n){this.__=e,this.f_=t,this.d_=n},Cs=function(){function e(e,t,n){this.data=e,this.We=t,this.fieldTransforms=n}return e.prototype.w_=function(e,t){var n=[];return null!==this.We?n.push(new bn(e,this.data,this.We,t)):n.push(new yn(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new _n(e,this.fieldTransforms)),n},e}(),Os=function(){function e(e,t,n){this.data=e,this.We=t,this.fieldTransforms=n}return e.prototype.w_=function(e,t){var n=[new bn(e,this.data,this.We,t)];return this.fieldTransforms.length>0&&n.push(new _n(e,this.fieldTransforms)),n},e}();function xs(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw y()}}var Is=function(){function e(e,t,n,r,i,o){this.settings=e,this.U=t,this.serializer
2=n,this.ignoreUndefinedProperties=r,void 0===i&&this.m_(),this.fieldTransforms=i||[],this.We=o||[]}return Object.defineProperty(e.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"s_",{get:function(){return this.settings.s_},enumerable:!1,configurable:!0}),e.prototype.T_=function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.U,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.We)},e.prototype.E_=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.T_({path:n,o_:!1});return r.I_(e),r},e.prototype.A_=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.T_({path:n,o_:!1});return r.m_(),r},e.prototype.R_=function(e){return this.T_({path:void 0,o_:!0})},e.prototype.i_=function(e){return Vs(e,this.settings.methodName,this.settings.g_||!1,this.path,this.settings.r_)},e.prototype.contains=function(e){return void 0!==this.We.find((function(t){return e.T(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.T(t.field)}))},e.prototype.m_=function(){if(this.path)for(var e=0;e<this.path.length;e++)this.I_(this.path.get(e))},e.prototype.I_=function(e){if(0===e.length)throw this.i_("Document fields must not be empty");if(xs(this.s_)&&ks.test(e))throw this.i_('Document fields cannot begin and end with "__"')},e}(),Ps=function(){function e(e,t,n){this.U=e,this.ignoreUndefinedProperties=t,this.serializer=n||as(e)}return e.prototype.P_=function(e,t,n,r){return void 0===r&&(r=!1),new Is({s_:e,methodName:t,r_:n,path:O.P(),o_:!1,g_:r},this.U,this.serializer,this.ignoreUndefinedProperties)},e}();function As(e,t,n,r,i,o){void 0===o&&(o={});var a=e.P_(o.merge||o.mergeFields?2:0,t,n,i);Fs("Data must be an object, but it was:",a,r);var s,u,c=Ls(r,a);if(o.merge)s=new sn(a.We),u=a.fieldTransforms;else if(o.mergeFields){for(var h=[],d=0,p=o.mergeFields;d<p.length;d++){var v=p[d],m=void 0;if(v instanceof hs)m=v.t_;else{if("string"!=typeof v)throw y();m=Us(t,v,n)}if(!a.contains(m))throw new f(l.INVALID_ARGUMENT,"Field '"+m+"' is specified in your field mask but missing from your input data.");Bs(h,m)||h.push(m)}s=new sn(h),u=a.fieldTransforms.filter((function(e){return s.Ye(e.field)}))}else s=null,u=a.fieldTransforms;return new Cs(new Cn(c),s,u)}function Ns(e,t,n,r){var i=e.P_(1,t,n);Fs("Data must be an object, but it was:",i,r);var o=[],a=new On;E(r,(function(e,r){var s=Us(t,e,n),u=i.A_(s);if(r instanceof ms||r instanceof Ss&&r.l_ instanceof ms)o.push(s);else{var c=Ds(r,u);null!=c&&(o.push(s),a.set(s,c))}}));var s=new sn(o);return new Os(a.Xe(),s,i.fieldTransforms)}function js(e,t,n,r,i,o){var a=e.P_(1,t,n),s=[zs(t,r,n)],u=[i];if(o.length%2!=0)throw new f(l.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<o.length;c+=2)s.push(zs(t,o[c])),u.push(o[c+1]);for(var h=[],d=new On,p=s.length-1;p>=0;--p)if(!Bs(h,s[p])){var v=s[p],m=u[p],g=a.A_(v);if(m instanceof ms||m instanceof Ss&&m.l_ instanceof ms)h.push(v);else{var y=Ds(m,g);null!=y&&(h.push(v),d.set(v,y))}}var b=new sn(h);return new Os(d.Xe(),b,a.fieldTransforms)}function Rs(e,t,n,r){return void 0===r&&(r=!1),Ds(n,e.P_(r?4:3,t))}function Ds(e,t){if(e instanceof Ss&&(e=e.l_),Ms(e))return Fs("Unsupported field value:",t,e),Ls(e,t);if(e instanceof vs)return function(e,t){if(!xs(t.s_))throw t.i_(e.e_+"() can only be used with update() and set()");if(!t.path)throw t.i_(e.e_+"() is not currently supported inside arrays");var n=e.n_(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(t.path&&t.We.push(t.path),e instanceof Array){if(t.settings.o_&&4!==t.s_)throw t.i_("Nested arrays are not supported");return function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var a=Ds(o[i],t.R_(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===e)return{nullValue:"NULL_VALUE"};if("number"==typeof e)return bt(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=se.fromDate(e);return{timestampValue:wt(t.serializer,n)}}if(e instanceof se){var r=new se(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:wt(t.serializer,r)}}if(e instanceof Es)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof ee)return{bytesValue:_t(t.serializer,e.q)};if(e instanceof Ts){var i=t.U,o=e.__;if(!o.isEqual(i))throw t.i_("Document reference is for database "+o.projectId+"/"+o.database+" but should be for database "+i.projectId+"/"+i.database);return{referenceValue:kt(e.__||t.U,e.f_.path)}}if(void 0===e&&t.ignoreUndefinedProperties)return null;throw t.i_("Unsupported field value: "+V(e))}(e,t)}function Ls(e,t){var n={};return S(e)?t.path&&t.path.length>0&&t.We.push(t.path):E(e,(function(e,r){var i=Ds(r,t.E_(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function Ms(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof se||e instanceof Es||e instanceof ee||e instanceof Ts||e instanceof vs)}function Fs(e,t,n){if(!Ms(n)||!U(n)){var r=V(n);throw"an object"===r?t.i_(e+" a custom object"):t.i_(e+" "+r)}}function zs(e,t,n){if(t instanceof hs)return t.t_;if("string"==typeof t)return Us(e,t);throw Vs("Field path arguments must be of type string or FieldPath.",e,!1,void 0,n)}function Us(e,t,n){try{return function(e){if(e.search(ps)>=0)throw new f(l.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(ds.bind.apply(ds,r.__spreadArrays([void 0],e.split("."))))}catch(r){throw new f(l.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t).t_}catch(t){throw Vs((i=t)instanceof Error?i.message:i.toString(),e,!1,void 0,n)}var i}function Vs(e,t,n,r,i){var o=r&&!r.m(),a=void 0!==i,s="Function "+t+"() called with invali
2d data";n&&(s+=" (via `toFirestore()`)");var u="";return(o||a)&&(u+=" (found",o&&(u+=" in field "+r),a&&(u+=" in document "+i),u+=")"),new f(l.INVALID_ARGUMENT,(s+=". ")+e+u)}function Bs(e,t){return e.some((function(e){return e.isEqual(t)}))}var qs=function(){function e(e){this.Ku=e,this.y_=new Map,this.mutations=[],this.V_=!1,this.p_=null,this.b_=new Set}return e.prototype.v_=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:if(this.S_(),this.mutations.length>0)throw new f(l.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s,u;return r.__generator(this,(function(r){switch(r.label){case 0:return n=w(e),i=Pt(n.serializer)+"/documents",o={documents:t.map((function(e){return Ct(n.serializer,e)}))},[4,n.ku("BatchGetDocuments",i,o)];case 1:return a=r.sent(),s=new Map,a.forEach((function(e){var t=function(e,t){return"found"in t?function(e,t){b(!!t.found),t.found.name,t.found.updateTime;var n=Ot(e,t.found.name),r=St(t.found.updateTime),i=new Cn({mapValue:{fields:t.found.fields}});return new Pn(n,r,i,{})}(e,t):"missing"in t?function(e,t){b(!!t.missing),b(!!t.readTime);var n=Ot(e,t.missing),r=St(t.readTime);return new An(n,r)}(e,t):y()}(n.serializer,e);s.set(t.key.toString(),t)})),u=[],[2,(t.forEach((function(e){var t=s.get(e.toString());b(!!t),u.push(t)})),u)]}}))}))}(this.Ku,e)];case 1:return[2,((t=i.sent()).forEach((function(e){e instanceof An||e instanceof Pn?n.D_(e):y()})),t)]}}))}))},e.prototype.set=function(e,t){this.write(t.w_(e,this.Ge(e))),this.b_.add(e.toString())},e.prototype.update=function(e,t){try{this.write(t.w_(e,this.C_(e)))}catch(e){this.p_=e}this.b_.add(e.toString())},e.prototype.delete=function(e){this.write([new kn(e,this.Ge(e))]),this.b_.add(e.toString())},e.prototype.commit=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(n){switch(n.label){case 0:if(this.S_(),this.p_)throw this.p_;return e=this.y_,this.mutations.forEach((function(t){e.delete(t.key.toString())})),e.forEach((function(e,n){var r=x.D(n);t.mutations.push(new Tn(r,t.Ge(r)))})),[4,function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o;return r.__generator(this,(function(r){switch(r.label){case 0:return n=w(e),i=Pt(n.serializer)+"/documents",o={writes:t.map((function(e){return jt(n.serializer,e)}))},[4,n.$u("Commit",i,o)];case 1:return r.sent(),[2]}}))}))}(this.Ku,this.mutations)];case 1:return n.sent(),this.V_=!0,[2]}}))}))},e.prototype.D_=function(e){var t;if(e instanceof Pn)t=e.version;else{if(!(e instanceof An))throw y();t=ue.min()}var n=this.y_.get(e.key.toString());if(n){if(!t.isEqual(n))throw new f(l.ABORTED,"Document version changed between two reads.")}else this.y_.set(e.key.toString(),t)},e.prototype.Ge=function(e){var t=this.y_.get(e.toString());return!this.b_.has(e.toString())&&t?ln.updateTime(t):ln.ze()},e.prototype.C_=function(e){var t=this.y_.get(e.toString());if(!this.b_.has(e.toString())&&t){if(t.isEqual(ue.min()))throw new f(l.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ln.updateTime(t)}return ln.exists(!0)},e.prototype.write=function(e){this.S_(),this.mutations=this.mutations.concat(e)},e.prototype.S_=function(){},e}(),Ws=function(){function e(e,t,n,r){this.cs=e,this.Ku=t,this.updateFunction=n,this.ls=r,this.N_=5,this.ys=new pr(this.cs,"transaction_retry")}return e.prototype.run=function(){this.F_()},e.prototype.F_=function(){var e=this;this.ys.gn((function(){return r.__awaiter(e,void 0,void 0,(function(){var e,t,n=this;return r.__generator(this,(function(r){return e=new qs(this.Ku),(t=this.x_(e))&&t.then((function(t){n.cs.ws((function(){return e.commit().then((function(){n.ls.resolve(t)})).catch((function(e){n.k_(e)}))}))})).catch((function(e){n.k_(e)})),[2]}))}))}))},e.prototype.x_=function(e){try{var t=this.updateFunction(e);return!ce(t)&&t.catch&&t.then?t:(this.ls.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.ls.reject(e),null}},e.prototype.k_=function(e){var t=this;this.N_>0&&this.M_(e)?(this.N_-=1,this.cs.ws((function(){return t.F_(),Promise.resolve()}))):this.ls.reject(e)},e.prototype.M_=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!_e(t)}return!1},e}(),Hs=function(){function e(e,t){this.credentials=e,this.cs=t,this.clientId=Q.k(),this.O_=ne
2w dr}return e.prototype.start=function(e,t,n,i){var o=this;this.L_(),this.bl=e;var a=new dr,s=!1;return this.credentials.Hc((function(e){if(!s)return s=!0,p("FirestoreClient","Initializing. user=",e.uid),o.B_(t,n,i,e,a).then(o.O_.resolve,o.O_.reject);o.cs.Cs((function(){return function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i;return r.__generator(this,(function(r){switch(r.label){case 0:return(n=w(e)).cs.xs(),p("RemoteStore","RemoteStore received new credentials"),i=Yo(n),n.Yu.add(3),[4,Bo(n)];case 1:return r.sent(),i&&n.th.set("Unknown"),[4,n.Gu.Jl(t)];case 2:return r.sent(),n.Yu.delete(3),[4,Vo(n)];case 3:return r.sent(),[2]}}))}))}(o.ph,e)}))})),this.cs.ws((function(){return o.O_.promise})),a.promise},e.prototype.enableNetwork=function(){var e=this;return this.L_(),this.cs.enqueue((function(){return e.persistence.tc(!0),function(e){var t=w(e);return t.Yu.delete(0),Vo(t)}(e.ph)}))},e.prototype.B_=function(e,t,n,i,o){return r.__awaiter(this,void 0,void 0,(function(){var a,s,u=this;return r.__generator(this,(function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),a={cs:this.cs,bl:this.bl,clientId:this.clientId,credentials:this.credentials,Wl:i,Dh:100,persistenceSettings:n},[4,e.initialize(a)];case 1:return c.sent(),[4,t.initialize(e,a)];case 2:return c.sent(),this.persistence=e.persistence,this.Sh=e.Sh,this.ju=e.ju,this.ql=e.ql,this.Ku=t.Ku,this.ph=t.ph,this.fi=t.fi,this.q_=t.bh,this.q_.Us=ba.bind(null,this.fi),this.q_.js=_a.bind(null,this.fi),this.persistence.Za((function(){return r.__awaiter(u,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return[4,this.terminate()];case 1:return e.sent(),[2]}}))}))})),o.resolve(),[3,4];case 3:if(s=c.sent(),o.reject(s),!this.U_(s))throw s;return[2,(console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+s),this.B_(new us,new ls,{jl:!1},i,o))];case 4:return[2]}}
2))}))},e.prototype.U_=function(e){return"FirebaseError"===e.name?e.code===l.FAILED_PRECONDITION||e.code===l.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code},e.prototype.L_=function(){if(this.cs.ps)throw new f(l.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.disableNetwork=function(){var e=this;return this.L_(),this.cs.enqueue((function(){return e.persistence.tc(!1),function(e){return r.__awaiter(this,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return(t=w(e)).Yu.add(0),[4,Bo(t)];case 1:return n.sent(),t.th.set("Offline"),[2]}}))}))}(e.ph)}))},e.prototype.terminate=function(){var e=this;this.cs.Ds();var t=new dr;return this.cs.bs((function(){return r.__awaiter(e,void 0,void 0,(function(){var e,n;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,4,,5]),this.ql&&this.ql.stop(),[4,qo(this.ph)];case 1:return r.sent(),[4,this.Sh.Di()];case 2:return r.sent(),[4,this.persistence.Di()];case 3:return r.sent(),this.credentials.Yc(),t.resolve(),[3,5];case 4:return e=r.sent(),n=Ir(e,"Failed to shutdown persistence"),t.reject(n),[3,5];case 5:return[2]}}
2))}))})),t.promise},e.prototype.waitForPendingWrites=function(){var e=this;this.L_();var t=new dr;return this.cs.ws((function(){return function(e,t){return r.__awaiter(this,void 0,void 0,(function(){var n,i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:Yo((n=w(e)).ph)||p("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,function(e){var t=w(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t.Sr.qo(e)}))}(n.ju)];case 2:return-1===(i=r.sent())?[2,void t.resolve()]:((o=n.Lh.get(i)||[]).push(t),n.Lh.set(i,o),[3,4]);case 3:return a=r.sent(),s=Ir(a,"Initialization of waitForPendingWrites() operation failed"),t.reject(s),[3,4];case 4:return[2]}}))}))}(e.fi,t)})),t.promise},e.prototype.listen=function(e,t,n){var r=this;this.L_();var i=new fs(n),o=new Mr(e,i,t);return this.cs.ws((function(){return Nr(r.q_,o)})),function(){i.Zl(),r.cs.ws((function(){return jr(r.q_,o)}))}},e.prototype.Q_=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),t=new dr,[2,(this.cs.ws((function(){return function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(e,t){var n=w(e);return n.persistence.runTransaction("read document","readonly",(function(e){return n.Cc.Cr(e,t)}))}(e,t)];case 1:return(i=r.sent())instanceof Pn?n.resolve(i):i instanceof An?n.resolve(null):n.reject(new f(l.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return o=r.sent(),a=Ir(o,"Failed to get document '"+t+" from cache"),n.reject(a),[3,3];case 3:return[2]}}
2))}))}(n.ju,e,t)})),t.promise)]}}))}))},e.prototype.W_=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new dr,[2,(this.cs.ws((function(){return function(e,t,n,r,i){var o=new fs({next:function(o){t.ws((function(){return jr(e,a)}));var s=o.docs.has(n);!s&&o.fromCache?i.reject(new f(l.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new f(l.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(o)},error:function(e){return i.reject(e)}}),a=new Mr(Dn(n.path),o,{includeMetadataChanges:!0,Xs:!0});return Nr(e,a)}(i.q_,i.cs,e,t,n)})),n.promise)]}}))}))},e.prototype.j_=function(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n=this;return r.__generator(this,(function(i){switch(i.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return i.sent(),t=new dr,[2,(this.cs.ws((function(){return function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s,u,c;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,So(e,t,!0)];case 1:return i=r.sent(),o=new va(t,i.Fc),a=o.wh(i.documents),s=o.yr(a,!1),n.resolve(s.snapshot),[3,3];case 2:return u=r.sent(),c=Ir(u,"Failed to execute query '"+t+" against cache"),n.reject(c),[3,3];case 3:return[2]}}
2))}))}(n.ju,e,t)})),t.promise)]}}))}))},e.prototype.K_=function(e,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,(function(){var n,i=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.L_(),[4,this.O_.promise];case 1:return r.sent(),n=new dr,[2,(this.cs.ws((function(){return function(e,t,n,r,i){var o=new fs({next:function(n){t.ws((function(){return jr(e,a)})),n.fromCache&&"server"===r.source?i.reject(new f(l.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),a=new Mr(n,o,{includeMetadataChanges:!0,Xs:!0});return Nr(e,a)}(i.q_,i.cs,e,t,n)})),n.promise)]}}))}))},e.prototype.write=function(e){var t=this;this.L_();var n=new dr;return this.cs.ws((function(){return function(e,t,n){return r.__awaiter(this,void 0,void 0,(function(){var i,o,a,s;return r.__generator(this,(function(r){switch(r.label){case 0:i=Ka(e),r.label=1;case 1:return r.trys.push([1,5,,6]),[4,function(e,t){var n,r=w(e),i=se.now(),o=t.reduce((function(e,t){return e.add(t.key)}),De());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(e){return r.Cc.kr(e,o).next((function(o){n=o;for(var a=[],s=0,u=t;s<u.length;s++){var c=u[s],l=vn(c,n.get(c.key));null!=l&&a.push(new bn(c.key,l,xn(l.proto.mapValue),ln.exists(!0)))}return r.Sr.ko(e,i,a,t)}))})).then((function(e){var t=e.lr(n);return{batchId:e.batchId,wr:t}}))}(i.ju,t)];case 2:return o=r.sent(),i.Sh.xi(o.batchId),function(e,t,n){var r=e.Oh[e.currentUser.ti()];r||(r=new Se(Y)),r=r.ot(t,n),e.Oh[e.currentUser.ti()]=r}(i,o.batchId,n),[4,Ra(i,o.wr)];case 3:return r.sent(),[4,ra(i.ph)];case 4:return r.sent(),[3,6];case 5:return a=r.sent(),s=Ir(a,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}}
2))}))}(t.fi,e,n)})),n.promise},e.prototype.U=function(){return this.bl.U},e.prototype.G_=function(e){var t=this;this.L_();var n=new fs(e);return this.cs.ws((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,function(e,t){w(e).qs.add(t),t.next()}(this.q_,n)]}))}))})),function(){n.Zl(),t.cs.ws((function(){return r.__awaiter(t,void 0,void 0,(function(){return r.__generator(this,(function(e){return[2,function(e,t){w(e).qs.delete(t)}(this.q_,n)]}))}))}))}},Object.defineProperty(e.prototype,"z_",{get:function(){return this.cs.ps},enumerable:!1,configurable:!0}),e.prototype.transaction=function(e){var t=this;this.L_();var n=new dr;return this.cs.ws((function(){return new Ws(t.cs,t.Ku,e,n).run(),Promise.resolve()})),n.promise},e}();function Ks(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=["next","error","complete"];r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(e)}var Gs=function(){function e(e,t,n,r,i){this.U=e,this.timestampsInSnapshots=t,this.H_=n,this.Y_=r,this.J_=i}return e.prototype.X_=function(e){switch(Ze(e)){case 0:return null;case 1:return e.booleanValue;case 2:return at(e.integerValue||e.doubleValue);case 3:return this.Z_(e.timestampValue);case 4:return this.tf(e);case 5:return e.stringValue;case 6:return this.J_(st(e.bytesValue));case 7:return this.ef(e.referenceValue);case 8:return this.nf(e.geoPointValue);case 9:return this.sf(e.arrayValue);case 10:return this.if(e.mapValue);default:throw y()}},e.prototype.if=function(e){var t=this,n={};return E(e.fields||{},(function(e,r){n[e]=t.X_(r)})),n},e.prototype.nf=function(e){return new Es(at(e.latitude),at(e.longitude))},e.prototype.sf=function(e){var t=this;return(e.values||[]).map((function(e){return t.X_(e)}))},e.prototype.tf=function(e){switch(this.H_){case"previous":var t=function e(t){var n=t.mapValue.fields.__previous_value__;return Ye(n)?e(n):n}(e);return null==t?null:this.X_(t);case"estimate":return this.Z_(Xe(e));default:return null}},e.prototype.Z_=function(e){var t=ot(e),n=new se(t.seconds,t.nanos);return this.timestampsInSnapshots?n:n.toDate()},e.prototype.ef=function(e){var t=T.g(e);b(Gt(t));var n=new oe(t.get(1),t.get(3)),r=new x(t.u(5));return n.isEqual(this.U)||v("Document "+r+" contains a document reference within a different database ("+n.projectId+"/"+n.database+") which is not supported. It will be treated as a reference in the current database ("+this.U.projectId+"/"+this.U.database+") instead."),this.Y_(r)},e}(),$s=ai.ho,Qs=function(){function e(e){var t,n,r,i,o;if(void 0===e.host){if(void 0!==e.ssl)throw new f(l.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else D("settings","non-empty string","host",e.host),this.host=e.host,L("settings","boolean","ssl",e.ssl),this.ssl=null===(t=e.ssl)||void 0===t||t;if(q("settings",e,["host","ssl","credentials","timestampsInSnapshots","cacheSizeBytes","experimentalForceLongPolling","experimentalAutoDetectLongPolling","ignoreUndefinedProperties"]),L("settings","object","credentials",e.credentials),this.credentials=e.credentials,L("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),L("settings","boolean","ignoreUndefinedProperties",e.ignoreUndefinedProperties),!0===e.timestampsInSnapshots?v("The setting 'timestampsInSnapshots: true' is no longer required and should be removed."):!1===e.timestampsInSnapshots&&v("Support for 'timestampsInSnapshots: false' will be removed soon. You must update your code to handle Timestamp objects."),this.timestampsInSnapshots=null===(n=e.timestampsInSnapshots)||void 0===n||n,this.ignoreUndefinedProperties=null!==(r=e.ignoreUndefinedProperties)&&void 0!==r&&r,L("settings","number","cacheSizeBytes",e.cacheSizeBytes),void 0===e.cacheSizeBytes)this.cacheSizeBytes=ai._o;else{if(e.cacheSizeBytes!==$s&&e.cacheSizeBytes<ai.lo)throw new f(l.INVALID_ARGUMENT,"cacheSizeBytes must be at least "+ai.lo);this.cacheSizeBytes=e.cacheSizeBytes}L("settings","boolean","experimentalForceLongPolling",e.experimentalForceLongPolling),this.experimentalForceLongPolling=null!==(i=e.experimentalForceLongPolling)&&void 0!==i&&i,L("settings","boolean","experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalAutoDetectLongPolling=null!==(o=e.experimentalAutoDetectLongPolling)&&void 0!==o&&o,function(e,t,n,r){if(!0===t&&!0===r)throw new f(l.INVALID_ARGUMENT,"experimentalForceLongPolling and experimentalAutoDetectLongPolling cannot be used together.")}(0,e.experimentalForceLongPolling,0,e.experimentalAutoDetectLongPolling)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties},e}(),Ys=function(){function e(t,n,i,o){var a=this;if(void 0===i&&(i=new us),void 0===o&&(o=new ls),this.rf=i,this.af=o,this.cf=null,this.uf=new xr,this.INTERNAL={delete:function(){return r.__awaiter(a,void 0,void 0,(function(){return r.__generator(this,(function(e){switch(e.label){case 0:return this.hf(),[4,this.lf.terminate()];case 1:return e.sent(),[2]}}))}))}},"object"==typeof t.options){var s=t;this.cf=s,this.__=e._f(s),this.ff=s.name,this.df=new No(n)}else{var u=t;if(!u.projectId)throw new f(l.INVALID_ARGUMENT,"Must provide projectId");this.__=new oe(u.projectId,u.database),this.ff="[DEFAULT]",this.df=new Ao}this.wf=new Qs({})}return Object.defineProperty(e.prototype,"mf",{get:function(){return this.Tf||(this.Tf=new Ps(this.__,this.wf.ignoreUndefinedProperties)),this.Tf}
2,enumerable:!1,configurable:!0}),e.prototype.settings=function(e){P("Firestore.settings",arguments,1),j("Firestore.settings","object",1,e),e.merge&&delete(e=Object.assign(Object.assign({},this.wf),e)).merge;var t=new Qs(e);if(this.lf&&!this.wf.isEqual(t))throw new f(l.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this.wf=t,void 0!==t.credentials&&(this.df=function(e){if(!e)return new Ao;switch(e.type){case"gapi":var t=e.client;return b(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new Ro(t,e.sessionIndex||"0");case"provider":return e.client;default:throw new f(l.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},e.prototype.enableNetwork=function(){return this.hf(),this.lf.enableNetwork()},e.prototype.disableNetwork=function(){return this.hf(),this.lf.disableNetwork()},e.prototype.enablePersistence=function(e){var t,n;if(this.lf)throw new f(l.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");var r=!1,i=!1;if(e&&(void 0!==e.experimentalTabSynchronization&&v("The 'experimentalTabSynchronization' setting will be removed. Use 'synchronizeTabs' instead."),r=null!==(n=null!==(t=e.synchronizeTabs)&&void 0!==t?t:e.experimentalTabSynchronization)&&void 0!==n&&n,i=!!e.experimentalForceOwningTab&&e.experimentalForceOwningTab,r&&i))throw new f(l.INVALID_ARGUMENT,"The 'experimentalForceOwningTab' setting cannot be used with 'synchronizeTabs'.");return this.Ef(this.rf,this.af,{jl:!0,cacheSizeBytes:this.wf.cacheSizeBytes,synchronizeTabs:r,ka:i})},e.prototype.clearPersistence=function(){return r.__awaiter(this,void 0,void 0,(function(){var e,t=this;return r.__generator(this,(function(n){if(void 0!==this.lf&&!this.lf.z_)throw new f(l.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");return e=new dr,[2,(this.uf.bs((function(){return r.__awaiter(t,void 0,void 0,(function(){var t;return r.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.rf.clearPersistence(this.__,this.ff)];case 1:return n.sent(),e.resolve(),[3,3];case 2:return t=n.sent(),e.reject(t),[3,3];case 3:return[2]}}
2))}))})),e.promise)]}))}))},e.prototype.terminate=function(){return this.app._removeServiceInstance("firestore"),this.INTERNAL.delete()},Object.defineProperty(e.prototype,"If",{get:function(){return this.hf(),this.lf.z_},enumerable:!1,configurable:!0}),e.prototype.waitForPendingWrites=function(){return this.hf(),this.lf.waitForPendingWrites()},e.prototype.onSnapshotsInSync=function(e){if(this.hf(),Ks(e))return this.lf.G_(e);j("Firestore.onSnapshotsInSync","function",1,e);var t={next:e};return this.lf.G_(t)},e.prototype.hf=function(){return this.lf||this.Ef(new us,new ls,{jl:!1}),this.lf},e.prototype.Af=function(){return new ie(this.__,this.ff,this.wf.host,this.wf.ssl,this.wf.experimentalForceLongPolling,this.wf.experimentalAutoDetectLongPolling)},e.prototype.Ef=function(e,t,n){var r=this.Af();return this.lf=new Hs(this.df,this.uf),this.lf.start(r,e,t,n)},e._f=function(e){if(t=e.options,!Object.prototype.hasOwnProperty.call(t,"projectId"))throw new f(l.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');var t,n=e.options.projectId;if(!n||"string"!=typeof n)throw new f(l.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new oe(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.cf)throw new f(l.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.cf},enumerable:!1,configurable:!0}),e.prototype.collection=function(e){return P("Firestore.collection",arguments,1),j("Firestore.collection","non-empty string",1,e),this.hf(),new fu(T.g(e),this,null)},e.prototype.doc=function(e){return P("Firestore.doc",arguments,1),j("Firestore.doc","non-empty string",1,e),this.hf(),Zs.Rf(T.g(e),this,null)},e.prototype.collectionGroup=function(e){if(P("Firestore.collectionGroup",arguments,1),j("Firestore.collectionGroup","non-empty string",1,e),e.indexOf("/")>=0)throw new f(l.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function Firestore.collectionGroup(). Collection IDs must not contain '/'.");return this.hf(),new cu(function(e){return new jn(T.P(),e)}(e),this,null)},e.prototype.runTransaction=function(e){var t=this;return P("Firestore.runTransaction",arguments,1),j("Firestore.runTransaction","function",1,e),this.hf().transaction((function(n){return e(new Xs(t,n))}
2))},e.prototype.batch=function(){return this.hf(),new Js(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(d()){case o.LogLevel.DEBUG:return"debug";case o.LogLevel.ERROR:return"error";case o.LogLevel.SILENT:return"silent";case o.LogLevel.WARN:return"warn";case o.LogLevel.INFO:return"info";case o.LogLevel.VERBOSE:return"verbose";default:return"error"}},enumerable:!1,configurable:!0}),e.setLogLevel=function(e){var t;P("Firestore.setLogLevel",arguments,1),F("setLogLevel",["debug","error","silent","warn","info","verbose"],1,e),t=e,h.setLogLevel(t)},e.prototype.gf=function(){return this.wf.timestampsInSnapshots},e.prototype.Pf=function(){return this.wf},e}(),Xs=function(){function e(e,t){this.yf=e,this.Vf=t}return e.prototype.get=function(e){var t=this;P("Transaction.get",arguments,1);var n=vu("Transaction.get",e,this.yf);return this.Vf.v_([n.f_]).then((function(e){if(!e||1!==e.length)return y();var r=e[0];if(r instanceof An)return new tu(t.yf,n.f_,null,!1,!1,n.d_);if(r instanceof Pn)return new tu(t.yf,n.f_,r,!1,!1,n.d_);throw y()}))},e.prototype.set=function(e,t,n){N("Transaction.set",arguments,2,3);var r=vu("Transaction.set",e,this.yf);n=hu("Transaction.set",n);var i=gu(r.d_,t,n),o=As(this.yf.mf,"Transaction.set",r.f_,i,null!==r.d_,n);return this.Vf.set(r.f_,o),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof t||t instanceof ds?(A("Transaction.update",arguments,3),r=vu("Transaction.update",e,this.yf),i=js(this.yf.mf,"Transaction.update",r.f_,t,n,o)):(P("Transaction.update",arguments,2),r=vu("Transaction.update",e,this.yf),i=Ns(this.yf.mf,"Transaction.update",r.f_,t)),this.Vf.update(r.f_,i),this},e.prototype.delete=function(e){P("Transaction.delete",arguments,1);var t=vu("Transaction.delete",e,this.yf);return this.Vf.delete(t.f_),this},e}(),Js=function(){function e(e){this.yf=e,this.pf=[],this.bf=!1}return e.prototype.set=function(e,t,n){N("WriteBatch.set",arguments,2,3),this.vf();var r=vu("WriteBatch.set",e,this.yf);n=hu("WriteBatch.set",n);var i=gu(r.d_,t,n),o=As(this.yf.mf,"WriteBatch.set",r.f_,i,null!==r.d_,n);return this.pf=this.pf.concat(o.w_(r.f_,ln.ze())),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.vf(),"string"==typeof t||t instanceof ds?(A("WriteBatch.update",arguments,3),r=vu("WriteBatch.update",e,this.yf),i=js(this.yf.mf,"WriteBatch.update",r.f_,t,n,o)):(P("WriteBatch.update",arguments,2),r=vu("WriteBatch.update",e,this.yf),i=Ns(this.yf.mf,"WriteBatch.update",r.f_,t)),this.pf=this.pf.concat(i.w_(r.f_,ln.exists(!0))),this},e.prototype.delete=function(e){P("WriteBatch.delete",arguments,1),this.vf();var t=vu("WriteBatch.delete",e,this.yf);return this.pf=this.pf.concat(new kn(t.f_,ln.ze())),this},e.prototype.commit=function(){return this.vf(),this.bf=!0,this.pf.length>0?this.yf.hf().write(this.pf):Promise.resolve()},e.prototype.vf=function(){if(this.bf)throw new f(l.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),Zs=function(e){function t(t,n,r){var i=this;return(i=e.call(this,n.__,t,r)||this).f_=t,i.firestore=n,i.d_=r,i.lf=i.firestore.hf(),i}return r.__extends(t,e),t.Rf=function(e,n,r){if(e.length%2!=0)throw new f(l.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.R()+" has "+e.length);return new t(new x(e),n,r)},Object.defineProperty(t.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new fu(this.f_.path.h(),this.firestore,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.f_.path.R()},enumerable:!1,configurable:!0}),t.prototype.collection=function(e){if(P("DocumentReference.collection",arguments,1),j("DocumentReference.collection","non-empty string",1,e),!e)throw new f(l.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=T.g(e);
2return new fu(this.f_.path.child(t),this.firestore,null)},t.prototype.isEqual=function(e){if(!(e instanceof t))throw W("isEqual","DocumentReference",1,e);return this.firestore===e.firestore&&this.f_.isEqual(e.f_)&&this.d_===e.d_},t.prototype.set=function(e,t){N("DocumentReference.set",arguments,1,2),t=hu("DocumentReference.set",t);var n=gu(this.d_,e,t),r=As(this.firestore.mf,"DocumentReference.set",this.f_,n,null!==this.d_,t);return this.lf.write(r.w_(this.f_,ln.ze()))},t.prototype.update=function(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof e||e instanceof ds?(A("DocumentReference.update",arguments,2),n=js(this.firestore.mf,"DocumentReference.update",this.f_,e,t,r)):(P("DocumentReference.update",arguments,1),n=Ns(this.firestore.mf,"DocumentReference.update",this.f_,e)),this.lf.write(n.w_(this.f_,ln.exists(!0)))},t.prototype.delete=function(){return P("DocumentReference.delete",arguments,0),this.lf.write([new kn(this.f_,ln.ze())])},t.prototype.onSnapshot=function(){for(var e,t,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];N("DocumentReference.onSnapshot",arguments,1,4);var a={includeMetadataChanges:!1},s=0;"object"!=typeof i[s]||Ks(i[s])||(q("DocumentReference.onSnapshot",a=i[s],["includeMetadataChanges"]),L("DocumentReference.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++);var u={includeMetadataChanges:a.includeMetadataChanges};if(Ks(i[s])){var c=i[s];i[s]=null===(e=c.next)||void 0===e?void 0:e.bind(c),i[s+1]=null===(t=c.error)||void 0===t?void 0:t.bind(c),i[s+2]=null===(n=c.complete)||void 0===n?void 0:n.bind(c)}else j("DocumentReference.onSnapshot","function",s,i[s]),R("DocumentReference.onSnapshot","function",s+1,i[s+1]),R("DocumentReference.onSnapshot","function",s+2,i[s+2]);var l={next:function(e){i[s]&&i[s](r.Sf(e))},error:i[s+1],complete:i[s+2]};return this.lf.listen(Dn(this.f_.path),u,l)},t.prototype.get=function(e){var t=this;N("DocumentReference.get",arguments,0,1),pu("DocumentReference.get",e);var n=this.firestore.hf();return e&&"cache"===e.source?n.Q_(this.f_).then((function(e){return new tu(t.firestore,t.f_,e,!0,e instanceof Pn&&e.Je,t.d_)})):n.W_(this.f_,e).then((function(e){return t.Sf(e)}))},t.prototype.withConverter=function(e){return new t(this.f_,this.firestore,e)},t.prototype.Sf=function(e){var t=e.docs.get(this.f_);return new tu(this.firestore,this.f_,t,e.fromCache,e.hasPendingWrites,this.d_)},t}(Ts),eu=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),tu=function(){function e(e,t,n,r,i,o){this.yf=e,this.f_=t,this.Df=n,this.Cf=r,this.Nf=i,this.d_=o}return e.prototype.data=function(e){var t=this;if(N("DocumentSnapshot.data",arguments,0,1),e=du("DocumentSnapshot.data",e),this.Df){if(this.d_){var n=new nu(this.yf,this.f_,this.Df,this.Cf,this.Nf,null);return this.d_.fromFirestore(n,e)}return new Gs(this.yf.__,this.yf.gf(),e.serverTimestamps||"none",(function(e){return new Zs(e,t.yf,null)}),(function(e){return new re(e)})).X_(this.Df.rn())}},e.prototype.get=function(e,t){var n=this;if(N("DocumentSnapshot.get",arguments,1,2),t=du("DocumentSnapshot.get",t),this.Df){var r=this.Df.data().field(zs("DocumentSnapshot.get",e,this.f_));if(null!==r)return new Gs(this.yf.__,this.yf.gf(),t.serverTimestamps||"none",(function(e){return new Zs(e,n.yf,n.d_)}),(function(e){return new re(e)})).X_(r)}},Object.defineProperty(e.prototype,"id",{get:function(){return this.f_.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Zs(this.f_,this.yf,this.d_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this.Df},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new eu(this.Nf,this.Cf)},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw W("isEqual","DocumentSnapshot",1,t);return this.yf===t.yf&&this.Cf===t.Cf&&this.f_.isEqual(t.f_)&&(null===this.Df?null===t.Df:this.Df.isEqual(t.Df))&&this.d_===t.d_},e}(),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.data=function(t){return e.prototype.data.call(this,t)},t}(tu);function ru(e,t,n,r,i,o,a){var s;if(i.p()){if("array-contains"===o||"array-contains-any"===o)throw new f(l.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){au(a,o);for(var u=[],c=0,h=a;c<h.length;c++){var d=h[c];u.push(ou(r,e,d))}s={arrayValue:{values:u}}}else s=ou(r,e,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||au(a,o),s=Rs(n,t,a,"in"===o||"not-in"===o);var p=Xn.create(i,o,s);return function(e,t){if(t.hn()){var n=zn(e);if(null!==n&&!n.isEqual(t.field))throw new f(l.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+t.field.toString()+"'");var r=Fn(e);null!==r&&su(e,t.field,r)}var i=function(e,t){for(var n=0,r=e.filters;n<r.length;n++){var i=r[n];if(t.indexOf(i.op)>=0)return i.op}return null}(e,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","
2not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==i)throw i===t.op?new f(l.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter."):new f(l.INVALID_ARGUMENT,"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+i.toString()+"' filters.")}(e,p),p}function iu(e,t,n){if(null!==e.startAt)throw new f(l.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new f(l.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new lr(t,n);return function(e,t){if(null===Fn(e)){var n=zn(e);null!==n&&su(e,n,t.field)}}(e,r),r}function ou(e,t,n){if("string"==typeof n){if(""===n)throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Un(t)&&-1!==n.indexOf("/"))throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var r=t.path.child(T.g(n));if(!x.F(r))throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+r+"' is not because it has an odd number of segments ("+r.length+").");return ut(e,new x(r))}if(n instanceof Ts)return ut(e,n.f_);throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+V(n)+".")}function au(e,t){if(!Array.isArray(e)||0===e.length)throw new f(l.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new f(l.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.");if("in"===t||"array-contains-any"===t){if(e.indexOf(null)>=0)throw new f(l.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'null' in the value array.");if(e.filter((function(e){return Number.isNaN(e)})).length>0)throw new f(l.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters cannot contain 'NaN' in the value array.")}}function su(e,t,n){if(!n.isEqual(t))throw new f(l.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}function uu(e){if(Mn(e)&&0===e.on.length)throw new f(l.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var cu=function(){function e(e,t,n){this.Ff=e,this.firestore=t,this.d_=n}return e.prototype.where=function(t,n,r){P("Query.where",arguments,3),B("Query.where",3,r);var i=F("Query.where",["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],2,n),o=zs("Query.where",t),a=ru(this.Ff,"Query.where",this.firestore.mf,this.firestore.__,o,i,r);return new e(function(e,t){var n=e.filters.concat([t]);return new jn(e.path,e.collectionGroup,e.on.slice(),n,e.limit,e.an,e.startAt,e.endAt)}(this.Ff,a),this.firestore,this.d_)},e.prototype.orderBy=function(t,n){var r;if(N("Query.orderBy",arguments,1,2),R("Query.orderBy","non-empty string",2,n),void 0===n||"asc"===n)r="asc";else{if("desc"!==n)throw new f(l.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r="desc"}var i=zs("Query.orderBy",t),o=iu(this.Ff,i,r);return new e(function(e,t){var n=e.on.concat([t]);return new jn(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.an,e.startAt,e.endAt)}(this.Ff,o),this.firestore,this.d_)},e.prototype.limit=function(t){return P("Query.limit",arguments,1),j("Query.limit","number",1,t),H("Query.limit",1,t),new e(qn(this.Ff,t,"F"),this.firestore,this.d_)},e.prototype.limitToLast=function(t){return P("Query.limitToLast",arguments,1
2),j("Query.limitToLast","number",1,t),H("Query.limitToLast",1,t),new e(qn(this.Ff,t,"L"),this.firestore,this.d_)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];A("Query.startAt",arguments,1);var i=this.xf("Query.startAt",t,n,!0);return new e(Wn(this.Ff,i),this.firestore,this.d_)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];A("Query.startAfter",arguments,1);var i=this.xf("Query.startAfter",t,n,!1);return new e(Wn(this.Ff,i),this.firestore,this.d_)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];A("Query.endBefore",arguments,1);var i=this.xf("Query.endBefore",t,n,!0);return new e(Hn(this.Ff,i),this.firestore,this.d_)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];A("Query.endAt",arguments,1);var i=this.xf("Query.endAt",t,n,!1);return new e(Hn(this.Ff,i),this.firestore,this.d_)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw W("isEqual","Query",1,t);return this.firestore===t.firestore&&Kn(this.Ff,t.Ff)&&this.d_===t.d_},e.prototype.withConverter=function(t){return new e(this.Ff,this.firestore,t)},e.prototype.xf=function(e,t,n,i){if(B(e,1,t),t instanceof tu)return P(e,r.__spreadArrays([t],n),1),function(e,t,n,r,i){if(!r)throw new f(l.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=Vn(e);a<s.length;a++){var u=s[a];if(u.field.p())o.push(ut(t,r.key));else{var c=r.field(u.field);if(Ye(c))throw new f(l.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var h=u.field.R();throw new f(l.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+h+"' (used as the orderBy) does not exist.")}o.push(c)}}return new ar(o,i)}(this.Ff,this.firestore.__,e,t.Df,i);var o=[t].concat(n);return function(e,t,n,r,i,o){var a=e.on;if(i.length>a.length)throw new f(l.INVALID_ARGUMENT,"Too many arguments provided to "+r+"(). The number of arguments must be less than or equal to the number of orderBy() clauses");for(var s=[],u=0;u<i.length;u++){var c=i[u];if(a[u].field.p()){if("string"!=typeof c)throw new f(l.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!Un(e)&&-1!==c.indexOf("/"))throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var h=e.path.child(T.g(c));if(!x.F(h))throw new f(l.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+h+"' is not because it contains an odd number of segments.");var d=new x(h);s.push(ut(t,d))}else{var p=Rs(n,r,c);s.push(p)}}return new ar(s,o)}(this.Ff,this.firestore.__,this.firestore.mf,e,o,i)},e.prototype.onSnapshot=function(){for(var e,t,n,r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];N("Query.onSnapshot",arguments,1,4);var a={},s=0;if("object"!=typeof i[s]||Ks(i[s])||(q("Query.onSnapshot",a=i[s],["includeMetadataChanges"]),L("Query.onSnapshot","boolean","includeMetadataChanges",a.includeMetadataChanges),s++),Ks(i[s])){var u=i[s];i[s]=null===(e=u.next)||void 0===e?void 0:e.bind(u),i[s+1]=null===(t=u.error)||void 0===t?void 0:t.bind(u),i[s+2]=null===(n=u.complete)||void 0===n?void 0:n.bind(u)}else j("Query.onSnapshot","function",s,i[s]),R("Query.onSnapshot","function",s+1,i[s+1]),R("Query.onSnapshot","function",s+2,i[s+2]);var c={next:function(e){i[s]&&i[s](new lu(r.firestore,r.Ff,e,r.d_))},error:i[s+1],complete:i[s+2]};return uu(this.Ff),this.firestore.hf().listen(this.Ff,a,c)},e.prototype.get=function(e){var t=this;N("Query.get",arguments,0,1),pu("Query.get",e),uu(this.Ff);var n=this.firestore.hf();return(e&&"cache"===e.source?n.j_(this.Ff):n.K_(this.Ff,e)).then((function(e){return new lu(t.firestore,t.Ff,e,t.d_)}))},e}(),lu=function(){function e(e,t,n,r){this.yf=e,this.$f=t,this.kf=n,this.d_=r,this.Mf=null,this.Of=null,this.metadata=new eu(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this.kf.docs.m()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.kf.docs.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;N("QuerySnapshot.forEach",arguments,1,2),j("QuerySnapshot.forEach","function",1,e),this.kf.docs.forEach((function(r){e.call(t,n.Lf(r,n.metadata.fromCache,n.kf.Wt.has(r.key)))}))},Object.defineProperty(e.prototype,"query",{get:function(){return new cu(this.$f,this.yf,this.d_)},enumerable:!1,configurable:!0}),e.prototype.docChanges=function(e){e&&(q("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),L("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges));var t=!(!e||!e.includeMetadataChanges);if(t&&this.kf.Kt)throw new f(l.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this.Mf&&this.Of===t||(this.Mf=function(e,t,n){if(e.Qt.m()){var r=0;return e.docChanges.map((function(t){var i=n(t.doc,e.fromCache,e.Wt.has(t.doc.key));return t.doc,{type:"added",doc:i,oldIndex:-1,newIndex:r++}}))}var i=e.Qt;return e.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var r=n(t.doc,e.fromCache,e.Wt.has(t.doc.key)),o=-1,a=-1;return 0!==t.type&&(o=i.indexOf(t.doc.key),i=i.delete(t.doc.key)),1!==t.type&&(a=(i=i.add(t.doc)).indexOf(t.doc.key)),{type:mu(t.type),doc:r,oldIndex:o,newIndex:a}}))}(this.kf,t,this.Lf.bind(this)),this.Of=t),this.Mf},e.prototype.isEqual=function(t){if(!(t instanceof e))throw W("isEqual","QuerySnapshot",1,t);return this.yf===t.yf&&Kn(this.$f,t.$f)&&this.kf.isEqual(t.kf)&&this.d_===t.d_},e.prototype.Lf=function(e,t,n){return new nu(this.yf,e.key,e,t,n,this.d_)},e}(),fu=function(e){function t(t,n,r){var i=this;if((i=e.call(this,Dn(t),n,r)||this).Bf=t,t.length%2!=1)throw new f(l.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.R()+" has "+t.length);return i}return r.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.Ff.path._()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this.Ff.path.h();return e.m()?null:new Zs(new x(e),this.firestore,null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.Ff.path.R()},enumerable:!1,configurable:!0}),t.prototype.doc=function(e){N("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=Q.k()),j("CollectionReference.doc","non-empty string",1,e);var t=T.g(e);return Zs.Rf(this.Ff.path.child(t),this.firestore,this.d_)},t.prototype.add=function(e){P("CollectionReference.add",arguments,1);var t=this.d_?this.d_.toFirestore(e):e;j("CollectionReference.add","object",1,t);var n=this.doc();return new Zs(n.f_,this.firestore,null).set(t).then((function(){return n}))},t.prototype.withConverter=function(e){return new t(this.Bf,this.firestore,e)},t}(cu);function hu(e,t){if(void 0===t)return{merge:!1};if(q(e,t,["merge","mergeFields"]),L(e,"boolean","merge",t.merge),function(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){if(!(r instanceof Array))throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+V(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new f(l.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be a string or a FieldPath, but the value at index "+o+" was: "+V(r[o]))}(e,"mergeFields",0,r,(function(e){return"string"==typeof e||e instanceof ds}))}(e,0,0,t.mergeFields),void 0!==t.mergeFields&&void 0!==t.merge)throw new f(l.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function du(e,t){return void 0===t?{}:(q(e,t,["serverTimestamps"]),M(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function pu(e,t){R(e,"object",1,t),t&&(q(e,t,["source"]),M(e,0,"source",t.source,["default","server","cache"]))}function vu(e,t,n){if(t instanceof Ts){if(t.firestore!==n)throw new f(l.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw W(e,"DocumentReference",1,t)}function mu(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return y()}}function gu(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var yu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.serverTimestamp=function(){I("FieldValue.serverTimestamp",arguments);var e=new ys("serverTimestamp");return e.e_="FieldValue.serverTimestamp",new t(e)},t.delete=function(){I("FieldValue.delete",arguments);var e=new ms("deleteField");return e.e_="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];
2A("FieldValue.arrayUnion",arguments,1);var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A("arrayUnion()",arguments,1),new bs("arrayUnion",e)}.apply(void 0,e);return r.e_="FieldValue.arrayUnion",new t(r)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];A("FieldValue.arrayRemove",arguments,1);var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return A("arrayRemove()",arguments,1),new ws("arrayRemove",e)}.apply(void 0,e);return r.e_="FieldValue.arrayRemove",new t(r)},t.increment=function(e){j("FieldValue.increment","number",1,e),P("FieldValue.increment",arguments,1);var n=function(e){return new _s("increment",e)}(e);return n.e_="FieldValue.increment",new t(n)},t.prototype.isEqual=function(e){return this.l_.isEqual(e.l_)},t}(Ss),bu={Firestore:Ys,GeoPoint:Es,Timestamp:se,Blob:re,Transaction:Xs,WriteBatch:Js,DocumentReference:Zs,DocumentSnapshot:tu,Query:cu,QueryDocumentSnapshot:nu,QuerySnapshot:lu,CollectionReference:fu,FieldPath:ds,FieldValue:yu,setLogLevel:Ys.setLogLevel,CACHE_SIZE_UNLIMITED:$s};function wu(e){!function(e,t){e.INTERNAL.registerComponent(new u.Component("firestore",(function(e){return function(e,t){var n=new ls,r=new cs(n);return new Ys(e,t,r,n)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},bu)))}(e),e.registerVersion("@firebase/firestore","1.18.0")}wu(c.default),t.__PRIVATE_registerFirestore=wu}).call(this,n(39))},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"ErrorCode",(function(){return er})),n.d(t,"EventType",(function(){return tr})),n.d(t,"WebChannel",(function(){return nr})),n.d(t,"XhrIo",(function(){return rr})),n.d(t,"createWebChannelTransport",(function(){return Zn}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var o,a="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{},s=s||{},u=a||self;function c(){}function l(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"}function f(e){var t=l(e);return"array"==t||"object"==t&&"number"==typeof e.length}function h(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var d="closure_uid_"+(1e9*Math.random()>>>0),p=0;function v(e,t,n){return e.call.apply(e.bind,arguments)}function m(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function g(e,t,n){return(g=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:m).apply(null,arguments)}function y(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var b=Date.now;function w(e,t){function n(){}n.prototype=t.prototype,e.S=t.prototype,e.prototype=new n,e.prototype.constructor=e}function _(){this.j=this.j,this.i=this.i}_.prototype.j=!1,_.prototype.ja=function(){if(!this.j&&(this.j=!0,this.G(),0))(function(e){Object.prototype.hasOwnProperty.call(e,d)&&e[d]||(e[d]=++p)})(this)},_.prototype.G=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var E=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},S=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i="string"===typeof e?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};function k(e){return Array.prototype.concat.apply([],arguments)}function T(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function C(e){return/^[\s\xa0]*$/.test(e)}var O,x=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function I(e,t){return-1!=e.indexOf(t)}function P(e,t){return e<t?-1:e>t?1:0}e:{var A=u.navigator;if(A){var N=A.userAgent;if(N){O=N;break e}}O=""}function j(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function R(e){var t={};for(var n in e)t[n]=e[n];return t}var D="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
2ing toString valueOf".split(" ");function L(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<D.length;o++)n=D[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function M(e){return M[" "](e),e}M[" "]=c;var F,z=I(O,"Opera"),U=I(O,"Trident")||I(O,"MSIE"),V=I(O,"Edge"),B=V||U,q=I(O,"Gecko")&&!(I(O.toLowerCase(),"webkit")&&!I(O,"Edge"))&&!(I(O,"Trident")||I(O,"MSIE"))&&!I(O,"Edge"),W=I(O.toLowerCase(),"webkit")&&!I(O,"Edge");function H(){var e=u.document;return e?e.documentMode:void 0}e:{var K="",G=function(){var e=O;return q?/rv:([^\);]+)(\)|;)/.exec(e):V?/Edge\/([\d\.]+)/.exec(e):U?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):W?/WebKit\/(\S+)/.exec(e):z?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(G&&(K=G?G[1]:""),U){var $=H();if(null!=$&&$>parseFloat(K)){F=String($);break e}}F=K}var Q,Y={};function X(e){return function(e,t){var n=Y;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=x(String(F)).split("."),r=x(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=P(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||P(0==a[2].length,0==s[2].length)||P(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}if(u.document&&U){var J=H();Q=J||(parseInt(F,10)||void 0)}else Q=void 0;var Z=Q,ee=!U||9<=Number(Z),te=U&&!X("9"),ne=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{u.addEventListener("test",c,t),u.removeEventListener("test",c,t)}catch(n){}return e}();function re(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}function ie(e,t){if(re.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(q){e:{try{M(t.nodeName);var i=!0;break e}catch(o){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:oe[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}re.prototype.b=function(){this.defaultPrevented=!0},w(ie,re);var oe={2:"touch",3:"pen",4:"mouse"};ie.prototype.b=function(){ie.S.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,te)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}};var ae="closure_listenable_"+(1e6*Math.random()|0),se=0;function ue(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ca=i,this.key=++se,this.Y=this.Z=!1}function ce(e){e.Y=!0,e.listener=null,e.proxy=null,e.src=null,e.ca=null}function le(e){this.src=e,this.a={},this.b=0}function fe(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],o=E(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ce(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function he(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.Y&&o.listener==t&&o.capture==!!n&&o.ca==r)return i}return-1}le.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=he(e,t,r,i);return-1<a?(t=e[a],n||(t.Z=!1)):((t=new ue(t,this.src,o,!!r,i)).Z=n,e.push(t)),t};var de="closure_lm_"+(1e6*Math.random()|0),pe={};function ve(e,t,n,r,i){if(r&&r.once)return function e(t,n,r,i,o){if(Array.isArray(n)){for(var a=0;a<n.length;a++)e(t,n[a],r,i,o);return null}return r=Se(r),t&&t[ae]?t.wa(n,r,h(i)?!!i.capture:!!i,o):me(t,n,r,!0,i,o)}(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)ve(e,t[o],n,r,i);return null}return n=Se(n),e&&e[ae]?e.va(t,n,h(r)?!!r.capture:!!r,i):me(e,t,n,!1,r,i)}function me(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=h(i)?!!i.capture:!!i;if(a&&!ee)return null;var s=_e(e);
2if(s||(e[de]=s=new le(e)),(n=s.add(t,n,r,a,o)).proxy)return n;if(r=function(){var e=we,t=ee?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ne||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(ye(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function ge(e){if("number"!==typeof e&&e&&!e.Y){var t=e.src;if(t&&t[ae])fe(t.c,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(ye(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=_e(t))?(fe(n,e),0==n.b&&(n.src=null,t[de]=null)):ce(e)}}}function ye(e){return e in pe?pe[e]:pe[e]="on"+e}function be(e,t){var n=e.listener,r=e.ca||e.src;return e.Z&&ge(e),n.call(r,t)}function we(e,t){if(e.Y)return!0;if(!ee){if(!t)e:{t=["window","event"];for(var n=u,r=0;r<t.length;r++)if(null==(n=n[t[r]])){t=null;break e}t=n}return be(e,t=new ie(t,this))}return be(e,new ie(t,this))}function _e(e){return(e=e[de])instanceof le?e:null}var Ee="__closure_events_fn_"+(1e9*Math.random()>>>0);function Se(e){return"function"==l(e)?e:(e[Ee]||(e[Ee]=function(t){return e.handleEvent(t)}),e[Ee])}function ke(){_.call(this),this.c=new le(this),this.J=this,this.C=null}function Te(e,t,n,r){if(!(t=e.c.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.Y&&a.capture==n){var s=a.listener,u=a.ca||a.src;a.Z&&fe(e.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}w(ke,_),ke.prototype[ae]=!0,(o=ke.prototype).addEventListener=function(e,t,n,r){ve(this,e,t,n,r)},o.removeEventListener=function(e,t,n,r){!function e(t,n,r,i,o){if(Array.isArray(n))for(var a=0;a<n.length;a++)e(t,n[a],r,i,o);else i=h(i)?!!i.capture:!!i,r=Se(r),t&&t[ae]?(t=t.c,(n=String(n).toString())in t.a&&(-1<(r=he(a=t.a[n],r,i,o))&&(ce(a[r]),Array.prototype.splice.call(a,r,1),0==a.length&&(delete t.a[n],t.b--)))):t&&(t=_e(t))&&(n=t.a[n.toString()],t=-1,n&&(t=he(n,r,i,o)),(r=-1<t?n[t]:null)&&ge(r))}(this,e,t,n,r)},o.dispatchEvent=function(e){var t,n=this.C;if(n)for(t=[];n;n=n.C)t.push(n);n=this.J;var r=e.type||e;if("string"===typeof e)e=new re(e,n);else if(e instanceof re)e.target=e.target||n;else{var i=e;L(e=new re(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.a=t[o];i=Te(a,r,!0,e)&&i}if(i=Te(a=e.a=n,r,!0,e)&&i,i=Te(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=Te(a=e.a=t[o],r,!1,e)&&i;return i},o.G=function(){if(ke.S.G.call(this),this.c){var e,t=this.c;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)ce(n[r]);delete t.a[e],t.b--}}this.C=null},o.va=function(e,t,n,r){return this.c.add(String(e),t,!1,n,r)},o.wa=function(e,t,n,r){return this.c.add(String(e),t,!0,n,r)};var Ce=u.JSON.stringify;function Oe(){this.b=this.a=null}var xe,Ie=new(function(){function e(e,t,n){this.f=n,this.c=e,this.g=t,this.b=0,this.a=null}return e.prototype.get=function(){var e;return 0<this.b?(this.b--,e=this.a,this.a=e.next,e.next=null):e=this.c(),e},e}())((function(){return new Ae}),(function(e){e.reset()}),100);function Pe(){var e=De,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Ae(){this.next=this.b=this.a=null}function Ne(e){u.setTimeout((function(){throw e}),0)}function je(e,t){xe||function(){var e=u.Promise.resolve(void 0);xe=function(){e.then(Le)}}(),Re||(xe(),Re=!0),De.add(e,t)}Oe.prototype.add=function(e,t){var n=Ie.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ae.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ae.prototype.reset=function(){this.next=this.b=this.a=null};var Re=!1,De=new Oe;function Le(){for(var e;e=Pe();){try{e.a.call(e.b)}catch(n){Ne(n)}var t=Ie;t.g(e),t.b<t.f&&(t.b++,e.next=t.a,t.a=e)}Re=!1}function Me(e,t){ke.call(this),this.b=e||1,this.a=t||u,this.f=g(this.Ya,this),this.g=b()}function Fe(e){e.aa=!1,e.M&&(e.a.clearTimeout(e.M),e.M=null)}function ze(e,t,n){if("function"==l(e))n&&(e=g(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=g(e.handleEvent,e)}return 2147483647<Number(t)?-1:u.setTimeout(e,t||0)}function Ue(e){e.a=ze((function(){e.a=null,e.c&&(e.c=!1,Ue(e))}),e.h);var t=e.b;e.b=null,e.g.apply(null,t)}w(Me,ke),(o=Me.prototype).aa=!1,o.M=null,o.Ya=function(){if(this.aa){var e=b()-this.g;
20<e&&e<.8*this.b?this.M=this.a.setTimeout(this.f,this.b-e):(this.M&&(this.a.clearTimeout(this.M),this.M=null),this.dispatchEvent("tick"),this.aa&&(Fe(this),this.start()))}},o.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=b())},o.G=function(){Me.S.G.call(this),Fe(this),delete this.a};var Ve=function(e){function t(t,n,r){var i=e.call(this)||this;return i.g=null!=r?t.bind(r):t,i.h=n,i.b=null,i.c=!1,i.a=null,i}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t.prototype.f=function(e){this.b=arguments,this.a?this.c=!0:Ue(this)},t.prototype.G=function(){e.prototype.G.call(this),this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},t}(_);function Be(e){_.call(this),this.b=e,this.a={}}w(Be,_);var qe=[];function We(e,t,n,r){Array.isArray(n)||(n&&(qe[0]=n.toString()),n=qe);for(var i=0;i<n.length;i++){var o=ve(t,n[i],r||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function He(e){j(e.a,
2(function(e,t){this.a.hasOwnProperty(t)&&ge(e)}),e),e.a={}}function Ke(){this.a=!0}function Ge(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.a)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var o=i[0];if("noop"!=o&&"stop"!=o&&"close"!=o)for(var a=1;a<i.length;a++)i[a]=""}}}return Ce(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}Be.prototype.G=function(){Be.S.G.call(this),He(this)},Be.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Ke.prototype.info=function(){};var $e=null;function Qe(){return $e=$e||new ke}function Ye(e){re.call(this,"serverreachability",e)}function Xe(e){var t=Qe();t.dispatchEvent(new Ye(t,e))}function Je(e){re.call(this,"statevent",e)}function Ze(e){var t=Qe();t.dispatchEvent(new Je(t,e))}function et(e){re.call(this,"timingevent",e)}function tt(e,t){if("function"!=l(e))throw Error("Fn must not be null and must be a function");return u.setTimeout((function(){e()}),t)}w(Ye,re),w(Je,re),w(et,re);var nt={NO_ERROR:0,Za:1,gb:2,fb:3,bb:4,eb:5,hb:6,Da:7,TIMEOUT:8,kb:9},rt={ab:"complete",ob:"success",Ea:"error",Da:"abort",mb:"ready",nb:"readystatechange",TIMEOUT:"timeout",ib:"incrementaldata",lb:"progress",cb:"downloadprogress",pb:"uploadprogress"};function it(){}function ot(e){var t;return(t=e.a)||(t=e.a={}),t}function at(){}it.prototype.a=null;var st,ut={OPEN:"a",$a:"b",Ea:"c",jb:"d"};function ct(){re.call(this,"d")}function lt(){re.call(this,"c")}function ft(){}function ht(e,t,n,r){this.g=e,this.c=t,this.f=n,this.T=r||1,this.J=new Be(this),this.P=dt,e=B?125:void 0,this.R=new Me(e),this.B=null,this.b=!1,this.j=this.l=this.i=this.H=this.u=this.U=this.o=null,this.s=[],this.a=null,this.D=0,this.h=this.m=null,this.N=-1,this.A=!1,this.O=0,this.F=null,this.W=this.C=this.V=this.I=!1}w(ct,re),w(lt,re),w(ft,it),st=new ft;var dt=45e3,pt={},vt={};function mt(e,t,n){e.H=1,e.i=Ft(Nt(t)),e.j=n,e.I=!0,gt(e,null)}function gt(e,t){e.u=b(),wt(e),e.l=Nt(e.i);var n=e.l,r=e.T;Array.isArray(r)||(r=[String(r)]),Xt(n.b,"t",r),e.D=0,e.a=Kn(e.g,e.g.C?t:null),0<e.O&&(e.F=new Ve(g(e.Ca,e,e.a),e.O)),We(e.J,e.a,"readystatechange",e.Wa),t=e.B?R(e.B):{},e.j?(e.m||(e.m="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.a.ba(e.l,e.m,e.j,t)):(e.m="GET",e.a.ba(e.l,e.m,null,t)),Xe(1),function(e,t,n,r,i,o){e.info((function(){if(e.a)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");a=2<=f.length&&"type"==f[1]?a+(l+"=")+c+"&":a+(l+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a}))}(e.c,e.m,e.l,e.f,e.T,e.j)}function yt(e,t,n){for(var r=!0;!e.A&&e.D<n.length;){var i=bt(e,n);if(i==vt){4==t&&(e.h=4,Ze(14),r=!1),Ge(e.c,e.f,null,"[Incomplete Response]");break}if(i==pt){e.h=4,Ze(15),Ge(e.c,e.f,n,"[Invalid Chunk]"),r=!1;break}Ge(e.c,e.f,i,null),Tt(e,i)}4==t&&0==n.length&&(e.h=1,Ze(16),r=!1),e.b=e.b&&r,r?0<n.length&&!e.W&&(e.W=!0,(t=e.g).a==e&&t.V&&!t.F&&(t.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),Fn(t),t.F=!0)):(Ge(e.c,e.f,n,"[Invalid Chunked Response]"),kt(e),St(e))}function bt(e,t){var n=e.D,r=t.indexOf("\n",n);return-1==r?vt:(n=Number(t.substring(n,r)),isNaN(n)?pt:(r+=1)+n>t.length?vt:(t=t.substr(r,n),e.D=r+n,t))}function wt(e){e.U=b()+e.P,_t(e,e.P)}function _t(e,t){if(null!=e.o)throw Error("WatchDog timer not null");e.o=tt(g(e.Ua,e),t)}function Et(e){e.o&&(u.clearTimeout(e.o),e.o=null)}function St(e){0==e.g.v||e.A||Vn(e.g,e)}function kt(e){Et(e);var t=e.F;t&&"function"==typeof t.ja&&t.ja(),e.F=null,Fe(e.R),He(e.J),e.a&&(t=e.a,e.a=null,t.abort(),t.ja())}function Tt(e,t){try{var n=e.g;if(0!=n.v&&(n.a==e||on(n.b,e)))if(n.I=e.N,!e.C&&on(n.b,e)&&3==n.v){try{var r=n.ka.a.parse(t)}catch(m){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.j){if(n.a){if(!(n.a.u+3e3<e.u))break e;Un(n),In(n)}Mn(n),Ze(18)}}else n.oa=i[1],0<n.oa-n.P&&37500>i[2]&&n.H&&0==n.o&&!n.m&&(n.m=tt(g(n.Ra,n),6e3));if(1>=rn(n.b)&&n.ea){try{n.ea()}catch(m){}n.ea=void 0}}else qn(n,11)}else if((e.C||n.a==e)&&Un(n),!C(t))for(t=r=n.ka.a.parse(t),r=0;r<t.length;r++)if(i=t[r],n.P=i[0],i=i[1],2==n.v)if("c"==i[0]){n.J=i[1],n.ga=i[2];var o=i[3];null!=o&&(n.ha=o,n.c.info("VER="+n.ha));var a=i[4];null!=a&&(n.pa=a,n.c.info("SVER="+n.pa));var s=i[5];if(null!=s&&"number"===typeof s&&0<s){var u=1.5*s;n.D=u,n.c.info("backChannelRequestTimeoutMs_="+u)}u=n;var c=e.a;if(c){var l=c.a?c.a.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var f=u.b;!f.a&&(I(l,"spdy")||I(l,"quic")||I(l,"h2"))&&(f.f=f.g,f.a=new Set,f.b&&(an(f,f.b),f.b=null))}if(u.A){var h=c.a?c.a.getResponseHeader("X-HTTP-Session-Id"):null;h&&(u.na=h,Mt(u.B,u.A,h))}}n.v=3,n.f&&n.f.ta(),n.V&&(n.N=b()-e.u,n.c.info("Handshake RTT: "+n.N+"ms"));var d=e;if((u=n).la=Hn(u,u.C?u.ga:null,u.fa),d.C){sn(u.b,d);var p=d,v=u.D;v&&p.setTimeout(v),p.o&&(Et(p),wt(p)),u.a=d}else Ln(u);0<n.g.length&&Nn(n)}else"stop"!=i[0]&&"close"!=i[0]||qn(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?qn(n,7):xn(n):"noop"!=i[0]&&n.f&&n.f.sa(i),n.o=0);Xe(4)}catch(m){}}function Ct(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(f(e)||"string"===typeof e)S(e,t,void 0);else{if(e.L&&"function"==typeof e.L)var n=e.L();else if(e.K&&"function"==typeof e.K)n=void 0;else if(f(e)||"string"===typeof e){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,e)n[r++]=i;i=(r=function(e){if(e.K&&"function"==typeof e.K)return e.K();if("string"===typeof e)return e.split("");
vendor: 4,799 bytes, line 2
2if(f(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}(e)).length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function Ot(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof Ot)for(n=e.L(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function xt(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];It(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)It(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function It(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(o=ht.prototype).setTimeout=function(e){this.P=e},o.Wa=function(e){e=e.target;var t=this.F;t&&3==kn(e)?t.f():this.Ca(e)},o.Ca=function(e){try{if(e==this.a)e:{var t=kn(this.a),n=this.a.ua(),r=this.a.X();if(!(3>t||3==t&&!B&&!this.a.$())){this.A||4!=t||7==n||Xe(8==n||0>=r?3:2),Et(this);var i=this.a.X();this.N=i;var o=this.a.$();if(this.b=200==i,function(e,t,n,r,i,o,a){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a}))}(this.c,this.m,this.l,this.f,this.T,t,i),this.b){if(this.V&&!this.C){t:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(a)){var u=a;break t}}u=null}if(!u){this.b=!1,this.h=3,Ze(12),kt(this),St(this);break e}Ge(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Tt(this,u)}this.I?(yt(this,t,o),B&&this.b&&3==t&&(We(this.J,this.R,"tick",this.Va),this.R.start())):(Ge(this.c,this.f,o,null),Tt(this,o)),4==t&&kt(this),this.b&&!this.A&&(4==t?Vn(this.g,this):(this.b=!1,wt(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,Ze(12)):(this.h=0,Ze(13)),kt(this),St(this)}}}catch(c){}},o.Va=function(){if(this.a){var e=kn(this.a),t=this.a.$();this.D<t.length&&(Et(this),yt(this,e,t),this.b&&4!=e&&wt(this))}},o.cancel=function(){this.A=!0,kt(this)},o.Ua=function(){this.o=null;var e=b();0<=e-this.U?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.c,this.l),2!=this.H&&(Xe(3),Ze(17)),kt(this),this.h=2,St(this)):_t(this,this.U-e)},(o=Ot.prototype).K=function(){xt(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},o.L=function(){return xt(this),this.a.concat()},o.get=function(e,t){return It(this.b,e)?this.b[e]:t},o.set=function(e,t){It(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},o.forEach=function(e,t){for(var n=this.L(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var Pt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function At(e,t){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,e instanceof At){this.a=void 0!==t?t:e.a,jt(this,e.f),this.j=e.j,Rt(this,e.c),Dt(this,e.h),this.g=e.g,t=e.b;var n=new Gt;n.c=t.c,t.a&&(n.a=new Ot(t.a),n.b=t.b),Lt(this,n),this.i=e.i}else e&&(n=String(e).match(Pt))?(this.a=!!t,jt(this,n[1]||"",!0),this.j=zt(n[2]||""),Rt(this,n[3]||"",!0),Dt(this,n[4]),this.g=zt(n[5]||"",!0),Lt(this,n[6]||"",!0),this.i=zt(n[7]||"")):(this.a=!!t,this.b=new Gt(null,this.a))}function Nt(e){return new At(e)}function jt(e,t,n){e.f=n?zt(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Rt(e,t,n){e.c=n?zt(t,!0):t}function Dt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.h=t}else e.h=null}function Lt(e,t,n){t instanceof Gt?(e.b=t,function(e,t){t&&!e.f&&($t(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Qt(this,t),Xt(this,n,e))}),e)),e.f=t}(e.b,e.a)):(n||(t=Ut(t,Ht)),e.b=new Gt(t,e.a))}function Mt(e,t,n){e.b.set(t,n)}function Ft(e){return Mt(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^b()).toString(36)),e}function zt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Ut(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Vt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Vt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}At.prototype.toString=function(){var e=[],t=this.f;t&&e.push(Ut(t,Bt,!0),":");var n=this.c;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(Ut(t,Bt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.h)&&e.push(":",String(n))),(n=this.g)&&(this.c&&"/"!=n.charAt(0)&&e.push("/"),e.push(Ut(n,"/"==n.charAt(0)?Wt:qt,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.i)&&e.push("#",Ut(n,Kt)),e.join("")};var Bt=/[#\/\?@]/g,qt=/[#\?:]/g,Wt=/[#\?]/g,Ht=/[#\?@]/g,Kt=/#/g;function Gt(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}
2function $t(e){e.a||(e.a=new Ot,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function Qt(e,t){$t(e),t=Jt(e,t),It(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,It((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&xt(e)))}function Yt(e,t){return $t(e),t=Jt(e,t),It(e.a.b,t)}function Xt(e,t,n){Qt(e,t),0<n.length&&(e.c=null,e.a.set(Jt(e,t),T(n)),e.b+=n.length)}function Jt(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function Zt(e,t){this.b=e,this.a=t}function en(e){this.g=e||tn,u.PerformanceNavigationTiming?e=0<(e=u.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(u.ia&&u.ia.ya&&u.ia.ya()&&u.ia.ya().qb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}(o=Gt.prototype).add=function(e,t){$t(this),this.c=null,e=Jt(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},o.forEach=function(e,t){$t(this),this.a.forEach((function(n,r){S(n,(function(n){e.call(t,n,r,this)}),this)}),this)},o.L=function(){$t(this);for(var e=this.a.K(),t=this.a.L(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},o.K=function(e){$t(this);var t=[];if("string"===typeof e)Yt(this,e)&&(t=k(t,this.a.get(Jt(this,e))));else{e=this.a.K();for(var n=0;n<e.length;n++)t=k(t,e[n])}return t},o.set=function(e,t){return $t(this),this.c=null,Yt(this,e=Jt(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},o.get=function(e,t){return e&&0<(e=this.K(e)).length?String(e[0]):t},o.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.L(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.K(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var tn=10;function nn(e){return!!e.b||!!e.a&&e.a.size>=e.f}function rn(e){return e.b?1:e.a?e.a.size:0}function on(e,t){return e.b?e.b==t:!!e.a&&e.a.has(t)}function an(e,t){e.a?e.a.add(t):e.b=t}function sn(e,t){e.b&&e.b==t?e.b=null:e.a&&e.a.has(t)&&e.a.delete(t)}function un(e){var t,n;if(null!=e.b)return e.c.concat(e.b.s);if(null!=e.a&&0!==e.a.size){var r=e.c;try{for(var o=i(e.a.values()),a=o.next();!a.done;a=o.next()){var s=a.value;r=r.concat(s.s)}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}return T(e.c)}function cn(){}function ln(){this.a=new cn}function fn(e,t,n){var r=n||"";try{Ct(e,(function(e,n){var i=e;h(e)&&(i=Ce(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function hn(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(o){}}en.prototype.cancel=function(){var e,t;if(this.c=un(this),this.b)this.b.cancel(),this.b=null;else if(this.a&&0!==this.a.size){try{for(var n=i(this.a.values()),r=n.next();!r.done;r=n.next()){r.value.cancel()}}catch(o){e={error:o}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.a.clear()}},cn.prototype.stringify=function(e){return u.JSON.stringify(e,void 0)},cn.prototype.parse=function(e){return u.JSON.parse(e,void 0)};var dn=u.JSON.parse;function pn(e){ke.call(this),this.headers=new Ot,this.H=e||null,this.b=!1,this.s=this.a=null,this.B="",this.h=0,this.f="",this.g=this.A=this.l=this.u=!1,this.o=0,this.m=null,this.I=vn,this.D=this.F=!1}w(pn,ke);var vn="",mn=/^https?$/i,gn=["POST","PUT"];function yn(e){return"content-type"==e.toLowerCase()}function bn(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,wn(e),En(e)}function wn(e){e.u||(e.u=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function _n(e){if(e.b&&"undefined"!=typeof s&&(!e.s[1]||4!=kn(e)||2!=e.X()))if(e.l&&4==kn(e))ze(e.za,0,e);else if(e.dispatchEvent("readystatechange"),4==kn(e)){e.b=!1;try{var t,n=e.X();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r
2=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.B).match(Pt)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!mn.test(o?o.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{e.h=6;try{var c=2<kn(e)?e.a.statusText:""}catch(l){c=""}e.f=c+" ["+e.X()+"]",wn(e)}}finally{En(e)}}}function En(e,t){if(e.a){Sn(e);var n=e.a,r=e.s[0]?c:null;e.a=null,e.s=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){}}}function Sn(e){e.a&&e.D&&(e.a.ontimeout=null),e.m&&(u.clearTimeout(e.m),e.m=null)}function kn(e){return e.a?e.a.readyState:0}function Tn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=function(e){var t="";return j(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Mt(e,t,n))}function Cn(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function On(e){this.pa=0,this.g=[],this.c=new Ke,this.ga=this.la=this.B=this.fa=this.a=this.na=this.A=this.W=this.i=this.O=this.l=null,this.La=this.R=0,this.Ia=Cn("failFast",!1,e),this.H=this.m=this.j=this.h=this.f=null,this.T=!0,this.I=this.oa=this.P=-1,this.U=this.o=this.u=0,this.Fa=Cn("baseRetryDelayMs",5e3,e),this.Ma=Cn("retryDelaySeedMs",1e4,e),this.Ja=Cn("forwardChannelMaxRetries",2,e),this.ma=Cn("forwardChannelRequestTimeoutMs",2e4,e),this.Ka=e&&e.g||void 0,this.D=void 0,this.C=e&&e.supportsCrossDomainXhr||!1,this.J="",this.b=new en(e&&e.concurrentRequestLimit),this.ka=new ln,this.da=e&&e.fastHandshake||!1,this.Ga=e&&e.b||!1,e&&e.f&&(this.c.a=!1),e&&e.forceLongPolling&&(this.T=!1),this.V=!this.da&&this.T&&e&&e.c||!1,this.ea=void 0,this.N=0,this.F=!1,this.s=null}function xn(e){if(Pn(e),3==e.v){var t=e.R++,n=Nt(e.B);Mt(n,"SID",e.J),Mt(n,"RID",t),Mt(n,"TYPE","terminate"),Rn(e,n),(t=new ht(e,e.c,t,void 0)).H=2,t.i=Ft(Nt(n)),n=!1,u.navigator&&u.navigator.sendBeacon&&(n=u.navigator.sendBeacon(t.i.toString(),"")),!n&&u.Image&&((new Image).src=t.i,n=!0),n||(t.a=Kn(t.g,null),t.a.ba(t.i)),t.u=b(),wt(t)}Wn(e)}function In(e){e.a&&(Fn(e),e.a.cancel(),e.a=null)}function Pn(e){In(e),e.j&&(u.clearTimeout(e.j),e.j=null),Un(e),e.b.cancel(),e.h&&("number"===typeof e.h&&u.clearTimeout(e.h),e.h=null)}function An(e,t){e.g.push(new Zt(e.La++,t)),3==e.v&&Nn(e)}function Nn(e){nn(e.b)||e.h||(e.h=!0,je(e.Ba,e),e.u=0)}function jn(e,t){var n;n=t?t.f:e.R++;var r=Nt(e.B);Mt(r,"SID",e.J),Mt(r,"RID",n),Mt(r,"AID",e.P),Rn(e,r),e.i&&e.l&&Tn(r,e.i,e.l),n=new ht(e,e.c,n,e.u+1),null===e.i&&(n.B=e.l),t&&(e.g=t.s.concat(e.g)),t=Dn(e,n,1e3),n.setTimeout(Math.round(.5*e.ma)+Math.round(.5*e.ma*Math.random())),an(e.b,n),mt(n,r,t)}function Rn(e,t){e.f&&Ct({},(function(e,n){Mt(t,n,e)}))}function Dn(e,t,n){n=Math.min(e.g.length,n);var r=e.f?g(e.f.Ha,e.f,e):null;e:for(var i=e.g,o=-1;;){var a=["count="+n];-1==o?0<n?(o=i[0].b,a.push("ofs="+o)):o=0:a.push("ofs="+o);for(var s=!0,u=0;u<n;u++){var c=i[u].b,l=i[u].a;if(0>(c-=o))o=Math.max(0,i[u].b-100),s=!1;else try{fn(l,a,"req"+c+"_")}catch(f){r&&r(l)}}if(s){r=a.join("&");break e}}return e=e.g.splice(0,n),t.s=e,r}function Ln(e){e.a||e.j||(e.U=1,je(e.Aa,e),e.o=0)}function Mn(e){return!(e.a||e.j||3<=e.o)&&(e.U++,e.j=tt(g(e.Aa,e),Bn(e,e.o)),e.o++,!0)}function Fn(e){null!=e.s&&(u.clearTimeout(e.s),e.s=null)}function zn(e){e.a=new ht(e,e.c,"rpc",e.U),null===e.i&&(e.a.B=e.l),e.a.O=0;var t=Nt(e.la);Mt(t,"RID","rpc"),Mt(t,"SID",e.J),Mt(t,"CI",e.H?"0":"1"),Mt(t,"AID",e.P),Rn(e,t),Mt(t,"TYPE","xmlhttp"),e.i&&e.l&&Tn(t,e.i,e.l),e.D&&e.a.setTimeout(e.D);var n=e.a;e=e.ga,n.H=1,n.i=Ft(Nt(t)),n.j=null,n.I=!0,gt(n,e)}function Un(e){null!=e.m&&(u.clearTimeout(e.m),e.m=null)}function Vn(e,t){var n=null;if(e.a==t){Un(e),Fn(e),e.a=null;var r=2}else{if(!on(e.b,t))return;n=t.s,sn(e.b,t),r=1}if(e.I=t.N,0!=e.v)if(t.b)if(1==r){n=t.j?t.j.length:0,t=b()-t.u;var i=e.u;(r=Qe()).dispatchEvent(new et(r,n,t,i)),Nn(e)}else Ln(e);else if(3==(i=t.h)||0==i&&0<e.I||!(1==r&&function(e,t){return!(rn(e.b)>=e.b.f-(e.h?1:0))&&(e.h?(e.g=t.s.concat(e.g),!0):!(1==e.v||2==e.v||e.u>=(e.Ia?0:e.Ja))&&(e.h=tt(g(e.Ba,e,t),Bn(e,e.u)),e.u++,!0))}(e,t)||2==r&&Mn(e)))switch(n&&0<n.length&&(t=e.b,t.c=t.c.concat(n)),i){case 1:qn(e,5);break;case 4:qn(e,10);break;case 3:qn(e,6);break;default:qn(e,2)}}function Bn(e,t){var n=e.Fa+Math.floor(Math.random()*e.Ma);return e.f||(n*=2),n*t}function qn(e,t){if(e.c.info("Error code "+t),2==t){var n=null;e.f&&(n=null);var r=g(e.Xa,e);n||(n=new At("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||jt(n,"https"),Ft(n)),function(e,t){var n=new Ke;if(u.Image){var r=new Image;r.onload=y(hn,n,r,"TestLoadImage: loaded",!0,t),r.onerror=y(hn,n,r,"TestLoadImage: error",!1,t),r.onabort=y(hn,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=y(hn,n,r,"TestLoadImage: timeout",!1,t),u.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else Ze(2);e.v=0,e.f&&e.f.ra(t),Wn(e),Pn(e)}function Wn(e){e.v=0,e.I=-1,e.f&&(0==un(e.b).length&&0==e.g.length||(e.b.c.length=0,T(e.g),e.g.length=0),e.f.qa())}function Hn(e,t,n){var r=function(e){return e instanceof At?Nt(e):new At(e,void 0)}(n);if(""!=r.c)t&&Rt(r,t+"."+r.c),Dt(r,r.h);else{var i=u.location;r=function(e,t,n,r){var i=new At(null,void 0);return e&&jt(i,e),t&&Rt(i,t),n&&Dt(i,n),r&&(i.g=r),i}(i.protocol,t?t+"."+i.hostname:i.hostname,+i.port,n)}return e.W&&j(e.W,(function(e,t){Mt(r,t,e)})),t=e.A,n=e.na,t&&n&&Mt(r,t,n),Mt(r,"VER",e.ha),Rn(e,r),r}function Kn(e,t){if(t&&!e.C)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new pn(e.Ka)).F=e.C,t}function Gn(){}function $n(){if(U&&!(10<=Number(Z)))throw Error("Environmental error: no available transport.")}function Qn(e,t){ke.call(this),this.a=new On(t),this.l=e,this.b=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.l=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.a&&(e?e["X-WebChannel-Client-Profile"]=t.a:e={"X-WebChannel-Client-Profile":t.a}),this.a.O=e,(e=t&&t.httpHeadersOverwriteParam)&&!C(e)&&(this.a.i=e),this.h=t&&t.supportsCrossDomainXhr||!1,this.g=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!C(t)&&(this.a.A=t,null!==(e=this.b)&&t in e&&(t in(e=this.b)&&delete e[t])),this.f=new Jn(this)}function Yn(e){ct.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function Xn(){lt.call(this),this.status=1}function Jn(e){this.a=e}(o=pn.prototype).ba=function(e,t,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+e);t=t?t.toUpperCase():"GET",this.B=e,this.f="",this.h=0,this.u=!1,this.b=!0,this.a=new XMLHttpRequest,this.s=this.H?ot(this.H):ot(st),this.a.onreadystatechange=g(this.za,this);try{this.A=!0,this.a.open(t,String(e),!0),this.A=!1}catch(o){return void bn(this,o)}e=n||"";var i=new Ot(this.headers);r&&Ct(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=yn,n=e.length,r="string"===typeof e?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:"string"===typeof e?e.charAt(t):e[t]}(i.L()),n=u.FormData&&e instanceof u.FormData,!(0<=E(gn,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
2charset=utf-8"),i.forEach((function(e,t){this.a.setRequestHeader(t,e)}),this),this.I&&(this.a.responseType=this.I),"withCredentials"in this.a&&this.a.withCredentials!==this.F&&(this.a.withCredentials=this.F);try{Sn(this),0<this.o&&((this.D=function(e){return U&&X(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.o,this.a.ontimeout=g(this.xa,this)):this.m=ze(this.xa,this.o,this)),this.l=!0,this.a.send(e),this.l=!1}catch(o){bn(this,o)}},o.xa=function(){"undefined"!=typeof s&&this.a&&(this.f="Timed out after "+this.o+"ms, aborting",this.h=8,this.dispatchEvent("timeout"),this.abort(8))},o.abort=function(e){this.a&&this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1,this.h=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),En(this))},o.G=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),En(this,!0)),pn.S.G.call(this)},o.za=function(){this.j||(this.A||this.l||this.g?_n(this):this.Ta())},o.Ta=function(){_n(this)},o.X=function(){try{return 2<kn(this)?this.a.status:-1}catch(e){return-1}},o.$=function(){try{return this.a?this.a.responseText:""}catch(e){return""}},o.Na=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),dn(t)}},o.ua=function(){return this.h},o.Qa=function(){return"string"===typeof this.f?this.f:String(this.f)},(o=On.prototype).ha=8,o.v=1,o.Ba=function(e){if(this.h)if(this.h=null,1==this.v){if(!e){this.R=Math.floor(1e5*Math.random()),e=this.R++;var t,n=new ht(this,this.c,e,void 0),r=this.l;if(this.O&&(r?L(r=R(r),this.O):r=this.O),null===this.i&&(n.B=r),this.da)e:{for(var i=t=0;i<this.g.length;i++){var o=this.g[i];if(void 0===(o="__data__"in o.a&&"string"===typeof(o=o.a.__data__)?o.length:void 0))break;if(4096<(t+=o)){t=i;break e}if(4096===t||i===this.g.length-1){t=i+1;break e}}t=1e3}else t=1e3;t=Dn(this,n,t),Mt(i=Nt(this.B),"RID",e),Mt(i,"CVER",22),this.A&&Mt(i,"X-HTTP-Session-Id",this.A),Rn(this,i),this.i&&r&&Tn(i,this.i,r),an(this.b,n),this.Ga&&Mt(i,"TYPE","init"),this.da?(Mt(i,"$req",t),Mt(i,"SID","null"),n.V=!0,mt(n,i,null)):mt(n,i,t),this.v=2}}else 3==this.v&&(e?jn(this,e):0==this.g.length||nn(this.b)||jn(this))},o.Aa=function(){if(this.j=null,zn(this),this.V&&!(this.F||null==this.a||0>=this.N)){var e=2*this.N;this.c.info("BP detection timer enabled: "+e),this.s=tt(g(this.Sa,this),e)}},o.Sa=function(){this.s&&(this.s=null,this.c.info("BP detection timeout reached."),this.c.info("Buffering proxy detected and switch to long-polling!"),this.H=!1,this.F=!0,In(this),zn(this))},o.Ra=function(){null!=this.m&&(this.m=null,In(this),Mn(this),Ze(19))},o.Xa=function(e){e?(this.c.info("Successfully pinged google.com"),Ze(2)):(this.c.info("Failed to ping google.com"),Ze(1))},(o=Gn.prototype).ta=function(){},o.sa=function(){},o.ra=function(){},o.qa=function(){},o.Ha=function(){},$n.prototype.a=function(e,t){return new Qn(e,t)},w(Qn,ke),(o=Qn.prototype).addEventListener=function(e,t,n,r){Qn.S.addEventListener.call(this,e,t,n,r)},o.removeEventListener=function(e,t,n,r){Qn.S.removeEventListener.call(this,e,t,n,r)},o.Oa=function(){this.a.f=this.f,this.h&&(this.a.C=!0);var e=this.a,t=this.l,n=this.b||void 0;Ze(0),e.fa=t,e.W=n||{},e.H=e.T,e.B=Hn(e,null,e.fa),Nn(e)},o.close=function(){xn(this.a)},o.Pa=function(e){if("string"===typeof e){var t={};t.__data__=e,An(this.a,t)}else this.g?((t={}).__data__=Ce(e),An(this.a,t)):An(this.a,e)},o.G=function(){this.a.f=null,delete this.f,xn(this.a),delete this.a,Qn.S.G.call(this)},w(Yn,ct),w(Xn,lt),w(Jn,Gn),Jn.prototype.ta=function(){this.a.dispatchEvent("a")},Jn.prototype.sa=function(e){this.a.dispatchEvent(new Yn(e))},Jn.prototype.ra=function(e){this.a.dispatchEvent(new Xn(e))},Jn.prototype.qa=function(){this.a.dispatchEvent("b")},$n.prototype.createWebChannel=$n.prototype.a,Qn.prototype.send=Qn.prototype.Pa,Qn.prototype.open=Qn.prototype.Oa,Qn.prototype.close=Qn.prototype.close,nt.NO_ERROR=0,nt.TIMEOUT=8,nt.HTTP_ERROR=6,rt.COMPLETE="complete",at.EventType=ut,ut.OPEN="a",ut.CLOSE="b",ut.ERROR="c",ut.MESSAGE="d",ke.prototype.listen=ke.prototype.va,pn.prototype.listenOnce=pn.prototype.wa,pn.prototype.getLastError=pn.prototype.Qa,pn.prototype.getLastErrorCode=pn.prototype.ua,pn.prototype.getStatus=pn.prototype.X,pn.prototype.getResponseJson=pn.prototype.Na,pn.prototype.getResponseText=pn.prototype.$,pn.prototype.send=pn.prototype.ba;var Zn=function(){return new $n},er=nt,tr=rt,nr=at,rr=pn,ir={createWebChannelTransport:Zn,ErrorCode:er,EventType:tr,WebChannel:nr,XhrIo:rr};t.default=ir}.call(this,n(46))},function(e,t,n){"use strict";var r=n(17),i=n(1),o=n(21);function a(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var s=a(r),u={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
2ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},c=function(e){function t(n,r,i){var o=e.call(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=i,o}return i.__extends(t,e),t}(Error);var l=function(){function e(e,t){var n=this;this.auth=null,this.messaging=null,this.auth=e.getImmediate({optional:!0}),this.messaging=t.getImmediate({optional:!0}),this.auth||e.get().then((function(e){return n.auth=e}),(function(){})),this.messaging||t.get().then((function(e){return n.messaging=e}),(function(){}))}return e.prototype.getAuthToken=function(){return i.__awaiter(this,void 0,void 0,(function(){var e;return i.__generator(this,(function(t){switch(t.label){case 0:if(!this.auth)return[2,void 0];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.auth.getToken()];case 2:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 3:return t.sent(),[2,void 0];case 4:return[2]}}))}))},e.prototype.getInstanceIdToken=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];try{return[2,this.messaging.getToken()]}catch(t){return[2,void 0]}return[2]}))}))},e.prototype.getContext=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t;return i.__generator(this,(function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}}))}))},e}();function f(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var h=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null==e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"===typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map((function(e){return t.encode(e)}));if("function"===typeof e||"object"===typeof e)return f(e,(function(e){return t.encode(e)}));throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null==e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=Number(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map((function(e){return t.decode(e)})):"function"===typeof e||"object"===typeof e?f(e,(function(e){return t.decode(e)})):e},e}();var d=function(){function e(e,t,n,r,i){var o=this;void 0===r&&(r="us-central1"),this.app_=e,this.fetchImpl=i,this.serializer=new h,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(o.deleteService())}},this.contextProvider=new l(t,n),this.cancelAllRequests=new Promise((function(e){o.deleteService=function(){return e()}}));try{var a=new URL(r);this.customDomain=a.origin,this.region="us-central1"}catch(s){this.customDomain=null,this.region=r}}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId;return null!==this.emulatorOrigin?this.emulatorOrigin+"/"+t+"/"+this.region+"/"+e:null!==this.customDomain?this.customDomain+"/"+e:"https://"+this.region+"-"+t+".cloudfunctions.net/"+e},e.prototype.useFunctionsEmulator=function(e){this.emulatorOrigin=e},e.prototype.httpsCallable=function(e,t){var n=this;return function(r){return n.call(e,r,t||{})}},e.prototype.postJSON=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o;return i.__generator(this,(function(i){switch(i.label){case 0:n["Content-Type"]="application/json",i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchImpl(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=i.sent(),[3,4];case 3:return i.sent(),[2,{status:0,json:null}];case 4:o=null,i.label=5;case 5:return i.trys.push([5,7,,8]),[4,r.json()];case 6:return o=i.sent(),[3,8];case 7:return i.sent(),[3,8];case 8:return[2,{status:r.status,json:o}]}}))}))},e.prototype.call=function(e,t,n){return i.__awaiter(this,void 0,void 0,(function(){var r,o,a,s,l,f,h,d,v,m,g;return i.__generator(this,(function(i){switch(i.label){case 0:return r=this._url(e),t=this.serializer.encode(t),o={data:t},a={},[4,this.contextProvider.getContext()];case 1:return(s=i.sent()).authToken&&(a.Authorization="Bearer "+s.authToken),s.instanceIdToken&&(a["Firebase-Instance-ID-Token"]=s.instanceIdToken),l=n.timeout||7e4,f=function(e){var t,n=new Promise((function(n,r){t=setTimeout((function(){r(new c("deadline-exceeded","deadline-exceeded"))}),e)}));return{timer:t,promise:n}}(l),h=f.timer,d=f.promise,[4,Promise.race([p(h,this.postJSON(r,o,a)),d,p(h,this.cancelAllRequests)])];case 2:if(!(v=i.sent()))throw new c("cancelled","Firebase Functions instance was deleted.");
2if(m=function(e,t,n){var r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r,o=void 0;try{var a=t&&t.error;if(a){var s=a.status;if("string"===typeof s){if(!u[s])return new c("internal","internal");r=u[s],i=s}var l=a.message;"string"===typeof l&&(i=l),void 0!==(o=a.details)&&(o=n.decode(o))}}catch(f){}return"ok"===r?null:new c(r,i,o)}(v.status,v.json,this.serializer))throw m;if(!v.json)throw new c("internal","Response is not valid JSON object.");if("undefined"===typeof(g=v.json.data)&&(g=v.json.result),"undefined"===typeof g)throw new c("internal","Response is missing data field.");return[2,{data:this.serializer.decode(g)}]}}))}))},e}();function p(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,t];case 1:return n=r.sent(),clearTimeout(e),[2,n]}}))}))}!function(e,t){var n={Functions:d};e.INTERNAL.registerComponent(new o.Component("functions",(function(e,n){var r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),o=e.getProvider("messaging");return new d(r,i,o,n,t)}),"PUBLIC").setServiceProps(n).setMultipleInstances(!0))}(s.default,fetch.bind(self)),s.default.registerVersion("@firebase/functions","0.5.1")},function(e,t,n){"use strict";n.r(t);n(52);var r,i,o=n(21),a=n(14),s=n(1),u=n(36),c=n(17),l=n.n(c),f=((r={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',r["only-available-in-window"]="This method is available in a Window context.",r["only-available-in-sw"]="This method is available in a service worker context.",r["permission-default"]="The notification permission was not granted and dismissed instead.",r["permission-blocked"]="The notification permission was not granted and blocked instead.",r["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",r["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",r["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",r["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",r["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",r["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",r["token-update-no-token"]="FCM returned no token when updating the user to push.",r["use-sw-after-get-token"]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",r["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",r["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",r["invalid-vapid-key"]="The public VAPID key must be a string.",r["use-vapid-key-after-get-token"]="The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used.",r),h=new a.ErrorFactory("messaging","Messaging",f),d="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";function p(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(s.__spread)(t))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function v(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}!function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(i||(i={}));function m(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return"databases"in indexedDB?[4,indexedDB.databases()]:[3,2];case 1:if(t=i.sent(),!t.map((function(e){return e.name})).includes("fcm_token_details_db"))return[2,null];i.label=2;case 2:return n=null,[4,Object(u.openDb)("fcm_token_details_db",5,(function(t){return Object(s.__awaiter)(r,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains("fcm_token_object_Store")?[4,(r=t.transaction.objectStore("fcm_token_object_Store")).index("fcmSenderId").get(e)]:[2];case 1:return i=s.sent(),[4,r.clear()];case 2:if(s.sent(),!i)return[2];if(2===t.oldVersion){if(!(o=i).auth||!o.p256dh||!o.endpoint)return[2];n={token:o.fcmToken,createTime:null!==(a=o.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:o.auth,p256dh:o.p256dh,endpoint:o.endpoint,swScope:o.swScope,vapidKey:"string"===typeof o.vapidKey?o.vapidKey:p(o.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(o=i).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:p(o.auth),p256dh:p(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:p(o.vapidKey)}});return[2]}}
2))}))}))];case 3:return i.sent().close(),[4,Object(u.deleteDb)("fcm_token_details_db")];case 4:return i.sent(),[4,Object(u.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(u.deleteDb)("undefined")];case 6:return i.sent(),[2,g(n)?n:null]}}))}))}function g(e){if(!e||!e.subscriptionOptions)return!1;var t=e.subscriptionOptions;return"number"===typeof e.createTime&&e.createTime>0&&"string"===typeof e.token&&e.token.length>0&&"string"===typeof t.auth&&t.auth.length>0&&"string"===typeof t.p256dh&&t.p256dh.length>0&&"string"===typeof t.endpoint&&t.endpoint.length>0&&"string"===typeof t.swScope&&t.swScope.length>0&&"string"===typeof t.vapidKey&&t.vapidKey.length>0}var y="firebase-messaging-store",b=null;function w(){return b||(b=Object(u.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(y)}}))),b}function _(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=k(e),[4,w()];case 1:return[4,i.sent().transaction(y).objectStore(y).get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,m(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,E(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}
2))}))}function E(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return n=k(e),[4,w()];case 1:return r=o.sent(),[4,(i=r.transaction(y,"readwrite")).objectStore(y).put(t,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}}))}))}function S(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return t=k(e),[4,w()];case 1:return n=i.sent(),[4,(r=n.transaction(y,"readwrite")).objectStore(y).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function k(e){return e.appConfig.appId}function T(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,I(e)];case 1:n=s.sent(),r=P(t),i={method:"POST",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig),i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),h.create("token-subscribe-failed",{errorInfo:a});case 6:if(o.error)throw u=o.error.message,h.create("token-subscribe-failed",{errorInfo:u});if(!o.token)throw h.create("token-subscribe-no-token");return[2,o.token]}}))}))}function C(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,u;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,I(e)];case 1:n=s.sent(),r=P(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t.token,i)];case 3:return[4,s.sent().json()];case 4:return o=s.sent(),[3,6];case 5:throw a=s.sent(),h.create("token-update-failed",{errorInfo:a});case 6:if(o.error)throw u=o.error.message,h.create("token-update-failed",{errorInfo:u});if(!o.token)throw h.create("token-update-no-token");return[2,o.token]}}))}))}function O(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return[4,I(e)];case 1:n=s.sent(),r={method:"DELETE",headers:n},s.label=2;case 2:return s.trys.push([2,5,,6]),[4,fetch(x(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw o=i.error.message,h.create("token-unsubscribe-failed",{errorInfo:o});return[3,6];case 5:throw a=s.sent(),h.create("token-unsubscribe-failed",{errorInfo:a});case 6:return[2]}}
2))}))}function x(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function I(e){var t=e.appConfig,n=e.installations;return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,n.getToken()];case 1:return e=r.sent(),[2,new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t.apiKey,"x-goog-firebase-installations-auth":"FIS "+e})]}}))}))}function P(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,o={web:{endpoint:r,auth:n,p256dh:t}};return i!==d&&(o.web.applicationPubKey=i),o}function A(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw h.create("permission-blocked");return[4,D(t,n)];case 1:return r=s.sent(),[4,_(e)];case 2:return i=s.sent(),o={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:p(r.getKey("auth")),p256dh:p(r.getKey("p256dh"))},i?[3,3]:[2,R(e,o)];case 3:if(function(e,t){var n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,o=t.p256dh===e.p256dh;return n&&r&&i&&o}(i.subscriptionOptions,o))return[3,8];s.label=4;case 4:return s.trys.push([4,6,,7]),[4,O(e,i.token)];case 5:return s.sent(),[3,7];case 6:return a=s.sent(),console.warn(a),[3,7];case 7:return[2,R(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,j({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}}
2))}))}function N(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,_(e)];case 1:return(n=i.sent())?[4,O(e,n.token)]:[3,4];case 2:return i.sent(),[4,S(e)];case 3:i.sent(),i.label=4;case 4:return[4,t.pushManager.getSubscription()];case 5:return(r=i.sent())?[2,r.unsubscribe()]:[2,!0]}}))}))}function j(e,t,n){return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(s.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,C(t,e)];case 1:return r=a.sent(),i=Object(s.__assign)(Object(s.__assign)({},e),{token:r,createTime:Date.now()}),[4,E(t,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,N(t,n)];case 4:throw a.sent(),o;case 5:return[2]}}))}))}function R(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return[4,T(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,E(e,r)];case 2:return i.sent(),[2,r.token]}}))}))}function D(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return[4,e.pushManager.getSubscription()];case 1:return(n=r.sent())?[2,n]:[2,e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:v(t)})]}}))}))}function L(e){return"object"===typeof e&&!!e&&"google.c.a.c_id"in e}var M=function(){function e(e){var t=this;this.firebaseDependencies=e,this.isOnBackgroundMessageUsed=null,this.vapidKey=null,this.bgMessageHandler=null,self.addEventListener("push",(function(e){e.waitUntil(t.onPush(e))})),self.addEventListener("pushsubscriptionchange",(function(e){e.waitUntil(t.onSubChange(e))})),self.addEventListener("notificationclick",(function(e){e.waitUntil(t.onNotificationClick(e))}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.setBackgroundMessageHandler=function(e){if(this.isOnBackgroundMessageUsed=!1,!e||"function"!==typeof e)throw h.create("invalid-bg-handler");this.bgMessageHandler=e},e.prototype.onBackgroundMessage=function(e){var t=this;return this.isOnBackgroundMessageUsed=!0,this.bgMessageHandler=e,function(){t.bgMessageHandler=null}},e.prototype.getToken=function(){var e,t;return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,_(this.firebaseDependencies)];case 1:n=r.sent(),this.vapidKey=null!==(t=null===(e=null===n||void 0===n?void 0:n.subscriptionOptions)||void 0===e?void 0:e.vapidKey)&&void 0!==t?t:d,r.label=2;case 2:return[2,A(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return N(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw h.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw h.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw h.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw h.create("only-available-in-window")},e.prototype.onMessage=function(){throw h.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw h.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(s.__generator)(this,(function(o){switch(o.label){case 0:return(t=function(e){var t=e.data;if(!t)return null;try{return t.json()}catch(n){return null}}(e))?[4,V()]:(console.debug("FirebaseMessaging: failed to get parsed MessagePayload from the PushEvent. Skip handling the push."),[2]);case 1:return function(e){return e.some((function(e){return"visible"===e.visibilityState&&!e.url.startsWith("chrome-extension://")}))}(n=o.sent())?[2,U(n,t)]:(r=!1,t.notification?[4,B(F(t))]:[3,3]);case 2:o.sent(),r=!0,o.label=3;
2case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed||this.bgMessageHandler&&(i=function(e){var t={from:e.from,collapseKey:e.collapse_key};return function(e,t){if(!t.notification)return;e.notification={};var n=t.notification.title;n&&(e.notification.title=n);var r=t.notification.body;r&&(e.notification.body=r);var i=t.notification.image;i&&(e.notification.image=i)}(t,e),function(e,t){if(!t.data)return;e.data=t.data}(t,e),function(e,t){if(!t.fcmOptions)return;e.fcmOptions={};var n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);var r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}(t,e),t}(t),"function"===typeof this.bgMessageHandler?this.bgMessageHandler(i):this.bgMessageHandler.next(i)),[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r;return Object(s.__generator)(this,(function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,N(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,_(this.firebaseDependencies)];case 3:return r=i.sent(),[4,N(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,A(this.firebaseDependencies,self.registration,null!==(n=null===(t=null===r||void 0===r?void 0:r.subscriptionOptions)||void 0===t?void 0:t.vapidKey)&&void 0!==n?n:d)];case 5:return i.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(s.__awaiter)(this,void 0,void 0,(function(){var r,o,a,u,c;return Object(s.__generator)(this,(function(s){switch(s.label){case 0:return(r=null===(n=null===(t=e.notification)||void 0===t?void 0:t.data)||void 0===n?void 0:n.FCM_MSG)?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(o=function(e){var t,n,r,i=null!==(n=null===(t=e.fcmOptions)||void 0===t?void 0:t.link)&&void 0!==n?n:null===(r=e.notification)||void 0===r?void 0:r.click_action;if(i)return i;return L(e.data)?self.location.origin:null}(r))?(a=new URL(o,self.location.href),u=new URL(self.location.origin),a.host!==u.host?[2]:[4,z(a)]):[2]):[2];case 1:return(c=s.sent())?[3,4]:[4,self.clients.openWindow(o)];case 2:return c=s.sent(),[4,(l=3e3,new Promise((function(e){setTimeout(e,l)})))];case 3:return s.sent(),[3,6];case 4:return[4,c.focus()];case 5:c=s.sent(),s.label=6;case 6:return c?(r.messageType=i.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,c.postMessage(r)]):[2]}var l}))}))},e}();function F(e){var t,n=Object(s.__assign)({},e.notification);return n.data=((t={}).FCM_MSG=e,t),n}function z(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o,a,u;return Object(s.__generator)(this,(function(c){switch(c.label){case 0:return[4,V()];case 1:t=c.sent();try{for(n=Object(s.__values)(t),r=n.next();!r.done;r=n.next())if(i=r.value,o=new URL(i.url,self.location.href),e.host===o.host)return[2,i]}catch(l){a={error:l}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(a)throw a.error}}return[2,null]}}))}))}function U(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=i.PUSH_RECEIVED;try{for(var o=Object(s.__values)(e),a=o.next();!a.done;a=o.next()){a.value.postMessage(t)}}catch(u){n={error:u}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}function V(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function B(e){var t,n=e.actions,r=Notification.maxActions;return n&&r&&n.length>r&&console.warn("This browser only supports "+r+" actions. The remaining actions will not be displayed."),self.registration.showNotification(null!==(t=e.title)&&void 0!==t?t:"",e)}var q=function(){function e(e){var t=this;this.firebaseDependencies=e,this.vapidKey=null,this.onMessageCallback=null,navigator.serviceWorker.addEventListener("message",(function(e){return t.messageEventListener(e)}))}return Object.defineProperty(e.prototype,"app",{get:function(){return this.firebaseDependencies.app},enumerable:!1,configurable:!0}),e.prototype.messageEventListener=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return(t=e.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===i.PUSH_RECEIVED&&("function"===typeof this.onMessageCallback?this.onMessageCallback(function(e){return delete e.messageType,delete e.isFirebaseMessaging,e}(Object.assign({},t))):this.onMessageCallback.next(Object.assign({},t))),L(n=t.data)&&"1"===n["google.c.a.e"]?[4,this.logEvent(t.messageType,n)]:[3,2]):[2];case 1:r.sent(),r.label=2;case 2:return[2]}}
2))}))},e.prototype.getVapidKey=function(){return this.vapidKey},e.prototype.getSwReg=function(){return this.swRegistration},e.prototype.getToken=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return"default"!==Notification.permission?[3,2]:[4,Notification.requestPermission()];case 1:t.sent(),t.label=2;case 2:if("granted"!==Notification.permission)throw h.create("permission-blocked");return[4,this.updateVapidKey(null===e||void 0===e?void 0:e.vapidKey)];case 3:return t.sent(),[4,this.updateSwReg(null===e||void 0===e?void 0:e.serviceWorkerRegistration)];case 4:return t.sent(),[2,A(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},e.prototype.updateVapidKey=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=d),[2]}))}))},e.prototype.updateSwReg=function(e){return Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return e||this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:t.sent(),t.label=2;case 2:if(!e&&this.swRegistration)return[2];if(!(e instanceof ServiceWorkerRegistration))throw h.create("invalid-sw-registration");return this.swRegistration=e,[2]}}))}))},e.prototype.registerDefaultSw=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e=this,[4,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"})];case 1:return e.swRegistration=n.sent(),this.swRegistration.update().catch((function(){})),[3,3];case 2:throw t=n.sent(),h.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}}
2))}))},e.prototype.deleteToken=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){return Object(s.__generator)(this,(function(e){switch(e.label){case 0:return this.swRegistration?[3,2]:[4,this.registerDefaultSw()];case 1:e.sent(),e.label=2;case 2:return[2,N(this.firebaseDependencies,this.swRegistration)]}}))}))},e.prototype.requestPermission=function(){return Object(s.__awaiter)(this,void 0,void 0,(function(){var e;return Object(s.__generator)(this,(function(t){switch(t.label){case 0:return"granted"===Notification.permission?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?h.create("permission-blocked"):h.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw h.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw h.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw h.create("invalid-sw-registration");if(this.swRegistration)throw h.create("use-sw-after-get-token");this.swRegistration=e},e.prototype.onMessage=function(e){var t=this;return this.onMessageCallback=e,function(){t.onMessageCallback=null}},e.prototype.setBackgroundMessageHandler=function(){throw h.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw h.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return Object(s.__awaiter)(this,void 0,void 0,(function(){var n;return Object(s.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case i.NOTIFICATION_CLICKED:return"notification_open";case i.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(e),[4,this.firebaseDependencies.analyticsProvider.get()];case 1:return r.sent().logEvent(n,{message_id:t["google.c.a.c_id"],message_name:t["google.c.a.c_l"],message_time:t["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)}),[2]}}))}))},e}();function W(e){return h.create("missing-app-config-values",{valueName:e})}var H={isSupported:K};function K(){return self&&"ServiceWorkerGlobalScope"in self?"indexedDB"in self&&null!==indexedDB&&"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):"indexedDB"in window&&null!==indexedDB&&navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}l.a.INTERNAL.registerComponent(new o.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw W("App Configuration Object");if(!e.name)throw W("App Name");var r=e.options;try{for(var i=Object(s.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!r[a])throw W(a)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return{appName:e.name,projectId:r.projectId,apiKey:r.apiKey,appId:r.appId,senderId:r.messagingSenderId}}(t),installations:e.getProvider("installations").getImmediate(),analyticsProvider:e.getProvider("analytics-internal")};if(!K())throw h.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new M(n):new q(n)}),"PUBLIC").setServiceProps(H))},function(e,t,n){"use strict";n.r(t),n.d(t,"registerStorage",(function(){return ht}));var r=n(17),i=n.n(r),o=n(1),a=n(21),s=function(){function e(e,t){this.code_=C(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return C(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.serverResponse_?this.message_+"\n"+this.serverResponse_:this.message_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!1,configurable:!0}),e}(),u="unknown",c="object-not-found",l="quota-exceeded",f="unauthenticated",h="unauthorized",d="retry-limit-exceeded",p="canceled",v="invalid-url",m="invalid-default-bucket",g="cannot-slice-blob",y="server-file-wrong-size",b="no-download-url",w="invalid-argument",_="invalid-argument-count",E="app-deleted",S="invalid-root-operation",k="invalid-format",T="internal-error";function C(e){return"storage/"+e}function O(){return new s(u,"An unknown error occurred, please check the error payload for server response.")}function x(){return new s(p,"User canceled the upload/download.")}function I(){return new s(g,"Cannot slice blob for upload. Please retry the upload.")}function P(){return new s(b,"The given file does not have any download URLs.")}function A(e,t,n){return new s(w,"Invalid argument in `"+t+"` at index "+e+": "+n)}function N(){return new s(E,"The Firebase app was deleted.")}function j(e,t){return new s(k,"String does not match format '"+e+"': "+t)}function R(e){throw new s(T,"Internal error: "+e)}var D={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function L(e){switch(e){case D.RAW:case D.BASE64:case D.BASE64URL:case D.DATA_URL:return;default:throw"Expected one of the event types: ["+D.RAW+", "+D.BASE64+", "+D.BASE64URL+", "+D.DATA_URL+"]."}}var M=function(e,t){this.data=e,this.contentType=t||null};function F(e,t){switch(e){case D.RAW:return new M(z(t));case D.BASE64:case D.BASE64URL:return new M(U(e,t));case D.DATA_URL:return new M(function(e){var t=new V(e);return t.base64?U(D.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw j(D.DATA_URL,"Malformed data URL.")}return z(t)}(t.rest)}(t),new V(t).contentType)}throw O()}function z(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function U(e,t){switch(e){case D.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw j(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case D.BASE64URL:var i=-1!==t.indexOf("+"),o=-1!==t.indexOf("/");if(i||o)throw j(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(c){throw j(e,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var V=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw j(D.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");var n=t[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var r,i};var B,q={STATE_CHANGED:"state_changed"},W="running",H="pausing",K="paused",G="success",$="canceling",Q="canceled",Y="error",X={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function J(e){switch(e){case W:case H:case $:return X.RUNNING;case K:return X.PAUSED;case G:return X.SUCCESS;case Q:return X.CANCELED;case Y:default:return X.ERROR}}function Z(e){return null!=e}function ee(e){return void 0!==e}function te(e){return"function"===typeof e}function ne(e){return"object"===typeof e}function re(e){return ne(e)&&null!==e}function ie(e){return"string"===typeof e||e instanceof String}function oe(e){return ae(e)&&Number.isInteger(e)}function ae(e){return"number"===typeof e||e instanceof Number}function se(e){return ue()&&e instanceof Blob}function ue(){return"undefined"!==typeof Blob}
2!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(B||(B={}));var ce=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=B.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=B.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=B.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw R("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),Z(r))for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return Z(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw R("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw R("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw R("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){Z(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),le=function(){function e(){}return e.prototype.createXhrIo=function(){return new ce},e}();function fe(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function he(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=fe();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(ue())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}var de=function(){function e(e,t){var n=0,r="";se(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(se(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(ue()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(he.apply(null,r))}var i=t.map((function(e){return ie(e)?F(D.RAW,e).data:e.data_})),o=0;i.forEach((function(e){o+=e.byteLength}));var a=new Uint8Array(o),s=0;return i.forEach((function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]})),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}(),pe=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.path.length},enumerable:!1,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n;try{n=e.makeFromUrl(t)}catch(r){return new e(t,"")}if(""===n.path)return n;throw new s(m,"Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t){var n=null;var r=new RegExp("^gs://([A-Za-z0-9.\\-_]+)(/(.*))?$","i");function i(e){e.path_=decodeURIComponent(e.path)}for(var o="firebasestorage.googleapis.com".replace(/[.]/g,"\\."),a=[{regex:r,
2indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://"+o+"/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-_]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:i},{regex:new RegExp("^https?://(?:storage.googleapis.com|storage.cloud.google.com)/([A-Za-z0-9.\\-_]+)/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:i}],u=0;u<a.length;u++){var c=a[u],l=c.regex.exec(t);if(l){var f=l[c.indices.bucket],h=l[c.indices.path];h||(h=""),n=new e(f,h),c.postModify(n);break}}if(null==n)throw function(e){return new s(v,"Invalid URL '"+e+"'.")}(t);return n},e}();function ve(e){var t,n;try{t=JSON.parse(e)}catch(r){return null}return ne(n=t)&&!Array.isArray(n)?t:null}function me(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}function ge(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function ye(e){return"https://firebasestorage.googleapis.com/v0"+e}function be(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function we(e,t){return t}var _e=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||we},Ee=null;function Se(){if(Ee)return Ee;var e=[];e.push(new _e("bucket")),e.push(new _e("generation")),e.push(new _e("metageneration")),e.push(new _e("name","fullPath",!0));var t=new _e("name");t.xform=function(e,t){return function(e){return!ie(e)||e.length<2?e:ge(e)}(t)},e.push(t);var n=new _e("size");return n.xform=function(e,t){return Z(t)?Number(t):t},e.push(n),e.push(new _e("timeCreated")),e.push(new _e("updated")),e.push(new _e("md5Hash",null,!0)),e.push(new _e("cacheControl",null,!0)),e.push(new _e("contentDisposition",null,!0)),e.push(new _e("contentEncoding",null,!0)),e.push(new _e("contentLanguage",null,!0)),e.push(new _e("contentType",null,!0)),e.push(new _e("metadata","customMetadata",!0)),Ee=e}function ke(e,t,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new pe(n,r);return t.makeStorageReference(i)}})}(r,e),r}function Te(e,t,n){var r=ve(t);return null===r?null:ke(e,r,n)}function Ce(e,t){for(var n={},r=t.length,i=0;i<r;i++){var o=t[i];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}function Oe(e){if(!ne(e)||!e)throw"Expected Metadata object.";for(var t in e)if(e.hasOwnProperty(t)){var n=e[t];if("customMetadata"===t){if(!ne(n))throw"Expected object for 'customMetadata' mapping."}else if(re(n))throw"Mapping for '"+t+"' cannot be an object."}}function xe(e,t,n){var r=ve(n);return null===r?null:function(e,t,n){var r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n.prefixes)for(var i=0,o=n.prefixes;i<o.length;i++){var a=o[i].replace(/\/$/,""),s=e.makeStorageReference(new pe(t,a));r.prefixes.push(s)}if(n.items)for(var u=0,c=n.items;u<c.length;u++){var l=c[u];s=e.makeStorageReference(new pe(t,l.name));r.items.push(s)}return r}(e,t,r)}function Ie(e){if(!ne(e)||!e)throw"Expected ListOptions object.";for(var t in e)if("maxResults"===t){if(!oe(e.maxResults)||e.maxResults<=0)throw"Expected maxResults to be a positive number.";if(e.maxResults>1e3)throw"Expected maxResults to be less than or equal to 1000."}else{if("pageToken"!==t)throw"Unknown option: "+t;if(e.pageToken&&!ie(e.pageToken))throw"Expected pageToken to be string."}}var Pe=function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]};function Ae(e){if(!e)throw O()}function Ne(e,t){return function(n,r){var i=Te(e,r,t);return Ae(null!==i),i}}function je(e,t){return function(n,r){var i=Te(e,r,t);return Ae(null!==i),function(e,t){var n=ve(t);if(null===n)return null;if(!ie(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map((function(t){var n=e.bucket,r=e.fullPath;return ye("/b/"+i(n)+"/o/"+i(r))+be({alt:"media",token:t})}))[0]}(i,r)}}function Re(e){return function(t,n){var r,i,o;return 401===t.getStatus()?r=new s(f,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new s(l,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new s(h,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function De(e){var t=Re(e);return function(n,r){var i,o=t(n,r);
2return 404===n.getStatus()&&(i=e.path,o=new s(c,"Object '"+i+"' does not exist.")),o.setServerResponseProp(r.serverResponseProp()),o}}function Le(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime,o=new Pe(r,"GET",Ne(e,n),i);return o.errorHandler=De(t),o}function Me(e,t,n,r,i){var o={};t.isRoot?o.prefix="":o.prefix=t.path+"/",n&&n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);var a=ye(t.bucketOnlyServerUrl()),s=e.maxOperationRetryTime,u=new Pe(a,"GET",function(e,t){return function(n,r){var i=xe(e,t,r);return Ae(null!==i),i}}(e,t.bucket),s);return u.urlParams=o,u.errorHandler=Re(t),u}function Fe(e,t,n){var r=ye(t.fullServerUrl()),i=e.maxOperationRetryTime,o=new Pe(r,"GET",je(e,n),i);return o.errorHandler=De(t),o}function ze(e,t,n,r){var i=ye(t.fullServerUrl()),o=Ce(n,r),a=e.maxOperationRetryTime,s=new Pe(i,"PATCH",Ne(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=De(t),s}function Ue(e,t){var n=ye(t.fullServerUrl()),r=e.maxOperationRetryTime;var i=new Pe(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=De(t),i}function Ve(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var Be=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function qe(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){Ae(!1)}return Ae(!!n&&-1!==(t||["active"]).indexOf(n)),n}function We(e,t,n,r,i,o,a,u){var c=new Be(0,0);if(a?(c.current=a.current,c.total=a.total):(c.current=0,c.total=r.size()),r.size()!==c.total)throw new s(y,"Server recorded incorrect upload file size, please retry the upload.");var l=c.total-c.current,f=l;i>0&&(f=Math.min(f,i));var h=c.current,d=h+f,p={"X-Goog-Upload-Command":f===l?"upload, finalize":"upload","X-Goog-Upload-Offset":c.current},v=r.slice(h,d);if(null===v)throw I();var m=t.maxUploadRetryTime,g=new Pe(n,"POST",(function(e,n){var i,a=qe(e,["active","final"]),s=c.current+f,u=r.size();return i="final"===a?Ne(t,o)(e,n):null,new Be(s,u,"final"===a,i)}),m);return g.headers=p,g.body=v.uploadData(),g.progressCallback=u||null,g.errorHandler=Re(e),g}var He=function(e,t,n){if(te(e)||Z(t)||Z(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}},Ke=function(e,t,n,r,i,o){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=o};function Ge(e,t,n){for(var r=t.length,i=t.length,o=0;o<t.length;o++)if(t[o].optional){r=o;break}if(!(r<=n.length&&n.length<=i))throw function(e,t,n,r){var i,o;return e===t?(i=e,o=1===e?"argument":"arguments"):(i="between "+e+" and "+t,o="arguments"),new s(_,"Invalid argument count in `"+n+"`: Expected "+i+" "+o+", received "+r+".")}(r,i,e,n.length);for(o=0;o<n.length;o++)try{t[o].validator(n[o])}catch(a){throw a instanceof Error?A(o,e,a.message):A(o,e,a)}}var $e=function(e,t){var n=this;this.validator=function(t){n.optional&&!ee(t)||e(t)},this.optional=!!t};function Qe(e,t){function n(e){if(!ie(e))throw"Expected string."}var r,i,o;return e?(i=n,o=e,r=function(e){i(e),o(e)}):r=n,new $e(r,t)}function Ye(){return new $e((function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||ue()&&e instanceof Blob))throw"Expected Blob or File."}))}function Xe(e){return new $e(Oe,e)}function Je(e){return new $e(Ie,e)}function Ze(){return new $e((function(e){if(!(ae(e)&&e>=0))throw"Expected a number 0 or greater."}))}function et(e,t){return new $e((function(t){if(!(null===t||Z(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)}),t)}function tt(e){return new $e((function(e){if(!(null===e||te(e)))throw"Expected a Function."}),e)}function nt(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];Promise.resolve().then((function(){return e.apply(void 0,t)}))}}var rt=function(){function e(e,t,n,r,i,o){var a=this;void 0===o&&(o=null),this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.service_=t,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=W,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(p)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(Y))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(p)?a.completeTransitions_():(a.error_=e,a.transition_(Y))},this.promise_=new Promise((function(e,t){a.resolve_=e,a.reject_=t,a.start_()}
2)),this.promise_.then(null,(function(){}))}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n){return e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===W&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.service_.getAuthToken().then((function(n){switch(t.state_){case W:e(n);break;case $:t.transition_(Q);break;case H:t.transition_(K)}}))},e.prototype.createResumable_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a=Ve(t,r,i),s={name:a.fullPath},u=ye(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},l=Ce(a,n),f=e.maxUploadRetryTime,h=new Pe(u,"POST",(function(e){var t;qe(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){Ae(!1)}return Ae(ie(t)),t}),f);return h.urlParams=s,h.headers=c,h.body=l,h.errorHandler=Re(t),h}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_((function(n){var r=function(e,t,n,r){var i=e.maxUploadRetryTime,o=new Pe(n,"POST",(function(e){var t=qe(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(o){Ae(!1)}n||Ae(!1);var i=Number(n);return Ae(!isNaN(i)),new Be(i,r.size(),"final"===t)}),i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=Re(t),o}(e.service_,e.location_,t,e.blob_),i=e.service_.makeRequest(r,n);e.request_=i,i.getPromise().then((function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new Be(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_((function(i){var o;try{o=We(e.location_,e.service_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(s){return e.error_=s,void e.transition_(Y)}var a=e.service_.makeRequest(o,i);e.request_=a,a.getPromise().then((function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(G)):e.completeTransitions_()}),e.errorHandler_)}))},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_((function(t){var n=Le(e.service_,e.location_,e.mappings_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.transition_(G)}),e.metadataErrorHandler_)}))},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_((function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var u=Ve(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Ce(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=de.getBlob(c,r,l);if(null===f)throw I();var h={name:u.fullPath},d=ye(o),p=e.maxUploadRetryTime,v=new Pe(d,"POST",Ne(e,n),p);return v.urlParams=h,v.headers=a,v.body=f.uploadData(),v.errorHandler=Re(t),v}(e.service_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.service_.makeRequest(n,t);e.request_=r,r.getPromise().then((function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(G)}),e.errorHandler_)}))},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case $:case H:this.state_=e,null!==this.request_&&this.request_.cancel();break;case W:var t=this.state_===K;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case K:this.state_=e,this.notifyObservers_();break;case Q:this.error_=x(),this.state_=e,this.notifyObservers_();break;case Y:case G:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case H:this.transition_(K);break;case $:this.transition_(Q);break;case W:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=J(this.state_);return new Ke(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)}
2,enumerable:!1,configurable:!0}),e.prototype.on=function(e,t,n,r){function i(){if(e!==q.STATE_CHANGED)throw"Expected one of the event types: ["+q.STATE_CHANGED+"]."}var o="Expected a function or an Object with one of `next`, `error`, `complete` properties.",a=tt(!0).validator,s=et(null,!0).validator;function u(e){try{return void a(e)}catch(t){}try{if(s(e),!(ee(e.next)||ee(e.error)||ee(e.complete)))throw"";return}catch(t){throw o}}var c=[Qe(i),et(u,!0),tt(!0),tt(!0)];Ge("on",c,arguments);var l=this;function f(e){return function(t,n,i){null!==e&&Ge("on",e,arguments);var o=new He(t,n,r);return l.addObserver_(o),function(){l.removeObserver_(o)}}}function h(e){if(null===e)throw o;u(e)}var d=[et(h),tt(!0),tt(!0)],p=!(ee(t)||ee(n)||ee(r));return p?f(d):f(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t=this.observers_.indexOf(e);-1!==t&&this.observers_.splice(t,1)},e.prototype.notifyObservers_=function(){var e=this;this.finishPromise_(),this.observers_.slice().forEach((function(t){e.notifyObserver_(t)}))},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(J(this.state_)){case X.SUCCESS:nt(this.resolve_.bind(null,this.snapshot))();break;case X.CANCELED:case X.ERROR:nt(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(J(this.state_)){case X.RUNNING:case X.PAUSED:e.next&&nt(e.next.bind(e,this.snapshot))();break;case X.SUCCESS:e.complete&&nt(e.complete.bind(e))();break;case X.CANCELED:case X.ERROR:e.error&&nt(e.error.bind(e,this.error_))();break;default:e.error&&nt(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){Ge("resume",[],arguments);var e=this.state_===K||this.state_===H;return e&&this.transition_(W),e},e.prototype.pause=function(){Ge("pause",[],arguments);var e=this.state_===W;return e&&this.transition_(H),e},e.prototype.cancel=function(){Ge("cancel",[],arguments);var e=this.state_===W||this.state_===H;return e&&this.transition_($),e},e}(),it=function(){function e(e,t){this.service=e,this.location=t instanceof pe?t:pe.makeFromUrl(t)}return e.prototype.toString=function(){return Ge("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return Se()},e.prototype.child=function(e){Ge("child",[Qe()],arguments);var t=me(this.location.path,e),n=new pe(this.location.bucket,t);return this.newRef(this.service,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new pe(this.location.bucket,e);return this.newRef(this.service,t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new pe(this.location.bucket,"");return this.newRef(this.service,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return ge(this.location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.service},enumerable:!1,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),Ge("put",[Ye(),Xe(!0)],arguments),this.throwIfRoot_("put"),new rt(this,this.service,this.location,this.mappings(),new de(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=D.RAW),Ge("putString",[Qe(),Qe(L,!0),Xe(!0)],arguments),this.throwIfRoot_("putString");var r=F(t,e),i=Object.assign({},n);return!Z(i.contentType)&&Z(r.contentType)&&(i.contentType=r.contentType),new rt(this,this.service,this.location,this.mappings(),new de(r.data,!0),i)},e.prototype.delete=function(){var e=this;return Ge("delete",[],arguments),this.throwIfRoot_("delete"),this.service.getAuthToken().then((function(t){var n=Ue(e.service,e.location);
2return e.service.makeRequest(n,t).getPromise()}))},e.prototype.listAll=function(){Ge("listAll",[],arguments);var e={prefixes:[],items:[]};return this.listAllHelper(e).then((function(){return e}))},e.prototype.listAllHelper=function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n={pageToken:t},[4,this.list(n)];case 1:return r=o.sent(),(i=e.prefixes).push.apply(i,r.prefixes),(a=e.items).push.apply(a,r.items),null==r.nextPageToken?[3,3]:[4,this.listAllHelper(e,r.nextPageToken)];case 2:o.sent(),o.label=3;case 3:return[2]}}))}))},e.prototype.list=function(e){Ge("list",[Je(!0)],arguments);var t=this;return this.service.getAuthToken().then((function(n){var r=e||{},i=Me(t.service,t.location,"/",r.pageToken,r.maxResults);return t.service.makeRequest(i,n).getPromise()}))},e.prototype.getMetadata=function(){var e=this;return Ge("getMetadata",[],arguments),this.throwIfRoot_("getMetadata"),this.service.getAuthToken().then((function(t){var n=Le(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise()}))},e.prototype.updateMetadata=function(e){var t=this;return Ge("updateMetadata",[Xe()],arguments),this.throwIfRoot_("updateMetadata"),this.service.getAuthToken().then((function(n){var r=ze(t.service,t.location,e,t.mappings());return t.service.makeRequest(r,n).getPromise()}))},e.prototype.getDownloadURL=function(){var e=this;return Ge("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL"),this.service.getAuthToken().then((function(t){var n=Fe(e.service,e.location,e.mappings());return e.service.makeRequest(n,t).getPromise().then((function(e){if(null===e)throw P();return e}))}))},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new s(S,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),ot=function(){function e(e){this.promise_=Promise.reject(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){},e}();var at=function(){function e(e,t,n,r,i,o,a,s,u,c,l){var f=this;this.pendingXhr_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=u,this.pool_=l,this.promise_=new Promise((function(e,t){f.resolve_=e,f.reject_=t,f.start_()}))}return e.prototype.start_=function(){var e=this;function t(t,n){var r,i=e.resolve_,o=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var u=e.callback_(a,a.getResponseText());ee(u)?i(u):i()}catch(c){o(c)}else null!==a?((r=O()).setServerResponseProp(a.getResponseText()),e.errorCallback_?o(e.errorCallback_(a,r)):o(r)):n.canceled?o(r=e.appDelete_?N():x()):o(r=new s(d,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new st(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,a=!1,s=0;function u(){return 2===s}var c=!1;function l(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];c||(c=!0,t.apply(null,e))}function f(t){i=setTimeout((function(){i=null,e(h,u())}),t)}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!c)if(e)l.call.apply(l,Object(o.__spreadArrays)([null,e],t));else{var i,h=u()||a;if(h)l.call.apply(l,Object(o.__spreadArrays)([null,e],t));else r<64&&(r*=2),1===s?(s=2,i=0):i=1e3*(r+Math.random()),f(i)}}var d=!1;function p(e){d||(d=!0,c||(null!==i?(e||(s=2),clearTimeout(i),f(0)):e||(s=1)))}return f(0),setTimeout((function(){a=!0,p(!0)}),n),p}((function(t,n){if(n)t(!1,new st(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===B.NO_ERROR,o=n.getStatus();if(r&&!e.isRetryStatusCode_(o)){var a=-1!==e.successCodes_.indexOf(o);t(!0,new st(a,n))}else{var s=n.getErrorCode()===B.ABORT;t(!1,new st(!1,null,s))}}))}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}}),t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=-1!==[408,429].indexOf(e),r=-1!==this.additionalRetryCodes_.indexOf(e);return t||n||r},e}(),st=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};
2function ut(e,t,n,r){var o=be(e.urlParams),a=e.url+o,s=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(s,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(s,n),function(e){var t="undefined"!==typeof i.a?i.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(s),new at(a,e.method,s,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,r)}var ct=function(){function e(t,n,r,i){var o;this.bucket_=null,this.appId_=null,this.deleted_=!1,this.app_=t,this.authProvider_=n,this.maxOperationRetryTime_=12e4,this.maxUploadRetryTime_=6e5,this.requests_=new Set,this.pool_=r,this.bucket_=null!=i?pe.makeFromBucketSpec(i):e.extractBucket_(null===(o=this.app_)||void 0===o?void 0:o.options),this.internals_=new lt(this)}return e.extractBucket_=function(e){var t=null===e||void 0===e?void 0:e.storageBucket;return null==t?null:pe.makeFromBucketSpec(t)},e.prototype.getAuthToken=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return(e=this.authProvider_.getImmediate({optional:!0}))?[4,e.getToken()]:[3,2];case 1:if(null!==(t=n.sent()))return[2,t.accessToken];n.label=2;case 2:return[2,null]}}))}))},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requests_.forEach((function(e){return e.cancel()})),this.requests_.clear()},e.prototype.makeStorageReference=function(e){return new it(this,e)},e.prototype.makeRequest=function(e,t){var n=this;if(this.deleted_)return new ot(N());var r=ut(e,this.appId_,t,this.pool_);return this.requests_.add(r),r.getPromise().then((function(){return n.requests_.delete(r)}),(function(){return n.requests_.delete(r)})),r},e.prototype.ref=function(e){function t(e){if("string"!==typeof e)throw"Path is not a string.";if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."}if(Ge("ref",[Qe(t,!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var n=new it(this,this.bucket_);return null!=e?n.child(e):n},e.prototype.refFromURL=function(e){function t(e){if("string"!==typeof e)throw"Path is not a string.";if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{pe.makeFromUrl(e)}catch(t){throw"Expected valid full URL but got an invalid one."}}return Ge("refFromURL",[Qe(t,!1)],arguments),new it(this,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.maxUploadRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){Ge("setMaxUploadRetryTime",[Ze()],arguments),this.maxUploadRetryTime_=e},Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this.maxOperationRetryTime_},enumerable:!1,configurable:!0}),e.prototype.setMaxOperationRetryTime=function(e){Ge("setMaxOperationRetryTime",[Ze()],arguments),this.maxOperationRetryTime_=e},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!1,configurable:!0}),e}(),lt=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.deleteApp(),Promise.resolve()},e}();function ft(e,t){var n=e.getProvider("app").getImmediate(),r=e.getProvider("auth-internal");return new ct(n,r,new le,t)}function ht(e){var t={TaskState:X,TaskEvent:q,StringFormat:D,Storage:ct,Reference:it};e.INTERNAL.registerComponent(new a.Component("storage",ft,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.3.43")}ht(i.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);n(52);var i=n(1),o=n(14),a=n(37),s=n(21);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c,l,f,h=u(r),d=((c={})["trace started"]="Trace {$traceName} was started before.",c["trace stopped"]="Trace {$traceName} is not running.",c["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",c["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",c["no window"]="Window is not available.",c["no app id"]="App id is not available.",c["no project id"]="Project id is not available.",c["no api key"]="Api key is not available.",c["invalid cc log"]="Attempted to queue invalid cc event",c["FB not default"]="Performance can only start when Firebase app instance is the default one.",c["RC response not ok"]="RC response is not ok",c["invalid attribute name"]="Attribute name {$attributeName}
2 is invalid.",c["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",c["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",c["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",c),p=new o.ErrorFactory("performance","Performance",d),v=new a.Logger("Performance");v.logLevel=a.LogLevel.INFO;var m,g=function(){function e(e){if(this.window=e,!e)throw p.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay)}return e.prototype.getUrl=function(){return this.windowLocation.href.split("?")[0]},e.prototype.mark=function(e){this.performance&&this.performance.mark&&this.performance.mark(e)},e.prototype.measure=function(e,t,n){this.performance&&this.performance.measure&&this.performance.measure(e,t,n)},e.prototype.getEntriesByType=function(e){return this.performance&&this.performance.getEntriesByType?this.performance.getEntriesByType(e):[]},e.prototype.getEntriesByName=function(e){return this.performance&&this.performance.getEntriesByName?this.performance.getEntriesByName(e):[]},e.prototype.getTimeOrigin=function(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)},e.prototype.requiredApisAvailable=function(){return fetch&&Promise&&this.navigator&&this.navigator.cookieEnabled?!!o.isIndexedDBAvailable()||(v.info("IndexedDB is not supported by current browswer"),!1):(v.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1)},e.prototype.setupObserver=function(e,t){this.PerformanceObserver&&new this.PerformanceObserver((function(e){for(var n=0,r=e.getEntries();n<r.length;n++){var i=r[n];t(i)}})).observe({entryTypes:[e]})},e.getInstance=function(){return void 0===l&&(l=new e(f)),l},e}();function y(e,t){var n=e.length-t.length;if(n<0||n>1)throw p.create("invalid String merger input");for(var r=[],i=0;i<e.length;i++)r.push(e.charAt(i)),t.length>i&&r.push(t.charAt(i));return r.join("")}var b,w,_=function(){function e(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=y("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=y("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}return e.prototype.getAppId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.appId;if(!e)throw p.create("no app id");return e},e.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw p.create("no project id");return e},e.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw p.create("no api key");return e},e.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},e.getInstance=function(){return void 0===m&&(m=new e),m},e}();function E(){return b}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(w||(w={}));var S=["firebase_","google_","ga_"],k=new RegExp("^[a-zA-Z]\\w*$");function T(){var e=g.getInstance().navigator;return"serviceWorker"in e?e.serviceWorker.controller?2:3:1}function C(){switch(g.getInstance().document.visibilityState){case"visible":return w.VISIBLE;case"hidden":return w.HIDDEN;default:return w.UNKNOWN}}function O(){var e=g.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}var x=!0;function I(e){var t=function(){var e=g.getInstance().localStorage;if(!e)return;var t=e.getItem("@firebase/performance/configexpire");if(!t||(n=t,!(Number(n)>Date.now())))return;var n;var r=e.getItem("@firebase/performance/config");if(!r)return;try{return JSON.parse(r)}catch(c){return}}();return t?(P(t),Promise.resolve()):function(e){return function(){var e=_.getInstance().installationsService.getToken();return e.then((function(e){})),e}().then((function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+_.getInstance().getProjectId()+"/namespaces/fireperf:fetch?ke
2y="+_.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:"FIREBASE_INSTALLATIONS_AUTH "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:_.getInstance().getAppId(),app_version:"0.4.2",sdk_version:"0.0.1"})});return fetch(r).then((function(e){if(e.ok)return e.json();throw p.create("RC response not ok")}))})).catch((function(){v.info("Could not fetch config, will use default configs")}))}(e).then(P).then((function(e){return function(e){var t=g.getInstance().localStorage;if(!e||!t)return;t.setItem("@firebase/performance/config",JSON.stringify(e)),t.setItem("@firebase/performance/configexpire",String(Date.now()+60*_.getInstance().configTimeToLive*60*1e3))}(e)}),(function(){}))}function P(e){if(!e)return e;var t=_.getInstance(),n=e.entries||{};return void 0!==n.fpr_enabled?t.loggingEnabled="true"===String(n.fpr_enabled):t.loggingEnabled=x,n.fpr_log_source&&(t.logSource=Number(n.fpr_log_source)),n.fpr_log_endpoint_url&&(t.logEndPointUrl=n.fpr_log_endpoint_url),n.fpr_log_transport_key&&(t.transportKey=n.fpr_log_transport_key),void 0!==n.fpr_vc_network_request_sampling_rate&&(t.networkRequestsSamplingRate=Number(n.fpr_vc_network_request_sampling_rate)),void 0!==n.fpr_vc_trace_sampling_rate&&(t.tracesSamplingRate=Number(n.fpr_vc_trace_sampling_rate)),t.logTraceAfterSampling=A(t.tracesSamplingRate),t.logNetworkAfterSampling=A(t.networkRequestsSamplingRate),e}function A(e){return Math.random()<=e}var N,j=1;function R(){return j=2,N=N||function(){var e=g.getInstance().document;return new Promise((function(t){if(e&&"complete"!==e.readyState){var n=function(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()}))}().then((function(){return function(){var e=_.getInstance().installationsService.getId();return e.then((function(e){b=e})),e}()})).then((function(e){return I(e)})).then((function(){return D()}),(function(){return D()}))}function D(){j=3}var L,M=3,F=[],z=!1;function U(e){setTimeout((function(){if(0!==M)return F.length?void function(){var e=i.__spreadArrays(F);F=[];var t=e.map((function(e){return{source_extension_json_proto3:e.message,event_time_ms:String(e.eventTime)}}));(function(e,t){return function(e){var t=_.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then((function(e){return e.ok||v.info("Call to Firebase backend failed."),e.json()})).then((function(e){var n=Number(e.nextRequestWaitMillis),r=1e4;isNaN(n)||(r=Math.max(n,r));var o=e.logResponseDetails;Array.isArray(o)&&o.length>0&&"RETRY_REQUEST_LATER"===o[0].responseAction&&(F=i.__spreadArrays(t,F),v.info("Retry transport request later.")),M=3,U(r)}))})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:_.getInstance().logSource,log_event:t},e).catch((function(){F=i.__spreadArrays(e,F),M--,v.info("Tries left: "+M+"."),U(1e4)}))}():U(1e4)}),e)}function V(e){if(!e.eventTime||!e.message)throw p.create("invalid cc log");F=i.__spreadArrays(F,[e])}function B(e,t){L||(L=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.apply(void 0,t);V({message:r,eventTime:Date.now()})}}(H)),L(e,t)}function q(e){var t=_.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&g.getInstance().requiredApisAvailable()&&(e.isAuto&&C()!==w.VISIBLE||(3===j?W(e):R().then((function(){return W(e)}),(function(){return W(e)}))))}function W(e){if(E()){var t=_.getInstance();t.loggingEnabled&&t.logTraceAfterSampling&&setTimeout((function(){return B(e,1)}),0)}}function H(e,t){return 0===t?function(e){var t={url:e.url,http_method:e.httpMethod||0,http_response_code:200,response_payload_bytes:e.responsePayloadBytes,client_start_time_us:e.startTimeUs,time_to_response_initiated_us:e.timeToResponseInitiatedUs,time_to_response_completed_us:e.timeToResponseCompletedUs},n={application_info:K(),network_request_metric:t};return JSON.stringify(n)}(e):function(e){var t={name:e.name,is_auto:e.isAuto,client_start_time_us:e.startTimeUs,duration_us:e.durationUs};0!==Object.keys(e.counters).length&&(t.counters=e.counters);var n=e.getAttributes();0!==Object.keys(n).length&&(t.custom_attributes=n);var r={application_info:K(),trace_metric:t};return JSON.stringify(r)}(e)}function K(){return{google_app_id:_.getInstance().getAppId(),app_instance_id:E(),web_app_info:{sdk_version:"0.4.2",page_url:g.getInstance().getUrl(),service_worker_status:T(),visibility_state:C(),effective_connection_type:O()},application_process_state:0}}var G=["_fp","_fcp","_fid"];var $=function(){function e(e,t,n){void 0===t&&(t=!1),this.name=e,this.isAuto=t,this.state=1,this.customAttributes={},this.counters={},this.api=g.getInstance(),this.randomId=Math.floor(1e6*Math.random()),this.isAuto||(this.traceStartMark="FB-PERF-TRACE-START-"+this.randomId+"-"+this.name,this.traceStopMark="FB-PERF-TRACE-STOP-"+this.randomId+"-"+this.name,this.traceMeasure=n||"FB-PERF-TRACE-MEASURE-"+this.randomId+"-"+this.name,n&&this.calculateTraceMetrics())}return e.prototype.start=function(){if(1!==this.state)throw p.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw p.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),q(this)},e.prototype.record=function(e,t,n){if(e<=0)throw p.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw p.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(1e3*t),this.startTimeUs=Math.floor(1e3*e),n&&n.attributes&&(this.customAttributes=i.__assign({},n.attributes)),n&&n.metrics)for(var r=0,o=Object.keys(n.metrics);r<o.length;r++){var a=o[r];isNaN(Number(n.metrics[a]))||(this.counters[a]=Number(Math.floor(n.metrics[a])))}q(this)},e.prototype.incrementMetric=function(e,t){void 0===t&&(t=1),void 0===this.counters[e]?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)},e.prototype.putMetric=function(e,t){if(!function(e,t){return!(0===e.length||e.length>100)&&(t&&t.startsWith("_wt_")&&G.indexOf(e)>-1||!e.startsWith("_"))}(e,this.name))throw p.create("invalid custom metric name",{customMetricName:e});this.counters[e]=function(e){var t=Math.floor(e);return t<e&&v.info("Metric value should be an Integer, setting the value as : "+t+"."),t}(t)}
2,e.prototype.getMetric=function(e){return this.counters[e]||0},e.prototype.putAttribute=function(e,t){var n=function(e){return!(0===e.length||e.length>40)&&(!S.some((function(t){return e.startsWith(t)}))&&!!e.match(k))}(e),r=function(e){return 0!==e.length&&e.length<=100}(t);if(n&&r)this.customAttributes[e]=t;else{if(!n)throw p.create("invalid attribute name",{attributeName:e});if(!r)throw p.create("invalid attribute value",{attributeValue:t})}},e.prototype.getAttribute=function(e){return this.customAttributes[e]},e.prototype.removeAttribute=function(e){void 0!==this.customAttributes[e]&&delete this.customAttributes[e]},e.prototype.getAttributes=function(){return i.__assign({},this.customAttributes)},e.prototype.setStartTime=function(e){this.startTimeUs=e},e.prototype.setDuration=function(e){this.durationUs=e},e.prototype.calculateTraceMetrics=function(){var e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(1e3*t.duration),this.startTimeUs=Math.floor(1e3*(t.startTime+this.api.getTimeOrigin())))},e.createOobTrace=function(t,n,r){var i=g.getInstance().getUrl();if(i){var o=new e("_wt_"+i,!0),a=Math.floor(1e3*g.getInstance().getTimeOrigin());o.setStartTime(a),t&&t[0]&&(o.setDuration(Math.floor(1e3*t[0].duration)),o.putMetric("domInteractive",Math.floor(1e3*t[0].domInteractive)),o.putMetric("domContentLoadedEventEnd",Math.floor(1e3*t[0].domContentLoadedEventEnd)),o.putMetric("loadEventEnd",Math.floor(1e3*t[0].loadEventEnd)));if(n){var s=n.find((function(e){return"first-paint"===e.name}));s&&s.startTime&&o.putMetric("_fp",Math.floor(1e3*s.startTime));var u=n.find((function(e){return"first-contentful-paint"===e.name}));u&&u.startTime&&o.putMetric("_fcp",Math.floor(1e3*u.startTime)),r&&o.putMetric("_fid",Math.floor(1e3*r))}q(o)}},e.createUserTimingTrace=function(t){q(new e(t,!1,t))},e}();function Q(e){var t=e;if(t&&void 0!==t.responseStart){var n=g.getInstance().getTimeOrigin(),r=Math.floor(1e3*(t.startTime+n)),i=t.responseStart?Math.floor(1e3*(t.responseStart-t.startTime)):void 0,o=Math.floor(1e3*(t.responseEnd-t.startTime));!function(e){var t=_.getInstance();if(t.instrumentationEnabled){var n=e.url,r=t.logEndPointUrl.split("?")[0],i=t.flTransportEndpointUrl.split("?")[0];n!==r&&n!==i&&t.loggingEnabled&&t.logNetworkAfterSampling&&setTimeout((function(){return B(e,0)}),0)}}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o})}}function Y(){E()&&(setTimeout((function(){return function(){var e=g.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");if(e.onFirstInputDelay){var r=setTimeout((function(){$.createOobTrace(t,n),r=void 0}),5e3);e.onFirstInputDelay((function(e){r&&(clearTimeout(r),$.createOobTrace(t,n,e))}))}else $.createOobTrace(t,n)}()}),0),setTimeout((function(){return function(){for(var e=g.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++){Q(r[n])}e.setupObserver("resource",Q)}()}),0),setTimeout((function(){return function(){for(var e=g.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++){X(r[n])}e.setupObserver("measure",X)}()}),0))}function X(e){var t=e.name;"FB-PERF-TRACE-MEASURE"!==t.substring(0,"FB-PERF-TRACE-MEASURE".length)&&$.createUserTimingTrace(t)}var J=function(){function e(e){this.app=e,g.getInstance().requiredApisAvailable()&&o.validateIndexedDBOpenable().then((function(e){e&&(z||(U(5500),z=!0),R().then(Y,Y))})).catch((function(e){v.info("Environment doesn't support IndexedDB: "+e)}))}return e.prototype.trace=function(e){return new $(e)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return _.getInstance().instrumentationEnabled},set:function(e){_.getInstance().instrumentationEnabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return _.getInstance().dataCollectionEnabled},set:function(e){_.getInstance().dataCollectionEnabled=e},enumerable:!1,configurable:!0}),e}();function Z(e){var t=function(e,t){if("[DEFAULT]"!==e.name)throw p.create("FB not default");if("undefined"===typeof window)throw p.create("no window");return function(e){f=e}(window),_.getInstance().firebaseAppInstance=e,_.getInstance().installationsService=t,new J(e)};e.INTERNAL.registerComponent(new s.Component("performance",(function(e){var n=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();return t(n,r)}),"PUBLIC")),e.registerVersion("@firebase/performance","0.4.2")}Z(h.default),t.registerPerformance=Z},function(e,t,n){"use strict";n.r(t),n.d(t,"factory",(function(){return M})),n.d(t,"getGlobalVars",(function(){return D})),n.d(t,"registerAnalytics",(function(){return F})),n.d(t,"resetGlobalVars",(function(){return R})),n.d(t,"settings",(function(){return L}));var r,i,o=n(1),a=n(17),s=n.n(a),u=(n(52),n(37)),c=n(14),l=n(21),f="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(r||(r={})),function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(i||(i={}));var h,d=new u.Logger("@firebase/analytics");function p(e,t,n,i,a,s){return Object(o.__awaiter)(this,void 0,void 0,(function(){var u,c,l,f;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:u=i[a],o.label=1;case 1:return o.trys.push([1,7,,8]),u?[4,t[u]]:[3,3];case 2:return o.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return c=o.sent(),(l=c.find((function(e){return e.measurementId===a})))?[4,t[l.appId]]:[3,6];case 5:o.sent(),o.label=6;case 6:return[3,8];case 7:return f=o.sent(),d.error(f),[3,8];case 8:return e(r.CONFIG,a,s),[2]}}))}))}function v(e,t,n,i,a){return Object(o.__awaiter)(this,void 0,void 0,(function(){var s,u,c,l,f,h,p,v;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,4,,5]),s=[],a&&a.send_to?(u=a.send_to,Array.isArray(u)||(u=[u]),[4,Promise.all(n)]):[3,2];case 1:for(c=o.sent(),l=function(e){var n=c.find((function(t){return t.measurementId===e})),r=n&&t[n.appId];if(!r)return s=[],"break";s.push(r)},f=0,h=u;f<h.length&&(p=h[f],"break"!==l(p));f++);o.label=2;case 2:return 0===s.length&&(s=Object.values(t)),[4,Promise.all(s)];case 3:return o.sent(),e(r.EVENT,i,a||{}),[3,5];case 4:return v=o.sent(),d.error(v),[3,5];case 5:return[2]}}
2))}))}function m(e,t,n,i,a){var s=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window[i].push(arguments)};return window[a]&&"function"===typeof window[a]&&(s=window[a]),window[a]=function(e,t,n,i){return function(a,s,u){return Object(o.__awaiter)(this,void 0,void 0,(function(){var c;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,6,,7]),a!==r.EVENT?[3,2]:[4,v(e,t,n,s,u)];case 1:return o.sent(),[3,5];case 2:return a!==r.CONFIG?[3,4]:[4,p(e,t,n,i,s,u)];case 3:return o.sent(),[3,5];case 4:e(r.SET,s),o.label=5;case 5:return[3,7];case 6:return c=o.sent(),d.error(c),[3,7];case 7:return[2]}}))}))}}(s,e,t,n),{gtagCore:s,wrappedGtag:window[a]}}var g=((h={})["already-exists"]="A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.",h["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",h["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",h["invalid-analytics-context"]="Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",h["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",h["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",h["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",h["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',h["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',h),y=new c.ErrorFactory("analytics","Analytics",g),b=new(function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=1e3),this.throttleMetadata=e,this.intervalMillis=t}return e.prototype.getThrottleMetadata=function(e){return this.throttleMetadata[e]},e.prototype.setThrottleMetadata=function(e,t){this.throttleMetadata[e]=t},e.prototype.deleteThrottleMetadata=function(e){delete this.throttleMetadata[e]},e}());function w(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function _(e){var t;return Object(o.__awaiter)(this,void 0,void 0,(function(){var n,r,i,a,s,u,c;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return n=e.appId,r=e.apiKey,i={method:"GET",headers:w(r)},a="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),[4,fetch(a,i)];case 1:if(200===(s=o.sent()).status||304===s.status)return[3,6];u="",o.label=2;case 2:return o.trys.push([2,4,,5]),[4,s.json()];case 3:return c=o.sent(),(null===(t=c.error)||void 0===t?void 0:t.message)&&(u=c.error.message),[3,5];case 4:return o.sent(),[3,5];case 5:throw y.create("config-fetch-failed",{httpStatus:s.status,responseMessage:u});case 6:return[2,s.json()]}}))}))}function E(e,t,n,r){var i=t.throttleEndTimeMillis,a=t.backoffCount;return void 0===r&&(r=b),Object(o.__awaiter)(this,void 0,void 0,(function(){var t,s,u,l,f,h,p;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:t=e.appId,s=e.measurementId,o.label=1;case 1:return o.trys.push([1,3,,4]),[4,S(n,i)];case 2:return o.sent(),[3,4];case 3:if(u=o.sent(),s)return d.warn("Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+u.message+"]"),[2,{appId:t,measurementId:s}];throw u;case 4:return o.trys.push([4,6,,7]),[4,_(e)];case 5:return l=o.sent(),r.deleteThrottleMetadata(t),[2,l];case 6:if(!function(e){if(!(e instanceof c.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(f=o.sent())){if(r.deleteThrottleMetadata(t),s)return d.warn("Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID "+s+' provided in the "measurementId" field in the local Firebase config. ['+f.message+"]"),[2,{appId:t,measurementId:s}];throw f}
2return h=503===Number(f.httpStatus)?Object(c.calculateBackoffMillis)(a,r.intervalMillis,30):Object(c.calculateBackoffMillis)(a,r.intervalMillis),p={throttleEndTimeMillis:Date.now()+h,backoffCount:a+1},r.setThrottleMetadata(t,p),d.debug("Calling attemptFetch again in "+h+" millis"),[2,E(e,p,n,r)];case 7:return[2]}}))}))}function S(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener((function(){clearTimeout(o),r(y.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var k=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)},e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}();function T(e,t,n,i,a){return Object(o.__awaiter)(this,void 0,void 0,(function(){var s,u,l,f,h,p,v;return Object(o.__generator)(this,(function(m){switch(m.label){case 0:return(s=function(e,t,n){return void 0===t&&(t=b),Object(o.__awaiter)(this,void 0,void 0,(function(){var r,i,a,s,u,c,l=this;return Object(o.__generator)(this,(function(f){if(r=e.options,i=r.appId,a=r.apiKey,s=r.measurementId,!i)throw y.create("no-app-id");if(!a){if(s)return[2,{measurementId:s,appId:i}];throw y.create("no-api-key")}return u=t.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},c=new k,setTimeout((function(){return Object(o.__awaiter)(l,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){return c.abort(),[2]}))}))}),void 0!==n?n:6e4),[2,E({appId:i,apiKey:a,measurementId:s},u,c,t)]}))}))}(e)).then((function(t){n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&d.warn("The measurement ID in the local Firebase config ("+e.options.measurementId+") does not match the measurement ID fetched from the server ("+t.measurementId+"). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.")})).catch((function(e){return d.error(e)})),t.push(s),u=function(){return Object(o.__awaiter)(this,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return Object(c.isIndexedDBAvailable)()?[3,1]:(d.warn(y.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),[2,!1]);case 1:return t.trys.push([1,3,,4]),[4,Object(c.validateIndexedDBOpenable)()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),d.warn(y.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}}))}))}().then((function(e){return e?i.getId():void 0})),[4,Promise.all([s,u])];case 1:return l=m.sent(),f=l[0],h=l[1],a("js",new Date),(v={}).origin="firebase",v.update=!0,p=v,null!=h&&(p.firebase_id=h),a(r.CONFIG,f.measurementId,p),[2,f.measurementId]}}))}))}var C,O,x={},I=[],P={},A="dataLayer",N="gtag",j=!1;function R(e,t,n){void 0===e&&(e=!1),void 0===t&&(t={}),void 0===n&&(n=[]),j=e,x=t,I=n,A="dataLayer",N="gtag"}function D(){return{initializationPromisesMap:x,dynamicConfigPromisesList:I}}function L(e){if(j)throw y.create("already-initialized");e.dataLayerName&&(A=e.dataLayerName),e.gtagName&&(N=e.gtagName)}function M(e,t){!function(){var e=[];if(Object(c.isBrowserExtension)()&&e.push("This is a browser extension environment."),Object(c.areCookiesEnabled)()||e.push("Cookies are not available."),e.length>0){var t=e.map((function(e,t){return"("+(t+1)+") "+e})).join(" "),n=y.create("invalid-analytics-context",{errorInfo:t});d.warn(n.message)}}();var n=e.options.appId;if(!n)throw y.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw y.create("no-api-key");d.warn('The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID '+e.options.measurementId+' provided in the "measurementId" field in the local Firebase config.')}if(null!=x[n])throw y.create("already-exists",{id:n});if(!j){(function(){for(var e=window.document.getElementsByTagName("script"),t=0,n=Object.values(e);t<n.length;t++){var r=n[t];if(r.src&&r.src.includes(f))return r}return null})()||function(e){var t=document.createElement("script");t.src=f+"?l="+e,t.async=!0,document.head.appendChild(t)}(A),function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(A);var i=m(x,I,P,A,N),a=i.wrappedGtag,s=i.gtagCore;O=a,C=s,j=!0}return x[n]=T(e,I,P,t,C),{app:e,logEvent:function(e,t,i){(function(e,t,n,i,a){return Object(o.__awaiter)(this,void 0,void 0,(function(){var s,u;return Object(o.__generator)(this,(function(c){switch(c.label){case 0:return a&&a.global?(e(r.EVENT,n,i),[2]):[3,1];case 1:return[4,t];case 2:s=c.sent(),u=Object(o.__assign)(Object(o.__assign)({},i),{send_to:s}
2),e(r.EVENT,n,u),c.label=3;case 3:return[2]}}))}))})(O,x[n],e,t,i).catch((function(e){return d.error(e)}))},setCurrentScreen:function(e,t){(function(e,t,n,i){return Object(o.__awaiter)(this,void 0,void 0,(function(){var a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return i&&i.global?(e(r.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:a=o.sent(),e(r.CONFIG,a,{update:!0,screen_name:n}),o.label=3;case 3:return[2]}}))}))})(O,x[n],e,t).catch((function(e){return d.error(e)}))},setUserId:function(e,t){(function(e,t,n,i){return Object(o.__awaiter)(this,void 0,void 0,(function(){var a;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:return i&&i.global?(e(r.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:a=o.sent(),e(r.CONFIG,a,{update:!0,user_id:n}),o.label=3;case 3:return[2]}}))}))})(O,x[n],e,t).catch((function(e){return d.error(e)}))},setUserProperties:function(e,t){(function(e,t,n,i){return Object(o.__awaiter)(this,void 0,void 0,(function(){var a,s,u,c,l;return Object(o.__generator)(this,(function(o){switch(o.label){case 0:if(!i||!i.global)return[3,1];for(a={},s=0,u=Object.keys(n);s<u.length;s++)c=u[s],a["user_properties."+c]=n[c];return e(r.SET,a),[2,Promise.resolve()];case 1:return[4,t];case 2:l=o.sent(),e(r.CONFIG,l,{update:!0,user_properties:n}),o.label=3;case 3:return[2]}}
2))}))})(O,x[n],e,t).catch((function(e){return d.error(e)}))},setAnalyticsCollectionEnabled:function(e){(function(e,t){return Object(o.__awaiter)(this,void 0,void 0,(function(){var n;return Object(o.__generator)(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),window["ga-disable-"+n]=!t,[2]}}))}))})(x[n],e).catch((function(e){return d.error(e)}))},INTERNAL:{delete:function(){return delete x[n],Promise.resolve()}}}}function F(e){e.INTERNAL.registerComponent(new l.Component("analytics",(function(e){return M(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:L,EventName:i,isSupported:z})),e.INTERNAL.registerComponent(new l.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider("analytics").getImmediate().logEvent}}catch(t){throw y.create("interop-component-reg-failed",{reason:t})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.6.0")}function z(){return Object(o.__awaiter)(this,void 0,void 0,(function(){return Object(o.__generator)(this,(function(e){switch(e.label){case 0:if(Object(c.isBrowserExtension)())return[2,!1];if(!Object(c.areCookiesEnabled)())return[2,!1];if(!Object(c.isIndexedDBAvailable)())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Object(c.validateIndexedDBOpenable)()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!1];case 4:return[2]}}
2))}))}F(s.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17);n(52);var i=n(1),o=n(14),a=n(37),s=n(21);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c,l=u(r),f=function(){function e(e,t,n,r){this.client=e,this.storage=t,this.storageCache=n,this.logger=r}return e.prototype.isCachedDataFresh=function(e,t){if(!t)return this.logger.debug("Config fetch cache check. Cache unpopulated."),!1;var n=Date.now()-t,r=n<=e;return this.logger.debug("Config fetch cache check. Cache age millis: "+n+". Cache max age millis (minimumFetchIntervalMillis setting): "+e+". Is cache hit: "+r+"."),r},e.prototype.fetch=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=i.sent(),n=t[0],(r=t[1])&&this.isCachedDataFresh(e.cacheMaxAgeMillis,n)?[2,r]:(e.eTag=r&&r.eTag,[4,this.client.fetch(e)]);case 2:return o=i.sent(),a=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===o.status&&a.push(this.storage.setLastSuccessfulFetchResponse(o)),[4,Promise.all(a)];case 3:return i.sent(),[2,o]}}))}))},e}(),h=((c={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",c["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",c["registration-api-key"]="Undefined API key. Check Firebase app initialization.",c["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",c["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",c["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",c["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",c["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",c["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",c["fetch-timeout"]='The config fetch request timed out. Configure timeout using "fetchTimeoutMillis" SDK setting.',c["fetch-throttle"]='The config fetch request timed out while in an exponential backoff state. Configure timeout using "fetchTimeoutMillis" SDK setting. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.',c["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",c["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",c),d=new o.ErrorFactory("remoteconfig","Remote Config",h);var p=function(){function e(e,t,n,r,i,o){this.firebaseInstallations=e,this.sdkVersion=t,this.namespace=n,this.projectId=r,this.apiKey=i,this.appId=o}return e.prototype.fetch=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n,r,o,a,s,u,c,l,f,h,p,v,m,g,y,b,w,_;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=i.sent(),n=t[0],r=t[1],o=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",a=o+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?key="+this.apiKey,s={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},u={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:(void 0===E&&(E=navigator),E.languages&&E.languages[0]||E.language)},c={method:"POST",headers:s,body:JSON.stringify(u)},l=fetch(a,c),f=new Promise((function(t,n){e.signal.addEventListener((function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)}))})),i.label=2;case 2:return i.trys.push([2,5,,6]),[4,Promise.race([l,f])];case 3:return i.sent(),[4,l];case 4:return h=i.sent(),[3,6];case 5:throw p=i.sent(),v="fetch-client-network","AbortError"===p.name&&(v="fetch-timeout"),d.create(v,{originalErrorMessage:p.message});case 6:if(m=h.status,g=h.headers.get("ETag")||void 0,200!==h.status)return[3,11];w=void 0,i.label=7;case 7:return i.trys.push([7,9,,10]),[4,h.json()];case 8:return w=i.sent(),[3,10];case 9:throw _=i.sent(),d.create("fetch-client-parse",{originalErrorMessage:_.message});case 10:y=w.entries,b=w.state,i.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===b?m=500:"NO_CHANGE"===b?m=304:"NO_TEMPLATE"!==b&&"EMPTY_CONFIG"!==b||(y={}),304!==m&&200!==m)throw d.create("fetch-status",{httpStatus:m});return[2,{status:m,eTag:g,config:y}]}var E}))}))},e}(),v=function(){function e(){this.listeners=[]}return e.prototype.addEventListener=function(e){this.listeners.push(e)}
2,e.prototype.abort=function(){this.listeners.forEach((function(e){return e()}))},e}(),m=["1","true","t","yes","y","on"],g=function(){function e(e,t){void 0===t&&(t=""),this._source=e,this._value=t}return e.prototype.asString=function(){return this._value},e.prototype.asBoolean=function(){return"static"!==this._source&&m.indexOf(this._value.toLowerCase())>=0},e.prototype.asNumber=function(){if("static"===this._source)return 0;var e=Number(this._value);return isNaN(e)&&(e=0),e},e.prototype.getSource=function(){return this._source},e}(),y=function(){function e(e,t,n,r,i){this.app=e,this._client=t,this._storageCache=n,this._storage=r,this._logger=i,this._isInitializationComplete=!1,this.settings={fetchTimeoutMillis:6e4,minimumFetchIntervalMillis:432e5},this.defaultConfig={}}return e.prototype.setLogLevel=function(e){switch(e){case"debug":this._logger.logLevel=a.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=a.LogLevel.SILENT;break;default:this._logger.logLevel=a.LogLevel.ERROR}},Object.defineProperty(e.prototype,"fetchTimeMillis",{get:function(){return this._storageCache.getLastSuccessfulFetchTimestampMillis()||-1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastFetchStatus",{get:function(){return this._storageCache.getLastFetchStatus()||"no-fetch-yet"},enumerable:!1,configurable:!0}),e.prototype.activate=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,Promise.all([this._storage.getLastSuccessfulFetchResponse(),this._storage.getActiveConfigEtag()])];case 1:return e=r.sent(),t=e[0],n=e[1],t&&t.config&&t.eTag&&t.eTag!==n?[4,Promise.all([this._storageCache.setActiveConfig(t.config),this._storage.setActiveConfigEtag(t.eTag)])]:[2,!1];case 2:return r.sent(),[2,!0]}}))}))},e.prototype.ensureInitialized=function(){var e=this;return this._initializePromise||(this._initializePromise=this._storageCache.loadFromStorage().then((function(){e._isInitializationComplete=!0}))),this._initializePromise},e.prototype.fetch=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n,r=this;return i.__generator(this,(function(a){switch(a.label){case 0:e=new v,setTimeout((function(){return i.__awaiter(r,void 0,void 0,(function(){return i.__generator(this,(function(t){return e.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),a.label=1;case 1:return a.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return a.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return a.sent(),[3,6];case 4:return t=a.sent(),u="fetch-throttle",n=(s=t)instanceof o.FirebaseError&&-1!==s.code.indexOf(u)?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw a.sent(),t;case 6:return[2]}var s,u}))}))},e.prototype.fetchAndActivate=function(){return i.__awaiter(this,void 0,void 0,(function(){return i.__generator(this,(function(e){switch(e.label){case 0:return[4,this.fetch()];case 1:return e.sent(),[2,this.activate()]}}))}))},e.prototype.getAll=function(){var e=this;return function(e,t){void 0===e&&(e={});void 0===t&&(t={});return Object.keys(i.__assign(i.__assign({},e),t))}(this._storageCache.getActiveConfig(),this.defaultConfig).reduce((function(t,n){return t[n]=e.getValue(n),t}),{})},e.prototype.getBoolean=function(e){return this.getValue(e).asBoolean()},e.prototype.getNumber=function(e){return this.getValue(e).asNumber()},e.prototype.getString=function(e){return this.getValue(e).asString()},e.prototype.getValue=function(e){this._isInitializationComplete||this._logger.debug('A value was requested for key "'+e+'" before SDK initialization completed. Await on ensureInitialized if the intent was to get a previously activated value.');var t=this._storageCache.getActiveConfig();return t&&void 0!==t[e]?new g("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new g("default",String(this.defaultConfig[e])):(this._logger.debug('Returning static value for key "'+e+'". Define a default or remote value if this is unintentional.'),new g("static"))},e}();function b(e,t){var n=e.target.error||void 0;return d.create(t,{originalErrorMessage:n&&n.message})}var w=function(){function e(e,t,n,r){void 0===r&&(r=new Promise((function(e,t){var n=indexedDB.open("firebase_remote_config",1);n.onerror=function(e){t(b(e,"storage-open"))},n.onsuccess=function(t){e(t.target.result)},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore("app_namespace_store",{keyPath:"compositeKey"})}}}))),this.appId=e,this.appName=t,this.namespace=n,this.openDbPromise=r}return e.prototype.getLastFetchStatus=function(){return this.get("last_fetch_status")},e.prototype.setLastFetchStatus=function(e){return this.set("last_fetch_status",e)},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.get("last_successful_fetch_timestamp_millis")},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.set("last_successful_fetch_timestamp_millis",e)},e.prototype.getLastSuccessfulFetchResponse=function(){return this.get("last_successful_fetch_response")},e.prototype.setLastSuccessfulFetchResponse=function(e){return this.set("last_successful_fetch_response",e)},e.prototype.getActiveConfig=function(){return this.get("active_config")},e.prototype.setActiveConfig=function(e){return this.set("active_config",e)},e.prototype.getActiveConfigEtag=function(){return this.get("active_config_etag")},e.prototype.setActiveConfigEtag=function(e){return this.set("active_config_etag",e)},e.prototype.getThrottleMetadata=function(){return this.get("throttle_metadata")},e.prototype.setThrottleMetadata=function(e){return this.set("throttle_metadata",e)},e.prototype.deleteThrottleMetadata=function(){return this.delete("throttle_metadata")},e.prototype.get=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var o=t.transaction(["app_namespace_store"],"readonly").objectStore("app_namespace_store"),a=n.createCompositeKey(e);try{var s=o.get(a);s.onerror=function(e){i(b(e,"storage-get"))},s.onsuccess=function(e){var t=e.target.result;r(t?t.value:void 0)}}catch(u){i(d.create("storage-get",{originalErrorMessage:u&&u.message}))}}))]}}))}))},e.prototype.set=function(e,t){return i.__awaiter(this,void 0,void 0,(function(){var n,r=this;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return n=i.sent(),[2,new Promise((function(i,o){var a=n.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),s=r.createCompositeKey(e);try{var u=a.put({compositeKey:s,value:t});u.onerror=function(e){o(b(e,"storage-set"))},u.onsuccess=function(){i()}}catch(c){o(d.create("storage-set",{originalErrorMessage:c&&c.message}))}}))]}}))}))},e.prototype.delete=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t,n=this;return i.__generator(this,(function(r){switch(r.label){case 0:return[4,this.openDbPromise];case 1:return t=r.sent(),[2,new Promise((function(r,i){var o=t.transaction(["app_namespace_store"],"readwrite").objectStore("app_namespace_store"),a=n.createCompositeKey(e);try{var s=o.delete(a);s.onerror=function(e){i(b(e,"storage-delete"))},s.onsuccess=function(){r()}}catch(u){i(d.create("storage-delete",{originalErrorMessage:u&&u.message}))}}))]}}))}))},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),_=function(){function e(e){this.storage=e}return e.prototype.getLastFetchStatus=function(){return this.lastFetchStatus},e.prototype.getLastSuccessfulFetchTimestampMillis=function(){return this.lastSuccessfulFetchTimestampMillis},e.prototype.getActiveConfig=function(){return this.activeConfig},e.prototype.loadFromStorage=function(){return i.__awaiter(this,void 0,void 0,(function(){var e,t,n,r,o,a;return i.__generator(this,(function(i){switch(i.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(r=i.sent())&&(this.lastFetchStatus=r),[4,t];case 2:return(o=i.sent())&&(this.lastSuccessfulFetchTimestampMillis=o),[4,n];case 3:return(a=i.sent())&&(this.activeConfig=a),[2]}}))}))},e.prototype.setLastFetchStatus=function(e){return this.lastFetchStatus=e,this.storage.setLastFetchStatus(e)},e.prototype.setLastSuccessfulFetchTimestampMillis=function(e){return this.lastSuccessfulFetchTimestampMillis=e,this.storage.setLastSuccessfulFetchTimestampMillis(e)},e.prototype.setActiveConfig=function(e){return this.activeConfig=e,this.storage.setActiveConfig(e)},e}();function E(e,t){return new Promise((function(n,r){var i=Math.max(t-Date.now(),0),o=setTimeout(n,i);e.addEventListener((function(){clearTimeout(o),r(d.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var S=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return i.__awaiter(this,void 0,void 0,(function(){var t;return i.__generator(this,(function(n){switch(n.label){case 0:return[4,this.storage.getThrottleMetadata()];case 1:return t=n.sent()||{backoffCount:0,throttleEndTimeMillis:Date.now()},[2,this.attemptFetch(e,t)]}}))}))},e.prototype.attemptFetch=function(e,t){var n=t.throttleEndTimeMillis,r=t.backoffCount;return i.__awaiter(this,void 0,void 0,(function(){var t,a,s;return i.__generator(this,(function(i){switch(i.label){case 0:return[4,E(e.signal,n)];case 1:i.sent(),i.label=2;case 2:return i.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=i.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return i.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof o.FirebaseError))return!1;var t=Number(e.httpStatus);return 429===t||500===t||503===t||504===t}(a=i.sent()))throw a;return s={throttleEndTimeMillis:Date.now()+o.calculateBackoffMillis(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(s)];case 6:return i.sent(),[2,this.attemptFetch(e,s)];case 7:return[2]}}
vendor: 7,381 bytes, line 2
2))}))},e}(),k="@firebase/remote-config";function T(e){e.INTERNAL.registerComponent(new s.Component("remoteConfig",(function(t,n){var r=t.getProvider("app").getImmediate(),i=t.getProvider("installations").getImmediate();if("undefined"===typeof window)throw d.create("registration-window");var o=r.options,s=o.projectId,u=o.apiKey,c=o.appId;if(!s)throw d.create("registration-project-id");if(!u)throw d.create("registration-api-key");if(!c)throw d.create("registration-app-id");n=n||"firebase";var l=new w(c,r.name,n),h=new _(l),v=new a.Logger(k);v.logLevel=a.LogLevel.ERROR;var m=new p(i,e.SDK_VERSION,n,s,u,c),g=new S(m,l),b=new f(g,l,h,v),E=new y(r,b,h,l,v);return E.ensureInitialized(),E}),"PUBLIC").setMultipleInstances(!0)),e.registerVersion(k,"0.1.28")}T(l.default),t.registerRemoteConfig=T},function(e,t,n){"use strict";var r=n(23),i=n(72),o=n(165),a=n(78);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(75));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(79),u.CancelToken=n(178),u.isCancel=n(74),u.all=function(e){return Promise.all(e)},u.spread=n(179),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(23),i=n(73),o=n(166),a=n(167),s=n(78);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(23);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(23),i=n(168),o=n(74),a=n(75);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(23);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(77);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(173),i=n(174);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(23),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(23);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(79);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){(function(e,r){var i;(function(){var o="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],u="[object Arguments]",c="[object Array]",l="[object Boolean]",f="[object Date]",h="[object Error]",d="[object Function]",p="[object GeneratorFunction]",v="[object Map]",m="[object Number]",g="[object Object]",y="[object RegExp]",b="[object Set]",w="[object String]",_="[object Symbol]",E="[object WeakMap]",S="[object ArrayBuffer]",k="[object DataView]",T="[object Float32Array]",C="[object Float64Array
vendor: 40,614 bytes, line 2
2]",O="[object Int8Array]",x="[object Int16Array]",I="[object Int32Array]",P="[object Uint8Array]",A="[object Uint16Array]",N="[object Uint32Array]",j=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,D=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,M=/[&<>"']/g,F=RegExp(L.source),z=RegExp(M.source),U=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,G=RegExp(K.source),$=/^\s+|\s+$/g,Q=/^\s+/,Y=/\s+$/,X=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,J=/\{\n\/\* \[wrapped with (.+)\] \*/,Z=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,ne=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,re=/\w*$/,ie=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ue=/^(?:0|[1-9]\d*)$/,ce=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,he="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\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",pe="[\\ud800-\\udfff]",ve="["+de+"]",me="["+he+"]",ge="\\d+",ye="[\\u2700-\\u27bf]",be="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+de+ge+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",ke="[\\ud800-\\udbff][\\udc00-\\udfff]",Te="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+be+"|"+we+")",Oe="(?:"+Te+"|"+we+")",xe="(?:"+me+"|"+_e+")"+"?",Ie="[\\ufe0e\\ufe0f]?"+xe+("(?:\\u200d(?:"+[Ee,Se,ke].join("|")+")[\\ufe0e\\ufe0f]?"+xe+")*"),Pe="(?:"+[ye,Se,ke].join("|")+")"+Ie,Ae="(?:"+[Ee+me+"?",me,Se,ke,pe].join("|")+")",Ne=RegExp("['\u2019]","g"),je=RegExp(me,"g"),Re=RegExp(_e+"(?="+_e+")|"+Ae+Ie,"g"),De=RegExp([Te+"?"+be+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[ve,Te,"$"].join("|")+")",Oe+"+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[ve,Te+Ce,"$"].join("|")+")",Te+"?"+Ce+"+(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Te+"+(?:['\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_])",ge,Pe].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+he+"\\ufe0e\\ufe0f]"),Me=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["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"],ze=-1,Ue={};Ue[T]=Ue[C]=Ue[O]=Ue[x]=Ue[I]=Ue[P]=Ue["[object Uint8ClampedArray]"]=Ue[A]=Ue[N]=!0,Ue[u]=Ue[c]=Ue[S]=Ue[l]=Ue[k]=Ue[f]=Ue[h]=Ue[d]=Ue[v]=Ue[m]=Ue[g]=Ue[y]=Ue[b]=Ue[w]=Ue[E]=!1;var Ve={};Ve[u]=Ve[c]=Ve[S]=Ve[k]=Ve[l]=Ve[f]=Ve[T]=Ve[C]=Ve[O]=Ve[x]=Ve[I]=Ve[v]=Ve[m]=Ve[g]=Ve[y]=Ve[b]=Ve[w]=Ve[_]=Ve[P]=Ve["[object Uint8ClampedArray]"]=Ve[A]=Ve[N]=!0,Ve[h]=Ve[d]=Ve[E]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},qe=parseFloat,We=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ke="object"==typeof self&&self&&self.Object===Object&&self,Ge=He||Ke||Function("return this")(),$e=t&&!t.nodeType&&t,Qe=$e&&"object"==typeof r&&r&&!r.nodeType&&r,Ye=Qe&&Qe.exports===$e,Xe=Ye&&He.process,Je=function(){try{var e=Qe&&Qe.require&&Qe.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(t){}}(),Ze=Je&&Je.isArrayBuffer,et=Je&&Je.isDate,tt=Je&&Je.isMap,nt=Je&&Je.isRegExp,rt=Je&&Je.isSet,it=Je&&Je.isTypedArray;function ot(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 at(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function st(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function ut(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function lt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function ft(e,t){return!!(null==e?0:e.length)&&_t(e,t,0)>-1}function ht(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function dt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function pt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function vt(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function mt(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var yt=Tt("length");function bt(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function wt(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function _t(e,t,n){return t===t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):wt(e,St,n)}function Et(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function St(e){return e!==e}function kt(e,t){var n=null==e?0:e.length;return n?xt(e,t)/n:NaN}function Tt(e){return function(t){return null==t?void 0:t[e]}}function Ct(e){return function(t){return null==e?void 0:e[t]}}function Ot(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function xt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}function It(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Pt(e){return function(t){return e(t)}}function At(e,t){return dt(t,(function(t){return e[t]}))}function Nt(e,t){return e.has(t)}function jt(e,t){for(var n=-1,r=e.length;++n<r&&_t(t,e[n],0)>-1;);return n}function Rt(e,t){for(var n=e.length;n--&&_t(t,e[n],0)>-1;);return n}function Dt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Lt=Ct({"\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"}),Mt=Ct({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+Be[e]}function zt(e){return Le.test(e)}function Ut(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Vt(e,t){return function(n){return e(t(n))}}function Bt(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[i++]=n)}return o}function qt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Wt(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function Ht(e){return zt(e)?function(e){var t=Re.lastIndex=0;for(;Re.test(e);)++t;return t}(e):yt(e)}function Kt(e){return zt(e)?function(e){return e.match(Re)||[]}(e):function(e){return e.split("")}(e)}var Gt=Ct({"&":"&","<":"<",">":">",""":'"',"'":"'"});var $t=function e(t){var n=(t=null==t?Ge:$t.defaults(Ge.Object(),t,$t.pick(Ge,Fe))).Array,r=t.Date,i=t.Error,he=t.Function,de=t.Math,pe=t.Object,ve=t.RegExp,me=t.String,ge=t.TypeError,ye=n.prototype,be=he.prototype,we=pe.prototype,_e=t["__core-js_shared__"],Ee=be.toString,Se=we.hasOwnProperty,ke=0,Te=function(){var e=/[^.]+$/.exec(_e&&_e.keys&&_e.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ce=we.toString,Oe=Ee.call(pe),xe=Ge._,Ie=ve("^"+Ee.call(Se).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pe=Ye?t.Buffer:void 0,Ae=t.Symbol,Re=t.Uint8Array,Le=Pe?Pe.allocUnsafe:void 0,Be=Vt(pe.getPrototypeOf,pe),He=pe.create,Ke=we.propertyIsEnumerable,$e=ye.splice,Qe=Ae?Ae.isConcatSpreadable:void 0,Xe=Ae?Ae.iterator:void 0,Je=Ae?Ae.toStringTag:void 0,yt=function(){try{var e=Ji(pe,"defineProperty");return e({},"",{}),e}catch(t){}}(),Ct=t.clearTimeout!==Ge.clearTimeout&&t.clearTimeout,Qt=r&&r.now!==Ge.Date.now&&r.now,Yt=t.setTimeout!==Ge.setTimeout&&t.setTimeout,Xt=de.ceil,Jt=de.floor,Zt=pe.getOwnPropertySymbols,en=Pe?Pe.isBuffer:void 0,tn=t.isFinite,nn=ye.join,rn=Vt(pe.keys,pe),on=de.max,an=de.min,sn=r.now,un=t.parseInt,cn=de.random,ln=ye.reverse,fn=Ji(t,"DataView"),hn=Ji(t,"Map"),dn=Ji(t,"Promise"),pn=Ji(t,"Set"),vn=Ji(t,"WeakMap"),mn=Ji(pe,"create"),gn=vn&&new vn,yn={},bn=Co(fn),wn=Co(hn),_n=Co(dn),En=Co(pn),Sn=Co(vn),kn=Ae?Ae.prototype:void 0,Tn=kn?kn.valueOf:void 0,Cn=kn?kn.toString:void 0;function On(e){if(qa(e)&&!Na(e)&&!(e instanceof An)){if(e instanceof Pn)return e;if(Se.call(e,"__wrapped__"))return Oo(e)}return new Pn(e)}var xn=function(){function e(){}return function(t){if(!Ba(t))return{};if(He)return He(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function In(){}function Pn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function An(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Nn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Rn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Dn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Rn;++t<n;)this.add(e[t])}function Ln(e){var t=this.__data__=new jn(e);this.size=t.size}function Mn(e,t){var n=Na(e),r=!n&&Aa(e),i=!n&&!r&&La(e),o=!n&&!r&&!i&&Xa(e),a=n||r||i||o,s=a?It(e.length,me):[],u=s.length;for(var c in e)!t&&!Se.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||oo(c,u))||s.push(c);return s}function Fn(e){var t=e.length;return t?e[Dr(0,t-1)]:void 0}function zn(e,t){return So(mi(e),$n(t,0,e.length))}function Un(e){return So(mi(e))}function Vn(e,t,n){(void 0!==n&&!xa(e[t],n)||void 0===n&&!(t in e))&&Kn(e,t,n)}function Bn(e,t,n){var r=e[t];Se.call(e,t)&&xa(r,n)&&(void 0!==n||t in e)||Kn(e,t,n)}function qn(e,t){for(var n=e.length;n--;)if(xa(e[n][0],t))return n;return-1}function Wn(e,t,n,r){return Zn(e,(function(e,i,o){t(r,e,n(e),o)})),r}function Hn(e,t){return e&&gi(t,bs(t),e)}function Kn(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Gn(e,t){for(var r=-1,i=t.length,o=n(i),a=null==e;++r<i;)o[r]=a?void 0:ps(e,t[r]);return o}function $n(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}function Qn(e,t,n,r,i,o){var a,s=1&t,c=2&t,h=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Ba(e))return e;var E=Na(e);if(E){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Se.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!s)return mi(e,a)}else{var j=to(e),R=j==d||j==p;if(La(e))return li(e,s);if(j==g||j==u||R&&!i){if(a=c||R?{}:ro(e),!s)return c?function(e,t){return gi(e,eo(e),t)}(e,function(e,t){return e&&gi(t,ws(t),e)}(a,e)):function(e,t){return gi(e,Zi(e),t)}(e,Hn(a,e))}else{if(!Ve[j])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case S:return fi(e);case l:case f:return new r(+e);case k:return function(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case T:case C:case O:case x:case I:case P:case"[object Uint8ClampedArray]":case A:case N:return hi(e,n);case v:return new r;case m:case w:return new r(e);case y:return function(e){var t=new e.constructor(e.source,re.exec(e));return t.lastIndex=e.lastIndex,t}(e);case b:return new r;case _:return i=e,Tn?pe(Tn.call(i)):{}}var i}(e,j,s)}}o||(o=new Ln);var D=o.get(e);if(D)return D;o.set(e,a),$a(e)?e.forEach((function(r){a.add(Qn(r,t,n,r,e,o))})):Wa(e)&&e.forEach((function(r,i){a.set(i,Qn(r,t,n,i,e,o))}));var L=E?void 0:(h?c?Hi:Wi:c?ws:bs)(e);return st(L||e,(function(r,i){L&&(r=e[i=r]),Bn(a,i,Qn(r,t,n,i,e,o))})),a}function Yn(e,t,n){var r=n.length;if(null==e)return!r;for(e=pe(e);r--;){var i=n[r],o=t[i],a=e[i];if(void 0===a&&!(i in e)||!o(a))return!1}return!0}function Xn(e,t,n){if("function"!=typeof e)throw new ge(o);return bo((function(){e.apply(void 0,n)}),t)}function Jn(e,t,n,r){var i=-1,o=ft,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=dt(t,Pt(n))),r?(o=ht,a=!1):t.length>=200&&(o=Nt,a=!1,t=new Dn(t));e:for(;++i<s;){var l=e[i],f=null==n?l:n(l);if(l=r||0!==l?l:0,a&&f===f){for(var h=c;h--;)if(t[h]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}On.templateSettings={escape:U,evaluate:V,interpolate:B,variable:"",imports:{_:On}},On.prototype=In.prototype,On.prototype.constructor=On,Pn.prototype=xn(In.prototype),Pn.prototype.constructor=Pn,An.prototype=xn(In.prototype),An.prototype.constructor=An,Nn.prototype.clear=function(){this.__data__=mn?mn(null):{},this.size=0},Nn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Nn.prototype.get=function(e){var t=this.__data__;if(mn){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Se.call(t,e)?t[e]:void 0},Nn.prototype.has=function(e){var t=this.__data__;return mn?void 0!==t[e]:Se.call(t,e)},Nn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=mn&&void 0===t?"__lodash_hash_undefined__":t,this},jn.prototype.clear=function(){this.__data__=[],this.size=0},jn.prototype.delete=function(e){var t=this.__data__,n=qn(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},jn.prototype.get=function(e){var t=this.__data__,n=qn(t,e);return n<0?void 0:t[n][1]},jn.prototype.has=function(e){return qn(this.__data__,e)>-1},jn.prototype.set=function(e,t){var n=this.__data__,r=qn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Rn.prototype.clear=function(){this.size=0,this.__data__={hash:new Nn,map:new(hn||jn),string:new Nn}},Rn.prototype.delete=function(e){var t=Yi(this,e).delete(e);return this.size-=t?1:0,t},Rn.prototype.get=function(e){return Yi(this,e).get(e)},Rn.prototype.has=function(e){return Yi(this,e).has(e)},Rn.prototype.set=function(e,t){var n=Yi(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Dn.prototype.add=Dn.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Dn.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.clear=function(){this.__data__=new jn,this.size=0},Ln.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ln.prototype.get=function(e){return this.__data__.get(e)},Ln.prototype.has=function(e){return this.__data__.has(e)},Ln.prototype.set=function(e,t){var n=this.__data__;if(n instanceof jn){var r=n.__data__;if(!hn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Rn(r)}return n.set(e,t),this.size=n.size,this};var Zn=wi(sr),er=wi(ur,!0);function tr(e,t){var n=!0;return Zn(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function nr(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a===a&&!Ya(a):n(a,s)))var s=a,u=o}return u}function rr(e,t){var n=[];return Zn(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function ir(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=io),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?ir(s,t-1,n,r,i):pt(i,s):r||(i[i.length]=s)}return i}var or=_i(),ar=_i(!0);function sr(e,t){return e&&or(e,t,bs)}function ur(e,t){return e&&ar(e,t,bs)}function cr(e,t){return lt(t,(function(t){return za(e[t])}))}function lr(e,t){for(var n=0,r=(t=ai(t,e)).length;null!=e&&n<r;)e=e[To(t[n++])];return n&&n==r?e:void 0}function fr(e,t,n){var r=t(e);return Na(e)?r:pt(r,n(e))}function hr(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Je&&Je in pe(e)?function(e){var t=Se.call(e,Je),n=e[Je];try{e[Je]=void 0;var r=!0}catch(o){}var i=Ce.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Ce.call(e)}(e)}function dr(e,t){return e>t}function pr(e,t){return null!=e&&Se.call(e,t)}function vr(e,t){return null!=e&&t in pe(e)}function mr(e,t,r){for(var i=r?ht:ft,o=e[0].length,a=e.length,s=a,u=n(a),c=1/0,l=[];s--;){var f=e[s];s&&t&&(f=dt(f,Pt(t))),c=an(f.length,c),u[s]=!r&&(t||o>=120&&f.length>=120)?new Dn(s&&f):void 0}f=e[0];var h=-1,d=u[0];e:for(;++h<o&&l.length<c;){var p=f[h],v=t?t(p):p;if(p=r||0!==p?p:0,!(d?Nt(d,v):i(l,v,r))){for(s=a;--s;){var m=u[s];if(!(m?Nt(m,v):i(e[s],v,r)))continue e}d&&d.push(v),l.push(p)}}return l}function gr(e,t,n){var r=null==(e=vo(e,t=ai(t,e)))?e:e[To(Fo(t))];return null==r?void 0:ot(r,e,n)}function yr(e){return qa(e)&&hr(e)==u}function br(e,t,n,r,i){return e===t||(null==e||null==t||!qa(e)&&!qa(t)?e!==e&&t!==t:function(e,t,n,r,i,o){var a=Na(e),s=Na(t),d=a?c:to(e),p=s?c:to(t),E=(d=d==u?g:d)==g,T=(p=p==u?g:p)==g,C=d==p;if(C&&La(e)){if(!La(t))return!1;a=!0,E=!1}if(C&&!E)return o||(o=new Ln),a||Xa(e)?Bi(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case k:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!o(new Re(e),new Re(t)));case l:case f:case m:return xa(+e,+t);case h:return e.name==t.name&&e.message==t.message;case y:case w:return e==t+"";case v:var s=Ut;case b:var u=1&r;if(s||(s=qt),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var d=Bi(s(e),s(t),r,i,o,a);return a.delete(e),d;case _:if(Tn)return Tn.call(e)==Tn.call(t)}return!1}(e,t,d,n,r,i,o);if(!(1&n)){var O=E&&Se.call(e,"__wrapped__"),x=T&&Se.call(t,"__wrapped__");if(O||x){var I=O?e.value():e,P=x?t.value():t;return o||(o=new Ln),i(I,P,n,r,o)}}if(!C)return!1;return o||(o=new Ln),function(e,t,n,r,i,o){var a=1&n,s=Wi(e),u=s.length,c=Wi(t).length;if(u!=c&&!a)return!1;var l=u;for(;l--;){var f=s[l];if(!(a?f in t:Se.call(t,f)))return!1}var h=o.get(e);if(h&&o.get(t))return h==t;var d=!0;o.set(e,t),o.set(t,e);var p=a;for(;++l<u;){f=s[l];var v=e[f],m=t[f];if(r)var g=a?r(m,v,f,t,e,o):r(v,m,f,e,t,o);if(!(void 0===g?v===m||i(v,m,n,r,o):g)){d=!1;break}p||(p="constructor"==f)}if(d&&!p){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(d=!1)}return o.delete(e),o.delete(t),d}(e,t,n,r,i,o)}(e,t,n,r,br,i))}function wr(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=pe(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var u=(s=n[i])[0],c=e[u],l=s[1];if(a&&s[2]){if(void 0===c&&!(u in e))return!1}else{var f=new Ln;if(r)var h=r(c,l,u,e,t,f);if(!(void 0===h?br(l,c,3,r,f):h))return!1}}return!0}function _r(e){return!(!Ba(e)||(t=e,Te&&Te in t))&&(za(e)?Ie:ae).test(Co(e));var t}function Er(e){return"function"==typeof e?e:null==e?Hs:"object"==typeof e?Na(e)?xr(e[0],e[1]):Or(e):eu(e)}function Sr(e){if(!lo(e))return rn(e);var t=[];for(var n in pe(e))Se.call(e,n)&&"constructor"!=n&&t.push(n);return t}function kr(e){if(!Ba(e))return function(e){var t=[];if(null!=e)for(var n in pe(e))t.push(n);return t}(e);var t=lo(e),n=[];for(var r in e)("constructor"!=r||!t&&Se.call(e,r))&&n.push(r);return n}function Tr(e,t){return e<t}function Cr(e,t){var r=-1,i=Ra(e)?n(e.length):[];return Zn(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Or(e){var t=Xi(e);return 1==t.length&&t[0][2]?ho(t[0][0],t[0][1]):function(n){return n===e||wr(n,e,t)}}function xr(e,t){return so(e)&&fo(t)?ho(To(e),t):function(n){var r=ps(n,e);return void 0===r&&r===t?vs(n,e):br(t,r,3)}}function Ir(e,t,n,r,i){e!==t&&or(t,(function(o,a){if(i||(i=new Ln),Ba(o))!function(e,t,n,r,i,o,a){var s=go(e,n),u=go(t,n),c=a.get(u);if(c)return void Vn(e,n,c);var l=o?o(s,u,n+"",e,t,a):void 0,f=void 0===l;if(f){var h=Na(u),d=!h&&La(u),p=!h&&!d&&Xa(u);l=u,h||d||p?Na(s)?l=s:Da(s)?l=mi(s):d?(f=!1,l=li(u,!0)):p?(f=!1,l=hi(u,!0)):l=[]:Ka(u)||Aa(u)?(l=s,Aa(s)?l=os(s):Ba(s)&&!za(s)||(l=ro(u))):f=!1}f&&(a.set(u,l),i(l,u,r,o,a),a.delete(u));Vn(e,n,l)}(e,t,a,n,Ir,r,i);else{var s=r?r(go(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),Vn(e,a,s)}}),ws)}function Pr(e,t){var n=e.length;if(n)return oo(t+=t<0?n:0,n)?e[t]:void 0}function Ar(e,t,n){var r=-1;return t=dt(t.length?t:[Hs],Pt(Qi())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Cr(e,(function(e,n,i){return{criteria:dt(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;for(;++r<a;){var u=di(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)}))}function Nr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=lr(e,a);n(s,a)&&Ur(o,ai(a,e),s)}return o}function jr(e,t,n,r){var i=r?Et:_t,o=-1,a=t.length,s=e;for(e===t&&(t=mi(t)),n&&(s=dt(e,Pt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&$e.call(s,u,1),$e.call(e,u,1);return e}function Rr(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;oo(i)?$e.call(e,i,1):Jr(e,i)}}return e}function Dr(e,t){return e+Jt(cn()*(t-e+1))}function Lr(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=Jt(t/2))&&(e+=e)}while(t);return n}function Mr(e,t){return wo(po(e,t,Hs),e+"")}function Fr(e){return Fn(xs(e))}function zr(e,t){var n=xs(e);return So(n,$n(t,0,n.length))}function Ur(e,t,n,r){if(!Ba(e))return e;for(var i=-1,o=(t=ai(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var u=To(t[i]),c=n;if(i!=a){var l=s[u];void 0===(c=r?r(l,u,s):void 0)&&(c=Ba(l)?l:oo(t[i+1])?[]:{})}Bn(s,u,c),s=s[u]}return e}var Vr=gn?function(e,t){return gn.set(e,t),e}:Hs,Br=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:Bs(t),writable:!0})}:Hs;function qr(e){return So(xs(e))}function Wr(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i<o;)a[i]=e[i+t];return a}function Hr(e,t){var n;return Zn(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function Kr(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t===t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ya(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Gr(e,t,Hs,n)}function Gr(e,t,n,r){t=n(t);for(var i=0,o=null==e?0:e.length,a=t!==t,s=null===t,u=Ya(t),c=void 0===t;i<o;){var l=Jt((i+o)/2),f=n(e[l]),h=void 0!==f,d=null===f,p=f===f,v=Ya(f);if(a)var m=r||p;else m=c?p&&(r||h):s?p&&h&&(r||!d):u?p&&h&&!d&&(r||!v):!d&&!v&&(r?f<=t:f<t);m?i=l+1:o=l}return an(o,4294967294)}function $r(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!xa(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Qr(e){return"number"==typeof e?e:Ya(e)?NaN:+e}function Yr(e){if("string"==typeof e)return e;if(Na(e))return dt(e,Yr)+"";if(Ya(e))return Cn?Cn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Xr(e,t,n){var r=-1,i=ft,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=ht;else if(o>=200){var c=t?null:Li(e);if(c)return qt(c);a=!1,i=Nt,u=new Dn}else u=t?[]:s;e:for(;++r<o;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,a&&f===f){for(var h=u.length;h--;)if(u[h]===f)continue e;t&&u.push(f),s.push(l)}else i(u,f,n)||(u!==s&&u.push(f),s.push(l))}return s}function Jr(e,t){return null==(e=vo(e,t=ai(t,e)))||delete e[To(Fo(t))]}function Zr(e,t,n,r){return Ur(e,t,n(lr(e,t)),r)}function ei(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Wr(e,r?0:o,r?o+1:i):Wr(e,r?o+1:0,r?i:o)}function ti(e,t){var n=e;return n instanceof An&&(n=n.value()),vt(t,(function(e,t){return t.func.apply(t.thisArg,pt([e],t.args))}),n)}function ni(e,t,r){var i=e.length;if(i<2)return i?Xr(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=Jn(a[o]||s,e[u],t,r));return Xr(ir(a,1),t,r)}function ri(e,t,n){for(var r=-1,i=e.length,o=t.length,a={};++r<i;){var s=r<o?t[r]:void 0;n(a,e[r],s)}return a}function ii(e){return Da(e)?e:[]}function oi(e){return"function"==typeof e?e:Hs}function ai(e,t){return Na(e)?e:so(e,t)?[e]:ko(as(e))}var si=Mr;function ui(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Wr(e,t,n)}var ci=Ct||function(e){return Ge.clearTimeout(e)};function li(e,t){if(t)return e.slice();var n=e.length,r=Le?Le(n):new e.constructor(n);return e.copy(r),r}function fi(e){var t=new e.constructor(e.byteLength);return new Re(t).set(new Re(e)),t}function hi(e,t){var n=t?fi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function di(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e===e,o=Ya(e),a=void 0!==t,s=null===t,u=t===t,c=Ya(t);if(!s&&!c&&!o&&e>t||o&&a&&u&&!s&&!c||r&&a&&u||!n&&u||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!u)return-1}return 0}function pi(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,c=t.length,l=on(a-s,0),f=n(c+l),h=!i;++u<c;)f[u]=t[u];for(;++o<s;)(h||o<a)&&(f[r[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function vi(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,f=on(a-u,0),h=n(f+l),d=!i;++o<f;)h[o]=e[o];for(var p=o;++c<l;)h[p+c]=t[c];for(;++s<u;)(d||o<a)&&(h[p+r[s]]=e[o++]);return h}function mi(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function gi(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),i?Kn(n,s,u):Bn(n,s,u)}return n}function yi(e,t){return function(n,r){var i=Na(n)?at:Wn,o=t?t():{};return i(n,e,Qi(r,2),o)}}function bi(e){return Mr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&ao(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=pe(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}function wi(e,t){return function(n,r){if(null==n)return n;if(!Ra(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=pe(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function _i(e){return function(t,n,r){for(var i=-1,o=pe(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function Ei(e){return function(t){var n=zt(t=as(t))?Kt(t):void 0,r=n?n[0]:t.charAt(0),i=n?ui(n,1).join(""):t.slice(1);return r[e]()+i}}function Si(e){return function(t){return vt(zs(As(t).replace(Ne,"")),e,"")}}function ki(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xn(e.prototype),r=e.apply(n,t);return Ba(r)?r:n}}function Ti(e){return function(t,n,r){var i=pe(t);if(!Ra(t)){var o=Qi(n,3);t=bs(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}}function Ci(e){return qi((function(t){var n=t.length,r=n,i=Pn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ge(o);if(i&&!s&&"wrapper"==Gi(a))var s=new Pn([],!0)}for(r=s?r:n;++r<n;){var u=Gi(a=t[r]),c="wrapper"==u?Ki(a):void 0;s=c&&uo(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?s[Gi(c[0])].apply(s,c[3]):1==a.length&&uo(a)?s[u]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&Na(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}}))}function Oi(e,t,r,i,o,a,s,u,c,l){var f=128&t,h=1&t,d=2&t,p=24&t,v=512&t,m=d?void 0:ki(e);return function g(){for(var y=arguments.length,b=n(y),w=y;w--;)b[w]=arguments[w];if(p)var _=$i(g),E=Dt(b,_);if(i&&(b=pi(b,i,o,p)),a&&(b=vi(b,a,s,p)),y-=E,p&&y<l){var S=Bt(b,_);return Ri(e,t,Oi,g.placeholder,r,b,S,u,c,l-y)}var k=h?r:this,T=d?k[e]:e;return y=b.length,u?b=mo(b,u):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==Ge&&this instanceof g&&(T=m||ki(T)),T.apply(k,b)}}function xi(e,t){return function(n,r){return function(e,t,n,r){return sr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function Ii(e,t){return function(n,r){var i;if(void 0===n&&void 0===r)return t;if(void 0!==n&&(i=n),void 0!==r){if(void 0===i)return r;"string"==typeof n||"string"==typeof r?(n=Yr(n),r=Yr(r)):(n=Qr(n),r=Qr(r)),i=e(n,r)}return i}}function Pi(e){return qi((function(t){return t=dt(t,Pt(Qi())),Mr((function(n){var r=this;return e(t,(function(e){return ot(e,r,n)}))}))}))}function Ai(e,t){var n=(t=void 0===t?" ":Yr(t)).length;if(n<2)return n?Lr(t,e):t;var r=Lr(t,Xt(e/Ht(t)));return zt(t)?ui(Kt(r),0,e).join(""):r.slice(0,e)}function Ni(e){return function(t,r,i){return i&&"number"!=typeof i&&ao(t,r,i)&&(r=i=void 0),t=ts(t),void 0===r?(r=t,t=0):r=ts(r),function(e,t,r,i){for(var o=-1,a=on(Xt((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,i=void 0===i?t<r?1:-1:ts(i),e)}}function ji(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=is(t),n=is(n)),e(t,n)}}function Ri(e,t,n,r,i,o,a,s,u,c){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var f=[e,t,i,l?o:void 0,l?a:void 0,l?void 0:o,l?void 0:a,s,u,c],h=n.apply(void 0,f);return uo(e)&&yo(h,f),h.placeholder=r,_o(h,e,t)}function Di(e){var t=de[e];return function(e,n){if(e=is(e),(n=null==n?0:an(ns(n),292))&&tn(e)){var r=(as(e)+"e").split("e");return+((r=(as(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Li=pn&&1/qt(new pn([,-0]))[1]==1/0?function(e){return new pn(e)}:Ys;function Mi(e){return function(t){var n=to(t);return n==v?Ut(t):n==b?Wt(t):function(e,t){return dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Fi(e,t,r,i,s,u,c,l){var f=2&t;if(!f&&"function"!=typeof e)throw new ge(o);var h=i?i.length:0;if(h||(t&=-97,i=s=void 0),c=void 0===c?c:on(ns(c),0),l=void 0===l?l:ns(l),h-=s?s.length:0,64&t){var d=i,p=s;i=s=void 0}var v=f?void 0:Ki(e),m=[e,t,r,i,s,d,p,u,c,l];if(v&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?pi(c,u,t[4]):u,e[4]=c?Bt(e[3],a):t[4]}(u=t[5])&&(c=e[5],e[5]=c?vi(c,u,t[6]):u,e[6]=c?Bt(e[5],a):t[6]);(u=t[7])&&(e[7]=u);128&r&&(e[8]=null==e[8]?t[8]:an(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(m,v),e=m[0],t=m[1],r=m[2],i=m[3],s=m[4],!(l=m[9]=void 0===m[9]?f?0:e.length:on(m[9]-h,0))&&24&t&&(t&=-25),t&&1!=t)g=8==t||16==t?function(e,t,r){var i=ki(e);return function o(){for(var a=arguments.length,s=n(a),u=a,c=$i(o);u--;)s[u]=arguments[u];var l=a<3&&s[0]!==c&&s[a-1]!==c?[]:Bt(s,c);if((a-=l.length)<r)return Ri(e,t,Oi,o.placeholder,void 0,s,l,void 0,void 0,r-a);var f=this&&this!==Ge&&this instanceof o?i:e;return ot(f,this,s)}}(e,t,l):32!=t&&33!=t||s.length?Oi.apply(void 0,m):function(e,t,r,i){var o=1&t,a=ki(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=n(l+u),h=this&&this!==Ge&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return ot(h,o?r:this,f)}}(e,t,r,i);else var g=function(e,t,n){var r=1&t,i=ki(e);return function t(){var o=this&&this!==Ge&&this instanceof t?i:e;return o.apply(r?n:this,arguments)}}(e,t,r);return _o((v?Vr:yo)(g,m),e,t)}function zi(e,t,n,r){return void 0===e||xa(e,we[n])&&!Se.call(r,n)?t:e}function Ui(e,t,n,r,i,o){return Ba(e)&&Ba(t)&&(o.set(t,e),Ir(e,t,void 0,Ui,o),o.delete(t)),e}function Vi(e){return Ka(e)?void 0:e}function Bi(e,t,n,r,i,o){var a=1&n,s=e.length,u=t.length;if(s!=u&&!(a&&u>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var l=-1,f=!0,h=2&n?new Dn:void 0;for(o.set(e,t),o.set(t,e);++l<s;){var d=e[l],p=t[l];if(r)var v=a?r(p,d,l,t,e,o):r(d,p,l,e,t,o);if(void 0!==v){if(v)continue;f=!1;break}if(h){if(!gt(t,(function(e,t){if(!Nt(h,t)&&(d===e||i(d,e,n,r,o)))return h.push(t)}))){f=!1;break}}else if(d!==p&&!i(d,p,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f}function qi(e){return wo(po(e,void 0,jo),e+"")}function Wi(e){return fr(e,bs,Zi)}function Hi(e){return fr(e,ws,eo)}var Ki=gn?function(e){return gn.get(e)}:Ys;function Gi(e){for(var t=e.name+"",n=yn[t],r=Se.call(yn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function $i(e){return(Se.call(On,"placeholder")?On:e).placeholder}function Qi(){var e=On.iteratee||Ks;return e=e===Ks?Er:e,arguments.length?e(arguments[0],arguments[1]):e}function Yi(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Xi(e){for(var t=bs(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,fo(i)]}return t}function Ji(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return _r(n)?n:void 0}var Zi=Zt?function(e){return null==e?[]:(e=pe(e),lt(Zt(e),(function(t){return Ke.call(e,t)})))}:ru,eo=Zt?function(e){for(var t=[];e;)pt(t,Zi(e)),e=Be(e);return t}:ru,to=hr;function no(e,t,n){for(var r=-1,i=(t=ai(t,e)).length,o=!1;++r<i;){var a=To(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Va(i)&&oo(a,i)&&(Na(e)||Aa(e))}function ro(e){return"function"!=typeof e.constructor||lo(e)?{}:xn(Be(e))}function io(e){return Na(e)||Aa(e)||!!(Qe&&e&&e[Qe])}function oo(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&ue.test(e))&&e>-1&&e%1==0&&e<t}function ao(e,t,n){if(!Ba(n))return!1;var r=typeof t;return!!("number"==r?Ra(n)&&oo(t,n.length):"string"==r&&t in n)&&xa(n[t],e)}function so(e,t){if(Na(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ya(e))||(W.test(e)||!q.test(e)||null!=t&&e in pe(t))}function uo(e){var t=Gi(e),n=On[t];if("function"!=typeof n||!(t in An.prototype))return!1;if(e===n)return!0;var r=Ki(n);return!!r&&e===r[0]}(fn&&to(new fn(new ArrayBuffer(1)))!=k||hn&&to(new hn)!=v||dn&&"[object Promise]"!=to(dn.resolve())||pn&&to(new pn)!=b||vn&&to(new vn)!=E)&&(to=function(e){var t=hr(e),n=t==g?e.constructor:void 0,r=n?Co(n):"";if(r)switch(r){case bn:return k;case wn:return v;case _n:return"[object Promise]";case En:return b;case Sn:return E}return t});var co=_e?za:iu;function lo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||we)}function fo(e){return e===e&&!Ba(e)}function ho(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in pe(n)))}}function po(e,t,r){return t=on(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=on(i.length-t,0),s=n(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=n(t+1);++o<t;)u[o]=i[o];return u[t]=r(s),ot(e,this,u)}}function vo(e,t){return t.length<2?e:lr(e,Wr(t,0,-1))}function mo(e,t){for(var n=e.length,r=an(t.length,n),i=mi(e);r--;){var o=t[r];e[r]=oo(o,n)?i[o]:void 0}return e}function go(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var yo=Eo(Vr),bo=Yt||function(e,t){return Ge.setTimeout(e,t)},wo=Eo(Br);function _o(e,t,n){var r=t+"";return wo(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(X,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return st(s,(function(n){var r="_."+n[0];t&n[1]&&!ft(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(J);return t?t[1].split(Z):[]}(r),n)))}function Eo(e){var t=0,n=0;return function(){var r=sn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function So(e,t){var n=-1,r=e.length,i=r-1;for(t=void 0===t?r:t;++n<t;){var o=Dr(n,i),a=e[o];e[o]=e[n],e[n]=a}return e.length=t,e}var ko=function(e){var t=Ea(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(H,(function(e,n,r,i){t.push(r?i.replace(te,"$1"):n||e)})),t}));function To(e){if("string"==typeof e||Ya(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Co(e){if(null!=e){try{return Ee.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Oo(e){if(e instanceof An)return e.clone();var t=new Pn(e.__wrapped__,e.__chain__);return t.__actions__=mi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var xo=Mr((function(e,t){return Da(e)?Jn(e,ir(t,1,Da,!0)):[]})),Io=Mr((function(e,t){var n=Fo(t);return Da(n)&&(n=void 0),Da(e)?Jn(e,ir(t,1,Da,!0),Qi(n,2)):[]})),Po=Mr((function(e,t){var n=Fo(t);return Da(n)&&(n=void 0),Da(e)?Jn(e,ir(t,1,Da,!0),void 0,n):[]}));function Ao(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ns(n);return i<0&&(i=on(r+i,0)),wt(e,Qi(t,3),i)}function No(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=ns(n),i=n<0?on(r+i,0):an(i,r-1)),wt(e,Qi(t,3),i,!0)}function jo(e){return(null==e?0:e.length)?ir(e,1):[]}function Ro(e){return e&&e.length?e[0]:void 0}var Do=Mr((function(e){var t=dt(e,ii);return t.length&&t[0]===e[0]?mr(t):[]})),Lo=Mr((function(e){var t=Fo(e),n=dt(e,ii);return t===Fo(n)?t=void 0:n.pop(),n.length&&n[0]===e[0]?mr(n,Qi(t,2)):[]})),Mo=Mr((function(e){var t=Fo(e),n=dt(e,ii);return(t="function"==typeof t?t:void 0)&&n.pop(),n.length&&n[0]===e[0]?mr(n,void 0,t):[]}));function Fo(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}var zo=Mr(Uo);function Uo(e,t){return e&&e.length&&t&&t.length?jr(e,t):e}var Vo=qi((function(e,t){var n=null==e?0:e.length,r=Gn(e,t);return Rr(e,dt(t,(function(e){return oo(e,n)?+e:e})).sort(di)),r}));function Bo(e){return null==e?e:ln.call(e)}var qo=Mr((function(e){return Xr(ir(e,1,Da,!0))})),Wo=Mr((function(e){var t=Fo(e);return Da(t)&&(t=void 0),Xr(ir(e,1,Da,!0),Qi(t,2))})),Ho=Mr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,Xr(ir(e,1,Da,!0),void 0,t)}));function Ko(e){if(!e||!e.length)return[];var t=0;return e=lt(e,(function(e){if(Da(e))return t=on(e.length,t),!0})),It(t,(function(t){return dt(e,Tt(t))}))}function Go(e,t){if(!e||!e.length)return[];var n=Ko(e);return null==t?n:dt(n,(function(e){return ot(t,void 0,e)}))}var $o=Mr((function(e,t){return Da(e)?Jn(e,t):[]})),Qo=Mr((function(e){return ni(lt(e,Da))})),Yo=Mr((function(e){var t=Fo(e);return Da(t)&&(t=void 0),ni(lt(e,Da),Qi(t,2))})),Xo=Mr((function(e){var t=Fo(e);return t="function"==typeof t?t:void 0,ni(lt(e,Da),void 0,t)})),Jo=Mr(Ko);var Zo=Mr((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,Go(e,n)}));function ea(e){var t=On(e);return t.__chain__=!0,t}function ta(e,t){return t(e)}var na=qi((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,
vendor: 9,158 bytes, line 2
2i=function(t){return Gn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof An&&oo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ta,args:[i],thisArg:void 0}),new Pn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(i)}));var ra=yi((function(e,t,n){Se.call(e,n)?++e[n]:Kn(e,n,1)}));var ia=Ti(Ao),oa=Ti(No);function aa(e,t){return(Na(e)?st:Zn)(e,Qi(t,3))}function sa(e,t){return(Na(e)?ut:er)(e,Qi(t,3))}var ua=yi((function(e,t,n){Se.call(e,n)?e[n].push(t):Kn(e,n,[t])}));var ca=Mr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ra(e)?n(e.length):[];return Zn(e,(function(e){a[++i]=o?ot(t,e,r):gr(e,t,r)})),a})),la=yi((function(e,t,n){Kn(e,n,t)}));function fa(e,t){return(Na(e)?dt:Cr)(e,Qi(t,3))}var ha=yi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var da=Mr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ao(e,t[0],t[1])?t=[]:n>2&&ao(t[0],t[1],t[2])&&(t=[t[0]]),Ar(e,ir(t,1),[])})),pa=Qt||function(){return Ge.Date.now()};function va(e,t,n){return t=n?void 0:t,Fi(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var n;if("function"!=typeof t)throw new ge(o);return e=ns(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=void 0),n}}var ga=Mr((function(e,t,n){var r=1;if(n.length){var i=Bt(n,$i(ga));r|=32}return Fi(e,r,t,n,i)})),ya=Mr((function(e,t,n){var r=3;if(n.length){var i=Bt(n,$i(ya));r|=32}return Fi(t,r,e,n,i)}));function ba(e,t,n){var r,i,a,s,u,c,l=0,f=!1,h=!1,d=!0;if("function"!=typeof e)throw new ge(o);function p(t){var n=r,o=i;return r=i=void 0,l=t,s=e.apply(o,n)}function v(e){return l=e,u=bo(g,t),f?p(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||h&&e-l>=a}function g(){var e=pa();if(m(e))return y(e);u=bo(g,function(e){var n=t-(e-c);return h?an(n,a-(e-l)):n}(e))}function y(e){return u=void 0,d&&r?p(e):(r=i=void 0,s)}function b(){var e=pa(),n=m(e);if(r=arguments,i=this,c=e,n){if(void 0===u)return v(c);if(h)return ci(u),u=bo(g,t),p(c)}return void 0===u&&(u=bo(g,t)),s}return t=is(t)||0,Ba(n)&&(f=!!n.leading,a=(h="maxWait"in n)?on(is(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){void 0!==u&&ci(u),l=0,r=c=i=u=void 0},b.flush=function(){return void 0===u?s:y(pa())},b}var wa=Mr((function(e,t){return Xn(e,1,t)})),_a=Mr((function(e,t,n){return Xn(e,is(t)||0,n)}));function Ea(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(o);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Ea.Cache||Rn),n}function Sa(e){if("function"!=typeof e)throw new ge(o);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)}}Ea.Cache=Rn;var ka=si((function(e,t){var n=(t=1==t.length&&Na(t[0])?dt(t[0],Pt(Qi())):dt(ir(t,1),Pt(Qi()))).length;return Mr((function(r){for(var i=-1,o=an(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return ot(e,this,r)}))})),Ta=Mr((function(e,t){return Fi(e,32,void 0,t,Bt(t,$i(Ta)))})),Ca=Mr((function(e,t){return Fi(e,64,void 0,t,Bt(t,$i(Ca)))})),Oa=qi((function(e,t){return Fi(e,256,void 0,void 0,void 0,t)}));function xa(e,t){return e===t||e!==e&&t!==t}var Ia=ji(dr),Pa=ji((function(e,t){return e>=t})),Aa=yr(function(){return arguments}())?yr:function(e){return qa(e)&&Se.call(e,"callee")&&!Ke.call(e,"callee")},Na=n.isArray,ja=Ze?Pt(Ze):function(e){return qa(e)&&hr(e)==S};function Ra(e){return null!=e&&Va(e.length)&&!za(e)}function Da(e){return qa(e)&&Ra(e)}var La=en||iu,Ma=et?Pt(et):function(e){return qa(e)&&hr(e)==f};function Fa(e){if(!qa(e))return!1;var t=hr(e);return t==h||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Ka(e)}function za(e){if(!Ba(e))return!1;var t=hr(e);return t==d||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==ns(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ba(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Wa=tt?Pt(tt):function(e){return qa(e)&&to(e)==v};function Ha(e){return"number"==typeof e||qa(e)&&hr(e)==m}function Ka(e){if(!qa(e)||hr(e)!=g)return!1;var t=Be(e);if(null===t)return!0;var n=Se.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ee.call(n)==Oe}var Ga=nt?Pt(nt):function(e){return qa(e)&&hr(e)==y};var $a=rt?Pt(rt):function(e){return qa(e)&&to(e)==b};function Qa(e){return"string"==typeof e||!Na(e)&&qa(e)&&hr(e)==w}function Ya(e){return"symbol"==typeof e||qa(e)&&hr(e)==_}var Xa=it?Pt(it):function(e){return qa(e)&&Va(e.length)&&!!Ue[hr(e)]};var Ja=ji(Tr),Za=ji((function(e,t){return e<=t}));function es(e){if(!e)return[];if(Ra(e))return Qa(e)?Kt(e):mi(e);if(Xe&&e[Xe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Xe]());var t=to(e);return(t==v?Ut:t==b?qt:xs)(e)}function ts(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function ns(e){var t=ts(e),n=t%1;return t===t?n?t-n:t:0}function rs(e){return e?$n(ns(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Ya(e))return NaN;if(Ba(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ba(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace($,"");var n=oe.test(e);return n||se.test(e)?We(e.slice(2),n?2:8):ie.test(e)?NaN:+e}function os(e){return gi(e,ws(e))}function as(e){return null==e?"":Yr(e)}var ss=bi((function(e,t){if(lo(t)||Ra(t))gi(t,bs(t),e);else for(var n in t)Se.call(t,n)&&Bn(e,n,t[n])})),us=bi((function(e,t){gi(t,ws(t),e)})),cs=bi((function(e,t,n,r){gi(t,ws(t),e,r)})),ls=bi((function(e,t,n,r){gi(t,bs(t),e,r)})),fs=qi(Gn);var hs=Mr((function(e,t){e=pe(e);var n=-1,r=t.length,i=r>2?t[2]:void 0;for(i&&ao(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],a=ws(o),s=-1,u=a.length;++s<u;){var c=a[s],l=e[c];(void 0===l||xa(l,we[c])&&!Se.call(e,c))&&(e[c]=o[c])}return e})),ds=Mr((function(e){return e.push(void 0,Ui),ot(Es,void 0,e)}));function ps(e,t,n){var r=null==e?void 0:lr(e,t);return void 0===r?n:r}function vs(e,t){return null!=e&&no(e,t,vr)}var ms=xi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),e[t]=n}),Bs(Hs)),gs=xi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ce.call(t)),Se.call(e,t)?e[t].push(n):e[t]=[n]}),Qi),ys=Mr(gr);function bs(e){return Ra(e)?Mn(e):Sr(e)}function ws(e){return Ra(e)?Mn(e,!0):kr(e)}var _s=bi((function(e,t,n){Ir(e,t,n)})),Es=bi((function(e,t,n,r){Ir(e,t,n,r)})),Ss=qi((function(e,t){var n={};if(null==e)return n;var r=!1;t=dt(t,(function(t){return t=ai(t,e),r||(r=t.length>1),t})),gi(e,Hi(e),n),r&&(n=Qn(n,7,Vi));for(var i=t.length;i--;)Jr(n,t[i]);return n}));var ks=qi((function(e,t){return null==e?{}:function(e,t){return Nr(e,t,(function(t,n){return vs(e,n)}))}(e,t)}));function Ts(e,t){if(null==e)return{};var n=dt(Hi(e),(function(e){return[e]}));return t=Qi(t),Nr(e,n,(function(e,n){return t(e,n[0])}))}var Cs=Mi(bs),Os=Mi(ws);function xs(e){return null==e?[]:At(e,bs(e))}var Is=Si((function(e,t,n){return t=t.toLowerCase(),e+(n?Ps(t):t)}));function Ps(e){return Fs(as(e).toLowerCase())}function As(e){return(e=as(e))&&e.replace(ce,Lt).replace(je,"")}var Ns=Si((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),js=Si((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Rs=Ei("toLowerCase");var Ds=Si((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ls=Si((function(e,t,n){return e+(n?" ":"")+Fs(t)}));var Ms=Si((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Fs=Ei("toUpperCase");function zs(e,t,n){return e=as(e),void 0===(t=n?void 0:t)?function(e){return Me.test(e)}(e)?function(e){return e.match(De)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var Us=Mr((function(e,t){try{return ot(e,void 0,t)}catch(n){return Fa(n)?n:new i(n)}})),Vs=qi((function(e,t){return st(t,(function(t){t=To(t),Kn(e,t,ga(e[t],e))})),e}));function Bs(e){return function(){return e}}var qs=Ci(),Ws=Ci(!0);function Hs(e){return e}function Ks(e){return Er("function"==typeof e?e:Qn(e,1))}var Gs=Mr((function(e,t){return function(n){return gr(n,e,t)}})),$s=Mr((function(e,t){return function(n){return gr(e,n,t)}}));function Qs(e,t,n){var r=bs(t),i=cr(t,r);null!=n||Ba(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=cr(t,bs(t)));var o=!(Ba(n)&&"chain"in n)||!!n.chain,a=za(e);return st(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__),i=n.__actions__=mi(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,pt([this.value()],arguments))})})),e}function Ys(){}var Xs=Pi(dt),Js=Pi(ct),Zs=Pi(gt);function eu(e){return so(e)?Tt(To(e)):function(e){return function(t){return lr(t,e)}}(e)}var tu=Ni(),nu=Ni(!0);function ru(){return[]}function iu(){return!1}var ou=Ii((function(e,t){return e+t}),0),au=Di("ceil"),su=Ii((function(e,t){return e/t}),1),uu=Di("floor");var cu=Ii((function(e,t){return e*t}
vendor: 18,046 bytes, line 2
2),1),lu=Di("round"),fu=Ii((function(e,t){return e-t}),0);return On.after=function(e,t){if("function"!=typeof t)throw new ge(o);return e=ns(e),function(){if(--e<1)return t.apply(this,arguments)}},On.ary=va,On.assign=ss,On.assignIn=us,On.assignInWith=cs,On.assignWith=ls,On.at=fs,On.before=ma,On.bind=ga,On.bindAll=Vs,On.bindKey=ya,On.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Na(e)?e:[e]},On.chain=ea,On.chunk=function(e,t,r){t=(r?ao(e,t,r):void 0===t)?1:on(ns(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,a=0,s=n(Xt(i/t));o<i;)s[a++]=Wr(e,o,o+=t);return s},On.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},On.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],i=e;i--;)t[i-1]=arguments[i];return pt(Na(r)?mi(r):[r],ir(t,1))},On.cond=function(e){var t=null==e?0:e.length,n=Qi();return e=t?dt(e,(function(e){if("function"!=typeof e[1])throw new ge(o);return[n(e[0]),e[1]]})):[],Mr((function(n){for(var r=-1;++r<t;){var i=e[r];if(ot(i[0],this,n))return ot(i[1],this,n)}}))},On.conforms=function(e){return function(e){var t=bs(e);return function(n){return Yn(n,e,t)}}(Qn(e,1))},On.constant=Bs,On.countBy=ra,On.create=function(e,t){var n=xn(e);return null==t?n:Hn(n,t)},On.curry=function e(t,n,r){var i=Fi(t,8,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},On.curryRight=function e(t,n,r){var i=Fi(t,16,void 0,void 0,void 0,void 0,void 0,n=r?void 0:n);return i.placeholder=e.placeholder,i},On.debounce=ba,On.defaults=hs,On.defaultsDeep=ds,On.defer=wa,On.delay=_a,On.difference=xo,On.differenceBy=Io,On.differenceWith=Po,On.drop=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=n||void 0===t?1:ns(t))<0?0:t,r):[]},On.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,0,(t=r-(t=n||void 0===t?1:ns(t)))<0?0:t):[]},On.dropRightWhile=function(e,t){return e&&e.length?ei(e,Qi(t,3),!0,!0):[]},On.dropWhile=function(e,t){return e&&e.length?ei(e,Qi(t,3),!0):[]},On.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&ao(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ns(n))<0&&(n=-n>i?0:i+n),(r=void 0===r||r>i?i:ns(r))<0&&(r+=i),r=n>r?0:rs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},On.filter=function(e,t){return(Na(e)?lt:rr)(e,Qi(t,3))},On.flatMap=function(e,t){return ir(fa(e,t),1)},On.flatMapDeep=function(e,t){return ir(fa(e,t),1/0)},On.flatMapDepth=function(e,t,n){return n=void 0===n?1:ns(n),ir(fa(e,t),n)},On.flatten=jo,On.flattenDeep=function(e){return(null==e?0:e.length)?ir(e,1/0):[]},On.flattenDepth=function(e,t){return(null==e?0:e.length)?ir(e,t=void 0===t?1:ns(t)):[]},On.flip=function(e){return Fi(e,512)},On.flow=qs,On.flowRight=Ws,On.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},On.functions=function(e){return null==e?[]:cr(e,bs(e))},On.functionsIn=function(e){return null==e?[]:cr(e,ws(e))},On.groupBy=ua,On.initial=function(e){return(null==e?0:e.length)?Wr(e,0,-1):[]},On.intersection=Do,On.intersectionBy=Lo,On.intersectionWith=Mo,On.invert=ms,On.invertBy=gs,On.invokeMap=ca,On.iteratee=Ks,On.keyBy=la,On.keys=bs,On.keysIn=ws,On.map=fa,On.mapKeys=function(e,t){var n={};return t=Qi(t,3),sr(e,(function(e,r,i){Kn(n,t(e,r,i),e)})),n},On.mapValues=function(e,t){var n={};return t=Qi(t,3),sr(e,(function(e,r,i){Kn(n,r,t(e,r,i))})),n},On.matches=function(e){return Or(Qn(e,1))},On.matchesProperty=function(e,t){return xr(e,Qn(t,1))},On.memoize=Ea,On.merge=_s,On.mergeWith=Es,On.method=Gs,On.methodOf=$s,On.mixin=Qs,On.negate=Sa,On.nthArg=function(e){return e=ns(e),Mr((function(t){return Pr(t,e)}))},On.omit=Ss,On.omitBy=function(e,t){return Ts(e,Sa(Qi(t)))},On.once=function(e){return ma(2,e)},On.orderBy=function(e,t,n,r){return null==e?[]:(Na(t)||(t=null==t?[]:[t]),Na(n=r?void 0:n)||(n=null==n?[]:[n]),Ar(e,t,n))},On.over=Xs,On.overArgs=ka,On.overEvery=Js,On.overSome=Zs,On.partial=Ta,On.partialRight=Ca,On.partition=ha,On.pick=ks,On.pickBy=Ts,On.property=eu,On.propertyOf=function(e){return function(t){return null==e?void 0:lr(e,t)}},On.pull=zo,On.pullAll=Uo,On.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,Qi(n,2)):e},On.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?jr(e,t,void 0,n):e},On.pullAt=Vo,On.range=tu,On.rangeRight=nu,On.rearg=Oa,On.reject=function(e,t){return(Na(e)?lt:rr)(e,Sa(Qi(t,3)))},On.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=Qi(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Rr(e,i),n},On.rest=function(e,t){if("function"!=typeof e)throw new ge(o);return Mr(e,t=void 0===t?t:ns(t))},On.reverse=Bo,On.sampleSize=function(e,t,n){return t=(n?ao(e,t,n):void 0===t)?1:ns(t),(Na(e)?zn:zr)(e,t)},On.set=function(e,t,n){return null==e?e:Ur(e,t,n)},On.setWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Ur(e,t,n,r)},On.shuffle=function(e){return(Na(e)?Un:qr)(e)},On.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ao(e,t,n)?(t=0,n=r):(t=null==t?0:ns(t),n=void 0===n?r:ns(n)),Wr(e,t,n)):[]},On.sortBy=da,On.sortedUniq=function(e){return e&&e.length?$r(e):[]},On.sortedUniqBy=function(e,t){return e&&e.length?$r(e,Qi(t,2)):[]},On.split=function(e,t,n){return n&&"number"!=typeof n&&ao(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=as(e))&&("string"==typeof t||null!=t&&!Ga(t))&&!(t=Yr(t))&&zt(e)?ui(Kt(e),0,n):e.split(t,n):[]},On.spread=function(e,t){if("function"!=typeof e)throw new ge(o);return t=null==t?0:on(ns(t),0),Mr((function(n){var r=n[t],i=ui(n,0,t);return r&&pt(i,r),ot(e,this,i)}))},On.tail=function(e){var t=null==e?0:e.length;return t?Wr(e,1,t):[]},On.take=function(e,t,n){return e&&e.length?Wr(e,0,(t=n||void 0===t?1:ns(t))<0?0:t):[]},On.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Wr(e,(t=r-(t=n||void 0===t?1:ns(t)))<0?0:t,r):[]},On.takeRightWhile=function(e,t){return e&&e.length?ei(e,Qi(t,3),!1,!0):[]},On.takeWhile=function(e,t){return e&&e.length?ei(e,Qi(t,3)):[]},On.tap=function(e,t){return t(e),e},On.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new ge(o);return Ba(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ba(e,t,{leading:r,maxWait:t,trailing:i})},On.thru=ta,On.toArray=es,On.toPairs=Cs,On.toPairsIn=Os,On.toPath=function(e){return Na(e)?dt(e,To):Ya(e)?[e]:mi(ko(as(e)))},On.toPlainObject=os,On.transform=function(e,t,n){var r=Na(e),i=r||La(e)||Xa(e);if(t=Qi(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ba(e)&&za(o)?xn(Be(e)):{}}return(i?st:sr)(e,(function(e,r,i){return t(n,e,r,i)})),n},On.unary=function(e){return va(e,1)},On.union=qo,On.unionBy=Wo,On.unionWith=Ho,On.uniq=function(e){return e&&e.length?Xr(e):[]},On.uniqBy=function(e,t){return e&&e.length?Xr(e,Qi(t,2)):[]},On.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Xr(e,void 0,t):[]},On.unset=function(e,t){return null==e||Jr(e,t)},On.unzip=Ko,On.unzipWith=Go,On.update=function(e,t,n){return null==e?e:Zr(e,t,oi(n))},On.updateWith=function(e,t,n,r){return r="function"==typeof r?r:void 0,null==e?e:Zr(e,t,oi(n),r)},On.values=xs,On.valuesIn=function(e){return null==e?[]:At(e,ws(e))},On.without=$o,On.words=zs,On.wrap=function(e,t){return Ta(oi(t),e)},On.xor=Qo,On.xorBy=Yo,On.xorWith=Xo,On.zip=Jo,On.zipObject=function(e,t){return ri(e||[],t||[],Bn)},On.zipObjectDeep=function(e,t){return ri(e||[],t||[],Ur)},On.zipWith=Zo,On.entries=Cs,On.entriesIn=Os,On.extend=us,On.extendWith=cs,Qs(On,On),On.add=ou,On.attempt=Us,On.camelCase=Is,On.capitalize=Ps,On.ceil=au,On.clamp=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=is(n))===n?n:0),void 0!==t&&(t=(t=is(t))===t?t:0),$n(is(e),t,n)},On.clone=function(e){return Qn(e,4)},On.cloneDeep=function(e){return Qn(e,5)},On.cloneDeepWith=function(e,t){return Qn(e,5,t="function"==typeof t?t:void 0)},On.cloneWith=function(e,t){return Qn(e,4,t="function"==typeof t?t:void 0)},On.conformsTo=function(e,t){return null==t||Yn(e,t,bs(t))},On.deburr=As,On.defaultTo=function(e,t){return null==e||e!==e?t:e},On.divide=su,On.endsWith=function(e,t,n){e=as(e),t=Yr(t);var r=e.length,i=n=void 0===n?r:$n(ns(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},On.eq=xa,On.escape=function(e){return(e=as(e))&&z.test(e)?e.replace(M,Mt):e},On.escapeRegExp=function(e){return(e=as(e))&&G.test(e)?e.replace(K,"\\$&"):e},On.every=function(e,t,n){var r=Na(e)?ct:tr;return n&&ao(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.find=ia,On.findIndex=Ao,On.findKey=function(e,t){return bt(e,Qi(t,3),sr)},On.findLast=oa,On.findLastIndex=No,On.findLastKey=function(e,t){return bt(e,Qi(t,3),ur)},On.floor=uu,On.forEach=aa,On.forEachRight=sa,On.forIn=function(e,t){return null==e?e:or(e,Qi(t,3),ws)},On.forInRight=function(e,t){return null==e?e:ar(e,Qi(t,3),ws)},On.forOwn=function(e,t){return e&&sr(e,Qi(t,3))},On.forOwnRight=function(e,t){return e&&ur(e,Qi(t,3))},On.get=ps,On.gt=Ia,On.gte=Pa,On.has=function(e,t){return null!=e&&no(e,t,pr)},On.hasIn=vs,On.head=Ro,On.identity=Hs,On.includes=function(e,t,n,r){e=Ra(e)?e:xs(e),n=n&&!r?ns(n):0;var i=e.length;return n<0&&(n=on(i+n,0)),Qa(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&_t(e,t,n)>-1},On.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:ns(n);return i<0&&(i=on(r+i,0)),_t(e,t,i)},On.inRange=function(e,t,n){return t=ts(t),void 0===n?(n=t,t=0):n=ts(n),function(e,t,n){return e>=an(t,n)&&e<on(t,n)}(e=is(e),t,n)},On.invoke=ys,On.isArguments=Aa,On.isArray=Na,On.isArrayBuffer=ja,On.isArrayLike=Ra,On.isArrayLikeObject=Da,On.isBoolean=function(e){return!0===e||!1===e||qa(e)&&hr(e)==l},On.isBuffer=La,On.isDate=Ma,On.isElement=function(e){return qa(e)&&1===e.nodeType&&!Ka(e)},On.isEmpty=function(e){if(null==e)return!0;if(Ra(e)&&(Na(e)||"string"==typeof e||"function"==typeof e.splice||La(e)||Xa(e)||Aa(e)))return!e.length;var t=to(e);if(t==v||t==b)return!e.size;if(lo(e))return!Sr(e).length;for(var n in e)if(Se.call(e,n))return!1;return!0},On.isEqual=function(e,t){return br(e,t)},On.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===r?br(e,t,void 0,n):!!r},On.isError=Fa,On.isFinite=function(e){return"number"==typeof e&&tn(e)},On.isFunction=za,On.isInteger=Ua,On.isLength=Va,On.isMap=Wa,On.isMatch=function(e,t){return e===t||wr(e,t,Xi(t))},On.isMatchWith=function(e,t,n){return n="function"==typeof n?n:void 0,wr(e,t,Xi(t),n)},On.isNaN=function(e){return Ha(e)&&e!=+e},On.isNative=function(e){if(co(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return _r(e)},On.isNil=function(e){return null==e},On.isNull=function(e){return null===e},On.isNumber=Ha,On.isObject=Ba,On.isObjectLike=qa,On.isPlainObject=Ka,On.isRegExp=Ga,On.isSafeInteger=function(e){return Ua(e)&&e>=-9007199254740991&&e<=9007199254740991},On.isSet=$a,On.isString=Qa,On.isSymbol=Ya,On.isTypedArray=Xa,On.isUndefined=function(e){return void 0===e},On.isWeakMap=function(e){return qa(e)&&to(e)==E},On.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==hr(e)},On.join=function(e,t){return null==e?"":nn.call(e,t)},On.kebabCase=Ns,On.last=Fo,On.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return void 0!==n&&(i=(i=ns(n))<0?on(r+i,0):an(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):wt(e,St,i,!0)},On.lowerCase=js,On.lowerFirst=Rs,On.lt=Ja,On.lte=Za,On.max=function(e){return e&&e.length?nr(e,Hs,dr):void 0},On.maxBy=function(e,t){return e&&e.length?nr(e,Qi(t,2),dr):void 0},On.mean=function(e){return kt(e,Hs)},On.meanBy=function(e,t){return kt(e,Qi(t,2))},On.min=function(e){return e&&e.length?nr(e,Hs,Tr):void 0},On.minBy=function(e,t){return e&&e.length?nr(e,Qi(t,2),Tr):void 0},On.stubArray=ru,On.stubFalse=iu,On.stubObject=function(){return{}},On.stubString=function(){return""},On.stubTrue=function(){return!0},On.multiply=cu,On.nth=function(e,t){return e&&e.length?Pr(e,ns(t)):void 0},On.noConflict=function(){return Ge._===this&&(Ge._=xe),this},On.noop=Ys,On.now=pa,On.pad=function(e,t,n){e=as(e);var r=(t=ns(t))?Ht(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Ai(Jt(i),n)+e+Ai(Xt(i),n)},On.padEnd=function(e,t,n){e=as(e);var r=(t=ns(t))?Ht(e):0;return t&&r<t?e+Ai(t-r,n):e},On.padStart=function(e,t,n){e=as(e);var r=(t=ns(t))?Ht(e):0;return t&&r<t?Ai(t-r,n)+e:e},On.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),un(as(e).replace(Q,""),t||0)},On.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ao(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=ts(e),void 0===t?(t=e,e=0):t=ts(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=cn();return an(e+i*(t-e+qe("1e-"+((i+"").length-1))),t)}return Dr(e,t)},On.reduce=function(e,t,n){var r=Na(e)?vt:Ot,i=arguments.length<3;return r(e,Qi(t,4),n,i,Zn)},On.reduceRight=function(e,t,n){var r=Na(e)?mt:Ot,i=arguments.length<3;return r(e,Qi(t,4),n,i,er)},On.repeat=function(e,t,n){return t=(n?ao(e,t,n):void 0===t)?1:ns(t),Lr(as(e),t)},On.replace=function(){var e=arguments,t=as(e[0]);return e.length<3?t:t.replace(e[1],e[2])},On.result=function(e,t,n){var r=-1,i=(t=ai(t,e)).length;for(i||(i=1,e=void 0);++r<i;){var o=null==e?void 0:e[To(t[r])];void 0===o&&(r=i,o=n),e=za(o)?o.call(e):o}return e},On.round=lu,On.runInContext=e,On.sample=function(e){return(Na(e)?Fn:Fr)(e)},On.size=function(e){if(null==e)return 0;if(Ra(e))return Qa(e)?Ht(e):e.length;var t=to(e);return t==v||t==b?e.size:Sr(e).length},On.snakeCase=Ds,On.some=function(e,t,n){var r=Na(e)?gt:Hr;return n&&ao(e,t,n)&&(t=void 0),r(e,Qi(t,3))},On.sortedIndex=function(e,t){return Kr(e,t)},On.sortedIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2))},On.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Kr(e,t);if(r<n&&xa(e[r],t))return r}return-1},On.sortedLastIndex=function(e,t){return Kr(e,t,!0)},On.sortedLastIndexBy=function(e,t,n){return Gr(e,t,Qi(n,2),!0)},On.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=Kr(e,t,!0)-1;if(xa(e[n],t))return n}return-1},On.startCase=Ls,On.startsWith=function(e,t,n){return e=as(e),n=null==n?0:$n(ns(n),0,e.length),t=Yr(t),e.slice(n,n+t.length)==t},On.subtract=fu,On.sum=function(e){return e&&e.length?xt(e,Hs):0},On.sumBy=function(e,t){return e&&e.length?xt(e,Qi(t,2)):0},On.template=function(e,t,n){var r=On.templateSettings;n&&ao(e,t,n)&&(t=void 0),e=as(e),t=cs({},t,r,zi);var i,o,a=cs({},t.imports,r.imports,zi),s=bs(a),u=At(a,s),c=0,l=t.interpolate||le,f="__p += '",h=ve((t.escape||le).source+"|"+l.source+"|"+(l===B?ne:le).source+"|"+(t.evaluate||le).source+"|$","g"),d="//# sourceURL="+(Se.call(t,"sourceURL")?(t.sourceURL+"").replace(/[\r\n]/g," "):"lodash.templateSources["+ ++ze+"]")+"\n";e.replace(h,(function(t,n,r,a,s,u){return r||(r=a),f+=e.slice(c,u).replace(fe,Ft),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),s&&(o=!0,f+="';\n"+s+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),f+="';\n";var p=Se.call(t,"variable")&&t.variable;p||(f="with (obj) {\n"+f+"\n}\n"),f=(o?f.replace(j,""):f).replace(R,"$1").replace(D,"$1;"),f="function("+(p||"obj")+") {\n"+(p?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Us((function(){return he(s,d+"return "+f).apply(void 0,u)}));if(v.source=f,Fa(v))throw v;return v},On.times=function(e,t){if((e=ns(e))<1||e>9007199254740991)return[];var n=4294967295,r=an(e,4294967295);e-=4294967295;for(var i=It(r,t=Qi(t));++n<e;)t(n);return i},On.toFinite=ts,On.toInteger=ns,On.toLength=rs,On.toLower=function(e){return as(e).toLowerCase()},On.toNumber=is,On.toSafeInteger=function(e){return e?$n(ns(e),-9007199254740991,9007199254740991):0===e?e:0},On.toString=as,On.toUpper=function(e){return as(e).toUpperCase()},On.trim=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace($,"");if(!e||!(t=Yr(t)))return e;var r=Kt(e),i=Kt(t);return ui(r,jt(r,i),Rt(r,i)+1).join("")},On.trimEnd=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace(Y,"");if(!e||!(t=Yr(t)))return e;var r=Kt(e);return ui(r,0,Rt(r,Kt(t))+1).join("")},On.trimStart=function(e,t,n){if((e=as(e))&&(n||void 0===t))return e.replace(Q,"");if(!e||!(t=Yr(t)))return e;var r=Kt(e);return ui(r,jt(r,Kt(t))).join("")},On.truncate=function(e,t){var n=30,r="...";if(Ba(t)){var i="separator"in t?t.separator:i;n="length"in t?ns(t.length):n,r="omission"in t?Yr(t.omission):r}var o=(e=as(e)).length;if(zt(e)){var a=Kt(e);o=a.length}if(n>=o)return e;var s=n-Ht(r);if(s<1)return r;var u=a?ui(a,0,s).join(""):e.slice(0,s);if(void 0===i)return u+r;if(a&&(s+=u.length-s),Ga(i)){if(e.slice(s).search(i)){var c,l=u;for(i.global||(i=ve(i.source,as(re.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;u=u.slice(0,void 0===f?s:f)}}else if(e.indexOf(Yr(i),s)!=s){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},On.unescape=function(e){return(e=as(e))&&F.test(e)?e.replace(L,Gt):e},On.uniqueId=function(e){var t=++ke;return as(e)+t},On.upperCase=Ms,On.upperFirst=Fs,On.each=aa,On.eachRight=sa,On.first=Ro,Qs(On,function(){var e={};return sr(On,(function(t,n){Se.call(On.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),On.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){On[e].placeholder=On})),st(["drop","take"],(function(e,t){An.prototype[e]=function(n){n=void 0===n?1:on(ns(n),0);var r=this.__filtered__&&!t?new An(this):this.clone();return r.__filtered__?r.__takeCount__=an(n,r.__takeCount__):r.__views__.push({size:an(n,4294967295),type:e+(r.__dir__<0?"Right":"")}),r},An.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;An.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Qi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),st(["head","last"],(function(e,t){var n="take"+(t?"Right":"");
2An.prototype[e]=function(){return this[n](1).value()[0]}})),st(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");An.prototype[e]=function(){return this.__filtered__?new An(this):this[n](1)}})),An.prototype.compact=function(){return this.filter(Hs)},An.prototype.find=function(e){return this.filter(e).head()},An.prototype.findLast=function(e){return this.reverse().find(e)},An.prototype.invokeMap=Mr((function(e,t){return"function"==typeof e?new An(this):this.map((function(n){return gr(n,e,t)}))})),An.prototype.reject=function(e){return this.filter(Sa(Qi(e)))},An.prototype.slice=function(e,t){e=ns(e);var n=this;return n.__filtered__&&(e>0||t<0)?new An(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),void 0!==t&&(n=(t=ns(t))<0?n.dropRight(-t):n.take(t-e)),n)},An.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},An.prototype.toArray=function(){return this.take(4294967295)},sr(An.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=On[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(On.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,s=t instanceof An,u=a[0],c=s||Na(t),l=function(e){var t=i.apply(On,pt([e],a));return r&&f?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(s=c=!1);var f=this.__chain__,h=!!this.__actions__.length,d=o&&!f,p=s&&!h;if(!o&&c){t=p?t:new An(this);var v=e.apply(t,a);return v.__actions__.push({func:ta,args:[l],thisArg:void 0}),new Pn(v,f)}return d&&p?e.apply(this,a):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ye[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);On.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Na(i)?i:[],e)}return this[n]((function(n){return t.apply(Na(n)?n:[],e)}))}})),sr(An.prototype,(function(e,t){var n=On[t];if(n){var r=n.name+"";Se.call(yn,r)||(yn[r]=[]),yn[r].push({name:t,func:n})}})),yn[Oi(void 0,2).name]=[{name:"wrapper",func:void 0}],An.prototype.clone=function(){var e=new An(this.__wrapped__);return e.__actions__=mi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=mi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=mi(this.__views__),e},An.prototype.reverse=function(){if(this.__filtered__){var e=new An(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},An.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Na(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=an(t,e+a);break;case"takeRight":e=on(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,h=0,d=an(u,this.__takeCount__);if(!n||!r&&i==u&&d==u)return ti(e,this.__actions__);var p=[];e:for(;u--&&h<d;){for(var v=-1,m=e[c+=t];++v<f;){var g=l[v],y=g.iteratee,b=g.type,w=y(m);if(2==b)m=w;else if(!w){if(1==b)continue e;break e}}p[h++]=m}return p},On.prototype.at=na,On.prototype.chain=function(){return ea(this)},On.prototype.commit=function(){return new Pn(this.value(),this.__chain__)},On.prototype.next=function(){void 0===this.__values__&&(this.__values__=es(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},On.prototype.plant=function(e){for(var t,n=this;n instanceof In;){var r=Oo(n);r.__index__=0,r.__values__=void 0,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},On.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof An){var t=e;return this.__actions__.length&&(t=new An(this)),(t=t.reverse()).__actions__.push({func:ta,args:[Bo],thisArg:void 0}),new Pn(t,this.__chain__)}return this.thru(Bo)},On.prototype.toJSON=On.prototype.valueOf=On.prototype.value=function(){return ti(this.__wrapped__,this.__actions__)},On.prototype.first=On.prototype.head,Xe&&(On.prototype[Xe]=function(){return this}),On}();Ge._=$t,void 0===(i=function(){return $t}.call(t,n,t,r))||(r.exports=i)}).call(this)}).call(this,n(46),n(181)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){e.exports=n(183)},function(e,t,n){"use strict";var r=n(24),i=n(80),o=n(184),a=n(86);function s(e){var t=new o(e),n=i(o.prototype.request,t);return r.extend(n,o.prototype,t),r.extend(n,t),n}var u=s(n(83));u.Axios=o,u.create=function(e){return s(a(u.defaults,e))},u.Cancel=n(87),u.CancelToken=n(197),u.isCancel=n(82),u.all=function(e){return Promise.all(e)},u.spread=n(198),e.exports=u,e.exports.default=u},function(e,t,n){"use strict";var r=n(24),i=n(81),o=n(185),a=n(186),s=n(86);function u(e){this.defaults=e,this.interceptors={request:new o,response:new o}}u.prototype.request=function(e){"string"===typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=s(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},u.prototype.getUri=function(e){return e=s(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(r.merge(n||{},{method:e,url:t}))}})),r.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(r.merge(i||{},{method:e,url:t,data:n}))}})),e.exports=u},function(e,t,n){"use strict";var r=n(24);function i(){this.handlers=[]}i.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},i.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},i.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=i},function(e,t,n){"use strict";var r=n(24),i=n(187),o=n(82),a=n(83);function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(24);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(85);e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},function(e,t,n){"use strict";var r=n(192),i=n(193);e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(24),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,o,a={};return e?(r.forEach(e.split("\n"),(function(e){if(o=e.indexOf(":"),t=r.trim(e.substr(0,o)).toLowerCase(),n=r.trim(e.substr(o+1)),t){if(a[t]&&i.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(24);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(24);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(87);function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e;return{token:new i((function(t){e=t})),cancel:e}},e.exports=i},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t,n){"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n,r,i,o){var a=r||"<<anonymous>>",s=o||n;if(null==t[n])return new Error("The "+i+" `"+s+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var u=arguments.length,c=Array(u>5?u-5:0),l=5;l<u;l++)c[l-5]=arguments[l];return e.apply(void 0,[t,n,r,i,o].concat(c))}},e.exports=t.default},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},,,,function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(12),a=n.n(o),s=n(0),u=n.n(s),c=n(13),l=["bsPrefix","className","noGutters","as"],f=["xl","lg","md","sm","xs"],h=u.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.className,s=e.noGutters,h=e.as,d=void 0===h?"div":h,p=Object(i.a)(e,l),v=Object(c.a)(n,"row"),m=v+"-cols",g=[];return f.forEach((function(e){var t,n=p[e];delete p[e];var r="xs"!==e?"-"+e:"";null!=(t=null!=n&&"object"===typeof n?n.cols:n)&&g.push(""+m+r+"-"+t)})),u.a.createElement(d,Object(r.a)({ref:t},p,{className:a.a.apply(void 0,[o,v,s&&"no-gutters"].concat(g))}))}));h.displayName="Row",h.defaultProps={noGutters:!1},t.a=h},function(e,t,n){"use strict";var r=n(3),i=n(5),o=n(12),a=n.n(o),s=n(0),u=n.n(s),c=n(13),l=["bsPrefix","className","as"],f=["xl","lg","md","sm","xs"],h=u.a.forwardRef((function(e,t){var n=e.bsPrefix,o=e.className,s=e.as,h=void 0===s?"div":s,d=Object(i.a)(e,l),p=Object(c.a)(n,"col"),v=[],m=[];return f.forEach((function(e){var t,n,r,i=d[e];if(delete d[e],"object"===typeof i&&null!=i){var o=i.span;t=void 0===o||o,n=i.offset,r=i.order}else t=i;var a="xs"!==e?"-"+e:"";t&&v.push(!0===t?""+p+a:""+p+a+"-"+t),null!=r&&m.push("order"+a+"-"+r),null!=n&&m.push("offset"+a+"-"+n)})),v.length||v.push(p),u.a.createElement(h,Object(r.a)({},d,{ref:t,className:a.a.apply(void 0,[o].concat(v,m))}))}));h.displayName="Col",t.a=h}]]); 3//# sourceMappingURL=2.5b960e92.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.