PageSourceSearch

https://waterassistanceprograms.org/static/js/2.bfd6c308.chunk.js

js waterassistanceprograms.org collected 2026-10-07 11:17:52 UTC 2,051,974 bytes, 3 lines download raw bytes

1/*! For license information please see 2.bfd6c308.chunk.js.LICENSE.txt */
2(this.webpackJsonpcapdatabase=this.webpackJsonpcapdatabase||[]).push([[2],[function(e,t,n){"use strict";e.exports=n(152)},function(e,t,n){"use strict";e.exports=n(158)},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 d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return g})),n.d(t,"__spread",(function(){return v})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__spreadArray",(function(){return y})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return _})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return x}
2)),n.d(t,"__makeTemplateObject",(function(){return O})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return k})),n.d(t,"__classPrivateFieldGet",(function(){return C})),n.d(t,"__classPrivateFieldSet",(function(){return T}));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,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,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 g(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 v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function m(){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,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function b(e){return this instanceof b?(this.v=e,this):new b(e)}function _(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 b?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:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function x(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 O(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var S=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};
2function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return S(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function T(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"CONSTANTS",(function(){return i})),n.d(t,"Deferred",(function(){return h})),n.d(t,"ErrorFactory",(function(){return A})),n.d(t,"FirebaseError",(function(){return I})),n.d(t,"MAX_VALUE_MILLIS",(function(){return ae})),n.d(t,"RANDOM_FACTOR",(function(){return se})),n.d(t,"Sha1",(function(){return X})),n.d(t,"areCookiesEnabled",(function(){return T})),n.d(t,"assert",(function(){return o})),n.d(t,"assertionError",(function(){return a})),n.d(t,"async",(function(){return Q})),n.d(t,"base64",(function(){return u})),n.d(t,"base64Decode",(function(){return l})),n.d(t,"base64Encode",(function(){return c})),n.d(t,"calculateBackoffMillis",(function(){return ue})),n.d(t,"contains",(function(){return B})),n.d(t,"createMockUserToken",(function(){return p})),n.d(t,"createSubscribe",(function(){return Y})),n.d(t,"decode",(function(){return L})),n.d(t,"deepCopy",(function(){return f})),n.d(t,"deepExtend",(function(){return d})),n.d(t,"errorPrefix",(function(){return ee})),n.d(t,"extractQuerystring",(function(){return K})),n.d(t,"getGlobal",(function(){return j})),n.d(t,"getModularInstance",(function(){return le})),n.d(t,"getUA",(function(){return g})),n.d(t,"isAdmin",(function(){return U})),n.d(t,"isBrowser",(function(){return y})),n.d(t,"isBrowserExtension",(function(){return b})),n.d(t,"isElectron",(function(){return w})),n.d(t,"isEmpty",(function(){return q})),n.d(t,"isIE",(function(){return x})),n.d(t,"isIndexedDBAvailable",(function(){return k})),n.d(t,"isMobileCordova",(function(){return v})),n.d(t,"isNode",(function(){return m})),n.d(t,"isNodeSdk",(function(){return S})),n.d(t,"isReactNative",(function(){return _})),n.d(t,"isSafari",(function(){return E})),n.d(t,"isUWP",(function(){return O})),n.d(t,"isValidFormat",(function(){return V})),n.d(t,"isValidTimestamp",(function(){return D})),n.d(t,"issuedAtTime",(function(){return F})),n.d(t,"jsonEval",(function(){return M})),n.d(t,"map",(function(){return G})),n.d(t,"ordinal",(function(){return ce})),n.d(t,"querystring",(function(){return W})),n.d(t,"querystringDecode",(function(){return H})),n.d(t,"safeGet",(function(){return z})),n.d(t,"stringLength",(function(){return oe})),n.d(t,"stringToByteArray",(function(){return ie})),n.d(t,"stringify",(function(){return R})),n.d(t,"validateArgCount",(function(){return Z})),n.d(t,"validateCallback",(function(){return ne})),n.d(t,"validateContextObject",(function(){return re})),n.d(t,"validateIndexedDBOpenable",(function(){return C})),n.d(t,"validateNamespace",(function(){return te}));var r=n(2),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,d=(15&s)<<2|c>>6,h=63&c;u||(h=64,a||(d=64)),r.push(n[l],n[f],n[d],n[h])}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++];
2t[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){var t=s(e);return u.encodeByteArray(t,!0)},l=function(e){try{return u.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function f(e){return d(void 0,e)}function d(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)&&"__proto__"!==n&&(e[n]=d(e[n],t[n]));return e}var h=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 p(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",i=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=Object(r.__assign)({iss:"https://securetoken.google.com/"+n,aud:n,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[u.encodeString(JSON.stringify({alg:"none",type:"JWT"}),!1),u.encodeString(JSON.stringify(a),!1),""].join(".")}function g(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function v(){return"undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(g())}function m(){try{return"[object process]"===Object.prototype.toString.call(e.process)}catch(t){return!1}}function y(){return"object"===typeof self&&self.self===self}function b(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function _(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function w(){return g().indexOf("Electron/")>=0}function x(){var e=g();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function O(){return g().indexOf("MSAppHost/")>=0}function S(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN}function E(){return!m()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function k(){return"indexedDB"in self&&null!=indexedDB}function C(){return new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.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)}}))}function T(){return!(!navigator||!navigator.cookieEnabled)}function j(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof e)return e;throw new Error("Unable to locate global object.")}var I=function(e){function t(n,r,i){var o=e.call(this,r)||this;return o.code=n,o.customData=i,o.name="FirebaseError",Object.setPrototypeOf(o,t.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,A.prototype.create),o}return Object(r.__extends)(t,e),t}(Error),A=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];var r=t[0]||{},i=this.service+"/"+e,o=this.errors[e],a=o?P(o,r):"Error",s=this.serviceName+": "+a+" ("+i+").",u=new I(i,s,r);return u},e}();function P(e,t){return e.replace(N,(function(e,n){var r=t[n];return null!=r?String(r):"<"+n+"?>"}))}var N=/\{\$([^}]+)}/g;function M(e){return JSON.parse(e)}function R(e){return JSON.stringify(e)}var L=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=M(l(o[0])||""),n=M(l(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(a){}return{header:t,claims:n,data:r,signature:i}},D=function(e){var t=L(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},F=function(e){var t=L(e).claims;return"object"===typeof t&&t.hasOwnProperty("iat")?t.iat:null},V=function(e){var t=L(e).claims;return!!t&&"object"===typeof t&&t.hasOwnProperty("iat")},U=function(e){var t=L(e).claims;return"object"===typeof t&&!0===t.admin};function B(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function z(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function q(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function G(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}function W(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("&"):""}function H(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=e.split("="),r=n[0],i=n[1];t[decodeURIComponent(r)]=decodeURIComponent(i)}})),t}function K(e){var t=e.indexOf("?");if(!t)return"";var n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}var X=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}();function Y(e,t){var n=new $(e,t);return n.subscribe.bind(n)}var $=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.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=J),void 0===r.error&&(r.error=J),void 0===r.complete&&(r.complete=J);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 Q(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)}))}}function J(){}var Z=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+".")};function ee(e,t){return e+" failed: "+t+" argument "}function te(e,t,n){if((!n||t)&&"string"!==typeof t)throw new Error(ee(e,"namespace")+"must be a valid firebase namespace.")}function ne(e,t,n,r){if((!r||n)&&"function"!==typeof n)throw new Error(ee(e,t)+"must be a valid function.")}function re(e,t,n,r){if((!r||n)&&("object"!==typeof n||null===n))throw new Error(ee(e,t)+"must be a valid context object.")}var ie=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},oe=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},ae=144e5,se=.5;function ue(e,t,n){void 0===t&&(t=1e3),void 0===n&&(n=2);var r=t*Math.pow(n,e),i=Math.round(se*r*(Math.random()-.5)*2);return Math.min(ae,r+i)}function ce(e){return Number.isFinite(e)?e+function(e){var t=(e=Math.abs(e))%100;if(t>=10&&t<=20)return"th";var n=e%10;if(1===n)return"st";if(2===n)return"nd";if(3===n)return"rd";return"th"}(e):""+e}function le(e){return e&&e._delegate?e._delegate:e}}.call(this,n(66))},function(e,t,n){"use strict";function r(){return(r=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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return pi})),n.d(t,"b",(function(){return A})),n.d(t,"c",(function(){return Ta})),n.d(t,"d",(function(){return ja})),n.d(t,"e",(function(){return Ia})),n.d(t,"f",(function(){return Aa})),n.d(t,"g",(function(){return Pa})),n.d(t,"h",(function(){return Na})),n.d(t,"i",(function(){return Ii})),n.d(t,"j",(function(){return yi})),n.d(t,"k",(function(){return Po})),n.d(t,"l",(function(){return qo})),n.d(t,"m",(function(){return Ea})),n.d(t,"n",(function(){return ra})),n.d(t,"o",(function(){return aa})),n.d(t,"p",(function(){return Da}));var r=n(0),i=n.n(r),o={profile:{icon:"user",value:"Profile",to:"/profile"},settings:{icon:"settings",value:"Settings",to:"/settings"},mail:{icon:"mail",value:"Inbox",to:"/mail"},message:{icon:"send",value:"Message",to:"/message"},help:{icon:"help-circle",value:"Need help?",to:"/help"},logout:{icon:"log-out",value:"Sign out",to:"/logout"},divider:{isDivider:!0}};function a(e){var t=e.avatarURL,n=e.name,i=e.description,a=e.options,s=void 0===a?[]:a,u=e.optionsRootComponent,c=function(e){return e.map((function(e){return"string"===typeof e?o[e]:e}))}(s);return Object(r.createElement)(ho,{isNavLink:!0,triggerClassName:"pr-0 leading-none",triggerContent:Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(_,{imageURL:t}),Object(r.createElement)("span",{className:"ml-2 d-none d-lg-block"},Object(r.createElement)("span",{className:"text-default"},n),Object(r.createElement)("small",{className:"text-muted d-block mt-1"},i))),position:"bottom-end",arrow:!0,arrowPosition:"right",toggle:!1,itemsObject:c,itemsRootComponent:u})}var s="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};
2function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c(e,t){return e(t={exports:{}},t.exports),t.exports}var l=c((function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var o=typeof i;if("string"===o||"number"===o)e.push(i);else if(Array.isArray(i)&&i.length){var a=n.apply(null,i);a&&e.push(a)}else if("object"===o)for(var s in i)t.call(i,s)&&i[s]&&e.push(s)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n}()}));function f(e){var t=e.children,n=e.className,i=e.href,o=l("alert-link",n);return Object(r.createElement)("a",{className:o,href:i},t)}f.displayName="Alert.Link";"function"===typeof Symbol&&Symbol.iterator,function(){var e="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103}(),function(){function e(e){this.value=e}function t(t){var n,r;function i(n,r){try{var a=t[n](r),s=a.value;s instanceof e?Promise.resolve(s.value).then((function(e){i("next",e)}),(function(e){i("throw",e)})):o(a.done?"return":"normal",a.value)}catch(u){o("throw",u)}}function o(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?i(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise((function(o,a){var s={key:e,arg:t,resolve:o,reject:a,next:null};r?r=r.next=s:(n=r=s,i(e,t))}))},"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}();var d=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},h=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),p=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v=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)},m=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},y=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};"undefined"===typeof e&&self;function b(e){var t=e.className,n=e.children,i=e.stacked,o=l({"avatar-list":!0,"avatar-list-stacked":i},t);return Object(r.createElement)("div",{className:o},n)}function _(e){var t,n=e.className,i=e.children,o=e.imageURL,a=e.style,s=e.size,u=void 0===s?"":s,c=e.status,f=e.placeholder,d=e.icon,h=e.color,g=void 0===h?"":h,v=e.onClick,m=e.onMouseEnter,y=e.onMouseLeave,b=e.onPointerEnter,_=e.onPointerLeave,w=l((p(t={avatar:!0},"avatar-"+u,!!u),p(t,"avatar-placeholder",f),p(t,"avatar-"+g,!!g),t),n);return Object(r.createElement)("span",{className:w,style:o?Object.assign({backgroundImage:"url("+o+")"},a):a,onClick:v,onMouseEnter:m,onMouseLeave:y,onPointerEnter:b,onPointerLeave:_},d&&Object(r.createElement)(P,{name:d}),c&&Object(r.createElement)("span",{className:"avatar-status bg-"+c}),i)}function w(e){var t=e.className,n=e.children,i=e.color,o=void 0===i?"primary":i,a=l(p({badge:!0},"badge-"+o,o),t);return Object(r.createElement)("span",{className:a},n)}function x(e){var t=e.className,n=e.children,i=e.backgroundURL,o=void 0===i?"":i,a=l("card-header",t);return Object(r.createElement)("div",{className:a,style:o?Object.assign({backgroundImage:"url("+o+")"}):null},n)}function O(e){var t=e.className,n=e.children,i=e.RootComponent,o=l("card-title",t),a=i||"h3";return Object(r.createElement)(a,{className:o},n)}function S(e){var t=e.className,n=e.children,i=l("card-body",t);return Object(r.createElement)("div",{className:i},n)}function E(e){var t=e.className,n=e.children,i=l("card-options",t);return Object(r.createElement)("div",{className:i},n)}function k(e){var t=e.className,n=(e.children,e.icon),i=e.type,o=e.onClick,a=l({"card-options-collapse":"collapse"===i,"card-options-remove":"close"===i,"card-options-fullscreen":"fullscreen"===i},t),s=function(){switch(i){case"collapse":return"card-collapse";
2case"close":case"fullscreen":return"card-remove";default:return""}}(),u=function(){if(n)return n;switch(i){case"collapse":return"chevron-up";case"close":return"x";case"fullscreen":return"maximize";default:return""}}();return Object(r.createElement)("a",{className:a,"data-toggle":s,onClick:o},Object(r.createElement)(P,{name:u}))}function C(e){var t,n=e.className,i=e.children,o=e.color,a=e.side,s=l((p(t={"card-status":!0},"bg-"+o,!0),p(t,"card-status-left",a),t),n);return Object(r.createElement)("div",{className:s},i)}function T(e){var t=e.className,n=e.children,i=e.color,o=l("card-alert alert alert-"+i+" mb-0",t);return Object(r.createElement)("div",{className:o},n)}function j(e){var t=e.className,n=e.children,i=l("card-footer",t);return Object(r.createElement)("div",{className:i},n)}function I(e){var t=e.className,n=e.children,i=e.placeholder,o=l("card-map",{"card-map-placeholder":i},t);return Object(r.createElement)("div",{className:o,style:i&&{backgroundImage:"url("+i+")"}},n)}(function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isDismissed:!1},r._handleOnDismissClick=function(){r.props.onDismissClick&&r.props.onDismissClick(),r.setState({isDismissed:!0})},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.state.isDismissed,t=this.props,n=t.className,i=t.children,o=t.type,a=t.icon,s=t.hasExtraSpace,u=t.isDismissible,c=t.avatar,f=t.onClick,d=t.onMouseEnter,h=t.onMouseLeave,p=t.onPointerEnter,v=t.onPointerLeave,m=l("alert","alert-"+o,{"alert-icon":!!a,"mt-5 mb-6":s,"alert-dismissible":u,"alert-avatar":!!c},n),y={onClick:f,onMouseEnter:d,onMouseLeave:h,onPointerEnter:p,onPointerLeave:v};return!e&&Object(r.createElement)("div",g({},y,{className:m,role:"alert"}),u&&Object(r.createElement)(pi,{className:"close",onClick:this._handleOnDismissClick}),c&&Object(r.createElement)(_,{imageURL:c}),a&&Object(r.createElement)(P,{name:a,className:"mr-2",isAriaHidden:!0}),i)}}]),t}(r.Component)).Link=f,b.displayName="Avatar.List",_.List=b,x.displayName="Card.Header",O.displayName="Card.Title",S.displayName="Card.Body",E.displayName="Card.Options",k.displayName="Card.OptionsItem",C.displayName="Card.Status",T.displayName="Card.Alert",j.displayName="Card.Footer",I.displayName="Card.Map";var A=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isClosed:r.props.isClosed||!1,isCollapsed:r.props.isCollapsed||!1,isFullscreen:!1},r.handleCloseOnClick=function(){r.setState((function(e){return{isClosed:!e.isClosed}}))},r.handleCollapseOnClick=function(){r.setState((function(e){return{isCollapsed:!e.isCollapsed}}))},r.handleFullscreenOnClick=function(){r.setState((function(e){return{isFullscreen:!e.isFullscreen}}))},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,n=e.className,i=e.children,o=e.RootComponent,a=e.title,s=e.body,u=e.options,c=e.isCollapsible,f=e.isClosable,d=e.isFullscreenable,h=e.aside,p=e.statusColor,g=e.statusSide,v=e.alert,m=e.alertColor,y=e.footer,b=this.state,_=b.isClosed,w=b.isCollapsed,x=b.isFullscreen;if(_)return null;var O=l({card:!0,aside:h,"card-collapsed":w,"card-fullscreen":x},n),S=o||"div",E=(u||c||f)&&Object(r.createElement)(t.Options,null,u,c&&Object(r.createElement)(t.OptionsItem,{onClick:this.handleCollapseOnClick,type:"collapse"}),d&&Object(r.createElement)(t.OptionsItem,{type:"fullscreen",onClick:this.handleFullscreenOnClick}),f&&Object(r.createElement)(t.OptionsItem,{type:"close",onClick:this.handleCloseOnClick})),k=p&&Object(r.createElement)(t.Status,{color:p,side:g}),C=v&&m&&Object(r.createElement)(t.Alert,{color:m},v),T=a&&Object(r.createElement)(t.Header,null,Object(r.createElement)(t.Title,null,a),E),j=s&&Object(r.createElement)(t.Body,null,s),I=y&&Object(r.createElement)(t.Footer,null,y);return null!==T||null!==j?Object(r.createElement)(S,{className:O},k,T,C,j||i,I):Object(r.createElement)(S,{className:O},i)}}]),t}(r.PureComponent);function P(e){var t,n=e.prefix,i=void 0===n?"fe":n,o=e.name,a=e.className,s=e.link,u=e.isAriaHidden,c=e.payment,f=e.flag,d=e.onClick,h=e.onMouseEnter,v=e.onMouseLeave,m=e.onPointerEnter,y=e.onPointerLeave,b=e.onFocus,_=e.onBlur,w=(c?"payment":f&&"flag")||i,x=l((p(t={}
2,w,!0),p(t,w+"-"+o,!0),t),a),O=u?{"aria-hidden":"true"}:null,S={onClick:d,onMouseEnter:h,onMouseLeave:v,onPointerEnter:m,onPointerLeave:y,onFocus:b,onBlur:_};return s?Object(r.createElement)("a",g({className:"icon"},O,S),Object(r.createElement)("i",{className:x})):Object(r.createElement)("i",g({className:x},S))}function N(e){var t=e.className,n=e.children,i=e.align,o=void 0===i?"":i,a=m(e,["className","children","align"]),s=l(p({"btn-list":!0},"text-"+o,!!o),t);return Object(r.createElement)("div",g({className:s},a),n)}A.Header=x,A.Body=S,A.Title=O,A.Options=E,A.OptionsItem=k,A.Status=C,A.Alert=T,A.Footer=j,A.Map=I,P.displayName="Icon",N.displayName="Button.List";var M=c((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)})),R=c((function(e){var t=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=t)})),L=(R.version,function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}),D=function(e){return"object"===typeof e?null!==e:"function"===typeof e},F=function(e){if(!D(e))throw TypeError(e+" is not an object!");return e},V=function(e){try{return!!e()}catch(t){return!0}},U=!V((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),B=M.document,z=D(B)&&D(B.createElement),q=function(e){return z?B.createElement(e):{}},G=!U&&!V((function(){return 7!=Object.defineProperty(q("div"),"a",{get:function(){return 7}}).a})),W=function(e,t){if(!D(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!D(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!D(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!D(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},H=Object.defineProperty,K={f:U?Object.defineProperty:function(e,t,n){if(F(e),t=W(t,!0),F(n),G)try{return H(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},X=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Y=U?function(e,t,n){return K.f(e,t,X(1,n))}:function(e,t,n){return e[t]=n,e},$={}.hasOwnProperty,Q=function(e,t){return $.call(e,t)},J=function e(t,n,r){var i,o,a,s=t&e.F,u=t&e.G,c=t&e.S,l=t&e.P,f=t&e.B,d=t&e.W,h=u?R:R[n]||(R[n]={}),p=h.prototype,g=u?M:c?M[n]:(M[n]||{}).prototype;for(i in u&&(r=n),r)(o=!s&&g&&void 0!==g[i])&&Q(h,i)||(a=o?g[i]:r[i],h[i]=u&&"function"!=typeof g[i]?r[i]:f&&o?L(a,M):d&&g[i]==a?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(a):l&&"function"==typeof a?L(Function.call,a):a,l&&((h.virtual||(h.virtual={}))[i]=a,t&e.R&&p&&!p[i]&&Y(p,i,a)))};J.F=1,J.G=2,J.S=4,J.P=8,J.B=16,J.W=32,J.U=64,J.R=128;var Z,ee=J,te={}.toString,ne=function(e){return te.call(e).slice(8,-1)},re=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==ne(e)?e.split(""):Object(e)},ie=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e},oe=function(e){return re(ie(e))},ae=Math.ceil,se=Math.floor,ue=function(e){return isNaN(e=+e)?0:(e>0?se:ae)(e)},ce=Math.min,le=function(e){return e>0?ce(ue(e),9007199254740991):0},fe=Math.max,de=Math.min,he=c((function(e){var t="__core-js_shared__",n=M[t]||(M[t]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:R.version,mode:"pure",copyright:"\xa9 2018 Denis Pushkarev (zloirock.ru)"})})),pe=0,ge=Math.random(),ve=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++pe+ge).toString(36))},me=he("keys"),ye=function(e){return me[e]||(me[e]=ve(e))},be=(Z=!1,function(e,t,n){var r,i=oe(e),o=le(i.length),a=function(e,t){return(e=ue(e))<0?fe(e+t,0):de(e,t)}(n,o);if(Z&&t!=t){for(;o>a;)if((r=i[a++])!=r)return!0}else for(;o>a;a++)if((Z||a in i)&&i[a]===t)return Z||a||0;return!Z&&-1}),_e=ye("IE_PROTO"),we=function(e,t){var n,r=oe(e),i=0,o=[];for(n in r)n!=_e&&Q(r,n)&&o.push(n);for(;t.length>i;)Q(r,n=t[i++])&&(~be(o,n)||o.push(n));return o},xe="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleStr
2ing,toString,valueOf".split(","),Oe=Object.keys||function(e){return we(e,xe)},Se={f:Object.getOwnPropertySymbols},Ee={f:{}.propertyIsEnumerable},ke=function(e){return Object(ie(e))},Ce=Object.assign,Te=!Ce||V((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=Ce({},e)[n]||Object.keys(Ce({},t)).join("")!=r}))?function(e,t){for(var n=ke(e),r=arguments.length,i=1,o=Se.f,a=Ee.f;r>i;)for(var s,u=re(arguments[i++]),c=o?Oe(u).concat(o(u)):Oe(u),l=c.length,f=0;l>f;)a.call(u,s=c[f++])&&(n[s]=u[s]);return n}:Ce;ee(ee.S+ee.F,"Object",{assign:Te});var je=R.Object.assign,Ie=c((function(e){e.exports={default:je,__esModule:!0}}));u(Ie);var Ae=u(c((function(e,t){t.__esModule=!0;var n,r=(n=Ie)&&n.__esModule?n:{default:n};t.default=r.default||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}}))),Pe=ye("IE_PROTO"),Ne=Object.prototype,Me=Object.getPrototypeOf||function(e){return e=ke(e),Q(e,Pe)?e[Pe]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Ne:null};!function(e,t){var n=(R.Object||{})[e]||Object[e],r={};r[e]=t(n),ee(ee.S+ee.F*V((function(){n(1)})),"Object",r)}("getPrototypeOf",(function(){return function(e){return Me(ke(e))}}));var Re=R.Object.getPrototypeOf,Le=u(c((function(e){e.exports={default:Re,__esModule:!0}}))),De=u(c((function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}})));ee(ee.S+ee.F*!U,"Object",{defineProperty:K.f});var Fe=R.Object,Ve=function(e,t,n){return Fe.defineProperty(e,t,n)},Ue=c((function(e){e.exports={default:Ve,__esModule:!0}}));u(Ue);var Be=u(c((function(e,t){t.__esModule=!0;var n,r=(n=Ue)&&n.__esModule?n:{default:n};t.default=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),(0,r.default)(e,i.key,i)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()}))),ze=Y,qe={},Ge=U?Object.defineProperties:function(e,t){F(e);for(var n,r=Oe(t),i=r.length,o=0;i>o;)K.f(e,n=r[o++],t[n]);return e},We=M.document,He=We&&We.documentElement,Ke=ye("IE_PROTO"),Xe=function(){},Ye=function(){var e,t=q("iframe"),n=xe.length;for(t.style.display="none",He.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Ye=e.F;n--;)delete Ye.prototype[xe[n]];return Ye()},$e=Object.create||function(e,t){var n;return null!==e?(Xe.prototype=F(e),n=new Xe,Xe.prototype=null,n[Ke]=e):n=Ye(),void 0===t?n:Ge(n,t)},Qe=c((function(e){var t=he("wks"),n=M.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:ve)("Symbol."+e))}).store=t})),Je=K.f,Ze=Qe("toStringTag"),et=function(e,t,n){e&&!Q(e=n?e:e.prototype,Ze)&&Je(e,Ze,{configurable:!0,value:t})},tt={};Y(tt,Qe("iterator"),(function(){return this}));var nt,rt=function(e,t,n){e.prototype=$e(tt,{next:X(1,n)}),et(e,t+" Iterator")},it=Qe("iterator"),ot=!([].keys&&"next"in[].keys()),at="keys",st="values",ut=function(){return this},ct=function(e,t,n,r,i,o,a){rt(n,t,r);var s,u,c,l=function(e){if(!ot&&e in p)return p[e];switch(e){case at:case st:return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",d=i==st,h=!1,p=e.prototype,g=p[it]||p["@@iterator"]||i&&p[i],v=g||l(i),m=i?d?l("entries"):v:void 0,y="Array"==t&&p.entries||g;if(y&&(c=Me(y.call(new e)))!==Object.prototype&&c.next&&et(c,f,!0),d&&g&&g.name!==st&&(h=!0,v=function(){return g.call(this)}),a&&(ot||h||!p[it])&&Y(p,it,v),qe[t]=v,qe[f]=ut,i)if(s={values:d?v:l(st),keys:o?v:l(at),entries:m},a)for(u in s)u in p||ze(p,u,s[u]);else ee(ee.P+ee.F*(ot||h),t,s);return s},lt=(nt=!0,function(e,t){var n,r,i=String(ie(e)),o=ue(t),a=i.length;return o<0||o>=a?nt?"":void 0:(n=i.charCodeAt(o))<55296||n>56319||o+1===a||(r=i.charCodeAt(o+1))<56320||r>57343?nt?i.charAt(o):n:nt?i.slice(o,o+2):r-56320+(n-55296<<10)+65536});ct(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=lt(t,n),this._i+=e.length,{value:e,done:!1})}));var ft=function(e,t){return{value:t,done:!!e}};ct(Array,"Array",(function(e,t){this._t=oe(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,ft(1)):ft(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values");qe.Arguments=qe.Array;for(var dt=Qe("toStringTag"),ht="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),pt=0;pt<ht.length;pt++){var gt=ht[pt],vt=M[gt],mt=vt&&vt.prototype;mt&&!mt[dt]&&Y(mt,dt,gt),qe[gt]=qe.Array}var yt={f:Qe},bt=yt.f("iterator"),_t=c((function(e){e.exports={default:bt,__esModule:!0}}));u(_t);var wt=c((function(e){var t=ve("meta"),n=K.f,r=0,i=Object.isExtensible||function(){return!0},o=!V((function(){return i(Object.preventExtensions({}))})),a=function(e){n(e,t,{value:{i:"O"+ ++r,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!D(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!Q(e,t)){if(!i(e))return"F";if(!n)return"E";a(e)}return e[t].i},getWeak:function(e,n){if(!Q(e,t)){if(!i(e))return!0;
2if(!n)return!1;a(e)}return e[t].w},onFreeze:function(e){return o&&s.NEED&&i(e)&&!Q(e,t)&&a(e),e}}})),xt=(wt.KEY,wt.NEED,wt.fastKey,wt.getWeak,wt.onFreeze,K.f),Ot=function(e){var t=R.Symbol||(R.Symbol={});"_"==e.charAt(0)||e in t||xt(t,e,{value:yt.f(e)})},St=Array.isArray||function(e){return"Array"==ne(e)},Et=xe.concat("length","prototype"),kt={f:Object.getOwnPropertyNames||function(e){return we(e,Et)}},Ct=kt.f,Tt={}.toString,jt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],It={f:function(e){return jt&&"[object Window]"==Tt.call(e)?function(e){try{return Ct(e)}catch(t){return jt.slice()}}(e):Ct(oe(e))}},At=Object.getOwnPropertyDescriptor,Pt={f:U?At:function(e,t){if(e=oe(e),t=W(t,!0),G)try{return At(e,t)}catch(n){}if(Q(e,t))return X(!Ee.f.call(e,t),e[t])}},Nt=wt.KEY,Mt=Pt.f,Rt=K.f,Lt=It.f,Dt=M.Symbol,Ft=M.JSON,Vt=Ft&&Ft.stringify,Ut=Qe("_hidden"),Bt=Qe("toPrimitive"),zt={}.propertyIsEnumerable,qt=he("symbol-registry"),Gt=he("symbols"),Wt=he("op-symbols"),Ht=Object.prototype,Kt="function"==typeof Dt,Xt=M.QObject,Yt=!Xt||!Xt.prototype||!Xt.prototype.findChild,$t=U&&V((function(){return 7!=$e(Rt({},"a",{get:function(){return Rt(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Mt(Ht,t);r&&delete Ht[t],Rt(e,t,n),r&&e!==Ht&&Rt(Ht,t,r)}:Rt,Qt=function(e){var t=Gt[e]=$e(Dt.prototype);return t._k=e,t},Jt=Kt&&"symbol"==typeof Dt.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof Dt},Zt=function(e,t,n){return e===Ht&&Zt(Wt,t,n),F(e),t=W(t,!0),F(n),Q(Gt,t)?(n.enumerable?(Q(e,Ut)&&e[Ut][t]&&(e[Ut][t]=!1),n=$e(n,{enumerable:X(0,!1)})):(Q(e,Ut)||Rt(e,Ut,X(1,{})),e[Ut][t]=!0),$t(e,t,n)):Rt(e,t,n)},en=function(e,t){F(e);for(var n,r=function(e){var t=Oe(e),n=Se.f;if(n)for(var r,i=n(e),o=Ee.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}(t=oe(t)),i=0,o=r.length;o>i;)Zt(e,n=r[i++],t[n]);return e},tn=function(e){var t=zt.call(this,e=W(e,!0));return!(this===Ht&&Q(Gt,e)&&!Q(Wt,e))&&(!(t||!Q(this,e)||!Q(Gt,e)||Q(this,Ut)&&this[Ut][e])||t)},nn=function(e,t){if(e=oe(e),t=W(t,!0),e!==Ht||!Q(Gt,t)||Q(Wt,t)){var n=Mt(e,t);return!n||!Q(Gt,t)||Q(e,Ut)&&e[Ut][t]||(n.enumerable=!0),n}},rn=function(e){for(var t,n=Lt(oe(e)),r=[],i=0;n.length>i;)Q(Gt,t=n[i++])||t==Ut||t==Nt||r.push(t);return r},on=function(e){for(var t,n=e===Ht,r=Lt(n?Wt:oe(e)),i=[],o=0;r.length>o;)!Q(Gt,t=r[o++])||n&&!Q(Ht,t)||i.push(Gt[t]);return i};Kt||(ze((Dt=function(){if(this instanceof Dt)throw TypeError("Symbol is not a constructor!");var e=ve(arguments.length>0?arguments[0]:void 0),t=function t(n){this===Ht&&t.call(Wt,n),Q(this,Ut)&&Q(this[Ut],e)&&(this[Ut][e]=!1),$t(this,e,X(1,n))};return U&&Yt&&$t(Ht,e,{configurable:!0,set:t}),Qt(e)}).prototype,"toString",(function(){return this._k})),Pt.f=nn,K.f=Zt,kt.f=It.f=rn,Ee.f=tn,Se.f=on,yt.f=function(e){return Qt(Qe(e))}),ee(ee.G+ee.W+ee.F*!Kt,{Symbol:Dt});for(var an="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),sn=0;an.length>sn;)Qe(an[sn++]);for(var un=Oe(Qe.store),cn=0;un.length>cn;)Ot(un[cn++]);ee(ee.S+ee.F*!Kt,"Symbol",{for:function(e){return Q(qt,e+="")?qt[e]:qt[e]=Dt(e)},keyFor:function(e){if(!Jt(e))throw TypeError(e+" is not a symbol!");for(var t in qt)if(qt[t]===e)return t},useSetter:function(){Yt=!0},useSimple:function(){Yt=!1}}),ee(ee.S+ee.F*!Kt,"Object",{create:function(e,t){return void 0===t?$e(e):en($e(e),t)},defineProperty:Zt,defineProperties:en,getOwnPropertyDescriptor:nn,getOwnPropertyNames:rn,getOwnPropertySymbols:on}),Ft&&ee(ee.S+ee.F*(!Kt||V((function(){var e=Dt();return"[null]"!=Vt([e])||"{}"!=Vt({a:e})||"{}"!=Vt(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(D(t)||void 0!==e)&&!Jt(e))return St(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Jt(t))return t}),r[1]=t,Vt.apply(Ft,r)}}),Dt.prototype[Bt]||Y(Dt.prototype,Bt,Dt.prototype.valueOf),et(Dt,"Symbol"),et(Math,"Math",!0),et(M.JSON,"JSON",!0),Ot("asyncIterator"),Ot("observable");var ln=R.Symbol,fn=c((function(e){e.exports={default:ln,__esModule:!0}}));u(fn);var dn=c((function(e,t){t.__esModule=!0;var n=o(_t),r=o(fn),i="function"===typeof r.default&&"symbol"===typeof n.default?function(e){return typeof e}:function(e){return e&&"function"===typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};
2function o(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof r.default&&"symbol"===i(n.default)?function(e){return"undefined"===typeof e?"undefined":i(e)}:function(e){return e&&"function"===typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":"undefined"===typeof e?"undefined":i(e)}}));u(dn);var hn=u(c((function(e,t){t.__esModule=!0;var n,r=(n=dn)&&n.__esModule?n:{default:n};t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,r.default)(t))&&"function"!==typeof t?e:t}}))),pn=function(e,t){if(F(e),!D(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},gn={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{(n=L(Function.call,Pt.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,r){return pn(e,r),t?e.__proto__=r:n(e,r),e}}({},!1):void 0),check:pn};ee(ee.S,"Object",{setPrototypeOf:gn.set});var vn=R.Object.setPrototypeOf,mn=c((function(e){e.exports={default:vn,__esModule:!0}}));u(mn),ee(ee.S,"Object",{create:$e});var yn=R.Object,bn=function(e,t){return yn.create(e,t)},_n=c((function(e){e.exports={default:bn,__esModule:!0}}));u(_n);for(var wn=u(c((function(e,t){t.__esModule=!0;var n=o(mn),r=o(_n),i=o(dn);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,i.default)(t)));e.prototype=(0,r.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(n.default?(0,n.default)(e,t):e.__proto__=t)}}))),xn="undefined"!==typeof window&&"undefined"!==typeof document,On=["Edge","Trident","Firefox"],Sn=0,En=0;En<On.length;En+=1)if(xn&&navigator.userAgent.indexOf(On[En])>=0){Sn=1;break}var kn=xn&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),Sn))}};function Cn(e){return e&&"[object Function]"==={}.toString.call(e)}function Tn(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function jn(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function In(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=Tn(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:In(jn(e))}var An=xn&&!(!window.MSInputMethodContext||!document.documentMode),Pn=xn&&/MSIE 10/.test(navigator.userAgent);function Nn(e){return 11===e?An:10===e?Pn:An||Pn}function Mn(e){if(!e)return document.documentElement;for(var t=Nn(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===Tn(n,"position")?Mn(n):n:e?e.ownerDocument.documentElement:document.documentElement}function Rn(e){return null!==e.parentNode?Rn(e.parentNode):e}function Ln(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,o=document.createRange();o.setStart(r,0),o.setEnd(i,0);var a=o.commonAncestorContainer;if(e!==a&&t!==a||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||Mn(e.firstElementChild)===e)}(a)?a:Mn(a);var s=Rn(e);return s.host?Ln(s.host,t):Ln(e,Rn(t).host)}function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,o=e.ownerDocument.scrollingElement||i;return o[n]}return e[n]}function Fn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Dn(t,"top"),i=Dn(t,"left"),o=n?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=i*o,e.right+=i*o,e}function Vn(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function Un(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],Nn(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function Bn(){var e=document.body,t=document.documentElement,n=Nn(10)&&getComputedStyle(t);return{height:Un("Height",e,t,n),width:Un("Width",e,t,n)}}var zn=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qn=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}}(),Gn=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Hn(e){return Wn({},e,{right:e.left+e.width,bottom:e.top+e.height})}function Kn(e){var t={};try{if(Nn(10)){t=e.getBoundingClientRect();var n=Dn(e,"top"),r=Dn(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(f){}var i={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
vendor: 10,866 bytes, line 2
2,o="HTML"===e.nodeName?Bn():{},a=o.width||e.clientWidth||i.right-i.left,s=o.height||e.clientHeight||i.bottom-i.top,u=e.offsetWidth-a,c=e.offsetHeight-s;if(u||c){var l=Tn(e);u-=Vn(l,"x"),c-=Vn(l,"y"),i.width-=u,i.height-=c}return Hn(i)}function Xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Nn(10),i="HTML"===t.nodeName,o=Kn(e),a=Kn(t),s=In(e),u=Tn(t),c=parseFloat(u.borderTopWidth,10),l=parseFloat(u.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=Hn({top:o.top-a.top-c,left:o.left-a.left-l,width:o.width,height:o.height});if(f.marginTop=0,f.marginLeft=0,!r&&i){var d=parseFloat(u.marginTop,10),h=parseFloat(u.marginLeft,10);f.top-=c-d,f.bottom-=c-d,f.left-=l-h,f.right-=l-h,f.marginTop=d,f.marginLeft=h}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=Fn(f,t)),f}function Yn(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=Xn(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:Dn(n),s=t?0:Dn(n,"left"),u={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:o};return Hn(u)}function $n(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===Tn(e,"position")||$n(jn(e)))}function Qn(e){if(!e||!e.parentElement||Nn())return document.documentElement;for(var t=e.parentElement;t&&"none"===Tn(t,"transform");)t=t.parentElement;return t||document.documentElement}function Jn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=i?Qn(e):Ln(e,t);if("viewport"===r)o=Yn(a,i);else{var s=void 0;"scrollParent"===r?"BODY"===(s=In(jn(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var u=Xn(s,a,i);if("HTML"!==s.nodeName||$n(a))o=u;else{var c=Bn(),l=c.height,f=c.width;o.top+=u.top-u.marginTop,o.bottom=l+u.top,o.left+=u.left-u.marginLeft,o.right=f+u.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function Zn(e){return e.width*e.height}function er(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=Jn(n,r,o,i),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},u=Object.keys(s).map((function(e){return Wn({key:e},s[e],{area:Zn(s[e])})})).sort((function(e,t){return t.area-e.area})),c=u.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=c.length>0?c[0].key:u[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function tr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?Qn(t):Ln(t,n);return Xn(n,i,r)}function nr(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function rr(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function ir(e,t,n){n=n.split("-")[0];var r=nr(e),i={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",u=o?"height":"width",c=o?"width":"height";return i[a]=t[a]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[c]:t[rr(s)],i}function or(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function ar(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=or(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&Cn(n)&&(t.offsets.popper=Hn(t.offsets.popper),t.offsets.reference=Hn(t.offsets.reference),t=n(t,e))})),t}function sr(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=tr(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=er(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ir(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=ar(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function ur(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function cr(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],o=i?""+i+n:e;if("undefined"!==typeof document.body.style[o])return o}return null}function lr(){return this.state.isDestroyed=!0,ur(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[cr("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function fr(e){var t=e.ownerDocument;return t?t.defaultView:window}function dr(e,t,n,r){var i="BODY"===e.nodeName,o=i?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),i||dr(In(o.parentNode),t,n,r),r.push(o)}function hr(e,t,n,r){n.updateBound=r,fr(e).addEventListener("resize",n.updateBound,{passive:!0});var i=In(e);return dr(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function pr(){this.state.eventsEnabled||(this.state=hr(this.reference,this.options,this.state,this.scheduleUpdate))}function gr(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,fr(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function vr(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function mr(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&vr(t[n])&&(r="px"),e.style[n]=t[n]+r}))}function yr(e,t,n){var r=or(e,(function(e){return e.name===t})),i=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!i){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return i}var br=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],_r=br.slice(3);function wr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=_r.indexOf(e),r=_r.slice(n+1).concat(_r.slice(0,n));return t?r.reverse():r}var xr="flip",Or="clockwise",Sr="counterclockwise";function Er(e,t,n,r){var i=[0,0],o=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(or(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(u)[0]]),[a[s].split(u)[1]].concat(a.slice(s+1))]:[a];return(c=c.map((function(e,r){var i=(1===r?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+i[1],a=i[2];if(!o)return e;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=r}return Hn(s)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,i,t,n)}))}))).forEach((function(e,t){e.forEach((function(n,r){vr(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))}))})),i}var kr={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,o=i.reference,a=i.popper,s=-1!==["bottom","top"].indexOf(n),u=s?"left":"top",c=s?"width":"height",l={start:Gn({},u,o[u]),end:Gn({},u,o[u]+o[c]-a[c])};e.offsets.popper=Wn({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,i=e.offsets,o=i.popper,a=i.reference,s=r.split("-")[0],u=void 0;return u=vr(+n)?[+n,0]:Er(n,o,a,s),"left"===s?(o.top+=u[0],o.left-=u[1]):"right"===s?(o.top+=u[0],o.left+=u[1]):"top"===s?(o.left+=u[0],o.top-=u[1]):"bottom"===s&&(o.left+=u[0],o.top+=u[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||Mn(e.instance.popper);e.instance.reference===n&&(n=Mn(n));var r=cr("transform"),i=e.instance.popper.style,o=i.top,a=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=Jn(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=o,i.left=a,i[r]=s,t.boundaries=u;var c=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(l[e],u[e])),Gn({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(l[n],u[e]-("right"===e?l.width:l.height))),Gn({},n,r)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=Wn({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(i),s=a?"right":"bottom",u=a?"left":"top",c=a?"width":"height";return n[s]<o(r[u])&&(e.offsets.popper[u]=o(r[u])-n[c]),n[u]>o(r[s])&&(e.offsets.popper[u]=o(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!yr(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,u=-1!==["left","right"].indexOf(i),c=u?"height":"width",l=u?"Top":"Left",f=l.toLowerCase(),d=u?"left"
vendor: 4,589 bytes, line 2
2:"top",h=u?"bottom":"right",p=nr(r)[c];s[h]-p<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-p)),s[f]+p>a[h]&&(e.offsets.popper[f]+=s[f]+p-a[h]),e.offsets.popper=Hn(e.offsets.popper);var g=s[f]+s[c]/2-p/2,v=Tn(e.instance.popper),m=parseFloat(v["margin"+l],10),y=parseFloat(v["border"+l+"Width"],10),b=g-e.offsets.popper[f]-m-y;return b=Math.max(Math.min(a[c]-p,b),0),e.arrowElement=r,e.offsets.arrow=(Gn(n={},f,Math.round(b)),Gn(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(ur(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Jn(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=rr(r),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case xr:a=[r,i];break;case Or:a=wr(r);break;case Sr:a=wr(r,!0);break;default:a=t.behavior}return a.forEach((function(s,u){if(r!==s||a.length===u+1)return e;r=e.placement.split("-")[0],i=rr(r);var c=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(c.right)>f(l.left)||"right"===r&&f(c.left)<f(l.right)||"top"===r&&f(c.bottom)>f(l.top)||"bottom"===r&&f(c.top)<f(l.bottom),h=f(c.left)<f(n.left),p=f(c.right)>f(n.right),g=f(c.top)<f(n.top),v=f(c.bottom)>f(n.bottom),m="left"===r&&h||"right"===r&&p||"top"===r&&g||"bottom"===r&&v,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===o&&h||y&&"end"===o&&p||!y&&"start"===o&&g||!y&&"end"===o&&v);(d||m||b)&&(e.flipped=!0,(d||m)&&(r=a[u+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=r+(o?"-"+o:""),e.offsets.popper=Wn({},e.offsets.popper,ir(e.instance.popper,e.offsets.reference,e.placement)),e=ar(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,o=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[a?"left":"top"]=o[n]-(s?i[a?"width":"height"]:0),e.placement=rr(t),e.offsets.popper=Hn(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!yr(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=or(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,i=e.offsets.popper,o=or(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=Kn(Mn(e.instance.popper)),u={position:i.position},c={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},l="bottom"===n?"top":"bottom",f="right"===r?"left":"right",d=cr("transform"),h=void 0,p=void 0;if(p="bottom"===l?-s.height+c.bottom:c.top,h="right"===f?-s.width+c.right:c.left,a&&d)u[d]="translate3d("+h+"px, "+p+"px, 0)",u[l]=0,u[f]=0,u.willChange="transform";else{var g="bottom"===l?-1:1,v="right"===f?-1:1;u[l]=p*g,u[f]=h*v,u.willChange=l+", "+f}var m={"x-placement":e.placement};return e.attributes=Wn({},m,e.attributes),e.styles=Wn({},u,e.styles),e.arrowStyles=Wn({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return mr(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&mr(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,i){var o=tr(i,t,e,n.positionFixed),a=er(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),mr(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Cr=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};zn(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=kn(this.update.bind(this)),this.options=Wn({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Wn({}
2,e.Defaults.modifiers,i.modifiers)).forEach((function(t){r.options.modifiers[t]=Wn({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return Wn({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&Cn(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return qn(e,[{key:"update",value:function(){return sr.call(this)}},{key:"destroy",value:function(){return lr.call(this)}},{key:"enableEventListeners",value:function(){return pr.call(this)}},{key:"disableEventListeners",value:function(){return gr.call(this)}}]),e}();Cr.Utils=("undefined"!==typeof window?window:e).PopperUtils,Cr.placements=br,Cr.Defaults=kr;var Tr=Object.getOwnPropertySymbols,jr=Object.prototype.hasOwnProperty,Ir=Object.prototype.propertyIsEnumerable;function Ar(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}})()&&Object.assign;var Pr="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";function Nr(){}var Mr=c((function(e){e.exports=function(){function e(e,t,n,r,i,o){if(o!==Pr){var a=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 a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=Nr,n.PropTypes=n,n}()})),Rr="__global_unique_id__",Lr=function(){return s[Rr]=(s[Rr]||0)+1};function Dr(e){return function(){return e}}var Fr=function(){};Fr.thatReturns=Dr,Fr.thatReturnsFalse=Dr(!1),Fr.thatReturnsTrue=Dr(!0),Fr.thatReturnsNull=Dr(null),Fr.thatReturnsThis=function(){return this},Fr.thatReturnsArgument=function(e){return e};var Vr=Fr,Ur=c((function(e,t){t.__esModule=!0;o(i.a);var n=o(Mr),r=o(Lr);o(Vr);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 u(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)}var c=1073741823;function l(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)}))}}}t.default=function(e,t){var o,f,d="__create-react-context-"+(0,r.default)()+"__",h=function(e){function n(){var t,r;a(this,n);for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];return t=r=s(this,e.call.apply(e,[this].concat(o))),r.emitter=l(r.props.value),s(r,t)}return u(n,e),n.prototype.getChildContext=function(){var e;return(e={})[d]=this.emitter,e},n.prototype.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n=this.props.value,r=e.value,i=void 0;((o=n)===(a=r)?0!==o||1/o===1/a:o!==o&&a!==a)?i=0:(i="function"===typeof t?t(n,r):c,0!==(i|=0)&&this.emitter.set(e.value,i))}var o,a},n.prototype.render=function(){return this.props.children},n}(i.a.Component);h.childContextTypes=((o={})[d]=n.default.object.isRequired,o);var p=function(t){function n(){var e,r;a(this,n);for(var i=arguments.length,o=Array(i),u=0;u<i;u++)o[u]=arguments[u];return e=r=s(this,t.call.apply(t,[this].concat(o))),r.state={value:r.getValue()},r.onUpdate=function(e,t){0!==((0|r.observedBits)&t)&&r.setState({value:r.getValue()})},s(r,e)}return u(n,t),n.prototype.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?c:t},n.prototype.componentDidMount=function(){this.context[d]&&this.context[d].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?c:e},n.prototype.componentWillUnmount=function(){this.context[d]&&this.context[d].off(this.onUpdate)},n.prototype.getValue=function(){return this.context[d]?this.context[d].get():e},n.prototype.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(i.a.Component);return p.contextTypes=((f={})[d]=n.default.object,f),{Provider:h,Consumer:p}},e.exports=t.default}));u(Ur);var Br=u(c((function(e,t){t.__esModule=!0;var n=o(i.a),r=o(Ur);
2function o(e){return e&&e.__esModule?e:{default:e}}t.default=n.default.createContext||r.default,e.exports=t.default})))({getReferenceRef:void 0,referenceNode:void 0}),zr=function(e){function t(){De(this,t);var e=hn(this,(t.__proto__||Le(t)).call(this));return e.getReferenceRef=function(t){return e.setState((function(e){var n=e.context;return{context:Ae({},n,{referenceNode:t})}}))},e.state={context:{getReferenceRef:e.getReferenceRef,referenceNode:void 0}},e}return wn(t,e),Be(t,[{key:"render",value:function(){return Object(r.createElement)(Br.Provider,{value:this.state.context},this.props.children)}}]),t}(r.Component),qr=function(e,t,n,r){try{return r?t(F(n)[0],n[1]):t(n)}catch(o){var i=e.return;throw void 0!==i&&F(i.call(e)),o}},Gr=Qe("iterator"),Wr=Array.prototype,Hr=function(e){return void 0!==e&&(qe.Array===e||Wr[Gr]===e)},Kr=function(e,t,n){t in e?K.f(e,t,X(0,n)):e[t]=n},Xr=Qe("toStringTag"),Yr="Arguments"==ne(function(){return arguments}()),$r=Qe("iterator"),Qr=R.getIteratorMethod=function(e){if(void 0!=e)return e[$r]||e["@@iterator"]||qe[function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(n){}}(t=Object(e),Xr))?n:Yr?ne(t):"Object"==(r=ne(t))&&"function"==typeof t.callee?"Arguments":r}(e)]},Jr=Qe("iterator"),Zr=!1;try{[7][Jr]().return=function(){Zr=!0}}catch(as){}ee(ee.S+ee.F*!function(e,t){if(!t&&!Zr)return!1;var n=!1;try{var r=[7],i=r[Jr]();i.next=function(){return{done:n=!0}},r[Jr]=function(){return i},e(r)}catch(as){}return n}((function(e){})),"Array",{from:function(e){var t,n,r,i,o=ke(e),a="function"==typeof this?this:Array,s=arguments.length,u=s>1?arguments[1]:void 0,c=void 0!==u,l=0,f=Qr(o);if(c&&(u=L(u,s>2?arguments[2]:void 0,2)),void 0==f||a==Array&&Hr(f))for(n=new a(t=le(o.length));t>l;l++)Kr(n,l,c?u(o[l],l):o[l]);else for(i=f.call(o),n=new a;!(r=i.next()).done;l++)Kr(n,l,c?qr(i,u,[r.value,l],!0):r.value);return n.length=l,n}});var ei=R.Array.from,ti=c((function(e){e.exports={default:ei,__esModule:!0}}));u(ti);var ni=u(c((function(e,t){t.__esModule=!0;var n,r=(n=ti)&&n.__esModule?n:{default:n};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,r.default)(e)}}))),ri=function(e){return Array.isArray(e)?e[0]:e},ii=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("function"===typeof e)return e.apply(void 0,ni(n))},oi={position:"absolute",top:0,left:0,opacity:0,pointerEvents:"none"},ai={},si=function(e){function t(){var e,n,r;De(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=hn(this,(e=t.__proto__||Le(t)).call.apply(e,[this].concat(o))),r.state={popperNode:void 0,arrowNode:void 0,popperInstance:void 0,data:void 0},r.setPopperNode=function(e){ii(r.props.innerRef,e),r.setState({popperNode:e})},r.setArrowNode=function(e){return r.setState({arrowNode:e})},r.updateStateModifier={enabled:!0,order:900,fn:function(e){return r.setState({data:e}),e}},r.getOptions=function(){return{placement:r.props.placement,eventsEnabled:r.props.eventsEnabled,positionFixed:r.props.positionFixed,modifiers:Ae({},r.props.modifiers,{arrow:{enabled:!!r.state.arrowNode,element:r.state.arrowNode},applyStyle:{enabled:!1},updateStateModifier:r.updateStateModifier})}},r.getPopperStyle=function(){return r.state.popperNode&&r.state.data?Ae({position:r.state.data.offsets.popper.position},r.state.data.styles):oi},r.getPopperPlacement=function(){return r.state.data?r.state.data.placement:void 0},r.getArrowStyle=function(){return r.state.arrowNode&&r.state.data?r.state.data.arrowStyles:ai},r.getOutOfBoundariesState=function(){return r.state.data?r.state.data.hide:void 0},r.initPopperInstance=function(){var e=r.props.referenceElement,t=r.state,n=t.popperNode,i=t.popperInstance;if(e&&n&&!i){var o=new Cr(e,n,r.getOptions());return r.setState({popperInstance:o}),!0}return!1},r.destroyPopperInstance=function(e){r.state.popperInstance&&r.state.popperInstance.destroy(),r.setState({popperInstance:void 0},e)},r.updatePopperInstance=function(){r.state.popperInstance&&r.destroyPopperInstance((function(){return r.initPopperInstance()}))},r.scheduleUpdate=function(){r.state.popperInstance&&r.state.popperInstance.scheduleUpdate()},hn(r,n)}
2return wn(t,e),Be(t,[{key:"componentDidUpdate",value:function(e,t){this.initPopperInstance()||this.props.placement===e.placement&&this.props.eventsEnabled===e.eventsEnabled&&this.state.arrowNode===t.arrowNode&&this.state.popperNode===t.popperNode&&this.props.referenceElement===e.referenceElement&&this.props.positionFixed===e.positionFixed||this.updatePopperInstance()}},{key:"componentWillUnmount",value:function(){this.state.popperInstance&&this.state.popperInstance.destroy()}},{key:"render",value:function(){return ri(this.props.children)({ref:this.setPopperNode,style:this.getPopperStyle(),placement:this.getPopperPlacement(),outOfBoundaries:this.getOutOfBoundariesState(),scheduleUpdate:this.scheduleUpdate,arrowProps:{ref:this.setArrowNode,style:this.getArrowStyle()}})}}]),t}(r.Component);function ui(e){return Object(r.createElement)(Br.Consumer,null,(function(t){var n=t.referenceNode;return Object(r.createElement)(si,Ae({referenceElement:n},e))}))}si.defaultProps={placement:"bottom",eventsEnabled:!0,referenceElement:void 0,positionFixed:!1};var ci=function(){};var li=ci,fi=function(e){function t(){var e,n,r;De(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=hn(this,(e=t.__proto__||Le(t)).call.apply(e,[this].concat(o))),r.refHandler=function(e){ii(r.props.innerRef,e),ii(r.props.getReferenceRef,e)},hn(r,n)}return wn(t,e),Be(t,[{key:"render",value:function(){return li(this.props.getReferenceRef,"`Reference` should not be used outside of a `Manager` component."),ri(this.props.children)({ref:this.refHandler})}}]),t}(r.Component);function di(e){return Object(r.createElement)(Br.Consumer,null,(function(t){var n=t.getReferenceRef;return Object(r.createElement)(fi,Ae({getReferenceRef:n},e))}))}var hi=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isOpen:!1},r._handleButtonOnClick=function(e){e.preventDefault(),r.setState((function(e){return{isOpen:!e.isOpen}}))},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.value,o=t.dropdownProps,a=m(t,["children","value","dropdownProps"]),s=o?Object.assign(o,{show:this.state.isOpen}):{show:this.state.isOpen},u=Object(r.createElement)(ho.Menu,s,n);return Object(r.createElement)(zr,null,Object(r.createElement)(di,null,(function(t){var n=t.ref,o=Object.assign({onClick:e._handleButtonOnClick,rootRef:n,isDropdownToggle:!0},a);return Object(r.createElement)(pi,o,i)})),u)}}]),t}(r.Component);hi.displayName="Button.Dropdown";var pi=function(e){var t,n=e.size,i=void 0===n?"":n,o=e.outline,a=e.link,s=e.block,u=e.className,c=e.children,f=e.disabled,d=e.color,h=void 0===d?"":d,v=e.square,m=e.pill,y=e.icon,b=e.social,_=void 0===b?"":b,w=e.loading,x=e.tabIndex,O=e.isDropdownToggle,S=e.isOption,E=e.rootRef,k=e.to,C=e.onClick,T=e.onMouseEnter,j=e.onMouseLeave,I=e.onPointerEnter,A=e.onPointerLeave,N={className:l((p(t={btn:!0},"btn-"+i,!!i),p(t,"btn-block",s),p(t,"btn-outline-"+h,o&&!!h),p(t,"btn-link",a),p(t,"disabled",f),p(t,"btn-"+h,!!h&&!o),p(t,"btn-"+_,!!_),p(t,"btn-square",v),p(t,"btn-pill",m),p(t,"btn-icon",!c),p(t,"btn-loading",w),p(t,"dropdown-toggle",O),p(t,"btn-option",S),t),u),disabled:f,onClick:C,onMouseEnter:T,onMouseLeave:j,onPointerEnter:I,onPointerLeave:A,tabIndex:x},M=Object(r.createElement)(r.Fragment,null,_?Object(r.createElement)(P,{name:_,prefix:"fa",className:c?"mr-2":""}):y?Object(r.createElement)(P,{name:y,className:c?"mr-2":""}):null,c);if(e.RootComponent&&"button"!==e.RootComponent){if("input"===e.RootComponent){var R=e.type,L=e.value;return Object(r.createElement)("input",g({},N,{type:R,value:L,ref:E}))}if("a"===e.RootComponent){var D=e.href,F=e.target;return Object(r.createElement)("a",g({},N,{href:D,target:F,ref:E}),M)}var V=e.RootComponent;return Object(r.createElement)(V,g({},N,{to:k}),M)}var U=e.type,B=e.value;return Object(r.createElement)("button",g({},N,{type:U,value:B,ref:E}),M)};function gi(e){var t=e.className,n=e.children,i=e.inline,o=l({"list-inline-item":i},t);return Object(r.createElement)("li",{className:o},n)}function vi(e){var t=e.className,n=e.children,i=e.transparent,o=e.isCardBody,a=l("list-group","mb-0",{"list-group-transparent":i,"card-list-group":o},t);return Object(r.createElement)("div",{className:a},n)}function mi(e){var t=e.className,n=e.children,i=e.RootComponent,o=e.active,a=e.action,s=e.icon,u=e.to,c=l("list-group-item",{"list-group-item-action":a},{active:o},t);return i?Object(r.createElement)(i,{to:u,className:c},s&&Object(r.createElement)("span",{className:"mr-3 icon"},Object(r.createElement)(P,{prefix:"fe",name:s})," "),n):Object(r.createElement)("a",{className:c,href:u},s&&Object(r.createElement)("span",{className:"mr-3 icon"},Object(r.createElement)(P,{prefix:"fe",name:s})," "),n)}function yi(e){var t=e.className,n=e.children,i=e.unstyled,o=e.seperated,a=e.inline,s=l({list:!i,"list-unstyled":i,"list-seperated":o,"list-inline":a},t);return Object(r.createElement)("ul",{className:s},n)}function bi(e){var t=e.className,n=e.children,i=l("media",t);return Object(r.createElement)("div",{className:i},n)}pi.List=N,pi.Dropdown=hi,pi.displayName="Button",gi.displayName="List.Item",vi.displayName="List.Group",mi.displayName="List.GroupItem",yi.Item=gi,yi.Group=vi,yi.GroupItem=mi,bi.Body=function(e){var t=e.className,n=e.children,i=l("media-body",t);return Object(r.createElement)("div",{className:i},n)},bi.BodySocial=function(e){e.className;var t=e.children,n=e.name,i=e.workTitle,o=e.facebook,a=void 0===o?"":o,s=e.twitter,u=void 0===s?"":s,c=e.phone,l=void 0===c?"":c,f=e.skype,d=void 0===f?"":f,h=void 0,p=void 0,g=void 0,v=void 0;return a&&(h=Object(r.createElement)(yi.Item,{inline:!0},Object(r.createElement)(Sa,{content:"Facebook",placement:"top"},Object(r.createElement)("a",{href:"/Profile"},Object(r.createElement)(P,{prefix:"fa",name:"facebook"}))))),u&&(p=Object(r.createElement)(yi.Item,{inline:!0},Object(r.createElement)(Sa,{content:"Twitter",placement:"top"},Object(r.createElement)("a",{href:"/Profile"},Object(r.createElement)(P,{prefix:"fa",name:"twitter"}))))),l&&(g=Object(r.createElement)(yi.Item,{inline:!0},Object(r.createElement)(Sa,{content:"+1 234-567-8901",placement:"top"},Object(r.createElement)("a",{href:"/Profile"},Object(r.createElement)(P,{prefix:"fa",name:"phone"}))))),d&&(v=Object(r.createElement)(yi.Item,{inline:!0},Object(r.createElement)(Sa,{content:"@skypename",placement:"top"},Object(r.createElement)("a",{href:"/Profile"},Object(r.createElement)(P,{prefix:"fa",name:"skype"}))))),Object(r.createElement)(bi.Body,null,Object(r.createElement)("h4",{className:"m-0"},n),Object(r.createElement)("p",{className:"text-muted mb-0"},i),Object(r.createElement)(ia,{className:"mb-0 mt-2"},h,p,g,v),t)},bi.Heading=function(e){var t=e.className,n=e.children,i=l("media-heading",t);return Object(r.createElement)("div",{className:i},n)},bi.List=function(e){var t=e.className,n=e.children,i=l("media-list",t);return Object(r.createElement)("ul",{className:i},n)},bi.ListItem=function(e){var t=e.className,n=e.children,i=l("media mt-4",t);return Object(r.createElement)("li",{className:i},n)},bi.Object=function(e){var t=e.className,n=e.children,i=e.avatar,o=e.objectURL,a=e.size,s=e.rounded,u=e.alt,c=l("media-object",t),f=l({"d-flex":!0,rounded:s}),d=i?Object(r.createElement)(_,{size:a,imageURL:o}):o?Object(r.createElement)("img",{className:f,src:o,alt:u}):null;return Object(r.createElement)("div",{className:c},d,n)};var _i=function(e){var t=e.className,n=e.children,i=e.color,o=void 0===i?"":i,a=e.wrap,s=e.muted;return Object(r.createElement)(wi,{RootComponent:"small",color:o,size:"sm",wrap:a,className:t,muted:s},n)};_i.displayName="Text.Small";var wi=function(e){var t,n=e.className,i=e.children,o=e.RootComponent,a=e.color,s=void 0===a?"":a,u=e.size,c=void 0===u?"":u,f=e.wrap,d=e.muted,h=m(e,["className","children","RootComponent","color","size","wrap","muted"]),v=h.align,y=h.left,b=h.center,_=h.right,w=h.justify,x=v||y&&"left"||b&&"center"||_&&"right"||w&&"justify"||"",O=h.transform,S=h.lowercase,E=h.uppercase,k=h.capitalize,C=O||S&&"lowercase"||E&&"uppercase"||k&&"capitalize"||"",T=h.tracking,j=h.trackingTight,I=h.trackingNormal,A=h.trackingWide,P=T||j&&"tight"||I&&"normal"||A&&"wide"||"",N=h.leading,M=h.leadingNone,R=h.leadingTight,L=h.leadingNormal,D=h.leadingLoose,F=N||M&&"none"||R&&"tight"||L&&"normal"||D&&"loose"||"",V=l((p(t={},"text-wrap p-lg-6",f),p(t,"text-"+s,s),p(t,""+c,c),p(t,"text-muted",d),p(t,"text-"+x,x),p(t,"text-"+C,C),p(t,"tracking-"+P,P),p(t,"leading-"+F,F),t),n),U=o||"div";return Object(r.createElement)(U,g({className:V},h),i)};function xi(e){var t=e.className,n=(e.children,e.avatarURL),i=e.name,o=e.date,a=e.text,s=e.replies,u=l("py-5",t);return Object(r.createElement)(yi.GroupItem,{className:u},Object(r.createElement)(bi,null,Object(r.createElement)(bi.Object,{avatar:!0,objectURL:n,size:"md",className:"mr-4"}),Object(r.createElement)(bi.Body,null,Object(r.createElement)(bi.Heading,null,Object(r.createElement)("small",{className:"float-right text-muted"},o),Object(r.createElement)("h5",null,i)),Object(r.createElement)(wi,null,a),s&&Object(r.createElement)(bi.List,
2null,s))))}function Oi(e){var t=e.className,n=e.aside,i=e.children,o=e.onClick,a=e.onMouseEnter,s=e.onMouseLeave,u=e.onPointerEnter,c=e.onPointerLeave,f=l("form-label",t);return Object(r.createElement)("label",{className:f,onClick:o,onMouseEnter:a,onMouseLeave:s,onPointerEnter:u,onPointerLeave:c},n&&Object(r.createElement)("span",{className:"form-label-small"},n),i)}function Si(e){var t=e.className,n=e.name,i=e.icon,o=e.position,a=void 0===o?"prepend":o,s=e.valid,u=e.tick,c=e.invalid,f=e.cross,d=e.error,h=e.placeholder,p=e.value,v=e.min,m=e.max,y=e.minLength,b=e.maxLength,_=e.checked,w=e.onChange,x=e.onMouseEnter,O=e.onMouseLeave,S=e.onPointerEnter,E=e.onPointerLeave,k=e.onFocus,C=e.onBlur,T=e.onKeyPress,j=e.onKeyUp,I=e.onKeyDown,A=e.onCopy,N=e.onCut,M=e.onPaste,R=e.disabled,L=e.readOnly,D=e.autoFocus,F=e.required,V=e.label,U=e.autoComplete,B=e.type||"text",z=l({"form-control":"checkbox"!==B&&"radio"!==B,"custom-control-input":"checkbox"===B||"radio"===B,"is-valid":s,"state-valid":u,"is-invalid":c||!!d,"state-invalid":f||!!d},t),q=d||e.feedback,G={name:n,className:z,type:B,placeholder:h,value:p,min:v,max:m,minLength:y,maxLength:b,disabled:R,readOnly:L,autoFocus:D,required:F,onChange:w,onMouseEnter:x,onMouseLeave:O,onPointerEnter:S,onPointerLeave:E,onFocus:k,onBlur:C,onKeyPress:T,onKeyUp:j,onKeyDown:I,onCopy:A,onCut:N,onPaste:M,autoComplete:U},W=i?Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{className:"input-icon"},"prepend"===a&&Object(r.createElement)("span",{className:"input-icon-addon"},Object(r.createElement)(P,{name:i})),Object(r.createElement)("input",G),"append"===a&&Object(r.createElement)("span",{className:"input-icon-addon"},Object(r.createElement)(P,{name:i}))),q&&Object(r.createElement)("span",{className:"invalid-feedback"},q)):Object(r.createElement)(r.Fragment,null,"checkbox"===B||"radio"===B?Object(r.createElement)("input",g({},G,{checked:_})):Object(r.createElement)("input",G),q&&Object(r.createElement)("span",{className:"invalid-feedback"},q));return V?Object(r.createElement)(Ei,{label:V},W):W}function Ei(e){var t=e.className,n=e.children,i=e.label,o=e.isRequired,a=e.inputProps,s=l("form-group",t),u=a&&Object(r.createElement)(Si,a);return Object(r.createElement)("div",{className:s},i?"string"===typeof i?Object(r.createElement)(Oi,null,i,o&&Object(r.createElement)("span",{className:"form-required"},"*")):i:null,u||n)}function ki(e){var t=e.className,n=e.children,i=e.onChange,o=e.onBlur,a=e.onFocus,s=e.onClick,u=e.onMouseEnter,c=e.onMouseLeave,f=e.onPointerEnter,d=e.onPointerLeave,h=l("form-control-plaintext",t);return Object(r.createElement)("div",{className:h,onChange:i,onBlur:o,onClick:s,onFocus:a,onMouseEnter:u,onMouseLeave:c,onPointerEnter:f,onPointerLeave:d},n)}function Ci(e){var t=e.className,n=e.name,i=e.valid,o=e.tick,a=e.invalid,s=e.cross,u=e.error,c=e.placeholder,f=e.defaultValue,d=e.value,h=e.disabled,p=e.rows,g=e.children,v=e.onChange,m=e.onBlur,y=e.onFocus,b=e.onClick,_=e.onMouseEnter,w=e.onMouseLeave,x=e.onPointerEnter,O=e.onPointerLeave,S=e.label,E=l("form-control",{"is-valid":i,"state-valid":o,"is-invalid":a||!!u,"state-invalid":s||!!u},t),k=u||e.feedback,C=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("textarea",{className:E,name:n,placeholder:c,defaultValue:f,value:d||g,disabled:h,rows:p,onChange:v,onBlur:m,onClick:b,onFocus:y,onMouseEnter:_,onMouseLeave:w,onPointerEnter:x,onPointerLeave:O}),k&&Object(r.createElement)("span",{className:"invalid-feedback"},k));return S?Object(r.createElement)(Ei,{label:S},C):C}function Ti(e){var t,n=e.className,i=e.children,o=e.cards,a=e.deck,s=e.gutters,u=void 0===s?"":s,c=e.alignItems,f=void 0===c?"":c,d=e.justifyContent,h=void 0===d?"":d,g=l("row",(p(t={row:!0,"row-cards":o,"row-deck":a},"gutters-"+u,u),p(t,"align-items-"+f,f),p(t,"justify-content-"+h,h),t),n);return Object(r.createElement)("div",{className:g},i)}function ji(e){var t,n=e.className,i=e.children,o=e.width,a=void 0===o?0:o,s=e.xs,u=void 0===s?0:s,c=e.sm,f=void 0===c?0:c,d=e.md,h=void 0===d?0:d,g=e.lg,v=void 0===g?0:g,m=e.xl,y=void 0===m?0:m,b=e.xsAuto,_=e.smAuto,w=e.mdAuto,x=e.lgAuto,O=e.xlAuto,S=e.auto,E=e.offset,k=void 0===E?0:E,C=e.offsetXs,T=void 0===C?0:C,j=e.offsetSm,I=void 0===j?0:j,A=e.offsetMd,P=void 0===A?0:A,N=e.offsetLg,M=void 0===N?0:N,R=e.offsetXl,L=void 0===R?0:R,D=e.ignoreCol,F=l((p(t={col:!(void 0!==D&&D)},"col-"+a,a),p(t,"col-xs-"+u,u),p(t,"col-xs-auto",b),p(t,"col-sm-"+f,f),p(t,"col-sm-auto",_),p(t,"col-md-"+h,h),p(t,"col-md-auto",w),p(t,"col-lg-"+v,v),p(t,"col-lg-auto",x),p(t,"col-xl-"+y,y),p(t,"col-xl-auto",O),p(t,"col-auto",S),p(t,"offset-"+k,k),p(t,"offset-xs-"+T,T),p(t,"offset-sm-"+I,I),p(t,"offset-md-"+P,P),p(t,"offset-lg-"+M,M),p(t,"offset-xl-"+L,L),t),n);return Object(r.createElement)("div",{className:F},i)}function Ii(e){return e.children}function Ai(e){var t=e.className,n=e.children,i=l("gutters-sm",t);return Object(r.createElement)(Ii.Row,{className:i},n)}function Pi(e){e.className;var t=e.col,n=(t=void 0===t?{}:t).width,i=void 0===n?6:n,o=t.sm,a=void 0===o?4:o,s=t.md,u=void 0===s?0:s,c=t.lg,l=void 0===c?0:c,f=e.imageURL,d=e.value,h=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,v=e.onPointerEnter,m=e.onPointerLeave,y=e.onFocus,b=e.onBlur;return Object(r.createElement)(Ii.Col,{width:i,sm:a,md:u,lg:l},Object(r.createElement)("label",{className:"imagecheck mb-4"},Object(r.createElement)("input",{name:"imagecheck",type:"checkbox",value:d,className:"imagecheck-input",onClick:h,onMouseEnter:p,onMouseLeave:g,onPointerEnter:v,onPointerLeave:m,onFocus:y,onBlur:b}
2),Object(r.createElement)("figure",{className:"imagecheck-figure"},Object(r.createElement)("img",{src:f,alt:"Select",className:"imagecheck-image"}))))}function Ni(e){var t=e.className,n=e.children,i=l("gutters-xs",t);return Object(r.createElement)(Ii.Row,{className:i},n)}function Mi(e){var t=e.className,n=e.color,i=e.onClick,o=e.onMouseEnter,a=e.onMouseLeave,s=e.onPointerEnter,u=e.onPointerLeave,c=e.onFocus,f=e.onBlur,d=l(t);return Object(r.createElement)(Ii.Col,{auto:!0,className:d},Object(r.createElement)("label",{className:"colorinput"},Object(r.createElement)("input",{name:"color",type:"checkbox",value:n,className:"colorinput-input",onClick:i,onMouseEnter:o,onMouseLeave:a,onPointerEnter:s,onPointerLeave:u,onFocus:c,onBlur:f}),Object(r.createElement)("span",{className:"colorinput-color bg-"+n})))}function Ri(e){var t=e.className,n=e.children,i=l("input-group-append",t);return Object(r.createElement)("span",{className:i},n)}function Li(e){var t=e.className,n=e.children,i=l("input-group-prepend",t);return Object(r.createElement)("span",{className:i},n)}function Di(e){var t=e.className,n=e.append,i=e.prepend,o=e.RootComponent,a=e.inputProps,s=l({"input-group":!0},t),u=o||"div",c=a?Object(r.createElement)(to.Input,a):e.children;return!0===i?Object(r.createElement)(Li,null,c):!0===n?Object(r.createElement)(Ri,null,c):Object(r.createElement)(u,{className:s},i&&Object(r.createElement)(Li,null,i),c,n&&Object(r.createElement)(Ri,null,n))}function Fi(e){var t=e.className,n=e.children,i=e.position,o=void 0===i?"top":i,a=e.message,s=l("form-help",t);return Object(r.createElement)("span",{className:s,dataContent:a,dataToggle:"popover",dataPlacement:o},n||"?")}function Vi(e){var t=e.className,n=e.children,i=e.valid,o=e.tick,a=e.invalid,s=e.cross,u=e.error,c=e.label,f=e.disabled,d=e.readOnly,h=e.name,p=e.value,g=e.onChange,v=e.onBlur,m=e.onMouseEnter,y=e.onMouseLeave,b=e.onPointerEnter,_=e.onPointerLeave,w=e.onClick,x=e.multiple,O=l({"form-control":!0,"custom-select":!0,"is-valid":i,"state-valid":o,"is-invalid":a||!!u,"state-invalid":s||!!u},t),S=u||e.feedback,E=Object(r.createElement)(r.Fragment,null,Object(r.createElement)("select",{name:h,value:p,onChange:g,onBlur:v,onMouseEnter:m,onMouseLeave:y,onPointerEnter:b,onPointerLeave:_,onClick:w,className:O,disabled:f,readOnly:d,multiple:x},n),S&&Object(r.createElement)("span",{className:"invalid-feedback"},S));return c?Object(r.createElement)(Ei,{label:c},E):E}function Ui(e){var t=l("form-footer",e.className);return Object(r.createElement)("div",{className:t},e.children)}wi.displayName="Text",wi.Small=_i,xi.List=function(e){var t=e.className,n=e.children,i=l("card-list-group",t);return Object(r.createElement)(yi.Group,{className:i},n)},xi.Reply=function(e){var t=e.className,n=(e.children,e.avatarURL),i=e.name,o=(e.date,e.text);return Object(r.createElement)(bi.ListItem,{className:t},Object(r.createElement)(bi.Object,{avatar:!0,objectURL:n,className:"mr-4"}),Object(r.createElement)(bi.Body,null,Object(r.createElement)("strong",null,i,": "),o))},Oi.displayName="Form.Label",Si.displayName="Form.Input",Ei.displayName="Form.Group",ki.displayName="Form.StaticText",Ci.displayName="Form.Textarea",Ti.displayName="Grid.Row",ji.displayName="Grid.Col",Ii.Row=Ti,Ii.Col=ji,Ii.displayName="Grid",Ai.displayName="Form.ImageCheck",Pi.displayName="Form.ImageCheckItem",Ni.displayName="Form.ColorCheck",Mi.displayName="Form.ColorCheckItem",Ri.displayName="Form.InputGroupAppend",Li.displayName="Form.InputGroupPrepend",Di.displayName="Form.InputGroup",Fi.displayName="Form.Help",Vi.displayName="Form.Select",Ui.displayName="Form.Footer";var Bi=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={internalValue:r.props.onChange?0:r.props.defaultValue},r.handleOnChange=function(e){if(r.props.onChange)r.props.onChange(e);else{var t=Number(e.target.value);r.setState({internalValue:t})}},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.step,i=void 0===n?1:n,o=e.min,a=void 0===o?0:o,s=e.max,u=void 0===s?0:s,c=e.onClick,f=e.onMouseEnter,d=e.onMouseLeave,h=e.onPointerEnter,p=e.onPointerLeave,g=e.onFocus,v=e.onBlur,m=l(t),y=this.props.onChange?this.props.value:this.state.internalValue;return Object(r.createElement)(Ii.Row,{className:m,alignItems:"center"},Object(r.createElement)(Ii.Col,null,Object(r.createElement)("input",{type:"range",className:"form-control custom-range",step:i,min:a,max:u,onChange:this.handleOnChange,onClick:c,onMouseEnter:f,onMouseLeave:d,onPointerEnter:h,onPointerLeave:p,value:y})),Object(r.createElement)(Ii.Col,{auto:!0},Object(r.createElement)("input",{type:"number",className:"form-control w-8",value:y,onFocus:g,onBlur:v,readOnly:!0})))}}]),t}(r.PureComponent);function zi(e){var t=e.className,n=e.children,i=l("form-fieldset",t);return Object(r.createElement)("fieldset",{className:i},n)}function qi(e){var t=e.className,n=e.label,i=e.value,o=e.name,a=e.checked,s=e.disabled,u=e.readOnly,c=e.onCh
2ange,f=e.onMouseEnter,d=e.onMouseLeave,h=e.onPointerEnter,p=e.onPointerLeave,v=e.onBlur,m=e.onFocus,y=e.onClick,b=e.isInline,_=l("custom-control custom-radio",{"custom-control-inline":b},t),w={onChange:c,onMouseEnter:f,onMouseLeave:d,onPointerEnter:h,onPointerLeave:p,onBlur:v,onFocus:m,onClick:y},x=Object(r.createElement)(to.Input,g({},w,{type:"radio",name:o,value:i,checked:a,className:_,disabled:s,readOnly:u,onChange:c}));return n?Object(r.createElement)("label",{className:_},x,Object(r.createElement)("span",{className:"custom-control-label"},n)):x}function Gi(e){var t=e.className,n=e.label,i=e.value,o=e.name,a=e.checked,s=e.disabled,u=e.readOnly,c=e.onChange,f=e.onFocus,d=e.onBlur,h=e.isInline,p=l("custom-control custom-checkbox",{"custom-control-inline":h},t),g=Object(r.createElement)(to.Input,{type:"checkbox",name:o,value:i,checked:a,className:p,disabled:s,readOnly:u,onChange:c,onBlur:d,onFocus:f});return n?Object(r.createElement)("label",{className:p},g,Object(r.createElement)("span",{className:"custom-control-label"},n)):g}function Wi(e){var t=e.className,n=e.children,i=e.pills,o=e.canSelectMultiple,a=e.onChange,s=e.onFocus,u=e.onBlur,c=e.onClick,f=e.onMouseEnter,d=e.onMouseLeave,h=e.onPointerEnter,p=e.onPointerLeave,g=l({selectgroup:!0,"w-100":!0,"selectgroup-pills":i},t);return Object(r.createElement)("div",{className:g,onChange:a,onClick:c,onFocus:s,onBlur:u,onMouseEnter:f,onMouseLeave:d,onPointerEnter:h,onPointerLeave:p},o?n.map((function(e){return Object(r.cloneElement)(e,{type:"checkbox"})})):n)}function Hi(e){var t=e.className,n=e.label,i=e.name,o=e.value,a=e.checked,s=e.icon,u=e.type,c=e.onChange,f=e.onFocus,d=e.onBlur,h=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,v=e.onPointerEnter,m=e.onPointerLeave,y=l({"selectgroup-item":!0},t),b=l("selectgroup-button",{"selectgroup-button-icon":s}),_=s?Object(r.createElement)(P,{name:s}):n;return Object(r.createElement)("label",{className:y},"checkbox"===u?Object(r.createElement)("input",{type:"checkbox",name:i,value:o,className:"selectgroup-input",checked:a,onChange:c,onClick:h,onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:g,onPointerEnter:v,onPointerLeave:m}):Object(r.createElement)("input",{type:"radio",name:i,value:o,className:"selectgroup-input",checked:a,onChange:c,onClick:h,onFocus:f,onBlur:d,onMouseEnter:p,onMouseLeave:g,onPointerEnter:v,onPointerLeave:m}),Object(r.createElement)("span",{className:b},_))}Bi.displayName="Form.Ratio",zi.displayName="Form.FieldSet",qi.displayName="Form.Radio",Gi.displayName="Form.Checkbox",Wi.displayName="Form.SelectGroup",Hi.displayName="Form.SelectGroupItem";var Ki=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={fileName:""},r._handleOnChange=function(e){r.setState({fileName:e.target.files[0].name}),r.props.onChange&&r.props.onChange(e)},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.value,i=e.name,o=e.label,a=void 0===o?"Choose file":o,s=e.disabled,u=e.readOnly,c=e.onClick,f=e.onMouseEnter,d=e.onMouseLeave,h=e.onPointerEnter,p=e.onPointerLeave,g=e.onFocus,v=e.onBlur,m=e.accept,y=l("custom-file",t),b=this.state.fileName||a;return Object(r.createElement)("div",{className:y},Object(r.createElement)("input",{type:"file",className:"custom-file-input",name:i,value:n,disabled:s,readOnly:u,onChange:this._handleOnChange,onClick:c,onMouseEnter:f,onMouseLeave:d,onPointerEnter:h,onPointerLeave:p,onFocus:g,onBlur:v,accept:m}),Object(r.createElement)("label",{className:"custom-file-label",style:{whiteSpace:"nowrap",display:"block",overflow:"hidden"}},b))}}]),t}(r.Component);function Xi(e){var t=e.className,n=e.children,i=l("custom-switches-stacked",t);return Object(r.createElement)("div",{className:i},n)}function Yi(e){var t=e.className,n=e.type,i=void 0===n?"checkbox":n,o=e.name,a=e.value,s=e.label,u=e.checked,c=e.onChange,f=e.onBlur,d=e.onFocus,h=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,v=e.onPointerEnter,m=e.onPointerLeave,y=l("custom-switch",t);return Object(r.createElement)("label",{className:y},Object(r.createElement)("input",{type:i,name:o,value:a,className:"custom-switch-input",checked:u,onChange:c,onBlur:f,onClick:h,onFocus:d,onMouseEnter:p,onMouseLeave:g,onPointerEnter:v,onPointerLeave:m}),Object(r.createElement)("span",{className:"custom-switch-indicator"}),Object(r.createElement)("span",{className:"custom-switch-description"},s))}function $i(e){var t=e.className,n=e.children,i=l("input-group-text",t);return Object(r.createElement)("span",{className:i},n)}Ki.displayName="Form.FileInput",Xi.displayName="Form.ToggleStack",Yi.displayName="Form.Toggle",$i.displayName="Form.InputGroupText";var Qi=c((function(e,t){var n;e.exports=(n=i.a,function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}
2([function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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 s(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)}Object.defineProperty(t,"__esModule",{value:!0}),t.conformToMask=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),l=n(3);Object.defineProperty(t,"conformToMask",{enumerable:!0,get:function(){return r(l).default}});var f=r(n(11)),d=r(n(9)),h=r(n(5)),p=n(2),g=function(e){function t(){var e;o(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=a(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return s.setRef=s.setRef.bind(s),s.onBlur=s.onBlur.bind(s),s.onChange=s.onChange.bind(s),s}
2return s(t,e),c(t,[{key:"setRef",value:function(e){this.inputElement=e}},{key:"initTextMask",value:function(){var e=this.props,t=this.props.value;this.textMaskInputElement=(0,h.default)(u({inputElement:this.inputElement},e)),this.textMaskInputElement.update(t)}},{key:"componentDidMount",value:function(){this.initTextMask()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.pipe,i=t.mask,o={guide:t.guide,placeholderChar:t.placeholderChar,showMask:t.showMask},a="function"==typeof r&&"function"==typeof e.pipe?r.toString()!==e.pipe.toString():(0,p.isNil)(r)&&!(0,p.isNil)(e.pipe)||!(0,p.isNil)(r)&&(0,p.isNil)(e.pipe),s=i.toString()!==e.mask.toString(),u=Object.keys(o).some((function(t){return o[t]!==e[t]}))||s||a;(n!==this.inputElement.value||u)&&this.initTextMask()}},{key:"render",value:function(){var e=this.props,t=e.render,n=i(e,["render"]);return delete n.mask,delete n.guide,delete n.pipe,delete n.placeholderChar,delete n.keepCharPositions,delete n.value,delete n.onBlur,delete n.onChange,delete n.showMask,t(this.setRef,u({onBlur:this.onBlur,onChange:this.onChange,defaultValue:this.props.value},n))}},{key:"onChange",value:function(e){this.textMaskInputElement.update(),"function"==typeof this.props.onChange&&this.props.onChange(e)}},{key:"onBlur",value:function(e){"function"==typeof this.props.onBlur&&this.props.onBlur(e)}}]),t}(f.default.PureComponent);t.default=g,g.propTypes={mask:d.default.oneOfType([d.default.array,d.default.func,d.default.bool,d.default.shape({mask:d.default.oneOfType([d.default.array,d.default.func]),pipe:d.default.func})]).isRequired,guide:d.default.bool,value:d.default.oneOfType([d.default.string,d.default.number]),pipe:d.default.func,placeholderChar:d.default.string,keepCharPositions:d.default.bool,showMask:d.default.bool},g.defaultProps={render:function(e,t){return f.default.createElement("input",u({ref:e},t))}}},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.placeholderChar="_",t.strFunction="function"},function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.placeholderChar;if(!i(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function i(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function o(e){return"string"==typeof e||e instanceof String}function a(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)}function s(e){return"undefined"==typeof e||null===e}function u(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(f));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.convertMaskToPlaceholder=r,t.isArray=i,t.isString=o,t.isNumber=a,t.isNil=s,t.processCaretTraps=u;var c=n(1),l=[],f="[]"},function(e,t,n){function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,o.isArray)(t)){if(("undefined"==typeof t?"undefined":i(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,o.processCaretTraps)(t).maskWithoutCaretTraps}var r=n.guide,c=void 0===r||r,l=n.previousConformedValue,f=void 0===l?u:l,d=n.placeholderChar,h=void 0===d?a.placeholderChar:d,p=n.placeholder,g=void 0===p?(0,o.convertMaskToPlaceholder)(t,h):p,v=n.currentCaretPosition,m=n.keepCharPositions,y=!1===c&&void 0!==f,b=e.length,_=f.length,w=g.length,x=t.length,O=b-_,S=O>0,E=v+(S?-O:0),k=E+Math.abs(O);if(!0===m&&!S){for(var C=u,T=E;T<k;T++)g[T]===h&&(C+=h);e=e.slice(0,E)+C+e.slice(E,b)}for(var j=e.split(u).map((function(e,t){return{char:e,isNew:t>=E&&t<k}})),I=b-1;I>=0;I--){var A=j[I].char;A!==h&&A===g[I>=E&&_===x?I-O:I]&&j.splice(I,1)}var P=u,N=!1;e:for(var M=0;M<w;M++){var R=g[M];if(R===h){if(j.length>0)for(;j.length>0;){var L=j.shift(),D=L.char,F=L.isNew;if(D===h&&!0!==y){P+=h;continue e}if(t[M].test(D)){if(!0===m&&!1!==F&&f!==u&&!1!==c&&S){for(var V=j.length,U=null,B=0;B<V;B++){var z=j[B];if(z.char!==h&&!1===z.isNew)break;if(z.char===h){U=B;break}}null!==U?(P+=D,j.splice(U,1)):M--}else P+=D;continue e}N=!0}!1===y&&(P+=g.substr(M,w));break}P+=R}if(y&&!1===S){for(var q=null,G=0;G<P.length;
vendor: 2,254 bytes, line 2
2G++)g[G]===h&&(q=G);P=null!==q?P.substr(0,q+1):u}return{conformedValue:P,meta:{someCharsRejected:N}}}Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=r;var o=n(2),a=n(1),s=[],u=""},function(e,t){function n(e){var t=e.previousConformedValue,n=void 0===t?i:t,o=e.previousPlaceholder,a=void 0===o?i:o,s=e.currentCaretPosition,u=void 0===s?0:s,c=e.conformedValue,l=e.rawValue,f=e.placeholderChar,d=e.placeholder,h=e.indexesOfPipedChars,p=void 0===h?r:h,g=e.caretTrapIndexes,v=void 0===g?r:g;if(0===u||!l.length)return 0;var m=l.length,y=n.length,b=d.length,_=c.length,w=m-y,x=w>0;if(w>1&&!x&&0!==y)return u;var O=0,S=void 0,E=void 0;if(!x||n!==c&&c!==d){var k=c.toLowerCase(),C=l.toLowerCase().substr(0,u).split(i).filter((function(e){return-1!==k.indexOf(e)}));E=C[C.length-1];var T=a.substr(0,C.length).split(i).filter((function(e){return e!==f})).length,j=d.substr(0,C.length).split(i).filter((function(e){return e!==f})).length!==T,I=void 0!==a[C.length-1]&&void 0!==d[C.length-2]&&a[C.length-1]!==f&&a[C.length-1]!==d[C.length-1]&&a[C.length-1]===d[C.length-2];!x&&(j||I)&&T>0&&d.indexOf(E)>-1&&void 0!==l[u]&&(S=!0,E=l[u]);for(var A=p.map((function(e){return k[e]})).filter((function(e){return e===E})).length,P=C.filter((function(e){return e===E})).length,N=d.substr(0,d.indexOf(f)).split(i).filter((function(e,t){return e===E&&l[t]!==e})).length+P+A+(S?1:0),M=0,R=0;R<_&&(O=R+1,k[R]===E&&M++,!(M>=N));R++);}else O=u-w;if(x){for(var L=O,D=O;D<=b;D++)if(d[D]===f&&(L=D),d[D]===f||-1!==v.indexOf(D)||D===b)return L}else if(S){for(var F=O-1;F>=0;F--)if(c[F]===E||-1!==v.indexOf(F)||0===F)return F}else for(var V=O;V>=0;V--)if(d[V-1]===f||-1!==v.indexOf(V)||0===V)return V}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=[],i=""},function(e,t,n){function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var t={previousConformedValue:void 0,previousPlaceholder:void 0};return{state:t,update:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,i=r.inputElement,p=r.mask,v=r.guide,m=r.pipe,
2y=r.placeholderChar,b=void 0===y?d.placeholderChar:y,_=r.keepCharPositions,w=void 0!==_&&_,x=r.showMask,O=void 0!==x&&x;if("undefined"==typeof n&&(n=i.value),n!==t.previousConformedValue){("undefined"==typeof p?"undefined":u(p))===g&&void 0!==p.pipe&&void 0!==p.mask&&(m=p.pipe,p=p.mask);var S=void 0,E=void 0;if(p instanceof Array&&(S=(0,f.convertMaskToPlaceholder)(p,b)),!1!==p){var k=a(n),C=i.selectionEnd,T=t.previousConformedValue,j=t.previousPlaceholder,I=void 0;if(("undefined"==typeof p?"undefined":u(p))===d.strFunction){if(!1===(E=p(k,{currentCaretPosition:C,previousConformedValue:T,placeholderChar:b})))return;var A=(0,f.processCaretTraps)(E);E=A.maskWithoutCaretTraps,I=A.indexes,S=(0,f.convertMaskToPlaceholder)(E,b)}else E=p;var P={previousConformedValue:T,guide:v,placeholderChar:b,pipe:m,placeholder:S,currentCaretPosition:C,keepCharPositions:w},N=(0,l.default)(k,E,P).conformedValue,M=("undefined"==typeof m?"undefined":u(m))===d.strFunction,R={};M&&(!1===(R=m(N,s({rawValue:k},P)))?R={value:T,rejected:!0}:(0,f.isString)(R)&&(R={value:R}));var L=M?R.value:N,D=(0,c.default)({previousConformedValue:T,previousPlaceholder:j,conformedValue:L,placeholder:S,rawValue:k,currentCaretPosition:C,placeholderChar:b,indexesOfPipedChars:R.indexesOfPipedChars,caretTrapIndexes:I}),F=L===S&&0===D?O?S:h:L;t.previousConformedValue=F,t.previousPlaceholder=S,i.value!==F&&(i.value=F,o(i,D))}}}}}function o(e,t){document.activeElement===e&&(v?m((function(){return e.setSelectionRange(t,t,p)}),0):e.setSelectionRange(t,t,p))}function a(e){if((0,f.isString)(e))return e;if((0,f.isNumber)(e))return String(e);if(void 0===e||null===e)return h;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}Object.defineProperty(t,"__esModule",{value:!0});var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u="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.default=i;var c=r(n(4)),l=r(n(3)),f=n(2),d=n(1),h="",p="none",g="object",v="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout},function(e,t){function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r}
2,function(e,t,n){function r(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}}e.exports=r},function(e,t,n){var r=n(6),i=n(7),o=n(10);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"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")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){e.exports=n(8)()},function(e,t){var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t){e.exports=n}]))})),Ji=u(Qi);Qi.reactTextMask;function Zi(e){var t=e.valid,n=e.tick,i=e.invalid,o=e.cross,a=e.feedback,s=l({"form-control":!0,"is-valid":t,"state-valid":n,"is-invalid":i,"state-invalid":o},e.className);return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ji,g({className:s},e)),a&&(i||o)&&Object(r.createElement)("span",{className:"invalid-feedback"},a))}Zi.displayName="Form.MaskedInput";var eo=function(e){function t(){var e,n,i;d(this,t);for(var o=arguments.length,a=Array(o),s=0;s<o;s++)a[s]=arguments[s];return n=i=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),i.state={currentDate:i.props.defaultDate},i._handleOnChange=function(e,t){var n=i.state.currentDate,r=i.props.onChange,o=new Date(n);"mm"===e&&o.setMonth(t),"dd"===e&&o.setDate(t),"yyyy"===e&&o.setFullYear(t),i.setState({currentDate:o},(function(){r&&r(i.state.currentDate)}))},i._range=function(e,t){return Array.from({length:t+1-e},(function(t,n){return n+e}))},i._renderMonths=function(){var e=i.state.currentDate,t=i.props.monthLabels;return Object(r.createElement)(Vi,{onChange:function(e){return i._handleOnChange("mm",Number(e.target.value))}},t.map((function(t,n){return Object(r.createElement)("option",{value:n,selected:e.getUTCMonth()===n},t)})))},i._renderDays=function(){var e=i.state.currentDate,t=new Date(e.getUTCFullYear(),e.getUTCMonth()+1,0).getDate(),n=i._range(1,t),o=e.getUTCDate();return Object(r.createElement)(Vi,{onChange:function(e){return i._handleOnChange("dd",Number(e.target.value))}},n.map((function(e){return Object(r.createElement)("option",{value:e,selected:o===e},e)})))},i._renderYears=function(){var e=i.props,t=e.minYear,n=e.maxYear,o=i.state.currentDate,a=i._range(t,n).reverse(),s=o.getUTCFullYear();return Object(r.createElement)(Vi,{onChange:function(e){return i._handleOnChange("yyyy",Number(e.target.value))}},a.map((function(e){return Object(r.createElement)("option",{value:e,selected:s===e},e)})))},y(i,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.format,n=e.className,i=t.split("/"),o={mm:this._renderMonths(),dd:this._renderDays(),yyyy:this._renderYears()};return Object(r.createElement)("div",{className:n},Object(r.createElement)(Di,null,i.map((function(e){return o[e]}))))}}]),t}(r.PureComponent);function to(e){var t=e.className,n=e.children,i=e.action,o=e.method,a=e.onSubmit,s=e.autoComplete;return Object(r.createElement)("form",{className:t,onSubmit:a,action:i,method:o,autoComplete:s},n)}function no(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!==typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}eo.defaultProps={monthLabels:["January","February","March","April","May","June","July","August","September","October","November","December"],minYear:1897,maxYear:(new Date).getFullYear(),format:"mm/dd/yyyy",defaultDate:new Date},eo.displayName="Form.DatePicker",to.defaultProps={autoComplete:"off"},to.Group=Ei,to.Label=Oi,to.Input=Si,to.StaticText=ki,to.Textarea=Ci,to.ImageCheck=Ai,to.ImageCheckItem=Pi,to.ColorCheck=Ni,to.ColorCheckItem=Mi,to.InputGroup=Di,to.Help=Fi,to.Select=Vi,to.Footer=Ui,to.Ratio=Bi,to.FieldSet=zi,to.SelectGroup=Wi,to.SelectGroupItem=Hi,to.Radio=qi,to.Checkbox=Gi,to.FileInput=Ki,to.SwitchStack=Xi,to.Switch=Yi,to.InputGroupAppend=Ri,to.InputGroupPrepend=Li,to.InputGroupText=$i,to.MaskedInput=Zi,to.DatePicker=eo;function ro(e){var t=e.className,n=e.children,i=l("container",t);return Object(r.createElement)("div",{className:i},n)}function io(e){var t=e.className,n=e.children,i=l({loader:!0},t);return Object(r.createElement)("div",{className:i},n)}function oo(e){var t=e.className,n=e.children,i=l({"dimmer-content":!0},t);return Object(r.createElement)("div",{className:i},n)}function ao(e){var t=e.className,n=e.children,i=e.active,o=e.loader,a=l({dimmer:!0,active:i},t);return Object(r.createElement)("div",{className:a}
2,Object(r.createElement)(r.Fragment,null,o&&Object(r.createElement)(io,null),Object(r.createElement)(oo,null,n)))}function so(e){var t=e.className,n=e.toggle,i=void 0===n||n,o=e.value,a=e.children,s=e.type,u=void 0===s?"link":s,c=e.icon,f=e.color,d=e.isNavLink,h=e.isOption,p=e.onClick,g=(e.rootRef,l({"dropdown-toggle":i,"nav-link":d},t)),v=Object(r.createElement)(r.Fragment,null,c&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(P,{name:c})," "),o,a);return"link"===u?Object(r.createElement)(di,null,(function(e){var t=e.ref;return Object(r.createElement)("a",{className:g,onClick:p,ref:t},v)})):Object(r.createElement)(di,null,(function(e){var t=e.ref;return Object(r.createElement)(pi,{className:g,color:f,isDropdownToggle:!0,isOption:h,onClick:p,rootRef:t},v)}))}function uo(e){var t,n=e.className,i=e.children,o=e.position,a=void 0===o?"bottom":o,s=e.arrow,u=e.arrowPosition,c=void 0===u?"left":u,f=(e.style,e.rootRef,e.show),d=void 0!==f&&f,h=l((p(t={"dropdown-menu":!0},"dropdown-menu-"+c,c),p(t,"dropdown-menu-arrow",s),p(t,"show",d),t),n);return d&&Object(r.createElement)(ui,{placement:a,eventsEnabled:!0,positionFixed:!1},(function(e){var t=e.ref,n=e.style,o=e.placement;return Object(r.createElement)("div",{className:h,"data-placement":o,style:n,ref:t},i)}))}function co(e){var t=e.className,n=e.icon,i=e.value,o=e.children,a=e.badge,s=e.badgeType,u=e.to,c=e.RootComponent,f=e.onClick,d=e.useExact,h=l({"dropdown-item":!0},t),p=Object(r.createElement)(r.Fragment,null,a&&Object(r.createElement)("span",{className:"float-right"},Object(r.createElement)(w,{color:s},a)),n&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(P,{name:n,className:"dropdown-icon"})," "),i,o);return c?Object(r.createElement)(c,{className:h,to:u,onClick:f,exact:d},p):Object(r.createElement)("a",{className:h,href:u,onClick:f},p)}function lo(e){return Object(r.createElement)("div",{className:"dropdown-divider"},e.children)}no('@charset "UTF-8";\n/**\nContainer customization\n */\n\n.container.center {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n}\n'),io.displayName="Loader",oo.displayName="Dimmer.Content",ao.displayName="Dimmer",ao.Content=oo,so.displayName="Dropdown.Trigger",uo.displayName="Dropdown.Menu",co.displayName="Dropdown.Item",lo.displayName="Dropdown.ItemDivider";var fo=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.componentDidMount=function(){document.addEventListener("mousedown",r.handleOutsideOnClick,!1)},r.componentWillUnmount=function(){document.removeEventListener("mousedown",r.handleOutsideOnClick,!1)},r.setElementRef=function(e){e&&(r.elementRef=e)},r.isOutsideClick=function(e){return r.elementRef&&e instanceof Node&&!r.elementRef.contains(e)},r.handleOutsideOnClick=function(e){var t=e.target;r.isOutsideClick(t)&&r.props.onOutsideClick()},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){return(0,this.props.children)({setElementRef:this.setElementRef})}}]),t}(r.PureComponent),ho=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isOpen:!1},r._handleTriggerOnClick=function(e,t){e.preventDefault(),r.setState((function(e){return{isOpen:!e.isOpen}})),t&&t.onClick&&t.onClick(e)},r._handleItemClick=function(e,t){r.setState({isOpen:!1}),t&&t(e)},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e,n=this,i=this.props,o=i.className,a=i.children,s=i.desktopOnly,u=i.isOption,c=i.flex,f=void 0!==c&&c,d=m(i,["className","children","desktopOnly","isOption","flex"]),h=l((p(e={dropdown:!0,"d-none":s,"d-md-flex":s||"md"===f},"d-{flex}-flex",["xs","sm","lg","xl"].includes(f)),p(e,"d-flex",!0===f),p(e,"card-options-dropdown",u),p(e,"show",this.state.isOpen),e),o),g=function(){if(d.trigger)return Object(r.cloneElement)(d.trigger,{onClick:function(e){return n._handleTriggerOnClick(e,d.trigger)}});if(d.icon||d.triggerContent||d.toggle){var e=d.icon,t=d.triggerContent,i=d.isNavLink,o=d.type,a=d.triggerClassName,s=d.color,c=d.toggle;return Object(r.createElement)(so,{isNavLink:i,icon:e,type:o,className:a,isOption:u,color:s,toggle:c,onClick:n._handleTriggerOnClick},t)}return null}(),v=function(){if(d.items)return d.items;if(d.itemsObject){var e=d.itemsObject,i=d.itemsRootComponent;return e.map((function(e,o){return e.isDivider?Object(r.createElement)(t.ItemDivider,{key:o}):Object(r.createElement)(t.Item,{icon:e.icon,badge:e.badge,badgeType:e.badgeType,value:e.value,key:o,to:e.to,RootComponent:e.RootComponent||i,onClick:function(t){return n._handleItem
2Click(t,e.onClick)}})}))}return null}(),y=function(){if(d.items||d.itemsObject){var e=d.position,t=d.arrow,i=d.arrowPosition,o=d.dropdownMenuClassName;return Object(r.createElement)(uo,{position:e,arrow:t,arrowPosition:i,className:o,show:n.state.isOpen},v)}return null}();return Object(r.createElement)(zr,null,Object(r.createElement)(fo,{onOutsideClick:function(){return n.setState({isOpen:!1})}},(function(e){var t=e.setElementRef;return Object(r.createElement)("div",{className:h,ref:t},g,y||a)})))}}]),t}(r.Component);function po(e){e.className;var t=e.children,n=e.avatarURL,i=e.fullName,o=e.dateString,a=l("mr-3"),s=l("d-block text-muted"),u=null!==i||null!==o,c=Object(r.createElement)(_,{imageURL:n,size:"md",className:a}),f=Object(r.createElement)("div",null,Object(r.createElement)("div",null,i),Object(r.createElement)("small",{className:s}," ",o)," ");return Object(r.createElement)(r.Fragment,null,n&&c,u&&f,t)}function go(e){var t=e.children,n=l("d-flex","align-items-center","px-2");return Object(r.createElement)("div",{className:n},t)}function vo(e){var t=e.children,n=e.className,i=l("ml-auto","text-muted",n);return Object(r.createElement)("div",{className:i},t)}function mo(e){var t=e.className,n=e.label,i=e.name,o=e.href,a=e.right,s=e.to,u=e.RootComponent,c=a?l("icon","d-none d-md-inline-block ml-3",t):l("icon",t),f=l("mr-1"),d=Object(r.createElement)(r.Fragment,null,Object(r.createElement)(P,{name:i,className:f}),n),h={};return o&&(h.href=o),u?Object(r.createElement)(u,{className:c,to:s},d):Object(r.createElement)("a",g({className:c},h),d)}function yo(e){var t=e.src,n=e.alt,i=e.href,o=e.rounded,a=void 0===o||o,s=e.className,u=e.to,c=e.RootComponent,f=l("mb-3"),d=l({rounded:a},s),h={};i&&(h.href=i);var p=Object(r.createElement)("img",{src:t,alt:n,className:d});return c?Object(r.createElement)(c,{className:f,to:u},p):Object(r.createElement)("a",g({className:f},h),p)}function bo(e){var t=e.children,n=e.className,i=l("p-3",n);return Object(r.createElement)(A,{className:i},t)}function _o(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h1",className:i,size:1},n)}function wo(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h2",className:i,size:2},n)}function xo(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h3",className:i,size:3},n)}function Oo(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h4",className:i,size:4},n)}function So(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h5",className:i,size:5},n)}function Eo(e){var t=e.className,n=e.children,i=l("mt-0 mb-4",t);return Object(r.createElement)(ko,{RootComponent:"h6",className:i,size:6},n)}function ko(e){var t=e.RootComponent,n=e.className,i=e.children,o=e.size,a=l("h"+(void 0===o?1:o),n),s=t||"div";return Object(r.createElement)(s,{className:a},i)}ho.Trigger=so,ho.Menu=uo,ho.Item=co,ho.ItemDivider=lo,po.displayName="GalleryCard.Details",go.displayName="GalleryCard.Footer",vo.displayName="GalleryCard.IconGroup",mo.displayName="GalleryCard.IconItem",yo.displayName="GalleryCard.Image",bo.Details=po,bo.Footer=go,bo.IconGroup=vo,bo.IconItem=mo,bo.Image=yo,_o.displayName="Header.H1",wo.displayName="Header.H2",xo.displayName="Header.H3",Oo.displayName="Header.H4",So.displayName="Header.H5",Eo.displayName="Header.H6",ko.H1=_o,ko.H2=wo,ko.H3=xo,ko.H4=Oo,ko.H5=So,ko.H6=Eo;var Co=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.displayName="Nav.Item",r.state={isOpen:!1},r._handleOnClick=function(){r.props.hasSubNav&&r.setState((function(e){return{isOpen:!e.isOpen}})),r.props.onClick&&r.props.onClick()},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.children,i=t.LinkComponent,o=t.value,a=t.className,s=t.to,u=t.type,c=void 0===u?"li":u,f=t.icon,d=t.hasSubNav,h=t.active,p=t.subItems,g=t.subItemsObjects,v=t.useExact,m=t.position,y=void 0===m?"bottom-start":m,b=d||!!p||!!g,_=("string"===typeof n||o)&&b?Object(r.createElement)(di,null,(function(e){var t=e.ref;return Object(r.createElement)(Po.Link,{className:a,to:s,icon:f,RootComponent:i,hasSubNav:b,active:h,rootRef:t,useExact:v},b||"string"!==typeof n?o:n)})):Object(r.createElement)(Po.Link,{className:a,to:s,icon:f,RootComponent:i,hasSubNav:b,active:h,useExact:v},b||"string"!==typeof n?o:n),w=Object(r.createElement)(r.Fragment,null,_,"string"!==typeof n&&!b&&n,b&&Object(r.createElement)(ho.Menu,{arrow:!0,show:this.state.isOpen,position:y},p||g&&g.map((function(e,t){return Object(r.createElement)(Po.SubItem,{key:t,value:e.value,to:e.to,icon:e.icon,LinkComponent:e.LinkComponent,useExact:e.useExact})}))||n)),x=l({"nav-item":!0,show:this.state.isOpen}),O="div"===c?Object(r.createElement)(fo,{onOutsideClick:function(){return e.setState({isOpen:!1})}},(function(t){var n=t.setElementRef;return Object(r.createElement)("div",{className:x,onClick:e._handleOnClick,ref:n},w)})):Object(r.createElement)(fo,{onOutsideClick:function(){return e.setState({isOpen:!1})}},(function(t){var n=t.setElementRef;return Object(r.createElement)("li",{className:x,onClick:e._handleOnClick,ref:n},w)}));return b?Object(r.createElement)(zr,null,O):O}}]),t}(r.Component);function To(e){var t=e.children,n=e.className,i=e.RootComponent,o=e.icon,a=e.active,s=void 0!==a&&a,u=e.to,c=(e.hasSubNav,e.rootRef),f=e.useExact,d=l({"nav-link":!0,active:s},n),h=Object(r.createElement)(r.Fragment,null,o&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(P,{name:o})," "),t);return i?Object(r.createElement)(i,{exact:f||!1,className:d,to:u},h):Object(r.createElement)("a",{className:d,href:u,ref:c},h)}function jo(e){var t=e.children,n=e.LinkComponent,i=(e.className,e.to),o=e.icon,a=(e.hasSubNav,e.value),s=e.useExact;return Object(r.createElement)(ho.Item,{to:i,icon:o,RootComponent:n,useExact:s||!1},a||t)}function Io(e){var t=e.className,n=e.children,i=l({nav:!0,"nav-submenu":!0},t);return Object(r.createElement)("div",{className:i},n)}function Ao(e){var t=e.className,n=e.RootComponent,i=e.icon,o=e.children,a=e.active,s=void 0!==a&&a,u=e.to,c=l({"nav-item":!0,active:s},t),f=n||"a";return Object(r.createElement)(f,{className:c,to:u},i&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(P,{name:i})," "),o)}To.displayName="Nav.Link",jo.displayName="Nav.SubItem",Io.displayName="Nav.Submenu",Ao.displayName="Nav.SubmenuItem";var Po=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={pathName:null},r.routerCallback=function(e){r.setState({pathName:e.pathname})},y(r,n)}
2return v(t,e),h(t,[{key:"computeActive",value:function(e,t,n){var r=this.state.pathName;return null!==e&&void 0!==e&&!0===e||(null!==t&&void 0!==t&&t===r||!(null===n||void 0===n||!n.find((function(e){return null!==e.to&&void 0!==e.to&&e.to===r}))))}},{key:"render",value:function(){var e=this,n=this.props,i=n.className,o=n.children,a=n.tabbed,s=void 0===a||a,u=n.items,c=n.itemsObjects,f=n.routerContextComponentType,d=l({nav:!0,"nav-tabs":s},i),h=null;f&&(h=Object(r.createFactory)(f)({callback:this.routerCallback}));return Object(r.createElement)(r.Fragment,null,h,Object(r.createElement)("ul",{className:d},u||c&&c.map((function(n,i){return Object(r.createElement)(t.Item,{key:i,icon:n.icon,value:n.value,to:n.to,hasSubNav:!!n.subItems,LinkComponent:n.LinkComponent,subItemsObjects:n.subItems,active:e.computeActive(n.active,n.to,n.subItems),useExact:n.useExact})}))||o))}}]),t}(r.Component);function No(e){var t=e.avatarURL,n=e.message,i=e.time;e.unread;return Object(r.createElement)(r.Fragment,null,t&&Object(r.createElement)(_,{className:"mr-3 align-self-center",imageURL:t}),Object(r.createElement)("div",null,n,i&&Object(r.createElement)(wi,{color:"muted",size:"small"},i)))}function Mo(e){var t=e.children;return Object(r.createElement)("div",{className:"page-main"},t)}function Ro(e){var t=e.className,n=e.children,i=l("page-title",t);return Object(r.createElement)("h1",{className:i},n)}function Lo(e){var t=e.children;return Object(r.createElement)("div",{className:"page-subtitle"},t)}function Do(e){var t=e.children;return Object(r.createElement)("div",{className:"page-options d-flex"},t)}function Fo(e){var t=e.children,n=e.title,i=e.subTitle,o=e.options;return Object(r.createElement)("div",{className:"page-header"},n&&Object(r.createElement)(Ro,null,n),i&&Object(r.createElement)(Lo,null,i),o&&Object(r.createElement)(Do,null,o),t)}function Vo(e){var t=e.className,n=e.children,i=e.title,o=e.subTitle,a=e.options,s=l("page-content",t);return Object(r.createElement)("div",{className:s},Object(r.createElement)(ro,null,(i||o||a)&&Object(r.createElement)(Fo,{title:i,subTitle:o,options:a}),n))}function Uo(e){var t=e.children,n=e.header,i=e.sidebar;return Object(r.createElement)(qo.Content,null,n,Object(r.createElement)(Ii.Row,null,Object(r.createElement)(Ii.Col,{lg:3,className:"order-lg-1 mb-4"},i),Object(r.createElement)(Ii.Col,{lg:9},t)))}function Bo(e){var t=e.children,n=e.title,i=e.header,o=e.footer,a=e.RootComponent;return Object(r.createElement)("div",{className:"my-3 my-md-5"},Object(r.createElement)(ro,null,Object(r.createElement)(Ii.Row,null,Object(r.createElement)(Ii.Col,{width:12},Object(r.createElement)(A,{RootComponent:a},n&&Object(r.createElement)(A.Header,null,Object(r.createElement)(A.Title,null,n)),i,Object(r.createElement)(A.Body,null,t),o)))))}function zo(e){var t=e.children;return Object(r.createElement)("div",{className:"map-header"},t)}function qo(e){var t=e.className,n=e.children,i=l("page",t);return Object(r.createElement)("div",{className:i},n)}function Go(e){var t=e.className,n=e.children,i=l("card-category",t);return Object(r.createElement)("div",{className:i},n)}function Wo(e){var t=e.className,n=e.children,i=l("display-3 my-4",t);return Object(r.createElement)("div",{className:i},n)}function Ho(e){var t=e.className,n=e.children,i=l("list-unstyled","leading-loose",t);return Object(r.createElement)("ul",{className:i},n)}function Ko(e){var t=e.children,n=e.available,i=e.hasIcon,o=l(n?"text-success":"text-danger","mr-2");return i?Object(r.createElement)("li",null," ",Object(r.createElement)(P,{prefix:"fe",name:n?"check":"x",className:o,isAriaHidden:!0}),t):Object(r.createElement)("li",null," ",t," ")}function Xo(e){var t=e.className,n=e.children,i=e.RootComponent,o=e.active,a=e.href,s=e.to,u=e.onClick,c=l("text-center","mt-6"),f=i||"a",d=l("btn",o?"btn-green":"btn-secondary","btn-block",t),h={};return a&&(h.href=a),s&&(h.to=s),u&&(h.role="button",h.onClick=u),Object(r.createElement)("div",{className:c},Object(r.createElement)(f,g({className:d},h),n))}function Yo(e){e.className;var t=e.children,n=e.active,i=void 0!==n&&n,o=e.category,a=l("text-center"),s=l("card-status","bg-green"),u=Object(r.createElement)("div",{className:s}),c=Object(r.createElement)(Go,null,o);return Object(r.createElement)(A,null,i&&u,Object(r.createElement)(A.Body,{className:a},o&&c,t))}
2function $o(e){var t=e.className,n=e.color,i=void 0===n?"":n,o=e.width,a=void 0===o?0:o,s=l("progress-bar",p({},"bg-"+i,!!i),t);return Object(r.createElement)("div",{className:s,style:{width:a+"%"}})}function Qo(e){var t=e.className,n=e.children,i=e.size,o=void 0===i?"":i,a=l("progress",p({},"progress-"+o,!!o),t);return Object(r.createElement)("div",{className:a},n)}Po.Item=Co,Po.SubItem=jo,Po.Link=To,Po.Submenu=Io,Po.SubmenuItem=Ao,No.Tray=function(e){var t=e.children,n=e.unread,i=e.notificationsObjects,o=e.markAllAsRead,a=t&&r.Children.toArray(t);return Object(r.createElement)(ho,{triggerContent:n&&Object(r.createElement)("span",{className:"nav-unread"}),toggle:!1,icon:"bell",isNavLink:!0,position:"bottom-end",arrow:!0,arrowPosition:"right",flex:!0,items:Object(r.createElement)(r.Fragment,null,a&&a.map((function(e,t){return Object(r.createElement)(ho.Item,{className:"d-flex",key:t},e)}))||i&&i.map((function(e,t){return Object(r.createElement)(ho.Item,{className:"d-flex "+(e.unread?"bg-light":""),key:t},Object(r.createElement)(No,{unread:e.unread,avatarURL:e.avatarURL,message:e.message,time:e.time}))})),o&&n&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ho.ItemDivider,null),Object(r.createElement)(ho.Item,{className:"text-center text-muted-dark",onClick:function(){return o()}},"Mark all as read")))})},Mo.displayName="Page.Main",Ro.displayName="Page.Title",Lo.displayName="Page.SubTitle",Do.displayName="Page.Options",Fo.displayName="Page.Header",Vo.displayName="Page.Content",Uo.displayName="Page.ContentWithSidebar",Bo.displayName="Page.Card",zo.displayName="Page.MapHeader",qo.Main=Mo,qo.Content=Vo,qo.Header=Fo,qo.ContentWithSidebar=Uo,qo.Card=Bo,qo.Title=Ro,qo.MapHeader=zo,Go.displayName="PricingCard.Category",Wo.displayName="PricingCard.Price",Ho.displayName="PricingCard.AttributeList",Ko.displayName="PricingCard.AttributeItem",Xo.displayName="PricingCard.Button",Yo.Category=Go,Yo.Price=Wo,Yo.AttributeList=Ho,Yo.AttributeItem=Ko,Yo.Button=Xo,$o.displayName="Progress.Bar",Qo.Bar=$o;var Jo=function(e){var t=e.children,n=e.href,i=e.align,o=e.imageURL,s=e.alt,u=e.notificationsTray,c=e.accountDropdown,l=e.navItems,f=e.onMenuToggleClick,d=u&&Object(r.createElement)(No.Tray,u),h=c&&Object(r.createElement)(a,c);return Object(r.createElement)("div",{className:"header py-4"},Object(r.createElement)(ro,{className:i},Object(r.createElement)("div",{className:"d-flex"},t||Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ra.Logo,{href:n,alt:s,src:o}),Object(r.createElement)("div",{className:"d-flex order-lg-2 ml-auto"},l,d,h),Object(r.createElement)("a",{className:"header-toggler d-lg-none ml-3 ml-lg-0",onClick:f},Object(r.createElement)("span",{className:"header-toggler-icon"}))))))};Jo.displayName="Site.Header";var Zo=function(e){var t=e.links,n=e.note,i=e.copyright,o=e.nav;return Object(r.createElement)(r.Fragment,null,(t||n)&&Object(r.createElement)("div",{className:"footer"},Object(r.createElement)(ro,null,Object(r.createElement)(Ii.Row,null,Object(r.createElement)(Ii.Col,{lg:8},Object(r.createElement)(Ii.Row,null,t&&Object(r.createElement)(r.Fragment,null,Object(r.createElement)(Ii.Col,{width:6,md:3},Object(r.createElement)(yi,{unstyled:!0,className:"mb-0"},Object(r.createElement)(yi.Item,null,t[0]),Object(r.createElement)(yi.Item,null,t[1]))),Object(r.createElement)(Ii.Col,{width:6,md:3},Object(r.createElement)(yi,{unstyled:!0,className:"mb-0"},Object(r.createElement)(yi.Item,null,t[2]),Object(r.createElement)(yi.Item,null,t[3]))),Object(r.createElement)(Ii.Col,{width:6,md:3},Object(r.createElement)(yi,{unstyled:!0,className:"mb-0"},Object(r.createElement)(yi.Item,null,t[4]),Object(r.createElement)(yi.Item,null,t[5]))),Object(r.createElement)(Ii.Col,{width:6,md:3},Object(r.createElement)(yi,{unstyled:!0,className:"mb-0"},Object(r.createElement)(yi.Item,null,t[6]),Object(r.createElement)(yi.Item,null,t[7])))))),Object(r.createElement)(Ii.Col,{lg:4,className:"mt-4 mt-lg-0"},n)))),(o||i)&&Object(r.createElement)("footer",{className:"footer"},Object(r.createElement)(ro,null,Object(r.createElement)(Ii.Row,{className:"align-items-center flex-row-reverse"},Object(r.createElement)(Ii.Col,{auto:!0,className:"ml-auto"},Object(r.createElement)(Ii.Row,{className:"align-items-center"},o)),Object(r.createElement)(Ii.Col,{width:12,lgAuto:!0,className:"mt-3 mt-lg-0 text-center"},i)))))};Zo.displayName="Site.Footer";var ea=function(e){var t=e.children,n=e.items,i=e.itemsObjects,o=(e.withSearchForm,e.rightColumnComponent),a=e.collapse,s=void 0===a||a,u=e.routerContextComponentType,c=l("header d-lg-flex p-0",{collapse:s});return Object(r.createElement)("div",{className:c},Object(r.createElement)(ro,null,t||Object(r.createElement)(Ii.Row,{className:"align-items-center"},Object(r.createElement)(Ii.Col,{lg:3,className:"ml-auto",ignoreCol:!0},o),Object(r.createElement)(Ii.Col,{className:"col-lg order-lg-first"},Object(r.createElement)(Po,{tabbed:!0,className:"border-0 flex-column flex-lg-row",items:n,itemsObjects:i,routerContextComponentType:u})))))};ea.displayName="Site.Nav";var ta=function(e){return Object(r.createElement)("a",{className:"header-brand",href:e.href},Object(r.createElement)("img",{src:e.src,className:"header-brand-img",alt:e.alt}))};ta.displayName="Site.Logo";var na=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={collapseMobileMenu:!0},r.handleCollapseMobileMenu=function(){r.setState((function(e){return{collapseMobileMenu:!e.collapseMobileMenu}}))},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.headerProps,n=e.navProps,i=e.footerProps,o=e.children,a=e.routerContextComponentType,s=g({},t,{onMenuToggleClick:this.handleCollapseMobileMenu}),u=Object(r.createElement)(ra.Header,s),c=g({},n,{collapse:this.state.collapseMobileMenu,routerContextComponentType:a}),l=Object(r.createElement)(ra.Nav,c),f=Object(r.createElement)(ra.Footer,i);return Object(r.createElement)(qo,null,Object(r.createElement)(qo.Main,null,u,l,o),f)}}]),t}(r.PureComponent);function ra(e){return e.children}function ia(e){var t=e.children,n=e.className,i=e.asButtons,o=e.prefix,a=void 0===o?"fe":o,s=e.items,u=e.itemsObjects,c=l("social-links",n),f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];return function(n){var i=e?Object(r.createElement)(pi,{to:n.to,social:n.name,color:n.color,size:"sm"},n.label):Object(r.createElement)("a",{href:n.to,"data-original-title":n.tooltip},Object(r.createElement)(P,{prefix:t,name:n.name}));return Object(r.createElement)(yi.Item,{inline:!0},i)}}(i,a),d=u&&u.map(f)||s&&s.map((function(e){return Object(r.createElement)(yi.Item,{inline:!0},e)}))||t;return Object(r.createElement)(yi,{inline:!0,className:c},d)}function oa(e){var t,n=e.children,i=e.className,o=e.size,a=void 0===o?"md":o,s=e.icon,u=e.color,c=void 0===u?"":u,f=l((p(t={stamp:!0},"stamp-"+a,a),p(t,"bg-"+c,c),t),i);return Object(r.createElement)("span",{className:f},s&&Object(r.createElement)(P,{name:s}),n)}function aa(e){var t=e.children,n=e.className,i=e.icon,o=e.color,a=void 0===o?"":o,s=e.header,u=e.footer,c=l("p-3",n);return Object(r.createElement)(A,{className:c},Object(r.createElement)("div",{className:"d-flex align-items-center"},Object(r.createElement)(oa,{color:a,icon:i,className:"mr-3"}),Object(r.createElement)("div",null,s&&Object(r.createElement)(ko,{size:4,className:"m-0"},s),t,u&&Object(r.createElement)(wi.Small,{muted:!0}
2,u))))}na.displayName="Site.Wrapper",ra.Header=Jo,ra.Footer=Zo,ra.Nav=ea,ra.Logo=ta,ra.Wrapper=na,ra.displayName="Site",ia.displayName="SocialNetworksList",oa.displayName="Stamp",aa.displayName="StampCard";!function(e){function t(){return d(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}v(t,e),h(t,[{key:"render",value:function(){return this.props.children}}])}(r.PureComponent);function sa(e){return r.Children.toArray(e.children).filter((function(t){return t.props.title===e.selectedTitle}))}function ua(e){var t=e.children,n=e.stateCallback,i=r.Children.toArray(t);return Object(r.createElement)("ul",{className:"nav nav-tabs Tab_header_tabs"},i.map((function(t,i){var o=t.props.title;return Object(r.createElement)(Po.Item,{key:i,value:o,onClick:function(){return n(o)},active:o===e.selectedTitle})})))}no(".margin-bottom-24 {\n  margin-bottom: 24px !important;\n}\n");(function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={selectedTitle:r.props.initialTab},y(r,n)}v(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props.children,n=this.state.selectedTitle;return Object(r.createElement)(r.Fragment,null,Object(r.createElement)(ua,{selectedTitle:n,stateCallback:function(t){return e.setState({selectedTitle:t})}},t),Object(r.createElement)("div",{className:"margin-bottom-24"}),Object(r.createElement)(sa,{selectedTitle:n},t))}}])})(r.PureComponent),function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={selectedTitle:r.props.initialTab},y(r,n)}v(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props.children,n=this.state.selectedTitle;return Object(r.createElement)(A,null,Object(r.createElement)(A.Header,null,Object(r.createElement)(ua,{selectedTitle:n,stateCallback:function(t){return e.setState({selectedTitle:t})}},t)),Object(r.createElement)(A.Body,null,Object(r.createElement)(sa,{selectedTitle:n},t)))}}])}(r.PureComponent);function ca(e){var t=e.className,n=e.children,i=m(e,["className","children"]),o=l(t);return Object(r.createElement)("thead",g({className:o},i),n)}function la(e){var t=e.className,n=e.children,i=m(e,["className","children"]),o=l(t);return Object(r.createElement)("tbody",g({className:o},i),n)}function fa(e){var t=e.className,n=e.children,i=m(e,["className","children"]),o=l(t);return Object(r.createElement)("tr",g({className:o},i),n)}function da(e){var t=e.className,n=e.children,i=e.alignContent,o=void 0===i?"":i,a=e.colSpan,s=l(p({},"text-"+o,o),t);return Object(r.createElement)("td",{className:s,colSpan:a},n)}function ha(e){var t=e.className,n=e.children,i=e.colSpan,o=e.alignContent,a=void 0===o?"":o,s=l(p({},"text-"+a,a),t);return Object(r.createElement)("th",{className:s,colSpan:i},n)}function pa(e){var t=e.className,n=e.children,i=e.cards,o=e.striped,a=e.responsive,s=e.highlightRowOnHover,u=e.hasOutline,c=e.verticalAlign,f=m(e,["className","children","cards","striped","responsive","highlightRowOnHover","hasOutline","verticalAlign"]),d=l("table",{"card-table":i,"table-striped":o,"table-hover":s,"table-outline":u,"table-vcenter":"center"===c},t),h=f.headerItems&&Object(r.createElement)(pa.Header,null,Object(r.createElement)(pa.Row,null,f.headerItems.map((function(e,t){return Object(r.createElement)(pa.ColHeader,{key:t,className:e.className},e.content)})))),p=f.bodyItems&&Object(r.createElement)(pa.Body,null,f.bodyItems.map((function(e,t){return Object(r.createElement)(pa.Row,{key:e.key},e.item.map((function(e,t){return Object(r.createElement)(pa.Col,{className:e.className,alignContent:e.alignContent,key:t},e.content)})))}))),v=Object(r.createElement)("table",g({className:d},f),h,p||n);return a?Object(r.createElement)("div",{className:"table-responsive"},v):v}function ga(e){var t=e.children,n=e.className,i=l("tags",n);return Object(r.createElement)("div",{className:i},t)}function va(e){var t=e.children,n=e.className,i=e.icon,o=e.color,a=void 0===o?"":o,s=e.onClick,u=e.onMouseEnter,c=e.onMouseLeave,f=e.onPointerEnter,d=e.onPointerLeave,h=e.onFocus,v=e.onBlur,m=l("tag-addon",p({},"tag-"+a,a),n),y={onClick:s,onMouseEnter:u,onMouseLeave:c,onPointerEnter:f,onPointerLeave:d,onFocus:h,onBlur:v},b=Object(r.createElement)(r.Fragment,null,i&&Object(r.createElement)(P,{name:i}),t);if(e.link){var _=e.href;return Object(r.createElement)("a",g({className:m,href:_},y),b)}if(e.RootComponent){var w=e.RootComponent,x=e.to;return Object(r.createElement)(w,g({to:x},y),b)}return Object(r.createElement)("span",g({className:m},y),b)}ca.displayName="Table.Header",la.displayName="Table.Body",fa.displayName="Table.Row",da.displayName="Table.Col",ha.displayName="Table.ColHeader",pa.defaultProps={cards:!1,striped:!1,responsive:!1},pa.Header=ca,pa.Body=la,pa.Row=fa,pa.Col=da,pa.ColHeader=ha,ga.displayName="Tag.List",va.displayName="Tag.AddOn";var ma=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isDeleted:!1},r.handleOnRemoveClick=function(){r.setState((function(e){return{isDeleted:!0}
2}))},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,i=e.rounded,o=e.color,a=void 0===o?"":o,s=e.avatar,u=e.remove,c=e.addOn,f=e.addOnIcon,d=e.addOnColor,h=e.onClick,v=e.onMouseEnter,m=e.onMouseLeave,y=e.onPointerEnter,b=e.onPointerLeave,_=e.onFocus,w=e.onBlur,x=e.onRemoveClick,O=e.onAddOnClick,S=l(p({tag:!0,expanded:!0,"tag-rounded":i},"tag-"+a,a),n),E={onClick:h,onMouseEnter:v,onMouseLeave:m,onPointerEnter:y,onPointerLeave:b,onFocus:_,onBlur:w};if(this.state.isDeleted)return null;var k=Object(r.createElement)(r.Fragment,null,s&&Object(r.createElement)("span",{class:"tag-avatar avatar",style:{backgroundImage:"url("+s+")"}}),t,(c||f)&&Object(r.createElement)(va,{icon:f,color:d,onClick:O},c),u&&x?Object(r.createElement)(va,{onClick:x,link:!0,icon:"x"}):u&&Object(r.createElement)(va,{onClick:this.handleOnRemoveClick,link:!0,icon:"x"}));if(this.props.RootComponent){var C=this.props.to;return Object(r.createElement)(r.Component,g({className:S,to:C},E),k)}if(this.props.link){var T=this.props.href;return Object(r.createElement)("a",g({className:S,href:T},E),k)}return Object(r.createElement)("span",g({className:S},E),k)}}]),t}(r.Component);function ya(e){var t=e.className,n=e.children,i=e.color,o=void 0===i?"":i,a=l(p({"timeline-badge":!0},"bg-"+o,o),t);return Object(r.createElement)("div",{className:a},n)}function ba(e){var t=e.className,n=e.children,i=e.active,o=l({"timeline-time":!0,"text-muted-black":i},t);return Object(r.createElement)("div",{className:o},n)}function _a(e){var t=e.children,n=e.active;return t?n?Object(r.createElement)("strong",null,t):t:null}function wa(e){var t=e.children;return Object(r.createElement)("small",{className:"d-block text-muted"},t)}function xa(e){var t=e.className,n=e.children,i=e.title,o=e.description,a=e.badge,s=e.badgeColor,u=e.time,c=e.active,f=l({"timeline-item":!0},t),d=i||"string"===typeof n&&n,h=d&&Object(r.createElement)(_a,{active:c},d),p=h&&Object(r.createElement)(r.Fragment,null,h,o&&Object(r.createElement)(wa,null,o));return Object(r.createElement)("li",{className:f},(a||s)&&Object(r.createElement)(ya,{color:s}),c?Object(r.createElement)("div",null,p):p,n,u&&Object(r.createElement)(ba,{active:c},u))}function Oa(e){var t=e.className,n=e.children,i=l({timeline:!0},t);return Object(r.createElement)("ul",{className:i},n)}ma.List=ga,ma.AddOn=va,ya.displayName="Timeline.ItemBadge",ba.displayName="Timeline.ItemTime",_a.displayName="Timeline.ItemTitle",wa.displayName="Timeline.ItemDescription",xa.displayName="Timeline.Item",Oa.Item=xa,Oa.ItemTime=ba,Oa.ItemBadge=ya,Oa.ItemTitle=_a,Oa.ItemDescription=wa;no("/* Tooltip-specific Stylesheet */\n\n.tbr-arrow-vertical {\n  left: calc(50% - 0.4rem);\n}\n\n.tbr-arrow-horizontal {\n  top: calc(50% - 0.4rem);\n}\n");var Sa=function(e){function t(){var e,n,r;d(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),r.state={isShown:!1},r._handleTriggerOnMouseEnter=function(e){e.preventDefault(),r.setState({isShown:!0})},r._handleTriggerOnMouseLeave=function(e){e.preventDefault(),r.setState({isShown:!1})},y(r,n)}return v(t,e),h(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.className,i=t.children,o=t.placement,a=t.content,s=l("tooltip",o&&"bs-tooltip-"+o,"show",n),u=l("arrow","top"===o||"bottom"===o?"tbr-arrow-vertical":"tbr-arrow-horizontal");return Object(r.createElement)(zr,null,Object(r.createElement)(di,null,(function(t){var n=t.ref;return"undefined"!==typeof i&&Object(r.cloneElement)(i,{ref:n,onMouseEnter:e._handleTriggerOnMouseEnter,onMouseLeave:e._handleTriggerOnMouseLeave})})),this.state.isShown&&Object(r.createElement)(ui,{placement:o},(function(e){var t=e.ref,n=e.style,i=e.placement;return Object(r.createElement)("div",{className:s,"data-placement":i,style:n,ref:t},Object(r.createElement)("div",{className:u}),Object(r.createElement)("div",{className:"tooltip-inner"},a))})))}}]),t}(r.Component),Ea=function(e){function t(){return d(this,t),y(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}
2return v(t,e),h(t,[{key:"componentDidMount",value:function(){var e=this.props;(0,e.callback)(e.location)}},{key:"render",value:function(){return null}}]),t}(r.Component);function ka(e){return Object(r.createElement)("div",{className:"page"},Object(r.createElement)("div",{className:"page-single"},Object(r.createElement)("div",{className:"container"},Object(r.createElement)("div",{className:"row"},Object(r.createElement)("div",{className:"col col-login mx-auto"},Object(r.createElement)("div",{className:"text-center mb-6"},Object(r.createElement)("img",{src:e.imageURL,className:"h-6",alt:"logo"})),e.children)))))}function Ca(e){var t=e.title,n=void 0===t?"Error":t,i=e.subtitle,o=void 0===i?"Sorry an unkown error occurred":i,a=e.details,s=e.action,u=void 0===s?"Go back":s;return Object(r.createElement)(qo,{className:"text-center"},Object(r.createElement)(ro,null,Object(r.createElement)(ko.H1,{className:"display-1 text-muted mb-5"},n),Object(r.createElement)(ko.H2,null,o),a&&Object(r.createElement)(ko.H4,{className:"text-muted font-weight-normal mb-7"},a),Object(r.createElement)(pi,{onClick:function(e){return window.history.back(),e.preventDefault(),!0},className:"btn-primary"},Object(r.createElement)(P,{className:"mr-2",name:"arrow-left"}),u)))}function Ta(e){var t=e.title,n=void 0===t?"400":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"We are sorry but your request contains bad syntax and cannot be fulfilled...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function ja(e){var t=e.title,n=void 0===t?"401":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"We are sorry but you are not authorized to access this page...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function Ia(e){var t=e.title,n=void 0===t?"403":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"We are sorry but you do not have permission to access this page...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function Aa(e){var t=e.title,n=void 0===t?"404":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"We are sorry but the page you have requested can not be found...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function Pa(e){var t=e.title,n=void 0===t?"500":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"We are sorry but your request contains bad syntax and cannot be fulfilled...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function Na(e){var t=e.title,n=void 0===t?"503":t,i=e.subtitle,o=void 0===i?"Oops... You just found an error page...":i,a=e.details,s=void 0===a?"This page is temporarily unavailable.  Please reload your browser...":a,u=e.action;return Object(r.createElement)(Ca,{title:n,subtitle:o,details:s,action:u})}function Ma(e){var t=e.children,n=e.action,i=e.method,o=e.onSubmit,a=e.title,s=e.buttonText;return Object(r.createElement)(to,{className:"card",onSubmit:o,action:n,method:i},Object(r.createElement)(A.Body,{className:"p-6"},Object(r.createElement)(A.Title,{RootComponent:"div"},a),t,Object(r.createElement)(to.Footer,null,Object(r.createElement)(pi,{type:"submit",color:"primary",block:!0},s))))}function Ra(e){var t=e.label,n=m(e,["label"]),i=Object(r.createElement)(to.Input,n);return Object(r.createElement)(to.Group,{label:t},i)}function La(e){var t=Object(r.createElement)(to.Checkbox,e);return Object(r.createElement)(to.Group,null,t)}var Da={blue:"#467fcf","blue-darkest":"#0e1929","blue-darker":"#1c3353","blue-dark":"#3866a6","blue-light":"#7ea5dd","blue-lighter":"#c8d9f1","blue-lightest":"#edf2fa",azure:"#45aaf2","azure-darkest":"#0e2230","azure-darker":"#1c4461","azure-dark":"#3788c2","azure-light":"#7dc4f6","azure-lighter":"#c7e6fb","azure-lightest":"#ecf7fe",indigo:"#6574cd","indigo-darkest":"#141729","indigo-darker":"#282e52","indigo-dark":"#515da4","indigo-light":"#939edc","indigo-lighter":"#d1d5f0","indigo-lightest":"#f0f1fa",purple:"#a55eea","purple-darkest":"#21132f","purple-darker":"#42265e","purple-dark":"#844bbb","purple-light":"#c08ef0","purple-lighter":"#e4cff9","purple-lightest":"#f6effd",pink:"#f66d9b","pink-darkest":"#31161f","pink-darker":"#622c3e","pink-dark":"#c5577c","pink-light":"#f999b9","pink-lighter":"#fcd3e1","pink-lightest":"#fef0f5",red:"#e74c3c","red-darkest":"#2e0f0c","red-darker":"#5c1e18","red-dark":"#b93d30","red-light":"#ee8277","red-lighter":"#f8c9c5","red-lightest":"#fdedec",orange:"#fd9644","orange-darkest":"#331e0e","orange-darker":"#653c1b","orange-dark":"#ca7836","orange-light":"#feb67c","orange-lighter":"#fee0c7","orange-lightest":"#fff5ec",yellow:"#f1c40f","yellow-darkest":"#302703","yellow-darker":"#604e06","yellow-dark":"#c19d0c","yellow-light":"#f5d657","yellow-lighter":"#fbedb7","yellow-lightest":"#fef9e7",lime:"#7bd235","lime-darkest":"#192a0b","lime-darker":"#315415","lime-dark":"#62a82a","lime-light":"#a3e072","lime-lighter":"#d7f2c2","lime-lightest":"#f2fbeb",green:"#5eba00","green-darkest":"#132500","green-darker":"#264a00","green-dark":"#4b9500","green-light":"#8ecf4d","green-lighter":"#cfeab3","green-lightest":"#eff8e6",teal:"#2bcbba","teal-darkest":"#092925","teal-darker":"#11514a","teal-dark":"#22a295","teal-light":"#6bdbcf","teal-lighter":"#bfefea","teal-lightest":"#eafaf8",cyan:"#17a2b8","cyan-darkest":"#052025","cyan-darker":"#09414a","cyan-dark":"#128293","cyan-light":"#5dbecd","cyan-lighter":"#b9e3ea","cyan-lightest":"#e8f6f8",gray:"#868e96","gray-darkest":"#1b1c1e","gray-darker":"#36393c","gray-light":"#aab0b6","gray-lighter":"#dbdde0","gray-lightest":"#f3f4f5","gray-dark":"#343a40","gray-dark-darkest":"#0a0c0d","gray-dark-darker":"#15171a","gray-dark-dark":"#2a2e33","gray-dark-light":"#717579","gray-dark-lighter":"#c2c4c6","gray-dark-lightest":"#ebebec"};function Fa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return n.reduce((function(n,r){return Object.assign(n,p({},r,e&&e[r]&&t?t[r]:""))}),{})}function Va(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return function(t){return function(n){var i=Fa(n.touched,n.errors,e);return Object(r.createElement)(t,g({},n,{errors:i}))}}}var Ua="Login to your Account",Ba="Login",za="Email Address",qa="Enter email",Ga="Password",Wa="Password";Va(["email","password"])((function(e){var t=e.action,n=e.method,i=e.onSubmit,o=e.onChange,a=e.onBlur,s=e.values,u=e.strings,c=void 0===u?{}:u,l=e.errors;return Object(r.createElement)(ka,{imageURL:"./demo/logo.svg"},Object(r.createElement)(Ma,{buttonText:c.buttonText||Ba,title:c.title||Ua,onSubmit:i,action:t,method:n},Object(r.createElement)(Ra,{name:"email",label:c.emailLabel||za,placeholder:c.emailPlaceholder||qa,onChange:o,onBlur:a,value:s&&s.email,error:l&&l.email}),Object(r.createElement)(Ra,{name:"password",type:"password",label:c.passwordLabel||Ga,placeholder:c.passwordPlaceholder||Wa,onChange:o,onBlur:a,value:s&&s.password,error:l&&l.password})))}));var Ha="Create New Account",Ka="Create Account",Xa="Name",Ya="Enter name",$a="Email Address",Qa="Enter email",Ja="Password",Za="Password",es="Agree to the terms and policy";Va(["name","email","password","terms"])((function(e){var t=e.action,n=e.method,i=e.onSubmit,o=e.onChange,a=e.onBlur,s=e.values,u=e.strings,c=void 0===u?{}:u,l=e.errors;return Object(r.createElement)(ka,{imageURL:"./demo/logo.svg"},Object(r.createElement)(Ma,{buttonText:c.buttonText||Ka,title:c.title||Ha,onSubmit:i,action:t,method:n},Object(r.createElement)(Ra,{name:"name",label:c.nameLabel||Xa,placeholder:c.namePlaceholder||Ya,onChange:o,onBlur:a,value:s&&s.name,error:l&&l.name}),Object(r.createElement)(Ra,{name:"email",label:c.emailLabel||$a,placeholder:c.emailPlaceholder||Qa,onChange:o,onBlur:a,value:s&&s.email,error:l&&l.email}),Object(r.createElement)(Ra,{name:"password",type:"password",label:c.passwordLabel||Ja,placeholder:c.passwordPlaceholder||Za,onChange:o,onBlur:a,value:s&&s.password,error:l&&l.password}),Object(r.createElement)(La,{onChange:o,onBlur:a,value:s&&s.terms,name:"terms",label:c.termsLabel||es})))}));var ts="Forgot Password",ns="Request Password Change",rs="Email Address",is="Enter email",os="Enter your email address and your password will be reset and emailed to you.";Va(["email"])((function(e){var t=e.action,n=e.method,i=e.onSubmit,o=e.onChange,a=e.onBlur,s=e.values,u=e.strings,c=void 0===u?{}:u,l=e.errors;return Object(r.createElement)(ka,{imageURL:"./demo/logo.svg"},Object(r.createElement)(Ma,{buttonText:c.buttonText||ns,title:c.title||ts,onSubmit:i,action:t,method:n},Object(r.createElement)("p",{className:"text-muted"},c.instructions||os),Object(r.createElement)(Ra,{name:"email",label:c.emailLabel||rs,placeholder:c.emailPlaceholder||is,onChange:o,onBlur:a,value:s&&s.email,error:l&&l.email})))}))}).call(this,n(66))},function(e,t,n){"use strict";function r(){return(r=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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"===typeof e||"number"===typeof e)i+=e;else if("object"===typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.a=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},function(e,t,n){e.exports=n(167)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(102);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(10),i=n(143),o=n(37);function a(e,t){return t&&"string"===typeof t?t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e):null}function s(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:a(e,n)||i,t&&(r=t(r)),r}t.a=function(e){var t=e.prop,n=e.cssProperty,u=void 0===n?e.prop:n,c=e.themeKey,l=e.transform,f=function(e){if(null==e[t])return null;var n=e[t],f=a(e.theme,c)||{};return Object(o.b)(e,n,(function(e){var n=s(f,l,e);return e===n&&"string"===typeof e&&(n=s(f,l,"".concat(t).concat("default"===e?"":Object(i.a)(e)),e)),!1===u?n:Object(r.a)({},u,n)}))};return f.propTypes={},f.filterProps=[t],f}},function(e,t,n){"use strict";n.r(t),n.d(t,"firebase",(function(){return _}));var r,i,o=n(2),a=n(3),s=n(24),u=n(23),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}
2' 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="@firebase/app",d="[DEFAULT]",h=((i={})[f]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",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),p=new u.Logger("@firebase/app"),g=function(){function e(e,t,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=t.name,this.automaticDataCollectionEnabled_=t.automaticDataCollectionEnabled||!1,this.options_=Object(a.deepCopy)(e),this.container=new s.ComponentContainer(t.name),this._addComponent(new s.Component("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(e){return r._addComponent(e)}))}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(e){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=e},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){var n;void 0===t&&(t=d),this.checkDestroyed_();var r=this.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})},e.prototype._removeServiceInstance=function(e,t){void 0===t&&(t=d),this.container.getProvider(e).clearInstance(t)},e.prototype._addComponent=function(e){try{this.container.addComponent(e)}catch(t){p.debug("Component "+e.name+" failed to register with FirebaseApp "+this.name,t)}},e.prototype._addOrOverwriteComponent=function(e){this.container.addOrOverwriteComponent(e)},e.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},e.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},e}();g.prototype.name&&g.prototype.options||g.prototype.delete||console.log("dc");var v=function e(){var t=function(e){var t={},n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"===typeof i&&null!==i||(i={name:i});var o=i;void 0===o.name&&(o.name=d);var s=o.name;if("string"!==typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if(Object(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=h[e])&&void 0!==r?r:e;n&&(i+="-"+n);var a=i.match(/\s|\//),u=t.match(/\s|\//);if(a||u){var c=['Unable to register library "'+i+'" with version "'+t+'":'];return a&&c.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),a&&u&&c.push("and"),u&&c.push('version name "'+t+'" contains illegal characters (whitespace or "/")'),void p.warn(c.join(" "))}o(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");Object(u.setUserLogHandler)(e,t)},apps:null,SDK_VERSION:"8.6.7",INTERNAL:{registerComponent:o,removeApp:function(e){delete t[e]}
2,components:n,useAsService:function(e,t){return"serverAuth"===t?null:t}}};function i(e){if(e=e||d,!Object(a.contains)(t,e))throw l.create("no-app",{appName:e});return t[e]}function o(o){var s=o.name;if(n.has(s))return p.debug("There were multiple attempts to register component "+s+"."),"PUBLIC"===o.type?r[s]:null;if(n.set(s,o),"PUBLIC"===o.type){var u=function(e){if(void 0===e&&(e=i()),"function"!==typeof e[s])throw l.create("invalid-app-argument",{appName:s});return e[s]()};void 0!==o.serviceProps&&Object(a.deepExtend)(u,o.serviceProps),r[s]=u,e.prototype[s]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this._getService.bind(this,s).apply(this,o.multipleInstances?e:[])}}for(var c=0,f=Object.keys(t);c<f.length;c++){var d=f[c];t[d]._addComponent(o)}return"PUBLIC"===o.type?r[s]: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}(g);return t.INTERNAL=Object(o.__assign)(Object(o.__assign)({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){Object(a.deepExtend)(t,e)},createSubscribe:a.createSubscribe,ErrorFactory:a.ErrorFactory,deepExtend:a.deepExtend}),t}(),m=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(Object(a.isBrowser)()&&void 0!==self.firebase){p.warn("\n    Warning: Firebase is already defined in the global scope. Please make sure\n    Firebase library is only loaded once.\n  ");var y=self.firebase.SDK_VERSION;y&&y.indexOf("LITE")>=0&&p.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 b=v.initializeApp;v.initializeApp=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Object(a.isNode)()&&p.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      '),b.apply(void 0,e)};var _=v;!function(e,t){e.INTERNAL.registerComponent(new s.Component("platform-logger",(function(e){return new m(e)}),"PRIVATE")),e.registerVersion(f,"0.6.26",t),e.registerVersion("fire-js","")}(_),t.default=_},function(e,t,n){"use strict";n.d(t,"b",(function(){return Pe})),n.d(t,"c",(function(){return Ne}));var r=n(27),i=n(41),o=n(52),a=(n(190),n(0)),s=n(91),u=/^((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|playsInl
2ine|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|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)-.*))$/,c=Object(s.a)((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=n(39),d=n(46),h=n(56),p=c,g=function(e){return"theme"!==e},v=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?p:g},m=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},y=function e(t,n){var r,i,o=t.__emotion_real===t,s=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var u=m(t,n,o),c=u||v(s),p=!c("as");return function(){var g=arguments,y=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&y.push("label:"+r+";"),null==g[0]||void 0===g[0].raw)y.push.apply(y,g);else{0,y.push(g[0][0]);for(var b=g.length,_=1;_<b;_++)y.push(g[_],g[0][_])}var w=Object(f.e)((function(e,t,n){var r=p&&e.as||s,o="",l=[],g=e;if(null==e.theme){for(var m in g={},e)g[m]=e[m];g.theme=Object(a.useContext)(f.b)}"string"===typeof e.className?o=Object(d.a)(t.registered,l,e.className):null!=e.className&&(o=e.className+" ");var b=Object(h.a)(y.concat(l),t.registered,g);Object(d.b)(t,b,"string"===typeof r);o+=t.key+"-"+b.name,void 0!==i&&(o+=" "+i);var _=p&&void 0===u?v(r):c,w={};for(var x in e)p&&"as"===x||_(x)&&(w[x]=e[x]);return w.className=o,w.ref=n,Object(a.createElement)(r,w)}));return w.displayName=void 0!==r?r:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",w.defaultProps=t.defaultProps,w.__emotion_real=w,w.__emotion_base=s,w.__emotion_styles=y,w.__emotion_forwardProp=u,Object.defineProperty(w,"toString",{value:function(){return"."+i}}),w.withComponent=function(t,r){return e(t,l({},n,r,{shouldForwardProp:m(w,r,!0)})).apply(void 0,y)},w}}.bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){y[e]=y(e)}));var b=y;function _(e,t){return b(e,t)}var w=n(274),x=n(10),O=n(53),S=n(11);var E=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),i=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?Object(O.a)(t,r[n](e)):t}),{})};return i.propTypes={},i.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),i},k=n(40),C=n(37);function T(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var j=Object(S.a)({prop:"border",themeKey:"borders",transform:T}),I=Object(S.a)({prop:"borderTop",themeKey:"borders",transform:T}),A=Object(S.a)({prop:"borderRight",themeKey:"borders",transform:T}),P=Object(S.a)({prop:"borderBottom",themeKey:"borders",transform:T}),N=Object(S.a)({prop:"borderLeft",themeKey:"borders",transform:T}),M=Object(S.a)({prop:"borderColor",themeKey:"palette"}),R=Object(S.a)({prop:"borderTopColor",themeKey:"palette"}),L=Object(S.a)({prop:"borderRightColor",themeKey:"palette"}),D=Object(S.a)({prop:"borderBottomColor",themeKey:"palette"}),F=Object(S.a)({prop:"borderLeftColor",themeKey:"palette"}),V=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=Object(k.b)(e.theme,"shape.borderRadius",4,"borderRadius");return Object(C.b)(e,e.borderRadius,(function(e){return{borderRadius:Object(k.d)(t,e)}}))}return null};V.propTypes={},V.filterProps=["borderRadius"];var U=E(j,I,A,P,N,M,R,L,D,F,V),B=E(Object(S.a)({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),Object(S.a)({prop:"display"}),Object(S.a)({prop:"overflow"}),Object(S.a)({prop:"textOverflow"}),Object(S.a)({prop:"visibility"}),Object(S.a)({prop:"whiteSpace"})),z=E(Object(S.a)({prop:"flexBasis"}),Object(S.a)({prop:"flexDirection"}),Object(S.a)({prop:"flexWrap"}
2),Object(S.a)({prop:"justifyContent"}),Object(S.a)({prop:"alignItems"}),Object(S.a)({prop:"alignContent"}),Object(S.a)({prop:"order"}),Object(S.a)({prop:"flex"}),Object(S.a)({prop:"flexGrow"}),Object(S.a)({prop:"flexShrink"}),Object(S.a)({prop:"alignSelf"}),Object(S.a)({prop:"justifyItems"}),Object(S.a)({prop:"justifySelf"})),q=function(e){if(void 0!==e.gap&&null!==e.gap){var t=Object(k.b)(e.theme,"spacing",8,"gap");return Object(C.b)(e,e.gap,(function(e){return{gap:Object(k.d)(t,e)}}))}return null};q.propTypes={},q.filterProps=["gap"];var G=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=Object(k.b)(e.theme,"spacing",8,"columnGap");return Object(C.b)(e,e.columnGap,(function(e){return{columnGap:Object(k.d)(t,e)}}))}return null};G.propTypes={},G.filterProps=["columnGap"];var W=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=Object(k.b)(e.theme,"spacing",8,"rowGap");return Object(C.b)(e,e.rowGap,(function(e){return{rowGap:Object(k.d)(t,e)}}))}return null};W.propTypes={},W.filterProps=["rowGap"];var H=E(q,G,W,Object(S.a)({prop:"gridColumn"}),Object(S.a)({prop:"gridRow"}),Object(S.a)({prop:"gridAutoFlow"}),Object(S.a)({prop:"gridAutoColumns"}),Object(S.a)({prop:"gridAutoRows"}),Object(S.a)({prop:"gridTemplateColumns"}),Object(S.a)({prop:"gridTemplateRows"}),Object(S.a)({prop:"gridTemplateAreas"}),Object(S.a)({prop:"gridArea"})),K=E(Object(S.a)({prop:"position"}),Object(S.a)({prop:"zIndex",themeKey:"zIndex"}),Object(S.a)({prop:"top"}),Object(S.a)({prop:"right"}),Object(S.a)({prop:"bottom"}),Object(S.a)({prop:"left"})),X=E(Object(S.a)({prop:"color",themeKey:"palette"}),Object(S.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Object(S.a)({prop:"backgroundColor",themeKey:"palette"})),Y=Object(S.a)({prop:"boxShadow",themeKey:"shadows"});function $(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var Q=Object(S.a)({prop:"width",transform:$}),J=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return Object(C.b)(e,e.maxWidth,(function(t){var n,r,i;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(i=r.values)?void 0:i[t])||C.d[t]||$(t)}}))}return null};J.filterProps=["maxWidth"];var Z=Object(S.a)({prop:"minWidth",transform:$}),ee=Object(S.a)({prop:"height",transform:$}),te=Object(S.a)({prop:"maxHeight",transform:$}),ne=Object(S.a)({prop:"minHeight",transform:$}),re=(Object(S.a)({prop:"size",cssProperty:"width",transform:$}),Object(S.a)({prop:"size",cssProperty:"height",transform:$}),E(Q,J,Z,ee,te,ne,Object(S.a)({prop:"boxSizing"}))),ie=Object(S.a)({prop:"fontFamily",themeKey:"typography"}),oe=Object(S.a)({prop:"fontSize",themeKey:"typography"}),ae=Object(S.a)({prop:"fontStyle",themeKey:"typography"}),se=Object(S.a)({prop:"fontWeight",themeKey:"typography"}),ue=Object(S.a)({prop:"letterSpacing"}),ce=Object(S.a)({prop:"lineHeight"}),le=Object(S.a)({prop:"textAlign"}),fe=E(Object(S.a)({prop:"typography",cssProperty:!1,themeKey:"typography"}),ie,oe,ae,se,ue,ce,le),de={borders:U.filterProps,display:B.filterProps,flexbox:z.filterProps,grid:H.filterProps,positions:K.filterProps,palette:X.filterProps,shadows:Y.filterProps,sizing:re.filterProps,spacing:k.c.filterProps,typography:fe.filterProps},he={borders:U,display:B,flexbox:z,grid:H,positions:K,palette:X,shadows:Y,sizing:re,spacing:k.c,typography:fe},pe=Object.keys(de).reduce((function(e,t){return de[t].forEach((function(n){e[n]=he[t]})),e}),{});var ge=function(e,t,n){var r,i=(r={},Object(x.a)(r,e,t),Object(x.a)(r,"theme",n),r),o=pe[e];return o?o(i):Object(x.a)({},e,t)};function ve(e){var t=e||{},n=t.sx,r=t.theme,i=void 0===r?{}:r;if(!n)return null;if("function"===typeof n)return n(i);if("object"!==typeof n)return n;var o=Object(C.a)(i.breakpoints),a=Object.keys(o),s=o;return Object.keys(n).forEach((function(e){var t,r,o=(t=n[e],r=i,"function"===typeof t?t(r):t);if("object"===typeof o)if(pe[e])s=Object(O.a)(s,ge(e,o,i));else{var a=Object(C.b)({theme:i},o,(function(t){return Object(x.a)({},e,t)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),i=new Set(r);return t.every((function(e){return i.size===Object.keys(e).length}))}(a,o)?s=Object(O.a)(s,a):s[e]=ve({sx:o,theme:i})}else s=Object(O.a)(s,ge(e,o,i))})),Object(C.c)(a,s)}ve.filterProps=["sx"];var me=ve,ye=n(143),be=["variant"];function _e(e){return 0===e.length}function we(e){var t=e.variant,n=Object(o.a)(e,be),r=t||"";
2return Object.keys(n).sort().forEach((function(t){r+="color"===t?_e(r)?e[t]:Object(ye.a)(e[t]):"".concat(_e(r)?t:Object(ye.a)(t)).concat(Object(ye.a)(e[t].toString()))})),r}var xe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Oe=["theme"],Se=["theme"];function Ee(e){return 0===Object.keys(e).length}var ke=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null},Ce=function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=we(e.props);r[t]=e.style})),r},Te=function(e,t,n,r){var i,o,a=e.ownerState,s=void 0===a?{}:a,u=[],c=null==n||null==(i=n.components)||null==(o=i[r])?void 0:o.variants;return c&&c.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&u.push(t[we(n.props)])})),u};function je(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var Ie=Object(w.a)();var Ae=n(62),Pe=function(e){return je(e)&&"classes"!==e},Ne=je,Me=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.defaultTheme,n=void 0===t?Ie:t,a=e.rootShouldForwardProp,s=void 0===a?je:a,u=e.slotShouldForwardProp,c=void 0===u?je:u;return function(e){var t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=a.name,l=a.slot,f=a.skipVariantsResolver,d=a.skipSx,h=a.overridesResolver,p=Object(o.a)(a,xe),g=void 0!==f?f:l&&"Root"!==l||!1,v=d||!1;var m=je;"Root"===l?m=s:l&&(m=c);var y=_(e,Object(i.a)({shouldForwardProp:m,label:t},p)),b=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),s=1;s<t;s++)a[s-1]=arguments[s];var c=a?a.map((function(e){return"function"===typeof e?function(t){var r=t.theme,a=Object(o.a)(t,Oe);return e(Object(i.a)({theme:Ee(r)?n:r},a))}:e})):[],l=e;u&&h&&c.push((function(e){var t=Ee(e.theme)?n:e.theme,r=ke(u,t);return r?h(e,r):null})),u&&!g&&c.push((function(e){var t=Ee(e.theme)?n:e.theme;return Te(e,Ce(u,t),t,u)})),v||c.push((function(e){var t=Ee(e.theme)?n:e.theme;return me(Object(i.a)({},e,{theme:t}))}));var f=c.length-a.length;if(Array.isArray(e)&&f>0){var d=new Array(f).fill("");(l=[].concat(Object(r.a)(e),Object(r.a)(d))).raw=[].concat(Object(r.a)(e.raw),Object(r.a)(d))}else"function"===typeof e&&(l=function(t){var r=t.theme,a=Object(o.a)(t,Se);return e(Object(i.a)({theme:Ee(r)?n:r},a))});var p=y.apply(void 0,[l].concat(Object(r.a)(c)));return p};return b}}({defaultTheme:Ae.a,rootShouldForwardProp:Pe});t.a=Me},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 i}));var r=n(101);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=n.n(o),s=(n(8),n(90)),u=n.n(s),c=n(197),l=n(258),f=n(279),d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n){var o=t.defaultTheme,s=t.withTheme,d=void 0!==s&&s,h=t.name,p=Object(i.a)(t,["defaultTheme","withTheme","name"]);var g=h,v=Object(c.a)(e,Object(r.a)({defaultTheme:o,Component:n,name:h||n.displayName,classNamePrefix:g},p)),m=a.a.forwardRef((function(e,t){e.classes;var s,u=e.innerRef,c=Object(i.a)(e,["classes","innerRef"]),p=v(Object(r.a)({},n.defaultProps,e)),g=c;return("string"===typeof h||d)&&(s=Object(f.a)()||o,h&&(g=Object(l.a)({theme:s,name:h,props:c})),d&&!g.theme&&(g.theme=s)),a.a.createElement(n,Object(r.a)({ref:u||t,classes:p},g))}));return u()(m,n),m}},h=n(79);t.a=function(e,t){return d(e,Object(r.a)({defaultTheme:h.a},t))}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(41);var i=n(141);function o(e){var t=e.props,n=e.name,o=e.defaultTheme;return function(e){var t=e.theme,n=e.name,i=e.props;if(!t||!t.components||!t.components[n]||!t.components[n].defaultProps)return i;var o,a=Object(r.a)({},i),s=t.components[n].defaultProps;for(o in s)void 0===a[o]&&(a[o]=s[o]);return a}({theme:Object(i.a)(o),name:n,props:t})}var a=n(62);function s(e){return o({props:e.props,name:e.name,defaultTheme:a.a})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(142);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},,function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(153)},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}
2)),n.d(t,"Logger",(function(){return f})),n.d(t,"setLogLevel",(function(){return d})),n.d(t,"setUserLogHandler",(function(){return h}));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 d(e){a.forEach((function(t){t.setLogLevel(e)}))}function h(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";n.r(t),n.d(t,"Component",(function(){return o})),n.d(t,"ComponentContainer",(function(){return u})),n.d(t,"Provider",(function(){return s}));var r=n(2),i=n(3),o=function(){function e(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}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.prototype.setInstanceCreatedCallback=function(e){return this.onInstanceCreated=e,this},e}(),a="[DEFAULT]",s=function(){function e(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.onInitCallbacks=new Map}return e.prototype.get=function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new i.Deferred;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(o){}}return this.instancesDeferred.get(t).promise},e.prototype.getImmediate=function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},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");
2if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:a})}catch(d){}try{for(var i=Object(r.__values)(this.instancesDeferred.entries()),o=i.next();!o.done;o=i.next()){var s=Object(r.__read)(o.value,2),u=s[0],c=s[1],l=this.normalizeInstanceIdentifier(u);try{var f=this.getOrInitializeService({instanceIdentifier:l});c.resolve(f)}catch(d){}}}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=a),this.instancesDeferred.delete(e),this.instances.delete(e)},e.prototype.delete=function(){return Object(r.__awaiter)(this,void 0,void 0,(function(){var e;return Object(r.__generator)(this,(function(t){switch(t.label){case 0:return e=Array.from(this.instances.values()),[4,Promise.all(Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()})))),Object(r.__read)(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.isInitialized=function(e){return void 0===e&&(e=a),this.instances.has(e)},e.prototype.initialize=function(e){var t,n;void 0===e&&(e={});var i=e.options,o=void 0===i?{}:i,a=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(a))throw Error(this.name+"("+a+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var s=this.getOrInitializeService({instanceIdentifier:a,options:o});try{for(var u=Object(r.__values)(this.instancesDeferred.entries()),c=u.next();!c.done;c=u.next()){var l=Object(r.__read)(c.value,2),f=l[0],d=l[1];a===this.normalizeInstanceIdentifier(f)&&d.resolve(s)}}catch(h){t={error:h}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return this.invokeOnInitCallbacks(s,a),s},e.prototype.onInit=function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var o=this.instances.has(r);return o&&e(o,r),function(){i.delete(e)}},e.prototype.invokeOnInitCallbacks=function(e,t){var n,i,o=this.onInitCallbacks.get(t);if(o)try{for(var a=Object(r.__values)(o),s=a.next();!s.done;s=a.next()){var u=s.value;try{u(e,t)}catch(c){}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}},e.prototype.getOrInitializeService=function(e){var t,n=e.instanceIdentifier,r=e.options,i=void 0===r?{}:r,o=this.instances.get(n);if(!o&&this.component&&(o=this.component.instanceFactory(this.container,{instanceIdentifier:(t=n,t===a?void 0:t),options:i}),this.instances.set(n,o),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,o)}catch(s){}return o||null},e.prototype.normalizeInstanceIdentifier=function(e){return void 0===e&&(e=a),this.component?this.component.multipleInstances?e:a:e},e.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},e}();var u=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 s(e,this);return this.providers.set(e,t),t},e.prototype.getProviders=function(){return Array.from(this.providers.values())},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(64);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";var r=n(196);t.a=r.a},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
2));var r=n(93);var i=n(101);function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return _}));var r=n(31),i=n(43),o=n(0),a=n.n(o),s=n(45),u=(n(76),n(35)),c=n(73),l=n(42),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.c,{history:this.history,children:this.props.children})},t}(a.a.Component);a.a.Component;var d=function(e,t){return"function"===typeof e?e(t):e},h=function(e,t){return"string"===typeof e?Object(s.c)(e,null,null,t):e},p=function(e){return e},g=a.a.forwardRef;"undefined"===typeof g&&(g=p);var v=g((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!==g&&t||n,a.a.createElement("a",l)}));var m=g((function(e,t){var n=e.component,i=void 0===n?v:n,o=e.replace,s=e.to,f=e.innerRef,m=Object(c.a)(e,["component","replace","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(l.a)(!1);var n=e.history,r=h(d(s,e.location),e.location),c=r?n.createHref(r):"",v=Object(u.a)({},m,{href:c,navigate:function(){var t=d(s,e.location);(o?n.replace:n.push)(t)}});return p!==g?v.ref=t||f:v.innerRef=f,a.a.createElement(i,v)}))})),y=function(e){return e},b=a.a.forwardRef;"undefined"===typeof b&&(b=y);var _=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,g=e.exact,v=e.isActive,_=e.location,w=e.sensitive,x=e.strict,O=e.style,S=e.to,E=e.innerRef,k=Object(c.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(r.e.Consumer,null,(function(e){e||Object(l.a)(!1);var n=_||e.location,o=h(d(S,n),n),c=o.pathname,C=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),T=C?Object(r.f)(n.pathname,{path:C,exact:g,sensitive:w,strict:x}):null,j=!!(v?v(T,n):T),I=j?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):p,A=j?Object(u.a)({},O,{},f):O,P=Object(u.a)({"aria-current":j&&i||null,className:I,style:A,to:o},k);return y!==b?P.ref=t||E:P.innerRef=E,a.a.createElement(m,P)}))}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return oc})),n.d(t,"b",(function(){return Qs})),n.d(t,"c",(function(){return qs})),n.d(t,"d",(function(){return dc})),n.d(t,"e",(function(){return cc})),n.d(t,"f",(function(){return S})),n.d(t,"g",(function(){return uc})),n.d(t,"h",(function(){return mc})),n.d(t,"i",(function(){return vc})),n.d(t,"j",(function(){return yc})),n.d(t,"k",(function(){return ic})),n.d(t,"l",(function(){return kc})),n.d(t,"m",(function(){return _c})),n.d(t,"n",(function(){return Oc})),n.d(t,"o",(function(){return lc})),n.d(t,"p",(function(){return wc})),n.d(t,"q",(function(){return Ec})),n.d(t,"r",(function(){return zs})),n.d(t,"s",(function(){return ac})),n.d(t,"t",(function(){return Sc}));var r=n(3),i=n(23),o=n(36),a=n(2),s=function(){function e(e,t){var n=this;this.previousValue=e,t&&(t.sequenceNumberHandler=function(e){return n.t(e)},this.i=function(e){return t.writeSequenceNumber(e)})}return e.prototype.t=function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue},e.prototype.next=function(){var e=++this.previousValue;return this.i&&this.i(e),e},e}();s.o=-1;var 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(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 Object(a.__extends)(t,e),t}(Error),l=new i.Logger("@firebase/firestore");function f(){return l.logLevel}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(l.logLevel<=i.LogLevel.DEBUG){var r=t.map(g);l.debug.apply(l,Object(a.__spreadArray)(["Firestore (8.6.7): "+e],r))}}function h(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(l.logLevel<=i.LogLevel.ERROR){var r=t.map(g);l.error.apply(l,Object(a.__spreadArray)(["Firestore (8.6.7): "+e],r))}}function p(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(l.logLevel<=i.LogLevel.WARN){var r=t.map(g);l.warn.apply(l,Object(a.__spreadArray)(["Firestore (8.6.7): "+e],r))}}function g(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function v(e){void 0===e&&(e="Unexpected state");var t="FIRESTORE (8.6.7) INTERNAL ASSERTION FAILED: "+e;throw h(t),new Error(t)}function m(e,t){e||v()}function y(e,t){return e}function b(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 _=function(){function e(){}return e.u=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=b(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n},e}();function w(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 O(e){return e+"\0"}var S=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new c(u.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new c(u.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new c(u.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new c(u.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,Math.floor(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._compareTo=function(e){return this.seconds===e.seconds?w(this.nanoseconds,e.nanoseconds):w(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}(),E=function(){function e(e){this.timestamp=e}return e.fromTimestamp=function(t){return new e(t)},e.min=function(){return new e(new S(0,0))},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e}();function k(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function C(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function T(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var j=function(){function e(e,t,n){void 0===t?t=0:t>e.length&&v(),void 0===n?n=e.length-t:n>e.length-t&&v(),this.segments=e,this.offset=t,this.len=n}return Object.defineProperty(e.prototype,"length",{get:function(){return this.len}
2,enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(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.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return this.segments[this.offset]},e.prototype.lastSegment=function(){return this.get(this.length-1)},e.prototype.get=function(e){return this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=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.isImmediateParentOf=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.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=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}(),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=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 c(u.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.emptyPath=function(){return new t([])},t}(j),A=/^[_a-zA-Z][_a-zA-Z0-9]*$/,P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.construct=function(e,n,r){return new t(e,n,r)},t.isValidIdentifier=function(e){return A.test(e)},t.prototype.canonicalString=function(){return this.toArray().map((function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new c(u.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 c(u.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var l=e[i+1];if("\\"!==l&&"."!==l&&"`"!==l)throw new c(u.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new c(u.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.emptyPath=function(){return new t([])},t}(j),N=function(){function e(e){this.fields=e,e.sort(P.comparator)}return e.prototype.covers=function(e){for(var t=0,n=this.fields;t<n.length;t++)if(n[t].isPrefixOf(e))return!0;return!1},e.prototype.isEqual=function(e){return x(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))},e}(),M=function(){function e(e){this.binaryString=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.binaryString,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.binaryString)},e.prototype.approximateByteSize=function(){return 2*this.binaryString.length},e.prototype.compareTo=function(e){return w(this.binaryString,e.binaryString)},e.prototype.isEqual=function(e){return this.binaryString===e.binaryString},e}();M.EMPTY_BYTE_STRING=new M("");var R=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function L(e){if(m(!!e),"string"==typeof e){var t=0,n=R.exec(e);if(m(!!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:D(e.seconds),nanos:D(e.nanos)}}function D(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function F(e){return"string"==typeof e?M.fromBase64String(e):M.fromUint8Array(e)}function V(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 U(e){var t=e.mapValue.fields.__previous_value__;return V(t)?U(t):t}function B(e){var t=L(e.mapValue.fields.__local_write_time__.timestampValue);return new S(t.seconds,t.nanos)}function z(e){return null==e}function q(e){return 0===e&&1/e==-1/0}function G(e){return"number"==typeof e&&Number.isInteger(e)&&!q(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var W=function(){function e(e){this.path=e}return e.fromPath=function(t){return new e(I.fromString(t))},e.fromName=function(t){return new e(I.fromString(t).popFirst(5))},e.prototype.hasCollectionId=function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e},e.prototype.isEqual=function(e){return null!==e&&0===I.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return I.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new I(t.slice()))},e}();function H(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?V(e)?4:10:v()}function K(e,t){var n=H(e);if(n!==H(t))return!1;switch(n){case 0:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return B(e).isEqual(B(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=L(e.timestampValue),r=L(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 F(e.bytesValue).isEqual(F(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return D(e.geoPointValue.latitude)===D(t.geoPointValue.latitude)&&D(e.geoPointValue.longitude)===D(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return D(e.integerValue)===D(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=D(e.doubleValue),r=D(t.doubleValue);return n===r?q(n)===q(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return x(e.arrayValue.values||[],t.arrayValue.values||[],K);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(k(n)!==k(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!K(n[i],r[i])))return!1;return!0}(e,t);default:return v()}}function X(e,t){return void 0!==(e.values||[]).find((function(e){return K(e,t)}))}function Y(e,t){var n=H(e),r=H(t);if(n!==r)return w(n,r);switch(n){case 0:return 0;case 1:return w(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=D(e.integerValue||e.doubleValue),r=D(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 $(e.timestampValue,t.timestampValue);case 4:return $(B(e),B(t));case 5:return w(e.stringValue,t.stringValue);case 6:return function(e,t){var n=F(e),r=F(t);return n.compareTo(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=w(n[i],r[i]);if(0!==o)return o}return w(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=w(D(e.latitude),D(t.latitude));return 0!==n?n:w(D(e.longitude),D(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=Y(n[i],r[i]);if(o)return o}return w(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=w(r[a],o[a]);if(0!==s)return s;var u=Y(n[r[a]],i[o[a]]);if(0!==u)return u}return w(r.length,o.length)}(e.mapValue,t.mapValue);default:throw v()}}function $(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return w(e,t);var n=L(e),r=L(t),i=w(n.seconds,r.seconds);return 0!==i?i:w(n.nanos,r.nanos)}function Q(e){return J(e)}function J(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=L(e);return"time("+t.seconds+","+t.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?F(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,W.fromName(n).toString()):"geoPointValue"in e?"geo("+(t=e.geoPointValue).latitude+","+t.longitude+")":"arrayValue"in e?function(e){for(var t="[",n=!0,r=0,i=e.values||[];r<i.length;r++)n?n=!1:t+=",",t+=J(i[r]);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var t="{",n=!0,r=0,i=Object.keys(e.fields||{}).sort();r<i.length;r++){var o=i[r];n?n=!1:t+=",",t+=o+":"+J(e.fields[o])}return t+"}"}(e.mapValue):v();var t,n}function Z(e,t){return{referenceValue:"projects/"+e.projectId+"/databases/"+e.database+"/documents/"+t.path.canonicalString()}}function ee(e){return!!e&&"integerValue"in e}function te(e){return!!e&&"arrayValue"in e}function ne(e){return!!e&&"nullValue"in e}function re(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function ie(e){return!!e&&"mapValue"in e}function oe(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue)return{timestampValue:Object.assign({},L(e.timestampValue))};if(e.mapValue){var t={mapValue:{fields:{}}};return C(e.mapValue.fields,(function(e,n){return t.mapValue.fields[e]=oe(n)})),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=oe(e.arrayValue.values[r]);return n}return Object.assign({},e)}var ae=function(){function e(e){this.value=e}return e.empty=function(){return new e({mapValue:{}})},e.prototype.field=function(e){if(e.isEmpty())return this.value;
2for(var t=this.value,n=0;n<e.length-1;++n)if(!ie(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null},e.prototype.set=function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=oe(t)},e.prototype.setAll=function(e){var t=this,n=P.emptyPath(),r={},i=[];e.forEach((function(e,o){if(!n.isImmediateParentOf(o)){var a=t.getFieldsMap(n);t.applyChanges(a,r,i),r={},i=[],n=o.popLast()}e?r[o.lastSegment()]=oe(e):i.push(o.lastSegment())}));var o=this.getFieldsMap(n);this.applyChanges(o,r,i)},e.prototype.delete=function(e){var t=this.field(e.popLast());ie(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]},e.prototype.isEqual=function(e){return K(this.value,e.value)},e.prototype.getFieldsMap=function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];ie(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields},e.prototype.applyChanges=function(e,t,n){C(t,(function(t,n){return e[t]=n}));for(var r=0,i=n;r<i.length;r++){var o=i[r];delete e[o]}},e.prototype.clone=function(){return new e(oe(this.value))},e}();function se(e){var t=[];return C(e.fields,(function(e,n){var r=new P([e]);if(ie(n)){var i=se(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 N(t)}var ue=function(){function e(e,t,n,r,i){this.key=e,this.documentType=t,this.version=n,this.data=r,this.documentState=i}return e.newInvalidDocument=function(t){return new e(t,0,E.min(),ae.empty(),0)},e.newFoundDocument=function(t,n,r){return new e(t,1,n,r,0)},e.newNoDocument=function(t,n){return new e(t,2,n,ae.empty(),0)},e.newUnknownDocument=function(t,n){return new e(t,3,n,ae.empty(),2)},e.prototype.convertToFoundDocument=function(e,t){return this.version=e,this.documentType=1,this.data=t,this.documentState=0,this},e.prototype.convertToNoDocument=function(e){return this.version=e,this.documentType=2,this.data=ae.empty(),this.documentState=0,this},e.prototype.convertToUnknownDocument=function(e){return this.version=e,this.documentType=3,this.data=ae.empty(),this.documentState=2,this},e.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},e.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(e.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),e.prototype.isValidDocument=function(){return 0!==this.documentType},e.prototype.isFoundDocument=function(){return 1===this.documentType},e.prototype.isNoDocument=function(){return 2===this.documentType},e.prototype.isUnknownDocument=function(){return 3===this.documentType},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)},e.prototype.clone=function(){return new e(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},e}(),ce=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.h=null};function le(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 ce(e,t,n,r,i,o,a)}function fe(e){var t=y(e);if(null===t.h){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return function(e){return e.field.canonicalString()+e.op.toString()+Q(e.value)}(e)})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return function(e){return e.field.canonicalString()+e.dir}(e)})).join(","),z(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=Se(t.startAt)),t.endAt&&(n+="|ub:",n+=Se(t.endAt)),t.h=n}return t.h}function de(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(!ke(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)||!K(i.value,o.value))return!1;var i,o;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Te(e.startAt,t.startAt)&&Te(e.endAt,t.endAt)}function he(e){return W.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}var pe=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 Object(a.__extends)(t,e),t.create=function(e,n,r){return e.isKeyField()?"in"===n||"not-in"===n?this.l(e,n,r):new ge(e,n,r):"array-contains"===n?new be(e,r):"in"===n?new _e(e,r):"not-in"===n?new we(e,r):"array-contains-any"===n?new xe(e,r):new t(e,n,r)},t.l=function(e,t,n){return"in"===t?new ve(e,n):new me(e,n)},t.prototype.matches=function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.m(Y(t,this.value)):null!==t&&H(this.value)===H(t)&&this.m(Y(t,this.value))},t.prototype.m=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 v()}},t.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},t}((function(){})),ge=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,r)||this).key=W.fromName(r.referenceValue),i}return Object(a.__extends)(t,e),t.prototype.matches=function(e){var t=W.comparator(e.key,this.key);return this.m(t)}
2,t}(pe),ve=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"in",n)||this).keys=ye("in",n),r}return Object(a.__extends)(t,e),t.prototype.matches=function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))},t}(pe),me=function(e){function t(t,n){var r=this;return(r=e.call(this,t,"not-in",n)||this).keys=ye("not-in",n),r}return Object(a.__extends)(t,e),t.prototype.matches=function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))},t}(pe);function ye(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return W.fromName(e.referenceValue)}))}var be=function(e){function t(t,n){return e.call(this,t,"array-contains",n)||this}return Object(a.__extends)(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return te(t)&&X(t.arrayValue,this.value)},t}(pe),_e=function(e){function t(t,n){return e.call(this,t,"in",n)||this}return Object(a.__extends)(t,e),t.prototype.matches=function(e){var t=e.data.field(this.field);return null!==t&&X(this.value.arrayValue,t)},t}(pe),we=function(e){function t(t,n){return e.call(this,t,"not-in",n)||this}return Object(a.__extends)(t,e),t.prototype.matches=function(e){if(X(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!X(this.value.arrayValue,t)},t}(pe),xe=function(e){function t(t,n){return e.call(this,t,"array-contains-any",n)||this}return Object(a.__extends)(t,e),t.prototype.matches=function(e){var t=this,n=e.data.field(this.field);return!(!te(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return X(t.value.arrayValue,e)}))},t}(pe),Oe=function(e,t){this.position=e,this.before=t};function Se(e){return(e.before?"b":"a")+":"+e.position.map((function(e){return Q(e)})).join(",")}var Ee=function(e,t){void 0===t&&(t="asc"),this.field=e,this.dir=t};function ke(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}function Ce(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.isKeyField()?W.comparator(W.fromName(a.referenceValue),n.key):Y(a,n.data.field(o.field)),"desc"===o.dir&&(r*=-1),0!==r)break}return e.before?r<=0:r<0}function Te(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(!K(e.position[n],t.position[n]))return!1;return!0}var je=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.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=o,this.startAt=a,this.endAt=s,this.p=null,this.T=null,this.startAt,this.endAt};function Ie(e,t,n,r,i,o,a,s){return new je(e,t,n,r,i,o,a,s)}function Ae(e){return new je(e)}function Pe(e){return!z(e.limit)&&"F"===e.limitType}function Ne(e){return!z(e.limit)&&"L"===e.limitType}function Me(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function Re(e){for(var t=0,n=e.filters;t<n.length;t++){var r=n[t];if(r.g())return r.field}return null}function Le(e){return null!==e.collectionGroup}function De(e){var t=y(e);if(null===t.p){t.p=[];var n=Re(t),r=Me(t);if(null!==n&&null===r)n.isKeyField()||t.p.push(new Ee(n)),t.p.push(new Ee(P.keyField(),"asc"));else{for(var i=!1,o=0,a=t.explicitOrderBy;o<a.length;o++){var s=a[o];t.p.push(s),s.field.isKeyField()&&(i=!0)}if(!i){var u=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.p.push(new Ee(P.keyField(),u))}}}return t.p}function Fe(e){var t=y(e);if(!t.T)if("F"===t.limitType)t.T=le(t.path,t.collectionGroup,De(t),t.filters,t.limit,t.startAt,t.endAt);else{for(var n=[],r=0,i=De(t);r<i.length;r++){var o=i[r],a="desc"===o.dir?"asc":"desc";n.push(new Ee(o.field,a))}var s=t.endAt?new Oe(t.endAt.position,!t.endAt.before):null,u=t.startAt?new Oe(t.startAt.position,!t.startAt.before):null;t.T=le(t.path,t.collectionGroup,n,t.filters,t.limit,s,u)}return t.T}function Ve(e,t,n){return new je(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function Ue(e,t){return de(Fe(e),Fe(t))&&e.limitType===t.limitType}function Be(e){return fe(Fe(e))+"|lt:"+e.limitType}function ze(e){return"Query(target="+function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: ["+e.filters.map((function(e){return(t=e).field.canonicalString()+" "+t.op+" "+Q(t.value);var t})).join(", ")+"]"),z(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: ["+e.orderBy.map((function(e){return function(e){return e.field.canonicalString()+" ("+e.dir+")"}(e)})).join(", ")+"]"),e.startAt&&(t+=", startAt: "+Se(e.startAt)),e.endAt&&(t+=", endAt: "+Se(e.endAt)),"Target("+t+")"}(Fe(e))+"; limitType="+e.limitType+")"}function qe(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):W.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(var n=0,r=e.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===t.data.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&&!Ce(e.startAt,De(e),t))&&(!e.endAt||!Ce(e.endAt,De(e),t))}(e,t)}function Ge(e){return function(t,n){for(var r=!1,i=0,o=De(e);i<o.length;i++){var a=o[i],s=We(a,t,n);if(0!==s)return s;r=r||a.field.isKeyField()}return 0}}function We(e,t,n){var r=e.field.isKeyField()?W.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Y(r,i):v()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return v()}}function He(e,t){if(e.I){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:q(t)?"-0":t}}function Ke(e){return{integerValue:""+e}}function Xe(e,t){return G(t)?Ke(t):He(e,t)}var Ye=function(){this._=void 0};function $e(e,t,n){return e instanceof Ze?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 et?tt(e,t):e instanceof nt?rt(e,t):function(e,t){var n=Je(e,t),r=ot(n)+ot(e.A);return ee(n)&&ee(e.A)?Ke(r):He(e.R,r)}(e,t)}function Qe(e,t,n){return e instanceof et?tt(e,t):e instanceof nt?rt(e,t):n}function Je(e,t){return e instanceof it?ee(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var Ze=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t}(Ye),et=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return Object(a.__extends)(t,e),t}(Ye);function tt(e,t){for(var n=at(t),r=function(e){n.some((function(t){return K(t,e)}))||n.push(e)},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var nt=function(e){function t(t){var n=this;return(n=e.call(this)||this).elements=t,n}return Object(a.__extends)(t,e),t}(Ye);function rt(e,t){for(var n=at(t),r=function(e){n=n.filter((function(t){return!K(t,e)}))},i=0,o=e.elements;i<o.length;i++)r(o[i]);return{arrayValue:{values:n}}}var it=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).R=t,r.A=n,r}return Object(a.__extends)(t,e),t}(Ye);function ot(e){return D(e.integerValue||e.doubleValue)}function at(e){return te(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var st=function(e,t){this.field=e,this.transform=t},ut=function(e,t){this.version=e,this.transformResults=t},ct=function(){function e(e,t){this.updateTime=e,this.exists=t}return e.none=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,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists}
2,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 lt(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var ft=function(){};function dt(e,t,n){e instanceof mt?function(e,t,n){var r=e.value.clone(),i=_t(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof yt?function(e,t,n){if(lt(e.precondition,t)){var r=_t(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(bt(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function ht(e,t,n){e instanceof mt?function(e,t,n){if(lt(e.precondition,t)){var r=e.value.clone(),i=wt(e.fieldTransforms,n,t);r.setAll(i),t.convertToFoundDocument(vt(t),r).setHasLocalMutations()}}(e,t,n):e instanceof yt?function(e,t,n){if(lt(e.precondition,t)){var r=wt(e.fieldTransforms,n,t),i=t.data;i.setAll(bt(e)),i.setAll(r),t.convertToFoundDocument(vt(t),i).setHasLocalMutations()}}(e,t,n):function(e,t){lt(e.precondition,t)&&t.convertToNoDocument(E.min())}(e,t)}function pt(e,t){for(var n=null,r=0,i=e.fieldTransforms;r<i.length;r++){var o=i[r],a=t.data.field(o.field),s=Je(o.transform,a||null);null!=s&&(null==n&&(n=ae.empty()),n.set(o.field,s))}return n||null}function gt(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return void 0===e&&void 0===t||!(!e||!t)&&x(e,t,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof et&&t instanceof et||e instanceof nt&&t instanceof nt?x(e.elements,t.elements,K):e instanceof it&&t instanceof it?K(e.A,t.A):e instanceof Ze&&t instanceof Ze}(e.transform,t.transform)}(e,t)}))}(e.fieldTransforms,t.fieldTransforms)&&(0===e.type?e.value.isEqual(t.value):1!==e.type||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}function vt(e){return e.isFoundDocument()?e.version:E.min()}var mt=function(e){function t(t,n,r,i){void 0===i&&(i=[]);var o=this;return(o=e.call(this)||this).key=t,o.value=n,o.precondition=r,o.fieldTransforms=i,o.type=0,o}return Object(a.__extends)(t,e),t}(ft),yt=function(e){function t(t,n,r,i,o){void 0===o&&(o=[]);var a=this;return(a=e.call(this)||this).key=t,a.data=n,a.fieldMask=r,a.precondition=i,a.fieldTransforms=o,a.type=1,a}return Object(a.__extends)(t,e),t}(ft);function bt(e){var t=new Map;return e.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}})),t}function _t(e,t,n){var r=new Map;m(e.length===n.length);for(var i=0;i<n.length;i++){var o=e[i],a=o.transform,s=t.data.field(o.field);r.set(o.field,Qe(a,s,n[i]))}return r}function wt(e,t,n){for(var r=new Map,i=0,o=e;i<o.length;i++){var a=o[i],s=a.transform,u=n.data.field(a.field);r.set(a.field,$e(s,u,t))}return r}var xt,Ot,St=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return Object(a.__extends)(t,e),t}(ft),Et=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).key=t,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return Object(a.__extends)(t,e),t}(ft),kt=function(e){this.count=e};function Ct(e){switch(e){case u.OK:return v();case u.CANCELLED:case u.UNKNOWN:case u.DEADLINE_EXCEEDED:case u.RESOURCE_EXHAUSTED:case u.INTERNAL:case u.UNAVAILABLE:case u.UNAUTHENTICATED:return!1;case u.INVALID_ARGUMENT:case u.NOT_FOUND:case u.ALREADY_EXISTS:case u.PERMISSION_DENIED:case u.FAILED_PRECONDITION:case u.ABORTED:case u.OUT_OF_RANGE:case u.UNIMPLEMENTED:case u.DATA_LOSS:return!0;default:return v()}}function Tt(e){if(void 0===e)return h("GRPC error has no .code"),u.UNKNOWN;switch(e){case xt.OK:return u.OK;case xt.CANCELLED:return u.CANCELLED;case xt.UNKNOWN:return u.UNKNOWN;case xt.DEADLINE_EXCEEDED:return u.DEADLINE_EXCEEDED;case xt.RESOURCE_EXHAUSTED:return u.RESOURCE_EXHAUSTED;case xt.INTERNAL:return u.INTERNAL;case xt.UNAVAILABLE:return u.UNAVAILABLE;case xt.UNAUTHENTICATED:return u.UNAUTHENTICATED;case xt.INVALID_ARGUMENT:return u.INVALID_ARGUMENT;case xt.NOT_FOUND:return u.NOT_FOUND;case xt.ALREADY_EXISTS:return u.ALREADY_EXISTS;case xt.PERMISSION_DENIED:return u.PERMISSION_DENIED;case xt.FAILED_PRECONDITION:return u.FAILED_PRECONDITION;case xt.ABORTED:return u.ABORTED;case xt.OUT_OF_RANGE:return u.OUT_OF_RANGE;
2case xt.UNIMPLEMENTED:return u.UNIMPLEMENTED;case xt.DATA_LOSS:return u.DATA_LOSS;default:return v()}}(Ot=xt||(xt={}))[Ot.OK=0]="OK",Ot[Ot.CANCELLED=1]="CANCELLED",Ot[Ot.UNKNOWN=2]="UNKNOWN",Ot[Ot.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ot[Ot.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ot[Ot.NOT_FOUND=5]="NOT_FOUND",Ot[Ot.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ot[Ot.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ot[Ot.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ot[Ot.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ot[Ot.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ot[Ot.ABORTED=10]="ABORTED",Ot[Ot.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ot[Ot.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ot[Ot.INTERNAL=13]="INTERNAL",Ot[Ot.UNAVAILABLE=14]="UNAVAILABLE",Ot[Ot.DATA_LOSS=15]="DATA_LOSS";var jt=function(){function e(e,t){this.comparator=e,this.root=t||At.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,At.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,At.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(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.isEmpty();){var r=this.comparator(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.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),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.forEach=function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))},e.prototype.toString=function(){var e=[];return this.inorderTraversal((function(t,n){return e.push(t+":"+n),!1})),"{"+e.join(", ")+"}"},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new It(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new It(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new It(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new It(this.root,e,this.comparator,!0)},e}(),It=function(){function e(e,t,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},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{key:e.key,value:e.value}},e}(),At=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.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 e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.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.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw v();if(this.right.isRed())throw v();var e=this.left.check();if(e!==this.right.check())throw v();return e+(this.isRed()?0:1)},e}();
2At.EMPTY=null,At.RED=!0,At.BLACK=!1,At.EMPTY=new(function(){function e(){this.size=0}return Object.defineProperty(e.prototype,"key",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){throw v()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){throw v()},enumerable:!1,configurable:!0}),e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new At(e,t)},e.prototype.remove=function(e,t){return this},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.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}());var Pt=function(){function e(e){this.comparator=e,this.data=new jt(this.comparator)}return e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},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.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.getIterator=function(){return new Nt(this.data.getIterator())},e.prototype.getIteratorFrom=function(e){return new Nt(this.data.getIteratorFrom(e))},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=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.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},e.prototype.toArray=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.comparator);return n.data=t,n},e}(),Nt=function(){function e(e){this.iter=e}return e.prototype.getNext=function(){return this.iter.getNext().key},e.prototype.hasNext=function(){return this.iter.hasNext()},e}(),Mt=new jt(W.comparator);function Rt(){return Mt}var Lt=new jt(W.comparator);function Dt(){return Lt}var Ft=new jt(W.comparator);function Vt(){return Ft}var Ut=new Pt(W.comparator);function Bt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Ut,r=0,i=e;r<i.length;r++){var o=i[r];n=n.add(o)}return n}var zt=new Pt(w);function qt(){return zt}var Gt=function(){function e(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return e.createSynthesizedRemoteEventForCurrentChange=function(t,n){var r=new Map;return r.set(t,Wt.createSynthesizedTargetChangeForCurrentChange(t,n)),new e(E.min(),r,qt(),Rt(),Bt())},e}(),Wt=function(){function e(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return e.createSynthesizedTargetChangeForCurrentChange=function(t,n){return new e(M.E
2MPTY_BYTE_STRING,n,Bt(),Bt(),Bt())},e}(),Ht=function(e,t,n,r){this.v=e,this.removedTargetIds=t,this.key=n,this.P=r},Kt=function(e,t){this.targetId=e,this.V=t},Xt=function(e,t,n,r){void 0===n&&(n=M.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r},Yt=function(){function e(){this.S=0,this.D=Jt(),this.C=M.EMPTY_BYTE_STRING,this.N=!1,this.F=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this.N},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"k",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"$",{get:function(){return this.F},enumerable:!1,configurable:!0}),e.prototype.O=function(e){e.approximateByteSize()>0&&(this.F=!0,this.C=e)},e.prototype.M=function(){var e=Bt(),t=Bt(),n=Bt();return this.D.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:v()}})),new Wt(this.C,this.N,e,t,n)},e.prototype.L=function(){this.F=!1,this.D=Jt()},e.prototype.B=function(e,t){this.F=!0,this.D=this.D.insert(e,t)},e.prototype.q=function(e){this.F=!0,this.D=this.D.remove(e)},e.prototype.U=function(){this.S+=1},e.prototype.K=function(){this.S-=1},e.prototype.j=function(){this.F=!0,this.N=!0},e}(),$t=function(){function e(e){this.W=e,this.G=new Map,this.H=Rt(),this.J=Qt(),this.Y=new Pt(w)}return e.prototype.X=function(e){for(var t=0,n=e.v;t<n.length;t++){var r=n[t];e.P&&e.P.isFoundDocument()?this.Z(r,e.P):this.tt(r,e.key,e.P)}for(var i=0,o=e.removedTargetIds;i<o.length;i++)r=o[i],this.tt(r,e.key,e.P)},e.prototype.et=function(e){var t=this;this.forEachTarget(e,(function(n){var r=t.nt(n);switch(e.state){case 0:t.st(n)&&r.O(e.resumeToken);break;case 1:r.K(),r.k||r.L(),r.O(e.resumeToken);break;case 2:r.K(),r.k||t.removeTarget(n);break;case 3:t.st(n)&&(r.j(),r.O(e.resumeToken));break;case 4:t.st(n)&&(t.it(n),r.O(e.resumeToken));break;default:v()}}))},e.prototype.forEachTarget=function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.G.forEach((function(e,r){n.st(r)&&t(r)}))},e.prototype.rt=function(e){var t=e.targetId,n=e.V.count,r=this.ot(t);if(r){var i=r.target;if(he(i))if(0===n){var o=new W(i.path);this.tt(t,o,ue.newNoDocument(o,E.min()))}else m(1===n);else this.ct(t)!==n&&(this.it(t),this.Y=this.Y.add(t))}},e.prototype.ut=function(e){var t=this,n=new Map;this.G.forEach((function(r,i){var o=t.ot(i);if(o){if(r.current&&he(o.target)){var a=new W(o.target.path);null!==t.H.get(a)||t.at(i,a)||t.tt(i,a,ue.newNoDocument(a,e))}r.$&&(n.set(i,r.M()),r.L())}}));var r=Bt();this.J.forEach((function(e,n){var i=!0;n.forEachWhile((function(e){var n=t.ot(e);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(e))}));var i=new Gt(e,n,this.Y,this.H,r);return this.H=Rt(),this.J=Qt(),this.Y=new Pt(w),i},e.prototype.Z=function(e,t){if(this.st(e)){var n=this.at(e,t.key)?2:0;this.nt(e).B(t.key,n),this.H=this.H.insert(t.key,t),this.J=this.J.insert(t.key,this.ht(t.key).add(e))}},e.prototype.tt=function(e,t,n){if(this.st(e)){var r=this.nt(e);this.at(e,t)?r.B(t,1):r.q(t),this.J=this.J.insert(t,this.ht(t).delete(e)),n&&(this.H=this.H.insert(t,n))}},e.prototype.removeTarget=function(e){this.G.delete(e)},e.prototype.ct=function(e){var t=this.nt(e).M();return this.W.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.U=function(e){this.nt(e).U()},e.prototype.nt=function(e){var t=this.G.get(e);return t||(t=new Yt,this.G.set(e,t)),t},e.prototype.ht=function(e){var t=this.J.get(e);return t||(t=new Pt(w),this.J=this.J.insert(e,t)),t},e.prototype.st=function(e){var t=null!==this.ot(e);return t||d("WatchChangeAggregator","Detected inactive target",e),t},e.prototype.ot=function(e){var t=this.G.get(e);return t&&t.k?null:this.W.lt(e)},e.prototype.it=function(e){var t=this;this.G.set(e,new Yt),this.W.getRemoteKeysForTarget(e).forEach((function(n){t.tt(e,n,null)}))},e.prototype.at=function(e,t){return this.W.getRemoteKeysForTarget(e).has(t)},e}();function Qt(){return new jt(W.comparator)}function Jt(){return new jt(W.comparator)}var Zt={asc:"ASCENDING",desc:"DESCENDING"},en={"<":"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"},tn=function(e,t){this.databaseId=e,this.I=t};function nn(e,t){return e.I?new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+t.nanoseconds).slice(-9)+"Z":{seconds:""+t.seconds,nanos:t.nanoseconds}}function rn(e,t){return e.I?t.toBase64():t.toUint8Array()}function on(e,t){return nn(e,t.toTimestamp())}function an(e){return m(!!e),E.fromTimestamp(function(e){var t=L(e);return new S(t.seconds,t.nanos)}(e))}function sn(e,t){return function(e){return new I(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function un(e){var t=I.fromString(e);return m(Pn(t)),t}function cn(e,t){return sn(e.databaseId,t.path)}function ln(e,t){var n=un(t);if(n.get(1)!==e.databaseId.projectId)throw new c(u.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new c(u.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new W(pn(n))}function fn(e,t){return sn(e.databaseId,t)}function dn(e){var t=un(e);return 4===t.length?I.emptyPath():pn(t)}function hn(e){return new I(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function pn(e){return m(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function gn(e,t,n){return{name:cn(e,t),fields:n.value.mapValue.fields}}
2function vn(e,t,n){var r=ln(e,t.name),i=an(t.updateTime),o=new ae({mapValue:{fields:t.fields}}),a=ue.newFoundDocument(r,i,o);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function mn(e,t){var n;if(t instanceof mt)n={update:gn(e,t.key,t.value)};else if(t instanceof St)n={delete:cn(e,t.key)};else if(t instanceof yt)n={update:gn(e,t.key,t.data),updateMask:An(t.fieldMask)};else{if(!(t instanceof Et))return v();n={verify:cn(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof Ze)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof et)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof nt)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof it)return{fieldPath:t.field.canonicalString(),increment:n.A};throw v()}(0,e)}))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:on(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:v()}(e,t.precondition)),n}function yn(e,t){var n=t.currentDocument?function(e){return void 0!==e.updateTime?ct.updateTime(an(e.updateTime)):void 0!==e.exists?ct.exists(e.exists):ct.none()}(t.currentDocument):ct.none(),r=t.updateTransforms?t.updateTransforms.map((function(t){return function(e,t){var n=null;if("setToServerValue"in t)m("REQUEST_TIME"===t.setToServerValue),n=new Ze;else if("appendMissingElements"in t){var r=t.appendMissingElements.values||[];n=new et(r)}else if("removeAllFromArray"in t){var i=t.removeAllFromArray.values||[];n=new nt(i)}else"increment"in t?n=new it(e,t.increment):v();var o=P.fromServerFormat(t.fieldPath);return new st(o,n)}(e,t)})):[];if(t.update){t.update.name;var i=ln(e,t.update.name),o=new ae({mapValue:{fields:t.update.fields}});if(t.updateMask){var a=function(e){var t=e.fieldPaths||[];return new N(t.map((function(e){return P.fromServerFormat(e)})))}(t.updateMask);return new yt(i,o,a,n,r)}return new mt(i,o,n,r)}if(t.delete){var s=ln(e,t.delete);return new St(s,n)}if(t.verify){var u=ln(e,t.verify);return new Et(u,n)}return v()}function bn(e,t){return{documents:[fn(e,t.path)]}}function _n(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=fn(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=fn(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length){var t=e.map((function(e){return function(e){if("=="===e.op){if(re(e.value))return{unaryFilter:{field:Cn(e.field),op:"IS_NAN"}};if(ne(e.value))return{unaryFilter:{field:Cn(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(re(e.value))return{unaryFilter:{field:Cn(e.field),op:"IS_NOT_NAN"}};if(ne(e.value))return{unaryFilter:{field:Cn(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Cn(e.field),op:kn(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:Cn(e.field),direction:En(e.dir)}}(e)}))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);var a=function(e,t){return e.I||z(t)?t:{value:t}}(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=On(t.startAt)),t.endAt&&(n.structuredQuery.endAt=On(t.endAt)),n}function wn(e){var t=dn(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){m(1===r);var o=n.from[0];o.allDescendants?i=o.collectionId:t=t.child(o.collectionId)}var a=[];n.where&&(a=xn(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(e){return function(e){return new Ee(Tn(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 z(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=Sn(n.startAt));var l=null;
2return n.endAt&&(l=Sn(n.endAt)),Ie(t,i,s,a,u,"F",c,l)}function xn(e){return e?void 0!==e.unaryFilter?[In(e)]:void 0!==e.fieldFilter?[jn(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return xn(e)})).reduce((function(e,t){return e.concat(t)})):v():[]}function On(e){return{before:e.before,values:e.position}}function Sn(e){var t=!!e.before,n=e.values||[];return new Oe(n,t)}function En(e){return Zt[e]}function kn(e){return en[e]}function Cn(e){return{fieldPath:e.canonicalString()}}function Tn(e){return P.fromServerFormat(e.fieldPath)}function jn(e){return pe.create(Tn(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 v()}}(e.fieldFilter.op),e.fieldFilter.value)}function In(e){switch(e.unaryFilter.op){case"IS_NAN":var t=Tn(e.unaryFilter.field);return pe.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=Tn(e.unaryFilter.field);return pe.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=Tn(e.unaryFilter.field);return pe.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Tn(e.unaryFilter.field);return pe.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return v()}}function An(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}}function Pn(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}function Nn(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=Rn(t)),t=Mn(e.get(n),t);return Rn(t)}function Mn(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 Rn(e){return e+"\x01\x01"}function Ln(e){var t=e.length;if(m(t>=2),2===t)return m("\x01"===e.charAt(0)&&"\x01"===e.charAt(1)),I.emptyPath();for(var n=t-2,r=[],i="",o=0;o<t;){var a=e.indexOf("\x01",o);switch((a<0||a>n)&&v(),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:v()}o=a+2}return new I(r)}var Dn=function(e,t){this.seconds=e,this.nanoseconds=t},Fn=function(e,t,n){this.ownerId=e,this.allowTabSynchronization=t,this.leaseTimestampMs=n};Fn.store="owner",Fn.key="owner";var Vn=function(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n};Vn.store="mutationQueues",Vn.keyPath="userId";var Un=function(e,t,n,r,i){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};Un.store="mutations",Un.keyPath="batchId",Un.userMutationsIndex="userMutationsIndex",Un.userMutationsKeyPath=["userId","batchId"];var Bn=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,Nn(t)]},e.key=function(e,t,n){return[e,Nn(t),n]},e}();Bn.store="documentMutations",Bn.PLACEHOLDER=new Bn;var zn=function(e,t){this.path=e,this.readTime=t},qn=function(e,t){this.path=e,this.version=t},Gn=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};Gn.store="remoteDocuments",Gn.readTimeIndex="readTimeIndex",Gn.readTimeIndexPath="readTime",Gn.collectionReadTimeIndex="collectionReadTimeIndex",Gn.collectionReadTimeIndexPath=["parentPath","readTime"];var Wn=function(e){this.byteSize=e};Wn.store="remoteDocumentGlobal",Wn.key="remoteDocumentGlobalKey";var Hn=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};Hn.store="targets",Hn.keyPath="targetId",Hn.queryTargetsIndexName="queryTargetsIndex",Hn.queryTargetsKeyPath=["canonicalId","targetId"];var Kn=function(e,t,n){this.targetId=e,this.path=t,this.sequenceNumber=n};Kn.store="targetDocuments",Kn.keyPath=["targetId","path"],Kn.documentTargetsIndex="documentTargetsIndex",Kn.documentTargetsKeyPath=["path","targetId"];var Xn=function(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r};Xn.key="targetGlobalKey",Xn.store="targetGlobal";var Yn=function(e,t){this.collectionId=e,this.parent=t};Yn.store="collectionParents",Yn.keyPath=["collectionId","parent"];var $n=function(e,t,n,r){this.clientId=e,this.updateTimeMs=t,this.networkEnabled=n,this.inForeground=r};$n.store="clientMetadata",$n.keyPath="clientId";var Qn=function(e,t,n){this.bundleId=e,this.createTime=t,this.version=n};Qn.store="bundles",Qn.keyPath="bundleId";var Jn=function(e,t,n){this.name=e,this.readTime=t,this.bundledQuery=n};Jn.store="namedQueries",Jn.keyPath="name";var Zn=Object(a.__spreadArray)(Object(a.__spreadArray)([],Object(a.__spreadArray)(Object(a.__spreadArray)([],Object(a.__spreadArray)(Object(a.__spreadArray)([],Object(a.__spreadArray)(Object(a.__spreadArray)([],[Vn.store,Un.store,Bn.store,Gn.store,Hn.store,Fn.store,Xn.store,Kn.store]),[$n.store])),[Wn.store])),[Yn.store])),[Qn.store,Jn.store]),er="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",tr=function(){function e(){this.onCommittedListeners=[]}return e.prototype.addOnCommittedListener=function(e){this.onCommittedListeners.push(e)},e.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEac
2h((function(e){return e()}))},e}(),nr=function(){var e=this;this.promise=new Promise((function(t,n){e.resolve=t,e.reject=n}))},rr=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)}),(function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)}))}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.callbackAttached&&v(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}}))},e.prototype.toPromise=function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction((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.waitFor=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.or=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.waitFor(r)},e}(),ir=function(){function e(e,t){var n=this;this.action=e,this.transaction=t,this.aborted=!1,this.ft=new nr,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){t.error?n.ft.reject(new sr(e,t.error)):n.ft.resolve()},this.transaction.onerror=function(t){var r=dr(t.target.error);n.ft.reject(new sr(e,r))}}return e.open=function(t,n,r,i){try{return new e(n,t.transaction(i,r))}catch(t){throw new sr(n,t)}},Object.defineProperty(e.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),e.prototype.abort=function(e){e&&this.ft.reject(e),this.aborted||(d("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 cr(t)},e}(),or=function(){function t(e,n,i){this.name=e,this.version=n,this.wt=i,12.2===t._t(Object(r.getUA)())&&h("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 d("SimpleDb","Removing database:",e),lr(window.indexedDB.deleteDatabase(e)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=Object(r.getUA)(),n=t._t(e),i=0<n&&n<10,o=t.Et(e),a=0<o&&o<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||i||a)},t.gt=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,FAST_REFRESH:!0,REACT_APP_FIREBASE_API_KEY:"AIzaSyBgdT8XzqGwSxqgBM6T6EmrO2tRu3ZWe_Q",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyC0Tw2k6wiZLlFXHVnH3qXuX_avADoD3pU"}))||void 0===t?void 0:t.Tt)},t.It=function(e,t){return e.store(t)},t._t=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.Et=function(e){var t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(d("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 sr(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 c(u.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 sr(e,n))},i.onupgradeneeded=function(e){d("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',e.oldVersion);var t=e.target.result;n.wt.Rt(t,i.transaction,e.oldVersion,n.version).next((function(){d("SimpleDb","Database upgrade to version "+n.version+" complete")}))}}))]);case 1:t.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(e){return n.bt(e)}),this.db)]}}))}))},t.prototype.vt=function(e){this.bt=e,this.db&&(this.db.onversionchange=function(t){return e(t)})},t.prototype.runTransaction=function(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o,s,u,c;return Object(a.__generator)(this,(function(l){switch(l.label){case 0:i="readonly"===t,o=0,s=function(){var t,s,c,l,f;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:++o,a.label=1;case 1:return a.trys.push([1,4,,5]),[4,u.At(e)];
2case 2:return u.db=a.sent(),t=ir.open(u.db,e,i?"readonly":"readwrite",n),s=r(t).catch((function(e){return t.abort(e),rr.reject(e)})).toPromise(),c={},s.catch((function(){})),[4,t.dt];case 3:return[2,(c.value=(a.sent(),s),c)];case 4:return l=a.sent(),f="FirebaseError"!==l.name&&o<3,d("SimpleDb","Transaction failed with error:",l.message,"Retrying:",f),u.close(),f?[3,5]:[2,{value:Promise.reject(l)}];case 5:return[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}(),ar=function(){function e(e){this.Pt=e,this.Vt=!1,this.St=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.Pt=e},enumerable:!1,configurable:!0}),e.prototype.done=function(){this.Vt=!0},e.prototype.Ct=function(e){this.St=e},e.prototype.delete=function(){return lr(this.Pt.delete())},e}(),sr=function(e){function t(t,n){var r=this;return(r=e.call(this,u.UNAVAILABLE,"IndexedDB transaction '"+t+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return Object(a.__extends)(t,e),t}(c);function ur(e){return"IndexedDbTransactionError"===e.name}var cr=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(d("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(d("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),lr(n)},e.prototype.add=function(e){return d("SimpleDb","ADD",this.store.name,e,e),lr(this.store.add(e))},e.prototype.get=function(e){var t=this;return lr(this.store.get(e)).next((function(n){return void 0===n&&(n=null),d("SimpleDb","GET",t.store.name,e,n),n}))},e.prototype.delete=function(e){return d("SimpleDb","DELETE",this.store.name,e),lr(this.store.delete(e))},e.prototype.count=function(){return d("SimpleDb","COUNT",this.store.name),lr(this.store.count())},e.prototype.Nt=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.xt(n,(function(e,t){r.push(t)})).next((function(){return r}))},e.prototype.Ft=function(e,t){d("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.kt=!1;var r=this.cursor(n);return this.xt(r,(function(e,t,n){return n.delete()}))},e.prototype.$t=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.xt(r,t)},e.prototype.Ot=function(e){var t=this.cursor({});return new rr((function(n,r){t.onerror=function(e){var t=dr(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.xt=function(e,t){var n=[];return new rr((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 ar(i),a=t(i.primaryKey,i.value,o);if(a instanceof rr){var s=a.catch((function(e){return o.done(),rr.reject(e)}));n.push(s)}o.isDone?r():null===o.Dt?i.continue():i.continue(o.Dt)}else r()}})).next((function(){return rr.waitFor(n)}))},e.prototype.options=function(e,t){var n;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.kt?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function lr(e){return new rr((function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){var t=dr(e.target.error);n(t)}}))}var fr=!1;function dr(e){var t=or._t(Object(r.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 i=new c("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 fr||(fr=!0,setTimeout((function(){throw i}),0)),i}}return e}var hr=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Mt=t,r.currentSequenceNumber=n,r}return Object(a.__extends)(t,e),t}(tr);function pr(e,t){var n=y(e);return or.It(n.Mt,t)}var gr=function(){function e(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}return e.prototype.applyToRemoteDocument=function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&dt(i,e,n[r])}},e.prototype.applyToLocalView=function(e){for(var t=0,n=this.baseMutations;t<n.length;t++)(o=n[t]).key.isEqual(e.key)&&ht(o,e,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var o;(o=i[r]).key.isEqual(e.key)&&ht(o,e,this.localWriteTime)}},e.prototype.applyToLocalDocumentSet=function(e){var t=this;this.mutations.forEach((function(n){var r=e.get(n.key),i=r;
2t.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(E.min())}))},e.prototype.keys=function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Bt())},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&x(this.mutations,e.mutations,(function(e,t){return gt(e,t)}))&&x(this.baseMutations,e.baseMutations,(function(e,t){return gt(e,t)}))},e}(),vr=function(){function e(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}return e.from=function(t,n,r){m(t.mutations.length===r.length);for(var i=Vt(),o=t.mutations,a=0;a<o.length;a++)i=i.insert(o[a].key,r[a].version);return new e(t,n,r,i)},e}(),mr=function(){function e(e,t,n,r,i,o,a){void 0===i&&(i=E.min()),void 0===o&&(o=E.min()),void 0===a&&(a=M.EMPTY_BYTE_STRING),this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=a}return e.prototype.withSequenceNumber=function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},e.prototype.withResumeToken=function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)},e.prototype.withLastLimboFreeSnapshotVersion=function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)},e}(),yr=function(e){this.Lt=e};function br(e,t){if(t.document)return vn(e.Lt,t.document,!!t.hasCommittedMutations);if(t.noDocument){var n=W.fromSegments(t.noDocument.path),r=Sr(t.noDocument.readTime),i=ue.newNoDocument(n,r);return t.hasCommittedMutations?i.setHasCommittedMutations():i}if(t.unknownDocument){var o=W.fromSegments(t.unknownDocument.path);return r=Sr(t.unknownDocument.version),ue.newUnknownDocument(o,r)}return v()}function _r(e,t,n){var r=wr(n),i=t.key.path.popLast().toArray();if(t.isFoundDocument()){var o=function(e,t){return{name:cn(e,t.key),fields:t.data.value.mapValue.fields,updateTime:nn(e,t.version.toTimestamp())}}(e.Lt,t),a=t.hasCommittedMutations;return new Gn(null,null,o,a,r,i)}if(t.isNoDocument()){var s=t.key.path.toArray(),u=Or(t.version);return a=t.hasCommittedMutations,new Gn(null,new zn(s,u),null,a,r,i)}if(t.isUnknownDocument()){var c=t.key.path.toArray(),l=Or(t.version);return new Gn(new qn(c,l),null,null,!0,r,i)}return v()}function wr(e){var t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function xr(e){var t=new S(e[0],e[1]);return E.fromTimestamp(t)}function Or(e){var t=e.toTimestamp();return new Dn(t.seconds,t.nanoseconds)}function Sr(e){var t=new S(e.seconds,e.nanoseconds);return E.fromTimestamp(t)}function Er(e,t){for(var n=(t.baseMutations||[]).map((function(t){return yn(e.Lt,t)})),r=0;r<t.mutations.length-1;++r){var i=t.mutations[r];if(r+1<t.mutations.length&&void 0!==t.mutations[r+1].transform){var o=t.mutations[r+1];i.updateTransforms=o.transform.fieldTransforms,t.mutations.splice(r+1,1),++r}}var a=t.mutations.map((function(t){return yn(e.Lt,t)})),s=S.fromMillis(t.localWriteTimeMs);return new gr(t.batchId,s,n,a)}function kr(e){var t,n,r=Sr(e.readTime),i=void 0!==e.lastLimboFreeSnapshotVersion?Sr(e.lastLimboFreeSnapshotVersion):E.min();return void 0!==e.query.documents?(m(1===(n=e.query).documents.length),t=Fe(Ae(dn(n.documents[0])))):t=function(e){return Fe(wn(e))}(e.query),new mr(t,e.targetId,0,e.lastListenSequenceNumber,r,i,M.fromBase64String(e.resumeToken))}function Cr(e,t){var n,r=Or(t.snapshotVersion),i=Or(t.lastLimboFreeSnapshotVersion);n=he(t.target)?bn(e.Lt,t.target):_n(e.Lt,t.target);var o=t.resumeToken.toBase64();return new Hn(t.targetId,fe(t.target),r,o,t.sequenceNumber,i,n)}function Tr(e){var t=wn({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Ve(t,t.limit,"L"):t}var jr=function(){function e(){}return e.prototype.getBundleMetadata=function(e,t){return Ir(e).get(t).next((function(e){if(e)return{id:(t=e).bundleId,createTime:Sr(t.createTime),version:t.version};var t}))},e.prototype.saveBundleMetadata=function(e,t){return Ir(e).put({bundleId:(n=t).id,createTime:Or(an(n.createTime)),version:n.version});var n}
2,e.prototype.getNamedQuery=function(e,t){return Ar(e).get(t).next((function(e){if(e)return{name:(t=e).name,query:Tr(t.bundledQuery),readTime:Sr(t.readTime)};var t}))},e.prototype.saveNamedQuery=function(e,t){return Ar(e).put(function(e){return{name:e.name,readTime:Or(an(e.readTime)),bundledQuery:e.bundledQuery}}(t))},e}();function Ir(e){return pr(e,Qn.store)}function Ar(e){return pr(e,Jn.store)}var Pr=function(){function e(){this.Bt=new Nr}return e.prototype.addToCollectionParentIndex=function(e,t){return this.Bt.add(t),rr.resolve()},e.prototype.getCollectionParents=function(e,t){return rr.resolve(this.Bt.getEntries(t))},e}(),Nr=function(){function e(){this.index={}}return e.prototype.add=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new Pt(I.comparator),i=!r.has(n);return this.index[t]=r.add(n),i},e.prototype.has=function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)},e.prototype.getEntries=function(e){return(this.index[e]||new Pt(I.comparator)).toArray()},e}(),Mr=function(){function e(){this.qt=new Nr}return e.prototype.addToCollectionParentIndex=function(e,t){var n=this;if(!this.qt.has(t)){var r=t.lastSegment(),i=t.popLast();e.addOnCommittedListener((function(){n.qt.add(t)}));var o={collectionId:r,parent:Nn(i)};return Rr(e).put(o)}return rr.resolve()},e.prototype.getCollectionParents=function(e,t){var n=[],r=IDBKeyRange.bound([t,""],[O(t),""],!1,!0);return Rr(e).Nt(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(Ln(o.parent))}return n}))},e}();function Rr(e){return pr(e,Yn.store)}var Lr={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Dr=function(){function e(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}return e.withCacheSize=function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},e}();function Fr(e,t,n){var r=e.store(Un.store),i=e.store(Bn.store),o=[],a=IDBKeyRange.only(n.batchId),s=0,u=r.$t({range:a},(function(e,t,n){return s++,n.delete()}));o.push(u.next((function(){m(1===s)})));for(var c=[],l=0,f=n.mutations;l<f.length;l++){var d=f[l],h=Bn.key(t,d.key.path,n.batchId);o.push(i.delete(h)),c.push(d.key)}return rr.waitFor(o).next((function(){return c}))}function Vr(e){if(!e)return 0;var t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw v();t=e.noDocument}return JSON.stringify(t).length}Dr.DEFAULT_COLLECTION_PERCENTILE=10,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Dr.DEFAULT=new Dr(41943040,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Dr.DISABLED=new Dr(-1,0,0);var Ur=function(){function e(e,t,n,r){this.userId=e,this.R=t,this.Ut=n,this.referenceDelegate=r,this.Qt={}}return e.Kt=function(t,n,r,i){return m(""!==t.uid),new e(t.isAuthenticated()?t.uid:"",n,r,i)},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return zr(e).$t({index:Un.userMutationsIndex,range:n},(function(e,n,r){t=!1,r.done()})).next((function(){return t}))},e.prototype.addMutationBatch=function(e,t,n,r){var i=this,o=qr(e),a=zr(e);return a.add({}).next((function(s){m("number"==typeof s);for(var u=new gr(s,t,n,r),c=function(e,t,n){var r=n.baseMutations.map((function(t){return mn(e.Lt,t)})),i=n.mutations.map((function(t){return mn(e.Lt,t)}));return new Un(t,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,u),l=[],f=new Pt((function(e,t){return w(e.canonicalString(),t.canonicalString())})),d=0,h=r;d<h.length;d++){var p=h[d],g=Bn.key(i.userId,p.key.path,s);f=f.add(p.key.path.popLast()),l.push(a.put(c)),l.push(o.put(g,Bn.PLACEHOLDER))}return f.forEach((function(t){l.push(i.Ut.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((function(){i.Qt[s]=u.keys()})),rr.waitFor(l).next((function(){return u}))}))},e.prototype.lookupMutationBatch=function(e,t){var n=this;return zr(e).get(t).next((function(e){return e?(m(e.userId===n.userId),Er(n.R,e)):null}))},e.prototype.jt=function(e,t){var n=this;return this.Qt[t]?rr.resolve(this.Qt[t]):this.lookupMutationBatch(e,t).next((function(e){if(e){var r=e.keys();return n.Qt[t]=r,r}return null}))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,r=t+1,i=IDBKeyRange.lowerBound([this.userId,r]),o=null;return zr(e).$t({index:Un.userMutationsIndex,range:i},(function(e,t,i){t.userId===n.userId&&(m(t.batchId>=r),o=Er(n.R,t)),i.done()})).next((function(){return o}
2))},e.prototype.getHighestUnacknowledgedBatchId=function(e){var t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return zr(e).$t({index:Un.userMutationsIndex,range:t,reverse:!0},(function(e,t,r){n=t.batchId,r.done()})).next((function(){return n}))},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return zr(e).Nt(Un.userMutationsIndex,n).next((function(e){return e.map((function(e){return Er(t.R,e)}))}))},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=Bn.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return qr(e).$t({range:i},(function(r,i,a){var s=r[0],u=r[1],c=r[2],l=Ln(u);if(s===n.userId&&t.path.isEqual(l))return zr(e).get(c).next((function(e){if(!e)throw v();m(e.userId===n.userId),o.push(Er(n.R,e))}));a.done()})).next((function(){return o}))},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new Pt(w),i=[];return t.forEach((function(t){var o=Bn.prefixForPath(n.userId,t.path),a=IDBKeyRange.lowerBound(o),s=qr(e).$t({range:a},(function(e,i,o){var a=e[0],s=e[1],u=e[2],c=Ln(s);a===n.userId&&t.path.isEqual(c)?r=r.add(u):o.done()}));i.push(s)})),rr.waitFor(i).next((function(){return n.Wt(e,r)}))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this,r=t.path,i=r.length+1,o=Bn.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new Pt(w);return qr(e).$t({range:a},(function(e,t,o){var a=e[0],u=e[1],c=e[2],l=Ln(u);a===n.userId&&r.isPrefixOf(l)?l.length===i&&(s=s.add(c)):o.done()})).next((function(){return n.Wt(e,s)}))},e.prototype.Wt=function(e,t){var n=this,r=[],i=[];return t.forEach((function(t){i.push(zr(e).get(t).next((function(e){if(null===e)throw v();m(e.userId===n.userId),r.push(Er(n.R,e))})))})),rr.waitFor(i).next((function(){return r}))},e.prototype.removeMutationBatch=function(e,t){var n=this;return Fr(e.Mt,this.userId,t).next((function(r){return e.addOnCommittedListener((function(){n.Gt(t.batchId)})),rr.forEach(r,(function(t){return n.referenceDelegate.markPotentiallyOrphaned(e,t)}))}))},e.prototype.Gt=function(e){delete this.Qt[e]},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next((function(n){if(!n)return rr.resolve();
2var r=IDBKeyRange.lowerBound(Bn.prefixForUser(t.userId)),i=[];return qr(e).$t({range:r},(function(e,n,r){if(e[0]===t.userId){var o=Ln(e[1]);i.push(o)}else r.done()})).next((function(){m(0===i.length)}))}))},e.prototype.containsKey=function(e,t){return Br(e,this.userId,t)},e.prototype.zt=function(e){var t=this;return Gr(e).get(this.userId).next((function(e){return e||new Vn(t.userId,-1,"")}))},e}();function Br(e,t,n){var r=Bn.prefixForPath(t,n.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return qr(e).$t({range:o,kt:!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 zr(e){return pr(e,Un.store)}function qr(e){return pr(e,Bn.store)}function Gr(e){return pr(e,Vn.store)}var Wr=function(){function e(e){this.Ht=e}return e.prototype.next=function(){return this.Ht+=2,this.Ht},e.Jt=function(){return new e(0)},e.Yt=function(){return new e(-1)},e}(),Hr=function(){function e(e,t){this.referenceDelegate=e,this.R=t}return e.prototype.allocateTargetId=function(e){var t=this;return this.Xt(e).next((function(n){var r=new Wr(n.highestTargetId);return n.highestTargetId=r.next(),t.Zt(e,n).next((function(){return n.highestTargetId}))}))},e.prototype.getLastRemoteSnapshotVersion=function(e){return this.Xt(e).next((function(e){return E.fromTimestamp(new S(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))}))},e.prototype.getHighestSequenceNumber=function(e){return this.Xt(e).next((function(e){return e.highestListenSequenceNumber}))},e.prototype.setTargetsMetadata=function(e,t,n){var r=this;return this.Xt(e).next((function(i){return i.highestListenSequenceNumber=t,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),t>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=t),r.Zt(e,i)}))},e.prototype.addTargetData=function(e,t){var n=this;return this.te(e,t).next((function(){return n.Xt(e).next((function(r){return r.targetCount+=1,n.ee(t,r),n.Zt(e,r)}))}))},e.prototype.updateTargetData=function(e,t){return this.te(e,t)},e.prototype.removeTargetData=function(e,t){var n=this;return this.removeMatchingKeysForTargetId(e,t.targetId).next((function(){return Kr(e).delete(t.targetId)})).next((function(){return n.Xt(e)})).next((function(t){return m(t.targetCount>0),t.targetCount-=1,n.Zt(e,t)}))},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return Kr(e).$t((function(a,s){var u=kr(s);u.sequenceNumber<=t&&null===n.get(u.targetId)&&(i++,o.push(r.removeTargetData(e,u)))})).next((function(){return rr.waitFor(o)})).next((function(){return i}))},e.prototype.forEachTarget=function(e,t){return Kr(e).$t((function(e,n){var r=kr(n);t(r)}))},e.prototype.Xt=function(e){return Xr(e).get(Xn.key).next((function(e){return m(null!==e),e}))},e.prototype.Zt=function(e,t){return Xr(e).put(Xn.key,t)},e.prototype.te=function(e,t){return Kr(e).put(Cr(this.R,t))},e.prototype.ee=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.getTargetCount=function(e){return this.Xt(e).next((function(e){return e.targetCount}))},e.prototype.getTargetData=function(e,t){var n=fe(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;return Kr(e).$t({range:r,index:Hn.queryTargetsIndexName},(function(e,n,r){var o=kr(n);de(t,o.target)&&(i=o,r.done())})).next((function(){return i}))},e.prototype.addMatchingKeys=function(e,t,n){var r=this,i=[],o=Yr(e);return t.forEach((function(t){var a=Nn(t.path);i.push(o.put(new Kn(n,a))),i.push(r.referenceDelegate.addReference(e,n,t))})),rr.waitFor(i)},e.prototype.removeMatchingKeys=function(e,t,n){var r=this,i=Yr(e);return rr.forEach(t,(function(t){var o=Nn(t.path);return rr.waitFor([i.delete([n,o]),r.referenceDelegate.removeReference(e,n,t)])}))},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=Yr(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=Yr(e),i=Bt();return r.$t({range:n,kt:!0},(function(e,t,n){var r=Ln(e[1]),o=new W(r);
2i=i.add(o)})).next((function(){return i}))},e.prototype.containsKey=function(e,t){var n=Nn(t.path),r=IDBKeyRange.bound([n],[O(n)],!1,!0),i=0;return Yr(e).$t({index:Kn.documentTargetsIndex,kt:!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.lt=function(e,t){return Kr(e).get(t).next((function(e){return e?kr(e):null}))},e}();function Kr(e){return pr(e,Hn.store)}function Xr(e){return pr(e,Xn.store)}function Yr(e){return pr(e,Kn.store)}function $r(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){if(e.code!==u.FAILED_PRECONDITION||e.message!==er)throw e;return d("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function Qr(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=w(n,i);return 0===a?w(r,o):a}var Jr=function(){function e(e){this.ne=e,this.buffer=new Pt(Qr),this.se=0}return e.prototype.ie=function(){return++this.se},e.prototype.re=function(e){var t=[e,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(t);else{var n=this.buffer.last();Qr(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}(),Zr=function(){function e(e,t){this.garbageCollector=e,this.asyncQueue=t,this.oe=!1,this.ce=null}return e.prototype.start=function(e){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(e)},e.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(e.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),e.prototype.ue=function(e){var t=this,n=this.oe?3e5:6e4;d("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,(function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,e.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return ur(t=n.sent())?(d("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",t),[3,6]):[3,4];case 4:return[4,$r(t)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(e)];case 8:return n.sent(),[2]}}))}))}))},e}(),ei=function(){function e(e,t){this.ae=e,this.params=t}return e.prototype.calculateTargetCount=function(e,t){return this.ae.he(e).next((function(e){return Math.floor(t/100*e)}))},e.prototype.nthSequenceNumber=function(e,t){var n=this;if(0===t)return rr.resolve(s.o);var r=new Jr(t);return this.ae.forEachTarget(e,(function(e){return r.re(e.sequenceNumber)})).next((function(){return n.ae.le(e,(function(e){return r.re(e)}))})).next((function(){return r.maxValue}))},e.prototype.removeTargets=function(e,t,n){return this.ae.removeTargets(e,t,n)},e.prototype.removeOrphanedDocuments=function(e,t){return this.ae.removeOrphanedDocuments(e,t)},e.prototype.collect=function(e,t){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(d("LruGarbageCollector","Garbage collection skipped; disabled"),rr.resolve(Lr)):this.getCacheSize(e).next((function(r){return r<n.params.cacheSizeCollectionThreshold?(d("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),Lr):n.fe(e,t)}))},e.prototype.getCacheSize=function(e){return this.ae.getCacheSize(e)},e.prototype.fe=function(e,t){var n,r,o,a,s,u,c,l=this,h=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((function(t){return t>l.params.maximumSequenceNumbersToCollect?(d("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+l.params.maximumSequenceNumbersToCollect+" from "+t),r=l.params.maximumSequenceNumbersToCollect):r=t,a=Date.now(),l.nthSequenceNumber(e,r)})).next((function(r){return n=r,s=Date.now(),l.removeTargets(e,n,t)})).next((function(t){return o=t,u=Date.now(),l.removeOrphanedDocuments(e,n)})).next((function(e){return c=Date.now(),f()<=i.LogLevel.DEBUG&&d("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-h)+"ms\n\tDetermined least recently used "+r+" in "+(s-a)+"ms\n\tRemoved "+o+" targets in "+(u-s)+"ms\n\tRemoved "+e+" documents in "+(c-u)+"ms\nTotal Duration: "+(c-h)+"ms"),rr.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:o,documentsRemoved:e})}))},e}(),ti=function(){function e(e,t){this.db=e,this.garbageCollector=function(e,t){return new ei(e,t)}(this,t)}return e.prototype.he=function(e){var t=this.de(e);return this.db.getTargetCache().getTargetCount(e).next((function(e){return t.next((function(t){return e+t}))}))},e.prototype.de=function(e){var t=0;return this.le(e,(function(e){t++})).next((function(){return t}))},e.prototype.forEachTarget=function(e,t){return this.db.getTargetCache().forEac
2hTarget(e,t)},e.prototype.le=function(e,t){return this.we(e,(function(e,n){return t(n)}))},e.prototype.addReference=function(e,t,n){return ni(e,n)},e.prototype.removeReference=function(e,t,n){return ni(e,n)},e.prototype.removeTargets=function(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)},e.prototype.markPotentiallyOrphaned=function(e,t){return ni(e,t)},e.prototype._e=function(e,t){return function(e,t){var n=!1;return Gr(e).Ot((function(r){return Br(e,r,t).next((function(e){return e&&(n=!0),rr.resolve(!e)}))})).next((function(){return n}))}(e,t)},e.prototype.removeOrphanedDocuments=function(e,t){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],o=0;return this.we(e,(function(a,s){if(s<=t){var u=n._e(e,a).next((function(t){if(!t)return o++,r.getEntry(e,a).next((function(){return r.removeEntry(a),Yr(e).delete([0,Nn(a.path)])}))}));i.push(u)}})).next((function(){return rr.waitFor(i)})).next((function(){return r.apply(e)})).next((function(){return o}))},e.prototype.removeTarget=function(e,t){var n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)},e.prototype.updateLimboDocument=function(e,t){return ni(e,t)},e.prototype.we=function(e,t){var n,r=Yr(e),i=s.o;return r.$t({index:Kn.documentTargetsIndex},(function(e,r){var o=e[0],a=(e[1],r.path),u=r.sequenceNumber;0===o?(i!==s.o&&t(new W(Ln(n)),i),i=u,n=a):i=s.o})).next((function(){i!==s.o&&t(new W(Ln(n)),i)}))},e.prototype.getCacheSize=function(e){return this.db.getRemoteDocumentCache().getSize(e)},e}();function ni(e,t){return Yr(e).put(function(e,t){return new Kn(0,Nn(e.path),t)}(t,e.currentSequenceNumber))}var ri=function(){function e(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[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.equalsFn(a,e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t])}else this.inner[n]=[[e,t]]},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){C(this.inner,(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.isEmpty=function(){return T(this.inner)},e}(),ii=function(){function e(){this.changes=new ri((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.changesApplied=!1}return e.prototype.getReadTime=function(e){var t=this.changes.get(e);return t?t.readTime:E.min()},e.prototype.addEntry=function(e,t){this.assertNotApplied(),this.changes.set(e.key,{document:e,readTime:t})},e.prototype.removeEntry=function(e,t){void 0===t&&(t=null),this.assertNotApplied(),this.changes.set(e,{document:ue.newInvalidDocument(e),readTime:t})},e.prototype.getEntry=function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?rr.resolve(n.document):this.getFromCache(e,t)},e.prototype.getEntries=function(e,t){return this.getAllFromCache(e,t)},e.prototype.apply=function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)},e.prototype.assertNotApplied=function(){},e}(),oi=function(){function e(e,t){this.R=e,this.Ut=t}return e.prototype.addEntry=function(e,t,n){return ui(e).put(ci(t),n)},e.prototype.removeEntry=function(e,t){var n=ui(e),r=ci(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.me(e,r)}))},e.prototype.getEntry=function(e,t){var n=this;return ui(e).get(ci(t)).next((function(e){return n.ye(t,e)}))},e.prototype.ge=function(e,t){var n=this;return ui(e).get(ci(t)).next((function(e){return{document:n.ye(t,e),size:Vr(e)}}))},e.prototype.getEntries=function(e,t){var n=this,r=Rt();return this.pe(e,t,(function(e,t){var i=n.ye(e,t);r=r.insert(e,i)})).next((function(){return r}))},e.prototype.Ee=function(e,t){var n=this,r=Rt(),i=new jt(W.comparator);return this.pe(e,t,(function(e,t){var o=n.ye(e,t);r=r.insert(e,o),i=i.insert(e,Vr(t))})).next((function(){return{documents:r,Te:i}}
2))},e.prototype.pe=function(e,t,n){if(t.isEmpty())return rr.resolve();var r=IDBKeyRange.bound(t.first().path.toArray(),t.last().path.toArray()),i=t.getIterator(),o=i.getNext();return ui(e).$t({range:r},(function(e,t,r){for(var a=W.fromSegments(e);o&&W.comparator(o,a)<0;)n(o,null),o=i.getNext();o&&o.isEqual(a)&&(n(o,t),o=i.hasNext()?i.getNext():null),o?r.Ct(o.path.toArray()):r.done()})).next((function(){for(;o;)n(o,null),o=i.hasNext()?i.getNext():null}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){var r=this,i=Rt(),o=t.path.length+1,a={};if(n.isEqual(E.min())){var s=t.path.toArray();a.range=IDBKeyRange.lowerBound(s)}else{var u=t.path.toArray(),c=wr(n);a.range=IDBKeyRange.lowerBound([u,c],!0),a.index=Gn.collectionReadTimeIndex}return ui(e).$t(a,(function(e,n,a){if(e.length===o){var s=br(r.R,n);t.path.isPrefixOf(s.key.path)?qe(t,s)&&(i=i.insert(s.key,s)):a.done()}})).next((function(){return i}))},e.prototype.newChangeBuffer=function(e){return new ai(this,!!e&&e.trackRemovals)},e.prototype.getSize=function(e){return this.getMetadata(e).next((function(e){return e.byteSize}))},e.prototype.getMetadata=function(e){return si(e).get(Wn.key).next((function(e){return m(!!e),e}))},e.prototype.me=function(e,t){return si(e).put(Wn.key,t)},e.prototype.ye=function(e,t){if(t){var n=br(this.R,t);if(!n.isNoDocument()||!n.version.isEqual(E.min()))return n}return ue.newInvalidDocument(e)},e}(),ai=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Ie=t,r.trackRemovals=n,r.Ae=new ri((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),r}return Object(a.__extends)(t,e),t.prototype.applyChanges=function(e){var t=this,n=[],r=0,i=new Pt((function(e,t){return w(e.canonicalString(),t.canonicalString())}));
2return this.changes.forEach((function(o,a){var s=t.Ae.get(o);if(a.document.isValidDocument()){var u=_r(t.Ie.R,a.document,t.getReadTime(o));i=i.add(o.path.popLast());var c=Vr(u);r+=c-s,n.push(t.Ie.addEntry(e,o,u))}else if(r-=s,t.trackRemovals){var l=_r(t.Ie.R,ue.newNoDocument(o,E.min()),t.getReadTime(o));n.push(t.Ie.addEntry(e,o,l))}else n.push(t.Ie.removeEntry(e,o))})),i.forEach((function(r){n.push(t.Ie.Ut.addToCollectionParentIndex(e,r))})),n.push(this.Ie.updateMetadata(e,r)),rr.waitFor(n)},t.prototype.getFromCache=function(e,t){var n=this;return this.Ie.ge(e,t).next((function(e){return n.Ae.set(t,e.size),e.document}))},t.prototype.getAllFromCache=function(e,t){var n=this;return this.Ie.Ee(e,t).next((function(e){var t=e.documents;return e.Te.forEach((function(e,t){n.Ae.set(e,t)})),t}))},t}(ii);function si(e){return pr(e,Wn.store)}function ui(e){return pr(e,Gn.store)}function ci(e){return e.path.toArray()}var li=function(){function e(e){this.R=e}return e.prototype.Rt=function(e,t,n,r){var i=this;m(n<r&&n>=0&&r<=11);var o=new ir("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore(Fn.store)}(e),function(e){e.createObjectStore(Vn.store,{keyPath:Vn.keyPath}),e.createObjectStore(Un.store,{keyPath:Un.keyPath,autoIncrement:!0}).createIndex(Un.userMutationsIndex,Un.userMutationsKeyPath,{unique:!0}),e.createObjectStore(Bn.store)}(e),fi(e),function(e){e.createObjectStore(Gn.store)}(e));var a=rr.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Kn.store),e.deleteObjectStore(Hn.store),e.deleteObjectStore(Xn.store)}(e),fi(e)),a=a.next((function(){return function(e){var t=e.store(Xn.store),n=new Xn(0,0,E.min().toTimestamp(),0);return t.put(Xn.key,n)}(o)}))),n<4&&r>=4&&(0!==n&&(a=a.next((function(){return function(e,t){return t.store(Un.store).Nt().next((function(n){e.deleteObjectStore(Un.store),e.createObjectStore(Un.store,{keyPath:Un.keyPath,autoIncrement:!0}).createIndex(Un.userMutationsIndex,Un.userMutationsKeyPath,{unique:!0});var r=t.store(Un.store),i=n.map((function(e){return r.put(e)}));return rr.waitFor(i)}))}(e,o)}))),a=a.next((function(){!function(e){e.createObjectStore($n.store,{keyPath:$n.keyPath})}(e)}))),n<5&&r>=5&&(a=a.next((function(){return i.Re(o)}))),n<6&&r>=6&&(a=a.next((function(){return function(e){e.createObjectStore(Wn.store)}(e),i.be(o)}))),n<7&&r>=7&&(a=a.next((function(){return i.ve(o)}))),n<8&&r>=8&&(a=a.next((function(){return i.Pe(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(Gn.store);t.createIndex(Gn.readTimeIndex,Gn.readTimeIndexPath,{unique:!1}),t.createIndex(Gn.collectionReadTimeIndex,Gn.collectionReadTimeIndexPath,{unique:!1})}(t)}))),n<10&&r>=10&&(a=a.next((function(){return i.Ve(o)}))),n<11&&r>=11&&(a=a.next((function(){!function(e){e.createObjectStore(Qn.store,{keyPath:Qn.keyPath})}(e),function(e){e.createObjectStore(Jn.store,{keyPath:Jn.keyPath})}(e)}))),a},e.prototype.be=function(e){var t=0;return e.store(Gn.store).$t((function(e,n){t+=Vr(n)})).next((function(){var n=new Wn(t);return e.store(Wn.store).put(Wn.key,n)}))},e.prototype.Re=function(e){var t=this,n=e.store(Vn.store),r=e.store(Un.store);return n.Nt().next((function(n){return rr.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(Un.userMutationsIndex,i).next((function(r){return rr.forEach(r,(function(r){m(r.userId===n.userId);var i=Er(t.R,r);return Fr(e,n.userId,i).next((function(){}))}))}))}))}))},e.prototype.ve=function(e){var t=e.store(Kn.store),n=e.store(Gn.store);return e.store(Xn.store).get(Xn.key).next((function(e){var r=[];return n.$t((function(n,i){var o=new I(n),a=function(e){return[0,Nn(e)]}(o);r.push(t.get(a).next((function(n){return n?rr.resolve():function(n){return t.put(new Kn(0,Nn(n),e.highestListenSequenceNumber))}(o)})))})).next((function(){return rr.waitFor(r)}))}))},e.prototype.Pe=function(e,t){e.createObjectStore(Yn.store,{keyPath:Yn.keyPath});var n=t.store(Yn.store),r=new Nr,i=function(e){if(r.add(e)){var t=e.lastSegment(),i=e.popLast();return n.put({collectionId:t,parent:Nn(i)})}};return t.store(Gn.store).$t({kt:!0},(function(e,t){var n=new I(e);return i(n.popLast())})).next((function(){return t.store(Bn.store).$t({kt:!0},(function(e,t){e[0];var n=e[1],r=(e[2],Ln(n));return i(r.popLast())}))}))},e.prototype.Ve=function(e){var t=this,n=e.store(Hn.store);return n.$t((function(e,r){var i=kr(r),o=Cr(t.R,i);
2return n.put(o)}))},e}();function fi(e){e.createObjectStore(Kn.store,{keyPath:Kn.keyPath}).createIndex(Kn.documentTargetsIndex,Kn.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Hn.store,{keyPath:Hn.keyPath}).createIndex(Hn.queryTargetsIndexName,Hn.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(Xn.store)}var di="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",hi=function(){function e(t,n,r,i,o,a,s,l,f,d){if(this.allowTabSynchronization=t,this.persistenceKey=n,this.clientId=r,this.Se=o,this.window=a,this.document=s,this.De=f,this.Ce=d,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Fe=null,this.inForeground=!1,this.ke=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(e){return Promise.resolve()},!e.yt())throw new c(u.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new ti(this,i),this.Le=n+"main",this.R=new yr(l),this.Be=new or(this.Le,11,new li(this.R)),this.qe=new Hr(this.referenceDelegate,this.R),this.Ut=new Mr,this.Ue=function(e,t){return new oi(e,t)}(this.R,this.Ut),this.Qe=new jr,this.window&&this.window.localStorage?this.Ke=this.window.localStorage:(this.Ke=null,!1===d&&h("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return e.prototype.start=function(){var e=this;return this.je().then((function(){if(!e.isPrimary&&!e.allowTabSynchronization)throw new c(u.FAILED_PRECONDITION,di);return e.We(),e.Ge(),e.ze(),e.runTransaction("getHighestListenSequenceNumber","readonly",(function(t){return e.qe.getHighestSequenceNumber(t)}))})).then((function(t){e.Ne=new s(t,e.De)})).then((function(){e.xe=!0})).catch((function(t){return e.Be&&e.Be.close(),Promise.reject(t)}))},e.prototype.He=function(e){var t=this;return this.Me=function(n){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return this.started?[2,e(n)]:[2]}))}))},e(this.isPrimary)},e.prototype.setDatabaseDeletedListener=function(e){var t=this;this.Be.vt((function(n){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__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.setNetworkEnabled=function(e){var t=this;this.networkEnabled!==e&&(this.networkEnabled=e,this.Se.enqueueAndForget((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))})))},e.prototype.je=function(){var e=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(t){return gi(t).put(new $n(e.clientId,Date.now(),e.networkEnabled,e.inForeground)).next((function(){if(e.isPrimary)return e.Je(t).next((function(t){t||(e.isPrimary=!1,e.Se.enqueueRetryable((function(){return e.Me(!1)})))}))})).next((function(){return e.Ye(t)})).next((function(n){return e.isPrimary&&!n?e.Xe(t).next((function(){return!1})):!!n&&e.Ze(t).next((function(){return!0}))}))})).catch((function(t){if(ur(t))return d("IndexedDbPersistence","Failed to extend owner lease: ",t),e.isPrimary;if(!e.allowTabSynchronization)throw t;return d("IndexedDbPersistence","Releasing owner lease after error during lease refresh",t),!1})).then((function(t){e.isPrimary!==t&&e.Se.enqueueRetryable((function(){return e.Me(t)})),e.isPrimary=t}))},e.prototype.Je=function(e){var t=this;return pi(e).get(Fn.key).next((function(e){return rr.resolve(t.tn(e))}))},e.prototype.en=function(e){return gi(e).delete(this.clientId)},e.prototype.nn=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i=this;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(e){var t=pr(e,$n.store);return t.Nt().next((function(e){var n=i.rn(e,18e5),r=e.filter((function(e){return-1===n.indexOf(e)}));return rr.forEach(r,(function(e){return t.delete(e.clientId)})).next((function(){return r}))}))})).catch((function(){return[]}))]);case 1:if(e=o.sent(),this.Ke)for(t=0,n=e;t<n.length;t++)r=n[t],this.Ke.removeItem(this.on(r.clientId));o.label=2;case 2:return[2]}}
2))}))},e.prototype.ze=function(){var e=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,(function(){return e.je().then((function(){return e.nn()})).then((function(){return e.ze()}))}))},e.prototype.tn=function(e){return!!e&&e.ownerId===this.clientId},e.prototype.Ye=function(e){var t=this;return this.Ce?rr.resolve(!0):pi(e).get(Fn.key).next((function(n){if(null!==n&&t.sn(n.leaseTimestampMs,5e3)&&!t.cn(n.ownerId)){if(t.tn(n)&&t.networkEnabled)return!0;if(!t.tn(n)){if(!n.allowTabSynchronization)throw new c(u.FAILED_PRECONDITION,di);return!1}}return!(!t.networkEnabled||!t.inForeground)||gi(e).Nt().next((function(e){return void 0===t.rn(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&&d("IndexedDbPersistence","Client "+(e?"is":"is not")+" eligible for a primary lease."),e}))},e.prototype.shutdown=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e=this;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[Fn.store,$n.store],(function(t){var n=new hr(t,s.o);return e.Xe(n).next((function(){return e.en(n)}))}))];case 1:return t.sent(),this.Be.close(),this.ln(),[2]}}))}))},e.prototype.rn=function(e,t){var n=this;return e.filter((function(e){return n.sn(e.updateTimeMs,t)&&!n.cn(e.clientId)}))},e.prototype.fn=function(){var e=this;return this.runTransaction("getActiveClients","readonly",(function(t){return gi(t).Nt().next((function(t){return e.rn(t,18e5).map((function(e){return e.clientId}))}))}))},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.getMutationQueue=function(e){return Ur.Kt(e,this.R,this.Ut,this.referenceDelegate)},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getBundleCache=function(){return this.Qe},e.prototype.runTransaction=function(e,t,n){var r=this;d("IndexedDbPersistence","Starting transaction:",e);var i,o="readonly"===t?"readonly":"readwrite";return this.Be.runTransaction(e,o,Zn,(function(o){return i=new hr(o,r.Ne?r.Ne.next():s.o),"readwrite-primary"===t?r.Je(i).next((function(e){return!!e||r.Ye(i)})).next((function(t){if(!t)throw h("Failed to obtain primary lease for action '"+e+"'."),r.isPrimary=!1,r.Se.enqueueRetryable((function(){return r.Me(!1)})),new c(u.FAILED_PRECONDITION,er);return n(i)})).next((function(e){return r.Ze(i).next((function(){return e}))})):r.dn(i).next((function(){return n(i)}))})).then((function(e){return i.raiseOnCommittedEvent(),e}))},e.prototype.dn=function(e){var t=this;return pi(e).get(Fn.key).next((function(e){if(null!==e&&t.sn(e.leaseTimestampMs,5e3)&&!t.cn(e.ownerId)&&!t.tn(e)&&!(t.Ce||t.allowTabSynchronization&&e.allowTabSynchronization))throw new c(u.FAILED_PRECONDITION,di)}))},e.prototype.Ze=function(e){var t=new Fn(this.clientId,this.allowTabSynchronization,Date.now());return pi(e).put(Fn.key,t)},e.yt=function(){return or.yt()},e.prototype.Xe=function(e){var t=this,n=pi(e);return n.get(Fn.key).next((function(e){return t.tn(e)?(d("IndexedDbPersistence","Releasing primary lease."),n.delete(Fn.key)):rr.resolve()}))},e.prototype.sn=function(e,t){var n=Date.now();return!(e<n-t||e>n&&(h("Detected an update time that is in the future: "+e+" > "+n),1))},e.prototype.We=function(){var e=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.ke=function(){e.Se.enqueueAndForget((function(){return e.inForeground="visible"===e.document.visibilityState,e.je()}))},this.document.addEventListener("visibilitychange",this.ke),this.inForeground="visible"===this.document.visibilityState)},e.prototype.an=function(){this.ke&&(this.document.removeEventListener("visibilitychange",this.ke),this.ke=null)},e.prototype.Ge=function(){var e,t=this;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.Fe=function(){t.un(),t.Se.enqueueAndForget((function(){return t.shutdown()}))},this.window.addEventListener("pagehide",this.Fe))},e.prototype.hn=function(){this.Fe&&(this.window.removeEventListener("pagehide",this.Fe),this.Fe=null)},e.prototype.cn=function(e){var t;try{var n=null!==(null===(t=this.Ke)||void 0===t?void 0:t.getItem(this.on(e)));return d("IndexedDbPersistence","Client '"+e+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(e){return h("IndexedDbPersistence","Failed to get zombied client id.",e),!1}},e.prototype.un=function(){if(this.Ke)try{this.Ke.setItem(this.on(this.clientId),String(Date.now()))}catch(e){h("Failed to set zombie client id.",e)}},e.prototype.ln=function(){if(this.Ke)try{this.Ke.removeItem(this.on(this.clientId))}catch(e){}},e.prototype.on=function(e){return"firestore_zombie_"+this.persistenceKey+"_"+e},e}();function pi(e){return pr(e,Fn.store)}function gi(e){return pr(e,$n.store)}function vi(e,t){var n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}var mi=function(e,t){this.progress=e,this.wn=t},yi=function(){function e(e,t,n){this.Ue=e,this._n=t,this.Ut=n}return e.prototype.mn=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(e,t).next((function(r){return n.yn(e,t,r)}))},e.prototype.yn=function(e,t,n){return this.Ue.getEntry(e,t).next((function(e){for(var t=0,r=n;t<r.length;t++)r[t].applyToLocalView(e);return e}))},e.prototype.gn=function(e,t){e.forEach((function(e,n){for(var r=0,i=t;r<i.length;r++)i[r].applyToLocalView(n)}))},e.prototype.pn=function(e,t){var n=this;return this.Ue.getEntries(e,t).next((function(t){return n.En(e,t).next((function(){return t}))}))},e.prototype.En=function(e,t){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(e){return n.gn(t,e)}))},e.prototype.getDocumentsMatchingQuery=function(e,t,n){return function(e){return W.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}
2(t)?this.Tn(e,t.path):Le(t)?this.In(e,t,n):this.An(e,t,n)},e.prototype.Tn=function(e,t){return this.mn(e,new W(t)).next((function(e){var t=Dt();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))},e.prototype.In=function(e,t,n){var r=this,i=t.collectionGroup,o=Dt();return this.Ut.getCollectionParents(e,i).next((function(a){return rr.forEach(a,(function(a){var s=function(e,t){return new je(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,a.child(i));return r.An(e,s,n).next((function(e){e.forEach((function(e,t){o=o.insert(e,t)}))}))})).next((function(){return o}))}))},e.prototype.An=function(e,t,n){var r,i,o=this;return this.Ue.getDocumentsMatchingQuery(e,t,n).next((function(n){return r=n,o._n.getAllMutationBatchesAffectingQuery(e,t)})).next((function(t){return i=t,o.Rn(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);null==l&&(l=ue.newInvalidDocument(c),r=r.insert(c,l)),ht(u,l,o.localWriteTime),l.isFoundDocument()||(r=r.remove(c))}}))})).next((function(){return r.forEach((function(e,n){qe(t,n)||(r=r.remove(e))})),r}))},e.prototype.Rn=function(e,t,n){for(var r=Bt(),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 yt&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.Ue.getEntries(e,r).next((function(e){return e.forEach((function(e,t){t.isFoundDocument()&&(c=c.insert(e,t))})),c}))},e}(),bi=function(){function e(e,t,n,r){this.targetId=e,this.fromCache=t,this.bn=n,this.vn=r}return e.Pn=function(t,n){for(var r=Bt(),i=Bt(),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}(),_i=function(){function e(){}return e.prototype.Vn=function(e){this.Sn=e},e.prototype.getDocumentsMatchingQuery=function(e,t,n,r){var o=this;return function(e){return 0===e.filters.length&&null===e.limit&&null==e.startAt&&null==e.endAt&&(0===e.explicitOrderBy.length||1===e.explicitOrderBy.length&&e.explicitOrderBy[0].field.isKeyField())}(t)||n.isEqual(E.min())?this.Dn(e,t):this.Sn.pn(e,r).next((function(a){var s=o.Cn(t,a);return(Pe(t)||Ne(t))&&o.Nn(t.limitType,s,r,n)?o.Dn(e,t):(f()<=i.LogLevel.DEBUG&&d("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),ze(t)),o.Sn.getDocumentsMatchingQuery(e,t,n).next((function(e){return s.forEach((function(t){e=e.insert(t.key,t)})),e})))}))},e.prototype.Cn=function(e,t){var n=new Pt(Ge(e));return t.forEach((function(t,r){qe(e,r)&&(n=n.add(r))})),n},e.prototype.Nn=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.compareTo(r)>0)},e.prototype.Dn=function(e,t){return f()<=i.LogLevel.DEBUG&&d("QueryEngine","Using full collection scan to execute query:",ze(t)),this.Sn.getDocumentsMatchingQuery(e,t,E.min())},e}(),wi=function(){function e(e,t,n,r){this.persistence=e,this.xn=t,this.R=r,this.Fn=new jt(w),this.kn=new ri((function(e){return fe(e)}),de),this.$n=E.min(),this._n=e.getMutationQueue(n),this.On=e.getRemoteDocumentCache(),this.qe=e.getTargetCache(),this.Mn=new yi(this.On,this._n,this.persistence.getIndexManager()),this.Qe=e.getBundleCache(),this.xn.Vn(this.Mn)}return e.prototype.collectGarbage=function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.collect(n,t.Fn)}))},e}();function xi(e,t,n,r){return new wi(e,t,n,r)}function Oi(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n=y(e),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",(function(e){var o;return n._n.getAllMutationBatches(e).next((function(a){return o=a,r=n.persistence.getMutationQueue(t),i=new yi(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(e)})).next((function(t){for(var n=[],r=[],a=Bt(),s=0,u=o;s<u.length;s++){var c=u[s];n.push(c.batchId);for(var l=0,f=c.mutations;l<f.length;l++){var d=f[l];a=a.add(d.key)}}for(var h=0,p=t;h<p.length;h++){var g=p[h];r.push(g.batchId);for(var v=0,m=g.mutations;v<m.length;v++){var y=m[v];a=a.add(y.key)}}return i.pn(e,a).next((function(e){return{Ln:e,removedBatchIds:n,addedBatchIds:r}}))}))}))];case 1:return o=a.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),o)]}}))}))}function Si(e,t){var n=y(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.On.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,o=i.keys(),a=rr.resolve();return o.forEach((function(e){a=a.next((function(){return r.getEntry(t,e)})).next((function(t){var o=n.docVersions.get(e);m(null!==o),t.version.compareTo(o)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&r.addEntry(t,n.commitVersion))}))})),a.next((function(){return e._n.removeMutationBatch(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)})).next((function(){return n._n.performConsistencyCheck(e)})).next((function(){return n.Mn.pn(e,r)}))}))}function Ei(e){var t=y(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.qe.getLastRemoteSnapshotVersion(e)}))}function ki(e,t){var n=y(e),r=t.snapshotVersion,i=n.Fn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var o=n.On.newChangeBuffer({trackRemovals:!0});i=n.Fn;var a=[];
2t.targetChanges.forEach((function(t,o){var s=i.get(o);if(s){a.push(n.qe.removeMatchingKeys(e,t.removedDocuments,o).next((function(){return n.qe.addMatchingKeys(e,t.addedDocuments,o)})));var u=t.resumeToken;if(u.approximateByteSize()>0){var c=s.withResumeToken(u,r).withSequenceNumber(e.currentSequenceNumber);i=i.insert(o,c),function(e,t,n){return m(t.resumeToken.approximateByteSize()>0),0===e.resumeToken.approximateByteSize()||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(s,c,t)&&a.push(n.qe.updateTargetData(e,c))}}}));var s=Rt();if(t.documentUpdates.forEach((function(r,i){t.resolvedLimboDocuments.has(r)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),a.push(Ci(e,o,t.documentUpdates,r,void 0).next((function(e){s=e}))),!r.isEqual(E.min())){var u=n.qe.getLastRemoteSnapshotVersion(e).next((function(t){return n.qe.setTargetsMetadata(e,e.currentSequenceNumber,r)}));a.push(u)}return rr.waitFor(a).next((function(){return o.apply(e)})).next((function(){return n.Mn.En(e,s)})).next((function(){return s}))})).then((function(e){return n.Fn=i,e}))}function Ci(e,t,n,r,i){var o=Bt();return n.forEach((function(e){return o=o.add(e)})),t.getEntries(e,o).next((function(e){var o=Rt();return n.forEach((function(n,a){var s=e.get(n),u=(null==i?void 0:i.get(n))||r;a.isNoDocument()&&a.version.isEqual(E.min())?(t.removeEntry(n,u),o=o.insert(n,a)):!s.isValidDocument()||a.version.compareTo(s.version)>0||0===a.version.compareTo(s.version)&&s.hasPendingWrites?(t.addEntry(a,u),o=o.insert(n,a)):d("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",a.version)})),o}))}function Ti(e,t){var n=y(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n._n.getNextMutationBatchAfterBatchId(e,t)}))}function ji(e,t){var n=y(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.qe.getTargetData(e,t).next((function(i){return i?(r=i,rr.resolve(r)):n.qe.allocateTargetId(e).next((function(i){return r=new mr(t,i,0,e.currentSequenceNumber),n.qe.addTargetData(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.Fn.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Fn=n.Fn.insert(e.targetId,e),n.kn.set(t,e.targetId)),e}))}function Ii(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:r=y(e),i=r.Fn.get(t),o=n?"readwrite":"readwrite-primary",a.label=1;case 1:return a.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",o,(function(e){return r.persistence.referenceDelegate.removeTarget(e,i)}))];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:if(!ur(s=a.sent()))throw s;return d("LocalStore","Failed to update sequence numbers for target "+t+": "+s),[3,5];case 5:return r.Fn=r.Fn.remove(t),r.kn.delete(i.target),[2]}}))}))}function Ai(e,t,n){var r=y(e),i=E.min(),o=Bt();return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=y(e),i=r.kn.get(n);return void 0!==i?rr.resolve(r.Fn.get(i)):r.qe.getTargetData(t,n)}(r,e,Fe(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(e,t.targetId).next((function(e){o=e}))})).next((function(){return r.xn.getDocumentsMatchingQuery(e,t,n?i:E.min(),n?o:Bt())})).next((function(e){return{documents:e,Bn:o}}))}))}function Pi(e,t){var n=y(e),r=y(n.qe),i=n.Fn.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(e){return r.lt(e,t).next((function(e){return e?e.target:null}))}))}function Ni(e){var t=y(e);return t.persistence.runTransaction("Get new document changes","readonly",(function(e){return function(e,t,n){var r=y(e),i=Rt(),o=wr(n),a=ui(t),s=IDBKeyRange.lowerBound(o,!0);return a.$t({index:Gn.readTimeIndex,range:s},(function(e,t){var n=br(r.R,t);i=i.insert(n.key,n),o=t.readTime})).next((function(){return{wn:i,readTime:xr(o)}}))}(t.On,e,t.$n)})).then((function(e){var n=e.wn,r=e.readTime;return t.$n=r,n}
2))}function Mi(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){return[2,(t=y(e)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(e){return function(e){var t=ui(e),n=E.min();return t.$t({index:Gn.readTimeIndex,reverse:!0},(function(e,t,r){t.readTime&&(n=xr(t.readTime)),r.done()})).next((function(){return n}))}(e)})).then((function(e){t.$n=e}))]}))}))}function Ri(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o,s,u,c,l,f,d,h,p;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:for(i=y(e),o=Bt(),s=Rt(),u=Vt(),c=0,l=n;c<l.length;c++)f=l[c],d=t.qn(f.metadata.name),f.document&&(o=o.add(d)),s=s.insert(d,t.Un(f)),u=u.insert(d,t.Qn(f.metadata.readTime));return h=i.On.newChangeBuffer({trackRemovals:!0}),[4,ji(i,function(e){return Fe(Ae(I.fromString("__bundle__/docs/"+e)))}(r))];case 1:return p=a.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",(function(e){return Ci(e,h,s,E.min(),u).next((function(t){return h.apply(e),t})).next((function(t){return i.qe.removeMatchingKeysForTargetId(e,p.targetId).next((function(){return i.qe.addMatchingKeys(e,o,p.targetId)})).next((function(){return i.Mn.En(e,t)})).next((function(){return t}))}))}))]}}))}))}function Li(e,t,n){return void 0===n&&(n=Bt()),Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return[4,ji(e,Fe(Tr(t.bundledQuery)))];case 1:return r=o.sent(),[2,(i=y(e)).persistence.runTransaction("Save named query","readwrite",(function(e){var o=an(t.readTime);if(r.snapshotVersion.compareTo(o)>=0)return i.Qe.saveNamedQuery(e,t);var a=r.withResumeToken(M.EMPTY_BYTE_STRING,o);return i.Fn=i.Fn.insert(a.targetId,a),i.qe.updateTargetData(e,a).next((function(){return i.qe.removeMatchingKeysForTargetId(e,r.targetId)})).next((function(){return i.qe.addMatchingKeys(e,n,r.targetId)})).next((function(){return i.Qe.saveNamedQuery(e,t)}))}))]}}))}))}var Di=function(){function e(e){this.R=e,this.Kn=new Map,this.jn=new Map}return e.prototype.getBundleMetadata=function(e,t){return rr.resolve(this.Kn.get(t))},e.prototype.saveBundleMetadata=function(e,t){var n;return this.Kn.set(t.id,{id:(n=t).id,version:n.version,createTime:an(n.createTime)}),rr.resolve()},e.prototype.getNamedQuery=function(e,t){return rr.resolve(this.jn.get(t))},e.prototype.saveNamedQuery=function(e,t){return this.jn.set(t.name,function(e){return{name:e.name,query:Tr(e.bundledQuery),readTime:an(e.readTime)}}(t)),rr.resolve()},e}(),Fi=function(){function e(){this.Wn=new Pt(Vi.Gn),this.zn=new Pt(Vi.Hn)}return e.prototype.isEmpty=function(){return this.Wn.isEmpty()},e.prototype.addReference=function(e,t){var n=new Vi(e,t);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},e.prototype.Jn=function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))},e.prototype.removeReference=function(e,t){this.Yn(new Vi(e,t))},e.prototype.Xn=function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))},e.prototype.Zn=function(e){var t=this,n=new W(new I([])),r=new Vi(n,e),i=new Vi(n,e+1),o=[];return this.zn.forEachInRange([r,i],(function(e){t.Yn(e),o.push(e.key)})),o},e.prototype.ts=function(){var e=this;this.Wn.forEach((function(t){return e.Yn(t)}))},e.prototype.Yn=function(e){this.Wn=this.Wn.delete(e),this.zn=this.zn.delete(e)},e.prototype.es=function(e){var t=new W(new I([])),n=new Vi(t,e),r=new Vi(t,e+1),i=Bt();return this.zn.forEachInRange([n,r],(function(e){i=i.add(e.key)})),i},e.prototype.containsKey=function(e){var t=new Vi(e,0),n=this.Wn.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)},e}(),Vi=function(){function e(e,t){this.key=e,this.ns=t}return e.Gn=function(e,t){return W.comparator(e.key,t.key)||w(e.ns,t.ns)},e.Hn=function(e,t){return w(e.ns,t.ns)||W.comparator(e.key,t.key)},e}(),Ui=function(){function e(e,t){this.Ut=e,this.referenceDelegate=t,this._n=[],this.ss=1,this.rs=new Pt(Vi.Gn)}return e.prototype.checkEmpty=function(e){return rr.resolve(0===this._n.length)},e.prototype.addMutationBatch=function(e,t,n,r){var i=this.ss;this.ss++,this._n.length>0&&this._n[this._n.length-1];var o=new gr(i,t,n,r);this._n.push(o);for(var a=0,s=r;a<s.length;a++){var u=s[a];this.rs=this.rs.add(new Vi(u.key,i)),this.Ut.addToCollectionParentIndex(e,u.key.path.popLast())}return rr.resolve(o)},e.prototype.lookupMutationBatch=function(e,t){return rr.resolve(this.os(t))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=t+1,r=this.cs(n),i=r
2<0?0:r;return rr.resolve(this._n.length>i?this._n[i]:null)},e.prototype.getHighestUnacknowledgedBatchId=function(){return rr.resolve(0===this._n.length?-1:this.ss-1)},e.prototype.getAllMutationBatches=function(e){return rr.resolve(this._n.slice())},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=new Vi(t,0),i=new Vi(t,Number.POSITIVE_INFINITY),o=[];return this.rs.forEachInRange([r,i],(function(e){var t=n.os(e.ns);o.push(t)})),rr.resolve(o)},e.prototype.getAllMutationBatchesAffectingDocumentKeys=function(e,t){var n=this,r=new Pt(w);return t.forEach((function(e){var t=new Vi(e,0),i=new Vi(e,Number.POSITIVE_INFINITY);n.rs.forEachInRange([t,i],(function(e){r=r.add(e.ns)}))})),rr.resolve(this.us(r))},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=t.path,r=n.length+1,i=n;W.isDocumentKey(i)||(i=i.child(""));var o=new Vi(new W(i),0),a=new Pt(w);return this.rs.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(a=a.add(e.ns)),!0)}),o),rr.resolve(this.us(a))},e.prototype.us=function(e){var t=this,n=[];return e.forEach((function(e){var r=t.os(e);null!==r&&n.push(r)})),n},e.prototype.removeMutationBatch=function(e,t){var n=this;m(0===this.hs(t.batchId,"removed")),this._n.shift();var r=this.rs;return rr.forEach(t.mutations,(function(i){var o=new Vi(i.key,t.batchId);return r=r.delete(o),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)})).next((function(){n.rs=r}))},e.prototype.Gt=function(e){},e.prototype.containsKey=function(e,t){var n=new Vi(t,0),r=this.rs.firstAfterOrEqual(n);return rr.resolve(t.isEqual(r&&r.key))},e.prototype.performConsistencyCheck=function(e){return this._n.length,rr.resolve()},e.prototype.hs=function(e,t){return this.cs(e)},e.prototype.cs=function(e){return 0===this._n.length?0:e-this._n[0].batchId},e.prototype.os=function(e){var t=this.cs(e);return t<0||t>=this._n.length?null:this._n[t]},e}(),Bi=function(){function e(e,t){this.Ut=e,this.ls=t,this.docs=new jt(W.comparator),this.size=0}return e.prototype.addEntry=function(e,t,n){var r=t.key,i=this.docs.get(r),o=i?i.size:0,a=this.ls(t);return this.docs=this.docs.insert(r,{document:t.clone(),size:a,readTime:n}),this.size+=a-o,this.Ut.addToCollectionParentIndex(e,r.path.popLast())},e.prototype.removeEntry=function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)},e.prototype.getEntry=function(e,t){var n=this.docs.get(t);return rr.resolve(n?n.document.clone():ue.newInvalidDocument(t))},e.prototype.getEntries=function(e,t){var n=this,r=Rt();return t.forEach((function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.clone():ue.newInvalidDocument(e))})),rr.resolve(r)},e.prototype.getDocumentsMatchingQuery=function(e,t,n){for(var r=Rt(),i=new W(t.path.child("")),o=this.docs.getIteratorFrom(i);o.hasNext();){var a=o.getNext(),s=a.key,u=a.value,c=u.document,l=u.readTime;if(!t.path.isPrefixOf(s.path))break;l.compareTo(n)<=0||qe(t,c)&&(r=r.insert(c.key,c.clone()))}return rr.resolve(r)},e.prototype.fs=function(e,t){return rr.forEach(this.docs,(function(e){return t(e)}))},e.prototype.newChangeBuffer=function(e){return new zi(this)},e.prototype.getSize=function(e){return rr.resolve(this.size)},e}(),zi=function(e){function t(t){var n=this;return(n=e.call(this)||this).Ie=t,n}return Object(a.__extends)(t,e),t.prototype.applyChanges=function(e){var t=this,n=[];
2return this.changes.forEach((function(r,i){i.document.isValidDocument()?n.push(t.Ie.addEntry(e,i.document,t.getReadTime(r))):t.Ie.removeEntry(r)})),rr.waitFor(n)},t.prototype.getFromCache=function(e,t){return this.Ie.getEntry(e,t)},t.prototype.getAllFromCache=function(e,t){return this.Ie.getEntries(e,t)},t}(ii),qi=function(){function e(e){this.persistence=e,this.ds=new ri((function(e){return fe(e)}),de),this.lastRemoteSnapshotVersion=E.min(),this.highestTargetId=0,this.ws=0,this._s=new Fi,this.targetCount=0,this.ys=Wr.Jt()}return e.prototype.forEachTarget=function(e,t){return this.ds.forEach((function(e,n){return t(n)})),rr.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(e){return rr.resolve(this.lastRemoteSnapshotVersion)},e.prototype.getHighestSequenceNumber=function(e){return rr.resolve(this.ws)},e.prototype.allocateTargetId=function(e){return this.highestTargetId=this.ys.next(),rr.resolve(this.highestTargetId)},e.prototype.setTargetsMetadata=function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.ws&&(this.ws=t),rr.resolve()},e.prototype.te=function(e){this.ds.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.ys=new Wr(t),this.highestTargetId=t),e.sequenceNumber>this.ws&&(this.ws=e.sequenceNumber)},e.prototype.addTargetData=function(e,t){return this.te(t),this.targetCount+=1,rr.resolve()},e.prototype.updateTargetData=function(e,t){return this.te(t),rr.resolve()},e.prototype.removeTargetData=function(e,t){return this.ds.delete(t.target),this._s.Zn(t.targetId),this.targetCount-=1,rr.resolve()},e.prototype.removeTargets=function(e,t,n){var r=this,i=0,o=[];return this.ds.forEach((function(a,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.ds.delete(a),o.push(r.removeMatchingKeysForTargetId(e,s.targetId)),i++)})),rr.waitFor(o).next((function(){return i}))},e.prototype.getTargetCount=function(e){return rr.resolve(this.targetCount)},e.prototype.getTargetData=function(e,t){var n=this.ds.get(t)||null;return rr.resolve(n)},e.prototype.addMatchingKeys=function(e,t,n){return this._s.Jn(t,n),rr.resolve()},e.prototype.removeMatchingKeys=function(e,t,n){this._s.Xn(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((function(t){i.push(r.markPotentiallyOrphaned(e,t))})),rr.waitFor(i)},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this._s.Zn(t),rr.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this._s.es(t);return rr.resolve(n)},e.prototype.containsKey=function(e,t){return rr.resolve(this._s.containsKey(t))},e}(),Gi=function(){function e(e,t){var n=this;this.gs={},this.Ne=new s(0),this.xe=!1,this.xe=!0,this.referenceDelegate=e(this),this.qe=new qi(this),this.Ut=new Pr,this.Ue=function(e,t){return new Bi(e,(function(e){return n.referenceDelegate.ps(e)}))}(this.Ut),this.R=new yr(t),this.Qe=new Di(this.R)}return e.prototype.start=function(){return Promise.resolve()},e.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(e.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),e.prototype.setDatabaseDeletedListener=function(){},e.prototype.setNetworkEnabled=function(){},e.prototype.getIndexManager=function(){return this.Ut},e.prototype.getMutationQueue=function(e){var t=this.gs[e.toKey()];return t||(t=new Ui(this.Ut,this.referenceDelegate),this.gs[e.toKey()]=t),t},e.prototype.getTargetCache=function(){return this.qe},e.prototype.getRemoteDocumentCache=function(){return this.Ue},e.prototype.getBundleCache=function(){return this.Qe},e.prototype.runTransaction=function(e,t,n){var r=this;d("MemoryPersistence","Starting transaction:",e);var i=new Wi(this.Ne.next());return this.referenceDelegate.Es(),n(i).next((function(e){return r.referenceDelegate.Ts(i).next((function(){return e}))})).toPromise().then((function(e){return i.raiseOnCommittedEvent(),e}))},e.prototype.Is=function(e,t){return rr.or(Object.values(this.gs).map((function(n){return function(){return n.containsKey(e,t)}})))},e}(),Wi=function(e){function t(t){var n=this;return(n=e.call(this)||this).currentSequenceNumber=t,n}return Object(a.__extends)(t,e),t}(tr),Hi=function(){function e(e){this.persistence=e,this.As=new Fi,this.Rs=null}return e.bs=function(t){return new e(t)},Object.defineProperty(e.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;
2throw v()},enumerable:!1,configurable:!0}),e.prototype.addReference=function(e,t,n){return this.As.addReference(n,t),this.vs.delete(n.toString()),rr.resolve()},e.prototype.removeReference=function(e,t,n){return this.As.removeReference(n,t),this.vs.add(n.toString()),rr.resolve()},e.prototype.markPotentiallyOrphaned=function(e,t){return this.vs.add(t.toString()),rr.resolve()},e.prototype.removeTarget=function(e,t){var n=this;this.As.Zn(t.targetId).forEach((function(e){return n.vs.add(e.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.vs.add(e.toString())}))})).next((function(){return r.removeTargetData(e,t)}))},e.prototype.Es=function(){this.Rs=new Set},e.prototype.Ts=function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return rr.forEach(this.vs,(function(r){var i=W.fromPath(r);return t.Ps(e,i).next((function(e){e||n.removeEntry(i)}))})).next((function(){return t.Rs=null,n.apply(e)}))},e.prototype.updateLimboDocument=function(e,t){var n=this;return this.Ps(e,t).next((function(e){e?n.vs.delete(t.toString()):n.vs.add(t.toString())}))},e.prototype.ps=function(e){return 0},e.prototype.Ps=function(e,t){var n=this;return rr.or([function(){return rr.resolve(n.As.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Is(e,t)}])},e}(),Ki=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e}();function Xi(e,t){return"firestore_clients_"+e+"_"+t}function Yi(e,t,n){var r="firestore_mutations_"+e+"_"+n;return t.isAuthenticated()&&(r+="_"+t.uid),r}function $i(e,t){return"firestore_targets_"+e+"_"+t}Ki.UNAUTHENTICATED=new Ki(null),Ki.GOOGLE_CREDENTIALS=new Ki("google-credentials-uid"),Ki.FIRST_PARTY=new Ki("first-party-uid");var Qi=function(){function e(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}return e.Vs=function(t,n,r){var i,o=JSON.parse(r),a="object"==typeof o&&-1!==["pending","acknowledged","rejected"].indexOf(o.state)&&(void 0===o.error||"object"==typeof o.error);return a&&o.error&&(a="string"==typeof o.error.message&&"string"==typeof o.error.code)&&(i=new c(o.error.code,o.error.message)),a?new e(t,n,o.state,i):(h("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},e.prototype.Ss=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}(),Ji=function(){function e(e,t,n){this.targetId=e,this.state=t,this.error=n}return e.Vs=function(t,n){var r,i=JSON.parse(n),o="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return o&&i.error&&(o="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new c(i.error.code,i.error.message)),o?new e(t,i.state,r):(h("SharedClientState","Failed to parse target state for ID '"+t+"': "+n),null)},e.prototype.Ss=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}(),Zi=function(){function e(e,t){this.clientId=e,this.activeTargetIds=t}return e.Vs=function(t,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,o=qt(),a=0;i&&a<r.activeTargetIds.length;++a)i=G(r.activeTargetIds[a]),o=o.add(r.activeTargetIds[a]);return i?new e(t,o):(h("SharedClientState","Failed to parse client data for instance '"+t+"': "+n),null)},e}(),eo=function(){function e(e,t){this.clientId=e,this.onlineState=t}return e.Vs=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):(h("SharedClientState","Failed to parse online state: "+t),null)},e}(),to=function(){function e(){this.activeTargetIds=qt()}return e.prototype.Ds=function(e){this.activeTargetIds=this.activeTargetIds.add(e)},e.prototype.Cs=function(e){this.activeTargetIds=this.activeTargetIds.delete(e)},e.prototype.Ss=function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)},e}(),no=function(){function e(e,t,n,r,i){this.window=e,this.Se=t,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.Fs.bind(this),this.ks=new jt(w),this.started=!1,this.$s=[];var o=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Os=Xi(this.persistenceKey,this.Ns),this.Ms=function(e){return"firestore_sequence_number_"+e}(this.persistenceKey),this.ks=this.ks.insert(this.Ns,new to),this.Ls=new RegExp("^firestore_clients_"+o+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+o+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+o+"_(\\d+)$"),this.Us=function(e){return"firestore_online_state_"+e}(this.persistenceKey),this.Qs=function(e){return"firestore_bundle_loaded_"+e}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return e.yt=function(e){return!(!e||!e.localStorage)},e.prototype.start=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,o,s,u,c,l,f,d=this;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return[4,this.syncEngine.fn()];case 1:for(e=a.sent(),t=0,n=e;t<n.length;t++)(r=n[t])!==this.Ns&&(i=this.getItem(Xi(this.persistenceKey,r)))&&(o=Zi.Vs(r,i))&&(this.ks=this.ks.insert(o.clientId,o));for(this.Ks(),(s=this.storage.getItem(this.Us))&&(u=this.js(s))&&this.Ws(u),c=0,l=this.$s;c<l.length;c++)f=l[c],this.Fs(f);return this.$s=[],this.window.addEventListener("pagehide",(function(){return d.shutdown()})),this.started=!0,[2]}}))}))},e.prototype.writeSequenceNumber=function(e){this.setItem(this.Ms,JSON.stringify(e))},e.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.ks)},e.prototype.isActiveQueryTarget=function(e){var t=!1;return this.ks.forEach((function(n,r){r.activeTargetIds.has(e)&&(t=!0)})),t},e.prototype.addPendingMutation=function(e){this.zs(e,"pending")},e.prototype.updateMutationState=function(e,t,n){this.zs(e,t,n),this.Hs(e)},e.prototype.addLocalQueryTarget=function(e){var t="not-current";if(this.isActiveQueryTarget(e)){var n=this.storage.getItem($i(this.persistenceKey,e));if(n){var r=Ji.Vs(e,n);r&&(t=r.state)}}return this.Js.Ds(e),this.Ks(),t},e.prototype.removeLocalQueryTarget=function(e){this.Js.Cs(e),this.Ks()},e.prototype.isLocalQueryTarget=function(e){return this.Js.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){this.removeItem($i(this.persistenceKey,e))}
2,e.prototype.updateQueryState=function(e,t,n){this.Ys(e,t,n)},e.prototype.handleUserChange=function(e,t,n){var r=this;t.forEach((function(e){r.Hs(e)})),this.currentUser=e,n.forEach((function(e){r.addPendingMutation(e)}))},e.prototype.setOnlineState=function(e){this.Xs(e)},e.prototype.notifyBundleLoaded=function(){this.Zs()},e.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},e.prototype.getItem=function(e){var t=this.storage.getItem(e);return d("SharedClientState","READ",e,t),t},e.prototype.setItem=function(e,t){d("SharedClientState","SET",e,t),this.storage.setItem(e,t)},e.prototype.removeItem=function(e){d("SharedClientState","REMOVE",e),this.storage.removeItem(e)},e.prototype.Fs=function(e){var t=this,n=e;if(n.storageArea===this.storage){if(d("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void h("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var e,t,r,i,o,u;return Object(a.__generator)(this,(function(a){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return e=this.ti(n.key),[2,this.ei(e,null)];if(t=this.ni(n.key,n.newValue))return[2,this.ei(t.clientId,t)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(o=this.js(n.newValue)))return[2,this.Ws(o)]}else if(n.key===this.Ms)(u=function(e){var t=s.o;if(null!=e)try{var n=JSON.parse(e);m("number"==typeof n),t=n}catch(e){h("SharedClientState","Failed to read sequence number from WebStorage",e)}return t}(n.newValue))!==s.o&&this.sequenceNumberHandler(u);else if(n.key===this.Qs)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]}))}))}))}},Object.defineProperty(e.prototype,"Js",{get:function(){return this.ks.get(this.Ns)},enumerable:!1,configurable:!0}),e.prototype.Ks=function(){this.setItem(this.Os,this.Js.Ss())},e.prototype.zs=function(e,t,n){var r=new Qi(this.currentUser,e,t,n),i=Yi(this.persistenceKey,this.currentUser,e);this.setItem(i,r.Ss())},e.prototype.Hs=function(e){var t=Yi(this.persistenceKey,this.currentUser,e);this.removeItem(t)},e.prototype.Xs=function(e){var t={clientId:this.Ns,onlineState:e};this.storage.setItem(this.Us,JSON.stringify(t))},e.prototype.Ys=function(e,t,n){var r=$i(this.persistenceKey,e),i=new Ji(e,t,n);this.setItem(r,i.Ss())},e.prototype.Zs=function(){this.setItem(this.Qs,"value-not-used")},e.prototype.ti=function(e){var t=this.Ls.exec(e);return t?t[1]:null},e.prototype.ni=function(e,t){var n=this.ti(e);return Zi.Vs(n,t)},e.prototype.si=function(e,t){var n=this.Bs.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return Qi.Vs(new Ki(i),r,t)},e.prototype.ri=function(e,t){var n=this.qs.exec(e),r=Number(n[1]);return Ji.Vs(r,t)},e.prototype.js=function(e){return eo.Vs(e)},e.prototype.ii=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return e.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(e.batchId,e.state,e.error)]:(d("SharedClientState","Ignoring mutation for non-active user "+e.user.uid),[2])}))}))},e.prototype.oi=function(e){return this.syncEngine.ai(e.targetId,e.state,e.error)},e.prototype.ei=function(e,t){var n=this,r=t?this.ks.insert(e,t):this.ks.remove(e),i=this.Gs(this.ks),o=this.Gs(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.syncEngine.hi(a,s).then((function(){n.ks=r}))},e.prototype.Ws=function(e){this.ks.get(e.clientId)&&this.onlineStateHandler(e.onlineState)},e.prototype.Gs=function(e){var t=qt();return e.forEach((function(e,n){t=t.unionWith(n.activeTargetIds)})),t},e}(),ro=function(){function e(){this.li=new to,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return e.prototype.addPendingMutation=function(e){},e.prototype.updateMutationState=function(e,t,n){},e.prototype.addLocalQueryTarget=function(e){return this.li.Ds(e),this.fi[e]||"not-current"},e.prototype.updateQueryState=function(e,t,n){this.fi[e]=t},e.prototype.removeLocalQueryTarget=function(e){this.li.Cs(e)},e.prototype.isLocalQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.clearQueryState=function(e){delete this.fi[e]},e.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},e.prototype.isActiveQueryTarget=function(e){return this.li.activeTargetIds.has(e)},e.prototype.start=function(){return this.li=new to,Promise.resolve()},e.prototype.handleUserChange=function(e,t,n){},e.prototype.setOnlineState=function(e){},e.prototype.shutdown=function(){},e.prototype.writeSequenceNumber=function(e){},e.prototype.notifyBundleLoaded=function(){},e}(),io=function(){function e(){}return e.prototype.di=function(e){},e.prototype.shutdown=function(){},e}(),oo=function(){function e(){var e=this;this.wi=function(){return e._i()},this.mi=function(){return e.yi()},this.gi=[],this.pi()}return e.prototype.di=function(e){this.gi.push(e)},e.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},e.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},e.prototype._i=function(){d("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(0)},e.prototype.yi=function(){d("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var e=0,t=this.gi;e<t.length;e++)(0,t[e])(1)},e.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},e}(),ao={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},so=function(){function e(e){this.Ei=e.Ei,this.Ti=e.Ti}return e.prototype.Ii=function(e){this.Ai=e},e.prototype.Ri=function(e){this.bi=e},e.prototype.onMessage=function(e){this.vi=e},e.prototype.close=function(){this.Ti()},e.prototype.send=function(e){this.Ei(e)},e.prototype.Pi=function(){this.Ai()},e.prototype.Vi=function(e){this.bi(e)},e.prototype.Si=function(e){this.vi(e)},e}(),uo=function(e){function t(t){var n=this;return(n=e.call(this,t)||this).forceLongPolling=t.forceLongPolling,n.autoDetectLongPolling=t.autoDetectLongPolling,n.useFetchStreams=t.useFetchStreams,n}return Object(a.__extends)(t,e),t.prototype.ki=function(e,t,n,r){return new Promise((function(i,a){var s=new o.g;
2s.listenOnce(o.c.COMPLETE,(function(){try{switch(s.getLastErrorCode()){case o.a.NO_ERROR:var t=s.getResponseJson();d("Connection","XHR received:",JSON.stringify(t)),i(t);break;case o.a.TIMEOUT:d("Connection",'RPC "'+e+'" timed out'),a(new c(u.DEADLINE_EXCEEDED,"Request time out"));break;case o.a.HTTP_ERROR:var n=s.getStatus();if(d("Connection",'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0){var r=s.getResponseJson().error;if(r&&r.status&&r.message){var l=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(u).indexOf(t)>=0?t:u.UNKNOWN}(r.status);a(new c(l,r.message))}else a(new c(u.UNKNOWN,"Server responded with status "+s.getStatus()))}else a(new c(u.UNAVAILABLE,"Connection failed."));break;default:v()}}finally{d("Connection",'RPC "'+e+'" completed.')}}));var l=JSON.stringify(r);s.send(t,"POST",l,n,15)}))},t.prototype.Oi=function(e,t){var n=[this.Di,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=Object(o.h)(),a=Object(o.i)(),s={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(s.xmlHttpFactory=new o.d({})),this.Fi(s.initMessageHeaders,t),Object(r.isMobileCordova)()||Object(r.isReactNative)()||Object(r.isElectron)()||Object(r.isIE)()||Object(r.isUWP)()||Object(r.isBrowserExtension)()||(s.httpHeadersOverwriteParam="$httpHeaders");var l=n.join("");d("Connection","Creating WebChannel: "+l,s);var f=i.createWebChannel(l,s),h=!1,g=!1,v=new so({Ei:function(e){g?d("Connection","Not sending because WebChannel is closed:",e):(h||(d("Connection","Opening WebChannel transport."),f.open(),h=!0),d("Connection","WebChannel sending:",e),f.send(e))},Ti:function(){return f.close()}}),y=function(e,t,n){e.listen(t,(function(e){try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return y(f,o.f.EventType.OPEN,(function(){g||d("Connection","WebChannel transport opened.")})),y(f,o.f.EventType.CLOSE,(function(){g||(g=!0,d("Connection","WebChannel transport closed"),v.Vi())})),y(f,o.f.EventType.ERROR,(function(e){g||(g=!0,p("Connection","WebChannel transport errored:",e),v.Vi(new c(u.UNAVAILABLE,"The operation could not be completed")))})),y(f,o.f.EventType.MESSAGE,(function(e){var t;if(!g){var n=e.data[0];m(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){d("Connection","WebChannel received error:",i);var o=i.status,a=function(e){var t=xt[e];if(void 0!==t)return Tt(t)}(o),s=i.message;void 0===a&&(a=u.INTERNAL,s="Unknown error status: "+o+" with message "+i.message),g=!0,v.Vi(new c(a,s)),f.close()}else d("Connection","WebChannel received:",n),v.Si(n)}})),y(a,o.b.STAT_EVENT,(function(e){e.stat===o.e.PROXY?d("Connection","Detected buffering proxy"):e.stat===o.e.NOPROXY&&d("Connection","Detected no buffering proxy")})),setTimeout((function(){v.Pi()}),0),v},t}(function(){function e(e){this.databaseInfo=e,this.databaseId=e.databaseId;var t=e.ssl?"https":"http";this.Di=t+"://"+e.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return e.prototype.Ni=function(e,t,n,r){var i=this.xi(e,t);d("RestConnection","Sending: ",i,n);var o={};return this.Fi(o,r),this.ki(e,i,o,n).then((function(e){return d("RestConnection","Received: ",e),e}),(function(t){throw p("RestConnection",e+" failed with error: ",t,"url: ",i,"request:",n),t}))},e.prototype.$i=function(e,t,n,r){return this.Ni(e,t,n,r)},e.prototype.Fi=function(e,t){if(e["X-Goog-Api-Client"]="gl-js/ fire/8.6.7",e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n])},e.prototype.xi=function(e,t){var n=ao[e];return this.Di+"/v1/"+t+":"+n},e}());function co(){return"undefined"!=typeof window?window:null}function lo(){return"undefined"!=typeof document?document:null}function fo(e){return new tn(e,!0)}var ho=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.Se=e,this.timerId=t,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Qi=Date.now(),this.reset()}return e.prototype.reset=function(){this.qi=0},e.prototype.Ki=function(){this.qi=this.Bi},e.prototype.ji=function(e){var t=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Qi),i=Math.max(0,n-r);i>
20&&d("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,(function(){return t.Qi=Date.now(),e()})),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},e.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},e.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},e.prototype.Wi=function(){return(Math.random()-.5)*this.qi},e}(),po=function(){function e(e,t,n,r,i,o){this.Se=e,this.zi=n,this.Hi=r,this.Ji=i,this.listener=o,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new ho(e,t)}return e.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},e.prototype.er=function(){return 2===this.state},e.prototype.start=function(){3!==this.state?this.auth():this.nr()},e.prototype.stop=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
2))}))},e.prototype.sr=function(){this.state=0,this.Zi.reset()},e.prototype.ir=function(){var e=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,(function(){return e.rr()})))},e.prototype.cr=function(e){this.ur(),this.stream.send(e)},e.prototype.rr=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.er()?[2,this.close(0)]:[2]}))}))},e.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},e.prototype.close=function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==e?this.Zi.reset():t&&t.code===u.RESOURCE_EXHAUSTED?(h(t.toString()),h("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Ki()):t&&t.code===u.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=e,[4,this.listener.Ri(t)];case 1:return n.sent(),[2]}}))}))},e.prototype.ar=function(){},e.prototype.auth=function(){var e=this;this.state=1;var t=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then((function(t){e.Yi===n&&e.lr(t)}),(function(n){t((function(){var t=new c(u.UNKNOWN,"Fetching auth token failed: "+n.message);return e.dr(t)}))}))},e.prototype.lr=function(e){var t=this,n=this.hr(this.Yi);this.stream=this.wr(e),this.stream.Ii((function(){n((function(){return t.state=2,t.listener.Ii()}))})),this.stream.Ri((function(e){n((function(){return t.dr(e)}))})),this.stream.onMessage((function(e){n((function(){return t.onMessage(e)}))}))},e.prototype.nr=function(){var e=this;this.state=4,this.Zi.ji((function(){return Object(a.__awaiter)(e,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.state=0,this.start(),[2]}))}))}))},e.prototype.dr=function(e){return d("PersistentStream","close with error: "+e),this.stream=null,this.close(3,e)},e.prototype.hr=function(e){var t=this;return function(n){t.Se.enqueueAndForget((function(){return t.Yi===e?n():(d("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},e}(),go=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).R=i,a}return Object(a.__extends)(t,e),t.prototype.wr=function(e){return this.Hi.Oi("Listen",e)},t.prototype.onMessage=function(e){this.Zi.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:v()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],o=function(e,t){return e.I?(m(void 0===t||"string"==typeof t),M.fromBase64String(t||"")):(m(void 0===t||t instanceof Uint8Array),M.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),a=(s=t.targetChange.cause)&&function(e){var t=void 0===e.code?u.UNKNOWN:Tt(e.code);return new c(t,e.message||"")}(s);n=new Xt(r,i,o,a||null)}else if("documentChange"in t){t.documentChange,(r=t.documentChange).document,r.document.name,r.document.updateTime,i=ln(e,r.document.name),o=an(r.document.updateTime);var s=new ae({mapValue:{fields:r.document.fields}}),l=(a=ue.newFoundDocument(i,o,s),r.targetIds||[]),f=r.removedTargetIds||[];n=new Ht(l,f,a.key,a)}else if("documentDelete"in t)t.documentDelete,(r=t.documentDelete).document,i=ln(e,r.document),o=r.readTime?an(r.readTime):E.min(),s=ue.newNoDocument(i,o),a=r.removedTargetIds||[],n=new Ht([],a,s.key,s);else if("documentRemove"in t)t.documentRemove,(r=t.documentRemove).document,i=ln(e,r.document),o=r.removedTargetIds||[],n=new Ht([],o,i,null);else{if(!("filter"in t))return v();t.filter;var d=t.filter;d.targetId,r=d.count||0,i=new kt(r),o=d.targetId,n=new Kt(o,i)}return n}(this.R,e),n=function(e){if(!("targetChange"in e))return E.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?E.min():t.readTime?an(t.readTime):E.min()}(e);return this.listener._r(t,n)},t.prototype.mr=function(e){var t={};t.database=hn(this.R),t.addTarget=function(e,t){var n,r=t.target;return(n=he(r)?{documents:bn(e,r)}:{query:_n(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=rn(e,t.resumeToken):t.snapshotVersion.compareTo(E.min())>0&&(n.readTime=nn(e,t.snapshotVersion.toTimestamp())),n}(this.R,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 v()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.R,e);n&&(t.labels=n),this.cr(t)},t.prototype.yr=function(e){var t={};t.database=hn(this.R),t.removeTarget=e,this.cr(t)},t}(po),vo=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).R=i,a.gr=!1,a}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"pr",{get:function(){return this.gr}
2,enumerable:!1,configurable:!0}),t.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,e.prototype.start.call(this)},t.prototype.ar=function(){this.gr&&this.Er([])},t.prototype.wr=function(e){return this.Hi.Oi("Write",e)},t.prototype.onMessage=function(e){if(m(!!e.streamToken),this.lastStreamToken=e.streamToken,this.gr){this.Zi.reset();var t=function(e,t){return e&&e.length>0?(m(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?an(e.updateTime):an(t);return n.isEqual(E.min())&&(n=an(t)),new ut(n,e.transformResults||[])}(e,t)}))):[]}(e.writeResults,e.commitTime),n=an(e.commitTime);return this.listener.Tr(n,t)}return m(!e.writeResults||0===e.writeResults.length),this.gr=!0,this.listener.Ir()},t.prototype.Ar=function(){var e={};e.database=hn(this.R),this.cr(e)},t.prototype.Er=function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return mn(t.R,e)}))};this.cr(n)},t}(po),mo=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).credentials=t,i.Hi=n,i.R=r,i.Rr=!1,i}return Object(a.__extends)(t,e),t.prototype.br=function(){if(this.Rr)throw new c(u.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.Ni=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Ni(e,t,n,i)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===u.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new c(u.UNKNOWN,e.toString())}))},t.prototype.$i=function(e,t,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.$i(e,t,n,i)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===u.UNAUTHENTICATED&&r.credentials.invalidateToken(),e):new c(u.UNKNOWN,e.toString())}))},t.prototype.terminate=function(){this.Rr=!0},t}((function(){})),yo=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return e.prototype.Sr=function(){var e=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return e.Pr=null,e.Cr("Backend didn't respond within 10 seconds."),e.Dr("Offline"),Promise.resolve()})))},e.prototype.Nr=function(e){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.Fr(),this.Cr("Connection failed 1 times. Most recent error: "+e.toString()),this.Dr("Offline")))},e.prototype.set=function(e){this.Fr(),this.vr=0,"Online"===e&&(this.Vr=!1),this.Dr(e)},e.prototype.Dr=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.Cr=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.Vr?(h(t),this.Vr=!1):d("OnlineStateTracker",t)},e.prototype.Fr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},e}(),bo=function(e,t,n,r,i){var o=this;this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.kr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di((function(e){n.enqueueAndForget((function(){return Object(a.__awaiter)(o,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return To(this)?(d("RemoteStore","Restarting streams for network reachability change."),[4,function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return(t=y(e)).Or.add(4),[4,wo(t)];case 1:return n.sent(),t.Br.set("Unknown"),t.Or.delete(4),[4,_o(t)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}
2))}))}))})),this.Br=new yo(n,r)};function _o(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:if(!To(e))return[3,4];t=0,n=e.Mr,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 wo(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:t=0,n=e.Mr,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 xo(e,t){var n=y(e);n.$r.has(t.targetId)||(n.$r.set(t.targetId,t),Co(n)?ko(n):qo(n).er()&&So(n,t))}function Oo(e,t){var n=y(e),r=qo(n);n.$r.delete(t),r.er()&&Eo(n,t),0===n.$r.size&&(r.er()?r.ir():To(n)&&n.Br.set("Unknown"))}function So(e,t){e.qr.U(t.targetId),qo(e).mr(t)}function Eo(e,t){e.qr.U(t),qo(e).yr(t)}function ko(e){e.qr=new $t({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},lt:function(t){return e.$r.get(t)||null}}),qo(e).start(),e.Br.Sr()}function Co(e){return To(e)&&!qo(e).tr()&&e.$r.size>0}function To(e){return 0===y(e).Or.size}function jo(e){e.qr=void 0}function Io(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return e.$r.forEach((function(t,n){So(e,t)})),[2]}))}))}function Ao(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(n){return jo(e),Co(e)?(e.Br.Nr(t),ko(e)):e.Br.set("Unknown"),[2]}))}))}function Po(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(a.__generator)(this,(function(s){switch(s.label){case 0:if(e.Br.set("Online"),!(t instanceof Xt&&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 Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:n=t.cause,r=0,i=t.targetIds,a.label=1;case 1:return r<i.length?(o=i[r],e.$r.has(o)?[4,e.remoteSyncer.rejectListen(o,n)]:[3,3]):[3,5];case 2:a.sent(),e.$r.delete(o),e.qr.removeTarget(o),a.label=3;case 3:a.label=4;case 4:return r++,[3,1];case 5:return[2]}}
2))}))}(e,t)];case 2:return s.sent(),[3,5];case 3:return r=s.sent(),d("RemoteStore","Failed to remove targets %s: %s ",t.targetIds.join(","),r),[4,No(e,r)];case 4:return s.sent(),[3,5];case 5:return[3,13];case 6:if(t instanceof Ht?e.qr.X(t):t instanceof Kt?e.qr.rt(t):e.qr.et(t),n.isEqual(E.min()))return[3,13];s.label=7;case 7:return s.trys.push([7,11,,13]),[4,Ei(e.localStore)];case 8:return i=s.sent(),n.compareTo(i)>=0?[4,function(e,t){var n=e.qr.ut(t);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.$r.get(r);i&&e.$r.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach((function(t){var n=e.$r.get(t);if(n){e.$r.set(t,n.withResumeToken(M.EMPTY_BYTE_STRING,n.snapshotVersion)),Eo(e,t);var r=new mr(n.target,t,1,n.sequenceNumber);So(e,r)}})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)]:[3,10];case 9:s.sent(),s.label=10;case 10:return[3,13];case 11:return d("RemoteStore","Failed to raise snapshot:",o=s.sent()),[4,No(e,o)];case 12:return s.sent(),[3,13];case 13:return[2]}}
2))}))}function No(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r=this;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:if(!ur(t))throw t;return e.Or.add(1),[4,wo(e)];case 1:return i.sent(),e.Br.set("Offline"),n||(n=function(){return Ei(e.localStore)}),e.asyncQueue.enqueueRetryable((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return d("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return t.sent(),e.Or.delete(1),[4,_o(e)];case 2:return t.sent(),[2]}}))}))})),[2]}}))}))}function Mo(e,t){return t().catch((function(n){return No(e,n,t)}))}function Ro(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:t=y(e),n=Go(t),r=t.kr.length>0?t.kr[t.kr.length-1].batchId:-1,a.label=1;case 1:if(!function(e){return To(e)&&e.kr.length<10}(t))return[3,7];a.label=2;case 2:return a.trys.push([2,4,,6]),[4,Ti(t.localStore,r)];case 3:return null===(i=a.sent())?(0===t.kr.length&&n.ir(),[3,7]):(r=i.batchId,function(e,t){e.kr.push(t);var n=Go(e);n.er()&&n.pr&&n.Er(t.mutations)}(t,i),[3,6]);case 4:return o=a.sent(),[4,No(t,o)];case 5:return a.sent(),[3,6];case 6:return[3,1];case 7:return Lo(t)&&Do(t),[2]}}))}))}function Lo(e){return To(e)&&!Go(e).tr()&&e.kr.length>0}function Do(e){Go(e).start()}function Fo(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){return Go(e).Ar(),[2]}))}))}function Vo(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(a.__generator)(this,(function(o){for(t=Go(e),n=0,r=e.kr;n<r.length;n++)i=r[n],t.Er(i.mutations);return[2]}))}))}function Uo(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return r=e.kr.shift(),i=vr.from(r,t,n),[4,Mo(e,(function(){return e.remoteSyncer.applySuccessfulWrite(i)}))];case 1:return o.sent(),[4,Ro(e)];case 2:return o.sent(),[2]}}))}))}function Bo(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t&&Go(e).pr?[4,function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return Ct(r=t.code)&&r!==u.ABORTED?(n=e.kr.shift(),Go(e).sr(),[4,Mo(e,(function(){return e.remoteSyncer.rejectFailedWrite(n.batchId,t)}))]):[3,3];case 1:return i.sent(),[4,Ro(e)];case 2:i.sent(),i.label=3;case 3:return[2]}}
2))}))}(e,t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return Lo(e)&&Do(e),[2]}}))}))}function zo(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return n=y(e),t?(n.Or.delete(2),[4,_o(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return t?[3,4]:(n.Or.add(2),[4,wo(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function qo(e){var t=this;return e.Ur||(e.Ur=function(e,t,n){var r=y(e);return r.br(),new go(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:Io.bind(null,e),Ri:Ao.bind(null,e),_r:Po.bind(null,e)}),e.Mr.push((function(n){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return n?(e.Ur.sr(),Co(e)?ko(e):e.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,e.Ur.stop()];case 2:t.sent(),jo(e),t.label=3;case 3:return[2]}}))}))}))),e.Ur}function Go(e){var t=this;return e.Qr||(e.Qr=function(e,t,n){var r=y(e);return r.br(),new vo(t,r.Hi,r.credentials,r.R,n)}(e.datastore,e.asyncQueue,{Ii:Fo.bind(null,e),Ri:Bo.bind(null,e),Ir:Vo.bind(null,e),Tr:Uo.bind(null,e)}),e.Mr.push((function(n){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return n?(e.Qr.sr(),[4,Ro(e)]):[3,2];case 1:return t.sent(),[3,4];case 2:return[4,e.Qr.stop()];case 3:t.sent(),e.kr.length>0&&(d("RemoteStore","Stopping write stream with "+e.kr.length+" pending writes"),e.kr=[]),t.label=4;case 4:return[2]}}
2))}))}))),e.Qr}var Wo=function(){function e(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new nr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return e.createAndSchedule=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.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new c(u.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}();function Ho(e,t){if(h("AsyncQueue",t+": "+e),ur(e))return new c(u.UNAVAILABLE,t+": "+e);throw e}var Ko=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||W.comparator(t.key,n.key)}:function(e,t){return W.comparator(e.key,t.key)},this.keyedMap=Dt(),this.sortedSet=new jt(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.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.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().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.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r},e}(),Xo=function(){function e(){this.Kr=new jt(W.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.Kr.get(t);n?0!==e.type&&3===n.type?this.Kr=this.Kr.insert(t,e):3===e.type&&1!==n.type?this.Kr=this.Kr.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Kr=this.Kr.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Kr=this.Kr.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Kr=this.Kr.remove(t):1===e.type&&2===n.type?this.Kr=this.Kr.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Kr=this.Kr.insert(t,{type:2,doc:e.doc}):v():this.Kr=this.Kr.insert(t,e)},e.prototype.jr=function(){var e=[];return this.Kr.inorderTraversal((function(t,n){e.push(n)})),e},e}(),Yo=function(){function e(e,t,n,r,i,o,a,s){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return e.fromInitialDocuments=function(t,n,r,i){var o=[];return n.forEach((function(e){o.push({type:0,doc:e})})),new e(t,n,Ko.emptySet(n),o,r,i,!0,!1)},Object.defineProperty(e.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){if(!(this.fromCache===e.fromCache&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Ue(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))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}(),$o=function(){this.Wr=void 0,this.listeners=[]},Qo=function(){this.queries=new ri((function(e){return Be(e)}),Ue),this.onlineState="Unknown",this.Gr=new Set};function Jo(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u,c;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:if(n=y(e),r=t.query,i=!1,(o=n.queries.get(r))||(i=!0,o=new $o),!i)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),s=o,[4,n.onListen(r)];case 2:return s.Wr=a.sent(),[3,4];case 3:return u=a.sent(),c=Ho(u,"Initialization of query '"+ze(t.query)+"' failed"),[2,void t.onError(c)];case 4:return n.queries.set(r,o),o.listeners.push(t),t.zr(n.onlineState),o.Wr&&t.Hr(o.Wr)&&na(n),[2]}}))}))}function Zo(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a.__generator)(this,(function(a){return n=y(e),r=t.query,i=!1,(o=n.queries.get(r))&&(s=o.listeners.indexOf(t))>=0&&(o.listeners.splice(s,1),i=0===o.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]}))}))}function ea(e,t){for(var n=y(e),r=!1,i=0,o=t;i<o.length;i++){var a=o[i],s=a.query,u=n.queries.get(s);if(u){for(var c=0,l=u.listeners;c<l.length;c++)l[c].Hr(a)&&(r=!0);u.Wr=a}}r&&na(n)}function ta(e,t,n){var r=y(e),i=r.queries.get(t);if(i)for(var o=0,a=i.listeners;o<a.length;o++)a[o].onError(n);r.queries.delete(t)}function na(e){e.Gr.forEach((function(e){e.next()}))}var ra=function(){function e(e,t,n){this.query=e,this.Jr=t,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return e.prototype.Hr=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 Yo(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0)}var o=!1;return this.Yr?this.Zr(e)&&(this.Jr.next(e),o=!0):this.eo(e,this.onlineState)&&(this.no(e),o=!0),this.Xr=e,o},e.prototype.onError=function(e){this.Jr.error(e)},e.prototype.zr=function(e){this.onlineState=e;var t=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,e)&&(this.no(this.Xr),t=!0),t},e.prototype.eo=function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return!(this.options.so&&n||e.docs.isEmpty()&&"Offline"!==t)},e.prototype.Zr=function(e){if(e.docChanges.length>0)return!0;var t=this.Xr&&this.Xr.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.no=function(e){e=Yo.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache),this.Yr=!0,this.Jr.next(e)},e}(),ia=function(){function e(e,t){this.payload=e,this.byteLength=t}return e.prototype.io=function(){return"metadata"in this.payload},e}(),oa=function(){function e(e){this.R=e}return e.prototype.qn=function(e){return ln(this.R,e)},e.prototype.Un=function(e){return e.metadata.exists?vn(this.R,e.document,!1):ue.newNoDocument(this.qn(e.metadata.name),this.Qn(e.metadata.readTime))},e.prototype.Qn=function(e){return an(e)},e}(),aa=function(){function e(e,t,n){this.ro=e,this.localStore=t,this.R=n,this.queries=[],this.documents=[],this.progress=sa(e)}return e.prototype.oo=function(e){this.progress.bytesLoaded+=e.byteLength;var t=this.progress.documentsLoaded;return e.payload.namedQuery?this.queries.push(e.payload.namedQuery):e.payload.documentMetadata?(this.documents.push({metadata:e.payload.documentMetadata}),e.payload.documentMetadata.exists||++t):e.payload.document&&(this.documents[this.documents.length-1].document=e.payload.document,++t),t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null},e.prototype.co=function(e){for(var t=new Map,n=new oa(this.R),r=0,i=e;r<i.length;r++){var o=i[r];if(o.metadata.queries)for(var a=n.qn(o.metadata.name),s=0,u=o.metadata.queries;s<u.length;s++){var c=u[s],l=(t.get(c)||Bt()).add(a);t.set(c,l)}}return t},e.prototype.complete=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return[4,Ri(this.localStore,new oa(this.R),this.documents,this.ro.id)];case 1:e=o.sent(),t=this.co(this.documents),n=0,r=this.queries,o.label=2;case 2:return n<r.length?(i=r[n],[4,Li(this.localStore,i,t.get(i.name))]):[3,5];case 3:o.sent(),o.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new mi(Object.assign({},this.progress),e))]}}))}))},e}();function sa(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}var ua=function(e){this.key=e},ca=function(e){this.key=e},la=function(){function e(e,t){this.query=e,this.uo=t,this.ao=null,this.current=!1,this.ho=Bt(),this.mutatedKeys=Bt(),this.lo=Ge(e),this.fo=new Ko(this.lo)}return Object.defineProperty(e.prototype,"wo",{get:function(){return this.uo}
2,enumerable:!1,configurable:!0}),e.prototype._o=function(e,t){var n=this,r=t?t.mo:new Xo,i=t?t.fo:this.fo,o=t?t.mutatedKeys:this.mutatedKeys,a=i,s=!1,u=Pe(this.query)&&i.size===this.query.limit?i.last():null,c=Ne(this.query)&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((function(e,t){var l=i.get(e),f=qe(n.query,t)?t:null,d=!!l&&n.mutatedKeys.has(l.key),h=!!f&&(f.hasLocalMutations||n.mutatedKeys.has(f.key)&&f.hasCommittedMutations),p=!1;l&&f?l.data.isEqual(f.data)?d!==h&&(r.track({type:3,doc:f}),p=!0):n.yo(l,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.lo(f,u)>0||c&&n.lo(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=h?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)))})),Pe(this.query)||Ne(this.query))for(;a.size>this.query.limit;){var l=Pe(this.query)?a.last():a.first();a=a.delete(l.key),o=o.delete(l.key),r.track({type:1,doc:l})}return{fo:a,mo:r,Nn:s,mutatedKeys:o}},e.prototype.yo=function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations},e.prototype.applyChanges=function(e,t,n){var r=this,i=this.fo;this.fo=e.fo,this.mutatedKeys=e.mutatedKeys;var o=e.mo.jr();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 v()}};return n(e)-n(t)}(e.type,t.type)||r.lo(e.doc,t.doc)})),this.po(n);var a=t?this.Eo():[],s=0===this.ho.size&&this.current?1:0,u=s!==this.ao;return this.ao=s,0!==o.length||u?{snapshot:new Yo(this.query,e.fo,i,o,e.mutatedKeys,0===s,u,!1),To:a}:{To:a}},e.prototype.zr=function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({fo:this.fo,mo:new Xo,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},e.prototype.Io=function(e){return!this.uo.has(e)&&!!this.fo.has(e)&&!this.fo.get(e).hasLocalMutations},e.prototype.po=function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t.uo=t.uo.add(e)})),e.modifiedDocuments.forEach((function(e){})),e.removedDocuments.forEach((function(e){return t.uo=t.uo.delete(e)})),this.current=e.current)},e.prototype.Eo=function(){var e=this;if(!this.current)return[];var t=this.ho;this.ho=Bt(),this.fo.forEach((function(t){e.Io(t.key)&&(e.ho=e.ho.add(t.key))}));var n=[];return t.forEach((function(t){e.ho.has(t)||n.push(new ca(t))})),this.ho.forEach((function(e){t.has(e)||n.push(new ua(e))})),n},e.prototype.Ao=function(e){this.uo=e.Bn,this.ho=Bt();var t=this._o(e.documents);return this.applyChanges(t,!0)},e.prototype.Ro=function(){return Yo.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},e}(),fa=function(e,t,n){this.query=e,this.targetId=t,this.view=n},da=function(e){this.key=e,this.bo=!1},ha=function(){function e(e,t,n,r,i,o){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=o,this.vo={},this.Po=new ri((function(e){return Be(e)}),Ue),this.Vo=new Map,this.So=new Set,this.Do=new jt(W.comparator),this.Co=new Map,this.No=new Fi,this.xo={},this.Fo=new Map,this.ko=Wr.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(e.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),e}();function pa(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n=qa(e),(o=n.Po.get(t))?(r=o.targetId,n.sharedClientState.addLocalQueryTarget(r),i=o.view.Ro(),[3,4]):[3,1];case 1:return[4,ji(n.localStore,Fe(t))];case 2:return s=a.sent(),u=n.sharedClientState.addLocalQueryTarget(s.targetId),r=s.targetId,[4,ga(n,t,r,"current"===u)];case 3:i=a.sent(),n.isPrimaryClient&&xo(n.remoteStore,s),a.label=4;case 4:return[2,i]}}))}))}function ga(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o,s,u,c,l;return Object(a.__generator)(this,(function(f){switch(f.label){case 0:return e.Oo=function(t,n,r){return function(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return(i=t.view._o(n)).Nn?[4,Ai(e.localStore,t.query,!1).then((function(e){var n=e.documents;return t.view._o(n,i)}))]:[3,2];case 1:i=a.sent(),a.label=2;case 2:return o=r&&r.targetChanges.get(t.targetId),s=t.view.applyChanges(i,e.isPrimaryClient,o),[2,(Ta(e,t.targetId,s.To),s.snapshot)]}}))}))}(e,t,n,r)},[4,Ai(e.localStore,t,!0)];case 1:return i=f.sent(),o=new la(t,i.Bn),s=o._o(i.documents),u=Wt.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState),c=o.applyChanges(s,e.isPrimaryClient,u),Ta(e,n,c.To),l=new fa(t,n,o),[2,(e.Po.set(t,l),e.Vo.has(n)?e.Vo.get(n).push(t):e.Vo.set(n,[t]),c.snapshot)]}}))}))}function va(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return n=y(e),r=n.Po.get(t),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter((function(e){return!Ue(e,t)}
2))),void n.Po.delete(t))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,Ii(n.localStore,r.targetId,!1).then((function(){n.sharedClientState.clearQueryState(r.targetId),Oo(n.remoteStore,r.targetId),ka(n,r.targetId)})).catch($r)]):[3,3];case 1:o.sent(),o.label=2;case 2:return[3,5];case 3:return ka(n,r.targetId),[4,Ii(n.localStore,r.targetId,!0)];case 4:o.sent(),o.label=5;case 5:return[2]}}))}))}function ma(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:r=Ga(e),a.label=1;case 1:return a.trys.push([1,5,,6]),[4,function(e,t){var n,r=y(e),i=S.now(),o=t.reduce((function(e,t){return e.add(t.key)}),Bt());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(e){return r.Mn.pn(e,o).next((function(o){n=o;for(var a=[],s=0,u=t;s<u.length;s++){var c=u[s],l=pt(c,n.get(c.key));null!=l&&a.push(new yt(c.key,l,se(l.value.mapValue),ct.exists(!0)))}return r._n.addMutationBatch(e,i,a,t)}))})).then((function(e){return e.applyToLocalDocumentSet(n),{batchId:e.batchId,changes:n}}))}(r.localStore,t)];
2case 2:return i=a.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(e,t,n){var r=e.xo[e.currentUser.toKey()];r||(r=new jt(w)),r=r.insert(t,n),e.xo[e.currentUser.toKey()]=r}(r,i.batchId,n),[4,Aa(r,i.changes)];case 3:return a.sent(),[4,Ro(r.remoteStore)];case 4:return a.sent(),[3,6];case 5:return o=a.sent(),s=Ho(o,"Failed to persist write"),n.reject(s),[3,6];case 6:return[2]}}))}))}function ya(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:n=y(e),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,ki(n.localStore,t)];case 2:return r=i.sent(),t.targetChanges.forEach((function(e,t){var r=n.Co.get(t);r&&(m(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.bo=!0:e.modifiedDocuments.size>0?m(r.bo):e.removedDocuments.size>0&&(m(r.bo),r.bo=!1))})),[4,Aa(n,r,t)];case 3:return i.sent(),[3,6];case 4:return[4,$r(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))}function ba(e,t,n){var r=y(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach((function(e,n){var r=n.view.zr(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=y(e);n.onlineState=t;var r=!1;n.queries.forEach((function(e,n){for(var i=0,o=n.listeners;i<o.length;i++)o[i].zr(t)&&(r=!0)})),r&&na(n)}(r.eventManager,t),i.length&&r.vo._r(i),r.onlineState=t,r.isPrimaryClient&&r.sharedCl
2ientState.setOnlineState(t)}}function _a(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s,u,c;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return(r=y(e)).sharedClientState.updateQueryState(t,"rejected",n),i=r.Co.get(t),(o=i&&i.key)?(s=(s=new jt(W.comparator)).insert(o,ue.newNoDocument(o,E.min())),u=Bt().add(o),c=new Gt(E.min(),new Map,new Pt(w),s,u),[4,ya(r,c)]):[3,2];case 1:return a.sent(),r.Do=r.Do.remove(o),r.Co.delete(t),Ia(r),[3,4];case 2:return[4,Ii(r.localStore,t,!1).then((function(){return ka(r,t,n)})).catch($r)];case 3:a.sent(),a.label=4;case 4:return[2]}}))}))}function wa(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:n=y(e),r=t.batch.batchId,o.label=1;case 1:return o.trys.push([1,4,,6]),[4,Si(n.localStore,t)];case 2:return i=o.sent(),Ea(n,r,null),Sa(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,Aa(n,i)];case 3:return o.sent(),[3,6];case 4:return[4,$r(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}
2))}))}function xa(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:r=y(e),o.label=1;case 1:return o.trys.push([1,4,,6]),[4,function(e,t){var n=y(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;return n._n.lookupMutationBatch(e,t).next((function(t){return m(null!==t),r=t.keys(),n._n.removeMutationBatch(e,t)})).next((function(){return n._n.performConsistencyCheck(e)})).next((function(){return n.Mn.pn(e,r)}))}))}(r.localStore,t)];case 2:return i=o.sent(),Ea(r,t,n),Sa(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),[4,Aa(r,i)];case 3:return o.sent(),[3,6];case 4:return[4,$r(o.sent())];case 5:return o.sent(),[3,6];case 6:return[2]}}))}))}function Oa(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:To((n=y(e)).remoteStore)||d("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,function(e){var t=y(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(e){return t._n.getHighestUnacknowledgedBatchId(e)}))}(n.localStore)];case 2:return-1===(r=a.sent())?[2,void t.resolve()]:((i=n.Fo.get(r)||[]).push(t),n.Fo.set(r,i),[3,4]);case 3:return o=a.sent(),s=Ho(o,"Initialization of waitForPendingWrites() operation failed"),t.reject(s),[3,4];case 4:return[2]}}
2))}))}function Sa(e,t){(e.Fo.get(t)||[]).forEach((function(e){e.resolve()})),e.Fo.delete(t)}function Ea(e,t,n){var r=y(e),i=r.xo[r.currentUser.toKey()];if(i){var o=i.get(t);o&&(n?o.reject(n):o.resolve(),i=i.remove(t)),r.xo[r.currentUser.toKey()]=i}}function ka(e,t,n){void 0===n&&(n=null),e.sharedClientState.removeLocalQueryTarget(t);for(var r=0,i=e.Vo.get(t);r<i.length;r++){var o=i[r];e.Po.delete(o),n&&e.vo.Mo(o,n)}e.Vo.delete(t),e.isPrimaryClient&&e.No.Zn(t).forEach((function(t){e.No.containsKey(t)||Ca(e,t)}))}function Ca(e,t){e.So.delete(t.path.canonicalString());var n=e.Do.get(t);null!==n&&(Oo(e.remoteStore,n),e.Do=e.Do.remove(t),e.Co.delete(n),Ia(e))}function Ta(e,t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r];o instanceof ua?(e.No.addReference(o.key,t),ja(e,o)):o instanceof ca?(d("SyncEngine","Document no longer in limbo: "+o.key),e.No.removeReference(o.key,t),e.No.containsKey(o.key)||Ca(e,o.key)):v()}}function ja(e,t){var n=t.key,r=n.path.canonicalString();e.Do.get(n)||e.So.has(r)||(d("SyncEngine","New document in limbo: "+n),e.So.add(r),Ia(e))}function Ia(e){for(;e.So.size>0&&e.Do.size<e.maxConcurrentLimboResolutions;){var t=e.So.values().next().value;e.So.delete(t);var n=new W(I.fromString(t)),r=e.ko.next();e.Co.set(r,new da(n)),e.Do=e.Do.insert(n,r),xo(e.remoteStore,new mr(Fe(Ae(n.path)),r,2,s.o))}}function Aa(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s;return Object(a.__generator)(this,(function(u){switch(u.label){case 0:return r=y(e),i=[],o=[],s=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach((function(e,a){s.push(r.Oo(a,t,n).then((function(e){if(e){r.isPrimaryClient&&r.sharedCl
2ientState.updateQueryState(a.targetId,e.fromCache?"not-current":"current"),i.push(e);var t=bi.Pn(a.targetId,e);o.push(t)}})))})),[4,Promise.all(s)]);case 1:return u.sent(),r.vo._r(i),[4,function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l,f;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:n=y(e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return rr.forEach(t,(function(t){return rr.forEach(t.bn,(function(r){return n.persistence.referenceDelegate.addReference(e,t.targetId,r)})).next((function(){return rr.forEach(t.vn,(function(r){return n.persistence.referenceDelegate.removeReference(e,t.targetId,r)}))}))}))}))];case 2:return a.sent(),[3,4];case 3:if(!ur(r=a.sent()))throw r;return d("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,o=t;i<o.length;i++)s=o[i],u=s.targetId,s.fromCache||(c=n.Fn.get(u),l=c.snapshotVersion,f=c.withLastLimboFreeSnapshotVersion(l),n.Fn=n.Fn.insert(u,f));return[2]}}))}))}(r.localStore,o)];case 2:u.sent(),u.label=3;case 3:return[2]}}
2))}))}function Pa(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return(n=y(e)).currentUser.isEqual(t)?[3,3]:(d("SyncEngine","User change. New user:",t.toKey()),[4,Oi(n.localStore,t)]);case 1:return r=i.sent(),n.currentUser=t,function(e,t){e.Fo.forEach((function(e){e.forEach((function(e){e.reject(new c(u.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.Fo.clear()}(n),n.sharedClientState.handleUserChange(t,r.removedBatchIds,r.addedBatchIds),[4,Aa(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))}function Na(e,t){var n=y(e),r=n.Co.get(t);if(r&&r.bo)return Bt().add(r.key);var i=Bt(),o=n.Vo.get(t);if(!o)return i;for(var a=0,s=o;a<s.length;a++){var u=s[a],c=n.Po.get(u);i=i.unionWith(c.view.wo)}return i}function Ma(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return[4,Ai((n=y(e)).localStore,t.query,!0)];case 1:return r=o.sent(),i=t.view.Ao(r),[2,(n.isPrimaryClient&&Ta(n,t.targetId,i.To),i)]}}))}))}function Ra(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){return[2,Ni((t=y(e)).localStore).then((function(e){return Aa(t,e)}))]}))}))}function La(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return[4,function(e,t){var n=y(e),r=y(n._n);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(e){return r.jt(e,t).next((function(t){return t?n.Mn.pn(e,t):rr.resolve(null)}))}))}((i=y(e)).localStore,t)];case 1:return null===(o=a.sent())?[3,6]:"pending"!==n?[3,3]:[4,Ro(i.remoteStore)];case 2:return a.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(Ea(i,t,r||null),Sa(i,t),function(e,t){y(y(e)._n).Gt(t)}(i.localStore,t)):v(),a.label=4;case 4:return[4,Aa(i,o)];case 5:return a.sent(),[3,7];case 6:d("SyncEngine","Cannot apply mutation batch with id: "+t),a.label=7;case 7:return[2]}}
2))}))}function Da(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return qa(n=y(e)),Ga(n),!0!==t||!0===n.$o?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,Fa(n,r.toArray())]);case 1:return i=a.sent(),n.$o=!0,[4,zo(n.remoteStore,!0)];case 2:for(a.sent(),o=0,s=i;o<s.length;o++)u=s[o],xo(n.remoteStore,u);return[3,7];case 3:return!1!==t||!1===n.$o?[3,7]:(c=[],l=Promise.resolve(),n.Vo.forEach((function(e,t){n.sharedClientState.isLocalQueryTarget(t)?c.push(t):l=l.then((function(){return ka(n,t),Ii(n.localStore,t,!0)})),Oo(n.remoteStore,t)})),[4,l]);case 4:return a.sent(),[4,Fa(n,c)];case 5:return a.sent(),function(e){var t=y(e);t.Co.forEach((function(e,n){Oo(t.remoteStore,n)})),t.No.ts(),t.Co=new Map,t.Do=new jt(W.comparator)}(n),n.$o=!1,[4,zo(n.remoteStore,!1)];case 6:a.sent(),a.label=7;case 7:return[2]}}))}))}function Fa(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u,c,l,f,d,h,p,g,v;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:n=y(e),r=[],i=[],o=0,s=t,a.label=1;case 1:return o<s.length?(u=s[o],c=void 0,(l=n.Vo.get(u))&&0!==l.length?[4,ji(n.localStore,Fe(l[0]))]:[3,7]):[3,13];case 2:c=a.sent(),f=0,d=l,a.label=3;case 3:return f<d.length?(h=d[f],p=n.Po.get(h),[4,Ma(n,p)]):[3,6];case 4:(g=a.sent()).snapshot&&i.push(g.snapshot),a.label=5;case 5:return f++,[3,3];case 6:return[3,11];case 7:return[4,Pi(n.localStore,u)];case 8:return v=a.sent(),[4,ji(n.localStore,v)];case 9:return c=a.sent(),[4,ga(n,Va(v),u,!1)];case 10:a.sent(),a.label=11;case 11:r.push(c),a.label=12;case 12:return o++,[3,1];case 13:return[2,(n.vo._r(i),r)]}}))}))}function Va(e){return Ie(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function Ua(e){var t=y(e);return y(y(t.localStore).persistence).fn()}function Ba(e,t,n,r){return Object(a.__awaiter)(this,void 0,void 0,(function(){var i,o,s;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return(i=y(e)).$o?(d("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.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,Ni(i.localStore)];case 3:return o=a.sent(),s=Gt.createSynthesizedRemoteEventForCurrentChange(t,"current"===n),[4,Aa(i,o,s)];case 4:return a.sent(),[3,8];case 5:return[4,Ii(i.localStore,t,!0)];case 6:return a.sent(),ka(i,t,r),[3,8];case 7:v(),a.label=8;case 8:return[2]}}
2))}))}function za(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s,u,c,l,f,h,p;return Object(a.__generator)(this,(function(g){switch(g.label){case 0:if(!(r=qa(e)).$o)return[3,10];i=0,o=t,g.label=1;case 1:return i<o.length?(s=o[i],r.Vo.has(s)?(d("SyncEngine","Adding an already active target "+s),[3,5]):[4,Pi(r.localStore,s)]):[3,6];case 2:return u=g.sent(),[4,ji(r.localStore,u)];case 3:return c=g.sent(),[4,ga(r,Va(u),c.targetId,!1)];case 4:g.sent(),xo(r.remoteStore,c),g.label=5;case 5:return i++,[3,1];case 6:l=function(e){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return r.Vo.has(e)?[4,Ii(r.localStore,e,!1).then((function(){Oo(r.remoteStore,e),ka(r,e)})).catch($r)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))},f=0,h=n,g.label=7;case 7:return f<h.length?(p=h[f],[5,l(p)]):[3,10];case 8:g.sent(),g.label=9;case 9:return f++,[3,7];case 10:return[2]}}))}))}function qa(e){var t=y(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=ya.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=Na.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=_a.bind(null,t),t.vo._r=ea.bind(null,t.eventManager),t.vo.Mo=ta.bind(null,t.eventManager),t}function Ga(e){var t=y(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=wa.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=xa.bind(null,t),t}function Wa(e,t,n){var r=y(e);(function(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s,u,c;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,14,,15]),[4,t.getMetadata()];case 1:return r=a.sent(),[4,function(e,t){var n=y(e),r=an(t.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",(function(e){return n.Qe.getBundleMetadata(e,t.id)})).then((function(e){return!!e&&e.createTime.compareTo(r)>=0}))}(e.localStore,r)];case 2:return a.sent()?[4,t.close()]:[3,4];case 3:return[2,(a.sent(),void n._completeWith(function(e){return{taskState:"Success",documentsLoaded:e.totalDocuments,bytesLoaded:e.totalBytes,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}(r)))];case 4:return n._updateProgress(sa(r)),i=new aa(r,e.localStore,t.R),[4,t.Lo()];case 5:o=a.sent(),a.label=6;case 6:return o?[4,i.oo(o)]:[3,10];
2case 7:return(s=a.sent())&&n._updateProgress(s),[4,t.Lo()];case 8:o=a.sent(),a.label=9;case 9:return[3,6];case 10:return[4,i.complete()];case 11:return u=a.sent(),[4,Aa(e,u.wn,void 0)];case 12:return a.sent(),[4,function(e,t){var n=y(e);return n.persistence.runTransaction("Save bundle","readwrite",(function(e){return n.Qe.saveBundleMetadata(e,t)}))}(e.localStore,r)];case 13:return a.sent(),n._completeWith(u.progress),[3,15];case 14:return p("SyncEngine","Loading bundle failed with "+(c=a.sent())),n._failWith(c),[3,15];case 15:return[2]}}))}))})(r,t,n).then((function(){r.sharedClientState.notifyBundleLoaded()}))}var Ha=function(){function e(){this.synchronizeTabs=!1}return e.prototype.initialize=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return this.R=fo(e.databaseInfo.databaseId),this.sharedClientState=this.Bo(e),this.persistence=this.qo(e),[4,this.persistence.start()];case 1:return t.sent(),this.gcScheduler=this.Uo(e),this.localStore=this.Qo(e),[2]}}))}))},e.prototype.Uo=function(e){return null},e.prototype.Qo=function(e){return xi(this.persistence,new _i,e.initialUser,this.R)},e.prototype.qo=function(e){return new Gi(Hi.bs,this.R)},e.prototype.Bo=function(e){return new ro},e.prototype.terminate=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return e.sent(),[4,this.persistence.shutdown()];case 2:return e.sent(),[2]}}))}))},e}(),Ka=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).Ko=t,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return Object(a.__extends)(t,e),t.prototype.initialize=function(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return n.sent(),[4,Mi(this.localStore)];case 2:return n.sent(),[4,this.Ko.initialize(this,t)];case 3:return n.sent(),[4,Ga(this.Ko.syncEngine)];case 4:return n.sent(),[4,Ro(this.Ko.remoteStore)];case 5:return n.sent(),[2]}}))}))},t.prototype.Qo=function(e){return xi(this.persistence,new _i,e.initialUser,this.R)},t.prototype.Uo=function(e){var t=this.persistence.referenceDelegate.garbageCollector;return new Zr(t,e.asyncQueue)},t.prototype.qo=function(e){var t=vi(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?Dr.withCacheSize(this.cacheSizeBytes):Dr.DEFAULT;return new hi(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,co(),lo(),this.R,this.sharedClientState,!!this.forceOwnership)},t.prototype.Bo=function(e){return new ro},t}(Ha),Xa=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n,!1)||this).Ko=t,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return Object(a.__extends)(t,e),t.prototype.initialize=function(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r=this;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,e.prototype.initialize.call(this,t)];case 1:return i.sent(),n=this.Ko.syncEngine,this.sharedClientState instanceof no?(this.sharedClientState.syncEngine={ui:La.bind(null,n),ai:Ba.bind(null,n),hi:za.bind(null,n),fn:Ua.bind(null,n),ci:Ra.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He((function(e){return Object(a.__awaiter)(r,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,Da(this.Ko.syncEngine,e)];case 1:return t.sent(),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):e||this.gcScheduler.stop()),[2]}}))}))}))];case 4:return i.sent(),[2]}}))}))},t.prototype.Bo=function(e){var t=co();if(!no.yt(t))throw new c(u.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=vi(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new no(t,e.asyncQueue,n,e.clientId,e.initialUser)},t}(Ka),Ya=function(){function e(){}return e.prototype.initialize=function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n=this;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=e.localStore,this.sharedCl
2ientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return ba(n.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=Pa.bind(null,this.syncEngine),[4,zo(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},e.prototype.createEventManager=function(e){return new Qo},e.prototype.createDatastore=function(e){var t,n=fo(e.databaseInfo.databaseId),r=(t=e.databaseInfo,new uo(t));return function(e,t,n){return new mo(e,t,n)}(e.credentials,r,n)},e.prototype.createRemoteStore=function(e){var t,n,r,i,o,a=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return ba(a.syncEngine,e,0)},o=oo.yt()?new oo:new io,new bo(t,n,r,i,o)},e.prototype.createSyncEngine=function(e,t){return function(e,t,n,r,i,o,a){var s=new ha(e,t,n,r,i,o);return a&&(s.$o=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)},e.prototype.terminate=function(){return function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=y(e),d("RemoteStore","RemoteStore shutting down."),t.Or.add(5),[4,wo(t)];case 1:return n.sent(),t.Lr.shutdown(),t.Br.set("Unknown"),[2]}}))}))}(this.remoteStore)},e}();function $a(e,t){void 0===t&&(t=10240);var n=0;return{read:function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(i){return n<e.byteLength?(r={value:e.slice(n,n+t),done:!1},[2,(n+=t,r)]):[2,{done:!0}]}))}))},cancel:function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return[2]}))}))},releaseLock:function(){},closed:Promise.reject("unimplemented")}}var Qa=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.observer.next&&this.jo(this.observer.next,e)},e.prototype.error=function(e){this.observer.error?this.jo(this.observer.error,e):console.error("Uncaught Error in snapshot listener:",e)},e.prototype.Wo=function(){this.muted=!0},e.prototype.jo=function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)},e}(),Ja=function(){function e(e,t){var n=this;this.Go=e,this.R=t,this.metadata=new nr,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then((function(e){e&&e.io()?n.metadata.resolve(e.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n             "+JSON.stringify(null==e?void 0:e.payload)))}),(function(e){return n.metadata.reject(e)}))}return e.prototype.close=function(){return this.Go.cancel()},e.prototype.getMetadata=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return[2,this.metadata.promise]}))}))},e.prototype.Lo=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.getMetadata()];case 1:return[2,(e.sent(),this.Ho())]}}))}))},e.prototype.Ho=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(e=i.sent())?[2,null]:(t=this.zo.decode(e),n=Number(t),isNaN(n)&&this.Yo("length string ("+t+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new ia(JSON.parse(r),e.length+n)]}}))}))},e.prototype.Zo=function(){return this.buffer.findIndex((function(e){return e==="{".charCodeAt(0)}))},e.prototype.Jo=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((e=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),t=this.buffer.slice(0,e),[2,(this.buffer=this.buffer.slice(e),t)])}}))}))},e.prototype.Xo=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return this.buffer.length<e?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return t=this.zo.decode(this.buffer.slice(0,e)),[2,(this.buffer=this.buffer.slice(e),t)]}}))}))},e.prototype.Yo=function(e){throw this.Go.cancel(),new Error("Invalid bundle format: "+e)},e.prototype.tc=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return[4,this.Go.read()];case 1:return(e=n.sent()).done||((t=new Uint8Array(this.buffer.length+e.value.length)).set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t),[2,e.done]}}))}))},e}(),Za=function(){function e(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return e.prototype.lookup=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new c(u.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,s,u;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return n=y(e),r=hn(n.R)+"/documents",i={documents:t.map((function(e){return cn(n.R,e)}))},[4,n.$i("BatchGetDocuments",r,i)];case 1:return o=a.sent(),s=new Map,o.forEach((function(e){var t=function(e,t){return"found"in t?function(e,t){m(!!t.found),t.found.name,t.found.updateTime;var n=ln(e,t.found.name),r=an(t.found.updateTime),i=new ae({mapValue:{fields:t.found.fields}});return ue.newFoundDocument(n,r,i)}(e,t):"missing"in t?function(e,t){m(!!t.missing),m(!!t.readTime);var n=ln(e,t.missing),r=an(t.readTime);return ue.newNoDocument(n,r)}(e,t):v()}(n.R,e);s.set(t.key.toString(),t)})),u=[],[2,(t.forEach((function(e){var t=s.get(e.toString());m(!!t),u.push(t)})),u)]}}))}))}(this.datastore,e)];
2case 1:return[2,((t=r.sent()).forEach((function(e){return n.recordVersion(e)})),t)]}}))}))},e.prototype.set=function(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.update=function(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastWriteError=e}this.writtenDocs.add(e.toString())},e.prototype.delete=function(e){this.write(new St(e,this.precondition(e))),this.writtenDocs.add(e.toString())},e.prototype.commit=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t=this;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return e=this.readVersions,this.mutations.forEach((function(t){e.delete(t.key.toString())})),e.forEach((function(e,n){var r=W.fromPath(n);t.mutations.push(new Et(r,t.precondition(r)))})),[4,function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return n=y(e),r=hn(n.R)+"/documents",i={writes:t.map((function(e){return mn(n.R,e)}))},[4,n.Ni("Commit",r,i)];case 1:return o.sent(),[2]}}))}))}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}}))}))},e.prototype.recordVersion=function(e){var t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw v();t=E.min()}var n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new c(u.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)},e.prototype.precondition=function(e){var t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?ct.updateTime(t):ct.none()},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(E.min()))throw new c(u.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ct.updateTime(t)}return ct.exists(!0)},e.prototype.write=function(e){this.ensureCommitNotCalled(),this.mutations.push(e)},e.prototype.ensureCommitNotCalled=function(){},e}(),es=function(){function e(e,t,n,r){this.asyncQueue=e,this.datastore=t,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new ho(this.asyncQueue,"transaction_retry")}return e.prototype.run=function(){this.nc()},e.prototype.nc=function(){var e=this;this.Zi.ji((function(){return Object(a.__awaiter)(e,void 0,void 0,(function(){var e,t,n=this;return Object(a.__generator)(this,(function(r){return e=new Za(this.datastore),(t=this.sc(e))&&t.then((function(t){n.asyncQueue.enqueueAndForget((function(){return e.commit().then((function(){n.deferred.resolve(t)})).catch((function(e){n.ic(e)}))}))})).catch((function(e){n.ic(e)})),[2]}))}))}))},e.prototype.sc=function(e){try{var t=this.updateFunction(e);return!z(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(e){return this.deferred.reject(e),null}},e.prototype.ic=function(e){var t=this;this.ec>0&&this.rc(e)?(this.ec-=1,this.asyncQueue.enqueueAndForget((function(){return t.nc(),Promise.resolve()}))):this.deferred.reject(e)},e.prototype.rc=function(e){if("FirebaseError"===e.name){var t=e.code;return"aborted"===t||"failed-precondition"===t||!Ct(t)}return!1},e}(),ts=function(){function e(e,t,n){var r=this;this.credentials=e,this.asyncQueue=t,this.databaseInfo=n,this.user=Ki.UNAUTHENTICATED,this.clientId=_.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(t,(function(e){return Object(a.__awaiter)(r,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return d("FirestoreClient","Received user=",e.uid),[4,this.credentialListener(e)];case 1:return t.sent(),this.user=e,[2]}}))}))}))}return e.prototype.getConfiguration=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]}))}))},e.prototype.setCredentialChangeListener=function(e){this.credentialListener=e},e.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new c(u.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.terminate=function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new nr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((function(){return Object(a.__awaiter)(e,void 0,void 0,(function(){var e,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),t.resolve(),[3,6];case 5:return e=r.sent(),n=Ho(e,"Failed to shutdown persistence"),t.reject(n),[3,6];case 6:return[2]}}
2))}))})),t.promise},e}();function ns(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r,i=this;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return e.asyncQueue.verifyOperationInProgress(),d("FirestoreClient","Initializing OfflineComponentProvider"),[4,e.getConfiguration()];case 1:return n=o.sent(),[4,t.initialize(n)];case 2:return o.sent(),r=n.initialUser,e.setCredentialChangeListener((function(e){return Object(a.__awaiter)(i,void 0,void 0,(function(){return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return r.isEqual(e)?[3,2]:[4,Oi(t.localStore,e)];case 1:n.sent(),r=e,n.label=2;case 2:return[2]}}))}))})),t.persistence.setDatabaseDeletedListener((function(){return e.terminate()})),e.offlineComponents=t,[2]}}))}))}function rs(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return e.asyncQueue.verifyOperationInProgress(),[4,is(e)];case 1:return n=i.sent(),d("FirestoreClient","Initializing OnlineComponentProvider"),[4,e.getConfiguration()];case 2:return r=i.sent(),[4,t.initialize(n,r)];case 3:return i.sent(),e.setCredentialChangeListener((function(e){return function(e,t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return(n=y(e)).asyncQueue.verifyOperationInProgress(),d("RemoteStore","RemoteStore received new credentials"),r=To(n),n.Or.add(3),[4,wo(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(t)];case 2:return i.sent(),n.Or.delete(3),[4,_o(n)];case 3:return i.sent(),[2]}}))}))}(t.remoteStore,e)})),e.onlineComponents=t,[2]}}))}))}function is(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return e.offlineComponents?[3,2]:(d("FirestoreClient","Using default OfflineComponentProvider"),[4,ns(e,new Ha)]);case 1:t.sent(),t.label=2;case 2:return[2,e.offlineComponents]}}))}))}function os(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return e.onlineComponents?[3,2]:(d("FirestoreClient","Using default OnlineComponentProvider"),[4,rs(e,new Ya)]);case 1:t.sent(),t.label=2;case 2:return[2,e.onlineComponents]}}))}))}function as(e){return is(e).then((function(e){return e.persistence}))}function ss(e){return is(e).then((function(e){return e.localStore}))}function us(e){return os(e).then((function(e){return e.remoteStore}))}function cs(e){return os(e).then((function(e){return e.syncEngine}))}function ls(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,os(e)];case 1:return t=r.sent(),[2,((n=t.eventManager).onListen=pa.bind(null,t.syncEngine),n.onUnlisten=va.bind(null,t.syncEngine),n)]}}))}))}function fs(e,t,n){var r=this;void 0===n&&(n={});var i=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new Qa({next:function(o){t.enqueueAndForget((function(){return Zo(e,a)}));var s=o.docs.has(n);!s&&o.fromCache?i.reject(new c(u.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&o.fromCache&&r&&"server"===r.source?i.reject(new c(u.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 ra(Ae(n.path),o,{includeMetadataChanges:!0,so:!0});return Jo(e,a)},[4,ls(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}}))}))})),i.promise}function ds(e,t,n){var r=this;void 0===n&&(n={});var i=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return r=function(e,t,n,r,i){var o=new Qa({next:function(n){t.enqueueAndForget((function(){return Zo(e,a)})),n.fromCache&&"server"===r.source?i.reject(new c(u.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 ra(n,o,{includeMetadataChanges:!0,so:!0});return Jo(e,a)},[4,ls(e)];case 1:return[2,r.apply(void 0,[o.sent(),e.asyncQueue,t,n,i])]}}))}))})),i.promise}var hs=function(e,t,n,r,i,o,a,s){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=o,this.autoDetectLongPolling=a,this.useFetchStreams=s},ps=function(){function e(e,t){this.projectId=e,this.database=t||"(default)"}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
2,enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e}(),gs=new Map,vs=function(e,t){this.user=t,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+e},ms=function(){function e(){this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(null)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){this.changeListener=t,e.enqueueRetryable((function(){return t(Ki.UNAUTHENTICATED)}))},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),ys=function(){function e(e){this.token=e,this.changeListener=null}return e.prototype.getToken=function(){return Promise.resolve(this.token)},e.prototype.invalidateToken=function(){},e.prototype.setChangeListener=function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable((function(){return t(n.token.user)}))},e.prototype.removeChangeListener=function(){this.changeListener=null},e}(),bs=function(){function e(e){var t=this;this.currentUser=Ki.UNAUTHENTICATED,this.oc=new nr,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){t.cc++,t.currentUser=t.ac(),t.oc.resolve(),t.changeListener&&t.asyncQueue.enqueueRetryable((function(){return t.changeListener(t.currentUser)}))};var n=function(e){d("FirebaseCredentialsProvider","Auth detected"),t.auth=e,t.auth.addAuthTokenListener(t.uc)};e.onInit((function(e){return n(e)})),setTimeout((function(){if(!t.auth){var r=e.getImmediate({optional:!0});r?n(r):(d("FirebaseCredentialsProvider","Auth not yet detected"),t.oc.resolve())}}),0)}return e.prototype.getToken=function(){var e=this,t=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.cc!==t?(d("FirebaseCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(m("string"==typeof n.accessToken),new vs(n.accessToken,e.currentUser)):null})):Promise.resolve(null)},e.prototype.invalidateToken=function(){this.forceRefresh=!0},e.prototype.setChangeListener=function(e,t){var n=this;this.asyncQueue=e,this.asyncQueue.enqueueRetryable((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.oc.promise];case 1:return e.sent(),[4,t(this.currentUser)];case 2:return e.sent(),this.changeListener=t,[2]}}))}))}))},e.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},e.prototype.ac=function(){var e=this.auth&&this.auth.getUid();return m(null===e||"string"==typeof e),new Ki(e)},e}(),_s=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n,this.type="FirstParty",this.user=Ki.FIRST_PARTY}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){var e={"X-Goog-AuthUser":this.lc},t=this.hc.auth.getAuthHeaderValueForFirstParty([]);return t&&(e.Authorization=t),this.fc&&(e["X-Goog-Iam-Authorization-Token"]=this.fc),e},enumerable:!1,configurable:!0}),e}(),ws=function(){function e(e,t,n){this.hc=e,this.lc=t,this.fc=n}return e.prototype.getToken=function(){return Promise.resolve(new _s(this.hc,this.lc,this.fc))},e.prototype.setChangeListener=function(e,t){e.enqueueRetryable((function(){return t(Ki.FIRST_PARTY)}))},e.prototype.removeChangeListener=function(){},e.prototype.invalidateToken=function(){},e}();function xs(e,t,n){if(!n)throw new c(u.INVALID_ARGUMENT,"Function "+e+"() cannot be called with an empty "+t+".")}function Os(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new c(u.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Ss(e,t,n,r){if(!0===t&&!0===r)throw new c(u.INVALID_ARGUMENT,e+" and "+n+" cannot be used together.")}function Es(e){if(!W.isDocumentKey(e))throw new c(u.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e+" has "+e.length+".")}function ks(e){if(W.isDocumentKey(e))throw new c(u.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+e+" has "+e.length+".")}function Cs(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":v()}function Ts(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new c(u.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Cs(e);throw new c(u.INVALID_ARGUMENT,"Expected type '"+t.name+"', but it was: "+n)}return e}function js(e,t){if(t<=0)throw new c(u.INVALID_ARGUMENT,"Function "+e+"() requires a positive number, but it was: "+t+".")}var Is=function(){function e(e){var t;if(void 0===e.host){if(void 0!==e.ssl)throw new c(u.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=null===(t=e.ssl)||void 0===t||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,void 0===e.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<1048576)throw new c(u.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.useFetchStreams=!!e.useFetchStreams,Ss("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams},e}(),As=function(){function e(e,t){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Is({}),this._settingsFrozen=!1,e instanceof ps?(this._databaseId=e,this._credentials=new ms):(this._app=e,this._databaseId=function(e){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new c(u.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new ps(e.options.projectId)}(e),this._credentials=new bs(t))}return Object.defineProperty(e.prototype,"app",{get:function(){if(!this._app)throw new c(u.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),e.prototype._setSettings=function(e){if(this._settingsFrozen)throw new c(u.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Is(e),void 0!==e.credentials&&(this._credentials=function(e){if(!e)return new ms;switch(e.type){case"gapi":var t=e.client;return m(!("object"!=typeof t||null===t||!t.auth||!t.auth.getAuthHeaderValueForFirstParty)),new ws(t,e.sessionIndex||"0",e.iamToken||null);case"provider":return e.client;default:throw new c(u.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(e.credentials))},e.prototype._getSettings=function(){return this._settings},e.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},e.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},e.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},e.prototype._terminate=function(){return this,(e=gs.get(this))&&(d("ComponentProvider","Removing Datastore"),gs.delete(this),e.terminate()),Promise.resolve();var e},e}(),Ps=function(){function e(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}return Object.defineProperty(e.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Ms(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._key)},e}(),Ns=function(){function e(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}return e.prototype.withConverter=function(t){return new e(this.firestore,t,this._query)},e}(),Ms=function(e){function t(t,n,r){var i=this;return(i=e.call(this,t,n,Ae(r))||this)._path=r,i.type="collection",i}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._path.popLast();return e.isEmpty()?null:new Ps(this.firestore,null,new W(e))},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._path)},t}(Ns);function Rs(e,t){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(e=Object(r.getModularInstance)(e),xs("collection","path",t),e instanceof As)return ks(n=I.fromString.apply(I,Object(a.__spreadArray)([t],i))),new Ms(e,null,n);if(!(e instanceof Ps||e instanceof Ms))throw new c(u.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return ks(n=I.fromString.apply(I,Object(a.__spreadArray)([e.path],i)).child(I.fromString(t))),new Ms(e.firestore,null,n)}function Ls(e,t){for(var n,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];if(e=Object(r.getModularInstance)(e),1===arguments.length&&(t=_.u()),xs("doc","path",t),e instanceof As)return Es(n=I.fromString.apply(I,Object(a.__spreadArray)([t],i))),new Ps(e,null,new W(n));if(!(e instanceof Ps||e instanceof Ms))throw new c(u.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Es(n=e._path.child(I.fromString.apply(I,Object(a.__spreadArray)([t],i)))),new Ps(e.firestore,e instanceof Ms?e.converter:null,new W(n))}function Ds(e,t){return e=Object(r.getModularInstance)(e),t=Object(r.getModularInstance)(t),(e instanceof Ps||e instanceof Ms)&&(t instanceof Ps||t instanceof Ms)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function Fs(e,t){return e=Object(r.getModularInstance)(e),t=Object(r.getModularInstance)(t),e instanceof Ns&&t instanceof Ns&&e.firestore===t.firestore&&Ue(e._query,t._query)&&e.converter===t.converter}var Vs=function(){function e(){var e=this;
2this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=[],this.Zi=new ho(this,"async_queue_retry"),this.Tc=function(){var t=lo();t&&d("AsyncQueue","Visibility state changed to "+t.visibilityState),e.Zi.Gi()};var t=lo();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Tc)}return Object.defineProperty(e.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),e.prototype.enqueueAndForget=function(e){this.enqueue(e)},e.prototype.enqueueAndForgetEvenWhileRestricted=function(e){this.Ic(),this.Ac(e)},e.prototype.enterRestrictedMode=function(){if(!this._c){this._c=!0;var e=lo();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Tc)}},e.prototype.enqueue=function(e){return this.Ic(),this._c?new Promise((function(e){})):this.Ac(e)},e.prototype.enqueueRetryable=function(e){var t=this;this.enqueueAndForget((function(){return t.wc.push(e),t.Rc()}))},e.prototype.Rc=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t=this;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!ur(e=n.sent()))throw e;return d("AsyncQueue","Operation failed with retryable error: "+e),[3,4];case 4:this.wc.length>0&&this.Zi.ji((function(){return t.Rc()})),n.label=5;case 5:return[2]}}
2))}))},e.prototype.Ac=function(e){var t=this,n=this.dc.then((function(){return t.gc=!0,e().catch((function(e){throw t.yc=e,t.gc=!1,h("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.gc=!1,e}))}));return this.dc=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var r=this;this.Ic(),this.Ec.indexOf(e)>-1&&(t=0);var i=Wo.createAndSchedule(this,e,t,n,(function(e){return r.bc(e)}));return this.mc.push(i),i},e.prototype.Ic=function(){this.yc&&v()},e.prototype.verifyOperationInProgress=function(){},e.prototype.vc=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,e=this.dc];case 1:t.sent(),t.label=2;case 2:if(e!==this.dc)return[3,0];t.label=3;case 3:return[2]}}))}))},e.prototype.Pc=function(e){for(var t=0,n=this.mc;t<n.length;t++)if(n[t].timerId===e)return!0;return!1},e.prototype.Vc=function(e){var t=this;return this.vc().then((function(){t.mc.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));for(var n=0,r=t.mc;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==e&&i.timerId===e)break}return t.vc()}))},e.prototype.Sc=function(e){this.Ec.push(e)},e.prototype.bc=function(e){var t=this.mc.indexOf(e);this.mc.splice(t,1)},e}();function Us(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 Bs=function(){function e(){this._progressObserver={},this._taskCompletionResolver=new nr,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}return e.prototype.onProgress=function(e,t,n){this._progressObserver={next:e,error:t,complete:n}},e.prototype.catch=function(e){return this._taskCompletionResolver.promise.catch(e)},e.prototype.then=function(e,t){return this._taskCompletionResolver.promise.then(e,t)},e.prototype._completeWith=function(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)},e.prototype._failWith=function(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)},e.prototype._updateProgress=function(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)},e}(),zs=-1,qs=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).type="firestore",r._queue=new Vs,r._persistenceKey="name"in t?t.name:"[DEFAULT]",r}return Object(a.__extends)(t,e),t.prototype._terminate=function(){return this._firestoreClient||Ws(this),this._firestoreClient.terminate()},t}(As);function Gs(e){return e._firestoreClient||Ws(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function Ws(e){var t,n=e._freezeSettings(),r=function(e,t,n,r){return new hs(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,n);e._firestoreClient=new ts(e._credentials,e._queue,r)}function Hs(e,t,n){var r=this,i=new nr;return e.asyncQueue.enqueue((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,ns(e,n)];case 1:return o.sent(),[4,rs(e,t)];case 2:return o.sent(),i.resolve(),[3,4];case 3:if(!function(e){return"FirebaseError"===e.name?e.code===u.FAILED_PRECONDITION||e.code===u.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(r=o.sent()))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}}
2))}))})).then((function(){return i.promise}))}function Ks(e){if(e._initialized||e._terminated)throw new c(u.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var Xs=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0;n<e.length;++n)if(0===e[n].length)throw new c(u.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new P(e)}return e.prototype.isEqual=function(e){return this._internalPath.isEqual(e._internalPath)},e}(),Ys=function(){function e(e){this._byteString=e}return e.fromBase64String=function(t){try{return new e(M.fromBase64String(t))}catch(t){throw new c(u.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}},e.fromUint8Array=function(t){return new e(M.fromUint8Array(t))},e.prototype.toBase64=function(){return this._byteString.toBase64()},e.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},e.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._byteString.isEqual(e._byteString)},e}(),$s=function(e){this._methodName=e},Qs=function(){function e(e,t){if(!isFinite(e)||e<-90||e>90)throw new c(u.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new c(u.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},e.prototype._compareTo=function(e){return w(this._lat,e._lat)||w(this._long,e._long)},e}(),Js=/^__.*__$/,Zs=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return null!==this.fieldMask?new yt(e,this.data,this.fieldMask,t,this.fieldTransforms):new mt(e,this.data,t,this.fieldTransforms)},e}(),eu=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutation=function(e,t){return new yt(e,this.data,this.fieldMask,t,this.fieldTransforms)},e}();function tu(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw v()}}var nu=function(){function e(e,t,n,r,i,o){this.settings=e,this.databaseId=t,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Dc(),this.fieldTransforms=i||[],this.fieldMask=o||[]}return Object.defineProperty(e.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Cc",{get:function(){return this.settings.Cc},enumerable:!1,configurable:!0}),e.prototype.Nc=function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},e.prototype.xc=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Nc({path:n,Fc:!1});return r.kc(e),r},e.prototype.$c=function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.Nc({path:n,Fc:!1});return r.Dc(),r},e.prototype.Oc=function(e){return this.Nc({path:void 0,Fc:!0})},e.prototype.Mc=function(e){return xu(e,this.settings.methodName,this.settings.Lc||!1,this.path,this.settings.Bc)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))},e.prototype.Dc=function(){if(this.path)for(var e=0;e<this.path.length;e++)this.kc(this.path.get(e))},e.prototype.kc=function(e){if(0===e.length)throw this.Mc("Document fields must not be empty");if(tu(this.Cc)&&Js.test(e))throw this.Mc('Document fields cannot begin and end with "__"')},e}(),ru=function(){function e(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.R=n||fo(e)}return e.prototype.qc=function(e,t,n,r){return void 0===r&&(r=!1),new nu({Cc:e,methodName:t,Bc:n,path:P.emptyPath(),Fc:!1,Lc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},e}();function iu(e){var t=e._freezeSettings(),n=fo(e._databaseId);return new ru(e._databaseId,!!t.ignoreUndefinedProperties,n)}function ou(e,t,n,r,i,o){void 0===o&&(o={});var a=e.qc(o.merge||o.mergeFields?2:0,t,n,i);yu("Data must be an object, but it was:",a,r);var s,l,f=vu(r,a);if(o.merge)s=new N(a.fieldMask),l=a.fieldTransforms;else if(o.mergeFields){for(var d=[],h=0,p=o.mergeFields;h<p.length;h++){var g=bu(t,p[h],n);if(!a.contains(g))throw new c(u.INVALID_ARGUMENT,"Field '"+g+"' is specified in your field mask but missing from your input data.");Ou(d,g)||d.push(g)}s=new N(d),l=a.fieldTransforms.filter((function(e){return s.covers(e.field)}))}else s=null,l=a.fieldTransforms;return new Zs(new ae(f),s,l)}var au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype._toFieldTransform=function(e){if(2!==e.Cc)throw 1===e.Cc?e.Mc(this._methodName+"() can only appear at the top level of your update data"):e.Mc(this._methodName+"() cannot be used with set() unless you pass {merge:true}");return e.fieldMask.push(e.path),null},t.prototype.isEqual=function(e){return e instanceof t},t}($s);function su(e,t,n){return new nu({Cc:3,Bc:t.settings.Bc,methodName:e._methodName,Fc:n},t.databaseId,t.R,t.ignoreUndefinedProperties)}var uu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype._toFieldTransform=function(e){return new st(e.path,new Ze)},t.prototype.isEqual=function(e){return e instanceof t},t}($s),cu=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Uc=n,r}return Object(a.__extends)(t,e),t.prototype._toFieldTransform=function(e){var t=su(this,e,!0),n=this.Uc.map((function(e){return gu(e,t)})),r=new et(n);return new st(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}($s),lu=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Uc=n,r}return Object(a.__extends)(t,e),t.prototype._toFieldTransform=function(e){var t=su(this,e,!0),n=this.Uc.map((function(e){return gu(e,t)})),r=new nt(n);return new st(e.path,r)},t.prototype.isEqual=function(e){return this===e},t}($s),fu=function(e){function t(t,n){var r=this;return(r=e.call(this,t)||this).Qc=n,r}return Object(a.__extends)(t,e),t.prototype._toFieldTransform=function(e){var t=new it(e.R,Xe(e.R,this.Qc));return new st(e.path,t)},t.prototype.isEqual=function(e){return this===e},t}($s);function du(e,t,n,i){var o=e.qc(1,t,n);yu("Data must be an object, but it was:",o,i);var a=[],s=ae.empty();C(i,(function(e,i){var u=wu(t,e,n);i=Object(r.getModularInstance)(i);var c=o.$c(u);if(i instanceof au)a.push(u);else{var l=gu(i,c);null!=l&&(a.push(u),s.set(u,l))}}));var u=new N(a);return new eu(s,u,o.fieldTransforms)}function hu(e,t,n,i,o,a){var s=e.qc(1,t,n),l=[bu(t,i,n)],f=[o];if(a.length%2!=0)throw new c(u.INVALID_ARGUMENT,"Function "+t+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var d=0;d<a.length;
2d+=2)l.push(bu(t,a[d])),f.push(a[d+1]);for(var h=[],p=ae.empty(),g=l.length-1;g>=0;--g)if(!Ou(h,l[g])){var v=l[g],m=f[g];m=Object(r.getModularInstance)(m);var y=s.$c(v);if(m instanceof au)h.push(v);else{var b=gu(m,y);null!=b&&(h.push(v),p.set(v,b))}}var _=new N(h);return new eu(p,_,s.fieldTransforms)}function pu(e,t,n,r){return void 0===r&&(r=!1),gu(n,e.qc(r?4:3,t))}function gu(e,t){if(mu(e=Object(r.getModularInstance)(e)))return yu("Unsupported field value:",t,e),vu(e,t);if(e instanceof $s)return function(e,t){if(!tu(t.Cc))throw t.Mc(e._methodName+"() can only be used with update() and set()");if(!t.path)throw t.Mc(e._methodName+"() is not currently supported inside arrays");var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.Fc&&4!==t.Cc)throw t.Mc("Nested arrays are not supported");return function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var a=gu(o[i],t.Oc(r));null==a&&(a={nullValue:"NULL_VALUE"}),n.push(a),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=Object(r.getModularInstance)(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Xe(t.R,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=S.fromDate(e);return{timestampValue:nn(t.R,n)}}if(e instanceof S)return n=new S(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)),{timestampValue:nn(t.R,n)};if(e instanceof Qs)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Ys)return{bytesValue:rn(t.R,e._byteString)};if(e instanceof Ps){n=t.databaseId;var i=e.firestore._databaseId;if(!i.isEqual(n))throw t.Mc("Document reference is for database "+i.projectId+"/"+i.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:sn(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.Mc("Unsupported field value: "+Cs(e))}(e,t)}function vu(e,t){var n={};return T(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):C(e,(function(e,r){var i=gu(r,t.xc(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function mu(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof S||e instanceof Qs||e instanceof Ys||e instanceof Ps||e instanceof $s)}function yu(e,t,n){if(!mu(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=Cs(n);throw"an object"===r?t.Mc(e+" a custom object"):t.Mc(e+" "+r)}}function bu(e,t,n){if((t=Object(r.getModularInstance)(t))instanceof Xs)return t._internalPath;if("string"==typeof t)return wu(e,t);throw xu("Field path arguments must be of type string or FieldPath.",e,!1,void 0,n)}var _u=new RegExp("[~\\*/\\[\\]]");function wu(e,t,n){if(t.search(_u)>=0)throw xu("Invalid field path ("+t+"). Paths must not contain '~', '*', '/', '[', or ']'",e,!1,void 0,n);try{return(new(Xs.bind.apply(Xs,Object(a.__spreadArray)([void 0],t.split(".")))))._internalPath}catch(r){throw xu("Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",e,!1,void 0,n)}}function xu(e,t,n,r,i){var o=r&&!r.isEmpty(),a=void 0!==i,s="Function "+t+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var l="";return(o||a)&&(l+=" (found",o&&(l+=" in field "+r),a&&(l+=" in document "+i),l+=")"),new c(u.INVALID_ARGUMENT,(s+=". ")+e+l)}function Ou(e,t){return e.some((function(e){return e.isEqual(t)}))}var Su=function(){function e(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Ps(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),e.prototype.exists=function(){return null!==this._document},e.prototype.data=function(){if(this._document){if(this._converter){var e=new Eu(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}},e.prototype.get=function(e){if(this._document){var t=this._document.data.field(ku("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}},e}(),Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.data=function(){return e.prototype.data.call(this)},t}(Su);function ku(e,t){return"string"==typeof t?wu(e,t):t instanceof Xs?t._internalPath:t._delegate._internalPath}var Cu=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(e){function t(t,n,r,i,o,a){var s=this;return(s=e.call(this,t,n,r,i,a)||this)._firestore=t,s._firestoreImpl=t,s.metadata=o,s}return Object(a.__extends)(t,e),t.prototype.exists=function(){return e.prototype.exists.call(this)},t.prototype.data=function(e){if(void 0===e&&(e={}),this._document){if(this._converter){var t=new ju(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}},t.prototype.get=function(e,t){if(void 0===t&&(t={}),this._document){var n=this._document.data.field(ku("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}},t}(Su),ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.data=function(t){return void 0===t&&(t={}),e.prototype.data.call(this,t)},t}(Tu),Iu=function(){function e(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new Cu(r.hasPendingWrites,r.fromCache),this.query=n}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,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;this._snapshot.docs.forEach((function(r){e.call(t,new ju(n._firestore,n._userDataWriter,r.key,r,new Cu(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))},e.prototype.docChanges=function(e){void 0===e&&(e={});var t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new c(u.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map((function(t){var r=new ju(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Cu(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);return t.doc,{type:"added",doc:r,oldIndex:-1,newIndex:n++}}))}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var n=new ju(e._firestore,e._userDataWriter,t.doc.key,t.doc,new Cu(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,o=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(o=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:Au(t.type),doc:n,oldIndex:i,newIndex:o}}))}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e}();function Au(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return v()}}function Pu(e,t){return e instanceof Tu&&t instanceof Tu?e._firestore===t._firestore&&e._key.isEqual(t._key)&&(null===e._document?null===t._document:e._document.isEqual(t._document))&&e._converter===t._converter:e instanceof Iu&&t instanceof Iu&&e._firestore===t._firestore&&Fs(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}function Nu(e){if(Ne(e)&&0===e.explicitOrderBy.length)throw new c(u.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Mu=function(){};function Ru(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++){var o=i[r];e=o._apply(e)}return e}var Lu=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).Kc=t,i.jc=n,i.Wc=r,i.type="where",i}return Object(a.__extends)(t,e),t.prototype._apply=function(e){var t=iu(e.firestore),n=function(e,t,n,r,i,o,a){var s;if(i.isKeyField()){if("array-contains"===o||"array-contains-any"===o)throw new c(u.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+o+"' queries on FieldPath.documentId().");if("in"===o||"not-in"===o){qu(a,o);for(var l=[],f=0,d=a;f<d.length;f++){var h=d[f];l.push(zu(r,e,h))}s={arrayValue:{values:l}}}else s=zu(r,e,a)}else"in"!==o&&"not-in"!==o&&"array-contains-any"!==o||qu(a,o),s=pu(n,"where",a,"in"===o||"not-in"===o);var p=pe.create(i,o,s);return function(e,t){if(t.g()){var n=Re(e);if(null!==n&&!n.isEqual(t.field))throw new c(u.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+t.field.toString()+"'");var r=Me(e);null!==r&&Gu(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","not-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 c(u.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '"+t.op.toString()+"' filter."):new c(u.INVALID_ARGUMENT,"Invalid query. You cannot use '"+t.op.toString()+"' filters with '"+i.toString()+"' filters.")}(e,p),p}(e._query,0,t,e.firestore._databaseId,this.Kc,this.jc,this.Wc);return new Ns(e.firestore,e.converter,function(e,t){var n=e.filters.concat([t]);return new je(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}(e._query,n))},t}(Mu),Du=function(e){function t(t,n){var r=this;return(r=e.call(this)||this).Kc=t,r.Gc=n,r.type="orderBy",r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){var t=function(e,t,n){if(null!==e.startAt)throw new c(u.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new c(u.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Ee(t,n);return function(e,t){if(null===Me(e)){var n=Re(e);null!==n&&Gu(e,n,t.field)}}(e,r),r}(e._query,this.Kc,this.Gc);return new Ns(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new je(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))},t}(Mu),Fu=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.zc=n,i.Hc=r,i}return Object(a.__extends)(t,e),t.prototype._apply=function(e){return new Ns(e.firestore,e.converter,Ve(e._query,this.zc,this.Hc))},t}(Mu),Vu=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Jc=n,i.Yc=r,i}return Object(a.__extends)(t,e),t.prototype._apply=function(e){var t=Bu(e,this.type,this.Jc,this.Yc);return new Ns(e.firestore,e.converter,function(e,t){return new je(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))},t}(Mu),Uu=function(e){function t(t,n,r){var i=this;return(i=e.call(this)||this).type=t,i.Jc=n,i.Yc=r,i}return Object(a.__extends)(t,e),t.prototype._apply=function(e){var t=Bu(e,this.type,this.Jc,this.Yc);return new Ns(e.firestore,e.converter,function(e,t){return new je(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))},t}(Mu);function Bu(e,t,n,i){if(n[0]=Object(r.getModularInstance)(n[0]),n[0]instanceof Su)return function(e,t,n,r,i){if(!r)throw new c(u.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var o=[],a=0,s=De(e);a<s.length;a++){var l=s[a];if(l.field.isKeyField())o.push(Z(t,r.key));else{var f=r.data.field(l.field);if(V(f))throw new c(u.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+l.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===f){var d=l.field.canonicalString();throw new c(u.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+d+"' (used as the orderBy) does not exist.")}o.push(f)}}return new Oe(o,i)}(e._query,e.firestore._databaseId,t,n[0]._document,i);var o=iu(e.firestore);return function(e,t,n,r,i,o){var a=e.explicitOrderBy;if(i.length>a.length)throw new c(u.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=[],l=0;l<i.length;l++){var f=i[l];
2if(a[l].field.isKeyField()){if("string"!=typeof f)throw new c(u.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof f);if(!Le(e)&&-1!==f.indexOf("/"))throw new c(u.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 '"+f+"' contains a slash.");var d=e.path.child(I.fromString(f));if(!W.isDocumentKey(d))throw new c(u.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 '"+d+"' is not because it contains an odd number of segments.");var h=new W(d);s.push(Z(t,h))}else{var p=pu(n,r,f);s.push(p)}}return new Oe(s,o)}(e._query,e.firestore._databaseId,o,t,n,i)}function zu(e,t,n){if("string"==typeof(n=Object(r.getModularInstance)(n))){if(""===n)throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!Le(t)&&-1!==n.indexOf("/"))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection by FieldPath.documentId(), you must provide a plain document ID, but '"+n+"' contains a '/' character.");var i=t.path.child(I.fromString(n));if(!W.isDocumentKey(i))throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying a collection group by FieldPath.documentId(), the value provided must result in a valid document path, but '"+i+"' is not because it has an odd number of segments ("+i.length+").");return Z(e,new W(i))}if(n instanceof Ps)return Z(e,n._key);throw new c(u.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Cs(n)+".")}function qu(e,t){if(!Array.isArray(e)||0===e.length)throw new c(u.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+t.toString()+"' filters.");if(e.length>10)throw new c(u.INVALID_ARGUMENT,"Invalid Query. '"+t.toString()+"' filters support a maximum of 10 elements in the value array.")}function Gu(e,t,n){if(!n.isEqual(t))throw new c(u.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+t.toString()+"' and so you must also use '"+t.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var Wu=function(){function e(){}return e.prototype.convertValue=function(e,t){switch(void 0===t&&(t="none"),H(e)){case 0:return null;case 1:return e.booleanValue;case 2:return D(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(F(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw v()}},e.prototype.convertObject=function(e,t){var n=this,r={};return C(e.fields,(function(e,i){r[e]=n.convertValue(i,t)})),r},e.prototype.convertGeoPoint=function(e){return new Qs(D(e.latitude),D(e.longitude))},e.prototype.convertArray=function(e,t){var n=this;return(e.values||[]).map((function(e){return n.convertValue(e,t)}))},e.prototype.convertServerTimestamp=function(e,t){switch(t){case"previous":var n=U(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(B(e));default:return null}},e.prototype.convertTimestamp=function(e){var t=L(e);return new S(t.seconds,t.nanos)},e.prototype.convertDocumentKey=function(e,t){var n=I.fromString(e);m(Pn(n));var r=new ps(n.get(1),n.get(3)),i=new W(n.popFirst(5));return r.isEqual(t)||h("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+t.projectId+"/"+t.database+") instead."),i},e}();function Hu(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var Ku=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return Object(a.__extends)(t,e),t.prototype.convertBytes=function(e){return new Ys(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);
2return new Ps(this.firestore,null,t)},t}(Wu),Xu=function(){function e(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=iu(e)}return e.prototype.set=function(e,t,n){this._verifyNotCommitted();var r=Yu(e,this._firestore),i=Hu(r.converter,t,n),o=ou(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(o.toMutation(r._key,ct.none())),this},e.prototype.update=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];this._verifyNotCommitted();var a,s=Yu(e,this._firestore);return a="string"==typeof(t=Object(r.getModularInstance)(t))||t instanceof Xs?hu(this._dataReader,"WriteBatch.update",s._key,t,n,i):du(this._dataReader,"WriteBatch.update",s._key,t),this._mutations.push(a.toMutation(s._key,ct.exists(!0))),this},e.prototype.delete=function(e){this._verifyNotCommitted();var t=Yu(e,this._firestore);return this._mutations=this._mutations.concat(new St(t._key,ct.none())),this},e.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},e.prototype._verifyNotCommitted=function(){if(this._committed)throw new c(u.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}();function Yu(e,t){if((e=Object(r.getModularInstance)(e)).firestore!==t)throw new c(u.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}var $u=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return Object(a.__extends)(t,e),t.prototype.convertBytes=function(e){return new Ys(e)},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new Ps(this.firestore,null,t)},t}(Wu);function Qu(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];e=Ts(e,Ps);var a=Ts(e.firestore,qs),s=iu(a);return Zu(a,[("string"==typeof(t=Object(r.getModularInstance)(t))||t instanceof Xs?hu(s,"updateDoc",e._key,t,n,i):du(s,"updateDoc",e._key,t)).toMutation(e._key,ct.exists(!0))])}function Ju(e){for(var t,n,i,o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];e=Object(r.getModularInstance)(e);var u={includeMetadataChanges:!1},c=0;"object"!=typeof o[c]||Us(o[c])||(u=o[c],c++);var l,f,d,h={includeMetadataChanges:u.includeMetadataChanges};if(Us(o[c])){var p=o[c];o[c]=null===(t=p.next)||void 0===t?void 0:t.bind(p),o[c+1]=null===(n=p.error)||void 0===n?void 0:n.bind(p),o[c+2]=null===(i=p.complete)||void 0===i?void 0:i.bind(p)}if(e instanceof Ps)f=Ts(e.firestore,qs),d=Ae(e._key.path),l={next:function(t){o[c]&&o[c](ec(f,e,t))},error:o[c+1],complete:o[c+2]};else{var g=Ts(e,Ns);f=Ts(g.firestore,qs),d=g._query;var v=new $u(f);l={next:function(e){o[c]&&o[c](new Iu(f,v,g,e))},error:o[c+1],complete:o[c+2]},Nu(e._query)}return function(e,t,n,r){var i=this,o=new Qa(r),s=new ra(t,o,n);return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(i,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=Jo,[4,ls(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}}))}))})),function(){o.Wo(),e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(i,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=Zo,[4,ls(e)];case 1:return[2,t.apply(void 0,[n.sent(),s])]}}))}))}))}}(Gs(f),d,h,l)}function Zu(e,t){return function(e,t){var n=this,r=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return n=ma,[4,cs(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(Gs(e),t)}function ec(e,t,n){var r=n.docs.get(t._key),i=new $u(e);return new Tu(e,i,t._key,r,new Cu(n.hasPendingWrites,n.fromCache),t.converter)}var tc=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this)._firestore=t,r}return Object(a.__extends)(t,e),t.prototype.get=function(t){var n=this,r=Yu(t,this._firestore),i=new $u(this._firestore);return e.prototype.get.call(this,t).then((function(e){return new Tu(n._firestore,i,r._key,e._document,new Cu(!1,!1),r.converter)}))},t}(function(){function e(e,t){this._firestore=e,this._transaction=t,this._dataReader=iu(e)}return e.prototype.get=function(e){var t=this,n=Yu(e,this._firestore),r=new Ku(this._firestore);return this._transaction.lookup([n._key]).then((function(e){if(!e||1!==e.length)return v();var i=e[0];if(i.isFoundDocument())return new Su(t._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new Su(t._firestore,r,n._key,null,n.converter);
2throw v()}))},e.prototype.set=function(e,t,n){var r=Yu(e,this._firestore),i=Hu(r.converter,t,n),o=ou(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,o),this},e.prototype.update=function(e,t,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var a,s=Yu(e,this._firestore);return a="string"==typeof(t=Object(r.getModularInstance)(t))||t instanceof Xs?hu(this._dataReader,"Transaction.update",s._key,t,n,i):du(this._dataReader,"Transaction.update",s._key,t),this._transaction.update(s._key,a),this},e.prototype.delete=function(e){var t=Yu(e,this._firestore);return this._transaction.delete(t._key),this},e}());function nc(){if("undefined"==typeof Uint8Array)throw new c(u.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function rc(){if("undefined"==typeof atob)throw new c(u.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var ic=function(){function e(e){this._delegate=e}return e.fromBase64String=function(t){return rc(),new e(Ys.fromBase64String(t))},e.fromUint8Array=function(t){return nc(),new e(Ys.fromUint8Array(t))},e.prototype.toBase64=function(){return rc(),this._delegate.toBase64()},e.prototype.toUint8Array=function(){return nc(),this._delegate.toUint8Array()},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e}(),oc=function(){function e(){}return e.prototype.enableIndexedDbPersistence=function(e,t){return function(e,t){Ks(e=Ts(e,qs));var n=Gs(e),r=e._freezeSettings(),i=new Ya;return Hs(n,i,new Ka(i,r.cacheSizeBytes,null==t?void 0:t.forceOwnership))}(e._delegate,{forceOwnership:t})},e.prototype.enableMultiTabIndexedDbPersistence=function(e){return function(e){Ks(e=Ts(e,qs));var t=Gs(e),n=e._freezeSettings(),r=new Ya;return Hs(t,r,new Xa(r,n.cacheSizeBytes))}(e._delegate)},e.prototype.clearIndexedDbPersistence=function(e){return function(e){var t=this;if(e._initialized&&!e._terminated)throw new c(u.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new nr;return e._queue.enqueueAndForgetEvenWhileRestricted((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return or.yt()?(t=e+"main",[4,or.delete(t)]):[2,Promise.resolve()];case 1:return n.sent(),[2]}}))}))}(vi(e._databaseId,e._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return t=r.sent(),n.reject(t),[3,3];case 3:return[2]}}
2))}))})),n.promise}(e._delegate)},e}(),ac=function(){function e(e,t,n){var r=this;this._delegate=t,this.Xc=n,this.INTERNAL={delete:function(){return r.terminate()}},e instanceof ps||(this.Zc=e)}return Object.defineProperty(e.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),e.prototype.settings=function(e){var t=this._delegate._getSettings();e.merge||t.host===e.host||p("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),e.merge&&delete(e=Object.assign(Object.assign({},t),e)).merge,this._delegate._setSettings(e)},e.prototype.useEmulator=function(e,t,n){void 0===n&&(n={}),function(e,t,n,i){void 0===i&&(i={});var o=(e=Ts(e,As))._getSettings();if("firestore.googleapis.com"!==o.host&&o.host!==t&&p("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},o),{host:t+":"+n,ssl:!1})),i.mockUserToken){var a=Object(r.createMockUserToken)(i.mockUserToken),s=i.mockUserToken.sub||i.mockUserToken.user_id;if(!s)throw new c(u.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");e._credentials=new ys(new vs(a,new Ki(s)))}}(this._delegate,e,t,n)},e.prototype.enableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,as(e)];case 1:return t=r.sent(),[4,us(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!0),function(e){var t=y(e);return t.Or.delete(0),_o(t)}(n))]}}))}))}))}(Gs(Ts(this._delegate,qs)))},e.prototype.disableNetwork=function(){return function(e){var t=this;return e.asyncQueue.enqueue((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t,n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,as(e)];case 1:return t=r.sent(),[4,us(e)];case 2:return n=r.sent(),[2,(t.setNetworkEnabled(!1),function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return(t=y(e)).Or.add(0),[4,wo(t)];case 1:return n.sent(),t.Br.set("Offline"),[2]}}))}))}(n))]}}))}))}))}(Gs(Ts(this._delegate,qs)))},e.prototype.enablePersistence=function(e){var t=!1,n=!1;return e&&Ss("synchronizeTabs",t=!!e.synchronizeTabs,"experimentalForceOwningTab",n=!!e.experimentalForceOwningTab),t?this.Xc.enableMultiTabIndexedDbPersistence(this):this.Xc.enableIndexedDbPersistence(this,n)},e.prototype.clearPersistence=function(){return this.Xc.clearIndexedDbPersistence(this)},e.prototype.terminate=function(){return this.Zc&&(this.Zc._removeServiceInstance("firestore"),this.Zc._removeServiceInstance("firestore-exp")),this._delegate._delete()},e.prototype.waitForPendingWrites=function(){return function(e){var t=this,n=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return t=Oa,[4,cs(e)];case 1:return[2,t.apply(void 0,[r.sent(),n])]}}))}))})),n.promise}(Gs(Ts(this._delegate,qs)))},e.prototype.onSnapshotsInSync=function(e){return function(e,t){return function(e,t){var n=this,r=new Qa(t);return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=function(e,t){y(e).Gr.add(t),t.next()},[4,ls(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}}))}))})),function(){r.Wo(),e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=function(e,t){y(e).Gr.delete(t)},[4,ls(e)];case 1:return[2,t.apply(void 0,[n.sent(),r])]}}))}))}))}}(Gs(e=Ts(e,qs)),Us(t)?t:{next:t})}(this._delegate,e)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this.Zc)throw new c(u.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.Zc}
2,enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new wc(this,Rs(this._delegate,e))}catch(e){throw hc(e,"collection()","Firestore.collection()")}},e.prototype.doc=function(e){try{return new dc(this,Ls(this._delegate,e))}catch(e){throw hc(e,"doc()","Firestore.doc()")}},e.prototype.collectionGroup=function(e){try{return new yc(this,function(e,t){if(e=Ts(e,As),xs("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new c(u.INVALID_ARGUMENT,"Invalid collection ID '"+t+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Ns(e,null,function(e){return new je(I.emptyPath(),e)}(t))}(this._delegate,e))}catch(e){throw hc(e,"collectionGroup()","Firestore.collectionGroup()")}},e.prototype.runTransaction=function(e){var t=this;return function(e,t){return function(e,t){var n=this,r=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,function(e){return os(e).then((function(e){return e.datastore}))}(e)];case 1:return n=i.sent(),new es(e.asyncQueue,n,t,r).run(),[2]}}))}))})),r.promise}(Gs(e),(function(n){return t(new tc(e,n))}))}(this._delegate,(function(n){return e(new cc(t,n))}))},e.prototype.batch=function(){var e=this;return Gs(this._delegate),new lc(new Xu(this._delegate,(function(t){return Zu(e._delegate,t)})))},e.prototype.loadBundle=function(e){throw new c(u.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},e.prototype.namedQuery=function(e){throw new c(u.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},e}(),sc=function(e){function t(t){var n=this;return(n=e.call(this)||this).firestore=t,n}return Object(a.__extends)(t,e),t.prototype.convertBytes=function(e){return new ic(new Ys(e))},t.prototype.convertReference=function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return dc.tu(t,this.firestore,null)},t}(Wu);function uc(e){var t;t=e,l.setLogLevel(t)}var cc=function(){function e(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new sc(e)}return e.prototype.get=function(e){var t=this,n=xc(e);return this._delegate.get(n).then((function(e){return new vc(t._firestore,new Tu(t._firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,n.converter))}))},e.prototype.set=function(e,t,n){var r=xc(e);return n?(Os("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=xc(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,Object(a.__spreadArray)([s,t,n],i)),this},e.prototype.delete=function(e){var t=xc(e);return this._delegate.delete(t),this},e}(),lc=function(){function e(e){this._delegate=e}return e.prototype.set=function(e,t,n){var r=xc(e);return n?(Os("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this},e.prototype.update=function(e,t,n){for(var r,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=xc(e);return 2===arguments.length?this._delegate.update(s,t):(r=this._delegate).update.apply(r,Object(a.__spreadArray)([s,t,n],i)),this},e.prototype.delete=function(e){var t=xc(e);return this._delegate.delete(t),this},e.prototype.commit=function(){return this._delegate.commit()},e}(),fc=function(){function e(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}return e.prototype.fromFirestore=function(e,t){var n=new ju(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);return this._delegate.fromFirestore(new mc(this._firestore,n),null!=t?t:{})},e.prototype.toFirestore=function(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)},e.eu=function(t,n){var r=e.nu,i=r.get(t);i||(i=new WeakMap,r.set(t,i));var o=i.get(n);return o||(o=new e(t,new sc(t),n),i.set(n,o)),o},e}();fc.nu=new WeakMap;var dc=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new sc(e)}return e.su=function(t,n,r){if(t.length%2!=0)throw new c(u.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);
2return new e(n,new Ps(n._delegate,r,new W(t)))},e.tu=function(t,n,r){return new e(n,new Ps(n._delegate,r,t))},Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new wc(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),e.prototype.collection=function(e){try{return new wc(this.firestore,Rs(this._delegate,e))}catch(e){throw hc(e,"collection()","DocumentReference.collection()")}},e.prototype.isEqual=function(e){return(e=Object(r.getModularInstance)(e))instanceof Ps&&Ds(this._delegate,e)},e.prototype.set=function(e,t){t=Os("DocumentReference.set",t);try{return function(e,t,n){e=Ts(e,Ps);var r=Ts(e.firestore,qs),i=Hu(e.converter,t,n);return Zu(r,[ou(iu(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,ct.none())])}(this._delegate,e,t)}catch(e){throw hc(e,"setDoc()","DocumentReference.set()")}},e.prototype.update=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?Qu(this._delegate,e):Qu.apply(void 0,Object(a.__spreadArray)([this._delegate,e,t],n))}catch(e){throw hc(e,"updateDoc()","DocumentReference.update()")}},e.prototype.delete=function(){return Zu(Ts((e=this._delegate).firestore,qs),[new St(e._key,ct.none())]);var e},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=pc(t),i=gc(t,(function(t){return new vc(e.firestore,new Tu(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))}));return Ju(this._delegate,r,i)},e.prototype.get=function(e){var t=this;return("cache"===(null==e?void 0:e.source)?function(e){e=Ts(e,Ps);var t=Ts(e.firestore,qs),n=Gs(t),r=new $u(t);return function(e,t){var n=this,r=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return n=function(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i;return Object(a.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,function(e,t){var n=y(e);return n.persistence.runTransaction("read document","readonly",(function(e){return n.Mn.mn(e,t)}))}(e,t)];case 1:return(i=o.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new c(u.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 r=o.sent(),i=Ho(r,"Failed to get document '"+t+" from cache"),n.reject(i),[3,3];case 3:return[2]}}
2))}))},[4,ss(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(n,e._key).then((function(n){return new Tu(t,r,e._key,n,new Cu(null!==n&&n.hasLocalMutations,!0),e.converter)}))}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=Ts(e,Ps);var t=Ts(e.firestore,qs);return fs(Gs(t),e._key,{source:"server"}).then((function(n){return ec(t,e,n)}))}(this._delegate):function(e){e=Ts(e,Ps);var t=Ts(e.firestore,qs);return fs(Gs(t),e._key).then((function(n){return ec(t,e,n)}))}(this._delegate)).then((function(e){return new vc(t.firestore,new Tu(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))}))},e.prototype.withConverter=function(t){return new e(this.firestore,t?this._delegate.withConverter(fc.eu(this.firestore,t)):this._delegate.withConverter(null))},e}();function hc(e,t,n){return e.message=e.message.replace(t,n),e}function pc(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("object"==typeof r&&!Us(r))return r}return{}}function gc(e,t){var n,r,i;return{next:function(e){i.next&&i.next(t(e))},error:null===(n=(i=Us(e[0])?e[0]:Us(e[1])?e[1]:"function"==typeof e[0]?{next:e[0],error:e[1],complete:e[2]}:{next:e[1],error:e[2],complete:e[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var vc=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"ref",{get:function(){return new dc(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),e.prototype.data=function(e){return this._delegate.data(e)},e.prototype.get=function(e,t){return this._delegate.get(e,t)},e.prototype.isEqual=function(e){return Pu(this._delegate,e._delegate)},e}(),mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.data=function(e){return this._delegate.data(e)},t}(vc),yc=function(){function e(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new sc(e)}return e.prototype.where=function(t,n,r){try{return new e(this.firestore,Ru(this._delegate,function(e,t,n){var r=t,i=ku("where",e);return new Lu(i,r,n)}(t,n,r)))}catch(t){throw hc(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.orderBy=function(t,n){try{return new e(this.firestore,Ru(this._delegate,function(e,t){void 0===t&&(t="asc");var n=t,r=ku("orderBy",e);return new Du(r,n)}(t,n)))}catch(t){throw hc(t,/(orderBy|where)\(\)/,"Query.$1()")}},e.prototype.limit=function(t){try{return new e(this.firestore,Ru(this._delegate,function(e){return js("limit",e),new Fu("limit",e,"F")}(t)))}catch(t){throw hc(t,"limit()","Query.limit()")}},e.prototype.limitToLast=function(t){try{return new e(this.firestore,Ru(this._delegate,function(e){return js("limitToLast",e),new Fu("limitToLast",e,"L")}(t)))}catch(t){throw hc(t,"limitToLast()","Query.limitToLast()")}},e.prototype.startAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,Ru(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Vu("startAt",e,!0)}.apply(void 0,t)))}catch(t){throw hc(t,"startAt()","Query.startAt()")}},e.prototype.startAfter=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,Ru(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Vu("startAfter",e,!1)}.apply(void 0,t)))}catch(t){throw hc(t,"startAfter()","Query.startAfter()")}},e.prototype.endBefore=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,Ru(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Uu("endBefore",e,!0)}.apply(void 0,t)))}catch(t){throw hc(t,"endBefore()","Query.endBefore()")}},e.prototype.endAt=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];try{return new e(this.firestore,Ru(this._delegate,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new Uu("endAt",e,!1)}.apply(void 0,t)))}catch(t){throw hc(t,"endAt()","Query.endAt()")}},e.prototype.isEqual=function(e){return Fs(this._delegate,e._delegate)},e.prototype.get=function(e){var t=this;
2return("cache"===(null==e?void 0:e.source)?function(e){e=Ts(e,Ns);var t=Ts(e.firestore,qs),n=Gs(t),r=new $u(t);return function(e,t){var n=this,r=new nr;return e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return n=function(e,t,n){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r,i,o,s,u;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,Ai(e,t,!0)];case 1:return u=a.sent(),r=new la(t,u.Bn),i=r._o(u.documents),o=r.applyChanges(i,!1),n.resolve(o.snapshot),[3,3];case 2:return s=a.sent(),u=Ho(s,"Failed to execute query '"+t+" against cache"),n.reject(u),[3,3];case 3:return[2]}}))}))},[4,ss(e)];case 1:return[2,n.apply(void 0,[i.sent(),t,r])]}}))}))})),r.promise}(n,e._query).then((function(n){return new Iu(t,r,e,n)}))}(this._delegate):"server"===(null==e?void 0:e.source)?function(e){e=Ts(e,Ns);var t=Ts(e.firestore,qs),n=Gs(t),r=new $u(t);return ds(n,e._query,{source:"server"}).then((function(n){return new Iu(t,r,e,n)}))}(this._delegate):function(e){e=Ts(e,Ns);var t=Ts(e.firestore,qs),n=Gs(t),r=new $u(t);return Nu(e._query),ds(n,e._query).then((function(n){return new Iu(t,r,e,n)}))}(this._delegate)).then((function(e){return new _c(t.firestore,new Iu(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))}))},e.prototype.onSnapshot=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=pc(t),i=gc(t,(function(t){return new _c(e.firestore,new Iu(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))}));return Ju(this._delegate,r,i)},e.prototype.withConverter=function(t){return new e(this.firestore,t?this._delegate.withConverter(fc.eu(this.firestore,t)):this._delegate.withConverter(null))},e}(),bc=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"doc",{get:function(){return new mc(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),e}(),_c=function(){function e(e,t){this._firestore=e,this._delegate=t}return Object.defineProperty(e.prototype,"query",{get:function(){return new yc(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"docs",{get:function(){var e=this;return this._delegate.docs.map((function(t){return new mc(e._firestore,t)}))},enumerable:!1,configurable:!0}),e.prototype.docChanges=function(e){var t=this;return this._delegate.docChanges(e).map((function(e){return new bc(t._firestore,e)}))},e.prototype.forEach=function(e,t){var n=this;this._delegate.forEach((function(r){e.call(t,new mc(n._firestore,r))}))},e.prototype.isEqual=function(e){return Pu(this._delegate,e._delegate)},e}(),wc=function(e){function t(t,n){var r=this;return(r=e.call(this,t,n)||this).firestore=t,r._delegate=n,r}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._delegate.parent;return e?new dc(this.firestore,e):null},enumerable:!1,configurable:!0}),t.prototype.doc=function(e){try{return new dc(this.firestore,void 0===e?Ls(this._delegate):Ls(this._delegate,e))}catch(e){throw hc(e,"doc()","CollectionReference.doc()")}},t.prototype.add=function(e){var t=this;return function(e,t){var n=Ts(e.firestore,qs),r=Ls(e),i=Hu(e.converter,t);return Zu(n,[ou(iu(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,ct.exists(!1))]).then((function(){return r}))}(this._delegate,e).then((function(e){return new dc(t.firestore,e)}))},t.prototype.isEqual=function(e){return Ds(this._delegate,e._delegate)},t.prototype.withConverter=function(e){return new t(this.firestore,e?this._delegate.withConverter(fc.eu(this.firestore,e)):this._delegate.withConverter(null))},t}(yc);function xc(e){return Ts(e,Ps)}var Oc=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._delegate=new(Xs.bind.apply(Xs,Object(a.__spreadArray)([void 0],e)))}return e.documentId=function(){return new e(P.keyField().canonicalString())},e.prototype.isEqual=function(e){return(e=Object(r.getModularInstance)(e))instanceof Xs&&this._delegate._internalPath.isEqual(e._internalPath)},e}(),Sc=function(){function e(e){this._delegate=e}return e.serverTimestamp=function(){var t=new uu("serverTimestamp");return t._methodName="FieldValue.serverTimestamp",new e(t)},e.delete=function(){var t=new au("deleteField");return t._methodName="FieldValue.delete",new e(t)},e.arrayUnion=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new cu("arrayUnion",e)}.apply(void 0,t);return r._methodName="FieldValue.arrayUnion",new e(r)},e.arrayRemove=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new lu("arrayRemove",e)}.apply(void 0,t);return r._methodName="FieldValue.arrayRemove",new e(r)},e.increment=function(t){var n=function(e){return new fu("increment",e)}(t);return n._methodName="FieldValue.increment",new e(n)},e.prototype.isEqual=function(e){return this._delegate.isEqual(e._delegate)},e}();function Ec(e){return function(e,t){var n=Gs(e=Ts(e,qs)),r=new Bs;return function(e,t,n,r){var i=this,o=function(e,t){return function(e,t){return new Ja(e,t)}(function(e,t){if(e instanceof Uint8Array)return $a(e,t);if(e instanceof ArrayBuffer)return $a(new Uint8Array(e),t);if(e instanceof ReadableStream)return e.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}
2("string"==typeof e?(new TextEncoder).encode(e):e),t)}(n,fo(t));e.asyncQueue.enqueueAndForget((function(){return Object(a.__awaiter)(i,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return t=Wa,[4,cs(e)];case 1:return t.apply(void 0,[n.sent(),o,r]),[2]}}))}))}))}(n,e._databaseId,t,r),r}(this._delegate,e)}function kc(e){var t,n,r=this;return(t=this._delegate,n=e,function(e,t){var n=this;return e.asyncQueue.enqueue((function(){return Object(a.__awaiter)(n,void 0,void 0,(function(){var n;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e,t){var n=y(e);return n.persistence.runTransaction("Get named query","readonly",(function(e){return n.Qe.getNamedQuery(e,t)}))},[4,ss(e)];case 1:return[2,n.apply(void 0,[r.sent(),t])]}}))}))}))}(Gs(t=Ts(t,qs)),n).then((function(e){return e?new Ns(t,null,e.query):null}))).then((function(e){return e?new yc(r,e):null}))}}).call(this,n(128))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return f}));var r=n(142);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Object(r.a)(3,e));var i=e.substring(t+1,e.length-1).split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)}))}}function a(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function s(e,t){var n=u(e),r=u(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function u(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,a(e)}function l(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return m})),n.d(t,"d",(function(){return P})),n.d(t,"e",(function(){return v})),n.d(t,"f",(function(){return E})),n.d(t,"g",(function(){return R})),n.d(t,"h",(function(){return N}));var r=n(43),i=n(0),o=n.n(i),a=(n(76),n(45)),s=n(115),u=n(42),c=n(35),l=n(116),f=n.n(l),d=(n(127),n(73)),h=n(130),p=n.n(h),g=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router-History"),v=function(e){var t=Object(s.a)();return t.displayName=e,t}("Router"),m=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._isMounted?n.setState({location: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(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pe
2ndingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return o.a.createElement(v.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},o.a.createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(o.a.Component);o.a.Component;var y=function(e){function t(){return e.apply(this,arguments)||this}Object(r.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(o.a.Component);var b={},_=0;function w(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(b[e])return b[e];var t=f.a.compile(e);return _<1e4&&(b[e]=t,_++),t}(e)(t,{pretty:!0})}function x(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return o.a.createElement(v.Consumer,null,(function(e){e||Object(u.a)(!1);var r=e.history,s=e.staticContext,l=i?r.push:r.replace,f=Object(a.c)(t?"string"===typeof n?w(n,t.params):Object(c.a)({},n,{pathname:w(n.pathname,t.params)}):n);return s?(l(f),null):o.a.createElement(y,{onMount:function(){l(f)},onUpdate:function(e,t){var n=Object(a.c)(t.to);Object(a.f)(n,Object(c.a)({},f,{key:n.key}))||l(f)},to:n})}))}var O={},S=0;function E(e,t){void 0===t&&(t={}),("string"===typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,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=O[n]||(O[n]={});if(r[e])return r[e];var i=[],o={regexp:f()(e,i,t),keys:i};return S<1e4&&(r[e]=o,S++),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],d=u.slice(1),h=e===l;return o&&!h?null:{path:n,url:"/"===n&&""===l?"/":l,isExact:h,params:a.reduce((function(e,t,n){return e[t.name]=d[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(v.Consumer,null,(function(t){t||Object(u.a)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?E(n.pathname,e.props):t.match,i=Object(c.a)({},t,{location:n,match:r}),a=e.props,s=a.children,l=a.component,f=a.render;return Array.isArray(s)&&0===s.length&&(s=null),o.a.createElement(v.Provider,{value:i},i.match?s?"function"===typeof s?s(i):s:l?o.a.createElement(l,i):f?f(i):null:"function"===typeof s?s(i):null)}))},t}(o.a.Component);function C(e){return"/"===e.charAt(0)?e:"/"+e}function T(e,t){if(!e)return t;var n=C(e);return 0!==t.pathname.indexOf(n)?t:Object(c.a)({},t,{pathname:t.pathname.substr(n.length)})}function j(e){return"string"===typeof e?e:Object(a.e)(e)}function I(e){return function(){Object(u.a)(!1)}}function A(){}o.a.Component;var P=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(v.Consumer,null,(function(t){t||Object(u.a)(!1);var n,r,i=e.props.location||t.location;return o.a.Children.forEach(e.props.children,(function(e){if(null==r&&o.a.isValidElement(e)){n=e;var a=e.props.path||e.props.from;r=a?E(i.pathname,Object(c.a)({},e.props,{path:a})):t.match}})),r?o.a.cloneElement(n,{location:i,computedMatch:r}):null}))},t}(o.a.Component);function N(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=Object(d.a)(t,["wrappedComponentRef"]);return o.a.createElement(v.Consumer,null,(function(t){return t||Object(u.a)(!1),o.a.createElement(e,Object(c.a)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,p()(n,e)}var M=o.a.useContext;function R(){return M(g)}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(143);t.a=r.a},function(e,t,n){"use strict";function r(){return(r=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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return fr})),n.d(t,"b",(function(){return hr})),n.d(t,"c",(function(){return dr})),n.d(t,"d",(function(){return gr})),n.d(t,"e",(function(){return pr})),n.d(t,"f",(function(){return vr})),n.d(t,"g",(function(){return mr})),n.d(t,"h",(function(){return cr})),n.d(t,"i",(function(){return lr}));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);
2if(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"array"==(t="object"!=t?t:e?Array.isArray(e)?"array":t:"null")||"object"==t&&"number"==typeof e.length}function f(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var d="closure_uid_"+(1e9*Math.random()>>>0),h=0;function p(e,t,n){return e.call.apply(e.bind,arguments)}function g(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 v(e,t,n){return(v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?p:g).apply(null,arguments)}function m(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function y(){return Date.now()}function b(e,t){function n(){}n.prototype=t.prototype,e.X=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Pb=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function _(){this.j=this.j,this.i=this.i}_.prototype.j=!1,_.prototype.ka=function(){if(!this.j&&(this.j=!0,this.H(),0))(function(e){Object.prototype.hasOwnProperty.call(e,d)&&e[d]||(e[d]=++h)})(this)},_.prototype.H=function(){if(this.i)for(;this.i.length;)this.i.shift()()};var w=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},x=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 O(e){return Array.prototype.concat.apply([],arguments)}function S(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 E(e){return/^[\s\xa0]*$/.test(e)}var k,C=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function T(e,t){return-1!=e.indexOf(t)}function j(e,t){return e<t?-1:e>t?1:0}e:{var I=u.navigator;if(I){var A=I.userAgent;if(A){k=A;break e}}k=""}function P(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function N(e){var t={};for(var n in e)t[n]=e[n];return t}var M="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function R(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<M.length;o++)n=M[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function L(e){return L[" "](e),e}L[" "]=c;var D,F=T(k,"Opera"),V=T(k,"Trident")||T(k,"MSIE"),U=T(k,"Edge"),B=U||V,z=T(k,"Gecko")&&!(T(k.toLowerCase(),"webkit")&&!T(k,"Edge"))&&!(T(k,"Trident")||T(k,"MSIE"))&&!T(k,"Edge"),q=T(k.toLowerCase(),"webkit")&&!T(k,"Edge");function G(){var e=u.document;return e?e.documentMode:void 0}e:{var W="",H=function(){var e=k;return z?/rv:([^\);]+)(\)|;)/.exec(e):U?/Edge\/([\d\.]+)/.exec(e):V?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):q?/WebKit\/(\S+)/.exec(e):F?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(H&&(W=H?H[1]:""),V){var K=G();if(null!=K&&K>parseFloat(W)){D=String(K);break e}}D=W}var X,Y={};function $(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=C(String(D)).split("."),r=C(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=j(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||j(0==a[2].length,0==s[2].length)||j(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}if(u.document&&V){var Q=G();X=Q||(parseInt(D,10)||void 0)}else X=void 0;var J=X,Z=!V||9<=Number(J),ee=V&&!$("9"),te=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 ne(e,t){this.type=e,this.a=this.target=t,this.defaultPrevented=!1}function re(e,t){if(ne.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(z){e:{try{L(t.nodeName);var i=!0;break e}catch(o){}i=!1}i||(t=null)}}
2else"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:ie[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}ne.prototype.b=function(){this.defaultPrevented=!0},b(re,ne);var ie={2:"touch",3:"pen",4:"mouse"};re.prototype.b=function(){re.X.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,ee)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}};var oe="closure_listenable_"+(1e6*Math.random()|0),ae=0;function se(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.da=i,this.key=++ae,this.Y=this.Z=!1}function ue(e){e.Y=!0,e.listener=null,e.proxy=null,e.src=null,e.da=null}function ce(e){this.src=e,this.a={},this.b=0}function le(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],o=w(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(ue(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function fe(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.da==r)return i}return-1}ce.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=fe(e,t,r,i);return-1<a?(t=e[a],n||(t.Z=!1)):((t=new se(t,this.src,o,!!r,i)).Z=n,e.push(t)),t};var de="closure_lm_"+(1e6*Math.random()|0),he={};function pe(e,t,n,r,i){if(r&&r.once)return ve(e,t,n,r,i);if(Array.isArray(t)){for(var o=0;o<t.length;o++)pe(e,t[o],n,r,i);return null}return n=Se(n),e&&e[oe]?e.wa(t,n,f(r)?!!r.capture:!!r,i):ge(e,t,n,!1,r,i)}function ge(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=f(i)?!!i.capture:!!i;if(a&&!Z)return null;var s=xe(e);if(s||(e[de]=s=new ce(e)),(n=s.add(t,n,r,a,o)).proxy)return n;if(r=function(){var e=we,t=Z?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)te||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(be(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function ve(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[oe]?e.xa(t,n,f(r)?!!r.capture:!!r,i):ge(e,t,n,!0,r,i)}function me(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)me(e,t[o],n,r,i);else r=f(r)?!!r.capture:!!r,n=Se(n),e&&e[oe]?(e=e.c,(t=String(t).toString())in e.a&&(-1<(n=fe(o=e.a[t],n,r,i))&&(ue(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=xe(e))&&(t=e.a[t.toString()],e=-1,t&&(e=fe(t,n,r,i)),(n=-1<e?t[e]:null)&&ye(n))}function ye(e){if("number"!==typeof e&&e&&!e.Y){var t=e.src;if(t&&t[oe])le(t.c,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(be(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=xe(t))?(le(n,e),0==n.b&&(n.src=null,t[de]=null)):ue(e)}}}function be(e){return e in he?he[e]:he[e]="on"+e}function _e(e,t){var n=e.listener,r=e.da||e.src;return e.Z&&ye(e),n.call(r,t)}function we(e,t){if(e.Y)return!0;if(!Z){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 _e(e,t=new re(t,this))}return _e(e,new re(t,this))}function xe(e){return(e=e[de])instanceof ce?e:null}var Oe="__closure_events_fn_"+(1e9*Math.random()>>>0);function Se(e){return"function"===typeof e?e:(e[Oe]||(e[Oe]=function(t){return e.handleEvent(t)}),e[Oe])}function Ee(){_.call(this),this.c=new ce(this),this.J=this,this.D=null}function ke(e,t){var n,r=e.D;if(r)for(n=[];r;r=r.D)n.push(r);if(e=e.J,r=t.type||t,"string"===typeof t)t=new ne(t,e);else if(t instanceof ne)t.target=t.target||e;else{var i=t;R(t=new ne(r,e),i)}if(i=!0,n)for(var o=n.length-1;0<=o;o--){var a=t.a=n[o];i=Ce(a,r,!0,t)&&i}if(i=Ce(a=t.a=e,r,!0,t)&&i,i=Ce(a,r,!1,t)&&i,n)for(o=0;o<n.length;o++)i=Ce(a=t.a=n[o],r,!1,t)&&i}function Ce(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.da||a.src;a.Z&&le(e.c,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}
2b(Ee,_),Ee.prototype[oe]=!0,(o=Ee.prototype).addEventListener=function(e,t,n,r){pe(this,e,t,n,r)},o.removeEventListener=function(e,t,n,r){me(this,e,t,n,r)},o.H=function(){if(Ee.X.H.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++)ue(n[r]);delete t.a[e],t.b--}}this.D=null},o.wa=function(e,t,n,r){return this.c.add(String(e),t,!1,n,r)},o.xa=function(e,t,n,r){return this.c.add(String(e),t,!0,n,r)};var Te=u.JSON.stringify;function je(){this.b=this.a=null}var Ie,Ae=new(function(){function e(e,t){this.c=e,this.f=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 Ne}),(function(e){e.reset()}));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 Ne(){this.next=this.b=this.a=null}function Me(e){u.setTimeout((function(){throw e}),0)}function Re(e,t){Ie||function(){var e=u.Promise.resolve(void 0);Ie=function(){e.then(Fe)}}(),Le||(Ie(),Le=!0),De.add(e,t)}je.prototype.add=function(e,t){var n=Ae.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Ne.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Ne.prototype.reset=function(){this.next=this.b=this.a=null};var Le=!1,De=new je;function Fe(){for(var e;e=Pe();){try{e.a.call(e.b)}catch(n){Me(n)}var t=Ae;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Le=!1}function Ve(e,t){Ee.call(this),this.b=e||1,this.a=t||u,this.f=v(this.eb,this),this.g=y()}function Ue(e){e.aa=!1,e.M&&(e.a.clearTimeout(e.M),e.M=null)}function Be(e,t,n){if("function"===typeof e)n&&(e=v(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=v(e.handleEvent,e)}return 2147483647<Number(t)?-1:u.setTimeout(e,t||0)}function ze(e){e.a=Be((function(){e.a=null,e.c&&(e.c=!1,ze(e))}),e.h);var t=e.b;e.b=null,e.g.apply(null,t)}b(Ve,Ee),(o=Ve.prototype).aa=!1,o.M=null,o.eb=function(){if(this.aa){var e=y()-this.g;0<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),ke(this,"tick"),this.aa&&(Ue(this),this.start()))}},o.start=function(){this.aa=!0,this.M||(this.M=this.a.setTimeout(this.f,this.b),this.g=y())},o.H=function(){Ve.X.H.call(this),Ue(this),delete this.a};var qe=function(e){function t(t,n){var r=e.call(this)||this;return r.g=t,r.h=n,r.b=null,r.c=!1,r.a=null,r}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:ze(this)},t.prototype.H=function(){e.prototype.H.call(this),this.a&&(u.clearTimeout(this.a),this.a=null,this.c=!1,this.b=null)},t}(_);function Ge(e){_.call(this),this.b=e,this.a={}}b(Ge,_);var We=[];function He(e,t,n,r){Array.isArray(n)||(n&&(We[0]=n.toString()),n=We);for(var i=0;i<n.length;i++){var o=pe(t,n[i],r||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function Ke(e){P(e.a,(function(e,t){this.a.hasOwnProperty(t)&&ye(e)}),e),e.a={}}function Xe(){this.a=!0}function Ye(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 Te(n)}catch(s){return t}}(e,n)+(r?" "+r:"")}))}Ge.prototype.H=function(){Ge.X.H.call(this),Ke(this)},Ge.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},Xe.prototype.info=function(){};var $e={},Qe=null;function Je(){return Qe=Qe||new Ee}function Ze(e){ne.call(this,$e.Ga,e)}function et(e){var t=Je();ke(t,new Ze(t,e))}function tt(e,t){ne.call(this,$e.STAT_EVENT,e),this.stat=t}function nt(e){var t=Je();ke(t,new tt(t,e))}function rt(e){ne.call(this,$e.Ha,e)}function it(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return u.setTimeout((function(){e()}),t)}$e.Ga="serverreachability",b(Ze,ne),$e.STAT_EVENT="statevent",b(tt,ne),$e.Ha="timingevent",b(rt,ne);var ot={NO_ERROR:0,fb:1,sb:2,rb:3,mb:4,qb:5,tb:6,Ea:7,TIMEOUT:8,wb:9},at={kb:"complete",Gb:"success",Fa:"error",Ea:"abort",yb:"ready",zb:"readystatechange",TIMEOUT:"timeout",ub:"incrementaldata",xb:"progress",nb:"downloadprogress",Ob:"uploadprogress"};function st(){}function ut(e){return e.b||(e.b=e.c())}function ct(){}st.prototype.b=null;var lt,ft={OPEN:"a",jb:"b",Fa:"c",vb:"d"};
2function dt(){ne.call(this,"d")}function ht(){ne.call(this,"c")}function pt(){}function gt(e,t,n,r){this.g=e,this.c=t,this.f=n,this.S=r||1,this.J=new Ge(this),this.P=vt,e=B?125:void 0,this.R=new Ve(e),this.B=null,this.b=!1,this.j=this.l=this.i=this.G=this.u=this.T=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.V=this.C=this.U=this.I=!1}b(dt,ne),b(ht,ne),b(pt,st),pt.prototype.a=function(){return new XMLHttpRequest},pt.prototype.c=function(){return{}},lt=new pt;var vt=45e3,mt={},yt={};function bt(e,t,n){e.G=1,e.i=Bt(Rt(t)),e.j=n,e.I=!0,_t(e,null)}function _t(e,t){e.u=y(),Ot(e),e.l=Rt(e.i);var n=e.l,r=e.S;Array.isArray(r)||(r=[String(r)]),en(n.b,"t",r),e.D=0,e.a=$n(e.g,e.g.C?t:null),0<e.O&&(e.F=new qe(v(e.Da,e,e.a),e.O)),He(e.J,e.a,"readystatechange",e.bb),t=e.B?N(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)),et(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.S,e.j)}function wt(e,t,n){for(var r=!0;!e.A&&e.D<n.length;){var i=xt(e,n);if(i==yt){4==t&&(e.h=4,nt(14),r=!1),Ye(e.c,e.f,null,"[Incomplete Response]");break}if(i==mt){e.h=4,nt(15),Ye(e.c,e.f,n,"[Invalid Chunk]"),r=!1;break}Ye(e.c,e.f,i,null),Tt(e,i)}4==t&&0==n.length&&(e.h=1,nt(16),r=!1),e.b=e.b&&r,r?0<n.length&&!e.V&&(e.V=!0,(t=e.g).a==e&&t.U&&!t.F&&(t.c.info("Great, no buffering proxy detected. Bytes received: "+n.length),zn(t),t.F=!0,nt(11))):(Ye(e.c,e.f,n,"[Invalid Chunked Response]"),Ct(e),kt(e))}function xt(e,t){var n=e.D,r=t.indexOf("\n",n);return-1==r?yt:(n=Number(t.substring(n,r)),isNaN(n)?mt:(r+=1)+n>t.length?yt:(t=t.substr(r,n),e.D=r+n,t))}function Ot(e){e.T=y()+e.P,St(e,e.P)}function St(e,t){if(null!=e.o)throw Error("WatchDog timer not null");e.o=it(v(e.$a,e),t)}function Et(e){e.o&&(u.clearTimeout(e.o),e.o=null)}function kt(e){0==e.g.v||e.A||Wn(e.g,e)}function Ct(e){Et(e);var t=e.F;t&&"function"==typeof t.ka&&t.ka(),e.F=null,Ue(e.R),Ke(e.J),e.a&&(t=e.a,e.a=null,t.abort(),t.ka())}function Tt(e,t){try{var n=e.g;if(0!=n.v&&(n.a==e||un(n.b,e)))if(n.I=e.N,!e.C&&un(n.b,e)&&3==n.v){try{var r=n.la.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;Gn(n),Nn(n)}Bn(n),nt(18)}}else n.pa=i[1],0<n.pa-n.P&&37500>i[2]&&n.G&&0==n.o&&!n.m&&(n.m=it(v(n.Xa,n),6e3));if(1>=sn(n.b)&&n.fa){try{n.fa()}catch(m){}n.fa=void 0}}else Kn(n,11)}else if((e.C||n.a==e)&&Gn(n),!E(t))for(t=r=n.la.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.ha=i[2];var o=i[3];null!=o&&(n.ia=o,n.c.info("VER="+n.ia));var a=i[4];null!=a&&(n.qa=a,n.c.info("SVER="+n.qa));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&&(T(l,"spdy")||T(l,"quic")||T(l,"h2"))&&(f.f=f.g,f.a=new Set,f.b&&(cn(f,f.b),f.b=null))}if(u.A){var d=c.a?c.a.getResponseHeader("X-HTTP-Session-Id"):null;d&&(u.oa=d,Ut(u.B,u.A,d))}}n.v=3,n.f&&n.f.ua(),n.U&&(n.N=y()-e.u,n.c.info("Handshake RTT: "+n.N+"ms"));var h=e;if((u=n).ma=Yn(u,u.C?u.ha:null,u.ga),h.C){ln(u.b,h);var p=h,g=u.D;g&&p.setTimeout(g),p.o&&(Et(p),Ot(p)),u.a=h}else Un(u);0<n.g.length&&Ln(n)}else"stop"!=i[0]&&"close"!=i[0]||Kn(n,7);else 3==n.v&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?Kn(n,7):Pn(n):"noop"!=i[0]&&n.f&&n.f.ta(i),n.o=0);et(4)}catch(m){}}function jt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(l(e)||"string"===typeof e)x(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(l(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: 5,327 bytes, line 2
2if(l(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 It(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 It)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 At(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Pt(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;)Pt(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Pt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}(o=gt.prototype).setTimeout=function(e){this.P=e},o.bb=function(e){e=e.target;var t=this.F;t&&3==Tn(e)?t.f():this.Da(e)},o.Da=function(e){try{if(e==this.a)e:{var t=Tn(this.a),n=this.a.va(),r=this.a.W();if(!(3>t||3==t&&!B&&!this.a.$())){this.A||4!=t||7==n||et(8==n||0>=r?3:2),Et(this);var i=this.a.W();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.S,t,i),this.b){if(this.U&&!this.C){t:{if(this.a){var a,s=this.a;if((a=s.a?s.a.getResponseHeader("X-HTTP-Initial-Response"):null)&&!E(a)){var u=a;break t}}u=null}if(!u){this.b=!1,this.h=3,nt(12),Ct(this),kt(this);break e}Ye(this.c,this.f,u,"Initial handshake response via X-HTTP-Initial-Response"),this.C=!0,Tt(this,u)}this.I?(wt(this,t,o),B&&this.b&&3==t&&(He(this.J,this.R,"tick",this.ab),this.R.start())):(Ye(this.c,this.f,o,null),Tt(this,o)),4==t&&Ct(this),this.b&&!this.A&&(4==t?Wn(this.g,this):(this.b=!1,Ot(this)))}else 400==i&&0<o.indexOf("Unknown SID")?(this.h=3,nt(12)):(this.h=0,nt(13)),Ct(this),kt(this)}}}catch(c){}},o.ab=function(){if(this.a){var e=Tn(this.a),t=this.a.$();this.D<t.length&&(Et(this),wt(this,e,t),this.b&&4!=e&&Ot(this))}},o.cancel=function(){this.A=!0,Ct(this)},o.$a=function(){this.o=null;var e=y();0<=e-this.T?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.c,this.l),2!=this.G&&(et(3),nt(17)),Ct(this),this.h=2,kt(this)):St(this,this.T-e)},(o=It.prototype).K=function(){At(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},o.L=function(){return At(this),this.a.concat()},o.get=function(e,t){return Pt(this.b,e)?this.b[e]:t},o.set=function(e,t){Pt(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 Nt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Mt(e,t){if(this.c=this.j=this.f="",this.h=null,this.i=this.g="",this.a=!1,e instanceof Mt){this.a=void 0!==t?t:e.a,Lt(this,e.f),this.j=e.j,Dt(this,e.c),Ft(this,e.h),this.g=e.g,t=e.b;var n=new $t;n.c=t.c,t.a&&(n.a=new It(t.a),n.b=t.b),Vt(this,n),this.i=e.i}else e&&(n=String(e).match(Nt))?(this.a=!!t,Lt(this,n[1]||"",!0),this.j=zt(n[2]||""),Dt(this,n[3]||"",!0),Ft(this,n[4]),this.g=zt(n[5]||"",!0),Vt(this,n[6]||"",!0),this.i=zt(n[7]||"")):(this.a=!!t,this.b=new $t(null,this.a))}function Rt(e){return new Mt(e)}function Lt(e,t,n){e.f=n?zt(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function Dt(e,t,n){e.c=n?zt(t,!0):t}function Ft(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 Vt(e,t,n){t instanceof $t?(e.b=t,function(e,t){t&&!e.f&&(Qt(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(Jt(this,t),en(this,n,e))}),e)),e.f=t}(e.b,e.a)):(n||(t=qt(t,Xt)),e.b=new $t(t,e.a))}function Ut(e,t,n){e.b.set(t,n)}function Bt(e){return Ut(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^y()).toString(36)),e}function zt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function qt(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Gt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Gt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Mt.prototype.toString=function(){var e=[],t=this.f;t&&e.push(qt(t,Wt,!0),":");var n=this.c;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(qt(t,Wt,!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(qt(n,"/"==n.charAt(0)?Kt:Ht,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.i)&&e.push("#",qt(n,Yt)),e.join("")};var Wt=/[#\/\?@]/g,Ht=/[#\?:]/g,Kt=/[#\?]/g,Xt=/[#\?@]/g,Yt=/#/g;function $t(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Qt(e){e.a||(e.a=new It,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 Jt(e,t){Qt(e),t=tn(e,t),Pt(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Pt((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&At(e)))}function Zt(e,t){return Qt(e),t=tn(e,t),Pt(e.a.b,t)}
2function en(e,t,n){Jt(e,t),0<n.length&&(e.c=null,e.a.set(tn(e,t),S(n)),e.b+=n.length)}function tn(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}(o=$t.prototype).add=function(e,t){Qt(this),this.c=null,e=tn(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){Qt(this),this.a.forEach((function(n,r){x(n,(function(n){e.call(t,n,r,this)}),this)}),this)},o.L=function(){Qt(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){Qt(this);var t=[];if("string"===typeof e)Zt(this,e)&&(t=O(t,this.a.get(tn(this,e))));else{e=this.a.K();for(var n=0;n<e.length;n++)t=O(t,e[n])}return t},o.set=function(e,t){return Qt(this),this.c=null,Zt(this,e=tn(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 nn=function(e,t){this.b=e,this.a=t};function rn(e){this.g=e||on,u.PerformanceNavigationTiming?e=0<(e=u.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(u.ja&&u.ja.za&&u.ja.za()&&u.ja.za().Qb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new Set),this.b=null,this.c=[]}var on=10;function an(e){return!!e.b||!!e.a&&e.a.size>=e.f}function sn(e){return e.b?1:e.a?e.a.size:0}function un(e,t){return e.b?e.b==t:!!e.a&&e.a.has(t)}function cn(e,t){e.a?e.a.add(t):e.b=t}function ln(e,t){e.b&&e.b==t?e.b=null:e.a&&e.a.has(t)&&e.a.delete(t)}function fn(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 S(e.c)}function dn(){}function hn(){this.a=new dn}function pn(e,t,n){var r=n||"";try{jt(e,(function(e,n){var i=e;f(e)&&(i=Te(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function gn(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(o){}}rn.prototype.cancel=function(){var e,t;if(this.c=fn(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()}},dn.prototype.stringify=function(e){return u.JSON.stringify(e,void 0)},dn.prototype.parse=function(e){return u.JSON.parse(e,void 0)};var vn=u.JSON.parse;function mn(e){Ee.call(this),this.headers=new It,this.l=e||null,this.b=!1,this.u=this.a=null,this.C="",this.h=0,this.f="",this.g=this.B=this.m=this.A=!1,this.s=0,this.o=null,this.I=bn,this.F=this.G=!1}b(mn,Ee);var yn,bn="",_n=/^https?$/i,wn=["POST","PUT"];function xn(e){return"content-type"==e.toLowerCase()}function On(e,t){e.b=!1,e.a&&(e.g=!0,e.a.abort(),e.g=!1),e.f=t,e.h=5,Sn(e),kn(e)}function Sn(e){e.A||(e.A=!0,ke(e,"complete"),ke(e,"error"))}function En(e){if(e.b&&"undefined"!=typeof s&&(!e.u[1]||4!=Tn(e)||2!=e.W()))if(e.m&&4==Tn(e))Be(e.Aa,0,e);else if(ke(e,"readystatechange"),4==Tn(e)){e.b=!1;try{var t,n=e.W();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.C).match(Nt)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!_n.test(o?o.toLowerCase():"")}t=i}if(t)ke(e,"complete"),ke(e,"success");else{e.h=6;try{var c=2<Tn(e)?e.a.statusText:""}catch(n){c=""}e.f=c+" ["+e.W()+"]",Sn(e)}}finally{kn(e)}}}function kn(e,t){if(e.a){Cn(e);var n=e.a,r=e.u[0]?c:null;e.a=null,e.u=null,t||ke(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function Cn(e){e.a&&e.F&&(e.a.ontimeout=null),e.o&&(u.clearTimeout(e.o),e.o=null)}function Tn(e){return e.a?e.a.readyState:0}function jn(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=function(e){var t="";return P(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Ut(e,t,n))}
2function In(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function An(e){this.qa=0,this.g=[],this.c=new Xe,this.ha=this.ma=this.B=this.ga=this.a=this.oa=this.A=this.V=this.i=this.O=this.l=null,this.Pa=this.R=0,this.Ma=In("failFast",!1,e),this.G=this.m=this.j=this.h=this.f=null,this.S=!0,this.I=this.pa=this.P=-1,this.T=this.o=this.u=0,this.Ia=In("baseRetryDelayMs",5e3,e),this.Sa=In("retryDelaySeedMs",1e4,e),this.Na=In("forwardChannelMaxRetries",2,e),this.na=In("forwardChannelRequestTimeoutMs",2e4,e),this.Oa=e&&e.xmlHttpFactory||void 0,this.D=void 0,this.C=e&&e.supportsCrossDomainXhr||!1,this.J="",this.b=new rn(e&&e.concurrentRequestLimit),this.la=new hn,this.ea=e&&e.fastHandshake||!1,this.Ja=e&&e.b||!1,e&&e.f&&(this.c.a=!1),e&&e.forceLongPolling&&(this.S=!1),this.U=!this.ea&&this.S&&e&&e.detectBufferingProxy||!1,this.fa=void 0,this.N=0,this.F=!1,this.s=null,(this.La=e&&e.c||!1)&&this.c.info("Opt-in to enable Chrome Origin Trials.")}function Pn(e){if(Mn(e),3==e.v){var t=e.R++,n=Rt(e.B);Ut(n,"SID",e.J),Ut(n,"RID",t),Ut(n,"TYPE","terminate"),Fn(e,n),(t=new gt(e,e.c,t,void 0)).G=2,t.i=Bt(Rt(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=$n(t.g,null),t.a.ba(t.i)),t.u=y(),Ot(t)}Xn(e)}function Nn(e){e.a&&(zn(e),e.a.cancel(),e.a=null)}function Mn(e){Nn(e),e.j&&(u.clearTimeout(e.j),e.j=null),Gn(e),e.b.cancel(),e.h&&("number"===typeof e.h&&u.clearTimeout(e.h),e.h=null)}function Rn(e,t){e.g.push(new nn(e.Pa++,t)),3==e.v&&Ln(e)}function Ln(e){an(e.b)||e.h||(e.h=!0,Re(e.Ca,e),e.u=0)}function Dn(e,t){var n;n=t?t.f:e.R++;var r=Rt(e.B);Ut(r,"SID",e.J),Ut(r,"RID",n),Ut(r,"AID",e.P),Fn(e,r),e.i&&e.l&&jn(r,e.i,e.l),n=new gt(e,e.c,n,e.u+1),null===e.i&&(n.B=e.l),t&&(e.g=t.s.concat(e.g)),t=Vn(e,n,1e3),n.setTimeout(Math.round(.5*e.na)+Math.round(.5*e.na*Math.random())),cn(e.b,n),bt(n,r,t)}function Fn(e,t){e.f&&jt({},(function(e,n){Ut(t,n,e)}))}function Vn(e,t,n){n=Math.min(e.g.length,n);var r=e.f?v(e.f.Ka,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{pn(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 Un(e){e.a||e.j||(e.T=1,Re(e.Ba,e),e.o=0)}function Bn(e){return!(e.a||e.j||3<=e.o)&&(e.T++,e.j=it(v(e.Ba,e),Hn(e,e.o)),e.o++,!0)}function zn(e){null!=e.s&&(u.clearTimeout(e.s),e.s=null)}function qn(e){e.a=new gt(e,e.c,"rpc",e.T),null===e.i&&(e.a.B=e.l),e.a.O=0;var t=Rt(e.ma);Ut(t,"RID","rpc"),Ut(t,"SID",e.J),Ut(t,"CI",e.G?"0":"1"),Ut(t,"AID",e.P),Fn(e,t),Ut(t,"TYPE","xmlhttp"),e.i&&e.l&&jn(t,e.i,e.l),e.D&&e.a.setTimeout(e.D);var n=e.a;e=e.ha,n.G=1,n.i=Bt(Rt(t)),n.j=null,n.I=!0,_t(n,e)}function Gn(e){null!=e.m&&(u.clearTimeout(e.m),e.m=null)}function Wn(e,t){var n=null;if(e.a==t){Gn(e),zn(e),e.a=null;var r=2}else{if(!un(e.b,t))return;n=t.s,ln(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=y()-t.u;var i=e.u;ke(r=Je(),new rt(r,n,t,i)),Ln(e)}else Un(e);else if(3==(i=t.h)||0==i&&0<e.I||!(1==r&&function(e,t){return!(sn(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.Ma?0:e.Na))&&(e.h=it(v(e.Ca,e,t),Hn(e,e.u)),e.u++,!0))}(e,t)||2==r&&Bn(e)))switch(n&&0<n.length&&(t=e.b,t.c=t.c.concat(n)),i){case 1:Kn(e,5);break;case 4:Kn(e,10);break;case 3:Kn(e,6);break;default:Kn(e,2)}}function Hn(e,t){var n=e.Ia+Math.floor(Math.random()*e.Sa);return e.f||(n*=2),n*t}function Kn(e,t){if(e.c.info("Error code "+t),2==t){var n=null;e.f&&(n=null);var r=v(e.cb,e);n||(n=new Mt("//www.google.com/images/cleardot.gif"),u.location&&"http"==u.location.protocol||Lt(n,"https"),Bt(n)),function(e,t){var n=new Xe;if(u.Image){var r=new Image;r.onload=m(gn,n,r,"TestLoadImage: loaded",!0,t),r.onerror=m(gn,n,r,"TestLoadImage: error",!1,t),r.onabort=m(gn,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=m(gn,n,r,"TestLoadImage: timeout",!1,t),u.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else nt(2);e.v=0,e.f&&e.f.sa(t),Xn(e),Mn(e)}function Xn(e){e.v=0,e.I=-1,e.f&&(0==fn(e.b).length&&0==e.g.length||(e.b.c.length=0,S(e.g),e.g.length=0),e.f.ra())}
2function Yn(e,t,n){var r=function(e){return e instanceof Mt?Rt(e):new Mt(e,void 0)}(n);if(""!=r.c)t&&Dt(r,t+"."+r.c),Ft(r,r.h);else{var i=u.location;r=function(e,t,n,r){var i=new Mt(null,void 0);return e&&Lt(i,e),t&&Dt(i,t),n&&Ft(i,n),r&&(i.g=r),i}(i.protocol,t?t+"."+i.hostname:i.hostname,+i.port,n)}return e.V&&P(e.V,(function(e,t){Ut(r,t,e)})),t=e.A,n=e.oa,t&&n&&Ut(r,t,n),Ut(r,"VER",e.ia),Fn(e,r),r}function $n(e,t){if(t&&!e.C)throw Error("Can't create secondary domain capable XhrIo object.");return(t=new mn(e.Oa)).G=e.C,t}function Qn(){}function Jn(){if(V&&!(10<=Number(J)))throw Error("Environmental error: no available transport.")}function Zn(e,t){Ee.call(this),this.a=new An(t),this.g=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)&&!E(e)&&(this.a.i=e),this.o=t&&t.supportsCrossDomainXhr||!1,this.m=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!E(t)&&(this.a.A=t,null!==(e=this.b)&&t in e&&(t in(e=this.b)&&delete e[t])),this.f=new nr(this)}function er(e){dt.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 tr(){ht.call(this),this.status=1}function nr(e){this.a=e}function rr(e){this.f=e}function ir(e){Ee.call(this),this.u=e,this.h=void 0,this.readyState=or,this.status=0,this.responseType=this.responseText=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.o="",this.a=!1,this.m=this.f=this.g=null}(o=mn.prototype).ba=function(e,t,n,r){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.C+"; newUri="+e);t=t?t.toUpperCase():"GET",this.C=e,this.f="",this.h=0,this.A=!1,this.b=!0,this.a=this.l?this.l.a():lt.a(),this.u=this.l?ut(this.l):ut(lt),this.a.onreadystatechange=v(this.Aa,this);try{this.B=!0,this.a.open(t,String(e),!0),this.B=!1}catch(o){return void On(this,o)}e=n||"";var i=new It(this.headers);r&&jt(r,(function(e,t){i.set(t,e)})),r=function(e){e:{for(var t=xn,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<=w(wn,t))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;charset=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.G&&(this.a.withCredentials=this.G);try{Cn(this),0<this.s&&((this.F=function(e){return V&&$(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.a))?(this.a.timeout=this.s,this.a.ontimeout=v(this.ya,this)):this.o=Be(this.ya,this.s,this)),this.m=!0,this.a.send(e),this.m=!1}catch(o){On(this,o)}},o.ya=function(){"undefined"!=typeof s&&this.a&&(this.f="Timed out after "+this.s+"ms, aborting",this.h=8,ke(this,"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,ke(this,"complete"),ke(this,"abort"),kn(this))},o.H=function(){this.a&&(this.b&&(this.b=!1,this.g=!0,this.a.abort(),this.g=!1),kn(this,!0)),mn.X.H.call(this)},o.Aa=function(){this.j||(this.B||this.m||this.g?En(this):this.Za())},o.Za=function(){En(this)},o.W=function(){try{return 2<Tn(this)?this.a.status:-1}catch(yn){return-1}},o.$=function(){try{return this.a?this.a.responseText:""}catch(yn){return""}},o.Qa=function(e){if(this.a){var t=this.a.responseText;return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),vn(t)}},o.va=function(){return this.h},o.Ra=function(){return"string"===typeof this.f?this.f:String(this.f)},(o=An.prototype).ia=8,o.v=1,o.Ca=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 gt(this,this.c,e,void 0),r=this.l;if(this.O&&(r?R(r=N(r),this.O):r=this.O),null===this.i&&(n.B=r),this.ea)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;
2t=Vn(this,n,t),Ut(i=Rt(this.B),"RID",e),Ut(i,"CVER",22),this.A&&Ut(i,"X-HTTP-Session-Id",this.A),Fn(this,i),this.i&&r&&jn(i,this.i,r),cn(this.b,n),this.Ja&&Ut(i,"TYPE","init"),this.ea?(Ut(i,"$req",t),Ut(i,"SID","null"),n.U=!0,bt(n,i,null)):bt(n,i,t),this.v=2}}else 3==this.v&&(e?Dn(this,e):0==this.g.length||an(this.b)||Dn(this))},o.Ba=function(){if(this.j=null,qn(this),this.U&&!(this.F||null==this.a||0>=this.N)){var e=2*this.N;this.c.info("BP detection timer enabled: "+e),this.s=it(v(this.Ya,this),e)}},o.Ya=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.G=!1,this.F=!0,nt(10),Nn(this),qn(this))},o.Xa=function(){null!=this.m&&(this.m=null,Nn(this),Bn(this),nt(19))},o.cb=function(e){e?(this.c.info("Successfully pinged google.com"),nt(2)):(this.c.info("Failed to ping google.com"),nt(1))},(o=Qn.prototype).ua=function(){},o.ta=function(){},o.sa=function(){},o.ra=function(){},o.Ka=function(){},Jn.prototype.a=function(e,t){return new Zn(e,t)},b(Zn,Ee),Zn.prototype.h=function(){this.a.f=this.f,this.o&&(this.a.C=!0);var e=this.a,t=this.g,n=this.b||void 0;nt(0),e.ga=t,e.V=n||{},e.G=e.S,e.B=Yn(e,null,e.ga),Ln(e)},Zn.prototype.close=function(){Pn(this.a)},Zn.prototype.l=function(e){if("string"===typeof e){var t={};t.__data__=e,Rn(this.a,t)}else this.m?((t={}).__data__=Te(e),Rn(this.a,t)):Rn(this.a,e)},Zn.prototype.H=function(){this.a.f=null,delete this.f,Pn(this.a),delete this.a,Zn.X.H.call(this)},b(er,dt),b(tr,ht),b(nr,Qn),nr.prototype.ua=function(){ke(this.a,"a")},nr.prototype.ta=function(e){ke(this.a,new er(e))},nr.prototype.sa=function(e){ke(this.a,new tr(e))},nr.prototype.ra=function(){ke(this.a,"b")},b(rr,st),rr.prototype.a=function(){return new ir(this.f)},rr.prototype.c=(yn={},function(){return yn}),b(ir,Ee);var or=0;function ar(e){e.f.read().then(e.Ta.bind(e)).catch(e.ca.bind(e))}function sr(e){e.readyState=4,e.g=null,e.f=null,e.m=null,ur(e)}function ur(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(o=ir.prototype).open=function(e,t){if(this.readyState!=or)throw this.abort(),Error("Error reopening a connection");this.s=e,this.o=t,this.readyState=1,ur(this)},o.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.l,method:this.s,credentials:this.h,cache:void 0};e&&(t.body=e),this.u.fetch(new Request(this.o,t)).then(this.Wa.bind(this),this.ca.bind(this))},o.abort=function(){this.responseText="",this.l=new Headers,this.status=0,this.f&&this.f.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,sr(this)),this.readyState=or},o.Wa=function(e){this.a&&(this.g=e,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=e.headers,this.readyState=2,ur(this)),this.a&&(this.readyState=3,ur(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.Ua.bind(this),this.ca.bind(this)):"undefined"!==typeof u.ReadableStream&&"body"in e?(this.responseText="",this.f=e.body.getReader(),this.m=new TextDecoder,ar(this)):e.text().then(this.Va.bind(this),this.ca.bind(this)))))},o.Ta=function(e){if(this.a){var t=this.m.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.responseText+=t),e.done?sr(this):ur(this),3==this.readyState&&ar(this)}},o.Va=function(e){this.a&&(this.responseText=e,sr(this))},o.Ua=function(){this.a&&sr(this)},o.ca=function(){this.a&&sr(this)},o.setRequestHeader=function(e,t){this.l.append(e,t)},o.getResponseHeader=function(e){return this.b&&this.b.get(e.toLowerCase())||""},o.getAllResponseHeaders=function(){if(!this.b)return"";for(var e=[],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")},Object.defineProperty(ir.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(e){this.h=e?"include":"same-origin"}}),Jn.prototype.createWebChannel=Jn.prototype.a,Zn.prototype.send=Zn.prototype.l,Zn.prototype.open=Zn.prototype.h,Zn.prototype.close=Zn.prototype.close,ot.NO_ERROR=0,ot.TIMEOUT=8,ot.HTTP_ERROR=6,at.COMPLETE="complete",ct.EventType=ft,ft.OPEN="a",ft.CLOSE="b",ft.ERROR="c",ft.MESSAGE="d",Ee.prototype.listen=Ee.prototype.wa,mn.prototype.listenOnce=mn.prototype.xa,mn.prototype.getLastError=mn.prototype.Ra,mn.prototype.getLastErrorCode=mn.prototype.va,mn.prototype.getStatus=mn.prototype.W,mn.prototype.getResponseJson=mn.prototype.Qa,mn.prototype.getResponseText=mn.prototype.$,mn.prototype.send=mn.prototype.ba;var cr=function(){return new Jn},lr=function(){return Je()},fr=ot,dr=at,hr=$e,pr={lb:0,ob:1,pb:2,Ib:3,Nb:4,Kb:5,Lb:6,Jb:7,Hb:8,Mb:9,PROXY:10,NOPROXY:11,Fb:12,Bb:13,Cb:14,Ab:15,Db:16,Eb:17,hb:18,gb:19,ib:20},gr=rr,vr=ct,mr=mn}).call(this,n(66))},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return o}
2)),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));n(27),n(41),n(8),n(144),n(53);var r={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(r[e],"px)")}};function o(e,t,n){var o=e.theme||{};if(Array.isArray(t)){var a=o.breakpoints||i;return t.reduce((function(e,r,i){return e[a.up(a.keys[i])]=n(t[i]),e}),{})}if("object"===typeof t){var s=o.breakpoints||i;return Object.keys(t).reduce((function(e,i){if(-1!==Object.keys(s.values||r).indexOf(i)){e[s.up(i)]=n(t[i],i)}else{var o=i;e[o]=t[o]}return e}),{})}return n(t)}function a(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=null==t||null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{});return n||{}}function s(e,t){return e.reduce((function(e,t){var n=e[t];return 0===Object.keys(n).length&&delete e[t],e}),t)}},function(e,t,n){"use strict";e.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";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c}));var r=n(0),i=n(114);n(92),n(113);var o=n(46),a=n(56),s=Object.prototype.hasOwnProperty,u=Object(r.createContext)("undefined"!==typeof HTMLElement?Object(i.a)({key:"css"}):null);u.Provider;var c=function(e){return Object(r.forwardRef)((function(t,n){var i=Object(r.useContext)(u);return e(t,i,n)}))},l=Object(r.createContext)({});var f="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",d=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[f]=e,n},h=c((function(e,t,n){var i=e.css;"string"===typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var u=e[f],c=[i],d="";"string"===typeof e.className?d=Object(o.a)(t.registered,c,e.className):null!=e.className&&(d=e.className+" ");var h=Object(a.a)(c,void 0,Object(r.useContext)(l));Object(o.b)(t,h,"string"===typeof u);d+=t.key+"-"+h.name;var p={};for(var g in e)s.call(e,g)&&"css"!==g&&g!==f&&(p[g]=e[g]);return p.ref=n,p.className=d,Object(r.createElement)(u,p)}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return v}));var r=n(15),i=n(37),o=n(11),a=n(53);var s={m:"margin",p:"padding"},u={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!c[e])return[e];e=c[e]}var t=e.split(""),n=Object(r.a)(t,2),i=n[0],o=n[1],a=s[i],l=u[o]||"";return Array.isArray(l)?l.map((function(e){return a+e})):[a+l]})),f=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY"],d=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"],h=[].concat(f,d);function p(e,t,n,r){var i=Object(o.b)(e,t)||n;return"number"===typeof i?function(e){return"string"===typeof e?e:i*e}:Array.isArray(i)?function(e){return"string"===typeof e?e:i[e]}:"function"===typeof i?i:function(){}}function g(e){return p(e,"spacing",8)}function v(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function m(e,t,n,r){if(-1===t.indexOf(n))return null;var o=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=v(t,n),e}),{})}}(l(n),r),a=e[n];return Object(i.b)(e,a,o)}function y(e,t){var n=g(e.theme);return Object.keys(e).map((function(r){return m(e,t,r,n)})).reduce(a.a,{})}function b(e){return y(e,f)}function _(e){return y(e,d)}function w(e){return y(e,h)}b.propTypes={},b.filterProps=f,_.propTypes={},_.filterProps=d,w.propTypes={},w.filterProps=h;t.c=w},function(e,t,n){"use strict";function r(){return(r=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)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r="Invariant failed";t.a=function(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||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";n.d(t,"a",(function(){return d}));var r=n(4),i=n(0),o=n.n(i),a=n(9),s=(n(8),n(7)),u=n(16),c=n(20),l=i.forwardRef((function(e,t){var n=e.children,o=e.classes,u=e.className,l=e.color,f=void 0===l?"inherit":l,d=e.component,h=void 0===d?"svg":d,p=e.fontSize,g=void 0===p?"medium":p,v=e.htmlColor,m=e.titleAccess,y=e.viewBox,b=void 0===y?"0 0 24 24":y,_=Object(a.a)(e,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return i.createElement(h,Object(r.a)({className:Object(s.a)(o.root,u,"inherit"!==f&&o["color".concat(Object(c.a)(f))],"default"!==g&&"medium"!==g&&o["fontSize".concat(Object(c.a)(g))]),focusable:"false",viewBox:b,color:v,"aria-hidden":!m||void 0,role:m?"img":void 0,ref:t},_),n,m?i.createElement("title",null,m):null)}));l.muiName="SvgIcon";var f=Object(u.a)((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(l);function d(e,t){var n=function(t,n){return o.a.createElement(f,Object(r.a)({ref:n},t),e)};return n.muiName=f.muiName,o.a.memo(o.a.forwardRef(n))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return j})),n.d(t,"d",(function(){return A})),n.d(t,"c",(function(){return g})),n.d(t,"f",(function(){return v})),n.d(t,"e",(function(){return p}));var r=n(35);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,d=a.length;d>=0;d--){var h=a[d];"."===h?o(a,d):".."===h?(o(a,d),f++):f&&(o(a,d),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(42);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(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 h(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 g(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 v(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 m(){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)}))}}}var y=!("undefined"===typeof window||!window.document||!window.document.createElement);function b(e,t){t(window.confirm(e))}var _="popstate",w="hashchange";function x(){try{return window.history.state||{}}catch(e){return{}}}function O(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,v=o.keyLength,O=void 0===v?6:v,S=e.basename?h(l(e.basename)):"";function E(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return S&&(o=d(o,S)),g(o,r,n)}function k(){return Math.random().toString(36).substr(2,O)}var C=m();function T(e){Object(r.a)(U,e),U.length=t.length,C.notifyListeners(U.location,U.action)}function j(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(E(e.state))}function I(){P(E(x()))}var A=!1;function P(e){if(A)A=!1,T();else{C.confirmTransitionTo(e,"POP",f,(function(t){t?T({action:"POP",location:e}):function(e){var t=U.location,n=M.indexOf(t.key);-1===n&&(n=0);var r=M.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(A=!0,L(i))}(e)}))}}var N=E(x()),M=[N.key];function R(e){return S+p(e)}function L(e){t.go(e)}var D=0;function F(e){1===(D+=e)&&1===e?(window.addEventListener(_,j),i&&window.addEventListener(w,I)):0===D&&(window.removeEventListener(_,j),i&&window.removeEventListener(w,I))}var V=!1;var U={length:t.length,action:"POP",location:N,createHref:R,push:function(e,r){var i="PUSH",o=g(e,r,k(),U.location);C.confirmTransitionTo(o,i,f,(function(e){if(e){var r=R(o),a=o.key,u=o.state;if(n)if(t.pushState({key:a,state:u},null,r),s)window.location.href=r;else{var c=M.indexOf(U.location.key),l=M.slice(0,c+1);l.push(o.key),M=l,T({action:i,location:o})}else window.location.href=r}}))},replace:function(e,r){var i="REPLACE",o=g(e,r,k(),U.location);C.confirmTransitionTo(o,i,f,(function(e){if(e){var r=R(o),a=o.key,u=o.state;if(n)if(t.replaceState({key:a,state:u},null,r),s)window.location.replace(r);else{var c=M.indexOf(U.location.key);-1!==c&&(M[c]=o.key),T({action:i,location:o})}else window.location.replace(r)}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=C.setPrompt(e);return V||(F(1),V=!0),function(){return V&&(V=!1,F(-1)),t()}},listen:function(e){var t=C.appendListener(e);return F(1),function(){F(-1),t()}}};return U}var S="hashchange",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 k(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function C(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function T(e){window.location.replace(k(window.location.href)+"#"+e)}function j(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?h(l(e.basename)):"",f=E[s],v=f.encodePath,_=f.decodePath;function w(){var e=_(C());return u&&(e=d(e,u)),g(e)}var x=m();function O(e){Object(r.a)(U,e),U.length=t.length,x.notifyListeners(U.location,U.action)}var j=!1,I=null;function A(){var e,t,n=C(),r=v(n);if(n!==r)T(r);else{var i=w(),a=U.location;if(!j&&(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(j)j=!1,O();else{var t="POP";x.confirmTransitionTo(e,t,o,(function(n){n?O({action:t,location:e}):function(e){var t=U.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&&(j=!0,L(i))}(e)}))}}(i)}}var P=C(),N=v(P);P!==N&&T(N);var M=w(),R=[p(M)];function L(e){t.go(e)}var D=0;function F(e){1===(D+=e)&&1===e?window.addEventListener(S,A):0===D&&window.removeEventListener(S,A)}var V=!1;var U={length:t.length,action:"POP",location:M,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=k(window.location.href)),n+"#"+v(u+p(e))},push:function(e,t){var n="PUSH",r=g(e,void 0,void 0,U.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=p(r),i=v(u+t);if(C()!==i){I=t,function(e){window.location.hash=e}(i);var o=R.lastIndexOf(p(U.location)),a=R.slice(0,o+1);a.push(t),R=a,O({action:n,location:r})}else O()}}))},replace:function(e,t){var n="REPLACE",r=g(e,void 0,void 0,U.location);x.confirmTransitionTo(r,n,o,(function(e){if(e){var t=p(r),i=v(u+t);C()!==i&&(I=t,T(i));var o=R.indexOf(p(U.location));-1!==o&&(R[o]=t),O({action:n,location:r})}}))},go:L,goBack:function(){L(-1)},goForward:function(){L(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return V||(F(1),V=!0),function(){return V&&(V=!1,F(-1)),t()}},listen:function(e){var t=x.appendListener(e);return F(1),function(){F(-1),t()}}};return U}function I(e,t,n){return Math.min(Math.max(e,t),n)}function A(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=m();function f(e){Object(r.a)(_,e),_.length=_.entries.length,l.notifyListeners(_.location,_.action)}function d(){return Math.random().toString(36).substr(2,c)}var h=I(s,0,o.length-1),v=o.map((function(e){return g(e,void 0,"string"===typeof e?d():e.key||d())})),y=p;function b(e){var t=I(_.index+e,0,_.entries.length-1),r=_.entries[t];l.confirmTransitionTo(r,"POP",n,(function(e){e?f({action:"POP",location:r,index:t}):f()}))}var _={length:v.length,action:"POP",location:v[h],index:h,entries:v,createHref:y,push:function(e,t){var r="PUSH",i=g(e,t,d(),_.location);l.confirmTransitionTo(i,r,n,(function(e){if(e){var t=_.index+1,n=_.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=g(e,t,d(),_.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(_.entries[_.index]=i,f({action:r,location:i}))}))},go:b,goBack:function(){b(-1)},goForward:function(){b(1)},canGo:function(e){var t=_.index+e;return t>=0&&t<_.entries.length},block:function(e){return void 0===e&&(e=!1),l.setPrompt(e)},listen:function(e){return l.appendListener(e)}};return _}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var i=function(e,t,n){var r=e.key+"-"+t.name;if(!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==i(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 a(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=r(e);
2if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function i(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&&r(e,t)}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(70);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(138);var i=n(103),o=n(139);function a(e,t){return Object(r.a)(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(u){s=!0,i=u}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||Object(i.a)(e,t)||Object(o.a)()}},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";var r=n(144);t.a=function(e,t){return t?Object(r.a)(e,t,{clone:!1}):e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;function o(e){var t=r.useRef(e);return i((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i={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},o=n(91),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=Object(o.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=d(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":c(a)&&(r+=l(o)+":"+f(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=d(e,t,a);switch(o){case"animation":case"animationName":r+=l(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)c(a[u])&&(r+=l(o)+":"+f(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=h,o=n(e);return h=i,d(e,t,o)}break;case"string":}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var h,p=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var g=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var i=!0,o="";h=void 0;var a=e[0];null==a||void 0===a.raw?(i=!1,o+=d(n,t,a)):o+=a[0];for(var s=1;s<e.length;s++)o+=d(n,t,e[s]),i&&(o+=a[s]);p.lastIndex=0;for(var u,c="";null!==(u=p.exec(o));)c+="-"+u[1];return{name:r(o)+c,styles:o,next:h}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}
2));var r=n(10);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(78);function o(){return r.useContext(i.a)}},function(e,t,n){"use strict";function r(e){var t=e.props,n=e.states,r=e.muiFormControl;return n.reduce((function(e,n){return e[n]=t[n],r&&"undefined"===typeof t[n]&&(e[n]=r[n]),e}),{})}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(122);t.a=r.a},function(e,t,n){"use strict";var r=n(10),i=n(6),o=n(14),a=n(144),s=n(274);function u(e,t,n){var o;return Object(i.a)({toolbar:(o={minHeight:56},Object(r.a)(o,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(o,e.up("sm"),{minHeight:64}),o)},n)}var c=n(110),l=n(264),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},h={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},p={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},g={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},v={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=["mode","contrastThreshold","tonalOffset"],_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:f.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(l.d)(e.main,i):"dark"===t&&(e.dark=Object(l.b)(e.main,o)))}function O(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,s=void 0===r?3:r,u=e.tonalOffset,O=void 0===u?.2:u,S=Object(o.a)(e,b),E=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:v[200],light:v[50],dark:v[400]}:{main:v[700],light:v[400],dark:v[800]}}(n),k=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[200],light:h[50],dark:h[400]}
2:{main:h[500],light:h[300],dark:h[700]}}(n),C=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[500],light:p[300],dark:p[700]}:{main:p[700],light:p[400],dark:p[800]}}(n),T=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(n),j=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[400],light:y[300],dark:y[700]}:{main:y[800],light:y[500],dark:y[900]}}(n),I=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:"#ED6C02",light:g[500],dark:g[900]}}(n);function A(e){return Object(l.c)(e,w.text.primary)>=s?w.text.primary:_.text.primary}var P=function(e){var t=e.color,n=e.name,r=e.mainShade,o=void 0===r?500:r,a=e.lightShade,s=void 0===a?300:a,u=e.darkShade,l=void 0===u?700:u;if(!(t=Object(i.a)({},t)).main&&t[o]&&(t.main=t[o]),!t.hasOwnProperty("main"))throw new Error(Object(c.a)(11,n?" (".concat(n,")"):"",o));if("string"!==typeof t.main)throw new Error(Object(c.a)(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return x(t,"light",s,O),x(t,"dark",l,O),t.contrastText||(t.contrastText=A(t.main)),t},N={dark:w,light:_};return Object(a.a)(Object(i.a)({common:f,mode:n,primary:P({color:E,name:"primary"}),secondary:P({color:k,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:C,name:"error"}),warning:P({color:I,name:"warning"}),info:P({color:T,name:"info"}),success:P({color:j,name:"success"}),grey:d,contrastThreshold:s,getContrastText:A,augmentColor:P,tonalOffset:O},N[n]),S)}var S=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var E={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?k:r,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,h=void 0===d?400:d,p=n.fontWeightMedium,g=void 0===p?500:p,v=n.fontWeightBold,m=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,w=n.pxToRem,x=Object(o.a)(n,S);var O=c/14,C=w||function(e){return"".concat(e/b*O,"rem")},T=function(e,t,n,r,o){return Object(i.a)({fontFamily:s,fontWeight:e,fontSize:C(t),lineHeight:n},s===k?{letterSpacing:"".concat((a=r/t,Math.round(1e5*a)/1e5),"em")}:{},o,_);var a},j={h1:T(f,96,1.167,-1.5),h2:T(f,60,1.2,-.5),h3:T(h,48,1.167,0),h4:T(h,34,1.235,.25),h5:T(h,24,1.334,0),h6:T(g,20,1.6,.15),subtitle1:T(h,16,1.75,.15),subtitle2:T(g,14,1.57,.1),body1:T(h,16,1.5,.15),body2:T(h,14,1.43,.15),button:T(g,14,1.75,.4,E),caption:T(h,12,1.66,.4),overline:T(h,12,2.66,1,E)};return Object(a.a)(Object(i.a)({htmlFontSize:b,pxToRem:C,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:m},j),x,{clone:!1})}function T(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var j=["none",T(0,2,1,-1,0,1,1,0,0,1,3,0),T(0,3,1,-2,0,2,2,0,0,1,5,0),T(0,3,3,-2,0,3,4,0,0,1,8,0),T(0,2,4,-1,0,4,5,0,0,1,10,0),T(0,3,5,-1,0,5,8,0,0,1,14,0),T(0,3,5,-1,0,6,10,0,0,1,18,0),T(0,4,5,-2,0,7,10,1,0,2,16,1),T(0,5,5,-3,0,8,10,1,0,3,14,2),T(0,5,6,-3,0,9,12,1,0,3,16,2),T(0,6,6,-3,0,10,14,1,0,4,18,3),T(0,6,7,-4,0,11,15,1,0,4,20,3),T(0,7,8,-4,0,12,17,2,0,5,22,4),T(0,7,8,-4,0,13,19,2,0,5,24,4),T(0,7,9,-4,0,14,21,2,0,5,26,4),T(0,8,9,-5,0,15,22,2,0,6,28,5),T(0,8,10,-5,0,16,24,2,0,6,30,5),T(0,8,11,-5,0,17,26,2,0,6,32,5),T(0,9,11,-5,0,18,28,2,0,7,34,6),T(0,9,12,-6,0,19,29,2,0,7,36,6
2),T(0,10,13,-6,0,20,31,3,0,8,38,7),T(0,10,13,-6,0,21,33,3,0,8,40,7),T(0,10,14,-6,0,22,35,3,0,8,42,7),T(0,11,14,-7,0,23,36,3,0,9,44,8),T(0,11,15,-7,0,24,38,3,0,9,46,8)],I=n(95),A={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},P=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,c=void 0===r?{}:r,l=e.transitions,f=void 0===l?{}:l,d=e.typography,h=void 0===d?{}:d,p=Object(o.a)(e,P),g=O(c),v=Object(s.a)(e),m=Object(a.a)(v,{mixins:u(v.breakpoints,v.spacing,n),palette:g,shadows:j.slice(),typography:C(g,h),transitions:Object(I.a)(f),zIndex:Object(i.a)({},A)});m=Object(a.a)(m,p);for(var y=arguments.length,b=new Array(y>1?y-1:0),_=1;_<y;_++)b[_-1]=arguments[_];return m=b.reduce((function(e,t){return Object(a.a)(e,t)}),m)}var M=N();t.a=M},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(94);var i=n(137),o=n(103);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},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)}))}function 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 d(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 h(e,t,n){this._db=e,this.oldVersion=t,this.transaction=new d(n)}function p(e){this._db=e}function g(e,t,n){var i=r(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){n&&n(new h(o.result,e.oldVersion,o.transaction))}),i.then((function(e){return new p(e)}))}function v(e){return r(indexedDB,"deleteDatabase",[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"]),d.prototype.objectStore=function(){return new f(this._tx.objectStore.apply(this._tx,arguments))},o(d,"_tx",["objectStoreNames","mode"]),s(d,"_tx",IDBTransaction,["abort"]),h.prototype.createObjectStore=function(){return new f(this._db.createObjectStore.apply(this._db,arguments))},o(h,"_db",["name","version","objectStoreNames"]),s(h,"_db",IDBDatabase,["deleteObjectStore","close"]),p.prototype.transaction=function(){return new d(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=g,e.deleteDb=v,Object.defineProperty(e,"__esModule",{value:!0})}(t)},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";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));var r=n(0),i=(n(114),n(39)),o=(n(191),n(92),n(90),n(46)),a=n(56),s=n(107),u=Object(i.e)((function(e,t){var n=e.styles,u=Object(a.a)([n],void 0,Object(r.useContext)(i.b)),c=Object(r.useRef)();return Object(r.useLayoutEffect)((function(){var e=t.key+"-global",n=new s.a({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+u.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),c.current=[n,r],function(){n.flush()}}),[t]),Object(r.useLayoutEffect)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==u.next&&Object(o.b)(t,u.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",u,n,!1)}}),[t,u.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(a.a)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(0),i=r.createContext();function o(){return r.useContext(i)}t.a=i},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";function r(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&(r(e.value)&&""!==e.value||t&&r(e.defaultValue)&&""!==e.defaultValue)}function o(e){return e.startAdornment}n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}))},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";e.exports=n(187)},,function(e,t,n){e.exports=n(159)()},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t=e.controlled,n=e.default,i=(e.name,e.state,r.useRef(void 0!==t).current),o=r.useState(n),a=o[0],s=o[1];return[i?t:a,r.useCallback((function(e){i||s(e)}),[])]}},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},function(e,t,n){"use strict";var r=n(55),i=n(9),o=n(257),a=n(4),s=["xs","sm","md","lg","xl"];function u(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,o=void 0===r?"px":r,u=e.step,c=void 0===u?5:u,l=Object(i.a)(e,["values","unit","step"]);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(o,")")}function d(e,t){var r=s.indexOf(t);return r===s.length-1?f(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(o,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[s[r+1]]?n[s[r+1]]:t)-c/100).concat(o,")")}return Object(a.a)({keys:s,values:n,up:f,down:function(e){var t=s.indexOf(e)+1,r=n[s[t]];return t===s.length?f("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-c/100).concat(o,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)}
2function c(e,t,n){var i;return Object(a.a)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "].join("\n")),Object(a.a)({paddingLeft:t(2),paddingRight:t(2)},n,Object(r.a)({},e.up("sm"),Object(a.a)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(i={minHeight:56},Object(r.a)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),Object(r.a)(i,e.up("sm"),{minHeight:64}),i)},n)}var l=n(142),f={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},h={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},p={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},g={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},v={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},m={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},y={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},b=n(30),_={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.white,default:d[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},w={text:{primary:f.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:d[800],default:"#303030"},action:{active:f.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function x(e,t,n,r){var i=r.light||r,o=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Object(b.d)(e.main,i):"dark"===t&&(e.dark=Object(b.b)(e.main,o)))}function O(e){var t=e.primary,n=void 0===t?{light:h[300],main:h[500],dark:h[700]}:t,r=e.secondary,s=void 0===r?{light:p.A200,main:p.A400,dark:p.A700}:r,u=e.error,c=void 0===u?{light:g[300],main:g[500],dark:g[700]}:u,O=e.warning,S=void 0===O?{light:v[300],main:v[500],dark:v[700]}:O,E=e.info,k=void 0===E?{light:m[300],main:m[500],dark:m[700]}:E,C=e.success,T=void 0===C?{light:y[300],main:y[500],dark:y[700]}:C,j=e.type,I=void 0===j?"light":j,A=e.contrastThreshold,P=void 0===A?3:A,N=e.tonalOffset,M=void 0===N?.2:N,R=Object(i.a)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return Object(b.c)(e,w.text.primary)>=P?w.text.primary:_.text.primary}var D=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=Object(a.a)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Object(l.a)(4,t));if("string"!==typeof e.main)throw new Error(Object(l.a)(5,JSON.stringify(e.main)));return x(e,"light",n,M),x(e,"dark",r,M),e.contrastText||(e.contrastText=L(e.main)),e},F={dark:w,light:_};return Object(o.a)(Object(a.a)({common:f,type:I,primary:D(n),secondary:D(s,"A400","A200","A700"),error:D(c),warning:D(S),info:D(k),success:D(T),grey:d,contrastThreshold:P,getContrastText:L,augmentColor:D,tonalOffset:M},F[I]),R)}function S(e){return Math.round(1e5*e)/1e5}function E(e){return S(e)}var k={textTransform:"uppercase"},C='"Roboto", "Helvetica", "Arial", sans-serif';function T(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,s=void 0===r?C:r,u=n.fontSize,c=void 0===u?14:u,l=n.fontWeightLight,f=void 0===l?300:l,d=n.fontWeightRegular,h=void 0===d?400:d,p=n.fontWeightMedium,g=void 0===p?500:p,v=n.fontWeightBold,m=void 0===v?700:v,y=n.htmlFontSize,b=void 0===y?16:y,_=n.allVariants,w=n.pxToRem,x=Object(i.a)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var O=c/14,T=w||function(e){return"".concat(e/b*O,"rem")},j=function(e,t,n,r,i){return Object(a.a)({fontFamily:s,fontWeight:e,fontSize:T(t),lineHeight:n},s===C?{letterSpacing:"".concat(S(r/t),"em")}:{},i,_)},I={h1:j(f,96,1.167,-1.5),h2:j(f,60,1.2,-.5),h3:j(h,48,1.167,0),h4:j(h,34,1.235,.25),h5:j(h,24,1.334,0),h6:j(g,20,1.6,.15),subtitle1:j(h,16,1.75,.15),subtitle2:j(g,14,1.57,.1),body1:j(h,16,1.5,.15),body2:j(h,14,1.43,.15),button:j(g,14,1.75,.4,k),caption:j(h,12,1.66,.4),overline:j(h,12,2.66,1,k)};return Object(o.a)(Object(a.a)({htmlFontSize:b,pxToRem:T,round:E,fontFamily:s,fontSize:c,fontWeightLight:f,fontWeightRegular:h,fontWeightMedium:g,fontWeightBold:m},I),x,{clone:!1})}function j(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var I=["none",j(0,2,1,-1,0,1,1,0,0,1,3,0),j(0,3,1,-2,0,2,2,0,0,1,5,0),j(0,3,3,-2,0,3,4,0,0,1,8,0),j(0,2,4,-1,0,4,5,0,0,1,10,0),j(0,3,5,-1,0,5,8,0,0,1,14,0),j(0,3,5,-1,0,6,10,0,0,1,18,0),j(0,4,5,-2,0,7,10,1,0,2,16,1),j(0,5,5,-3,0,8,10,1,0,3,14,2),j(0,5,6,-3,0,9,12,1,0,3,16,2),j(0,6,6,-3,0,10,14,1,0,4,18,3),j(0,6,7,-4,0,11,15,1,0,4,20,3),j(0,7,8,-4,0,12,17,2,0,5,22,4),j(0,7,8,-4,0,13,19,2,0,5,24,4),j(0,7,9,-4,0,14,21,2,0,5,26,4),j(0,8,9,-5,0,15,22,2,0,6,28,5),j(0,8,10,-5,0,16,24,2,0,6,30,5),j(0,8,11,-5,0,17,26,2,0,6,32,5),j(0,9,11,-5,0,18,28,2,0,7,34,6),j(0,9,12,-6,0,19,29,2,0,7,36,6
2),j(0,10,13,-6,0,20,31,3,0,8,38,7),j(0,10,13,-6,0,21,33,3,0,8,40,7),j(0,10,14,-6,0,22,35,3,0,8,42,7),j(0,11,14,-7,0,23,36,3,0,9,44,8),j(0,11,15,-7,0,24,38,3,0,9,46,8)],A={borderRadius:4},P=n(51),N=(n(63),n(68));n(8);var M=function(e,t){return t?Object(o.a)(e,t,{clone:!1}):e},R={xs:0,sm:600,md:960,lg:1280,xl:1920},L={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(R[e],"px)")}};var D={m:"margin",p:"padding"},F={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},V={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},U=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!V[e])return[e];e=V[e]}var t=e.split(""),n=Object(P.a)(t,2),r=n[0],i=n[1],o=D[r],a=F[i]||"";return Array.isArray(a)?a.map((function(e){return o+e})):[o+a]})),B=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function z(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function q(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function G(e){var t=z(e.theme);return Object.keys(e).map((function(n){if(-1===B.indexOf(n))return null;var r=q(U(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||L;return t.reduce((function(e,i,o){return e[r.up(r.keys[o])]=n(t[o]),e}),{})}if("object"===Object(N.a)(t)){var i=e.theme.breakpoints||L;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(M,{})}G.propTypes={},G.filterProps=B;function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=z({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}var H={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},K={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function X(e){return"".concat(Math.round(e),"ms")}var Y={easing:H,duration:K,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?K.standard:n,o=t.easing,a=void 0===o?H.easeInOut:o,s=t.delay,u=void 0===s?0:s;Object(i.a)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:X(r)," ").concat(a," ").concat("string"===typeof u?u:X(u))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},$=n(104);function Q(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,a=void 0===r?{}:r,s=e.palette,l=void 0===s?{}:s,f=e.spacing,d=e.typography,h=void 0===d?{}:d,p=Object(i.a)(e,["breakpoints","mixins","palette","spacing","typography"]),g=O(l),v=u(n),m=W(f),y=Object(o.a)({breakpoints:v,direction:"ltr",mixins:c(v,m,a),overrides:{},palette:g,props:{},shadows:I,typography:T(g,h),spacing:m,shape:A,transitions:Y,zIndex:$.a},p),b=arguments.length,_=new Array(b>1?b-1:0),w=1;w<b;w++)_[w-1]=arguments[w];return y=_.reduce((function(e,t){return Object(o.a)(e,t)}),y)}var J=Q();t.a=J},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=i.a.createContext(null)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e,t){return r.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)}},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},,,,,,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";var r=n(185),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,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&(!r||!r[m])&&(!g||!g[m])&&(!s||!s[m])){var y=d(n,m);try{c(t,m,y)}catch(b){}}}}return t}},function(e,t,n){"use strict";t.a=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l}));var r=n(14),i=n(6),o=["duration","easing","delay"],a={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function u(e){return"".concat(Math.round(e),"ms")}function c(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function l(e){var t=Object(i.a)({},a,e.easing),n=Object(i.a)({},s,e.duration);return Object(i.a)({getAutoHeightDuration:c,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,c=i.easing,l=void 0===c?t.easeInOut:c,f=i.delay,d=void 0===f?0:f;Object(r.a)(i,o);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof s?s:u(s)," ").concat(l," ").concat("string"===typeof d?d:u(d))})).join(",")}},e,{easing:t,duration:n})}},function(e,t,n){"use strict";var r=n(0),i=r.createContext({});t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return Q})),n.d(t,"c",(function(){return G})),n.d(t,"d",(function(){return D}));var r=n(0),i=n(38),o=n.n(i),a=(n(32),n(33),function(){function e(t,n){t.getClusterer().extend(e,google.maps.OverlayView),this.cluster=t,this.className=this.cluster.getClusterer().getClusterClass(),this.styles=n,this.center=void 0,this.div=null,this.sums=null,this.visible=!1,this.boundsChangedListener=null,this.url="",this.height=0,this.width=0,this.anchorText=[0,0],this.anchorIcon=[0,0],this.textColor="black",this.textSize=11,this.textDecoration="none",this.fontWeight="bold",this.fontStyle="normal",this.fontFamily="Arial,sans-serif",this.backgroundPosition="0 0",this.setMap(t.getMap())}var t=e.prototype;return t.onAdd=function(){var e,t,n=this;this.div=document.createElement("div"),this.div.className=this.className,this.visible&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div),this.boundsChangedListener=google.maps.event.addListener(this.getMap(),"boundschanged",(function(){t=e})),google.maps.event.addDomListener(this.div,"mousedown",(function(){e=!0,t=!1})),google.maps.event.addDomListener(this.div,"click",(function(r){if(e=!1,!t){var i=n.cluster.getClusterer();if(google.maps.event.trigger(i,"click",n.cluster),google.maps.event.trigger(i,"clusterclick",n.cluster),i.getZoomOnClick()){var o=i.getMaxZoom(),a=n.cluster.getBounds();i.getMap().fitBounds(a),setTimeout((function(){i.getMap().fitBounds(a),null!==o&&i.getMap().getZoom()>o&&i.getMap().setZoom(o+1)}),100)}r.cancelBubble=!0,r.stopPropagation&&r.stopPropagation()}})),google.maps.event.addDomListener(this.div,"mouseover",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseover",n.cluster)})),google.maps.event.addDomListener(this.div,"mouseout",(function(){google.maps.event.trigger(n.cluster.getClusterer(),"mouseout",n.cluster)}))},t.onRemove=function(){this.div&&this.div.parentNode&&(this.hide(),null!==this.boundsChangedListener&&google.maps.event.removeListener(this.boundsChangedListener),google.maps.event.clearInstanceListeners(this.div),this.div.parentNode.removeChild(this.div),this.div=null)},t.draw=function(){if(this.visible&&null!==this.div&&this.center){var e=this.getPosFromLatLng(this.center),t=e.x,n=e.y;this.div.style.top=n+"px",this.div.style.left=t+"px"}},t.hide=function(){this.div&&(this.div.style.display="none"),this.visible=!1},t.show=function(){if(this.div&&this.center){var e="",t="",n=this.backgroundPosition.split(" "),r=parseInt(n[0].replace(/^\s+|\s+$/g,""),10),i=parseInt(n[1].replace(/^\s+|\s+$/g,""),10),o=this.getPosFromLatLng(this.center);t=null===this.sums||"undefined"===typeof this.sums.title||""===this.sums.title?this.cluster.getClusterer().getTitle():this.sums.title,this.div.style.cssText=this.createCss(o),e="<img alt='"+t+"' src='"+this.url+"' style='position: absolute; top: "+i+"px; left: "+r+"px; ",this.cluster.getClusterer().enableRetinaIcons||(e+="clip: rect("+-1*i+"px, "+(-1*r+this.width)+"px, "+(-1*i+this.height)+"px, "+-1*r+"px);"),e+="'>",this.div.innerHTML=e+"<div style='position: absolute;top: "+this.anchorText[0]+"px;left: "+this.anchorText[1]+"px;color: "+this.textColor+";font-size: "+this.textSize+"px;font-family: "+this.fontFamily+";font-weight: "+this.fontWeight+";font-style: "+this.fontStyle+";text-decoration: "+this.textDecoration+";text-align: center;width: "+this.width+"px;line-height:"+this.height+"px;'>"+this.sums.text+"</div>",this.div.title=t,this.div.style.display=""}this.visible=!0},t.useStyle=function(e){this.sums=e;var t=this.styles[Math.min(this.styles.length-1,Math.max(0,e.index-1))];this.url=t.url,this.height=t.height,this.width=t.width,t.className&&(this.className=this.className+" "+t.className),this.anchorText=t.anchorText||[0,0],this.anchorIcon=t.anchorIcon||[this.height/2,this.width/2],this.textColor=t.textColor||"black",this.textSize=t.textSize||11,this.textDecoration=t.textDecoration||"none",this.fontWeight=t.fontWeight||"bold",this.fontStyle=t.fontStyle||"normal",this.fontFamily=t.fontFamily||"Arial,sans-serif",this.backgroundPosition=t.backgroundPosition||"0 0"},t.setCenter=function(e){this.center=e},t.createCss=function(e){var t=[];return t.push("cursor: pointer;
2"),t.push("position: absolute; top: "+e.y+"px; left: "+e.x+"px;"),t.push("width: "+this.width+"px; height: "+this.height+"px;"),t.join("")},t.getPosFromLatLng=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x-=this.anchorIcon[1],t.y-=this.anchorIcon[0],t},e}()),s=function(){function e(e){this.markerClusterer=e,this.map=this.markerClusterer.getMap(),this.gridSize=this.markerClusterer.getGridSize(),this.minClusterSize=this.markerClusterer.getMinimumClusterSize(),this.averageCenter=this.markerClusterer.getAverageCenter(),this.markers=[],this.center=void 0,this.bounds=null,this.clusterIcon=new a(this,this.markerClusterer.getStyles())}var t=e.prototype;return t.getSize=function(){return this.markers.length},t.getMarkers=function(){return this.markers},t.getCenter=function(){return this.center},t.getMap=function(){return this.map},t.getClusterer=function(){return this.markerClusterer},t.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center,this.center),t=this.getMarkers(),n=0;n<t.length;n++){var r=t[n].getPosition();r&&e.extend(r)}return e},t.remove=function(){this.clusterIcon.setMap(null),this.markers=[],delete this.markers},t.addMarker=function(e){if(this.isMarkerAlreadyAdded(e))return!1;if(this.center){if(this.averageCenter){var t=e.getPosition();if(t){var n=this.markers.length+1;this.center=new google.maps.LatLng((this.center.lat()*(n-1)+t.lat())/n,(this.center.lng()*(n-1)+t.lng())/n),this.calculateBounds()}}}else{var r=e.getPosition();r&&(this.center=r,this.calculateBounds())}e.isAdded=!0,this.markers.push(e);var i=this.markers.length,o=this.markerClusterer.getMaxZoom();if(null!==o&&this.map.getZoom()>o)e.getMap()!==this.map&&e.setMap(this.map);else if(i<this.minClusterSize)e.getMap()!==this.map&&e.setMap(this.map);else if(i===this.minClusterSize)for(var a=0;a<i;a++)this.markers[a].setMap(null);else e.setMap(null);return!0},t.isMarkerInClusterBounds=function(e){if(null!==this.bounds){var t=e.getPosition();if(t)return this.bounds.contains(t)}return!1},t.calculateBounds=function(){this.bounds=this.markerClusterer.getExtendedBounds(new google.maps.LatLngBounds(this.center,this.center))},t.updateIcon=function(){var e=this.markers.length,t=this.markerClusterer.getMaxZoom();null!==t&&this.map.getZoom()>t||e<this.minClusterSize?this.clusterIcon.hide():(this.center&&this.clusterIcon.setCenter(this.center),this.clusterIcon.useStyle(this.markerClusterer.getCalculator()(this.markers,this.markerClusterer.getStyles().length)),this.clusterIcon.show())},t.isMarkerAlreadyAdded=function(e){if(this.markers.includes)return this.markers.includes(e);for(var t=0;t<this.markers.length;t++)if(e===this.markers[t])return!0;return!1},e}(),u=function(e,t){var n=e.length,r=n.toString().length,i=Math.min(r,t);return{text:n.toString(),index:i,title:""}},c=[53,56,66,78,90],l=function(){function e(t,n,r){void 0===n&&(n=[]),void 0===r&&(r={}),this.extend(e,google.maps.OverlayView),this.markers=[],this.clusters=[],this.listeners=[],this.activeMap=null,this.ready=!1,this.gridSize=r.gridSize||60,this.minClusterSize=r.minimumClusterSize||2,this.maxZoom=r.maxZoom||null,this.styles=r.styles||[],this.title=r.title||"",this.zoomOnClick=!0,void 0!==r.zoomOnClick&&(this.zoomOnClick=r.zoomOnClick),this.averageCenter=!1,void 0!==r.averageCenter&&(this.averageCenter=r.averageCenter),this.ignoreHidden=!1,void 0!==r.ignoreHidden&&(this.ignoreHidden=r.ignoreHidden),this.enableRetinaIcons=!1,void 0!==r.enableRetinaIcons&&(this.enableRetinaIcons=r.enableRetinaIcons),this.imagePath=r.imagePath||"https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m",this.imageExtension=r.imageExtension||"png",this.imageSizes=r.imageSizes||c,this.calculator=r.calculator||u,this.batchSize=r.batchSize||2e3,this.batchSizeIE=r.batchSizeIE||500,this.clusterClass=r.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(this.batchSize=this.batchSizeIE),this.timerRefStatic=null,this.setupStyles(),this.addMarkers(n,!0),this.setMap(t)}var t=e.prototype;return t.onAdd=function(){var e=this;this.activeMap=this.getMap(),this.ready=!0,this.repaint(),this.listeners=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){e.resetViewport(!1),e.getMap().getZoom()!==(e.get("minZoom")||0)&&e.getMap().getZoom()!==e.get("maxZoom")||google.maps.event.trigger(e,"idle")})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw()}))]},t.onRemove=function(){for(var e=0;e<this.markers.length;e++)this.markers[e].getMap()!==this.activeMap&&this.markers[e].setMap(this.activeMap);for(var t=0;
2t<this.clusters.length;t++)this.clusters[t].remove();this.clusters=[];for(var n=0;n<this.listeners.length;n++)google.maps.event.removeListener(this.listeners[n]);this.listeners=[],this.activeMap=null,this.ready=!1},t.draw=function(){},t.setupStyles=function(){if(!(this.styles.length>0))for(var e=0;e<this.imageSizes.length;e++)this.styles.push({url:this.imagePath+(e+1)+"."+this.imageExtension,height:this.imageSizes[e],width:this.imageSizes[e]})},t.fitMapToMarkers=function(){for(var e=this.getMarkers(),t=new google.maps.LatLngBounds,n=0;n<e.length;n++){var r=e[n].getPosition();r&&t.extend(r)}this.getMap().fitBounds(t)},t.getGridSize=function(){return this.gridSize},t.setGridSize=function(e){this.gridSize=e},t.getMinimumClusterSize=function(){return this.minClusterSize},t.setMinimumClusterSize=function(e){this.minClusterSize=e},t.getMaxZoom=function(){return this.maxZoom},t.setMaxZoom=function(e){this.maxZoom=e},t.getStyles=function(){return this.styles},t.setStyles=function(e){this.styles=e},t.getTitle=function(){return this.title},t.setTitle=function(e){this.title=e},t.getZoomOnClick=function(){return this.zoomOnClick},t.setZoomOnClick=function(e){this.zoomOnClick=e},t.getAverageCenter=function(){return this.averageCenter},t.setAverageCenter=function(e){this.averageCenter=e},t.getIgnoreHidden=function(){return this.ignoreHidden},t.setIgnoreHidden=function(e){this.ignoreHidden=e},t.getEnableRetinaIcons=function(){return this.enableRetinaIcons},t.setEnableRetinaIcons=function(e){this.enableRetinaIcons=e},t.getImageExtension=function(){return this.imageExtension},t.setImageExtension=function(e){this.imageExtension=e},t.getImagePath=function(){return this.imagePath},t.setImagePath=function(e){this.imagePath=e},t.getImageSizes=function(){return this.imageSizes},t.setImageSizes=function(e){this.imageSizes=e},t.getCalculator=function(){return this.calculator},t.setCalculator=function(e){this.calculator=e},t.getBatchSizeIE=function(){return this.batchSizeIE},t.setBatchSizeIE=function(e){this.batchSizeIE=e},t.getClusterClass=function(){return this.clusterClass},t.setClusterClass=function(e){this.clusterClass=e},t.getMarkers=function(){return this.markers},t.getTotalMarkers=function(){return this.markers.length},t.getClusters=function(){return this.clusters},t.getTotalClusters=function(){return this.clusters.length},t.addMarker=function(e,t){this.pushMarkerTo(e),t||this.redraw()},t.addMarkers=function(e,t){for(var n in e)e.hasOwnProperty(n)&&this.pushMarkerTo(e[n]);t||this.redraw()},t.pushMarkerTo=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers.push(e)},t.removeMarker_=function(e){var t=-1;if(this.markers.indexOf)t=this.markers.indexOf(e);else for(var n=0;n<this.markers.length;n++)if(e===this.markers[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers.splice(t,1),!0)},t.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},t.removeMarkers=function(e,t){for(var n=!1,r=0;r<e.length;r++)n=n||this.removeMarker_(e[r]);return!t&&n&&this.repaint(),n},t.clearMarkers=function(){this.resetViewport(!0),this.markers=[]}
2,t.repaint=function(){var e=this.clusters.slice();this.clusters=[],this.resetViewport(!1),this.redraw(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},t.getExtendedBounds=function(e){var t=this.getProjection(),n=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()));n.x+=this.gridSize,n.y-=this.gridSize;var r=t.fromLatLngToDivPixel(new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()));return r.x-=this.gridSize,r.y+=this.gridSize,e.extend(t.fromDivPixelToLatLng(n)),e.extend(t.fromDivPixelToLatLng(r)),e},t.redraw=function(){this.createClusters(0)},t.resetViewport=function(e){for(var t=0;t<this.clusters.length;t++)this.clusters[t].remove();this.clusters=[];for(var n=0;n<this.markers.length;n++){var r=this.markers[n];r.isAdded=!1,e&&r.setMap(null)}},t.distanceBetweenPoints=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,i=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 2*Math.atan2(Math.sqrt(i),Math.sqrt(1-i))*6371},t.isMarkerInBounds=function(e,t){var n=e.getPosition();return!!n&&t.contains(n)},t.addToClosestCluster=function(e){for(var t,n=4e4,r=null,i=0;
2i<this.clusters.length;i++){var o=(t=this.clusters[i]).getCenter(),a=e.getPosition();if(o&&a){var u=this.distanceBetweenPoints(o,a);u<n&&(n=u,r=t)}}r&&r.isMarkerInClusterBounds(e)?r.addMarker(e):((t=new s(this)).addMarker(e),this.clusters.push(t))},t.createClusters=function(e){var t=this;if(this.ready){0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),null!==this.timerRefStatic&&(window.clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625)),r=this.getExtendedBounds(n),i=Math.min(e+this.batchSize,this.markers.length),o=e;o<i;o++){var a=this.markers[o];!a.isAdded&&this.isMarkerInBounds(a,r)&&(!this.ignoreHidden||this.ignoreHidden&&a.getVisible())&&this.addToClosestCluster(a)}if(i<this.markers.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters(i)}),0);else{this.timerRefStatic=null,google.maps.event.trigger(this,"clusteringend",this);for(var s=0;
2s<this.clusters.length;s++)this.clusters[s].updateIcon()}}},t.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype[t]=e.prototype[t];return this}.apply(e,[t])},e}(),f=n(22),d=function(){function e(t){void 0===t&&(t={}),this.extend(e,google.maps.OverlayView),this.content=t.content||"",this.disableAutoPan=t.disableAutoPan||!1,this.maxWidth=t.maxWidth||0,this.pixelOffset=t.pixelOffset||new google.maps.Size(0,0),this.position=t.position||new google.maps.LatLng(0,0),this.zIndex=t.zIndex||null,this.boxClass=t.boxClass||"infoBox",this.boxStyle=t.boxStyle||{},this.closeBoxMargin=t.closeBoxMargin||"2px",this.closeBoxURL=t.closeBoxURL||"http://www.google.com/intl/en_us/mapfiles/close.gif",""===t.closeBoxURL&&(this.closeBoxURL=""),this.infoBoxClearance=t.infoBoxClearance||new google.maps.Size(1,1),"undefined"===typeof t.visible&&("undefined"===typeof t.isHidden?t.visible=!0:t.visible=!t.isHidden),this.isHidden=!t.visible,this.alignBottom=t.alignBottom||!1,this.pane=t.pane||"floatPane",this.enableEventPropagation=t.enableEventPropagation||!1,this.div=null,this.closeListener=null,this.moveListener=null,this.mapListener=null,this.contextListener=null,this.eventListeners=null,this.fixedWidthSet=null}var t=e.prototype;return t.createInfoBoxDiv=function(){var e=this;function t(e){e.cancelBubble=!0,e.stopPropagation&&e.stopPropagation()}if(!this.div){if(this.div=document.createElement("div"),this.setBoxStyle(),"string"===typeof this.content?this.div.innerHTML=this.getCloseBoxImg()+this.content:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(this.content)),this.getPanes()[this.pane].appendChild(this.div),this.addClickHandler(),this.div.style.width)this.fixedWidthSet=!0;else if(0!==this.maxWidth&&this.div.offsetWidth>this.maxWidth)this.div.style.width=this.maxWidth+"px",this.fixedWidthSet=!0;else{var n=this.getBoxWidths();
2this.div.style.width=this.div.offsetWidth-n.left-n.right+"px",this.fixedWidthSet=!1}if(this.panBox(this.disableAutoPan),!this.enableEventPropagation){this.eventListeners=[];for(var r=["mousedown","mouseover","mouseout","mouseup","click","dblclick","touchstart","touchend","touchmove"],i=0;i<r.length;i++)this.eventListeners.push(google.maps.event.addDomListener(this.div,r[i],t));this.eventListeners.push(google.maps.event.addDomListener(this.div,"mouseover",(function(){e.div&&(e.div.style.cursor="default")})))}this.contextListener=google.maps.event.addDomListener(this.div,"contextmenu",(function(n){n.returnValue=!1,n.preventDefault&&n.preventDefault(),e.enableEventPropagation||t(n)})),google.maps.event.trigger(this,"domready")}},t.getCloseBoxImg=function(){var e="";return""!==this.closeBoxURL&&(e='<img alt=""',e+=' aria-hidden="true"',e+=" src='"+this.closeBoxURL+"'",e+=" align=right",e+=" style='",e+=" position: relative;",e+=" cursor: pointer;",e+=" margin: "+this.closeBoxMargin+";",e+="'>"),e},t.addClickHandler=function(){if(this.div&&this.div.firstChild&&""!==this.closeBoxURL){var e=this.div.firstChild;this.closeListener=google.maps.event.addDomListener(e,"click",this.getCloseClickHandler())}else this.closeListener=null},t.getCloseClickHandler=function(){var e=this;return function(t){t.cancelBubble=!0,t.stopPropagation&&t.stopPropagation(),google.maps.event.trigger(e,"closeclick"),e.close()}},t.panBox=function(e){if(this.div&&!e){var t=this.getMap();if(t instanceof google.maps.Map){var n=0,r=0,i=t.getBounds();i&&!i.contains(this.position)&&t.setCenter(this.position);var o=t.getDiv(),a=o.offsetWidth,s=o.offsetHeight,u=this.pixelOffset.width,c=this.pixelOffset.height,l=this.div.offsetWidth,f=this.div.offsetHeight,d=this.infoBoxClearance.width,h=this.infoBoxClearance.height,p=this.getProjection().fromLatLngToContainerPixel(this.position);p.x<-u+d?n=p.x+u-d:p.x+l+u+d>a&&(n=p.x+l+u+d-a),this.alignBottom?p.y<-c+h+f?r=p.y+c-h-f:p.y+c+h>s&&(r=p.y+c+h-s):p.y<-c+h?r=p.y+c-h:p.y+f+c+h>s&&(r=p.y+f+c+h-s),0===n&&0===r||t.panBy(n,r)}}},t.setBoxStyle=function(){if(this.div){this.div.className=this.boxClass,this.div.style.cssText="";var e=this.boxStyle;for(var t in e)e.hasOwnProperty(t)&&(this.div.style[t]=e[t]);if(this.div.style.webkitTransform="translateZ(0)","undefined"!==typeof this.div.style.opacity&&""!==this.div.style.opacity){var n=parseFloat(this.div.style.opacity||"");this.div.style.msFilter='"progid:DXImageTransform.Microsoft.Alpha(Opacity='+100*n+')"',this.div.style.filter="alpha(opacity="+100*n+")"}this.div.style.position="absolute",this.div.style.visibility="hidden",null!==this.zIndex&&(this.div.style.zIndex=this.zIndex+""),this.div.style.overflow||(this.div.style.overflow="auto")}},t.getBoxWidths=function(){var e={top:0,bottom:0,left:0,right:0};if(!this.div)return e;if(document.defaultView&&document.defaultView.getComputedStyle){var t=this.div.ownerDocument,n=t&&t.defaultView?t.defaultView.getComputedStyle(this.div,""):null;n&&(e.top=parseInt(n.borderTopWidth||"",10)||0,e.bottom=parseInt(n.borderBottomWidth||"",10)||0,e.left=parseInt(n.borderLeftWidth||"",10)||0,e.right=parseInt(n.borderRightWidth||"",10)||0)}else if(document.documentElement.currentStyle){var r=this.div.currentStyle;r&&(e.top=parseInt(r.borderTopWidth||"",10)||0,e.bottom=parseInt(r.borderBottomWidth||"",10)||0,e.left=parseInt(r.borderLeftWidth||"",10)||0,e.right=parseInt(r.borderRightWidth||"",10)||0)}return e},t.onRemove=function(){this.div&&this.div.parentNode&&(this.div.parentNode.removeChild(this.div),this.div=null)},t.draw=function(){if(this.createInfoBoxDiv(),this.div){var e=this.getProjection().fromLatLngToDivPixel(this.position);this.div.style.left=e.x+this.pixelOffset.width+"px",this.alignBottom?this.div.style.bottom=-(e.y+this.pixelOffset.height)+"px":this.div.style.top=e.y+this.pixelOffset.height+"px",this.isHidden?this.div.style.visibility="hidden":this.div.style.visibility="visible"}},t.setOptions=function(e){void 0===e&&(e={}),"undefined"!==typeof e.boxClass&&(this.boxClass=e.boxClass,this.setBoxStyle()),"undefined"!==typeof e.boxStyle&&(this.boxStyle=e.boxStyle,this.setBoxStyle()),"undefined"!==typeof e.content&&this.setContent(e.content),"undefined"!==typeof e.disableAutoPan&&(this.disableAutoPan=e.disableAutoPan),"undefined"!==typeof e.maxWidth&&(this.maxWidth=e.maxWidth),"undefined"!==typeof e.pixelOffset&&(this.pixelOffset=e.pixelOffset),"undefined"!==typeof e.alignBottom&&(this.alignBottom=e.alignBottom),"undefined"!==typeof e.position&&this.setPosition(e.position),"undefined"!==typeof e.zIndex&&this.setZIndex(e.zIndex),"undefined"!==typeof e.closeBoxMargin&&(this.closeBoxMargin=e.closeBoxMargin),"undefined"!==typeof e.closeBoxURL&&(this.closeBoxURL=e.closeBoxURL),"undefined"!==typeof e.infoBoxClearance&&(this.infoBoxClearance=e.infoBoxClearance),"undefined"!==typeof e.isHidden&&(this.isHidden=e.isHidden),"undefined"!==typeof e.visible&&(this.isHidden=!e.visible),"undefined"!==typeof e.enableEventPropagation&&(this.enableEventPropagation=e.enableEventPropagation),this.div&&this.draw()},t.setContent=function(e){this.content=e,this.div&&(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.fixedWidthSet||(this.div.style.width=""),"string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e)),this.fixedWidthSet||(this.div.style.width=this.div.offsetWidth+"px","string"===typeof e?this.div.innerHTML=this.getCloseBoxImg()+e:(this.div.innerHTML=this.getCloseBoxImg(),this.div.appendChild(e))),this.addClickHandler()),google.maps.event.trigger(this,"content_changed")},t.setPosition=function(e){this.position=e,this.div&&this.draw(),google.maps.event.trigger(this,"position_changed")},t.setVisible=function(e){this.isHidden=!e,this.div&&(this.div.style.visibility=this.isHidden?"hidden":"visible")},t.setZIndex=function(e){this.zIndex=e,this.div&&(this.div.style.zIndex=e+""),google.maps.event.trigger(this,"zindex_changed")},t.getContent=function(){return this.content},t.getPosition=function(){return this.position},t.getZIndex=function(){return this.zIndex},t.getVisible=function(){var e=this.getMap();return"undefined"!==typeof e&&null!==e&&!this.isHidden},t.show=function(){this.isHidden=!1,this.div&&(this.div.style.visibility="visible")},t.hide=function(){this.isHidden=!0,this.div&&(this.div.style.visibility="hidden")},t.open=function(e,t){var n=this;t&&(this.position=t.getPosition(),this.moveListener=google.maps.event.addListener(t,"position_changed",(function(){var e=t.getPosition();n.setPosition(e)})),this.mapListener=google.maps.event.addListener(t,"map_changed",(function(){n.setMap(t.map)}))),this.setMap(e),this.div&&this.panBox()},t.close=function(){if(this.closeListener&&(google.maps.event.removeListener(this.closeListener),this.closeListener=null),this.eventListeners){for(var e=0;e<this.eventListeners.length;e++)google.maps.event.removeListener(this.eventListeners[e]);this.eventListeners=null}this.moveListener&&(google.maps.event.removeListener(this.moveListener),this.moveListener=null),this.mapListener&&(google.maps.event.removeListener(this.mapListener),this.mapListener=null),this.contextListener&&(google.maps.event.removeListener(this.contextListener),this.contextListener=null),this.setMap(null)},t.extend=function(e,t){return function(e){for(var t in e.prototype)this.prototype.hasOwnProperty(t)||(this.prototype[t]=e.prototype[t]);return this}.apply(e,[t])},e}();function h(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){h(o,r,i,a,s,"next",e)}function s(e){h(o,r,i,a,s,"throw",e)}a(void 0)}))}}function g(){return(g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function m(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}var y=Object(r.createContext)(null);var b=function(e,t,n,r){var i,o,a={};return i=e,o=function(e,i){var o=n[i];o!==t[i]&&(a[i]=o,e(r,o))}
2,Object.keys(i).forEach((function(e){return o(i[e],e)})),a};function _(e,t,n){var r,i,o;return r=n,i=function(n,r,i){return"function"===typeof e[i]&&n.push(google.maps.event.addListener(t,r,e[i])),n},o=[],Object.keys(r).reduce((function(e,t){return i(e,r[t],t)}),o)}function w(e){google.maps.event.removeListener(e)}function x(e){void 0===e&&(e=[]),e.forEach(w)}function O(e){var t=e.updaterMap,n=e.eventMap,r=e.prevProps,i=e.nextProps,o=e.instance,a=_(i,o,n);return b(t,r,i,o),a}var S={onDblClick:"dblclick",onDragEnd:"dragend",onDragStart:"dragstart",onMapTypeIdChanged:"maptypeid_changed",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseDown:"mousedown",onMouseUp:"mouseup",onRightClick:"rightclick",onTilesLoaded:"tilesloaded",onBoundsChanged:"bounds_changed",onCenterChanged:"center_changed",onClick:"click",onDrag:"drag",onHeadingChanged:"heading_changed",onIdle:"idle",onProjectionChanged:"projection_changed",onResize:"resize",onTiltChanged:"tilt_changed",onZoomChanged:"zoom_changed"},E={extraMapTypes:function(e,t){t.forEach((function(t,n){e.mapTypes.set(String(n),t)}))},center:function(e,t){e.setCenter(t)},clickableIcons:function(e,t){e.setClickableIcons(t)},heading:function(e,t){e.setHeading(t)},mapTypeId:function(e,t){e.setMapTypeId(t)},options:function(e,t){e.setOptions(t)},streetView:function(e,t){e.setStreetView(t)},tilt:function(e,t){e.setTilt(t)},zoom:function(e,t){e.setZoom(t)}},k=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state={map:null},t.registeredEvents=[],t.mapRef=null,t.getInstance=function(){return null===t.mapRef?null:new google.maps.Map(t.mapRef,t.props.options)},t.panTo=function(e){var n=t.getInstance();n&&n.panTo(e)},t.setMapCallback=function(){null!==t.state.map&&t.props.onLoad&&t.props.onLoad(t.state.map)},t.getRef=function(e){t.mapRef=e},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.getInstance();this.registeredEvents=O({updaterMap:E,eventMap:S,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{map:e}}),this.setMapCallback)},n.componentDidUpdate=function(e){null!==this.state.map&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:E,eventMap:S,prevProps:e,nextProps:this.props,instance:this.state.map}))},n.componentWillUnmount=function(){null!==this.state.map&&(this.props.onUnmount&&this.props.onUnmount(this.state.map),x(this.registeredEvents))},n.render=function(){return Object(r.createElement)("div",{id:this.props.id,ref:this.getRef,style:this.props.mapContainerStyle,className:this.props.mapContainerClassName},Object(r.createElement)(y.Provider,{value:this.state.map},null!==this.state.map?this.props.children:Object(r.createElement)(r.Fragment,null)))},t}(r.PureComponent);var C=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(A){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function y(){}var b={};b[o]=function(){return this};var _=Object.getPrototypeOf,w=_&&_(_(j([])));w&&w!==n&&r.call(w,o)&&(b=w);var x=y.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,326 bytes, line 2
2))}function S(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=x.constructor=y,y.constructor=m,m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},O(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new S(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(x),u(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}})),T="undefined"!==typeof document,j=function(e){var t=e.url,n=e.id,r=e.nonce;return T?new Promise((function(e,i){var o=document.getElementById(n),a=window;if(o){var s=o.getAttribute("data-state");if(o.src===t&&"error"!==s){if("ready"===s)return e(n);var u=a.initMap,c=o.onerror;return a.initMap=function(){u&&u(),e(n)},void(o.onerror=function(e){c&&c(e),i(e)})}o.remove()}var l=document.createElement("script");l.type="text/javascript",l.src=t,l.id=n,l.async=!0,l.nonce=r,l.onerror=function(e){l.setAttribute("data-state","error"),i(e)},a.initMap=function(){l.setAttribute("data-state","ready"),e(n)},document.head.appendChild(l)})).catch((function(e){throw console.error("injectScript error: ",e),e})):Promise.reject(new Error("document is undefined"))},I=function(e){return!(!e.href||0!==e.href.indexOf("https://fonts.googleapis.com/css?family=Roboto"))||("style"===e.tagName.toLowerCase()&&e.styleSheet&&e.styleSheet.cssText&&0===e.styleSheet.cssText.replace("\r\n","").indexOf(".gm-style")?(e.styleSheet.cssText="",!0):"style"===e.tagName.toLowerCase()&&e.innerHTML&&0===e.innerHTML.replace("\r\n","").indexOf(".gm-style")?(e.innerHTML="",!0):"style"===e.tagName.toLowerCase()&&!e.styleSheet&&!e.innerHTML)},A=function(){var e=document.getElementsByTagName("head")[0],t=e.insertBefore.bind(e);e.insertBefore=function(n,r){I(n)||Reflect.apply(t,e,[n,r])};var n=e.appendChild.bind(e);e.appendChild=function(t){I(t)||Reflect.apply(n,e,[t])}};function P(e){var t=e.googleMapsApiKey,n=e.googleMapsClientId,r=e.version,i=void 0===r?"weekly":r,a=e.language,s=e.region,u=e.libraries,c=e.channel,l=e.mapIds,f=[];return t&&n||!t||!n||o()(!1),t?f.push("key="+t):n&&f.push("client="+n),i&&f.push("v="+i),a&&f.push("language="+a),s&&f.push("region="+s),u&&u.length&&f.push("libraries="+u.sort().join(",")),c&&f.push("channel="+c),l&&l.length&&f.push("map_ids="+l.join(",")),f.push("callback=initMap"),"https://maps.googleapis.com/maps/api/js?"+f.join("&")}var N=!1;function M(){return Object(r.createElement)("div",null,"Loading...")}var R,L={id:"script-loader",version:"weekly"};function D(e){var t=e.id,n=void 0===t?L.id:t,i=e.version,a=void 0===i?L.version:i,s=e.nonce,u=e.googleMapsApiKey,c=e.googleMapsClientId,l=e.language,f=e.region,d=e.libraries,h=e.preventGoogleFontsLoading,p=e.channel,g=e.mapIds,v=Object(r.useRef)(!1),m=Object(r.useState)(!1),y=m[0],b=m[1],_=Object(r.useState)(void 0),w=_[0],x=_[1];Object(r.useEffect)((function(){return v.current=!0,function(){v.current=!1}}),[]),Object(r.useEffect)((function(){T&&h&&A()}),[h]),Object(r.useEffect)((function(){y&&(window.google||o()(!1))}),[y]);var O=P({version:a,googleMapsApiKey:u,googleMapsClientId:c,language:l,region:f,libraries:d,channel:p,mapIds:g});Object(r.useEffect)((function(){function e(){v.current&&(b(!0),R=O)}T&&(window.google&&window.google.maps&&R===O?e():j({id:n,url:O,nonce:s}).then(e).catch((function(e){v.current&&x(e),console.warn("\n        There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(u||"-")+") or Client ID ("+(c||"
2-")+")\n        Otherwise it is a Network issue.\n      "),console.error(e)})))}),[n,O,s]);var S=Object(r.useRef)();return Object(r.useEffect)((function(){S.current&&d!==S.current&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),S.current=d}),[d]),{isLoaded:y,loadError:w,url:O}}(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).check=Object(r.createRef)(),t.state={loaded:!1},t.cleanupCallback=function(){delete window.google.maps,t.injectScript()},t.isCleaningUp=p(C.mark((function e(){var t;return C.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=function(e){if(N){if(T)var t=window.setInterval((function(){N||(window.clearInterval(t),e())}),1)}else e()},e.abrupt("return",new Promise(t));case 2:case"end":return e.stop()}}),e)}))),t.cleanup=function(){N=!0;var e=document.getElementById(t.props.id);e&&e.parentNode&&e.parentNode.removeChild(e),Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(e){return"string"===typeof e.src&&e.src.includes("maps.googleapis")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("link")).filter((function(e){return"https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Google+Sans"===e.href})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)})),Array.prototype.slice.call(document.getElementsByTagName("style")).filter((function(e){return void 0!==e.innerText&&e.innerText.length>0&&e.innerText.includes(".gm-")})).forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},t.injectScript=function(){t.props.preventGoogleFontsLoading&&A(),t.props.id||o()(!1);var e={id:t.props.id,nonce:t.props.nonce,url:P(t.props)};j(e).then((function(){t.props.onLoad&&t.props.onLoad(),t.setState((function(){return{loaded:!0}}))})).catch((function(e){t.props.onError&&t.props.onError(e),console.error("\n          There has been an Error with loading Google Maps API script, please check that you provided correct google API key ("+(t.props.googleMapsApiKey||"-")+") or Client ID ("+(t.props.googleMapsClientId||"-")+") to <LoadScript />\n          Otherwise it is a Network issue.\n        ")}))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){if(T){if(window.google&&window.google.maps&&!N)return void console.error("google api is already presented");this.isCleaningUp().then(this.injectScript).catch((function(e){console.error("Error at injecting script after cleaning up: ",e)}))}},n.componentDidUpdate=function(e){this.props.libraries!==e.libraries&&console.warn("Performance warning! LoadScript has been reloaded unintentionally! You should not pass `libraries` prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variables"),T&&e.language!==this.props.language&&(this.cleanup(),this.setState((function(){return{loaded:!1}}),this.cleanupCallback))},n.componentWillUnmount=function(){var e=this;if(T){this.cleanup();window.setTimeout((function(){e.check.current||(delete window.google,N=!1)}),1),this.props.onUnmount&&this.props.onUnmount()}},n.render=function(){return Object(r.createElement)(r.Fragment,null,Object(r.createElement)("div",{ref:this.check}),this.state.loaded?this.props.children:this.props.loadingElement||Object(r.createElement)(M,null))},t}(r.PureComponent)).defaultProps=L;var F={},V={options:function(e,t){e.setOptions(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state={trafficLayer:null},t.setTrafficLayerCallback=function(){null!==t.state.trafficLayer&&t.props.onLoad&&t.props.onLoad(t.state.trafficLayer)},t.registeredEvents=[],t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.TrafficLayer(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:V,eventMap:F,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{trafficLayer:e}}),this.setTrafficLayerCallback)},n.componentDidUpdate=function(e){null!==this.state.trafficLayer&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:V,eventMap:F,prevProps:e,nextProps:this.props,instance:this.state.trafficLayer}))},n.componentWillUnmount=function(){null!==this.state.trafficLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.trafficLayer),x(this.registeredEvents),this.state.trafficLayer.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y,(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state={bicyclingLayer:null},t.setBicyclingLayerCallback=function(){null!==t.state.bicyclingLayer&&(t.state.bicyclingLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.bicyclingLayer))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.BicyclingLayer;this.setState((function(){return{bicyclingLayer:e}}),this.setBicyclingLayerCallback)},n.componentWillUnmount=function(){null!==this.state.bicyclingLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.bicyclingLayer),this.state.bicyclingLayer.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y,(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state={transitLayer:null},t.setTransitLayerCallback=function(){null!==t.state.transitLayer&&(t.state.transitLayer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.transitLayer))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.TransitLayer;this.setState((function(){return{transitLayer:e}}),this.setTransitLayerCallback)},n.componentWillUnmount=function(){null!==this.state.transitLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.transitLayer),this.state.transitLayer.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y;var U={onCircleComplete:"circlecomplete",onMarkerComplete:"markercomplete",onOverlayComplete:"overlaycomplete",onPolygonComplete:"polygoncomplete",onPolylineComplete:"polylinecomplete",onRectangleComplete:"rectanglecomplete"},B={drawingMode:function(e,t){e.setDrawingMode(t)},options:function(e,t){e.setOptions(t)}};(function(e){function t(t){var n;return(n=e.call(this,t)||this).registeredEvents=[],n.state={drawingManager:null},n.setDrawingManagerCallback=function(){null!==n.state.drawingManager&&n.props.onLoad&&n.props.onLoad(n.state.drawingManager)},google.maps.drawing||o()(!1),n}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.drawing.DrawingManager(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:B,eventMap:U,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{drawingManager:e}}),this.setDrawingManagerCallback)},n.componentDidUpdate=function(e){null!==this.state.drawingManager&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:B,eventMap:U,prevProps:e,nextProps:this.props,instance:this.state.drawingManager}))},n.componentWillUnmount=function(){null!==this.state.drawingManager&&(this.props.onUnmount&&this.props.onUnmount(this.state.drawingManager),x(this.registeredEvents),this.state.drawingManager.setMap(null))},n.render=function(){return Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent)).contextType=y;var z={onAnimationChanged:"animation_changed",onClick:"click",onClickableChanged:"clickable_changed",onCursorChanged:"cursor_changed",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDraggableChanged:"draggable_changed",onDragStart:"dragstart",onFlatChanged:"flat_changed",onIconChanged:"icon_changed",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onPositionChanged:"position_changed",onRightClick:"rightclick",onShapeChanged:"shape_changed",onTitleChanged:"title_changed",onVisibleChanged:"visible_changed",onZindexChanged:"zindex_changed"},q={animation:function(e,t){e.setAnimation(t)},clickable:function(e,t){e.setClickable(t)},cursor:function(e,t){e.setCursor(t)},draggable:function(e,t){e.setDraggable(t)},icon:function(e,t){e.setIcon(t)},label:function(e,t){e.setLabel(t)},map:function(e,t){e.setMap(t)},opacity:function(e,t){e.setOpacity(t)},options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},shape:function(e,t){e.setShape(t)},title:function(e,t){e.setTitle(t)}
2,visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}},G=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=g({},this.props.options||{},this.props.clusterer?{}:{map:this.context},{position:this.props.position});this.marker=new google.maps.Marker(e),this.props.clusterer?this.props.clusterer.addMarker(this.marker,!!this.props.noClustererRedraw):this.marker.setMap(this.context),this.registeredEvents=O({updaterMap:q,eventMap:z,prevProps:{},nextProps:this.props,instance:this.marker}),this.props.onLoad&&this.props.onLoad(this.marker)},n.componentDidUpdate=function(e){this.marker&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:q,eventMap:z,prevProps:e,nextProps:this.props,instance:this.marker}))},n.componentWillUnmount=function(){this.marker&&(this.props.onUnmount&&this.props.onUnmount(this.marker),x(this.registeredEvents),this.props.clusterer?this.props.clusterer.removeMarker(this.marker,!!this.props.noClustererRedraw):this.marker&&this.marker.setMap(null))},n.render=function(){var e=this,t=null;return this.props.children&&(t=r.Children.map(this.props.children,(function(t){if(!Object(r.isValidElement)(t))return t;var n=t;return Object(r.cloneElement)(n,{anchor:e.marker})}))),t||null},t}(r.PureComponent);G.contextType=y;var W={onClick:"click",onClusteringBegin:"clusteringbegin",onClusteringEnd:"clusteringend",onMouseOut:"mouseout",onMouseOver:"mouseover"},H={averageCenter:function(e,t){e.setAverageCenter(t)},batchSizeIE:function(e,t){e.setBatchSizeIE(t)},calculator:function(e,t){e.setCalculator(t)},clusterClass:function(e,t){e.setClusterClass(t)},enableRetinaIcons:function(e,t){e.setEnableRetinaIcons(t)},gridSize:function(e,t){e.setGridSize(t)},ignoreHidden:function(e,t){e.setIgnoreHidden(t)},imageExtension:function(e,t){e.setImageExtension(t)},imagePath:function(e,t){e.setImagePath(t)},imageSizes:function(e,t){e.setImageSizes(t)},maxZoom:function(e,t){e.setMaxZoom(t)},minimumClusterSize:function(e,t){e.setMinimumClusterSize(t)},styles:function(e,t){e.setStyles(t)},title:function(e,t){e.setTitle(t)},zoomOnClick:function(e,t){e.setZoomOnClick(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={markerClusterer:null},t.setClustererCallback=function(){null!==t.state.markerClusterer&&t.props.onLoad&&t.props.onLoad(t.state.markerClusterer)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){if(this.context){var e=new l(this.context,[],this.props.options);this.registeredEvents=O({updaterMap:H,eventMap:W,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{markerClusterer:e}}),this.setClustererCallback)}},n.componentDidUpdate=function(e){this.state.markerClusterer&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:H,eventMap:W,prevProps:e,nextProps:this.props,instance:this.state.markerClusterer}))},n.componentWillUnmount=function(){null!==this.state.markerClusterer&&(this.props.onUnmount&&this.props.onUnmount(this.state.markerClusterer),x(this.registeredEvents),this.state.markerClusterer.setMap(null))},n.render=function(){return null!==this.state.markerClusterer?this.props.children(this.state.markerClusterer):null},t}(r.PureComponent)).contextType=y;var K={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},X={options:function(e,t){e.setOptions(t)},position:function(e,t){t instanceof google.maps.LatLng?e.setPosition(t):e.setPosition(new google.maps.LatLng(t.lat,t.lng))},visible:function(e,t){e.setVisible(t)},zIndex:function(e,t){e.setZIndex(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.containerElement=null,t.state={infoBox:null}
2,t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):o()(!1)},t.setInfoBoxCallback=function(){var e=t.props,n=e.anchor,r=e.onLoad,i=t.state.infoBox;null!==i&&null!==t.containerElement&&(i.setContent(t.containerElement),t.open(i,n),r&&r(i))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e,t=this.props.options||{},n=t.position,r=m(t,["position"]);!n||n instanceof google.maps.LatLng||(e=new google.maps.LatLng(n.lat,n.lng));var i=new d(g({},r,e?{position:e}:{}));this.containerElement=document.createElement("div"),this.registeredEvents=O({updaterMap:X,eventMap:K,prevProps:{},nextProps:this.props,instance:i}),this.setState({infoBox:i},this.setInfoBoxCallback)},n.componentDidUpdate=function(e){var t=this.state.infoBox;null!==t&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:X,eventMap:K,prevProps:e,nextProps:this.props,instance:t}))},n.componentWillUnmount=function(){var e=this.props.onUnmount,t=this.state.infoBox;null!==t&&(e&&e(t),x(this.registeredEvents),t.close())},n.render=function(){return this.containerElement?Object(f.createPortal)(r.Children.only(this.props.children),this.containerElement):null},t}(r.PureComponent)).contextType=y;var Y={onCloseClick:"closeclick",onContentChanged:"content_changed",onDomReady:"domready",onPositionChanged:"position_changed",onZindexChanged:"zindex_changed"},$={options:function(e,t){e.setOptions(t)},position:function(e,t){e.setPosition(t)},zIndex:function(e,t){e.setZIndex(t)}},Q=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.containerElement=null,t.state={infoWindow:null}
2,t.open=function(e,n){n?e.open(t.context,n):e.getPosition()?e.open(t.context):o()(!1)},t.setInfoWindowCallback=function(){null!==t.state.infoWindow&&null!==t.containerElement&&(t.state.infoWindow.setContent(t.containerElement),t.open(t.state.infoWindow,t.props.anchor),t.props.onLoad&&t.props.onLoad(t.state.infoWindow))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.InfoWindow(g({},this.props.options||{}));this.containerElement=document.createElement("div"),this.registeredEvents=O({updaterMap:$,eventMap:Y,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{infoWindow:e}}),this.setInfoWindowCallback)},n.componentDidUpdate=function(e){null!==this.state.infoWindow&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:$,eventMap:Y,prevProps:e,nextProps:this.props,instance:this.state.infoWindow}))},n.componentWillUnmount=function(){null!==this.state.infoWindow&&(x(this.registeredEvents),this.state.infoWindow.close())},n.render=function(){return this.containerElement?Object(f.createPortal)(r.Children.only(this.props.children),this.containerElement):Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent);Q.contextType=y;var J={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},Z={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},visible:function(e,t){e.setVisible(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={polyline:null},t.setPolylineCallback=function(){null!==t.state.polyline&&t.props.onLoad&&t.props.onLoad(t.state.polyline)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.Polyline(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:Z,eventMap:J,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polyline:e}}),this.setPolylineCallback)},n.componentDidUpdate=function(e){null!==this.state.polyline&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:Z,eventMap:J,prevProps:e,nextProps:this.props,instance:this.state.polyline}))},n.componentWillUnmount=function(){null!==this.state.polyline&&(this.props.onUnmount&&this.props.onUnmount(this.state.polyline),x(this.registeredEvents),this.state.polyline.setMap(null))},n.render=function(){return Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent)).contextType=y;var ee={onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},te={draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},path:function(e,t){e.setPath(t)},paths:function(e,t){e.setPaths(t)},visible:function(e,t){e.setVisible(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={polygon:null},t.setPolygonCallback=function(){null!==t.state.polygon&&t.props.onLoad&&t.props.onLoad(t.state.polygon)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.Polygon(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:te,eventMap:ee,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{polygon:e}}),this.setPolygonCallback)},n.componentDidUpdate=function(e){null!==this.state.polygon&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:te,eventMap:ee,prevProps:e,nextProps:this.props,instance:this.state.polygon}))},n.componentWillUnmount=function(){null!==this.state.polygon&&(this.props.onUnmount&&this.props.onUnmount(this.state.polygon),x(this.registeredEvents),this.state.polygon&&this.state.polygon.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y;var ne={onBoundsChanged:"bounds_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRightClick:"rightclick"},re={bounds:function(e,t){e.setBounds(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},visible:function(e,t){e.setVisible(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={rectangle:null},t.setRectangleCallback=function(){null!==t.state.rectangle&&t.props.onLoad&&t.props.onLoad(t.state.rectangle)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.Rectangle(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:re,eventMap:ne,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{rectangle:e}}),this.setRectangleCallback)},n.componentDidUpdate=function(e){null!==this.state.rectangle&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:re,eventMap:ne,prevProps:e,nextProps:this.props,instance:this.state.rectangle}))},n.componentWillUnmount=function(){null!==this.state.rectangle&&(this.props.onUnmount&&this.props.onUnmount(this.state.rectangle),x(this.registeredEvents),this.state.rectangle.setMap(null))},n.render=function(){return Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent)).contextType=y;var ie={onCenterChanged:"center_changed",onClick:"click",onDblClick:"dblclick",onDrag:"drag",onDragEnd:"dragend",onDragStart:"dragstart",onMouseDown:"mousedown",onMouseMove:"mousemove",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRadiusChanged:"radius_changed",onRightClick:"rightclick"},oe={center:function(e,t){e.setCenter(t)},draggable:function(e,t){e.setDraggable(t)},editable:function(e,t){e.setEditable(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},radius:function(e,t){e.setRadius(t)},visible:function(e,t){e.setVisible(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={circle:null}
2,t.setCircleCallback=function(){null!==t.state.circle&&t.props.onLoad&&t.props.onLoad(t.state.circle)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.Circle(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:oe,eventMap:ie,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{circle:e}}),this.setCircleCallback)},n.componentDidUpdate=function(e){null!==this.state.circle&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:oe,eventMap:ie,prevProps:e,nextProps:this.props,instance:this.state.circle}))},n.componentWillUnmount=function(){null!==this.state.circle&&(this.props.onUnmount&&this.props.onUnmount(this.state.circle),x(this.registeredEvents),this.state.circle&&this.state.circle.setMap(null))},n.render=function(){return Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent)).contextType=y;var ae={onAddFeature:"addfeature",onClick:"click",onDblClick:"dblclick",onMouseDown:"mousedown",onMouseOut:"mouseout",onMouseOver:"mouseover",onMouseUp:"mouseup",onRemoveFeature:"removefeature",onRemoveProperty:"removeproperty",onRightClick:"rightclick",onSetGeometry:"setgeometry",onSetProperty:"setproperty"},se={add:function(e,t){e.add(t)},addgeojson:function(e,t,n){e.addGeoJson(t,n)},contains:function(e,t){e.contains(t)},foreach:function(e,t){e.forEach(t)},loadgeojson:function(e,t,n,r){e.loadGeoJson(t,n,r)},overridestyle:function(e,t,n){e.overrideStyle(t,n)},remove:function(e,t){e.remove(t)},revertstyle:function(e,t){e.revertStyle(t)},controlposition:function(e,t){e.setControlPosition(t)},controls:function(e,t){e.setControls(t)},drawingmode:function(e,t){e.setDrawingMode(t)},map:function(e,t){e.setMap(t)},style:function(e,t){e.setStyle(t)},togeojson:function(e,t){e.toGeoJson(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={data:null},t.setDataCallback=function(){null!==t.state.data&&t.props.onLoad&&t.props.onLoad(t.state.data)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.Data(g({},this.props.options||{},{map:this.context}));this.registeredEvents=O({updaterMap:se,eventMap:ae,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{data:e}}),this.setDataCallback)},n.componentDidUpdate=function(e){null!==this.state.data&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:se,eventMap:ae,prevProps:e,nextProps:this.props,instance:this.state.data}))},n.componentWillUnmount=function(){null!==this.state.data&&(this.props.onUnmount&&this.props.onUnmount(this.state.data),x(this.registeredEvents),this.state.data&&this.state.data.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y;var ue={onClick:"click",onDefaultViewportChanged:"defaultviewport_changed",onStatusChanged:"status_changed"},ce={options:function(e,t){e.setOptions(t)},url:function(e,t){e.setUrl(t)},zIndex:function(e,t){e.setZIndex(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={kmlLayer:null},t.setKmlLayerCallback=function(){null!==t.state.kmlLayer&&t.props.onLoad&&t.props.onLoad(t.state.kmlLayer)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.KmlLayer(g({},this.props.options,{map:this.context}));this.registeredEvents=O({updaterMap:ce,eventMap:ue,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{kmlLayer:e}}),this.setKmlLayerCallback)},n.componentDidUpdate=function(e){null!==this.state.kmlLayer&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:ce,eventMap:ue,prevProps:e,nextProps:this.props,instance:this.state.kmlLayer}))},n.componentWillUnmount=function(){null!==this.state.kmlLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.kmlLayer),x(this.registeredEvents),this.state.kmlLayer.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y;var le=function(e,t){return new t(e.lat,e.lng)},fe=function(e,t){return new t(new google.maps.LatLng(e.ne.lat,e.
2ne.lng),new google.maps.LatLng(e.sw.lat,e.sw.lng))},de=function(e,t,n){return e instanceof t?e:n(e,t)};function he(e){return e?(e instanceof google.maps.LatLng?e:new google.maps.LatLng(e.lat,e.lng))+"":""}function pe(e){return e?(e instanceof google.maps.LatLngBounds?e:new google.maps.LatLngBounds(new google.maps.LatLng(e.south,e.east),new google.maps.LatLng(e.north,e.west)))+"":""}var ge=function(e){function t(t){var n;(n=e.call(this,t)||this).state={paneEl:null,containerStyle:{position:"absolute"}},n.updatePane=function(){var e=n.props.mapPaneName,t=n.overlayView.getPanes();e||o()(!1),t?n.setState({paneEl:t[e]}):n.setState({paneEl:null})},n.onAdd=function(){n.updatePane(),null==n.props.onLoad||n.props.onLoad(n.overlayView)},n.onPositionElement=function(){var e,t,r,i,o=function(e,t,n,r){return void 0!==n?function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n.getNorthEast()),i=e&&e.fromLatLngToDivPixel(n.getSouthWest());return r&&i?{left:i.x+t.x+"px",top:r.y+t.y+"px",width:r.x-i.x-t.x+"px",height:i.y-r.y-t.y+"px"}:{left:"-9999px",top:"-9999px"}}(e,t,de(n,google.maps.LatLngBounds,fe)):function(e,t,n){var r=e&&e.fromLatLngToDivPixel(n);if(r){var i=r.x,o=r.y;return{left:i+t.x+"px",top:o+t.y+"px"}}return{left:"-9999px",top:"-9999px"}}(e,t,de(r,google.maps.LatLng,le))}(n.overlayView.getProjection(),g({x:0,y:0},n.containerRef.current?(e=n.containerRef.current,"function"===typeof(t=n.props.getPixelPositionOffset)?t(e.offsetWidth,e.offsetHeight):{}):{}),n.props.bounds,n.props.position),a=n.state.containerStyle,s=a.left,u=a.top,c=a.width,l=a.height;i={left:s,top:u,width:c,height:l},((r=o).left!==i.left||r.top!==i.top||r.width!==i.height||r.height!==i.height)&&n.setState({containerStyle:g({},o,{position:"absolute"})})},n.draw=function(){n.onPositionElement()},n.onRemove=function(){n.setState((function(){return{paneEl:null}})),null==n.props.onUnmount||n.props.onUnmount(n.overlayView)},n.containerRef=Object(r.createRef)();var i=new google.maps.OverlayView;return i.onAdd=n.onAdd,i.draw=n.draw,i.onRemove=n.onRemove,n.overlayView=i,n}v(t,e);var n=t.prototype;return n.componentDidMount=function(){this.overlayView.setMap(this.context)},n.componentDidUpdate=function(e){var t=he(e.position),n=he(this.props.position),r=pe(e.bounds),i=pe(this.props.bounds);t===n&&r===i||this.overlayView.draw(),e.mapPaneName!==this.props.mapPaneName&&this.updatePane()},n.componentWillUnmount=function(){this.overlayView.setMap(null)},n.render=function(){var e=this.state.paneEl;return e?Object(f.createPortal)(Object(r.createElement)("div",{ref:this.containerRef,style:this.state.containerStyle},r.Children.only(this.props.children)),e):null},t}(r.PureComponent);ge.FLOAT_PANE="floatPane",ge.MAP_PANE="mapPane",ge.MARKER_LAYER="markerLayer",ge.OVERLAY_LAYER="overlayLayer",ge.OVERLAY_MOUSE_TARGET="overlayMouseTarget",ge.contextType=y;var ve={onDblClick:"dblclick",onClick:"click"},me={opacity:function(e,t){e.setOpacity(t)}},ye=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={groundOverlay:null},t.setGroundOverlayCallback=function(){null!==t.state.groundOverlay&&t.props.onLoad&&t.props.onLoad(t.state.groundOverlay)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.url||this.props.bounds||o()(!1);var e=new google.maps.GroundOverlay(this.props.url,this.props.bounds,g({},this.props.options,{map:this.context}));this.registeredEvents=O({updaterMap:me,eventMap:ve,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{groundOverlay:e}}),this.setGroundOverlayCallback)},n.componentDidUpdate=function(e){null!==this.state.groundOverlay&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:me,eventMap:ve,prevProps:e,nextProps:this.props,instance:this.state.groundOverlay}))},n.componentWillUnmount=function(){this.state.groundOverlay&&(this.props.onUnmount&&this.props.onUnmount(this.state.groundOverlay),this.state.groundOverlay.setMap(null))},n.render=function(){return null},t}(r.PureComponent);ye.defaultProps={onLoad:function(){}},ye.contextType=y;var be={},_e={data:function(e,t){e.setData(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={heatmapLayer:null},t.setHeatmapLayerCallback=function(){null!==t.state.heatmapLayer&&t.props.onLoad&&t.props.onLoad(t.state.heatmapLayer)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){google.maps.visualization||o()(!1),this.props.data||o()(!1);var e=new google.maps.visualization.HeatmapLayer(g({},this.props.options||{},{data:this.props.data,map:this.context}));this.registeredEvents=O({updaterMap:_e,eventMap:be,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{heatmapLayer:e}}),this.setHeatmapLayerCallback)},n.componentDidUpdate=function(e){x(this.registeredEvents),this.registeredEvents=O({updaterMap:_e,eventMap:be,prevProps:e,nextProps:this.props,instance:this.state.heatmapLayer})},n.componentWillUnmount=function(){null!==this.state.heatmapLayer&&(this.props.onUnmount&&this.props.onUnmount(this.state.heatmapLayer),x(this.registeredEvents),this.state.heatmapLayer.setMap(null))},n.render=function(){return null},t}(r.PureComponent)).contextType=y;var we={onCloseClick:"closeclick",onPanoChanged:"pano_changed",onPositionChanged:"position_changed",onPovChanged:"pov_changed",onResize:"resize",onStatusChanged:"status_changed",onVisibleChanged:"visible_changed",onZoomChanged:"zoom_changed"}
2,xe={register:function(e,t,n){e.registerPanoProvider(t,n)},links:function(e,t){e.setLinks(t)},motionTracking:function(e,t){e.setMotionTracking(t)},options:function(e,t){e.setOptions(t)},pano:function(e,t){e.setPano(t)},position:function(e,t){e.setPosition(t)},pov:function(e,t){e.setPov(t)},visible:function(e,t){e.setVisible(t)},zoom:function(e,t){e.setZoom(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={streetViewPanorama:null},t.setStreetViewPanoramaCallback=function(){null!==t.state.streetViewPanorama&&t.props.onLoad&&t.props.onLoad(t.state.streetViewPanorama)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=this.context.getStreetView();this.registeredEvents=O({updaterMap:xe,eventMap:we,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{streetViewPanorama:e}}),this.setStreetViewPanoramaCallback)},n.componentDidUpdate=function(e){null!==this.state.streetViewPanorama&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:xe,eventMap:we,prevProps:e,nextProps:this.props,instance:this.state.streetViewPanorama}))},n.componentWillUnmount=function(){null!==this.state.streetViewPanorama&&(this.props.onUnmount&&this.props.onUnmount(this.state.streetViewPanorama),x(this.registeredEvents),this.state.streetViewPanorama.setVisible(!1))},n.render=function(){return null},t}(r.PureComponent)).contextType=y,(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).state={streetViewService:null},t.setStreetViewServiceCallback=function(){null!==t.state.streetViewService&&t.props.onLoad&&t.props.onLoad(t.state.streetViewService)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.StreetViewService;this.setState((function(){return{streetViewService:e}}),this.setStreetViewServiceCallback)},n.componentWillUnmount=function(){null!==this.state.streetViewService&&this.props.onUnmount&&this.props.onUnmount(this.state.streetViewService)},n.render=function(){return null},t}(r.PureComponent)).contextType=y;r.PureComponent;var Oe={onDirectionsChanged:"directions_changed"},Se={directions:function(e,t){e.setDirections(t)},map:function(e,t){e.setMap(t)},options:function(e,t){e.setOptions(t)},panel:function(e,t){e.setPanel(t)},routeIndex:function(e,t){e.setRouteIndex(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.state={directionsRenderer:null},t.setDirectionsRendererCallback=function(){null!==t.state.directionsRenderer&&(t.state.directionsRenderer.setMap(t.context),t.props.onLoad&&t.props.onLoad(t.state.directionsRenderer))},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){var e=new google.maps.DirectionsRenderer(this.props.options);this.registeredEvents=O({updaterMap:Se,eventMap:Oe,prevProps:{},nextProps:this.props,instance:e}),this.setState((function(){return{directionsRenderer:e}}),this.setDirectionsRendererCallback)},n.componentDidUpdate=function(e){null!==this.state.directionsRenderer&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:Se,eventMap:Oe,prevProps:e,nextProps:this.props,instance:this.state.directionsRenderer}))},n.componentWillUnmount=function(){null!==this.state.directionsRenderer&&(this.props.onUnmount&&this.props.onUnmount(this.state.directionsRenderer),x(this.registeredEvents),this.state.directionsRenderer&&this.state.directionsRenderer.setMap(null))},n.render=function(){return Object(r.createElement)(r.Fragment,null)},t}(r.PureComponent)).contextType=y;r.PureComponent;var Ee={onPlacesChanged:"places_changed"},ke={bounds:function(e,t){e.setBounds(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.containerElement=Object(r.createRef)(),t.state={searchBox:null},t.setSearchBoxCallback=function(){null!==t.state.searchBox&&t.props.onLoad&&t.props.onLoad(t.state.searchBox)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){if(google.maps.places||o()(!1),null!==this.containerElement&&null!==this.containerElement.current){var e=this.containerElement.current.querySelector("input");if(null!==e){var t=new google.maps.places.SearchBox(e,this.props.options);this.registeredEvents=O({updaterMap:ke,eventMap:Ee,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{searchBox:t}}),this.setSearchBoxCallback)}}},n.componentDidUpdate=function(e){null!==this.state.searchBox&&(x(this.registeredEvents),this.registeredEvents=O({updaterMap:ke,eventMap:Ee,prevProps:e,nextProps:this.props,instance:this.state.searchBox}))},n.componentWillUnmount=function(){null!==this.state.searchBox&&(this.props.onUnmount&&this.props.onUnmount(this.state.searchBox
2),x(this.registeredEvents))},n.render=function(){return Object(r.createElement)("div",{ref:this.containerElement},r.Children.only(this.props.children))},t}(r.PureComponent)).contextType=y;var Ce={onPlaceChanged:"place_changed"},Te={bounds:function(e,t){e.setBounds(t)},restrictions:function(e,t){e.setComponentRestrictions(t)},fields:function(e,t){e.setFields(t)},options:function(e,t){e.setOptions(t)},types:function(e,t){e.setTypes(t)}};(function(e){function t(){var t;return(t=e.apply(this,arguments)||this).registeredEvents=[],t.containerElement=Object(r.createRef)(),t.state={autocomplete:null},t.setAutocompleteCallback=function(){null!==t.state.autocomplete&&t.props.onLoad&&t.props.onLoad(t.state.autocomplete)},t}v(t,e);var n=t.prototype;return n.componentDidMount=function(){google.maps.places||o()(!1);var e=this.containerElement.current.querySelector("input");if(e){var t=new google.maps.places.Autocomplete(e,this.props.options);this.registeredEvents=O({updaterMap:Te,eventMap:Ce,prevProps:{},nextProps:this.props,instance:t}),this.setState((function(){return{autocomplete:t}}),this.setAutocompleteCallback)}},n.componentDidUpdate=function(e){x(this.registeredEvents),this.registeredEvents=O({updaterMap:Te,eventMap:Ce,prevProps:e,nextProps:this.props,instance:this.state.autocomplete})},n.componentWillUnmount=function(){null!==this.state.autocomplete&&x(this.registeredEvents)},n.render=function(){return Object(r.createElement)("div",{ref:this.containerElement,className:this.props.className||""},r.Children.only(this.props.children))},t}(r.PureComponent)).contextType=y},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(93);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){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 i}));var r=n(94);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";t.a={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},function(e,t,n){"use strict";var r=n(0),i=r.createContext();t.a=i},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 r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}()},function(e,t,n){"use strict";var r=n(4),i=n(51),o=n(9),a=n(0),s=(n(8),n(7)),u=n(77),c=n(49),l=n(16),f=n(30),d=n(198),h=n(20),p=a.forwardRef((function(e,t){var n=e.edge,i=void 0!==n&&n,u=e.children,c=e.classes,l=e.className,f=e.color,p=void 0===f?"default":f,g=e.disabled,v=void 0!==g&&g,m=e.disableFocusRipple,y=void 0!==m&&m,b=e.size,_=void 0===b?"medium":b,w=Object(o.a)(e,["edge","children","classes","className","color","disabled","disableFocusRipple","size"]);return a.createElement(d.a,Object(r.a)({className:Object(s.a)(c.root,l,"default"!==p&&c["color".concat(Object(h.a)(p))],v&&c.disabled,"small"===_&&c["size".concat(Object(h.a)(_))],{start:c.edgeStart,end:c.edgeEnd}[i]),centerRipple:!0,focusRipple:!y,disabled:v,ref:t},w),a.createElement("span",{className:c.label},u))})),g=Object(l.a)((function(e){return{root:{textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:12,borderRadius:"50%",overflow:"visible",color:e.palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{backgroundColor:Object(f.a)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{backgroundColor:"transparent",color:e.palette.action.disabled}},edgeStart:{marginLeft:-12,"$sizeSmall&":{marginLeft:-3}},edgeEnd:{marginRight:-12,"$sizeSmall&":{marginRight:-3}},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},colorSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},disabled:{},sizeSmall:{padding:3,fontSize:e.typography.pxToRem(18)},label:{width:"100%",display:"flex",alignItems:"inherit",justifyContent:"inherit"}}}),{name:"MuiIconButton"})(p),v=a.forwardRef((function(e,t){var n=e.autoFocus,l=e.checked,f=e.checkedIcon,d=e.classes,h=e.className,p=e.defaultChecked,v=e.disabled,m=e.icon,y=e.id,b=e.inputProps,_=e.inputRef,w=e.name,x=e.onBlur,O=e.onChange,S=e.onFocus,E=e.readOnly,k=e.required,C=e.tabIndex,T=e.type,j=e.value,I=Object(o.a)(e,["autoFocus","checked","checkedIcon","classes","className","defaultChecked","disabled","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"]),A=Object(u.a)({controlled:l,default:Boolean(p),name:"SwitchBase",state:"checked"}),P=Object(i.a)(A,2),N=P[0],M=P[1],R=Object(c.a)(),L=v;R&&"undefined"===typeof L&&(L=R.disabled);var D="checkbox"===T||"radio"===T;return a.createElement(g,Object(r.a)({component:"span",className:Object(s.a)(d.root,h,N&&d.checked,L&&d.disabled),disabled:L,tabIndex:null,role:void 0,onFocus:function(e){S&&S(e),R&&R.onFocus&&R.onFocus(e)},onBlur:function(e){x&&x(e),R&&R.onBlur&&R.onBlur(e)},ref:t},I),a.createElement("input",Object(r.a)({autoFocus:n,checked:l,defaultChecked:p,className:d.input,disabled:L,id:D&&y,name:w,onChange:function(e){var t=e.target.checked;M(t),O&&O(e,t)},readOnly:E,ref:_,required:k,tabIndex:C,type:T,value:j},b)),N?f:m)}));t.a=Object(l.a)({root:{padding:9},checked:{},disabled:{},input:{cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}},{name:"PrivateSwitchBase"})(v)},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||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 r(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},,,function(e,t,n){"use strict";var r=n(90),i=n.n(r);t.a=function(e,t){return i()(e,t)}},function(e,t,n){"use strict";
vendor: 7,746 bytes, line 2
2var r=n(107),i="-ms-",o="-moz-",a="-webkit-",s="comm",u="rule",c="decl",l=Math.abs,f=String.fromCharCode;function d(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function g(e,t){return 0|e.charCodeAt(t)}function v(e,t,n){return e.slice(t,n)}function m(e){return e.length}function y(e){return e.length}function b(e,t){return t.push(e),e}function _(e,t){return e.map(t).join("")}var w=1,x=1,O=0,S=0,E=0,k="";function C(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:w,column:x,length:a,return:""}}function T(e,t,n){return C(e,t.root,t.parent,n,t.props,t.children,0)}function j(){return E=S>0?g(k,--S):0,x--,10===E&&(x=1,w--),E}function I(){return E=S<O?g(k,S++):0,x++,10===E&&(x=1,w++),E}function A(){return g(k,S)}function P(){return S}function N(e,t){return v(k,e,t)}function M(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function R(e){return w=x=1,O=m(k=e),S=0,[]}function L(e){return k="",e}function D(e){return d(N(S-1,U(91===e?e+2:40===e?e+1:e)))}function F(e){for(;(E=A())&&E<33;)I();return M(e)>2||M(E)>3?"":" "}function V(e,t){for(;--t&&I()&&!(E<48||E>102||E>57&&E<65||E>70&&E<97););return N(e,P()+(t<6&&32==A()&&32==I()))}function U(e){for(;I();)switch(E){case e:return S;case 34:case 39:return U(34===e||39===e?e:E);case 40:41===e&&U(e);break;case 92:I()}return S}function B(e,t){for(;I()&&e+E!==57&&(e+E!==84||47!==A()););return"/*"+N(t,S-1)+"*"+f(47===e?e:I())}function z(e){for(;!M(A());)I();return N(e,S)}function q(e){return L(G("",null,null,null,[""],e=R(e),0,[0],e))}function G(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,d=a,p=0,g=0,v=0,y=1,_=1,w=1,x=0,O="",S=i,E=o,k=r,C=O;_;)switch(v=x,x=I()){case 34:case 39:case 91:case 40:C+=D(x);break;case 9:case 10:case 13:case 32:C+=F(v);break;case 92:C+=V(P()-1,7);continue;case 47:switch(A()){case 42:case 47:b(H(B(I(),P()),t,n),u);break;default:C+="/"}break;case 123*y:s[c++]=m(C)*w;case 125*y:case 59:case 0:switch(x){case 0:case 125:_=0;case 59+l:g>0&&m(C)-d&&b(g>32?K(C+";",r,n,d-1):K(h(C," ","")+";",r,n,d-2),u);break;case 59:C+=";";default:if(b(k=W(C,t,n,c,l,i,s,O,S=[],E=[],d),o),123===x)if(0===l)G(C,t,k,k,S,o,d,s,E);else switch(p){case 100:case 109:case 115:G(e,k,k,r&&b(W(e,k,k,0,0,i,s,O,i,S=[],d),E),i,E,d,s,r?S:E);break;default:G(C,k,k,k,[""],E,d,s,E)}}c=l=g=0,y=w=1,O=C="",d=a;break;case 58:d=1+m(C),g=v;default:if(y<1)if(123==x)--y;else if(125==x&&0==y++&&125==j())continue;switch(C+=f(x),x*y){case 38:w=l>0?1:(C+="\f",-1);break;case 44:s[c++]=(m(C)-1)*w,w=1;break;case 64:45===A()&&(C+=D(I())),p=A(),l=m(O=C+=z(P())),x++;break;case 45:45===v&&2==m(C)&&(y=0)}}return o}function W(e,t,n,r,i,o,a,s,c,f,p){for(var g=i-1,m=0===i?o:[""],b=y(m),_=0,w=0,x=0;_<r;++_)for(var O=0,S=v(e,g+1,g=l(w=a[_])),E=e;O<b;++O)(E=d(w>0?m[O]+" "+S:h(S,/&\f/g,m[O])))&&(c[x++]=E);return C(e,t,n,0===i?u:s,c,f,p)}function H(e,t,n){return C(e,t,n,s,f(E),v(e,2,-2),0)}function K(e,t,n,r){return C(e,t,n,c,v(e,0,r),v(e,r+1,-1),r)}function X(e,t){switch(function(e,t){return(((t<<2^g(e,0))<<2^g(e,1))<<2^g(e,2))<<2^g(e,3)}(e,t)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+o+e+i+e+e;case 6828:case 4268:return a+e+i+e+e;case 6165:return a+e+i+"flex-"+e+e;case 5187:return a+e+h(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+i+"flex-$1$2")+e;case 5443:return a+e+i+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return a+e+i+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+i+h(e,"shrink","negative")+e;case 5292:return a+e+i+h(e,"basis","preferred-size")+e;case 6060:return a+"box-"+h(e,"-grow","")+a+e+i+h(e,"grow","positive")+e;case 4554:return a+h(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m(e)-1-t>6)switch(g(e,t+1)){case 109:if(45!==g(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+o+(108==g(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?X(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==g(e,t+1))break;case 6444:switch(g(e,m(e)-3-(~p(e,"!important")&&10))){case 107:return h(e,":",":"+a)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===g(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+i+"$2box$3")+e}break;case 5936:switch(g(e,t+11)){case 114:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+i+e+e}return e}function Y(e,t){for(var n="",r=y(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function $(e,t,n,r){switch(e.type){case"@import":case c:return e.return=e.return||e.value;case s:return"";case u:e.value=e.props.join(",")}return m(n=Y(e.children,r))?e.return=e.value+"{"+n+"}":""}function Q(e){return function(t){t.root||(t=t.return)&&e(t)}}n(92),n(91);var J=function(e,t){return L(function(e,t){var n=-1,r=44;do{switch(M(r)){case 0:38===r&&12===A()&&(t[n]=1),e[n]+=z(S-1);break;case 2:e[n]+=D(r);break;case 4:if(44===r){e[++n]=58===A()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=f(r)}}while(r=I());return e}(R(e),t))},Z=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&e.length){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Z.get(n))&&!r){Z.set(e,!0);for(var i=[],o=J(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},ne=[function(e,t,n,r){if(!e.return)switch(e.type){case c:e.return=X(e.value,e.length);break;case"@keyframes":return Y([T(h(e.value,"@","@"+a),e,"")],r);case u:if(e.length)return _(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Y([T(h(t,/:(read-\w+)/,":-moz-$1"),e,"")],r);case"::placeholder":return Y([T(h(t,/:(plac\w+)/,":"+a+"input-$1"),e,""),T(h(t,/:(plac\w+)/,":-moz-$1"),e,""),T(h(t,/:(plac\w+)/,i+"input-$1"),e,"")],r)}return""}))}}];t.a=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var i=e.stylisPlugins||ne;var o,a,s={},u=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;u.push(e)}));var c=[ee,te];var l,f=[$,Q((function(e){l.insert(e)}))],d=function(e){var t=y(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}(c.concat(i,f));a=function(e,t,n,r){l=n,Y(q(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};
2var h={key:t,sheet:new r.a({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend}),nonce:e.nonce,inserted:s,registered:{},insert:a};return h.sheet.hydrate(u),h}},function(e,t,n){"use strict";(function(e){var r=n(0),i=n.n(r),o=n(43),a=n(76),s=n.n(a),u=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(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 f=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.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):u,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[a]=s.a.object,i),{Provider:f,Consumer:d}};t.a=f}).call(this,n(66))},function(e,t,n){var r=n(161);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;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],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],g=n[2],v=n[3],m=n[4],y=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=g&&null!=p&&p!==g,x="+"===b||"*"===b,O="?"===b||"*"===b,S=n[2]||l,E=m||y;r.push({name:v||o++,prefix:g||"",delimiter:S,optional:O,repeat:x,partial:w,asterisk:!!_,pattern:E?c(E):_?".*":"[^"+u(S)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function s(e,t){for(var n=new Array(e.length),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,d=s[l.name];if(null==d){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(d)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(f=u(d[h]),!n[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===h?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):u(d),!n[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');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 d(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 d=u(c.prefix),h="(?:"+c.pattern+")";t.push(c),c.repeat&&(h+="(?:"+d+h+")*"),a+=h=c.optional?c.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var p=u(n.delimiter||"/"),g=a.slice(-p.length)===p;
2return i||(a=(g?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=o?"$":i&&g?"":"(?="+p+"|$)",l(new RegExp("^"+a,f(n)),t)}function h(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(h(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return d(o(e,n),t,n)}(e,t,n)}},,function(e,t,n){(function(e,r){var i;(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,l=32,f=64,d=128,h=256,p=1/0,g=9007199254740991,v=NaN,m=4294967295,y=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",f],["rearg",h]],b="[object Arguments]",_="[object Array]",w="[object Boolean]",x="[object Date]",O="[object Error]",S="[object Function]",E="[object GeneratorFunction]",k="[object Map]",C="[object Number]",T="[object Object]",j="[object Promise]",I="[object RegExp]",A="[object Set]",P="[object String]",N="[object Symbol]",M="[object WeakMap]",R="[object ArrayBuffer]",L="[object DataView]",D="[object Float32Array]",F="[object Float64Array]",V="[object Int8Array]",U="[object Int16Array]",B="[object Int32Array]",z="[object Uint8Array]",q="[object Uint8ClampedArray]",G="[object Uint16Array]",W="[object Uint32Array]",H=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Y=/&(?:amp|lt|gt|quot|#39);/g,$=/[&<>"']/g,Q=RegExp(Y.source),J=RegExp($.source),Z=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),se=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ve=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,be=/^\[object .+?Constructor\]$/,_e=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,xe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,176 bytes, line 2
27f]/g,Oe=/($^)/,Se=/['\n\r\u2028\u2029\\]/g,Ee="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Te="A-Z\\xc0-\\xd6\\xd8-\\xde",je="\\ufe0e\\ufe0f",Ie="\\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",Ae="['\u2019]",Pe="[\\ud800-\\udfff]",Ne="["+Ie+"]",Me="["+Ee+"]",Re="\\d+",Le="[\\u2700-\\u27bf]",De="["+Ce+"]",Fe="[^\\ud800-\\udfff"+Ie+Re+ke+Ce+Te+"]",Ve="\\ud83c[\\udffb-\\udfff]",Ue="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",ze="[\\ud800-\\udbff][\\udc00-\\udfff]",qe="["+Te+"]",Ge="(?:"+De+"|"+Fe+")",We="(?:"+qe+"|"+Fe+")",He="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+Me+"|"+Ve+")"+"?",Ye="[\\ufe0e\\ufe0f]?",$e=Ye+Xe+("(?:\\u200d(?:"+[Ue,Be,ze].join("|")+")"+Ye+Xe+")*"),Qe="(?:"+[Le,Be,ze].join("|")+")"+$e,Je="(?:"+[Ue+Me+"?",Me,Be,ze,Pe].join("|")+")",Ze=RegExp(Ae,"g"),et=RegExp(Me,"g"),tt=RegExp(Ve+"(?="+Ve+")|"+Je+$e,"g"),nt=RegExp([qe+"?"+De+"+"+He+"(?="+[Ne,qe,"$"].join("|")+")",We+"+"+Ke+"(?="+[Ne,qe+Ge,"$"].join("|")+")",qe+"?"+Ge+"+"+He,qe+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Qe].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+Ee+je+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["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"],at=-1,st={};st[D]=st[F]=st[V]=st[U]=st[B]=st[z]=st[q]=st[G]=st[W]=!0,st[b]=st[_]=st[R]=st[w]=st[L]=st[x]=st[O]=st[S]=st[k]=st[C]=st[T]=st[I]=st[A]=st[P]=st[M]=!1;var ut={};ut[b]=ut[_]=ut[R]=ut[L]=ut[w]=ut[x]=ut[D]=ut[F]=ut[V]=ut[U]=ut[B]=ut[k]=ut[C]=ut[T]=ut[I]=ut[A]=ut[P]=ut[N]=ut[z]=ut[q]=ut[G]=ut[W]=!0,ut[O]=ut[S]=ut[M]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ft=parseInt,dt="object"==typeof e&&e&&e.Object===Object&&e,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ht||Function("return this")(),gt=t&&!t.nodeType&&t,vt=gt&&"object"==typeof r&&r&&!r.nodeType&&r,mt=vt&&vt.exports===gt,yt=mt&&dt.process,bt=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||yt&&yt.binding&&yt.binding("util")}catch(t){}}(),_t=bt&&bt.isArrayBuffer,wt=bt&&bt.isDate,xt=bt&&bt.isMap,Ot=bt&&bt.isRegExp,St=bt&&bt.isSet,Et=bt&&bt.isTypedArray;function kt(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 Ct(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 Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function jt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function It(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 At(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 Pt(e,t){return!!(null==e?0:e.length)&&zt(e,t,0)>-1}function Nt(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 Mt(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 Rt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Lt(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 Dt(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 Ft(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 Vt=Ht("length");function Ut(e,t,n){var r;return n(e,(function(e,n,i){if(t(e,n,i))return r=n,!1})),r}function Bt(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 zt(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):Bt(e,Gt,n)}function qt(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function Gt(e){return e!==e}function Wt(e,t){var n=null==e?0:e.length;return n?Yt(e,t)/n:v}function Ht(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function Xt(e,t,n,r,i){return i(e,(function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)})),n}function Yt(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function $t(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,vn(e)+1).replace(se,""):e}function Jt(e){return function(t){return e(t)}}function Zt(e,t){return Mt(t,(function(t){return e[t]}))}function en(e,t){return e.has(t)}function tn(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Kt({"\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":"
2c","\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"}),an=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+ct[e]}function un(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==u||(e[n]=u,o[i++]=n)}return o}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function pn(e){return un(e)?function(e){var t=tt.lastIndex=0;for(;tt.test(e);)++t;return t}(e):Vt(e)}function gn(e){return un(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.split("")}(e)}function vn(e){for(var t=e.length;t--&&ue.test(e.charAt(t)););return t}var mn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var yn=function e(t){var n=(t=null==t?pt:yn.defaults(pt.Object(),t,yn.pick(pt,ot))).Array,r=t.Date,i=t.Error,ue=t.Function,Ee=t.Math,ke=t.Object,Ce=t.RegExp,Te=t.String,je=t.TypeError,Ie=n.prototype,Ae=ue.prototype,Pe=ke.prototype,Ne=t["__core-js_shared__"],Me=Ae.toString,Re=Pe.hasOwnProperty,Le=0,De=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fe=Pe.toString,Ve=Me.call(ke),Ue=pt._,Be=Ce("^"+Me.call(Re).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=mt?t.Buffer:o,qe=t.Symbol,Ge=t.Uint8Array,We=ze?ze.allocUnsafe:o,He=ln(ke.getPrototypeOf,ke),Ke=ke.create,Xe=Pe.propertyIsEnumerable,Ye=Ie.splice,$e=qe?qe.isConcatSpreadable:o,Qe=qe?qe.iterator:o,Je=qe?qe.toStringTag:o,tt=function(){try{var e=ho(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=r&&r.now!==pt.Date.now&&r.now,dt=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=Ee.ceil,gt=Ee.floor,vt=ke.getOwnPropertySymbols,yt=ze?ze.isBuffer:o,bt=t.isFinite,Vt=Ie.join,Kt=ln(ke.keys,ke),bn=Ee.max,_n=Ee.min,wn=r.now,xn=t.parseInt,On=Ee.random,Sn=Ie.reverse,En=ho(t,"DataView"),kn=ho(t,"Map"),Cn=ho(t,"Promise"),Tn=ho(t,"Set"),jn=ho(t,"WeakMap"),In=ho(ke,"create"),An=jn&&new jn,Pn={},Nn=Uo(En),Mn=Uo(kn),Rn=Uo(Cn),Ln=Uo(Tn),Dn=Uo(jn),Fn=qe?qe.prototype:o,Vn=Fn?Fn.valueOf:o,Un=Fn?Fn.toString:o;function Bn(e){if(rs(e)&&!Ha(e)&&!(e instanceof Wn)){if(e instanceof Gn)return e;if(Re.call(e,"__wrapped__"))return Bo(e)}return new Gn(e)}var zn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function qn(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Hn(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 Kn(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 Xn(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 Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Xn;++t<n;)this.add(e[t])}function $n(e){var t=this.__data__=new Kn(e);this.size=t.size}function Qn(e,t){var n=Ha(e),r=!n&&Wa(e),i=!n&&!r&&$a(e),o=!n&&!r&&!i&&fs(e),a=n||r||i||o,s=a?$t(e.length,Te):[],u=s.length;for(var c in e)!t&&!Re.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_o(c,u))||s.push(c);return s}function Jn(e){var t=e.length;return t?e[Yr(0,t-1)]:o}function Zn(e,t){return Do(Ii(e),ur(t,0,e.length))}function er(e){return Do(Ii(e))}function tr(e,t,n){(n!==o&&!za(e[t],n)||n===o&&!(t in e))&&ar(e,t,n)}function nr(e,t,n){var r=e[t];Re.call(e,t)&&za(r,n)&&(n!==o||t in e)||ar(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(za(e[n][0],t))return n;return-1}function ir(e,t,n,r){return hr(e,(function(e,i,o){t(r,e,n(e),o)})),r}function or(e,t){return e&&Ai(t,Ns(t),e)}function ar(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function sr(e,t){for(var r=-1,i=t.length,a=n(i),s=null==e;++r<i;)a[r]=s?o:Ts(e,t[r]);return a}function ur(e,t,n){return e===e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function cr(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ns(e))return e;var f=Ha(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ii(e,s)}else{var d=vo(e),h=d==S||d==E;if($a(e))return Si(e,u);if(d==T||d==b||h&&!i){if(s=c||h?{}:yo(e),!u)return c?function(e,t){return Ai(e,go(e),t)}(e,function(e,t){return e&&Ai(t,Ms(t),e)}(s,e)):function(e,t){return Ai(e,po(e),t)}(e,or(s,e))}else{if(!ut[d])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case R:return Ei(e);case w:case x:return new r(+e);case L:return function(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case F:case V:case U:case B:case z:case q:case G:case W:return ki(e,n);case k:return new r;case C:case P:return new r(e);case I:return function(e){var t=new e.constructor(e.source,ve.exec(e));return t.lastIndex=e.lastIndex,t}(e);case A:return new r;case N:return i=e,Vn?ke(Vn.call(i)):{}}var i}(e,d,u)}}a||(a=new $n);var p=a.get(e);if(p)return p;a.set(e,s),us(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,i){s.set(i,cr(r,t,n,i,e,a))}));var g=f?o:(l?c?oo:io:c?Ms:Ns)(e);return Tt(g||e,(function(r,i){g&&(r=e[i=r]),nr(s,i,cr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new je(a);return No((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var i=-1,o=Pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=Mt(t,Jt(n))),r?(o=Nt,a=!1):t.length>=200&&(o=en,a=!1,t=new Yn(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 d=c;d--;
vendor: 11,080 bytes, line 2
2)if(t[d]===f)continue e;u.push(l)}else o(t,f,r)||u.push(l)}return u}Bn.templateSettings={escape:Z,evaluate:ee,interpolate:te,variable:"",imports:{_:Bn}},Bn.prototype=qn.prototype,Bn.prototype.constructor=Bn,Gn.prototype=zn(qn.prototype),Gn.prototype.constructor=Gn,Wn.prototype=zn(qn.prototype),Wn.prototype.constructor=Wn,Hn.prototype.clear=function(){this.__data__=In?In(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(In){var n=t[e];return n===s?o:n}return Re.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return In?t[e]!==o:Re.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=In&&t===o?s:t,this},Kn.prototype.clear=function(){this.__data__=[],this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Kn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Kn.prototype.has=function(e){return rr(this.__data__,e)>-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Xn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(kn||Kn),string:new Hn}},Xn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Xn.prototype.get=function(e){return lo(this,e).get(e)},Xn.prototype.has=function(e){return lo(this,e).has(e)},Xn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.clear=function(){this.__data__=new Kn,this.size=0},$n.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},$n.prototype.get=function(e){return this.__data__.get(e)},$n.prototype.has=function(e){return this.__data__.has(e)},$n.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!kn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xn(r)}return n.set(e,t),this.size=n.size,this};var hr=Mi(wr),pr=Mi(xr,!0);function gr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function vr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s===s&&!ls(s):n(s,u)))var u=s,c=a}return c}function mr(e,t){var n=[];return hr(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n}function yr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=bo),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?yr(s,t-1,n,r,i):Rt(i,s):r||(i[i.length]=s)}return i}var br=Ri(),_r=Ri(!0);function wr(e,t){return e&&br(e,t,Ns)}function xr(e,t){return e&&_r(e,t,Ns)}function Or(e,t){return At(t,(function(t){return Za(e[t])}))}function Sr(e,t){for(var n=0,r=(t=_i(t,e)).length;null!=e&&n<r;)e=e[Vo(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Ha(e)?r:Rt(r,n(e))}function kr(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in ke(e)?function(e){var t=Re.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(a){}var i=Fe.call(e);r&&(t?e[Je]=n:delete e[Je]);return i}(e):function(e){return Fe.call(e)}(e)}function Cr(e,t){return e>t}function Tr(e,t){return null!=e&&Re.call(e,t)}function jr(e,t){return null!=e&&t in ke(e)}function Ir(e,t,r){for(var i=r?Nt:Pt,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];u--;){var d=e[u];u&&t&&(d=Mt(d,Jt(t))),l=_n(d.length,l),c[u]=!r&&(t||a>=120&&d.length>=120)?new Yn(u&&d):o}d=e[0];var h=-1,p=c[0];e:for(;++h<a&&f.length<l;){var g=d[h],v=t?t(g):g;if(g=r||0!==g?g:0,!(p?en(p,v):i(f,v,r))){for(u=s;--u;){var m=c[u];if(!(m?en(m,v):i(e[u],v,r)))continue e}p&&p.push(v),f.push(g)}}return f}function Ar(e,t,n){var r=null==(e=jo(e,t=_i(t,e)))?e:e[Vo(Jo(t))];return null==r?o:kt(r,e,n)}function Pr(e){return rs(e)&&kr(e)==b}function Nr(e,t,n,r,i){return e===t||(null==e||null==t||!rs(e)&&!rs(t)?e!==e&&t!==t:function(e,t,n,r,i,a){var s=Ha(e),u=Ha(t),c=s?_:vo(e),l=u?_:vo(t),f=(c=c==b?T:c)==T,d=(l=l==b?T:l)==T,h=c==l;if(h&&$a(e)){if(!$a(t))return!1;s=!0,f=!1}if(h&&!f)return a||(a=new $n),s||fs(e)?no(e,t,n,r,i,a):function(e,t,n,r,i,o,a){switch(n){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!o(new Ge(e),new Ge(t)));case w:case x:case C:return za(+e,+t);case O:return e.name==t.name&&e.message==t.message;case I:case P:return e==t+"";case k:var s=cn;case A:var u=1&r;if(s||(s=dn),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var l=no(s(e),s(t),r,i,o,a);return a.delete(e),l;case N:if(Vn)return Vn.call(e)==Vn.call(t)}return!1}(e,t,c,n,r,i,a);if(!(1&n)){var p=f&&Re.call(e,"__wrapped__"),g=d&&Re.call(t,"__wrapped__");if(p||g){var v=p?e.value():e,m=g?t.value():t;return a||(a=new $n),i(v,m,n,r,a)}}if(!h)return!1;return a||(a=new $n),function(e,t,n,r,i,a){var s=1&n,u=io(e),c=u.length,l=io(t).length;if(c!=l&&!s)return!1;var f=c;for(;f--;){var d=u[f];if(!(s?d in t:Re.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);var v=s;for(;++f<c;){var m=e[d=u[f]],y=t[d];if(r)var b=s?r(y,m,d,t,e,a):r(m,y,d,e,t,a);if(!(b===o?m===y||i(m,y,n,r,a):b)){g=!1;break}v||(v="constructor"==d)}if(g&&!v){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,n,r,i,a)}(e,t,n,r,Nr,i))}function Mr(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=ke(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var d=new $n;if(r)var h=r(l,f,c,e,t,d);if(!(h===o?Nr(f,l,3,r,d):h))return!1}}return!0}function Rr(e){return!(!ns(e)||(t=e,De&&De in t))&&(Za(e)?Be:be).test(Uo(e));var t}function Lr(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?Ha(e)?zr(e[0],e[1]):Br(e):pu(e)}function Dr(e){if(!Eo(e))return Kt(e);var t=[];for(var n in ke(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Fr(e){if(!ns(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Eo(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}function Vr(e,t){return e<t}function Ur(e,t){var r=-1,i=Xa(e)?n(e.length):[];return hr(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}function Br(e){var t=fo(e);return 1==t.length&&t[0][2]?Co(t[0][0],t[0][1]):function(n){return n===e||Mr(n,e,t)}}function zr(e,t){return xo(e)&&ko(t)?Co(Vo(e),t):function(n){var r=Ts(n,e);return r===o&&r===t?js(n,e):Nr(t,r,3)}}function qr(e,t,n,r,i){e!==t&&br(t,(function(a,s){if(i||(i=new $n),ns(a))!function(e,t,n,r,i,a,s){var u=Ao(e,n),c=Ao(t,n),l=s.get(c);if(l)return void tr(e,n,l);var f=a?a(u,c,n+"",e,t,s):o,d=f===o;if(d){var h=Ha(c),p=!h&&$a(c),g=!h&&!p&&fs(c);f=c,h||p||g?Ha(u)?f=u:Ya(u)?f=Ii(u):p?(d=!1,f=Si(c,!0)):g?(d=!1,f=ki(c,!0)):f=[]:as(c)||Wa(c)?(f=u,Wa(u)?f=bs(u):ns(u)&&!Za(u)||(f=yo(c))):d=!1}d&&(s.set(c,f),i(f,c,r,a,s),s.delete(c));tr(e,n,f)}(e,t,s,n,qr,r,i);else{var u=r?r(Ao(e,s),a,s+"",e,t,i):o;u===o&&(u=a),tr(e,s,u)}}),Ms)}function Gr(e,t){var n=e.length;if(n)return _o(t+=t<0?n:0,n)?e[t]:o}function Wr(e,t,n){t=t.length?Mt(t,(function(e){return Ha(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;return t=Mt(t,Jt(co())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Ur(e,(function(e,n,i){return{criteria:Mt(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=Ci(i[r],o[r]);if(u)return r>=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Hr(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Sr(e,a);n(s,a)&&ei(o,_i(a,e),s)}return o}function Kr(e,t,n,r){var i=r?qt:zt,o=-1,a=t.length,s=e;for(e===t&&(t=Ii(t)),n&&(s=Mt(e,Jt(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Ye.call(s,u,1),Ye.call(e,u,1);return e}function Xr(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;_o(i)?Ye.call(e,i,1):di(e,i)}}return e}function Yr(e,t){return e+gt(On()*(t-e+1))}function $r(e,t){var n="";if(!e||t<1||t>g)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return Mo(To(e,t,ou),e+"")}function Jr(e){return Jn(zs(e))}function Zr(e,t){var n=zs(e);return Do(n,ur(t,0,n.length))}function ei(e,t,n,r){if(!ns(e))return e;for(var i=-1,a=(t=_i(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=Vo(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=ns(f)?f:_o(t[i+1])?[]:{})}nr(u,c,l),u=u[c]}return e}var ti=An?function(e,t){return An.set(e,t),e}:ou,ni=tt?function(e,t){return tt(e,"toString",{configurable:!0,enumerable:!1,value:nu(t),writable:!0})}:ou;function ri(e){return Do(zs(e))}function ii(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 oi(e,t){var n;return hr(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n}function ai(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&&!ls(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return si(e,t,ou,n)}function si(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(t=n(t))!==t,u=null===t,c=ls(t),l=t===o;i<a;){var f=gt((i+a)/2),d=n(e[f]),h=d!==o,p=null===d,g=d===d,v=ls(d);if(s)var m=r||g;else m=l?g&&(r||h):u?g&&h&&(r||!p):c?g&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return _n(a,4294967294)}function ui(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||!za(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function ci(e){return"number"==typeof e?e:ls(e)?v:+e}function li(e){if("string"==typeof e)return e;if(Ha(e))return Mt(e,li)+"";if(ls(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fi(e,t,n){var r=-1,i=Pt,o=e.length,a=!0,s=[],u=s;if(n)a=!1,i=Nt;else if(o>=200){var c=t?null:$i(e);if(c)return dn(c);a=!1,i=en,u=new Yn}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 d=u.length;d--;)if(u[d]===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 di(e,t){return null==(e=jo(e,t=_i(t,e)))||delete e[Vo(Jo(t))]}function hi(e,t,n,r){return ei(e,t,n(Sr(e,t)),r)}function pi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?ii(e,r?0:o,r?o+1:i):ii(e,r?o+1:0,r?i:o)}function gi(e,t){var n=e;return n instanceof Wn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function vi(e,t,r){var i=e.length;if(i<2)return i?fi(e[0]):[];for(var o=-1,a=n(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=dr(a[o]||s,e[u],t,r));return fi(yr(a,1),t,r)}
vendor: 1,522 bytes, line 2
2function mi(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function yi(e){return Ya(e)?e:[]}function bi(e){return"function"==typeof e?e:ou}function _i(e,t){return Ha(e)?e:xo(e,t)?[e]:Fo(_s(e))}var wi=Qr;function xi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:ii(e,t,n)}var Oi=rt||function(e){return pt.clearTimeout(e)};function Si(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function Ei(e){var t=new e.constructor(e.byteLength);return new Ge(t).set(new Ge(e)),t}function ki(e,t){var n=t?Ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ci(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=ls(e),s=t!==o,u=null===t,c=t===t,l=ls(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function Ti(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,c=t.length,l=bn(a-s,0),f=n(c+l),d=!i;++u<c;)f[u]=t[u];for(;++o<s;)(d||o<a)&&(f[r[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function ji(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,f=bn(a-u,0),d=n(f+l),h=!i;++o<f;)d[o]=e[o];for(var p=o;++c<l;)d[p+c]=t[c];for(;++s<u;)(h||o<a)&&(d[p+r[s]]=e[o++]);return d}function Ii(e,t){var r=-1,i=e.length;for(t||(t=n(i));++r<i;)t[r]=e[r];return t}function Ai(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?ar(n,u,c):nr(n,u,c)}return n}
vendor: 4,359 bytes, line 2
2function Pi(e,t){return function(n,r){var i=Ha(n)?Ct:ir,o=t?t():{};return i(n,e,co(r,2),o)}}function Ni(e){return Qr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&wo(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=ke(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Mi(e,t){return function(n,r){if(null==n)return n;if(!Xa(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=ke(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function Ri(e){return function(t,n,r){for(var i=-1,o=ke(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 Li(e){return function(t){var n=un(t=_s(t))?gn(t):o,r=n?n[0]:t.charAt(0),i=n?xi(n,1).join(""):t.slice(1);return r[e]()+i}}function Di(e){return function(t){return Lt(Zs(Ws(t).replace(Ze,"")),e,"")}}function Fi(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=zn(e.prototype),r=e.apply(n,t);return ns(r)?r:n}}function Vi(e){return function(t,n,r){var i=ke(t);if(!Xa(t)){var a=co(n,3);t=Ns(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function Ui(e){return ro((function(t){var n=t.length,r=n,i=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new je(a);if(i&&!u&&"wrapper"==so(s))var u=new Gn([],!0)}for(r=u?r:n;++r<n;){var c=so(s=t[r]),l="wrapper"==c?ao(s):o;u=l&&Oo(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[so(l[0])].apply(u,l[3]):1==s.length&&Oo(s)?u[c]():u.thru(s)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Ha(r))return u.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 Bi(e,t,r,i,a,s,u,c,l,f){var h=t&d,p=1&t,g=2&t,v=24&t,m=512&t,y=g?o:Fi(e);return function o(){for(var d=arguments.length,b=n(d),_=d;_--;)b[_]=arguments[_];if(v)var w=uo(o),x=rn(b,w);if(i&&(b=Ti(b,i,a,v)),s&&(b=ji(b,s,u,v)),d-=x,v&&d<f){var O=fn(b,w);return Xi(e,t,Bi,o.placeholder,r,b,O,c,l,f-d)}var S=p?r:this,E=g?S[e]:e;return d=b.length,c?b=Io(b,c):m&&d>1&&b.reverse(),h&&l<d&&(b.length=l),this&&this!==pt&&this instanceof o&&(E=y||Fi(E)),E.apply(S,b)}}function zi(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,i,o){t(r,n(e),i,o)})),r}(n,e,t(r),{})}}function qi(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=li(n),r=li(r)):(n=ci(n),r=ci(r)),i=e(n,r)}return i}}function Gi(e){return ro((function(t){return t=Mt(t,Jt(co())),Qr((function(n){var r=this;return e(t,(function(e){return kt(e,r,n)}))}))}))}function Wi(e,t){var n=(t=t===o?" ":li(t)).length;if(n<2)return n?$r(t,e):t;var r=$r(t,ht(e/pn(t)));return un(t)?xi(gn(r),0,e).join(""):r.slice(0,e)}function Hi(e){return function(t,r,i){return i&&"number"!=typeof i&&wo(t,r,i)&&(r=i=o),t=gs(t),r===o?(r=t,t=0):r=gs(r),function(e,t,r,i){for(var o=-1,a=bn(ht((t-e)/(r||1)),0),s=n(a);a--;)s[i?a:++o]=e,e+=r;return s}(t,r,i=i===o?t<r?1:-1:gs(i),e)}}function Ki(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function Xi(e,t,n,r,i,a,s,u,c,d){var h=8&t;t|=h?l:f,4&(t&=~(h?f:l))||(t&=-4);var p=[e,t,i,h?a:o,h?s:o,h?o:a,h?o:s,u,c,d],g=n.apply(o,p);return Oo(e)&&Po(g,p),g.placeholder=r,Ro(g,e,t)}function Yi(e){var t=Ee[e];return function(e,n){if(e=ys(e),(n=null==n?0:_n(vs(n),292))&&bt(e)){var r=(_s(e)+"e").split("e");return+((r=(_s(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var $i=Tn&&1/dn(new Tn([,-0]))[1]==p?function(e){return new Tn(e)}:lu;function Qi(e){return function(t){var n=vo(t);return n==k?cn(t):n==A?hn(t):function(e,t){return Mt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ji(e,t,r,i,s,p,g,v){var m=2&t;if(!m&&"function"!=typeof e)throw new je(a);var y=i?i.length:0;if(y||(t&=-97,i=s=o),g=g===o?g:bn(vs(g),0),v=v===o?v:vs(v),y-=s?s.length:0,t&f){var b=i,_=s;i=s=o}var w=m?o:ao(e),x=[e,t,r,i,s,b,_,p,g,v];if(w&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<131,a=r==d&&8==n||r==d&&n==h&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;
vendor: 11,960 bytes, line 2
2if(!o&&!a)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var s=t[3];if(s){var c=e[3];e[3]=c?Ti(c,s,t[4]):s,e[4]=c?fn(e[3],u):t[4]}(s=t[5])&&(c=e[5],e[5]=c?ji(c,s,t[6]):s,e[6]=c?fn(e[5],u):t[6]);(s=t[7])&&(e[7]=s);r&d&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=i}(x,w),e=x[0],t=x[1],r=x[2],i=x[3],s=x[4],!(v=x[9]=x[9]===o?m?0:e.length:bn(x[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)O=8==t||t==c?function(e,t,r){var i=Fi(e);return function a(){for(var s=arguments.length,u=n(s),c=s,l=uo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:fn(u,l);return(s-=f.length)<r?Xi(e,t,Bi,a.placeholder,o,u,f,o,o,r-s):kt(this&&this!==pt&&this instanceof a?i:e,this,u)}}(e,t,v):t!=l&&33!=t||s.length?Bi.apply(o,x):function(e,t,r,i){var o=1&t,a=Fi(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=n(l+u),d=this&&this!==pt&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return kt(d,o?r:this,f)}}(e,t,r,i);else var O=function(e,t,n){var r=1&t,i=Fi(e);return function t(){return(this&&this!==pt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,r);return Ro((w?ti:Po)(O,x),e,t)}function Zi(e,t,n,r){return e===o||za(e,Pe[n])&&!Re.call(r,n)?t:e}function eo(e,t,n,r,i,a){return ns(e)&&ns(t)&&(a.set(t,e),qr(e,t,o,eo,a),a.delete(t)),e}function to(e){return as(e)?o:e}function no(e,t,n,r,i,a){var s=1&n,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=2&n?new Yn:o;for(a.set(e,t),a.set(t,e);++d<u;){var g=e[d],v=t[d];if(r)var m=s?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(m!==o){if(m)continue;h=!1;break}if(p){if(!Ft(t,(function(e,t){if(!en(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ro(e){return Mo(To(e,o,Ko),e+"")}function io(e){return Er(e,Ns,po)}function oo(e){return Er(e,Ms,go)}var ao=An?function(e){return An.get(e)}:lu;function so(e){for(var t=e.name+"",n=Pn[t],r=Re.call(Pn,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function uo(e){return(Re.call(Bn,"placeholder")?Bn:e).placeholder}function co(){var e=Bn.iteratee||au;return e=e===au?Lr:e,arguments.length?e(arguments[0],arguments[1]):e}function lo(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 fo(e){for(var t=Ns(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,ko(i)]}return t}function ho(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var po=vt?function(e){return null==e?[]:(e=ke(e),At(vt(e),(function(t){return Xe.call(e,t)})))}:mu,go=vt?function(e){for(var t=[];e;)Rt(t,po(e)),e=He(e);return t}:mu,vo=kr;function mo(e,t,n){for(var r=-1,i=(t=_i(t,e)).length,o=!1;++r<i;){var a=Vo(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ts(i)&&_o(a,i)&&(Ha(e)||Wa(e))}function yo(e){return"function"!=typeof e.constructor||Eo(e)?{}:zn(He(e))}function bo(e){return Ha(e)||Wa(e)||!!($e&&e&&e[$e])}function _o(e,t){var n=typeof e;return!!(t=null==t?g:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function wo(e,t,n){if(!ns(n))return!1;var r=typeof t;return!!("number"==r?Xa(n)&&_o(t,n.length):"string"==r&&t in n)&&za(n[t],e)}function xo(e,t){if(Ha(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ls(e))||(re.test(e)||!ne.test(e)||null!=t&&e in ke(t))}function Oo(e){var t=so(e),n=Bn[t];if("function"!=typeof n||!(t in Wn.prototype))return!1;if(e===n)return!0;var r=ao(n);return!!r&&e===r[0]}(En&&vo(new En(new ArrayBuffer(1)))!=L||kn&&vo(new kn)!=k||Cn&&vo(Cn.resolve())!=j||Tn&&vo(new Tn)!=A||jn&&vo(new jn)!=M)&&(vo=function(e){var t=kr(e),n=t==T?e.constructor:o,r=n?Uo(n):"";if(r)switch(r){case Nn:return L;case Mn:return k;case Rn:return j;case Ln:return A;case Dn:return M}return t});var So=Ne?Za:yu;function Eo(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Pe)}function ko(e){return e===e&&!ns(e)}function Co(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in ke(n)))}}function To(e,t,r){return t=bn(t===o?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=bn(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),kt(e,this,u)}}function jo(e,t){return t.length<2?e:Sr(e,ii(t,0,-1))}function Io(e,t){for(var n=e.length,r=_n(t.length,n),i=Ii(e);r--;){var a=t[r];e[r]=_o(a,n)?i[a]:o}return e}function Ao(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Po=Lo(ti),No=dt||function(e,t){return pt.setTimeout(e,t)},Mo=Lo(ni);function Ro(e,t,n){var r=t+"";return Mo(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(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Tt(y,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(fe):[]}(r),n)))}function Lo(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Do(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Yr(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var Fo=function(e){var t=La(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(ie,(function(e,n,r,i){t.push(r?i.replace(pe,"$1"):n||e)})),t}));function Vo(e){if("string"==typeof e||ls(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Uo(e){if(null!=e){try{return Me.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bo(e){if(e instanceof Wn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Ii(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zo=Qr((function(e,t){return Ya(e)?dr(e,yr(t,1,Ya,!0)):[]})),qo=Qr((function(e,t){var n=Jo(t);return Ya(n)&&(n=o),Ya(e)?dr(e,yr(t,1,Ya,!0),co(n,2)):[]})),Go=Qr((function(e,t){var n=Jo(t);return Ya(n)&&(n=o),Ya(e)?dr(e,yr(t,1,Ya,!0),o,n):[]}));function Wo(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),Bt(e,co(t,3),i)}function Ho(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=vs(n),i=n<0?bn(r+i,0):_n(i,r-1)),Bt(e,co(t,3),i,!0)}function Ko(e){return(null==e?0:e.length)?yr(e,1):[]}function Xo(e){return e&&e.length?e[0]:o}var Yo=Qr((function(e){var t=Mt(e,yi);return t.length&&t[0]===e[0]?Ir(t):[]})),$o=Qr((function(e){var t=Jo(e),n=Mt(e,yi);return t===Jo(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Ir(n,co(t,2)):[]})),Qo=Qr((function(e){var t=Jo(e),n=Mt(e,yi);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Ir(n,o,t):[]}));function Jo(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zo=Qr(ea);function ea(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}var ta=ro((function(e,t){var n=null==e?0:e.length,r=sr(e,t);return Xr(e,Mt(t,(function(e){return _o(e,n)?+e:e})).sort(Ci)),r}));function na(e){return null==e?e:Sn.call(e)}var ra=Qr((function(e){return fi(yr(e,1,Ya,!0))})),ia=Qr((function(e){var t=Jo(e);return Ya(t)&&(t=o),fi(yr(e,1,Ya,!0),co(t,2))})),oa=Qr((function(e){var t=Jo(e);return t="function"==typeof t?t:o,fi(yr(e,1,Ya,!0),o,t)}));function aa(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Ya(e))return t=bn(e.length,t),!0})),$t(t,(function(t){return Mt(e,Ht(t))}))}function sa(e,t){if(!e||!e.length)return[];var n=aa(e);return null==t?n:Mt(n,(function(e){return kt(t,o,e)}))}var ua=Qr((function(e,t){return Ya(e)?dr(e,t):[]})),ca=Qr((function(e){return vi(At(e,Ya))})),la=Qr((function(e){var t=Jo(e);return Ya(t)&&(t=o),vi(At(e,Ya),co(t,2))})),fa=Qr((function(e){var t=Jo(e);return t="function"==typeof t?t:o,vi(At(e,Ya),o,t)})),da=Qr(aa);var ha=Qr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,sa(e,n)}));function pa(e){var t=Bn(e);return t.__chain__=!0,t}function ga(e,t){return t(e)}var va=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&_o(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ga,args:[i],thisArg:o}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Pi((function(e,t,n){Re.call(e,n)?++e[n]:ar(e,n,1)}));var ya=Vi(Wo),ba=Vi(Ho);function _a(e,t){return(Ha(e)?Tt:hr)(e,co(t,3))}function wa(e,t){return(Ha(e)?jt:pr)(e,co(t,3))}var xa=Pi((function(e,t,n){Re.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Oa=Qr((function(e,t,r){var i=-1,o="function"==typeof t,a=Xa(e)?n(e.length):[];return hr(e,(function(e){a[++i]=o?kt(t,e,r):Ar(e,t,r)})),a})),Sa=Pi((function(e,t,n){ar(e,n,t)}));function Ea(e,t){return(Ha(e)?Mt:Ur)(e,co(t,3))}var ka=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ca=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wo(e,t[0],t[1])?t=[]:n>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,yr(t,1),[])})),Ta=ct||function(){return pt.Date.now()};function ja(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Ji(e,d,o,o,o,o,t)}function Ia(e,t){var n;if("function"!=typeof t)throw new je(a);return e=vs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Aa=Qr((function(e,t,n){var r=1;if(n.length){var i=fn(n,uo(Aa));r|=l}return Ji(e,r,t,n,i)})),Pa=Qr((function(e,t,n){var r=3;if(n.length){var i=fn(n,uo(Pa));r|=l}return Ji(t,r,e,n,i)}));function Na(e,t,n){var r,i,s,u,c,l,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new je(a);function g(t){var n=r,a=i;return r=i=o,f=t,u=e.apply(a,n)}function v(e){return f=e,c=No(y,t),d?g(e):u}function m(e){var n=e-l;return l===o||n>=t||n<0||h&&e-f>=s}function y(){var e=Ta();if(m(e))return b(e);c=No(y,function(e){var n=t-(e-l);return h?_n(n,s-(e-f)):n}(e))}function b(e){return c=o,p&&r?g(e):(r=i=o,u)}function _(){var e=Ta(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return v(l);if(h)return Oi(c),c=No(y,t),g(l)}return c===o&&(c=No(y,t)),u}return t=ys(t)||0,ns(n)&&(d=!!n.leading,s=(h="maxWait"in n)?bn(ys(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),_.cancel=function(){c!==o&&Oi(c),f=0,r=l=i=c=o},_.flush=function(){return c===o?u:b(Ta())},_}var Ma=Qr((function(e,t){return fr(e,1,t)})),Ra=Qr((function(e,t,n){return fr(e,ys(t)||0,n)}));function La(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new je(a);var n=function n(){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(La.Cache||Xn),n}function Da(e){if("function"!=typeof e)throw new je(a);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)}}La.Cache=Xn;var Fa=wi((function(e,t){var n=(t=1==t.length&&Ha(t[0])?Mt(t[0],Jt(co())):Mt(yr(t,1),Jt(co()))).length;return Qr((function(r){for(var i=-1,o=_n(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return kt(e,this,r)}))})),Va=Qr((function(e,t){var n=fn(t,uo(Va));return Ji(e,l,o,t,n)})),Ua=Qr((function(e,t){var n=fn(t,uo(Ua));return Ji(e,f,o,t,n)})),Ba=ro((function(e,t){return Ji(e,h,o,o,o,t)}));function za(e,t){return e===t||e!==e&&t!==t}var qa=Ki(Cr),Ga=Ki((function(e,t){return e>=t})),Wa=Pr(function(){return arguments}())?Pr:function(e){return rs(e)&&Re.call(e,"callee")&&!Xe.call(e,"callee")},Ha=n.isArray,Ka=_t?Jt(_t):function(e){return rs(e)&&kr(e)==R};function Xa(e){return null!=e&&ts(e.length)&&!Za(e)}function Ya(e){return rs(e)&&Xa(e)}var $a=yt||yu,Qa=wt?Jt(wt):function(e){return rs(e)&&kr(e)==x};function Ja(e){if(!rs(e))return!1;var t=kr(e);return t==O||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!
vendor: 5,259 bytes, line 2
2as(e)}function Za(e){if(!ns(e))return!1;var t=kr(e);return t==S||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==vs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=g}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var is=xt?Jt(xt):function(e){return rs(e)&&vo(e)==k};function os(e){return"number"==typeof e||rs(e)&&kr(e)==C}function as(e){if(!rs(e)||kr(e)!=T)return!1;var t=He(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Ve}var ss=Ot?Jt(Ot):function(e){return rs(e)&&kr(e)==I};var us=St?Jt(St):function(e){return rs(e)&&vo(e)==A};function cs(e){return"string"==typeof e||!Ha(e)&&rs(e)&&kr(e)==P}function ls(e){return"symbol"==typeof e||rs(e)&&kr(e)==N}var fs=Et?Jt(Et):function(e){return rs(e)&&ts(e.length)&&!!st[kr(e)]};var ds=Ki(Vr),hs=Ki((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Xa(e))return cs(e)?gn(e):Ii(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=vo(e);return(t==k?cn:t==A?dn:zs)(e)}function gs(e){return e?(e=ys(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function vs(e){var t=gs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?ur(vs(e),0,m):0}function ys(e){if("number"==typeof e)return e;if(ls(e))return v;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=ye.test(e);return n||_e.test(e)?ft(e.slice(2),n?2:8):me.test(e)?v:+e}function bs(e){return Ai(e,Ms(e))}function _s(e){return null==e?"":li(e)}var ws=Ni((function(e,t){if(Eo(t)||Xa(t))Ai(t,Ns(t),e);else for(var n in t)Re.call(t,n)&&nr(e,n,t[n])})),xs=Ni((function(e,t){Ai(t,Ms(t),e)})),Os=Ni((function(e,t,n,r){Ai(t,Ms(t),e,r)})),Ss=Ni((function(e,t,n,r){Ai(t,Ns(t),e,r)})),Es=ro(sr);var ks=Qr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&wo(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=Ms(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||za(f,Pe[l])&&!Re.call(e,l))&&(e[l]=a[l])}return e})),Cs=Qr((function(e){return e.push(o,eo),kt(Ls,o,e)}));function Ts(e,t,n){var r=null==e?o:Sr(e,t);return r===o?n:r}function js(e,t){return null!=e&&mo(e,t,jr)}var Is=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),e[t]=n}),nu(ou)),As=zi((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Fe.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),co),Ps=Qr(Ar);function Ns(e){return Xa(e)?Qn(e):Dr(e)}function Ms(e){return Xa(e)?Qn(e,!0):Fr(e)}var Rs=Ni((function(e,t,n){qr(e,t,n)})),Ls=Ni((function(e,t,n,r){qr(e,t,n,r)})),Ds=ro((function(e,t){var n={};if(null==e)return n;var r=!1;t=Mt(t,(function(t){return t=_i(t,e),r||(r=t.length>1),t})),Ai(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)di(n,t[i]);return n}));var Fs=ro((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return js(e,n)}))}(e,t)}));function Vs(e,t){if(null==e)return{};var n=Mt(oo(e),(function(e){return[e]}));return t=co(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Us=Qi(Ns),Bs=Qi(Ms);function zs(e){return null==e?[]:Zt(e,Ns(e))}var qs=Di((function(e,t,n){return t=t.toLowerCase(),e+(n?Gs(t):t)}));function Gs(e){return Js(_s(e).toLowerCase())}function Ws(e){return(e=_s(e))&&e.replace(xe,on).replace(et,"")}var Hs=Di((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Di((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Xs=Li("toLowerCase");var Ys=Di((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var $s=Di((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Qs=Di((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=Li("toUpperCase");function Zs(e,t,n){return e=_s(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var eu=Qr((function(e,t){try{return kt(e,o,t)}catch(n){return Ja(n)?n:new i(n)}})),tu=ro((function(e,t){return Tt(t,(function(t){t=Vo(t),ar(e,t,Aa(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Ui(),iu=Ui(!0);function ou(e){return e}function au(e){return Lr("function"==typeof e?e:cr(e,1))}var su=Qr((function(e,t){return function(n){return Ar(n,e,t)}})),uu=Qr((function(e,t){return function(n){return Ar(e,n,t)}}));function cu(e,t,n){var r=Ns(t),i=Or(t,r);null!=n||ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Or(t,Ns(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Za(e);return Tt(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__=Ii(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Rt([this.value()],arguments))})})),e}function lu(){}var fu=Gi(Mt),du=Gi(It),hu=Gi(Ft);function pu(e){return xo(e)?Ht(Vo(e)):function(e){return function(t){return Sr(t,e)}}(e)}var gu=Hi(),vu=Hi(!0);function mu(){return[]}function yu(){return!1}var bu=qi((function(e,t){return e+t}),0),_u=Yi("ceil"),wu=qi((function(e,t){return e/t}),1),xu=Yi("floor");var Ou=qi((function(e,t){return e*t}),1),Su=Yi("round"),Eu=qi((function(e,t){return e-t}
vendor: 5,554 bytes, line 2
2),0);return Bn.after=function(e,t){if("function"!=typeof t)throw new je(a);return e=vs(e),function(){if(--e<1)return t.apply(this,arguments)}},Bn.ary=ja,Bn.assign=ws,Bn.assignIn=xs,Bn.assignInWith=Os,Bn.assignWith=Ss,Bn.at=Es,Bn.before=Ia,Bn.bind=Aa,Bn.bindAll=tu,Bn.bindKey=Pa,Bn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ha(e)?e:[e]},Bn.chain=pa,Bn.chunk=function(e,t,r){t=(r?wo(e,t,r):t===o)?1:bn(vs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(ht(i/t));a<i;)u[s++]=ii(e,a,a+=t);return u},Bn.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},Bn.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 Rt(Ha(r)?Ii(r):[r],yr(t,1))},Bn.cond=function(e){var t=null==e?0:e.length,n=co();return e=t?Mt(e,(function(e){if("function"!=typeof e[1])throw new je(a);return[n(e[0]),e[1]]})):[],Qr((function(n){for(var r=-1;++r<t;){var i=e[r];if(kt(i[0],this,n))return kt(i[1],this,n)}}))},Bn.conforms=function(e){return function(e){var t=Ns(e);return function(n){return lr(n,e,t)}}(cr(e,1))},Bn.constant=nu,Bn.countBy=ma,Bn.create=function(e,t){var n=zn(e);return null==t?n:or(n,t)},Bn.curry=function e(t,n,r){var i=Ji(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.curryRight=function e(t,n,r){var i=Ji(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Bn.debounce=Na,Bn.defaults=ks,Bn.defaultsDeep=Cs,Bn.defer=Ma,Bn.delay=Ra,Bn.difference=zo,Bn.differenceBy=qo,Bn.differenceWith=Go,Bn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=n||t===o?1:vs(t))<0?0:t,r):[]},Bn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,0,(t=r-(t=n||t===o?1:vs(t)))<0?0:t):[]},Bn.dropRightWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!0,!0):[]},Bn.dropWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!0):[]},Bn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&wo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=vs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:vs(r))<0&&(r+=i),r=n>r?0:ms(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Bn.filter=function(e,t){return(Ha(e)?At:mr)(e,co(t,3))},Bn.flatMap=function(e,t){return yr(Ea(e,t),1)},Bn.flatMapDeep=function(e,t){return yr(Ea(e,t),p)},Bn.flatMapDepth=function(e,t,n){return n=n===o?1:vs(n),yr(Ea(e,t),n)},Bn.flatten=Ko,Bn.flattenDeep=function(e){return(null==e?0:e.length)?yr(e,p):[]},Bn.flattenDepth=function(e,t){return(null==e?0:e.length)?yr(e,t=t===o?1:vs(t)):[]},Bn.flip=function(e){return Ji(e,512)},Bn.flow=ru,Bn.flowRight=iu,Bn.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},Bn.functions=function(e){return null==e?[]:Or(e,Ns(e))},Bn.functionsIn=function(e){return null==e?[]:Or(e,Ms(e))},Bn.groupBy=xa,Bn.initial=function(e){return(null==e?0:e.length)?ii(e,0,-1):[]},Bn.intersection=Yo,Bn.intersectionBy=$o,Bn.intersectionWith=Qo,Bn.invert=Is,Bn.invertBy=As,Bn.invokeMap=Oa,Bn.iteratee=au,Bn.keyBy=Sa,Bn.keys=Ns,Bn.keysIn=Ms,Bn.map=Ea,Bn.mapKeys=function(e,t){var n={};return t=co(t,3),wr(e,(function(e,r,i){ar(n,t(e,r,i),e)})),n},Bn.mapValues=function(e,t){var n={};return t=co(t,3),wr(e,(function(e,r,i){ar(n,r,t(e,r,i))})),n},Bn.matches=function(e){return Br(cr(e,1))},Bn.matchesProperty=function(e,t){return zr(e,cr(t,1))},Bn.memoize=La,Bn.merge=Rs,Bn.mergeWith=Ls,Bn.method=su,Bn.methodOf=uu,Bn.mixin=cu,Bn.negate=Da,Bn.nthArg=function(e){return e=vs(e),Qr((function(t){return Gr(t,e)}))},Bn.omit=Ds,Bn.omitBy=function(e,t){return Vs(e,Da(co(t)))},Bn.once=function(e){return Ia(2,e)},Bn.orderBy=function(e,t,n,r){return null==e?[]:(Ha(t)||(t=null==t?[]:[t]),Ha(n=r?o:n)||(n=null==n?[]:[n]),Wr(e,t,n))},Bn.over=fu,Bn.overArgs=Fa,Bn.overEvery=du,Bn.overSome=hu,Bn.partial=Va,Bn.partialRight=Ua,Bn.partition=ka,Bn.pick=Fs,Bn.pickBy=Vs,Bn.property=pu,Bn.propertyOf=function(e){return function(t){return null==e?o:Sr(e,t)}},Bn.pull=Zo,Bn.pullAll=ea,Bn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,co(n,2)):e},Bn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,o,n):e},Bn.pullAt=ta,Bn.range=gu,Bn.rangeRight=vu,Bn.rearg=Ba,Bn.reject=function(e,t){return(Ha(e)?At:mr)(e,Da(co(t,3)))},Bn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=co(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return Xr(e,i),n},Bn.rest=function(e,t){if("function"!=typeof e)throw new je(a);return Qr(e,t=t===o?t:vs(t))},Bn.reverse=na,Bn.sampleSize=function(e,t,n){return t=(n?wo(e,t,n):t===o)?1:vs(t),(Ha(e)?Zn:Zr)(e,t)},Bn.set=function(e,t,n){return null==e?e:ei(e,t,n)},Bn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:ei(e,t,n,r)},Bn.shuffle=function(e){return(Ha(e)?er:ri)(e)},Bn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&wo(e,t,n)?(t=0,n=r):(t=null==t?0:vs(t),n=n===o?r:vs(n)),ii(e,t,n)):[]},Bn.sortBy=Ca,Bn.sortedUniq=function(e){return e&&e.length?ui(e):[]},Bn.sortedUniqBy=function(e,t){return e&&e.length?ui(e,co(t,2)):[]},Bn.split=function(e,t,n){return n&&"number"!=typeof n&&wo(e,t,n)&&(t=n=o),(n=n===o?m:n>>>0)?(e=_s(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=li(t))&&un(e)?xi(gn(e),0,n):e.split(t,n):[]},Bn.spread=function(e,t){if("function"!=typeof e)throw new je(a);return t=null==t?0:bn(vs(t),0),Qr((function(n){var r=n[t],i=xi(n,0,t);return r&&Rt(i,r),kt(e,this,i)}))},Bn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]}
vendor: 4,777 bytes, line 2
2,Bn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===o?1:vs(t))<0?0:t):[]},Bn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===o?1:vs(t)))<0?0:t,r):[]},Bn.takeRightWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!1,!0):[]},Bn.takeWhile=function(e,t){return e&&e.length?pi(e,co(t,3)):[]},Bn.tap=function(e,t){return t(e),e},Bn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new je(a);return ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Na(e,t,{leading:r,maxWait:t,trailing:i})},Bn.thru=ga,Bn.toArray=ps,Bn.toPairs=Us,Bn.toPairsIn=Bs,Bn.toPath=function(e){return Ha(e)?Mt(e,Vo):ls(e)?[e]:Ii(Fo(_s(e)))},Bn.toPlainObject=bs,Bn.transform=function(e,t,n){var r=Ha(e),i=r||$a(e)||fs(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ns(e)&&Za(o)?zn(He(e)):{}}return(i?Tt:wr)(e,(function(e,r,i){return t(n,e,r,i)})),n},Bn.unary=function(e){return ja(e,1)},Bn.union=ra,Bn.unionBy=ia,Bn.unionWith=oa,Bn.uniq=function(e){return e&&e.length?fi(e):[]},Bn.uniqBy=function(e,t){return e&&e.length?fi(e,co(t,2)):[]},Bn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fi(e,o,t):[]},Bn.unset=function(e,t){return null==e||di(e,t)},Bn.unzip=aa,Bn.unzipWith=sa,Bn.update=function(e,t,n){return null==e?e:hi(e,t,bi(n))},Bn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:hi(e,t,bi(n),r)},Bn.values=zs,Bn.valuesIn=function(e){return null==e?[]:Zt(e,Ms(e))},Bn.without=ua,Bn.words=Zs,Bn.wrap=function(e,t){return Va(bi(t),e)},Bn.xor=ca,Bn.xorBy=la,Bn.xorWith=fa,Bn.zip=da,Bn.zipObject=function(e,t){return mi(e||[],t||[],nr)},Bn.zipObjectDeep=function(e,t){return mi(e||[],t||[],ei)},Bn.zipWith=ha,Bn.entries=Us,Bn.entriesIn=Bs,Bn.extend=xs,Bn.extendWith=Os,cu(Bn,Bn),Bn.add=bu,Bn.attempt=eu,Bn.camelCase=qs,Bn.capitalize=Gs,Bn.ceil=_u,Bn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ys(n))===n?n:0),t!==o&&(t=(t=ys(t))===t?t:0),ur(ys(e),t,n)},Bn.clone=function(e){return cr(e,4)},Bn.cloneDeep=function(e){return cr(e,5)},Bn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},Bn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},Bn.conformsTo=function(e,t){return null==t||lr(e,t,Ns(t))},Bn.deburr=Ws,Bn.defaultTo=function(e,t){return null==e||e!==e?t:e},Bn.divide=wu,Bn.endsWith=function(e,t,n){e=_s(e),t=li(t);var r=e.length,i=n=n===o?r:ur(vs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Bn.eq=za,Bn.escape=function(e){return(e=_s(e))&&J.test(e)?e.replace($,an):e},Bn.escapeRegExp=function(e){return(e=_s(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},Bn.every=function(e,t,n){var r=Ha(e)?It:gr;return n&&wo(e,t,n)&&(t=o),r(e,co(t,3))},Bn.find=ya,Bn.findIndex=Wo,Bn.findKey=function(e,t){return Ut(e,co(t,3),wr)},Bn.findLast=ba,Bn.findLastIndex=Ho,Bn.findLastKey=function(e,t){return Ut(e,co(t,3),xr)},Bn.floor=xu,Bn.forEach=_a,Bn.forEachRight=wa,Bn.forIn=function(e,t){return null==e?e:br(e,co(t,3),Ms)},Bn.forInRight=function(e,t){return null==e?e:_r(e,co(t,3),Ms)},Bn.forOwn=function(e,t){return e&&wr(e,co(t,3))},Bn.forOwnRight=function(e,t){return e&&xr(e,co(t,3))},Bn.get=Ts,Bn.gt=qa,Bn.gte=Ga,Bn.has=function(e,t){return null!=e&&mo(e,t,Tr)},Bn.hasIn=js,Bn.head=Xo,Bn.identity=ou,Bn.includes=function(e,t,n,r){e=Xa(e)?e:zs(e),n=n&&!r?vs(n):0;var i=e.length;return n<0&&(n=bn(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&zt(e,t,n)>-1},Bn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:vs(n);return i<0&&(i=bn(r+i,0)),zt(e,t,i)},Bn.inRange=function(e,t,n){return t=gs(t),n===o?(n=t,t=0):n=gs(n),function(e,t,n){return e>=_n(t,n)&&e<bn(t,n)}(e=ys(e),t,n)},Bn.invoke=Ps,Bn.isArguments=Wa,Bn.isArray=Ha,Bn.isArrayBuffer=Ka,Bn.isArrayLike=Xa,Bn.isArrayLikeObject=Ya,Bn.isBoolean=function(e){return!0===e||!1===e||rs(e)&&kr(e)==w},Bn.isBuffer=$a,Bn.isDate=Qa,Bn.isElement=function(e){return rs(e)&&1===e.nodeType&&!as(e)},Bn.isEmpty=function(e){if(null==e)return!0;if(Xa(e)&&(Ha(e)||"string"==typeof e||"function"==typeof e.splice||$a(e)||fs(e)||Wa(e)))return!e.length;var t=vo(e);if(t==k||t==A)return!e.size;if(Eo(e))return!Dr(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Bn.isEqual=function(e,t){return Nr(e,t)},Bn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Nr(e,t,o,n):!!r},Bn.isError=Ja,Bn.isFinite=function(e){return"number"==typeof e&&bt(e)},Bn.isFunction=Za,Bn.isInteger=es,Bn.isLength=ts,Bn.isMap=is,Bn.isMatch=function(e,t){return e===t||Mr(e,t,fo(t))},Bn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Mr(e,t,fo(t),n)},Bn.isNaN=function(e){return os(e)&&e!=+e},Bn.isNative=function(e){if(So(e))throw new i("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Rr(e)}
vendor: 4,696 bytes, line 2
2,Bn.isNil=function(e){return null==e},Bn.isNull=function(e){return null===e},Bn.isNumber=os,Bn.isObject=ns,Bn.isObjectLike=rs,Bn.isPlainObject=as,Bn.isRegExp=ss,Bn.isSafeInteger=function(e){return es(e)&&e>=-9007199254740991&&e<=g},Bn.isSet=us,Bn.isString=cs,Bn.isSymbol=ls,Bn.isTypedArray=fs,Bn.isUndefined=function(e){return e===o},Bn.isWeakMap=function(e){return rs(e)&&vo(e)==M},Bn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==kr(e)},Bn.join=function(e,t){return null==e?"":Vt.call(e,t)},Bn.kebabCase=Hs,Bn.last=Jo,Bn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=vs(n))<0?bn(r+i,0):_n(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):Bt(e,Gt,i,!0)},Bn.lowerCase=Ks,Bn.lowerFirst=Xs,Bn.lt=ds,Bn.lte=hs,Bn.max=function(e){return e&&e.length?vr(e,ou,Cr):o},Bn.maxBy=function(e,t){return e&&e.length?vr(e,co(t,2),Cr):o},Bn.mean=function(e){return Wt(e,ou)},Bn.meanBy=function(e,t){return Wt(e,co(t,2))},Bn.min=function(e){return e&&e.length?vr(e,ou,Vr):o},Bn.minBy=function(e,t){return e&&e.length?vr(e,co(t,2),Vr):o},Bn.stubArray=mu,Bn.stubFalse=yu,Bn.stubObject=function(){return{}},Bn.stubString=function(){return""},Bn.stubTrue=function(){return!0},Bn.multiply=Ou,Bn.nth=function(e,t){return e&&e.length?Gr(e,vs(t)):o},Bn.noConflict=function(){return pt._===this&&(pt._=Ue),this},Bn.noop=lu,Bn.now=Ta,Bn.pad=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(gt(i),n)+e+Wi(ht(i),n)},Bn.padEnd=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?e+Wi(t-r,n):e},Bn.padStart=function(e,t,n){e=_s(e);var r=(t=vs(t))?pn(e):0;return t&&r<t?Wi(t-r,n)+e:e},Bn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(_s(e).replace(se,""),t||0)},Bn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&wo(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=gs(e),t===o?(t=e,e=0):t=gs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=On();return _n(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return Yr(e,t)},Bn.reduce=function(e,t,n){var r=Ha(e)?Lt:Xt,i=arguments.length<3;return r(e,co(t,4),n,i,hr)},Bn.reduceRight=function(e,t,n){var r=Ha(e)?Dt:Xt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},Bn.repeat=function(e,t,n){return t=(n?wo(e,t,n):t===o)?1:vs(t),$r(_s(e),t)},Bn.replace=function(){var e=arguments,t=_s(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Bn.result=function(e,t,n){var r=-1,i=(t=_i(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[Vo(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Bn.round=Su,Bn.runInContext=e,Bn.sample=function(e){return(Ha(e)?Jn:Jr)(e)},Bn.size=function(e){if(null==e)return 0;if(Xa(e))return cs(e)?pn(e):e.length;var t=vo(e);return t==k||t==A?e.size:Dr(e).length},Bn.snakeCase=Ys,Bn.some=function(e,t,n){var r=Ha(e)?Ft:oi;return n&&wo(e,t,n)&&(t=o),r(e,co(t,3))},Bn.sortedIndex=function(e,t){return ai(e,t)},Bn.sortedIndexBy=function(e,t,n){return si(e,t,co(n,2))},Bn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ai(e,t);if(r<n&&za(e[r],t))return r}return-1},Bn.sortedLastIndex=function(e,t){return ai(e,t,!0)},Bn.sortedLastIndexBy=function(e,t,n){return si(e,t,co(n,2),!0)},Bn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ai(e,t,!0)-1;if(za(e[n],t))return n}return-1},Bn.startCase=$s,Bn.startsWith=function(e,t,n){return e=_s(e),n=null==n?0:ur(vs(n),0,e.length),t=li(t),e.slice(n,n+t.length)==t},Bn.subtract=Eu,Bn.sum=function(e){return e&&e.length?Yt(e,ou):0},Bn.sumBy=function(e,t){return e&&e.length?Yt(e,co(t,2)):0},Bn.template=function(e,t,n){var r=Bn.templateSettings;n&&wo(e,t,n)&&(t=o),e=_s(e),t=Os({},t,r,Zi);var a,s,u=Os({},t.imports,r.imports,Zi),c=Ns(u),l=Zt(u,c),f=0,d=t.interpolate||Oe,h="__p += '",p=Ce((t.escape||Oe).source+"|"+d.source+"|"+(d===te?ge:Oe).source+"|"+(t.evaluate||Oe).source+"|$","g"),g="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(p,(function(t,n,r,i,o,u){return r||(r=i),h+=e.slice(f,u).replace(Se,sn),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),o&&(s=!0,h+="';\n"+o+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),f=u+t.length,t})),h+="';\n";var v=Re.call(t,"variable")&&t.variable;if(v){if(he.test(v))throw new i("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(H,""):h).replace(K,"$1").replace(X,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";
2\n")+h+"return __p\n}";var m=eu((function(){return ue(c,g+"return "+h).apply(o,l)}));if(m.source=h,Ja(m))throw m;return m},Bn.times=function(e,t){if((e=vs(e))<1||e>g)return[];var n=m,r=_n(e,m);t=co(t),e-=m;for(var i=$t(r,t);++n<e;)t(n);return i},Bn.toFinite=gs,Bn.toInteger=vs,Bn.toLength=ms,Bn.toLower=function(e){return _s(e).toLowerCase()},Bn.toNumber=ys,Bn.toSafeInteger=function(e){return e?ur(vs(e),-9007199254740991,g):0===e?e:0},Bn.toString=_s,Bn.toUpper=function(e){return _s(e).toUpperCase()},Bn.trim=function(e,t,n){if((e=_s(e))&&(n||t===o))return Qt(e);if(!e||!(t=li(t)))return e;var r=gn(e),i=gn(t);return xi(r,tn(r,i),nn(r,i)+1).join("")},Bn.trimEnd=function(e,t,n){if((e=_s(e))&&(n||t===o))return e.slice(0,vn(e)+1);if(!e||!(t=li(t)))return e;var r=gn(e);return xi(r,0,nn(r,gn(t))+1).join("")},Bn.trimStart=function(e,t,n){if((e=_s(e))&&(n||t===o))return e.replace(se,"");if(!e||!(t=li(t)))return e;var r=gn(e);return xi(r,tn(r,gn(t))).join("")},Bn.truncate=function(e,t){var n=30,r="...";if(ns(t)){var i="separator"in t?t.separator:i;n="length"in t?vs(t.length):n,r="omission"in t?li(t.omission):r}var a=(e=_s(e)).length;if(un(e)){var s=gn(e);a=s.length}if(n>=a)return e;var u=n-pn(r);if(u<1)return r;var c=s?xi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),ss(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Ce(i.source,_s(ve.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===o?u:d)}}else if(e.indexOf(li(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},Bn.unescape=function(e){return(e=_s(e))&&Q.test(e)?e.replace(Y,mn):e},Bn.uniqueId=function(e){var t=++Le;return _s(e)+t},Bn.upperCase=Qs,Bn.upperFirst=Js,Bn.each=_a,Bn.eachRight=wa,Bn.first=Xo,cu(Bn,function(){var e={};return wr(Bn,(function(t,n){Re.call(Bn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Bn.VERSION="4.17.21",Tt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Bn[e].placeholder=Bn})),Tt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:bn(vs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=_n(n,r.__takeCount__):r.__views__.push({size:_n(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Tt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Tt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),Tt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ar(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Da(co(e)))},Wn.prototype.slice=function(e,t){e=vs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=vs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},wr(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Bn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Bn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,c=s[0],l=u||Ha(t),f=function(e){var t=i.apply(Bn,Rt([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,g=u&&!h;if(!a&&l){t=g?t:new Wn(this);var v=e.apply(t,s);return v.__actions__.push({func:ga,args:[f],thisArg:o}),new Gn(v,d)}return p&&g?e.apply(this,s):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),Tt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ie[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Bn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ha(i)?i:[],e)}return this[n]((function(n){return t.apply(Ha(n)?n:[],e)}))}})),wr(Wn.prototype,(function(e,t){var n=Bn[t];if(n){var r=n.name+"";Re.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[Bi(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ii(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ii(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ii(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ha(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=_n(t,e+a);break;case"takeRight":e=bn(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,d=0,h=_n(u,this.__takeCount__);if(!n||!r&&i==u&&h==u)return gi(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var g=-1,v=e[c+=t];++g<f;){var m=l[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}p[d++]=v}return p},Bn.prototype.at=va,Bn.prototype.chain=function(){return pa(this)},Bn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Bn.prototype.next=function(){this.__values__===o&&(this.__values__=ps(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Bn.prototype.plant=function(e){for(var t,n=this;n instanceof qn;){var r=Bo(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Bn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:ga,args:[na],thisArg:o}),new Gn(t,this.__chain__)}return this.thru(na)},Bn.prototype.toJSON=Bn.prototype.valueOf=Bn.prototype.value=function(){return gi(this.__wrapped__,this.__actions__)},Bn.prototype.first=Bn.prototype.head,Qe&&(Bn.prototype[Qe]=function(){return this}),Bn}();
2pt._=yn,(i=function(){return yn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(66),n(169)(e))},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=u(n(0)),a=u(n(76)),s=n(22);function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}var f=void 0,d=function(e){function t(){return c(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"componentDidMount",value:function(){f=n(188),this.updateChart(this.props)}},{key:"componentWillReceiveProps",value:function(e){this.updateChart(e)}},{key:"componentWillUnmount",value:function(){this.destroyChart()}},{key:"destroyChart",value:function(){try{this.chart=this.chart.destroy()}catch(e){throw new Error("Internal C3 error",e)}}},{key:"generateChart",value:function(e,t){var n=r({bindto:e},t);return f.generate(n)}},{key:"loadNewData",value:function(e){this.chart.load(e)}},{key:"unloadData",value:function(){this.chart.unload()}},{key:"updateChart",value:function(e){this.chart||(this.chart=this.generateChart((0,s.findDOMNode)(this),e)),e.unloadBeforeLoad&&this.unloadData(),this.loadNewData(e.data)}},{key:"render",value:function(){var e=this.props.className?" "+this.props.className:"",t=this.props.style?this.props.style:{};return o.default.createElement("div",{className:e,style:t})}}],[{key:"displayName",get:function(){return"C3Chart"}},{key:"propTypes",get:function(){return{data:a.default.object.isRequired,title:a.default.object,size:a.default.object,padding:a.default.object,color:a.default.object,interaction:a.default.object,transition:a.default.object,oninit:a.default.func,onrendered:a.default.func,onmouseover:a.default.func,onmouseout:a.default.func,onresize:a.default.func,onresized:a.default.func,axis:a.default.object,grid:a.default.object,regions:a.default.array,legend:a.default.object,tooltip:a.default.object,subchart:a.default.object,zoom:a.default.object,point:a.default.object,line:a.default.object,area:a.default.object,bar:a.default.object,pie:a.default.object,donut:a.default.object,gauge:a.default.object,className:a.default.string,style:a.default.object,unloadBeforeLoad:a.default.bool}}}]),t}(o.default.Component);t.default=d},function(e,t,n){"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i="undefined"!==typeof window?r.useLayoutEffect:r.useEffect;t.a=i},,,,,function(e,t,n){"use strict";e.exports=n(162)},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 d(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(d);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 g(){}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(h)},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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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(127),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,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),g=u(n),v=0;v<a.length;++v){var m=a[v];if(!o[m]&&(!r||!r[m])&&(!g||!g[m])&&(!s||!s[m])){var y=d(n,m);try{c(t,m,y)}catch(b){}}}}return t}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return fe}));var r=n(8),i=n.n(r),o=n(132),a=n.n(o),s=n(133),u=n.n(s),c=n(0),l=n.n(c),f=n(89),d=n.n(f),h="bodyAttributes",p="htmlAttributes",g="titleAttributes",v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},m=(Object.keys(v).map((function(e){return v[e]})),"charset"),y="cssText",b="href",_="http-equiv",w="innerHTML",x="itemprop",O="name",S="property",E="rel",k="src",C="target",T={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},j="defaultTitle",I="defer",A="encodeSpecialCharacters",P="onChangeClientState",N="titleTemplate",M=Object.keys(T).reduce((function(e,t){return e[T[t]]=t,e}),{}),R=[v.NOSCRIPT,v.SCRIPT,v.STYLE],L="data-react-helmet",D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},V=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}}(),U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B=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},z=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},q=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},G=function(e){var t=Y(e,v.TITLE),n=Y(e,N);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=Y(e,j);return t||r||void 0},W=function(e){return Y(e,P)||function(){}},H=function(e,t){return t.filter((function(t){return"undefined"!==typeof t[e]}
2)).map((function(t){return t[e]})).reduce((function(e,t){return U({},e,t)}),{})},K=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var o=r[i].toLowerCase();if(-1!==e.indexOf(o)&&n[o])return t.concat(n)}return t}),[])},X=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&ee("Helmet: "+e+' should be of type "Array". Instead found type "'+D(t[e])+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n=void 0,o=Object.keys(e),a=0;a<o.length;a++){var s=o[a],u=s.toLowerCase();-1===t.indexOf(u)||n===E&&"canonical"===e[n].toLowerCase()||u===E&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||s!==w&&s!==y&&s!==x||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var o=Object.keys(i),a=0;a<o.length;a++){var s=o[a],u=d()({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},Y=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},$=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){$(t)}),0)}}(),Q=function(e){return clearTimeout(e)},J="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:e.requestAnimationFrame||$,Z="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Q:e.cancelAnimationFrame||Q,ee=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},te=null,ne=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.onChangeClientState,c=e.scriptTags,l=e.styleTags,f=e.title,d=e.titleAttributes;oe(v.BODY,r),oe(v.HTML,i),ie(f,d);var h={baseTag:ae(v.BASE,n),linkTags:ae(v.LINK,o),metaTags:ae(v.META,a),noscriptTags:ae(v.NOSCRIPT,s),scriptTags:ae(v.SCRIPT,c),styleTags:ae(v.STYLE,l)},p={},g={};Object.keys(h).forEach((function(e){var t=h[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(g[e]=h[e].oldTags)})),t&&t(),u(e,p,g)},re=function(e){return Array.isArray(e)?e.join(""):e},ie=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=re(e)),oe(v.TITLE,t)},oe=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(L),i=r?r.split(","):[],o=[].concat(i),a=Object.keys(t),s=0;s<a.length;s++){var u=a[s],c=t[u]||"";n.getAttribute(u)!==c&&n.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var l=o.indexOf(u);-1!==l&&o.splice(l,1)}for(var f=o.length-1;f>=0;f--)n.removeAttribute(o[f]);i.length===o.length?n.removeAttribute(L):n.getAttribute(L)!==a.join(",")&&n.setAttribute(L,a.join(","))}},ae=function(e,t){var n=document.head||document.querySelector(v.HEAD),r=n.querySelectorAll(e+"["+"data-react-helmet]"),i=Array.prototype.slice.call(r),o=[],a=void 0;return t&&t.length&&t.forEach((function(t){var n=document.createElement(e);for(var r in t)if(t.hasOwnProperty(r))if(r===w)n.innerHTML=t.innerHTML;else if(r===y)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var s="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,s)}n.setAttribute(L,"true"),i.some((function(e,t){return a=t,n.isEqualNode(e)}))?i.splice(a,1):o.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:o}},se=function(e){return Object.keys(e).reduce((function(t,n){var r="undefined"!==typeof e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[T[n]||n]=e[n],t}),t)},ce=function(e,t,n){switch(e){case v.TITLE:return{toComponent:function(){return function(e,t,n){var r,i=((r={key:t})[L]=!0,r),o=ue(n,i);return[l.a.createElement(v.TITLE,o,t)]}(0,t.title,t.titleAttributes)},toString:function(){return function(e,t,n,r){var i=se(n),o=re(t);return i?"<"+e+' data-react-helmet="true" '+i+">"+q(o,r)+"</"+e+">":"<"+e+' data-react-helmet="true">'+q(o,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case h:case p:return{toComponent:function(){return ue(t)},toString:function(){return se(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,n){var r,i=((r={key:n})[L]=!0,r);return Object.keys(t).forEach((function(e){var n=T[e]||e;if(n===w||n===y){var r=t.innerHTML||t.cssText;i.dangerouslySetInnerHTML={__html:r}}else i[n]=t[e]})),l.a.createElement(e,i)}))}(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===w||e===y)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+q(r[t],n)+'"';return e?e+" "+i:i}),""),o=r.innerHTML||r.cssText||"",a=-1===R.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+i+(a?"/>":">"+o+"</"+e+">")}),"")}(e,t,n)}}}},le=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,o=e.linkTags,a=e.metaTags,s=e.noscriptTags,u=e.scriptTags,c=e.styleTags,l=e.title,f=void 0===l?"":l,d=e.titleAttributes;return{base:ce(v.BASE,t,r),bodyAttributes:ce(h,n,r),htmlAttributes:ce(p,i,r),link:ce(v.LINK,o,r),meta:ce(v.META,a,r),noscript:ce(v.NOSCRIPT,s,r),script:ce(v.SCRIPT,u,r),style:ce(v.STYLE,c,r),title:ce(v.TITLE,{title:f,titleAttributes:d},r)}},fe=function(e){var t,n;return n=t=function(t){function n(){return F(this,n),z(this,t.apply(this,arguments))}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,t),n.prototype.shouldComponentUpdate=function(e){return!u()(this.props,e)},n.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},n.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,o=e.nestedChildren;return U({},r,((t={})[n.type]=[].concat(r[n.type]||[],[U({},i,this.mapNestedChildrenToProps(n,o))]),t))},n.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,o=e.newChildProps,a=e.nestedChildren;switch(r.type){case v.TITLE:return U({},i,((t={})[r.type]=a,t.titleAttributes=U({},o),t));case v.BODY:return U({},i,{bodyAttributes:U({},o)});case v.HTML:return U({},i,{htmlAttributes:U({},o)})}return U({},i,((n={})[r.type]=U({},o),n))},n.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=U({},t);return Object.keys(e).forEach((function(t){var r;n=U({},n,((r={})[t]=e[t],r))})),n}
2,n.prototype.warnOnInvalidChildren=function(e,t){return!0},n.prototype.mapChildrenToProps=function(e,t){var n=this,r={};return l.a.Children.forEach(e,(function(e){if(e&&e.props){var i=e.props,o=i.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[M[n]||n]=e[n],t}),t)}(B(i,["children"]));switch(n.warnOnInvalidChildren(e,o),e.type){case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:o});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:o})}}})),t=this.mapArrayTypeChildrenToProps(r,t)},n.prototype.render=function(){var t=this.props,n=t.children,r=B(t,["children"]),i=U({},r);return n&&(i=this.mapChildrenToProps(n,i)),l.a.createElement(e,i)},V(n,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),n}(l.a.Component),t.propTypes={base:i.a.object,bodyAttributes:i.a.object,children:i.a.oneOfType([i.a.arrayOf(i.a.node),i.a.node]),defaultTitle:i.a.string,defer:i.a.bool,encodeSpecialCharacters:i.a.bool,htmlAttributes:i.a.object,link:i.a.arrayOf(i.a.object),meta:i.a.arrayOf(i.a.object),noscript:i.a.arrayOf(i.a.object),onChangeClientState:i.a.func,script:i.a.arrayOf(i.a.object),style:i.a.arrayOf(i.a.object),title:i.a.string,titleAttributes:i.a.object,titleTemplate:i.a.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=le({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},n}(a()((function(e){return{baseTag:K([b,C],e),bodyAttributes:H(h,e),defer:Y(e,I),encode:Y(e,A),htmlAttributes:H(p,e),linkTags:X(v.LINK,[E,b],e),metaTags:X(v.META,[O,m,_,S,x],e),noscriptTags:X(v.NOSCRIPT,[w],e),onChangeClientState:W(e),scriptTags:X(v.SCRIPT,[k,w],e),styleTags:X(v.STYLE,[y],e),title:G(e),titleAttributes:H(g,e)}}),(function(e){te&&Z(te),e.defer?te=J((function(){ne(e,(function(){te=null}))})):(ne(e),te=null)}),le)((function(){return null})));fe.renderStatic=fe.rewind}).call(this,n(66))},function(e,t,n){"use strict";var r,i=n(0),o=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=!("undefined"===typeof window||!window.document||!window.document.createElement);e.exports=function(e,t,n){if("function"!==typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!==typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.");if("undefined"!==typeof n&&"function"!==typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!==typeof r)throw new Error("Expected WrappedComponent to be a React component.");var u,c=[];function l(){u=e(c.map((function(e){return e.props}))),f.canUseDOM?t(u):n&&(u=n(u))}var f=function(e){var t,n;function i(){return e.apply(this,arguments)||this}n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i.peek=function(){return u},i.rewind=function(){if(i.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=u;return u=void 0,c=[],e};var a=i.prototype;return a.UNSAFE_componentWillMount=function(){c.push(this),l()},a.componentDidUpdate=function(){l()},a.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),l()},a.render=function(){return o.createElement(r,this.props)},i}(i.PureComponent);return a(f,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),a(f,"canUseDOM",s),f}}},function(e,t){var n="undefined"!==typeof Element,r="function"===typeof Map,i="function"===typeof Set,o="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=t.length)return!1;for(u=s;0!==u--;)if(!a(e[u],t[u]))return!1;return!0}if(r&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!t.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!a(u.value[1],t.get(u.value[0])))return!1;return!0}if(i&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!t.has(u.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if((s=e.length)!=t.length)return!1;for(u=s;0!==u--;)if(e[u]!==t[u])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(t,c[u]))return!1;if(n&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!a(e[c[u]],t[c[u]]))return!1;return!0}return e!==e&&t!==t}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},function(e,t,n){"use strict";var r=n(10),i=n(48),o=n(47),a=n(27),s=n(57),u=n(32),c=n(33);function l(e){return Array.isArray?Array.isArray(e):"[object Array]"===m(e)}function f(e){return"string"===typeof e}function d(e){return"number"===typeof e}function h(e){return!0===e||!1===e||function(e){return p(e)&&null!==e}(e)&&"[object Boolean]"==m(e)}function p(e){return"object"===typeof e}function g(e){return void 0!==e&&null!==e}function v(e){return!e.trim().length}
2function m(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var y=function(e){return"Invalid value for key ".concat(e)},b=function(e){return"Pattern length exceeds max of ".concat(e,".")},_=Object.prototype.hasOwnProperty,w=function(){function e(t){var n=this;Object(u.a)(this,e),this._keys=[],this._keyMap={};var r=0;t.forEach((function(e){var t=x(e);r+=t.weight,n._keys.push(t),n._keyMap[t.id]=t,r+=t.weight})),this._keys.forEach((function(e){e.weight/=r}))}return Object(c.a)(e,[{key:"get",value:function(e){return this._keyMap[e]}},{key:"keys",value:function(){return this._keys}},{key:"toJSON",value:function(){return JSON.stringify(this._keys)}}]),e}();function x(e){var t=null,n=null,r=null,i=1;if(f(e)||l(e))r=e,t=O(e),n=S(e);else{if(!_.call(e,"name"))throw new Error(function(e){return"Missing ".concat(e," property in key")}("name"));var o=e.name;if(r=o,_.call(e,"weight")&&(i=e.weight)<=0)throw new Error(function(e){return"Property 'weight' in key '".concat(e,"' must be a positive integer")}(o));t=O(o),n=S(o)}return{path:t,id:n,weight:i,src:r}}function O(e){return l(e)?e:e.split(".")}function S(e){return l(e)?e.join("."):e}var E={useExtendedSearch:!1,getFn:function(e,t){var n=[],r=!1;return function e(t,i,o){if(g(t))if(i[o]){var a=t[i[o]];if(!g(a))return;if(o===i.length-1&&(f(a)||d(a)||h(a)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(a));else if(l(a)){r=!0;for(var s=0,u=a.length;s<u;s+=1)e(a[s],i,o+1)}else i.length&&e(a,i,o+1)}else n.push(t)}(e,f(t)?t.split("."):t,0),r?n:n[0]},ignoreLocation:!1,ignoreFieldNorm:!1},k=Object(s.a)(Object(s.a)(Object(s.a)(Object(s.a)({},{isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:function(e,t){return e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1}}),{includeMatches:!1,findAllMatches:!1,minMatchCharLength:1}),{location:0,threshold:.6,distance:100}),E),C=/[^ ]+/g;function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,t=new Map,n=Math.pow(10,e);return{get:function(e){var r=e.match(C).length;if(t.has(r))return t.get(r);var i=1/Math.sqrt(r),o=parseFloat(Math.round(i*n)/n);return t.set(r,o),o},clear:function(){t.clear()}}}var j=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,r=void 0===n?k.getFn:n;Object(u.a)(this,e),this.norm=T(3),this.getFn=r,this.isCreated=!1,this.setIndexRecords()}return Object(c.a)(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,f(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();f(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t<n;t+=1)this.records[t].i-=1}},{key:"getValueForItemAtKeyId",value:function(e,t){return e[this._keysMap[t]]}},{key:"size",value:function(){return this.records.length}},{key:"_addString",value:function(e,t){if(g(e)&&!v(e)){var n={v:e,i:t,n:this.norm.get(e)};this.records.push(n)}}},{key:"_addObject",value:function(e,t){var n=this,r={i:t,$:{}};this.keys.forEach((function(t,i){var o=n.getFn(e,t.path);if(g(o))if(l(o))!function(){for(var e=[],t=[{nestedArrIndex:-1,value:o}];t.length;){var a=t.pop(),s=a.nestedArrIndex,u=a.value;if(g(u))if(f(u)&&!v(u)){var c={v:u,i:s,n:n.norm.get(u)};e.push(c)}else l(u)&&u.forEach((function(e,n){t.push({nestedArrIndex:n,value:e})}))}r.$[i]=e}();else if(!v(o)){var a={v:o,n:n.norm.get(o)};r.$[i]=a}})),this.records.push(r)}},{key:"toJSON",value:function(){return{keys:this.keys,records:this.records}}}]),e}();function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?k.getFn:r,o=new j({getFn:i});return o.setKeys(e.map(x)),o.setSources(t),o.create(),o}function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,a=t.expectedLocation,s=void 0===a?0:a,u=t.distance,c=void 0===u?k.distance:u,l=t.ignoreLocation,f=void 0===l?k.ignoreLocation:l,d=r/e.length;if(f)return d;var h=Math.abs(s-o);return c?d+h/c:h?1:d}function P(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:k.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=e.length;o<a;o+=1){var s=e[o];s&&-1===r?r=o:s||-1===r||((i=o-1)-r+1>=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var N=32;function M(e){for(var t={},n=0,r=e.length;n<r;n+=1){var i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}var R=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.location,o=void 0===i?k.location:i,a=r.threshold,s=void 0===a?k.threshold:a,c=r.distance,l=void 0===c?k.distance:c,f=r.includeMatches,d=void 0===f?k.includeMatches:f,h=r.findAllMatches,p=void 0===h?k.findAllMatches:h,g=r.minMatchCharLength,v=void 0===g?k.minMatchCharLength:g,m=r.isCaseSensitive,y=void 0===m?k.isCaseSensitive:m,b=r.ignoreLocation,_=void 0===b?k.ignoreLocation:b;if(Object(u.a)(this,e),this.options={location:o,threshold:s,distance:l,includeMatches:d,findAllMatches:p,minMatchCharLength:v,isCaseSensitive:y,ignoreLocation:_},this.pattern=y?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var w=function(e,t){n.chunks.push({pattern:e,alphabet:M(e),startIndex:t})},x=this.pattern.length;if(x>N){for(var O=0,S=x%N,E=x-S;O<E;)w(this.pattern.substr(O,N),O),O+=N;if(S){var C=x-N;w(this.pattern.substr(C),C)}}else w(this.pattern,0)}}return Object(c.a)(e,[{key:"searchIn",value:function(e){var t=this.options,n=t.isCaseSensitive,r=t.includeMatches;if(n||(e=e.toLowerCase()),this.pattern===e){var i={isMatch:!0,score:0};return r&&(i.indices=[[0,e.length-1]]),i}var o=this.options,s=o.location,u=o.distance,c=o.threshold,l=o.findAllMatches,f=o.minMatchCharLength,d=o.ignoreLocation,h=[],p=0,g=!1;this.chunks.forEach((function(t){var n=t.pattern,i=t.alphabet,o=t.startIndex,v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?k.location:i,a=r.distance,s=void 0===a?k.distance:a,u=r.threshold,c=void 0===u?k.threshold:u,l=r.findAllMatches,f=void 0===l?k.findAllMatches:l,d=r.minMatchCharLength,h=void 0===d?k.minMatchCharLength:d,p=r.includeMatches,g=void 0===p?k.includeMatches:p,v=r.ignoreLocation,m=void 0===v?k.ignoreLocation:v;if(t.length>N)throw new Error(b(N));for(var y,_=t.length,w=e.length,x=Math.max(0,Math.min(o,w)),O=c,S=x,E=h>1||g,C=E?Array(w):[];(y=e.indexOf(t,S))>-1;){var T=A(t,{currentLocation:y,expectedLocation:x,distance:s,ignoreLocation:m});if(O=Math.min(T,O),S=y+_,E)for(var j=0;j<_;)C[y+j]=1,j+=1}S=-1;for(var I=[],M=1,R=_+w,L=1<<_-1,D=0;D<_;D+=1){for(var F=0,V=R;F<V;){A(t,{errors:D,currentLocation:x+V,expectedLocation:x,distance:s,ignoreLocation:m})<=O?F=V:R=V,V=Math.floor((R-F)/2+F)}R=V;var U=Math.max(1,x-V+1),B=f?w:Math.min(x+V,w)+_,z=Array(B+2);z[B+1]=(1<<D)-1;for(var q=B;q>=U;q-=1){var G=q-1,W=n[e.charAt(G)];if(E&&(C[G]=+!!W),z[q]=(z[q+1]<<1|1)&W,D&&(z[q]|=(I[q+1]|I[q])<<1|1|I[q+1]),z[q]&L&&(M=A(t,{errors:D,currentLocation:G,expectedLocation:x,distance:s,ignoreLocation:m}))<=O){if(O=M,(S=G)<=x)break;U=Math.max(1,2*x-S)}}if(A(t,{errors:D+1,currentLocation:x,expectedLocation:x,distance:s,ignoreLocation:m})>O)break;I=z}var H={isMatch:S>=0,score:Math.max(.001,M)};if(E){var K=P(C,h);K.length?g&&(H.indices=K):H.isMatch=!1}return H}(e,n,i,{location:s+o,distance:u,threshold:c,findAllMatches:l,minMatchCharLength:f,includeMatches:r,ignoreLocation:d}),m=v.isMatch,y=v.score,_=v.indices;m&&(g=!0),p+=y,m&&_&&(h=[].concat(Object(a.a)(h),Object(a.a)(_)))}));var v={isMatch:g,score:g?p/this.chunks.length:1};return g&&r&&(v.indices=h),v}}]),e}(),L=function(){function e(t){Object(u.a)(this,e),this.pattern=t}return Object(c.a)(e,[{key:"search",value:function(){}}],[{key:"isMultiMatch",value:function(e){return D(e,this.multiRegex)}},{key:"isSingleMatch",value:function(e){return D(e,this.singleRegex)}}]),e}();function D(e,t){var n=e.match(t);
2return n?n[1]:null}var F=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"exact"}},{key:"multiRegex",get:function(){return/^="(.*)"$/}},{key:"singleRegex",get:function(){return/^=(.*)$/}}]),n}(L),V=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"$/}},{key:"singleRegex",get:function(){return/^!(.*)$/}}]),n}(L),U=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}}],[{key:"type",get:function(){return"prefix-exact"}},{key:"multiRegex",get:function(){return/^\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^\^(.*)$/}}]),n}(L),B=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-prefix-exact"}},{key:"multiRegex",get:function(){return/^!\^"(.*)"$/}},{key:"singleRegex",get:function(){return/^!\^(.*)$/}}]),n}(L),z=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}],[{key:"type",get:function(){return"suffix-exact"}},{key:"multiRegex",get:function(){return/^"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^(.*)\$$/}}]),n}(L),q=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){var t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}}],[{key:"type",get:function(){return"inverse-suffix-exact"}},{key:"multiRegex",get:function(){return/^!"(.*)"\$$/}},{key:"singleRegex",get:function(){return/^!(.*)\$$/}}]),n}(L),G=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?k.location:o,s=i.threshold,c=void 0===s?k.threshold:s,l=i.distance,f=void 0===l?k.distance:l,d=i.includeMatches,h=void 0===d?k.includeMatches:d,p=i.findAllMatches,g=void 0===p?k.findAllMatches:p,v=i.minMatchCharLength,m=void 0===v?k.minMatchCharLength:v,y=i.isCaseSensitive,b=void 0===y?k.isCaseSensitive:y,_=i.ignoreLocation,w=void 0===_?k.ignoreLocation:_;return Object(u.a)(this,n),(r=t.call(this,e))._bitapSearch=new R(e,{location:a,threshold:c,distance:f,includeMatches:h,findAllMatches:g,minMatchCharLength:m,isCaseSensitive:b,ignoreLocation:w}),r}return Object(c.a)(n,[{key:"search",value:function(e){return this._bitapSearch.searchIn(e)}}],[{key:"type",get:function(){return"fuzzy"}},{key:"multiRegex",get:function(){return/^"(.*)"$/}},{key:"singleRegex",get:function(){return/^(.*)$/}}]),n}(L),W=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(e){return Object(u.a)(this,n),t.call(this,e)}return Object(c.a)(n,[{key:"search",value:function(e){for(var t,n=0,r=[],i=this.pattern.length;(t=e.indexOf(this.pattern,n))>-1;)n=t+i,r.push([t,n-1]);var o=!!r.length;return{isMatch:o,score:o?0:1,indices:r}}}],[{key:"type",get:function(){return"include"}},{key:"multiRegex",get:function(){return/^'"(.*)"$/}},{key:"singleRegex",get:function(){return/^'(.*)$/}}]),n}(L),H=[F,W,U,B,q,z,V,G],K=H.length,X=/ +(?=([^\"]*\"[^\"]*\")*[^\"]*$)/;function Y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.split("|").map((function(e){for(var n=e.trim().split(X).filter((function(e){return e&&!!e.trim()})),r=[],i=0,o=n.length;i<o;i+=1){for(var a=n[i],s=!1,u=-1;!s&&++u<K;){var c=H[u],l=c.isMultiMatch(a);l&&(r.push(new c(l,t)),s=!0)}if(!s)for(u=-1;++u<K;){var f=H[u],d=f.isSingleMatch(a);if(d){r.push(new f(d,t));break}}}return r}))}var $=new Set([G.type,W.type]),Q=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.isCaseSensitive,i=void 0===r?k.isCaseSensitive:r,o=n.includeMatches,a=void 0===o?k.includeMatches:o,s=n.minMatchCharLength,c=void 0===s?k.minMatchCharLength:s,l=n.ignoreLocation,f=void 0===l?k.ignoreLocation:l,d=n.findAllMatches,h=void 0===d?k.findAllMatches:d,p=n.location,g=void 0===p?k.location:p,v=n.threshold,m=void 0===v?k.threshold:v,y=n.distance,b=void 0===y?k.distance:y;Object(u.a)(this,e),this.query=null,this.options={isCaseSensitive:i,includeMatches:a,minMatchCharLength:c,findAllMatches:h,ignoreLocation:f,location:g,threshold:m,distance:b},this.pattern=i?t:t.toLowerCase(),this.query=Y(this.pattern,this.options)}return Object(c.a)(e,[{key:"searchIn",value:function(e){var t=this.query;if(!t)return{isMatch:!1,score:1};var n=this.options,r=n.includeMatches;e=n.isCaseSensitive?e:e.toLowerCase();for(var i=0,o=[],s=0,u=0,c=t.length;u<c;u+=1){var l=t[u];o.length=0,i=0;for(var f=0,d=l.length;f<d;f+=1){var h=l[f],p=h.search(e),g=p.isMatch,v=p.indices,m=p.score;if(!g){s=0,i=0,o.length=0;break}if(i+=1,s+=m,r){var y=h.constructor.type;$.has(y)?o=[].concat(Object(a.a)(o),Object(a.a)(v)):o.push(v)}}if(i){var b={isMatch:!0,score:s/i};return r&&(b.indices=o),b}}return{isMatch:!1,score:1}}}
2],[{key:"condition",value:function(e,t){return t.useExtendedSearch}}]),e}(),J=[];function Z(e,t){for(var n=0,r=J.length;n<r;n+=1){var i=J[n];if(i.condition(e,t))return new i(e,t)}return new R(e,t)}var ee="$and",te="$or",ne="$path",re="$val",ie=function(e){return!(!e[ee]&&!e[te])},oe=function(e){return!!e[ne]},ae=function(e){return!l(e)&&p(e)&&!ie(e)},se=function(e){return Object(r.a)({},ee,Object.keys(e).map((function(t){return Object(r.a)({},t,e[t])})))};function ue(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.auto,i=void 0===r||r,o=function e(n){var r=Object.keys(n),o=oe(n);if(!o&&r.length>1&&!ie(n))return e(se(n));if(ae(n)){var a=o?n[ne]:r[0],s=o?n[re]:n[a];if(!f(s))throw new Error(y(a));var u={keyId:S(a),pattern:s};return i&&(u.searcher=Z(s,t)),u}var c={children:[],operator:r[0]};return r.forEach((function(t){var r=n[t];l(r)&&r.forEach((function(t){c.children.push(e(t))}))})),c};return ie(e)||(e=se(e)),o(e)}function ce(e,t){var n=t.ignoreFieldNorm,r=void 0===n?k.ignoreFieldNorm:n;e.forEach((function(e){var t=1;e.matches.forEach((function(e){var n=e.key,i=e.norm,o=e.score,a=n?n.weight:null;t*=Math.pow(0===o&&a?Number.EPSILON:o,(a||1)*(r?1:i))})),e.score=t}))}function le(e,t){var n=e.matches;t.matches=[],g(n)&&n.forEach((function(e){if(g(e.indices)&&e.indices.length){var n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.src),e.idx>-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function fe(e,t){t.score=e.score}function de(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?k.includeMatches:r,o=n.includeScore,a=void 0===o?k.includeScore:o,s=[];return i&&s.push(le),a&&s.push(fe),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return s.length&&s.forEach((function(t){t(e,r)})),r}))}var he=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;Object(u.a)(this,e),this.options=Object(s.a)(Object(s.a)({},k),n),this.options.useExtendedSearch,this._keyStore=new w(this.options.keys),this.setCollection(t,r)}return Object(c.a)(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof j))throw new Error("Incorrect 'index' type");this._myIndex=t||I(this.options.keys,this._docs,{getFn:this.options.getFn})}},{key:"add",value:function(e){g(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n<r;n+=1){var i=this._docs[n];e(i,n)&&(this.removeAt(n),n-=1,r-=1,t.push(i))}return t}},{key:"removeAt",value:function(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}},{key:"getIndex",value:function(){return this._myIndex}},{key:"search",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,a=i.includeScore,s=i.shouldSort,u=i.sortFn,c=i.ignoreFieldNorm,l=f(e)?f(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return ce(l,{ignoreFieldNorm:c}),s&&l.sort(u),d(r)&&r>-1&&(l=l.slice(0,r)),de(l,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=Z(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(g(n)){var a=t.searchIn(n),s=a.isMatch,u=a.score,c=a.indices;s&&r.push({item:n,idx:i,matches:[{score:u,value:n,norm:o,indices:c}]})}})),r}},{key:"_searchLogical",value:function(e){var t=this,n=ue(e,this.options),r=function e(n,r,i){if(!n.children){var o=n.keyId,s=n.searcher,u=t._findMatches({key:t._keyStore.get(o),value:t._myIndex.getValueForItemAtKeyId(r,o),searcher:s});return u&&u.length?[{idx:i,item:r,matches:u}]:[]}switch(n.operator){case ee:for(var c=[],l=0,f=n.children.length;l<f;l+=1){var d=e(n.children[l],r,i);if(!d.length)return[];c.push.apply(c,Object(a.a)(d))}return c;case te:for(var h=[],p=0,g=n.children.length;p<g;p+=1){var v=e(n.children[p],r,i);if(v.length){h.push.apply(h,Object(a.a)(v));break}}return h}},i=this._myIndex.records,o={},s=[];
2return i.forEach((function(e){var t=e.$,i=e.i;if(g(t)){var u=r(n,t,i);u.length&&(o[i]||(o[i]={idx:i,item:t,matches:[]},s.push(o[i])),u.forEach((function(e){var t,n=e.matches;(t=o[i].matches).push.apply(t,Object(a.a)(n))})))}})),s}},{key:"_searchObjectList",value:function(e){var t=this,n=Z(e,this.options),r=this._myIndex,i=r.keys,o=r.records,s=[];return o.forEach((function(e){var r=e.$,o=e.i;if(g(r)){var u=[];i.forEach((function(e,i){u.push.apply(u,Object(a.a)(t._findMatches({key:e,value:r[i],searcher:n})))})),u.length&&s.push({idx:o,item:r,matches:u})}})),s}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!g(n))return[];var i=[];if(l(n))n.forEach((function(e){var n=e.v,o=e.i,a=e.n;if(g(n)){var s=r.searchIn(n),u=s.isMatch,c=s.score,l=s.indices;u&&i.push({score:c,key:t,value:n,idx:o,norm:a,indices:l})}}));else{var o=n.v,a=n.n,s=r.searchIn(o),u=s.isMatch,c=s.score,f=s.indices;u&&i.push({score:c,key:t,value:o,norm:a,indices:f})}return i}}]),e}();he.version="6.4.6",he.createIndex=I,he.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?k.getFn:n,i=e.keys,o=e.records,a=new j({getFn:r});return a.setKeys(i),a.setIndexRecords(o),a},he.config=k,he.parseQuery=ue,function(){J.push.apply(J,arguments)}(Q),t.a=he},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThreeDots=t.TailSpin=t.SpinningCircles=t.Rings=t.Puff=t.Oval=t.Hearts=t.Grid=t.Circles=t.Bars=t.BallTriangle=t.Audio=void 0;var i=r(n(173)),o=r(n(174)),a=r(n(175)),s=r(n(176)),u=r(n(177)),c=r(n(178)),l=r(n(179)),f=r(n(180)),d=r(n(181)),h=r(n(182)),p=r(n(183)),g=r(n(184));t.Audio=i.default,t.BallTriangle=o.default,t.Bars=a.default,t.Circles=s.default,t.Grid=u.default,t.Hearts=c.default,t.Oval=l.default,t.Puff=f.default,t.Rings=d.default,t.SpinningCircles=h.default,t.TailSpin=p.default,t.ThreeDots=g.default;var v={Audio:t.Audio,BallTriangle:t.BallTriangle,Bars:t.Bars,Circles:t.Circles,Grid:t.Grid,Hearts:t.Hearts,Oval:t.Oval,Puff:t.Puff,Rings:t.Rings,SpinningCircles:t.SpinningCircles,TailSpin:t.TailSpin,ThreeDots:t.ThreeDots};t.default=v},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o.default}));var r,i,o=n(12),a=(n(163),n(164),n(3)),s=n(23),u=(n(36),n(29)),c=n(24),l={Firestore:u.s,GeoPoint:u.b,Timestamp:u.f,Blob:u.k,Transaction:u.e,WriteBatch:u.o,DocumentReference:u.d,DocumentSnapshot:u.i,Query:u.j,QueryDocumentSnapshot:u.h,QuerySnapshot:u.m,CollectionReference:u.p,FieldPath:u.n,FieldValue:u.t,setLogLevel:u.g,CACHE_SIZE_UNLIMITED:u.r};(function(e,t){e.INTERNAL.registerComponent(new c.Component("firestore",(function(e){return function(e,t){return new u.s(e,new u.c(e,t),new u.a)}(e.getProvider("app").getImmediate(),e.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},l)))})(r=o.default),r.registerVersion("@firebase/firestore","2.3.6"),(i=u.s).prototype.loadBundle=u.q,i.prototype.namedQuery=u.l;var f=n(2),d={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"},h=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 Object(f.__extends)(t,e),t}(Error);var p=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 Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__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 Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__generator)(this,(function(e){switch(e.label){case 0:if(!this.messaging||!("Notification"in self)||"granted"!==Notification.permission)return[2,void 0];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.messaging.getToken()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,void 0];case 4:return[2]}}
2))}))},e.prototype.getContext=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(f.__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 g(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var v=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(e instanceof Date)return e.toISOString();if(Array.isArray(e))return e.map((function(e){return t.encode(e)}));if("function"===typeof e||"object"===typeof e)return g(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?g(e,(function(e){return t.decode(e)})):e},e}();var m=function(){function e(e,t,n,i,o,a){var s=this;void 0===o&&(o="us-central1"),this.app_=e,this.appCheckProvider=i,this.fetchImpl=a,this.serializer=new v,this.emulatorOrigin=null,this.INTERNAL={delete:function(){return Promise.resolve(s.deleteService())}},this.contextProvider=new p(t,n),this.cancelAllRequests=new Promise((function(e){s.deleteService=function(){return e()}}));try{var u=new URL(o);this.customDomain=u.origin,this.region="us-central1"}catch(r){this.customDomain=null,this.region=o}}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.useEmulator=function(e,t){this.emulatorOrigin="http://"+e+":"+t},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 Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return n["Content-Type"]="application/json",[4,this.getAppCheckToken()];case 1:null!==(r=a.sent())&&(n["X-Firebase-AppCheck"]=r),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.fetchImpl(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 3:return i=a.sent(),[3,5];case 4:return a.sent(),[2,{status:0,json:null}];case 5:o=null,a.label=6;case 6:return a.trys.push([6,8,,9]),[4,i.json()];case 7:return o=a.sent(),[3,9];case 8:return a.sent(),[3,9];case 9:return[2,{status:i.status,json:o}]}}))}))},e.prototype.getAppCheckToken=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__generator)(this,(function(t){switch(t.label){case 0:return(e=this.appCheckProvider.getImmediate({optional:!0}))?[4,e.getToken()]:[3,2];case 1:return[2,t.sent().token];case 2:return[2,null]}}))}))},e.prototype.call=function(e,t,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,u,c,l,p,g,v,m;return Object(f.__generator)(this,(function(f){switch(f.label){case 0:return i=this._url(e),t=this.serializer.encode(t),o={data:t},a={},[4,this.contextProvider.getContext()];case 1:return(s=f.sent()).authToken&&(a.Authorization="Bearer "+s.authToken),s.instanceIdToken&&(a["Firebase-Instance-ID-Token"]=s.instanceIdToken),u=n.timeout||7e4,c=function(e){var t,n=new Promise((function(n,r){t=setTimeout((function(){r(new h("deadline-exceeded","deadline-exceeded"))}),e)}));return{timer:t,promise:n}}(u),l=c.timer,p=c.promise,[4,Promise.race([y(l,this.postJSON(i,o,a)),p,y(l,this.cancelAllRequests)])];case 2:if(!(g=f.sent()))throw new h("cancelled","Firebase Functions instance was deleted.");
2if(v=function(e,t,n){var i=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),o=i,a=void 0;try{var s=t&&t.error;if(s){var u=s.status;if("string"===typeof u){if(!d[u])return new h("internal","internal");i=d[u],o=u}var c=s.message;"string"===typeof c&&(o=c),void 0!==(a=s.details)&&(a=n.decode(a))}}catch(r){}return"ok"===i?null:new h(i,o,a)}(g.status,g.json,this.serializer))throw v;if(!g.json)throw new h("internal","Response is not valid JSON object.");if("undefined"===typeof(m=g.json.data)&&(m=g.json.result),"undefined"===typeof m)throw new h("internal","Response is missing data field.");return[2,{data:this.serializer.decode(m)}]}}))}))},e}();function y(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__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:m};e.INTERNAL.registerComponent(new c.Component("functions",(function(e,n){var r=n.instanceIdentifier,i=e.getProvider("app").getImmediate(),o=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal"),s=e.getProvider("messaging");return new m(i,o,s,a,r,t)}),"PUBLIC").setServiceProps(n).setMultipleInstances(!0))}(o.default,fetch.bind(self)),o.default.registerVersion("@firebase/functions","0.6.11");var b,_=n(65),w="0.4.28",x=1e4,O="w:0.4.28",S="FIS_v2",E=36e5,k=((b={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',b["not-registered"]="Firebase Installation is not registered.",b["installation-not-found"]="Firebase Installation not found.",b["request-failed"]='{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',b["app-offline"]="Could not process request. Application offline.",b["delete-pending-registration"]="Can't delete installation while there is a pending registration request.",b),C=new a.ErrorFactory("installations","Installations",k);function T(e){return e instanceof a.FirebaseError&&e.code.includes("request-failed")}function j(e){return"https://firebaseinstallations.googleapis.com/v1/projects/"+e.projectId+"/installations"}function I(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}function A(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,t.json()];case 1:return n=i.sent(),r=n.error,[2,C.create("request-failed",{requestName:e,serverCode:r.code,serverMessage:r.message,serverStatus:r.status})]}}))}))}function P(e){var t=e.apiKey;return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":t})}function N(e,t){var n=t.refreshToken,r=P(e);return r.append("Authorization",function(e){return"FIS_v2 "+e}(n)),r}function M(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__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 R(e,t){var n=t.fid;return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return t=j(e),r=P(e),i={fid:n,authVersion:S,appId:e.appId,sdkVersion:O},o={method:"POST",headers:r,body:JSON.stringify(i)},[4,M((function(){return fetch(t,o)}))];case 1:return(a=u.sent()).ok?[4,a.json()]:[3,3];case 2:return s=u.sent(),[2,{fid:s.fid||n,registrationStatus:2,refreshToken:s.refreshToken,authToken:I(s.authToken)}];case 3:return[4,A("Create Installation",a)];case 4:throw u.sent()}}))}))}function L(e){return new Promise((function(t){setTimeout(t,e)}))}var D=/^[cdef][\w-]{21}$/;function F(){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(f.__spreadArray)([],Object(f.__read)(t)))).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return D.test(t)?t:""}catch(n){return""}}function V(e){return e.appName+"!"+e.appId}var U=new Map;function B(e,t){var n=V(e);z(n,t),function(e,t){var n=G();n&&n.postMessage({key:e,fid:t});W()}(n,t)}function z(e,t){var n,r,i=U.get(e);if(i)try{for(var o=Object(f.__values)(i),a=o.next();!a.done;a=o.next()){(0,a.value)(t)}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}var q=null;function G(){return!q&&"BroadcastChannel"in self&&((q=new BroadcastChannel("[Firebase] FID Change")).onmessage=function(e){z(e.data.key,e.data.fid)}),q}function W(){0===U.size&&q&&(q.close(),q=null)}var H,K,X="firebase-installations-store",Y=null;function $(){return Y||(Y=Object(_.openDb)("firebase-installations-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(X)}}))),Y}function Q(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:return n=V(e),[4,$()];case 1:return r=s.sent(),i=r.transaction(X,"readwrite"),[4,(o=i.objectStore(X)).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||B(e,t.fid),[2,t]}}))}))}function J(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return t=V(e),[4,$()];case 1:return n=i.sent(),[4,(r=n.transaction(X,"readwrite")).objectStore(X).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function Z(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return n=V(e),[4,$()];case 1:return r=u.sent(),i=r.transaction(X,"readwrite"),[4,(o=i.objectStore(X)).get(n)];case 2:return a=u.sent(),void 0!==(s=t(a))?[3,4]:[4,o.delete(n)];case 3:return u.sent(),[3,6];case 4:return[4,o.put(s,n)];case 5:u.sent(),u.label=6;case 6:return[4,i.complete];case 7:return u.sent(),!s||a&&a.fid===s.fid||B(e,s.fid),[2,s]}}))}))}function ee(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,Z(e,(function(n){var r=function(e){return re(e||{fid:F(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(C.create("app-offline"))};var n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,7]),[4,R(e,t)];case 1:return n=i.sent(),[2,Q(e,n)];case 2:return T(r=i.sent())&&409===r.customData.serverCode?[4,J(e)]:[3,4];case 3:return i.sent(),[3,6];case 4:return[4,Q(e,{fid:t.fid,registrationStatus:0})];case 5:i.sent(),i.label=6;case 6:throw r;case 7:return[2]}}
2))}))}(e,n)}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:te(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 te(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return[4,ne(e)];case 1:t=o.sent(),o.label=2;case 2:return 1!==t.registrationStatus?[3,5]:[4,L(100)];case 3:return o.sent(),[4,ne(e)];case 4:return t=o.sent(),[3,2];case 5:return 0!==t.registrationStatus?[3,7]:[4,ee(e)];case 6:return n=o.sent(),r=n.installationEntry,(i=n.registrationPromise)?[2,i]:[2,r];case 7:return[2,t]}}))}))}function ne(e){return Z(e,(function(e){if(!e)throw C.create("installation-not-found");return re(e)}))}function re(e){return 1===(t=e).registrationStatus&&t.registrationTime+x<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}function ie(e,t){var n=e.appConfig,r=e.platformLoggerProvider;return Object(f.__awaiter)(this,void 0,void 0,(function(){var e,i,o,a,s,u,c;return Object(f.__generator)(this,(function(l){switch(l.label){case 0:return e=function(e,t){var n=t.fid;return j(e)+"/"+n+"/authTokens:generate"}(n,t),i=N(n,t),(o=r.getImmediate({optional:!0}))&&i.append("x-firebase-client",o.getPlatformInfoString()),a={installation:{sdkVersion:O}},s={method:"POST",headers:i,body:JSON.stringify(a)},[4,M((function(){return fetch(e,s)}))];case 1:return(u=l.sent()).ok?[4,u.json()]:[3,3];case 2:return c=l.sent(),[2,I(c)];case 3:return[4,A("Generate Auth Token",u)];case 4:throw l.sent()}}))}))}function oe(e,t){return void 0===t&&(t=!1),Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return[4,Z(e.appConfig,(function(r){if(!se(r))throw C.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+E}(e)}(i))return r;if(1===i.requestStatus)return n=function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,ae(e.appConfig)];case 1:n=i.sent(),i.label=2;case 2:return 1!==n.authToken.requestStatus?[3,5]:[4,L(100)];case 3:return i.sent(),[4,ae(e.appConfig)];case 4:return n=i.sent(),[3,2];case 5:return 0===(r=n.authToken).requestStatus?[2,oe(e,t)]:[2,r]}}))}))}(e,t),r;if(!navigator.onLine)throw C.create("app-offline");var o=function(e){var t={requestStatus:1,requestTime:Date.now()};return Object(f.__assign)(Object(f.__assign)({},e),{authToken:t})}(r);return n=function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,8]),[4,ie(e,t)];case 1:return n=o.sent(),i=Object(f.__assign)(Object(f.__assign)({},t),{authToken:n}),[4,Q(e.appConfig,i)];case 2:return o.sent(),[2,n];case 3:return!T(r=o.sent())||401!==r.customData.serverCode&&404!==r.customData.serverCode?[3,5]:[4,J(e.appConfig)];case 4:return o.sent(),[3,7];case 5:return i=Object(f.__assign)(Object(f.__assign)({},t),{authToken:{requestStatus:0}}),[4,Q(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 ae(e){return Z(e,(function(e){if(!se(e))throw C.create("not-registered");var t,n=e.authToken;return 1===(t=n).requestStatus&&t.requestTime+x<Date.now()?Object(f.__assign)(Object(f.__assign)({},e),{authToken:{requestStatus:0}}):e}))}function se(e){return void 0!==e&&2===e.registrationStatus}function ue(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__generator)(this,(function(n){switch(n.label){case 0:return[4,ee(e)];case 1:return(t=n.sent().registrationPromise)?[4,t]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2]}}))}))}function ce(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return n=function(e,t){var n=t.fid;return j(e)+"/"+n}(e,t),r=N(e,t),i={method:"DELETE",headers:r},[4,M((function(){return fetch(n,i)}))];case 1:return(o=a.sent()).ok?[3,3]:[4,A("Delete Installation",o)];case 2:throw a.sent();case 3:return[2]}}
2))}))}function le(e,t){var n=e.appConfig;return function(e,t){G();var n=V(e),r=U.get(n);r||(r=new Set,U.set(n,r)),r.add(t)}(n,t),function(){!function(e,t){var n=V(e),r=U.get(n);r&&(r.delete(t),0===r.size&&U.delete(n),W())}(n,t)}}function fe(e){return C.create("missing-app-config-values",{valueName:e})}(H=o.default).INTERNAL.registerComponent(new c.Component("installations",(function(e){var t=e.getProvider("app").getImmediate(),n={appConfig:function(e){var t,n;if(!e||!e.options)throw fe("App Configuration");if(!e.name)throw fe("App Name");try{for(var r=Object(f.__values)(["projectId","apiKey","appId"]),i=r.next();!i.done;i=r.next()){var o=i.value;if(!e.options[o])throw fe(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(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,ee(e.appConfig)];case 1:return t=i.sent(),n=t.installationEntry,(r=t.registrationPromise)?r.catch(console.error):oe(e).catch(console.error),[2,n.fid]}}))}))}(n)},getToken:function(e){return function(e,t){return void 0===t&&(t=!1),Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__generator)(this,(function(n){switch(n.label){case 0:return[4,ue(e.appConfig)];case 1:return n.sent(),[4,oe(e,t)];case 2:return[2,n.sent().token]}}))}))}(n,e)},delete:function(){return function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return[4,Z(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 C.create("delete-pending-registration");case 2:if(2!==n.registrationStatus)return[3,6];if(navigator.onLine)return[3,3];throw C.create("app-offline");case 3:return[4,ce(t,n)];case 4:return r.sent(),[4,J(t)];case 5:r.sent(),r.label=6;case 6:return[2]}}
2))}))}(n)},onIdChange:function(e){return le(n,e)}}}),"PUBLIC")),H.registerVersion("@firebase/installations",w);var de,he=((K={})["missing-app-config-values"]='Missing App configuration value: "{$valueName}"',K["only-available-in-window"]="This method is available in a Window context.",K["only-available-in-sw"]="This method is available in a service worker context.",K["permission-default"]="The notification permission was not granted and dismissed instead.",K["permission-blocked"]="The notification permission was not granted and blocked instead.",K["unsupported-browser"]="This browser doesn't support the API's required to use the firebase SDK.",K["failed-service-worker-registration"]="We are unable to register the default service worker. {$browserErrorMessage}",K["token-subscribe-failed"]="A problem occurred while subscribing the user to FCM: {$errorInfo}",K["token-subscribe-no-token"]="FCM returned no token when subscribing the user to push.",K["token-unsubscribe-failed"]="A problem occurred while unsubscribing the user from FCM: {$errorInfo}",K["token-update-failed"]="A problem occurred while updating the user from FCM: {$errorInfo}",K["token-update-no-token"]="FCM returned no token when updating the user to push.",K["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.",K["invalid-sw-registration"]="The input to useServiceWorker() must be a ServiceWorkerRegistration.",K["invalid-bg-handler"]="The input to setBackgroundMessageHandler() must be a function.",K["invalid-vapid-key"]="The public VAPID key must be a string.",K["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.",K),pe=new a.ErrorFactory("messaging","Messaging",he),ge="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",ve="google.c.a.c_id";function me(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(String,Object(f.__spreadArray)([],Object(f.__read)(t)))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function ye(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"}(de||(de={}));var be="fcm_token_details_db",_e="fcm_token_object_Store";function we(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r=this;return Object(f.__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(be))return[2,null];i.label=2;case 2:return n=null,[4,Object(_.openDb)(be,5,(function(t){return Object(f.__awaiter)(r,void 0,void 0,(function(){var r,i,o,a;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:return t.oldVersion<2?[2]:t.objectStoreNames.contains(_e)?[4,(r=t.transaction.objectStore(_e)).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:me(o.vapidKey)}}}else(3===t.oldVersion||4===t.oldVersion)&&(n={token:(o=i).fcmToken,createTime:o.createTime,subscriptionOptions:{auth:me(o.auth),p256dh:me(o.p256dh),endpoint:o.endpoint,swScope:o.swScope,vapidKey:me(o.vapidKey)}});return[2]}}))}))}))];case 3:return i.sent().close(),[4,Object(_.deleteDb)(be)];case 4:return i.sent(),[4,Object(_.deleteDb)("fcm_vapid_details_db")];case 5:return i.sent(),[4,Object(_.deleteDb)("undefined")];case 6:return i.sent(),[2,xe(n)?n:null]}}))}))}function xe(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 Oe="firebase-messaging-store",Se=null;function Ee(){return Se||(Se=Object(_.openDb)("firebase-messaging-database",1,(function(e){switch(e.oldVersion){case 0:e.createObjectStore(Oe)}}))),Se}function ke(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return t=je(e),[4,Ee()];case 1:return[4,i.sent().transaction(Oe).objectStore(Oe).get(t)];case 2:return(n=i.sent())?[2,n]:[3,3];case 3:return[4,we(e.appConfig.senderId)];case 4:return(r=i.sent())?[4,Ce(e,r)]:[3,6];case 5:return i.sent(),[2,r];case 6:return[2]}}
2))}))}function Ce(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return n=je(e),[4,Ee()];case 1:return r=o.sent(),[4,(i=r.transaction(Oe,"readwrite")).objectStore(Oe).put(t,n)];case 2:return o.sent(),[4,i.complete];case 3:return o.sent(),[2,t]}}))}))}function Te(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return t=je(e),[4,Ee()];case 1:return n=i.sent(),[4,(r=n.transaction(Oe,"readwrite")).objectStore(Oe).delete(t)];case 2:return i.sent(),[4,r.complete];case 3:return i.sent(),[2]}}))}))}function je(e){return e.appConfig.appId}function Ie(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return[4,Me(e)];case 1:n=u.sent(),r=Re(t),i={method:"POST",headers:n,body:JSON.stringify(r)},u.label=2;case 2:return u.trys.push([2,5,,6]),[4,fetch(Ne(e.appConfig),i)];case 3:return[4,u.sent().json()];case 4:return o=u.sent(),[3,6];case 5:throw a=u.sent(),pe.create("token-subscribe-failed",{errorInfo:a});case 6:if(o.error)throw s=o.error.message,pe.create("token-subscribe-failed",{errorInfo:s});if(!o.token)throw pe.create("token-subscribe-no-token");return[2,o.token]}}))}))}function Ae(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return[4,Me(e)];case 1:n=u.sent(),r=Re(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)},u.label=2;case 2:return u.trys.push([2,5,,6]),[4,fetch(Ne(e.appConfig)+"/"+t.token,i)];case 3:return[4,u.sent().json()];case 4:return o=u.sent(),[3,6];case 5:throw a=u.sent(),pe.create("token-update-failed",{errorInfo:a});case 6:if(o.error)throw s=o.error.message,pe.create("token-update-failed",{errorInfo:s});if(!o.token)throw pe.create("token-update-no-token");return[2,o.token]}}))}))}function Pe(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:return[4,Me(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(Ne(e.appConfig)+"/"+t,r)];case 3:return[4,s.sent().json()];case 4:if((i=s.sent()).error)throw o=i.error.message,pe.create("token-unsubscribe-failed",{errorInfo:o});return[3,6];case 5:throw a=s.sent(),pe.create("token-unsubscribe-failed",{errorInfo:a});case 6:return[2]}}
2))}))}function Ne(e){return"https://fcmregistrations.googleapis.com/v1/projects/"+e.projectId+"/registrations"}function Me(e){var t=e.appConfig,n=e.installations;return Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__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 Re(e){var t=e.p256dh,n=e.auth,r=e.endpoint,i=e.vapidKey,o={web:{endpoint:r,auth:n,p256dh:t}};return i!==ge&&(o.web.applicationPubKey=i),o}function Le(e,t,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:if("granted"!==Notification.permission)throw pe.create("permission-blocked");return[4,Ue(t,n)];case 1:return r=s.sent(),[4,ke(e)];case 2:return i=s.sent(),o={vapidKey:n,swScope:t.scope,endpoint:r.endpoint,auth:me(r.getKey("auth")),p256dh:me(r.getKey("p256dh"))},i?[3,3]:[2,Ve(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,Pe(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,Ve(e,o)];case 8:return Date.now()>=i.createTime+6048e5?[2,Fe({token:i.token,createTime:Date.now(),subscriptionOptions:o},e,t)]:[2,i.token];case 9:return[2]}}
2))}))}function De(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,ke(e)];case 1:return(n=i.sent())?[4,Pe(e,n.token)]:[3,4];case 2:return i.sent(),[4,Te(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 Fe(e,t,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,5]),[4,Ae(t,e)];case 1:return r=a.sent(),i=Object(f.__assign)(Object(f.__assign)({},e),{token:r,createTime:Date.now()}),[4,Ce(t,i)];case 2:return a.sent(),[2,r];case 3:return o=a.sent(),[4,De(t,n)];case 4:throw a.sent(),o;case 5:return[2]}}))}))}function Ve(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,Ie(e,t)];case 1:return n=i.sent(),r={token:n,createTime:Date.now(),subscriptionOptions:t},[4,Ce(e,r)];case 2:return i.sent(),[2,r.token]}}))}))}function Ue(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__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:ye(t)})]}}))}))}function Be(e){return"object"===typeof e&&!!e&&ve in e}function ze(e){return new Promise((function(t){setTimeout(t,e)}))}var qe=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 pe.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(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return this.vapidKey?[3,2]:[4,ke(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:ge,r.label=2;case 2:return[2,Le(this.firebaseDependencies,self.registration,this.vapidKey)]}}))}))},e.prototype.deleteToken=function(){return De(this.firebaseDependencies,self.registration)},e.prototype.requestPermission=function(){throw pe.create("only-available-in-window")},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw pe.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw pe.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(){throw pe.create("only-available-in-window")},e.prototype.onMessage=function(){throw pe.create("only-available-in-window")},e.prototype.onTokenRefresh=function(){throw pe.create("only-available-in-window")},e.prototype.onPush=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i;return Object(f.__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,Ke()]:(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,He(n,t)]:(r=!1,t.notification?[4,Xe(Ge(t))]:[3,3]);case 2:o.sent(),r=!0,o.label=3;
2case 3:return!0===r&&!1===this.isOnBackgroundMessageUsed?[2]:(this.bgMessageHandler&&(i=function(e){var t={from:e.from,collapseKey:e.collapse_key};return function(e,t){if(t.notification){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){t.data&&(e.data=t.data)}(t,e),function(e,t){if(t.fcmOptions){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)),[4,ze(1e3)]);case 4:return o.sent(),[2]}}))}))},e.prototype.onSubChange=function(e){var t,n;return Object(f.__awaiter)(this,void 0,void 0,(function(){var r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return e.newSubscription?[3,2]:[4,De(this.firebaseDependencies,self.registration)];case 1:return i.sent(),[2];case 2:return[4,ke(this.firebaseDependencies)];case 3:return r=i.sent(),[4,De(this.firebaseDependencies,self.registration)];case 4:return i.sent(),[4,Le(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:ge)];case 5:return i.sent(),[2]}}))}))},e.prototype.onNotificationClick=function(e){var t,n;return Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.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(),(i=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 Be(e.data)?self.location.origin:null}(r))?(o=new URL(i,self.location.href),a=new URL(self.location.origin),o.host!==a.host?[2]:[4,We(o)]):[2]):[2];case 1:return(s=u.sent())?[3,4]:[4,self.clients.openWindow(i)];case 2:return s=u.sent(),[4,ze(3e3)];case 3:return u.sent(),[3,6];case 4:return[4,s.focus()];case 5:s=u.sent(),u.label=6;case 6:return s?(r.messageType=de.NOTIFICATION_CLICKED,r.isFirebaseMessaging=!0,[2,s.postMessage(r)]):[2]}}))}))},e}();function Ge(e){var t,n=Object(f.__assign)({},e.notification);return n.data=((t={}).FCM_MSG=e,t),n}function We(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return[4,Ke()];case 1:t=u.sent();try{for(n=Object(f.__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(c){a={error:c}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(a)throw a.error}}return[2,null]}}))}))}function He(e,t){var n,r;t.isFirebaseMessaging=!0,t.messageType=de.PUSH_RECEIVED;try{for(var i=Object(f.__values)(e),o=i.next();!o.done;o=i.next()){o.value.postMessage(t)}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function Ke(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function Xe(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 Ye=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(f.__awaiter)(this,void 0,void 0,(function(){var t,n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return(t=e.data).isFirebaseMessaging?(this.onMessageCallback&&t.messageType===de.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))),Be(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(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__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 pe.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,Le(this.firebaseDependencies,this.swRegistration,this.vapidKey)]}}))}))},e.prototype.updateVapidKey=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__generator)(this,(function(t){return e?this.vapidKey=e:this.vapidKey||(this.vapidKey=ge),[2]}))}))},e.prototype.updateSwReg=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__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 pe.create("invalid-sw-registration");return this.swRegistration=e,[2]}}))}))},e.prototype.registerDefaultSw=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(f.__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(),pe.create("failed-service-worker-registration",{browserErrorMessage:t.message});case 3:return[2]}}
2))}))},e.prototype.deleteToken=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__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,De(this.firebaseDependencies,this.swRegistration)]}}))}))},e.prototype.requestPermission=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__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?pe.create("permission-blocked"):pe.create("permission-default")}}))}))},e.prototype.usePublicVapidKey=function(e){if(null!==this.vapidKey)throw pe.create("use-vapid-key-after-get-token");if("string"!==typeof e||0===e.length)throw pe.create("invalid-vapid-key");this.vapidKey=e},e.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw pe.create("invalid-sw-registration");if(this.swRegistration)throw pe.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 pe.create("only-available-in-sw")},e.prototype.onBackgroundMessage=function(){throw pe.create("only-available-in-sw")},e.prototype.onTokenRefresh=function(){return function(){}},e.prototype.logEvent=function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return n=function(e){switch(e){case de.NOTIFICATION_CLICKED:return"notification_open";case de.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 $e(e){return pe.create("missing-app-config-values",{valueName:e})}var Qe={isSupported:Je};function Je(){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")}o.default.INTERNAL.registerComponent(new c.Component("messaging",(function(e){var t=e.getProvider("app").getImmediate(),n={app:t,appConfig:function(e){var t,n;if(!e||!e.options)throw $e("App Configuration Object");if(!e.name)throw $e("App Name");var r=e.options;try{for(var i=Object(f.__values)(["projectId","apiKey","appId","messagingSenderId"]),o=i.next();!o.done;o=i.next()){var a=o.value;if(!r[a])throw $e(a)}}catch(s){t={error:s}}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(!Je())throw pe.create("unsupported-browser");return self&&"ServiceWorkerGlobalScope"in self?new qe(n):new Ye(n)}),"PUBLIC").setServiceProps(Qe));var Ze="firebasestorage.googleapis.com",et=function(e){function t(n,r){var i=e.call(this,tt(n),"Firebase Storage: "+r+" ("+tt(n)+")")||this;return i.customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(i,t.prototype),i}return Object(f.__extends)(t,e),t.prototype._codeEquals=function(e){return tt(e)===this.code},Object.defineProperty(t.prototype,"serverResponse",{get:function(){return this.customData.serverResponse},set:function(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=this._baseMessage+"\n"+this.customData.serverResponse:this.message=this._baseMessage}
2,enumerable:!1,configurable:!0}),t}(a.FirebaseError);function tt(e){return"storage/"+e}function nt(){return new et("unknown","An unknown error occurred, please check the error payload for server response.")}function rt(){return new et("canceled","User canceled the upload/download.")}function it(){return new et("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function ot(e){return new et("invalid-argument",e)}function at(){return new et("app-deleted","The Firebase app was deleted.")}function st(e){return new et("invalid-root-operation","The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function ut(e,t){return new et("invalid-format","String does not match format '"+e+"': "+t)}function ct(e){throw new et("internal-error","Internal error: "+e)}var lt={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},ft=function(e,t){this.data=e,this.contentType=t||null};function dt(e,t){switch(e){case lt.RAW:return new ft(ht(t));case lt.BASE64:case lt.BASE64URL:return new ft(pt(e,t));case lt.DATA_URL:return new ft(function(e){var t=new gt(e);return t.base64?pt(lt.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(r){throw ut(lt.DATA_URL,"Malformed data URL.")}return ht(t)}(t.rest)}(t),new gt(t).contentType)}throw nt()}function ht(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 pt(e,t){switch(e){case lt.BASE64:var n=-1!==t.indexOf("-"),i=-1!==t.indexOf("_");if(n||i)throw ut(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case lt.BASE64URL:var o=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(o||a)throw ut(e,"Invalid character '"+(o?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var s;try{s=atob(t)}catch(r){throw ut(e,"Invalid character found")}for(var u=new Uint8Array(s.length),c=0;c<s.length;c++)u[c]=s.charCodeAt(c);return u}var gt=function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw ut(lt.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 vt,mt={STATE_CHANGED:"state_changed"},yt={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function bt(e){switch(e){case"running":case"pausing":case"canceling":return yt.RUNNING;case"paused":return yt.PAUSED;case"success":return yt.SUCCESS;case"canceled":return yt.CANCELED;case"error":default:return yt.ERROR}}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(vt||(vt={}));var _t=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=vt.NO_ERROR,this.sendPromise_=new Promise((function(t){e.xhr_.addEventListener("abort",(function(){e.errorCode_=vt.ABORT,t(e)})),e.xhr_.addEventListener("error",(function(){e.errorCode_=vt.NETWORK_ERROR,t(e)})),e.xhr_.addEventListener("load",(function(){t(e)}))}))}return e.prototype.send=function(e,t,n,r){if(this.sent_)throw ct("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw ct("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw ct("cannot .getStatus() before sending");try{return this.xhr_.status}catch(r){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw ct("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){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)},e}(),wt=function(){function e(){}return e.prototype.createXhrIo=function(){return new _t},e}(),xt=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_}
2,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,n){var i;try{i=e.makeFromUrl(t,n)}catch(r){return new e(t,"")}if(""===i.path)return i;throw new et("invalid-default-bucket","Invalid default bucket '"+t+"'.")},e.makeFromUrl=function(t,n){var r=null,i="([A-Za-z0-9.\\-_]+)";var o=new RegExp("^gs://"+i+"(/(.*))?$","i");function a(e){e.path_=decodeURIComponent(e.path)}for(var s=n.replace(/[.]/g,"\\."),u=[{regex:o,indices:{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?://"+s+"/v[A-Za-z0-9_]+/b/"+i+"/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:a},{regex:new RegExp("^https?://"+(n===Ze?"(?:storage.googleapis.com|storage.cloud.google.com)":n)+"/"+i+"/([^?#]*)","i"),indices:{bucket:1,path:2},postModify:a}],c=0;c<u.length;c++){var l=u[c],f=l.regex.exec(t);if(f){var d=f[l.indices.bucket],h=f[l.indices.path];h||(h=""),r=new e(d,h),l.postModify(r);break}}if(null==r)throw function(e){return new et("invalid-url","Invalid URL '"+e+"'.")}(t);return r},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}();function St(e){return"string"===typeof e||e instanceof String}function Et(e){return kt()&&e instanceof Blob}function kt(){return"undefined"!==typeof Blob}function Ct(e,t,n,r){if(r<t)throw ot("Invalid value for '"+e+"'. Expected "+t+" or greater.");if(r>n)throw ot("Invalid value for '"+e+"'. Expected "+n+" or less.")}function Tt(e,t){var n=t.match(/^(\w+):\/\/.+/),r=t;return null==(null===n||void 0===n?void 0:n[1])&&(r="https://"+t),r+"/v0"+e}function jt(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)}var It=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 i,o=e.resolve_,a=e.reject_,s=n.xhr;if(n.wasSuccessCode)try{var u=e.callback_(s,s.getResponseText());void 0!==u?o(u):o()}catch(r){a(r)}else null!==s?((i=nt()).serverResponse=s.getResponseText(),e.errorCallback_?a(e.errorCallback_(s,i)):a(i)):n.canceled?a(i=e.appDelete_?at():rt()):a(i=new et("retry-limit-exceeded","Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new At(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,o=!1,a=0;function s(){return 2===a}var u=!1;function c(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];u||(u=!0,t.apply(null,e))}function l(t){i=setTimeout((function(){i=null,e(d,s())}),t)}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!u)if(e)c.call.apply(c,Object(f.__spreadArray)([null,e],t));else{var i;s()||o?c.call.apply(c,Object(f.__spreadArray)([null,e],t)):(r<64&&(r*=2),1===a?(a=2,i=0):i=1e3*(r+Math.random()),l(i))}}var h=!1;function p(e){h||(h=!0,u||(null!==i?(e||(a=2),clearTimeout(i),l(0)):e||(a=1)))}return l(0),setTimeout((function(){o=!0,p(!0)}),n),p}((function(t,n){if(n)t(!1,new At(!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()===vt.NO_ERROR,o=n.getStatus();if(r&&!e.isRetryStatusCode_(o)){var a=-1!==e.successCodes_.indexOf(o);t(!0,new At(a,n))}else{var s=n.getErrorCode()===vt.ABORT;t(!1,new At(!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}(),At=function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n};function Pt(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?Web
2KitBlobBuilder:void 0}function Nt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pt();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(kt())return new Blob(e);throw new et("unsupported-environment","This browser doesn't seem to support creating Blobs")}var Mt=function(){function e(e,t){var n=0,r="";Et(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(Et(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(kt()){var r=t.map((function(t){return t instanceof e?t.data_:t}));return new e(Nt.apply(null,r))}var i=t.map((function(e){return St(e)?dt(lt.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}();function Rt(e){var t,n;try{t=JSON.parse(e)}catch(r){return null}return"object"!==typeof(n=t)||Array.isArray(n)?null:t}function Lt(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function Dt(e,t){return t}var Ft=function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||Dt},Vt=null;function Ut(){if(Vt)return Vt;var e=[];e.push(new Ft("bucket")),e.push(new Ft("generation")),e.push(new Ft("metageneration")),e.push(new Ft("name","fullPath",!0));var t=new Ft("name");t.xform=function(e,t){return function(e){return!St(e)||e.length<2?e:Lt(e)}(t)},e.push(t);var n=new Ft("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new Ft("timeCreated")),e.push(new Ft("updated")),e.push(new Ft("md5Hash",null,!0)),e.push(new Ft("cacheControl",null,!0)),e.push(new Ft("contentDisposition",null,!0)),e.push(new Ft("contentEncoding",null,!0)),e.push(new Ft("contentLanguage",null,!0)),e.push(new Ft("contentType",null,!0)),e.push(new Ft("metadata","customMetadata",!0)),Vt=e}function Bt(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 xt(n,r);return t._makeStorageReference(i)}})}(r,e),r}function zt(e,t,n){var r=Rt(t);return null===r?null:Bt(e,r,n)}function qt(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 Gt(e,t,n){var r=Rt(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 xt(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 xt(t,l.name)),r.items.push(s)}return r}(e,t,r)}var Wt=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 Ht(e){if(!e)throw nt()}function Kt(e,t){return function(n,r){var i=zt(e,r,t);return Ht(null!==i),i}}function Xt(e,t){return function(n,r){var i=zt(e,r,t);return Ht(null!==i),function(e,t,n){var r=Rt(t);if(null===r)return null;if(!St(r.downloadTokens))return null;var i=r.downloadTokens;if(0===i.length)return null;var o=encodeURIComponent;return i.split(",").map((function(t){var r=e.bucket,i=e.fullPath;return Tt("/b/"+o(r)+"/o/"+o(i),n)+jt({alt:"media",token:t})}))[0]}(i,r,e.host)}}function Yt(e){return function(t,n){var r,i,o;return 401===t.getStatus()?r=t.getResponseText().includes("Firebase App Check token is invali
2d")?new et("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new et("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new et("quota-exceeded","Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new et("unauthorized","User does not have permission to access '"+i+"'.")):r=n,r.serverResponse=n.serverResponse,r}}function $t(e){var t=Yt(e);return function(n,r){var i,o=t(n,r);return 404===n.getStatus()&&(i=e.path,o=new et("object-not-found","Object '"+i+"' does not exist.")),o.serverResponse=r.serverResponse,o}}function Qt(e,t,n){var r=Tt(t.fullServerUrl(),e.host),i=e.maxOperationRetryTime,o=new Wt(r,"GET",Kt(e,n),i);return o.errorHandler=$t(t),o}function Jt(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=Tt(t.bucketOnlyServerUrl(),e.host),s=e.maxOperationRetryTime,u=new Wt(a,"GET",function(e,t){return function(n,r){var i=Gt(e,t,r);return Ht(null!==i),i}}(e,t.bucket),s);return u.urlParams=o,u.errorHandler=Yt(t),u}function Zt(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 en=function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null};function tn(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){Ht(!1)}return Ht(!!n&&-1!==(t||["active"]).indexOf(n)),n}var nn=262144;function rn(e,t,n,r,i,o,a,s){var u=new en(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new et("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var f=u.current,d=f+l,h={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},p=r.slice(f,d);if(null===p)throw it();var g=t.maxUploadRetryTime,v=new Wt(n,"POST",(function(e,n){var i,a=tn(e,["active","final"]),s=u.current+l,c=r.size();return i="final"===a?Kt(t,o)(e,n):null,new en(s,c,"final"===a,i)}),g);return v.headers=h,v.body=p.uploadData(),v.progressCallback=s||null,v.errorHandler=Yt(e),v}var on=function(e,t,n){if("function"===typeof e||null!=t||null!=n)this.next=e,this.error=t,this.complete=n;else{var r=e;this.next=r.next,this.error=r.error,this.complete=r.complete}};function an(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 sn=function(){function e(e,t,n){var r=this;void 0===n&&(n=null),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=Ut(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(e){r._request=void 0,r._chunkMultiplier=1,e._codeEquals("canceled")?(r._needToFetchStatus=!0,r.completeTransitions_()):(r._error=e,r._transition("error"))},this._metadataErrorHandler=function(e){r._request=void 0,e._codeEquals("canceled")?r.completeTransitions_():(r._error=e,r._transition("error"))},this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t,r._start()})),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(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this._continueUpload():this._oneShotUpload())},e.prototype._resolveToken=function(e){var t=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then((function(n){var r=n[0],i=n[1];switch(t._state){case"running":e(r,i);break;case"canceling":t._transition("canceled");break;case"pausing":t._transition("paused")}}))},e.prototype._createResumable=function(){var e=this;this._resolveToken((function(t,n){var i=function(e,t,n,i,o){var a=t.bucketOnlyServerUrl(),s=Zt(t,i,o),u={name:s.fullPath},c=Tt(a,e.host),l={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":i.size(),"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},f=qt(s,n),d=e.maxUploadRetryTime,h=new Wt(c,"POST",(function(e){var t;tn(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(r){Ht(!1)}return Ht(St(t)),t}),d);
2return h.urlParams=u,h.headers=l,h.body=f,h.errorHandler=Yt(t),h}(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),o=e._ref.storage._makeRequest(i,t,n);e._request=o,o.getPromise().then((function(t){e._request=void 0,e._uploadUrl=t,e._needToFetchStatus=!1,e.completeTransitions_()}),e._errorHandler)}))},e.prototype._fetchStatus=function(){var e=this,t=this._uploadUrl;this._resolveToken((function(n,i){var o=function(e,t,n,i){var o=e.maxUploadRetryTime,a=new Wt(n,"POST",(function(e){var t=tn(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(r){Ht(!1)}n||Ht(!1);var o=Number(n);return Ht(!isNaN(o)),new en(o,i.size(),"final"===t)}),o);return a.headers={"X-Goog-Upload-Command":"query"},a.errorHandler=Yt(t),a}(e._ref.storage,e._ref._location,t,e._blob),a=e._ref.storage._makeRequest(o,n,i);e._request=a,a.getPromise().then((function(t){t=t,e._request=void 0,e._updateProgress(t.current),e._needToFetchStatus=!1,t.finalized&&(e._needToFetchMetadata=!0),e.completeTransitions_()}),e._errorHandler)}))},e.prototype._continueUpload=function(){var e=this,t=nn*this._chunkMultiplier,n=new en(this._transferred,this._blob.size()),i=this._uploadUrl;this._resolveToken((function(o,a){var s;try{s=rn(e._ref._location,e._ref.storage,i,e._blob,t,e._mappings,n,e._makeProgressCallback())}catch(r){return e._error=r,void e._transition("error")}var u=e._ref.storage._makeRequest(s,o,a);e._request=u,u.getPromise().then((function(t){e._increaseMultiplier(),e._request=void 0,e._updateProgress(t.current),t.finalized?(e._metadata=t.metadata,e._transition("success")):e.completeTransitions_()}),e._errorHandler)}))},e.prototype._increaseMultiplier=function(){nn*this._chunkMultiplier<33554432&&(this._chunkMultiplier*=2)},e.prototype._fetchMetadata=function(){var e=this;this._resolveToken((function(t,n){var r=Qt(e._ref.storage,e._ref._location,e._mappings),i=e._ref.storage._makeRequest(r,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._transition("success")}),e._metadataErrorHandler)}))},e.prototype._oneShotUpload=function(){var e=this;this._resolveToken((function(t,n){var r=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=Zt(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+qt(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=Mt.getBlob(c,r,l);if(null===f)throw it();var d={name:u.fullPath},h=Tt(o,e.host),p=e.maxUploadRetryTime,g=new Wt(h,"POST",Kt(e,n),p);return g.urlParams=d,g.headers=a,g.body=f.uploadData(),g.errorHandler=Yt(t),g}(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),i=e._ref.storage._makeRequest(r,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._updateProgress(e._blob.size()),e._transition("success")}),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"canceling":case"pausing":this._state=e,void 0!==this._request&&this._request.cancel();break;case"running":var t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":this._state=e,this._notifyObservers();break;case"canceled":this._error=rt(),this._state=e,this._notifyObservers();break;case"error":case"success":this._state=e,this._notifyObservers()}},e.prototype.completeTransitions_=function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=bt(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}},enumerable:!1,configurable:!0}),e.prototype.on=function(e,t,n,r){var i=this,o=new on(t,n,r);return this._addObserver(o),function(){i._removeObserver(o)}},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;
2this._finishPromise(),this._observers.slice().forEach((function(t){e._notifyObserver(t)}))},e.prototype._finishPromise=function(){if(void 0!==this._resolve){var e=!0;switch(bt(this._state)){case yt.SUCCESS:an(this._resolve.bind(null,this.snapshot))();break;case yt.CANCELED:case yt.ERROR:an(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}},e.prototype._notifyObserver=function(e){switch(bt(this._state)){case yt.RUNNING:case yt.PAUSED:e.next&&an(e.next.bind(e,this.snapshot))();break;case yt.SUCCESS:e.complete&&an(e.complete.bind(e))();break;case yt.CANCELED:case yt.ERROR:e.error&&an(e.error.bind(e,this._error))();break;default:e.error&&an(e.error.bind(e,this._error))()}},e.prototype.resume=function(){var e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e},e.prototype.pause=function(){var e="running"===this._state;return e&&this._transition("pausing"),e},e.prototype.cancel=function(){var e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e},e}(),un=function(){function e(e,t){this._service=e,this._location=t instanceof xt?t:xt.makeFromUrl(t,e.host)}return e.prototype.toString=function(){return"gs://"+this._location.bucket+"/"+this._location.path},e.prototype._newRef=function(t,n){return new e(t,n)},Object.defineProperty(e.prototype,"root",{get:function(){var e=new xt(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 Lt(this._location.path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this._service},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===t)return null;var n=new xt(this._location.bucket,t);return new e(this._service,n)},enumerable:!1,configurable:!0}),e.prototype._throwIfRoot=function(e){if(""===this._location.path)throw st(e)},e}();function cn(e){var t={prefixes:[],items:[]};return ln(e,t).then((function(){return t}))}
2function ln(e,t,n){return Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return[4,fn(e,{pageToken:n})];case 1:return r=a.sent(),(i=t.prefixes).push.apply(i,r.prefixes),(o=t.items).push.apply(o,r.items),null==r.nextPageToken?[3,3]:[4,ln(e,t,r.nextPageToken)];case 2:a.sent(),a.label=3;case 3:return[2]}}))}))}function fn(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return null!=t&&"number"===typeof t.maxResults&&Ct("options.maxResults",1,1e3,t.maxResults),n=t||{},r=Jt(e.storage,e._location,"/",n.pageToken,n.maxResults),[4,e.storage.makeRequestWithTokens(r)];case 1:return[2,i.sent().getPromise()]}}))}))}function dn(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return e._throwIfRoot("updateMetadata"),n=function(e,t,n,r){var i=Tt(t.fullServerUrl(),e.host),o=qt(n,r),a=e.maxOperationRetryTime,s=new Wt(i,"PATCH",Kt(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=$t(t),s}(e.storage,e._location,t,Ut()),[4,e.storage.makeRequestWithTokens(n)];case 1:return[2,r.sent().getPromise()]}}))}))}function hn(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__generator)(this,(function(n){switch(n.label){case 0:return e._throwIfRoot("getDownloadURL"),t=function(e,t,n){var r=Tt(t.fullServerUrl(),e.host),i=e.maxOperationRetryTime,o=new Wt(r,"GET",Xt(e,n),i);return o.errorHandler=$t(t),o}(e.storage,e._location,Ut()),[4,e.storage.makeRequestWithTokens(t)];case 1:return[2,n.sent().getPromise().then((function(e){if(null===e)throw new et("no-download-url","The given file does not have any download URLs.");return e}))]}}))}))}function pn(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__generator)(this,(function(n){switch(n.label){case 0:return e._throwIfRoot("deleteObject"),t=function(e,t){var n=Tt(t.fullServerUrl(),e.host),r=e.maxOperationRetryTime,i=new Wt(n,"DELETE",(function(e,t){}),r);return i.successCodes=[200,204],i.errorHandler=$t(t),i}(e.storage,e._location),[4,e.storage.makeRequestWithTokens(t)];case 1:return[2,n.sent().getPromise()]}}))}))}function gn(e,t){var n=function(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new xt(e._location.bucket,n);return new un(e.storage,r)}function vn(e){return/^[A-Za-z]+:\/\//.test(e)}function mn(e,t){if(e instanceof _n){var n=e;if(null==n._bucket)throw new et("no-default-bucket","No default bucket found. Did you set the 'storageBucket' property when initializing the app?");var r=new un(n,n._bucket);return null!=t?mn(r,t):r}if(void 0!==t){if(t.includes(".."))throw ot('`path` param cannot contain ".."');return gn(e,t)}return e}function yn(e,t){if(t&&vn(t)){if(e instanceof _n)return new un(e,t);throw ot("To use ref(service, url), the first argument must be a Storage instance.")}return mn(e,t)}function bn(e,t){var n=null===t||void 0===t?void 0:t.storageBucket;return null==n?null:xt.makeFromBucketSpec(n,e)}var _n=function(){function e(e,t,n,r,i,o){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._pool=r,this._url=i,this._firebaseVersion=o,this._bucket=null,this._host=Ze,this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?xt.makeFromBucketSpec(i,this._host):bn(this._host,this.app.options)}return Object.defineProperty(e.prototype,"host",{get:function(){return this._host},set:function(e){this._host=e,null!=this._url?this._bucket=xt.makeFromBucketSpec(this._url,e):this._bucket=bn(e,this.app.options)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this._maxUploadRetryTime},set:function(e){Ct("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this._maxOperationRetryTime},set:function(e){Ct("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}
2,enumerable:!1,configurable:!0}),e.prototype._getAuthToken=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t;return Object(f.__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._getAppCheckToken=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__generator)(this,(function(t){switch(t.label){case 0:return(e=this._appCheckProvider.getImmediate({optional:!0}))?[4,e.getToken()]:[3,2];case 1:return[2,t.sent().token];case 2:return[2,null]}}))}))},e.prototype._delete=function(){return this._deleted=!0,this._requests.forEach((function(e){return e.cancel()})),this._requests.clear(),Promise.resolve()},e.prototype._makeStorageReference=function(e){return new un(this,e)},e.prototype._makeRequest=function(e,t,n){var r=this;if(this._deleted)return new Ot(at());var i=function(e,t,n,r,i,o){var a=jt(e.urlParams),s=e.url+a,u=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(u,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(u,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(u,o),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(u,r),new It(s,e.method,u,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i)}(e,this._appId,t,n,this._pool,this._firebaseVersion);return this._requests.add(i),i.getPromise().then((function(){return r._requests.delete(i)}),(function(){return r._requests.delete(i)})),i},e.prototype.makeRequestWithTokens=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,Promise.all([this._getAuthToken(),this._getAppCheckToken()])];case 1:return t=i.sent(),n=t[0],r=t[1],[2,this._makeRequest(e,n,r)]}}))}))},e}();function wn(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new sn(e,new Mt(t),n)}(e=Object(a.getModularInstance)(e),t,n)}function xn(e){return function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__generator)(this,(function(n){switch(n.label){case 0:return e._throwIfRoot("getMetadata"),t=Qt(e.storage,e._location,Ut()),[4,e.storage.makeRequestWithTokens(t)];case 1:return[2,n.sent().getPromise()]}}))}))}(e=Object(a.getModularInstance)(e))}function On(e,t){return yn(e=Object(a.getModularInstance)(e),t)}var Sn=function(){function e(e,t,n){this._delegate=e,this.task=t,this.ref=n}return Object.defineProperty(e.prototype,"bytesTransferred",{get:function(){return this._delegate.bytesTransferred},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._delegate.state},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"totalBytes",{get:function(){return this._delegate.totalBytes},enumerable:!1,configurable:!0}),e}(),En=function(){function e(e,t){this._delegate=e,this._ref=t,this.cancel=this._delegate.cancel.bind(this._delegate),this.catch=this._delegate.catch.bind(this._delegate),this.pause=this._delegate.pause.bind(this._delegate),this.resume=this._delegate.resume.bind(this._delegate)}return Object.defineProperty(e.prototype,"snapshot",{get:function(){return new Sn(this._delegate.snapshot,this,this._ref)},enumerable:!1,configurable:!0}),e.prototype.then=function(e,t){var n=this;return this._delegate.then((function(t){if(e)return e(new Sn(t,n,n._ref))}),t)},e.prototype.on=function(e,t,n,r){var i=this,o=void 0;return t&&(o="function"===typeof t?function(e){return t(new Sn(e,i,i._ref))}:{next:t.next?function(e){return t.next(new Sn(e,i,i._ref))}:void 0,complete:t.complete||void 0,error:t.error||void 0}),this._delegate.on(e,o,n||void 0,r||void 0)},e}(),kn=function(){function e(e,t){this._delegate=e,this._service=t}return Object.defineProperty(e.prototype,"prefixes",{get:function(){var e=this;return this._delegate.prefixes.map((function(t){return new Cn(t,e._service)}))}
2,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){var e=this;return this._delegate.items.map((function(t){return new Cn(t,e._service)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextPageToken",{get:function(){return this._delegate.nextPageToken||null},enumerable:!1,configurable:!0}),e}(),Cn=function(){function e(e,t){this._delegate=e,this.storage=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this._delegate.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this._delegate.bucket},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this._delegate.fullPath},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return this._delegate.toString()},e.prototype.child=function(t){return new e(function(e,t){return gn(e,t)}(this._delegate,t),this.storage)},Object.defineProperty(e.prototype,"root",{get:function(){return new e(this._delegate.root,this.storage)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return null==t?null:new e(t,this.storage)},enumerable:!1,configurable:!0}),e.prototype.put=function(e,t){return this._throwIfRoot("put"),new En(wn(this._delegate,e,t),this)},e.prototype.putString=function(e,t,n){void 0===t&&(t=lt.RAW),this._throwIfRoot("putString");var r=dt(t,e),i=Object(f.__assign)({},n);return null==i.contentType&&null!=r.contentType&&(i.contentType=r.contentType),new En(new sn(this._delegate,new Mt(r.data,!0),i),this)},e.prototype.listAll=function(){var e,t=this;return(e=this._delegate,cn(e=Object(a.getModularInstance)(e))).then((function(e){return new kn(e,t.storage)}))},e.prototype.list=function(e){var t=this;return function(e,t){return fn(e=Object(a.getModularInstance)(e),t)}(this._delegate,e||void 0).then((function(e){return new kn(e,t.storage)}))},e.prototype.getMetadata=function(){return xn(this._delegate)},e.prototype.updateMetadata=function(e){return function(e,t){return dn(e=Object(a.getModularInstance)(e),t)}(this._delegate,e)},e.prototype.getDownloadURL=function(){return e=this._delegate,hn(e=Object(a.getModularInstance)(e));var e},e.prototype.delete=function(){return this._throwIfRoot("delete"),e=this._delegate,pn(e=Object(a.getModularInstance)(e));var e},e.prototype._throwIfRoot=function(e){if(""===this._delegate._location.path)throw st(e)},e}(),Tn=function(){function e(e,t){var n=this;this.app=e,this._delegate=t,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this._delegate.maxOperationRetryTime},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this._delegate.maxUploadRetryTime},enumerable:!1,configurable:!0}),e.prototype.ref=function(e){if(vn(e))throw ot("ref() expected a child path but got a URL, use refFromURL instead.");return new Cn(On(this._delegate,e),this)},e.prototype.refFromURL=function(e){if(!vn(e))throw ot("refFromURL() expected a full URL but got a child path, use ref() instead.");try{xt.makeFromUrl(e,this._delegate.host)}catch(r){throw ot("refFromUrl() expected a valid full URL but got an invalid one.")}return new Cn(On(this._delegate,e),this)},e.prototype.setMaxUploadRetryTime=function(e){this._delegate.maxUploadRetryTime=e},e.prototype.setMaxOperationRetryTime=function(e){this._delegate.maxOperationRetryTime=e},e.prototype.useEmulator=function(e,t){!function(e,t,n){e.host="http://"+t+":"+n}(this._delegate,e,t)},e}();function jn(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new Tn(r,new _n(r,i,a,new wt,n,o.default.SDK_VERSION))}!function(e){var t={TaskState:yt,TaskEvent:mt,StringFormat:lt,Storage:_n,Reference:Cn};e.INTERNAL.registerComponent(new c.Component("storage",jn,"PUBLIC").setServiceProps(t).setMultipleInstances(!0)),e.registerVersion("@firebase/storage","0.5.4")}(o.default);var In,An,Pn,Nn="0.4.14",Mn=Nn,Rn="FB-PERF-TRACE-MEASURE",Ln="_wt_",Dn="_fcp",Fn="_fid",Vn="@firebase/performance/config",Un="@firebase/performance/configexpire",Bn="Performance",zn=((In={})["trace started"]="Trace {$traceName} was started before.",In["trace stopped"]="Trace {$traceName} is not running.",In["nonpositive trace startTime"]="Trace {$traceName} startTime should be positive.",In["nonpositive trace duration"]="Trace {$traceName} duration should be positive.",In["no window"]="Window is not available.",In["no app id"]="App id is not available.",In["no project id"]="Project id is not available.",In["no api key"]="Api key is not available.",In["invalid cc log"]="Attempted to queue invalid cc event",In["FB not default"]="Performance can only start when Firebase app instance is the default one.",In["RC response not ok"]="RC response is not ok",In["invalid attribute name"]="Attribute name {$attributeName}
2 is invalid.",In["invalid attribute value"]="Attribute value {$attributeValue} is invalid.",In["invalid custom metric name"]="Custom metric name {$customMetricName} is invalid",In["invalid String merger input"]="Input for String merger is invalid, contact support team to resolve.",In),qn=new a.ErrorFactory("performance",Bn,zn),Gn=new s.Logger(Bn);Gn.logLevel=s.LogLevel.INFO;var Wn,Hn=function(){function e(e){if(this.window=e,!e)throw qn.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?!!Object(a.isIndexedDBAvailable)()||(Gn.info("IndexedDB is not supported by current browswer"),!1):(Gn.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===An&&(An=new e(Pn)),An},e}();function Kn(e,t){var n=e.length-t.length;if(n<0||n>1)throw qn.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 Xn,Yn,$n=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=Kn("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=Kn("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 qn.create("no app id");return e},e.prototype.getProjectId=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.projectId;if(!e)throw qn.create("no project id");return e},e.prototype.getApiKey=function(){var e=this.firebaseAppInstance&&this.firebaseAppInstance.options&&this.firebaseAppInstance.options.apiKey;if(!e)throw qn.create("no api key");return e},e.prototype.getFlTransportFullUrl=function(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)},e.getInstance=function(){return void 0===Wn&&(Wn=new e),Wn},e}();function Qn(){return Xn}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.VISIBLE=1]="VISIBLE",e[e.HIDDEN=2]="HIDDEN"}(Yn||(Yn={}));var Jn=["firebase_","google_","ga_"],Zn=new RegExp("^[a-zA-Z]\\w*$");function er(){var e=Hn.getInstance().navigator;return"serviceWorker"in e?e.serviceWorker.controller?2:3:1}function tr(){switch(Hn.getInstance().document.visibilityState){case"visible":return Yn.VISIBLE;case"hidden":return Yn.HIDDEN;default:return Yn.UNKNOWN}}function nr(){var e=Hn.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 rr="0.0.1",ir=!0,or="FIREBASE_INSTALLATIONS_AUTH";function ar(e){var t=function(){var e=Hn.getInstance().localStorage;if(!e)return;var t=e.getItem(Un);if(!t||(n=t,!(Number(n)>Date.now())))return;var n;var r=e.getItem(Vn);if(!r)return;try{return JSON.parse(r)}catch(i){return}}();return t?(ur(t),Promise.resolve()):function(e){return function(){var e=$n.getInstance().installationsService.getToken();return e.then((function(e){})),e}().then((function(t){var n="https://firebaseremoteconfig.googleapis.com/v1/projects/"+$n.getInstance().getProjectId()+"/namespaces/fireperf:fetch?ke
2y="+$n.getInstance().getApiKey(),r=new Request(n,{method:"POST",headers:{Authorization:or+" "+t},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:$n.getInstance().getAppId(),app_version:Mn,sdk_version:rr})});return fetch(r).then((function(e){if(e.ok)return e.json();throw qn.create("RC response not ok")}))})).catch((function(){Gn.info(sr)}))}(e).then(ur).then((function(e){return function(e){var t=Hn.getInstance().localStorage;if(!e||!t)return;t.setItem(Vn,JSON.stringify(e)),t.setItem(Un,String(Date.now()+60*$n.getInstance().configTimeToLive*60*1e3))}(e)}),(function(){}))}var sr="Could not fetch config, will use default configs";function ur(e){if(!e)return e;var t=$n.getInstance(),n=e.entries||{};return void 0!==n.fpr_enabled?t.loggingEnabled="true"===String(n.fpr_enabled):t.loggingEnabled=ir,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=cr(t.tracesSamplingRate),t.logNetworkAfterSampling=cr(t.networkRequestsSamplingRate),e}function cr(e){return Math.random()<=e}var lr,fr=1;function dr(){return fr=2,lr=lr||function(){var e=Hn.getInstance().document;return new Promise((function(t){if(e&&"complete"!==e.readyState){var n=function n(){"complete"===e.readyState&&(e.removeEventListener("readystatechange",n),t())};e.addEventListener("readystatechange",n)}else t()}))}().then((function(){return function(){var e=$n.getInstance().installationsService.getId();return e.then((function(e){Xn=e})),e}()})).then((function(e){return ar(e)})).then((function(){return hr()}),(function(){return hr()}))}function hr(){fr=3}var pr,gr=1e4,vr=3,mr=[],yr=!1;function br(e){setTimeout((function(){if(0!==vr)return mr.length?void function(){var e=mr.splice(0,1e3),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=$n.getInstance().getFlTransportFullUrl();return fetch(t,{method:"POST",body:JSON.stringify(e)})}(e).then((function(e){return e.ok||Gn.info("Call to Firebase backend failed."),e.json()})).then((function(e){var n=Number(e.nextRequestWaitMillis),r=gr;isNaN(n)||(r=Math.max(n,r));var i=e.logResponseDetails;Array.isArray(i)&&i.length>0&&"RETRY_REQUEST_LATER"===i[0].responseAction&&(mr=Object(f.__spreadArray)(Object(f.__spreadArray)([],t),mr),Gn.info("Retry transport request later.")),vr=3,br(r)}))})({request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:$n.getInstance().logSource,log_event:t},e).catch((function(){mr=Object(f.__spreadArray)(Object(f.__spreadArray)([],e),mr),vr--,Gn.info("Tries left: "+vr+"."),br(gr)}))}():br(gr)}),e)}function _r(e){if(!e.eventTime||!e.message)throw qn.create("invalid cc log");mr=Object(f.__spreadArray)(Object(f.__spreadArray)([],mr),[e])}function wr(e,t){pr||(pr=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];_r({message:e.apply(void 0,t),eventTime:Date.now()})}}(Sr)),pr(e,t)}function xr(e){var t=$n.getInstance();!t.instrumentationEnabled&&e.isAuto||(t.dataCollectionEnabled||e.isAuto)&&Hn.getInstance().requiredApisAvailable()&&(e.isAuto&&tr()!==Yn.VISIBLE||(3===fr?Or(e):dr().then((function(){return Or(e)}),(function(){return Or(e)}))))}function Or(e){if(Qn()){var t=$n.getInstance();t.loggingEnabled&&t.logTraceAfterSampling&&setTimeout((function(){return wr(e,1)}),0)}}function Sr(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:Er(),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:Er(),trace_metric:t};return JSON.stringify(r)}(e)}function Er(){return{google_app_id:$n.getInstance().getAppId(),app_instance_id:Qn(),web_app_info:{sdk_version:Mn,page_url:Hn.getInstance().getUrl(),service_worker_status:er(),visibility_state:tr(),effective_connection_type:nr()},application_process_state:0}}var kr=["_fp",Dn,Fn];var Cr=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=Hn.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 qn.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2},e.prototype.stop=function(){if(2!==this.state)throw qn.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(),xr(this)},e.prototype.record=function(e,t,n){if(e<=0)throw qn.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw qn.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=Object(f.__assign)({},n.attributes)),n&&n.metrics)for(var r=0,i=Object.keys(n.metrics);r<i.length;r++){var o=i[r];isNaN(Number(n.metrics[o]))||(this.counters[o]=Number(Math.floor(n.metrics[o])))}xr(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(n=e,r=this.name,0===n.length||n.length>100||!(r&&r.startsWith(Ln)&&kr.indexOf(n)>-1)&&n.startsWith("_"))throw qn.create("invalid custom metric name",{customMetricName:e});var n,r;this.counters[e]=function(e){var t=Math.floor(e);return t<e&&Gn.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,r=!(0===(n=e).length||n.length>40)&&!Jn.some((function(e){return n.startsWith(e)}))&&!!n.match(Zn),i=function(e){return 0!==e.length&&e.length<=100}(t);if(r&&i)this.customAttributes[e]=t;else{if(!r)throw qn.create("invalid attribute name",{attributeName:e});if(!i)throw qn.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 Object(f.__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=Hn.getInstance().getUrl();if(i){var o=new e(Ln+i,!0),a=Math.floor(1e3*Hn.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(Dn,Math.floor(1e3*u.startTime)),r&&o.putMetric(Fn,Math.floor(1e3*r))}xr(o)}},e.createUserTimingTrace=function(t){xr(new e(t,!1,t))},e}();function Tr(e){var t=e;if(t&&void 0!==t.responseStart){var n=Hn.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=$n.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 wr(e,0)}),0)}}({url:t.name&&t.name.split("?")[0],responsePayloadBytes:t.transferSize,startTimeUs:r,timeToResponseInitiatedUs:i,timeToResponseCompletedUs:o})}}function jr(){Qn()&&(setTimeout((function(){return function(){var e=Hn.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");if(e.onFirstInputDelay){var r=setTimeout((function(){Cr.createOobTrace(t,n),r=void 0}),5e3);e.onFirstInputDelay((function(e){r&&(clearTimeout(r),Cr.createOobTrace(t,n,e))}))}else Cr.createOobTrace(t,n)}()}),0),setTimeout((function(){return function(){for(var e=Hn.getInstance(),t=e.getEntriesByType("resource"),n=0,r=t;n<r.length;n++){Tr(r[n])}e.setupObserver("resource",Tr)}()}),0),setTimeout((function(){return function(){for(var e=Hn.getInstance(),t=e.getEntriesByType("measure"),n=0,r=t;n<r.length;n++){Ir(r[n])}e.setupObserver("measure",Ir)}()}),0))}function Ir(e){var t=e.name;t.substring(0,Rn.length)!==Rn&&Cr.createUserTimingTrace(t)}var Ar=function(){function e(e){this.app=e,Hn.getInstance().requiredApisAvailable()&&Object(a.validateIndexedDBOpenable)().then((function(e){e&&(yr||(br(5500),yr=!0),dr().then(jr,jr))})).catch((function(e){Gn.info("Environment doesn't support IndexedDB: "+e)}))}return e.prototype.trace=function(e){return new Cr(e)},Object.defineProperty(e.prototype,"instrumentationEnabled",{get:function(){return $n.getInstance().instrumentationEnabled},set:function(e){$n.getInstance().instrumentationEnabled=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataCollectionEnabled",{get:function(){return $n.getInstance().dataCollectionEnabled},set:function(e){$n.getInstance().dataCollectionEnabled=e},enumerable:!1,configurable:!0}),e}();!function(e){var t=function(e,t){if("[DEFAULT]"!==e.name)throw qn.create("FB not default");if("undefined"===typeof window)throw qn.create("no window");return function(e){Pn=e}(window),$n.getInstance().firebaseAppInstance=e,$n.getInstance().installationsService=t,new Ar(e)};e.INTERNAL.registerComponent(new c.Component("performance",(function(e){var n=e.getProvider("app").getImmediate(),r=e.getProvider("installations").getImmediate();return t(n,r)}),"PUBLIC")),e.registerVersion("@firebase/performance",Nn)}(o.default);var Pr,Nr,Mr="https://www.googletagmanager.com/gtag/js";!function(e){e.EVENT="event",e.SET="set",e.CONFIG="config"}(Pr||(Pr={})),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"}(Nr||(Nr={}));var Rr,Lr=new s.Logger("@firebase/analytics");function Dr(e,t,n,r,i,o){return Object(f.__awaiter)(this,void 0,void 0,(function(){var a,s,u,c;return Object(f.__generator)(this,(function(l){switch(l.label){case 0:a=r[i],l.label=1;case 1:return l.trys.push([1,7,,8]),a?[4,t[a]]:[3,3];case 2:return l.sent(),[3,6];case 3:return[4,Promise.all(n)];case 4:return s=l.sent(),(u=s.find((function(e){return e.measurementId===i})))?[4,t[u.appId]]:[3,6];case 5:l.sent(),l.label=6;case 6:return[3,8];case 7:return c=l.sent(),Lr.error(c),[3,8];case 8:return e(Pr.CONFIG,i,o),[2]}}))}))}function Fr(e,t,n,r,i){return Object(f.__awaiter)(this,void 0,void 0,(function(){var o,a,s,u,c,l,d,h;return Object(f.__generator)(this,(function(f){switch(f.label){case 0:return f.trys.push([0,4,,5]),o=[],i&&i.send_to?(a=i.send_to,Array.isArray(a)||(a=[a]
2),[4,Promise.all(n)]):[3,2];case 1:for(s=f.sent(),u=function(e){var n=s.find((function(t){return t.measurementId===e})),r=n&&t[n.appId];if(!r)return o=[],"break";o.push(r)},c=0,l=a;c<l.length&&(d=l[c],"break"!==u(d));c++);f.label=2;case 2:return 0===o.length&&(o=Object.values(t)),[4,Promise.all(o)];case 3:return f.sent(),e(Pr.EVENT,r,i||{}),[3,5];case 4:return h=f.sent(),Lr.error(h),[3,5];case 5:return[2]}}))}))}function Vr(e,t,n,r,i){var o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];window[r].push(arguments)};return window[i]&&"function"===typeof window[i]&&(o=window[i]),window[i]=function(e,t,n,r){return function(i,o,a){return Object(f.__awaiter)(this,void 0,void 0,(function(){var s;return Object(f.__generator)(this,(function(u){switch(u.label){case 0:return u.trys.push([0,6,,7]),i!==Pr.EVENT?[3,2]:[4,Fr(e,t,n,o,a)];case 1:return u.sent(),[3,5];case 2:return i!==Pr.CONFIG?[3,4]:[4,Dr(e,t,n,r,o,a)];case 3:return u.sent(),[3,5];case 4:e(Pr.SET,o),u.label=5;case 5:return[3,7];case 6:return s=u.sent(),Lr.error(s),[3,7];case 7:return[2]}}
2))}))}}(o,e,t,n),{gtagCore:o,wrappedGtag:window[i]}}var Ur=((Rr={})["already-exists"]="A Firebase Analytics instance with the appId {$id}  already exists. Only one Firebase Analytics instance can be created for each appId.",Rr["already-initialized"]="Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.",Rr["interop-component-reg-failed"]="Firebase Analytics Interop Component failed to instantiate: {$reason}",Rr["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}",Rr["indexeddb-unavailable"]="IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}",Rr["fetch-throttle"]="The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.",Rr["config-fetch-failed"]="Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}",Rr["no-api-key"]='The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',Rr["no-app-id"]='The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',Rr),Br=new a.ErrorFactory("analytics","Analytics",Ur),zr=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 qr(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}function Gr(e){var t;return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(f.__generator)(this,(function(c){switch(c.label){case 0:return n=e.appId,r=e.apiKey,i={method:"GET",headers:qr(r)},o="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),[4,fetch(o,i)];case 1:if(200===(a=c.sent()).status||304===a.status)return[3,6];s="",c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.json()];case 3:return u=c.sent(),(null===(t=u.error)||void 0===t?void 0:t.message)&&(s=u.error.message),[3,5];case 4:return c.sent(),[3,5];case 5:throw Br.create("config-fetch-failed",{httpStatus:a.status,responseMessage:s});case 6:return[2,a.json()]}}))}))}function Wr(e,t,n,r){var i=t.throttleEndTimeMillis,o=t.backoffCount;return void 0===r&&(r=zr),Object(f.__awaiter)(this,void 0,void 0,(function(){var t,s,u,c,l,d,h;return Object(f.__generator)(this,(function(f){switch(f.label){case 0:t=e.appId,s=e.measurementId,f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Hr(n,i)];case 2:return f.sent(),[3,4];case 3:if(u=f.sent(),s)return Lr.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 f.trys.push([4,6,,7]),[4,Gr(e)];case 5:return c=f.sent(),r.deleteThrottleMetadata(t),[2,c];case 6:if(!function(e){if(!(e instanceof a.FirebaseError)||!e.customData)return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(l=f.sent())){if(r.deleteThrottleMetadata(t),s)return Lr.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. ['+l.message+"]"),[2,{appId:t,measurementId:s}];throw l}return d=503===Number(l.customData.httpStatus)?Object(a.calculateBackoffMillis)(o,r.intervalMillis,30):Object(a.calculateBackoffMillis)(o,r.intervalMillis),h={throttleEndTimeMillis:Date.now()+d,backoffCount:o+1},r.setThrottleMetadata(t,h),Lr.debug("Calling attemptFetch again in "+d+" millis"),[2,Wr(e,h,n,r)];case 7:return[2]}}
2))}))}function Hr(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(Br.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var Kr=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 Xr(e,t,n,r,i,o){return Object(f.__awaiter)(this,void 0,void 0,(function(){var s,u,c,l,d,h,p;return Object(f.__generator)(this,(function(g){switch(g.label){case 0:return(s=function(e,t,n){return void 0===t&&(t=zr),Object(f.__awaiter)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c=this;return Object(f.__generator)(this,(function(l){if(r=e.options,i=r.appId,o=r.apiKey,a=r.measurementId,!i)throw Br.create("no-app-id");if(!o){if(a)return[2,{measurementId:a,appId:i}];throw Br.create("no-api-key")}return s=t.getThrottleMetadata(i)||{backoffCount:0,throttleEndTimeMillis:Date.now()},u=new Kr,setTimeout((function(){return Object(f.__awaiter)(c,void 0,void 0,(function(){return Object(f.__generator)(this,(function(e){return u.abort(),[2]}))}))}),void 0!==n?n:6e4),[2,Wr({appId:i,apiKey:o,measurementId:a},s,u,t)]}))}))}(e)).then((function(t){n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&Lr.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 Lr.error(e)})),t.push(s),u=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){var e;return Object(f.__generator)(this,(function(t){switch(t.label){case 0:return Object(a.isIndexedDBAvailable)()?[3,1]:(Lr.warn(Br.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(a.validateIndexedDBOpenable)()];case 2:return t.sent(),[3,4];case 3:return e=t.sent(),Lr.warn(Br.create("indexeddb-unavailable",{errorInfo:e}).message),[2,!1];case 4:return[2,!0]}}))}))}().then((function(e){return e?r.getId():void 0})),[4,Promise.all([s,u])];case 1:return c=g.sent(),l=c[0],d=c[1],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(Mr))return r}return null}()||function(e,t){var n=document.createElement("script");n.src=Mr+"?l="+e+"&id="+t,n.async=!0,document.head.appendChild(n)}(o,l.measurementId),i("js",new Date),(p={}).origin="firebase",p.update=!0,h=p,null!=d&&(h.firebase_id=d),i(Pr.CONFIG,l.measurementId,h),[2,l.measurementId]}}))}))}var Yr,$r,Qr={},Jr=[],Zr={},ei="dataLayer",ti="gtag",ni=!1;function ri(e){if(ni)throw Br.create("already-initialized");e.dataLayerName&&(ei=e.dataLayerName),e.gtagName&&(ti=e.gtagName)}function ii(e,t){!function(){var e=[];if(Object(a.isBrowserExtension)()&&e.push("This is a browser extension environment."),Object(a.areCookiesEnabled)()||e.push("Cookies are not available."),e.length>0){var t=e.map((function(e,t){return"("+(t+1)+") "+e})).join(" "),n=Br.create("invalid-analytics-context",{errorInfo:t});Lr.warn(n.message)}}();var n=e.options.appId;if(!n)throw Br.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw Br.create("no-api-key");Lr.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!=Qr[n])throw Br.create("already-exists",{id:n});if(!ni){!function(e){var t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(ei);var r=Vr(Qr,Jr,Zr,ei,ti),i=r.wrappedGtag,o=r.gtagCore;$r=i,Yr=o,ni=!0}return Qr[n]=Xr(e,Jr,Zr,t,Yr,ei),{app:e,logEvent:function(e,t,r){(function(e,t,n,r,i){return Object(f.__awaiter)(this,void 0,void 0,(function(){var o,a;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:return i&&i.global?(e(Pr.EVENT,n,r),[2]):[3,1];case 1:return[4,t];case 2:o=s.sent(),a=Object(f.__assign)(Object(f.__assign)({},r),{send_to:o}),e(Pr.EVENT,n,a),s.label=3;case 3:return[2]}}
2))}))})($r,Qr[n],e,t,r).catch((function(e){return Lr.error(e)}))},setCurrentScreen:function(e,t){(function(e,t,n,r){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return r&&r.global?(e(Pr.SET,{screen_name:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(Pr.CONFIG,i,{update:!0,screen_name:n}),o.label=3;case 3:return[2]}}))}))})($r,Qr[n],e,t).catch((function(e){return Lr.error(e)}))},setUserId:function(e,t){(function(e,t,n,r){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return r&&r.global?(e(Pr.SET,{user_id:n}),[2,Promise.resolve()]):[3,1];case 1:return[4,t];case 2:i=o.sent(),e(Pr.CONFIG,i,{update:!0,user_id:n}),o.label=3;case 3:return[2]}}))}))})($r,Qr[n],e,t).catch((function(e){return Lr.error(e)}))},setUserProperties:function(e,t){(function(e,t,n,r){return Object(f.__awaiter)(this,void 0,void 0,(function(){var i,o,a,s,u;return Object(f.__generator)(this,(function(c){switch(c.label){case 0:if(!r||!r.global)return[3,1];for(i={},o=0,a=Object.keys(n);o<a.length;o++)s=a[o],i["user_properties."+s]=n[s];return e(Pr.SET,i),[2,Promise.resolve()];case 1:return[4,t];case 2:u=c.sent(),e(Pr.CONFIG,u,{update:!0,user_properties:n}),c.label=3;case 3:return[2]}}
2))}))})($r,Qr[n],e,t).catch((function(e){return Lr.error(e)}))},setAnalyticsCollectionEnabled:function(e){(function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n;return Object(f.__generator)(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),window["ga-disable-"+n]=!t,[2]}}))}))})(Qr[n],e).catch((function(e){return Lr.error(e)}))},INTERNAL:{delete:function(){return delete Qr[n],Promise.resolve()}}}}var oi="analytics";function ai(){return Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__generator)(this,(function(e){switch(e.label){case 0:if(Object(a.isBrowserExtension)())return[2,!1];if(!Object(a.areCookiesEnabled)())return[2,!1];if(!Object(a.isIndexedDBAvailable)())return[2,!1];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Object(a.validateIndexedDBOpenable)()];case 2:return[2,e.sent()];case 3:return e.sent(),[2,!1];case 4:return[2]}}))}))}!function(e){e.INTERNAL.registerComponent(new c.Component(oi,(function(e){return ii(e.getProvider("app").getImmediate(),e.getProvider("installations").getImmediate())}),"PUBLIC").setServiceProps({settings:ri,EventName:Nr,isSupported:ai})),e.INTERNAL.registerComponent(new c.Component("analytics-internal",(function(e){try{return{logEvent:e.getProvider(oi).getImmediate().logEvent}}catch(r){throw Br.create("interop-component-reg-failed",{reason:r})}}),"PRIVATE")),e.registerVersion("@firebase/analytics","0.6.12")}(o.default);var si,ui=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 Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return[4,Promise.all([this.storage.getLastSuccessfulFetchTimestampMillis(),this.storage.getLastSuccessfulFetchResponse()])];case 1:return t=a.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 i=a.sent(),o=[this.storageCache.setLastSuccessfulFetchTimestampMillis(Date.now())],200===i.status&&o.push(this.storage.setLastSuccessfulFetchResponse(i)),[4,Promise.all(o)];case 3:return a.sent(),[2,i]}}))}))},e}(),ci=((si={})["registration-window"]="Undefined window object. This SDK only supports usage in a browser environment.",si["registration-project-id"]="Undefined project identifier. Check Firebase app initialization.",si["registration-api-key"]="Undefined API key. Check Firebase app initialization.",si["registration-app-id"]="Undefined app identifier. Check Firebase app initialization.",si["storage-open"]="Error thrown when opening storage. Original error: {$originalErrorMessage}.",si["storage-get"]="Error thrown when reading from storage. Original error: {$originalErrorMessage}.",si["storage-set"]="Error thrown when writing to storage. Original error: {$originalErrorMessage}.",si["storage-delete"]="Error thrown when deleting from storage. Original error: {$originalErrorMessage}.",si["fetch-client-network"]="Fetch client failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",si["fetch-timeout"]='The config fetch request timed out.  Configure timeout using "fetchTimeoutMillis" SDK setting.',si["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}.',si["fetch-client-parse"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",si["fetch-status"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",si),li=new a.ErrorFactory("remoteconfig","Remote Config",ci);var fi=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 Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n,r,i,o,a,s,u,c,l,d,h,p,g,v,m,y,b,_;return Object(f.__generator)(this,(function(f){switch(f.label){case 0:return[4,Promise.all([this.firebaseInstallations.getId(),this.firebaseInstallations.getToken()])];case 1:t=f.sent(),n=t[0],r=t[1],i=window.FIREBASE_REMOTE_CONFIG_URL_BASE||"https://firebaseremoteconfig.googleapis.com",o=i+"/v1/projects/"+this.projectId+"/namespaces/"+this.namespace+":fetch?ke
2y="+this.apiKey,a={"Content-Type":"application/json","Content-Encoding":"gzip","If-None-Match":e.eTag||"*"},s={sdk_version:this.sdkVersion,app_instance_id:n,app_instance_id_token:r,app_id:this.appId,language_code:(void 0===w&&(w=navigator),w.languages&&w.languages[0]||w.language)},u={method:"POST",headers:a,body:JSON.stringify(s)},c=fetch(o,u),l=new Promise((function(t,n){e.signal.addEventListener((function(){var e=new Error("The operation was aborted.");e.name="AbortError",n(e)}))})),f.label=2;case 2:return f.trys.push([2,5,,6]),[4,Promise.race([c,l])];case 3:return f.sent(),[4,c];case 4:return d=f.sent(),[3,6];case 5:throw h=f.sent(),p="fetch-client-network","AbortError"===h.name&&(p="fetch-timeout"),li.create(p,{originalErrorMessage:h.message});case 6:if(g=d.status,v=d.headers.get("ETag")||void 0,200!==d.status)return[3,11];b=void 0,f.label=7;case 7:return f.trys.push([7,9,,10]),[4,d.json()];case 8:return b=f.sent(),[3,10];case 9:throw _=f.sent(),li.create("fetch-client-parse",{originalErrorMessage:_.message});case 10:m=b.entries,y=b.state,f.label=11;case 11:if("INSTANCE_STATE_UNSPECIFIED"===y?g=500:"NO_CHANGE"===y?g=304:"NO_TEMPLATE"!==y&&"EMPTY_CONFIG"!==y||(m={}),304!==g&&200!==g)throw li.create("fetch-status",{httpStatus:g});return[2,{status:g,eTag:v,config:m}]}var w}))}))},e}(),di=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}(),hi=["1","true","t","yes","y","on"],pi=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&&hi.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}(),gi=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=s.LogLevel.DEBUG;break;case"silent":this._logger.logLevel=s.LogLevel.SILENT;break;default:this._logger.logLevel=s.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 Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t,n;return Object(f.__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 Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r=this;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:e=new di,setTimeout((function(){return Object(f.__awaiter)(r,void 0,void 0,(function(){return Object(f.__generator)(this,(function(t){return e.abort(),[2]}))}))}),this.settings.fetchTimeoutMillis),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,this._client.fetch({cacheMaxAgeMillis:this.settings.minimumFetchIntervalMillis,signal:e})];case 2:return i.sent(),[4,this._storageCache.setLastFetchStatus("success")];case 3:return i.sent(),[3,6];case 4:return t=i.sent(),n=function(e,t){return e instanceof a.FirebaseError&&-1!==e.code.indexOf(t)}(t,"fetch-throttle")?"throttle":"failure",[4,this._storageCache.setLastFetchStatus(n)];case 5:throw i.sent(),t;case 6:return[2]}}
2))}))},e.prototype.fetchAndActivate=function(){return Object(f.__awaiter)(this,void 0,void 0,(function(){return Object(f.__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(Object(f.__assign)(Object(f.__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 pi("remote",t[e]):this.defaultConfig&&void 0!==this.defaultConfig[e]?new pi("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 pi("static"))},e}();function vi(e,t){var n=e.target.error||void 0;return li.create(t,{originalErrorMessage:n&&n.message})}var mi="app_namespace_store";var yi=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(vi(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(mi,{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 Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return t=i.sent(),[2,new Promise((function(i,o){var a=t.transaction([mi],"readonly").objectStore(mi),s=n.createCompositeKey(e);try{var u=a.get(s);u.onerror=function(e){o(vi(e,"storage-get"))},u.onsuccess=function(e){var t=e.target.result;i(t?t.value:void 0)}}catch(r){o(li.create("storage-get",{originalErrorMessage:r&&r.message}))}}))]}}))}))},e.prototype.set=function(e,t){return Object(f.__awaiter)(this,void 0,void 0,(function(){var n,i=this;return Object(f.__generator)(this,(function(o){switch(o.label){case 0:return[4,this.openDbPromise];case 1:return n=o.sent(),[2,new Promise((function(o,a){var s=n.transaction([mi],"readwrite").objectStore(mi),u=i.createCompositeKey(e);try{var c=s.put({compositeKey:u,value:t});c.onerror=function(e){a(vi(e,"storage-set"))},c.onsuccess=function(){o()}}catch(r){a(li.create("storage-set",{originalErrorMessage:r&&r.message}))}}))]}}))}))},e.prototype.delete=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t,n=this;return Object(f.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.openDbPromise];case 1:return t=i.sent(),[2,new Promise((function(i,o){var a=t.transaction([mi],"readwrite").objectStore(mi),s=n.createCompositeKey(e);try{var u=a.delete(s);u.onerror=function(e){o(vi(e,"storage-delete"))},u.onsuccess=function(){i()}}catch(r){o(li.create("storage-delete",{originalErrorMessage:r&&r.message}))}}))]}}))}))},e.prototype.createCompositeKey=function(e){return[this.appId,this.appName,this.namespace,e].join()},e}(),bi=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 Object(f.__awaiter)(this,void 0,void 0,(function(){var e,t,n,r,i,o;return Object(f.__generator)(this,(function(a){switch(a.label){case 0:return e=this.storage.getLastFetchStatus(),t=this.storage.getLastSuccessfulFetchTimestampMillis(),n=this.storage.getActiveConfig(),[4,e];case 1:return(r=a.sent())&&(this.lastFetchStatus=r),[4,t];case 2:return(i=a.sent())&&(this.lastSuccessfulFetchTimestampMillis=i),[4,n];case 3:return(o=a.sent())&&(this.activeConfig=o),[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 _i(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(li.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}var wi,xi=function(){function e(e,t){this.client=e,this.storage=t}return e.prototype.fetch=function(e){return Object(f.__awaiter)(this,void 0,void 0,(function(){var t;return Object(f.__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 Object(f.__awaiter)(this,void 0,void 0,(function(){var t,i,o;return Object(f.__generator)(this,(function(s){switch(s.label){case 0:return[4,_i(e.signal,n)];case 1:s.sent(),s.label=2;case 2:return s.trys.push([2,5,,7]),[4,this.client.fetch(e)];case 3:return t=s.sent(),[4,this.storage.deleteThrottleMetadata()];case 4:return s.sent(),[2,t];case 5:if(!function(e){if(!(e instanceof a.FirebaseError)||!e.customData)return!1;var t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(i=s.sent()))throw i;return o={throttleEndTimeMillis:Date.now()+Object(a.calculateBackoffMillis)(r),backoffCount:r+1},[4,this.storage.setThrottleMetadata(o)];case 6:return s.sent(),[2,this.attemptFetch(e,o)];case 7:return[2]}}
2))}))},e}(),Oi="@firebase/remote-config";(wi=o.default).INTERNAL.registerComponent(new c.Component("remoteConfig",(function(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("installations").getImmediate();if("undefined"===typeof window)throw li.create("registration-window");var o=r.options,a=o.projectId,u=o.apiKey,c=o.appId;if(!a)throw li.create("registration-project-id");if(!u)throw li.create("registration-api-key");if(!c)throw li.create("registration-app-id");n=n||"firebase";var l=new yi(c,r.name,n),f=new bi(l),d=new s.Logger(Oi);d.logLevel=s.LogLevel.ERROR;var h=new fi(i,wi.SDK_VERSION,n,a,u,c),p=new xi(h,l),g=new ui(p,l,f,d),v=new gi(r,g,f,l,d);return v.ensureInitialized(),v}),"PUBLIC").setMultipleInstances(!0)),wi.registerVersion(Oi,"0.1.39");n(166);var Si="8.6.7";o.default.registerVersion("firebase",Si,"app"),o.default.SDK_VERSION=Si;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 firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),o.default.registerVersion("firebase","8.6.7")},function(e,t,n){"use strict";var r=n(274),i=n(0);var o=i.createContext(null);function a(){return i.useContext(o)}function s(e){return 0===Object.keys(e).length}var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=a();return!t||s(t)?e:t},c=Object(r.a)();t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c;return u(e)}},function(e,t,n){"use strict";function r(e){for(var t="https://material-ui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(110);function i(e){if("string"!==typeof e)throw new Error(Object(r.a)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";function r(){return(r=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 i(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},a=n.clone?r({},e):e;return i(e)&&i(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(i(t[r])&&r in e&&i(e[r])?a[r]=o(e[r],t[r],n):a[r]=t[r])})),a}n.d(t,"a",(function(){return o}))},,,,,,,,function(e,t,n){"use strict";var r=n(89),i=60103,o=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,s=60110,u=60112;t.Suspense=60113;var c=60115,l=60116;if("function"===typeof Symbol&&Symbol.for){var f=Symbol.for;i=f("react.element"),o=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),s=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),l=f("react.lazy")}var d="function"===typeof Symbol&&Symbol.iterator;function h(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 p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=y.prototype=new m;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var _={current:null},w=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function O(e,t,n){var r,o={},a=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,r)&&!x.hasOwnProperty(r)&&(o[r]=t[r]);var u=arguments.length-2;if(1===u)o.children=n;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===o[r]&&(o[r]=u[r]);return{$$typeof:i,type:e,key:a,ref:s,props:o,_owner:_.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var E=/\/+/g;function k(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 C(e,t,n,r,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case i:case o:u=!0}}if(u)return a=a(u=e),e=""===r?"."+k(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(E,"$&/")+"/"),C(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var l=r+k(s=e[c],c);u+=C(s,t,n,l,a)}else if("function"===typeof(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e)))for(e=l.call(e),c=0;!(s=e.next()).done;)u+=C(s=s.value,t,n,l=r+k(s,c++),a);else if("object"===s)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function T(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function j(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,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)}))}if(1===e._status)return e._result;throw e._result}var I={current:null};function A(){var e=I.current;
vendor: 12,978 bytes, line 2
2if(null===e)throw Error(h(321));return e}var P={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:_,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(h(267,e));var o=r({},e.props),a=e.key,s=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(s=t.ref,u=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in t)w.call(t,l)&&!x.hasOwnProperty(l)&&(o[l]=void 0===t[l]&&void 0!==c?c[l]:t[l])}var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){c=Array(l);for(var f=0;f<l;f++)c[f]=arguments[f+2];o.children=c}return{$$typeof:i,type:e.type,key:a,ref:s,props:o,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:s,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_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:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:l,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return A().useCallback(e,t)},t.useContext=function(e,t){return A().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return A().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return A().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return A().useLayoutEffect(e,t)},t.useMemo=function(e,t){return A().useMemo(e,t)},t.useReducer=function(e,t,n){return A().useReducer(e,t,n)},t.useRef=function(e){return A().useRef(e)},t.useState=function(e){return A().useState(e)},t.version="17.0.2"},function(e,t,n){"use strict";var r=n(0),i=n(89),o=n(154);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));var s=new Set,u={};function c(e,t){l(e,t),l(e+"Capture",t)}function l(e,t){for(u[e]=t,e=0;e<t.length;e++)s.add(t[e])}var f=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=/^[: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]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function v(e,t,n,r,i,o,a){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,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function _(e,t,n,r){var i=m.hasOwnProperty(t)?m[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!!h.call(g,e)||!h.call(p,e)&&(d.test(e)?g[e]=!0:(p[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))))}"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(y,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,O=60106,S=60107,E=60108,k=60114,C=60109,T=60110,j=60112,I=60113,A=60120,P=60115,N=60116,M=60121,R=60128,L=60129,D=60130,F=60131;if("function"===typeof Symbol&&Symbol.for){var V=Symbol.for;x=V("react.element"),O=V("react.portal"),S=V("react.fragment"),E=V("react.strict_mode"),k=V("react.profiler"),C=V("react.provider"),T=V("react.context"),j=V("react.forward_ref"),I=V("react.suspense"),A=V("react.suspense_list"),P=V("react.memo"),N=V("react.lazy"),M=V("react.block"),V("react.scope"),R=V("react.opaque.id"),L=V("react.debug_trace_mode"),D=V("react.offscreen"),F=V("react.legacy_hidden")}var U,B="function"===typeof Symbol&&Symbol.iterator;function z(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}function q(e){if(void 0===U)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);U=t&&t[1]||""}return"\n"+U+e}var G=!1;function W(e,t){if(!e||G)return"";G=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s])return"\n"+i[a].replace(" at new "," at ")}while(1<=a&&0<=s);break}}}finally{G=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?q(e):""}function H(e){switch(e.tag){case 5:return q(e.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1);case 11:return e=W(e.type.render,!1);case 22:return e=W(e.type._render,!1);case 1:return e=W(e.type,!0);default:return""}}function K(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 S:return"Fragment";case O:return"Portal";case k:return"Profiler";case E:return"StrictMode";case I:return"Suspense";case A:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case P:return K(e.type);case M:return K(e._render);case N:t=e._payload,e=e._init;try{return K(e(t))}catch(n){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function $(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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 Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Y(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(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 Z(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 ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(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 te(e,t){null!=(t=t.checked)&&_(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(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")?ie(e,t.type,n):t.hasOwnProperty("defaultValue")&&ie(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(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 ie(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function oe(e,t){return e=i({children:void 0},t),(t=function(e){var t="";
vendor: 4,117 bytes, line 2
2return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(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=""+X(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 se(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(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:X(n)}}function ce(e,t){var n=X(t.value),r=X(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 le(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="http://www.w3.org/2000/svg";function he(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 pe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?he(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ge,ve,me=(ve=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((ge=ge||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ge.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ve(e,t)}))}:ve);function ye(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var be={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},_e=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||be.hasOwnProperty(e)&&be[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(be).forEach((function(e){_e.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Oe=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 Se(e,t){if(t){if(Oe[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 Ee(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}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
vendor: 3,897 bytes, line 2
2odeType?e.parentNode:e}var Ce=null,Te=null,je=null;function Ie(e){if(e=ei(e)){if("function"!==typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=ni(t),Ce(e.stateNode,e.type,t))}}function Ae(e){Te?je?je.push(e):je=[e]:Te=e}function Pe(){if(Te){var e=Te,t=je;if(je=Te=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Ne(e,t){return e(t)}function Me(e,t,n,r,i){return e(t,n,r,i)}function Re(){}var Le=Ne,De=!1,Fe=!1;function Ve(){null===Te&&null===je||(Re(),Pe())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=ni(n);if(null===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}var Be=!1;if(f)try{var ze={};Object.defineProperty(ze,"passive",{get:function(){Be=!0}}),window.addEventListener("test",ze,ze),window.removeEventListener("test",ze,ze)}catch(ve){Be=!1}function qe(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 Ge=!1,We=null,He=!1,Ke=null,Xe={onError:function(e){Ge=!0,We=e}};function Ye(e,t,n,r,i,o,a,s,u){Ge=!1,We=null,qe.apply(Xe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Qe(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 Je(e){if($e(e)!==e)throw Error(a(188))}function Ze(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(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 Je(i),e;if(o===r)return Je(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 et(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var tt,nt,rt,it,ot=!1,at=[],st=null,ut=null,ct=null,lt=new Map,ft=new Map,dt=[],ht="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function pt(e,t,n,r,i){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:i,targetContainers:[r]}}function gt(e,t){switch(e){case"focusin":case"focusout":st=null;break;case"dragenter":case"dragleave":ut=null;break;case"mouseover":case"mouseout":ct=null;break;case"pointerover":case"pointerout":lt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ft.delete(t.pointerId)}}function vt(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e=pt(t,n,r,i,o),null!==t&&(null!==(t=ei(t))&&nt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function mt(e){var t=Zr(e.target);if(null!==t){var n=$e(t);
vendor: 2,306 bytes, line 2
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=Qe(n)))return e.blockedOn=t,void it(e.lanePriority,(function(){o.unstable_runWithPriority(e.priority,(function(){rt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function yt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ei(n))&&nt(t),e.blockedOn=n,!1;t.shift()}return!0}function bt(e,t,n){yt(e)&&n.delete(t)}function _t(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=ei(e.blockedOn))&&tt(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==st&&yt(st)&&(st=null),null!==ut&&yt(ut)&&(ut=null),null!==ct&&yt(ct)&&(ct=null),lt.forEach(bt),ft.forEach(bt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,_t)))}function xt(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==st&&wt(st,e),null!==ut&&wt(ut,e),null!==ct&&wt(ct,e),lt.forEach(t),ft.forEach(t),n=0;n<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function Ot(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var St={animationend:Ot("Animation","AnimationEnd"),animationiteration:Ot("Animation","AnimationIteration"),animationstart:Ot("Animation","AnimationStart"),transitionend:Ot("Transition","TransitionEnd")},Et={},kt={};function Ct(e){if(Et[e])return Et[e];if(!St[e])return e;var t,n=St[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return Et[e]=n[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete St.animationend.animation,delete St.animationiteration.animation,delete St.animationstart.animation),"TransitionEvent"in window||delete St.transitionend.transition);var Tt=Ct("animationend"),jt=Ct("animationiteration"),It=Ct("animationstart"),At=Ct("transitionend"),Pt=new Map,Nt=ne
vendor: 5,119 bytes, line 2
2w Map,Mt=["abort","abort",Tt,"animationEnd",jt,"animationIteration",It,"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",At,"transitionEnd","waiting","waiting"];function Rt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1];i="on"+(i[0].toUpperCase()+i.slice(1)),Nt.set(r,t),Pt.set(r,i),c(i,[r])}}(0,o.unstable_now)();var Lt=8;function Dt(e){if(0!==(1&e))return Lt=15,1;if(0!==(2&e))return Lt=14,2;if(0!==(4&e))return Lt=13,4;var t=24&e;return 0!==t?(Lt=12,t):0!==(32&e)?(Lt=11,32):0!==(t=192&e)?(Lt=10,t):0!==(256&e)?(Lt=9,256):0!==(t=3584&e)?(Lt=8,t):0!==(4096&e)?(Lt=7,4096):0!==(t=4186112&e)?(Lt=6,t):0!==(t=62914560&e)?(Lt=5,t):67108864&e?(Lt=4,67108864):0!==(134217728&e)?(Lt=3,134217728):0!==(t=805306368&e)?(Lt=2,t):0!==(1073741824&e)?(Lt=1,1073741824):(Lt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Lt=0;var r=0,i=0,o=e.expiredLanes,a=e.suspendedLanes,s=e.pingedLanes;if(0!==o)r=o,i=Lt=15;else if(0!==(o=134217727&n)){var u=o&~a;0!==u?(r=Dt(u),i=Lt):0!==(s&=o)&&(r=Dt(s),i=Lt)}else 0!==(o=n&~a)?(r=Dt(o),i=Lt):0!==s&&(r=Dt(s),i=Lt);if(0===r)return 0;if(r=n&((0>(r=31-Gt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0===(t&a)){if(Dt(t),i<=Lt)return t;Lt=i}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-Gt(t)),r|=e[n],t&=~i;return r}function Vt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=Bt(24&~t))?Ut(10,t):e;case 10:return 0===(e=Bt(192&~t))?Ut(8,t):e;case 8:return 0===(e=Bt(3584&~t))&&(0===(e=Bt(4186112&~t))&&(e=512)),e;case 2:return 0===(t=Bt(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function Bt(e){return e&-e}function zt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Gt(t)]=n}var Gt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Ht|0)|0},Wt=Math.log,Ht=Math.LN2;var Kt=o.unstable_UserBlockingPriority,Xt=o.unstable_runWithPriority,Yt=!0;function $t(e,t,n,r){De||Re();var i=Jt,o=De;De=!0;try{Me(i,e,t,n,r)}finally{(De=o)||Ve()}}function Qt(e,t,n,r){Xt(Kt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var i;if(Yt)if((i=0===(4&t))&&0<at.length&&-1<ht.indexOf(e))e=pt(null,e,t,n,r),at.push(e);else{var o=Zt(e,t,n,r);if(null===o)i&&gt(e,r);else{if(i){if(-1<ht.indexOf(e))return e=pt(o,e,t,n,r),void at.push(e);if(function(e,t,n,r,i){switch(t){case"focusin":return st=vt(st,e,t,n,r,i),!0;case"dragenter":return ut=vt(ut,e,t,n,r,i),!0;case"mouseover":return ct=vt(ct,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return lt.set(o,vt(lt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ft.set(o,vt(ft.get(o)||null,e,t,n,r,i)),!0}return!1}(o,e,t,n,r))return;gt(e,r)}Pr(e,t,r,null,n)}}}function Zt(e,t,n,r){var i=ke(r);if(null!==(i=Zr(i))){var o=$e(i);if(null===o)i=null;else{var a=o.tag;if(13===a){if(null!==(i=Qe(o)))return i;i=null}else if(3===a){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Pr(e,t,r,i,n),null}var en=null,tn=null,nn=null;function rn(){if(nn)return nn;var e,t,n=tn,r=n.length,i="value"in en?en.value:en.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 nn=i.slice(e,1<t?1-t:void 0)}function on(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}function an(){return!0}function sn(){return!1}function un(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?an:sn,this.isPropagationStopped=sn,this}return i(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=an)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=an)},persist:function(){},isPersistent:an}),t}var cn,ln,fn,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=un(dn),pn=i({},dn,{view:0,detail:0}),gn=un(pn),vn=i({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,420 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(cn=e.screenX-fn.screenX,ln=e.screenY-fn.screenY):ln=cn=0,fn=e),cn)},movementY:function(e){return"movementY"in e?e.movementY:ln}}),mn=un(vn),yn=un(i({},vn,{dataTransfer:0})),bn=un(i({},pn,{relatedTarget:0})),_n=un(i({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=un(i({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=un(i({},dn,{data:0})),On={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={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"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function Cn(){return kn}var Tn=un(i({},pn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=on(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?on(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?on(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),jn=un(i({},vn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=un(i({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=un(i({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=un(i({},vn,{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:0,deltaMode:0})),Nn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,Rn=null;f&&"documentMode"in document&&(Rn=document.documentMode);var Ln=f&&"TextEvent"in window&&!Rn,Dn=f&&(!Mn||Rn&&8<Rn&&11>=Rn),Fn=String.fromCharCode(32),Vn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var qn={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 Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Wn(e,t,n,r){Ae(r),0<(t=Mr(t,"onChange")).length&&(n=new hn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Kn=null;function Xn(e){kr(e,0)}function Yn(e){if(Q(ti(e)))return e}function $n(e,t){if("change"===e)return t}var Qn=!1;if(f){var Jn;if(f){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Qn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Hn&&(Hn.detachEvent("onpropertychange",nr),Kn=Hn=null)}function nr(e){if("value"===e.propertyName&&Yn(Kn)){var t=[];if(Wn(t,Kn,e,ke(e)),e=Xn,De)e(t);else{De=!0;try{Ne(e,t)}finally{De=!1,Ve()}}}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Hn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Kn)}function or(e,t){if("click"===e)return Yn(t)}function ar(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ur=Object.prototype.hasOwnProperty;function cr(e,t){if(sr(e,t))return!0;
vendor: 4,593 bytes, line 2
2if("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(!ur.call(t,n[r])||!sr(e[n[r]],t[n[r]]))return!1;return!0}function lr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var n,r=lr(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=lr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function pr(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 gr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,mr=null,yr=null,br=!1;function _r(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==vr||vr!==J(r)||("selectionStart"in(r=vr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&cr(yr,r)||(yr=r,0<(r=Mr(mr,"onSelect")).length&&(t=new hn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}Rt("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur 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),Rt("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),Rt(Mt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<wr.length;xr++)Nt.set(wr[xr],0);l("onMouseEnter",["mouseout","mouseover"]),l("onMouseLeave",["mouseout","mouseover"]),l("onPointerEnter",["pointerout","pointerover"]),l("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Sr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Er(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,c){if(Ye.apply(this,arguments),Ge){if(!Ge)throw Error(a(198));var l=We;Ge=!1,We=null,He||(He=!0,Ke=l)}}(r,t,void 0,e),e.currentTarget=null}function kr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Er(i,s,c),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Er(i,s,c),o=u}}}if(He)throw e=Ke,He=!1,Ke=null,e}function Cr(e,t){var n=ri(t),r=e+"__bubble";n.has(r)||(Ar(t,e,2,!1),n.add(r))}var Tr="_reactListening"+Math.random().toString(36).slice(2);
vendor: 10,484 bytes, line 2
2function jr(e){e[Tr]||(e[Tr]=!0,s.forEach((function(t){Sr.has(t)||Ir(t,!1,e,null),Ir(t,!0,e,null)})))}function Ir(e,t,n,r){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=n;if("selectionchange"===e&&9!==n.nodeType&&(o=n.ownerDocument),null!==r&&!t&&Sr.has(e)){if("scroll"!==e)return;i|=2,o=r}var a=ri(o),s=e+"__"+(t?"capture":"bubble");a.has(s)||(t&&(i|=4),Ar(o,e,i,t),a.add(s))}function Ar(e,t,n,r){var i=Nt.get(t);switch(void 0===i?2:i){case 0:i=$t;break;case 1:i=Qt;break;default:i=Jt}n=i.bind(null,t,n,e),i=void 0,!Be||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Pr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=Zr(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e(t,n);Fe=!0;try{Le(e,t,n)}finally{Fe=!1,Ve()}}((function(){var r=o,i=ke(n),a=[];e:{var s=Pt.get(e);if(void 0!==s){var u=hn,c=e;switch(e){case"keypress":if(0===on(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":c="focus",u=bn;break;case"focusout":c="blur",u=bn;break;case"beforeblur":case"afterblur":u=bn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=In;break;case Tt:case jt:case It:u=_n;break;case At:u=An;break;case"scroll":u=gn;break;case"wheel":u=Pn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&(null!=(g=Ue(p,d))&&l.push(Nr(p,g,h)))),f)break;p=p.return}0<l.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||0!==(16&t)||!(c=n.relatedTarget||n.fromElement)||!Zr(c)&&!c[Qr])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Zr(c):null)&&(c!==(f=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=mn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(l=jn,g="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:ti(u),h=null==c?s:ti(c),(s=new l(g,p+"leave",u,n,i)).target=f,s.relatedTarget=h,g=null,Zr(i)===r&&((l=new l(d,p+"enter",c,n,i)).target=h,l.relatedTarget=f,g=l),f=g,u&&c)e:{for(d=c,p=0,h=l=u;h;h=Rr(h))p++;for(h=0,g=d;g;g=Rr(g))h++;for(;0<p-h;)l=Rr(l),p--;for(;0<h-p;)d=Rr(d),h--;for(;p--;){if(l===d||null!==d&&l===d.alternate)break e;l=Rr(l),d=Rr(d)}l=null}else l=null;null!==u&&Lr(a,s,u,l,!1),null!==c&&null!==f&&Lr(a,f,c,l,!0)}if("select"===(u=(s=r?ti(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var v=$n;else if(Gn(s))if(Qn)v=ar;else{v=ir;var m=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=or);switch(v&&(v=v(e,r))?Wn(a,v,n,i):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ie(s,"number",s.value)),m=r?ti(r):window,e){case"focusin":(Gn(m)||"true"===m.contentEditable)&&(vr=m,mr=r,yr=null);break;case"focusout":yr=mr=vr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,_r(a,n,i);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":_r(a,n,i)}var y;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else zn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&zn&&(y=rn()):(tn="value"in(en=i)?en.value:en.textContent,zn=!0)),0<(m=Mr(r,b)).length&&(b=new xn(b,e,null,n,i),a.push({event:b,listeners:m}),y?b.data=y:null!==(y=Bn(n))&&(b.data=y))),(y=Ln?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Vn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(zn)return"compositionend"===e||!Mn&&Un(e,t)?(e=rn(),nn=tn=en=null,zn=!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 Dn&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))&&(0<(r=Mr(r,"onBeforeInput")).length&&(i=new xn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=y))}kr(a,t)}))}function Nr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Ue(e,n))&&r.unshift(Nr(e,o,i)),null!=(o=Ue(e,t))&&r.push(Nr(e,o,i))),e=e.return}return r}function Rr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Ue(n,o))&&a.unshift(Nr(n,u,s)):i||null!=(u=Ue(n,o))&&a.push(Nr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dr(){}var Fr=null,Vr=null;function Ur(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Br(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 zr="function"===typeof setTimeout?setTimeout:void 0,qr="function"===typeof clearTimeout?clearTimeout:void 0;function Gr(e){1===e.nodeType?e.textContent="":9===e.nodeType&&(null!=(e=e.body)&&(e.textContent=""))}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Hr(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 Kr=0;var Xr=Math.random().toString(36).slice(2),Yr="__reactFiber$"+Xr,$r="__reactProps$"+Xr,Qr="__reactContainer$"+Xr,Jr="__reactEvents$"+Xr;function Zr(e){var t=e[Yr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Qr]||n[Yr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Hr(e);null!==e;){if(n=e[Yr])return n;e=Hr(e)}return t}n=(e=n).parentNode}return null}function ei(e){return!(e=e[Yr]||e[Qr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ti(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ni(e){return e[$r]||null}function ri(e){var t=e[Jr];return void 0===t&&(t=e[Jr]=new Set),t}var ii=[],oi=-1;function ai(e){return{current:e}}function si(e){0>oi||(e.current=ii[oi],ii[oi]=null,oi--)}function ui(e,t){oi++,ii[oi]=e.current,e.current=t}var ci={},li=ai(ci),fi=ai(!1),di=ci;function hi(e,t){var n=e.type.contextTypes;if(!n)return ci;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 pi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gi(){si(fi),si(li)}function vi(e,t,n){if(li.current!==ci)throw Error(a(168));ui(li,t),ui(fi,n)}function mi(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,K(t)||"Unknown",o));return i({},n,r)}function yi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ci,di=li.current,ui(li,e),ui(fi,fi.current),!0}function bi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,si(fi),si(li),ui(li,e)):si(fi),ui(fi,n)}var _i=null,wi=null,xi=o.unstable_runWithPriority,Oi=o.unstable_scheduleCallback,Si=o.unstable_cancelCallback,Ei=o.unstable_shouldYield,ki=o.unstable_requestPaint,Ci=o.unstable_now,Ti=o.unstable_getCurrentPriorityLevel,ji=o.unstable_ImmediatePriority,Ii=o.unstable_UserBlockingPriority,Ai=o.unstable_NormalPriority,Pi=o.unstable_LowPriority,Ni=o.unstable_IdlePriority,Mi={},Ri=void 0!==ki?ki:function(){},Li=null,Di=null,Fi=!1,Vi=Ci(),Ui=1e4>Vi?Ci:function(){return Ci()-Vi};function Bi(){switch(Ti()){case ji:return 99;case Ii:return 98;case Ai:return 97;case Pi:return 96;case Ni:return 95;default:throw Error(a(332))}}function zi(e){switch(e){case 99:return ji;case 98:return Ii;case 97:return Ai;case 96:return Pi;case 95:return Ni;default:throw Error(a(332))}}function qi(e,t){return e=zi(e),xi(e,t)}function Gi(e,t,n){return e=zi(e),Oi(e,t,n)}function Wi(){if(null!==Di){var e=Di;Di=null,Si(e)}Hi()}function Hi(){if(!Fi&&null!==Li){Fi=!0;var e=0;try{var t=Li;qi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Li=null}catch(n){throw null!==Li&&(Li=Li.slice(e+1)),Oi(ji,Wi),n}finally{Fi=!1}}}var Ki=w.ReactCurrentBatchConfig;function Xi(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}return t}var Yi=ai(null),$i=null,Qi=null,Ji=null;function Zi(){Ji=Qi=$i=null}function eo(e){var t=Yi.current;si(Yi),e.type._context._currentValue=t}function to(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}
2function no(e,t){$i=e,Ji=Qi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Ma=!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===Qi){if(null===$i)throw Error(a(308));Qi=t,$i.dependencies={lanes:0,firstContext:t,responders:null}}else Qi=Qi.next=t;return e._currentValue}var io=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ao(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}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.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function lo(e,t,n,r){var o=e.updateQueue;io=!1;var a=o.firstBaseUpdate,s=o.lastBaseUpdate,u=o.shared.pending;if(null!==u){o.shared.pending=null;var c=u,l=c.next;c.next=null,null===s?a=l:s.next=l,s=c;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==s&&(null===d?f.firstBaseUpdate=l:d.next=l,f.lastBaseUpdate=c)}}if(null!==a){for(d=o.baseState,s=0,f=l=c=null;;){u=a.lane;var h=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(u=t,h=n,g.tag){case 1:if("function"===typeof(p=g.payload)){d=p.call(h,d,u);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null===(u="function"===typeof(p=g.payload)?p.call(h,d,u):p)||void 0===u)break e;d=i({},d,u);break e;case 2:io=!0}}null!==a.callback&&(e.flags|=32,null===(u=o.effects)?o.effects=[a]:u.push(a))}else h={eventTime:h,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(l=f=h,c=d):f=f.next=h,s|=u;if(null===(a=a.next)){if(null===(u=o.shared.pending))break;a=u.next,u.next=null,o.lastBaseUpdate=u,o.shared.pending=null}}null===f&&(c=d),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=f,Fs|=s,e.lanes=s,e.memoizedState=d}}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=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var ho=(new r.Component).refs;function po(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var go={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=cu(),i=lu(e),o=so(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fu(e,i,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=cu(),i=lu(e),o=so(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),uo(e,o),fu(e,i,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=cu(),r=lu(e),i=so(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),uo(e,i),fu(e,r,n)}};function vo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!cr(n,r)||!cr(i,o))}function mo(e,t,n){var r=!1,i=ci,o=t.contextType;return"object"===typeof o&&null!==o?o=ro(o):(i=pi(t)?di:li.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?hi(e,i):ci),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=go,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function yo(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&&go.enqueueReplaceState(t,t.state,null)}function bo(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=ho,oo(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=ro(o):(o=pi(t)?di:li.current,i.context=hi(e,o)),lo(e,n,i,r),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(po(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&&go.enqueueReplaceState(i,i.state,null),lo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4)}var _o=Array.isArray;function wo(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: 15,658 bytes, line 2
2t===ho&&(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 xo(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 Oo(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.flags=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=qu(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.flags=2,n):r:(t.flags=2,n):n}function s(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Ku(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=wo(e,t,n),r.return=e,r):((r=Gu(n.type,n.key,n.props,null,e.mode,r)).ref=wo(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=Xu(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=Wu(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ku(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Gu(t.type,t.key,t.props,null,e.mode,n)).ref=wo(e,null,t),n.return=e,n;case O:return(t=Xu(t,e.mode,n)).return=e,t}if(_o(t)||z(t))return(t=Wu(t,e.mode,n,null)).return=e,t;xo(e,t)}return null}function h(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 x:return n.key===i?n.type===S?f(e,t,n.props.children,r,i):c(e,t,n,r):null;case O:return n.key===i?l(e,t,n,r):null}if(_o(n)||z(n))return null!==i?null:f(e,t,n,r,null);xo(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 x:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,i,r.key):c(t,e,r,i);case O:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(_o(r)||z(r))return f(t,e=e.get(n)||null,r,i,null);xo(t,r)}return null}function g(i,a,s,u){for(var c=null,l=null,f=a,g=a=0,v=null;null!==f&&g<s.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=h(i,f,s[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(i,f),a=o(m,a,g),null===l?c=m:l.sibling=m,l=m,f=v}if(g===s.length)return n(i,f),c;if(null===f){for(;g<s.length;g++)null!==(f=d(i,s[g],u))&&(a=o(f,a,g),null===l?c=f:l.sibling=f,l=f);return c}for(f=r(i,f);g<s.length;g++)null!==(v=p(f,i,g,s[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=o(v,a,g),null===l?c=v:l.sibling=v,l=v);return e&&f.forEach((function(e){return t(i,e)})),c}function v(i,s,u,c){var l=z(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,g=s,v=s=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=h(i,g,y.value,c);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(i,g),s=o(b,s,v),null===f?l=b:f.sibling=b,f=b,g=m}if(y.done)return n(i,g),l;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=d(i,y.value,c))&&(s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return l}for(g=r(i,g);!y.done;v++,y=u.next())null!==(y=p(g,i,v,y.value,c))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),s=o(y,s,v),null===f?l=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(i,e)})),l}return function(e,r,o,u){var c="object"===typeof o&&null!==o&&o.type===S&&null===o.key;c&&(o=o.props.children);var l="object"===typeof o&&null!==o;if(l)switch(o.$$typeof){case x:e:{for(l=o.key,c=r;null!==c;){if(c.key===l){switch(c.tag){case 7:if(o.type===S){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=wo(e,c,o),r.return=e,e=r;break e}}n(e,c);break}t(e,c),c=c.sibling}o.type===S?((r=Wu(o.props.children,e.mode,u,o.key)).return=e,e=r):((u=Gu(o.type,o.key,o.props,null,e.mode,u)).ref=wo(e,r,o),u.return=e,e=u)}return s(e);case O: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=Xu(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=Ku(o,e.mode,u)).return=e,e=r),s(e);if(_o(o))return g(e,r,o,u);if(z(o))return v(e,r,o,u);if(l&&xo(e,o),"undefined"===typeof o&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,K(e.type)||"Component"))}return n(e,r)}}var So=Oo(!0),Eo=Oo(!1),ko={},Co=ai(ko),To=ai(ko),jo=ai(ko);function Io(e){if(e===ko)throw Error(a(174));return e}function Ao(e,t){switch(ui(jo,t),ui(To,e),ui(Co,ko),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}si(Co),ui(Co,t)}function Po(){si(Co),si(To),si(jo)}function No(e){Io(jo.current);var t=Io(Co.current),n=pe(t,e.type);t!==n&&(ui(To,e),ui(Co,n))}function Mo(e){To.current===e&&(si(Co),si(To))}var Ro=ai(0);function Lo(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.flags))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}var Do=null,Fo=null,Vo=!1;function Uo(e,t){var n=Bu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Bo(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 zo(e){if(Vo){var t=Fo;if(t){var n=t;if(!Bo(e,t)){if(!(t=Wr(n.nextSibling))||!Bo(e,t))return e.flags=-1025&e.flags|2,Vo=!1,void(Do=e);Uo(Do,n)}Do=e,Fo=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,Vo=!1,Do=e}}function qo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Do=e}function Go(e){if(e!==Do)return!1;if(!Vo)return qo(e),Vo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Br(t,e.memoizedProps))for(t=Fo;t;)Uo(e,t),t=Wr(t.nextSibling);if(qo(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){Fo=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fo=null}}else Fo=Do?Wr(e.stateNode.nextSibling):null;return!0}function Wo(){Fo=Do=null,Vo=!1}var Ho=[];function Ko(){for(var e=0;e<Ho.length;e++)Ho[e]._workInProgressVersionPrimary=null;Ho.length=0}var Xo=w.ReactCurrentDispatcher,Yo=w.ReactCurrentBatchConfig,$o=0,Qo=null,Jo=null,Zo=null,ea=!1,ta=!1;function na(){throw Error(a(321))}function ra(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function ia(e,t,n,r,i,o){if($o=o,Qo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xo.current=null===e||null===e.memoizedState?Ia:Aa,e=n(r,i),ta){o=0;do{if(ta=!1,!(25>o))throw Error(a(301));o+=1,Zo=Jo=null,t.updateQueue=null,Xo.current=Pa,e=n(r,i)}while(ta)}if(Xo.current=ja,t=null!==Jo&&null!==Jo.next,$o=0,Zo=Jo=Qo=null,ea=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zo?Qo.memoizedState=Zo=e:Zo=Zo.next=e,Zo}function aa(){if(null===Jo){var e=Qo.alternate;e=null!==e?e.memoizedState:null}else e=Jo.next;var t=null===Zo?Qo.memoizedState:Zo.next;if(null!==t)Zo=t,Jo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Jo=e).memoizedState,baseState:Jo.baseState,baseQueue:Jo.baseQueue,queue:Jo.queue,next:null},null===Zo?Qo.memoizedState=Zo=e:Zo=Zo.next=e}return Zo}function sa(e,t){return"function"===typeof t?t(e):t}function ua(e){var t=aa(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Jo,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.lane;if(($o&l)===l)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:l,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(s=u=f,o=r):u=u.next=f,Qo.lanes|=l,Fs|=l}c=c.next}while(null!==c&&c!==i);null===u?o=r:u.next=s,sr(r,t.memoizedState)||(Ma=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ca(e){var t=aa(),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);sr(o,t.memoizedState)||(Ma=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function la(e,t,n){var r=t._getVersion;r=r(t._source);var i=t._workInProgressVersionPrimary;if(null!==i?e=i===r:(e=e.mutableReadLanes,(e=($o&e)===e)&&(t._workInProgressVersionPrimary=r,Ho.push(t))),e)return n(t._source);throw Ho.push(t),Error(a(350))}function fa(e,t,n,r){var i=Is;if(null===i)throw Error(a(349));var o=t._getVersion,s=o(t._source),u=Xo.current,c=u.useState((function(){return la(i,t,n)})),l=c[1],f=c[0];c=Zo;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,g=d.source;d=d.subscribe;var v=Qo;return e.memoizedState={refs:h,source:t,subscribe:r},u.useEffect((function(){h.getSnapshot=n,h.setSnapshot=l;var e=o(t._source);if(!sr(s,e)){e=n(t._source),sr(f,e)||(l(e),e=lu(v),i.mutableReadLanes|=e&i.pendingLanes),e=i.mutableReadLanes,i.entangledLanes|=e;for(var r=i.entanglements,a=e;0<a;){var u=31-Gt(a),c=1<<u;r[u]|=e,a&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=lu(v);i.mutableReadLanes|=r&i.pendingLanes}catch(o){n((function(){throw o}))}}))}),[t,r]),sr(p,n)&&sr(g,t)&&sr(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:f}).dispatch=l=Ta.bind(null,Qo,e),c.queue=e,c.baseQueue=null,f=la(i,t,n),c.memoizedState=c.baseState=f),f}function da(e,t,n){return fa(aa(),e,t,n)}function ha(e){var t=oa();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e}).dispatch=Ta.bind(null,Qo,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Qo.updateQueue)?(t={lastEffect:null},Qo.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 ga(e){return e={current:e},oa().memoizedState=e}function va(){return aa().memoizedState}function ma(e,t,n,r){var i=oa();Qo.flags|=e,i.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function ya(e,t,n,r){var i=aa();r=void 0===r?null:r;var o=void 0;if(null!==Jo){var a=Jo.memoizedState;if(o=a.destroy,null!==r&&ra(r,a.deps))return void pa(t,n,o,r)}Qo.flags|=e,i.memoizedState=pa(1|t,n,o,r)}function ba(e,t){return ma(516,4,e,t)}function _a(e,t){return ya(516,4,e,t)}function wa(e,t){return ya(4,2,e,t)}function xa(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 Oa(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ya(4,2,xa.bind(null,t,e),n)}function Sa(){}function Ea(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ka(e,t){var n=aa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ra(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=Bi();qi(98>n?98:n,(function(){e(!0)})),qi(97<n?97:n,(function(){var n=Yo.transition;Yo.transition=1;try{e(!1),t()}finally{Yo.transition=n}}))}function Ta(e,t,n){var r=cu(),i=lu(e),o={lane:i,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?o.next=o:(o.next=a.next,a.next=o),t.pending=o,a=e.alternate,e===Qo||null!==a&&a===Qo)ta=ea=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var s=t.lastRenderedState,u=a(s,n);if(o.eagerReducer=a,o.eagerState=u,sr(u,s))return}catch(c){}fu(e,i,r)}}var ja={readContext:ro,useCallback:na,useContext:na,useEffect:na,useImperativeHandle:na,useLayoutEffect:na,useMemo:na,useReducer:na,useRef:na,useState:na,useDebugValue:na,useDeferredValue:na,useTransition:na,useMutableSource:na,useOpaqueIdentifier:na,unstable_isNewReconciler:!1},Ia={readContext:ro,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:ro,useEffect:ba,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ma(4,2,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oa();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=Ta.bind(null,Qo,e),[r.memoizedState,e]},useRef:ga,useState:ha,useDebugValue:Sa,useDeferredValue:function(e){var t=ha(e),n=t[0],r=t[1];return ba((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=ha(!1),t=e[0];return ga(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},fa(r,e,t,n)},useOpaqueIdentifier:function(){if(Vo){var e=!1,t=function(e){return{$$typeof:R,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(Kr++).toString(36))),Error(a(355))})),n=ha(t)[1];return 0===(2&Qo.mode)&&(Qo.flags|=516,pa(5,(function(){n("r:"+(Kr++).toString(36))}),void 0,null)),t}return ha(t="r:"+(Kr++).toString(36)),t},unstable_isNewReconciler:!1},Aa={readContext:ro,useCallback:Ea,useContext:ro,useEffect:_a,useImperativeHandle:Oa,useLayoutEffect:wa,useMemo:ka,useReducer:ua,useRef:va,useState:function(){return ua(sa)},useDebugValue:Sa,useDeferredValue:function(e){var t=ua(sa),n=t[0],r=t[1];return _a((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=ua(sa)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return ua(sa)[0]},unstable_isNewReconciler:!1},Pa={readContext:ro,useCallback:Ea,useContext:ro,useEffect:_a,useImperativeHandle:Oa,useLayoutEffect:wa,useMemo:ka,useReducer:ca,useRef
2:va,useState:function(){return ca(sa)},useDebugValue:Sa,useDeferredValue:function(e){var t=ca(sa),n=t[0],r=t[1];return _a((function(){var t=Yo.transition;Yo.transition=1;try{r(e)}finally{Yo.transition=t}}),[e]),n},useTransition:function(){var e=ca(sa)[0];return[va().current,e]},useMutableSource:da,useOpaqueIdentifier:function(){return ca(sa)[0]},unstable_isNewReconciler:!1},Na=w.ReactCurrentOwner,Ma=!1;function Ra(e,t,n,r){t.child=null===e?Eo(t,null,n,r):So(t,e.child,n,r)}function La(e,t,n,r,i){n=n.render;var o=t.ref;return no(t,i),r=ia(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Ra(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function Da(e,t,n,r,i,o){if(null===e){var a=n.type;return"function"!==typeof a||zu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Gu(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Fa(e,t,a,r,i,o))}return a=e.child,0===(i&o)&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:cr)(i,r)&&e.ref===t.ref)?ns(e,t,o):(t.flags|=1,(e=qu(a,r)).ref=t.ref,e.return=t,t.child=e)}function Fa(e,t,n,r,i,o){if(null!==e&&cr(e.memoizedProps,r)&&e.ref===t.ref){if(Ma=!1,0===(o&i))return t.lanes=e.lanes,ns(e,t,o);0!==(16384&e.flags)&&(Ma=!0)}return Ba(e,t,n,r,o)}function Va(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0===(4&t.mode))t.memoizedState={baseLanes:0},bu(t,n);else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},bu(t,e),null;t.memoizedState={baseLanes:0},bu(t,null!==o?o.baseLanes:n)}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,bu(t,r);return Ra(e,t,i,n),t.child}function Ua(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Ba(e,t,n,r,i){var o=pi(n)?di:li.current;return o=hi(t,o),no(t,i),n=ia(e,t,n,r,o,i),null===e||Ma?(t.flags|=1,Ra(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~i,ns(e,t,i))}function za(e,t,n,r,i){if(pi(n)){var o=!0;yi(t)}else o=!1;if(no(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),mo(t,n,r),bo(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=hi(t,c=pi(n)?di:li.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)&&yo(t,a,r,c),io=!1;var d=t.memoizedState;a.state=d,lo(t,r,a,i),u=t.memoizedState,s!==r||d!==u||fi.current||io?("function"===typeof l&&(po(t,n,l,r),u=t.memoizedState),(s=io||vo(t,n,s,r,d,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.flags|=4)):("function"===typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ao(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:Xi(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=ro(u):u=hi(t,u=pi(n)?di:li.current);var h=n.getDerivedStateFromProps;(l="function"===typeof h||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==u)&&yo(t,a,r,u),io=!1,d=t.memoizedState,a.state=d,lo(t,r,a,i);var p=t.memoizedState;s!==f||d!==p||fi.current||io?("function"===typeof h&&(po(t,n,h,r),p=t.memoizedState),(c=io||vo(t,n,c,r,d,p,u))?(l||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return qa(e,t,n,r,o,i)}function qa(e,t,n,r,i,o){Ua(e,t);var a=0!==(64&t.flags);if(!r&&!a)return i&&bi(t,n,!1),ns(e,t,o);r=t.stateNode,Na.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=So(t,e.child,null,o),t.child=So(t,null,s,o)):Ra(e,t,s,o),t.memoizedState=r.state,i&&bi(t,n,!0),t.child}function Ga(e){var t=e.stateNode;t.pendingContext?vi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vi(0,t.context,!1),Ao(e,t.containerInfo)}var Wa,Ha,Ka,Xa={dehydrated:null,retryLane:0};function Ya(e,t,n){var r,i=t.pendingProps,o=Ro.current,a=!1;return(r=0!==(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?
vendor: 4,221 bytes, line 2
2(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(o|=1),ui(Ro,1&o),null===e?(void 0!==i.fallback&&zo(t),e=i.children,o=i.fallback,a?(e=$a(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"===typeof i.unstable_expectedLoadTime?(e=$a(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Hu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(i=Ja(e,t,i.children,i.fallback,n),a=t.child,o=e.child.memoizedState,a.memoizedState=null===o?{baseLanes:n}:{baseLanes:o.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Xa,i):(n=Qa(e,t,i.children,n),t.memoizedState=null,n))}function $a(e,t,n,r){var i=e.mode,o=e.child;return t={mode:"hidden",children:t},0===(2&i)&&null!==o?(o.childLanes=0,o.pendingProps=t):o=Hu(t,i,0,null),n=Wu(n,i,r,null),o.return=e,n.return=e,o.sibling=n,e.child=o,n}function Qa(e,t,n,r){var i=e.child;return e=i.sibling,n=qu(i,{mode:"visible",children:n}),0===(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function Ja(e,t,n,r,i){var o=t.mode,a=e.child;e=a.sibling;var s={mode:"hidden",children:n};return 0===(2&o)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=s,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=qu(a,s),null!==e?r=qu(e,r):(r=Wu(r,o,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Za(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),to(e.return,t)}function es(e,t,n,r,i,o){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,lastEffect:o}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i,a.lastEffect=o)}function ts(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ra(e,t,r.children,n),0!==(2&(r=Ro.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!==(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Za(e,n);else if(19===e.tag)Za(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(ui(Ro,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===Lo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),es(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===Lo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}es(t,!0,n,null,o,t.lastEffect);break;case"together":es(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function ns(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fs|=t.lanes,0!==(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=qu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=qu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function rs(e,t){if(!Vo)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 is(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 pi(t.type)&&gi(),null;case 3:return Po(),si(fi),si(li),Ko(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Go(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Mo(t);var o=Io(jo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ha(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Io(Co.current),Go(t)){r=t.stateNode,n=t.type;var s=t.memoizedProps;
2switch(r[Yr]=t,r[$r]=s,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<Or.length;e++)Cr(Or[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,s),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},Cr("invalid",r);break;case"textarea":ue(r,s),Cr("invalid",r)}for(var c in Se(n,s),e=null,s)s.hasOwnProperty(c)&&(o=s[c],"children"===c?"string"===typeof o?r.textContent!==o&&(e=["children",o]):"number"===typeof o&&r.textContent!==""+o&&(e=["children",""+o]):u.hasOwnProperty(c)&&null!=o&&"onScroll"===c&&Cr("scroll",r));switch(n){case"input":$(r),re(r,s,!0);break;case"textarea":$(r),le(r);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===o.nodeType?o:o.ownerDocument,e===fe&&(e=he(n)),e===fe?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Yr]=t,e[$r]=r,Wa(e,t),t.stateNode=e,c=Ee(n,r),n){case"dialog":Cr
vendor: 6,768 bytes, line 2
2("cancel",e),Cr("close",e),o=r;break;case"iframe":case"object":case"embed":Cr("load",e),o=r;break;case"video":case"audio":for(o=0;o<Or.length;o++)Cr(Or[o],e);o=r;break;case"source":Cr("error",e),o=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),o=r;break;case"details":Cr("toggle",e),o=r;break;case"input":ee(e,r),o=Z(e,r),Cr("invalid",e);break;case"option":o=oe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=i({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":ue(e,r),o=se(e,r),Cr("invalid",e);break;default:o=r}Se(n,o);var l=o;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];"style"===s?xe(e,f):"dangerouslySetInnerHTML"===s?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===s?"string"===typeof f?("textarea"!==n||""!==f)&&ye(e,f):"number"===typeof f&&ye(e,""+f):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(u.hasOwnProperty(s)?null!=f&&"onScroll"===s&&Cr("scroll",e):null!=f&&_(e,s,f,c))}switch(n){case"input":$(e),re(e,r,!1);break;case"textarea":$(e),le(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(s=r.value)?ae(e,!!r.multiple,s,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Dr)}Ur(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Ka(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Io(jo.current),Io(Co.current),Go(t)?(r=t.stateNode,n=t.memoizedProps,r[Yr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Yr]=t,t.stateNode=r)}return null;case 13:return si(Ro),r=t.memoizedState,0!==(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Go(t):n=null!==e.memoizedState,r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ro.current)?0===Rs&&(Rs=3):(0!==Rs&&3!==Rs||(Rs=4),null===Is||0===(134217727&Fs)&&0===(134217727&Vs)||gu(Is,Ps))),(r||n)&&(t.flags|=4),null);case 4:return Po(),null===e&&jr(t.stateNode.containerInfo),null;case 10:return eo(t),null;case 17:return pi(t.type)&&gi(),null;case 19:if(si(Ro),null===(r=t.memoizedState))return null;if(s=0!==(64&t.flags),null===(c=r.rendering))if(s)rs(r,!1);else{if(0!==Rs||null!==e&&0!==(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=Lo(e))){for(t.flags|=64,rs(r,!1),null!==(s=c.updateQueue)&&(t.updateQueue=s,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(s=n).flags&=2,s.nextEffect=null,s.firstEffect=null,s.lastEffect=null,null===(c=s.alternate)?(s.childLanes=0,s.lanes=e,s.child=null,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ui(Ro,1&Ro.current|2),t.child}e=e.sibling}null!==r.tail&&Ui()>qs&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432)}else{if(!s)if(null!==(e=Lo(c))){if(t.flags|=64,s=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),rs(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Vo)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>qs&&1073741824!==n&&(t.flags|=64,s=!0,rs(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=Ro.current,ui(Ro,s?1&t|2:1&t),n):null;case 23:case 24:return _u(),null!==e&&null!==e.memoizedState!==(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function os(e){switch(e.tag){case 1:pi(e.type)&&gi();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Po(),si(fi),si(li),Ko(),0!==(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Mo(e),null;case 13:return si(Ro),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return si(Ro),null;case 4:return Po(),null;case 10:return eo(e),null;case 23:case 24:return _u(),null;default:return null}}function as(e,t){try{var n="",r=t;do{n+=H(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i}}function ss(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}Wa=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}},Ha=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Io(Co.current);var a,s=null;switch(n){case"input":o=Z(e,o),r=Z(e,r),s=[];break;case"option":o=oe(e,o),r=oe(e,r),s=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),s=[];break;case"textarea":o=se(e,o),r=se(e,r),s=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(e.onclick=Dr)}for(f in Se(n,r),n=null,o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&null!=o[f])if("style"===f){var c=o[f];for(a in c)c.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?s||(s=[]):(s=s||[]).push(f,null));for(f in r){var l=r[f];if(c=null!=o?o[f]:void 0,r.hasOwnProperty(f)&&l!==c&&(null!=l||null!=c))if("style"===f)if(c){for(a in c)!c.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&c[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(s||(s=[]),s.push(f,n)),n=l;else"dangerouslySetInnerHTML"===f?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(s=s||[]).push(f,l)):"children"===f?"string"!==typeof l&&"number"!==typeof l||(s=s||[]).push(f,""+l):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=l&&"onScroll"===f&&Cr("scroll",e),s||c===l||(s=[])):"object"===typeof l&&null!==l&&l.$$typeof===R?l.toString():(s=s||[]).push(f,l))}n&&(s=s||[]).push("style",n);var f=s;(t.updateQueue=f)&&(t.flags|=4)}},Ka=function(e,t,n,r){n!==r&&(t.flags|=4)};var us="function"===typeof WeakMap?WeakMap:Map;function cs(e,t,n){(n=so(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ks||(Ks=!0,Xs=r),ss(0,t)},n}
2function ls(e,t,n){(n=so(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return ss(0,t),r(i)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ys?Ys=new Set([this]):Ys.add(this),ss(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var fs="function"===typeof WeakSet?WeakSet:Set;function ds(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Du(e,n)}else t.current=null}function hs(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xi(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Gr(t.stateNode.containerInfo));case 5:case 6:case 4:case 17:return}throw Error(a(163))}function ps(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3===(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var i=e;r=i.next,0!==(4&(i=i.tag))&&0!==(1&i)&&(Mu(n,e),Nu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xi(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),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.flags&&Ur(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&&xt(n)))));case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(a(163))}function gs(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var i=n.memoizedProps.style;i=void 0!==i&&null!==i&&i.hasOwnProperty("display")?i.display:null,r.style.display=we("display",i)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function vs(e,t){if(wi&&"function"===typeof wi.onCommitFiberUnmount)try{wi.onCommitFiberUnmount(_i,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,i=r.destroy;if(r=r.tag,void 0!==i)if(0!==(4&r))Mu(t,n);else{r=t;try{i()}catch(o){Du(r,o)}}n=n.next}while(n!==e)}break;case 1:if(ds(t),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){Du(t,o)}break;case 5:ds(t);break;case 4:xs(e,t)}}function ms(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function ys(e){return 5===e.tag||3===e.tag||4===e.tag}function bs(e){e:{for(var t=e.return;null!==t;){if(ys(t))break e;t=t.return}throw Error(a(160))}var n=t;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.flags&&(ye(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||ys(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.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?_s(e,n,t):ws(e,n,t)}
vendor: 11,924 bytes, line 2
2function _s(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Dr));else if(4!==r&&null!==(e=e.child))for(_s(e,t,n),e=e.sibling;null!==e;)_s(e,t,n),e=e.sibling}function ws(e,t,n){var r=e.tag,i=5===r||6===r;if(i)e=i?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ws(e,t,n),e=e.sibling;null!==e;)ws(e,t,n),e=e.sibling}function xs(e,t){for(var n,r,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(n=o.stateNode,o.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var s=e,u=i,c=u;;)if(vs(s,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(s=n,u=i.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,r=!0,i.child.return=i,i=i.child;continue}}else if(vs(e,i),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function Os(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3===(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[$r]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ee(e,i),t=Ee(e,r),i=0;i<o.length;i+=2){var s=o[i],u=o[i+1];"style"===s?xe(n,u):"dangerouslySetInnerHTML"===s?me(n,u):"children"===s?ye(n,u):_(n,s,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ae(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(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((n=t.stateNode).hydrate&&(n.hydrate=!1,xt(n.containerInfo)));case 12:return;case 13:return null!==t.memoizedState&&(zs=Ui(),gs(t.child,!0)),void Ss(t);case 19:return void Ss(t);case 17:return;case 23:case 24:return void gs(t,null!==t.memoizedState)}throw Error(a(163))}function Ss(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new fs),t.forEach((function(t){var r=Vu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Es(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&(null!==(t=t.memoizedState)&&null===t.dehydrated)}var ks=Math.ceil,Cs=w.ReactCurrentDispatcher,Ts=w.ReactCurrentOwner,js=0,Is=null,As=null,Ps=0,Ns=0,Ms=ai(0),Rs=0,Ls=null,Ds=0,Fs=0,Vs=0,Us=0,Bs=null,zs=0,qs=1/0;function Gs(){qs=Ui()+500}var Ws,Hs=null,Ks=!1,Xs=null,Ys=null,$s=!1,Qs=null,Js=90,Zs=[],eu=[],tu=null,nu=0,ru=null,iu=-1,ou=0,au=0,su=null,uu=!1;function cu(){return 0!==(48&js)?Ui():-1!==iu?iu:iu=Ui()}function lu(e){if(0===(2&(e=e.mode)))return 1;if(0===(4&e))return 99===Bi()?1:2;if(0===ou&&(ou=Ds),0!==Ki.transition){0!==au&&(au=null!==Bs?Bs.pendingLanes:0),e=ou;var t=4186112&~au;return 0===(t&=-t)&&(0===(t=(e=4186112&~e)&-e)&&(t=8192)),t}return e=Bi(),0!==(4&js)&&98===e?e=Ut(12,ou):e=Ut(e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),ou),e}function fu(e,t,n){if(50<nu)throw nu=0,ru=null,Error(a(185));if(null===(e=du(e,t)))return null;qt(e,t,n),e===Is&&(Vs|=t,4===Rs&&gu(e,Ps));var r=Bi();1===t?0!==(8&js)&&0===(48&js)?vu(e):(hu(e,n),0===js&&(Gs(),Wi())):(0===(4&js)||98!==r&&99!==r||(null===tu?tu=new Set([e]):tu.add(e)),hu(e,n)),Bs=e}function du(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,i=e.pingedLanes,o=e.expirationTimes,s=e.pendingLanes;0<s;){var u=31-Gt(s),c=1<<u,l=o[u];if(-1===l){if(0===(c&r)||0!==(c&i)){l=t,Dt(c);var f=Lt;o[u]=10<=f?l+250:6<=f?l+5e3:-1}}else l<=t&&(e.expiredLanes|=c);s&=~c}if(r=Ft(e,e===Is?Ps:0),t=Lt,0===r)null!==n&&(n!==Mi&&Si(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mi&&Si(n)}15===t?(n=vu.bind(null,e),null===Li?(Li=[n],Di=Oi(ji,Hi)):Li.push(n),n=Mi):14===t?n=Gi(99,vu.bind(null,e)):n=Gi(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),pu.bind(null,e)),e.callbackPriority=t,e.callbackNode=n}}function pu(e){if(iu=-1,au=ou=0,0!==(48&js))throw Error(a(327));var t=e.callbackNode;if(Pu()&&e.callbackNode!==t)return null;var n=Ft(e,e===Is?Ps:0);if(0===n)return null;var r=n,i=js;js|=16;var o=Ou();for(Is===e&&Ps===r||(Gs(),wu(e,r));;)try{ku();break}catch(u){xu(e,u)}if(Zi(),Cs.current=o,js=i,null!==As?r=0:(Is=null,Ps=0,r=Rs),0!==(Ds&Vs))wu(e,0);else if(0!==r){if(2===r&&(js|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(n=Vt(e))&&(r=Su(e,n))),1===r)throw t=Ls,wu(e,0),gu(e,n),hu(e,Ui()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:ju(e);break;case 3:if(gu(e,n),(62914560&n)===n&&10<(r=zs+500-Ui())){if(0!==Ft(e,0))break;if(((i=e.suspendedLanes)&n)!==n){cu(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=zr(ju.bind(null,e),r);break}ju(e);break;case 4:if(gu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,i=-1;0<n;){var s=31-Gt(n);o=1<<s,(s=r[s])>i&&(i=s),n&=~o}if(n=i,10<(n=(120>(n=Ui()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ks(n/1960))-n)){e.timeoutHandle=zr(ju.bind(null,e),n);break}ju(e);break;case 5:ju(e);break;default:throw Error(a(329))}}return hu(e,Ui()),e.callbackNode===t?pu.bind(null,e):null}function gu(e,t){for(t&=~Us,t&=~Vs,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Gt(t),r=1<<n;e[n]=-1,t&=~r}}function vu(e){if(0!==(48&js))throw Error(a(327));if(Pu(),e===Is&&0!==(e.expiredLanes&Ps)){var t=Ps,n=Su(e,t);0!==(Ds&Vs)&&(n=Su(e,t=Ft(e,t)))}else n=Su(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(js|=64,e.hydrate&&(e.hydrate=!1,Gr(e.containerInfo)),0!==(t=Vt(e))&&(n=Su(e,t))),1===n)throw n=Ls,wu(e,0),gu(e,t),hu(e,Ui()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,ju(e),hu(e,Ui()),null}function mu(e,t){var n=js;js|=1;try{return e(t)}finally{0===(js=n)&&(Gs(),Wi())}}function yu(e,t){var n=js;js&=-2,js|=8;try{return e(t)}finally{0===(js=n)&&(Gs(),Wi())}}function bu(e,t){ui(Ms,Ns),Ns|=t,Ds|=t}function _u(){Ns=Ms.current,si(Ms)}function wu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,qr(n)),null!==As)for(n=As.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&gi();break;case 3:Po(),si(fi),si(li),Ko();break;case 5:Mo(r);break;case 4:Po();break;case 13:case 19:si(Ro);break;case 10:eo(r);break;case 23:case 24:_u()}n=n.return}Is=e,As=qu(e.current,null),Ps=Ns=Ds=t,Rs=0,Ls=null,Us=Vs=Fs=0}function xu(e,t){for(;;){var n=As;try{if(Zi(),Xo.current=ja,ea){for(var r=Qo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ea=!1}if($o=0,Zo=Jo=Qo=null,ta=!1,Ts.current=null,null===n||null===n.return){Rs=1,Ls=t,As=null;break}e:{var o=e,a=n.return,s=n,u=t;if(t=Ps,s.flags|=2048,s.firstEffect=s.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u;if(0===(2&s.mode)){var l=s.alternate;l?(s.updateQueue=l.updateQueue,s.memoizedState=l.memoizedState,s.lanes=l.lanes):(s.updateQueue=null,s.memoizedState=null)}var f=0!==(1&Ro.current),d=a;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=d.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(h){var v=d.updateQueue;if(null===v){var m=new Set;m.add(c),d.updateQueue=m}else v.add(c);if(0===(2&d.mode)){if(d.flags|=64,s.flags|=16384,s.flags&=-2981,1===s.tag)if(null===s.alternate)s.tag=17;else{var y=so(-1,1);y.tag=2,uo(s,y)}s.lanes|=1;break e}u=void 0,s=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new us,u=new Set,b.set(c,u)):void 0===(u=b.get(c))&&(u=new Set,b.set(c,u)),!u.has(s)){u.add(s);var _=Fu.bind(null,o,c,s);c.then(_,_)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((K(s.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.")}5!==Rs&&(Rs=2),u=as(u,s),d=a;do{switch(d.tag){case 3:o=u,d.flags|=4096,t&=-t,d.lanes|=t,co(d,cs(0,o,t));break e;case 1:o=u;var w=d.type,x=d.stateNode;if(0===(64&d.flags)&&("function"===typeof w.getDerivedStateFromError||null!==x&&"function"===typeof x.componentDidCatch&&(null===Ys||!Ys.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,co(d,ls(d,o,t));break e}}d=d.return}while(null!==d)}Tu(n)}catch(O){t=O,As===n&&null!==n&&(As=n=n.return);continue}break}}function Ou(){var e=Cs.current;return Cs.current=ja,null===e?ja:e}function Su(e,t){var n=js;js|=16;var r=Ou();for(Is===e&&Ps===t||wu(e,t);;)try{Eu();break}catch(i){xu(e,i)}if(Zi(),js=n,Cs.current=r,null!==As)throw Error(a(261));return Is=null,Ps=0,Rs}function Eu(){for(;null!==As;)Cu(As)}function ku(){for(;null!==As&&!Ei();)Cu(As)}function Cu(e){var t=Ws(e.alternate,e,Ns);e.memoizedProps=e.pendingProps,null===t?Tu(e):As=t,Ts.current=null}function Tu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(2048&t.flags)){if(null!==(n=is(n,t,Ns)))return void(As=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!==(1073741824&Ns)||0===(4&n.mode)){for(var r=0,i=n.child;null!==i;)r|=i.lanes|i.childLanes,i=i.sibling;n.childLanes=r}null!==e&&0===(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=os(t)))return n.flags&=2047,void(As=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(As=t);As=t=e}while(null!==t);0===Rs&&(Rs=5)}function ju(e){var t=Bi();return qi(99,Iu.bind(null,e,t)),null}function Iu(e,t){do{Pu()}while(null!==Qs);if(0!==(48&js))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,i=r,o=e.pendingLanes&~i;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=i,e.mutableReadLanes&=i,e.entangledLanes&=i,i=e.entanglements;for(var s=e.eventTimes,u=e.expirationTimes;0<o;){var c=31-Gt(o),l=1<<c;i[c]=0,s[c]=-1,u[c]=-1,o&=~l}if(null!==tu&&0===(24&r)&&tu.has(e)&&tu.delete(e),e===Is&&(As=Is=null,Ps=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(i=js,js|=32,Ts.current=null,Fr=Yt,pr(s=hr())){if("selectionStart"in s)u={start:s.selectionStart,end:s.selectionEnd};else e:if(u=(u=s.ownerDocument)&&u.defaultView||window,(l=u.getSelection&&u.getSelection())&&0!==l.rangeCount){u=l.anchorNode,o=l.anchorOffset,c=l.focusNode,l=l.focu
2sOffset;try{u.nodeType,c.nodeType}catch(k){u=null;break e}var f=0,d=-1,h=-1,p=0,g=0,v=s,m=null;t:for(;;){for(var y;v!==u||0!==o&&3!==v.nodeType||(d=f+o),v!==c||0!==l&&3!==v.nodeType||(h=f+l),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===s)break t;if(m===u&&++p===o&&(d=f),m===c&&++g===l&&(h=f),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}u=-1===d||-1===h?null:{start:d,end:h}}else u=null;u=u||{start:0,end:0}}else u=null;Vr={focusedElem:s,selectionRange:u},Yt=!1,su=null,uu=!1,Hs=r;do{try{Au()}catch(k){if(null===Hs)throw Error(a(330));Du(Hs,k),Hs=Hs.nextEffect}}while(null!==Hs);su=null,Hs=r;do{try{for(s=e;null!==Hs;){var b=Hs.flags;if(16&b&&ye(Hs.stateNode,""),128&b){var _=Hs.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&b){case 2:bs(Hs),Hs.flags&=-3;break;case 6:bs(Hs),Hs.flags&=-3,Os(Hs.alternate,Hs);break;case 1024:Hs.flags&=-1025;break;case 1028:Hs.flags&=-1025,Os(Hs.alternate,Hs);break;case 4:Os(Hs.alternate,Hs);break;case 8:xs(s,u=Hs);var x=u.alternate;ms(u),null!==x&&ms(x)}Hs=Hs.nextEffect}}catch(k){if(null===Hs)throw Error(a(330));Du(Hs,k),Hs=Hs.nextEffect}}while(null!==Hs);if(w=Vr,_=hr(),b=w.focusedElem,s=w.selectionRange,_!==b&&b&&b.ownerDocument&&dr(b.ownerDocument.documentElement,b)){null!==s&&pr(b)&&(_=s.start,void 0===(w=s.end)&&(w=_),"selectionStart"in b?(b.selectionStart=_,b.selectionEnd=Math.min(w,b.value.length)):(w=(_=b.ownerDocument||document)&&_.defaultView||window).getSelection&&(w=w.getSelection(),u=b.textContent.length,x=Math.min(s.start,u),s=void 0===s.end?x:Math.min(s.end,u),!w.extend&&x>s&&(u=s,s=x,x=u),u=fr(b,x),o=fr(b,s),u&&o&&(1!==w.rangeCount||w.anchorNode!==u.node||w.anchorOffset!==u.offset||w.focusNode!==o.node||w.focusOffset!==o.offset)&&((_=_.createRange()).setStart(u.node,u.offset),w.removeAllRanges(),x>s?(w.addRange(_),w.extend(o.node,o.offset)):(_.setEnd(o.node,o.offset),w.addRange(_))))),_=[];for(w=b;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<_.length;b++)(w=_[b]).element.scrollLeft=w.left,w.element.scrollTop=w.top}Yt=!!Fr,Vr=Fr=null,e.current=n,Hs=r;do{try{for(b=e;null!==Hs;){var O=Hs.flags;if(36&O&&ps(b,Hs.alternate,Hs),128&O){_=void 0;var S=Hs.ref;if(null!==S){var E=Hs.stateNode;switch(Hs.tag){case 5:_=E;break;default:_=E}"function"===typeof S?S(_):S.current=_}}Hs=Hs.nextEffect}}catch(k){if(null===Hs)throw Error(a(330));Du(Hs,k),Hs=Hs.nextEffect}}while(null!==Hs);Hs=null,Ri(),js=i}else e.current=n;if($s)$s=!1,Qs=e,Js=t;else for(Hs=r;null!==Hs;)t=Hs.nextEffect,Hs.nextEffect=null,8&Hs.flags&&((O=Hs).sibling=null,O.stateNode=null),Hs=t;if(0===(r=e.pendingLanes)&&(Ys=null),1===r?e===ru?nu++:(nu=0,ru=e):nu=0,n=n.stateNode,wi&&"function"===typeof wi.onCommitFiberRoot)try{wi.onCommitFiberRoot(_i,n,void 0,64===(64&n.current.flags))}catch(k){}if(hu(e,Ui()),Ks)throw Ks=!1,e=Xs,Xs=null,e;return 0!==(8&js)||Wi(),null}function Au(){for(;null!==Hs;){var e=Hs.alternate;uu||null===su||(0!==(8&Hs.flags)?et(Hs,su)&&(uu=!0):13===Hs.tag&&Es(e,Hs)&&et(Hs,su)&&(uu=!0));var t=Hs.flags;0!==(256&t)&&hs(e,Hs),0===(512&t)||$s||($s=!0,Gi(97,(function(){return Pu(),null}))),Hs=Hs.nextEffect}}function Pu(){if(90!==Js){var e=97<Js?97:Js;return Js=90,qi(e,Ru)}return!1}function Nu(e,t){Zs.push(t,e),$s||($s=!0,Gi(97,(function(){return Pu(),null})))}function Mu(e,t){eu.push(t,e),$s||($s=!0,Gi(97,(function(){return Pu(),null})))}function Ru(){if(null===Qs)return!1;var e=Qs;if(Qs=null,0!==(48&js))throw Error(a(331));var t=js;js|=32;var n=eu;eu=[];for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1],s=i.destroy;if(i.destroy=void 0,"function"===typeof s)try{s()}catch(c){if(null===o)throw Error(a(330));Du(o,c)}}for(n=Zs,Zs=[],r=0;r<n.length;r+=2){i=n[r],o=n[r+1];try{var u=i.create;i.destroy=u()}catch(c){if(null===o)throw Error(a(330));Du(o,c)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return js=t,Wi(),!0}function Lu(e,t,n){uo(e,t=cs(0,t=as(n,t),1)),t=cu(),null!==(e=du(e,1))&&(qt(e,1,t),hu(e,t))}function Du(e,t){if(3===e.tag)Lu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Lu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ys||!Ys.has(r))){var i=ls(n,e=as(t,e),1);if(uo(n,i),i=cu(),null!==(n=du(n,1)))qt(n,1,i),hu(n,i);else if("function"===typeof r.componentDidCatch&&(null===Ys||!Ys.has(r)))try{r.componentDidCatch(t,e)}catch(o){}break}}n=n.return}}function Fu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=cu(),e.pingedLanes|=e.suspendedLanes&n,Is===e&&(Ps&n)===n&&(4===Rs||3===Rs&&(62914560&Ps)===Ps&&500>Ui()-zs?wu(e,0):Us|=n),hu(e,t)}function Vu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(0===(2&(t=e.mode))?t=1:0===(4&t)?t=99===Bi()?1:2:(0===ou&&(ou=Ds),0===(t=Bt(62914560&~ou))&&(t=4194304))),n=cu(),null!==(e=du(e,t))&&(qt(e,t,n),hu(e,n))}function Uu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
vendor: 8,256 bytes, line 2
2ype=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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bu(e,t,n,r){return new Uu(e,t,n,r)}function zu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qu(e,t){var n=e.alternate;return null===n?((n=Bu(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.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Gu(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)zu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Wu(n.children,i,o,t);case L:s=8,i|=16;break;case E:s=8,i|=1;break;case k:return(e=Bu(12,n,t,8|i)).elementType=k,e.type=k,e.lanes=o,e;case I:return(e=Bu(13,n,t,i)).type=I,e.elementType=I,e.lanes=o,e;case A:return(e=Bu(19,n,t,i)).elementType=A,e.lanes=o,e;case D:return Hu(n,i,o,t);case F:return(e=Bu(24,n,t,i)).elementType=F,e.lanes=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:s=10;break e;case T:s=9;break e;case j:s=11;break e;case P:s=14;break e;case N:s=16,r=null;break e;case M:s=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Bu(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Wu(e,t,n,r){return(e=Bu(7,e,r,t)).lanes=n,e}function Hu(e,t,n,r){return(e=Bu(23,e,r,t)).elementType=D,e.lanes=n,e}function Ku(e,t,n){return(e=Bu(6,e,null,t)).lanes=n,e}function Xu(e,t,n){return(t=Bu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Yu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zt(0),this.expirationTimes=zt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zt(0),this.mutableSourceEagerHydrationData=null}function $u(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:O,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Qu(e,t,n,r){var i=t.current,o=cu(),s=lu(i);e:if(n){t:{if($e(n=n._reactInternals)!==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(pi(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(pi(c)){n=mi(n,c,u);break e}}n=u}else n=ci;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),fu(i,s,o),s}function Ju(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Yu(e,t,null!=n&&!0===n.hydrate),t=Bu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,oo(t),e[Qr]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var i=(t=r[e])._getVersion;i=i(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,i]:n.mutableSourceEagerHydrationData.push(t,i)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(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=Ju(a);s.call(e)}}Qu(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 tc(e,0,t?{hydrate:!0}:void 0)}(n,r),a=o._internalRoot,"function"===typeof i){var u=i;i=function(){var e=Ju(a);u.call(e)}}yu((function(){Qu(t,a,e,i)}))}return Ju(a)}function ic(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(a(200));return $u(e,t,null,n)}Ws=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||fi.current)Ma=!0;else{if(0===(n&r)){switch(Ma=!1,t.tag){case 3:Ga(t),Wo();break;case 5:No(t);break;case 1:pi(t.type)&&yi(t);break;case 4:Ao(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var i=t.type._context;ui(Yi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(n&t.child.childLanes)?Ya(e,t,n):(ui(Ro,1&Ro.current),null!==(t=ns(e,t,n))?t.sibling:null);ui(Ro,1&Ro.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(64&e.flags)){if(r)return ts(e,t,n);t.flags|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),ui(Ro,Ro.current),r)break;return null;case 23:case 24:return t.lanes=0,Va(e,t,n)}return ns(e,t,n)}Ma=0!==(16384&e.flags)}else Ma=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=hi(t,li.current),no(t,n),i=ia(null,t,r,e,i,n),t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,pi(r)){var o=!0;yi(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&&po(t,r,s,e),i.updater=go,t.stateNode=i,i._reactInternals=t,bo(t,r,e,n),t=qa(null,t,r,!0,o,n)}else t.tag=0,Ra(null,t,i,n),t=t.child;return t;case 16:i=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=(o=i._init)(i._payload),t.type=i,o=t.tag=function(e){if("function"===typeof e)return zu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===P)return 14}return 2}(i),e=Xi(i,e),o){case 0:t=Ba(null,t,i,e,n);break e;case 1:t=za(null,t,i,e,n);break e;case 11:t=La(null,t,i,e,n);break e;case 14:t=Da(null,t,i,Xi(i.type,e),r,n);break e}throw Error(a(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ba(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 1:return r=t.type,i=t.pendingProps,za(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 3:if(Ga(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)Wo(),t=ns(e,t,n);else{if((o=(i=t.stateNode).hydrate)&&(Fo=Wr(t.stateNode.containerInfo.firstChild),Do=t,o=Vo=!0),o){if(null!=(e=i.mutableSourceEagerHydrationData))for(i=0;i<e.length;i+=2)(o=e[i])._workInProgressVersionPrimary=e[i+1],Ho.push(o);for(n=Eo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ra(e,t,r,n),Wo();t=t.child}return t;case 5:return No(t),null===e&&zo(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Br(r,i)?s=null:null!==o&&Br(r,o)&&(t.flags|=16),Ua(e,t),Ra(e,t,s,n),t.child;case 6:return null===e&&zo(t),null;case 13:return Ya(e,t,n);case 4:return Ao(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=So(t,null,r,n):Ra(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,La(e,t,r,i=t.elementType===r?i:Xi(r,i),n);case 7:return Ra(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ra(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(ui(Yi,u._currentValue),u._currentValue=o,null!==s)if(u=s.value,0===(o=sr(u,o)?0:0|("function"===typeof r._calculateChangedBits?r._
vendor: 8,632 bytes, line 2
2calculateChangedBits(u,o):1073741823))){if(s.children===i.children&&!fi.current){t=ns(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(-1,n&-n)).tag=2,uo(u,l)),u.lanes|=n,null!==(l=u.alternate)&&(l.lanes|=n),to(u.return,n),c.lanes|=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}Ra(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.flags|=1,Ra(e,t,r,n),t.child;case 14:return o=Xi(i=t.type,t.pendingProps),Da(e,t,i,o=Xi(i.type,o),r,n);case 15:return Fa(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Xi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,pi(r)?(e=!0,yi(t)):e=!1,no(t,n),mo(t,r,i),bo(t,r,i,n),qa(null,t,r,!0,e,n);case 19:return ts(e,t,n);case 23:case 24:return Va(e,t,n)}throw Error(a(156,t.tag))},tc.prototype.render=function(e){Qu(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qu(null,e,null,(function(){t[Qr]=null}))},tt=function(e){13===e.tag&&(fu(e,4,cu()),ec(e,4))},nt=function(e){13===e.tag&&(fu(e,67108864,cu()),ec(e,67108864))},rt=function(e){if(13===e.tag){var t=cu(),n=lu(e);fu(e,n,t),ec(e,n)}},it=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(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=ni(r);if(!i)throw Error(a(90));Q(r),ne(r,i)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ne=mu,Me=function(e,t,n,r,i){var o=js;js|=4;try{return qi(98,e.bind(null,t,n,r,i))}finally{0===(js=o)&&(Gs(),Wi())}},Re=function(){0===(49&js)&&(function(){if(null!==tu){var e=tu;tu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hu(e,Ui())}))}Wi()}(),Pu())},Le=function(e,t){var n=js;js|=2;try{return e(t)}finally{0===(js=n)&&(Gs(),Wi())}};var oc={Events:[ei,ti,ni,Ae,Pe,Pu,{current:!1}]},ac={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},sc={bundleType:ac.bundleType,version:ac.version,rendererPackageName:ac.rendererPackageName,rendererConfig:ac.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ac.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{_i=uc.inject(sc),wi=uc}catch(ve){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oc,t.createPortal=ic,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=js;if(0!==(48&n))return e(t);js|=1;try{if(e)return qi(99,e.bind(null,t))}finally{js=n,Wi()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(a(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(a(40));return!!e._reactRootContainer&&(yu((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Qr]=null}))})),!0)},t.unstable_batchedUpdates=mu,t.unstable_createPortal=function(e,t){return ic(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},function(e,t,n){"use strict";e.exports=n(155)},function(e,t,n){"use strict";var r,i,o,a;if("object"===typeof performance&&"function"===typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var u=Date,c=u.now();t.unstable_now=function(){return u.now()-c}}if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,f=null,d=function e(){if(null!==l)try{var n=t.unstable_now();l(!0,n),l=null}catch(r){throw setTimeout(e,0),r}};r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(d,0))},i=function(e,t){f=setTimeout(e,t)},o=function(){clearTimeout(f)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,p=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,m=null,y=-1,b=5,_=0;t.unstable_shouldYield=function(){return t.unstable_now()>=_},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,x=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();_=e+b;try{m(!0,e)?x.postMessage(null):(v=!1,m=null)}catch(n){throw x.postMessage(null),n}}else v=!1},r=function(e){m=e,v||(v=!0,x.postMessage(null))},i=function(e,n){y=h((function(){e(t.unstable_now())}),n)},o=function(){p(y),y=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function E(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>k(a,n))void 0!==u&&0>k(u,a)?(e[r]=u,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[s]=n,r=s}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],T=[],j=1,I=null,A=3,P=!1,N=!1,M=!1;function R(e){for(var t=S(T);null!==t;){if(null===t.callback)E(T);else{if(!(t.startTime<=e))break;E(T),t.sortIndex=t.expirationTime,O(C,t)}t=S(T)}}function L(e){if(M=!1,R(e),!N)if(null!==S(C))N=!0,r(D);else{var t=S(T);null!==t&&i(L,t.startTime-e)}}function D(e,n){N=!1,M&&(M=!1,o()),P=!0;var r=A;try{for(R(n),I=S(C);null!==I&&(!(I.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=I.callback;if("function"===typeof a){I.callback=null,A=I.priorityLevel;var s=a(I.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?I.callback=s:I===S(C)&&E(C),R(n)}else E(C);I=S(C)}if(null!==I)var u=!0;else{var c=S(T);null!==c&&i(L,c.startTime-n),u=!1}return u}finally{I=null,A=r,P=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||P||(N=!0,r(D))},t.unstable_getCurrentPriorityLevel=function(){return A},t.unstable_getFirstCallbackNode=function(){return S(C)},t.unstable_next=function(e){switch(A){case 1:case 2:case 3:var t=3;break;default:t=A}var n=A;A=t;try{return e()}finally{A=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=A;A=e;try{return t()}finally{A=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:j++,callback:n,priorityLevel:e,startTime:a,expirationTime:u=
2a+u,sortIndex:-1},a>s?(e.sortIndex=a,O(T,e),null===S(C)&&e===S(T)&&(M?o():M=!0,i(L,a-s))):(e.sortIndex=u,O(C,e),N||P||(N=!0,r(D))),e},t.unstable_wrapCallback=function(e){var t=A;return function(){var n=A;A=t;try{return e.apply(this,arguments)}finally{A=n}}}},,,function(e,t,n){"use strict";n(89);var r=n(0),i=60103;if(t.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var o=Symbol.for;i=o("react.element"),t.Fragment=o("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)s.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:a.current}}t.jsx=c,t.jsxs=c},function(e,t,n){"use strict";var r=n(160);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,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}
2;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){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},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,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case h:case m:case v:case c:return e;default:return t}}case o:return t}}}function O(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=u,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},function(e,t,n){"use strict";(function(e){var t=n(12);(function(){var n,r="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};var i=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 o(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function a(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:o(e)}}!function(e,t){if(t){var n=i;e=e.split(".");for(var o=0;o<e.length-1;o++){var a=e[o];a in n||(n[a]={}),n=n[a]}(t=t(o=n[e=e[e.length-1]]))!=o&&null!=t&&r(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 o=i.setTimeout;n.prototype.c=function(e){o(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.m),reject:e(this.g)}},t.prototype.m=function(e){if(e===this)this.g(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.s(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.v(e):this.h(e)}},t.prototype.v=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)s.b(this.a[e]);this.a=null}};var s=new n;return t.prototype.s=function(e){var t=this.f();e.Qa(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.Qa(r(e,i),r(n,o)),a},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Qa=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?s.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=a(e),o=i.next();!o.done;
2o=i.next())r(o.value).Qa(t,n)}))},t.all=function(e){var n=a(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).Qa(o(a.length-1),t),i=n.next()}while(!i.done)}))},t}));var s=s||{},u=this||self,c=/^[\w+/_-]+[=]{0,2}$/,l=null;function f(e){return(e=e.querySelector&&e.querySelector("script[nonce]"))&&(e=e.nonce||e.getAttribute("nonce"))&&c.test(e)?e:""}function d(){}function h(e){var t=typeof e;return"object"!=t?t:e?Array.isArray(e)?"array":t:"null"}function p(e){var t=h(e);return"array"==t||"object"==t&&"number"==typeof e.length}function g(e){return"function"==h(e)}function v(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function m(e){return Object.prototype.hasOwnProperty.call(e,y)&&e[y]||(e[y]=++b)}var y="closure_uid_"+(1e9*Math.random()>>>0),b=0;function _(e,t,n){return e.call.apply(e.bind,arguments)}function w(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 x(e,t,n){return(x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?_:w).apply(null,arguments)}function O(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 S=Date.now;function E(e,t){function n(){}n.prototype=t.prototype,e.ab=t.prototype,e.prototype=new n,e.prototype.constructor=e}function k(e){return e}function C(e,t,n){this.code=I+e,this.message=t||A[e]||"",this.a=n||null}function T(e){var t=e&&e.code;return t?new C(t.substring(I.length),e.message,e.serverResponse):null}E(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 j,I="auth/",A={"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."},P={ld:{Ta:"https://staging-identitytoolkit.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"b"},sd:{Ta:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://securetoken.googleapis.com/v1/token",Wa:"https://identitytoolkit.googleapis.com/v2/",id:"p"},ud:{Ta:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",Za:"https://staging-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://staging-identitytoolkit.sandbox.googleapis.com/v2/",id:"s"},vd:{Ta:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",Za:"https://test-securetoken.sandbox.googleapis.com/v1/token",Wa:"https://test-identitytoolkit.sandbox.googleapis.com/v2/",id:"t"}};function N(e){for(var t in P)if(P[t].id===e)return{firebaseEndpoint:(e=P[t]).Ta,secureTokenEndpoint:e.Za,identityPlatformEndpoint:e.Wa};return null}function M(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 L(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 D(e,t){throw new L("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function F(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function V(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function U(){this.b=this.a=null}j=N("__EID__")?"__EID__":void 0,E(R,Error),R.prototype.name="CustomError",E(L,R),L.prototype.name="AssertionError",F.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 B=new F((function(){return new q}),(function(e){e.reset()}));function z(){var e=_t,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function q(){this.next=this.b=this.a=null}U.prototype.add=function(e,t){var n=B.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},q.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},q.prototype.reset=function(){this.next=this.b=this.a=null};var G=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(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},X=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 Y(e,t){return 0<=G(e,t)}function $(e,t){var n;return(n=0<=(t=G(e,t)))&&Array.prototype.splice.call(e,t,1),n}function Q(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 J(e){return Array.prototype.concat.apply([],arguments)}function Z(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 ee,te=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},ne=/&/g,re=/</g,ie=/>/g,oe=/"/g,ae=/'/g,se=/\x00/g,ue=/[\x00&<>"']/;function ce(e,t){return-1!=e.indexOf(t)}function le(e,t){return e<t?-1:e>t?1:0}e:{var fe=u.navigator;if(fe){var de=fe.userAgent;if(de){ee=de;break e}}ee=""}function he(e){return ce(ee,e)}function pe(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function ge(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 ye(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 be(e,t){e:{try{var n=e&&e.ownerDocument,r=n&&(n.defaultView||n.parentWindow);if((r=r||u).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(v(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;D("Argument is not a %s (or a non-Element, non-Location mock); got: %s",t,o)}}function _e(e,t){this.a=e===Se&&t||"",this.b=Oe}function we(e){return e instanceof _e&&e.constructor===_e&&e.b===Oe?e.a:(D("expected object of type Const, got '"+e+"'"),"type_error:Const")}_e.prototype.sa=!0,_e.prototype.ra=function(){return this.a},_e.prototype.toString=function(){return"Const{"+this.a+"}"};var xe,Oe={},Se={};function Ee(){if(void 0===xe){var e=null,t=u.trustedTypes;if(t&&t.createPolicy){try{e=t.createPolicy("goog#html",{createHTML:k,createScript:k,createScriptURL:k})}catch(n){u.console&&u.console.error(n.message)}xe=e}else xe=e}return xe}function ke(e,t){this.a=t===Ae?e:""}function Ce(e){return e instanceof ke&&e.constructor===ke?e.a:(D("expected object of type TrustedResourceUrl, got '"+e+"' of type "+h(e)),"type_error:TrustedResourceUrl")}function Te(e,t){var n=we(e);if(!Ie.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(e){var t=Ee();return new ke(e=t?t.createScriptURL(e):e,Ae)}(e=n.replace(je,(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 _e?we(e):encodeURIComponent(String(e))})))}ke.prototype.sa=!0,ke.prototype.ra=function(){return this.a.toString()},ke.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var je=/%{(\w+)}/g,Ie=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,Ae={};function Pe(e,t){this.a=t===Ve?e:""}function Ne(e){return e instanceof Pe&&e.constructor===Pe?e.a:(D("expected object of type SafeUrl, got '"+e+"' of type "+h(e)),"type_error:SafeUrl")}Pe.prototype.sa=!0,Pe.prototype.ra=function(){return this.a.toString()},Pe.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Me=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|text\/csv|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,Re=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,Le=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function De(e){if(e instanceof Pe)return e;if(e="object"==typeof e&&e.sa?e.ra():String(e),Le.test(e))e=new Pe(e,Ve);else{var t=(e=(e=String(e)).replace(/(%0A|%0D)/g,"")).match(Re);e=t&&Me.test(t[1])?new Pe(e,Ve):null}return e}function Fe(e){return e instanceof Pe?e:(e="object"==typeof e&&e.sa?e.ra():String(e),Le.test(e)||(e="about:invalid#zClosurez"),new Pe(e,Ve))}var Ve={},Ue=new Pe("about:invalid#zClosurez",Ve);function Be(e,t,n){this.a=n===ze?e:""}Be.prototype.sa=!0,Be.prototype.ra=function(){return this.a.toString()},Be.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var ze={};function qe(e,t,n,r){return e=e instanceof Pe?e:Fe(e),t=t||u,n=n instanceof _e?we(n):n||"",t.open(Ne(e),n,r,void 0)}function Ge(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 We(e){return ue.test(e)&&(-1!=e.indexOf("&")&&(e=e.replace(ne,"&amp;")),-1!=e.indexOf("<")&&(e=e.replace(re,"&lt;")),-1!=e.indexOf(">")&&(e=e.replace(ie,"&gt;")),-1!=e.indexOf('"')&&(e=e.replace(oe,"&quot;")),-1!=e.indexOf("'")&&(e=e.replace(ae,"&#39;")),-1!=e.indexOf("\0")&&(e=e.replace(se,"&#0;"))),e}function He(e){return He[" "](e),e}He[" "]=d;var Ke,Xe=he("Opera"),Ye=he("Trident")||he("MSIE"),$e=he("Edge"),Qe=$e||Ye,Je=he("Gecko")&&!(ce(ee.toLowerCase(),"webkit")&&!he("Edge"))&&!(he("Trident")||he("MSIE"))&&!he("Edge"),Ze=ce(ee.toLowerCase(),"webkit")&&!he("Edge");function et(){var e=u.document;return e?e.documentMode:void 0}e:{var tt="",nt=function(){var e=ee;return Je?/rv:([^\);]+)(\)|;)/.exec(e):$e?/Edge\/([\d\.]+)/.exec(e):Ye?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):Ze?/WebKit\/(\S+)/.exec(e):Xe?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(nt&&(tt=nt?nt[1]:""),Ye){var rt=et();if(null!=rt&&rt>parseFloat(tt)){Ke=String(rt);break e}}Ke=tt}var it,ot={};function at(e){return function(e,t){var n=ot;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(){for(var t=0,n=te(String(Ke)).split("."),r=te(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=le(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||le(0==a[2].length,0==s[2].length)||le(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t}))}if(u.document&&Ye){var st=et();it=st||(parseInt(Ke,10)||void 0)}else it=void 0;var ut=it;try{new self.OffscreenCanvas(0,0).getContext("2d")}catch(da){}var ct=!Ye||9<=Number(ut);function lt(e){var t=document;return"string"===typeof e?t.getElementById(e):e}function ft(e,t){pe(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:pt.hasOwnProperty(n)?e.setAttribute(pt[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t}))}var dt,ht,pt={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",
2nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function gt(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];if(!p(o)||v(o)&&0<o.nodeType)r(o);else{e:{if(o&&"number"==typeof o.length){if(v(o)){var a="function"==typeof o.item||"string"==typeof o.item;break e}if(g(o)){a="function"==typeof o.item;break e}}a=!1}W(a?Z(o):o,r)}}}function vt(e,t){return t=String(t),"application/xhtml+xml"===e.contentType&&(t=t.toLowerCase()),e.createElement(t)}function mt(e){u.setTimeout((function(){throw e}),0)}function yt(e,t){ht||function(){if(u.Promise&&u.Promise.resolve){var e=u.Promise.resolve(void 0);ht=function(){e.then(wt)}}else ht=function(){var e=wt;!g(u.setImmediate)||u.Window&&u.Window.prototype&&!he("Edge")&&u.Window.prototype.setImmediate==u.setImmediate?(dt||(dt=function(){var e=u.MessageChannel;if("undefined"===typeof e&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!he("Presto")&&(e=function(){var e=vt(document,"IFRAME");e.style.display="none",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=x((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).Gb;n.Gb=null,e()}},function(e){r.next={Gb:e},r=r.next,t.port2.postMessage(0)}}return function(e){u.setTimeout(e,0)}}()),dt(e)):u.setImmediate(e)}}(),bt||(ht(),bt=!0),_t.add(e,t)}var bt=!1,_t=new U;function wt(){for(var e;e=z();){try{e.a.call(e.b)}catch(t){mt(t)}V(B,e)}bt=!1}function xt(e,t){if(this.a=Ot,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=d)try{var n=this;e.call(t,(function(e){Lt(n,St,e)}),(function(e){if(!(e instanceof qt))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(t){}Lt(n,Et,e)}))}catch(r){Lt(this,Et,r)}}var Ot=0,St=2,Et=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 Ct=new F((function(){return new kt}),(function(e){e.reset()}));function Tt(e,t,n){var r=Ct.get();return r.g=e,r.b=t,r.f=n,r}function jt(e){if(e instanceof xt)return e;var t=new xt(d);return Lt(t,St,e),t}function It(e){return new xt((function(t,n){n(e)}))}function At(e,t,n){Dt(e,t,n,null)||yt(O(t,e))}function Pt(e){return new xt((function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,o){n--,r[e]=i?{Pb:!0,value:o}:{Pb:!1,reason:o},0==n&&t(r)},o=0;o<e.length;o++)At(e[o],O(i,o,!0),O(i,o,!1));else t(r)}))}function Nt(e,t){if(e.a==Ot)if(e.c){var n=e.c;if(n.b){for(var r=0,i=null,o=null,a=n.b;a&&(a.c||(r++,a.a==e&&(i=a),!(i&&1<r)));a=a.next)i||(o=a);i&&(n.a==Ot&&1==r?Nt(n,t):(o?((r=o).next==n.f&&(n.f=r),r.next=r.next.next):Vt(n),Ut(n,i,Et,t)))}e.c=null}else Lt(e,Et,t)}function Mt(e,t){e.b||e.a!=St&&e.a!=Et||Ft(e),e.f?e.f.next=t:e.b=t,e.f=t}function Rt(e,t,n,r){var i=Tt(null,null,null);return i.a=new xt((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 qt?o(t):e(i)}catch(a){o(a)}}:o})),i.a.c=e,Mt(e,i),i.a}function Lt(e,t,n){e.a==Ot&&(e===n&&(t=Et,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Dt(n,e.$c,e.ad,e)||(e.i=n,e.a=t,e.c=null,Ft(e),t!=Et||n instanceof qt||function(e,t){e.g=!0,yt((function(){e.g&&zt.call(null,t)}))}(e,n)))}function Dt(e,t,n,r){if(e instanceof xt)return Mt(e,Tt(t||d,n||null,r)),!0;if(M(e))return e.then(t,n,r),!0;if(v(e))try{var i=e.then;if(g(i))return function(e,t,n,r,i){function o(e){s||(s=!0,r.call(i,e))}function a(e){s||(s=!0,n.call(i,e))}var s=!1;try{t.call(e,a,o)}catch(u){o(u)}}(e,i,t,n,r),!0}catch(o){return n.call(r,o),!0}return!1}function Ft(e){e.h||(e.h=!0,yt(e.gc,e))}function Vt(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Ut(e,t,n,r){if(n==Et&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Bt(t,n,r);else try{t.c?t.g.call(t.f):Bt(t,n,r)}catch(i){zt.call(null,i)}V(Ct,t)}function Bt(e,t,n){t==St?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}xt.prototype.then=function(e,t,n){return Rt(this,g(e)?e:null,g(t)?t:null,n)}
2,xt.prototype.$goog_Thenable=!0,(n=xt.prototype).oa=function(e,t){return(e=Tt(e,e,t)).c=!0,Mt(this,e),this},n.o=function(e,t){return Rt(this,null,e,t)},n.cancel=function(e){if(this.a==Ot){var t=new qt(e);yt((function(){Nt(this,t)}),this)}},n.$c=function(e){this.a=Ot,Lt(this,St,e)},n.ad=function(e){this.a=Ot,Lt(this,Et,e)},n.gc=function(){for(var e;e=Vt(this);)Ut(this,e,this.a,this.i);this.h=!1};var zt=mt;function qt(e){R.call(this,e)}function Gt(){0!=Wt&&(Ht[m(this)]=this),this.xa=this.xa,this.pa=this.pa}E(qt,R),qt.prototype.name="cancel";var Wt=0,Ht={};function Kt(e){if(!e.xa&&(e.xa=!0,e.Da(),0!=Wt)){var t=m(e);if(0!=Wt&&e.pa&&0<e.pa.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete Ht[t]}}Gt.prototype.xa=!1,Gt.prototype.Da=function(){if(this.pa)for(;this.pa.length;)this.pa.shift()()};var Xt=Object.freeze||function(e){return e},Yt=!Ye||9<=Number(ut),$t=Ye&&!at("9"),Qt=function(){if(!u.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{u.addEventListener("test",d,t),u.removeEventListener("test",d,t)}catch(n){}return e}();function Jt(e,t){this.type=e,this.b=this.target=t,this.defaultPrevented=!1}function Zt(e,t){if(Jt.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(Je){e:{try{He(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:en[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}Jt.prototype.preventDefault=function(){this.defaultPrevented=!0},E(Zt,Jt);var en=Xt({2:"touch",3:"pen",4:"mouse"});Zt.prototype.preventDefault=function(){Zt.ab.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,$t)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(t){}},Zt.prototype.g=function(){return this.a};var tn="closure_listenable_"+(1e6*Math.random()|0),nn=0;function rn(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.Va=i,this.key=++nn,this.va=this.Pa=!1}function on(e){e.va=!0,e.listener=null,e.proxy=null,e.src=null,e.Va=null}function an(e){this.src=e,this.a={},this.b=0}function sn(e,t){var n=t.type;n in e.a&&$(e.a[n],t)&&(on(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function un(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.Va==r)return i}return-1}an.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=un(e,t,r,i);return-1<a?(t=e[a],n||(t.Pa=!1)):((t=new rn(t,this.src,o,!!r,i)).Pa=n,e.push(t)),t};var cn="closure_lm_"+(1e6*Math.random()|0),ln={};function fn(e,t,n,r,i){if(r&&r.once)hn(e,t,n,r,i);else if(Array.isArray(t))for(var o=0;o<t.length;o++)fn(e,t[o],n,r,i);else n=xn(n),e&&e[tn]?Sn(e,t,n,v(r)?!!r.capture:!!r,i):dn(e,t,n,!1,r,i)}function dn(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=v(i)?!!i.capture:!!i,s=_n(e);if(s||(e[cn]=s=new an(e)),!(n=s.add(t,n,r,a,o)).proxy){if(r=function(){var e=bn,t=Yt?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)Qt||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(vn(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function hn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)hn(e,t[o],n,r,i);else n=xn(n),e&&e[tn]?En(e,t,n,v(r)?!!r.capture:!!r,i):dn(e,t,n,!0,r,i)}function pn(e,t,n,r,i){if(Array.isArray(t))for(var o=0;o<t.length;o++)pn(e,t[o],n,r,i);else r=v(r)?!!r.capture:!!r,n=xn(n),e&&e[tn]?(e=e.v,(t=String(t).toString())in e.a&&(-1<(n=un(o=e.a[t],n,r,i))&&(on(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=_n(e))&&(t=e.a[t.toString()],e=-1,t&&(e=un(t,n,r,i)),(n=-1<e?t[e]:null)&&gn(n))}function gn(e){if("number"!==typeof e&&e&&!e.va){var t=e.src;if(t&&t[tn])sn(t.v,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(vn(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=_n(t))?(sn(n,e),0==n.b&&(n.src=null,t[cn]=null)):on(e)}}}function vn(e){return e in ln?ln[e]:ln[e]="on"+e}function mn(e,t,n,r){var i=!0;if((e=_n(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=yn(o,r),i=i&&!1!==o)}return i}function yn(e,t){var n=e.listener,r=e.Va||e.src;return e.Pa&&gn(e),n.call(r,t)}function bn(e,t){if(e.va)return!0;
2if(!Yt){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}if(t=new Zt(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=mn(r[i],e,!0,t);n=n&&o}for(i=0;i<r.length;i++)t.b=r[i],o=mn(r[i],e,!1,t),n=n&&o}return n}return yn(e,new Zt(t,this))}function _n(e){return(e=e[cn])instanceof an?e:null}var wn="__closure_events_fn_"+(1e9*Math.random()>>>0);function xn(e){return g(e)?e:(e[wn]||(e[wn]=function(t){return e.handleEvent(t)}),e[wn])}function On(){Gt.call(this),this.v=new an(this),this.ac=this,this.gb=null}function Sn(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 kn(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.Va||a.src;a.Pa&&sn(e.v,a),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}function Cn(e,t,n){if(g(e))n&&(e=x(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=x(e.handleEvent,e)}return 2147483647<Number(t)?-1:u.setTimeout(e,t||0)}function Tn(e){var t=null;return new xt((function(n,r){-1==(t=Cn((function(){n(void 0)}),e))&&r(Error("Failed to schedule timer."))})).o((function(e){throw u.clearTimeout(t),e}))}function jn(e){if(e.W&&"function"==typeof e.W)return e.W();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 In(e){if(e.Y&&"function"==typeof e.Y)return e.Y();if(!e.W||"function"!=typeof e.W){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 An(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 An)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 Pn(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Nn(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;)Nn(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Nn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}E(On,Gt),On.prototype[tn]=!0,On.prototype.addEventListener=function(e,t,n,r){fn(this,e,t,n,r)},On.prototype.removeEventListener=function(e,t,n,r){pn(this,e,t,n,r)},On.prototype.dispatchEvent=function(e){var t,n=this.gb;if(n)for(t=[];n;n=n.gb)t.push(n);n=this.ac;var r=e.type||e;if("string"===typeof e)e=new Jt(e,n);else if(e instanceof Jt)e.target=e.target||n;else{var i=e;ye(e=new Jt(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.b=t[o];i=kn(a,r,!0,e)&&i}if(i=kn(a=e.b=n,r,!0,e)&&i,i=kn(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=kn(a=e.b=t[o],r,!1,e)&&i;return i},On.prototype.Da=function(){if(On.ab.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++)on(n[r]);delete t.a[e],t.b--}}this.gb=null},(n=An.prototype).W=function(){Pn(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},n.Y=function(){return Pn(this),this.a.concat()},n.clear=function(){this.b={},this.c=this.a.length=0},n.get=function(e,t){return Nn(this.b,e)?this.b[e]:t},n.set=function(e,t){Nn(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},n.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 Mn=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Rn(e,t){var n;this.a=this.l=this.c="",this.g=null,this.h=this.f="",this.i=!1,e instanceof Rn?(this.i=void 0!==t?t:e.i,Ln(this,e.c),this.l=e.l,this.a=e.a,Dn(this,e.g),this.f=e.f,Fn(this,rr(e.b)),this.h=e.h):e&&(n=String(e).match(Mn))?(this.i=!!t,Ln(this,n[1]||"",!0),this.l=qn(n[2]||""),this.a=qn(n[3]||"",!0),Dn(this,n[4]),this.f=qn(n[5]||"",!0),Fn(this,n[6]||"",!0),this.h=qn(n[7]||"")):(this.i=!!t,this.b=new Qn(null,this.i))}function Ln(e,t,n){e.c=n?qn(t,!0):t,e.c&&(e.c=e.c.replace(/:$/,""))}function Dn(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 Fn(e,t,n){t instanceof Qn?(e.b=t,function(e,t){t&&!e.f&&(Jn(e),e.c=null,e.a.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(er(this,t),nr(this,n,e))}),e)),e.f=t}(e.b,e.i)):(n||(t=Gn(t,Yn)),e.b=new Qn(t,e.i))}function Vn(e,t,n){e.b.set(t,n)}function Un(e,t){return e.b.get(t)}function Bn(e){return e instanceof Rn?new Rn(e):new Rn(e,void 0)}function zn(e,t,n,r){var i=new Rn(null,void 0);return e&&Ln(i,e),t&&(i.a=t),n&&Dn(i,n),r&&(i.f=r),i}function qn(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Gn(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,Wn),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Wn(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Rn.prototype.toString=function(){var e=[],t=this.c;t&&e.push(Gn(t,Hn,!0),":");var n=this.a;return(n||"file"==t)&&(e.push("//"),(t=this.l)&&e.push(Gn(t,Hn,!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.f)&&(this.a&&"/"!=n.charAt(0)&&e.push("/"),e.push(Gn(n,"/"==n.charAt(0)?Xn:Kn,!0))),(n=this.b.toString())&&e.push("?",n),(n=this.h)&&e.push("#",Gn(n,$n)),e.join("")},Rn.prototype.resolve=function(e){var t=new Rn(this),n=!!e.c;n?Ln(t,e.c):n=!!e.l,n?t.l=e.l:n=!!e.a,n?t.a=e.a:n=null!=e.g;var r=e.f;if(n)Dn(t,e.g);else if(n=!!e.f){if("/"!=r.charAt(0))if(this.a&&!this.f)r="/"+r;else{var i=t.f.lastIndexOf("/");-1!=i&&(r=t.f.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(ce(i,"./")||ce(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.f=r:n=""!==e.b.toString(),n?Fn(t,rr(e.b)):n=!!e.h,n&&(t.h=e.h),t};var Hn=/[#\/\?@]/g,Kn=/[#\?:]/g,Xn=/[#\?]/g,Yn=/[#\?@]/g,$n=/#/g;function Qn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function Jn(e){e.a||(e.a=new An,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 Zn(e){var t=In(e);
2if("undefined"==typeof t)throw Error("Keys are undefined");var n=new Qn(null,void 0);e=jn(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];Array.isArray(o)?nr(n,i,o):n.add(i,o)}return n}function er(e,t){Jn(e),t=ir(e,t),Nn(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Nn((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Pn(e)))}function tr(e,t){return Jn(e),t=ir(e,t),Nn(e.a.b,t)}function nr(e,t,n){er(e,t),0<n.length&&(e.c=null,e.a.set(ir(e,t),Z(n)),e.b+=n.length)}function rr(e){var t=new Qn;return t.c=e.c,e.a&&(t.a=new An(e.a),t.b=e.b),t}function ir(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function or(e){var t=[];return sr(new ar,e,t),t.join("")}function ar(){}function sr(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(Array.isArray(t)){var r=t;t=r.length,n.push("[");for(var i="",o=0;o<t;o++)n.push(i),sr(e,r[o],n),i=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){for(r in n.push("{"),i="",t)Object.prototype.hasOwnProperty.call(t,r)&&("function"!=typeof(o=t[r])&&(n.push(i),lr(r,n),n.push(":"),sr(e,o,n),i=","));return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":lr(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}(n=Qn.prototype).add=function(e,t){Jn(this),this.c=null,e=ir(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},n.clear=function(){this.a=this.c=null,this.b=0},n.forEach=function(e,t){Jn(this),this.a.forEach((function(n,r){W(n,(function(n){e.call(t,n,r,this)}),this)}),this)},n.Y=function(){Jn(this);for(var e=this.a.W(),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},n.W=function(e){Jn(this);var t=[];if("string"===typeof e)tr(this,e)&&(t=J(t,this.a.get(ir(this,e))));else{e=this.a.W();for(var n=0;n<e.length;n++)t=J(t,e[n])}return t},n.set=function(e,t){return Jn(this),this.c=null,tr(this,e=ir(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},n.get=function(e,t){return e&&0<(e=this.W(e)).length?String(e[0]):t},n.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.W(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 ur={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},cr=/\uffff/.test("\uffff")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function lr(e,t){t.push('"',e.replace(cr,(function(e){var t=ur[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),ur[e]=t),t})),'"')}function fr(){var e=Ar();return Ye&&!!ut&&11==ut||/Edge\/\d+/.test(e)}function dr(){return u.window&&u.window.location.href||self&&self.location&&self.location.href||""}function hr(e,t){t=t||u.window;var n="about:blank";e&&(n=Ne(De(e)||Ue)),t.location.href=n}function pr(e,t){var n,r=[];for(n in e)n in t?typeof e[n]!=typeof t[n]?r.push(n):"object"==typeof e[n]&&null!=e[n]&&null!=t[n]?0<pr(e[n],t[n]).length&&r.push(n):e[n]!==t[n]&&r.push(n):r.push(n);for(n in t)n in e||r.push(n);return r}function gr(e){return!!((e=(e||Ar()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function vr(e){e=e||u.window;try{e.close()}catch(t){}}function mr(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=Ar().toLowerCase(),r&&(t.target=r,ce(n,"crios/")&&(t.target="_blank")),Tr(Ar())==kr&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof Pe?n:De("undefined"!=typeof n.href?n.href:String(n))||Ue,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?(be(a=vt(document,"A"),"HTMLAnchorElement"),t=t instanceof Pe?t:Fe(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=qe("",r,n,a),e=Ne(t),a&&(Qe&&ce(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+We(e)+'">',e=new Be(e=(r=Ee())?r.createHTML(e):e,null,ze),r=a.document)&&(r.write(function(e){return e instanceof Be&&e.constructor===Be?e.a:(D("expected object of type SafeHtml, got '"+e+"' of type "+h(e)),"type_error:SafeHtml")}(e)),r.close())):(a=qe(t,r,n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(s){}return a}var yr=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,br=/^[^@]+@[^@]+$/;function _r(){var e=null;return new xt((function(t){"complete"==u.document.readyState?t():(e=function(){t()},hn(window,"load",e))})).o((function(t){throw pn(window,"load",e),t}))}function wr(e){return e=e||Ar(),!("file:"!==Lr()&&"ionic:"!==Lr()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function xr(){var e=u.window;try{return!(!e||e==e.top)}catch(t){return!1}}function Or(){return"undefined"!==typeof u.WorkerGlobalScope&&"function"===typeof u.importScripts}function Sr(){return t.default.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":t.default.INTERNAL.hasOwnProperty("node")?"Node":Or()?"Worker":"Browser"}function Er(){var e=Sr();return"ReactNative"===e||"Node"===e}var kr="Firefox",Cr="Chrome";function Tr(e){var t=e.toLowerCase();return ce(t,"opera/")||ce(t,"opr/")||ce(t,"opios/")?"Opera":ce(t,"iemobile")?"IEMobile":ce(t,"msie")||ce(t,"trident/")?"IE":ce(t,"edge/")?"Edge":ce(t,"firefox/")?kr:ce(t,"silk/")?"Silk":ce(t,"blackberry")?"Blackberry":ce(t,"webos")?"Webos":!ce(t,"safari/")||ce(t,"chrome/")||ce(t,"crios/")||ce(t,"android")?!ce(t,"chrome/")&&!ce(t,"crios/")||ce(t,"edge/")?ce(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":Cr:"Safari"}var jr={md:"FirebaseCore-web",od:"FirebaseUI-web"};function Ir(e,t){t=t||[];var n,r=[],i={};for(n in jr)i[jr[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=Sr())?r=Tr(i=Ar()):"Worker"===r&&(r=Tr(i=Ar())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function Ar(){return u.navigator&&u.navigator.userAgent||""}function Pr(e,t){e=e.split("."),t=t||u;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 Nr(){try{var e=u.localStorage,t=Br();if(e)return e.setItem(t,"1"),e.removeItem(t),!fr()||!!u.indexedDB}catch(n){return Or()&&!!u.indexedDB}return!1}function Mr(){return(Rr()||"chrome-extension:"===Lr()||wr())&&!Er()&&Nr()&&!Or()}function Rr(){return"http:"===Lr()||"https:"===Lr()}function Lr(){return u.location&&u.location.protocol||null}function Dr(e){return!gr(e=e||Ar())&&Tr(e)!=kr}function Fr(e){return"undefined"===typeof e?null:or(e)}function Vr(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 Ur(e){if(null!==e)return JSON.parse(e)}function Br(e){return e||Math.floor(1e9*Math.random()).toString()}function zr(e){return"Safari"!=Tr(e=e||Ar())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function qr(){var e=u.___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 Gr(e,t){if(e>
2t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=Ar(),t=Sr(),this.b=gr(e)||"ReactNative"===t}function Wr(){var e=u.document;return!e||"undefined"===typeof e.visibilityState||"visible"==e.visibilityState}function Hr(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 Kr(){return!(!Pr("fireauth.oauthhelper",u)&&!Pr("fireauth.iframe",u))}Gr.prototype.get=function(){var e=u.navigator;return!e||"boolean"!==typeof e.onLine||!Rr()&&"chrome-extension:"!==Lr()&&"undefined"===typeof e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var Xr,Yr={};function $r(e){Yr[e]||(Yr[e]=!0,"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(e))}try{var Qr={};Object.defineProperty(Qr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Qr,"abcd",{configurable:!0,enumerable:!0,value:2}),Xr=2==Qr.abcd}catch(da){Xr=!1}function Jr(e,t,n){Xr?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function Zr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Jr(e,n,t[n])}function ei(e){var t={};return Zr(t,e),t}function ti(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Jr(t,n,ti(e[n]));return t}function ni(e){var t=e&&(e[si]?"phone":null);if(!(t&&e&&e[ai]))throw new C("internal-error","Internal assert: invalid MultiFactorInfo object");Jr(this,"uid",e[ai]),Jr(this,"displayName",e[ii]||null);var n=null;e[oi]&&(n=new Date(e[oi]).toUTCString()),Jr(this,"enrollmentTime",n),Jr(this,"factorId",t)}function ri(e){try{var t=new ui(e)}catch(n){t=null}return t}ni.prototype.w=function(){return{uid:this.uid,displayName:this.displayName,factorId:this.factorId,enrollmentTime:this.enrollmentTime}};var ii="displayName",oi="enrolledAt",ai="mfaEnrollmentId",si="phoneInfo";function ui(e){ni.call(this,e),Jr(this,"phoneNumber",e[si])}function ci(e){var t={},n=e[hi],r=e[gi],i=e[vi];if(e=ri(e[pi]),!i||i!=fi&&i!=di&&!n||i==di&&!r||i==li&&!e)throw Error("Invalid checkActionCode response!");i==di?(t[yi]=n||null,t[_i]=n||null,t[mi]=r):(t[yi]=r||null,t[_i]=r||null,t[mi]=n||null),t[bi]=e||null,Jr(this,xi,i),Jr(this,wi,ti(t))}E(ui,ni),ui.prototype.w=function(){var e=ui.ab.w.call(this);return e.phoneNumber=this.phoneNumber,e};var li="REVERT_SECOND_FACTOR_ADDITION",fi="EMAIL_SIGNIN",di="VERIFY_AND_CHANGE_EMAIL",hi="email",pi="mfaInfo",gi="newEmail",vi="requestType",mi="email",yi="fromEmail",bi="multiFactorInfo",_i="previousEmail",wi="data",xi="operation";function Oi(e){var t=Un(e=Bn(e),Si)||null,n=Un(e,Ei)||null,r=Un(e,Ti)||null;if(r=r&&Ii[r]||null,!t||!n||!r)throw new C("argument-error",Si+", "+Ei+"and "+Ti+" are required in a valid action code URL.");Zr(this,{apiKey:t,operation:r,code:n,continueUrl:Un(e,ki)||null,languageCode:Un(e,Ci)||null,tenantId:Un(e,ji)||null})}var Si="apiKey",Ei="oobCode",ki="continueUrl",Ci="languageCode",Ti="mode",ji="tenantId",Ii={recoverEmail:"RECOVER_EMAIL",resetPassword:"PASSWORD_RESET",revertSecondFactorAddition:li,signIn:fi,verifyAndChangeEmail:di,verifyEmail:"VERIFY_EMAIL"};function Ai(e){try{return new Oi(e)}catch(t){return null}}function Pi(e){var t=e[Di];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[Ni];if(n&&"object"===typeof n){t=n[Ui];var r=n[Fi];if(n=n[Vi],"string"===typeof t&&t.length){if(this.a=t,"undefined"!==typeof r&&"boolean"!==typeof r)throw new C("argument-error",Fi+" 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",Vi+" property must be a non empty string when specified.");this.b=n||null}else{if("undefined"!==typeof t)throw new C("argument-error",Ui+" 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",Ni+" property must be a non null object when specified.");if(this.f=null,(t=e[Li])&&"object"===typeof t){if("string"===typeof(t=t[Bi])&&t.length)this.f=t;else if("undefined"!==typeof t)throw new C("argument-error",Bi+" property must be a non empty string when specified.")}else if("undefined"!==typeof t)throw new C("argument-error",Li+" property must be a non null object when specified.");if("undefined"!==typeof(t=e[Ri])&&"boolean"!==typeof t)throw new C("argument-error",Ri+" property must be a boolean when specified.");if(this.c=!!t,"undefined"!==typeof(e=e[Mi])&&("string"!==typeof e||"string"===typeof e&&!e.length))throw new C("argument-error",Mi+" property must be a non empty string when specified.");this.i=e||null}var Ni="android",Mi="dynamicLinkDomain",Ri="handleCodeInApp",Li="iOS",Di="url",Fi="installApp",Vi="minimumVersion",Ui="packageName",Bi="bundleId";function zi(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 qi=null;function Gi(e){var t=[];return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=qi[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!qi){qi={};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===qi[o]&&(qi[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.push(e)})),t}function Wi(e){var t=Ki(e);if(!(t&&t.sub&&t.iss&&t.aud&&t.exp))throw Error("Invalid JWT");this.h=e,this.a=t.exp,this.i=t.sub,e=Date.now()/1e3,this.g=t.iat||(e>this.a?this.a:e),this.b=t.provider_id||t.firebase&&t.firebase.sign_in_provider||null,this.f=t.firebase&&t.firebase.tenant||null,this.c=!!t.is_anonymous||"anonymous"==this.b}function Hi(e){try{return new Wi(e)}catch(t){return null}}function Ki(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{var r=Gi(e);for(e=[],n=t=0;t<r.length;){var i=r[t++];if(128>i)e[n++]=String.fromCharCode(i);else if(191<i&&224>i){var o=r[t++];e[n++]=String.fromCharCode((31&i)<<6|63&o)}else if(239<i&&365>i){o=r[t++];var a=r[t++],s=((7&i)<<18|(63&o)<<12|(63&a)<<6|63&r[t++])-65536;e[n++]=String.fromCharCode(55296+(s>>10)),e[n++]=String.fromCharCode(56320+(1023&s))}
2else o=r[t++],a=r[t++],e[n++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&a)}return JSON.parse(e.join(""))}catch(u){}return null}Wi.prototype.T=function(){return this.f},Wi.prototype.l=function(){return this.c},Wi.prototype.toString=function(){return this.h};var Xi="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),Yi=["client_id","response_type","scope","redirect_uri","state"],$i={nd:{Ja:"locale",ua:700,ta:600,fa:"facebook.com",Xa:Yi},pd:{Ja:null,ua:500,ta:750,fa:"github.com",Xa:Yi},qd:{Ja:"hl",ua:515,ta:680,fa:"google.com",Xa:Yi},wd:{Ja:"lang",ua:485,ta:705,fa:"twitter.com",Xa:Xi},kd:{Ja:"locale",ua:640,ta:600,fa:"apple.com",Xa:[]}};function Qi(e){for(var t in $i)if($i[t].fa==e)return $i[t];return null}function Ji(e){var t={};t["facebook.com"]=ro,t["google.com"]=oo,t["github.com"]=io,t["twitter.com"]=ao;var n=e&&e[eo];try{if(n)return t[n]?new t[n](e):new no(e);if("undefined"!==typeof e[Zi])return new to(e)}catch(r){}return null}var Zi="idToken",eo="providerId";function to(e){var t=e[eo];if(!t&&e[Zi]){var n=Hi(e[Zi]);n&&n.b&&(t=n.b)}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),Jr(this,"providerId",t),Jr(this,"isNewUser",n)}function no(e){to.call(this,e),Jr(this,"profile",ti((e=Ur(e.rawUserInfo||"{}"))||{}))}function ro(e){if(no.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function io(e){if(no.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Jr(this,"username",this.profile&&this.profile.login||null)}function oo(e){if(no.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function ao(e){if(no.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Jr(this,"username",e.screenName||null)}function so(e){var t=Bn(e),n=Un(t,"link"),r=Un(Bn(n),"link");return t=Un(t,"deep_link_id"),Un(Bn(t),"link")||t||r||n||e}function uo(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?co:lo}E(no,to),E(ro,no),E(io,no),E(oo,no),E(ao,no);var co="enroll",lo="signin";function fo(){}function ho(e,t){return e.then((function(e){if(e[ns]){var n=Hi(e[ns]);if(!n||t!=n.i)throw new C("user-mismatch");return e}throw new C("user-mismatch")})).o((function(e){throw e&&e.code&&e.code==I+"user-not-found"?new C("user-mismatch"):e}))}function po(e,t){if(!t)throw new C("internal-error","failed to construct a credential");this.a=t,Jr(this,"providerId",e),Jr(this,"signInMethod",e)}function go(e){return{pendingToken:e.a,requestUri:"http://localhost"}}function vo(e){if(e&&e.providerId&&e.signInMethod&&0==e.providerId.indexOf("saml.")&&e.pendingToken)try{return new po(e.providerId,e.pendingToken)}catch(t){}return null}function mo(e,t,n){if(this.a=null,t.idToken||t.accessToken)t.idToken&&Jr(this,"idToken",t.idToken),t.accessToken&&Jr(this,"accessToken",t.accessToken),t.nonce&&!t.pendingToken&&Jr(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");Jr(this,"accessToken",t.oauthToken),Jr(this,"secret",t.oauthTokenSecret)}Jr(this,"providerId",e),Jr(this,"signInMethod",n)}function yo(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:Zn(t).toString(),requestUri:"http://localhost"},e.a&&(delete t.postBody,t.pendingToken=e.a),t}function bo(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 mo(e.providerId,t,e.signInMethod)}catch(n){}}return null}function _o(e,t){this.Qc=t||[],Zr(this,{providerId:e,isOAuthProvider:!0}),this.Ib={},this.pb=(Qi(e)||{}).Ja||null,this.ob=null}function wo(e){if("string"!==typeof e||0!=e.indexOf("saml."))throw new C("argument-error",'SAML provider IDs must be prefixed with "saml."');_o.call(this,e,[])}function xo(e){_o.call(this,e,Yi),this.a=[]}function Oo(){xo.call(this,"facebook.com")}function So(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return v(e)&&(t=e.accessToken),(new Oo).credential({accessToken:t})}function Eo(){xo.call(this,"github.com")}function ko(e){if(!e)throw new C("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return v(e)&&(t=e.accessToken),(new Eo).credential({accessToken:t})}function Co(){xo.call(this,"google.com"),this.Ca("profile")}function To(e,t){var n=e;return v(e)&&(n=e.idToken,t=e.accessToken),(new Co).credential({idToken:n,accessToken:t})}function jo(){_o.call(this,"twitter.com",Xi)}function Io(e,t){var n=e;if(v(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 mo("twitter.com",n,"twitter.com")}function Ao(e,t,n){this.a=e,this.f=t,Jr(this,"providerId","password"),Jr(this,"signInMethod",n===No.EMAIL_LINK_SIGN_IN_METHOD?No.EMAIL_LINK_SIGN_IN_METHOD:No.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Po(e){return e&&e.email&&e.password?new Ao(e.email,e.password,e.signInMethod):null}function No(){Zr(this,{providerId:"password",isOAuthProvider:!1})}function Mo(e,t){if(!(t=Ro(t)))throw new C("argument-error","Invalid email link!");return new Ao(e,t.code,No.EMAIL_LINK_SIGN_IN_METHOD)}function Ro(e){return(e=Ai(e=so(e)))&&e.operation===fi?e:null}function Lo(e){if(!(e.eb&&e.cb||e.La&&e.ea))throw new C("internal-error");this.a=e,Jr(this,"providerId","phone"),this.fa="phone",Jr(this,"signInMethod","phone")}function Do(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 Lo(t)}return null}function Fo(e){return e.a.La&&e.a.ea?{temporaryProof:e.a.La,phoneNumber:e.a.ea}:{sessionInfo:e.a.eb,code:e.a.cb}}function Vo(e){try{this.a=e||t.default.auth()}catch(n){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().")}Zr(this,{providerId:"phone",isOAuthProvider:!1})}function Uo(e,t){if(!e)throw new C("missing-verification-id");if(!t)throw new C("missing-verification-code");return new Lo({eb:e,cb:t})}function Bo(e){if(e.temporaryProof&&e.phoneNumber)return new Lo({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 To(o,n);case"facebook.com":return So(n);case"github.com":return ko(n);case"twitter.com":return Io(n,r);default:return n||r||o||a?a?0==t.indexOf("saml.")?new po(t,a):new mo(t,{pendingToken:a,idToken:e.oauthIdToken,accessToken:e.oauthAccessToken},t):new xo(t).credential({idToken:o,accessToken:n,rawNonce:i}):null}}catch(s){return null}}function zo(e){if(!e.isOAuthProvider)throw new C("invalid-oauth-provider")}function qo(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 Go(e){return(e=e||{}).type?new qo(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&T(e.error),e.postBody,e.tenantId):null}function Wo(){this.b=null,this.a=[]}uo.prototype.Ha=function(){return this.a?jt(this.a):jt(this.b)},uo.prototype.w=function(){return this.type==co?{multiFactorSession:{idToken:this.a}}:{multiFactorSession:{pendingCredential:this.b}}},fo.prototype.ka=function(){},fo.prototype.b=function(){},fo.prototype.c=function(){},fo.prototype.w=function(){},po.prototype.ka=function(e){return Ss(e,go(this))},po.prototype.b=function(e,t){var n=go(this);return n.idToken=t,Es(e,n)},po.prototype.c=function(e,t){return ho(ks(e,go(this)),t)},po.prototype.w=function(){return{providerId:this.providerId,signInMethod:this.signInMethod,pendingToken:this.a}},mo.prototype.ka=function(e){return Ss(e,yo(this))},mo.prototype.b=function(e,t){var n=yo(this);return n.idToken=t,Es(e,n)},mo.prototype.c=function(e,t){return ho(ks(e,yo(this)),t)},mo.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},_o.prototype.Ka=function(e){return this.Ib=ve(e),this},E(wo,_o),E(xo,_o),xo.prototype.Ca=function(e){return Y(this.a,e)||this.a.push(e),this},xo.prototype.Qb=function(){return Z(this.a)},xo.prototype.credential=function(e,t){var n;if(!(n=v(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 mo(this.providerId,n,this.providerId)},E(Oo,xo),Jr(Oo,"PROVIDER_ID","facebook.com"),Jr(Oo,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),E(Eo,xo),Jr(Eo,"PROVIDER_ID","github.com"),Jr(Eo,"GITHUB_SIGN_IN_METHOD","github.com"),E(Co,xo),Jr(Co,"PROVIDER_ID","google.com"),Jr(Co,"GOOGLE_SIGN_IN_METHOD","google.com"),E(jo,_o),Jr(jo,"PROVIDER_ID","twitter.com"),Jr(jo,"TWITTER_SIGN_IN_METHOD","twitter.com"),Ao.prototype.ka=function(e){return this.signInMethod==No.EMAIL_LINK_SIGN_IN_METHOD?su(e,Ms,{email:this.a,oobCode:this.f}):su(e,nu,{email:this.a,password:this.f})},Ao.prototype.b=function(e,t){return this.signInMethod==No.EMAIL_LINK_SIGN_IN_METHOD?su(e,Rs,{idToken:t,email:this.a,oobCode:this.f}):su(e,Xs,{idToken:t,email:this.a,password:this.f})},Ao.prototype.c=function(e,t){return ho(this.ka(e),t)},Ao.prototype.w=function(){return{email:this.a,password:this.f,signInMethod:this.signInMethod}},Zr(No,{PROVIDER_ID:"password"}),Zr(No,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),Zr(No,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Lo.prototype.ka=function(e){return e.fb(Fo(this))},Lo.prototype.b=function(e,t){var n=Fo(this);return n.idToken=t,su(e,iu,n)},Lo.prototype.c=function(e,t){var n=Fo(this);return n.operation="REAUTH",ho(e=su(e,ou,n),t)},Lo.prototype.w=function(){var e={providerId:"phone"};return this.a.eb&&(e.verificationId=this.a.eb),this.a.cb&&(e.verificationCode=this.a.cb),this.a.La&&(e.temporaryProof=this.a.La),this.a.ea&&(e.phoneNumber=this.a.ea),e},Vo.prototype.fb=function(e,t){var n=this.a.a;return jt(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=v(e)?e.session:null,o=v(e)?e.phoneNumber:e;return(i&&i.type==co?i.Ha().then((function(e){return function(e,t){return su(e,$s,t).then((function(e){return e.phoneSessionInfo.sessionInfo}))}(n,{idToken:e,phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r}})})):i&&i.type==lo?i.Ha().then((function(t){return function(e,t){return su(e,Qs,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 su(e,Hs,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.')}}))},Zr(Vo,{PROVIDER_ID:"phone"}),Zr(Vo,{PHONE_SIGN_IN_METHOD:"phone"}),qo.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("-")},qo.prototype.T=function(){return this.h},qo.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 Ho,Ko=null;function Xo(e){var t="unauthorized-domain",n=void 0,r=Bn(e);e=r.a,"chrome-extension"==(r=r.c)?n=Ge("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=Ge("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)}function Yo(e,t,n){C.call(this,e,n),(e=t||{}).Jb&&Jr(this,"email",e.Jb),e.ea&&Jr(this,"phoneNumber",e.ea),e.credential&&Jr(this,"credential",e.credential),e.Zb&&Jr(this,"tenantId",e.Zb)}function $o(e){if(e.code){var t=e.code||"";0==t.indexOf(I)&&(t=t.substring(I.length));var n={credential:Bo(e),Zb:e.tenantId};if(e.email)n.Jb=e.email;
2else if(e.phoneNumber)n.ea=e.phoneNumber;else if(!n.credential)return new C(t,e.message||void 0);return new Yo(t,n,e.message)}return null}function Qo(){}function Jo(e){return e.c||(e.c=e.b())}function Zo(){}function ea(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 ta(){}function na(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseType=this.responseText=this.response="",this.status=-1,this.statusText="",this.a.onload=x(this.qc,this),this.a.onerror=x(this.Sb,this),this.a.onprogress=x(this.rc,this),this.a.ontimeout=x(this.vc,this)}function ra(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function ia(e,t,n){this.reset(e,t,n,void 0,void 0)}E(Xo,C),E(Yo,C),Yo.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&&ye(e,t),e},Yo.prototype.toJSON=function(){return this.w()},Qo.prototype.c=null,E(Zo,Qo),Zo.prototype.a=function(){var e=ea(this);return e?new ActiveXObject(e):new XMLHttpRequest},Zo.prototype.b=function(){var e={};return ea(this)&&(e[0]=!0,e[1]=!0),e},Ho=new Zo,E(ta,Qo),ta.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new na;throw Error("Unsupported browser")},ta.prototype.b=function(){return{}},(n=na.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},n.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},n.abort=function(){this.a.abort()},n.setRequestHeader=function(){},n.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},n.qc=function(){this.status=200,this.response=this.responseText=this.a.responseText,ra(this,4)},n.Sb=function(){this.status=500,this.response=this.responseText="",ra(this,4)},n.vc=function(){this.Sb()},n.rc=function(){this.status=200,ra(this,1)},n.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},ia.prototype.a=null;function oa(e){this.f=e,this.b=this.c=this.a=null}function aa(e,t){this.name=e,this.value=t}ia.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||S(),delete this.a},aa.prototype.toString=function(){return this.name};var sa=new aa("SEVERE",1e3),ua=new aa("WARNING",900),ca=new aa("CONFIG",700),la=new aa("FINE",500);function fa(e){return e.c?e.c:e.a?fa(e.a):(D("Root logger has no level set."),null)}oa.prototype.log=function(e,t,n){if(e.value>=fa(this).value)for(g(t)&&(t=t()),e=new ia(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var da,ha={},pa=null;function ga(e){var t;if(pa||(pa=new oa(""),ha[""]=pa,pa.c=ca),!(t=ha[e])){t=new oa(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=ga(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,ha[e]=t}return t}function va(e,t){e&&e.log(la,t,void 0)}function ma(e){this.f=e}function ya(e){On.call(this),this.u=e,this.h=void 0,this.readyState=ba,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.l=new Headers,this.b=null,this.s="GET",this.f="",this.a=!1,this.i=ga("goog.net.FetchXmlHttp"),this.m=this.c=this.g=null}E(ma,Qo),ma.prototype.a=function(){return new ya(this.f)},ma.prototype.b=(da={},function(){return da}),E(ya,On);var ba=0;function _a(e){e.c.read().then(e.pc.bind(e)).catch(e.Ua.bind(e))}function wa(e){e.readyState=4,e.g=null,e.c=null,e.m=null,xa(e)}function xa(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Oa(e){On.call(this),this.headers=new An,this.D=e||null,this.c=!1,this.C=this.a=null,this.h=this.R=this.l="",this.f=this.O=this.i=this.J=!1,this.g=0,this.s=null,this.m=Sa,this.u=this.S=!1}(n=ya.prototype).open=function(e,t){if(this.readyState!=ba)throw this.abort(),Error("Error reopening a connection");this.s=e,this.f=t,this.readyState=1,xa(this)},n.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.l,method:this.s,credentials:this.h,cache:void 0};
2e&&(t.body=e),this.u.fetch(new Request(this.f,t)).then(this.uc.bind(this),this.Ua.bind(this))},n.abort=function(){this.response=this.responseText="",this.l=new Headers,this.status=0,this.c&&this.c.cancel("Request was aborted."),1<=this.readyState&&this.a&&4!=this.readyState&&(this.a=!1,wa(this)),this.readyState=ba},n.uc=function(e){this.a&&(this.g=e,this.b||(this.status=this.g.status,this.statusText=this.g.statusText,this.b=e.headers,this.readyState=2,xa(this)),this.a&&(this.readyState=3,xa(this),this.a&&("arraybuffer"===this.responseType?e.arrayBuffer().then(this.sc.bind(this),this.Ua.bind(this)):"undefined"!==typeof u.ReadableStream&&"body"in e?(this.response=this.responseText="",this.c=e.body.getReader(),this.m=new TextDecoder,_a(this)):e.text().then(this.tc.bind(this),this.Ua.bind(this)))))},n.pc=function(e){if(this.a){var t=this.m.decode(e.value?e.value:new Uint8Array(0),{stream:!e.done});t&&(this.response=this.responseText+=t),e.done?wa(this):xa(this),3==this.readyState&&_a(this)}},n.tc=function(e){this.a&&(this.response=this.responseText=e,wa(this))},n.sc=function(e){this.a&&(this.response=e,wa(this))},n.Ua=function(e){var t=this.i;t&&t.log(ua,"Failed to fetch url "+this.f,e instanceof Error?e:Error(e)),this.a&&wa(this)},n.setRequestHeader=function(e,t){this.l.append(e,t)},n.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.i)&&e.log(ua,"Attempting to get response header but no headers have been received for url: "+this.f,void 0),"")},n.getAllResponseHeaders=function(){if(!this.b){var e=this.i;return e&&e.log(ua,"Attempting to get all response headers but no headers have been received for url: "+this.f,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")},Object.defineProperty(ya.prototype,"withCredentials",{get:function(){return"include"===this.h},set:function(e){this.h=e?"include":"same-origin"}}),E(Oa,On);var Sa="";Oa.prototype.b=ga("goog.net.XhrIo");var Ea=/^https?$/i,ka=["POST","PUT"];function Ca(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.R=n,e.J=!1,e.c=!0,e.a=e.D?e.D.a():Ho.a(),e.C=e.D?Jo(e.D):Jo(Ho),e.a.onreadystatechange=x(e.Vb,e);try{va(e.b,La(e,"Opening Xhr")),e.O=!0,e.a.open(n,String(t),!0),e.O=!1}catch(a){return va(e.b,La(e,"Error opening Xhr: "+a.message)),void ja(e,a)}t=r||"";var o=new An(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=In(e),r=jn(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=Ta,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=u.FormData&&t instanceof u.FormData,!Y(ka,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.S&&(e.a.withCredentials=e.S);try{Na(e),0<e.g&&(e.u=function(e){return Ye&&at(9)&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(e.a),va(e.b,La(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.u)),e.u?(e.a.timeout=e.g,e.a.ontimeout=x(e.Ma,e)):e.s=Cn(e.Ma,e.g,e)),va(e.b,La(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(a){va(e.b,La(e,"Send error: "+a.message)),ja(e,a)}}function Ta(e){return"content-type"==e.toLowerCase()}function ja(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,Ia(e),Pa(e)}function Ia(e){e.J||(e.J=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function Aa(e){if(e.c&&"undefined"!=typeof s)if(e.C[1]&&4==Ma(e)&&2==Ra(e))va(e.b,La(e,"Local request error detected and ignored"));else if(e.i&&4==Ma(e))Cn(e.Vb,0,e);else if(e.dispatchEvent("readystatechange"),4==Ma(e)){va(e.b,La(e,"Request complete")),e.c=!1;try{var t,n=Ra(e);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.l).match(Mn)[1]||null;if(!o&&u.self&&u.self.location){var a=u.self.location.protocol;o=a.substr(0,a.length-1)}i=!Ea.test(o?o.toLowerCase():"")}t=i}if(t)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<Ma(e)?e.a.statusText:""}catch(l){va(e.b,"Can not get status: "+l.message),c=""}e.h=c+" ["+Ra(e)+"]",Ia(e)}}finally{Pa(e)}}}function Pa(e,t){if(e.a){Na(e);var n=e.a,r=e.C[0]?d:null;e.a=null,e.C=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(i){(e=e.b)&&e.log(sa,"Problem encountered resetting onreadystatechange: "+i.message,void 0)}}}function Na(e){e.a&&e.u&&(e.a.ontimeout=null),e.s&&(u.clearTimeout(e.s),e.s=null)}function Ma(e){return e.a?e.a.readyState:0}function Ra(e){try{return 2<Ma(e)?e.a.status:-1}catch(t){return-1}}function La(e,t){return t+" ["+e.R+" "+e.l+" "+Ra(e)+"]"}function Da(e){var t=Xa;this.g=[],this.u=t,this.s=e||null,this.f=this.a=!1,this.c=void 0,this.v=this.C=this.i=!1,this.h=0,this.b=null,this.l=0}function Fa(e,t,n){e.a=!0,e.c=n,e.f=!t,za(e)}function Va(e){if(e.a){if(!e.v)throw new qa(e);e.v=!1}}function Ua(e,t,n,r){e.g.push([t,n,r]),e.a&&za(e)}function Ba(e){return X(e.g,(function(e){return g(e[1])}))}function za(e){if(e.h&&e.a&&Ba(e)){var t=e.h,n=Ha[t];n&&(u.clearTimeout(n.a),delete Ha[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.s,t);void 0!==s&&(e.f=e.f&&(s==t||s instanceof Error),e.c=t=s),(M(t)||"function"===typeof u.Promise&&t instanceof u.Promise)&&(r=!0,e.i=!0)}catch(c){t=c,e.f=!0,Ba(e)||(n=!0)}}e.c=t,r&&(s=x(e.m,e,!0),r=x(e.m,e,!1),t instanceof Da?(Ua(t,s,r),t.C=!0):t.then(s,r)),n&&(t=new Wa(t),Ha[t.a]=t,e.h=t.a)}function qa(){R.call(this)}function Ga(){R.call(this)}function Wa(e){this.a=u.setTimeout(x(this.c,this),0),this.b=e}(n=Oa.prototype).Ma=function(){"undefined"!=typeof s&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",va(this.b,La(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},n.abort=function(){this.a&&this.c&&(va(this.b,La(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Pa(this))},n.Da=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),Pa(this,!0)),Oa.ab.Da.call(this)},n.Vb=function(){this.xa||(this.O||this.i||this.f?Aa(this):this.Jc())},n.Jc=function(){Aa(this)},n.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.m){case Sa: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(sa,"Response type "+this.m+" is not supported on this browser",void 0),null}catch(t){return va(this.b,"Can not get response: "+t.message),null}},Da.prototype.cancel=function(e){if(this.a)this.c instanceof Da&&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.s,this):this.v=!0,this.a||(e=new Ga(this),Va(this),Fa(this,!1,e))}},Da.prototype.m=function(e,t){this.i=!1,Fa(this,e,t)},Da.prototype.then=function(e,t,n){var r,i,o=new xt((function(e,t){r=e,i=t}));return Ua(this,r,(function(e){e instanceof Ga?o.cancel():i(e)})),o.then(e,t,n)},Da.prototype.$goog_Thenable=!0,E(qa,R),qa.prototype.message="Deferred has already fired",qa.prototype.name="AlreadyCalledError",E(Ga,R),Ga.prototype.message="Deferred was canceled",Ga.prototype.name="CanceledError",Wa.prototype.c=function(){throw delete Ha[this.a],this.b};var Ha={};function Ka(e){var t={},n=t.document||document,r=Ce(e).toString(),i=vt(document,"SCRIPT"),o={Wb:i,Ma:void 0},a=new Da(o),s=null,c=null!=t.timeout?t.timeout:5e3;return 0<c&&(s=window.setTimeout((function(){Ya(i,!0);var e=new Ja(Qa,"Timeout reached for loading script "+r);Va(a),Fa(a,!1,e)}),c),o.Ma=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(Ya(i,t.xd||!1,s),Va(a),Fa(a,!0,null))},i.onerror=function(){Ya(i,!0,s);var e=new Ja($a,"Error while loading script "+r);Va(a),Fa(a,!1,e)},ye(o=t.attributes||{}
2,{type:"text/javascript",charset:"UTF-8"}),ft(i,o),function(e,t){be(e,"HTMLScriptElement"),e.src=Ce(t),(t=e.ownerDocument&&e.ownerDocument.defaultView)&&t!=u?t=f(t.document):(null===l&&(l=f(u.document)),t=l),t&&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 Xa(){if(this&&this.Wb){var e=this.Wb;e&&"SCRIPT"==e.tagName&&Ya(e,!0,this.Ma)}}function Ya(e,t,n){null!=n&&u.clearTimeout(n),e.onload=d,e.onerror=d,e.onreadystatechange=d,t&&window.setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e)}),0)}var $a=0,Qa=1;function Ja(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),R.call(this,n),this.code=e}function Za(e){this.f=e}function es(e,n,r){if(this.c=e,e=n||{},this.l=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||rs,this.g=ve(e.secureTokenHeaders||is),this.h=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.i=e.identityPlatformEndpoint||"https://identitytoolkit.googleapis.com/v2/",this.v=e.firebaseTimeout||os,this.a=ve(e.firebaseHeaders||as),r&&(this.a["X-Client-Version"]=r,this.g["X-Client-Version"]=r),r="Node"==Sr(),!(r=u.XMLHttpRequest||r&&t.default.INTERNAL.node&&t.default.INTERNAL.node.XMLHttpRequest)&&!Or())throw new C("internal-error","The XMLHttpRequest compatibility library was not found.");this.f=void 0,Or()?this.f=new ma(self):Er()?this.f=new Za(r):this.f=new ta,this.b=null}E(Ja,R),E(Za,Qo),Za.prototype.a=function(){return new this.f},Za.prototype.b=function(){return{}};var ts,ns="idToken",rs=new Gr(3e4,6e4),is={"Content-Type":"application/x-www-form-urlencoded"},os=new Gr(3e4,6e4),as={"Content-Type":"application/json"};function ss(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function us(e,t){t&&(e.l=cs("https://securetoken.googleapis.com/v1/token",t),e.h=cs("https://www.googleapis.com/identitytoolkit/v3/relyingparty/",t),e.i=cs("https://identitytoolkit.googleapis.com/v2/",t))}function cs(e,t){return e=Bn(e),t=Bn(t.url),e.f=e.a+e.f,Ln(e,t.c),e.a=t.a,Dn(e,t.g),e.toString()}function ls(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 fs(e,t,n,r,i,o,a){(function(){var e=Ar();return!((e=Tr(e)!=Cr?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e)&&(!Ye||!ut||9<ut)})()||Or()?e=x(e.u,e):(ts||(ts=new xt((function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{u[hs]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))},function(e,t){Ua(e,null,t,void 0)}(Ka(Te(ds,{onload:hs})),(function(){t(Error("CORS_UNSUPPORTED"))}))}}(e,t)}))),e=x(e.s,e)),e(t,n,r,i,o,a)}es.prototype.T=function(){return this.b},es.prototype.u=function(e,t,n,r,i,o){if(Or()&&("undefined"===typeof u.fetch||"undefined"===typeof u.Headers||"undefined"===typeof u.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 Oa(this.f);if(o){a.g=Math.max(0,o);var s=setTimeout((function(){a.dispatchEvent("timeout")}),o)}Sn(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 va(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(n){e=null}t&&t(e)})),En(a,"ready",(function(){s&&clearTimeout(s),Kt(this)})),En(a,"timeout",(function(){s&&clearTimeout(s),Kt(this),t&&t(null)})),Ca(a,e,n,r,i)};var ds=new _e(Se,"https://apis.google.com/js/client.js?onload=%{onload}"),hs="__fcb"+Math.floor(1e6*Math.random()).toString();function ps(e,t,n,r,i,o,a){var s=Bn(t+n);Vn(s,"key",e.c),a&&Vn(s,"cb",Date.now().toString());var u="GET"==r;if(u)for(var c in i)i.hasOwnProperty(c)&&Vn(s,c,i[c]);return new xt((function(t,n){fs(e,s.toString(),(function(e){e?e.error?n(cu(e,o||{})):t(e):n(new C("network-request-failed"))}),r,u?void 0:or(Vr(i)),e.a,e.v.get())}))}function gs(e){if("string"!==typeof(e=e.email)||!br.test(e))throw new C("invalid-email")}function vs(e){"email"in e&&gs(e)}function ms(e){if(!e[ns]){if(e.mfaPendingCredential)throw new C("multi-factor-auth-required",null,ve(e));throw new C("internal-error")}}function ys(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")}}es.prototype.s=function(e,t,n,r,i){var o=this;ts.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)}})})).o((function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})}))},es.prototype.zb=function(){return su(this,Ys,{})},es.prototype.Bb=function(e,t){return su(this,Ks,{idToken:e,email:t})},es.prototype.Cb=function(e,t){return su(this,Xs,{idToken:e,password:t})};
2var bs={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function _s(e){if(!e.phoneVerificationInfo)throw new C("internal-error");if(!e.phoneVerificationInfo.sessionInfo)throw new C("missing-verification-id");if(!e.phoneVerificationInfo.code)throw new C("missing-verification-code")}function ws(e){if(!e.requestUri||!e.sessionId&&!e.postBody&&!e.pendingToken)throw new C("internal-error")}function xs(e,t){return t.oauthIdToken&&t.providerId&&0==t.providerId.indexOf("oidc.")&&!t.pendingToken&&(e.sessionId?t.nonce=e.sessionId:e.postBody&&(tr(e=new Qn(e.postBody),"nonce")&&(t.nonce=e.get("nonce")))),t}function Os(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=$o(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=$o(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=$o(e)):e.errorMessage&&(t=uu(e.errorMessage)),t)throw t;ms(e)}function Ss(e,t){return t.returnIdpCredential=!0,su(e,Js,t)}function Es(e,t){return t.returnIdpCredential=!0,su(e,eu,t)}function ks(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,su(e,Zs,t)}function Cs(e){if(!e.oobCode)throw new C("invalid-action-code")}(n=es.prototype).Db=function(e,t){var n={idToken:e},r=[];return pe(bs,(function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)})),r.length&&(n.deleteAttribute=r),su(this,Ks,n)},n.vb=function(e,t){return ye(e={requestType:"PASSWORD_RESET",email:e},t),su(this,zs,e)},n.wb=function(e,t){return ye(e={requestType:"EMAIL_SIGNIN",email:e},t),su(this,Vs,e)},n.ub=function(e,t){return ye(e={requestType:"VERIFY_EMAIL",idToken:e},t),su(this,Us,e)},n.Eb=function(e,t,n){return ye(e={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:e,newEmail:t},n),su(this,Bs,e)},n.fb=function(e){return su(this,ru,e)},n.nb=function(e,t){return su(this,Ws,{oobCode:e,newPassword:t})},n.Ra=function(e){return su(this,js,{oobCode:e})},n.jb=function(e){return su(this,Ts,{oobCode:e})};var Ts={endpoint:"setAccountInfo",A:Cs,Z:"email",B:!0},js={endpoint:"resetPassword",A:Cs,G:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t&&"VERIFY_AND_CHANGE_EMAIL"!=t)throw new C("internal-error")},B:!0},Is={endpoint:"signupNewUser",A:function(e){if(gs(e),!e.password)throw new C("weak-password")},G:ms,V:!0,B:!0},As={endpoint:"createAuthUri",B:!0},Ps={endpoint:"deleteAccount",N:["idToken"]},Ns={endpoint:"setAccountInfo",N:["idToken","deleteProvider"],A:function(e){if(!Array.isArray(e.deleteProvider))throw new C("internal-error")}},Ms={endpoint:"emailLinkSignin",N:["email","oobCode"],A:gs,G:ms,V:!0,B:!0},Rs={endpoint:"emailLinkSignin",N:["idToken","email","oobCode"],A:gs,G:ms,V:!0},Ls={endpoint:"accounts/mfaEnrollment:finalize",N:["idToken","phoneVerificationInfo"],A:_s,G:ms,B:!0,Na:!0},Ds={endpoint:"accounts/mfaSignIn:finalize",N:["mfaPendingCredential","phoneVerificationInfo"],A:_s,G:ms,B:!0,Na:!0},Fs={endpoint:"getAccountInfo"},Vs={endpoint:"getOobConfirmationCode",N:["requestType"],A:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new C("internal-error");gs(e)},Z:"email",B:!0},Us={endpoint:"getOobConfirmationCode",N:["idToken","requestType"],A:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new C("internal-error")},Z:"email",B:!0},Bs={endpoint:"getOobConfirmationCode",N:["idToken","newEmail","requestType"],A:function(e){if("VERIFY_AND_CHANGE_EMAIL"!=e.requestType)throw new C("internal-error")},Z:"email",B:!0},zs={endpoint:"getOobConfirmationCode",N:["requestType"],A:function(e){if("PASSWORD_RESET"!=e.requestType)throw new C("internal-error");gs(e)},Z:"email",B:!0},qs={lb:!0,endpoint:"getProjectConfig",Ub:"GET"},Gs={lb:!0,endpoint:"getRecaptchaParam",Ub:"GET",G:function(e){if(!e.recaptchaSiteKey)throw new C("internal-error")}},Ws={endpoint:"resetPassword",A:Cs,Z:"email",B:!0},Hs={endpoint:"sendVerificationCode",N:["phoneNumber","recaptchaToken"],Z:"sessionInfo",B:!0},Ks={endpoint:"setAccountInfo",N:["idToken"],A:vs,V:!0},Xs={endpoint:"setAccountInfo",N:["idToken"],A:function(e){if(vs(e),!e.password)throw new C("weak-password")},G:ms,V:!0},Ys={endpoint:"signupNewUser",G:ms,V:!0,B:!0},$s={endpoint:"accounts/mfaEnrollment:start",N:["idToken","phoneEnrollmentInfo"],A: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")},G:function(e){if(!e.phoneSessionInfo||!e.phoneSessionInfo.sessionInfo)throw new C("internal-error")},B:!0,Na:!0},Qs={endpoint:"accounts/mfaSignIn:start",N:["mfaPendingCredential","mfaEnrollmentId","phoneSignInInfo"],A:function(e){if(!e.phoneSignInInfo||!e.phoneSignInInfo.recaptchaToken)throw new C("missing-app-credential")},G:function(e){if(!e.phoneResponseInfo||!e.phoneResponseInfo.sessionInfo)throw new C("internal-error")},B:!0,Na:!0},Js={endpoint:"verifyAssertion",A:ws,Ya:xs,G:Os,V:!0,B:!0},Zs={endpoint:"verifyAssertion",A:ws,Ya:xs,G:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new C("user-not-found");if(e.errorMessage)throw uu(e.errorMessage);ms(e)},V:!0,B:!0},eu={endpoint:"verifyAssertion",A:function(e){if(ws(e),!e.idToken)throw new C("internal-error")},Ya:xs,G:Os,V:!0},tu={endpoint:"verifyCustomToken",A:function(e){if(!e.token)throw new C("invalid-custom-token")},G:ms,V:!0,B:!0},nu={endpoint:"verifyPassword",A:function(e){if(gs(e),!e.password)throw new C("wrong-password")},G:ms,V:!0,B:!0},ru={endpoint:"verifyPhoneNumber",A:ys,G:ms,B:!0},iu={endpoint:"verifyPhoneNumber",A:function(e){if(!e.idToken)throw new C("internal-error");ys(e)},G:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",$o(e);ms(e)}},ou={Hb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",A:ys,G:ms,B:!0},au={endpoint:"accounts/mfaEnrollment:withdraw",N:["idToken","mfaEnrollmentId"],G:function(e){if(!!e[ns]^!!e.refreshToken)throw new C("internal-error")},B:!0,Na:!0};function su(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.N))return It(new C("internal-error"));var r,i=!!t.Na,o=t.Ub||"POST";return jt(n).then(t.A).then((function(){return t.V&&(n.returnSecureToken=!0),t.B&&e.b&&"undefined"===typeof n.tenantId&&(n.tenantId=e.b),ps(e,i?e.i:e.h,t.endpoint,o,n,t.Hb,t.lb||!1)})).then((function(e){return r=e,t.Ya?t.Ya(n,r):r})).then(t.G).then((function(){if(!t.Z)return r;if(!(t.Z in r))throw new C("internal-error");return r[t.Z]}))}function uu(e){return cu({error:{errors:[{message:e}],code:400,message:e}})}function cu(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||"",ye(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=Fr(e)),new C("internal-error",t)}function lu(e){this.b=e,this.a=null,this.rb=function(e){return(pu||(pu=new xt((function(e,t){function n(){qr(),Pr("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){qr(),t(Error("Network Error"))},timeout:du.get()})}if(Pr("gapi.iframes.Iframe"))e();else if(Pr("gapi.load"))n();else{var r="__iframefcb"+Math.floor(1e6*Math.random()).toString();u[r]=function(){Pr("gapi.load")?n():t(Error("Network Error"))},jt(Ka(r=Te(fu,{onload:r}))).o((function(){t(Error("Network Error"))}))}})).o((function(e){throw pu=null,e})))).then((function(){return new xt((function(t,n){Pr("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:Pr("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"))}),hu.get());r.ping(i).then(i,(function(){n(Error("Network Error"))}))}))}))}))}(this)}var fu=new _e(Se,"https://apis.google.com/js/api.js?onload=%{onload}"),du=new Gr(3e4,6e4),hu=new Gr(5e3,15e3),pu=null;function gu(e,t,n,r){this.l=e,this.h=t,this.i=n,this.g=r,this.f=null,this.g?e=zn((e=Bn(this.g.url)).c,e.a,e.g,"/emulator/auth/iframe"):e=zn("https",this.l,null,"/__/auth/iframe"),this.a=e,Vn(this.a,"apiKey",this.h),Vn(this.a,"appName",this.i),this.b=null,this.c=[]}function vu(e,t,n,r,i,o){this.u=e,this.s=t,this.c=n,this.m=r,this.v=o,this.i=this.g=this.l=null,this.a=i,this.h=this.f=null}function mu(e){try{return t.default.app(e).auth().Ga()}catch(n){return[]}}function yu(e,t,n,r,i,o){this.s=e,this.g=t,this.b=n,this.f=o,this.c=r||null,this.i=i||null,this.l=this.u=this.C=null,this.h=[],this.m=this.a=null}function bu(e){var t=dr();return function(e){return su(e,qs,{}).then((function(e){return e.authorizedDomains||[]}))}(e).then((function(e){e:{var n=Bn(t),r=n.c;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=Bn(o).a==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:yr.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 Xo(dr())}))}function _u(e){return e.m||(e.m=_r().then((function(){if(!e.u){var t=e.c,n=e.i,r=mu(e.b),i=new gu(e.s,e.g,e.b,e.f);i.f=t,i.b=n,i.c=Z(r||[]),e.u=i.toString()}e.v=new lu(e.u),function(e){if(!e.v)throw Error("IfcHandler must be initialized!");!function(e,t){e.rb.then((function(){e.a.register("authEvent",t,Pr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}(e.v,(function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=Go(t.authEvent),n=0;n<e.h.length;n++)r=e.h[n](t)||r;return(n={}).status=r?"ACK":"ERROR",jt(n)}return n.status="ERROR",jt(n)}))}(e)}))),e.m}function wu(e){return e.l||(e.C=e.c?Ir(e.c,mu(e.b)):null,e.l=new es(e.g,N(e.i),e.C),e.f&&us(e.l,e.f)),e.l}function xu(e,t,n,r,i,o,a,s,u,c,l,f){return(e=new vu(e,t,n,r,i,f)).l=o,e.g=a,e.i=s,e.b=ve(u||null),e.f=c,e.yb(l).toString()}function Ou(e){if(this.a=e||t.default.INTERNAL.reactNative&&t.default.INTERNAL.reactNative.AsyncStorage,!this.a)throw new C("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function Su(e){this.b=e,this.a={},this.f=x(this.c,this)}gu.prototype.toString=function(){return this.f?Vn(this.a,"v",this.f):er(this.a.b,"v"),this.b?Vn(this.a,"eid",this.b):er(this.a.b,"eid"),this.c.length?Vn(this.a,"fw",this.c.join(",")):er(this.a.b,"fw"),this.a.toString()},vu.prototype.yb=function(e){return this.h=e,this},vu.prototype.toString=function(){if(this.v){var e=Bn(this.v.url);e=zn(e.c,e.a,e.g,"/emulator/auth/handler")}else e=zn("https",this.u,null,"/__/auth/handler");if(Vn(e,"apiKey",this.s),Vn(e,"appName",this.c),Vn(e,"authType",this.m),this.a.isOAuthProvider){var n=this.a;try{var r=t.default.app(this.c).auth().la()}catch(u){r=null}for(var i in n.ob=r,Vn(e,"providerId",this.a.providerId),n=Vr((r=this.a).Ib))n[i]=n[i].toString();i=r.Qc,n=ve(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}r.pb&&r.ob&&!n[r.pb]&&(n[r.pb]=r.ob),ge(n)||Vn(e,"customParameters",Fr(n))}if("function"===typeof this.a.Qb&&((r=this.a.Qb()).length&&Vn(e,"scopes",r.join(","))),this.l?Vn(e,"redirectUrl",this.l):er(e.b,"redirectUrl"),this.g?Vn(e,"eventId",this.g):er(e.b,"eventId"),this.i?Vn(e,"v",this.i):er(e.b,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Un(e,s)&&Vn(e,s,this.b[s]);return this.h?Vn(e,"tid",this.h):er(e.b,"tid"),this.f?Vn(e,"eid",this.f):er(e.b,"eid"),(s=mu(this.c)).length&&Vn(e,"fw",s.join(",")),e.toString()},(n=yu.prototype).Ob=function(e,t,n){var r=new C("popup-closed-by-user"),i=new C("web-storage-unsupported"),o=this,a=!1;return this.ma().then((function(){(function(e){var t={type:"webStorageSupport"};return _u(e).then((function(){return function(e,t){return e.rb.then((function(){return new xt((function(n){e.a.send(t.type,t,n,Pr("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))}))}))}(e.v,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&&vr(e),t(i),a=!0)}))})).o((function(){})).then((function(){if(!a)return function(e){return new xt((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)}))}))},n.Xb=function(){var e=Ar();return!Dr(e)&&!zr(e)},n.Tb=function(){return!1}
2,n.Mb=function(e,t,n,r,i,o,a,s){if(!e)return It(new C("popup-blocked"));if(a&&!Dr())return this.ma().o((function(t){vr(e),i(t)})),r(),jt();this.a||(this.a=bu(wu(this)));var u=this;return this.a.then((function(){var t=u.ma().o((function(t){throw vr(e),i(t),t}));return r(),t})).then((function(){(zo(n),a)||hr(xu(u.s,u.g,u.b,t,n,null,o,u.c,void 0,u.i,s,u.f),e)})).o((function(e){throw"auth/network-request-failed"==e.code&&(u.a=null),e}))},n.Nb=function(e,t,n,r){this.a||(this.a=bu(wu(this)));var i=this;return this.a.then((function(){zo(t),hr(xu(i.s,i.g,i.b,e,t,dr(),n,i.c,void 0,i.i,r,i.f))})).o((function(e){throw"auth/network-request-failed"==e.code&&(i.a=null),e}))},n.ma=function(){var e=this;return _u(this).then((function(){return e.v.rb})).o((function(){throw e.a=null,new C("network-request-failed")}))},n.$b=function(){return!0},n.Ea=function(e){this.h.push(e)},n.Sa=function(e){Q(this.h,(function(t){return t==e}))},(n=Ou.prototype).get=function(e){return jt(this.a.getItem(e)).then((function(e){return e&&Ur(e)}))},n.set=function(e,t){return jt(this.a.setItem(e,Fr(t)))},n.U=function(e){return jt(this.a.removeItem(e))},n.ca=function(){},n.ia=function(){};var Eu,ku=[];function Cu(e,t,n){ge(e.a)&&e.b.addEventListener("message",e.f),"undefined"===typeof e.a[t]&&(e.a[t]=[]),e.a[t].push(n)}function Tu(e){this.a=e}function ju(e){this.c=e,this.b=!1,this.a=[]}function Iu(e,t,n,r){var i,o,a,s,u=n||{},c=null;if(e.b)return It(Error("connection_unavailable"));var l=r?800:50,f="undefined"!==typeof MessageChannel?new MessageChannel:null;return new xt((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 Au(e,c),t})).o((function(t){throw Au(e,c),t}))}function Au(e,t){if(t){var n=t.messageChannel,r=t.onMessage;n&&(n.port1.removeEventListener("message",r),n.port1.close()),Q(e.a,(function(e){return e==t}))}}function Pu(){if(!Lu())throw new C("web-storage-unsupported");this.c={},this.a=[],this.b=0,this.m=u.indexedDB,this.type="indexedDB",this.g=this.v=this.f=this.l=null,this.s=!1,this.h=null;var e=this;Or()&&self?(this.v=function(){var e=Or()?self:null;if(W(ku,(function(n){n.b==e&&(t=n)})),!t){var t=new Su(e);ku.push(t)}return t}(),Cu(this.v,"keyChanged",(function(t,n){return Bu(e).then((function(t){return 0<t.length&&W(e.a,(function(e){e(t)})),{keyProcessed:Y(t,n.key)}}))})),Cu(this.v,"ping",(function(){return jt(["keyChanged"])}))):function(){var e=u.navigator;return e&&e.serviceWorker?jt().then((function(){return e.serviceWorker.ready})).then((function(e){return e.active||null})).o((function(){return null})):jt(null)}().then((function(t){(e.h=t)&&(e.g=new ju(new Tu(t)),Iu(e.g,"ping",null,!0).then((function(t){t[0].fulfilled&&Y(t[0].value,"keyChanged")&&(e.s=!0)})).o((function(){})))}))}function Nu(e){return new xt((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 xt((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 Nu(e)})).then((function(e){t(e)})).o((function(e){n(e)}))}}))}function Mu(e){return e.i||(e.i=Nu(e)),e.i}function Ru(e,t){var n=0;return new xt((function r(i,o){Mu(e).then(t).then(i).o((function(t){if(!(3<++n))return Mu(e).then((function(t){return t.close(),e.
2i=void 0,r(i,o)})).o((function(e){o(e)}));o(t)}))}))}function Lu(){try{return!!u.indexedDB}catch(da){return!1}}function Du(e){return e.objectStore("firebaseLocalStorage")}function Fu(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function Vu(e){return new xt((function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(e.target.error)}}))}function Uu(e,t){return e.g&&e.h&&function(){var e=u.navigator;return e&&e.serviceWorker&&e.serviceWorker.controller||null}()===e.h?Iu(e.g,"keyChanged",{key:t},e.s).then((function(){})).o((function(){})):jt()}function Bu(e){return Mu(e).then((function(e){var t=Du(Fu(e,!1));return t.getAll?Vu(t.getAll()):new xt((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=pr(e.c,n),e.c=n}return r}))}function zu(e){e.l&&e.l.cancel("STOP_EVENT"),e.f&&(clearTimeout(e.f),e.f=null)}function qu(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=jt().then((function(){if(Lu()){var e=Br(),r="__sak"+e;return Eu||(Eu=new Pu),(n=Eu).set(r,e).then((function(){return n.get(r)})).then((function(t){if(t!==e)throw Error("indexedDB not supported!");return n.U(r)})).then((function(){return n})).o((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 Gu(){this.a={},this.type="inMemory"}function Wu(){if(!function(){var e="Node"==Sr();if(!(e=Hu()||e&&t.default.INTERNAL.node&&t.default.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==Sr())throw new C("internal-error","The LocalStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Hu()||t.default.INTERNAL.node.localStorage,this.type="localStorage"}function Hu(){try{var e=u.localStorage,t=Br();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function Ku(){this.type="nullStorage"}function Xu(){if(!function(){var e="Node"==Sr();if(!(e=Yu()||e&&t.default.INTERNAL.node&&t.default.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(n){return!1}}()){if("Node"==Sr())throw new C("internal-error","The SessionStorage compatibility library was not found.");throw new C("web-storage-unsupported")}this.a=Yu()||t.default.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Yu(){try{var e=u.sessionStorage,t=Br();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(n){return null}}function $u(){var e={};e.Browser=Zu,e.Node=ec,e.ReactNative=tc,e.Worker=nc,this.a=e[Sr()]}Su.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(jt().then((function(){return t(e.origin,e.data.data)})))})),Pt(i).then((function(r){var i=[];W(r,(function(e){i.push({fulfilled:e.Pb,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})}))}},Tu.prototype.postMessage=function(e,t){this.a.postMessage(e,t)},ju.prototype.close=function(){for(;0<this.a.length;)Au(this,this.a[0]);this.b=!0},(n=Pu.prototype).set=function(e,t){var n=this,r=!1;return Ru(this,(function(t){return Vu((t=Du(Fu(t,!0))).get(e))})).then((function(i){return Ru(n,(function(o){if(o=Du(Fu(o,!0)),i)return i.value=t,Vu(o.put(i));n.b++,r=!0;var a={};return a.fbase_key=e,a.value=t,Vu(o.add(a))}))})).then((function(){return n.c[e]=t,Uu(n,e)})).oa((function(){r&&n.b--}))},n.get=function(e){return Ru(this,(function(t){return Vu(Du(Fu(t,!1)).get(e))})).then((function(e){return e&&e.value}))},n.U=function(e){var t=this,n=!1;return Ru(this,(function(r){return n=!0,t.b++,Vu(Du(Fu(r,!0)).delete(e))})).then((function(){return delete t.c[e],Uu(t,e)})).oa((function(){n&&t.b--}))},n.ca=function(e){0==this.a.length&&function(e){function t(){e.f=setTimeout((function(){e.l=Bu(e).then((function(t){0<t.length&&W(e.a,(function(e){e(t)}))}
2)).then((function(){t()})).o((function(e){"STOP_EVENT"!=e.message&&t()}))}),800)}zu(e),t()}(this),this.a.push(e)},n.ia=function(e){Q(this.a,(function(t){return t==e})),0==this.a.length&&zu(this)},(n=qu.prototype).get=function(e){return this.b.then((function(t){return t.get(e)}))},n.set=function(e,t){return this.b.then((function(n){return n.set(e,t)}))},n.U=function(e){return this.b.then((function(t){return t.U(e)}))},n.ca=function(e){this.a.push(e)},n.ia=function(e){Q(this.a,(function(t){return t==e}))},(n=Gu.prototype).get=function(e){return jt(this.a[e])},n.set=function(e,t){return this.a[e]=t,jt()},n.U=function(e){return delete this.a[e],jt()},n.ca=function(){},n.ia=function(){},(n=Wu.prototype).get=function(e){var t=this;return jt().then((function(){return Ur(t.a.getItem(e))}))},n.set=function(e,t){var n=this;return jt().then((function(){var r=Fr(t);null===r?n.U(e):n.a.setItem(e,r)}))},n.U=function(e){var t=this;return jt().then((function(){t.a.removeItem(e)}))},n.ca=function(e){u.window&&fn(u.window,"storage",e)},n.ia=function(e){u.window&&pn(u.window,"storage",e)},(n=Ku.prototype).get=function(){return jt(null)},n.set=function(){return jt()},n.U=function(){return jt()},n.ca=function(){},n.ia=function(){},(n=Xu.prototype).get=function(e){var t=this;return jt().then((function(){return Ur(t.a.getItem(e))}))},n.set=function(e,t){var n=this;return jt().then((function(){var r=Fr(t);null===r?n.U(e):n.a.setItem(e,r)}))},n.U=function(e){var t=this;return jt().then((function(){t.a.removeItem(e)}))},n.ca=function(){},n.ia=function(){};var Qu,Ju,Zu={F:Wu,bb:Xu},ec={F:Wu,bb:Xu},tc={F:Ou,bb:Ku},nc={F:Wu,bb:Ku},rc={rd:"local",NONE:"none",td:"session"};function ic(){var e=!(zr(Ar())||!xr()),t=Dr(),n=Nr();this.m=e,this.h=t,this.l=n,this.a={},Qu||(Qu=new $u),e=Qu;try{this.g=!fr()&&Kr()||!u.indexedDB?new e.a.F:new qu(Or()?new Gu:new e.a.F)}catch(r){this.g=new Gu,this.h=!0}try{this.i=new e.a.bb}catch(r){this.i=new Gu}this.v=new Gu,this.f=x(this.Yb,this),this.b={}}function oc(){return Ju||(Ju=new ic),Ju}function ac(e,t){switch(t){case"session":return e.i;case"none":return e.v;default:return e.g}}function sc(e,t){return"firebase:"+e.name+(t?":"+t:"")}function uc(e,t,n){return n=sc(t,n),"local"==t.F&&(e.b[n]=null),ac(e,t.F).U(n)}function cc(e){e.c&&(clearInterval(e.c),e.c=null)}function lc(e){this.a=e,this.b=oc()}(n=ic.prototype).get=function(e,t){return ac(this,e.F).get(sc(e,t))},n.set=function(e,t,n){var r=sc(e,n),i=this,o=ac(this,e.F);return o.set(r,t).then((function(){return o.get(r)})).then((function(t){"local"==e.F&&(i.b[r]=t)}))},n.addListener=function(e,t,n){e=sc(e,t),this.l&&(this.b[e]=u.localStorage.getItem(e)),ge(this.a)&&(ac(this,"local").ca(this.f),this.h||(fr()||!Kr())&&u.indexedDB||!this.l||function(e){cc(e),e.c=setInterval((function(){for(var t in e.a){var n=u.localStorage.getItem(t),r=e.b[t];n!=r&&(e.b[t]=n,n=new Zt({type:"storage",key:t,target:window,oldValue:r,newValue:n,a:!0}),e.Yb(n))}}),1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(n)},n.removeListener=function(e,t,n){e=sc(e,t),this.a[e]&&(Q(this.a[e],(function(e){return e==n})),0==this.a[e].length&&delete this.a[e]),ge(this.a)&&(ac(this,"local").ia(this.f),cc(this))},n.Yb=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=u.localStorage.getItem(n);i!==r&&(this.b[n]=i,this.mb(n))}else if(0==t.indexOf("firebase:")&&this.a[t]){if("undefined"!==typeof e.a.a?ac(this,"local").ia(this.f):cc(this),this.m)if(n=u.localStorage.getItem(t),(r=e.a.newValue)!==n)null!==r?u.localStorage.setItem(t,r):u.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]===u.localStorage.getItem(t)||(o.b[t]=u.localStorage.getItem(t),o.mb(t))},Ye&&ut&&10==ut&&u.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(n,10):n()}}else W(e,x(this.mb,this))},n.mb=function(e){this.a[e]&&W(this.a[e],(function(e){e()}))};var fc,dc={name:"authEvent",F:"local"};function hc(){this.a=oc()}function pc(e,t){this.b=gc,this.f=u.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.l=u.Int32Array?new Int32Array(64):Array(64),void 0===fc&&(fc=u.Int32Array?new Int32Array(xc):xc),this.reset()}E(pc,(function(){this.b=-1}));for(var gc=64,vc=gc-1,mc=[],yc=0;yc<vc;yc++)mc[yc]=0;var bc=J(128,mc);function _c(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>>
2>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 d=((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|fc[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+d|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 wc(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&&(_c(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&&(_c(e),i=0)}}e.c=i,e.g+=n}pc.prototype.reset=function(){this.g=this.c=0,this.a=u.Int32Array?new Int32Array(this.h):Z(this.h)};var xc=[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 Oc(){pc.call(this,8,Sc)}E(Oc,pc);var Sc=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function Ec(e,t,n,r,i,o){this.v=e,this.i=t,this.l=n,this.m=r||null,this.u=i||null,this.s=o,this.h=t+":"+n,this.C=new hc,this.g=new lc(this.h),this.f=null,this.b=[],this.a=this.c=null}function kc(e){return new C("invalid-cordova-configuration",e)}function Cc(e){var t=new Oc;wc(t,e),e=[];var n=8*t.g;56>t.c?wc(t,bc,56-t.c):wc(t,bc,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(_c(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 Tc(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(r){}}function jc(e){return e.f||(e.f=e.ma().then((function(){return new xt((function(t){e.Ea((function n(r){return t(r),e.Sa(n),!1})),function(e){function t(t){r=!0,i&&i.cancel(),Ic(e).then((function(r){var i=n;if(r&&t&&t.url){var o=null;-1!=(i=so(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"===typeof(o=Ur(Un(o=Bn(i),"firebaseError")||null))?T(o):null)?new qo(r.c,r.b,null,null,o,null,r.T()):new qo(r.c,r.b,i,r.f,null,null,r.T())),i=o||n}Tc(e,i)}))}var n=new qo("unknown",null,null,null,new C("no-auth-event")),r=!1,i=Tn(500).then((function(){return Ic(e).then((function(){r||Tc(e,n)}))})),o=u.handleOpenURL;u.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(Pr("BuildInfo.packageName",u).toLowerCase()+"://")&&t({url:e}),"function"===typeof o)try{o(e)}catch(n){console.error(n)}},Ko||(Ko=new Wo),function(e){var t=Ko;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=Pr("universalLinks.subscribe",u))&&e(null,t.b))}(t)}(e)}))}))),e.f}function Ic(e){var t=null;return function(e){return e.b.get(dc,e.a).then((function(e){return Go(e)}))}(e.g).then((function(n){return t=n,uc((n=e.g).b,dc,n.a)})).then((function(){return t}))}function Ac(e){this.a=e,this.b=oc()}(n=Ec.prototype).ma=function(){return this.Ia?this.Ia:this.Ia=(wr(void 0)?_r().then((function(){return new xt((function(e,t){var n=u.document,r=setTimeout((function(){t(Error("Cordova framework is not ready."))}),1e3);n.addEventListener("deviceready",(function(){clearTimeout(r),e()}),!1)}))})):It(Error("Cordova must run in an Android or iOS file scheme."))).then((function(){if("function"!==typeof Pr("universalLinks.subscribe",u))throw kc("cordova-universal-links-plugin-fix is not installed");if("undefined"===typeof Pr("BuildInfo.packageName",u))throw kc("cordova-plugin-buildinfo is not installed");if("function"!==typeof Pr("cordova.plugins.browsertab.openUrl",u))throw kc("cordova-plugin-browsertab is not installed");if("function"!==typeof Pr("cordova.InAppBrowser.open",u))throw kc("cordova-plugin-inappbrowser is not installed")}),(function(){throw new C("cordova-not-ready")}))}
2,n.Ob=function(e,t){return t(new C("operation-not-supported-in-this-environment")),jt()},n.Mb=function(){return It(new C("operation-not-supported-in-this-environment"))},n.$b=function(){return!1},n.Xb=function(){return!0},n.Tb=function(){return!0},n.Nb=function(e,t,n,r){if(this.c)return It(new C("redirect-operation-pending"));var i=this,o=u.document,a=null,s=null,c=null,l=null;return this.c=jt().then((function(){return zo(t),jc(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 qo(t,r,null,o,new C("no-auth-event"),null,i),s=Pr("BuildInfo.packageName",u);if("string"!==typeof s)throw new C("invalid-cordova-configuration");var c=Pr("BuildInfo.displayName",u),l={};if(Ar().toLowerCase().match(/iphone|ipad|ipod/))l.ibi=s;else{if(!Ar().toLowerCase().match(/android/))return It(new C("operation-not-supported-in-this-environment"));l.apn=s}c&&(l.appDisplayName=c),o=Cc(o),l.sessionId=o;var f=xu(e.v,e.i,e.l,t,n,null,r,e.m,l,e.u,i,e.s);return e.ma().then((function(){var t=e.h;return e.C.a.set(dc,a.w(),t)})).then((function(){var t=Pr("cordova.plugins.browsertab.isAvailable",u);if("function"!==typeof t)throw new C("invalid-cordova-configuration");var n=null;t((function(t){if(t){if("function"!==typeof(n=Pr("cordova.plugins.browsertab.openUrl",u)))throw new C("invalid-cordova-configuration");n(f)}else{if("function"!==typeof(n=Pr("cordova.InAppBrowser.open",u)))throw new C("invalid-cordova-configuration");t=Ar(),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 xt((function(e,t){s=function(){var t=Pr("cordova.plugins.browsertab.close",u);return e(),"function"===typeof t&&t(),i.a&&"function"===typeof i.a.close&&(i.a.close(),i.a=null),!1},i.Ea(s),c=function(){a||(a=Tn(2e3).then((function(){t(new C("redirect-cancelled-by-user"))})))},l=function(){Wr()&&c()},o.addEventListener("resume",c,!1),Ar().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",l,!1)})).o((function(e){return Ic(i).then((function(){throw e}))}))})).oa((function(){c&&o.removeEventListener("resume",c,!1),l&&o.removeEventListener("visibilitychange",l,!1),a&&a.cancel(),s&&i.Sa(s),i.c=null}))},n.Ea=function(e){this.b.push(e),jc(this).o((function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new qo("unknown",null,null,null,new C("no-auth-event")),e(t))}))},n.Sa=function(e){Q(this.b,(function(t){return t==e}))};var Pc={name:"pendingRedirect",F:"session"};function Nc(e){return uc(e.b,Pc,e.a)}function Mc(e,t,n,r){this.i={},this.u=0,this.D=e,this.v=t,this.m=n,this.J=r,this.h=[],this.f=!1,this.l=x(this.s,this),this.b=new Yc,this.C=new el,this.g=new Ac(Kc(this.v,this.m)),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.C,this.c.linkViaPopup=this.C,this.c.reauthViaPopup=this.C,this.a=Rc(this.D,this.v,this.m,j,this.J)}function Rc(e,n,r,i,o){var a=t.default.SDK_VERSION||null;return wr()?new Ec(e,n,r,a,i,o):new yu(e,n,r,a,i,o)}function Lc(e){e.f||(e.f=!0,e.a.Ea(e.l));var t=e.a;return e.a.ma().o((function(n){throw e.a==t&&e.reset(),n}))}function Dc(e){e.a.Xb()&&Lc(e).o((function(t){var n=new qo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));qc(t)&&e.s(n)})),e.a.Tb()||$c(e.b)}function Fc(e,t){Y(e.h,t)||e.h.push(t),e.f||function(e){return e.b.get(Pc,e.a).then((function(e){return"pending"==e}))}(e.g).then((function(t){t?Nc(e.g).then((function(){Lc(e).o((function(t){var n=new qo("unknown",null,null,null,new C("operation-not-supported-in-this-environment"));qc(t)&&e.s(n)}))})):Dc(e)})).o((function(){Dc(e)}))}function Vc(e,t){Q(e.h,(function(e){return e==t}))}Mc.prototype.reset=function(){this.f=!1,this.a.Sa(this.l),this.a=Rc(this.D,this.v,this.m,null,this.J),this.i={}},Mc.prototype.s=function(e){if(!e)throw new C("invalid-auth-event");if(6e5<=Date.now()-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.Fb(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=Date.now())),t=!0;break}}return $c(this.b),t};var Uc=new Gr(2e3,1e4),Bc=new Gr(3e4,6e4);function zc(e,t,n,r,i,o,a){return e.a.Mb(t,n,r,(function(){e.f||(e.f=!0,e.a.Ea(e.l))}),(function(){e.reset()}),i,o,a)}function qc(e){return!(!e||"auth/cordova-not-ready"!=e.code)}function Gc(e,t,n,r,i){var o;return function(e){return e.b.set(Pc,"pending",e.a)}(e.g).then((function(){return e.a.Nb(t,n,r,i).o((function(t){if(qc(t))throw new C("operation-not-supported-in-this-environment");return o=t,Nc(e.g).then((function(){throw o}))})).then((function(){return e.a.$b()?new xt((function(){})):Nc(e.g).then((function(){return e.qa()})).then((function(){})).o((function(){}))}))}))}function Wc(e,t,n,r,i){return e.a.Ob(r,(function(e){t.na(n,null,e,i)}),Uc.get())}Mc.prototype.qa=function(){return this.b.qa()};var Hc={};function Kc(e,t,n){return e=e+":"+t,n&&(e=e+":"+n.url),e}function Xc(e,t,n,r){var i=Kc(t,n,r);return Hc[i]||(Hc[i]=new Mc(e,t,n,r)),Hc[i]}function Yc(){this.b=null,this.f=[],this.c=[],this.a=null,this.i=this.g=!1}function $c(e){e.g||(e.g=!0,Zc(e,!1,null,null))}function Qc(e){e.g&&!e.i&&Zc(e,!1,null,null)}
2function Jc(e,t){if(e.b=function(){return jt(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function Zc(e,t,n,r){t?r?function(e,t){if(e.b=function(){return It(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):Jc(e,n):Jc(e,{user:null}),e.f=[],e.c=[]}function el(){}function tl(){this.ib=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.ib},set:function(e){this.ib=e},enumerable:!1})}function nl(e,t){this.a=t,Jr(this,"verificationId",e)}function rl(e,t,n,r){return new Vo(e).fb(t,n).then((function(e){return new nl(e,r)}))}function il(e){var t=Ki(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.");Zr(this,{token:e,expirationTime:Hr(1e3*t.exp),authTime:Hr(1e3*t.auth_time),issuedAtTime:Hr(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 ol(e,t,n){var r=t&&t[sl];if(!r)throw new C("argument-error","Internal assert: Invalid MultiFactorResolver");this.a=e,this.f=ve(t),this.g=n,this.c=new uo(null,r),this.b=[];var i=this;W(t[al]||[],(function(e){(e=ri(e))&&i.b.push(e)})),Jr(this,"auth",this.a),Jr(this,"session",this.c),Jr(this,"hints",this.b)}Yc.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},Yc.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?(Zc(this,!0,null,e.a),jt()):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.T(),s=!!t.c.match(/Redirect$/);n(r,i,a,o).then((function(t){Zc(e,s,t,null)})).o((function(t){Zc(e,s,null,t)}))}(this,e,t):It(new C("invalid-auth-event")):(Zc(this,!1,null,null),jt())}else It(new C("invalid-auth-event"))},Yc.prototype.qa=function(){var e=this;return new xt((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(Bc.get()).then((function(){e.b||(e.g=!0,Zc(e,!0,null,t))}))}(e))}))},el.prototype.h=function(e,t){if(e){var n=e.c,r=e.b;e.a?(t.na(e.c,null,e.a,e.b),jt()):t.Fa(n,r)?function(e,t){var n=e.b,r=e.c;t.Fa(r,n)(e.g,e.f,e.T(),e.i).then((function(e){t.na(r,e,null,n)})).o((function(e){t.na(r,null,e,n)}))}(e,t):It(new C("invalid-auth-event"))}else It(new C("invalid-auth-event"))},nl.prototype.confirm=function(e){return e=Uo(this.verificationId,e),this.a(e)};var al="mfaInfo",sl="mfaPendingCredential";function ul(e,t,n,r){C.call(this,"multi-factor-auth-required",r,t),this.b=new ol(e,t,n),Jr(this,"resolver",this.b)}function cl(e,t,n){if(e&&v(e.serverResponse)&&"auth/multi-factor-auth-required"===e.code)try{return new ul(t,e.serverResponse,n,e.message)}catch(r){}return null}function ll(){}function fl(e){Jr(this,"factorId",e.fa),this.a=e}function dl(e){if(fl.call(this,e),this.a.fa!=Vo.PROVIDER_ID)throw new C("argument-error","firebase.auth.PhoneMultiFactorAssertion requires a valid firebase.auth.PhoneAuthCredential")}function hl(e,t){for(var n in Jt.call(this,e),t)this[n]=t[n]}function pl(e,t){this.a=e,this.b=[],this.c=x(this.yc,this),fn(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[ai]=e.uid),e.displayName&&(r[ii]=e.displayName),e.enrollmentTime&&(r[oi]=new Date(e.enrollmentTime).toISOString()),e.phoneNumber&&(r[si]=e.phoneNumber);try{t=new ui(r)}catch(i){}e=t}else e=null;e&&n.push(e)})),gl(this,n)}function gl(e,t){e.b=t,Jr(e,"enrolledFactors",t)}function vl(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 ml(e,t){e.stop(),e.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)}(e,t)).then((function(){return function(){var e=u.document,t=null;return Wr()||!e?jt():new xt((function(n){t=function(){Wr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)})).o((function(n){throw e.removeEventListener("visibilitychange",t,!1),n}))}()})).then((function(){return e.h()})).then((function(){ml(e,!0)})).o((function(t){e.i(t)&&ml(e,!1)}))}function yl(e){this.f=e,this.b=this.a=null,this.c=Date.now()}function bl(e,t){"undefined"===typeof t&&(e.b?t=(t=e.b).a-t.g:t=0),e.c=Date.now()+1e3*t}function _l(e,t){e.b=Hi(t[ns]||""),e.a=t.refreshToken,bl(e,"undefined"!==typeof(t=t.expires
2In)?Number(t):void 0)}function wl(e,t){return function(e,t){return new xt((function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?fs(e,e.l+"?key="+encodeURIComponent(e.c),(function(e){e?e.error?r(cu(e)):e.access_token&&e.refresh_token?n(e):r(new C("internal-error")):r(new C("network-request-failed"))}),"POST",Zn(t).toString(),e.g,e.m.get()):r(new C("internal-error"))}))}(e.f,t).then((function(t){return e.b=Hi(t.access_token),e.a=t.refresh_token,bl(e,t.expires_in),{accessToken:e.b.toString(),refreshToken:e.a}})).o((function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t}))}function xl(e,t){this.a=e||null,this.b=t||null,Zr(this,{lastSignInTime:Hr(t||null),creationTime:Hr(e||null)})}function Ol(e,t,n,r,i,o){Zr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}function Sl(e,n,r){this.J=[],this.l=e.apiKey,this.m=e.appName,this.s=e.authDomain||null;var i=t.default.SDK_VERSION?Ir(t.default.SDK_VERSION):null;this.a=new es(this.l,N(j),i),e.emulatorConfig&&us(this.a,e.emulatorConfig),this.b=new yl(this.a),Pl(this,n[ns]),_l(this.b,n),Jr(this,"refreshToken",this.b.a),Rl(this,r||{}),On.call(this),this.R=!1,this.s&&Mr()&&(this.i=Xc(this.s,this.l,this.m)),this.S=[],this.h=null,this.u=function(e){return new vl((function(){return e.I(!0)}),(function(e){return!(!e||"auth/network-request-failed"!=e.code)}),(function(){var t=e.b.c-Date.now()-3e5;return 0<t?t:0}))}(this),this.aa=x(this.hb,this);var o=this;this.ya=null,this.Oa=function(e){o.wa(e.h)},this.ja=null,this.Aa=function(e){us(o.a,e.c)},this.X=null,this.$=[],this.Ba=function(e){Cl(o,e.f)},this.ba=null,this.O=new pl(this,r),Jr(this,"multiFactor",this.O)}function El(e,t){e.ja&&pn(e.ja,"languageCodeChanged",e.Oa),(e.ja=t)&&fn(t,"languageCodeChanged",e.Oa)}function kl(e,t){e.X&&pn(e.X,"emulatorConfigChanged",e.Aa),(e.X=t)&&fn(t,"emulatorConfigChanged",e.Aa)}function Cl(e,n){e.$=n,ls(e.a,t.default.SDK_VERSION?Ir(t.default.SDK_VERSION,e.$):null)}function Tl(e,t){e.ba&&pn(e.ba,"frameworkChanged",e.Ba),(e.ba=t)&&fn(t,"frameworkChanged",e.Ba)}function jl(e){try{return t.default.app(e.m).auth()}catch(n){throw new C("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.m+"'!")}}function Il(e){e.D||e.u.b||(e.u.start(),pn(e,"tokenChanged",e.aa),fn(e,"tokenChanged",e.aa))}function Al(e){pn(e,"tokenChanged",e.aa),e.u.stop()}function Pl(e,t){e.za=t,Jr(e,"_lat",t)}function Nl(e){for(var t=[],n=0;n<e.S.length;n++)t.push(e.S[n](e));return Pt(t).then((function(){return e}))}function Ml(e){e.i&&!e.R&&(e.R=!0,Fc(e.i,e))}function Rl(e,t){Zr(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 xl(t.createdAt,t.lastLoginAt),providerData:[]}),e.a.b=e.tenantId}function Ll(){}function Dl(e){return jt().then((function(){if(e.D)throw new C("app-deleted")}))}function Fl(e){return K(e.providerData,(function(e){return e.providerId}))}function Vl(e,t){t&&(Ul(e,t.providerId),e.providerData.push(t))}function Ul(e,t){Q(e.providerData,(function(e){return e.providerId==t}))}function Bl(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Jr(e,t,n)}function zl(e,t){e!=t&&(Zr(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?Jr(e,"metadata",function(e){return new xl(e.a,e.b)}(t.metadata)):Jr(e,"metadata",new xl),W(t.providerData,(function(t){Vl(e,t)})),function(e,t){e.b=t.b,e.a=t.a,e.c=t.c}(e.b,t.b),Jr(e,"refreshToken",e.b.a),gl(e.O,t.O.b))}function ql(e){return e.I().then((function(t){var n=e.isAnonymous;return function(e,t){return su(e.a,Fs,{idToken:t}).then(x(e.Kc,e))}(e,t).then((function(){return n||Bl(e,"isAnonymous",!1),t}))}))}function Gl(e,t){t[ns]&&e.za!=t[ns]&&(_l(e.b,t),e.dispatchEvent(new hl("tokenChanged")),Pl(e,t[ns]),Bl(e,"refreshToken",e.b.a))}function Wl(e,t){return ql(e).then((function(){if(Y(Fl(e),t))return Nl(e).then((function(){throw new C("provider-already-linked")}))}))}function Hl(e,t,n){return ei({user:e,credential:Bo(t),additionalUserInfo:t=Ji(t),operationType:n})}
2function Kl(e,t){return Gl(e,t),e.reload().then((function(){return e}))}function Xl(e,n,r,i,o){if(!Mr())return It(new C("operation-not-supported-in-this-environment"));if(e.h&&!o)return It(e.h);var a=Qi(r.providerId),s=Br(e.uid+":::"),u=null;(!Dr()||xr())&&e.s&&r.isOAuthProvider&&(u=xu(e.s,e.l,e.m,n,r,null,s,t.default.SDK_VERSION||null,null,null,e.tenantId));var c=mr(u,a&&a.ua,a&&a.ta);return i=i().then((function(){if($l(e),!o)return e.I().then((function(){}))})).then((function(){return zc(e.i,c,n,r,s,!!u,e.tenantId)})).then((function(){return new xt((function(t,r){e.na(n,null,new C("cancelled-popup-request"),e.g||null),e.f=t,e.C=r,e.g=s,e.c=Wc(e.i,e,n,c,s)}))})).then((function(e){return c&&vr(c),e?ei(e):null})).o((function(e){throw c&&vr(c),e})),Ql(e,i,o)}function Yl(e,t,n,r,i){if(!Mr())return It(new C("operation-not-supported-in-this-environment"));if(e.h&&!i)return It(e.h);var o=null,a=Br(e.uid+":::");return r=r().then((function(){if($l(e),!i)return e.I().then((function(){}))})).then((function(){return e.ga=a,Nl(e)})).then((function(t){return e.ha&&(t=(t=e.ha).b.set(ef,e.w(),t.a)),t})).then((function(){return Gc(e.i,t,n,a,e.tenantId)})).o((function(t){if(o=t,e.ha)return tf(e.ha);throw o})).then((function(){if(o)throw o})),Ql(e,r,i)}function $l(e){if(!e.i||!e.R){if(e.i&&!e.R)throw new C("internal-error");throw new C("auth-domain-config-required")}}function Ql(e,t,n){var r=function(e,t,n){return e.h&&!n?(t.cancel(),It(e.h)):t.o((function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.h||e.dispatchEvent(new hl("userInvalidated")),e.h=t),t}))}(e,t,n);return e.J.push(r),r.oa((function(){$(e.J,r)})),r.o((function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=cl(t.w(),jl(e),x(e.jc,e))),n||t}))}function Jl(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[ns]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null;var r=e.stsTokenManager.expirationTime;r&&(n.expiresIn=(r-Date.now())/1e3);var i=new Sl(t,n,e);return e.providerData&&W(e.providerData,(function(e){e&&Vl(i,ei(e))})),e.redirectEventId&&(i.ga=e.redirectEventId),i}function Zl(e){this.a=e,this.b=oc()}ol.prototype.Rc=function(e){var t=this;return e.sb(this.a.a,this.c).then((function(e){var n=ve(t.f);return delete n[al],delete n[sl],ye(n,e),t.g(n)}))},E(ul,C),ll.prototype.sb=function(e,t,n){return t.type==co?function(e,t,n,r){return n.Ha().then((function(n){return n={idToken:n},"undefined"!==typeof r&&(n.displayName=r),ye(n,{phoneVerificationInfo:Fo(e.a)}),su(t,Ls,n)}))}(this,e,t,n):function(e,t,n){return n.Ha().then((function(n){return ye(n={mfaPendingCredential:n},{phoneVerificationInfo:Fo(e.a)}),su(t,Ds,n)}))}(this,e,t)},E(fl,ll),E(dl,fl),E(hl,Jt),(n=pl.prototype).yc=function(e){gl(this,function(e){var t=[];return W(e.mfaInfo||[],(function(e){(e=ri(e))&&t.push(e)})),t}(e.hd))},n.Rb=function(){return this.a.I().then((function(e){return new uo(e,null)}))},n.fc=function(e,t){var n=this,r=this.a.a;return this.Rb().then((function(n){return e.sb(r,n,t)})).then((function(e){return Gl(n.a,e),n.a.reload()}))},n.bd=function(e){var t=this,n="string"===typeof e?e:e.uid,r=this.a.a;return this.a.I().then((function(e){return su(r,au,{idToken:e,mfaEnrollmentId:n})})).then((function(e){var r=H(t.b,(function(e){return e.uid!=n}));return gl(t,r),Gl(t.a,e),t.a.reload().o((function(e){if("auth/user-token-expired"!=e.code)throw e}))}))},n.w=function(){return{multiFactor:{enrolledFactors:K(this.b,(function(e){return e.w()}))}}},vl.prototype.start=function(){this.a=this.c,ml(this,!0)},vl.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},yl.prototype.w=function(){return{apiKey:this.f.c,refreshToken:this.a,accessToken:this.b&&this.b.toString(),expirationTime:this.c}},yl.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?It(new C("user-token-expired")):e||!this.b||Date.now()>this.c-3e4?this.a?wl(this,{grant_type:"refresh_token",refresh_token:this.a}):jt(null):jt({accessToken:this.b.toString(),refreshToken:this.a})},xl.prototype.w=function(){return{lastLoginAt:this.b,createdAt:this.a}},E(Sl,On),Sl.prototype.wa=function(e){this.ya=e,ss(this.a,e)},Sl.prototype.la=function(){return this.ya},Sl.prototype.Ga=function(){return Z(this.$)},Sl.prototype.hb=function(){this.u.b&&(this.u.stop(),this.u.start())},Jr(Sl.prototype,"providerId","firebase"),(n=Sl.prototype).reload=function(){var e=this;return Ql(this,Dl(this).then((function(){return ql(e).then((function(){return Nl(e)})).then(Ll)})))},n.oc=function(e){return this.I(e).then((function(e){return new il(e)}))},n.I=function(e){var t=this;return Ql(this,Dl(this).then((function(){return t.b.getToken(e)})).then((function(e){if(!e)throw new C("internal-error");
2return e.accessToken!=t.za&&(Pl(t,e.accessToken),t.dispatchEvent(new hl("tokenChanged"))),Bl(t,"refreshToken",e.refreshToken),e.accessToken})))},n.Kc=function(e){if(!(e=e.users)||!e.length)throw new C("internal-error");Rl(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 Ol(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)})):[]}(e),n=0;n<t.length;n++)Vl(this,t[n]);Bl(this,"isAnonymous",!(this.email&&e.passwordHash)&&!(this.providerData&&this.providerData.length)),this.dispatchEvent(new hl("userReloaded",{hd:e}))},n.Lc=function(e){return $r("firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateWithCredential instead."),this.tb(e)},n.tb=function(e){var t=this,n=null;return Ql(this,e.c(this.a,this.uid).then((function(e){return Gl(t,e),n=Hl(t,e,"reauthenticate"),t.h=null,t.reload()})).then((function(){return n})),!0)},n.Cc=function(e){return $r("firebase.User.prototype.linkAndRetrieveDataWithCredential is deprecated. Please use firebase.User.prototype.linkWithCredential instead."),this.qb(e)},n.qb=function(e){var t=this,n=null;return Ql(this,Wl(this,e.providerId).then((function(){return t.I()})).then((function(n){return e.b(t.a,n)})).then((function(e){return n=Hl(t,e,"link"),Kl(t,e)})).then((function(){return n})))},n.Dc=function(e,t){var n=this;return Ql(this,Wl(this,"phone").then((function(){return rl(jl(n),e,t,x(n.qb,n))})))},n.Mc=function(e,t){var n=this;return Ql(this,jt().then((function(){return rl(jl(n),e,t,x(n.tb,n))})),!0)},n.Bb=function(e){var t=this;return Ql(this,this.I().then((function(n){return t.a.Bb(n,e)})).then((function(e){return Gl(t,e),t.reload()})))},n.ed=function(e){var t=this;return Ql(this,this.I().then((function(n){return e.b(t.a,n)})).then((function(e){return Gl(t,e),t.reload()})))},n.Cb=function(e){var t=this;return Ql(this,this.I().then((function(n){return t.a.Cb(n,e)})).then((function(e){return Gl(t,e),t.reload()})))},n.Db=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Dl(this);var t=this;return Ql(this,this.I().then((function(n){return t.a.Db(n,{displayName:e.displayName,photoUrl:e.photoURL})})).then((function(e){return Gl(t,e),Bl(t,"displayName",e.displayName||null),Bl(t,"photoURL",e.photoUrl||null),W(t.providerData,(function(e){"password"===e.providerId&&(Jr(e,"displayName",t.displayName),Jr(e,"photoURL",t.photoURL))})),Nl(t)})).then(Ll))},n.cd=function(e){var t=this;return Ql(this,ql(this).then((function(n){return Y(Fl(t),e)?function(e,t,n){return su(e,Ns,{idToken:t,deleteProvider:n})}(t.a,n,[e]).then((function(e){var n={};return W(e.providerUserInfo||[],(function(e){n[e.providerId]=!0})),W(Fl(t),(function(e){n[e]||Ul(t,e)})),n[Vo.PROVIDER_ID]||Jr(t,"phoneNumber",null),Nl(t)})):Nl(t).then((function(){throw new C("no-such-provider")}))})))},n.delete=function(){var e=this;return Ql(this,this.I().then((function(t){return su(e.a,Ps,{idToken:t})})).then((function(){e.dispatchEvent(new hl("userDeleted"))}))).then((function(){for(var t=0;t<e.J.length;t++)e.J[t].cancel("app-deleted");El(e,null),kl(e,null),Tl(e,null),e.J=[],e.D=!0,Al(e),Jr(e,"refreshToken",null),e.i&&Vc(e.i,e)}))},n.Fb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.ga||null)==t||"reauthViaRedirect"==e&&(this.ga||null)==t)},n.na=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},n.Fa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?x(this.Kb,this):"reauthViaPopup"==e&&t==(this.g||null)?x(this.Lb,this):"linkViaRedirect"==e&&(this.ga||null)==t?x(this.Kb,this):"reauthViaRedirect"==e&&(this.ga||null)==t?x(this.Lb,this):null},n.Ec=function(e){var t=this;return Xl(this,"linkViaPopup",e,(function(){return Wl(t,e.providerId).then((function(){return Nl(t)}))}),!1)},n.Nc=function(e){return Xl(this,"reauthViaPopup",e,(function(){return jt()}),!0)},n.Fc=function(e){var t=this;return Yl(this,"linkViaRedirect",e,(function(){return Wl(t,e.providerId)}),!1)},n.Oc=function(e){return Yl(this,"reauthViaRedirect",e,(function(){return jt()}),!0)},n.Kb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Ql(this,this.I().then((function(n){return Es(i.a,{requestUri:e,postBody:r,sessionId:t,idToken:n})})).then((function(e){return o=Hl(i,e,"link"),Kl(i,e)})).then((function(){return o}
2)))},n.Lb=function(e,t,n,r){var i=this;this.c&&(this.c.cancel(),this.c=null);var o=null;return Ql(this,jt().then((function(){return ho(ks(i.a,{requestUri:e,sessionId:t,postBody:r,tenantId:n}),i.uid)})).then((function(e){return o=Hl(i,e,"reauthenticate"),Gl(i,e),i.h=null,i.reload()})).then((function(){return o})),!0)},n.ub=function(e){var t=this,n=null;return Ql(this,this.I().then((function(t){return n=t,"undefined"===typeof e||ge(e)?{}:zi(new Pi(e))})).then((function(e){return t.a.ub(n,e)})).then((function(e){if(t.email!=e)return t.reload()})).then((function(){})))},n.Eb=function(e,t){var n=this,r=null;return Ql(this,this.I().then((function(e){return r=e,"undefined"===typeof t||ge(t)?{}:zi(new Pi(t))})).then((function(t){return n.a.Eb(r,e,t)})).then((function(e){if(n.email!=e)return n.reload()})).then((function(){})))},n.jc=function(e){var t=null,n=this;return Ql(this,e=ho(jt(e),n.uid).then((function(e){return t=Hl(n,e,"reauthenticate"),Gl(n,e),n.h=null,n.reload()})).then((function(){return t})),!0)},n.toJSON=function(){return this.w()},n.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.s,stsTokenManager:this.b.w(),redirectEventId:this.ga||null};return this.metadata&&ye(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))})),ye(e,this.O.w()),e};var ef={name:"redirectUser",F:"session"};function tf(e){return uc(e.b,ef,e.a)}function nf(e){this.a=e,this.b=oc(),this.c=null,this.f=function(e){var t=af("local"),n=af("session"),r=af("none");return function(e,t,n){var r=sc(t,n),i=ac(e,t.F);return e.get(t,n).then((function(o){var a=null;try{a=Ur(u.localStorage.getItem(r))}catch(s){}if(a&&!o)return u.localStorage.removeItem(r),e.set(t,a,n);a&&o&&"localStorage"!=i.type&&u.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(of,e.a).then((function(e){return e?af(e):t}))}))}))})).then((function(t){return e.c=t,rf(e,t.F)})).o((function(){e.c||(e.c=t)}))}(this),this.b.addListener(af("local"),this.a,x(this.g,this))}function rf(e,t){var n,r=[];for(n in rc)rc[n]!==t&&r.push(uc(e.b,af(rc[n]),e.a));return r.push(uc(e.b,of,e.a)),function(e){return new xt((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++)At(e[s],O(o,s),a);else t(i)}))}(r)}nf.prototype.g=function(){var e=this,t=af("local");lf(this,(function(){return jt().then((function(){return e.c&&"local"!=e.c.F?e.b.get(t,e.a):null})).then((function(n){if(n)return rf(e,"local").then((function(){e.c=t}))}))}))};var of={name:"persistence",F:"session"};function af(e){return{name:"authUser",F:e}}function sf(e,t){return lf(e,(function(){return e.b.set(e.c,t.w(),e.a)}))}function uf(e){return lf(e,(function(){return uc(e.b,e.c,e.a)}))}function cf(e,t,n){return lf(e,(function(){return e.b.get(e.c,e.a).then((function(e){return e&&t&&(e.authDomain=t),e&&n&&(e.emulatorConfig=n),Jl(e||{})}))}))}function lf(e,t){return e.f=e.f.then(t,t),e.f}function ff(e){if(this.l=!1,Jr(this,"settings",new tl),Jr(this,"app",e),!_f(this).options||!_f(this).options.apiKey)throw new C("invalid-api-key");e=t.default.SDK_VERSION?Ir(t.default.SDK_VERSION):null,this.a=new es(_f(this).options&&_f(this).options.apiKey,N(j),e),this.R=[],this.s=[],this.O=[],this.hb=t.default.INTERNAL.createSubscribe(x(this.zc,this)),this.X=void 0,this.bc=t.default.INTERNAL.createSubscribe(x(this.Ac,this)),yf(this,null),this.i=new nf(_f(this).options.apiKey+":"+_f(this).name),this.D=new Zl(_f(this).options.apiKey+":"+_f(this).name),this.$=Sf(this,function(e){var t=_f(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(ef,e.a).then((function(e){return e&&t&&(e.authDomain=t),Jl(e||{})}))}(e.D,_f(e).options.authDomain).then((function(t){return(e.m=t)&&(t.ha=e.D),tf(e.D)}));return Sf(e,t)}(e).then((function(){return cf(e.i,t,e.P)})).then((function(t){return t?(t.ha=e.D,e.m&&(e.m.ga||null)==(t.ga||null)?t:t.reload().then((function(){return sf(e.i,t).then((function(){return t}))})).o((function(n){return"auth/network-request-failed"==n.code?t:uf(e.i)}))):null})).then((function(t){yf(e,t||null)}));return Sf(e,n)}(this)),this.h=Sf(this,function(e){return e.$.then((function(){return vf(e)})).o((function(){})).then((function(){if(!e.l)return e.ja()})).o((function(){})).then((function(){if(!e.l){e.ba=!0;var t=e.i;t.b.addListener(af("local"),t.a,e.ja)}}))}(this)),this.ba=!1,this.ja=x(this.Zc,this),this.Ba=x(this.da,this),this.ya=x(this.mc,this),this.za=x(this.wc,this),this.Aa=x(this.xc,this),this.b=null,function(e){var t=_f(e).options.authDomain,n=_f(e).options.apiKey;t&&Mr()&&(e.Oa=e.$.then((function(){if(!e.l){if(e.b=Xc(t,n,_f(e).name,e.P),Fc(e.b,e),wf(e)&&Ml(wf(e)),e.m){Ml(e.m);var r=e.m;r.wa(e.la()),El(r,e),Cl(r=e.m,e.J),Tl(r,e),us((r=e.m).a,e.P),kl(r,e),e.m=null}return e.b}})))}(this),this.INTERNAL={},this.INTERNAL.delete=x(this.delete,this),this.INTERNAL.logFramework=x(this.Gc,this),this.u=0,On.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.la()},set:function(e){this.wa(e)},enumerable:!1}),e.aa=null,Object.defineProperty(e,"ti",{get:function(){return this.T()},set:function(e){this.yb(e)},enumerable:!1}),e.S=null,Object.defineProperty(e,"emulatorConfig",{get:function(){if(this.P){var e=Bn(this.P.url);e=ei({protocol:e.c,host:e.a,port:e.g,options:ei({disableWarnings:this.P.ec})})}else e=null;return e},enumerable:!1})}(this),this.J=[],this.P=null}function df(e){Jt.call(this,"languageCodeChanged"),this.h=e}function hf(e){Jt.call(this,"emulatorConfigChanged"),this.c=e}function pf(e){Jt.call(this,"frameworkChanged"),this.f=e}function gf(e){return e.Oa||It(new C("auth-domain-config-required"))}function vf(e){if(!Mr())return It(new C("operation-not-supported-in-this-environment"));var t=gf(e).then((function(){return e.b.qa()})).then((function(e){return e?ei(e):null}));return Sf(e,t)}function mf(e,t){var n={};return n.apiKey=_f(e).options.apiKey,n.authDomain=_f(e).options.authDomain,n.appName=_f(e).name,e.P&&(n.emulatorConfig=e.P),e.$.then((function(){return function(e,t,n,r){var i=new Sl(e,t);return n&&(i.ha=n),r&&Cl(i,r),i.reload().then((function(){return i}))}(n,t,e.D,e.Ga())})).then((function(t){return wf(e)&&t.uid==wf(e).uid?(zl(wf(e),t),e.da(t)):(yf(e,t),Ml(t),e.da(t))})).then((function(){Of(e)}))}function yf(e,t){wf(e)&&(function(e,t){Q(e.S,(function(e){return e==t}))}(wf(e),e.Ba),pn(wf(e),"tokenChanged",e.ya),pn(wf(e),"userDeleted",e.za),pn(wf(e),"userInvalidated",e.Aa),Al(wf(e))),t&&(t.S.push(e.Ba),fn(t,"tokenChanged",e.ya),fn(t,"userDeleted",e.za),fn(t,"userInvalidated",e.Aa),0<e.u&&Il(t)),Jr(e,"currentUser",t),t&&(t.wa(e.la()),El(t,e),Cl(t,e.J),Tl(t,e),us(t.a,e.P),kl(t,e))}function bf(e,t){var n=null,r=null;return Sf(e,t.then((function(t){return n=Bo(t),r=Ji(t),mf(e,t)}),(function(t){var n=null;throw t&&"auth/multi-factor-auth-required"===t.code&&(n=cl(t.w(),e,x(e.kc,e))),n||t})).then((function(){return ei({user:wf(e),credential:n,additionalUserInfo:r,operationType:"signIn"})})))}function _f(e){return e.app}function wf(e){return e.currentUser}function xf(e){return wf(e)&&wf(e)._lat||null}function Of(e){if(e.ba){for(var t=0;t<e.s.length;t++)e.s[t]&&e.s[t](xf(e));if(e.X!==e.getUid()&&e.O.length)for(e.X=e.getUid(),t=0;t<e.O.length;t++)e.O[t]&&e.O[t](xf(e))}}function Sf(e,t){return e.R.push(t),t.oa((function(){$(e.R,t)})),t}function Ef(){}function kf(){this.a={},this.b=1e12}nf.prototype.xb=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 rc)if(rc[r]==e){var r=!0;break e}r=!1}if(!r||"string"!==typeof e)throw t;switch(Sr()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;case"Worker":if("session"===e||!Lu()&&"none"!==e)throw n;break;default:if(!Nr()&&"none"!==e)throw n}}
2(e),lf(this,(function(){return e!=n.c.F?n.b.get(n.c,n.a).then((function(r){return t=r,rf(n,e)})).then((function(){if(n.c=af(e),t)return n.b.set(n.c,t,n.a)})):jt()}))},E(ff,On),E(df,Jt),E(hf,Jt),E(pf,Jt),(n=ff.prototype).xb=function(e){return Sf(this,e=this.i.xb(e))},n.wa=function(e){this.aa===e||this.l||(this.aa=e,ss(this.a,this.aa),this.dispatchEvent(new df(this.la())))},n.la=function(){return this.aa},n.fd=function(){var e=u.navigator;this.wa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},n.gd=function(e,t){if(!this.P){if(!/^https?:\/\//.test(e))throw new C("argument-error","Emulator URL must start with a valid scheme (http:// or https://).");(function(e){"undefined"!==typeof console&&"function"===typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials."),u.document&&!e&&_r().then((function(){var e=u.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="#b50000",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"),u.document.body.appendChild(e)}))})(t=!!t&&!!t.disableWarnings),this.P={url:e,ec:t},this.settings.ib=!0,us(this.a,this.P),this.dispatchEvent(new hf(this.P))}},n.Gc=function(e){this.J.push(e),ls(this.a,t.default.SDK_VERSION?Ir(t.default.SDK_VERSION,this.J):null),this.dispatchEvent(new pf(this.J))},n.Ga=function(){return Z(this.J)},n.yb=function(e){this.S===e||this.l||(this.S=e,this.a.b=this.S)},n.T=function(){return this.S},n.toJSON=function(){return{apiKey:_f(this).options.apiKey,authDomain:_f(this).options.authDomain,appName:_f(this).name,currentUser:wf(this)&&wf(this).w()}},n.Fb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},n.na=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.C?this.C(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.C)},n.Fa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?x(this.ic,this):null},n.ic=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 bf(i,Ss(i.a,o))}))},n.Xc=function(e){if(!Mr())return It(new C("operation-not-supported-in-this-environment"));var n=this,r=Qi(e.providerId),i=Br(),o=null;(!Dr()||xr())&&_f(this).options.authDomain&&e.isOAuthProvider&&(o=xu(_f(this).options.authDomain,_f(this).options.apiKey,_f(this).name,"signInViaPopup",e,null,i,t.default.SDK_VERSION||null,null,null,this.T(),this.P));var a=mr(o,r&&r.ua,r&&r.ta);return Sf(this,r=gf(this).then((function(t){return zc(t,a,"signInViaPopup",e,i,!!o,n.T())})).then((function(){return new xt((function(e,t){n.na("signInViaPopup",null,new C("cancelled-popup-request"),n.g),n.f=e,n.C=t,n.g=i,n.c=Wc(n.b,n,"signInViaPopup",a,i)}))})).then((function(e){return a&&vr(a),e?ei(e):null})).o((function(e){throw a&&vr(a),e})))},n.Yc=function(e){if(!Mr())return It(new C("operation-not-supported-in-this-environment"));var t=this;return Sf(this,gf(this).then((function(){return function(e){return lf(e,(function(){return e.b.set(of,e.c.F,e.a)}))}(t.i)})).then((function(){return Gc(t.b,"signInViaRedirect",e,void 0,t.T())})))},n.qa=function(){var e=this;return vf(this).then((function(t){return e.b&&Qc(e.b.b),t})).o((function(t){throw e.b&&Qc(e.b.b),t}))},n.dd=function(e){if(!e)return It(new C("null-user"));if(this.S!=e.tenantId)return It(new C("tenant-id-mismatch"));var t=this,n={};n.apiKey=_f(this).options.apiKey,n.authDomain=_f(this).options.authDomain,n.appName=_f(this).name;var r=function(e,t,n,r){var i=e.b,o={};return o[ns]=i.b&&i.b.toString(),o.refreshToken=i.a,t=new Sl(t||{apiKey:e.l,authDomain:e.s,appName:e.m},o),n&&(t.ha=n),r&&Cl(t,r),zl(t,e),t}(e,n,t.D,t.Ga());return Sf(this,this.h.then((function(){if(_f(t).options.apiKey!=e.l)return r.reload()})).then((function(){return wf(t)&&e.uid==wf(t).uid?(zl(wf(t),e),t.da(e)):(yf(t,r),Ml(r),t.da(r))})).then((function(){Of(t)})))},n.Ab=function(){var e=this;return Sf(this,this.h.then((function(){return e.b&&Qc(e.b.b),wf(e)?(yf(e,null),uf(e.i).then((function(){Of(e)}))):jt()})))},n.Zc=function(){var e=this;return cf(this.i,_f(this).options.authDomain).then((function(t){if(!e.l){var n;if(n=wf(e)&&t){n=wf(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return zl(wf(e),t),wf(e).I();(wf(e)||t)&&(yf(e,t),t&&(Ml(t),t.ha=e.D),e.b&&Fc(e.b,e),Of(e))}}))},n.da=function(e){return sf(this.i,e)},n.mc=function(){Of(this),this.da(wf(this))},n.wc=function(){this.Ab()},n.xc=function(){this.Ab()},n.kc=function(e){var t=this;return this.h.then((function(){return bf(t,jt(e))}))},n.zc=function(e){var t=this;this.addAuthTokenListener((function(){e.next(wf(t))}))},n.Ac=function(e){var t=this;!function(e,t){e.O.push(t),Sf(e,e.h.then((function(){!e.l&&Y(e.O,t)&&e.X!==e.getUid()&&(e.X=e.getUid(),t(xf(e)))})))}(this,(function(){e.next(wf(t))}))},n.Ic=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){"function"===typeof e?e(wf(r)):"function"===typeof e.next&&e.next(wf(r))})),this.hb(e,t,n)},n.Hc=function(e,t,n){var r=this;return this.ba&&Promise.resolve().then((function(){r.X=r.getUid(),"function"===typeof e?e(wf(r)):"function"===typeof e.next&&e.next(wf(r))}
2)),this.bc(e,t,n)},n.nc=function(e){var t=this;return Sf(this,this.h.then((function(){return wf(t)?wf(t).I(e).then((function(e){return{accessToken:e}})):null})))},n.Tc=function(e){var t=this;return this.h.then((function(){return bf(t,su(t.a,tu,{token:e}))})).then((function(e){var n=e.user;return Bl(n,"isAnonymous",!1),t.da(n),e}))},n.Uc=function(e,t){var n=this;return this.h.then((function(){return bf(n,su(n.a,nu,{email:e,password:t}))}))},n.dc=function(e,t){var n=this;return this.h.then((function(){return bf(n,su(n.a,Is,{email:e,password:t}))}))},n.$a=function(e){var t=this;return this.h.then((function(){return bf(t,e.ka(t.a))}))},n.Sc=function(e){return $r("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInWithCredential instead."),this.$a(e)},n.zb=function(){var e=this;return this.h.then((function(){var t=wf(e);if(t&&t.isAnonymous){var n=ei({providerId:null,isNewUser:!1});return ei({user:t,credential:null,additionalUserInfo:n,operationType:"signIn"})}return bf(e,e.a.zb()).then((function(t){var n=t.user;return Bl(n,"isAnonymous",!0),e.da(n),t}))}))},n.getUid=function(){return wf(this)&&wf(this).uid||null},n.cc=function(e){this.addAuthTokenListener(e),this.u++,0<this.u&&wf(this)&&Il(wf(this))},n.Pc=function(e){var t=this;W(this.s,(function(n){n==e&&t.u--})),0>this.u&&(this.u=0),0==this.u&&wf(this)&&Al(wf(this)),this.removeAuthTokenListener(e)},n.addAuthTokenListener=function(e){var t=this;this.s.push(e),Sf(this,this.h.then((function(){t.l||Y(t.s,e)&&e(xf(t))})))},n.removeAuthTokenListener=function(e){Q(this.s,(function(t){return t==e}))},n.delete=function(){this.l=!0;for(var e=0;e<this.R.length;e++)this.R[e].cancel("app-deleted");return this.R=[],this.i&&(e=this.i).b.removeListener(af("local"),e.a,this.ja),this.b&&(Vc(this.b,this),Qc(this.b.b)),Promise.resolve()},n.hc=function(e){return Sf(this,function(e,t){return su(e,As,{identifier:t,continueUri:Rr()?dr():"http://localhost"}).then((function(e){return e.signinMethods||[]}))}(this.a,e))},n.Bc=function(e){return!!Ro(e)},n.wb=function(e,t){var n=this;return Sf(this,jt().then((function(){var e=new Pi(t);if(!e.c)throw new C("argument-error",Ri+" must be true when sending sign in link to email");return zi(e)})).then((function(t){return n.a.wb(e,t)})).then((function(){})))},n.jd=function(e){return this.Ra(e).then((function(e){return e.data.email}))},n.nb=function(e,t){return Sf(this,this.a.nb(e,t).then((function(){})))},n.Ra=function(e){return Sf(this,this.a.Ra(e).then((function(e){return new ci(e)})))},n.jb=function(e){return Sf(this,this.a.jb(e).then((function(){})))},n.vb=function(e,t){var n=this;return Sf(this,jt().then((function(){return"undefined"===typeof t||ge(t)?{}:zi(new Pi(t))})).then((function(t){return n.a.vb(e,t)})).then((function(){})))},n.Wc=function(e,t){return Sf(this,rl(this,e,t,x(this.$a,this)))},n.Vc=function(e,t){var n=this;return Sf(this,jt().then((function(){var r=t||dr(),i=Mo(e,r);if(!(r=Ro(r)))throw new C("argument-error","Invalid email link!");if(r.tenantId!==n.T())throw new C("tenant-id-mismatch");return n.$a(i)})))},Ef.prototype.render=function(){},Ef.prototype.reset=function(){},Ef.prototype.getResponse=function(){},Ef.prototype.execute=function(){};var Cf=null;function Tf(e,t){return(t=jf(t))&&e.a[t]||null}function jf(e){return(e="undefined"===typeof e?1e12:e)?e.toString():null}function If(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=lt(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():fn(this.f,"click",this.i)}function Af(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Pf(){}function Nf(){}kf.prototype.render=function(e,t){return this.a[this.b.toString()]=new If(e,t),this.b++},kf.prototype.reset=function(e){var t=Tf(this,e);e=jf(e),t&&e&&(t.delete(),delete this.a[e])},kf.prototype.getResponse=function(e){return(e=Tf(this,e))?e.getResponse():null},kf.prototype.execute=function(e){(e=Tf(this,e))&&e.execute()},If.prototype.getResponse=function(){return Af(this),this.b},If.prototype.execute=function(){Af(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))},If.prototype.delete=function(){Af(this),this.g=!0,clearTimeout(this.a),this.a=null,pn(this.f,"click",this.i)},Jr(Pf,"FACTOR_ID","phone"),Nf.prototype.g=function(){return Cf||(Cf=new kf),jt(Cf)},Nf.prototype.c=function(){};var Mf=null;function Rf(){this.b=u.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var Lf=new _e(Se,"https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Df=new Gr(3e4,6e4);Rf.prototype.g=function(e){var t=this;return new xt((function(n,r){var i=setTimeout((function(){r(new C("network-request-failed"))}),Df.get());!u.grecaptcha||e!==t.f&&!t.b?(u[t.a]=function(){if(u.grecaptcha){t.f=e;var o=u.grecaptcha.render;u.grecaptcha.render=function(e,n){return e=o(e,n),t.b++,e},clearTimeout(i),n(u.grecaptcha)}else clearTimeout(i),r(new C("internal-error"));delete u[t.a]},jt(Ka(Te(Lf,{onload:t.a,hl:e||""}))).o((function(){clearTimeout(i),r(new C("internal-error","Unable to load external reCAPTCHA dependencies!"))}))):(clearTimeout(i),n(u.grecaptcha))}))},Rf.prototype.c=function(){this.b--};var Ff=null;function Vf(e,t,n,r,i,o,a){if(Jr(this,"type","recaptcha"),this.c=this.f=null,this.D=!1,this.v=t,this.g=null,a?(Mf||(Mf=new Nf),a=Mf):(Ff||(Ff=new Rf),a=Ff),this.m=a,this.a=n||{theme:"light",type:"image"},this.h=[],this.a[zf])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[qf],!u.document)throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!lt(t)||!this.i&&lt(t).hasChildNodes())throw new C("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.s=new es(e,o||null,i||null),this.u=r||function(){return null};var s=this;this.l=[];var c=this.a[Uf];this.a[Uf]=function(e){if(Gf(s,e),"function"===typeof c)c(e);else if("string"===typeof c){var t=Pr(c,u);"function"===typeof t&&t(e)}};var l=this.a[Bf];this.a[Bf]=function(){if(Gf(s,null),"function"===typeof l)l();else if("string"===typeof l){var e=Pr(l,u);"function"===typeof e&&e()}}}var Uf="callback",Bf="expired-callback",zf="sitekey",qf="size";function Gf(e,t){for(var n=0;n<e.l.length;n++)try{e.l[n](t)}catch(r){}}function Wf(e,t){return e.h.push(t),t.oa((function(){$(e.h,t)})),t}function Hf(e){if(e.D)throw new C("internal-error","RecaptchaVerifier instance has been destroyed.")}function Kf(e,n,r){var i=!1;try{this.b=r||t.default.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");r=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=t.default.SDK_VERSION?Ir(t.default.SDK_VERSION,a):null,Vf.call(this,r,e,n,(function(){try{var e=o.b.auth().la()}catch(t){e=null}return e}),a,N(j),i)}function Xf(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].M(n[i])&&!o){if(t=t[i],0>i||i>=Yf.length)throw new C("internal-error","Argument validator received an unsupported number of arguments.");n=Yf[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}r=null}}if(r)throw new C("argument-error",e+" failed: "+r)}(n=Vf.prototype).Ia=function(){var e=this;return this.f?this.f:this.f=Wf(this,jt().then((function(){if(Rr()&&!Or())return _r();throw new C("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")})).then((function(){return e.m.g(e.u())}
2)).then((function(t){return e.g=t,su(e.s,Gs,{})})).then((function(t){e.a[zf]=t.recaptchaSiteKey})).o((function(t){throw e.f=null,t})))},n.render=function(){Hf(this);var e=this;return Wf(this,this.Ia().then((function(){if(null===e.c){var t=e.v;if(!e.i){var n=lt(t);t=function(e,t,n){var r=arguments,i=document,o=String(r[0]),a=r[1];if(!ct&&a&&(a.name||a.type)){if(o=["<",o],a.name&&o.push(' name="',We(a.name),'"'),a.type){o.push(' type="',We(a.type),'"');var s={};ye(s,a),delete s.type,a=s}o.push(">"),o=o.join("")}return o=vt(i,o),a&&("string"===typeof a?o.className=a:Array.isArray(a)?o.className=a.join(" "):ft(o,a)),2<r.length&&gt(i,o,r),o}("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c})))},n.verify=function(){Hf(this);var e=this;return Wf(this,this.render().then((function(t){return new xt((function(n){var r=e.g.getResponse(t);if(r)n(r);else{e.l.push((function t(r){r&&(function(e,t){Q(e.l,(function(e){return e==t}))}(e,t),n(r))})),e.i&&e.g.execute(e.c)}}))})))},n.reset=function(){Hf(this),null!==this.c&&this.g.reset(this.c)},n.clear=function(){Hf(this),this.D=!0,this.m.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=lt(this.v);for(var t;t=e.firstChild;)e.removeChild(t)}},E(Kf,Vf);var Yf="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function $f(e,t){return{name:e||"",K:"a valid string",optional:!!t,M:function(e){return"string"===typeof e}}}function Qf(e,t){return{name:e||"",K:"a boolean",optional:!!t,M:function(e){return"boolean"===typeof e}}}function Jf(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:v}}function Zf(e,t){return{name:e||"",K:"a function",optional:!!t,M:function(e){return"function"===typeof e}}}function ed(e,t){return{name:e||"",K:"null",optional:!!t,M:function(e){return null===e}}}function td(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ka||!n)}}}function nd(e,t){return v(e)&&"string"===typeof e.type&&e.type===t&&"function"===typeof e.Ha}function rd(e){return v(e)&&"string"===typeof e.uid}function id(e,t,n,r){return{name:n||"",K:e.K+" or "+t.K,optional:!!r,M:function(n){return e.M(n)||t.M(n)}}}function od(e,t){for(var n in t){var r=t[n].name;e[r]=ud(r,e[n],t[n].j)}}function ad(e,t){for(var n in t){var r=t[n].name;r!==n&&Object.defineProperty(e,r,{get:O((function(e){return this[e]}),n),set:O((function(e,t,n,r){Xf(e,[n],[r],!0),this[t]=r}),r,n,t[n].kb),enumerable:!0})}}function sd(e,t,n,r){e[t]=ud(t,n,r)}function ud(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Xf(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}od(ff.prototype,{jb:{name:"applyActionCode",j:[$f("code")]},Ra:{name:"checkActionCode",j:[$f("code")]},nb:{name:"confirmPasswordReset",j:[$f("code"),$f("newPassword")]},dc:{name:"createUserWithEmailAndPassword",j:[$f("email"),$f("password")]},hc:{name:"fetchSignInMethodsForEmail",j:[$f("email")]},qa:{name:"getRedirectResult",j:[]},Bc:{name:"isSignInWithEmailLink",j:[$f("emailLink")]},Hc:{name:"onAuthStateChanged",j:[id(Jf(),Zf(),"nextOrObserver"),Zf("opt_error",!0),Zf("opt_completed",!0)]},Ic:{name:"onIdTokenChanged",j:[id(Jf(),Zf(),"nextOrObserver"),Zf("opt_error",!0),Zf("opt_completed",!0)]},vb:{name:"sendPasswordResetEmail",j:[$f("email"),id(Jf("opt_actionCodeSettings",!0),ed(null,!0),"opt_actionCodeSettings",!0)]},wb:{name:"sendSignInLinkToEmail",j:[$f("email"),Jf("actionCodeSettings")]},xb:{name:"setPersistence",j:[$f("persistence")]},Sc:{name:"signInAndRetrieveDataWithCredential",j:[td()]},zb:{name:"signInAnonymously",j:[]},$a:{name:"signInWithCredential",j:[td()]},Tc:{name:"signInWithCustomToken",j:[$f("token")]},Uc:{name:"signInWithEmailAndPassword",j:[$f("email"),$f("password")]},Vc:{name:"signInWithEmailLink",j:[$f("email"),$f("emailLink",!0)]},Wc:{name:"signInWithPhoneNumber",j:[$f("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Xc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Yc:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},dd:{name:"updateCurrentUser",j:[id({name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof Sl)}},ed(),"user")]},Ab:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[$f(null,!0)]},fd:{name:"useDeviceLanguage",j:[]},gd:{name:"useEmulator",j:[$f("url"),Jf("options",!0)]},jd:{name:"verifyPasswordResetCode",j:[$f("code")]}}),ad(ff.prototype,{lc:{name:"languageCode",kb:id($f(),ed(),"languageCode")},ti:{name:"tenantId",kb:id($f(),ed(),"tenantId")}}),ff.Persistence=rc,ff.Persistence.LOCAL="local",ff.Persistence.SESSION="session",ff.Persistence.NONE="none",od(Sl.prototype,{delete:{name:"delete",j:[]},oc:{name:"getIdTokenResult",j:[Qf("opt_forceRefresh",!0)]},I:{name:"getIdToken",j:[Qf("opt_forceRefresh",!0)]},Cc:{name:"linkAndRetrieveDataWithCredential",j:[td()]},qb:{name:"linkWithCredential",j:[td()]},Dc:{name:"linkWithPhoneNumber",j:[$f("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Ec:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Fc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Lc:{name:"reauthenticateAndRetrieveDataWithCredential",j:[td()]},tb:{name:"reauthenticateWithCredential",j:[td()]},Mc:{name:"reauthenticateWithPhoneNumber",j:[$f("phoneNumber"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]},Nc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},ub:{name:"sendEmailVerification",j:[id(Jf("opt_actionCodeSettings",!0),ed(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[$f(null,!0)]},cd:{name:"unlink",j:[$f("provider")]},Bb:{name:"updateEmail",j:[$f("email")]},Cb:{name:"updatePassword",j:[$f("password")]},ed:{name:"updatePhoneNumber",j:[td("phone")]},Db:{name:"updateProfile",j:[Jf("profile")]},Eb:{name:"verifyBeforeUpdateEmail",j:[$f("email"),id(Jf("opt_actionCodeSettings",!0),ed(null,!0),"opt_actionCodeSettings",!0)]}}),od(kf.prototype,{execute:{name:"execute"},render:{name:"render"}
2,reset:{name:"reset"},getResponse:{name:"getResponse"}}),od(Ef.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),od(xt.prototype,{oa:{name:"finally"},o:{name:"catch"},then:{name:"then"}}),ad(tl.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",kb:Qf("appVerificationDisabledForTesting")}}),od(nl.prototype,{confirm:{name:"confirm",j:[$f("verificationCode")]}}),sd(fo,"fromJSON",(function(e){e="string"===typeof e?JSON.parse(e):e;for(var t,n=[bo,Po,Do,vo],r=0;r<n.length;r++)if(t=n[r](e))return t;return null}),[id($f(),Jf(),"json")]),sd(No,"credential",(function(e,t){return new Ao(e,t)}),[$f("email"),$f("password")]),od(Ao.prototype,{w:{name:"toJSON",j:[$f(null,!0)]}}),od(Oo.prototype,{Ca:{name:"addScope",j:[$f("scope")]},Ka:{name:"setCustomParameters",j:[Jf("customOAuthParameters")]}}),sd(Oo,"credential",So,[id($f(),Jf(),"token")]),sd(No,"credentialWithLink",Mo,[$f("email"),$f("emailLink")]),od(Eo.prototype,{Ca:{name:"addScope",j:[$f("scope")]},Ka:{name:"setCustomParameters",j:[Jf("customOAuthParameters")]}}),sd(Eo,"credential",ko,[id($f(),Jf(),"token")]),od(Co.prototype,{Ca:{name:"addScope",j:[$f("scope")]},Ka:{name:"setCustomParameters",j:[Jf("customOAuthParameters")]}}),sd(Co,"credential",To,[id($f(),id(Jf(),ed()),"idToken"),id($f(),ed(),"accessToken",!0)]),od(jo.prototype,{Ka:{name:"setCustomParameters",j:[Jf("customOAuthParameters")]}}),sd(jo,"credential",Io,[id($f(),Jf(),"token"),$f("secret",!0)]),od(xo.prototype,{Ca:{name:"addScope",j:[$f("scope")]},credential:{name:"credential",j:[id($f(),id(Jf(),ed()),"optionsOrIdToken"),id($f(),ed(),"accessToken",!0)]},Ka:{name:"setCustomParameters",j:[Jf("customOAuthParameters")]}}),od(mo.prototype,{w:{name:"toJSON",j:[$f(null,!0)]}}),od(po.prototype,{w:{name:"toJSON",j:[$f(null,!0)]}}),sd(Vo,"credential",Uo,[$f("verificationId"),$f("verificationCode")]),od(Vo.prototype,{fb:{name:"verifyPhoneNumber",j:[id($f(),{name:"phoneInfoOptions",K:"valid phone info options",optional:!1,M:function(e){return!!e&&(e.session&&e.phoneNumber?nd(e.session,co)&&"string"===typeof e.phoneNumber:e.session&&e.multiFactorHint?nd(e.session,lo)&&rd(e.multiFactorHint):e.session&&e.multiFactorUid?nd(e.session,lo)&&"string"===typeof e.multiFactorUid:!!e.phoneNumber&&"string"===typeof e.phoneNumber)}},"phoneInfoOptions"),{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!(!e||"string"!==typeof e.type||"function"!==typeof e.verify)}}]}}),od(Lo.prototype,{w:{name:"toJSON",j:[$f(null,!0)]}}),od(C.prototype,{toJSON:{name:"toJSON",j:[$f(null,!0)]}}),od(Yo.prototype,{toJSON:{name:"toJSON",j:[$f(null,!0)]}}),od(Xo.prototype,{toJSON:{name:"toJSON",j:[$f(null,!0)]}}),od(ul.prototype,{toJSON:{name:"toJSON",j:[$f(null,!0)]}}),od(ol.prototype,{Rc:{name:"resolveSignIn",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(e){return!!e&&!!e.sb}}]}}),od(pl.prototype,{Rb:{name:"getSession",j:[]},fc:{name:"enroll",j:[{name:"multiFactorAssertion",K:"a valid multiFactorAssertion",optional:!1,M:function(e){return!!e&&!!e.sb}},$f("displayName",!0)]},bd:{name:"unenroll",j:[id({name:"multiFactorInfo",K:"a valid multiFactorInfo",optional:!1,M:rd},$f(),"multiFactorInfoIdentifier")]}}),od(Kf.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),sd(Oi,"parseLink",Ai,[$f("link")]),sd(Pf,"assertion",(function(e){return new dl(e)}),[td("phone")]),function(){if("undefined"===typeof t.default||!t.default.INTERNAL||!t.default.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:fi,PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:li,VERIFY_AND_CHANGE_EMAIL:di,VERIFY_EMAIL:"VERIFY_EMAIL"}},Auth:ff,AuthCredential:fo,Error:C};sd(e,"EmailAuthProvider",No,[]),sd(e,"FacebookAuthProvider",Oo,[]),sd(e,"GithubAuthProvider",Eo,[]),sd(e,"GoogleAuthProvider",Co,[]),sd(e,"TwitterAuthProvider",jo,[]),sd(e,"OAuthProvider",xo,[$f("providerId")]),sd(e,"SAMLAuthProvider",wo,[$f("providerId")]),sd(e,"PhoneAuthProvider",Vo,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof ff)}}]),sd(e,"RecaptchaVerifier",Kf,[id($f(),{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Jf("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof t.default.app.App)}}]),sd(e,"ActionCodeURL",Oi,[]),sd(e,"PhoneMultiFactorGenerator",Pf,[]),t.default.INTERNAL.registerComponent({name:"auth",instanceFactory:function(e){return new ff(e=e.getProvider("app").getImmediate())},multipleInstances:!1,serviceProps:e,instantiationMode:"LAZY",type:"PUBLIC"}),t.default.INTERNAL.registerComponent({name:"auth-internal",instanceFactory:function(e){return{getUid:x((e=e.getProvider("auth").getImmediate()).getUid,e),getToken:x(e.nc,e),addAuthTokenListener:x(e.cc,e),removeAuthTokenListener:x(e.Pc,e)}},multipleInstances:!1,instantiationMode:"LAZY",type:"PRIVATE"}),t.default.registerVersion("@firebase/auth","0.16.6"),t.default.INTERNAL.extendNamespace({User:Sl})}()}).apply("undefined"!==typeof e?e:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})}).call(this,n(66))},function(e,t,n){"use strict";(function(e,t){var r=n(12),i=n(24),o=n(3),a=n(2),s=n(23),u="";function c(e){u=e}var l=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),Object(o.stringify)(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:Object(o.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}(),f=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 Object(o.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 l(t)}}catch(n){}return new f},h=d("localStorage"),p=d("sessionStorage"),g=new s.Logger("@firebase/database"),v=function(){var e=1;return function(){return e++}}(),m=function(e){var t=Object(o.stringToByteArray)(e),n=new o.Sha1;n.update(t);var r=n.digest();return o.base64.encodeByteArray(r)},y=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=0;i<t.length;i++){var a=t[i];Array.isArray(a)||a&&"object"===typeof a&&"number"===typeof a.length?r+=e.apply(null,a):r+="object"===typeof a?Object(o.stringify)(a):a,r+=" "}return r},b=null,_=!0,w=function(e,t){Object(o.assert)(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(g.logLevel=s.LogLevel.VERBOSE,b=g.log.bind(g),t&&p.set("logging_enabled",!0)):"function"===typeof e?b=e:(b=null,p.remove("logging_enabled"))},x=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===_&&(_=!1,null===b&&!0===p.get("logging_enabled")&&w(!0)),b){var n=y.apply(null,e);b(n)}},O=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];x.apply(void 0,Object(a.__spreadArray)([e],Object(a.__read)(t)))}},S=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+y.apply(void 0,Object(a.__spreadArray)([],Object(a.__read)(e)));g.error(n)},E=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+y.apply(void 0,Object(a.__spreadArray)([],Object(a.__read)(e)));throw g.error(n),new Error(n)},k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+y.apply(void 0,Object(a.__spreadArray)([],Object(a.__read)(e)));g.warn(n)},C=function(e){return"number"===typeof e&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},T="[MIN_NAME]",j="[MAX_NAME]",I=function(e,t){if(e===t)return 0;if(e===T||t===j)return-1;if(t===T||e===j)return 1;var n=U(e),r=U(t);return null!==n?null!==r?n-r===0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},A=function(e,t){return e===t?0:e<t?-1:1},P=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+Object(o.stringify)(t))},N=function e(t){if("object"!==typeof t||null===t)return Object(o.stringify)(t);var n=[];for(var r in t)n.push(r);n.sort();for(var i="{",a=0;a<n.length;a++)0!==a&&(i+=","),i+=Object(o.stringify)(n[a]),i+=":",i+=e(t[n[a]]);return i+="}"},M=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 R(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])}var L=function(e){Object(o.assert)(!C(e),"Invalid JSON number");var t,n,r,i,a,s=1023;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),s))+s,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074))));var u=[];for(a=52;a;a-=1)u.push(r%2?1:0),r=Math.floor(r/2);for(a=11;a;a-=1)u.push(n%2?1:0),n=Math.floor(n/2);u.push(t?1:0),u.reverse();var c=u.join(""),l="";for(a=0;a<64;a+=8){var f=parseInt(c.substr(a,8),2).toString(16);1===f.length&&(f="0"+f),l+=f}return l.toLowerCase()};var D=new RegExp("^-?(0*)\\d{1,10}$"),F=-2147483648,V=2147483647,U=function(e){if(D.test(e)){var t=Number(e);if(t>=F&&t<=V)return t}return null},B=function(e){try{e()}catch(t){setTimeout((function(){var e=t.stack||"";throw k("Exception was thrown by user callback.",e),t}),Math.floor(0))}},z=function(e,t){var n=setTimeout(e,t);return"object"===typeof n&&n.unref&&n.unref(),n},q=function(){function e(e,t){var n=this;this.appName_=e,this.appCheckProvider=t,this.appCheck=null===t||void 0===t?void 0:t.getImmediate({optional:!0}),this.appCheck||null===t||void 0===t||t.get().then((function(e){return n.appCheck=e}))}return e.prototype.getToken=function(e){var t=this;return this.appCheck?this.appCheck.getToken(e):new Promise((function(n,r){setTimeout((function(){t.appCheck?t.getToken(e).then(n,r):n(null)}),0)}))},e.prototype.addTokenChangeListener=function(e){var t;null===(t=this.appCheckProvider)||void 0===t||t.get().then((function(t){return t.addTokenListener(e)}))},e.prototype.notifyForInvalidToken=function(){k('Provided AppCheck credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly.')},e}(),G=function(){function e(e,t,n){var r=this;this.appName_=e,this.firebaseOptions_=t,this.authProvider_=n,this.auth_=null,this.auth_=n.getImmediate({optional:!0}),this.auth_||n.onInit((function(e){return r.auth_=e}))}return e.prototype.getToken=function(e){var t=this;return this.auth_?this.auth_.getToken(e).catch((function(e){return e&&"auth/token-not-initialized"===e.code?(x("Got auth/token-not-initialized error.  Treating as null token."),null):Promise.reject(e)})):new Promise((function(n,r){setTimeout((function(){t.auth_?t.getToken(e).then(n,r):n(null)}),0)}))},e.prototype.addTokenChangeListener=function(e){this.auth_?this.auth_.addAuthTokenListener(e):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.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?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.firebaseOptions_?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/.',k(e)},e}(),W=function(){function e(e){this.accessToken=e}return e.prototype.getToken=function(e){return Promise.resolve({accessToken:this.accessToken})},e.prototype.addTokenChangeListener=function(e){e(this.accessToken)},e.prototype.removeTokenChangeListener=function(e){},e.prototype.notifyForInvalidToken=function(){},e.OWNER="owner",e}(),H="5",K=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,X="websocket",Y="long_polling",$=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=h.get("host:"+e)||this._host}return e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this._domain&&"firebaseio-demo.com"!==this._domain},Object.defineProperty(e.prototype,"host",{get:function(){return this._host},set:function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&h.set("host:"+this._host,this.internalHost))}
2,enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){var e=this.secure?"https://":"http://",t=this.includeNamespaceInQueryParams?"?ns="+this.namespace:"";return""+e+this.host+"/"+t},e}();function Q(e,t,n){var r;if(Object(o.assert)("string"===typeof t,"typeof type must == string"),Object(o.assert)("object"===typeof n,"typeof params must == object"),t===X)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else{if(t!==Y)throw new Error("Unknown connection type: "+t);r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?"}(function(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams})(e)&&(n.ns=e.namespace);var i=[];return R(n,(function(e,t){i.push(e+"="+t)})),r+i.join("&")}var J=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),Object(o.contains)(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return Object(o.deepCopy)(this.counters_)},e}(),Z={},ee={};function te(e){var t=e.toString();return Z[t]||(Z[t]=new J),Z[t]}var ne=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]&&B((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}(),re="start",ie="close",oe=function(){function e(e,t,n,r,i,o,a){var s=this;this.connId=e,this.repoInfo=t,this.applicationId=n,this.appCheckToken=r,this.authToken=i,this.transportSessionId=o,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=O(e),this.stats_=te(t),this.urlFn=function(e){return s.appCheckToken&&(e.ac=s.appCheckToken),Q(t,Y,e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new ne(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(Object(o.isNodeSdk)()||"complete"===document.readyState)e();else{var t=!1,n=function n(){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 ae((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(a.__read)(e,5),i=r[0],o=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,i===re)n.id=o,n.password=s;else{if(i!==ie)throw new Error("Unrecognized command received: "+i);o?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(o,(function(){n.onClosed_()}))):n.onClosed_()}}),(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object(a.__read)(e,2),i=r[0],o=r[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(i,o)}),(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=H,n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),n.applicationId&&(e.p=n.applicationId),n.appCheckToken&&(e.ac=n.appCheckToken),"undefined"!==typeof location&&location.hostname&&K.test(location.hostname)&&(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!Object(o.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_())},e.prototype.send=function(e){var t=Object(o.stringify)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=Object(o.base64Encode)(t),r=M(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(!Object(o.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=Object(o.stringify)(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),ae=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,Object(o.isNodeSdk)())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=v(),window["pLPCommand"+this.uniqueCallbackIdentifier]=t,window["pRTLPCB"+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createI
2Frame_();var a="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))a='<script>document.domain="'+document.domain+'";<\/script>';var s="<html><body>"+a+"</body></html>";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(u){x("frame writing exception"),u.stack&&x(u.stack),x(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||x("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;Object(o.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(){x("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(i){}}),Math.floor(1))},e}(),se=null;"undefined"!==typeof MozWebSocket?se=MozWebSocket:"undefined"!==typeof WebSocket&&(se=WebSocket);var ue=function(){function t(e,n,r,i,o,a,s){this.connId=e,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=O(this.connId),this.stats_=te(n),this.connURL=t.connectionURL_(n,a,s,i),this.nodeAdmin=n.nodeAdmin}return t.connectionURL_=function(e,t,n,r){var i={};return i.v=H,!Object(o.isNodeSdk)()&&"undefined"!==typeof location&&location.hostname&&K.test(location.hostname)&&(i.r="f"),t&&(i.s=t),n&&(i.ls=n),r&&(i.ac=r),Q(e,X,i)},t.prototype.open=function(t,n){var r=this;this.onDisconnect=n,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,h.set("previous_websocket_failure",!0);try{if(Object(o.isNodeSdk)()){var i=this.nodeAdmin?"AdminNode":"Node",a={headers:{"User-Agent":"Firebase/5/"+u+"/"+e.platform+"/"+i,"X-Firebase-GMPID":this.applicationId||""}};this.nodeAdmin?a.headers.Authorization=this.authToken||"":a.headers["X-Firebase-AppCheck"]=this.appCheckToken||"";var s=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FIREBASE_API_KEY:"AIzaSyBgdT8XzqGwSxqgBM6T6EmrO2tRu3ZWe_Q",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyC0Tw2k6wiZLlFXHVnH3qXuX_avADoD3pU"}),c=0===this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;c&&(a.proxy={origin:c}),this.mySock=new se(this.connURL,[],a)}else{a={headers:{"X-Firebase-GMPID":this.applicationId||"","X-Firebase-AppCheck":this.appCheckToken||""}};this.mySock=new se(this.connURL,[],a)}}catch(f){this.log_("Error instantiating WebSocket.");var l=f.message||f.data;return l&&this.log_(l),void this.onClosed_()}this.mySock.onopen=function(){r.log_("Websocket connected."),r.everConnected_=!0}
2,this.mySock.onclose=function(){r.log_("Websocket connection was disconnected."),r.mySock=null,r.onClosed_()},this.mySock.onmessage=function(e){r.handleIncomingFrame(e)},this.mySock.onerror=function(e){r.log_("WebSocket error.  Closing connection.");var t=e.message||e.data;t&&r.log_(t),r.onClosed_()}},t.prototype.start=function(){},t.forceDisallow=function(){t.forceDisallow_=!0},t.isAvailable=function(){var e=!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&&(e=!0)}return!e&&null!==se&&!t.forceDisallow_},t.previouslyFailed=function(){return h.isInMemoryStorage||!0===h.get("previous_websocket_failure")},t.prototype.markConnectionHealthy=function(){h.remove("previous_websocket_failure")},t.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length===this.totalFrames){var t=this.frames.join("");this.frames=null;var n=Object(o.jsonEval)(t);this.onMessage(n)}},t.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},t.prototype.extractFrameCount_=function(e){if(Object(o.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},t.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)}}},t.prototype.send=function(e){this.resetKeepAlive();var t=Object(o.stringify)(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=M(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},t.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},t.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},t.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},t.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval((function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()}),Math.floor(45e3))},t.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)}},t.responsesRequiredToBeHealthy=2,t.healthyTimeout=3e4,t}(),ce=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[oe,ue]},enumerable:!1,configurable:!0}),e.prototype.initTransports_=function(t){var n,r,i=ue&&ue.isAvailable(),o=i&&!ue.previouslyFailed();if(t.webSocketOnly&&(i||k("wss:// URL used, but browser isn't known to support websockets.  Trying anyway."),o=!0),o)this.transports_=[ue];else{var s=this.transports_=[];try{for(var u=Object(a.__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}(),le=function(){function e(e,t,n,r,i,o,a,s,u,c){this.id=e,this.repoInfo_=t,this.applicationId_=n,this.appCheckToken_=r,this.authToken_=i,this.onMessage_=o,this.onReady_=a,this.onDisconnect_=s,this.onKill_=u,this.lastSessionId=c,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=O("c:"+this.id+":"),this.transportManager_=new ce(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_,this.appCheckToken_,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_=z((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=P("t",e),n=P("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=P("t",e),n=P("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=P("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?S("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):S("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_.host=r,0===this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),H!==n&&k("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.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),z((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_.host=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):z((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()&&(h.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}(),fe=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.refreshAppCheckToken=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}(),de=function(){function e(e){this.allowedEvents_=e,this.listeners_={},Object(o.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=Object(a.__spreadArray)([],Object(a.__read)(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){Object(o.assert)(this.allowedEvents_.find((function(t){return t===e})),"Unknown event: "+e)},e}(),he=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"===typeof window||"undefined"===typeof window.addEventListener||Object(o.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 Object(a.__extends)(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return Object(o.assert)("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(de),pe=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 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}();function ge(){return new pe("")}function ve(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function me(e){return e.pieces_.length-e.pieceNum_}function ye(e){var t=e.pieceNum_;return t<e.pieces_.length&&t++,new pe(e.pieces_,t)}function be(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function _e(e,t){return void 0===t&&(t=0),e.pieces_.slice(e.pieceNum_+t)}function we(e){if(e.pieceNum_>=e.pieces_.length)return null;for(var t=[],n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new pe(t,0)}function xe(e,t){for(var n=[],r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof pe)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 pe(n,0)}function Oe(e){return e.pieceNum_>=e.pieces_.length}function Se(e,t){var n=ve(e),r=ve(t);if(null===n)return t;if(n===r)return Se(ye(e),ye(t));
2throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function Ee(e,t){for(var n=_e(e,0),r=_e(t,0),i=0;i<n.length&&i<r.length;i++){var o=I(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1}function ke(e,t){if(me(e)!==me(t))return!1;for(var n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function Ce(e,t){var n=e.pieceNum_,r=t.pieceNum_;if(me(e)>me(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}var Te=function(e,t){this.errorPrefix_=t,this.parts_=_e(e,0),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=Object(o.stringLength)(this.parts_[n]);je(this)};function je(e){if(e.byteLength_>768)throw new Error(e.errorPrefix_+"has a key path longer than 768 bytes ("+e.byteLength_+").");if(e.parts_.length>32)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written (32) or object contains a cycle "+Ie(e))}function Ie(e){return 0===e.parts_.length?"":"in property '"+e.parts_.join(".")+"'"}var Ae,Pe,Ne=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 Object(a.__extends)(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return Object(o.assert)("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(de),Me=1e3,Re=function(e){function t(n,r,i,a,s,u,c,l){var f=e.call(this)||this;if(f.repoInfo_=n,f.applicationId_=r,f.onDataUpdate_=i,f.onConnectStatus_=a,f.onServerInfoUpdate_=s,f.authTokenProvider_=u,f.appCheckTokenProvider_=c,f.authOverride_=l,f.id=t.nextPersistentConnectionId_++,f.log_=O("p:"+f.id+":"),f.interruptReasons_={},f.listens=new Map,f.outstandingPuts_=[],f.outstandingGets_=[],f.outstandingPutCount_=0,f.outstandingGetCount_=0,f.onDisconnectRequestQueue_=[],f.connected_=!1,f.reconnectDelay_=Me,f.maxReconnectDelay_=3e5,f.securityDebugCallback_=null,f.lastSessionId=null,f.establishConnectionTimer_=null,f.visible_=!1,f.requestCBHash_={},f.requestNumber_=0,f.realtime_=null,f.authToken_=null,f.appCheckToken_=null,f.forceTokenRefresh_=!1,f.invalidAuthTokenCount_=0,f.invalidAppCheckTokenCount_=0,f.firstConnection_=!0,f.lastConnectionAttemptTime_=null,f.lastConnectionEstablishedTime_=null,l&&!Object(o.isNodeSdk)())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return Ne.getInstance().on("visible",f.onVisible_,f),-1===n.host.indexOf("fblocal")&&he.getInstance().on("online",f.onOnline_,f),f}return Object(a.__extends)(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(Object(o.stringify)(i)),Object(o.assert)(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.get=function(e){var t=this;this.initConnection_();var n=new o.Deferred,r={p:e._path.toString(),q:e._queryObject},i={action:"g",request:r,onComplete:function(e){var i=e.d;"ok"===e.s?(t.onDataUpdate_(r.p,i,!1,null),n.resolve(i)):n.reject(i)}};this.outstandingGets_.push(i),this.outstandingGetCount_++;var a=this.outstandingGets_.length-1;return this.connected_||setTimeout((function(){var e=t.outstandingGets_[a];void 0!==e&&i===e&&(delete t.outstandingGets_[a],t.outstandingGetCount_--,0===t.outstandingGetCount_&&(t.outstandingGets_=[]),t.log_("get "+a+" timed out on connection"),n.reject(new Error("Client is offline.")))}),3e3),this.connected_&&this.sendGet_(a),n.promise},t.prototype.listen=function(e,t,n,r){this.initConnection_();var i=e._queryIdentifier,a=e._path.toString();this.log_("Listen called for "+a+" "+i),this.listens.has(a)||this.listens.set(a,new Map),Object(o.assert)(e._queryParams.isDefault()||!e._queryParams.loadsAllData(),"listen() called for non-default but complete query"),Object(o.assert)(!this.listens.get(a).has(i),"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:t,query:e,tag:n};this.listens.get(a).set(i,s),this.connected_&&this.sendListen_(s)},t.prototype.sendGet_=function(e){var t=this,n=this.outstandingGets_[e];this.sendRequest("g",n.request,(function(r){delete t.outstandingGets_[e],t.outstandingGetCount_--,0===t.outstandingGetCount_&&(t.outstandingGets_=[]),n.onComplete&&n.onComplete(r)}))},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&&Object(o.contains)(e,"w")){var n=Object(o.safeGet)(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t._queryParams.getIndex().toString()+'"',i=t._path.toString();k("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||Object(o.isAdmin)(e))&&(this.log_("Admin auth credential detected.  Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.refreshAppCheckToken=function(e){this.appCheckToken_=e,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},(function(){}))},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=Object(o.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";
2e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))}))}},t.prototype.tryAppCheck=function(){var e=this;this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},(function(t){var n=t.s,r=t.d||"error";"ok"===n?e.invalidAppCheckTokenCount_=0:e.onAppCheckRevoked_(n,r)}))},t.prototype.unlisten=function(e,t){var n=e._path.toString(),r=e._queryIdentifier;this.log_("Unlisten called for "+n+" "+r),Object(o.assert)(e._queryParams.isDefault()||!e._queryParams.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.initConnection_(),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.initConnection_(),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.initConnection_(),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){this.initConnection_();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: "+Object(o.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):"apc"===e?this.onAppCheckRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):S("Unrecognized action received from server: "+Object(o.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;Object(o.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.initConnection_=function(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible.  Reducing delay."),this.reconnectDelay_=Me,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=Me,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_=Me),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(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,n,r,i,s,u,c,l,f,d,h,p,g,v,m=this;return Object(a.__generator)(this,(function(y){switch(y.label){case 0:if(!this.shouldReconnect_())return[3,4];this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null,e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,s=this.lastSessionId,u=!1,c=null,l=function(){c?c.close():(u=!0,r())},f=function(e){Object(o.assert)(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)},this.realtime_={close:l,sendRequest:f},d=this.forceTokenRefresh_,this.forceTokenRefresh_=!1,y.label=1;case 1:return y.trys.push([1,3,,4]),[4,Promise.all([this.authTokenProvider_.getToken(d),this.appCheckTokenProvider_.getToken(d)])];case 2:return h=a.__read.apply(void 0,[y.sent(),2]),p=h[0],g=h[1],u?x("getToken() completed but was canceled"):(x("getToken() completed. Creating connection."),this.authToken_=p&&p.accessToken,this.appCheckToken_=g&&g.token,c=new le(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,e,n,r,(function(e){k(e+" ("+m.repoInfo_.toString()+")"),m.interrupt("server_kill")}),s)),[3,4];case 3:return v=y.sent(),this.log_("Failed to get token: "+v),u||(this.repoInfo_.nodeAdmin&&k(v),l()),[3,4];case 4:return[2]}}
2))}))},t.prototype.interrupt=function(e){x("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){x("Resuming connection for reason: "+e),delete this.interruptReasons_[e],Object(o.isEmpty)(this.interruptReasons_)&&(this.reconnectDelay_=Me,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 N(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 pe(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){x("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.onAppCheckRevoked_=function(e,t){x("App check token revoked: "+e+"/"+t),this.appCheckToken_=null,this.forceTokenRefresh_=!0,"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=3&&this.appCheckTokenProvider_.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(),this.tryAppCheck();try{for(var i=Object(a.__values)(this.listens.values()),o=i.next();!o.done;o=i.next()){var s=o.value;try{for(var u=(n=void 0,Object(a.__values)(s.values())),c=u.next();!c.done;c=u.next()){var l=c.value;this.sendListen_(l)}}catch(h){n={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{o&&!o.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 d=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(d.action,d.pathString,d.data,d.onComplete)}for(f=0;f<this.outstandingGets_.length;f++)this.outstandingGets_[f]&&this.sendGet_(f)},t.prototype.sendConnectStats_=function(){var e={},t="js";Object(o.isNodeSdk)()&&(t=this.repoInfo_.nodeAdmin?"admin_node":"node"),e["sdk."+t+"."+u.replace(/\./g,"-")]=1,Object(o.isMobileCordova)()?e["framework.cordova"]=1:Object(o.isReactNative)()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=he.getInstance().currentlyOnline();return Object(o.isEmpty)(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(fe),Le=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),De=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new Le(T,e),r=new Le(T,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return Le.MIN},e}(),Fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return Ae},set:function(e){Ae=e},enumerable:!1,configurable:!0}),t.prototype.compare=function(e,t){return I(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw Object(o.assertionError)("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return Le.MIN},t.prototype.maxPost=function(){return new Le(j,Ae)},t.prototype.makePost=function(e,t){return Object(o.assert)("string"===typeof e,"KeyIndex indexValue must always be a string."),new Le(e,Ae)},t.prototype.toString=function(){return".key"},t}(De),Ve=new Fe,Ue=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}(),Be=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:qe.EMPTY_NODE,this.right=null!=o?o:qe.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 qe.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 qe.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}(),ze=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Be(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}(),qe=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,Be.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Be.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 Ue(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Ue(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Ue(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Ue(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new ze,e}();function Ge(e,t){return I(e.name,t.name)}function We(e,t){return I(e,t)}var He,Ke,Xe,Ye=function(e){return"number"===typeof e?"number:"+L(e):"string:"+e},$e=function(e){if(e.isLeafNode()){var t=e.val();Object(o.assert)("string"===typeof t||"number"===typeof t||"object"===typeof t&&Object(o.contains)(t,".sv"),"Priority must be a string or number.")}else Object(o.assert)(e===Pe||e.isEmpty(),"priority of unexpected type.");Object(o.assert)(e===Pe||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Qe=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,Object(o.assert)(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),$e(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return He},set:function(e){He=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 Oe(t)?this:".priority"===ve(t)?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=ve(t);return null===r?n:n.isEmpty()&&".priority"!==r?this:(Object(o.assert)(".priority"!==r||1===me(t),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(ye(t),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1}
2,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:"+Ye(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?L(this.value_):this.value_,this.lazyHash_=m(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:(Object(o.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),a=e.VALUE_TYPE_ORDER.indexOf(r);return Object(o.assert)(i>=0,"Unknown leaf type: "+n),Object(o.assert)(a>=0,"Unknown leaf type: "+r),i===a?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:a-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 Je,Ze,et=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__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?I(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 Le.MIN},t.prototype.maxPost=function(){return new Le(j,new Qe("[PRIORITY-POST]",Xe))},t.prototype.makePost=function(e,t){var n=Ke(e);return new Le(t,new Qe("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(De)),tt=Math.log(2),nt=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/tt,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}(),rt=function(e,t,n,r){e.sort(t);var i=function t(r,i){var o,a,s=i-r;if(0===s)return null;if(1===s)return o=e[r],a=n?n(o):o,new Be(a,o.node,Be.BLACK,null,null);var u=parseInt(s/2,10)+r,c=t(r,u),l=t(u+1,i);return o=e[u],a=n?n(o):o,new Be(a,o.node,Be.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 Be(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,Be.BLACK):(s(f,Be.BLACK),s(f,Be.RED))}return o}(new nt(e.length));return new qe(r||t,o)},it={},ot=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return Object(o.assert)(it&&et,"ChildrenNode.ts has not been loaded"),Je=Je||new e({".priority":it},{".priority":et})},enumerable:!1,configurable:!0}),e.prototype.get=function(e){var t=Object(o.safeGet)(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t instanceof qe?t:null},e.prototype.hasIndex=function(e){return Object(o.contains)(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){Object(o.assert)(t!==Ve,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],s=!1,u=n.getIterator(Le.Wrap),c=u.getNext();c;)s=s||t.isDefinedOn(c.node),i.push(c),c=u.getNext();r=s?rt(i,t.getCompare()):it;var l=t.toString(),f=Object(a.__assign)({},this.indexSet_);f[l]=t;var d=Object(a.__assign)({},this.indexes_);return d[l]=r,new e(d,f)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(Object(o.map)(this.indexes_,(function(e,i){var a=Object(o.safeGet)(r.indexSet_,i);if(Object(o.assert)(a,"Missing index implementation for "+i),e===it){if(a.isDefinedOn(t.node)){for(var s=[],u=n.getIterator(Le.Wrap),c=u.getNext();c;)c.name!==t.name&&s.push(c),c=u.getNext();return s.push(t),rt(s,a.getCompare())}return it}var l=n.get(t.name),f=e;return l&&(f=f.remove(new Le(t.name,l))),f.insert(t,t.node)})),this.indexSet_)}
2,e.prototype.removeFromIndexes=function(t,n){return new e(Object(o.map)(this.indexes_,(function(e){if(e===it)return e;var r=n.get(t.name);return r?e.remove(new Le(t.name,r)):e})),this.indexSet_)},e}(),at=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&$e(this.priorityNode_),this.children_.isEmpty()&&Object(o.assert)(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Ze||(Ze=new e(new qe(We),null,ot.Default))},enumerable:!1,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Ze},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?Ze:t},e.prototype.getChild=function(e){var t=ve(e);return null===t?this:this.getImmediateChild(t).getChild(ye(e))},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(Object(o.assert)(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new Le(t,n),i=void 0,a=void 0;n.isEmpty()?(i=this.children_.remove(t),a=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),a=this.indexMap_.addToIndexes(r,this.children_));var s=i.isEmpty()?Ze:this.priorityNode_;return new e(i,s,a)},e.prototype.updateChild=function(e,t){var n=ve(e);if(null===n)return t;Object(o.assert)(".priority"!==ve(e)||1===me(e),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(ye(e),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(et,(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:"+Ye(this.getPriority().val())+":"),this.forEachChild(et,(function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)})),this.lazyHash_=""===e?"":m(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new Le(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 Le(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 Le(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,Le.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,Le.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===st?-1:0},e.prototype.withIndex=function(t){if(t===Ve||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===Ve||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(et),r=t.getIterator(et),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===Ve?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),st=new(function(e){function t(){return e.call(this,new qe(We),at.EMPTY_NODE,ot.Default)||this}return Object(a.__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 at.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(at));Object.defineProperties(Le,{MIN:{value:new Le(T,at.EMPTY_NODE)},MAX:{value:new Le(j,st)}}),Fe.__EMPTY_NODE=at.EMPTY_NODE,Qe.__childrenNodeConstructor=at,Pe=st,function(e){Xe=e}(st);function ut(e,t){if(void 0===t&&(t=null),null===e)return at.EMPTY_NODE;if("object"===typeof e&&".priority"in e&&(t=e[".priority"]),Object(o.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 Qe(e,ut(t));if(e instanceof Array){var n=at.EMPTY_NODE;return R(e,(function(t,r){if(Object(o.contains)(e,t)&&"."!==t.substring(0,1)){var i=ut(r);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(t,i))}})),n.updatePriority(ut(t))}var r=[],i=!1;if(R(e,(function(e,t){if("."!==e.substring(0,1)){var n=ut(t);n.isEmpty()||(i=i||!n.getPriority().isEmpty(),r.push(new Le(e,n)))}})),0===r.length)return at.EMPTY_NODE;var a=rt(r,Ge,(function(e){return e.name}),We);if(i){var s=rt(r,et.getCompare());return new at(a,ut(t),new ot({".priority":s},{".priority":et}))}return new at(a,ut(t),ot.Default)}!function(e){Ke=e}(ut);var ct=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,Object(o.assert)(!Oe(t)&&".priority"!==ve(t),"Can't create PathIndex with empty path or .priority key"),n}return Object(a.__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?I(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=ut(e),r=at.EMPTY_NODE.updateChild(this.indexPath_,n);return new Le(t,r)},t.prototype.maxPost=function(){var e=at.EMPTY_NODE.updateChild(this.indexPath_,st);return new Le(j,e)},t.prototype.toString=function(){return _e(this.indexPath_,0).join("/")},t}(De),lt=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?I(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 Le.MIN},t.prototype.maxPost=function(){return Le.MAX},t.prototype.makePost=function(e,t){var n=ut(e);return new Le(t,n)},t.prototype.toString=function(){return".value"},t}(De)),ft="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",dt=function(){var e=0,t=[];return function(n){var r,i=n===e;e=n;var a=new Array(8);for(r=7;r>=0;r--)a[r]=ft.charAt(n%64),n=Math.floor(n/64);Object(o.assert)(0===n,"Cannot push at time == 0");var s=a.join("");if(i){for(r=11;r>=0&&63===t[r];r--)t[r]=0;t[r]++}else for(r=0;r<12;r++)t[r]=Math.floor(64*Math.random());for(r=0;r<12;r++)s+=ft.charAt(t[r]);return Object(o.assert)(20===s.length,"nextPushId: Length should be 20."),s}}(),ht=function(e){if("2147483647"===e)return"-";var t=U(e);if(null!=t)return""+(t+1);for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e.charAt(r);if(n.length<786)return n.push("-"),n.join("");for(var i=n.length-1;i>=0&&"z"===n[i];)i--;if(-1===i)return j;var o=n[i],a=ft.charAt(ft.indexOf(o)+1);return n[i]=a,n.slice(0,i+1).join("")},pt=function(e){if("-2147483648"===e)return T;var t=U(e);if(null!=t)return""+(t-1);for(var n=new Array(e.length),r=0;r<n.length;r++)n[r]=e.charAt(r);return"-"===n[n.length-1]?1===n.length?"2147483647":(delete n[n.length-1],n.join("")):(n[n.length-1]=ft.charAt(ft.indexOf(n[n.length-1])-1),n.join("")+"z".repeat(786-n.length))};function gt(e){return{type:"value",snapshotNode:e}}function vt(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function mt(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function yt(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}var bt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,a){Object(o.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!=a&&(n.isEmpty()?e.hasChild(t)?a.trackChildChange(mt(t,s)):Object(o.assert)(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?a.trackChildChange(vt(t,n)):a.trackChildChange(yt(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(et,(function(e,r){t.hasChild(e)||n.trackChildChange(mt(e,r))})),t.isLeafNode()||t.forEachChild(et,(function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(yt(t,r,i))}else n.trackChildChange(vt(t,r))}))),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?at.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}
2(),_t=function(){function e(t){this.indexedFilter_=new bt(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 Le(t,n))||(n=at.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=at.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(at.EMPTY_NODE);var i=this;return t.forEachChild(et,(function(e,t){i.matches(new Le(e,t))||(r=r.updateImmediateChild(e,at.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}(),wt=function(){function e(e){this.rangedFilter_=new _t(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 Le(t,n))||(n=at.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=at.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=at.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(at.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,at.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 a;if(this.reverse_){var s=this.index_.getCompare();a=function(e,t){return s(t,e)}}else a=this.index_.getCompare();var u=e;Object(o.assert)(u.numChildren()===this.limit_,"");var c=new Le(t,n),l=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),f=this.rangedFilter_.matches(c);if(u.hasChild(t)){for(var d=u.getImmediateChild(t),h=r.getChildAfterChild(this.index_,l,this.reverse_);null!=h&&(h.name===t||u.hasChild(h.name));)h=r.getChildAfterChild(this.index_,h,this.reverse_);var p=null==h?1:a(h,c);if(f&&!n.isEmpty()&&p>=0)return null!=i&&i.trackChildChange(yt(t,n,d)),u.updateImmediateChild(t,n);null!=i&&i.trackChildChange(mt(t,d));var g=u.updateImmediateChild(t,at.EMPTY_NODE);return null!=h&&this.rangedFilter_.matches(h)?(null!=i&&i.trackChildChange(vt(h.name,h.node)),g.updateImmediateChild(h.name,h.node)):g}return n.isEmpty()?e:f&&a(l,c)>=0?(null!=i&&(i.trackChildChange(mt(l.name,l.node)),i.trackChildChange(vt(t,n))),u.updateImmediateChild(t,n).updateImmediateChild(l.name,at.EMPTY_NODE)):e},e}(),xt=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=et}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.hasStartAfter=function(){return this.startAfterSet_},e.prototype.hasEndBefore=function(){return this.endBeforeSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:"l"===this.viewFrom_},e.prototype.getIndexStartValue=function(){return Object(o.assert)(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return Object(o.assert)(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:T},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return Object(o.assert)(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return Object(o.assert)(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:j},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return Object(o.assert)(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_===et},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_
2=this.index_,t.viewFrom_=this.viewFrom_,t},e}();function Ot(e,t,n){var r=e.copy();return r.startSet_=!0,void 0===t&&(t=null),r.indexStartValue_=t,null!=n?(r.startNameSet_=!0,r.indexStartName_=n):(r.startNameSet_=!1,r.indexStartName_=""),r}function St(e,t,n){var r=e.copy();return r.endSet_=!0,void 0===t&&(t=null),r.indexEndValue_=t,void 0!==n?(r.endNameSet_=!0,r.indexEndName_=n):(r.endNameSet_=!1,r.indexEndName_=""),r}function Et(e,t){var n=e.copy();return n.index_=t,n}function kt(e){var t,n={};return e.isDefault()||(e.index_===et?t="$priority":e.index_===lt?t="$value":e.index_===Ve?t="$key":(Object(o.assert)(e.index_ instanceof ct,"Unrecognized index type!"),t=e.index_.toString()),n.orderBy=Object(o.stringify)(t),e.startSet_&&(n.startAt=Object(o.stringify)(e.indexStartValue_),e.startNameSet_&&(n.startAt+=","+Object(o.stringify)(e.indexStartName_))),e.endSet_&&(n.endAt=Object(o.stringify)(e.indexEndValue_),e.endNameSet_&&(n.endAt+=","+Object(o.stringify)(e.indexEndName_))),e.limitSet_&&(e.isViewFromLeft()?n.limitToFirst=e.limit_:n.limitToLast=e.limit_)),n}function Ct(e){var t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_)),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_)),e.limitSet_){t.l=e.limit_;var n=e.viewFrom_;""===n&&(n=e.isViewFromLeft()?"l":"r"),t.vf=n}return e.index_!==et&&(t.i=e.index_.toString()),t}var Tt=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.repoInfo_=t,o.onDataUpdate_=n,o.authTokenProvider_=r,o.appCheckTokenProvider_=i,o.log_=O("p:rest:"),o.listens_={},o}return Object(a.__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:(Object(o.assert)(e._queryParams.isDefault(),"should have a tag if it's not a default query."),e._path.toString())},t.prototype.listen=function(e,n,r,i){var a=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=kt(e._queryParams);this.restRequest_(s+".json",l,(function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&a.onDataUpdate_(s,n,!1,r),Object(o.safeGet)(a.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.get=function(e){var t=this,n=kt(e._queryParams),r=e._path.toString(),i=new o.Deferred;return this.restRequest_(r+".json",n,(function(e,n){var o=n;404===e&&(o=null,e=null),null===e?(t.onDataUpdate_(r,o,!1,null),i.resolve(o)):i.reject(new Error(o))})),i.promise},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;return void 0===t&&(t={}),t.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then((function(i){var s=Object(a.__read)(i,2),u=s[0],c=s[1];u&&u.accessToken&&(t.auth=u.accessToken),c&&c.token&&(t.ac=c.token);var l=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?ns="+r.repoInfo_.namespace+Object(o.querystring)(t);r.log_("Sending REST request for "+l);var f=new XMLHttpRequest;f.onreadystatechange=function(){if(n&&4===f.readyState){r.log_("REST Response for "+l+" received. status:",f.status,"response:",f.responseText);var e=null;if(f.status>=200&&f.status<300){try{e=Object(o.jsonEval)(f.responseText)}catch(t){k("Failed to parse JSON response for "+l+": "+f.responseText)}n(null,e)}else 401!==f.status&&404!==f.status&&k("Got unsuccessful REST response for "+l+" Status: "+f.status),n(f.status);n=null}},f.open("GET",l,!0),f.send()}))},t}(fe),jt=function(){function e(){this.rootNode_=at.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}();function It(){return{value:null,children:new Map}}function At(e,t,n){if(Oe(t))e.value=n,e.children.clear();else if(null!==e.value)e.value=e.value.updateChild(t,n);else{var r=ve(t);e.children.has(r)||e.children.set(r,It()),At(e.children.get(r),t=ye(t),n)}}function Pt(e,t){if(Oe(t))return e.value=null,e.children.clear(),!0;if(null!==e.value){if(e.value.isLeafNode())return!1;var n=e.value;
2return e.value=null,n.forEachChild(et,(function(t,n){At(e,new pe(t),n)})),Pt(e,t)}if(e.children.size>0){var r=ve(t);if(t=ye(t),e.children.has(r))Pt(e.children.get(r),t)&&e.children.delete(r);return 0===e.children.size}return!0}function Nt(e,t,n){null!==e.value?n(t,e.value):function(e,t){e.children.forEach((function(e,n){t(n,e)}))}(e,(function(e,r){Nt(r,new pe(t.toString()+"/"+e),n)}))}var Mt,Rt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=Object(a.__assign)({},e);return this.last_&&R(this.last_,(function(e,n){t[e]=t[e]-n})),this.last_=e,t},e}(),Lt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Rt(e);var n=1e4+2e4*Math.random();z(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;R(t,(function(t,i){i>0&&Object(o.contains)(e.statsToReport_,t)&&(n[t]=i,r=!0)})),r&&this.server_.reportStats(n),z(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}();function Dt(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}!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"}(Mt||(Mt={}));var Ft,Vt=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=Mt.ACK_USER_WRITE,this.source={fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}return e.prototype.operationForChild=function(t){if(Oe(this.path)){if(null!=this.affectedTree.value)return Object(o.assert)(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new pe(t));return new e(ge(),n,this.revert)}return Object(o.assert)(ve(this.path)===t,"operationForChild called for unrelated child."),new e(ye(this.path),this.affectedTree,this.revert)},e}(),Ut=function(){function e(e,t){this.source=e,this.path=t,this.type=Mt.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return Oe(this.path)?new e(this.source,ge()):new e(this.source,ye(this.path))},e}(),Bt=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=Mt.OVERWRITE}return e.prototype.operationForChild=function(t){return Oe(this.path)?new e(this.source,ge(),this.snap.getImmediateChild(t)):new e(this.source,ye(this.path),this.snap)},e}(),zt=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=Mt.MERGE}return e.prototype.operationForChild=function(t){if(Oe(this.path)){var n=this.children.subtree(new pe(t));return n.isEmpty()?null:n.value?new Bt(this.source,ge(),n.value):new e(this.source,ge(),n)}return Object(o.assert)(ve(this.path)===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,ye(this.path),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),qt=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(Oe(e))return this.isFullyInitialized()&&!this.filtered_;var t=ve(e);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}(),Gt=function(e){this.query_=e,this.index_=this.query_._queryParams.getIndex()};function Wt(e,t,n,r,i,a){var s=r.filter((function(e){return e.type===n}));s.sort((function(t,n){return function(e,t,n){if(null==t.childName||null==n.childName)throw Object(o.assertionError)("Should only compare child_ events.");var r=new Le(t.childName,t.snapshotNode),i=new Le(n.childName,n.snapshotNode);return e.index_.compare(r,i)}(e,t,n)})),s.forEach((function(n){var r=function(e,t,n){return"value"===t.type||"child_removed"===t.type||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}(e,n,a);
2i.forEach((function(i){i.respondsTo(n.type)&&t.push(i.createEvent(r,e.query_))}))}))}function Ht(e,t){return{eventCache:e,serverCache:t}}function Kt(e,t,n,r){return Ht(new qt(t,n,r),e.serverCache)}function Xt(e,t,n,r){return Ht(e.eventCache,new qt(t,n,r))}function Yt(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function $t(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}var Qt=function(){function e(e,t){void 0===t&&(Ft||(Ft=new qe(A)),t=Ft),this.value=e,this.children=t}return e.fromObject=function(t){var n=new e(null);return R(t,(function(e,t){n=n.set(new pe(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:ge(),value:this.value};if(Oe(e))return null;var n=ve(e),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(ye(e),t);return null!=i?{path:xe(new pe(n),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(Oe(t))return this;var n=ve(t),r=this.children.get(n);return null!==r?r.subtree(ye(t)):new e(null)},e.prototype.set=function(t,n){if(Oe(t))return new e(n,this.children);var r=ve(t),i=(this.children.get(r)||new e(null)).set(ye(t),n),o=this.children.insert(r,i);return new e(this.value,o)},e.prototype.remove=function(t){if(Oe(t))return this.children.isEmpty()?new e(null):new e(null,this.children);var n=ve(t),r=this.children.get(n);if(r){var i=r.remove(ye(t)),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?new e(null):new e(this.value,o)}return this},e.prototype.get=function(e){if(Oe(e))return this.value;var t=ve(e),n=this.children.get(t);return n?n.get(ye(e)):null},e.prototype.setTree=function(t,n){if(Oe(t))return n;var r=ve(t),i=(this.children.get(r)||new e(null)).setTree(ye(t),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_(ge(),e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal((function(r,i){n[r]=i.fold_(xe(e,r),t)})),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,ge(),t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(Oe(e))return null;var i=ve(e),o=this.children.get(i);return o?o.findOnPath_(ye(e),xe(t,i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,ge(),t)},e.prototype.foreachOnPath_=function(t,n,r){if(Oe(t))return this;this.value&&r(n,this.value);var i=ve(t),o=this.children.get(i);return o?o.foreachOnPath_(ye(t),xe(n,i),r):new e(null)},e.prototype.foreach=function(e){this.foreach_(ge(),e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal((function(n,r){r.foreach_(xe(e,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}(),Jt=function(){function e(e){this.writeTree_=e}return e.empty=function(){return new e(new Qt(null))},e}();function Zt(e,t,n){if(Oe(t))return new Jt(new Qt(n));var r=e.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,o=r.value,a=Se(i,t);return o=o.updateChild(a,n),new Jt(e.writeTree_.set(i,o))}var s=new Qt(n),u=e.writeTree_.setTree(t,s);return new Jt(u)}function en(e,t,n){var r=e;return R(n,(function(e,n){r=Zt(r,xe(t,e),n)})),r}function tn(e,t){if(Oe(t))return Jt.empty();var n=e.writeTree_.setTree(t,new Qt(null));return new Jt(n)}function nn(e,t){return null!=rn(e,t)}function rn(e,t){var n=e.writeTree_.findRootMostValueAndPath(t);return null!=n?e.writeTree_.get(n.path).getChild(Se(n.path,t)):null}function on(e){var t=[],n=e.writeTree_.value;return null!=n?n.isLeafNode()||n.forEachChild(et,(function(e,n){t.push(new Le(e,n))}
2)):e.writeTree_.children.inorderTraversal((function(e,n){null!=n.value&&t.push(new Le(e,n.value))})),t}function an(e,t){if(Oe(t))return e;var n=rn(e,t);return new Jt(null!=n?new Qt(n):e.writeTree_.subtree(t))}function sn(e){return e.writeTree_.isEmpty()}function un(e,t){return cn(ge(),e.writeTree_,t)}function cn(e,t,n){if(null!=t.value)return n.updateChild(e,t.value);var r=null;return t.children.inorderTraversal((function(t,i){".priority"===t?(Object(o.assert)(null!==i.value,"Priority writes must always be leaf nodes"),r=i.value):n=cn(xe(e,t),i,n)})),n.getChild(e).isEmpty()||null===r||(n=n.updateChild(xe(e,".priority"),r)),n}function ln(e,t){return On(t,e)}function fn(e,t){var n=e.allWrites.findIndex((function(e){return e.writeId===t}));Object(o.assert)(n>=0,"removeWrite called with nonexistent writeId.");var r=e.allWrites[n];e.allWrites.splice(n,1);for(var i=r.visible,a=!1,s=e.allWrites.length-1;i&&s>=0;){var u=e.allWrites[s];u.visible&&(s>=n&&dn(u,r.path)?i=!1:Ce(r.path,u.path)&&(a=!0)),s--}if(i){if(a)return function(e){e.visibleWrites=pn(e.allWrites,hn,ge()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}(e),!0;r.snap?e.visibleWrites=tn(e.visibleWrites,r.path):R(r.children,(function(t){e.visibleWrites=tn(e.visibleWrites,xe(r.path,t))}));return!0}return!1}function dn(e,t){if(e.snap)return Ce(e.path,t);for(var n in e.children)if(e.children.hasOwnProperty(n)&&Ce(xe(e.path,n),t))return!0;return!1}function hn(e){return e.visible}function pn(e,t,n){for(var r=Jt.empty(),i=0;i<e.length;++i){var a=e[i];if(t(a)){var s=a.path,u=void 0;if(a.snap)Ce(n,s)?r=Zt(r,u=Se(n,s),a.snap):Ce(s,n)&&(u=Se(s,n),r=Zt(r,ge(),a.snap.getChild(u)));else{if(!a.children)throw Object(o.assertionError)("WriteRecord should have .snap or .children");if(Ce(n,s))r=en(r,u=Se(n,s),a.children);else if(Ce(s,n))if(Oe(u=Se(s,n)))r=en(r,ge(),a.children);else{var c=Object(o.safeGet)(a.children,ve(u));if(c){var l=c.getChild(ye(u));r=Zt(r,ge(),l)}}}}}return r}function gn(e,t,n,r,i){if(r||i){var o=an(e.visibleWrites,t);if(!i&&sn(o))return n;if(i||null!=n||nn(o,ge())){return un(pn(e.allWrites,(function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(Ce(e.path,t)||Ce(t,e.path))}),t),n||at.EMPTY_NODE)}return null}var a=rn(e.visibleWrites,t);if(null!=a)return a;var s=an(e.visibleWrites,t);return sn(s)?n:null!=n||nn(s,ge())?un(s,n||at.EMPTY_NODE):null}function vn(e,t,n,r){return gn(e.writeTree,e.treePath,t,n,r)}function mn(e,t){return function(e,t,n){var r=at.EMPTY_NODE,i=rn(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(et,(function(e,t){r=r.updateImmediateChild(e,t)})),r;if(n){var o=an(e.visibleWrites,t);return n.forEachChild(et,(function(e,t){var n=un(an(o,new pe(e)),t);r=r.updateImmediateChild(e,n)})),on(o).forEach((function(e){r=r.updateImmediateChild(e.name,e.node)})),r}
2return on(an(e.visibleWrites,t)).forEach((function(e){r=r.updateImmediateChild(e.name,e.node)})),r}(e.writeTree,e.treePath,t)}function yn(e,t,n,r){return function(e,t,n,r,i){Object(o.assert)(r||i,"Either existingEventSnap or existingServerSnap must exist");var a=xe(t,n);if(nn(e.visibleWrites,a))return null;var s=an(e.visibleWrites,a);return sn(s)?i.getChild(n):un(s,i.getChild(n))}(e.writeTree,e.treePath,t,n,r)}function bn(e,t){return function(e,t){return rn(e.visibleWrites,t)}(e.writeTree,xe(e.treePath,t))}function _n(e,t,n,r,i,o){return function(e,t,n,r,i,o,a){var s,u=an(e.visibleWrites,t),c=rn(u,ge());if(null!=c)s=c;else{if(null==n)return[];s=un(u,n)}if((s=s.withIndex(a)).isEmpty()||s.isLeafNode())return[];for(var l=[],f=a.getCompare(),d=o?s.getReverseIteratorFrom(r,a):s.getIteratorFrom(r,a),h=d.getNext();h&&l.length<i;)0!==f(h,r)&&l.push(h),h=d.getNext();return l}(e.writeTree,e.treePath,t,n,r,i,o)}function wn(e,t,n){return function(e,t,n,r){var i=xe(t,n),o=rn(e.visibleWrites,i);return null!=o?o:r.isCompleteForChild(n)?un(an(e.visibleWrites,i),r.getNode().getImmediateChild(n)):null}(e.writeTree,e.treePath,t,n)}function xn(e,t){return On(xe(e.treePath,t),e.writeTree)}function On(e,t){return{treePath:e,writeTree:t}}var Sn=function(){function e(){this.changeMap=new Map}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;Object(o.assert)("child_added"===t||"child_changed"===t||"child_removed"===t,"Only child changes supported for tracking"),Object(o.assert)(".priority"!==n,"Only non-priority child changes can be tracked.");var r=this.changeMap.get(n);if(r){var i=r.type;if("child_added"===t&&"child_removed"===i)this.changeMap.set(n,yt(n,e.snapshotNode,r.snapshotNode));else if("child_removed"===t&&"child_added"===i)this.changeMap.delete(n);else if("child_removed"===t&&"child_changed"===i)this.changeMap.set(n,mt(n,r.oldSnap));else if("child_changed"===t&&"child_added"===i)this.changeMap.set(n,vt(n,e.snapshotNode));else{if("child_changed"!==t||"child_changed"!==i)throw Object(o.assertionError)("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap.set(n,yt(n,e.snapshotNode,r.oldSnap))}}else this.changeMap.set(n,e)},e.prototype.getChanges=function(){return Array.from(this.changeMap.values())},e}(),En=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),kn=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_.eventCache;if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new qt(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return wn(this.writes_,e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:$t(this.viewCache_),i=_n(this.writes_,r,t,1,n,e);return 0===i.length?null:i[0]},e}();function Cn(e,t,n,r,i){var a,s,u=new Sn;if(n.type===Mt.OVERWRITE){var c=n;c.source.fromUser?a=In(e,t,c.path,c.snap,r,i,u):(Object(o.assert)(c.source.fromServer,"Unknown source."),s=c.source.tagged||t.serverCache.isFiltered()&&!Oe(c.path),a=jn(e,t,c.path,c.snap,r,i,s,u))}else if(n.type===Mt.MERGE){var l=n;l.source.fromUser?a=function(e,t,n,r,i,o,a){var s=t;return r.foreach((function(r,u){var c=xe(n,r);An(t,ve(c))&&(s=In(e,s,c,u,i,o,a))})),r.foreach((function(r,u){var c=xe(n,r);An(t,ve(c))||(s=In(e,s,c,u,i,o,a))})),s}(e,t,l.path,l.children,r,i,u):(Object(o.assert)(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.serverCache.isFiltered(),a=Nn(e,t,l.path,l.children,r,i,s,u))}else if(n.type===Mt.ACK_USER_WRITE){var f=n;a=f.revert?function(e,t,n,r,i,a){var s;if(null!=bn(r,n))return t;var u=new kn(r,t,i),c=t.eventCache.getNode(),l=void 0;if(Oe(n)||".priority"===ve(n)){var f=void 0;if(t.serverCache.isFullyInitialized())f=vn(r,$t(t));else{var d=t.serverCache.getNode();Object(o.assert)(d instanceof at,"serverChildren would be complete if leaf node"),f=mn(r,d)}f=f,l=e.filter.updateFullNode(c,f,a)}else{var h=ve(n),p=wn(r,h,t.serverCache);null==p&&t.serverCache.isCompleteForChild(h)&&(p=c.getImmediateChild(h)),(l=null!=p?e.filter.updateChild(c,h,p,ye(n),u,a):t.eventCache.getNode().hasChild(h)?e.filter.updateChild(c,h,at.EMPTY_NODE,ye(n),u,a):c).isEmpty()&&t.serverCache.isFullyInitialized()&&(s=vn(r,$t(t))).isLeafNode()&&(l=e.filter.updateFullNode(l,s,a))}return s=t.serverCache.isFullyInitialized()||null!=bn(r,ge()),Kt(t,l,s,e.filter.filtersNodes())}(e,t,f.path,r,i,u):function(e,t,n,r,i,o,a){if(null!=bn(i,n))return t;var s=t.serverCache.isFiltered(),u=t.serverCache;
2if(null!=r.value){if(Oe(n)&&u.isFullyInitialized()||u.isCompleteForPath(n))return jn(e,t,n,u.getNode().getChild(n),i,o,s,a);if(Oe(n)){var c=new Qt(null);return u.getNode().forEachChild(Ve,(function(e,t){c=c.set(new pe(e),t)})),Nn(e,t,n,c,i,o,s,a)}return t}var l=new Qt(null);return r.foreach((function(e,t){var r=xe(n,e);u.isCompleteForPath(r)&&(l=l.set(e,u.getNode().getChild(r)))})),Nn(e,t,n,l,i,o,s,a)}(e,t,f.path,f.affectedTree,r,i,u)}else{if(n.type!==Mt.LISTEN_COMPLETE)throw Object(o.assertionError)("Unknown operation type: "+n.type);a=function(e,t,n,r,i){var o=t.serverCache,a=Xt(t,o.getNode(),o.isFullyInitialized()||Oe(n),o.isFiltered());return Tn(e,a,n,r,En,i)}(e,t,n.path,r,u)}var d=u.getChanges();return function(e,t,n){var r=t.eventCache;if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=Yt(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(gt(Yt(t)))}}(t,a,d),{viewCache:a,changes:d}}function Tn(e,t,n,r,i,a){var s=t.eventCache;if(null!=bn(r,n))return t;var u=void 0,c=void 0;if(Oe(n))if(Object(o.assert)(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){var l=$t(t),f=mn(r,l instanceof at?l:at.EMPTY_NODE);u=e.filter.updateFullNode(t.eventCache.getNode(),f,a)}else{var d=vn(r,$t(t));u=e.filter.updateFullNode(t.eventCache.getNode(),d,a)}else{var h=ve(n);if(".priority"===h){Object(o.assert)(1===me(n),"Can't have a priority with additional path components");var p=s.getNode(),g=yn(r,n,p,c=t.serverCache.getNode());u=null!=g?e.filter.updatePriority(p,g):s.getNode()}else{var v=ye(n),m=void 0;if(s.isCompleteForChild(h)){c=t.serverCache.getNode();var y=yn(r,n,s.getNode(),c);m=null!=y?s.getNode().getImmediateChild(h).updateChild(v,y):s.getNode().getImmediateChild(h)}else m=wn(r,h,t.serverCache);u=null!=m?e.filter.updateChild(s.getNode(),h,m,v,i,a):s.getNode()}}return Kt(t,u,s.isFullyInitialized()||Oe(n),e.filter.filtersNodes())}function jn(e,t,n,r,i,o,a,s){var u,c=t.serverCache,l=a?e.filter:e.filter.getIndexedFilter();if(Oe(n))u=l.updateFullNode(c.getNode(),r,null);else if(l.filtersNodes()&&!c.isFiltered()){var f=c.getNode().updateChild(n,r);u=l.updateFullNode(c.getNode(),f,null)}else{var d=ve(n);if(!c.isCompleteForPath(n)&&me(n)>1)return t;var h=ye(n),p=c.getNode().getImmediateChild(d).updateChild(h,r);u=".priority"===d?l.updatePriority(c.getNode(),p):l.updateChild(c.getNode(),d,p,h,En,null)}var g=Xt(t,u,c.isFullyInitialized()||Oe(n),l.filtersNodes());return Tn(e,g,n,i,new kn(i,g,o),s)}function In(e,t,n,r,i,o,a){var s,u,c=t.eventCache,l=new kn(i,t,o);if(Oe(n))u=e.filter.updateFullNode(t.eventCache.getNode(),r,a),s=Kt(t,u,!0,e.filter.filtersNodes());else{var f=ve(n);if(".priority"===f)u=e.filter.updatePriority(t.eventCache.getNode(),r),s=Kt(t,u,c.isFullyInitialized(),c.isFiltered());else{var d=ye(n),h=c.getNode().getImmediateChild(f),p=void 0;if(Oe(d))p=r;else{var g=l.getCompleteChild(f);p=null!=g?".priority"===be(d)&&g.getChild(we(d)).isEmpty()?g:g.updateChild(d,r):at.EMPTY_NODE}if(h.equals(p))s=t;else s=Kt(t,e.filter.updateChild(c.getNode(),f,p,d,l,a),c.isFullyInitialized(),e.filter.filtersNodes())}}return s}function An(e,t){return e.eventCache.isCompleteForChild(t)}function Pn(e,t,n){return n.foreach((function(e,n){t=t.updateChild(e,n)})),t}
2function Nn(e,t,n,r,i,o,a,s){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;var u,c=t;u=Oe(n)?r:new Qt(null).setTree(n,r);var l=t.serverCache.getNode();return u.children.inorderTraversal((function(n,r){if(l.hasChild(n)){var u=Pn(0,t.serverCache.getNode().getImmediateChild(n),r);c=jn(e,c,new pe(n),u,i,o,a,s)}})),u.children.inorderTraversal((function(n,r){var u=!t.serverCache.isCompleteForChild(n)&&void 0===r.value;if(!l.hasChild(n)&&!u){var f=Pn(0,t.serverCache.getNode().getImmediateChild(n),r);c=jn(e,c,new pe(n),f,i,o,a,s)}})),c}var Mn,Rn=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n,r=this.query_._queryParams,i=new bt(r.getIndex()),o=(n=r).loadsAllData()?new bt(n.getIndex()):n.hasLimit()?new wt(n):new _t(n);this.processor_=function(e){return{filter:e}}(o);var a=t.serverCache,s=t.eventCache,u=i.updateFullNode(at.EMPTY_NODE,a.getNode(),null),c=o.updateFullNode(at.EMPTY_NODE,s.getNode(),null),l=new qt(u,a.isFullyInitialized(),i.filtersNodes()),f=new qt(c,s.isFullyInitialized(),o.filtersNodes());this.viewCache_=Ht(f,l),this.eventGenerator_=new Gt(this.query_)}return Object.defineProperty(e.prototype,"query",{get:function(){return this.query_},enumerable:!1,configurable:!0}),e}();function Ln(e,t){var n=$t(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!Oe(t)&&!n.getImmediateChild(ve(t)).isEmpty())?n.getChild(t):null}function Dn(e){return 0===e.eventRegistrations_.length}function Fn(e,t,n){var r=[];if(n){Object(o.assert)(null==t,"A cancel should cancel all event registrations.");var i=e.query._path;e.eventRegistrations_.forEach((function(e){var t=e.createCancelEvent(n,i);t&&r.push(t)}))}if(t){for(var a=[],s=0;s<e.eventRegistrations_.length;++s){var u=e.eventRegistrations_[s];if(u.matches(t)){if(t.hasAnyCallback()){a=a.concat(e.eventRegistrations_.slice(s+1));break}}else a.push(u)}e.eventRegistrations_=a}else e.eventRegistrations_=[];return r}function Vn(e,t,n,r){t.type===Mt.MERGE&&null!==t.source.queryId&&(Object(o.assert)($t(e.viewCache_),"We should always have a full cache before handling merges"),Object(o.assert)(Yt(e.viewCache_),"Missing event cache, even though we have a server cache"));var i,a,s=e.viewCache_,u=Cn(e.processor_,s,t,n,r);return i=e.processor_,a=u.viewCache,Object(o.assert)(a.eventCache.getNode().isIndexed(i.filter.getIndex()),"Event snap not indexed"),Object(o.assert)(a.serverCache.getNode().isIndexed(i.filter.getIndex()),"Server snap not indexed"),Object(o.assert)(u.viewCache.serverCache.isFullyInitialized()||!s.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=u.viewCache,Un(e,u.changes,u.viewCache.eventCache.getNode(),null)}function Un(e,t,n,r){var i=r?[r]:e.eventRegistrations_;return function(e,t,n,r){var i=[],o=[];return t.forEach((function(t){var n;"child_changed"===t.type&&e.index_.indexedValueChanged(t.oldSnap,t.snapshotNode)&&o.push((n=t.childName,{type:"child_moved",snapshotNode:t.snapshotNode,childName:n}))})),Wt(e,i,"child_removed",t,r,n),Wt(e,i,"child_added",t,r,n),Wt(e,i,"child_moved",o,r,n),Wt(e,i,"child_changed",t,r,n),Wt(e,i,"value",t,r,n),i}(e.eventGenerator_,t,n,i)}var Bn,zn=function(){this.views=new Map};function qn(e,t,n,r){var i,s,u=t.source.queryId;if(null!==u){var c=e.views.get(u);return Object(o.assert)(null!=c,"SyncTree gave us an op for an invalid query."),Vn(c,t,n,r)}var l=[];try{for(var f=Object(a.__values)(e.views.values()),d=f.next();!d.done;d=f.next()){c=d.value;l=l.concat(Vn(c,t,n,r))}}catch(h){i={error:h}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(i)throw i.error}}return l}function Gn(e,t,n,r,i){var o=t._queryIdentifier,a=e.views.get(o);if(!a){var s=vn(n,i?r:null),u=!1;s?u=!0:r instanceof at?(s=mn(n,r),u=!1):(s=at.EMPTY_NODE,u=!1);var c=Ht(new qt(s,u,!1),new qt(r,i,!1));return new Rn(t,c)}return a}function Wn(e,t,n,r,i,o){var a=Gn(e,t,r,i,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,a),function(e,t){e.eventRegistrations_.push(t)}(a,n),function(e,t){var n=e.viewCache_.eventCache,r=[];
2return n.getNode().isLeafNode()||n.getNode().forEachChild(et,(function(e,t){r.push(vt(e,t))})),n.isFullyInitialized()&&r.push(gt(n.getNode())),Un(e,r,n.getNode(),t)}(a,n)}function Hn(e,t,n,r){var i,s,u=t._queryIdentifier,c=[],l=[],f=Qn(e);if("default"===u)try{for(var d=Object(a.__values)(e.views.entries()),h=d.next();!h.done;h=d.next()){var p=Object(a.__read)(h.value,2),g=p[0],v=p[1];l=l.concat(Fn(v,n,r)),Dn(v)&&(e.views.delete(g),v.query._queryParams.loadsAllData()||c.push(v.query))}}catch(m){i={error:m}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}else(v=e.views.get(u))&&(l=l.concat(Fn(v,n,r)),Dn(v)&&(e.views.delete(u),v.query._queryParams.loadsAllData()||c.push(v.query)));return f&&!Qn(e)&&c.push(new(Object(o.assert)(Mn,"Reference.ts has not been loaded"),Mn)(t._repo,t._path)),{removed:c,events:l}}function Kn(e){var t,n,r=[];try{for(var i=Object(a.__values)(e.views.values()),o=i.next();!o.done;o=i.next()){var s=o.value;s.query._queryParams.loadsAllData()||r.push(s)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Xn(e,t){var n,r,i=null;try{for(var o=Object(a.__values)(e.views.values()),s=o.next();!s.done;s=o.next()){var u=s.value;i=i||Ln(u,t)}}catch(c){n={error:c}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}function Yn(e,t){if(t._queryParams.loadsAllData())return Jn(e);var n=t._queryIdentifier;return e.views.get(n)}function $n(e,t){return null!=Yn(e,t)}function Qn(e){return null!=Jn(e)}function Jn(e){var t,n;try{for(var r=Object(a.__values)(e.views.values()),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.query._queryParams.loadsAllData())return o}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return null}var Zn=1,er=function(e){this.listenProvider_=e,this.syncPointTree_=new Qt(null),this.pendingWriteTree_={visibleWrites:Jt.empty(),allWrites:[],lastWriteId:-1},this.tagToQueryMap=new Map,this.queryToTagMap=new Map};function tr(e,t,n,r,i){return function(e,t,n,r,i){Object(o.assert)(r>e.lastWriteId,"Stacking an older write on top of newer ones"),void 0===i&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=Zt(e.visibleWrites,t,n)),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r,i),i?cr(e,new Bt({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,n)):[]}function nr(e,t,n,r){!function(e,t,n,r){Object(o.assert)(r>e.lastWriteId,"Stacking an older merge on top of newer ones"),e.allWrites.push({path:t,children:n,writeId:r,visible:!0}),e.visibleWrites=en(e.visibleWrites,t,n),e.lastWriteId=r}(e.pendingWriteTree_,t,n,r);var i=Qt.fromObject(n);return cr(e,new zt({fromUser:!0,fromServer:!1,queryId:null,tagged:!1},t,i))}function rr(e,t,n){void 0===n&&(n=!1);var r=function(e,t){for(var n=0;n<e.allWrites.length;n++){var r=e.allWrites[n];if(r.writeId===t)return r}return null}(e.pendingWriteTree_,t);if(fn(e.pendingWriteTree_,t)){var i=new Qt(null);return null!=r.snap?i=i.set(ge(),!0):R(r.children,(function(e){i=i.set(new pe(e),!0)})),cr(e,new Vt(r.path,i,n))}return[]}function ir(e,t,n){return cr(e,new Bt({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,n))}function or(e,t,n,r){var i=t._path,o=e.syncPointTree_.get(i),a=[];if(o&&("default"===t._queryIdentifier||$n(o,t))){var s=Hn(o,t,n,r);0===o.views.size&&(e.syncPointTree_=e.syncPointTree_.remove(i));var u=s.removed;a=s.events;var c=-1!==u.findIndex((function(e){return e._queryParams.loadsAllData()})),l=e.syncPointTree_.findOnPath(i,(function(e,t){return Qn(t)}));if(c&&!l){var f=e.syncPointTree_.subtree(i);if(!f.isEmpty())for(var d=function(e){return e.fold((function(e,t,n){if(t&&Qn(t))return[Jn(t)];var r=[];return t&&(r=Kn(t)),R(n,(function(e,t){r=r.concat(t)})),r}))}(f),h=0;h<d.length;++h){var p=d[h],g=p.query,v=dr(e,p);e.listenProvider_.startListening(yr(g),hr(e,g),v.hashFn,v.onComplete)}}if(!l&&u.length>0&&!r)if(c){e.listenProvider_.stopListening(yr(t),null)}else u.forEach((function(t){var n=e.queryToTagMap.get(pr(t));e.listenProvider_.stopListening(yr(t),n)}));!function(e,t){for(var n=0;n<t.length;++n){var r=t[n];if(!r._queryParams.loadsAllData()){var i=pr(r),o=e.queryToTagMap.get(i);e.queryToTagMap.delete(i),e.tagToQueryMap.delete(o)}}}(e,u)}return a}function ar(e,t,n){var r=t._path,i=null,a=!1;e.syncPointTree_.foreachOnPath(r,(function(e,t){var n=Se(e,r);i=i||Xn(t,n),a=a||Qn(t)}));var s,u=e.syncPointTree_.get(r);(u?(a=a||Qn(u),i=i||Xn(u,ge())):(u=new zn,e.syncPointTree_=e.syncPointTree_.set(r,u)),null!=i)?s=!0:(s=!1,i=at.EMPTY_NODE,e.syncPointTree_.subtree(r).foreachChild((function(e,t){var n=Xn(t,ge());n&&(i=i.updateImmediateChild(e,n))})));var c=$n(u,t);if(!c&&!t._queryParams.loadsAllData()){var l=pr(t);Object(o.assert)(!e.queryToTagMap.has(l),"View does not exist, but we have a tag");var f=Zn++;e.queryToTagMap.set(l,f),e.tagToQueryMap.set(f,l)}var d=Wn(u,t,n,ln(e.pendingWriteTree_,r),i,s);if(!c&&!a){var h=Yn(u,t);d=d.concat(function(e,t,n){var r=t._path,i=hr(e,t),a=dr(e,n),s=e.listenProvi
2der_.startListening(yr(t),i,a.hashFn,a.onComplete),u=e.syncPointTree_.subtree(r);if(i)Object(o.assert)(!Qn(u.value),"If we're adding a query, it shouldn't be shadowed");else for(var c=u.fold((function(e,t,n){if(!Oe(e)&&t&&Qn(t))return[Jn(t).query];var r=[];return t&&(r=r.concat(Kn(t).map((function(e){return e.query})))),R(n,(function(e,t){r=r.concat(t)})),r})),l=0;l<c.length;++l){var f=c[l];e.listenProvider_.stopListening(yr(f),hr(e,f))}return s}(e,t,h))}return d}function sr(e,t,n){var r=e.pendingWriteTree_,i=e.syncPointTree_.findOnPath(t,(function(e,n){var r=Xn(n,Se(e,t));if(r)return r}));return gn(r,t,i,n,!0)}function ur(e,t){var n=t._path,r=null;e.syncPointTree_.foreachOnPath(n,(function(e,t){var i=Se(e,n);r=r||Xn(t,i)}));var i=e.syncPointTree_.get(n);i?r=r||Xn(i,ge()):(i=new zn,e.syncPointTree_=e.syncPointTree_.set(n,i));var o=null!=r,a=o?new qt(r,!0,!1):null;return function(e){return Yt(e.viewCache_)}(Gn(i,t,ln(e.pendingWriteTree_,t._path),o?a.getNode():at.EMPTY_NODE,o))}function cr(e,t){return lr(t,e.syncPointTree_,null,ln(e.pendingWriteTree_,ge()))}function lr(e,t,n,r){if(Oe(e.path))return fr(e,t,n,r);var i=t.get(ge());null==n&&null!=i&&(n=Xn(i,ge()));var o=[],a=ve(e.path),s=e.operationForChild(a),u=t.children.get(a);if(u&&s){var c=n?n.getImmediateChild(a):null,l=xn(r,a);o=o.concat(lr(s,u,c,l))}return i&&(o=o.concat(qn(i,e,r,n))),o}function fr(e,t,n,r){var i=t.get(ge());null==n&&null!=i&&(n=Xn(i,ge()));var o=[];return t.children.inorderTraversal((function(t,i){var a=n?n.getImmediateChild(t):null,s=xn(r,t),u=e.operationForChild(t);u&&(o=o.concat(fr(u,i,a,s)))})),i&&(o=o.concat(qn(i,e,r,n))),o}function dr(e,t){var n=t.query,r=hr(e,n);return{hashFn:function(){return(function(e){return e.viewCache_.serverCache.getNode()}(t)||at.EMPTY_NODE).hash()},onComplete:function(t){if("ok"===t)return r?function(e,t,n){var r=gr(e,n);if(r){var i=vr(r),o=i.path,a=i.queryId,s=Se(o,t);return mr(e,o,new Ut(Dt(a),s))}return[]}(e,n._path,r):function(e,t){return cr(e,new Ut({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t))}(e,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}(t,n);return or(e,n,null,i)}}}function hr(e,t){var n=pr(t);return e.queryToTagMap.get(n)}function pr(e){return e._path.toString()+"$"+e._queryIdentifier}function gr(e,t){return e.tagToQueryMap.get(t)}function vr(e){var t=e.indexOf("$");return Object(o.assert)(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new pe(e.substr(0,t))}}function mr(e,t,n){var r=e.syncPointTree_.get(t);return Object(o.assert)(r,"Missing sync point for query tag that we're tracking"),qn(r,n,ln(e.pendingWriteTree_,t),null)}
2function yr(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(Object(o.assert)(Bn,"Reference.ts has not been loaded"),Bn)(e._repo,e._path):e}var br=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}(),_r=function(){function e(e,t){this.syncTree_=e,this.path_=t}return e.prototype.getImmediateChild=function(t){var n=xe(this.path_,t);return new e(this.syncTree_,n)},e.prototype.node=function(){return sr(this.syncTree_,this.path_)},e}(),wr=function(e,t,n){return e&&"object"===typeof e?(Object(o.assert)(".sv"in e,"Unexpected leaf node or priority contents"),"string"===typeof e[".sv"]?xr(e[".sv"],t,n):"object"===typeof e[".sv"]?Or(e[".sv"],t):void Object(o.assert)(!1,"Unexpected server value: "+JSON.stringify(e,null,2))):e},xr=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:Object(o.assert)(!1,"Unexpected server value: "+e)}},Or=function(e,t,n){e.hasOwnProperty("increment")||Object(o.assert)(!1,"Unexpected server value: "+JSON.stringify(e,null,2));var r=e.increment;"number"!==typeof r&&Object(o.assert)(!1,"Unexpected increment value: "+r);var i=t.node();if(Object(o.assert)(null!==i&&"undefined"!==typeof i,"Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;var a=i.getValue();return"number"!==typeof a?r:a+r},Sr=function(e,t,n,r){return kr(t,new _r(n,e),r)},Er=function(e,t,n){return kr(e,new br(t),n)};function kr(e,t,n){var r,i=e.getPriority().val(),o=wr(i,t.getImmediateChild(".priority"),n);if(e.isLeafNode()){var a=e,s=wr(a.getValue(),t,n);return s!==a.getValue()||o!==a.getPriority().val()?new Qe(s,ut(o)):e}var u=e;return r=u,o!==u.getPriority().val()&&(r=r.updatePriority(new Qe(o))),u.forEachChild(et,(function(e,i){var o=kr(i,t.getImmediateChild(e),n);o!==i&&(r=r.updateImmediateChild(e,o))})),r}var Cr=function(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n={children:{},childCount:0}),this.name=e,this.parent=t,this.node=n};function Tr(e,t){for(var n=t instanceof pe?t:new pe(t),r=e,i=ve(n);null!==i;){var a=Object(o.safeGet)(r.node.children,i)||{children:{},childCount:0};r=new Cr(i,r,a),i=ve(n=ye(n))}return r}function jr(e){return e.node.value}function Ir(e,t){e.node.value=t,Rr(e)}function Ar(e){return e.node.childCount>0}function Pr(e,t){R(e.node.children,(function(n,r){t(new Cr(n,e,r))}))}function Nr(e,t,n,r){n&&!r&&t(e),Pr(e,(function(e){Nr(e,t,!0,r)})),n&&r&&t(e)}function Mr(e){return new pe(null===e.parent?e.name:Mr(e.parent)+"/"+e.name)}function Rr(e){null!==e.parent&&function(e,t,n){var r=function(e){return void 0===jr(e)&&!Ar(e)}(n),i=Object(o.contains)(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,Rr(e)):r||i||(e.node.children[t]=n.node,e.node.childCount++,Rr(e))}(e.parent,e.name,e)}var Lr=/[\[\].#$\/\u0000-\u001F\u007F]/,Dr=/[\[\].#$\u0000-\u001F\u007F]/,Fr=10485760,Vr=function(e){return"string"===typeof e&&0!==e.length&&!Lr.test(e)},Ur=function(e){return"string"===typeof e&&0!==e.length&&!Dr.test(e)},Br=function(e){return null===e||"string"===typeof e||"number"===typeof e&&!C(e)||e&&"object"===typeof e&&Object(o.contains)(e,".sv")},zr=function(e,t,n,r){r&&void 0===t||qr(Object(o.errorPrefix)(e,"value"),t,n)},qr=function e(t,n,r){var i=r instanceof pe?new Te(r,t):r;if(void 0===n)throw new Error(t+"contains undefined "+Ie(i));if("function"===typeof n)throw new Error(t+"contains a function "+Ie(i)+" with contents = "+n.toString());if(C(n))throw new Error(t+"contains "+n.toString()+" "+Ie(i));if("string"===typeof n&&n.length>Fr/3&&Object(o.stringLength)(n)>Fr)throw new Error(t+"contains a string greater than "+"10485760 utf8 bytes "+Ie(i)+" ('"+n.substring(0,50)+"...')");if(n&&"object"===typeof n){var a=!1,s=!1;if(R(n,(function(n,r){if(".value"===n)a=!0;else if(".priority"!==n&&".sv"!==n&&(s=!0,!Vr(n)))throw new Error(t+" contains an invalid key ("+n+") "+Ie(i)+'.  Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');!function(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=Object(o.stringLength)(t),je(e)}(i,n),e(t,r,i),function(e){var t=e.parts_.pop();e.byteLength_-=Object(o.stringLength)(t),e.parts_.length>0&&(e.byteLength_-=1)}(i)})),a&&s)throw new Error(t+' contains ".value" child '+Ie(i)+" in addition to actual children.")}},Gr=function(e,t,n,r){if(!r||void 0!==t){var i=Object(o.errorPrefix)(e,"values");if(!t||"object"!==typeof t||Array.isArray(t))throw new Error(i+" must be an object c
2ontaining the children to replace.");var a=[];R(t,(function(e,t){var r=new pe(e);if(qr(i,t,xe(n,r)),".priority"===be(r)&&!Br(t))throw new Error(i+"contains an invalid value for '"+r.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");a.push(r)})),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=_e(r=t[n]),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!Vr(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(Ee);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&Ce(a,r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}}(i,a)}},Wr=function(e,t,n){if(!n||void 0!==t){if(C(t))throw new Error(Object(o.errorPrefix)(e,"priority")+"is "+t.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!Br(t))throw new Error(Object(o.errorPrefix)(e,"priority")+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},Hr=function(e,t,n){if(!n||void 0!==t)switch(t){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(Object(o.errorPrefix)(e,"eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},Kr=function(e,t,n,r){if((!r||void 0!==n)&&!Vr(n))throw new Error(Object(o.errorPrefix)(e,t)+'was an invalid key = "'+n+'".  Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},Xr=function(e,t,n,r){if((!r||void 0!==n)&&!Ur(n))throw new Error(Object(o.errorPrefix)(e,t)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},Yr=function(e,t){if(".info"===ve(t))throw new Error(e+" failed = Can't modify data under /.info/")},$r=function(e,t){var n=t.path.toString();if("string"!==typeof t.repoInfo.host||0===t.repoInfo.host.length||!Vr(t.repoInfo.namespace)&&"localhost"!==t.repoInfo.host.split(":")[0]||0!==n.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),Ur(e)}(n))throw new Error(Object(o.errorPrefix)(e,"url")+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},Qr=function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!==typeof n)throw new Error(Object(o.errorPrefix)(e,t)+"must be a boolean.")},Jr=function(){this.eventLists_=[],this.recursionDepth_=0};function Zr(e,t){for(var n=null,r=0;r<t.length;r++){var i=t[r],o=i.getPath();null===n||ke(o,n.path)||(e.eventLists_.push(n),n=null),null===n&&(n={events:[],path:o}),n.events.push(i)}n&&e.eventLists_.push(n)}function ei(e,t,n){Zr(e,n),ni(e,(function(e){return ke(e,t)}))}function ti(e,t,n){Zr(e,n),ni(e,(function(e){return Ce(e,t)||Ce(t,e)}))}function ni(e,t){e.recursionDepth_++;for(var n=!0,r=0;r<e.eventLists_.length;r++){var i=e.eventLists_[r];if(i)t(i.path)?(ri(e.eventLists_[r]),e.eventLists_[r]=null):n=!1}n&&(e.eventLists_=[]),e.recursionDepth_--}function ri(e){for(var t=0;t<e.events.length;t++){var n=e.events[t];if(null!==n){e.events[t]=null;var r=n.getEventRunner();b&&x("event: "+n.toString()),B(r)}}}var ii="repo_interrupt",oi=function(){function e(e,t,n,r){this.repoInfo_=e,this.forceRestClient_=t,this.authTokenProvider_=n,this.appCheckProvider_=r,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new Jr,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=It(),this.transactionQueueTree_=new Cr,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e}();function ai(e,t,n){if(e.stats_=te(e.repoInfo_),e.forceRestClient_||("object"===typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0)e.server_=new Tt(e.repoInfo_,(function(t,n,r,i){ci(e,t,n,r,i)}),e.authTokenProvider_,e.appCheckProvider_),setTimeout((function(){return li(e,!0)}),0);else{if("undefined"!==typeof n&&null!==n){if("object"!==typeof n)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Object(o.stringify)(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new Re(e.repoInfo_,t,(function(t,n,r,i){ci(e,t,n,r,i)}),(function(t){li(e,t)}),(function(t){!function(e,t){R(t,(function(t,n){fi(e,t,n)}))}(e,t)}),e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener((function(t){e.server_.refreshAuthToken(t)})),e.appCheckProvider_.addTokenChangeListener((function(t){e.server_.refreshAppCheckToken(t.token)})),e.statsReporter_=function(e,t){var n=e.toString();return ee[n]||(ee[n]=t()),ee[n]}(e.repoInfo_,(function(){return new Lt(e.stats_,e.server_)})),e.infoData_=new jt,e.infoSyncTree_=new er({startListening:function(t,n,r,i){var o=[],a=e.infoData_.getNode(t._path);return a.isEmpty()||(o=ir(e.infoSyncTree_,t._path,a),setTimeout((function(){i("ok")}),0)),o},stopListening:function(){}}),fi(e,"connected",!1),e.serverSyncTree_=new er({startListening:function(t,n,r,i){return e.server_.listen(t,r,n,(function(n,r){var o=i(n,r);ti(e.eventQueue_,t._path,o)})),[]},stopListening:function(t,n){e.server_.unlisten(t,n)}})}function si(e){var t=e.infoData_.getNode(new pe(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+t}function ui(e){return(t=(t={timestamp:si(e)})||{}).timestamp=t.timestamp||(new Date).getTime(),t;var t}function ci(e,t,n,r,i){e.dataUpdateCount++;var a=new pe(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;var s=[];if(i)if(r){var u=Object(o.map)(n,(function(e){return ut(e)}));s=function(e,t,n,r){var i=gr(e,r);if(i){var o=vr(i),a=o.path,s=o.queryId,u=Se(a,t),c=Qt.fromObject(n);return mr(e,a,new zt(Dt(s),u,c))}return[]}(e.serverSyncTree_,a,u,i)}else{var c=ut(n);s=function(e,t,n,r){var i=gr(e,r);if(null!=i){var o=vr(i),a=o.path,s=o.queryId,u=Se(a,t);return mr(e,a,new Bt(Dt(s),u,n))}return[]}(e.serverSyncTree_,a,c,i)}else if(r){var l=Object(o.map)(n,(function(e){return ut(e)}));s=function(e,t,n){var r=Qt.fromObject(n);return cr(e,new zt({fromUser:!1,fromServer:!0,queryId:null,tagged:!1},t,r))}(e.serverSyncTree_,a,l)}else{var f=ut(n);s=ir(e.serverSyncTree_,a,f)}var d=a;s.length>0&&(d=xi(e,a)),ti(e.eventQueue_,d,s)}function li(e,t){fi(e,"connected",t),!1===t&&function(e){yi(e,"onDisconnectEvents");var t=ui(e),n=It();Nt(e.onDisconnect_,ge(),(function(r,i){var o=Sr(r,i,e.serverSyncTree_,t);At(n,r,o)}));var r=[];Nt(n,ge(),(function(t,n){r=r.concat(ir(e.serverSyncTree_,t,n));var i=Ci(e,t);xi(e,i)}
2)),e.onDisconnect_=It(),ti(e.eventQueue_,ge(),r)}(e)}function fi(e,t,n){var r=new pe("/.info/"+t),i=ut(n);e.infoData_.updateSnapshot(r,i);var o=ir(e.infoSyncTree_,r,i);ti(e.eventQueue_,r,o)}function di(e){return e.nextWriteId_++}function hi(e,t,n,r,i){yi(e,"set",{path:t.toString(),value:n,priority:r});var o=ui(e),a=ut(n,r),s=sr(e.serverSyncTree_,t),u=Er(a,s,o),c=di(e),l=tr(e.serverSyncTree_,t,u,c,!0);Zr(e.eventQueue_,l),e.server_.put(t.toString(),a.val(!0),(function(n,r){var o="ok"===n;o||k("set at "+t+" failed: "+n);var a=rr(e.serverSyncTree_,c,!o);ti(e.eventQueue_,t,a),bi(e,i,n,r)}));var f=Ci(e,t);xi(e,f),ti(e.eventQueue_,f,[])}function pi(e,t,n){e.server_.onDisconnectCancel(t.toString(),(function(r,i){"ok"===r&&Pt(e.onDisconnect_,t),bi(e,n,r,i)}))}function gi(e,t,n,r){var i=ut(n);e.server_.onDisconnectPut(t.toString(),i.val(!0),(function(n,o){"ok"===n&&At(e.onDisconnect_,t,i),bi(e,r,n,o)}))}function vi(e,t,n){var r;r=".info"===ve(t._path)?or(e.infoSyncTree_,t,n):or(e.serverSyncTree_,t,n),ei(e.eventQueue_,t._path,r)}function mi(e){e.persistentConnection_&&e.persistentConnection_.interrupt(ii)}function yi(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r="";e.persistentConnection_&&(r=e.persistentConnection_.id+":"),x.apply(void 0,Object(a.__spreadArray)([r],Object(a.__read)(t)))}function bi(e,t,n,r){t&&B((function(){if("ok"===n)t(null);else{var e=(n||"error").toUpperCase(),i=e;r&&(i+=": "+r);var o=new Error(i);o.code=e,t(o)}}))}function _i(e,t,n){return sr(e.serverSyncTree_,t,n)||at.EMPTY_NODE}function wi(e,t){if(void 0===t&&(t=e.transactionQueueTree_),t||ki(e,t),jr(t)){var n=Si(e,t);Object(o.assert)(n.length>0,"Sending zero length transaction queue"),n.every((function(e){return 0===e.status}))&&function(e,t,n){for(var r=n.map((function(e){return e.currentWriteId})),i=_i(e,t,r),a=i,s=i.hash(),u=0;u<n.length;u++){var c=n[u];Object(o.assert)(0===c.status,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=1,c.retryCount++;var l=Se(t,c.path);a=a.updateChild(l,c.currentOutputSnapshotRaw)}var f=a.val(!0),d=t;e.server_.put(d.toString(),f,(function(r){yi(e,"transaction put response",{path:d.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=function(t){n[t].status=2,i=i.concat(rr(e.serverSyncTree_,n[t].currentWriteId)),n[t].onComplete&&o.push((function(){return n[t].onComplete(null,!0,n[t].currentOutputSnapshotResolved)})),n[t].unwatcher()},s=0;s<n.length;s++)a(s);ki(e,Tr(e.transactionQueueTree_,t)),wi(e,e.transactionQueueTree_),ti(e.eventQueue_,t,i);for(s=0;s<o.length;s++)B(o[s])}else{if("datastale"===r)for(s=0;s<n.length;s++)3===n[s].status?n[s].status=4:n[s].status=0;else{k("transaction at "+d.toString()+" failed: "+r);for(s=0;s<n.length;s++)n[s].status=4,n[s].abortReason=r}xi(e,t)}}),s)}(e,Mr(t),n)}else Ar(t)&&Pr(t,(function(t){wi(e,t)}))}function xi(e,t){var n=Oi(e,t),r=Mr(n);return function(e,t,n){if(0===t.length)return;for(var r=[],i=[],a=t.filter((function(e){return 0===e.status})).map((function(e){return e.currentWriteId})),s=function(s){var u,c,l=t[s],f=Se(n,l.path),d=!1;if(Object(o.assert)(null!==f,"rerunTransactionsUnderNode_: relativePath should not be null."),4===l.status)d=!0,u=l.abortReason,i=i.concat(rr(e.serverSyncTree_,l.currentWriteId,!0));else if(0===l.status)if(l.retryCount>=25)d=!0,u="maxretry",i=i.concat(rr(e.serverSyncTree_,l.currentWriteId,!0));else{var h=_i(e,l.path,a);l.currentInputSnapshot=h;var p=t[s].update(h.val());if(void 0!==p){qr("transaction failed: Data returned ",p,l.path);var g=ut(p);"object"===typeof p&&null!=p&&Object(o.contains)(p,".priority")||(g=g.updatePriority(h.getPriority()));var v=l.currentWriteId,m=ui(e),y=Er(g,h,m);l.currentOutputSnapshotRaw=g,l.currentOutputSnapshotResolved=y,l.currentWriteId=di(e),a.splice(a.indexOf(v),1),i=(i=i.concat(tr(e.serverSyncTree_,l.path,y,l.currentWriteId,l.applyLocally))).concat(rr(e.serverSyncTree_,v,!0))}else d=!0,u="nodata",i=i.concat(rr(e.serverSyncTree_,l.currentWriteId,!0))}ti(e.eventQueue_,n,i),i=[],d&&(t[s].status=2,c=t[s].unwatcher,setTimeout(c,Math.floor(0)),t[s].onComplete&&("nodata"===u?r.push((function(){return t[s].onComplete(null,!1,t[s].currentInputSnapshot)})):r.push((function(){return t[s].onComplete(new Error(u),!1,null)}))))},u=0;u<t.length;u++)s(u);ki(e,e.transactionQueueTree_);for(u=0;
2u<r.length;u++)B(r[u]);wi(e,e.transactionQueueTree_)}(e,Si(e,n),r),r}function Oi(e,t){var n,r=e.transactionQueueTree_;for(n=ve(t);null!==n&&void 0===jr(r);)r=Tr(r,n),n=ve(t=ye(t));return r}function Si(e,t){var n=[];return Ei(e,t,n),n.sort((function(e,t){return e.order-t.order})),n}function Ei(e,t,n){var r=jr(t);if(r)for(var i=0;i<r.length;i++)n.push(r[i]);Pr(t,(function(t){Ei(e,t,n)}))}function ki(e,t){var n=jr(t);if(n){for(var r=0,i=0;i<n.length;i++)2!==n[i].status&&(n[r]=n[i],r++);n.length=r,Ir(t,n.length>0?n:void 0)}Pr(t,(function(t){ki(e,t)}))}function Ci(e,t){var n=Mr(Oi(e,t)),r=Tr(e.transactionQueueTree_,t);return function(e,t,n){for(var r=n?e:e.parent;null!==r;){if(t(r))return!0;r=r.parent}}(r,(function(t){Ti(e,t)})),Ti(e,r),Nr(r,(function(t){Ti(e,t)})),n}function Ti(e,t){var n=jr(t);if(n){for(var r=[],i=[],a=-1,s=0;s<n.length;s++)3===n[s].status||(1===n[s].status?(Object(o.assert)(a===s-1,"All SENT items should be at beginning of queue."),a=s,n[s].status=3,n[s].abortReason="set"):(Object(o.assert)(0===n[s].status,"Unexpected transaction status in abort"),n[s].unwatcher(),i=i.concat(rr(e.serverSyncTree_,n[s].currentWriteId,!0)),n[s].onComplete&&r.push(n[s].onComplete.bind(null,new Error("set"),!1,null))));-1===a?Ir(t,void 0):n.length=a+1,ti(e.eventQueue_,Mr(t),i);for(s=0;s<r.length;s++)B(r[s])}}var ji=function(e,t){var n=Ii(e),r=n.namespace;"firebase.com"===n.domain&&E(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),r&&"undefined"!==r||"localhost"===n.domain||E("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:")&&k("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 $(n.host,n.secure,r,t,i,"",r!==n.subdomain),path:new pe(n.pathString)}},Ii=function(e){var t="",n="",r="",i="",o="",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 d=e.indexOf("?");-1===d&&(d=e.length),t=e.substring(0,Math.min(f,d)),f<d&&(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,d)));var h=function(e){var t,n,r={};"?"===e.charAt(0)&&(e=e.substring(1));try{for(var i=Object(a.__values)(e.split("&")),o=i.next();!o.done;o=i.next()){var s=o.value;if(0!==s.length){var u=s.split("=");2===u.length?r[decodeURIComponent(u[0])]=decodeURIComponent(u[1]):k("Invalid query segment '"+s+"' in query '"+e+"'")}}}catch(c){t={error:c}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.substring(Math.min(e.length,d)));(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 g=t.indexOf(".");r=t.substring(0,g).toLowerCase(),n=t.substring(g+1),o=r}"ns"in h&&(o=h.ns)}return{host:t,port:c,domain:n,subdomain:r,secure:s,scheme:u,pathString:i,namespace:o}},Ai=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.ref;return"value"===this.eventType?e._path:e.parent._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+":"+Object(o.stringify)(this.snapshot.exportVal())},e}(),Pi=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}(),Ni=function(){function e(e,t){this.snapshotCallback=e,this.cancelCallback=t}return e.prototype.onValue=function(e,t){this.snapshotCallback.call(null,e,t)},e.prototype.onCancel=function(e){return Object(o.assert)(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,e)},Object.defineProperty(e.prototype,"hasCancelCallback",{get:function(){return!!this.cancelCallback}
2,enumerable:!1,configurable:!0}),e.prototype.matches=function(e){return this.snapshotCallback===e.snapshotCallback||this.snapshotCallback.userCallback===e.snapshotCallback.userCallback&&this.snapshotCallback.context===e.snapshotCallback.context},e}(),Mi=function(){function e(e,t){this._repo=e,this._path=t}return e.prototype.cancel=function(){var e=new o.Deferred;return pi(this._repo,this._path,e.wrapCallback((function(){}))),e.promise},e.prototype.remove=function(){Yr("OnDisconnect.remove",this._path);var e=new o.Deferred;return gi(this._repo,this._path,null,e.wrapCallback((function(){}))),e.promise},e.prototype.set=function(e){Yr("OnDisconnect.set",this._path),zr("OnDisconnect.set",e,this._path,!1);var t=new o.Deferred;return gi(this._repo,this._path,e,t.wrapCallback((function(){}))),t.promise},e.prototype.setWithPriority=function(e,t){Yr("OnDisconnect.setWithPriority",this._path),zr("OnDisconnect.setWithPriority",e,this._path,!1),Wr("OnDisconnect.setWithPriority",t,!1);var n=new o.Deferred;return function(e,t,n,r,i){var o=ut(n,r);e.server_.onDisconnectPut(t.toString(),o.val(!0),(function(n,r){"ok"===n&&At(e.onDisconnect_,t,o),bi(0,i,n,r)}))}(this._repo,this._path,e,t,n.wrapCallback((function(){}))),n.promise},e.prototype.update=function(e){Yr("OnDisconnect.update",this._path),Gr("OnDisconnect.update",e,this._path,!1);var t=new o.Deferred;return function(e,t,n,r){if(Object(o.isEmpty)(n))return x("onDisconnect().update() called with empty data.  Don't do anything."),void bi(0,r,"ok",void 0);e.server_.onDisconnectMerge(t.toString(),n,(function(i,o){"ok"===i&&R(n,(function(n,r){var i=ut(r);At(e.onDisconnect_,xe(t,n),i)})),bi(0,r,i,o)}))}(this._repo,this._path,e,t.wrapCallback((function(){}))),t.promise},e}(),Ri=function(){function e(e,t,n,r){this._repo=e,this._path=t,this._queryParams=n,this._orderByCalled=r}return Object.defineProperty(e.prototype,"key",{get:function(){return Oe(this._path)?null:be(this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new Vi(this._repo,this._path)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_queryIdentifier",{get:function(){var e=Ct(this._queryParams),t=N(e);return"{}"===t?"default":t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_queryObject",{get:function(){return Ct(this._queryParams)},enumerable:!1,configurable:!0}),e.prototype.isEqual=function(t){if(!((t=Object(o.getModularInstance)(t))instanceof e))return!1;var n=this._repo===t._repo,r=ke(this._path,t._path),i=this._queryIdentifier===t._queryIdentifier;return n&&r&&i},e.prototype.toJSON=function(){return this.toString()},e.prototype.toString=function(){return this._repo.toString()+function(e){for(var t="",n=e.pieceNum_;n<e.pieces_.length;n++)""!==e.pieces_[n]&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}(this._path)},e}();function Li(e,t){if(!0===e._orderByCalled)throw new Error(t+": You can't combine multiple orderBy calls.")}function Di(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===Ve){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(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==T)throw new Error(r);if("string"!==typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==j)throw new Error(r);if("string"!==typeof n)throw new Error(i)}}else if(e.getIndex()===et){if(null!=t&&!Br(t)||null!=n&&!Br(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(Object(o.assert)(e.getIndex()instanceof ct||e.getIndex()===lt,"unknown index type."),null!=t&&"object"===typeof t||null!=n&&"object"===typeof n)throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}function Fi(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), startAfter(), endAt(), endBefore(), and limit(). Use limitToFirst() or limitToLast() instead.")}var Vi=function(e){function t(t,n){return e.call(this,t,n,new xt,!1)||this}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"parent",{get:function(){var e=we(this._path);return null===e?null:new t(this._repo,e)}
2,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;null!==e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t}(Ri),Ui=function(){function e(e,t,n){this._node=e,this.ref=t,this._index=n}return Object.defineProperty(e.prototype,"priority",{get:function(){return this._node.getPriority().val()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"key",{get:function(){return this.ref.key},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._node.numChildren()},enumerable:!1,configurable:!0}),e.prototype.child=function(t){var n=new pe(t),r=qi(this.ref,t);return new e(this._node.getChild(n),r,et)},e.prototype.exists=function(){return!this._node.isEmpty()},e.prototype.exportVal=function(){return this._node.val(!0)},e.prototype.forEach=function(t){var n=this;return!this._node.isLeafNode()&&!!this._node.forEachChild(this._index,(function(r,i){return t(new e(i,qi(n.ref,r),et))}))},e.prototype.hasChild=function(e){var t=new pe(e);return!this._node.getChild(t).isEmpty()},e.prototype.hasChildren=function(){return!this._node.isLeafNode()&&!this._node.isEmpty()},e.prototype.toJSON=function(){return this.exportVal()},e.prototype.val=function(){return this._node.val()},e}();function Bi(e,t){return(e=Object(o.getModularInstance)(e))._checkNotDeleted("ref"),void 0!==t?qi(e._root,t):e._root}function zi(e,t){(e=Object(o.getModularInstance)(e))._checkNotDeleted("refFromURL");var n=ji(t,e._repo.repoInfo_.nodeAdmin);$r("refFromURL",n);var r=n.repoInfo;return e._repo.repoInfo_.isCustomHost()||r.host===e._repo.repoInfo_.host||E("refFromURL: Host name does not match the current database: (found "+r.host+" but expected "+e._repo.repoInfo_.host+")"),Bi(e,n.path.toString())}function qi(e,t){var n,r,i,a;return null===ve((e=Object(o.getModularInstance)(e))._path)?(n="child",r="path",a=!1,(i=t)&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),Xr(n,r,i,a)):Xr("child","path",t,!1),new Vi(e._repo,xe(e._path,t))}function Gi(e,t){e=Object(o.getModularInstance)(e),Yr("push",e._path),zr("push",t,e._path,!0);var n,r=si(e._repo),i=dt(r),a=qi(e,i),s=qi(e,i);return n=null!=t?Hi(s,t).then((function(){return s})):Promise.resolve(s),a.then=n.then.bind(n),a.catch=n.then.bind(n,void 0),a}function Wi(e){return Yr("remove",e._path),Hi(e,null)}function Hi(e,t){e=Object(o.getModularInstance)(e),Yr("set",e._path),zr("set",t,e._path,!1);var n=new o.Deferred;return hi(e._repo,e._path,t,null,n.wrapCallback((function(){}))),n.promise}function Ki(e,t){e=Object(o.getModularInstance)(e),Yr("setPriority",e._path),Wr("setPriority",t,!1);var n=new o.Deferred;return hi(e._repo,xe(e._path,".priority"),t,null,n.wrapCallback((function(){}))),n.promise}function Xi(e,t,n){if(Yr("setWithPriority",e._path),zr("setWithPriority",t,e._path,!1),Wr("setWithPriority",n,!1),".length"===e.key||".keys"===e.key)throw"setWithPriority failed: "+e.key+" is a read-only object.";var r=new o.Deferred;return hi(e._repo,e._path,t,n,r.wrapCallback((function(){}))),r.promise}function Yi(e,t){Gr("update",t,e._path,!1);var n=new o.Deferred;return function(e,t,n,r){yi(e,"update",{path:t.toString(),value:n});var i=!0,o=ui(e),a={};if(R(n,(function(n,r){i=!1,a[n]=Sr(xe(t,n),ut(r),e.serverSyncTree_,o)})),i)x("update() called with empty data.  Don't do anything."),bi(0,r,"ok",void 0);else{var s=di(e),u=nr(e.serverSyncTree_,t,a,s);Zr(e.eventQueue_,u),e.server_.merge(t.toString(),n,(function(n,i){var o="ok"===n;o||k("update at "+t+" failed: "+n);var a=rr(e.serverSyncTree_,s,!o),u=a.length>0?xi(e,t):t;ti(e.eventQueue_,u,a),bi(0,r,n,i)})),R(n,(function(n){var r=Ci(e,xe(t,n));xi(e,r)})),ti(e.eventQueue_,t,[])}}(e._repo,e._path,t,n.wrapCallback((function(){}))),n.promise}function $i(e){return function(e,t){var n=ur(e.serverSyncTree_,t);return null!=n?Promise.resolve(n):e.server_.get(t).then((function(n){var r=ut(n).withIndex(t._queryParams.getIndex()),i=ir(e.serverSyncTree_,t._path,r);return ei(e.eventQueue_,t._path,i),Promise.resolve(r)}),(function(n){return yi(e,"get for query "+Object(o.stringify)(t)+" failed: "+n),Promise.reject(new Error(n))}))}((e=Object(o.getModularInstance)(e))._repo,e).then((function(t){return new Ui(t,new Vi(e._repo,e._path),e._queryParams.getIndex())}))}var Qi=function(){function e(e){this.callbackContext=e}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t._queryParams.getIndex();return new Ai("value",this,new Ui(e.snapshotNode,new Vi(t._repo,t._path),n))},e.prototype.getEventRunner=function(e){var t=this;return"cancel"===e.getEventType()?function(){return t.callbackContext.onCancel(e.error)}:function(){return t.callbackContext.onValue(e.snapshot,null)}},e.prototype.createCancelEvent=function(e,t){return this.callbackContext.hasCancelCallback?new Pi(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callbackContext||!this.callbackContext||t.callbackContext.matches(this.callbackContext))},e.prototype.hasAnyCallback=function(){return null!==this.callbackContext},e}(),Ji=function(){function e(e,t){this.eventType=e,this.callbackContext=t}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,this.eventType===t},e.prototype.createCancelEvent=function(e,t){return this.callbackContext.hasCancelCallback?new Pi(this,e,t):null},e.prototype.createEvent=function(e,t){Object(o.assert)(null!=e.childName,"Child events should have a childName.");var n=qi(new Vi(t._repo,t._path),e.childName),r=t._queryParams.getIndex();return new Ai(e.type,this,new Ui(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this;return"cancel"===e.getEventType()?function(){return t.callbackContext.onCancel(e.error)}:function(){return t.callbackContext.onValue(e.snapshot,e.prevName)}},e.prototype.matches=function(t){return t instanceof e&&(this.eventType===t.eventType&&(!this.callbackContext||!t.callbackContext||this.callbackContext.matches(t.callbackContext)))},e.prototype.hasAnyCallback=function(){return!!this.callbackContext},e}();function Zi(e,t,n,r,i){var o;if("object"===typeof r&&(o=void 0,i=r),"function"===typeof r&&(o=r),i&&i.onlyOnce){var a=n,s=function(t,n){vi(e._repo,e,c),a(t,n)};
2s.userCallback=n.userCallback,s.context=n.context,n=s}var u=new Ni(n,o||void 0),c="value"===t?new Qi(u):new Ji(t,u);return function(e,t,n){var r;r=".info"===ve(t._path)?ar(e.infoSyncTree_,t,n):ar(e.serverSyncTree_,t,n),ei(e.eventQueue_,t._path,r)}(e._repo,e,c),function(){return vi(e._repo,e,c)}}function eo(e,t,n,r){return Zi(e,"value",t,n,r)}function to(e,t,n,r){return Zi(e,"child_added",t,n,r)}function no(e,t,n,r){return Zi(e,"child_changed",t,n,r)}function ro(e,t,n,r){return Zi(e,"child_moved",t,n,r)}function io(e,t,n,r){return Zi(e,"child_removed",t,n,r)}function oo(e,t,n){var r=null,i=n?new Ni(n):null;"value"===t?r=new Qi(i):t&&(r=new Ji(t,i)),vi(e._repo,e,r)}var ao=function(){},so=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){zr("endAt",this._value,e._path,!0);var t=St(e._queryParams,this._value,this._key);if(Fi(t),Di(t),e._queryParams.hasEnd())throw new Error("endAt: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Ri(e._repo,e._path,t,e._orderByCalled)},t}(ao);function uo(e,t){return Kr("endAt","key",t,!0),new so(e,t)}var co=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){zr("endBefore",this._value,e._path,!1);var t=function(e,t,n){var r;return e.index_===Ve?("string"===typeof t&&(t=pt(t)),r=St(e,t,n)):r=St(e,t,null==n?T:pt(n)),r.endBeforeSet_=!0,r}(e._queryParams,this._value,this._key);if(Fi(t),Di(t),e._queryParams.hasEnd())throw new Error("endBefore: Starting point was already set (by another call to endAt, endBefore or equalTo).");return new Ri(e._repo,e._path,t,e._orderByCalled)},t}(ao);function lo(e,t){return Kr("endBefore","key",t,!0),new co(e,t)}var fo=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){zr("startAt",this._value,e._path,!0);var t=Ot(e._queryParams,this._value,this._key);if(Fi(t),Di(t),e._queryParams.hasStart())throw new Error("startAt: Starting point was already set (by another call to startAt, startBefore or equalTo).");return new Ri(e._repo,e._path,t,e._orderByCalled)},t}(ao);function ho(e,t){return void 0===e&&(e=null),Kr("startAt","key",t,!0),new fo(e,t)}var po=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){zr("startAfter",this._value,e._path,!1);var t=function(e,t,n){var r;e.index_===Ve?("string"===typeof t&&(t=ht(t)),r=Ot(e,t,n)):r=Ot(e,t,null==n?j:ht(n));return r.startAfterSet_=!0,r}(e._queryParams,this._value,this._key);if(Fi(t),Di(t),e._queryParams.hasStart())throw new Error("startAfter: Starting point was already set (by another call to startAt, startAfter, or equalTo).");return new Ri(e._repo,e._path,t,e._orderByCalled)},t}(ao);function go(e,t){return Kr("startAfter","key",t,!0),new po(e,t)}var vo=function(e){function t(t){var n=e.call(this)||this;return n._limit=t,n}return Object(a.__extends)(t,e),t.prototype._apply=function(e){if(e._queryParams.hasLimit())throw new Error("limitToFirst: Limit was already set (by another call to limitToFirst or limitToLast).");return new Ri(e._repo,e._path,function(e,t){var n=e.copy();return n.limitSet_=!0,n.limit_=t,n.viewFrom_="l",n}(e._queryParams,this._limit),e._orderByCalled)},t}(ao);function mo(e){if("number"!==typeof e||Math.floor(e)!==e||e<=0)throw new Error("limitToFirst: First argument must be a positive integer.");return new vo(e)}var yo=function(e){function t(t){var n=e.call(this)||this;return n._limit=t,n}return Object(a.__extends)(t,e),t.prototype._apply=function(e){if(e._queryParams.hasLimit())throw new Error("limitToLast: Limit was already set (by another call to limitToFirst or limitToLast).");return new Ri(e._repo,e._path,function(e,t){var n=e.copy();return n.limitSet_=!0,n.limit_=t,n.viewFrom_="r",n}(e._queryParams,this._limit),e._orderByCalled)},t}(ao);function bo(e){if("number"!==typeof e||Math.floor(e)!==e||e<=0)throw new Error("limitToLast: First argument must be a positive integer.");return new yo(e)}var _o=function(e){function t(t){var n=e.call(this)||this;return n._path=t,n}return Object(a.__extends)(t,e),t.prototype._apply=function(e){Li(e,"orderByChild");var t=new pe(this._path);if(Oe(t))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");var n=new ct(t),r=Et(e._queryParams,n);return Di(r),new Ri(e._repo,e._path,r,!0)},t}(ao);function wo(e){if("$key"===e)throw new Error('orderByChild: "$key" is invali
2d.  Use orderByKey() instead.');if("$priority"===e)throw new Error('orderByChild: "$priority" is invalid.  Use orderByPriority() instead.');if("$value"===e)throw new Error('orderByChild: "$value" is invalid.  Use orderByValue() instead.');return Xr("orderByChild","path",e,!1),new _o(e)}var xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype._apply=function(e){Li(e,"orderByKey");var t=Et(e._queryParams,Ve);return Di(t),new Ri(e._repo,e._path,t,!0)},t}(ao);function Oo(){return new xo}var So=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype._apply=function(e){Li(e,"orderByPriority");var t=Et(e._queryParams,et);return Di(t),new Ri(e._repo,e._path,t,!0)},t}(ao);function Eo(){return new So}var ko=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype._apply=function(e){Li(e,"orderByValue");var t=Et(e._queryParams,lt);return Di(t),new Ri(e._repo,e._path,t,!0)},t}(ao);function Co(){return new ko}var To=function(e){function t(t,n){var r=e.call(this)||this;return r._value=t,r._key=n,r}return Object(a.__extends)(t,e),t.prototype._apply=function(e){if(zr("equalTo",this._value,e._path,!1),e._queryParams.hasStart())throw new Error("equalTo: Starting point was already set (by another call to startAt/startAfter or equalTo).");if(e._queryParams.hasEnd())throw new Error("equalTo: Ending point was already set (by another call to endAt/endBefore or equalTo).");return new so(this._value,this._key)._apply(new fo(this._value,this._key)._apply(e))},t}(ao);function jo(e,t){return Kr("equalTo","key",t,!0),new To(e,t)}function Io(e){for(var t,n,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var s=Object(o.getModularInstance)(e);try{for(var u=Object(a.__values)(r),c=u.next();!c.done;c=u.next()){var l=c.value;s=l._apply(s)}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return s}!function(e){Object(o.assert)(!Mn,"__referenceConstructor has already been defined"),Mn=e}(Vi),function(e){Object(o.assert)(!Bn,"__referenceConstructor has already been defined"),Bn=e}(Vi);var Ao={},Po=!1;function No(t,n,r,i,o){var a=i||t.options.databaseURL;void 0===a&&(t.options.projectId||E("Can't determine Firebase Database URL. Be sure to include  a Project ID when calling firebase.initializeApp()."),x("Using default host for project ",t.options.projectId),a=t.options.projectId+"-default-rtdb.firebaseio.com");var s,u=ji(a,o),c=u.repoInfo,l=void 0;"undefined"!==typeof e&&(l=Object({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FIREBASE_API_KEY:"AIzaSyBgdT8XzqGwSxqgBM6T6EmrO2tRu3ZWe_Q",REACT_APP_GOOGLE_MAPS_API_KEY:"AIzaSyC0Tw2k6wiZLlFXHVnH3qXuX_avADoD3pU"}).FIREBASE_DATABASE_EMULATOR_HOST),l?(s=!0,a="http://"+l+"?ns="+c.namespace,c=(u=ji(a,o)).repoInfo):s=!u.repoInfo.secure;var f=o&&s?new W(W.OWNER):new G(t.name,t.options,n);$r("Invalid Firebase Database URL",u),Oe(u.path)||E("Database URL must point to the root of a Firebase Database (not including a child path).");var d=function(e,t,n,r){var i=Ao[t.name];i||(i={},Ao[t.name]=i);var o=i[e.toURLString()];o&&E("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call.");return o=new oi(e,Po,n,r),i[e.toURLString()]=o,o}(c,t,f,new q(t.name,r));return new Mo(d,t)}var Mo=function(){function e(e,t){this._repoInternal=e,this.app=t,this.type="database",this._instanceStarted=!1}return Object.defineProperty(e.prototype,"_repo",{get:function(){return this._instanceStarted||(ai(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"_root",{get:function(){return this._rootInternal||(this._rootInternal=new Vi(this._repo,ge())),this._rootInternal},enumerable:!1,configurable:!0}),e.prototype._delete=function(){return this._checkNotDeleted("delete"),function(e,t){var n=Ao[t];n&&n[e.key]===e||E("Database "+t+"("+e.repoInfo_+") has already been deleted."),mi(e),delete n[e.key]}(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null,Promise.resolve()},e.prototype._checkNotDeleted=function(e){null===this._rootInternal&&E("Cannot call "+e+" on a deleted database.")},e}();function Ro(e,t,n,r){void 0===r&&(r={}),(e=Object(o.getModularInstance)(e))._checkNotDeleted("useEmulator"),e._instanceStarted&&E("Cannot call useEmulator() after instance has already been initialized.");var i=e._repoInternal,a=void 0;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&E('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),a=new W(W.OWNER);else if(r.mockUserToken){var s=Object(o.createMockUserToken)(r.mockUserToken,e.app.options.projectId);a=new W(s)}!function(e,t,n,r){e.repoInfo_=new $(t+":"+n,!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams),r&&(e.authTokenProvider_=r)}(i,t,n,a)}function Lo(e){(e=Object(o.getModularInstance)(e))._checkNotDeleted("goOffline"),mi(e._repo)}function Do(e){var t;(e=Object(o.getModularInstance)(e))._checkNotDeleted("goOnline"),(t=e._repo).persistentConnection_&&t.persistentConnection_.resume(ii)}var Fo={".sv":"timestamp"};var Vo=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}();function Uo(e,t,n){var r;if(e=Object(o.getModularInstance)(e),Yr("Reference.transaction",e._path),".length"===e.key||".keys"===e.key)throw"Reference.transaction failed: "+e.key+" is a read-only object.";var i=null===(r=null===n||void 0===n?void 0:n.applyLocally)||void 0===r||r,a=new o.Deferred,s=eo(e,(function(){}));return function(e,t,n,r,i,a){yi(e,"transaction on "+t);var s={path:t,update:n,onComplete:r,status:null,order:v(),applyLocally:a,retryCount:0,unwatcher:i,abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=_i(e,t,void 0);s.currentInputSnapshot=u;var c=s.update(u.val());if(void 0===c)s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete&&s.onComplete(null,!1,s.currentInputSnapshot);else{qr("transaction failed: Data returned ",c,s.path),s.status=0;var l=Tr(e.transactionQueueTree_,t),f=jr(l)||[];f.push(s),Ir(l,f);var d=void 0;"object"===typeof c&&null!==c&&Object(o.contains)(c,".priority")?(d=Object(o.safeGet)(c,".priority"),Object(o.assert)(Br(d),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.")):d=(sr(e.serverSyncTree_,t)||at.EMPTY_NODE).getPriority().val();var h=ui(e),p=ut(c,d),g=Er(p,u,h);s.currentOutputSnapshotRaw=p,s.currentOutputSnapshotResolved=g,s.currentWriteId=di(e);var m=tr(e.serverSyncTree_,t,g,s.currentWriteId,s.applyLocally);ti(e.eventQueue_,t,m),wi(e,e.transactionQueueTree_)}}(e._repo,e._path,t,(function(t,n,r){var i=null;t?a.reject(t):(i=new Ui(r,new Vi(e._repo,e._path),et),a.resolve(new Vo(n,i)))}),s,i),a.promise}var Bo=function(){function e(e){this._delegate=e}return e.prototype.cancel=function(e){Object(o.validateArgCount)("OnDisconnect.cancel",0,1,arguments.length),Object(o.validateCallback)("O
2nDisconnect.cancel","onComplete",e,!0);var t=this._delegate.cancel();return e&&t.then((function(){return e(null)}),(function(t){return e(t)})),t},e.prototype.remove=function(e){Object(o.validateArgCount)("OnDisconnect.remove",0,1,arguments.length),Object(o.validateCallback)("OnDisconnect.remove","onComplete",e,!0);var t=this._delegate.remove();return e&&t.then((function(){return e(null)}),(function(t){return e(t)})),t},e.prototype.set=function(e,t){Object(o.validateArgCount)("OnDisconnect.set",1,2,arguments.length),Object(o.validateCallback)("OnDisconnect.set","onComplete",t,!0);var n=this._delegate.set(e);return t&&n.then((function(){return t(null)}),(function(e){return t(e)})),n},e.prototype.setWithPriority=function(e,t,n){Object(o.validateArgCount)("OnDisconnect.setWithPriority",2,3,arguments.length),Object(o.validateCallback)("OnDisconnect.setWithPriority","onComplete",n,!0);var r=this._delegate.setWithPriority(e,t);return n&&r.then((function(){return n(null)}),(function(e){return n(e)})),r},e.prototype.update=function(e,t){if(Object(o.validateArgCount)("OnDisconnect.update",1,2,arguments.length),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,k("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.")}Object(o.validateCallback)("OnDisconnect.update","onComplete",t,!0);var i=this._delegate.update(e);return t&&i.then((function(){return t(null)}),(function(e){return t(e)})),i},e}(),zo=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return Object(o.validateArgCount)("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),qo=function(){function e(e,t){this._database=e,this._delegate=t}return e.prototype.val=function(){return Object(o.validateArgCount)("DataSnapshot.val",0,0,arguments.length),this._delegate.val()},e.prototype.exportVal=function(){return Object(o.validateArgCount)("DataSnapshot.exportVal",0,0,arguments.length),this._delegate.exportVal()},e.prototype.toJSON=function(){return Object(o.validateArgCount)("DataSnapshot.toJSON",0,1,arguments.length),this._delegate.toJSON()},e.prototype.exists=function(){return Object(o.validateArgCount)("DataSnapshot.exists",0,0,arguments.length),this._delegate.exists()},e.prototype.child=function(t){return Object(o.validateArgCount)("DataSnapshot.child",0,1,arguments.length),t=String(t),Xr("DataSnapshot.child","path",t,!1),new e(this._database,this._delegate.child(t))},e.prototype.hasChild=function(e){return Object(o.validateArgCount)("DataSnapshot.hasChild",1,1,arguments.length),Xr("DataSnapshot.hasChild","path",e,!1),this._delegate.hasChild(e)},e.prototype.getPriority=function(){return Object(o.validateArgCount)("DataSnapshot.getPriority",0,0,arguments.length),this._delegate.priority},e.prototype.forEach=function(t){var n=this;return Object(o.validateArgCount)("DataSnapshot.forEach",1,1,arguments.length),Object(o.validateCallback)("DataSnapshot.forEach","action",t,!1),this._delegate.forEach((function(r){return t(new e(n._database,r))}))},e.prototype.hasChildren=function(){return Object(o.validateArgCount)("DataSnapshot.hasChildren",0,0,arguments.length),this._delegate.hasChildren()},Object.defineProperty(e.prototype,"key",{get:function(){return this._delegate.key},enumerable:!1,configurable:!0}),e.prototype.numChildren=function(){return Object(o.validateArgCount)("DataSnapshot.numChildren",0,0,arguments.length),this._delegate.size},e.prototype.getRef=function(){return Object(o.validateArgCount)("DataSnapshot.ref",0,0,arguments.length),new Wo(this._database,this._delegate.ref)},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!1,configurable:!0}),e}(),Go=function(){function e(e,t){this.database=e,this._delegate=t}return e.prototype.on=function(t,n,r,i){var a,s=this;Object(o.validateArgCount)("Query.on",2,4,arguments.length),Object(o.validateCallback)("Query.on","callback",n,!1);var u=e.getCancelAndContextArgs_("Query.on",r,i),c=function(e,t){n.call(u.context,new qo(s.database,e),t)};c.userCallback=n,c.context=u.context;var l=null===(a=u.cancel)||void 0===a?void 0:a.bind(u.context);switch(t){case"value":return eo(this._delegate,c,l),n;case"child_added":return to(this._delegate,c,l),n;case"child_removed":return io(this._delegate,c,l),n;case"child_changed":return no(this._delegate,c,l),n;case"child_moved":return ro(this._delegate,c,l),n;default:throw new Error(Object(o.errorPrefix)("Query.on","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},e.prototype.off=function(e,t,n){if(Object(o.validateArgCount)("Query.off",0,3,arguments.length),Hr("Query.off",e,!0),Object(o.validateCallback)("Query.off","callback",t,!0),Object(o.validateContextObject)("Query.off","context",n,!0),t){var r=function(){};r.userCallback=t,r.context=n,oo(this._delegate,e,r)}else oo(this._delegate,e)},e.prototype.get=function(){var e=this;return $i(this._delegate).then((function(t){return new qo(e.database,t)}))},e.prototype.once=function(t,n,r,i){var a=this;Object(o.validateArgCount)("Query.once",1,4,arguments.length),Object(o.validateCallback)("Query.once","callback",n,!0);var s=e.getCancelAndContextArgs_("Query.once",r,i),u=new o.Deferred,c=function(e,t){var r=new qo(a.database,e);n&&n.call(s.context,r,t),u.resolve(r)};c.userCallback=n,c.context=s.context;var l=function(e){s.cancel&&s.cancel.call(s.context,e),u.reject(e)};switch(t){case"value":eo(this._delegate,c,l,{onlyOnce:!0});break;case"child_added":to(this._delegate,c,l,{onlyOnce:!0});break;case"child_removed":io(this._delegate,c,l,{onlyOnce:!0});break;case"child_changed":no(this._delegate,c,l,{onlyOnce:!0});break;case"child_moved":ro(this._delegate,c,l,{onlyOnce:!0});break;default:throw new Error(Object(o.errorPrefix)("Query.once","eventType")+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}return u.promise},e.prototype.limitToFirst=function(t){return Object(o.validateArgCount)("Query.limitToFirst",1,1,arguments.length),new e(this.database,Io(this._delegate,mo(t)))},e.prototype.limitToLast=function(t){return Object(o.validateArgCount)("Query.limitToLast",1,1,arguments.length),new e(this.database,Io(this._delegate,bo(t)))},e.prototype.orderByChild=function(t){return Object(o.validateArgCount)("Query.orderByChild",1,1,arguments.length),new e(this.database,Io(this._delegate,wo(t)))},e.prototype.orderByKey=function(){return Object(o.validateArgCount)("Query.orderByKey",0,0,arguments.length),new e(this.database,Io(this._delegate,Oo()))},e.prototype.orderByPriority=function(){return Object(o.validateArgCount)("Query.orderByPriority",0,0,arguments.length),new e(this.database,Io(this._delegate,Eo()))},e.prototype.orderByValue=function(){return Object(o.validateArgCount)("Query.orderByValue",0,0,arguments.length),new e(this.database,Io(this._delegate,Co()))},e.prototype.startAt=function(t,n){return void 0===t&&(t=null),Object(o.validateArgCount)("Query.startAt",0,2,arguments.length),new e(this.database,Io(this._delegate,ho(t,n)))},e.prototype.startAfter=function(t,n){return void 0===t&&(t=null),Object(o.validateArgCount)("Query.startAfter",0,2,arguments.length),new e(this.database,Io(this._delegate,go(t,n)))},e.prototype.endAt=function(t,n){return void 0===t&&(t=null),Object(o.validateArgCount)("Query.endAt",0,2,arguments.length),new e(this.database,Io(this._delegate,uo(t,n)))},e.prototype.endBefore=function(t,n){return void 0===t&&(t=null),Object(o.validateArgCount)("Query.endBefore",0,2,arguments.length),new e(this.database,Io(this._delegate,lo(t,n)))},e.prototype.equalTo=function(t,n){return Object(o.validateArgCount)("Query.equalTo",1,2,arguments.length),new e(this.database,Io(this._delegate,jo(t,n)))},e.prototype.toString=function(){return Object(o.validateArgCount)("Query.toString",0,0,arguments.length),this._delegate.toString()},e.prototype.toJSON=function(){return Object(o.validateArgCount)("Query.toJSON",0,1,arguments.length),this._delegate.toJSON()},e.prototype.isEqual=function(t){if(Object(o.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)}return this._delegate.isEqual(t._delegate)},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:void 0,context:void 0};if(t&&n)r.cancel=t,Object(o.validateCallback)(e,"cancel",r.cancel,!0),r.context=n,Object(o.validateContextObject)(e,"context",r.context,!0);else if(t)if("object"===typeof t&&null!==t)r.context=t;else{if("function"!==typeof t)throw new Error(Object(o.errorPrefix)(e,"cancelOrContext")+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return new Wo(this.database,new Vi(this._delegate._repo,this._delegate._path))}
2,enumerable:!1,configurable:!0}),e}(),Wo=function(e){function t(t,n){var r=e.call(this,t,new Ri(n._repo,n._path,new xt,!1))||this;return r.database=t,r._delegate=n,r}return Object(a.__extends)(t,e),t.prototype.getKey=function(){return Object(o.validateArgCount)("Reference.key",0,0,arguments.length),this._delegate.key},t.prototype.child=function(e){return Object(o.validateArgCount)("Reference.child",1,1,arguments.length),"number"===typeof e&&(e=String(e)),new t(this.database,qi(this._delegate,e))},t.prototype.getParent=function(){Object(o.validateArgCount)("Reference.parent",0,0,arguments.length);var e=this._delegate.parent;return e?new t(this.database,e):null},t.prototype.getRoot=function(){return Object(o.validateArgCount)("Reference.root",0,0,arguments.length),new t(this.database,this._delegate.root)},t.prototype.set=function(e,t){Object(o.validateArgCount)("Reference.set",1,2,arguments.length),Object(o.validateCallback)("Reference.set","onComplete",t,!0);var n=Hi(this._delegate,e);return t&&n.then((function(){return t(null)}),(function(e){return t(e)})),n},t.prototype.update=function(e,t){if(Object(o.validateArgCount)("Reference.update",1,2,arguments.length),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,k("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.")}Yr("Reference.update",this._delegate._path),Object(o.validateCallback)("Reference.update","onComplete",t,!0);var i=Yi(this._delegate,e);return t&&i.then((function(){return t(null)}),(function(e){return t(e)})),i},t.prototype.setWithPriority=function(e,t,n){Object(o.validateArgCount)("Reference.setWithPriority",2,3,arguments.length),Object(o.validateCallback)("Reference.setWithPriority","onComplete",n,!0);var r=Xi(this._delegate,e,t);return n&&r.then((function(){return n(null)}),(function(e){return n(e)})),r},t.prototype.remove=function(e){Object(o.validateArgCount)("Reference.remove",0,1,arguments.length),Object(o.validateCallback)("Reference.remove","onComplete",e,!0);var t=Wi(this._delegate);return e&&t.then((function(){return e(null)}),(function(t){return e(t)})),t},t.prototype.transaction=function(e,t,n){var r=this;Object(o.validateArgCount)("Reference.transaction",1,3,arguments.length),Object(o.validateCallback)("Reference.transaction","transactionUpdate",e,!1),Object(o.validateCallback)("Reference.transaction","onComplete",t,!0),Qr("Reference.transaction","applyLocally",n,!0);var i=Uo(this._delegate,e,{applyLocally:n}).then((function(e){return new zo(e.committed,new qo(r.database,e.snapshot))}));return t&&i.then((function(e){return t(null,e.committed,e.snapshot)}),(function(e){return t(e,!1,null)})),i},t.prototype.setPriority=function(e,t){Object(o.validateArgCount)("Reference.setPriority",1,2,arguments.length),Object(o.validateCallback)("Reference.setPriority","onComplete",t,!0);var n=Ki(this._delegate,e);return t&&n.then((function(){return t(null)}),(function(e){return t(e)})),n},t.prototype.push=function(e,n){var r=this;Object(o.validateArgCount)("Reference.push",0,2,arguments.length),Object(o.validateCallback)("Reference.push","onComplete",n,!0);var i=Gi(this._delegate,e),a=i.then((function(e){return new t(r.database,e)}));n&&a.then((function(){return n(null)}),(function(e){return n(e)}));var s=new t(this.database,i);return s.then=a.then.bind(a),s.catch=a.catch.bind(a,void 0),s},t.prototype.onDisconnect=function(){return Yr("Reference.onDisconnect",this._delegate._path),new Bo(new Mi(this._delegate._repo,this._delegate._path))},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}(Go),Ho=function(){function e(e,t){var n=this;this._delegate=e,this.app=t,this.INTERNAL={delete:function(){return n._delegate._delete()}}}return e.prototype.useEmulator=function(e,t,n){void 0===n&&(n={}),Ro(this._delegate,e,t,n)},e.prototype.ref=function(e){if(Object(o.validateArgCount)("database.ref",0,1,arguments.length),e instanceof Wo){var t=zi(this._delegate,e.toString());return new Wo(this,t)}t=Bi(this._delegate,e);return new Wo(this,t)},e.prototype.refFromURL=function(e){var t="database.refFromURL";Object(o.validateArgCount)(t,1,1,arguments.length);var n=zi(this._delegate,e);return new Wo(this,n)},e.prototype.goOffline=function(){return Object(o.validateArgCount)("database.goOffline",0,0,arguments.length),Lo(this._delegate)},e.prototype.goOnline=function(){return Object(o.validateArgCount)("database.goOnline",0,0,arguments.length),Do(this._delegate)},e.ServerValue={TIMESTAMP:Fo,increment:function(e){return function(e){return{".sv":{increment:e}}}(e)}},e}();var Ko=Object.freeze({__proto__:null,forceLongPolling:function(){ue.forceDisallow(),oe.forceAllow()},forceWebSockets:function(){oe.forceDisallow()},isWebSocketsAvailable:function(){return ue.isAvailable()},setSecurityDebugCallback:function(e,t){e._delegate._repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){!function(e,t){if(void 0===t&&(t=!1),"undefined"!==typeof console){var n;t?(e.statsListener_||(e.statsListener_=new Rt(e.stats_)),n=e.statsListener_.get()):n=e.stats_.get();var r=Object.keys(n).reduce((function(e,t){return Math.max(t.length,e)}),0);R(n,(function(e,t){for(var n=e,i=e.length;i<r+2;i++)n+=" ";console.log(n+t)}))}}(e._delegate._repo,t)},statsIncrementCounter:function(e,t){!function(e,t){var n,r;e.stats_.incrementCounter(t),n=e.statsReporter_,r=t,n.statsToReport_[r]=!0}(e._delegate._repo,t)},dataUpdateCount:function(e){return e._delegate._repo.dataUpdateCount},interceptServerData:function(e,t){return function(e,t){e.interceptServerDataCallback_=t}(e._delegate._repo,t)},initStandalone:function(e){var t=e.app,n=e.url,r=e.version,o=e.customAuthImpl,a=e.namespace,s=e.nodeAdmin,u=void 0!==s&&s;c(r);var l=new i.Provider("auth-internal",new i.ComponentContainer("database-standalone"));return l.setComponent(new i.Component("auth-internal",(function(){return o}
2),"PRIVATE")),{instance:new Ho(No(t,l,void 0,n,u),t),namespace:a}}}),Xo=Re;Re.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},Re.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var Yo=le,$o=$,Qo=Object.freeze({__proto__:null,DataConnection:Xo,RealTimeConnection:Yo,hijackHash:function(e){var t=Re.prototype.put;return Re.prototype.put=function(n,r,i,o){void 0!==o&&(o=e()),t.call(this,n,r,i,o)},function(){Re.prototype.put=t}},ConnectionTarget:$o,queryIdentifier:function(e){return e._delegate._queryIdentifier},forceRestClient:function(e){!function(e){Po=e}(e)}}),Jo=Ho.ServerValue;!function(e){c(e.SDK_VERSION);var n=e.INTERNAL.registerComponent(new i.Component("database",(function(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),o=e.getProvider("app-check-internal");return new Ho(No(r,i,o,n),r)}),"PUBLIC").setServiceProps({Reference:Wo,Query:Go,Database:Ho,DataSnapshot:qo,enableLogging:w,INTERNAL:Ko,ServerValue:Jo,TEST_ACCESS:Qo}).setMultipleInstances(!0));e.registerVersion("@firebase/database","0.10.4"),Object(o.isNodeSdk)()&&(t.exports=n)}(r.default)}).call(this,n(128),n(165)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(12),i=n(24),o=n(2),a=n(3),s=n(23);function u(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}var c,l=u(r),f=((c={})["already-activated"]="You are trying to activate AppCheck for FirebaseApp {$appName}, while it is already activated. AppCheck can only be activated once.",c["use-before-activation"]="AppCheck is being used before activate() is called for FirebaseApp {$appName}. Please make sure you call activate() before instantiating other Firebase services.",c["fetch-network-error"]="Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.",c["fetch-parse-error"]="Fetch client could not parse response. Original error: {$originalErrorMessage}.",c["fetch-status-error"]="Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.",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["recaptcha-error"]="ReCAPTCHA error.",c),d=new a.ErrorFactory("appCheck","AppCheck",f),h=new Map,p={activated:!1,tokenListeners:[]},g={enabled:!1};function v(e){return h.get(e)||p}function m(e,t){h.set(e,t)}function y(){return g}function b(){return self.grecaptcha}function _(e){if(!v(e).activated)throw d.create("use-before-activation",{appName:e.name})}var w="https://www.google.com/recaptcha/api.js";function x(e,t){var n=v(e),r=new a.Deferred;m(e,o.__assign(o.__assign({},n),{reCAPTCHAState:{initialized:r}}));var i="fire_app_check_"+e.name,s=document.createElement("div");s.id=i,s.style.display="none",document.body.appendChild(s);var u=b();return u?u.ready((function(){S(e,t,u,i),r.resolve(u)})):function(e){var t=document.createElement("script");t.src=""+w,t.onload=e,document.head.appendChild(t)}((function(){var n=b();if(!n)throw new Error("no recaptcha");n.ready((function(){S(e,t,n,i),r.resolve(n)}))})),r.promise}function O(e){return o.__awaiter(this,void 0,void 0,(function(){var t;return o.__generator(this,(function(n){switch(n.label){case 0:return _(e),[4,v(e).reCAPTCHAState.initialized.promise];case 1:return t=n.sent(),[2,new Promise((function(n,r){var i=v(e).reCAPTCHAState;t.ready((function(){n(t.execute(i.widgetId,{action:"fire_app_check"}))}))}))]}}))}))}function S(e,t,n,r){var i=n.render(r,{sitekey:t,size:"invisible"}),a=v(e);m(e,o.__assign(o.__assign({},a),{reCAPTCHAState:o.__assign(o.__assign({},a.reCAPTCHAState),{widgetId:i})}))}var E="https://content-firebaseappcheck.googleapis.com/v1beta",k=3e4,C=96e4,T=function(){function e(e,t,n,r,i){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=r,this.up
2perBound=i,this.pending=null,this.nextErrorWaitInterval=r,r>i)throw new Error("Proactive refresh lower bound greater than upper bound!")}return e.prototype.start=function(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch((function(){}))},e.prototype.stop=function(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)},e.prototype.isRunning=function(){return!!this.pending},e.prototype.process=function(e){return o.__awaiter(this,void 0,void 0,(function(){var t;return o.__generator(this,(function(n){switch(n.label){case 0:this.stop(),n.label=1;case 1:return n.trys.push([1,6,,7]),this.pending=new a.Deferred,[4,(r=this.getNextRun(e),new Promise((function(e){setTimeout(e,r)})))];case 2:return n.sent(),this.pending.resolve(),[4,this.pending.promise];case 3:return n.sent(),this.pending=new a.Deferred,[4,this.operation()];case 4:return n.sent(),this.pending.resolve(),[4,this.pending.promise];case 5:return n.sent(),this.process(!0).catch((function(){})),[3,7];case 6:return t=n.sent(),this.retryPolicy(t)?this.process(!1).catch((function(){})):this.stop(),[3,7];case 7:return[2]}var r}))}))},e.prototype.getNextRun=function(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();var t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t},e}();function j(e,t){var n=e.url,r=e.body;return o.__awaiter(this,void 0,void 0,(function(){var e,i,a,s,u,c,l,f,h,p;return o.__generator(this,(function(o){switch(o.label){case 0:e={"Content-Type":"application/json"},(i=t.getImmediate({optional:!0}))&&(e["X-Firebase-Client"]=i.getPlatformInfoString()),a={method:"POST",body:JSON.stringify(r),headers:e},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,fetch(n,a)];case 2:return s=o.sent(),[3,4];case 3:throw u=o.sent(),d.create("fetch-network-error",{originalErrorMessage:u.message});case 4:if(200!==s.status)throw d.create("fetch-status-error",{httpStatus:s.status});o.label=5;case 5:return o.trys.push([5,7,,8]),[4,s.json()];case 6:return c=o.sent(),[3,8];case 7:throw l=o.sent(),d.create("fetch-parse-error",{originalErrorMessage:l.message});case 8:if(!(f=c.ttl.match(/^([\d.]+)(s)$/))||!f[2]||isNaN(Number(f[1])))throw d.create("fetch-parse-error",{originalErrorMessage:"ttl field (timeToLive) is not in standard Protobuf Duration format: "+c.ttl});return h=1e3*Number(f[1]),p=Date.now(),[2,{token:c.attestationToken,expireTimeMillis:p+h,issuedAtTimeMillis:p}]}}))}))}function I(e,t){var n=e.options,r=n.projectId,i=n.appId,o=n.apiKey;return{url:E+"/projects/"+r+"/apps/"+i+":exchangeRecaptchaToken?key="+o,body:{recaptcha_token:t}}}function A(e,t){var n=e.options,r=n.projectId,i=n.appId,o=n.apiKey;return{url:E+"/projects/"+r+"/apps/"+i+":exchangeDebugToken?key="+o,body:{debug_token:t}}}var P="firebase-app-check-store",N="debug-token",M=null;function R(){return M||(M=new Promise((function(e,t){try{var n=indexedDB.open("firebase-app-check-database",1);n.onsuccess=function(t){e(t.target.result)},n.onerror=function(e){var n;t(d.create("storage-open",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))},n.onupgradeneeded=function(e){var t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore(P,{keyPath:"compositeKey"})}}}catch(r){t(d.create("storage-open",{originalErrorMessage:r.message}))}})))}function L(e){return F(V(e))}function D(e,t){return o.__awaiter(this,void 0,void 0,(function(){var n,r,i,a;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,R()];case 1:return n=o.sent(),r=n.transaction(P,"readwrite"),i=r.objectStore(P),a=i.put({compositeKey:e,value:t}),[2,new Promise((function(e,t){a.onsuccess=function(t){e()},r.onerror=function(e){var n;t(d.create("storage-set",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))}}))]}}))}))}function F(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n,r,i;return o.__generator(this,(function(o){switch(o.label){case 0:return[4,R()];case 1:return t=o.sent(),n=t.transaction(P,"readonly"),r=n.objectStore(P),i=r.get(e),[2,new Promise((function(e,t){i.onsuccess=function(t){var n=t.target.result;e(n?n.value:void 0)},n.onerror=function(e){var n;t(d.create("storage-get",{originalErrorMessage:null===(n=e.target.error)||void 0===n?void 0:n.message}))}}))]}}))}))}function V(e){return e.options.appId+"-"+e.name}var U=new s.Logger("@firebase/app-check");function B(e){return o.__awaiter(this,void 0,void 0,(function(){var t,n;return o.__generator(this,(function(r){switch(r.label){case 0:if(!a.isIndexedDBAvailable())return[3,5];t=void 0,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,L(e)];case 2:return t=r.sent(),[3,4];case 3:return n=r.sent(),U.warn("Failed to read token from indexeddb. Error: "+n),[3,4];case 4:return[2,t];case 5:return[2,void 0]}}))}))}function z(e,t){return a.isIndexedDBAvailable()?function(e,t){return D(V(e),t)}(e,t).catch((function(e){U.warn("Failed to write token to indexeddb. Error: "+e)})):Promise.resolve()}function q(){return o.__awaiter(this,void 0,void 0,(function(){var e,t;return o.__generator(this,(function(n){switch(n.label){case 0:e=void 0,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,F(N)];case 2:return e=n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:return e?[2,e]:(t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),(r=t,D(N,r)).catch((function(e){return U.warn("Failed to persist debug token to indexeddb. Error: "+e)})),console.log("AppCheck debug token: "+t+". You will need to whitelist it in the Firebase console for it to work"),[2,t])}var r}))}))}function G(){return y().enabled}function W(){return o.__awaiter(this,void 0,void 0,(function(){var e;return o.__generator(this,(function(t){if((e=y()).enabled&&e.token)return[2,e.token.promise];throw Error("\n            Can't get debug token in production mode.\n        ")}))}))}var H={error:"UNKNOWN_ERROR"};function K(e){return a.base64.encodeString(JSON.stringify(e),!1)}
2function X(e,t,n){return void 0===n&&(n=!1),o.__awaiter(this,void 0,void 0,(function(){var r,i,s,u,c,l,f,h,p,g,y,b,w;return o.__generator(this,(function(x){switch(x.label){case 0:return _(e),G()?(r=j,i=A,s=[e],[4,W()]):[3,3];case 1:return[4,r.apply(void 0,[i.apply(void 0,s.concat([x.sent()])),t])];case 2:return[2,{token:x.sent().token}];case 3:return u=v(e),c=u.token,l=void 0,c?[3,5]:[4,B(e)];case 4:(f=x.sent())&&Q(f)&&(c=f,m(e,o.__assign(o.__assign({},u),{token:c})),$(e,{token:c.token})),x.label=5;case 5:if(!n&&c&&Q(c))return[2,{token:c.token}];x.label=6;case 6:return x.trys.push([6,12,,13]),u.customProvider?[4,u.customProvider.getToken()]:[3,8];case 7:return h=x.sent(),p=a.issuedAtTime(h.token),g=null!==p&&p<Date.now()&&p>0?1e3*p:Date.now(),c=o.__assign(o.__assign({},h),{issuedAtTimeMillis:g}),[3,11];case 8:return[4,O(e).catch((function(e){throw d.create("recaptcha-error")}))];case 9:return y=x.sent(),[4,j(I(e,y),t)];case 10:c=x.sent(),x.label=11;case 11:return[3,13];case 12:return b=x.sent(),U.error(b),l=b,[3,13];case 13:return c?[3,14]:(w=function(e){return{token:K(H),error:e}}(l),[3,16]);case 14:return w={token:c.token},m(e,o.__assign(o.__assign({},u),{token:c})),[4,z(e,c)];case 15:x.sent(),x.label=16;case 16:return $(e,w),[2,w]}}))}))}function Y(e,t,n){var r=v(e),i=o.__assign(o.__assign({},r),{tokenListeners:o.__spreadArray(o.__spreadArray([],r.tokenListeners),[n])});if(G()){var a=y();a.enabled&&a.token&&a.token.promise.then((function(e){return n({token:e})})).catch((function(){}))}else{if(!i.tokenRefresher){var s=function(e,t){var n=this;return new T((function(){return o.__awaiter(n,void 0,void 0,(function(){var n;return o.__generator(this,(function(r){switch(r.label){case 0:return v(e).token?[3,2]:[4,X(e,t)];case 1:return n=r.sent(),[3,4];case 2:return[4,X(e,t,!0)];case 3:n=r.sent(),r.label=4;case 4:if(n.error)throw n.error;return[2]}}))}))}),(function(){return!0}),(function(){var t=v(e);if(t.token){var n=t.token.issuedAtTimeMillis+.5*(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)+3e5,r=t.token.expireTimeMillis-3e5;return n=Math.min(n,r),Math.max(0,n-Date.now())}return 0}),k,C)}(e,t);i.tokenRefresher=s}if(i.tokenRefresher.isRunning()||!0!==r.isTokenAutoRefreshEnabled||i.tokenRefresher.start(),r.token&&Q(r.token)){var u=r.token;Promise.resolve().then((function(){return n({token:u.token})})).catch((function(){}))}}m(e,i)}function $(e,t){for(var n=0,r=v(e).tokenListeners;n<r.length;n++){var i=r[n];try{i(t)}catch(o){}}}function Q(e){return e.expireTimeMillis-Date.now()>0}function J(e){return{activate:function(t,n){return function(e,t,n){var r=v(e);if(r.activated)throw d.create("already-activated",{appName:e.name});var i=o.__assign(o.__assign({},r),{activated:!0});"string"===typeof t?i.siteKey=t:i.customProvider=t,i.isTokenAutoRefreshEnabled=void 0===n?e.automaticDataCollectionEnabled:n,m(e,i),i.siteKey&&x(e,i.siteKey).catch((function(){}))}(e,t,n)},setTokenAutoRefreshEnabled:function(t){return function(e,t){var n=v(e);n.tokenRefresher&&(!0===t?n.tokenRefresher.start():n.tokenRefresher.stop()),m(e,o.__assign(o.__assign({},n),{isTokenAutoRefreshEnabled:t}))}(e,t)}}}function Z(e,t){return{getToken:function(n){return X(e,t,n)},addTokenListener:function(n){return Y(e,t,n)},removeTokenListener:function(t){return function(e,t){var n=v(e),r=n.tokenListeners.filter((function(e){return e!==t}));0===r.length&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),m(e,o.__assign(o.__assign({},n),{tokenListeners:r}))}(e,t)}}}var ee="app-check-internal";!function(e){e.INTERNAL.registerComponent(new i.Component("appCheck",(function(e){return J(e.getProvider("app").getImmediate())}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider(ee).initialize()}))),e.INTERNAL.registerComponent(new i.Component(ee,(function(e){return Z(e.getProvider("app").getImmediate(),e.getProvider("platform-logger"))}),"PUBLIC").setInstantiationMode("EXPLICIT")),e.registerVersion("@firebase/app-check","0.1.3")}(l.default),function(){var e=a.getGlobal();if("string"===typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN||!0===e.FIREBASE_APPCHECK_DEBUG_TOKEN){var t=y();t.enabled=!0;var n=new a.Deferred;t.token=n,"string"===typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN?n.resolve(e.FIREBASE_APPCHECK_DEBUG_TOKEN):n.resolve(q())}}()},function(e,t,n){"use strict";var r=n(168);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;
2var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes: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){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){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.fill)&&void 0!==n?n:"#fff",l=null!==(i=e.stroke)&&void 0!==i?i:"transparent",f=e.fillOpacity,d=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:80,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:55}),{viewBox:"0 0 55 80"}),o.default.createElement("g",{transform:"matrix(1 0 0 -1 0 80)"},o.default.createElement("rect",r({width:10,height:20,rx:3},{fill:c,stroke:l,fillOpacity:f,strokeOpacity:d}),o.default.createElement("animate",{attributeName:"height",begin:"0s",dur:4.3/u+"s",values:"20;45;57;80;64;32;66;45;64;23;66;13;64;56;34;34;2;23;76;79;20",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:15,width:10,height:80,rx:3},{fill:c,stroke:l,fillOpacity:f,strokeOpacity:d}),o.default.createElement("animate",{attributeName:"height",begin:"0s",dur:2/u+"s",values:"80;55;33;5;75;23;73;33;12;14;60;80",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:30,width:10,height:50,rx:3},{fill:c,stroke:l,fillOpacity:f,strokeOpacity:d}),o.default.createElement("animate",{attributeName:"height",begin:"0s",dur:1.4/u+"s",values:"50;34;78;23;56;23;34;76;80;54;21;50",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:45,width:10,height:30,rx:3},{fill:c,stroke:l,fillOpacity:f,strokeOpacity:d}),o.default.createElement("animate",{attributeName:"height",begin:"0s",dur:2/u+"s",values:"30;45;13;80;56;72;45;76;34;23;67;30",calcMode:"linear",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=e.fill,c=null!==(n=e.stroke)&&void 0!==n?n:"#fff",l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:57,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:57}),{viewBox:"0 0 57 57"}),o.default.createElement("g",{transform:"translate(1 1)",strokeWidth:2,fill:"none",fillRule:"evenodd"},o.default.createElement("circle",r({cx:5,cy:50,r:5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"cy",begin:"0s",dur:2.2/s+"s",values:"50;5;50;50",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"cx",begin:"0s",dur:2.2/s+"s",values:"5;27;49;
25",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:27,cy:5,r:5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"cy",begin:"0s",dur:2.2/s+"s",from:5,to:5,values:"5;50;50;5",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"cx",begin:"0s",dur:2.2/s+"s",from:27,to:27,values:"27;49;5;27",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:49,cy:50,r:5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"cy",begin:"0s",dur:2.2/s+"s",values:"50;50;5;50",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"cx",from:49,to:49,begin:"0s",dur:2.2/s+"s",values:"49;5;27;49",calcMode:"linear",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=null!==(n=e.fill)&&void 0!==n?n:"#fff",c=e.stroke,l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:140,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:135}),{viewBox:"0 0 135 140"}),o.default.createElement("rect",r({y:10,width:15,height:120,rx:6},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:1/s+"s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:1/s+"s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:30,y:10,width:15,height:120,rx:6},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:1/s+"s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:1/s+"s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:60,width:15,height:140,rx:6},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"height",begin:"0s",dur:1/s+"s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"y",begin:"0s",dur:1/s+"s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:90,y:10,width:15,height:120,rx:6},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"height",begin:"0.25s",dur:1/s+"s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"y",begin:"0.25s",dur:1/s+"s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("rect",r({x:120,y:10,width:15,height:120,rx:6},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"height",begin:"0.5s",dur:1/s+"s",values:"120;110;100;90;80;70;60;50;40;140;120",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"y",begin:"0.5s",dur:1/s+"s",values:"10;15;20;25;30;35;40;45;50;0;10",calcMode:"linear",repeatCount:"indefinite"})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}
2,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=null!==(n=e.fill)&&void 0!==n?n:"#fff",c=e.stroke,l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:135,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:135}),{viewBox:"0 0 135 135"}),o.default.createElement("path",r({d:"M67.447 58c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10zm9.448 9.447c0 5.523 4.477 10 10 10 5.522 0 10-4.477 10-10s-4.478-10-10-10c-5.523 0-10 4.477-10 10zm-9.448 9.448c-5.523 0-10 4.477-10 10 0 5.522 4.477 10 10 10s10-4.478 10-10c0-5.523-4.477-10-10-10zM58 67.447c0-5.523-4.477-10-10-10s-10 4.477-10 10 4.477 10 10 10 10-4.477 10-10z"},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"-360 67 67",dur:2.5/s+"s",repeatCount:"indefinite"})),o.default.createElement("path",r({d:"M28.19 40.31c6.627 0 12-5.374 12-12 0-6.628-5.373-12-12-12-6.628 0-12 5.372-12 12 0 6.626 5.372 12 12 12zm30.72-19.825c4.686 4.687 12.284 4.687 16.97 0 4.686-4.686 4.686-12.284 0-16.97-4.686-4.687-12.284-4.687-16.97 0-4.687 4.686-4.687 12.284 0 16.97zm35.74 7.705c0 6.627 5.37 12 12 12 6.626 0 12-5.373 12-12 0-6.628-5.374-12-12-12-6.63 0-12 5.372-12 12zm19.822 30.72c-4.686 4.686-4.686 12.284 0 16.97 4.687 4.686 12.285 4.686 16.97 0 4.687-4.686 4.687-12.284 0-16.97-4.685-4.687-12.283-4.687-16.97 0zm-7.704 35.74c-6.627 0-12 5.37-12 12 0 6.626 5.373 12 12 12s12-5.374 12-12c0-6.63-5.373-12-12-12zm-30.72 19.822c-4.686-4.686-12.284-4.686-16.97 0-4.686 4.687-4.686 12.285 0 16.97 4.686 4.687 12.284 4.687 16.97 0 4.687-4.685 4.687-12.283 0-16.97zm-35.74-7.704c0-6.627-5.372-12-12-12-6.626 0-12 5.373-12 12s5.374 12 12 12c6.628 0 12-5.373 12-12zm-19.823-30.72c4.687-4.686 4.687-12.284 0-16.97-4.686-4.686-12.284-4.686-16.97 0-4.687 4.686-4.687 12.284 0 16.97 4.686 4.687 12.284 4.687 16.97 0z"},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 67 67",to:"360 67 67",dur:8/s+"s",repeatCount:"indefinite"})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=null!==(n=e.fill)&&void 0!==n?n:"#fff",c=e.stroke,l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:105,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:105}),{viewBox:"0 0 105 105"}),o.default.createElement("circle",r({cx:12.5,cy:12.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:12.5,cy:52.5,r:12.5,fillOpacity:.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:52.5,cy:12.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:1/s+"s",values:"1;.2;
21",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:52.5,cy:52.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:92.5,cy:12.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:92.5,cy:52.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:12.5,cy:92.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:52.5,cy:92.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:92.5,cy:92.5,r:12.5},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:1/s+"s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.fill)&&void 0!==n?n:"#fff",l=e.stroke,f=null!==(i=e.fillOpacity)&&void 0!==i?i:.5;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:64,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:140}),{viewBox:"0 0 140 64"}),o.default.createElement("path",r({d:"M30.262 57.02L7.195 40.723c-5.84-3.976-7.56-12.06-3.842-18.063 3.715-6 11.467-7.65 17.306-3.68l4.52 3.76 2.6-5.274c3.717-6.002 11.47-7.65 17.305-3.68 5.84 3.97 7.56 12.054 3.842 18.062L34.49 56.118c-.897 1.512-2.793 1.915-4.228.9z",fillOpacity:f},{fill:c,stroke:l}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.4/u+"s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("path",r({d:"M105.512 56.12l-14.44-24.272c-3.716-6.008-1.996-14.093 3.843-18.062 5.835-3.97 13.588-2.322 17.306 3.68l2.6 5.274 4.52-3.76c5.84-3.97 13.592-2.32 17.307 3.68 3.718 6.003 1.998 14.088-3.842 18.064L109.74 57.02c-1.434 1.014-3.33.61-4.228-.9z",fillOpacity:f},{fill:c,stroke:l}),o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0.7s",dur:1.4/u+"s",values:"0.5;1;0.5",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("path",r({d:"M67.408 57.834l-23.01-24.98c-5.864-6.15-5.864-16.108 0-22.248 5.86-6.14 15.37-6.14 21.234 0L70 16.168l4.368-5.562c5.863-6.14 15.375-6.14 21.235 0 5.863 6.14 5.863 16.098 0 22.247l-23.007 24.98c-1.43 1.556-3.757 1.556-5.188 0z"},{fill:c,stroke:l})))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
2Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.stroke)&&void 0!==n?n:"#fff",l=null!==(i=e.strokeWidth)&&void 0!==i?i:2,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:38}),{viewBox:"0 0 38 38",overflow:"visible"}),o.default.createElement("g",r({transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},{stroke:c,strokeWidth:l,strokeOpacity:f}),o.default.createElement("circle",{strokeOpacity:.5,cx:18,cy:18,r:18}),o.default.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},o.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:1/u+"s",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.stroke)&&void 0!==n?n:"#fff",l=null!==(i=e.strokeWidth)&&void 0!==i?i:2,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:44,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:44}),{viewBox:"0 0 44 44"}),o.default.createElement("g",r({fill:"none",fillRule:"evenodd"},{stroke:c,strokeWidth:l,strokeOpacity:f}),o.default.createElement("circle",{cx:22,cy:22,r:1},o.default.createElement("animate",{attributeName:"r",begin:"0s",dur:1.8/u+"s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:1.8/u+"s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:22,cy:22,r:1},o.default.createElement("animate",{attributeName:"r",begin:"-0.9s",dur:1.8/u+"s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:1.8/u+"s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.stroke)&&void 0!==n?n:"#fff",l=null!==(i=e.strokeWidth)&&void 0!==i?i:2,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:45,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:45}),{viewBox:"0 0 45 45"}),o.default.createElement("g",r({fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},{stroke:c,strokeWidth:l,strokeOpacity:f}),o.default.createElement("circle",{cx:22,cy:22,r:6},o.default.createElement("animate",{attributeName:"r",begin:"1.5s",dur:3/u+"s",values:"6;
222",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:3/u+"s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-width",begin:"1.5s",dur:3/u+"s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:22,cy:22,r:6},o.default.createElement("animate",{attributeName:"r",begin:"3s",dur:3/u+"s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-opacity",begin:"3s",dur:3/u+"s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"stroke-width",begin:"3s",dur:3/u+"s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:22,cy:22,r:8},o.default.createElement("animate",{attributeName:"r",begin:"0s",dur:1.5/u+"s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=null!==(n=e.fill)&&void 0!==n?n:"#fff",c=e.stroke,l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:58,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:58}),{viewBox:"0 0 58 58"}),o.default.createElement("g",r({transform:"translate(2 1)",fillRule:"evenodd"},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("circle",{cx:42.601,cy:11.462,r:5},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"1;0;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:49.063,cy:27.063,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;1;0;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:42.601,cy:42.663,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;1;0;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:27,cy:49.125,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;0;1;0;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:11.399,cy:42.663,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;0;0;1;0;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:4.938,cy:27.063,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;0;0;0;1;0;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:11.399,cy:11.462,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;0;0;0;0;1;0",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:27,cy:5,r:5,fillOpacity:0},o.default.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:1.3/s+"s",values:"0;0;0;0;0;0;0;1",calcMode:"linear",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)}
2,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s,u=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),c=null!==(n=e.stroke)&&void 0!==n?n:"#fff",l=null!==(i=e.strokeWidth)&&void 0!==i?i:2,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(a=e.height)&&void 0!==a?a:38,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(s=e.width)&&void 0!==s?s:38}),{viewBox:"0 0 38 38"}),o.default.createElement("defs",null,o.default.createElement("linearGradient",{x1:"8.042%",y1:"0%",x2:"65.682%",y2:"23.865%",id:"prefix__a"},o.default.createElement("stop",{stopOpacity:0,offset:"0%"}),o.default.createElement("stop",{stopOpacity:.631,offset:"63.146%"}),o.default.createElement("stop",{offset:"100%"}))),o.default.createElement("g",{transform:"translate(1 1)",fill:"none",fillRule:"evenodd"},o.default.createElement("path",r({d:"M36 18c0-9.94-8.06-18-18-18"},{stroke:c,strokeWidth:l,strokeOpacity:f}),o.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:.9/u+"s",repeatCount:"indefinite"})),o.default.createElement("circle",{cx:36,cy:18,r:1},o.default.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:.9/u+"s",repeatCount:"indefinite"}))))}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(0));t.default=function(e){var t,n,i,a,s=Number(String(null!==(t=e.speed)&&void 0!==t?t:1)),u=null!==(n=e.fill)&&void 0!==n?n:"#fff",c=e.stroke,l=e.fillOpacity,f=e.strokeOpacity;return o.default.createElement("svg",r({},r(r({},e),{className:e.className?"icon-loading "+e.className:"icon-loading",fill:void 0,fillOpacity:void 0,height:null!==(i=e.height)&&void 0!==i?i:30,speed:void 0,stroke:void 0,strokeOpacity:void 0,strokeWidth:void 0,width:null!==(a=e.width)&&void 0!==a?a:120}),{viewBox:"0 0 120 30"}),o.default.createElement("circle",r({cx:15,cy:15,r:15},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:.8/s+"s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:.8/s+"s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:60,cy:15,r:9,fillOpacity:.3},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"r",from:9,to:9,begin:"0s",dur:.8/s+"s",values:"9;15;9",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"fill-opacity",from:.5,to:.5,begin:"0s",dur:.8/s+"s",values:".5;1;.5",calcMode:"linear",repeatCount:"indefinite"})),o.default.createElement("circle",r({cx:105,cy:15,r:15},{fill:u,stroke:c,fillOpacity:l,strokeOpacity:f}),o.default.createElement("animate",{attributeName:"r",from:15,to:15,begin:"0s",dur:.8/s+"s",values:"15;9;15",calcMode:"linear",repeatCount:"indefinite"}),o.default.createElement("animate",{attributeName:"fill-opacity",from:1,to:1,begin:"0s",dur:.8/s+"s",values:"1;.5;1",calcMode:"linear",repeatCount:"indefinite"})))}},function(e,t,n){"use strict";e.exports=n(186)},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,d=r?Symbol.for("react.concurrent_mode"):60111,h=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,g=r?Symbol.for("react.suspense_list"):60120,v=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,_=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case d:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case l:case h:case m:case v:case c:return e;default:return t}}case o:return t}}}function O(e){return x(e)===d}t.AsyncMode=f,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=o,t.Profiler=u,t.
2StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||x(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return x(e)===h},t.isFragment=function(e){return x(e)===a},t.isLazy=function(e){return x(e)===m},t.isMemo=function(e){return x(e)===v},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===u},t.isStrictMode=function(e){return x(e)===s},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===d||e===u||e===s||e===p||e===g||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===l||e.$$typeof===h||e.$$typeof===b||e.$$typeof===_||e.$$typeof===w||e.$$typeof===y)},t.typeOf=x},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,d=60120,h=60115,p=60116,g=60121,v=60122,m=60117,y=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var _=Symbol.for;r=_("react.element"),i=_("react.portal"),o=_("react.fragment"),a=_("react.strict_mode"),s=_("react.profiler"),u=_("react.provider"),c=_("react.context"),l=_("react.forward_ref"),f=_("react.suspense"),d=_("react.suspense_list"),h=_("react.memo"),p=_("react.lazy"),g=_("react.block"),v=_("react.server.block"),m=_("react.fundamental"),y=_("react.debug_trace_mode"),b=_("react.legacy_hidden")}function w(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 d:return e;default:switch(e=e&&e.$$typeof){case c:case l:case p:case h:case u:return e;default:return t}}case i:return t}}}var x=u,O=r,S=l,E=o,k=p,C=h,T=i,j=s,I=a,A=f;t.ContextConsumer=c,t.ContextProvider=x,t.Element=O,t.ForwardRef=S,t.Fragment=E,t.Lazy=k,t.Memo=C,t.Portal=T,t.Profiler=j,t.StrictMode=I,t.Suspense=A,t.isAsyncMode=function(){return!1},t.isConcurrentMode=function(){return!1},t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===l},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===p},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===s||e===y||e===a||e===f||e===d||e===b||"object"===typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===h||e.$$typeof===u||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===g||e[0]===v)},t.typeOf=w},function(e,t,n){e.exports=function(){"use strict";var e,t,r={target:"c3-target",chart:"c3-chart",chartLine:"c3-chart-line",chartLines:"c3-chart-lines",chartBar:"c3-chart-bar",chartBars:"c3-chart-bars",chartText:"c3-chart-text",chartTexts:"c3-chart-texts",chartArc:"c3-chart-arc",chartArcs:"c3-chart-arcs",chartArcsTitle:"c3-chart-arcs-title",chartArcsBackground:"c3-chart-arcs-background",chartArcsGaugeUnit:"c3-chart-arcs-gauge-unit",chartArcsGaugeMax:"c3-chart-arcs-gauge-max",chartArcsGaugeMin:"c3-chart-arcs-gauge-min",selectedCircle:"c3-selected-circle",selectedCircles:"c3-selected-circles",eventRect:"c3-event-rect",eventRects:"c3-event-rects",eventRectsSingle:"c3-event-rects-single",eventRectsMultiple:"c3-event-rects-multiple",zoomRect:"c3-zoom-rect",brush:"c3-brush",focused:"c3-focused",defocused:"c3-defocused",region:"c3-region",regions:"c3-regions",title:"c3-title",tooltipContainer:"c3-tooltip-container",tooltip:"c3-tooltip",tooltipName:"c3-tooltip-name",shape:"c3-shape",shapes:"c3-shapes",line:"c3-line",lines:"c3-lines",bar:"c3-bar",bars:"c3-bars",circle:"c3-circle",circles:"c3-circles",arc:"c3-arc",arcLabelLine:"c3-arc-label-line",arcs:"c3-arcs",area:"c3-area",areas:"c3-areas",empty:"c3-empty",text:"c3-text",texts:"c3-texts",gauge
2Value:"c3-gauge-value",grid:"c3-grid",gridLines:"c3-grid-lines",xgrid:"c3-xgrid",xgrids:"c3-xgrids",xgridLine:"c3-xgrid-line",xgridLines:"c3-xgrid-lines",xgridFocus:"c3-xgrid-focus",ygrid:"c3-ygrid",ygrids:"c3-ygrids",ygridLine:"c3-ygrid-line",ygridLines:"c3-ygrid-lines",axis:"c3-axis",axisX:"c3-axis-x",axisXLabel:"c3-axis-x-label",axisY:"c3-axis-y",axisYLabel:"c3-axis-y-label",axisY2:"c3-axis-y2",axisY2Label:"c3-axis-y2-label",legendBackground:"c3-legend-background",legendItem:"c3-legend-item",legendItemEvent:"c3-legend-item-event",legendItemTile:"c3-legend-item-tile",legendItemHidden:"c3-legend-item-hidden",legendItemFocused:"c3-legend-item-focused",dragarea:"c3-dragarea",EXPANDED:"_expanded_",SELECTED:"_selected_",INCLUDED:"_included_"},i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=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)},s=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},u=function(e){return e||0===e},c=function(e){return"function"===typeof e},l=function(e){return Array.isArray(e)},f=function(e){return"string"===typeof e},d=function(e){return"undefined"===typeof e},h=function(e){return"undefined"!==typeof e},p=function(e){return 10*Math.ceil(e/10)},g=function(e){return Math.ceil(e)+.5},v=function(e){return e[1]-e[0]},m=function(e){return"undefined"===typeof e||null===e||f(e)&&0===e.length||"object"===("undefined"===typeof e?"undefined":i(e))&&0===Object.keys(e).length},y=function(e){return!k.isEmpty(e)},b=function(e,t,n){return h(e[t])?e[t]:n},_=function(e,t){var n=!1;return Object.keys(e).forEach((function(r){e[r]===t&&(n=!0)})),n},w=function(e){return"string"===typeof e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):e},x=function(e){var t=e.getBoundingClientRect(),n=[e.pathSegList.getItem(0),e.pathSegList.getItem(1)];return{x:n[0].x,y:Math.min(n[0].y,n[1].y),width:t.width,height:t.height}};function O(e,t){var n=this;n.component=e,n.params=t||{},n.d3=e.d3,n.scale=n.d3.scale.linear(),n.range,n.orient="bottom",n.innerTickSize=6,n.outerTickSize=this.params.withOuterTick?6:0,n.tickPadding=3,n.tickValues=null,n.tickFormat,n.tickArguments,n.tickOffset=0,n.tickCulling=!0,n.tickCentered,n.tickTextCharSize,n.tickTextRotate=n.params.tickTextRotate,n.tickLength,n.axis=n.generateAxis()}(t=O.prototype).axisX=function(e,t,n){e.attr("transform",(function(e){return"translate("+Math.ceil(t(e)+n)+", 0)"}))},t.axisY=function(e,t){e.attr("transform",(function(e){return"translate(0,"+Math.ceil(t(e))+")"}))},t.scaleExtent=function(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]},t.generateTicks=function(e){var t,n,r=this,i=[];if(e.ticks)return e.ticks.apply(e,r.tickArguments);for(n=e.domain(),t=Math.ceil(n[0]);t<n[1];t++)i.push(t);return i.length>0&&i[0]>0&&i.unshift(i[0]-(i[1]-i[0])),i},t.copyScale=function(){var e,t=this,n=t.scale.copy();return t.params.isCategory&&(e=t.scale.domain(),n.domain([e[0],e[1]-1])),n},t.textFormatted=function(e){var t=this,n=t.tickFormat?t.tickFormat(e):e;return"undefined"!==typeof n?n:""},t.updateRange=function(){var e=this;return e.range=e.scale.rangeExtent?e.scale.rangeExtent():e.scaleExtent(e.scale.range()),e.range},t.updateTickTextCharSize=function(e){var t=this;if(t.tickTextCharSize)return t.tickTextCharSize;var n={h:11.5,w:5.5};return e.select("text").text((function(e){return t.textFormatted(e)})).each((function(e){var r=this.getBoundingClientRect(),i=t.textFormatted(e),o=r.height,a=i?r.width/i.length:void 0;o&&a&&(n.h=o,n.w=a)})).text(""),t.tickTextCharSize=n,n},t.transitionise=function(e){return this.params.withoutTransition?e:this.d3.transition(e)},t.isVertical=function(){return"left"===this.orient||"right"===this.orient},t.tspanData=function(e,t,n,r){var i=this,o=i.params.tickMultiline?i.splitTickText(e,n,r):[].concat(i.textFormatted(e));return i.params.tickMultiline&&i.params.tickMultilineMax>0&&(o=i.ellipsify(o,i.params.tickMultilineMax)),o.map((function(e){return{index:t,splitted:e,length:o.length}}))},t.splitTickText=function(e,t,n){var r,i,o,a=this,s=a.textFormatted(e),u=a.params.tickWidth,c=[];if("[object Array]"===Object.prototype.toString.call(s))return s;function l(e,t){i=void 0;for(var n=1;n<t.length;n++)if(" "===t.charAt(n)&&(i=n),r=t.substr(0,n+1),o=a.tickTextCharSize.w*r.length,u<o)return l(e.concat(t.substr(0,i||n)),t.slice(i?i+1:n));return e.concat(t)}return(!u||u<=0)&&(u=a.isVertical()?95:a.params.isCategory?Math.
2ceil(n(t[1])-n(t[0]))-12:110),l(c,s+"")},t.ellipsify=function(e,t){if(e.length<=t)return e;for(var n=e.slice(0,t),r=3,i=t-1;i>=0;i--){var o=n[i].length;if(n[i]=n[i].substr(0,o-r).padEnd(o,"."),(r-=o)<=0)break}return n},t.updateTickLength=function(){var e=this;e.tickLength=Math.max(e.innerTickSize,0)+e.tickPadding},t.lineY2=function(e){var t=this,n=t.scale(e)+(t.tickCentered?0:t.tickOffset);return t.range[0]<n&&n<t.range[1]?t.innerTickSize:0},t.textY=function(){var e=this,t=e.tickTextRotate;return t?11.5-t/15*2.5*(t>0?1:-1):e.tickLength},t.textTransform=function(){var e=this.tickTextRotate;return e?"rotate("+e+")":""},t.textTextAnchor=function(){var e=this.tickTextRotate;return e?e>0?"start":"end":"middle"},t.tspanDx=function(){var e=this.tickTextRotate;return e?8*Math.sin(Math.PI*(e/180)):0},t.tspanDy=function(e,t){var n=this,r=n.tickTextCharSize.h;return 0===t&&(r=n.isVertical()?-((e.length-1)*(n.tickTextCharSize.h/2)-3):".71em"),r},t.generateAxis=function(){var e=this,t=e.d3,n=e.params;function r(i){i.each((function(){var i,o,a,s=r.g=t.select(this),u=this.__chart__||e.scale,c=this.__chart__=e.copyScale(),l=e.tickValues?e.tickValues:e.generateTicks(c),f=s.selectAll(".tick").data(l,c),d=f.enter().insert("g",".domain").attr("class","tick").style("opacity",1e-6),h=f.exit().remove(),p=e.transitionise(f).style("opacity",1);n.isCategory?(e.tickOffset=Math.ceil((c(1)-c(0))/2),o=e.tickCentered?0:e.tickOffset,a=e.tickCentered?e.tickOffset:0):e.tickOffset=o=0,d.append("line"),d.append("text"),e.updateRange(),e.updateTickLength(),e.updateTickTextCharSize(s.select(".tick"));var g=p.select("line"),v=p.select("text"),m=f.select("text").selectAll("tspan").data((function(t,n){return e.tspanData(t,n,l,c)}));m.enter().append("tspan"),m.exit().remove(),m.text((function(e){return e.splitted}));var y=s.selectAll(".domain").data([0]),b=(y.enter().append("path").attr("class","domain"),e.transitionise(y));switch(e.orient){case"bottom":i=e.axisX,g.attr("x1",o).attr("x2",o).attr("y2",(function(t,n){return e.lineY2(t,n)})),v.attr("x",0).attr("y",(function(t,n){return e.textY(t,n)})).attr("transform",(function(t,n){return e.textTransform(t,n)})).style("text-anchor",(function(t,n){return e.textTextAnchor(t,n)})),m.attr("x",0).attr("dy",(function(t,n){return e.tspanDy(t,n)})).attr("dx",(function(t,n){return e.tspanDx(t,n)})),b.attr("d","M"+e.range[0]+","+e.outerTickSize+"V0H"+e.range[1]+"V"+e.outerTickSize);break;case"top":i=e.axisX,g.attr("x1",o).attr("x2",o).attr("y2",(function(t,n){return-1*e.lineY2(t,n)})),v.attr("x",0).attr("y",(function(t,r){return-1*e.textY(t,r)-(n.isCategory?2:e.tickLength-2)})).attr("transform",(function(t,n){return e.textTransform(t,n)})).style("text-anchor",(function(t,n){return e.textTextAnchor(t,n)})),m.attr("x",0).attr("dy",(function(t,n){return e.tspanDy(t,n)})).attr("dx",(function(t,n){return e.tspanDx(t,n)})),b.attr("d","M"+e.range[0]+","+-e.outerTickSize+"V0H"+e.range[1]+"V"+-e.outerTickSize);break;case"left":i=e.axisY,g.attr("x2",-e.innerTickSize).attr("y1",a).attr("y2",a),v.attr("x",-e.tickLength).attr("y",e.tickOffset).style("text-anchor","end"),m.attr("x",-e.tickLength).attr("dy",(function(t,n){return e.tspanDy(t,n)})),b.attr("d","M"+-e.outerTickSize+","+e.range[0]+"H0V"+e.range[1]+"H"+-e.outerTickSize);break;case"right":i=e.axisY,g.attr("x2",e.innerTickSize).attr("y1",a).attr("y2",a),v.attr("x",e.tickLength).attr("y",e.tickOffset).style("text-anchor","start"),m.attr("x",e.tickLength).attr("dy",(function(t,n){return e.tspanDy(t,n)})),b.attr("d","M"+e.outerTickSize+","+e.range[0]+"H0V"+e.range[1]+"H"+e.outerTickSize)}if(c.rangeBand){var _=c,w=_.rangeBand()/2;u=c=function(e){return _(e)+w}}else u.rangeBand?u=c:h.call(i,c,e.tickOffset);d.call(i,u,e.tickOffset),p.call(i,c,e.tickOffset)}))}return r.scale=function(t){return arguments.length?(e.scale=t,r):e.scale},r.orient=function(t){return arguments.length?(e.orient=t in{top:1,right:1,bottom:1,left:1}?t+"":"bottom",r):e.orient},r.tickFormat=function(t){return arguments.length?(e.tickFormat=t,r):e.tickFormat},r.tickCentered=function(t){return arguments.length?(e.tickCentered=t,r):e.tickCentered},r.tickOffset=function(){return e.tickOffset},r.tickInterval=function(){var t;return(t=n.isCategory?2*e.tickOffset:(r.g.select("path.domain").node().getTotalLength()-2*e.outerTickSize)/r.g.selectAll("line").size())===1/0?0:t},r.ticks=function(){return arguments.length?(e.tickArguments=arguments,r):e.tickArguments},r.tickCulling=function(t){return arguments.length?(e.tickCulling=t,r):e.tickCulling},r.tickValues=function(t){if("function"===typeof t)e.tickValues=function(){return t(e.scale.domain())};else{if(!arguments.length)return e.tickValues;e.tickValues=t}return r},r};var S=function(n){function r(n){o(this,r);var i={fn:e,internal:{fn:t}},a=s(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,n,"axis",i));return a.d3=n.d3,a.internal=O,a}return a(r,n),r}(T);(e=S.prototype).init=function(){var e=this.owner,t=e.config,n=e.main;e.axes.x=n.append("g").attr("class",r.axis+" "+r.axisX).attr("clip-path",t.axis_x_inner?"":e.clipPathForXAxis).attr("transform",e.getTranslate("x")).style("visibility",t.axis_x_show?"visible":"hidden"),e.axes.x.append("text").attr("class",r.axisXLabel).attr("transform",t.axis_rotated?"rotate(-90)":"").style("text-anchor",this.textAnchorForXAxisLabel.bind(this)),e.axes.y=n.append("g").attr("class",r.axis+" "+r.axisY).attr("clip-path",t.axis_y_inner?"":e.clipPathForYAxis).attr("transform",e.getTranslate("y")).style("visibility",t.axis_y_show?"visible":"hidden"),e.axes.y.append("text").attr("class",r.axisYLabel).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForYAxisLabel.bind(this)),e.axes.y2=n.append("g").attr("class",r.axis+" "+r.axisY2).attr("transform",e.getTranslate("y2")).style("visibility",t.axis_y2_show?"visible":"hidden"),e.axes.y2.append("text").attr("class",r.axisY2Label).attr("transform",t.axis_rotated?"":"rotate(-90)").style("text-anchor",this.textAnchorForY2AxisLabel.bind(this))},e.getXAxis=function(e,t,n,r,i,o,a){var s=this.owner,u=s.config,c={isCategory:s.isCategorized(),withOuterTick:i,tickMultiline:u.axis_x_tick_multiline,tickMultilineMax:u.axis_x_tick_multiline?Number(u.axis_x_tick_multilineMax):0,tickWidth:u.axis_x_tick_width,tickTextRotate:a?0:u.axis_x_tick_rotate,withoutTransition:o},l=new this.internal(this,c).axis.scale(e).orient(t);return s.isTimeSeries()&&r&&"function"!==typeof r&&(r=r.map((function(e){return s.parseDate(e)}))),l.tickFormat(n).tickValues(r),s.isCategorized()&&(l.tickCentered(u.axis_x_tick_centered),m(u.axis_x_tick_culling)&&(u.axis_x_tick_culling=!1)),l},e.updateXAxisTickValues=function(e,t){var n,r=this.owner,i=r.config;return(i.axis_x_tick_fit||i.axis_x_tick_count)&&(n=this.generateTickValues(r.mapTargetsToUniqueXs(e),i.axis_x_tick_count,r.isTimeSeries())),t?t.tickValues(n):(r.xAxis.tickValues(n),r.subXAxis.tickValues(n)),n},e.getYAxis=function(e,t,n,r,i,o,a){var s=this.owner,u=s.config,c={withOuterTick:i,withoutTransition:o,tickTextRotate:a?0:u.axis_y_tick_rotate},l=new this.internal(this,c).axis.scale(e).orient(t).tickFormat(n);return s.isTimeSeriesY()?l.ticks(s.d3.time[u.axis_y_tick_time_value],u.axis_y_tick_time_interval):l.tickValues(r),l},e.getId=function(e){var t=this.owner.config;return e in t.data_axes?t.data_axes[e]:"y"},e.getXAxisTickFormat=function(){var e=this.owner,t=e.config,n=e.isTimeSeries()?e.defaultAxisTimeFormat:e.isCategorized()?e.categoryName:function(e){return e<0?e.toFixed(0):e};return t.axis_x_tick_format&&(c(t.axis_x_tick_format)?n=t.axis_x_tick_format:e.isTimeSeries()&&(n=function(n){return n?e.axisTimeFormat(t.axis_x_tick_format)(n):""})),c(n)?function(t){return n.call(e,t)}:n},e.getTickValues=function(e,t){return e||(t?t.tickValues():void 0)},e.getXAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_x_tick_values,this.owner.xAxis)},e.getYAxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y_tick_values,this.owner.yAxis)},e.getY2AxisTickValues=function(){return this.getTickValues(this.owner.config.axis_y2_tick_values,this.owner.y2Axis)},e.getLabelOptionByAxisId=function(e){var t,n=this.owner.config;return"y"===e?t=n.axis_y_label:"y2"===e?t=n.axis_y2_label:"x"===e&&(t=n.axis_x_label),t},e.getLabelText=function(e){var t=this.getLabelOptionByAxisId(e);return f(t)?t:t?t.text:null},e.setLabelText=function(e,t){var n=this.owner.config,r=this.getLabelOptionByAxisId(e);f(r)?"y"===e?n.axis_y_label=t:"y2"===e?n.axis_y2_label=t:"x"===e&&(n.axis_x_label=t):r&&(r.text=t)},e.getLabelPosition=function(e,t){var n=this.getLabelOptionByAxisId(e),r=n&&"object"===("undefined"===typeof n?"undefined":i(n))&&n.position?n.position:t;return{isInner:r.indexOf("inner")>=0,isOuter:r.indexOf("outer")>=0,isLeft:r.indexOf("left")>=0,isCenter:r.indexOf("center")>=0,isRight:r.indexOf("right")>=0,isTop:r.indexOf("top")>=0,isMiddle:r.indexOf("middle")>=0,isBottom:r.indexOf("bottom")>=0}},e.getXAxisLabelPosition=function(){return this.getLabelPosition("x",this.owner.config.axis_rotated?"inner-top":"inner
2-right")},e.getYAxisLabelPosition=function(){return this.getLabelPosition("y",this.owner.config.axis_rotated?"inner-right":"inner-top")},e.getY2AxisLabelPosition=function(){return this.getLabelPosition("y2",this.owner.config.axis_rotated?"inner-right":"inner-top")},e.getLabelPositionById=function(e){return"y2"===e?this.getY2AxisLabelPosition():"y"===e?this.getYAxisLabelPosition():this.getXAxisLabelPosition()},e.textForXAxisLabel=function(){return this.getLabelText("x")},e.textForYAxisLabel=function(){return this.getLabelText("y")},e.textForY2AxisLabel=function(){return this.getLabelText("y2")},e.xForAxisLabel=function(e,t){var n=this.owner;return e?t.isLeft?0:t.isCenter?n.width/2:n.width:t.isBottom?-n.height:t.isMiddle?-n.height/2:0},e.dxForAxisLabel=function(e,t){return e?t.isLeft?"0.5em":t.isRight?"-0.5em":"0":t.isTop?"-0.5em":t.isBottom?"0.5em":"0"},e.textAnchorForAxisLabel=function(e,t){return e?t.isLeft?"start":t.isCenter?"middle":"end":t.isBottom?"start":t.isMiddle?"middle":"end"},e.xForXAxisLabel=function(){return this.xForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},e.xForYAxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},e.xForY2AxisLabel=function(){return this.xForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},e.dxForXAxisLabel=function(){return this.dxForAxisLabel(!this.owner.config.axis_rotated,this.getXAxisLabelPosition())},e.dxForYAxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getYAxisLabelPosition())},e.dxForY2AxisLabel=function(){return this.dxForAxisLabel(this.owner.config.axis_rotated,this.getY2AxisLabelPosition())},e.dyForXAxisLabel=function(){var e=this.owner,t=e.config,n=this.getXAxisLabelPosition();return t.axis_rotated?n.isInner?"1.2em":-25-(e.config.axis_x_inner?0:this.getMaxTickWidth("x")):n.isInner?"-0.5em":t.axis_x_height?t.axis_x_height-10:"3em"},e.dyForYAxisLabel=function(){var e=this.owner,t=this.getYAxisLabelPosition();return e.config.axis_rotated?t.isInner?"-0.5em":"3em":t.isInner?"1.2em":-10-(e.config.axis_y_inner?0:this.getMaxTickWidth("y")+10)},e.dyForY2AxisLabel=function(){var e=this.owner,t=this.getY2AxisLabelPosition();return e.config.axis_rotated?t.isInner?"1.2em":"-2.2em":t.isInner?"-0.5em":15+(e.config.axis_y2_inner?0:this.getMaxTickWidth("y2")+15)},e.textAnchorForXAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(!e.config.axis_rotated,this.getXAxisLabelPosition())},e.textAnchorForYAxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getYAxisLabelPosition())},e.textAnchorForY2AxisLabel=function(){var e=this.owner;return this.textAnchorForAxisLabel(e.config.axis_rotated,this.getY2AxisLabelPosition())},e.getMaxTickWidth=function(e,t){var n,r,i,o,a=this.owner,s=a.config,u=0;return t&&a.currentMaxTickWidths[e]||(a.svg&&(n=a.filterTargetsToShow(a.data.targets),"y"===e?(r=a.y.copy().domain(a.getYDomain(n,"y")),i=this.getYAxis(r,a.yOrient,s.axis_y_tick_format,a.yAxisTickValues,!1,!0,!0)):"y2"===e?(r=a.y2.copy().domain(a.getYDomain(n,"y2")),i=this.getYAxis(r,a.y2Orient,s.axis_y2_tick_format,a.y2AxisTickValues,!1,!0,!0)):(r=a.x.copy().domain(a.getXDomain(n)),i=this.getXAxis(r,a.xOrient,a.xAxisTickFormat,a.xAxisTickValues,!1,!0,!0),this.updateXAxisTickValues(n,i)),(o=a.d3.select("body").append("div").classed("c3",!0)).append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0).append("g").call(i).each((function(){a.d3.select(this).selectAll("text").each((function(){var e=this.getBoundingClientRect();u<e.width&&(u=e.width)})),o.remove()}))),a.currentMaxTickWidths[e]=u<=0?a.currentMaxTickWidths[e]:u),a.currentMaxTickWidths[e]},e.updateLabels=function(e){var t=this.owner,n=t.main.select("."+r.axisX+" ."+r.axisXLabel),i=t.main.select("."+r.axisY+" ."+r.axisYLabel),o=t.main.select("."+r.axisY2+" ."+r.axisY2Label);(e?n.transition():n).attr("x",this.xForXAxisLabel.bind(this)).attr("dx",this.dxForXAxisLabel.bind(this)).attr("dy",this.dyForXAxisLabel.bind(this)).text(this.textForXAxisLabel.bind(this)),(e?i.transition():i).attr("x",this.xForYAxisLabel.bind(this)).attr("dx",this.dxForYAxisLabel.bind(this)).attr("dy",this.dyForYAxisLabel.bind(this)).text(this.textForYAxisLabel.bind(this)),(e?o.transition():o).attr("x",this.xForY2AxisLabel.bind(this)).attr("dx",this.dxForY2AxisLabel.bind(this)).attr("dy",this.dyForY2AxisLabel.bind(this)).text(this.textForY2AxisLabel.bind(this))},e.getPadding=function(e,t,n,r){var i="number"===typeof e?e:e[t];return u(i)?"ratio"===e.unit?e[t]*r:this.convertPixelsToAxisPadding(i,r):n},e.convertPixelsToAxisPadding=function(e,t){var n=this.owner;return t*(e/(n.config.axis_rotated?n.width:n.height))},e.generateTickValues=function(e,t,n){var r,i,o,a,s,u,l,f=e;if(t)if(1===(r=c(t)?t():t))f=[e[0]];else if(2===r)f=[e[0],e[e.length-1]];else if(r>2){for(a=r-2,i=e[0],s=((o=e[e.length-1])-i)/(a+1),f=[i],u=0;u<a;
2u++)l=+i+s*(u+1),f.push(n?new Date(l):l);f.push(o)}return n||(f=f.sort((function(e,t){return e-t}))),f},e.generateTransitions=function(e){var t=this.owner.axes;return{axisX:e?t.x.transition().duration(e):t.x,axisY:e?t.y.transition().duration(e):t.y,axisY2:e?t.y2.transition().duration(e):t.y2,axisSubX:e?t.subx.transition().duration(e):t.subx}},e.redraw=function(e,t){var n=this.owner;n.axes.x.style("opacity",t?0:1),n.axes.y.style("opacity",t?0:1),n.axes.y2.style("opacity",t?0:1),n.axes.subx.style("opacity",t?0:1),e.axisX.call(n.xAxis),e.axisY.call(n.yAxis),e.axisY2.call(n.y2Axis),e.axisSubX.call(n.subXAxis)};var E,k,C={version:"0.4.24"};function T(e,t,n){this.owner=e,C.chart.internal[t]=n}function j(e){var t=this.internal=new I(this);t.loadConfig(e),t.beforeInit(e),t.init(),t.afterInit(e),function e(t,n,r){Object.keys(t).forEach((function(i){n[i]=t[i].bind(r),Object.keys(t[i]).length>0&&e(t[i],n[i],r)}))}(E,this,this)}function I(e){var t=this;t.d3=window.d3?window.d3:n(189),t.api=e,t.config=t.getDefaultConfig(),t.data={},t.cache={},t.axes={}}return C.generate=function(e){return new j(e)},C.chart={fn:j.prototype,internal:{fn:I.prototype}},E=C.chart.fn,(k=C.chart.internal.fn).beforeInit=function(){},k.afterInit=function(){},k.init=function(){var e=this,t=e.config;if(e.initParams(),t.data_url)e.convertUrlToData(t.data_url,t.data_mimeType,t.data_headers,t.data_keys,e.initWithData);else if(t.data_json)e.initWithData(e.convertJsonToData(t.data_json,t.data_keys));else if(t.data_rows)e.initWithData(e.convertRowsToData(t.data_rows));else{if(!t.data_columns)throw Error("url or json or rows or columns is required.");e.initWithData(e.convertColumnsToData(t.data_columns))}},k.initParams=function(){var e=this,t=e.d3,n=e.config;e.clipId="c3-"+ +new Date+"-clip",e.clipIdForXAxis=e.clipId+"-xaxis",e.clipIdForYAxis=e.clipId+"-yaxis",e.clipIdForGrid=e.clipId+"-grid",e.clipIdForSubchart=e.clipId+"-subchart",e.clipPath=e.getClipPath(e.clipId),e.clipPathForXAxis=e.getClipPath(e.clipIdForXAxis),e.clipPathForYAxis=e.getClipPath(e.clipIdForYAxis),e.clipPathForGrid=e.getClipPath(e.clipIdForGrid),e.clipPathForSubchart=e.getClipPath(e.clipIdForSubchart),e.dragStart=null,e.dragging=!1,e.flowing=!1,e.cancelClick=!1,e.mouseover=!1,e.transiting=!1,e.color=e.generateColor(),e.levelColor=e.generateLevelColor(),e.dataTimeFormat=n.data_xLocaltime?t.time.format:t.time.format.utc,e.axisTimeFormat=n.axis_x_localtime?t.time.format:t.time.format.utc,e.defaultAxisTimeFormat=e.axisTimeFormat.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%-m/%-d",function(e){return e.getDay()&&1!==e.getDate()}],["%-m/%-d",function(e){return 1!==e.getDate()}],["%-m/%-d",function(e){return e.getMonth()}],["%Y/%-m/%-d",function(){return!0}]]),e.hiddenTargetIds=[],e.hiddenLegendIds=[],e.focusedTargetIds=[],e.defocusedTargetIds=[],e.xOrient=n.axis_rotated?n.axis_x_inner?"right":"left":n.axis_x_inner?"top":"bottom",e.yOrient=n.axis_rotated?n.axis_y_inner?"top":"bottom":n.axis_y_inner?"right":"left",e.y2Orient=n.axis_rotated?n.axis_y2_inner?"bottom":"top":n.axis_y2_inner?"left":"right",e.subXOrient=n.axis_rotated?"left":"bottom",e.isLegendRight="right"===n.legend_position,e.isLegendInset="inset"===n.legend_position,e.isLegendTop="top-left"===n.legend_inset_anchor||"top-right"===n.legend_inset_anchor,e.isLegendLeft="top-left"===n.legend_inset_anchor||"bottom-left"===n.legend_inset_anchor,e.legendStep=0,e.legendItemWidth=0,e.legendItemHeight=0,e.currentMaxTickWidths={x:0,y:0,y2:0},e.rotated_padding_left=30,e.rotated_padding_right=n.axis_rotated&&!n.axis_x_show?0:30,e.rotated_padding_top=5,e.withoutFadeIn={},e.intervalForObserveInserted=void 0,e.axes.subx=t.selectAll([])},k.initChartElements=function(){this.initBar&&this.initBar(),this.initLine&&this.initLine(),this.initArc&&this.initArc(),this.initGauge&&this.initGauge(),this.initText&&this.initText()},k.initWithData=function(e){var t,n,i=this,o=i.d3,a=i.config,s=!0;i.axis=new S(i),i.initPie&&i.initPie(),i.initBrush&&i.initBrush(),i.initZoom&&i.initZoom(),a.bindto?"function"===typeof a.bindto.node?i.selectChart=a.bindto:i.selectChart=o.select(a.bindto):i.selectChart=o.selectAll([]),i.selectChart.empty()&&(i.selectChart=o.select(document.createElement("div")).style("opacity",0),i.observeInserted(i.selectChart),s=!1),i.selectChart.html("").classed("c3",!0),i.data.xs={},i.data.targets=i.convertDataToTargets(e),a.data_filter&&(i.data.targets=i.data.targets.filter(a.data_filter)),a.data_hide&&i.addHiddenTargetIds(!0===a.data_hide?i.mapToIds(i.data.targets):a.data_hide),a.legend_hide&&i.addHiddenLegendIds(!0===a.legend_hide?i.mapToIds(i.data.targets):a.legend_hide),i.updateSizes(),i.updateScales(),i.x.domain(o.extent(i.getXDomain(i.data.targets))),i.y.domain(i.getYDomain(i.data.targets,"y")),i.y2.domain(i.getYDomain(i.data.targets,"y2")),i.subX.domain(i.x.domain()),i.subY.domain(i.y.domain()),i.subY2.domain(i.y2.domain()),i.orgXDomain=i.x.domain(),i.brush&&i.brush.scale(i.subX),a.zoom_enabled&&i.zoom.scale(i.x),i.svg=i.selectChart.append("svg").style("overflow","hidden").on("mouseenter",(function(){return a.onmouseover.call(i)})).on("mouseleave",(function(){return a.onmouseout.call(i)})),i.config.svg_classname&&i.svg.attr("class",i.config.svg_classname),t=i.svg.append("defs"),i.clipChart=i.appendClip(t,i.clipId),i.clipXAxis=i.appendClip(t,i.clipIdForXAxis),i.clipYAxis=i.appendClip(t,i.clipIdForYAxis),i.clipGrid=i.appendClip(t,i.clipIdForGrid),i.clipSubchart=i.appendClip(t,i.clipIdForSubchart),i.updateSvgSize(),n=i.main=i.svg.append("g").attr("transform",i.getTranslate("main")),i.initSubchart&&i.initSubchart(),i.initTooltip&&i.initTooltip(),i.initLegend&&i.initLegend(),i.initTitle&&i.initTitle(),n.append("text").attr("class",r.text+" "+r.empty).attr("text-anchor","middle").attr("dominant-baseline","middle"),i.initRegion(),i.initGrid(),n.append("g").attr("clip-path",i.clipPath).attr("class",r.chart),a.grid_lines_front&&i.initGridLines(),i.initEventRect(),i.initChartElements(),n.insert("rect",a.zoom_privileged?null:"g."+r.regi
vendor: 4,267 bytes, line 2
2ons).attr("class",r.zoomRect).attr("width",i.width).attr("height",i.height).style("opacity",0).on("dblclick.zoom",null),a.axis_x_extent&&i.brush.extent(i.getDefaultExtent()),i.axis.init(),i.updateTargets(i.data.targets),s&&(i.updateDimension(),i.config.oninit.call(i),i.redraw({withTransition:!1,withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransitionForAxis:!1})),i.bindResize(),i.api.element=i.selectChart.node()},k.smoothLines=function(e,t){var n=this;"grid"===t&&e.each((function(){var e=n.d3.select(this),t=e.attr("x1"),r=e.attr("x2"),i=e.attr("y1"),o=e.attr("y2");e.attr({x1:Math.ceil(t),x2:Math.ceil(r),y1:Math.ceil(i),y2:Math.ceil(o)})}))},k.updateSizes=function(){var e=this,t=e.config,n=e.legend?e.getLegendHeight():0,r=e.legend?e.getLegendWidth():0,i=e.isLegendRight||e.isLegendInset?0:n,o=e.hasArcType(),a=t.axis_rotated||o?0:e.getHorizontalAxisHeight("x"),s=t.subchart_show&&!o?t.subchart_size_height+a:0;e.currentWidth=e.getCurrentWidth(),e.currentHeight=e.getCurrentHeight(),e.margin=t.axis_rotated?{top:e.getHorizontalAxisHeight("y2")+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(),bottom:e.getHorizontalAxisHeight("y")+i+e.getCurrentPaddingBottom(),left:s+(o?0:e.getCurrentPaddingLeft())}:{top:4+e.getCurrentPaddingTop(),right:o?0:e.getCurrentPaddingRight(),bottom:a+s+i+e.getCurrentPaddingBottom(),left:o?0:e.getCurrentPaddingLeft()},e.margin2=t.axis_rotated?{top:e.margin.top,right:NaN,bottom:20+i,left:e.rotated_padding_left}:{top:e.currentHeight-s-i,right:NaN,bottom:a+i,left:e.margin.left},e.margin3={top:0,right:NaN,bottom:0,left:0},e.updateSizeForLegend&&e.updateSizeForLegend(n,r),e.width=e.currentWidth-e.margin.left-e.margin.right,e.height=e.currentHeight-e.margin.top-e.margin.bottom,e.width<0&&(e.width=0),e.height<0&&(e.height=0),e.width2=t.axis_rotated?e.margin.left-e.rotated_padding_left-e.rotated_padding_right:e.width,e.height2=t.axis_rotated?e.height:e.currentHeight-e.margin2.top-e.margin2.bottom,e.width2<0&&(e.width2=0),e.height2<0&&(e.height2=0),e.arcWidth=e.width-(e.isLegendRight?r+10:0),e.arcHeight=e.height-(e.isLegendRight?0:10),e.hasType("gauge")&&!t.gauge_fullCircle&&(e.arcHeight+=e.height-e.getGaugeLabelHeight()),e.updateRadius&&e.updateRadius(),e.isLegendRight&&o&&(e.margin3.left=e.arcWidth/2+1.1*e.radiusExpanded)},k.updateTargets=function(e){var t=this;t.updateTargetsForText(e),t.updateTargetsForBar(e),t.updateTargetsForLine(e),t.hasArcType()&&t.updateTargetsForArc&&t.updateTargetsForArc(e),t.updateTargetsForSubchart&&t.updateTargetsForSubchart(e),t.showTargets()},k.showTargets=function(){var e=this;e.svg.selectAll("."+r.target).filter((function(t){return e.isTargetToShow(t.id)})).transition().duration(e.config.transition_duration).style("opacity",1)},k.redraw=function(e,t){var n,i,o,a,s,u,c,l,f,d,h,p,g,v,m,y,_,w,x,O,S,E,k,C,T,j,I,A,P,N=this,M=N.main,R=N.d3,L=N.config,D=N.getShapeIndices(N.isAreaType),F=N.getShapeIndices(N.isBarType),V=N.getShapeIndices(N.isLineType),U=N.hasArcType(),B=N.filterTargetsToShow(N.data.targets),z=N.xv.bind(N);if(n=b(e=e||{},"withY",!0),i=b(e,"withSubchart",!0),o=b(e,"withTransition",!0),u=b(e,"withTransform",!1),c=b(e,"withUpdateXDomain",!1),l=b(e,"withUpdateOrgXDomain",!1),f=b(e,"withTrimXDomain",!0),g=b(e,"withUpdateXAxis",c),d=b(e,"withLegend",!1),h=b(e,"withEventRect",!0),p=b(e,"withDimension",!0),a=b(e,"withTransitionForExit",o),s=b(e,"withTransitionForAxis",o),x=o?L.transition_duration:0,O=a?x:0,S=s?x:0,t=t||N.axis.generateTransitions(S),d&&L.legend_show?N.updateLegend(N.mapToIds(N.data.targets),e,t):p&&N.updateDimension(!0),N.isCategorized()&&0===B.length&&N.x.domain([0,N.axes.x.selectAll(".tick").size()]),B.length?(N.updateXDomain(B,c,l,f),L.axis_x_tick_values||(C=N.axis.updateXAxisTickValues(B))):(N.xAxis.tickValues([]),N.subXAxis.tickValues([])),L.zoom_rescale&&!e.flow&&(I=N.x.orgDomain()),N.y.domain(N.getYDomain(B,"y",I)),N.y2.domain(N.getYDomain(B,"y2",I)),!L.axis_y_tick_values&&L.axis_y_tick_count&&N.yAxis.tickValues(N.axis.generateTickValues(N.y.domain(),L.axis_y_tick_count)),!L.axis_y2_tick_values&&L.axis_y2_tick_count&&N.y2Axis.tickValues(N.axis.generateTickValues(N.y2.domain(),L.axis_y2_tick_count)),N.axis.redraw(t,U),N.axis.updateLabels(o),(c||g)&&B.length)if(L.axis_x_tick_culling&&C){for(T=1;
2T<C.length;T++)if(C.length/T<L.axis_x_tick_culling_max){j=T;break}N.svg.selectAll("."+r.axisX+" .tick text").each((function(e){var t=C.indexOf(e);t>=0&&R.select(this).style("display",t%j?"none":"block")}))}else N.svg.selectAll("."+r.axisX+" .tick text").style("display","block");v=N.generateDrawArea?N.generateDrawArea(D,!1):void 0,m=N.generateDrawBar?N.generateDrawBar(F):void 0,y=N.generateDrawLine?N.generateDrawLine(V,!1):void 0,_=N.generateXYForText(D,F,V,!0),w=N.generateXYForText(D,F,V,!1),n&&(N.subY.domain(N.getYDomain(B,"y")),N.subY2.domain(N.getYDomain(B,"y2"))),N.updateXgridFocus(),M.select("text."+r.text+"."+r.empty).attr("x",N.width/2).attr("y",N.height/2).text(L.data_empty_label_text).transition().style("opacity",B.length?0:1),N.updateGrid(x),N.updateRegion(x),N.updateBar(O),N.updateLine(O),N.updateArea(O),N.updateCircle(),N.hasDataLabel()&&N.updateText(O),N.redrawTitle&&N.redrawTitle(),N.redrawArc&&N.redrawArc(x,O,u),N.redrawSubchart&&N.redrawSubchart(i,t,x,O,D,F,V),M.selectAll("."+r.selectedCircles).filter(N.isBarType.bind(N)).selectAll("circle").remove(),L.interaction_enabled&&!e.flow&&h&&(N.redrawEventRect(),N.updateZoom&&N.updateZoom()),N.updateCircleY(),A=(N.config.axis_rotated?N.circleY:N.circleX).bind(N),P=(N.config.axis_rotated?N.circleX:N.circleY).bind(N),e.flow&&(k=N.generateFlow({targets:B,flow:e.flow,duration:e.flow.duration,drawBar:m,drawLine
2:y,drawArea:v,cx:A,cy:P,xv:z,xForText:_,yForText:w})),(x||k)&&N.isTabVisible()?R.transition().duration(x).each((function(){var t=[];[N.redrawBar(m,!0),N.redrawLine(y,!0),N.redrawArea(v,!0),N.redrawCircle(A,P,!0),N.redrawText(_,w,e.flow,!0),N.redrawRegion(!0),N.redrawGrid(!0)].forEach((function(e){e.forEach((function(e){t.push(e)}))})),E=N.generateWait(),t.forEach((function(e){E.add(e)}))})).call(E,(function(){k&&k(),L.onrendered&&L.onrendered.call(N)})):(N.redrawBar(m),N.redrawLine(y),N.redrawArea(v),N.redrawCircle(A,P),N.redrawText(_,w,e.flow),N.redrawRegion(),N.redrawGrid(),L.onrendered&&L.onrendered.call(N)),N.mapToIds(N.data.targets).forEach((function(e){N.withoutFadeIn[e]=!0}))},k.updateAndRedraw=function(e){var t,n=this,r=n.config;(e=e||{}).withTransition=b(e,"withTransition",!0),e.withTransform=b(e,"withTransform",!1),e.withLegend=b(e,"withLegend",!1),e.withUpdateXDomain=!0,e.withUpdateOrgXDomain=!0,e.withTransitionForExit=!1,e.withTransitionForTransform=b(e,"withTransitionForTransform",e.withTransition),n.updateSizes(),e.withLegend&&r.legend_show||(t=n.axis.generateTransitions(e.withTransitionForAxis?r.transition_duration:0),n.updateScales(),n.updateSvgSize(),n.transformAll(e.withTransitionForTransform,t)),n.redraw(e,t)},k.redrawWithoutRescale=function(){this.redraw({withY:!1,withSubchart:!1,withEventRect:!1,withTransitionForAxis:!1})},k.isTimeSeries=function(){return"timeseries"===this.config.axis_x_type},k.isCategorized=function(){return this.config.axis_x_type.indexOf("categor")>=0},k.isCustomX=function(){var e=this,t=e.config;return!e.isTimeSeries()&&(t.data_x||y(t.data_xs))},k.isTimeSeriesY=function(){return"timeseries"===this.config.axis_y_type},k.getTranslate=function(e){var t,n,r=this,i=r.config;return"main"===e?(t=g(r.margin.left),n=g(r.margin.top)):"context"===e?(t=g(r.margin2.left),n=g(r.margin2.top)):"legend"===e?(t=r.margin3.left,n=r.margin3.top):"x"===e?(t=0,n=i.axis_rotated?0:r.height):"y"===e?(t=0,n=i.axis_rotated?r.height:0):"y2"===e?(t=i.axis_rotated?0:r.width,n=i.axis_rotated?1:0):"subx"===e?(t=0,n=i.axis_rotated?0:r.height2):"arc"===e&&(t=r.arcWidth/2,n=r.arcHeight/2-(r.hasType("gauge")?6:0)),"translate("+t+","+n+")"},k.initialOpacity=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?1:0},k.initialOpacityForCircle=function(e){return null!==e.value&&this.withoutFadeIn[e.id]?this.opacityForCircle(e):0},k.opacityForCircle=function(e){var t=(c(this.config.point_show)?this.config.point_show(e):this.config.point_show)?1:0;return u(e.value)?this.isScatterType(e)?.5:t:0},k.opacityForText=function(){return this.hasDataLabel()?1:0},k.xx=function(e){return e?this.x(e.x):null},k.xv=function(e){var t=this,n=e.value;return t.isTimeSeries()?n=t.parseDate(e.value):t.isCategorized()&&"string"===typeof e.value&&(n=t.config.axis_x_categories.indexOf(e.value)),Math.ceil(t.x(n))},k.yv=function(e){var t=this,n=e.axis&&"y2"===e.axis?t.y2:t.y;return Math.ceil(n(e.value))},k.subxx=function(e){return e?this.subX(e.x):null},k.transformMain=function(e,t){var n,i,o,a=this;t&&t.axisX?n=t.axisX:(n=a.main.select("."+r.axisX),e&&(n=n.transition())),t&&t.axisY?i=t.axisY:(i=a.main.select("."+r.axisY),e&&(i=i.transition())),t&&t.axisY2?o=t.axisY2:(o=a.main.select("."+r.axisY2),e&&(o=o.transition())),(e?a.main.transition():a.main).attr("transform",a.getTranslate("main")),n.attr("transform",a.getTranslate("x")),i.attr("transform",a.getTranslate("y")),o.attr("transform",a.getTranslate("y2")),a.main.select("."+r.chartArcs).attr("transform",a.getTranslate("arc"))},k.transformAll=function(e,t){var n=this;n.transformMain(e,t),n.config.subchart_show&&n.transformContext(e,t),n.legend&&n.transformLegend(e)},k.updateSvgSize=function(){var e=this,t=e.svg.select(".c3-brush .background");e.svg.attr("width",e.currentWidth).attr("height",e.currentHeight),e.svg.selectAll(["#"+e.clipId,"#"+e.clipIdForGrid]).select("rect").attr("width",e.width).attr("height",e.height),e.svg.select("#"+e.clipIdForXAxis).select("rect").attr("x",e.getXAxisClipX.bind(e)).attr("y",e.getXAxisClipY.bind(e)).attr("width",e.getXAxisClipWidth.bind(e)).attr("height",e.getXAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForYAxis).select("rect").attr("x",e.getYAxisClipX.bind(e)).attr("y",e.getYAxisClipY.bind(e)).attr("width",e.getYAxisClipWidth.bind(e)).attr("height",e.getYAxisClipHeight.bind(e)),e.svg.select("#"+e.clipIdForSubchart).select("rect").attr("width",e.width).attr("height",t.size()?t.attr("height"):0),e.svg.select("."+r.zoomRect).attr("width",e.width).attr("height",e.height),e.selectChart.style("max-height",e.currentHeight+"px")},k.updateDimension=function(e){var t=this;e||(t.config.axis_rotated?(t.axes.x.call(t.xAxis),t.axes.subx.call(t.subXAxis)):(t.axes.y.call(t.yAxis),t.axes.y2.call(t.y2Axis))),t.updateSizes(),t.updateScales(),t.updateSvgSize(),t.transformAll(!1)},k.observeInserted=function(e){var t,n=this;"undefined"!==typeof MutationObserver?(t=new MutationObserver((function(r){r.forEach((function(r){"childList"===r.type&&r.previousSibling&&(t.disconnect(),n.intervalForObserveInserted=window.setInterval((function(){e.node().parentNode&&(window.clearInterval(n.intervalForObserveInserted),n.updateDimension(),n.brush&&n.brush.update(),n.config.oninit.call(n),n.redraw({withTransform:!0,withUpdateXDomain:!0,withUpdateOrgXDomain:!0,withTransition:!1,withTransitionForTransform:!1,withLegend:!0}),e.transition().style("opacity",1))}),10))}))}))).observe(e.node(),{attributes:!0,childList:!0,characterData:!0}
2):window.console.error("MutationObserver not defined.")},k.bindResize=function(){var e=this,t=e.config;if(e.resizeFunction=e.generateResize(),e.resizeFunction.add((function(){t.onresize.call(e)})),t.resize_auto&&e.resizeFunction.add((function(){void 0!==e.resizeTimeout&&window.clearTimeout(e.resizeTimeout),e.resizeTimeout=window.setTimeout((function(){delete e.resizeTimeout,e.api.flush()}),100)})),e.resizeFunction.add((function(){t.onresized.call(e)})),e.resizeIfElementDisplayed=function(){null!=e.api&&e.api.element.offsetParent&&e.resizeFunction()},window.attachEvent)window.attachEvent("onresize",e.resizeIfElementDisplayed);else if(window.addEventListener)window.addEventListener("resize",e.resizeIfElementDisplayed,!1);else{var n=window.onresize;n?n.add&&n.remove||(n=e.generateResize()).add(window.onresize):n=e.generateResize(),n.add(e.resizeFunction),window.onresize=function(){e.api.element.offsetParent&&n()}}},k.generateResize=function(){var e=[];function t(){e.forEach((function(e){e()}))}return t.add=function(t){e.push(t)},t.remove=function(t){for(var n=0;n<e.length;n++)if(e[n]===t){e.splice(n,1);break}},t},k.endall=function(e,t){var n=0;e.each((function(){++n})).each("end",(function(){--n||t.apply(this,arguments)}))},k.generateWait=function(){var e=[],t=function(t,n){var r=setInterval((function(){var t=0;e.forEach((function(e){if(e.empty())t+=1;else try{e.transition()}catch(n){t+=1}})),t===e.length&&(clearInterval(r),n&&n())}),10)};return t.add=function(t){e.push(t)},t},k.parseDate=function(e){var t,n=this;return e instanceof Date?t=e:"string"===typeof e?t=n.dataTimeFormat(n.config.data_xFormat).parse(e):"object"===("undefined"===typeof e?"undefined":i(e))?t=new Date(+e):"number"!==typeof e||isNaN(e)||(t=new Date(+e)),t&&!isNaN(+t)||window.console.error("Failed to parse x '"+e+"' to Date object"),t},k.isTabVisible=function(){var e;return"undefined"!==typeof document.hidden?e="hidden":"undefined"!==typeof document.mozHidden?e="mozHidden":"undefined"!==typeof document.msHidden?e="msHidden":"undefined"!==typeof document.webkitHidden&&(e="webkitHidden"),!document[e]},k.isValue=u,k.isFunction=c,k.isString=f,k.isUndefined=d,k.isDefined=h,k.ceil10=p,k.asHalfPixel=g,k.diffDomain=v,k.isEmpty=m,k.notEmpty=y,k.notEmpty=y,k.getOption=b,k.hasValue=_,k.sanitise=w,k.getPathBox=x,k.CLASS=r,Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!==typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,r=function(){},i=function(){return n.apply(this instanceof r?this:e,t.concat(Array.prototype.slice.call(arguments)))};return r.prototype=this.prototype,i.prototype=new r,i}),"SVGPathSeg"in window||(window.SVGPathSeg=function(e,t,n){this.pathSegType=e,this.pathSegTypeAsLetter=t,this._owningPathSegList=n},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",e)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",e),this._x=t,this._y=n},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)}
vendor: 19,658 bytes, line 2
2,Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",e),this._x=t,this._y=n},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",e),this._x=t,this._y=n},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",e),this._x=t,this._y=n},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(e,t,n,r,i,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",e),this._x=t,this._y=n,this._x1=r,this._y1=i,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(e,t,n,r,i,o,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",e),this._x=t,this._y=n,this._x1=r,this._y1=i,this._x2=o,this._y2=a},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",e),this._x=t,this._y=n,this._x1=r,this._y1=i},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",e),this._x=t,this._y=n,this._x1=r,this._y1=i},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(e){this._x1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(e){this._y1=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(e,t,n,r,i,o,a,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",e),this._x=t,this._y=n,this._r1=r,this._r2=i,this._angle=o,this._largeArcFlag=a,this._sweepFlag=s},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(e,t,n,r,i,o,a,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",e),this._x=t,this._y=n,this._r1=r,this._r2=i,this._angle=o,this._largeArcFlag=a,this._sweepFlag=s},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(e){this._r1=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(e){this._r2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(e){this._angle=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(e){this._largeArcFlag=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(e){this._sweepFlag=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",e),this._x=t},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",e),this._x=t},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",e),this._y=t},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(e,t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",e),this._y=t},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",e),this._x=t,this._y=n,this._x2=r,this._y2=i},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",e),this._x=t,this._y=n,this._x2=r,this._y2=i},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(e){this._x2=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(e){this._y2=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",e),this._x=t,this._y=n},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)}
2,Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(e,t,n){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",e),this._x=t,this._y=n},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(e){this._x=e,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(e){this._y=e,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(e,t){return new window.SVGPathSegMovetoAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(e,t){return new window.SVGPathSegMovetoRel(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(e,t){return new window.SVGPathSegLinetoAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(e,t){return new window.SVGPathSegLinetoRel(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(e,t,n,r,i,o){return new window.SVGPathSegCurvetoCubicAbs(void 0,e,t,n,r,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(e,t,n,r,i,o){return new window.SVGPathSegCurvetoCubicRel(void 0,e,t,n,r,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(e,t,n,r){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(e,t,n,r){return new window.SVGPathSegCurvetoQuadraticRel(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(e,t,n,r,i,o,a){return new window.SVGPathSegArcAbs(void 0,e,t,n,r,i,o,a)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(e,t,n,r,i,o,a){return new window.SVGPathSegArcRel(void 0,e,t,n,r,i,o,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(e){return new window.SVGPathSegLinetoHorizontalAbs(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(e){return new window.SVGPathSegLinetoHorizontalRel(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(e){return new window.SVGPathSegLinetoVerticalAbs(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(e){return new window.SVGPathSegLinetoVerticalRel(void 0,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(e,t,n,r){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(e,t,n,r){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,e,t,n,r)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(e,t){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,e,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(e,t){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,e,t)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(e){if(void 0===e||!isFinite(e))throw"Invalid arguments.";var t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",this.getAttribute("d"));var n=t.pathSegList.numberOfItems-1;if(n<=0)return 0;do{if(t.pathSegList.removeItem(n),e>t.getTotalLength())break;n--}while(n>0);return n})),"SVGPathSegList"in window||(window.SVGPathSegList=function(e){this._pathElement=e,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(e){if(this._pathElement){var t=!1;e.forEach((function(e){"d"==e.attributeName&&(t=!0)})),t&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(e){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(e){e._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(e){return this._checkPathSynchronizedToList(),this._list=[e],e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype._checkValidIndex=function(e){if(isNaN(e)||e<0||e>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(e){return this._checkPathSynchronizedToList(),this._checkValidIndex(e),this._list[e]},window.SVGPathSegList.prototype.insertItemBefore=function(e,t){return this._checkPathSynchronizedToList(),t>this.numberOfItems&&(t=this.numberOfItems),e._owningPathSegList&&(e=e.clone()),this._list.splice(t,0,e),e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype.replaceItem=function(e,t){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._checkValidIndex(t),this._list[t]=e,e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList.prototype.removeItem=function(e){this._checkPathSynchronizedToList(),this._checkValidIndex(e);var t=this._list[e];return this._list.splice(e,1),this._writeListToPath(),t},window.SVGPathSegList.prototype.appendItem=function(e){return this._checkPathSynchronizedToList(),e._owningPathSegList&&(e=e.clone()),this._list.push(e),e._owningPathSegList=this,this._writeListToPath(),e},window.SVGPathSegList._pathSegArrayAsString=function(e){var t="",n=!0;return e.forEach((function(e){n?(n=!1,t+=e._asPathString()):t+=" "+e._asPathString()})),t},window.SVGPathSegList.prototype._parsePath=function(e){if(!e||0==e.length)return[];var t=this,n=function(){this.pathSegList=[]};n.prototype.appendSegment=function(e){this.pathSegList.push(e)};var r=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};
vendor: 4,113 bytes, line 2
2r.prototype._isCurrentSpace=function(){var e=this._string[this._currentIndex];return e<=" "&&(" "==e||"\n"==e||"\t"==e||"\r"==e||"\f"==e)},r.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},r.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},r.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},r.prototype.peekSegmentType=function(){var e=this._string[this._currentIndex];return this._pathSegTypeFromChar(e)},r.prototype._pathSegTypeFromChar=function(e){switch(e){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},r.prototype._nextCommandHelper=function(e,t){return("+"==e||"-"==e||"."==e||e>="0"&&e<="9")&&t!=window.SVGPathSeg.PATHSEG_CLOSEPATH?t==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:t==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:t:window.SVGPathSeg.PATHSEG_UNKNOWN},r.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e==window.SVGPathSeg.PATHSEG_MOVETO_ABS||e==window.SVGPathSeg.PATHSEG_MOVETO_REL},r.prototype._parseNumber=function(){var e=0,t=0,n=1,r=0,i=1,o=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,i=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var s=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=s)for(var u=this._currentIndex-1,c=1;u>=s;)t+=c*(this._string.charAt(u--)-"0"),c*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)n*=10,r+=(this._string.charAt(this._currentIndex)-"0")/n,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if
2(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,o=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)e*=10,e+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var l=t+r;if(l*=i,e&&(l*=Math.pow(10,o*e)),a!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),l}},r.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var e=!1,t=this._string.charAt(this._currentIndex++);if("0"==t)e=!1;else{if("1"!=t)return;e=!0}return this._skipOptionalSpacesOrDelimiter(),e}},r.prototype.parseSegment=function(){var e=this._string[this._currentIndex],n=this._pathSegTypeFromChar(e);if(n==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((n=this._nextCommandHelper(e,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=n,n){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(t,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(t);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(t,r.x,r.y,r.x1,r.y1,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(t,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return r={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(t,r.x,r.y,r.x2,r.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(t,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(t,r.x,r.y,r.x1,r.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(t,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return r={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(t,r.x,r.y,r.x1,r.y1,r.arcAngle,r.arcLarge,r.arcSweep);default:throw"Unknown path seg type."}};var i=new n,o=new r(e);if(!o.initialCommandIsMoveTo())return[];for(;o.hasMoreData();){var a=o.parseSegment();if(!a)return[];i.appendSegment(a)}return i.pathSegList}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String("undefined"!==typeof t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))}),E.axis=function(){},E.axis.labels=function(e){var t=this.internal;arguments.length&&(Object.keys(e).forEach((function(n){t.axis.setLabelText(n,e[n])})),t.axis.updateLabels())},E.axis.max=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_max,y:n.axis_y_max,y2:n.axis_y2_max};"object"===("undefined"===typeof e?"undefined":i(e))?(u(e.x)&&(n.axis_x_max=e.x),u(e.y)&&(n.axis_y_max=e.y),u(e.y2)&&(n.axis_y2_max=e.y2)):n.axis_y_max=n.axis_y2_max=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},E.axis.min=function(e){var t=this.internal,n=t.config;if(!arguments.length)return{x:n.axis_x_min,y:n.axis_y_min,y2:n.axis_y2_min};"object"===("undefined"===typeof e?"undefined":i(e))?(u(e.x)&&(n.axis_x_min=e.x),u(e.y)&&(n.axis_y_min=e.y),u(e.y2)&&(n.axis_y2_min=e.y2)):n.axis_y_min=n.axis_y2_min=e,t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})},E.axis.range=function(e){if(!arguments.length)return{max:this.axis.max(),min:this.axis.min()};h(e.max)&&this.axis.max(e.max),h(e.min)&&this.axis.min(e.min)},E.category=function(e,t){var n=this.internal,r=n.config;return arguments.length>1&&(r.axis_x_categories[e]=t,n.redraw()),r.axis_x_categories[e]},E.categories=function(e){var t=this.internal,n=t.config;return arguments.length?(n.axis_x_categories=e,t.redraw(),n.axis_x_categories):n.axis_x_categories},E.resize=function(e){var t=this.internal.config;t.size_width=e?e.width:null,t.size_height=e?e.height:null,this.flush()},E.flush=function(){this.internal.updateAndRedraw({withLegend:!0,withTransition:!1,withTransitionForTransform:!1})},E.destroy=function(){var e=this.internal;if(window.clearInterval(e.intervalForObserveInserted),void 0!==e.resizeTimeout&&window.clearTimeout(e.resizeTimeout),window.detachEvent)window.detachEvent("onresize",e.resizeIfElementDisplayed);else if(window.removeEventListener)window.removeEventListener("resize",e.resizeIfElementDisplayed);else{var t=window.onresize;t&&t.add&&t.remove&&t.remove(e.resizeFunction)}return e.resizeFunction.remove(),e.selectChart.classed("c3",!1).html(""),Object.keys(e).forEach((function(t){e[t]=null})),null},E.color=function(e){return this.internal.color(e)},E.data=function(e){var t=this.internal.data.targets;return"undefined"===typeof e?t:t.filter((function(t){return[].concat(e).indexOf(t.id)>=0}))},E.data.shown=function(e){return this.internal.filterTargetsToShow(this.data(e))},E.data.values=function(e){var t,n=null;return e&&(n=(t=this.data(e))[0]?t[0].values.map((function(e){return e.value})):null),n},E.data.names=function(e){return this.internal.clearLegendItemTextBoxCache(),this.internal.updateDataAttributes("names",e)},E.data.colors=function(e){return this.internal.updateDataAttributes("colors",e)},E.data.axes=function(e){return this.internal.updateDataAttributes("axes",e)},E.flow=function(e){var t,n,r,i,o,a,s,c=this.internal,l=[],f=c.getMaxDataCount(),d=0,p=0;if(e.json)n=c.convertJsonToData(e.json,e.keys);else if(e.rows)n=c.convertRowsToData(e.rows);else{if(!e.columns)return;n=c.convertColumnsToData(e.columns)}
2t=c.convertDataToTargets(n,!0),c.data.targets.forEach((function(e){var n,r,i=!1;for(n=0;n<t.length;n++)if(e.id===t[n].id){for(i=!0,e.values[e.values.length-1]&&(p=e.values[e.values.length-1].index+1),d=t[n].values.length,r=0;r<d;r++)t[n].values[r].index=p+r,c.isTimeSeries()||(t[n].values[r].x=p+r);e.values=e.values.concat(t[n].values),t.splice(n,1);break}i||l.push(e.id)})),c.data.targets.forEach((function(e){var t,n;for(t=0;t<l.length;t++)if(e.id===l[t])for(p=e.values[e.values.length-1].index+1,n=0;n<d;n++)e.values.push({id:e.id,index:p+n,x:c.isTimeSeries()?c.getOtherTargetX(p+n):p+n,value:null})})),c.data.targets.length&&t.forEach((function(e){var t,n=[];for(t=c.data.targets[0].values[0].index;t<p;t++)n.push({id:e.id,index:t,x:c.isTimeSeries()?c.getOtherTargetX(t):t,value:null});e.values.forEach((function(e){e.index+=p,c.isTimeSeries()||(e.x+=p)})),e.values=n.concat(e.values)})),c.data.targets=c.data.targets.concat(t),c.getMaxDataCount(),o=(i=c.data.targets[0]).values[0],h(e.to)?(d=0,s=c.isTimeSeries()?c.parseDate(e.to):e.to,i.values.forEach((function(e){e.x<s&&d++}))):h(e.length)&&(d=e.length),f?1===f&&c.isTimeSeries()&&(a=(i.values[i.values.length-1].x-o.x)/2,r=[new Date(+o.x-a),new Date(+o.x+a)],c.updateXDomain(null,!0,!0,!1,r)):(a=c.isTimeSeries()?i.values.length>1?i.values[i.values.length-1].x-o.x:o.x-c.getXDomain(c.data.targets)[0]:1,r=[o.x-a,o.x],c.updateXDomain(null,!0,!0,!1,r)),c.updateTargets(c.data.targets),c.redraw({flow:{index:o.index,length:d,duration:u(e.duration)?e.duration:c.config.transition_duration,done:e.done,orgDataCount:f},withLegend:!0,withTransition:f>1,withTrimXDomain:!1,withUpdateXAxis:!0})},k.generateFlow=function(e){var t=this,n=t.config,i=t.d3;return function(){var o,a,s,u=e.targets,c=e.flow,l=e.drawBar,f=e.drawLine,d=e.drawArea,h=e.cx,p=e.cy,g=e.xv,m=e.xForText,y=e.yForText,b=e.duration,_=1,w=c.index,x=c.length,O=t.getValueOnIndex(t.data.targets[0].values,w),S=t.getValueOnIndex(t.data.targets[0].values,w+x),E=t.x.domain(),k=c.duration||b,C=c.done||function(){},T=t.generateWait(),j=t.xgrid||i.selectAll([]),I=t.xgridLines||i.selectAll([]),A=t.mainRegion||i.selectAll([]),P=t.mainText||i.selectAll([]),N=t.mainBar||i.selectAll([]),M=t.mainLine||i.selectAll([]),R=t.mainArea||i.selectAll([]),L=t.mainCircle||i.selectAll([]);t.flowing=!0,t.data.targets.forEach((function(e){e.values.splice(0,x)})),s=t.updateXDomain(u,!0,!0),t.updateXGrid&&t.updateXGrid(!0),c.orgDataCount?o=1===c.orgDataCount||(O&&O.x)===(S&&S.x)||t.isTimeSeries()?t.x(E[0])-t.x(s[0]):t.x(O.x)-t.x(S.x):1!==t.data.targets[0].values.length?o=t.x(E[0])-t.x(s[0]):t.isTimeSeries()?(O=t.getValueOnIndex(t.data.targets[0].values,0),S=t.getValueOnIndex(t.data.targets[0].values,t.data.targets[0].values.length-1),o=t.x(O.x)-t.x(S.x)):o=v(s)/2,_=v(E)/v(s),a="translate("+o+",0) scale("+_+",1)",t.hideXGridFocus(),i.transition().ease("linear").duration(k).each((function(){T.add(t.axes.x.transition().call(t.xAxis)),T.add(N.transition().attr("transform",a)),T.add(M.transition().attr("transform",a)),T.add(R.transition().attr("transform",a)),T.add(L.transition().attr("transform",a)),T.add(P.transition().attr("transform",a)),T.add(A.filter(t.isRegionOnX).transition().attr("transform",a)),T.add(j.transition().attr("transform",a)),T.add(I.transition().attr("transform",a))})).call(T,(function(){var e,i=[],o=[],a=[];if(x){for(e=0;e<x;e++)i.push("."+r.shape+"-"+(w+e)),o.push("."+r.text+"-"+(w+e)),a.push("."+r.eventRect+"-"+(w+e));t.svg.selectAll("."+r.shapes).selectAll(i).remove(),t.svg.selectAll("."+r.texts).selectAll(o).remove(),t.svg.selectAll("."+r.eventRects).selectAll(a).remove(),t.svg.select("."+r.xgrid).remove()}j.attr("transform",null).attr(t.xgridAttr),I.attr("transform",null),I.select("line").attr("x1",n.axis_rotated?0:g).attr("x2",n.axis_rotated?t.width:g),I.select("text").attr("x",n.axis_rotated?t.width:0).attr("y",g),N.attr("transform",null).attr("d",l),M.attr("transform",null).attr("d",f),R.attr("transform",null).attr("d",d),L.attr("transform",null).attr("cx",h).attr("cy",p),P.attr("transform",null).attr("x",m).attr("y",y).style("fill-opacity",t.opacityForText.bind(t)),A.attr("transform",null),A.select("rect").filter(t.isRegionOnX).attr("x",t.regionX.bind(t)).attr("width",t.regionWidth.bind(t)),n.interaction_enabled&&t.redrawEventRect(),C(),t.flowing=!1}))}},E.focus=function(e){var t,n=this.internal;e=n.mapToTargetIds(e),t=n.svg.selectAll(n.selectorTargets(e.filter(n.isTargetToShow,n))),this.revert(),this.defocus(),t.classed(r.focused,!0).classed(r.defocused,!1),n.hasArcType()&&n.expandArc(e),n.toggleFocusLegend(e,!0),n.focusedTargetIds=e,n.defocusedTargetIds=n.defocusedTargetIds.filter((function(t){return e.indexOf(t)<0}))},E.defocus=function(e){var t=this.internal;e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e.filter(t.isTargetToShow,t))).classed(r.focused,!1).classed(r.defocused,!0),t.hasArcType()&&t.unexpandArc(e),t.toggleFocusLegend(e,!1),t.focusedTargetIds=t.focusedTargetIds.filter((function(t){return e.indexOf(t)<0})),t.defocusedTargetIds=e},E.revert=function(e){var t=this.internal;e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e)).classed(r.focused,!1).classed(r.defocused,!1),t.hasArcType()&&t.unexpandArc(e),t.config.legend_show&&(t.showLegend(e.filter(t.isLegendToShow.bind(t))),t.legend.selectAll(t.selectorLegends(e)).filter((function(){return t.d3.select(this).classed(r.legendItemFocused)})).classed(r.legendItemFocused,!1)),t.focusedTargetIds=[],t.defocusedTargetIds=[]},E.xgrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_x_lines=e,t.redrawWithoutRescale(),n.grid_x_lines):n.grid_x_lines},E.xgrids.add=function(e){var t=this.internal;
2return this.xgrids(t.config.grid_x_lines.concat(e||[]))},E.xgrids.remove=function(e){this.internal.removeGridLines(e,!0)},E.ygrids=function(e){var t=this.internal,n=t.config;return e?(n.grid_y_lines=e,t.redrawWithoutRescale(),n.grid_y_lines):n.grid_y_lines},E.ygrids.add=function(e){var t=this.internal;return this.ygrids(t.config.grid_y_lines.concat(e||[]))},E.ygrids.remove=function(e){this.internal.removeGridLines(e,!1)},E.groups=function(e){var t=this.internal,n=t.config;return d(e)||(n.data_groups=e,t.redraw()),n.data_groups},E.legend=function(){},E.legend.show=function(e){var t=this.internal;t.showLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},E.legend.hide=function(e){var t=this.internal;t.hideLegend(t.mapToTargetIds(e)),t.updateAndRedraw({withLegend:!0})},E.load=function(e){var t=this.internal,n=t.config;e.xs&&t.addXs(e.xs),"names"in e&&E.data.names.bind(this)(e.names),"classes"in e&&Object.keys(e.classes).forEach((function(t){n.data_classes[t]=e.classes[t]})),"categories"in e&&t.isCategorized()&&(n.axis_x_categories=e.categories),"axes"in e&&Object.keys(e.axes).forEach((function(t){n.data_axes[t]=e.axes[t]})),"colors"in e&&Object.keys(e.colors).forEach((function(t){n.data_colors[t]=e.colors[t]})),"cacheIds"in e&&t.hasCaches(e.cacheIds)?t.load(t.getCaches(e.cacheIds),e.done):"unload"in e?t.unload(t.mapToTargetIds("boolean"===typeof e.unload&&e.unload?null:e.unload),(function(){t.loadFromArgs(e)})):t.loadFromArgs(e)},E.unload=function(e){var t=this.internal;(e=e||{})instanceof Array?e={ids:e}:"string"===typeof e&&(e={ids:[e]}),t.unload(t.mapToTargetIds(e.ids),(function(){t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),e.done&&e.done()}))},E.regions=function(e){var t=this.internal,n=t.config;return e?(n.regions=e,t.redrawWithoutRescale(),n.regions):n.regions},E.regions.add=function(e){var t=this.internal,n=t.config;return e?(n.regions=n.regions.concat(e),t.redrawWithoutRescale(),n.regions):n.regions},E.regions.remove=function(e){var t,n,i,o=this.internal,a=o.config;return e=e||{},t=o.getOption(e,"duration",a.transition_duration),n=o.getOption(e,"classes",[r.region]),i=o.main.select("."+r.regions).selectAll(n.map((function(e){return"."+e}))),(t?i.transition().duration(t):i).style("opacity",0).remove(),a.regions=a.regions.filter((function(e){var t=!1;return!e.class||(e.class.split(" ").forEach((function(e){n.indexOf(e)>=0&&(t=!0)})),!t)})),a.regions},E.selected=function(e){var t=this.internal,n=t.d3;return n.merge(t.main.selectAll("."+r.shapes+t.getTargetSelectorSuffix(e)).selectAll("."+r.shape).filter((function(){return n.select(this).classed(r.SELECTED)})).map((function(e){return e.map((function(e){var t=e.__data__;return t.data?t.data:t}))})))},E.select=function(e,t,n){var i=this.internal,o=i.d3,a=i.config;a.data_selection_enabled&&i.main.selectAll("."+r.shapes).selectAll("."+r.shape).each((function(s,u){var c=o.select(this),l=s.data?s.data.id:s.id,f=i.getToggle(this,s).bind(i),d=a.data_selection_grouped||!e||e.indexOf(l)>=0,p=!t||t.indexOf(u)>=0,g=c.classed(r.SELECTED);c.classed(r.line)||c.classed(r.area)||(d&&p?a.data_selection_isselectable(s)&&!g&&f(!0,c.classed(r.SELECTED,!0),s,u):h(n)&&n&&g&&f(!1,c.classed(r.SELECTED,!1),s,u))}))},E.unselect=function(e,t){var n=this.internal,i=n.d3,o=n.config;o.data_selection_enabled&&n.main.selectAll("."+r.shapes).selectAll("."+r.shape).each((function(a,s){var u=i.select(this),c=a.data?a.data.id:a.id,l=n.getToggle(this,a).bind(n),f=o.data_selection_grouped||!e||e.indexOf(c)>=0,d=!t||t.indexOf(s)>=0,h=u.classed(r.SELECTED);u.classed(r.line)||u.classed(r.area)||f&&d&&o.data_selection_isselectable(a)&&h&&l(!1,u.classed(r.SELECTED,!1),a,s)}))},E.show=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.removeHiddenTargetIds(e),(n=r.svg.selectAll(r.selectorTargets(e))).transition().style("opacity",1,"important").call(r.endall,(function(){n.style("opacity",null).style("opacity",1)})),t.withLegend&&r.showLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},E.hide=function(e,t){var n,r=this.internal;e=r.mapToTargetIds(e),t=t||{},r.addHiddenTargetIds(e),(n=r.svg.selectAll(r.selectorTargets(e))).transition().style("opacity",0,"important").call(r.endall,(function(){n.style("opacity",null).style("opacity",0)})),t.withLegend&&r.hideLegend(e),r.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0})},E.toggle=function(e,t){var n=this,r=this.internal;r.mapToTargetIds(e).forEach((function(e){r.isTargetToShow(e)?n.hide(e,t):n.show(e,t)}))},E.tooltip=function(){},E.tooltip.show=function(e){var t,n,r=this.internal;e.mouse&&(n=e.mouse),e.data?r.isMultipleX()?(n=[r.x(e.data.x),r.getYScale(e.data.id)(e.data.value)],t=null):t=u(e.data.index)?e.data.index:r.getIndexByX(e.data.x):"undefined"!==typeof e.x?t=r.getIndexByX(e.x):"undefined"!==typeof e.index&&(t=e.index),r.dispatchEvent("mouseover",t,n
2),r.dispatchEvent("mousemove",t,n),r.config.tooltip_onshow.call(r,e.data)},E.tooltip.hide=function(){this.internal.dispatchEvent("mouseout",0),this.internal.config.tooltip_onhide.call(this)},E.transform=function(e,t){var n=this.internal,r=["pie","donut"].indexOf(e)>=0?{withTransform:!0}:null;n.transformTo(t,e,r)},k.transformTo=function(e,t,n){var r=this,i=!r.hasArcType(),o=n||{withTransitionForAxis:i};o.withTransitionForTransform=!1,r.transiting=!1,r.setTargetType(e,t),r.updateTargets(r.data.targets),r.updateAndRedraw(o)},E.x=function(e){var t=this.internal;return arguments.length&&(t.updateTargetX(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},E.xs=function(e){var t=this.internal;return arguments.length&&(t.updateTargetXs(t.data.targets,e),t.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0})),t.data.xs},E.zoom=function(e){var t=this.internal;return e&&(t.isTimeSeries()&&(e=e.map((function(e){return t.parseDate(e)}))),t.brush.extent(e),t.redraw({withUpdateXDomain:!0,withY:t.config.zoom_rescale}),t.config.zoom_onzoom.call(this,t.x.orgDomain())),t.brush.extent()},E.zoom.enable=function(e){var t=this.internal;t.config.zoom_enabled=e,t.updateAndRedraw()},E.unzoom=function(){var e=this.internal;e.brush.clear().update(),e.redraw({withUpdateXDomain:!0})},E.zoom.max=function(e){var t=this.internal,n=t.config,r=t.d3;if(0!==e&&!e)return n.zoom_x_max;n.zoom_x_max=r.max([t.orgXDomain[1],e])},E.zoom.min=function(e){var t=this.internal,n=t.config,r=t.d3;if(0!==e&&!e)return n.zoom_x_min;n.zoom_x_min=r.min([t.orgXDomain[0],e])},E.zoom.range=function(e){if(!arguments.length)return{max:this.domain.max(),min:this.domain.min()};h(e.max)&&this.domain.max(e.max),h(e.min)&&this.domain.min(e.min)},k.initPie=function(){var e=this,t=e.d3;e.pie=t.layout.pie().value((function(e){return e.values.reduce((function(e,t){return e+t.value}),0)})),e.pie.sort(e.getOrderFunction()||null)},k.updateRadius=function(){var e=this,t=e.config,n=t.gauge_width||t.donut_width,r=e.filterTargetsToShow(e.data.targets).length*e.config.gauge_arcs_minWidth;e.radiusExpanded=Math.min(e.arcWidth,e.arcHeight)/2*(e.hasType("gauge")?.85:1),e.radius=.95*e.radiusExpanded,e.innerRadiusRatio=n?(e.radius-n)/e.radius:.6,e.innerRadius=e.hasType("donut")||e.hasType("gauge")?e.radius*e.innerRadiusRatio:0,e.gaugeArcWidth=n||(r<=e.radius-e.innerRadius?e.radius-e.innerRadius:r<=e.radius?r:e.radius)},k.updateArc=function(){var e=this;e.svgArc=e.getSvgArc(),e.svgArcExpanded=e.getSvgArcExpanded(),e.svgArcExpandedSub=e.getSvgArcExpanded(.98)},k.updateAngle=function(e){var t,n,r,i,o=this,a=o.config,s=!1,u=0;return a?(o.pie(o.filterTargetsToShow(o.data.targets)).forEach((function(t){s||t.data.id!==e.data.id||(s=!0,(e=t).index=u),u++})),isNaN(e.startAngle)&&(e.startAngle=0),isNaN(e.endAngle)&&(e.endAngle=e.startAngle),o.isGaugeType(e.data)&&(t=a.gauge_min,n=a.gauge_max,r=Math.PI*(a.gauge_fullCircle?2:1)/(n-t),i=e.value<t?0:e.value<n?e.value-t:n-t,e.startAngle=a.gauge_startingAngle,e.endAngle=e.startAngle+r*i),s?e:null):null},k.getSvgArc=function(){var e=this,t=e.hasType("gauge"),n=e.gaugeArcWidth/e.filterTargetsToShow(e.data.targets).length,r=e.d3.svg.arc().outerRadius((function(r){return t?e.radius-n*r.index:e.radius})).innerRadius((function(r){return t?e.radius-n*(r.index+1):e.innerRadius})),i=function(t,n){var i;return n?r(t):(i=e.updateAngle(t))?r(i):"M 0 0"};return i.centroid=r.centroid,i},k.getSvgArcExpanded=function(e){e=e||1;var t=this,n=t.hasType("gauge"),r=t.gaugeArcWidth/t.filterTargetsToShow(t.data.targets).length,i=Math.min(t.radiusExpanded*e-t.radius,.8*r-100*(1-e)),o=t.d3.svg.arc().outerRadius((function(o){return n?t.radius-r*o.index+i:t.radiusExpanded*e})).innerRadius((function(e){return n?t.radius-r*(e.index+1):t.innerRadius}));return function(e){var n=t.updateAngle(e);return n?o(n):"M 0 0"}},k.getArc=function(e,t,n){return n||this.isArcType(e.data)?this.svgArc(e,t):"M 0 0"},k.transformForArcLabel=function(e){var t,n,r,i,o,a=this,s=a.config,u=a.updateAngle(e),l="",f=a.hasType("gauge");if(u&&!f)t=this.svgArc.centroid(u),n=isNaN(t[0])?0:t[0],r=isNaN(t[1])?0:t[1],i=Math.sqrt(n*n+r*r),l="translate("+n*(o=a.hasType("donut")&&s.donut_label_ratio?c(s.donut_label_ratio)?s.donut_label_ratio(e,a.radius,i):s.donut_label_ratio:a.hasType("pie")&&s.pie_label_ratio?c(s.pie_label_ratio)?s.pie_label_ratio(e,a.radius,i):s.pie_label_ratio:a.radius&&i?(36/a.radius>.375?1.175-36/a.radius:.8)*a.radius/i:0)+","+r*o+")";else if(u&&f&&a.filterTargetsToShow(a.data.targets).length>1){var d=Math.sin(u.endAngle-Math.PI/2);l="translate("+(n=Math.cos(u.endAngle-Math.PI/2)*(a.radiusExpanded+25))+","+(r=d*(a.radiusExpanded+15-Math.abs(10*d))+3)+")"}return l},k.getArcRatio=function(e){var t=this,n=t.config,r=Math.PI*(t.hasType("gauge")&&!n.gauge_fullCircle?1:2);return e?(e.endAngle-e.startAngle)/r:null},k.convertToArcData=function(e){return this.addName({id:e.data.id,value:e.value,ratio:this.getArcRatio(e),index:e.index})},k.textForArcLabel=function(e){var t,n,r,i,o,a=this;return a.shouldShowArcLabel()?(n=(t=a.updateAngle(e))?t.value:null,r=a.getArcRatio(t),i=e.data.id,a.hasType("gauge")||a.meetsArcLabelThreshold(r)?(o=a.getArcLabelFormat())?o(n,r,i):a.defaultArcValueFormat(n,r):""):""},k.textForGaugeMinMax=function(e,t){var n=this.getGaugeLabelExtents();return n?n(e,t):e},k.expandArc=function(e){var t,n=this;n.transiting?t=window.setInterval((function(){n.transiting||(window.clearInterval(t),n.legend.selectAll(".c3-legend-item-focused").size()>0&&n.expandArc(e))}),10):(e=n.mapToTargetIds(e),n.svg.selectAll(n.selectorTargets(e,"."+r.chartArc)).each((function(e){n.shouldExpand(e.data.id)&&n.d3.select(this).selectAll("path").transition().duration(n.expandDuration(e.data.id)).attr("d",n.svgArcExpanded).transition().duration(2*n.expandDuration(e.data.id)).attr("d",n.svgArcExpandedSub).each((function(e){n.isDonutType(e.data)}))})))},k.unexpandArc=function(e){var t=this;t.transiting||(e=t.mapToTargetIds(e),t.svg.selectAll(t.selectorTargets(e,"."+r.chartArc)).selectAll("path").transition().duration((function(e){return t.expandDuration(e.data.id)})).attr("d",t.svgArc),t.svg.selectAll("."+r.arc))},k.expandDuration=function(e){var t=this,n=t.config;return t.isDonutType(e)?n.donut_expand_duration:t.isGaugeType(e)?n.gauge_expand_duration:t.isPieType(e)?n.pie_expand_duration:50},k.shouldExpand=function(e){var t=this,n=t.config;return t.isDonutType(e)&&n.donut_expand||t.isGaugeType(e)&&n.gauge_expand||t.isPieType(e)&&n.pie_expand},k.shouldShowArcLabel=function(){var e=this,t=e.config,n=!0;
2return e.hasType("donut")?n=t.donut_label_show:e.hasType("pie")&&(n=t.pie_label_show),n},k.meetsArcLabelThreshold=function(e){var t=this,n=t.config;return e>=(t.hasType("donut")?n.donut_label_threshold:n.pie_label_threshold)},k.getArcLabelFormat=function(){var e=this,t=e.config,n=t.pie_label_format;return e.hasType("gauge")?n=t.gauge_label_format:e.hasType("donut")&&(n=t.donut_label_format),n},k.getGaugeLabelExtents=function(){return this.config.gauge_label_extents},k.getArcTitle=function(){var e=this;return e.hasType("donut")?e.config.donut_title:""},k.updateTargetsForArc=function(e){var t,n=this,i=n.main,o=n.classChartArc.bind(n),a=n.classArcs.bind(n),s=n.classFocus.bind(n);(t=i.select("."+r.chartArcs).selectAll("."+r.chartArc).data(n.pie(e)).attr("class",(function(e){return o(e)+s(e.data)})).enter().append("g").attr("class",o)).append("g").attr("class",a),t.append("text").attr("dy",n.hasType("gauge")?"-.1em":".35em").style("opacity",0).style("text-anchor","middle").style("pointer-events","none")},k.initArc=function(){var e=this;e.arcs=e.main.select("."+r.chart).append("g").attr("class",r.chartArcs).attr("transform",e.getTranslate("arc")),e.arcs.append("text").attr("class",r.chartArcsTitle).style("text-anchor","middle").text(e.getArcTitle())},k.redrawArc=function(e,t,n){var i,o,a,s=this,u=s.d3,c=s.config,l=s.main,f=s.hasType("gauge");if((i=l.selectAll("."+r.arcs).selectAll("."+r.arc).data(s.arcData.bind(s))).enter().append("path").attr("class",s.classArc.bind(s)).style("fill",(function(e){return s.color(e.data)})).style("cursor",(function(e){return c.interaction_enabled&&c.data_selection_isselectable(e)?"pointer":null})).each((function(e){s.isGaugeType(e.data)&&(e.startAngle=e.endAngle=c.gauge_startingAngle),this._current=e})),f&&((a=l.selectAll("."+r.arcs).selectAll("."+r.arcLabelLine).data(s.arcData.bind(s))).enter().append("rect").attr("class",(function(e){return r.arcLabelLine+" "+r.target+" "+r.target+"-"+e.data.id})),1===s.filterTargetsToShow(s.data.targets).length?a.style("display","none"):a.style("fill",(function(e){return c.color_pattern.length>0?s.levelColor(e.data.values[0].value):s.color(e.data)})).style("display",c.gauge_labelLine_show?"":"none").each((function(e){var t=0,n=2,r=0,i=0,o="";if(s.hiddenTargetIds.indexOf(e.data.id)<0){var a=s.updateAngle(e),c=s.gaugeArcWidth/s.filterTargetsToShow(s.data.targets).length*(a.index+1),l=a.endAngle-Math.PI/2,f=s.radius-c,d=l-(0===f?0:1/f);t=s.radiusExpanded-s.radius+c,r=Math.cos(d)*f,i=Math.sin(d)*f,o="rotate("+180*l/Math.PI+", "+r+", "+i+")"}u.select(this).attr({x:r,y:i,width:t,height:n,transform:o}).style("stroke-dasharray","0, "+(t+n)+", 0")}))),i.attr("transform",(function(e){return!s.isGaugeType(e.data)&&n?"scale(0)":""})).on("mouseover",c.interaction_enabled?function(e){var t,n;s.transiting||(t=s.updateAngle(e))&&(n=s.convertToArcData(t),s.expandArc(t.data.id),s.api.focus(t.data.id),s.toggleFocusLegend(t.data.id,!0),s.config.data_onmouseover(n,this))}:null).on("mousemove",c.interaction_enabled?function(e){var t,n=s.updateAngle(e);n&&(t=[s.convertToArcData(n)],s.showTooltip(t,this))}:null).on("mouseout",c.interaction_enabled?function(e){var t,n;s.transiting||(t=s.updateAngle(e))&&(n=s.convertToArcData(t),s.unexpandArc(t.data.id),s.api.revert(),s.revertLegend(),s.hideTooltip(),s.config.data_onmouseout(n,this))}:null).on("click",c.interaction_enabled?function(e,t){var n,r=s.updateAngle(e);r&&(n=s.convertToArcData(r),s.toggleShape&&s.toggleShape(this,n,t),s.config.data_onclick.call(s.api,n,this))}:null).each((function(){s.transiting=!0})).transition().duration(e).attrTween("d",(function(e){var t,n=s.updateAngle(e);return n?(isNaN(this._current.startAngle)&&(this._current.startAngle=0),isNaN(this._current.endAngle)&&(this._current.endAngle=this._current.startAngle),t=u.interpolate(this._current,n),this._current=t(0),function(n){var r=t(n);return r.data=e.data,s.getArc(r,!0)}):function(){return"M 0 0"}})).attr("transform",n?"scale(1)":"").style("fill",(function(e){return s.levelColor?s.levelColor(e.data.values[0].value):s.color(e.data.id)})).call(s.endall,(function(){s.transiting=!1})),i.exit().transition().duration(t).style("opacity",0).remove(),l.selectAll("."+r.chartArc).select("text").style("opacity",0).attr("class",(function(e){return s.isGaugeType(e.data)?r.gaugeValue:""})).text(s.textForArcLabel.bind(s)).attr("transform",s.transformForArcLabel.bind(s)).style("font-size",(function(e){return s.isGaugeType(e.data)&&1===s.filterTargetsToShow(s.data.targets).length?Math.round(s.radius/5)+"px":""})).transition().duration(e).style("opacity",(function(e){return s.isTargetToShow(e.data.id)&&s.isArcType(e.data)?1:0})),l.select("."+r.chartArcsTitle).style("opacity",s.hasType("donut")||f?1:0),f){var d=0;
2(o=s.arcs.select("g."+r.chartArcsBackground).selectAll("path."+r.chartArcsBackground).data(s.data.targets)).enter().append("path"),o.attr("class",(function(e,t){return r.chartArcsBackground+" "+r.chartArcsBackground+"-"+t})).attr("d",(function(e){if(s.hiddenTargetIds.indexOf(e.id)>=0)return"M 0 0";var t={data:[{value:c.gauge_max}],startAngle:c.gauge_startingAngle,endAngle:-1*c.gauge_startingAngle*(c.gauge_fullCircle?Math.PI:1),index:d++};return s.getArc(t,!0,!0)})),o.exit().remove(),s.arcs.select("."+r.chartArcsGaugeUnit).attr("dy",".75em").text(c.gauge_label_show?c.gauge_units:""),s.arcs.select("."+r.chartArcsGaugeMin).attr("dx",-1*(s.innerRadius+(s.radius-s.innerRadius)/(c.gauge_fullCircle?1:2))+"px").attr("dy","1.2em").text(c.gauge_label_show?s.textForGaugeMinMax(c.gauge_min,!1):""),s.arcs.select("."+r.chartArcsGaugeMax).attr("dx",s.innerRadius+(s.radius-s.innerRadius)/(c.gauge_fullCircle?1:2)+"px").attr("dy","1.2em").text(c.gauge_label_show?s.textForGaugeMinMax(c.gauge_max,!0):"")}},k.initGauge=function(){var e=this.arcs;this.hasType("gauge")&&(e.append("g").attr("class",r.chartArcsBackground),e.append("text").attr("class",r.chartArcsGaugeUnit).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",r.chartArcsGaugeMin).style("text-anchor","middle").style("pointer-events","none"),e.append("text").attr("class",r.chartArcsGaugeMax).style("text-anchor","middle").style("pointer-events","none"))},k.getGaugeLabelHeight=function(){return this.config.gauge_label_show?20:0},k.hasCaches=function(e){for(var t=0;t<e.length;t++)if(!(e[t]in this.cache))return!1;return!0},k.addCache=function(e,t){this.cache[e]=this.cloneTarget(t)},k.getCaches=function(e){var t,n=[];for(t=0;t<e.length;t++)e[t]in this.cache&&n.push(this.cloneTarget(this.cache[e[t]]));return n},k.categoryName=function(e){var t=this.config;return e<t.axis_x_categories.length?t.axis_x_categories[e]:e},k.generateClass=function(e,t){return" "+e+" "+e+this.getTargetSelectorSuffix(t)},k.classText=function(e){return this.generateClass(r.text,e.index)},k.classTexts=function(e){return this.generateClass(r.texts,e.id)},k.classShape=function(e){return this.generateClass(r.shape,e.index)},k.classShapes=function(e){return this.generateClass(r.shapes,e.id)},k.classLine=function(e){return this.classShape(e)+this.generateClass(r.line,e.id)},k.classLines=function(e){return this.classShapes(e)+this.generateClass(r.lines,e.id)},k.classCircle=function(e){return this.classShape(e)+this.generateClass(r.circle,e.index)},k.classCircles=function(e){return this.classShapes(e)+this.generateClass(r.circles,e.id)},k.classBar=function(e){return this.classShape(e)+this.generateClass(r.bar,e.index)},k.classBars=function(e){return this.classShapes(e)+this.generateClass(r.bars,e.id)},k.classArc=function(e){return this.classShape(e.data)+this.generateClass(r.arc,e.data.id)},k.classArcs=function(e){return this.classShapes(e.data)+this.generateClass(r.arcs,e.data.id)},k.classArea=function(e){return this.classShape(e)+this.generateClass(r.area,e.id)},k.classAreas=function(e){return this.classShapes(e)+this.generateClass(r.areas,e.id)},k.classRegion=function(e,t){return this.generateClass(r.region,t)+" "+("class"in e?e.class:"")},k.classEvent=function(e){return this.generateClass(r.eventRect,e.index)},k.classTarget=function(e){var t=this,n=t.config.data_classes[e],i="";return n&&(i=" "+r.target+"-"+n),t.generateClass(r.target,e)+i},k.classFocus=function(e){return this.classFocused(e)+this.classDefocused(e)},k.classFocused=function(e){return" "+(this.focusedTargetIds.indexOf(e.id)>=0?r.focused:"")},k.classDefocused=function(e){return" "+(this.defocusedTargetIds.indexOf(e.id)>=0?r.defocused:"")},k.classChartText=function(e){return r.chartText+this.classTarget(e.id)},k.classChartLine=function(e){return r.chartLine+this.classTarget(e.id)},k.classChartBar=function(e){return r.chartBar+this.classTarget(e.id)},k.classChartArc=function(e){return r.chartArc+this.classTarget(e.data.id)},k.getTargetSelectorSuffix=function(e){return e||0===e?("-"+e).replace(/[\s?!@#$%^&*()_=+,.<>'":;\[\]\/|~`{}\\]/g,"-"):""},k.selectorTarget=function(e,t){return(t||"")+"."+r.target+this.getTargetSelectorSuffix(e)},k.selectorTargets=function(e,t){var n=this;return(e=e||[]).length?e.map((function(e){return n.selectorTarget(e,t)})):null},k.selectorLegend=function(e){return"."+r.legendItem+this.getTargetSelectorSuffix(e)},k.selectorLegends=function(e){var t=this;return e&&e.length?e.map((function(e){return t.selectorLegend(e)})):null}
2,k.getClipPath=function(e){return"url("+(window.navigator.appVersion.toLowerCase().indexOf("msie 9.")>=0?"":document.URL.split("#")[0])+"#"+e+")"},k.appendClip=function(e,t){return e.append("clipPath").attr("id",t).append("rect")},k.getAxisClipX=function(e){var t=Math.max(30,this.margin.left);return e?-(1+t):-(t-1)},k.getAxisClipY=function(e){return e?-20:-this.margin.top},k.getXAxisClipX=function(){var e=this;return e.getAxisClipX(!e.config.axis_rotated)},k.getXAxisClipY=function(){var e=this;return e.getAxisClipY(!e.config.axis_rotated)},k.getYAxisClipX=function(){var e=this;return e.config.axis_y_inner?-1:e.getAxisClipX(e.config.axis_rotated)},k.getYAxisClipY=function(){var e=this;return e.getAxisClipY(e.config.axis_rotated)},k.getAxisClipWidth=function(e){var t=this,n=Math.max(30,t.margin.left),r=Math.max(30,t.margin.right);return e?t.width+2+n+r:t.margin.left+20},k.getAxisClipHeight=function(e){return(e?this.margin.bottom:this.margin.top+this.height)+20},k.getXAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(!e.config.axis_rotated)},k.getXAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(!e.config.axis_rotated)},k.getYAxisClipWidth=function(){var e=this;return e.getAxisClipWidth(e.config.axis_rotated)+(e.config.axis_y_inner?20:0)},k.getYAxisClipHeight=function(){var e=this;return e.getAxisClipHeight(e.config.axis_rotated)},k.generateColor=function(){var e=this,t=e.config,n=e.d3,r=t.data_colors,i=y(t.color_pattern)?t.color_pattern:n.scale.category10().range(),o=t.data_color,a=[];return function(e){var t,n=e.id||e.data&&e.data.id||e;return r[n]instanceof Function?t=r[n](e):r[n]?t=r[n]:(a.indexOf(n)<0&&a.push(n),t=i[a.indexOf(n)%i.length],r[n]=t),o instanceof Function?o(t,e):t}},k.generateLevelColor=function(){var e=this.config,t=e.color_pattern,n=e.color_threshold,r="value"===n.unit,i=n.values&&n.values.length?n.values:[],o=n.max||100;return y(e.color_threshold)?function(e){var n,a=t[t.length-1];for(n=0;n<i.length;n++)if((r?e:100*e/o)<i[n]){a=t[n];break}return a}:null},k.getDefaultConfig=function(){var e={bindto:"#chart",svg_classname:void 0,size_width:void 0,size_height:void 0,padding_left:void 0,padding_right:void 0,padding_top:void 0,padding_bottom:void 0,resize_auto:!0,zoom_enabled:!1,zoom_extent:void 0,zoom_privileged:!1,zoom_rescale:!1,zoom_onzoom:function(){},zoom_onzoomstart:function(){},zoom_onzoomend:function(){},zoom_x_min:void 0,zoom_x_max:void 0,interaction_brighten:!0,interaction_enabled:!0,onmouseover:function(){},onmouseout:function(){},onresize:function(){},onresized:function(){},oninit:function(){},onrendered:function(){},transition_duration:350,data_x:void 0,data_xs:{},data_xFormat:"%Y-%m-%d",data_xLocaltime:!0,data_xSort:!0,data_idConverter:function(e){return e},data_names:{},data_classes:{},data_groups:[],data_axes:{},data_type:void 0,data_types:{},data_labels:{},data_order:"desc",data_regions:{},data_color:void 0,data_colors:{},data_hide:!1,data_filter:void 0,data_selection_enabled:!1,data_selection_grouped:!1,data_selection_isselectable:function(){return!0},data_selection_multiple:!0,data_selection_draggable:!1,data_onclick:function(){},data_onmouseover:function(){},data_onmouseout:function(){},data_onselected:function(){},data_onunselected:function(){},data_url:void 0,data_headers:void 0,data_json:void 0,data_rows:void 0,data_columns:void 0,data_mimeType:void 0,data_keys:void 0,data_empty_label_text:"",subchart_show:!1,subchart_size_height:60,subchart_axis_x_show:!0,subchart_onbrush:function(){},color_pattern:[],color_threshold:{},legend_show:!0,legend_hide:!1,legend_position:"bottom",legend_inset_anchor:"top-left",legend_inset_x:10,legend_inset_y:0,legend_inset_step:void 0,legend_item_onclick:void 0,legend_item_onmouseover:void 0,legend_item_onmouseout:void 0,legend_equally:!1,legend_padding:0,legend_item_tile_width:10,legend_item_tile_height:10,axis_rotated:!1,axis_x_show:!0,axis_x_type:"indexed",axis_x_localtime:!0,axis_x_categories:[],axis_x_tick_centered:!1,axis_x_tick_format:void 0,axis_x_tick_culling:{},axis_x_tick_culling_max:10,axis_x_tick_count:void 0,axis_x_tick_fit:!0,axis_x_tick_values:null,axis_x_tick_rotate:0,axis_x_tick_outer:!0,axis_x_tick_multiline:!0,axis_x_tick_multilineMax:0,axis_x_tick_width:null,axis_x_max:void 0,axis_x_min:void 0,axis_x_padding:{},axis_x_height:void 0,axis_x_extent:void 0,axis_x_label:{},axis_x_inner:void 0,axis_y_show:!0,axis_y_type:void 0,axis_y_max:void 0,axis_y_min:void 0,axis_y_inverted:!1,axis_y_center:void 0,axis_y_inner:void 0,axis_y_label:{},axis_y_tick_format:void 0,axis_y_tick_outer:!0,axis_y_tick_values:null,axis_y_tick_rotate:0,axis_y_tick_count:void 0,axis_y_tick_time_value:void 0,axis_y_tick_time_interval:void 0,axis_y_padding:{},axis_y_default:void 0,axis_y2_show:!1,axis_y2_max:void 0,axis_y2_min:void 0,axis_y2_inverted:!1,axis_y2_center:void 0,axis_y2_inner:void 0,axis_y2_label:{},axis_y2_tick_format:void 0,axis_y2_tick_outer:!0,axis_y2_tick_values:null,axis_y2_tick_count:void 0,axis_y2_padding:{},axis_y2_default:void 0,grid_x_show:!1,grid_x_type:"tick",grid_x_lines:[],grid_y_show:!1,grid_y_lines:[],grid_y_ticks:10,grid_focus_show:!0,grid_lines_front:!0,point_show:!0,point_r:2.5,point_sensitivity:10,point_focus_expand_enabled:!0,point_focus_expand_r:void 0,point_select_r:void 0,line_connectNull:!1,line_step_type:"step",bar_width:void 0,bar_width_ratio:.6,bar_width_max:void 0,bar_zerobased:!0,bar_space:0,area_zerobased:!0,area_above:!1,pie_label_show:!0,pie_label_format:void 0,pie_label_threshold:.05,pie_label_ratio:void 0,pie_expand:{},pie_expand_duration:50,gauge_fullCircle:!1,gauge_label_show:!0,gauge_labelLine_show:!0,gauge_label_format:void 0,gauge_min:0,gauge_max:100,gauge_startingAngle:-1*Math.PI/2,gauge_label_extents:void 0,gauge_units:void 0,gauge_width:void 0,gauge_arcs_minWidth:5,gauge_expand:{},gauge_expand_duration:50,donut_label_show:!0,donut_label_format:void 0,donut_label_threshold:.05,donut_label_ratio:void 0,donut_width:void 0,donut_title:"",donut_expand:{},donut_expand_duration:50,spline_interpolation_type:"cardinal",regions:[],tooltip_show:!0,tooltip_grouped:!0,tooltip_order:void 0,tooltip_format_title:void 0,tooltip_format_name:void 0,tooltip_format_value:void 0,tooltip_position:void 0,tooltip_contents:function(e,t,n,r){return this.getTooltipContent?this.getTooltipContent(e,t,n,r):""},tooltip_init_show:!1,tooltip_init_x:0,tooltip_init_position:{top:"0px",left:"50px"},tooltip_onshow:function(){},tooltip_onhide:function(){},title_text:void 0,title_padding:{top:0,right:0,bottom:0,left:0},title_position:"top-center"};return Object.keys(this.additionalConfig).forEach((function(t){e[t]=this.additionalConfig[t]}),this),e},k.additionalConfig={},k.loadConfig=function(e){var t,n,r,o=this.config;function a(){var e=n.shift();return e&&t&&"object"===("undefined"===typeof t?"undefined":i(t))&&e in t?(t=t[e],a()):e?void 0:t}
2Object.keys(o).forEach((function(i){t=e,n=i.split("_"),r=a(),h(r)&&(o[i]=r)}))},k.convertUrlToData=function(e,t,n,r,i){var o=this,a=t||"csv",s=o.d3.xhr(e);n&&Object.keys(n).forEach((function(e){s.header(e,n[e])})),s.get((function(e,t){var n,s=t.response||t.responseText;if(!t)throw new Error(e.responseURL+" "+e.status+" ("+e.statusText+")");n="json"===a?o.convertJsonToData(JSON.parse(s),r):"tsv"===a?o.convertTsvToData(s):o.convertCsvToData(s),i.call(o,n)}))},k.convertXsvToData=function(e,t){var n,r=t.parseRows(e);return 1===r.length?(n=[{}],r[0].forEach((function(e){n[0][e]=null}))):n=t.parse(e),n},k.convertCsvToData=function(e){return this.convertXsvToData(e,this.d3.csv)},k.convertTsvToData=function(e){return this.convertXsvToData(e,this.d3.tsv)},k.convertJsonToData=function(e,t){var n,r,i=this,o=[];return t?(t.x?(n=t.value.concat(t.x),i.config.data_x=t.x):n=t.value,o.push(n),e.forEach((function(e){var t=[];n.forEach((function(n){var r=i.findValueInJson(e,n);d(r)&&(r=null),t.push(r)})),o.push(t)})),r=i.convertRowsToData(o)):(Object.keys(e).forEach((function(t){o.push([t].concat(e[t]))})),r=i.convertColumnsToData(o)),r},k.findValueInJson=function(e,t){for(var n=(t=(t=t.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),r=0;r<n.length;++r){var i=n[r];if(!(i in e))return;e=e[i]}return e},k.convertRowsToData=function(e){for(var t=[],n=e[0],r=1;r<e.length;r++){for(var i={},o=0;o<e[r].length;o++){if(d(e[r][o]))throw new Error("Source data is missing a component at ("+r+","+o+")!");i[n[o]]=e[r][o]}t.push(i)}return t},k.convertColumnsToData=function(e){for(var t=[],n=0;n<e.length;n++)for(var r=e[n][0],i=1;i<e[n].length;i++){if(d(t[i-1])&&(t[i-1]={}),d(e[n][i]))throw new Error("Source data is missing a component at ("+n+","+i+")!");t[i-1][r]=e[n][i]}return t},k.convertDataToTargets=function(e,t){var n,r=this,i=r.config,o=r.d3.keys(e[0]).filter(r.
2isNotX,r),a=r.d3.keys(e[0]).filter(r.isX,r);return o.forEach((function(n){var o=r.getXKey(n);r.isCustomX()||r.isTimeSeries()?a.indexOf(o)>=0?r.data.xs[n]=(t&&r.data.xs[n]?r.data.xs[n]:[]).concat(e.map((function(e){return e[o]})).filter(u).map((function(e,t){return r.generateTargetX(e,n,t)}))):i.data_x?r.data.xs[n]=r.getOtherTargetXs():y(i.data_xs)&&(r.data.xs[n]=r.getXValuesOfXKey(o,r.data.targets)):r.data.xs[n]=e.map((function(e,t){return t}))})),o.forEach((function(e){if(!r.data.xs[e])throw new Error('x is not defined for id = "'+e+'".')})),(n=o.map((function(t,n){var o=i.data_idConverter(t);return{id:o,id_org:t,values:e.map((function(e,a){var s,u=e[r.getXKey(t)],c=null===e[t]||isNaN(e[t])?null:+e[t];return r.isCustomX()&&r.isCategorized()&&!d(u)?(0===n&&0===a&&(i.axis_x_categories=[]),-1===(s=i.axis_x_categories.indexOf(u))&&(s=i.axis_x_categories.length,i.axis_x_categories.push(u))):s=r.generateTargetX(u,t,a),(d(e[t])||r.data.xs[t].length<=a)&&(s=void 0),{x:s,value:c,id:o}})).filter((function(e){return h(e.x)}))}}))).forEach((function(e){var t;i.data_xSort&&(e.values=e.values.sort((function(e,t){return(e.x||0===e.x?e.x:1/0)-(t.x||0===t.x?t.x:1/0)}))),t=0,e.values.forEach((function(e){e.index=t++})),r.data.xs[e.id].sort((function(e,t){return e-t}))})),r.hasNegativeValue=r.hasNegativeValueInTargets(n),r.hasPositiveValue=r.hasPositiveValueInTargets(n),i.data_type&&r.setTargetType(r.mapToIds(n).filter((function(e){return!(e in i.data_types)})),i.data_type),n.forEach((function(e){r.addCache(e.id_org,e)})),n},k.isX=function(e){var t=this.config;return t.data_x&&e===t.data_x||y(t.data_xs)&&_(t.data_xs,e)},k.isNotX=function(e){return!this.isX(e)},k.getXKey=function(e){var t=this.config;return t.data_x?t.data_x:y(t.data_xs)?t.data_xs[e]:null},k.getXValuesOfXKey=function(e,t){var n,r=this;return(t&&y(t)?r.mapToIds(t):[]).forEach((function(t){r.getXKey(t)===e&&(n=r.data.xs[t])})),n},k.getIndexByX=function(e){var t=this,n=t.filterByX(t.data.targets,e);return n.length?n[0].index:null},k.getXValue=function(e,t){var n=this;return e in n.data.xs&&n.data.xs[e]&&u(n.data.xs[e][t])?n.data.xs[e][t]:t},k.getOtherTargetXs=function(){var e=this,t=Object.keys(e.data.xs);return t.length?e.data.xs[t[0]]:null},k.getOtherTargetX=function(e){var t=this.getOtherTargetXs();return t&&e<t.length?t[e]:null},k.addXs=function(e){var t=this;Object.keys(e).forEach((function(n){t.config.data_xs[n]=e[n]}))},k.hasMultipleX=function(e){return this.d3.set(Object.keys(e).map((function(t){return e[t]}))).size()>1},k.isMultipleX=function(){return y(this.config.data_xs)||!this.config.data_xSort||this.hasType("scatter")},k.addName=function(e){var t;return e&&(t=this.config.data_names[e.id],e.name=void 0!==t?t:e.id),e},k.getValueOnIndex=function(e,t){var n=e.filter((function(e){return e.index===t}));return n.length?n[0]:null},k.updateTargetX=function(e,t){var n=this;e.forEach((function(e){e.values.forEach((function(r,i){r.x=n.generateTargetX(t[i],e.id,i)})),n.data.xs[e.id]=t}))},k.updateTargetXs=function(e,t){var n=this;e.forEach((function(e){t[e.id]&&n.updateTargetX([e],t[e.id])}))},k.generateTargetX=function(e,t,n){var r=this;return r.isTimeSeries()?e?r.parseDate(e):r.parseDate(r.getXValue(t,n)):r.isCustomX()&&!r.isCategorized()?u(e)?+e:r.getXValue(t,n):n},k.cloneTarget=function(e){return{id:e.id,id_org:e.id_org,values:e.values.map((function(e){return{x:e.x,value:e.value,id:e.id}}))}},k.updateXs=function(){var e=this;e.data.targets.length&&(e.xs=[],e.data.targets[0].values.forEach((function(t){e.xs[t.index]=t.x})))},k.getPrevX=function(e){var t=this.xs[e-1];return"undefined"!==typeof t?t:null},k.getNextX=function(e){var t=this.xs[e+1];return"undefined"!==typeof t?t:null},k.getMaxDataCount=function(){var e=this;return e.d3.max(e.data.targets,(function(e){return e.values.length}))},k.getMaxDataCountTarget=function(e){var t,n=e.length,r=0;return n>1?e.forEach((function(e){e.values.length>r&&(t=e,r=e.values.length)})):t=n?e[0]:null,t},k.getEdgeX=function(e){var t=this;return e.length?[t.d3.min(e,(function(e){return e.values[0].x})),t.d3.max(e,(function(e){return e.values[e.values.length-1].x}))]:[0,0]},k.mapToIds=function(e){return e.map((function(e){return e.id}))},k.mapToTargetIds=function(e){var t=this;return e?[].concat(e):t.mapToIds(t.data.targets)},k.hasTarget=function(e,t){var n,r=this.mapToIds(e);for(n=0;n<r.length;n++)if(r[n]===t)return!0;return!1},k.isTargetToShow=function(e){return this.hiddenTargetIds.indexOf(e)<0},k.isLegendToShow=function(e){return this.hiddenLegendIds.indexOf(e)<0},k.filterTargetsToShow=function(e){var t=this;return e.filter((function(e){return t.isTargetToShow(e.id)}
2))},k.mapTargetsToUniqueXs=function(e){var t=this,n=t.d3.set(t.d3.merge(e.map((function(e){return e.values.map((function(e){return+e.x}))})))).values();return(n=t.isTimeSeries()?n.map((function(e){return new Date(+e)})):n.map((function(e){return+e}))).sort((function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}))},k.addHiddenTargetIds=function(e){e=e instanceof Array?e:new Array(e);for(var t=0;t<e.length;t++)this.hiddenTargetIds.indexOf(e[t])<0&&(this.hiddenTargetIds=this.hiddenTargetIds.concat(e[t]))},k.removeHiddenTargetIds=function(e){this.hiddenTargetIds=this.hiddenTargetIds.filter((function(t){return e.indexOf(t)<0}))},k.addHiddenLegendIds=function(e){e=e instanceof Array?e:new Array(e);for(var t=0;t<e.length;t++)this.hiddenLegendIds.indexOf(e[t])<0&&(this.hiddenLegendIds=this.hiddenLegendIds.concat(e[t]))},k.removeHiddenLegendIds=function(e){this.hiddenLegendIds=this.hiddenLegendIds.filter((function(t){return e.indexOf(t)<0}))},k.getValuesAsIdKeyed=function(e){var t={};return e.forEach((function(e){t[e.id]=[],e.values.forEach((function(n){t[e.id].push(n.value)}))})),t},k.checkValueInTargets=function(e,t){var n,r,i,o=Object.keys(e);for(n=0;n<o.length;n++)for(i=e[o[n]].values,r=0;r<i.length;r++)if(t(i[r].value))return!0;return!1},k.hasNegativeValueInTargets=function(e){return this.checkValueInTargets(e,(function(e){return e<0}))},k.hasPositiveValueInTargets=function(e){return this.checkValueInTargets(e,(function(e){return e>0}))},k.isOrderDesc=function(){var e=this.config;return"string"===typeof e.data_order&&"desc"===e.data_order.toLowerCase()},k.isOrderAsc=function(){var e=this.config;return"string"===typeof e.data_order&&"asc"===e.data_order.toLowerCase()},k.getOrderFunction=function(){var e=this,t=e.config,n=e.isOrderAsc(),r=e.isOrderDesc();if(n||r)return function(e,t){var n=function(e,t){return e+Math.abs(t.value)},i=e.values.reduce(n,0),o=t.values.reduce(n,0);return r?o-i:i-o};if(c(t.data_order))return t.data_order;if(l(t.data_order)){var i=t.data_order;return function(e,t){return i.indexOf(e.id)-i.indexOf(t.id)}}},k.orderTargets=function(e){var t=this.getOrderFunction();return t&&(e.sort(t),(this.isOrderAsc()||this.isOrderDesc())&&e.reverse()),e},k.filterByX=function(e,t){return this.d3.merge(e.map((function(e){return e.values}))).filter((function(e){return e.x-t===0}))},k.filterRemoveNull=function(e){return e.filter((function(e){return u(e.value)}))},k.filterByXDomain=function(e,t){return e.map((function(e){return{id:e.id,id_org:e.id_org,values:e.values.filter((function(e){return t[0]<=e.x&&e.x<=t[1]}))}}))},k.hasDataLabel=function(){var e=this.config;return!("boolean"!==typeof e.data_labels||!e.data_labels)||!("object"!==i(e.data_labels)||!y(e.data_labels))},k.getDataLabelLength=function(e,t,n){var r=this,i=[0,0],o=1.3;return r.selectChart.select("svg").selectAll(".dummy").data([e,t]).enter().append("text").text((function(e){return r.dataLabelFormat(e.id)(e)})).each((function(e,t){i[t]=this.getBoundingClientRect()[n]*o})).remove(),i},k.isNoneArc=function(e){return this.hasTarget(this.data.targets,e.id)},k.isArc=function(e){return"data"in e&&this.hasTarget(this.data.targets,e.data.id)},k.findSameXOfValues=function(e,t){var n,r=e[t].x,i=[];for(n=t-1;n>=0&&r===e[n].x;n--)i.push(e[n]);for(n=t;n<e.length&&r===e[n].x;n++)i.push(e[n]);return i},k.findClosestFromTargets=function(e,t){var n,r=this;return n=e.map((function(e){return r.findClosest(e.values,t)})),r.findClosest(n,t)},k.findClosest=function(e,t){var n,i=this,o=i.config.point_sensitivity;return e.filter((function(e){return e&&i.isBarType(e.id)})).forEach((function(e){var t=i.main.select("."+r.bars+i.getTargetSelectorSuffix(e.id)+" ."+r.bar+"-"+e.index).node();!n&&i.isWithinBar(t)&&(n=e)})),e.filter((function(e){return e&&!i.isBarType(e.id)})).forEach((function(e){var r=i.dist(e,t);r<o&&(o=r,n=e)})),n},k.dist=function(e,t){var n=this,r=n.config,i=r.axis_rotated?1:0,o=r.axis_rotated?0:1,a=n.circleY(e,e.index),s=n.x(e.x);return Math.sqrt(Math.pow(s-t[i],2)+Math.pow(a-t[o],2))},k.convertValuesToStep=function(e){var t,n=[].concat(e);if(!this.isCategorized())return e;for(t=e.length+1;0<t;t--)n[t]=n[t-1];return n[0]={x:n[0].x-1,value:n[0].value,id:n[0].id},n[e.length+1]={x:n[e.length].x+1,value:n[e.length].value,id:n[e.length].id},n},k.updateDataAttributes=function(e,t){var n=this,r=n.config["data_"+e];return"undefined"===typeof t||(Object.keys(t).forEach((function(e){r[e]=t[e]})),n.redraw({withLegend:!0})),r},k.load=function(e,t){var n=this;e&&(t.filter&&(e=e.filter(t.filter)),(t.type||t.types)&&e.forEach((function(e){var r=t.types&&t.types[e.id]?t.types[e.id]:t.type;n.setTargetType(e.id,r)}
2)),n.data.targets.forEach((function(t){for(var n=0;n<e.length;n++)if(t.id===e[n].id){t.values=e[n].values,e.splice(n,1);break}})),n.data.targets=n.data.targets.concat(e)),n.updateTargets(n.data.targets),n.redraw({withUpdateOrgXDomain:!0,withUpdateXDomain:!0,withLegend:!0}),t.done&&t.done()},k.loadFromArgs=function(e){var t=this;e.data?t.load(t.convertDataToTargets(e.data),e):e.url?t.convertUrlToData(e.url,e.mimeType,e.headers,e.keys,(function(n){t.load(t.convertDataToTargets(n),e)})):e.json?t.load(t.convertDataToTargets(t.convertJsonToData(e.json,e.keys)),e):e.rows?t.load(t.convertDataToTargets(t.convertRowsToData(e.rows)),e):e.columns?t.load(t.convertDataToTargets(t.convertColumnsToData(e.columns)),e):t.load(null,e)},k.unload=function(e,t){var n=this;t||(t=function(){}),(e=e.filter((function(e){return n.hasTarget(n.data.targets,e)})))&&0!==e.length?(n.svg.selectAll(e.map((function(e){return n.selectorTarget(e)}))).transition().style("opacity",0).remove().call(n.endall,t),e.forEach((function(e){n.withoutFadeIn[e]=!1,n.legend&&n.legend.selectAll("."+r.legendItem+n.getTargetSelectorSuffix(e)).remove(),n.data.targets=n.data.targets.filter((function(t){return t.id!==e}))}))):t()},k.getYDomainMin=function(e){var t,n,r,i,o,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasNegativeValueInTargets(e),t=0;t<u.data_groups.length;t++)if(0!==(i=u.data_groups[t].filter((function(e){return c.indexOf(e)>=0}))).length)for(r=i[0],a&&l[r]&&l[r].forEach((function(e,t){l[r][t]=e<0?e:0})),n=1;n<i.length;n++)o=i[n],l[o]&&l[o].forEach((function(e,t){s.axis.getId(o)!==s.axis.getId(r)||!l[r]||a&&+e>0||(l[r][t]+=+e)}));return s.d3.min(Object.keys(l).map((function(e){return s.d3.min(l[e])})))},k.getYDomainMax=function(e){var t,n,r,i,o,a,s=this,u=s.config,c=s.mapToIds(e),l=s.getValuesAsIdKeyed(e);if(u.data_groups.length>0)for(a=s.hasPositiveValueInTargets(e),t=0;t<u.data_groups.length;t++)if(0!==(i=u.data_groups[t].filter((function(e){return c.indexOf(e)>=0}))).length)for(r=i[0],a&&l[r]&&l[r].forEach((function(e,t){l[r][t]=e>0?e:0})),n=1;n<i.length;n++)o=i[n],l[o]&&l[o].forEach((function(e,t){s.axis.getId(o)!==s.axis.getId(r)||!l[r]||a&&+e<0||(l[r][t]+=+e)}));return s.d3.max(Object.keys(l).map((function(e){return s.d3.max(l[e])})))},k.getYDomain=function(e,t,n){var r,i,o,a,s,c,l,f,d,h,p=this,g=p.config,m=e.filter((function(e){return p.axis.getId(e.id)===t})),b=n?p.filterByXDomain(m,n):m,_="y2"===t?g.axis_y2_min:g.axis_y_min,w="y2"===t?g.axis_y2_max:g.axis_y_max,x=p.getYDomainMin(b),O=p.getYDomainMax(b),S="y2"===t?g.axis_y2_center:g.axis_y_center,E=p.hasType("bar",b)&&g.bar_zerobased||p.hasType("area",b)&&g.area_zerobased,k="y2"===t?g.axis_y2_inverted:g.axis_y_inverted,C=p.hasDataLabel()&&g.axis_rotated,T=p.hasDataLabel()&&!g.axis_rotated;return x=u(_)?_:u(w)?x<w?x:w-10:x,O=u(w)?w:u(_)?_<O?O:_+10:O,0===b.length?"y2"===t?p.y2.domain():p.y.domain():(isNaN(x)&&(x=0),isNaN(O)&&(O=x),x===O&&(x<0?O=0:x=0),d=x>=0&&O>=0,h=x<=0&&O<=0,(u(_)&&d||u(w)&&h)&&(E=!1),E&&(d&&(x=0),h&&(O=0)),o=a=.1*(i=Math.abs(O-x)),"undefined"!==typeof S&&(O=S+(s=Math.max(Math.abs(x),Math.abs(O))),x=S-s),C?(c=p.getDataLabelLength(x,O,"width"),l=v(p.y.range()),o+=i*((f=[c[0]/l,c[1]/l])[1]/(1-f[0]-f[1])),a+=i*(f[0]/(1-f[0]-f[1]))):T&&(c=p.getDataLabelLength(x,O,"height"),o+=p.axis.convertPixelsToAxisPadding(c[1],i),a+=p.axis.convertPixelsToAxisPadding(c[0],i)),"y"===t&&y(g.axis_y_padding)&&(o=p.axis.getPadding(g.axis_y_padding,"top",o,i),a=p.axis.getPadding(g.axis_y_padding,"bottom",a,i)),"y2"===t&&y(g.axis_y2_padding)&&(o=p.axis.getPadding(g.axis_y2_padding,"top",o,i),a=p.axis.getPadding(g.axis_y2_padding,"bottom",a,i)),E&&(d&&(a=x),h&&(o=-O)),r=[x-a,O+o],k?r.reverse():r)},k.getXDomainMin=function(e){var t=this,n=t.config;return h(n.axis_x_min)?t.isTimeSeries()?this.parseDate(n.axis_x_min):n.axis_x_min:t.d3.min(e,(function(e){return t.d3.min(e.values,(function(e){return e.x}))}))},k.getXDomainMax=function(e){var t=this,n=t.config;return h(n.axis_x_max)?t.isTimeSeries()?this.parseDate(n.axis_x_max):n.axis_x_max:t.d3.max(e,(function(e){return t.d3.max(e.values,(function(e){return e.x}))}))},k.getXDomainPadding=function(e){var t,n,r,o,a=this,s=a.config,c=e[1]-e[0];return n=a.isCategorized()?0:a.hasType("bar")?(t=a.getMaxDataCount())>1?c/(t-1)/2:.5:.01*c,"object"===i(s.axis_x_padding)&&y(s.axis_x_padding)?(r=u(s.axis_x_padding.left)?s.axis_x_padding.left:n,o=u(s.axis_x_padding.right)?s.axis_x_padding.right:n):r=o="number"===typeof s.axis_x_padding?s.axis_x_padding:n,{left:r,right:o}},k.getXDomain=function(e){var t=this,n=[t.getXDomainMin(e),t.getXDomainMax(e)],r=n[0],i=n[1],o=t.getXDomainPadding(n),a=0,s=0;return r-i!==0||t.isCategorized()||(t.isTimeSeries()?(r=new Date(.5*r.getTime()),i=new Date(1.5*i.getTime())):(r=0===r?1:.5*r,i=0===i?-1:1.5*i)),(r||0===r)&&(a=t.isTimeSeries()?new Date(r.getTime()-o.left):r-o.left),(i||0===i)&&(s=t.isTimeSeries()?new Date(i.getTime()+o.right):i+o.right),[a,s]},k.updateXDomain=function(e,t,n,r,i){var o=this,a=o.config;return n&&(o.x.domain(i||o.d3.extent(o.getXDomain(e))),o.orgXDomain=o.x.domain(),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent(),o.subX.domain(o.x.domain()),o.brush&&o.brush.scale(o.subX)),t&&(o.x.domain(i||(!o.brush||o.brush.empty()?o.orgXDomain:o.brush.extent())),a.zoom_enabled&&o.zoom.scale(o.x).updateScaleExtent()),r&&o.x.domain(o.trimXDomain(o.x.orgDomain())),o.x.domain()},k.trimXDomain=function(e){var t=this.getZoomDomain(),n=t[0],r=t[1];return e[0]<=n&&(e[1]=+e[1]+(n-e[0]),e[0]=n),r<=e[1]&&(e[0]=+e[0]-(e[1]-r),e[1]=r),e},k.drag=function(e){var t,n,i,o,a,s,u,c,l=this,f=l.config,d=l.main,h=l.d3;l.hasArcType()||f.data_selection_enabled&&(f.zoom_enabled&&!l.zoom.altDomain||f.data_selection_multiple&&(t=l.dragStart[0],n=l.dragStart[1],i=e[0],o=e[1],a=Math.min(t,i),s=Math.max(t,i),u=f.data_selection_grouped?l.margin.top:Math.min(n,o),c=f.data_selection_grouped?l.height:Math.max(n,o),d.select("."+r.dragarea).attr("x",a).attr("y",u).attr("width",s-a).attr("height",c-u),d.selectAll("."+r.shapes).selectAll("."+r.shape).filter((function(e){return f.data_selection_isselectable(e)})).each((function(e,t){var n,i,o,f,d,p,g=h.select(this),v=g.classed(r.SELECTED),m=g.classed(r.INCLUDED),y=!1;if(g.classed(r.circle))n=1*g.attr("cx"),i=1*g.attr("cy"),d=l.togglePoint,y=a<n&&n<s&&u<i&&i<c;else{if(!g.classed(r.bar))return;n=(p=x(this)).x,i=p.y,o=p.width,f=p.height,d=l.togglePath,y=!(s<n||n+o<a)&&!(c<i||i+f<u)}y^m&&(g.classed(r.INCLUDED,!m),g.classed(r.SELECTED,!v),d.call(l,!v,g,e,t))}))))},k.dragstart=function(e){var t=this,n=t.config;t.hasArcType()||n.data_selection_enabled&&(t.dragStart=e,t.main.select("."+r.chart).append("rect").attr("class",r.dragarea).style("opacity",.1),t.dragging=!0)},k.dragend=function(){var e=this,t=e.config;e.hasArcType()||t.data_selection_enabled&&(e.main.select("."+r.dragarea).transition().duration(100).style("opacity",0).remove(),e.main.selectAll("."+r.shape).
2classed(r.INCLUDED,!1),e.dragging=!1)},k.getYFormat=function(e){var t=this,n=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.yFormat,r=e&&!t.hasType("gauge")?t.defaultArcValueFormat:t.y2Format;return function(e,i,o){return("y2"===t.axis.getId(o)?r:n).call(t,e,i)}},k.yFormat=function(e){var t=this,n=t.config;return(n.axis_y_tick_format?n.axis_y_tick_format:t.defaultValueFormat)(e)},k.y2Format=function(e){var t=this,n=t.config;return(n.axis_y2_tick_format?n.axis_y2_tick_format:t.defaultValueFormat)(e)},k.defaultValueFormat=function(e){return u(e)?+e:""},k.defaultArcValueFormat=function(e,t){return(100*t).toFixed(1)+"%"},k.dataLabelFormat=function(e){var t=this.config.data_labels,n=function(e){return u(e)?+e:""};return"function"===typeof t.format?t.format:"object"===i(t.format)?t.format[e]?!0===t.format[e]?n:t.format[e]:function(){return""}:n},k.initGrid=function(){var e=this,t=e.config,n=e.d3;e.grid=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",r.grid),t.grid_x_show&&e.grid.append("g").attr("class",r.xgrids),t.grid_y_show&&e.grid.append("g").attr("class",r.ygrids),t.grid_focus_show&&e.grid.append("g").attr("class",r.xgridFocus).append("line").attr("class",r.xgridFocus),e.xgrid=n.selectAll([]),t.grid_lines_front||e.initGridLines()},k.initGridLines=function(){var e=this,t=e.d3;e.gridLines=e.main.append("g").attr("clip-path",e.clipPathForGrid).attr("class",r.grid+" "+r.gridLines),e.gridLines.append("g").attr("class",r.xgridLines),e.gridLines.append("g").attr("class",r.ygridLines),e.xgridLines=t.selectAll([])},k.updateXGrid=function(e){var t=this,n=t.config,i=t.d3,o=t.generateGridData(n.grid_x_type,t.x),a=t.isCategorized()?t.xAxis.tickOffset():0;t.xgridAttr=n.axis_rotated?{x1:0,x2:t.width,y1:function(e){return t.x(e)-a},y2:function(e){return t.x(e)-a}}:{x1:function(e){return t.x(e)+a},x2:function(e){return t.x(e)+a},y1:0,y2:t.height},t.xgrid=t.main.select("."+r.xgrids).selectAll("."+r.xgrid).data(o),t.xgrid.enter().append("line").attr("class",r.xgrid),e||t.xgrid.attr(t.xgridAttr).style("opacity",(function(){return+i.select(this).attr(n.axis_rotated?"y1":"x1")===(n.axis_rotated?t.height:0)?0:1})),t.xgrid.exit().remove()},k.updateYGrid=function(){var e=this,t=e.config,n=e.yAxis.tickValues()||e.y.ticks(t.grid_y_ticks);e.ygrid=e.main.select("."+r.ygrids).selectAll("."+r.ygrid).data(n),e.ygrid.enter().append("line").attr("class",r.ygrid),e.ygrid.attr("x1",t.axis_rotated?e.y:0).attr("x2",t.axis_rotated?e.y:e.width).attr("y1",t.axis_rotated?0:e.y).attr("y2",t.axis_rotated?e.height:e.y),e.ygrid.exit().remove(),e.smoothLines(e.ygrid,"grid")},k.gridTextAnchor=function(e){return e.position?e.position:"end"},k.gridTextDx=function(e){return"start"===e.position?4:"middle"===e.position?0:-4},k.xGridTextX=function(e){return"start"===e.position?-this.height:"middle"===e.position?-this.height/2:0},k.yGridTextX=function(e){return"start"===e.position?0:"middle"===e.position?this.width/2:this.width},k.updateGrid=function(e){var t,n,i,o=this,a=o.main,s=o.config;o.grid.style("visibility",o.hasArcType()?"hidden":"visible"),a.select("line."+r.xgridFocus).style("visibility","hidden"),s.grid_x_show&&o.updateXGrid(),o.xgridLines=a.select("."+r.xgridLines).selectAll("."+r.xgridLine).data(s.grid_x_lines),(t=o.xgridLines.enter().append("g").attr("class",(function(e){return r.xgridLine+(e.class?" "+e.class:"")}))).append("line").style("opacity",0),t.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",s.axis_rotated?"":"rotate(-90)").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),o.xgridLines.exit().transition().duration(e).style("opacity",0).remove(),s.grid_y_show&&o.updateYGrid(),o.ygridLines=a.select("."+r.ygridLines).selectAll("."+r.ygridLine).data(s.grid_y_lines),(n=o.ygridLines.enter().append("g").attr("class",(function(e){return r.ygridLine+(e.class?" "+e.class:"")}))).append("line").style("opacity",0),n.append("text").attr("text-anchor",o.gridTextAnchor).attr("transform",s.axis_rotated?"rotate(-90)":"").attr("dx",o.gridTextDx).attr("dy",-5).style("opacity",0),i=o.yv.bind(o),o.ygridLines.select("line").transition().duration(e).attr("x1",
2s.axis_rotated?i:0).attr("x2",s.axis_rotated?i:o.width).attr("y1",s.axis_rotated?0:i).attr("y2",s.axis_rotated?o.height:i).style("opacity",1),o.ygridLines.select("text").transition().duration(e).attr("x",s.axis_rotated?o.xGridTextX.bind(o):o.yGridTextX.bind(o)).attr("y",i).text((function(e){return e.text})).style("opacity",1),o.ygridLines.exit().transition().duration(e).style("opacity",0).remove()},k.redrawGrid=function(e){var t=this,n=t.config,r=t.xv.bind(t),i=t.xgridLines.select("line"),o=t.xgridLines.select("text");return[(e?i.transition():i).attr("x1",n.axis_rotated?0:r).attr("x2",n.axis_rotated?t.width:r).attr("y1",n.axis_rotated?r:0).attr("y2",n.axis_rotated?r:t.height).style("opacity",1),(e?o.transition():o).attr("x",n.axis_rotated?t.yGridTextX.bind(t):t.xGridTextX.bind(t)).attr("y",r).text((function(e){return e.text})).style("opacity",1)]},k.showXGridFocus=function(e){var t=this,n=t.config,i=e.filter((function(e){return e&&u(e.value)})),o=t.main.selectAll("line."+r.xgridFocus),a=t.xx.bind(t);n.tooltip_show&&(t.hasType("scatter")||t.hasArcType()||(o.style("visibility","visible").data([i[0]]).attr(n.axis_rotated?"y1":"x1",a).attr(n.axis_rotated?"y2":"x2",a),t.smoothLines(o,"grid")))},k.hideXGridFocus=function(){this.main.select("line."+r.xgridFocus).style("visibility","hidden")},k.updateXgridFocus=function(){var e=this,t=e.config;e.main.select("line."+r.xgridFocus).attr("x1",t.axis_rotated?0:-10).attr("x2",t.axis_rotated?e.width:-10).attr("y1",t.axis_rotated?-10:0).attr("y2",t.axis_rotated?-10:e.height)},k.generateGridData=function(e,t){var n,i,o,a,s=this,u=[],c=s.main.select("."+r.axisX).selectAll(".tick").size();if("year"===e)for(i=(n=s.getXDomain())[0].getFullYear(),o=n[1].getFullYear(),a=i;a<=o;a++)u.push(new Date(a+"-01-01 00:00:00"));else(u=t.ticks(10)).length>c&&(u=u.filter((function(e){return(""+e).indexOf(".")<0})));return u},k.getGridFilterToRemove=function(e){return e?function(t){var n=!1;return[].concat(e).forEach((function(e){("value"in e&&t.value===e.value||"class"in e&&t.class===e.class)&&(n=!0)})),n}:function(){return!0}},k.removeGridLines=function(e,t){var n=this,i=n.config,o=n.getGridFilterToRemove(e),a=function(e){return!o(e)},s=t?r.xgridLines:r.ygridLines,u=t?r.xgridLine:r.ygridLine;n.main.select("."+s).selectAll("."+u).filter(o).transition().duration(i.transition_duration).style("opacity",0).remove(),t?i.grid_x_lines=i.grid_x_lines.filter(a):i.grid_y_lines=i.grid_y_lines.filter(a)},k.initEventRect=function(){this.main.select("."+r.chart).append("g").attr("class",r.eventRects).style("fill-opacity",0)},k.redrawEventRect=function(){var e,t,n=this,i=n.config,o=n.isMultipleX(),a=n.main.select("."+r.eventRects).style("cursor",i.zoom_enabled?i.axis_rotated?"ns-resize":"ew-resize":null).classed(r.eventRectsMultiple,o).classed(r.eventRectsSingle,!o);a.selectAll("."+r.eventRect).remove(),n.eventRect=a.selectAll("."+r.eventRect),o?(e=n.eventRect.data([0]),n.generateEventRectsForMultipleXs(e.enter()),n.updateEventRect(e)):(t=n.getMaxDataCountTarget(n.data.targets),a.datum(t?t.values:[]),n.eventRect=a.selectAll("."+r.eventRect),e=n.eventRect.data((function(e){return e})),n.generateEventRectsForSingleX(e.enter()),n.updateEventRect(e),e.exit().remove())},k.updateEventRect=function(e){var t,n,r,i,o,a,s=this,u=s.config;e=e||s.eventRect.data((function(e){return e})),s.isMultipleX()?(t=0,n=0,r=s.width,i=s.height):(!s.isCustomX()&&!s.isTimeSeries()||s.isCategorized()?(o=s.getEventRectWidth(),a=function(e){return s.x(e.x)-o/2}):(s.updateXs(),o=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index);return null===t&&null===n?u.axis_rotated?s.height:s.width:(null===t&&(t=s.x.domain()[0]),null===n&&(n=s.x.domain()[1]),Math.max(0,(s.x(n)-s.x(t))/2))},a=function(e){var t=s.getPrevX(e.index),n=s.getNextX(e.index),r=s.data.xs[e.id][e.index];return null===t&&null===n?0:(null===t&&(t=s.x.domain()[0]),(s.x(r)+s.x(t))/2)}),t=u.axis_rotated?0:a,n=u.axis_rotated?a:0,r=u.axis_rotated?s.width:o,i=u.axis_rotated?o:s.height),e.attr("class",s.classEvent.bind(s)).attr("x",t).attr("y",n).attr("width",r).attr("height",i)},k.generateEventRectsForSingleX=function(e){var t=this,n=t.d3,i=t.config;e.append("rect").attr("class",t.classEvent.bind(t)).style("cursor",i.data_selection_enabled&&i.data_selection_grouped?"pointer":null).on("mouseover",(function(e){var n=e.index;t.dragging||t.flowing||t.hasArcType()||(i.point_focus_expand_enabled&&t.expandCircles(n,null,!0),t.expandBars(n,null,!0),t.main.selectAll("."+r.shape+"-"+n).each((function(e){i.data_onmouseover.call(t.api,e)})))})).on("mouseout",(function(e){var n=e.index;t.config&&(t.hasArcType()||(t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars(),t.main.selectAll("."+r.shape+"-"+n).each((function(e){i.data_onmouseout.call(t.api,e)}))))})).on("mousemove",(function(e){var o,a=e.index,s=t.svg.select("."+r.eventRect+"-"+a);t.dragging||t.flowing||t.hasArcType()||(t.isStepType(e)&&"step-after"===t.config.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,a))&&(a-=1),o=t.filterTargetsToShow(t.data.targets).map((function(e){return t.addName(t.getValueOnIndex(e.values,a))})),i.tooltip_grouped&&(t.showTooltip(o,this),t.showXGridFocus(o)),(!i.tooltip_grouped||i.data_selection_enabled&&!i.data_selection_grouped)&&t.main.selectAll("."+r.shape+"-"+a).each((function(){n.select(this).classed(r.EXPANDED,!0),i.data_selection_enabled&&s.style("cursor",i.data_selection_grouped?"pointer":null),i.tooltip_grouped||(t.hideXGridFocus(),t.hideTooltip(),i.data_selection_grouped||(t.unexpandCircles(a),t.unexpandBars(a)))})).filter((function(e){return t.isWithinShape(this,e)})).each((function(e){i.data_selection_enabled&&(i.data_selection_grouped||i.data_selection_isselectable(e))&&s.style("cursor","pointer"),i.tooltip_grouped||(t.showTooltip([e],this),t.showXGridFocus([e]),i.point_focus_expand_enabled&&t.expandCircles(a,e.id,!0),t.expandBars(a,e.id,!0))})))})).on("click",(function(e){var o=e.index;!t.hasArcType()&&t.toggleShape&&(t.cancelClick?t.cancelClick=!1:(t.isStepType(e)&&"step-after"===i.line_step_type&&n.mouse(this)[0]<t.x(t.getXValue(e.id,o))&&(o-=1),t.main.selectAll("."+r.shape+"-"+o).each((function(e){(i.data_selection_grouped||t.isWithinShape(this,e))&&(t.toggleShape(this,e,o),t.config.data_onclick.call(t.api,e,this))}))))}
2)).call(i.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",(function(){t.drag(n.mouse(this))})).on("dragstart",(function(){t.dragstart(n.mouse(this))})).on("dragend",(function(){t.dragend()})):function(){})},k.generateEventRectsForMultipleXs=function(e){var t=this,n=t.d3,i=t.config;function o(){t.svg.select("."+r.eventRect).style("cursor",null),t.hideXGridFocus(),t.hideTooltip(),t.unexpandCircles(),t.unexpandBars()}e.append("rect").attr("x",0).attr("y",0).attr("width",t.width).attr("height",t.height).attr("class",r.eventRect).on("mouseout",(function(){t.config&&(t.hasArcType()||o())})).on("mousemove",(function(){var e,a,s,u=t.filterTargetsToShow(t.data.targets);t.dragging||t.hasArcType(u)||(e=n.mouse(this),a=t.findClosestFromTargets(u,e),!t.mouseover||a&&a.id===t.mouseover.id||(i.data_onmouseout.call(t.api,t.mouseover),t.mouseover=void 0),a?(s=(t.isScatterType(a)||!i.tooltip_grouped?[a]:t.filterByX(u,a.x)).map((function(e){return t.addName(e)})),t.showTooltip(s,this),i.point_focus_expand_enabled&&t.expandCircles(a.index,a.id,!0),t.expandBars(a.index,a.id,!0),t.showXGridFocus(s),(t.isBarType(a.id)||t.dist(a,e)<i.point_sensitivity)&&(t.svg.select("."+r.eventRect).style("cursor","pointer"),t.mouseover||(i.data_onmouseover.call(t.api,a),t.mouseover=a))):o())})).on("click",(function(){var e,o,a=t.filterTargetsToShow(t.data.targets);t.hasArcType(a)||(e=n.mouse(this),(o=t.findClosestFromTargets(a,e))&&(t.isBarType(o.id)||t.dist(o,e)<i.point_sensitivity)&&t.main.selectAll("."+r.shapes+t.getTargetSelectorSuffix(o.id)).selectAll("."+r.shape+"-"+o.index).each((function(){(i.data_selection_grouped||t.isWithinShape(this,o))&&(t.toggleShape(this,o,o.index),t.config.data_onclick.call(t.api,o,this))})))})).call(i.data_selection_draggable&&t.drag?n.behavior.drag().origin(Object).on("drag",(function(){t.drag(n.mouse(this))})).on("dragstart",(function(){t.dragstart(n.mouse(this))})).on("dragend",(function(){t.dragend()})):function(){})},k.dispatchEvent=function(e,t,n){var i=this,o="."+r.eventRect+(i.isMultipleX()?"":"-"+t),a=i.main.select(o).node(),s=a.getBoundingClientRect(),u=s.left+(n?n[0]:0),c=s.top+(n?n[1]:0),l=document.createEvent("MouseEvents");l.initMouseEvent(e,!0,!0,window,0,u,c,u,c,!1,!1,!1,!1,0,null),a.dispatchEvent(l)},k.initLegend=function(){var e=this;if(e.legendItemTextBox={},e.legendHasRendered=!1,e.legend=e.svg.append("g").attr("transform",e.getTranslate("legend")),!e.config.legend_show)return e.legend.style("visibility","hidden"),void(e.hiddenLegendIds=e.mapToIds(e.data.targets));e.updateLegendWithDefaults()},k.updateLegendWithDefaults=function(){var e=this;e.updateLegend(e.mapToIds(e.data.targets),{withTransform:!1,withTransitionForTransform:!1,withTransition:!1})},k.updateSizeForLegend=function(e,t){var n=this,r=n.config,i={top:n.isLegendTop?n.getCurrentPaddingTop()+r.legend_inset_y+5.5:n.currentHeight-e-n.getCurrentPaddingBottom()-r.legend_inset_y,left:n.isLegendLeft?n.getCurrentPaddingLeft()+r.legend_inset_x+.5:n.currentWidth-t-n.getCurrentPaddingRight()-r.legend_inset_x+.5};n.margin3={top:n.isLegendRight?0:n.isLegendInset?i.top:n.currentHeight-e,right:NaN,bottom:0,left:n.isLegendRight?n.currentWidth-t:n.isLegendInset?i.left:0}},k.transformLegend=function(e){var t=this;(e?t.legend.transition():t.legend).attr("transform",t.getTranslate("legend"))},k.updateLegendStep=function(e){this.legendStep=e},k.updateLegendItemWidth=function(e){this.legendItemWidth=e},k.updateLegendItemHeight=function(e){this.legendItemHeight=e},k.getLegendWidth=function(){var e=this;return e.config.legend_show?e.isLegendRight||e.isLegendInset?e.legendItemWidth*(e.legendStep+1):e.currentWidth:0},k.getLegendHeight=function(){var e=this,t=0;return e.config.legend_show&&(t=e.isLegendRight?e.currentHeight:Math.max(20,e.legendItemHeight)*(e.legendStep+1)),t},k.opacityForLegend=function(e){return e.classed(r.legendItemHidden)?null:1},k.opacityForUnfocusedLegend=function(e){return e.classed(r.legendItemHidden)?null:.3},k.toggleFocusLegend=function(e,t){var n=this;e=n.mapToTargetIds(e),n.legend.selectAll("."+r.legendItem).filter((function(t){return e.indexOf(t)>=0})).classed(r.legendItemFocused,t).transition().duration(100).style("opacity",(function(){return(t?n.opacityForLegend:n.opacityForUnfocusedLegend).call(n,n.d3.select(this))}))},k.revertLegend=function(){var e=this,t=e.d3;e.legend.selectAll("."+r.legendItem).classed(r.legendItemFocused,!1).transition().duration(100).style("opacity",(function(){return e.opacityForLegend(t.select(this))}))},k.showLegend=function(e){var t=this,n=t.config;n.legend_show||(n.legend_show=!0,t.legend.style("visibility","visible"),t.legendHasRendered||t.updateLegendWithDefaults()),t.removeHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("visibility","visible").transition().style("opacity",(function(){return t.opacityForLegend(t.d3.select(this))}))},k.hideLegend=function(e){var t=this,n=t.config;n.legend_show&&m(e)&&(n.legend_show=!1,t.legend.style("visibility","hidden")),t.addHiddenLegendIds(e),t.legend.selectAll(t.selectorLegends(e)).style("opacity",0).style("visibility","hidden")},k.clearLegendItemTextBoxCache=function(){this.legendItemTextBox={}},k.updateLegend=function(e,t,n){var i,o,a,s,u,c,l,f,d,p,g,v,m,y,_,w,x=this,O=x.config,S=4,E=10,k=0,C=0,T=10,j=O.legend_item_tile_width+5,I=0,A={},P={},N={},M=[0],R={},L=0;function D(e,t){return x.legendItemTextBox[t]||(x.legendItemTextBox[t]=x.getTextRect
2(e.textContent,r.legendItem,e)),x.legendItemTextBox[t]}function F(t,n,r){var i,o,a=0===r,s=r===e.length-1,u=D(t,n),c=u.width+j+(!s||x.isLegendRight||x.isLegendInset?E:0)+O.legend_padding,l=u.height+S,f=x.isLegendRight||x.isLegendInset?l:c,d=x.isLegendRight||x.isLegendInset?x.getLegendHeight():x.getLegendWidth();function h(e,t){t||(i=(d-I-f)/2)<T&&(i=(d-f)/2,I=0,L++),R[e]=L,M[L]=x.isLegendInset?10:i,A[e]=I,I+=f}a&&(I=0,L=0,k=0,C=0),!O.legend_show||x.isLegendToShow(n)?(P[n]=c,N[n]=l,(!k||c>=k)&&(k=c),(!C||l>=C)&&(C=l),o=x.isLegendRight||x.isLegendInset?C:k,O.legend_equally?(Object.keys(P).forEach((function(e){P[e]=k})),Object.keys(N).forEach((function(e){N[e]=C})),(i=(d-o*e.length)/2)<T?(I=0,L=0,e.forEach((function(e){h(e)}))):h(n,!0)):h(n)):P[n]=N[n]=R[n]=A[n]=0}e=e.filter((function(e){return!h(O.data_names[e])||null!==O.data_names[e]})),g=b(t=t||{},"withTransition",!0),v=b(t,"withTransitionForTransform",!0),x.isLegendInset&&(L=O.legend_inset_step?O.legend_inset_step:e.length,x.updateLegendStep(L)),x.isLegendRight?(i=function(e){return k*R[e]},s=function(e){return M[R[e]]+A[e]}):x.isLegendInset?(i=function(e){return k*R[e]+10},s=function(e){return M[R[e]]+A[e]}):(i=function(e){return M[R[e]]+A[e]},s=function(e){return C*R[e]}),o=function(e,t){return i(e,t)+4+O.legend_item_tile_width},u=function(e,t){return s(e,t)+9},a=function(e,t){return i(e,t)},c=function(e,t){return s(e,t)-5},l=function(e,t){return i(e,t)-2},f=function(e,t){return i(e,t)-2+O.legend_item_tile_width},d=function(e,t){return s(e,t)+4},(p=x.legend.selectAll("."+r.legendItem).data(e).enter().append("g").attr("class",(function(e){return x.generateClass(r.legendItem,e)})).style("visibility",(function(e){return x.isLegendToShow(e)?"visible":"hidden"})).style("cursor","pointer").on("click",(function(e){O.legend_item_onclick?O.legend_item_onclick.call(x,e):x.d3.event.altKey?(x.api.hide(),x.api.show(e)):(x.api.toggle(e),x.isTargetToShow(e)?x.api.focus(e):x.api.revert())})).on("mouseover",(function(e){O.legend_item_onmouseover?O.legend_item_onmouseover.call(x,e):(x.d3.select(this).classed(r.legendItemFocused,!0),!x.transiting&&x.isTargetToShow(e)&&x.api.focus(e))})).on("mouseout",(function(e){O.legend_item_onmouseout?O.legend_item_onmouseout.call(x,e):(x.d3.select(this).classed(r.legendItemFocused,!1),x.api.revert())}))).append("text").text((function(e){return h(O.data_names[e])?O.data_names[e]:e})).each((function(e,t){F(this,e,t)})).style("pointer-events","none").attr("x",x.isLegendRight||x.isLegendInset?o:-200).attr("y",x.isLegendRight||x.isLegendInset?-200:u),p.append("rect").attr("class",r.legendItemEvent).style("fill-opacity",0).attr("x",x.isLegendRight||x.isLegendInset?a:-200).attr("y",x.isLegendRight||x.isLegendInset?-200:c),p.append("line").attr("class",r.legendItemTile).style("stroke",x.color).style("pointer-events","none").attr("x1",x.isLegendRight||x.isLegendInset?l:-200).attr("y1",x.isLegendRight||x.isLegendInset?-200:d).attr("x2",x.isLegendRight||x.isLegendInset?f:-200).attr("y2",x.isLegendRight||x.isLegendInset?-200:d).attr("stroke-width",O.legend_item_tile_height),w=x.legend.select("."+r.legendBackground+" rect"),x.isLegendInset&&k>0&&0===w.size()&&(w=x.legend.insert("g","."+r.legendItem).attr("class",r.legendBackground).append("rect")),m=x.legend.selectAll("text").data(e).text((function(e){return h(O.data_names[e])?O.data_names[e]:e})).each((function(e,t){F(this,e,t)})),(g?m.transition():m).attr("x",o).attr("y",u),y=x.legend.selectAll("rect."+r.legendItemEvent).data(e),(g?y.transition():y).attr("width",(function(e){return P[e]})).attr("height",(function(e){return N[e]})).attr("x",a).attr("y",c),_=x.legend.selectAll("line."+r.legendItemTile).data(e),(g?_.transition():_).style("stroke",x.levelColor?function(e){return x.levelColor(x.cache[e].values[0].value)}:x.color).attr("x1",l).attr("y1",d).attr("x2",f).attr("y2",d),w&&(g?w.transition():w).attr("height",x.getLegendHeight()-12).attr("width",k*(L+1)+10),x.legend.selectAll("."+r.legendItem).classed(r.legendItemHidden,(function(e){return!x.isTargetToShow(e)})),x.updateLegendItemWidth(k),x.updateLegendItemHeight(C),x.updateLegendStep(L),x.updateSizes(),x.updateScales(),x.updateSvgSize(),x.transformAll(v,n),x.legendHasRendered=!0},k.initRegion=function(){var e=this;e.region=e.main.append("g").attr("clip-path",e.clipPath).attr("class",r.regions)},k.updateRegion=function(e){var t=this,n=t.config;t.region.style("visibility",t.hasArcType()?"hidden":"visible"),t.mainReg
2ion=t.main.select("."+r.regions).selectAll("."+r.region).data(n.regions),t.mainRegion.enter().append("g").append("rect").style("fill-opacity",0),t.mainRegion.attr("class",t.classRegion.bind(t)),t.mainRegion.exit().transition().duration(e).style("opacity",0).remove()},k.redrawRegion=function(e){var t=this,n=t.mainRegion.selectAll("rect").each((function(){var e=t.d3.select(this.parentNode).datum();t.d3.select(this).datum(e)})),r=t.regionX.bind(t),i=t.regionY.bind(t),o=t.regionWidth.bind(t),a=t.regionHeight.bind(t);return[(e?n.transition():n).attr("x",r).attr("y",i).attr("width",o).attr("height",a).style("fill-opacity",(function(e){return u(e.opacity)?e.opacity:.1}))]},k.regionX=function(e){var t=this,n=t.config,r="y"===e.axis?t.y:t.y2;return"y"===e.axis||"y2"===e.axis?n.axis_rotated&&"start"in e?r(e.start):0:n.axis_rotated?0:"start"in e?t.x(t.isTimeSeries()?t.parseDate(e.start):e.start):0},k.regionY=function(e){var t=this,n=t.config,r="y"===e.axis?t.y:t.y2;return"y"===e.axis||"y2"===e.axis?n.axis_rotated?0:"end"in e?r(e.end):0:n.axis_rotated&&"start"in e?t.x(t.isTimeSeries()?t.parseDate(e.start):e.start):0},k.regionWidth=function(e){var t,n=this,r=n.config,i=n.regionX(e),o="y"===e.axis?n.y:n.y2;return(t="y"===e.axis||"y2"===e.axis?r.axis_rotated&&"end"in e?o(e.end):n.width:r.axis_rotated?n.width:"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.width)<i?0:t-i},k.regionHeight=function(e){var t,n=this,r=n.config,i=this.regionY(e),o="y"===e.axis?n.y:n.y2;return(t="y"===e.axis||"y2"===e.axis?r.axis_rotated?n.height:"start"in e?o(e.start):n.height:r.axis_rotated&&"end"in e?n.x(n.isTimeSeries()?n.parseDate(e.end):e.end):n.height)<i?0:t-i},k.isRegionOnX=function(e){return!e.axis||"x"===e.axis},k.getScale=function(e,t,n){return(n?this.d3.time.scale():this.d3.scale.linear()).range([e,t])},k.getX=function(e,t,n,r){var i,o=this,a=o.getScale(e,t,o.isTimeSeries()),s=n?a.domain(n):a;for(i in o.isCategorized()?(r=r||function(){return 0},a=function(e,t){var n=s(e)+r(e);return t?n:Math.ceil(n)}):a=function(e,t){var n=s(e);return t?n:Math.ceil(n)},s)a[i]=s[i];return a.orgDomain=function(){return s.domain()},o.isCategorized()&&(a.domain=function(e){return arguments.length?(s.domain(e),a):[(e=this.orgDomain())[0],e[1]+1]}),a},k.getY=function(e,t,n){var r=this.getScale(e,t,this.isTimeSeriesY());return n&&r.domain(n),r},k.getYScale=function(e){return"y2"===this.axis.getId(e)?this.y2:this.y},k.getSubYScale=function(e){return"y2"===this.axis.getId(e)?this.subY2:this.subY},k.updateScales=function(){var e=this,t=e.config,n=!e.x;e.xMin=t.axis_rotated?1:0,e.xMax=t.axis_rotated?e.height:e.width,e.yMin=t.axis_rotated?0:e.height,e.yMax=t.axis_rotated?e.width:1,e.subXMin=e.xMin,e.subXMax=e.xMax,e.subYMin=t.axis_rotated?0:e.height2,e.subYMax=t.axis_rotated?e.width2:1,e.x=e.getX(e.xMin,e.xMax,n?void 0:e.x.orgDomain(),(function(){return e.xAxis.tickOffset()})),e.y=e.getY(e.yMin,e.yMax,n?t.axis_y_default:e.y.domain()),e.y2=e.getY(e.yMin,e.yMax,n?t.axis_y2_default:e.y2.domain()),e.subX=e.getX(e.xMin,e.xMax,e.orgXDomain,(function(t){return t%1?0:e.subXAxis.tickOffset()})),e.subY=e.getY(e.subYMin,e.subYMax,n?t.axis_y_default:e.subY.domain()),e.subY2=e.getY(e.subYMin,e.subYMax,n?t.axis_y2_default:e.subY2.domain()),e.xAxisTickFormat=e.axis.getXAxisTickFormat(),e.xAxisTickValues=e.axis.getXAxisTickValues(),e.yAxisTickValues=e.axis.getYAxisTickValues(),e.y2AxisTickValues=e.axis.getY2AxisTickValues(),e.xAxis=e.axis.getXAxis(e.x,e.xOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.subXAxis=e.axis.getXAxis(e.subX,e.subXOrient,e.xAxisTickFormat,e.xAxisTickValues,t.axis_x_tick_outer),e.yAxis=e.axis.getYAxis(e.y,e.yOrient,t.axis_y_tick_format,e.yAxisTickValues,t.axis_y_tick_outer),e.y2Axis=e.axis.getYAxis(e.y2,e.y2Orient,t.axis_y2_tick_format,e.y2AxisTickValues,t.axis_y2_tick_outer),n||(e.brush&&e.brush.scale(e.subX),t.zoom_enabled&&e.zoom.scale(e.x)),e.updateArc&&e.updateArc()},k.selectPoint=function(e,t,n){var i=this,o=i.config,a=(o.axis_rotated?i.circleY:i.circleX).bind(i),s=(o.axis_rotated?i.circleX:i.circleY).bind(i),u=i.pointSelectR.bind(i);o.data_onselected.call(i.api,t,e.node()),i.main.select("."+r.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll("."+r.selectedCircle+"-"+n).data([t]).enter().append("circle").attr("class",(function(){return i.generateClass(r.selectedCircle,n)})).attr("cx",a).attr("cy",s).attr("stroke",(function(){return i.color(t)})).attr("r",(function(e){return 1.4*i.pointSelectR(e)})).transition().duration(100).attr("r",u)},k.unselectPoint=function(e,t,n){var i=this;i.config.data_onunselected.call(i.api,t,e.node()),i.main.select("."+r.selectedCircles+i.getTargetSelectorSuffix(t.id)).selectAll("."+r.selectedCircle+"-"+n).transition().duration(100).attr("r",0).remove()},k.togglePoint=function(e,t,n,r){e?this.selectPoint(t,n,r):this.unselectPoint(t,n,r)},k.selectPath=function(e,t){var n=this;n.config.data_onselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",(function(){return n.d3.rgb(n.color(t)).brighter(.75)}))},k.unselectPath=function(e,t){var n=this;n.config.data_onunselected.call(n,t,e.node()),n.config.interaction_brighten&&e.transition().duration(100).style("fill",(function(){return n.color(t)}))},k.togglePath=function(e,t,n,r){e?this.selectPath(t,n,r):this.unselectPath(t,n,r)},k.getToggle=function(e,t){var n,r=this;return"circle"===e.nodeName?n=r.isStepType(t)?function(){}
2:r.togglePoint:"path"===e.nodeName&&(n=r.togglePath),n},k.toggleShape=function(e,t,n){var i=this,o=i.d3,a=i.config,s=o.select(e),u=s.classed(r.SELECTED),c=i.getToggle(e,t).bind(i);a.data_selection_enabled&&a.data_selection_isselectable(t)&&(a.data_selection_multiple||i.main.selectAll("."+r.shapes+(a.data_selection_grouped?i.getTargetSelectorSuffix(t.id):"")).selectAll("."+r.shape).each((function(e,t){var n=o.select(this);n.classed(r.SELECTED)&&c(!1,n.classed(r.SELECTED,!1),e,t)})),s.classed(r.SELECTED,!u),c(!u,s,t,n))},k.initBar=function(){this.main.select("."+r.chart).append("g").attr("class",r.chartBars)},k.updateTargetsForBar=function(e){var t=this,n=t.config,i=t.classChartBar.bind(t),o=t.classBars.bind(t),a=t.classFocus.bind(t);t.main.select("."+r.chartBars).selectAll("."+r.chartBar).data(e).attr("class",(function(e){return i(e)+a(e)})).enter().append("g").attr("class",i).style("pointer-events","none").append("g").attr("class",o).style("cursor",(function(e){return n.data_selection_isselectable(e)?"pointer":null}))},k.updateBar=function(e){var t=this,n=t.barData.bind(t),i=t.classBar.bind(t),o=t.initialOpacity.bind(t),a=function(e){return t.color(e.id)};t.mainBar=t.main.selectAll("."+r.bars).selectAll("."+r.bar).data(n),t.mainBar.enter().append("path").attr("class",i).style("stroke",a).style("fill",a),t.mainBar.style("opacity",o),t.mainBar.exit().transition().duration(e).remove()},k.redrawBar=function(e,t){return[(t?this.mainBar.transition(Math.random().toString()):this.mainBar).attr("d",e).style("stroke",this.color).style("fill",this.color).style("opacity",1)]},k.getBarW=function(e,t){var n=this.config,r="number"===typeof n.bar_width?n.bar_width:t?e.tickInterval()*n.bar_width_ratio/t:0;return n.bar_width_max&&r>n.bar_width_max?n.bar_width_max:r},k.getBars=function(e,t){var n=this;return(t?n.main.selectAll("."+r.bars+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+r.bar+(u(e)?"-"+e:""))},k.expandBars=function(e,t,n){var i=this;n&&i.unexpandBars(),i.getBars(e,t).classed(r.EXPANDED,!0)},k.unexpandBars=function(e){this.getBars(e).classed(r.EXPANDED,!1)},k.generateDrawBar=function(e,t){var n=this,r=n.config,i=n.generateGetBarPoints(e,t);return function(e,t){var n=i(e,t),o=r.axis_rotated?1:0,a=r.axis_rotated?0:1;return"M "+n[0][o]+","+n[0][a]+" L"+n[1][o]+","+n[1][a]+" L"+n[2][o]+","+n[2][a]+" L"+n[3][o]+","+n[3][a]+" z"}},k.generateGetBarPoints=function(e,t){var n=this,r=t?n.subXAxis:n.xAxis,i=e.__max__+1,o=n.getBarW(r,i),a=n.getShapeX(o,i,e,!!t),s=n.getShapeY(!!t),u=n.getShapeOffset(n.isBarType,e,!!t),c=o*(n.config.bar_space/2),l=t?n.getSubYScale:n.getYScale;return function(e,t){var r=l.call(n,e.id)(0),i=u(e,t)||r,f=a(e),d=s(e);return n.config.axis_rotated&&(0<e.value&&d<r||e.value<0&&r<d)&&(d=r),[[f+c,i],[f+c,d-(r-i)],[f+o-c,d-(r-i)],[f+o-c,i]]}},k.isWithinBar=function(e){var t=this.d3.mouse(e),n=e.getBoundingClientRect(),r=e.pathSegList.getItem(0),i=e.pathSegList.getItem(1),o=Math.min(r.x,i.x),a=Math.min(r.y,i.y),s=2,u=o+n.width+s,c=a+n.height+s,l=a-s;return o-s<t[0]&&t[0]<u&&l<t[1]&&t[1]<c},k.getShapeIndices=function(e){var t,n,r=this,i=r.config,o={},a=0;return r.filterTargetsToShow(r.data.targets.filter(e,r)).forEach((function(e){for(t=0;t<i.data_groups.length;t++)if(!(i.data_groups[t].indexOf(e.id)<0))for(n=0;n<i.data_groups[t].length;n++)if(i.data_groups[t][n]in o){o[e.id]=o[i.data_groups[t][n]];break}d(o[e.id])&&(o[e.id]=a++)})),o.__max__=a-1,o},k.getShapeX=function(e,t,n,r){var i=this,o=r?i.subX:i.x;return function(r){var i=r.id in n?n[r.id]:0;return r.x||0===r.x?o(r.x)-e*(t/2-i):0}},k.getShapeY=function(e){var t=this;return function(n){return(e?t.getSubYScale(n.id):t.getYScale(n.id))(n.value)}},k.getShapeOffset=function(e,t,n){var r=this,i=r.orderTargets(r.filterTargetsToShow(r.data.targets.filter(e,r))),o=i.map((function(e){return e.id}));return function(e,a){var s=n?r.getSubYScale(e.id):r.getYScale(e.id),u=s(0),c=u;return i.forEach((function(n){var i=r.isStepType(e)?r.convertValuesToStep(n.values):n.values;n.id!==e.id&&t[n.id]===t[e.id]&&o.indexOf(n.id)<o.indexOf(e.id)&&("undefined"!==typeof i[a]&&+i[a].x===+e.x||(a=-1,i.forEac
2h((function(t,n){t.x===e.x&&(a=n)}))),a in i&&i[a].value*e.value>=0&&(c+=s(i[a].value)-u))})),c}},k.isWithinShape=function(e,t){var n,i=this,o=i.d3.select(e);return i.isTargetToShow(t.id)?"circle"===e.nodeName?n=i.isStepType(t)?i.isWithinStep(e,i.getYScale(t.id)(t.value)):i.isWithinCircle(e,1.5*i.pointSelectR(t)):"path"===e.nodeName&&(n=!o.classed(r.bar)||i.isWithinBar(e)):n=!1,n},k.getInterpolate=function(e){var t=this,n=t.isInterpolationType(t.config.spline_interpolation_type)?t.config.spline_interpolation_type:"cardinal";return t.isSplineType(e)?n:t.isStepType(e)?t.config.line_step_type:"linear"},k.initLine=function(){this.main.select("."+r.chart).append("g").attr("class",r.chartLines)},k.updateTargetsForLine=function(e){var t,n=this,i=n.config,o=n.classChartLine.bind(n),a=n.classLines.bind(n),s=n.classAreas.bind(n),u=n.classCircles.bind(n),c=n.classFocus.bind(n);(t=n.main.select("."+r.chartLines).selectAll("."+r.chartLine).data(e).attr("class",(function(e){return o(e)+c(e)})).enter().append("g").attr("class",o).style("opacity",0).style("pointer-events","none")).append("g").attr("class",a),t.append("g").attr("class",s),t.append("g").attr("class",(function(e){return n.generateClass(r.selectedCircles,e.id)})),t.append("g").attr("class",u).style("cursor",(function(e){return i.data_selection_isselectable(e)?"pointer":null})),e.forEach((function(e){n.main.selectAll("."+r.selectedCircles+n.getTargetSelectorSuffix(e.id)).selectAll("."+r.selectedCircle).each((function(t){t.value=e.values[t.index].value}))}))},k.updateLine=function(e){var t=this;t.mainLine=t.main.selectAll("."+r.lines).selectAll("."+r.line).data(t.lineData.bind(t)),t.mainLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.mainLine.style("opacity",t.initialOpacity.bind(t)).style("shape-rendering",(function(e){return t.isStepType(e)?"crispEdges":""})).attr("transform",null),t.mainLine.exit().transition().duration(e).style("opacity",0).remove()},k.redrawLine=function(e,t){return[(t?this.mainLine.transition(Math.random().toString()):this.mainLine).attr("d",e).style("stroke",this.color).style("opacity",1)]},k.generateDrawLine=function(e,t){var n=this,r=n.config,i=n.d3.svg.line(),o=n.generateGetLinePoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?o(e,t)[0][1]:a.call(n,e.id)(e.value)};return i=r.axis_rotated?i.x(u).y(s):i.x(s).y(u),r.line_connectNull||(i=i.defined((function(e){return null!=e.value}))),function(e){var o,s=r.line_connectNull?n.filterRemoveNull(e.values):e.values,u=t?n.subX:n.x,c=a.call(n,e.id),l=0,f=0;return n.isLineType(e)?r.data_regions[e.id]?o=n.lineWithRegions(s,u,c,r.data_regions[e.id]):(n.isStepType(e)&&(s=n.convertValuesToStep(s)),o=i.interpolate(n.getInterpolate(e))(s)):(s[0]&&(l=u(s[0].x),f=c(s[0].value)),o=r.axis_rotated?"M "+f+" "+l:"M "+l+" "+f),o||"M 0 0"}},k.generateGetLinePoints=function(e,t){var n=this,r=n.config,i=e.__max__+1,o=n.getShapeX(0,i,e,!!t),a=n.get
2ShapeY(!!t),s=n.getShapeOffset(n.isLineType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var i=u.call(n,e.id)(0),c=s(e,t)||i,l=o(e),f=a(e);return r.axis_rotated&&(0<e.value&&f<i||e.value<0&&i<f)&&(f=i),[[l,f-(i-c)],[l,f-(i-c)],[l,f-(i-c)],[l,f-(i-c)]]}},k.lineWithRegions=function(e,t,n,r){var i,o,a,s,u,c,l,f,p,g,v,m=this,y=m.config,b="M",_=m.isCategorized()?.5:0,w=[];function x(e,t){var n;for(n=0;n<t.length;n++)if(t[n].start<e&&e<=t[n].end)return!0;return!1}if(h(r))for(i=0;i<r.length;i++)w[i]={},d(r[i].start)?w[i].start=e[0].x:w[i].start=m.isTimeSeries()?m.parseDate(r[i].start):r[i].start,d(r[i].end)?w[i].end=e[e.length-1].x:w[i].end=m.isTimeSeries()?m.parseDate(r[i].end):r[i].end;function O(e){return"M"+e[0][0]+" "+e[0][1]+" "+e[1][0]+" "+e[1][1]}for(g=y.axis_rotated?function(e){return n(e.value)}:function(e){return t(e.x)},v=y.axis_rotated?function(e){return t(e.x)}:function(e){return n(e.value)},a=m.isTimeSeries()?function(e,r,i,o){var a=e.x.getTime(),s=r.x-e.x,c=new Date(a+s*i),l=new Date(a+s*(i+o));return O(y.axis_rotated?[[n(u(i)),t(c)],[n(u(i+o)),t(l)]]:[[t(c),n(u(i))],[t(l),n(u(i+o))]])}:function(e,r,i,o){return O(y.axis_rotated?[[n(u(i),!0),t(s(i))],[n(u(i+o),!0),t(s(i+o))]]:[[t(s(i),!0),n(u(i))],[t(s(i+o),!0),n(u(i+o))]])},i=0;i<e.length;i++){if(d(w)||!x(e[i].x,w))b+=" "+g(e[i])+" "+v(e[i]);else for(s=m.getScale(e[i-1].x+_,e[i].x+_,m.isTimeSeries()),u=m.getScale(e[i-1].value,e[i].value),c=t(e[i].x)-t(e[i-1].x),l=n(e[i].value)-n(e[i-1].value),p=2*(f=2/Math.sqrt(Math.pow(c,2)+Math.pow(l,2))),o=f;o<=1;o+=p)b+=a(e[i-1],e[i],o,f);e[i].x}return b},k.updateArea=function(e){var t=this,n=t.d3;t.mainArea=t.main.selectAll("."+r.areas).selectAll("."+r.area).data(t.lineData.bind(t)),t.mainArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",(function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0})),t.mainArea.style("opacity",t.orgAreaOpacity),t.mainArea.exit().transition().duration(e).style("opacity",0).remove()},k.redrawArea=function(e,t){return[(t?this.mainArea.transition(Math.random().toString()):this.mainArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)]},k.generateDrawArea=function(e,t){var n=this,r=n.config,i=n.d3.svg.area(),o=n.generateGetAreaPoints(e,t),a=t?n.getSubYScale:n.getYScale,s=function(e){return(t?n.subxx:n.xx).call(n,e)},u=function(e,t){return r.data_groups.length>0?o(e,t)[0][1]:a.call(n,e.id)(n.getAreaBaseValue(e.id))},c=function(e,t){return r.data_groups.length>0?o(e,t)[1][1]:a.call(n,e.id)(e.value)};return i=r.axis_rotated?i.x0(u).x1(c).y(s):i.x(s).y0(r.area_above?0:u).y1(c),r.line_connectNull||(i=i.defined((function(e){return null!==e.value}))),function(e){var t,o=r.line_connectNull?n.filterRemoveNull(e.values):e.values,a=0,s=0;return n.isAreaType(e)?(n.isStepType(e)&&(o=n.convertValuesToStep(o)),t=i.interpolate(n.getInterpolate(e))(o)):(o[0]&&(a=n.x(o[0].x),s=n.getYScale(e.id)(o[0].value)),t=r.axis_rotated?"M "+s+" "+a:"M "+a+" "+s),t||"M 0 0"}},k.getAreaBaseValue=function(){return 0},k.generateGetAreaPoints=function(e,t){var n=this,r=n.config,i=e.__max__+1,o=n.getShapeX(0,i,e,!!t),a=n.get
2ShapeY(!!t),s=n.getShapeOffset(n.isAreaType,e,!!t),u=t?n.getSubYScale:n.getYScale;return function(e,t){var i=u.call(n,e.id)(0),c=s(e,t)||i,l=o(e),f=a(e);return r.axis_rotated&&(0<e.value&&f<i||e.value<0&&i<f)&&(f=i),[[l,c],[l,f-(i-c)],[l,f-(i-c)],[l,c]]}},k.updateCircle=function(){var e=this;e.mainCircle=e.main.selectAll("."+r.circles).selectAll("."+r.circle).data(e.lineOrScatterData.bind(e)),e.mainCircle.enter().append("circle").attr("class",e.classCircle.bind(e)).attr("r",e.pointR.bind(e)).style("fill",e.color),e.mainCircle.style("opacity",e.initialOpacityForCircle.bind(e)),e.mainCircle.exit().remove()},k.redrawCircle=function(e,t,n){var i=this.main.selectAll("."+r.selectedCircle);return[(n?this.mainCircle.transition(Math.random().toString()):this.mainCircle).style("opacity",this.opacityForCircle.bind(this)).style("fill",this.color).attr("cx",e).attr("cy",t),(n?i.transition(Math.random().toString()):i).attr("cx",e).attr("cy",t)]},k.circleX=function(e){return e.x||0===e.x?this.x(e.x):null},k.updateCircleY=function(){var e,t,n=this;n.config.data_groups.length>0?(e=n.getShapeIndices(n.isLineType),t=n.generateGetLinePoints(e),n.circleY=function(e,n){return t(e,n)[0][1]}):n.circleY=function(e){return n.getYScale(e.id)(e.value)}},k.getCircles=function(e,t){var n=this;return(t?n.main.selectAll("."+r.circles+n.getTargetSelectorSuffix(t)):n.main).selectAll("."+r.circle+(u(e)?"-"+e:""))},k.expandCircles=function(e,t,n){var i=this,o=i.pointExpandedR.bind(i);n&&i.unexpandCircles(),i.getCircles(e,t).classed(r.EXPANDED,!0).attr("r",o)},k.unexpandCircles=function(e){var t=this,n=t.pointR.bind(t);t.getCircles(e).filter((function(){return t.d3.select(this).classed(r.EXPANDED)})).classed(r.EXPANDED,!1).attr("r",n)},k.pointR=function(e){var t=this,n=t.config;return t.isStepType(e)?0:c(n.point_r)?n.point_r(e):n.point_r},k.pointExpandedR=function(e){var t=this,n=t.config;return n.point_focus_expand_enabled?c(n.point_focus_expand_r)?n.point_focus_expand_r(e):n.point_focus_expand_r?n.point_focus_expand_r:1.75*t.pointR(e):t.pointR(e)},k.pointSelectR=function(e){var t=this,n=t.config;return c(n.point_select_r)?n.point_select_r(e):n.point_select_r?n.point_select_r:4*t.pointR(e)},k.isWithinCircle=function(e,t){var n=this.d3,r=n.mouse(e),i=n.select(e),o=+i.attr("cx"),a=+i.attr("cy");return Math.sqrt(Math.pow(o-r[0],2)+Math.pow(a-r[1],2))<t},k.isWithinStep=function(e,t){return Math.abs(t-this.d3.mouse(e)[1])<30},k.getCurrentWidth=function(){var e=this,t=e.config;return t.size_width?t.size_width:e.getParentWidth()},k.getCurrentHeight=function(){var e=this,t=e.config,n=t.size_height?t.size_height:e.getParentHeight();return n>0?n:320/(e.hasType("gauge")&&!t.gauge_fullCircle?2:1)},k.getCurrentPaddingTop=function(){var e=this,t=e.config,n=u(t.padding_top)?t.padding_top:0;return e.title&&e.title.node()&&(n+=e.getTitlePadding()),n},k.getCurrentPaddingBottom=function(){var e=this.config;return u(e.padding_bottom)?e.padding_bottom:0},k.getCurrentPaddingLeft=function(e){var t=this,n=t.config;return u(n.padding_left)?n.padding_left:n.axis_rotated?!n.axis_x_show||n.axis_x_inner?1:Math.max(p(t.getAxisWidthByAxisId("x",e)),40):!n.axis_y_show||n.axis_y_inner?t.axis.getYAxisLabelPosition().isOuter?30:1:p(t.getAxisWidthByAxisId("y",e))},k.getCurrentPaddingRight=function(){var e=this,t=e.config,n=10,r=e.isLegendRight?e.getLegendWidth()+20:0;return u(t.padding_right)?t.padding_right+1:t.axis_rotated?n+r:!t.axis_y2_show||t.axis_y2_inner?2+r+(e.axis.getY2AxisLabelPosition().isOuter?20:0):p(e.getAxisWidthByAxisId("y2"))+r},k.getParentRectValue=function(e){for(var t,n=this.selectChart.node();n&&"BODY"!==n.tagName;){try{t=n.getBoundingClientRect()[e]}catch(r){"width"===e&&(t=n.offsetWidth)}if(t)break;n=n.parentNode}return t},k.getParentWidth=function(){return this.getParentRectValue("width")},k.getParentHeight=function(){var e=this.selectChart.style("height");return e.indexOf("px")>0?+e.replace("px",""):0},k.getSvgLeft=function(e){var t=this,n=t.config,i=n.axis_rotated||!n.axis_rotated&&!n.axis_y_inner,o=n.axis_rotated?r.axisX:r.axisY,a=t.main.select("."+o).node(),s=a&&i?a.getBoundingClientRect():{right:0},u=t.selectChart.node().getBoundingClientRect(),c=t.hasArcType(),l=s.right-u.left-(c?0:t.getCurrentPaddingLeft(e));return l>0?l:0},k.getAxisWidthByAxisId=function(e,t){var n=this,r=n.axis.getLabelPositionById(e);return n.axis.getMaxTickWidth(e,t)+(r.isInner?20:40)},k.getHorizontalAxisHeight=function(e){var t=this,n=t.config,r=30;return"x"!==e||n.axis_x_show?"x"===e&&n.axis_x_height?n.axis_x_height:"y"!==e||n.axis_y_show?"y2"!==e||n.axis_y2_show?("x"===e&&!n.axis_rotated&&n.axis_x_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_x_tick_rotate)/180)),"y"===e&&n.axis_rotated&&n.axis_y_tick_rotate&&(r=30+t.axis.getMaxTickWidth(e)*Math.cos(Math.PI*(90-n.axis_y_tick_rotate)/180)),r+(t.axis.getLabelPositionById(e).isInner?0:10)+("y2"===e?-10:0)):t.rotated_padding_top:!n.legend_show||t.isLegendRight||t.isLegendInset?1:10:8},k.getEventRectWidth=function(){return Math.max(0,this.xAxis.tickInterval())},k.initBrush=function(){var e=this,t=e.d3;e.brush=t.svg.brush().on("brush",(function(){e.redrawForBrush()})),e.brush.update=function(){return e.context&&e.context.select("."+r.brush).call(this),this},e.brush.scale=function(t){return e.config.axis_rotated?this.y(t):this.x(t)}},k.initSubchart=function(){var e=this,t=e.config,n=e.context=e.svg.append("g").attr("transform",e.getTranslate("context")),i=t.subchart_show?"visible":"hidden";n.style("visibility",i),n.append("g").attr("clip-path",e.clipPathForSubchart).attr("class",r.chart),n.select("."+r.chart).append("g").attr("class",r.chartBars),n.select("."+r.chart).append("g").attr("class",r.chartLines),n.append("g").attr("clip-path",e.clipPath).attr("class",r.brush).call(e.brush),e.axes.subx=n.append("g").attr("class",r.axisX).attr("transform",e.getTranslate("subx")).attr("clip-path",t.axis_rotated?"":e.clipPathForXAxis).style("visibility",t.subchart_axis_x_show?i:"hidden")},k.updateTargetsForSubchart=function(e){var t,n=this,i=n.context,o=n.config,a=n.classChartBar.bind(n),s=n.classBars.bind(n),u=n.classChartLine.bind(n),c=n.classLines.bind(n),l=n.classAreas.bind(n);o.subchart_show&&(i.select("."+r.chartBars).selectAll("."+r.chartBar).data(e).attr("class",a).enter().append("g").style("opacity",0).attr("class",a).append("g").attr("class",s),(t=i.select("."+r.chartLines).selectAll("."+r.chartLine).data(e).attr("class",u).enter().append("g").style("opacity",0).attr("class",u)).append("g").attr("class",c),t.append("g").attr("class",l),i.selectAll("."+r.brush+" rect").attr(o.axis_rotated?"width":"height",o.axis_rotated?n.width2:n.height2))},k.updateBarForSubchart=function(e){var t=this;t.contextBar=t.context.selectAll("."+r.bars).selectAll("."+r.bar).data(t.barData.bind(t)),t.contextBar.enter().append("path").attr("class",t.classBar.bind(t)).style("stroke","none").style("fill",t.color),t.contextBar.style("opacity",t.initialOpacity.bind(t)),t.contextBar.exit().transition().duration(e).style("opacity",0).remove()},k.redrawBarForSubchart=function(e,t,n){(t?this.contextBar.transition(Math.random().toString()).duration(n):this.contextBar).attr("d",e).style("opacity",1)},k.updateLineForSubchart=function(e){var t=this;t.contextLine=t.context.selectAll("."+r.lines).selectAll("."+r.line).data(t.lineData.bind(t)),t.contextLine.enter().append("path").attr("class",t.classLine.bind(t)).style("stroke",t.color),t.contextLine.style("opacity",t.initialOpacity.bind(t)),t.contextLine.exit().transition().duration(e).style("opacity",0).remove()},k.redrawLineForSubchart=function(e,t,n){(t?this.contextLine.transition(Math.random().toString()).duration(n):this.contextLine).attr("d",e).style("opacity",1)},k.updateAreaForSubchart=function(e){var t=this,n=t.d3;t.contextArea=t.context.selectAll("."+r.areas).selectAll("."+r.area).data(t.lineData.bind(t)),t.contextArea.enter().append("path").attr("class",t.classArea.bind(t)).style("fill",t.color).style("opacity",(function(){return t.orgAreaOpacity=+n.select(this).style("opacity"),0})),t.contextArea.style("opacity",0),t.contextArea.exit().transition().duration(e).style("opacity",0).remove()},k.redrawAreaForSubchart=function(e,t,n){(t?this.contextArea.transition(Math.random().toString()).duration(n):this.contextArea).attr("d",e).style("fill",this.color).style("opacity",this.orgAreaOpacity)},k.redrawSubchart=function(e,t,n,r,i,o,a){var s,u,c,l=this,f=l.d3,d=l.config;l.context.style("visibility",d.subchart_show?"visible":"hidden"),d.subchart_show&&(f.event&&"zoom"===f.event.type&&l.brush.extent(l.x.orgDomain()).update(),e&&(l.brush.empty()||l.brush.extent(l.x.orgDomain()).update(),s=l.generateDrawArea(i,!0),u=l.generateDrawBar(o,!0),c=l.generateDrawLine(a,!0),l.updateBarForSubchart(n),l.updateLineForSubchart(n),l.updateAreaForSubchart(n),l.redrawBarForSubchart(u,n,n),l.redrawLineForSubchart(c,n,n),l.redrawAreaForSubchart(s,n,n)))},k.redrawForBrush=function(){var e=this,t=e.x;e.redraw({withTransition:!1,withY:e.config.zoom_rescale,withSubchart:!1,withUpdateXDomain:!0,withDimension:!1}),e.config.subchart_onbrush.call(e.api,t.orgDomain())}
2,k.transformContext=function(e,t){var n,i=this;t&&t.axisSubX?n=t.axisSubX:(n=i.context.select("."+r.axisX),e&&(n=n.transition())),i.context.attr("transform",i.getTranslate("context")),n.attr("transform",i.getTranslate("subx"))},k.getDefaultExtent=function(){var e=this,t=e.config,n=c(t.axis_x_extent)?t.axis_x_extent(e.getXDomain(e.data.targets)):t.axis_x_extent;return e.isTimeSeries()&&(n=[e.parseDate(n[0]),e.parseDate(n[1])]),n},k.initText=function(){var e=this;e.main.select("."+r.chart).append("g").attr("class",r.chartTexts),e.mainText=e.d3.selectAll([])},k.updateTargetsForText=function(e){var t=this,n=t.classChartText.bind(t),i=t.classTexts.bind(t),o=t.classFocus.bind(t);t.main.select("."+r.chartTexts).selectAll("."+r.chartText).data(e).attr("class",(function(e){return n(e)+o(e)})).enter().append("g").attr("class",n).style("opacity",0).style("pointer-events","none").append("g").attr("class",i)},k.updateText=function(e){var t=this,n=t.config,i=t.barOrLineData.bind(t),o=t.classText.bind(t);t.mainText=t.main.selectAll("."+r.texts).selectAll("."+r.text).data(i),t.mainText.enter().append("text").attr("class",o).attr("text-anchor",(function(e){return n.axis_rotated?e.value<0?"end":"start":"middle"})).style("stroke","none").style("fill",(function(e){return t.color(e)})).style("fill-opacity",0),t.mainText.text((function(e,n,r){return t.dataLabelFormat(e.id)(e.value,e.id,n,r)})),t.mainText.exit().transition().duration(e).style("fill-opacity",0).remove()},k.redrawText=function(e,t,n,r){return[(r?this.mainText.transition():this.mainText).attr("x",e).attr("y",t).style("fill",this.color).style("fill-opacity",n?0:this.opacityForText.bind(this))]},k.getTextRect=function(e,t,n){var r,i=this.d3.select("body").append("div").classed("c3",!0),o=i.append("svg").style("visibility","hidden").style("position","fixed").style("top",0).style("left",0),a=this.d3.select(n).style("font");return o.selectAll(".dummy").data([e]).enter().append("text").classed(t||"",!0).style("font",a).text(e).each((function(){r=this.getBoundingClientRect()})),i.remove(),r},k.generateXYForText=function(e,t,n,r){var i=this,o=i.generateGetAreaPoints(e,!1),a=i.generateGetBarPoints(t,!1),s=i.generateGetLinePoints(n,!1),u=r?i.getXForText:i.getYForText;return function(e,t){var n=i.isAreaType(e)?o:i.isBarType(e)?a:s;return u.call(i,n(e,t),e,this)}},k.getXForText=function(e,t,n){var r,i,o=this,a=n.getBoundingClientRect();return o.config.axis_rotated?(i=o.isBarType(t)?4:6,r=e[2][1]+i*(t.value<0?-1:1)):r=o.hasType("bar")?(e[2][0]+e[0][0])/2:e[0][0],null===t.value&&(r>o.width?r=o.width-a.width:r<0&&(r=4)),r},k.getYForText=function(e,t,n){var r,i=this,o=n.getBoundingClientRect();return i.config.axis_rotated?r=(e[0][0]+e[2][0]+.6*o.height)/2:(r=e[2][1],t.value<0||0===t.value&&!i.hasPositiveValue?(r+=o.height,i.isBarType(t)&&i.isSafari()?r-=3:!i.isBarType(t)&&i.isChrome()&&(r+=3)):r+=i.isBarType(t)?-3:-6),null!==t.value||i.config.axis_rotated||(r<o.height?r=o.height:r>this.height&&(r=this.height-4)),r},k.initTitle=function(){var e=this;e.title=e.svg.append("text").text(e.config.title_text).attr("class",e.CLASS.title)},k.redrawTitle=function(){var e=this;e.title.attr("x",e.xForTitle.bind(e)).attr("y",e.yForTitle.bind(e))},k.xForTitle=function(){var e=this,t=e.config,n=t.title_position||"left";return n.indexOf("right")>=0?e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width-t.title_padding.right:n.indexOf("center")>=0?(e.currentWidth-e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).width)/2:t.title_padding.left},k.yForTitle=function(){var e=this;return e.config.title_padding.top+e.getTextRect(e.title.node().textContent,e.CLASS.title,e.title.node()).height},k.getTitlePadding=function(){var e=this;return e.yForTitle()+e.config.title_padding.bottom},k.initTooltip=function(){var e,t=this,n=t.config;if(t.tooltip=t.selectChart.style("position","relative").append("div").attr("class",r.tooltipContainer).style("position","absolute").style("pointer-events","none").style("display","none"),n.tooltip_init_show){if(t.isTimeSeries()&&f(n.tooltip_init_x)){for(n.tooltip_init_x=t.parseDate(n.tooltip_init_x),e=0;e<t.data.targets[0].values.length&&t.data.targets[0].values[e].x-n.tooltip_init_x!==0;e++);n.tooltip_init_x=e}t.tooltip.html(n.tooltip_contents.call(t,t.data.targets.map((function(e){return t.addName(e.values[n.tooltip_init_x])})),t.axis.getXAxisTickFormat(),t.getYFormat(t.hasArcType()),t.color)),t.tooltip.style("top",n.tooltip_init_position.top).style("left",n.tooltip_init_position.left).style("display","block")}},k.getTooltipSortFunction=function(){var e=this,t=e.config;if(0!==t.data_groups.length&&void 0===t.tooltip_order){var n=e.orderTargets(e.data.targets).map((function(e){return e.id}));return(e.isOrderAsc()||e.isOrderDesc())&&(n=n.reverse()),function(e,t){return n.indexOf(e.id)-n.indexOf(t.id)}}
2var r=t.tooltip_order;void 0===r&&(r=t.data_order);var i=function(e){return e?e.value:null};if(f(r)&&"asc"===r.toLowerCase())return function(e,t){return i(e)-i(t)};if(f(r)&&"desc"===r.toLowerCase())return function(e,t){return i(t)-i(e)};if(c(r)){var o=r;return void 0===t.tooltip_order&&(o=function(e,t){return r(e?{id:e.id,values:[e]}:null,t?{id:t.id,values:[t]}:null)}),o}return l(r)?function(e,t){return r.indexOf(e.id)-r.indexOf(t.id)}:void 0},k.getTooltipContent=function(e,t,n,r){var i,o,a,s,u,c,l=this,f=l.config,d=f.tooltip_format_title||t,h=f.tooltip_format_name||function(e){return e},p=f.tooltip_format_value||n,g=this.getTooltipSortFunction();for(g&&e.sort(g),o=0;o<e.length;o++)if(e[o]&&(e[o].value||0===e[o].value)&&(i||(a=w(d?d(e[o].x):e[o].x),i="<table class='"+l.CLASS.tooltip+"'>"+(a||0===a?"<tr><th colspan='2'>"+a+"</th></tr>":"")),void 0!==(s=w(p(e[o].value,e[o].ratio,e[o].id,e[o].index,e))))){if(null===e[o].name)continue;u=w(h(e[o].name,e[o].ratio,e[o].id,e[o].index)),c=l.levelColor?l.levelColor(e[o].value):r(e[o].id),i+="<tr class='"+l.CLASS.tooltipName+"-"+l.getTargetSelectorSuffix(e[o].id)+"'>",i+="<td class='name'><span style='background-color:"+c+"'></span>"+u+"</td>",i+="<td class='value'>"+s+"</td>",i+="</tr>"}return i+"</table>"},k.tooltipPosition=function(e,t,n,r){var i,o,a,s,u,c=this,l=c.config,f=c.d3,d=c.hasArcType(),h=f.mouse(r);return d?(o=(c.width-(c.isLegendRight?c.getLegendWidth():0))/2+h[0],s=(c.hasType("gauge")?c.height:c.height/2)+h[1]+20):(i=c.getSvgLeft(!0),l.axis_rotated?(a=(o=i+h[0]+100)+t,u=c.currentWidth-c.getCurrentPaddingRight(),s=c.x(e[0].x)+20):(a=(o=i+c.getCurrentPaddingLeft(!0)+c.x(e[0].x)+20)+t,u=i+c.currentWidth-c.getCurrentPaddingRight(),s=h[1]+15),a>u&&(o-=a-u+20),s+n>c.currentHeight&&(s-=n+30)),s<0&&(s=0),{top:s,left:o}},k.showTooltip=function(e,t){var n,r,i,o=this,a=o.config,s=o.hasArcType(),c=e.filter((function(e){return e&&u(e.value)})),l=a.tooltip_position||k.tooltipPosition;0!==c.length&&a.tooltip_show&&(o.tooltip.html(a.tooltip_contents.call(o,e,o.axis.getXAxisTickFormat(),o.getYFormat(s),o.color)).style("display","block"),n=o.tooltip.property("offsetWidth"),r=o.tooltip.property("offsetHeight"),i=l.call(this,c,n,r,t),o.tooltip.style("top",i.top+"px").style("left",i.left+"px"))},k.hideTooltip=function(){this.tooltip.style("display","none")},k.setTargetType=function(e,t){var n=this,r=n.config;n.mapToTargetIds(e).forEach((function(e){n.withoutFadeIn[e]=t===r.data_types[e],r.data_types[e]=t})),e||(r.data_type=t)},k.hasType=function(e,t){var n=this,r=n.config.data_types,i=!1;return(t=t||n.data.targets)&&t.length?t.forEach((function(t){var n=r[t.id];(n&&n.indexOf(e)>=0||!n&&"line"===e)&&(i=!0)})):Object.keys(r).length?Object.keys(r).forEach((function(t){r[t]===e&&(i=!0)})):i=n.config.data_type===e,i},k.hasArcType=function(e){return this.hasType("pie",e)||this.hasType("donut",e)||this.hasType("gauge",e)},k.isLineType=function(e){var t=this.config,n=f(e)?e:e.id;return!t.data_types[n]||["line","spline","area","area-spline","step","area-step"].indexOf(t.data_types[n])>=0},k.isStepType=function(e){var t=f(e)?e:e.id;return["step","area-step"].indexOf(this.config.data_types[t])>=0},k.isSplineType=function(e){var t=f(e)?e:e.id;return["spline","area-spline"].indexOf(this.config.data_types[t])>=0},k.isAreaType=function(e){var t=f(e)?e:e.id;return["area","area-spline","area-step"].indexOf(this.config.data_types[t])>=0},k.isBarType=function(e){var t=f(e)?e:e.id;return"bar"===this.config.data_types[t]},k.isScatterType=function(e){var t=f(e)?e:e.id;return"scatter"===this.config.data_types[t]},k.isPieType=function(e){var t=f(e)?e:e.id;return"pie"===this.config.data_types[t]},k.isGaugeType=function(e){var t=f(e)?e:e.id;return"gauge"===this.config.data_types[t]},k.isDonutType=function(e){var t=f(e)?e:e.id;return"donut"===this.config.data_types[t]},k.isArcType=function(e){return this.isPieType(e)||this.isDonutType(e)||this.isGaugeType(e)},k.lineData=function(e){return this.isLineType(e)?[e]:[]},k.arcData=function(e){return this.isArcType(e.data)?[e]:[]},k.barData=function(e){return this.isBarType(e)?e.values:[]},k.lineOrScatterData=function(e){return this.isLineType(e)||this.isScatterType(e)?e.values:[]},k.barOrLineData=function(e){return this.isBarType(e)||this.isLineType(e)?e.values:[]},k.isInterpolationType=function(e){return["linear","linear-closed","basis","basis-open","basis-closed","bundle","cardinal","cardinal-open","cardinal-closed","monotone"].indexOf(e)>=0},k.isSafari=function(){var e=window.navigator.userAgent;return e.indexOf("Safari")>=0&&e.indexOf("Chrome")<0},k.isChrome=function(){return window.navigator.userAgent.indexOf("Chrome")>=0},k.initZoom=function(){var e,t=this,n=t.d3,r=t.config;t.zoom=n.behavior.zoom().on("zoomstart",(function(){e=n.event.sourceEvent,t.zoom.altDomain=n.event.sourceEvent.altKey?t.x.orgDomain():null,r.zoom_onzoomstart.call(t.api,n.event.sourceEvent)})).on("zoom",(function(){t.redrawForZoom.call(t)})).on("zoomend",(function(){var i=n.event.sourceEvent;i&&e.clientX===i.clientX&&e.clientY===i.clientY||(t.redrawEventRect(),t.updateZoom(),r.zoom_onzoomend.call(t.api,t.x.orgDomain()))})),t.zoom.scale=function(e){return r.axis_rotated?this.y(e):this.x(e)},t.zoom.orgScaleExtent=function(){var e=r.zoom_extent?r.zoom_extent:[1,10];return[e[0],Math.max(t.getMaxDataCount()/e[1],e[1])]},t.zoom.updateScaleExtent=function(){var e=v(t.x.orgDomain())/v(t.getZoomDomain()),n=this.orgScaleExtent();return this.scaleExtent([n[0]*e,n[1]*e]),this}},k.getZoomDomain=function(){var e=this,t=e.config,n=e.d3;return[n.min([e.orgXDomain[0],t.zoom_x_min]),n.max([e.orgXDomain[1],t.zoom_x_max])]},k.updateZoom=function(){var e=this,t=e.config.zoom_enabled?e.zoom:function(){};e.main.select("."+r.zoomRect).call(t).on("dblclick.zoom",null),e.main.selectAll("."+r.eventRect).call(t).on("dblclick.zoom",null)},k.redrawForZoom=function(){var e=this,t=e.d3,n=e.config,r=e.zoom,i=e.x;if(n.zoom_enabled&&0!==e.filterTargetsToShow(e.data.targets).length){if("mousemove"===t.event.sourceEvent.type&&r.altDomain)return i.domain(r.altDomain),void r.scale(i).updateScaleExtent();e.isCategorized()&&i.orgDomain()[0]===e.orgXDomain[0]&&i.domain([e.orgXDomain[0]-1e-10,i.orgDomain()[1]]),e.redraw({withTransition:!1,withY:n.zoom_rescale,withSubchart:!1,withEventRect:!1,withDimension:!1}),"mousemove"===t.event.sourceEvent.type&&(e.cancelClick=!0),n.zoom_onzoom.call(e.api,i.orgDomain())}},C}()},function(e,t,n){var r,i;!function(){var o={version:"3.5.17"},a=[].slice,s=function(e){return a.call(e)},u=this.document;function c(e){return e&&(e.ownerDocument||e.document||e).documentElement}function l(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(u)try{s(u.documentElement.childNodes)[0].nodeType}catch(hu){s=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),u)try{u.createElement("DIV").style.setProperty("opacity",0,"")}catch(pu){var f=this.Element.prototype,d=f.setAttribute,h=f.setAttributeNS,p=this.CSSStyleDeclaration.prototype,g=p.setProperty;f.setAttribute=function(e,t){d.call(this,e,t+"")},f.setAttributeNS=function(e,t,n){h.call(this,e,t,n+"")},p.setProperty=function(e,t,n){g.call(this,e,t+"",n)}}function v(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function m(e){return null===e?NaN:+e}function y(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}}o.ascending=v,o.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},o.min=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&n>r&&(n=r)}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&n>r&&(n=r)}return n},o.max=function(e,t){var n,r,i=-1,o=e.length;if(1===arguments.length){for(;++i<o;)if(null!=(r=e[i])&&r>=r){n=r;break}for(;++i<o;)null!=(r=e[i])&&r>n&&(n=r)}else{for(;++i<o;)if(null!=(r=t.call(e,e[i],i))&&r>=r){n=r;break}for(;++i<o;)null!=(r=t.call(e,e[i],i))&&r>n&&(n=r)}return n},o.extent=function(e,t){var n,r,i,o=-1,a=e.length;if(1===arguments.length){for(;++o<a;)if(null!=(r=e[o])&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=e[o])&&(n>r&&(n=r),i<r&&(i=r))}else{for(;++o<a;)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=i=r;break}for(;++o<a;)null!=(r=t.call(e,e[o],o))&&(n>r&&(n=r),i<r&&(i=r))}return[n,i]},o.sum=function(e,t){var n,r=0,i=e.length,o=-1;if(1===arguments.length)for(;++o<i;)y(n=+e[o])&&(r+=n);else for(;++o<i;)y(n=+t.call(e,e[o],o))&&(r+=n);return r},o.mean=function(e,t){var n,r=0,i=e.length,o=-1,a=i;if(1===arguments.length)for(;++o<i;)y(n=m(e[o]))?r+=n:--a;else for(;++o<i;)y(n=m(t.call(e,e[o],o)))?r+=n:--a;if(a)return r/a},o.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i},o.median=function(e,t){var n,r=[],i=e.length,a=-1;if(1===arguments.length)for(;++a<i;)y(n=m(e[a]))&&r.push(n);else for(;++a<i;)y(n=m(t.call(e,e[a],a)))&&r.push(n);if(r.length)return o.quantile(r.sort(v),.5)},o.variance=function(e,t){var n,r,i=e.length,o=0,a=0,s=-1,u=0;if(1===arguments.length)for(;++s<i;)y(n=m(e[s]))&&(a+=(r=n-o)*(n-(o+=r/++u)));else for(;++s<i;
2)y(n=m(t.call(e,e[s],s)))&&(a+=(r=n-o)*(n-(o+=r/++u)));if(u>1)return a/(u-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var _=b(v);function w(e){return e.length}o.bisectLeft=_.left,o.bisect=o.bisectRight=_.right,o.bisector=function(e){return b(1===e.length?function(t,n){return v(e(t),n)}:e)},o.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));for(var r,i,o=n-t;o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},o.permute=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},o.pairs=function(e){for(var t=0,n=e.length-1,r=e[0],i=new Array(n<0?0:n);t<n;)i[t]=[r,r=e[++t]];return i},o.transpose=function(e){if(!(i=e.length))return[];for(var t=-1,n=o.min(e,w),r=new Array(n);++t<n;)for(var i,a=-1,s=r[t]=new Array(i);++a<i;)s[a]=e[a][t];return r},o.zip=function(){return o.transpose(arguments)},o.keys=function(e){var t=[];for(var n in e)t.push(n);return t},o.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},o.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},o.merge=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n};var x=Math.abs;function O(e){for(var t=1;e*t%1;)t*=10;return t}function S(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function E(){this._=Object.create(null)}o.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,i=[],o=O(x(n)),a=-1;if(e*=o,t*=o,(n*=o)<0)for(;(r=e+n*++a)>t;)i.push(r/o);else for(;(r=e+n*++a)<t;)i.push(r/o);return i},o.map=function(e,t){var n=new E;if(e instanceof E)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,i=-1,o=e.length;if(1===arguments.length)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t.call(e,r=e[i],i),r)}else for(var a in e)n.set(a,e[a]);return n};function k(e){return"__proto__"===(e+="")||"\0"===e[0]?"\0"+e:e}function C(e){return"\0"===(e+="")[0]?e.slice(1):e}function T(e){return k(e)in this._}function j(e){return(e=k(e))in this._&&delete this._[e]}function I(){var e=[];for(var t in this._)e.push(C(t));return e}function A(){var e=0;for(var t in this._)++e;return e}function P(){for(var e in this._)return!1;return!0}function N(){this._=Object.create(null)}function M(e){return e}function R(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function L(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=D.length;n<r;++n){var i=D[n]+t;if(i in e)return i}}S(E,{has:T,get:function(e){return this._[k(e)]},set:function(e,t){return this._[k(e)]=t},remove:j,keys:I,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:C(t),value:this._[t]});return e},size:A,empty:P,forEach:function(e){for(var t in this._)e.call(this,C(t),this._[t])}}),o.nest=function(){var e,t,n={},r=[],i=[];function a(i,o,s){if(s>=r.length)return t?t.call(n,o):e?o.sort(e):o;for(var u,c,l,f,d=-1,h=o.length,p=r[s++],g=new E;++d<h;)(f=g.get(u=p(c=o[d])))?f.push(c):g.set(u,[c]);return i?(c=i(),l=function(e,t){c.set(e,a(i,t,s))}):(c={},l=function(e,t){c[e]=a(i,t,s)}),g.forEach(l),c}function s(e,t){if(t>=r.length)return e;var n=[],o=i[t++];return e.forEach((function(e,r){n.push({key:e,values:s(r,t)})})),o?n.sort((function(e,t){return o(e.key,t.key)})):n}return n.map=function(e,t){return a(t,e,0)},n.entries=function(e){return s(a(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return i[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new N;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},S(N,{has:T,add:function(e){return this._[k(e+="")]=!0,e},remove:j,values:I,size:A,empty:P,forEach:function(e){for(var t in this._)e.call(this,C(t))}}),o.behavior={},o.rebind=function(e,t){for(var n,r=1,i=arguments.length;++r<i;)e[n=arguments[r]]=R(e,t,t[n]);return e};var D=["webkit","ms","moz","Moz","o","O"];function F(){}function V(){}function U(e){var t=[],n=new E;function r(){for(var n,r=t,i=-1,o=r.length;++i<o;)(n=r[i].on)&&n.apply(this,arguments);return e}return r.on=function(r,i){var o,a=n.get(r);return arguments.length<2?a&&a.on:(a&&(a.on=null,t=t.slice(0,o=t.indexOf(a)).concat(t.slice(o+1)),n.remove(r)),i&&t.push(n.set(r,{on:i})),e)},r}function B(){o.event.preventDefault()}function z(){for(var e,t=o.event;e=t.sourceEvent;)t=e;return t}function q(e){for(var t=new V,n=0,r=arguments.length;++n<r;)t[arguments[n]]=U(t);return t.of=function(n,r){return function(i){try{var a=i.sourceEvent=o.event;i.target=e,o.event=i,t[i.type].apply(n,r)}finally{o.event=a}}},t}o.dispatch=function(){for(var e=new V,t=-1,n=arguments.length;++t<n;)e[arguments[t]]=U(e);return e},V.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},o.event=null,o.requote=function(e){return e.replace(G,"\\$&")};var G=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function H(e){return W(e,$),e}var K=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},Y=function(e,t){var n=e.matches||e[L(e,"matchesSelector")];return(Y=function(e,t){return n.call(e,t)})(e,t)};"function"===typeof Sizzle&&(K=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,Y=Sizzle.matchesSelector),o.selection=function(){return o.select(u.documentElement)};var $=o.selection.prototype=[];function Q(e){return"function"===typeof e?e:function(){return K(e,this)}}function J(e){return"function"===typeof e?e:function(){return X(e,this)}}$.select=function(e){var t,n,r,i,o=[];e=Q(e);for(var a=-1,s=this.length;++a<s;){o.push(t=[]),t.parentNode=(r=this[a]).parentNode;for(var u=-1,c=r.length;++u<c;)(i=r[u])?(t.push(n=e.call(i,i.__data__,u,a)),n&&"__data__"in i&&(n.__data__=i.__data__)):t.push(null)}return H(o)},$.selectAll=function(e){var t,n,r=[];e=J(e);for(var i=-1,o=this.length;++i<o;)for(var a=this[i],u=-1,c=a.length;++u<c;)(n=a[u])&&(r.push(t=s(e.call(n,n.__data__,u,i))),t.parentNode=n);return H(r)};var Z="http://www.w3.org/1999/xhtml",ee={svg:"http://www.w3.org/2000/svg",xhtml:Z,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function te(e,t){return e=o.ns.qualify(e),null==t?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:"function"===typeof t?e.local?function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}:function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}:e.local?function(){this.setAttributeNS(e.space,e.local,t)}:function(){this.setAttribute(e,t)}}function ne(e){return e.trim().replace(/\s+/g," ")}function re(e){return new RegExp("(?:^|\\s+)"+o.requote(e)+"(?:\\s+|$)","g")}function ie(e){return(e+"").trim().split(/^|\s+/)}function oe(e,t){var n=(e=ie(e).map(ae)).length;return"function"===typeof t?function(){for(var r=-1,i=t.apply(this,arguments);++r<n;)e[r](this,i)}:function(){for(var r=-1;++r<n;)e[r](this,t)}}function ae(e){var t=re(e);return function(n,r){if(i=n.classList)return r?i.add(e):i.remove(e);var i=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||n.setAttribute("class",ne(i+" "+e))):n.setAttribute("class",ne(i.replace(t," ")))}}function se(e,t,n){return null==t?function(){this.style.removeProperty(e)}:"function"===typeof t?function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}:function(){this.style.setProperty(e,t,n)}}function ue(e,t){return null==t?function(){delete this[e]}:"function"===typeof t?function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}:function(){this[e]=t}}function ce(e){return"function"===typeof e?e:(e=o.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Z&&t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(n,e)}}function le(){var e=this.parentNode;e&&e.removeChild(this)}function fe(e){return{__data__:e}}function de(e){return function(){return Y(this,e)}}function he(e){return arguments.length||(e=v),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function pe(e,t){for(var n=0,r=e.length;n<r;n++)for(var i,o=e[n],a=0,s=o.length;a<s;a++)(i=o[a])&&t(i,a,n);return e}function ge(e){return W(e,ve),e}o.ns={prefix:ee,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ee.hasOwnProperty(n)?{space:ee[n],local:e}:e}},$.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node();return(e=o.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(te(t,e[t]));return this}return this.each(te(e,t))},$.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node(),r=(e
2=ie(e)).length,i=-1;if(t=n.classList){for(;++i<r;)if(!t.contains(e[i]))return!1}else for(t=n.getAttribute("class");++i<r;)if(!re(e[i]).test(t))return!1;return!0}for(t in e)this.each(oe(t,e[t]));return this}return this.each(oe(e,t))},$.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.each(se(n,e[n],t));return this}if(r<2){var i=this.node();return l(i).getComputedStyle(i,null).getPropertyValue(e)}n=""}return this.each(se(e,t,n))},$.property=function(e,t){if(arguments.length<2){if("string"===typeof e)return this.node()[e];for(t in e)this.each(ue(t,e[t]));return this}return this.each(ue(e,t))},$.text=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},$.html=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},$.append=function(e){return e=ce(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},$.insert=function(e,t){return e=ce(e),t=Q(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},$.remove=function(){return this.each(le)},$.data=function(e,t){var n,r,i=-1,o=this.length;if(!arguments.length){for(e=new Array(o=(n=this[0]).length);++i<o;)(r=n[i])&&(e[i]=r.__data__);return e}function a(e,n){var r,i,o,a=e.length,l=n.length,f=Math.min(a,l),d=new Array(l),h=new Array(l),p=new Array(a);if(t){var g,v=new E,m=new Array(a);for(r=-1;++r<a;)(i=e[r])&&(v.has(g=t.call(i,i.__data__,r))?p[r]=i:v.set(g,i),m[r]=g);for(r=-1;++r<l;)(i=v.get(g=t.call(n,o=n[r],r)))?!0!==i&&(d[r]=i,i.__data__=o):h[r]=fe(o),v.set(g,!0);for(r=-1;++r<a;)r in m&&!0!==v.get(m[r])&&(p[r]=e[r])}else{for(r=-1;++r<f;)i=e[r],o=n[r],i?(i.__data__=o,d[r]=i):h[r]=fe(o);for(;r<l;++r)h[r]=fe(n[r]);for(;r<a;++r)p[r]=e[r]}h.update=d,h.parentNode=d.parentNode=p.parentNode=e.parentNode,s.push(h),u.push(d),c.push(p)}var s=ge([]),u=H([]),c=H([]);if("function"===typeof e)for(;++i<o;)a(n=this[i],e.call(n,n.parentNode.__data__,i));else for(;++i<o;)a(n=this[i],e);return u.enter=function(){return s},u.exit=function(){return c},u},$.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},$.filter=function(e){var t,n,r,i=[];"function"!==typeof e&&(e=de(e));for(var o=0,a=this.length;o<a;o++){i.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var s=0,u=n.length;s<u;s++)(r=n[s])&&e.call(r,r.__data__,s,o)&&t.push(r)}return H(i)},$.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],i=r.length-1,o=r[i];--i>=0;)(n=r[i])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},$.sort=function(e){e=he.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},$.each=function(e){return pe(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},$.call=function(e){var t=s(arguments);return e.apply(t[0]=this,t),this},$.empty=function(){return!this.node()},$.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,i=n.length;r<i;r++){var o=n[r];if(o)return o}return null},$.size=function(){var e=0;return pe(this,(function(){++e})),e};var ve=[];function me(e){var t,n;return function(r,i,o){var a,s=e[o].update,u=s.length;for(o!=n&&(n=o,t=0),i>=t&&(t=i+1);!(a=s[t])&&++t<u;);return a}}function ye(e,t,n){var r="__on"+e,i=e.indexOf("."),a=_e;i>0&&(e=e.slice(0,i));var u=be.get(e);function c(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}return u&&(e=u,a=we),i?t?function(){var i=a(t,s(arguments));c.call(this),this.addEventListener(e,this[r]=i,i.$=n),i._=t}:c:t?F:function(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var i=this[r];this.removeEventListener(t[1],i,i.$),delete this[r]}}}o.selection.enter=ge,o.selection.enter.prototype=ve,ve.append=$.append,ve.empty=$.empty,ve.node=$.node,ve.call=$.call,ve.size=$.size,ve.select=function(e){for(var t,n,r,i,o,a=[],s=-1,u=this.length;++s<u;){r=(i=this[s]).update,a.push(t=[]),t.parentNode=i.parentNode;for(var c=-1,l=i.length;++c<l;)(o=i[c])?(t.push(r[c]=n=e.call(i.parentNode,o.__data__,c,s)),n.__data__=o.__data__):t.push(null)}return H(a)},ve.insert=function(e,t){return arguments.length<2&&(t=me(this)),$.insert.call(this,e,t)},o.select=function(e){var t;return"string"===typeof e?(t=[K(e,u)]).parentNode=u.documentElement:(t=[e]).parentNode=c(e),H([t])},o.selectAll=function(e){var t;return"string"===typeof e?(t=s(X(e,u))).parentNode=u.documentElement:(t=s(e)).parentNode=null,H([t])},$.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=!1),e)this.each(ye(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(ye(e,t,n))};
2var be=o.map({mouseenter:"mouseover",mouseleave:"mouseout"});function _e(e,t){return function(n){var r=o.event;o.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{o.event=r}}}function we(e,t){var n=_e(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}u&&be.forEach((function(e){"on"+e in u&&be.remove(e)}));var xe,Oe=0;function Se(e){var t=".dragsuppress-"+ ++Oe,n="click"+t,r=o.select(l(e)).on("touchmove"+t,B).on("dragstart"+t,B).on("selectstart"+t,B);if(null==xe&&(xe=!("onselectstart"in e)&&L(e.style,"userSelect")),xe){var i=c(e).style,a=i[xe];i[xe]="none"}return function(e){if(r.on(t,null),xe&&(i[xe]=a),e){var o=function(){r.on(n,null)};r.on(n,(function(){B(),o()}),!0),setTimeout(o,0)}}}o.mouse=function(e){return ke(e,z())};var Ee=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function ke(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(Ee<0){var i=l(e);if(i.scrollX||i.scrollY){var a=(n=o.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important"))[0][0].getScreenCTM();Ee=!(a.f||a.e),n.remove()}}return Ee?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var s=e.getBoundingClientRect();return[t.clientX-s.left-e.clientLeft,t.clientY-s.top-e.clientTop]}function Ce(){return o.event.changedTouches[0].identifier}o.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=z().changedTouches),t)for(var r,i=0,o=t.length;i<o;++i)if((r=t[i]).identifier===n)return ke(e,r)},o.behavior.drag=function(){var e=q(i,"drag","dragstart","dragend"),t=null,n=a(F,o.mouse,l,"mousemove","mouseup"),r=a(Ce,o.touch,M,"touchmove","touchend");function i(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function a(n,r,i,a,s){return function(){var u,c=this,l=o.event.target.correspondingElement||o.event.target,f=c.parentNode,d=e.of(c,arguments),h=0,p=n(),g=".drag"+(null==p?"":"-"+p),v=o.select(i(l)).on(a+g,b).on(s+g,_),m=Se(l),y=r(f,p);function b(){var e,t,n=r(f,p);n&&(e=n[0]-y[0],t=n[1]-y[1],h|=e|t,y=n,d({type:"drag",x:n[0]+u[0],y:n[1]+u[1],dx:e,dy:t}))}function _(){r(f,p)&&(v.on(a+g,null).on(s+g,null),m(h),d({type:"dragend"}))}u=t?[(u=t.apply(c,arguments)).x-y[0],u.y-y[1]]:[0,0],d({type:"dragstart"})}}return i.origin=function(e){return arguments.length?(t=e,i):t},o.rebind(i,e,"on")},o.touches=function(e,t){return arguments.length<2&&(t=z().touches),t?s(t).map((function(t){var n=ke(e,t);return n.identifier=t.identifier,n})):[]};var Te=1e-6,je=Te*Te,Ie=Math.PI,Ae=2*Ie,Pe=Ae-Te,Ne=Ie/2,Me=Ie/180,Re=180/Ie;function Le(e){return e>0?1:e<0?-1:0}function De(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Fe(e){return e>1?0:e<-1?Ie:Math.acos(e)}function Ve(e){return e>1?Ne:e<-1?-Ne:Math.asin(e)}function Ue(e){return((e=Math.exp(e))+1/e)/2}function Be(e){return(e=Math.sin(e/2))*e}var ze=Math.SQRT2;o.interpolateZoom=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-i,f=u-o,d=l*l+f*f;if(d<je)r=Math.log(c/a)/ze,n=function(e){return[i+e*l,o+e*f,a*Math.exp(ze*e*r)]};else{var h=Math.sqrt(d),p=(c*c-a*a+4*d)/(2*a*2*h),g=(c*c-a*a-4*d)/(2*c*2*h),v=Math.log(Math.sqrt(p*p+1)-p),m=Math.log(Math.sqrt(g*g+1)-g);r=(m-v)/ze,n=function(e){var t,n=e*r,s=Ue(v),u=a/(2*h)*(s*(t=ze*n+v,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(v));return[i+u*l,o+u*f,a*s/Ue(ze*n+v)]}}return n.duration=1e3*r,n},o.behavior.zoom=function(){var e,t,n,r,i,a,s,c,f,d={x:0,y:0,k:1},h=[960,500],p=We,g=250,v=0,m="mousedown.zoom",y="mousemove.zoom",b="mouseup.zoom",_="touchstart.zoom",w=q(x,"zoomstart","zoom","zoomend");function x(e){e.on(m,A).on(Ge+".zoom",N).on("dblclick.zoom",M).on(_,P)}function O(e){return[(e[0]-d.x)/d.k,(e[1]-d.y)/d.k]}function S(e){d.k=Math.max(p[0],Math.min(p[1],e))}function E(e,t){t=function(e){return[e[0]*d.k+d.x,e[1]*d.k+d.y]}(t),d.x+=e[0]-t[0],d.y+=e[1]-t[1]}function k(e,n,r,i){e.__chart__={x:d.x,y:d.y,k:d.k},S(Math.pow(2,i)),E(t=n,r),e=o.select(e),g>0&&(e=e.transition().duration(g)),e.call(x.event)}function C(){s&&s.domain(a.range().map((function(e){return(e-d.x)/d.k})).map(a.invert)),f&&f.domain(c.range().map((function(e){return(e-d.y)/d.k})).map(c.invert))}function T(e){v++||e({type:"zoomstart"})}function j(e){C(),e({type:"zoom",scale:d.k,translate:[d.x,d.y]})}function I(e){--v||(e({type:"zoomend"}),t=null)}function A(){var e=this,t=w.of(e,arguments),n=0,r=o.select(l(e)).on(y,s).on(b,u),i=O(o.mouse(e)),a=Se(e);function s(){n=1,E(o.mouse(e),i),j(t)}
2function u(){r.on(y,null).on(b,null),a(n),I(t)}Ls.call(e),T(t)}function P(){var e,t=this,n=w.of(t,arguments),r={},a=0,s=".zoom-"+o.event.changedTouches[0].identifier,u="touchmove"+s,c="touchend"+s,l=[],f=o.select(t),h=Se(t);function p(){var n=o.touches(t);return e=d.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=O(e))})),n}function g(){var e=o.event.target;o.select(e).on(u,v).on(c,y),l.push(e);for(var n=o.event.changedTouches,s=0,f=n.length;s<f;++s)r[n[s].identifier]=null;var h=p(),g=Date.now();if(1===h.length){if(g-i<500){var m=h[0];k(t,m,r[m.identifier],Math.floor(Math.log(d.k)/Math.LN2)+1),B()}i=g}else if(h.length>1){m=h[0];var b=h[1],_=m[0]-b[0],w=m[1]-b[1];a=_*_+w*w}}function v(){var s,u,c,l,f=o.touches(t);Ls.call(t);for(var d=0,h=f.length;d<h;++d,l=null)if(c=f[d],l=r[c.identifier]){if(u)break;s=c,u=l}if(l){var p=(p=c[0]-s[0])*p+(p=c[1]-s[1])*p,g=a&&Math.sqrt(p/a);s=[(s[0]+c[0])/2,(s[1]+c[1])/2],u=[(u[0]+l[0])/2,(u[1]+l[1])/2],S(g*e)}i=null,E(s,u),j(n)}function y(){if(o.event.touches.length){for(var e=o.event.changedTouches,t=0,i=e.length;t<i;++t)delete r[e[t].identifier];for(var a in r)return void p()}o.selectAll(l).on(s,null),f.on(m,A).on(_,P),h(),I(n)}g(),T(n),f.on(m,null).on(_,g)}function N(){var i=w.of(this,arguments);r?clearTimeout(r):(Ls.call(this),e=O(t=n||o.mouse(this)),T(i)),r=setTimeout((function(){r=null,I(i)}),50),B(),S(Math.pow(2,.002*qe())*d.k),E(t,e),j(i)}function M(){var e=o.mouse(this),t=Math.log(d.k)/Math.LN2;k(this,e,O(e),o.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Ge||(Ge="onwheel"in u?(qe=function(){return-o.event.deltaY*(o.event.deltaMode?120:1)},"wheel"):"onmousewheel"in u?(qe=function(){return o.event.wheelDelta},"mousewheel"):(qe=function(){return-o.event.detail},"MozMousePixelScroll")),x.event=function(e){e.each((function(){var e=w.of(this,arguments),n=d;Vs?o.select(this).transition().each("start.zoom",(function(){d=this.__chart__||{x:0,y:0,k:1},T(e)})).tween("zoom:zoom",(function(){var r=h[0],i=h[1],a=t?t[0]:r/2,s=t?t[1]:i/2,u=o.interpolateZoom([(a-d.x)/d.k,(s-d.y)/d.k,r/d.k],[(a-n.x)/n.k,(s-n.y)/n.k,r/n.k]);return function(t){var n=u(t),i=r/n[2];this.__chart__=d={x:a-n[0]*i,y:s-n[1]*i,k:i},j(e)}})).each("interrupt.zoom",(function(){I(e)})).each("end.zoom",(function(){I(e)})):(this.__chart__=d,T(e),j(e),I(e))}))},x.translate=function(e){return arguments.length?(d={x:+e[0],y:+e[1],k:d.k},C(),x):[d.x,d.y]},x.scale=function(e){return arguments.length?(d={x:d.x,y:d.y,k:null},S(+e),C(),x):d.k},x.scaleExtent=function(e){return arguments.length?(p=null==e?We:[+e[0],+e[1]],x):p},x.center=function(e){return arguments.length?(n=e&&[+e[0],+e[1]],x):n},x.size=function(e){return arguments.length?(h=e&&[+e[0],+e[1]],x):h},x.duration=function(e){return arguments.length?(g=+e,x):g},x.x=function(e){return arguments.length?(s=e,a=e.copy(),d={x:0,y:0,k:1},x):s},x.y=function(e){return arguments.length?(f=e,c=e.copy(),d={x:0,y:0,k:1},x):f},o.rebind(x,w,"on")};var qe,Ge,We=[0,1/0];function He(){}function Ke(e,t,n){return this instanceof Ke?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof Ke?new Ke(e.h,e.s,e.l):pt(""+e,gt,Ke):new Ke(e,t,n)}o.color=He,He.prototype.toString=function(){return this.rgb()+""},o.hsl=Ke;var Xe=Ke.prototype=new He;function Ye(e,t,n){var r,i;function o(e){return Math.round(255*function(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(i-r)*e/60:e<180?i:e<240?r+(i-r)*(240-e)/60:r}(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,r=2*(n=n<0?0:n>1?1:n)-(i=n<=.5?n*(1+t):n+t-n*t),new ct(o(e+120),o(e),o(e-120))}function $e(e,t,n){return this instanceof $e?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof $e?new $e(e.h,e.c,e.l):ot(e instanceof Ze?e.l:(e=vt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new $e(e,t,n)}Xe.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ke(this.h,this.s,this.l/e)},Xe.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Ke(this.h,this.s,e*this.l)},Xe.rgb=function(){return Ye(this.h,this.s,this.l)},o.hcl=$e;var Qe=$e.prototype=new He;function Je(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new Ze(n,Math.cos(e*=Me)*t,Math.sin(e)*t)}function Ze(e,t,n){return this instanceof Ze?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof Ze?new Ze(e.l,e.a,e.b):e instanceof $e?Je(e.h,e.c,e.l):vt((e=ct(e)).r,e.g,e.b):new Ze(e,t,n)}Qe.brighter=function(e){return new $e(this.h,this.c,Math.min(100,this.l+et*(arguments.length?e:1)))},Qe.darker=function(e){return new $e(this.h,this.c,Math.max(0,this.l-et*(arguments.length?e:1)))},Qe.rgb=function(){return Je(this.h,this.c,this.l).rgb()},o.lab=Ze;var et=18,tt=.95047,nt=1.08883,rt=Ze.prototype=new He;function it(e,t,n){var r=(e+16)/116,i=r+t/500,o=r-n/200;return new ct(ut(3.2404542*(i=at(i)*tt)-1.5371385*(r=1*at(r))-.4985314*(o=at(o)*nt)),ut(-.969266*i+1.8760108*r+.041556*o),ut(.0556434*i-.2040259*r+1.0572252*o))}function ot(e,t,n){return e>0?new $e(Math.atan2(n,t)*Re,Math.sqrt(t*t+n*n),e):new $e(NaN,NaN,e)}function at(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function st(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}
2function ut(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function ct(e,t,n){return this instanceof ct?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof ct?new ct(e.r,e.g,e.b):pt(""+e,ct,Ye):new ct(e,t,n)}function lt(e){return new ct(e>>16,e>>8&255,255&e)}function ft(e){return lt(e)+""}rt.brighter=function(e){return new Ze(Math.min(100,this.l+et*(arguments.length?e:1)),this.a,this.b)},rt.darker=function(e){return new Ze(Math.max(0,this.l-et*(arguments.length?e:1)),this.a,this.b)},rt.rgb=function(){return it(this.l,this.a,this.b)},o.rgb=ct;var dt=ct.prototype=new He;function ht(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function pt(e,t,n){var r,i,o,a=0,s=0,u=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()))switch(i=r[2].split(","),r[1]){case"hsl":return n(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case"rgb":return t(yt(i[0]),yt(i[1]),yt(i[2]))}return(o=bt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(a=(3840&o)>>4,a|=a>>4,s=240&o,s|=s>>4,u=15&o,u|=u<<4):7===e.length&&(a=(16711680&o)>>16,s=(65280&o)>>8,u=255&o)),t(a,s,u))}function gt(e,t,n){var r,i,o=Math.min(e/=255,t/=255,n/=255),a=Math.max(e,t,n),s=a-o,u=(a+o)/2;return s?(i=u<.5?s/(a+o):s/(2-a-o),r=e==a?(t-n)/s+(t<n?6:0):t==a?(n-e)/s+2:(e-t)/s+4,r*=60):(r=NaN,i=u>0&&u<1?0:r),new Ke(r,i,u)}function vt(e,t,n){var r=st((.4124564*(e=mt(e))+.3575761*(t=mt(t))+.1804375*(n=mt(n)))/tt),i=st((.2126729*e+.7151522*t+.072175*n)/1);return Ze(116*i-16,500*(r-i),200*(i-st((.0193339*e+.119192*t+.9503041*n)/nt)))}function mt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function yt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}dt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,i=30;return t||n||r?(t&&t<i&&(t=i),n&&n<i&&(n=i),r&&r<i&&(r=i),new ct(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new ct(i,i,i)},dt.darker=function(e){return new ct((e=Math.pow(.7,arguments.length?e:1))*this.r,e*this.g,e*this.b)},dt.hsl=function(){return gt(this.r,this.g,this.b)},dt.toString=function(){return"#"+ht(this.r)+ht(this.g)+ht(this.b)};var bt=o.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function _t(e){return"function"===typeof e?e:function(){return e}}function wt(e){return function(t,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=null),xt(t,n,e,r)}}function xt(e,t,n,r){var i={},a=o.dispatch("beforesend","progress","load","error"),u={},c=new XMLHttpRequest,l=null;function f(){var e,t=c.status;if(!t&&function(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}(c)||t>=200&&t<300||304===t){try{e=n.call(i,c)}catch(hu){return void a.error.call(i,hu)}a.load.call(i,e)}else a.error.call(i,c)}return this.XDomainRequest&&!("withCredentials"in c)&&/^(http(s)?:)?\/\//.test(e)&&(c=new XDomainRequest),"onload"in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState>3&&f()},c.onprogress=function(e){var t=o.event;o.event=e;try{a.progress.call(i,c)}finally{o.event=t}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?u[e]:(null==t?delete u[e]:u[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",i):t},i.responseType=function(e){return arguments.length?(l=e,i):l},i.response=function(e){return n=e,i},["get","post"].forEach((function(e){i[e]=function(){return i.send.apply(i,[e].
2concat(s(arguments)))}})),i.send=function(n,r,o){if(2===arguments.length&&"function"===typeof r&&(o=r,r=null),c.open(n,e,!0),null==t||"accept"in u||(u.accept=t+",*/*"),c.setRequestHeader)for(var s in u)c.setRequestHeader(s,u[s]);return null!=t&&c.overrideMimeType&&c.overrideMimeType(t),null!=l&&(c.responseType=l),null!=o&&i.on("error",o).on("load",(function(e){o(null,e)})),a.beforesend.call(i,c),c.send(null==r?null:r),i},i.abort=function(){return c.abort(),i},o.rebind(i,a,"on"),null==r?i:i.get(function(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}(r))}bt.forEach((function(e,t){bt.set(e,lt(t))})),o.functor=_t,o.xhr=wt(M),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function i(e,n,r){arguments.length<3&&(r=n,n=null);var i=xt(e,t,null==n?o:a(n),r);return i.row=function(e){return arguments.length?i.response(null==(n=e)?o:a(e)):n},i}function o(e){return i.parse(e.responseText)}function a(e){return function(t){return i.parse(t.responseText,e)}}function s(t){return t.map(u).join(e)}function u(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return i.parse=function(e,t){var n;return i.parseRows(e,(function(e,r){if(n)return n(e,r-1);var i=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(i(e),n)}:i}))},i.parseRows=function(e,t){var n,i,o={},a={},s=[],u=e.length,c=0,l=0;function f(){if(c>=u)return a;
2if(i)return i=!1,o;var t=c;if(34===e.charCodeAt(t)){for(var n=t;n++<u;)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}return c=n+2,13===(s=e.charCodeAt(n+1))?(i=!0,10===e.charCodeAt(n+2)&&++c):10===s&&(i=!0),e.slice(t+1,n).replace(/""/g,'"')}for(;c<u;){var s,l=1;if(10===(s=e.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===e.charCodeAt(c)&&(++c,++l);else if(s!==r)continue;return e.slice(t,c-l)}return e.slice(t)}for(;(n=f())!==a;){for(var d=[];n!==o&&n!==a;)d.push(n),n=f();t&&null==(d=t(d,l++))||s.push(d)}return s},i.format=function(t){if(Array.isArray(t[0]))return i.formatRows(t);var n=new N,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(u).join(e)].concat(t.map((function(t){return r.map((function(e){return u(t[e])})).join(e)}))).join("\n")},i.formatRows=function(e){return e.map(s).join("\n")},i},o.csv=o.dsv(",","text/csv"),o.tsv=o.dsv("\t","text/tab-separated-values");var Ot,St,Et,kt,Ct=this[L(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function Tt(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var i=n+t,o={c:e,t:i,n:null};return St?St.n=o:Ot=o,St=o,Et||(kt=clearTimeout(kt),Et=1,Ct(jt)),o}function jt(){var e=It(),t=At()-e;t>24?(isFinite(t)&&(clearTimeout(kt),kt=setTimeout(jt,t)),Et=0):(Et=1,Ct(jt))}function It(){for(var e=Date.now(),t=Ot;t;)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function At(){for(var e,t=Ot,n=1/0;t;)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:Ot=t.n;return St=e,n}function Pt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}o.timer=function(){Tt.apply(this,arguments)},o.timer.flush=function(){It(),At()},o.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Nt=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map((function(e,t){var n=Math.pow(10,3*x(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}));function Mt(e){var t=e.decimal,n=e.thousands,r=e.grouping,i=e.currency,a=r&&n?function(e,t){for(var i=e.length,o=[],a=0,s=r[0],u=0;i>0&&s>0&&(u+s+1>t&&(s=Math.max(1,t-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>t));)s=r[a=(a+1)%r.length];return o.reverse().join(n)}:M;return function(e){var n=Rt.exec(e),r=n[1]||" ",s=n[2]||">",u=n[3]||"-",c=n[4]||"",l=n[5],f=+n[6],d=n[7],h=n[8],p=n[9],g=1,v="",m="",y=!1,b=!0;switch(h&&(h=+h.substring(1)),(l||"0"===r&&"="===s)&&(l=r="0",s="="),p){case"n":d=!0,p="g";break;case"%":g=100,m="%",p="f";break;case"p":g=100,m="%",p="r";break;case"b":case"o":case"x":case"X":"#"===c&&(v="0"+p.toLowerCase());case"c":b=!1;case"d":y=!0,h=0;break;case"s":g=-1,p="r"}"$"===c&&(v=i[0],m=i[1]),"r"!=p||h||(p="g"),null!=h&&("g"==p?h=Math.max(1,Math.min(21,h)):"e"!=p&&"f"!=p||(h=Math.max(0,Math.min(20,h)))),p=Lt.get(p)||Dt;var _=l&&d;return function(e){var n=m;if(y&&e%1)return"";var i=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===u?"":u;if(g<0){var c=o.formatPrefix(e,h);e=c.scale(e),n=c.symbol+m}else e*=g;var w,x,O=(e=p(e,h)).lastIndexOf(".");if(O<0){var S=b?e.lastIndexOf("e"):-1;S<0?(w=e,x=""):(w=e.substring(0,S),x=e.substring(S))}else w=e.substring(0,O),x=t+e.substring(O+1);!l&&d&&(w=a(w,1/0));var E=v.length+w.length+x.length+(_?0:i.length),k=E<f?new Array(E=f-E+1).join(r):"";return _&&(w=a(k+w,k.length?f-x.length:1/0)),i+=v,e=w+x,("<"===s?i+e+k:">"===s?k+i+e:"^"===s?k.substring(0,E>>=1)+i+e+k.substring(E):i+(_?e:k+e))+n}}}o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,Pt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Nt[8+n/3]};var Rt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Lt=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,Pt(e,t))).toFixed(Math.max(0,Math.min(20,Pt(e*(1+1e-15),t))))}});function Dt(e){return e+""}var Ft=o.time={},Vt=Date;function Ut(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Ut.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0}
2,valueOf:function(){return this._.valueOf()},setDate:function(){Bt.setUTCDate.apply(this._,arguments)},setDay:function(){Bt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Bt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Bt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Bt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Bt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Bt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Bt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Bt.setTime.apply(this._,arguments)}};var Bt=Date.prototype;function zt(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n<r-t?n:r}function i(n){return t(n=e(new Vt(n-1)),1),n}function o(e,n){return t(e=new Vt(+e),n),e}function a(e,r,o){var a=i(e),s=[];if(o>1)for(;a<r;)n(a)%o||s.push(new Date(+a)),t(a,1);else for(;a<r;)s.push(new Date(+a)),t(a,1);return s}e.floor=e,e.round=r,e.ceil=i,e.offset=o,e.range=a;var s=e.utc=qt(e);return s.floor=s,s.round=qt(r),s.ceil=qt(i),s.offset=qt(o),s.range=function(e,t,n){try{Vt=Ut;var r=new Ut;return r._=e,a(r,t,n)}finally{Vt=Date}},e}function qt(e){return function(t,n){try{Vt=Ut;var r=new Ut;return r._=t,e(r,n)._}finally{Vt=Date}}}function Gt(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,s=e.shortDays,u=e.months,c=e.shortMonths;function l(e){var t=e.length;function n(n){for(var r,i,o,a=[],s=-1,u=0;++s<t;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=Wt[r=e.charAt(++s)])&&(r=e.charAt(++s)),(o=w[r])&&(r=o(n,null==i?"e"===r?" ":"0":i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}return n.parse=function(t){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(n,e,t,0)!=t.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var r=null!=n.Z&&Vt!==Ut,i=new(r?Ut:Vt);return"j"in n?i.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),i.setFullYear(n.y,0,1),i.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(i.getDay()+5)%7:n.w+7*n.U-(i.getDay()+6)%7)):i.setFullYear(n.y,n.m,n.d),i.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),r?i._:i},n.toString=function(){return e},n}function f(e,t,n,r){for(var i,o,a,s=0,u=t.length,c=n.length;s<u;){if(r>=c)return-1;if(37===(i=t.charCodeAt(s++))){if(a=t.charAt(s++),!(o=x[a in Wt?t.charAt(s++):a])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}l.utc=function(e){var t=l(e);function n(e){try{var n=new(Vt=Ut);return n._=e,t(n)}finally{Vt=Date}}return n.parse=function(e){try{Vt=Ut;var n=t.parse(e);return n&&n._}finally{Vt=Date}},n.toString=t.toString,n},l.multi=l.utc.multi=hn;var d=o.map(),h=Yt(a),p=$t(a),g=Yt(s),v=$t(s),m=Yt(u),y=$t(u),b=Yt(c),_=$t(c);i.forEach((function(e,t){d.set(e.toLowerCase(),t)}));var w={a:function(e){return s[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return u[e.getMonth()]},c:l(t),d:function(e,t){return Xt(e.getDate(),t,2)},e:function(e,t){return Xt(e.getDate(),t,2)},H:function(e,t){return Xt(e.getHours(),t,2)},I:function(e,t){return Xt(e.getHours()%12||12,t,2)}
2,j:function(e,t){return Xt(1+Ft.dayOfYear(e),t,3)},L:function(e,t){return Xt(e.getMilliseconds(),t,3)},m:function(e,t){return Xt(e.getMonth()+1,t,2)},M:function(e,t){return Xt(e.getMinutes(),t,2)},p:function(e){return i[+(e.getHours()>=12)]},S:function(e,t){return Xt(e.getSeconds(),t,2)},U:function(e,t){return Xt(Ft.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return Xt(Ft.mondayOfYear(e),t,2)},x:l(n),X:l(r),y:function(e,t){return Xt(e.getFullYear()%100,t,2)},Y:function(e,t){return Xt(e.getFullYear()%1e4,t,4)},Z:fn,"%":function(){return"%"}},x={a:function(e,t,n){g.lastIndex=0;var r=g.exec(t.slice(n));return r?(e.w=v.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){h.lastIndex=0;var r=h.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){m.lastIndex=0;var r=m.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,t,n){return f(e,w.c.toString(),t,n)},d:on,e:on,H:sn,I:sn,j:an,L:ln,m:rn,M:un,p:function(e,t,n){var r=d.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)},S:cn,U:Jt,w:Qt,W:Zt,x:function(e,t,n){return f(e,w.x.toString(),t,n)},X:function(e,t,n){return f(e,w.X.toString(),t,n)},y:tn,Y:en,Z:nn,"%":dn};return l}Ft.year=zt((function(e){return(e=Ft.day(e)).setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Ft.years=Ft.year.range,Ft.years.utc=Ft.year.utc.range,Ft.day=zt((function(e){var t=new Vt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Ft.days=Ft.day.range,Ft.days.utc=Ft.day.utc.range,Ft.dayOfYear=function(e){var t=Ft.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Ft[e]=zt((function(e){return(e=Ft.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Ft.year(e).getDay();return Math.floor((Ft.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Ft[e+"s"]=n.range,Ft[e+"s"].utc=n.utc.range,Ft[e+"OfYear"]=function(e){var n=Ft.year(e).getDay();return Math.floor((Ft.dayOfYear(e)+(n+t)%7)/7)}})),Ft.week=Ft.sunday,Ft.weeks=Ft.sunday.range,Ft.weeks.utc=Ft.sunday.utc.range,Ft.weekOfYear=Ft.sundayOfYear;var Wt={"-":"",_:" ",0:"0"},Ht=/^\s*\d+/,Kt=/^%/;function Xt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Yt(e){return new RegExp("^(?:"+e.map(o.requote).join("|")+")","i")}function $t(e){for(var t=new E,n=-1,r=e.length;++n<r;)t.set(e[n].toLowerCase(),n);return t}function Qt(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Jt(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function Zt(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function en(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function tn(e,t,n){Ht.lastIndex=0;var r,i=Ht.exec(t.slice(n,n+2));return i?(e.y=(r=+i[0])+(r>68?1900:2e3),n+i[0].length):-1}function nn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function rn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function on(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function an(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function sn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function un(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function cn(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}
2function ln(e,t,n){Ht.lastIndex=0;var r=Ht.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function fn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=x(t)/60|0,i=x(t)%60;return n+Xt(r,"0",2)+Xt(i,"0",2)}function dn(e,t,n){Kt.lastIndex=0;var r=Kt.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function hn(e){for(var t=e.length,n=-1;++n<t;)e[n][0]=this(e[n][0]);return function(t){for(var n=0,r=e[n];!r[1](t);)r=e[++n];return r[0](t)}}o.locale=function(e){return{numberFormat:Mt(e),timeFormat:Gt(e)}};var pn=o.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gn(){}o.format=pn.numberFormat,o.geo={},gn.prototype={s:0,t:0,add:function(e){mn(e,this.t,vn),mn(vn.s,this.s,this),this.s?this.t+=vn.t:this.s=vn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var vn=new gn;function mn(e,t,n){var r=n.s=e+t,i=r-e,o=r-i;n.t=e-o+(t-i)}function yn(e,t){e&&_n.hasOwnProperty(e.type)&&_n[e.type](e,t)}o.geo.stream=function(e,t){e&&bn.hasOwnProperty(e.type)?bn[e.type](e,t):yn(e,t)};var bn={Feature:function(e,t){yn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)yn(n[r].geometry,t)}},_n={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){wn(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)wn(n[r],t,0)},Polygon:function(e,t){xn(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)xn(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)yn(n[r],t)}};function wn(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function xn(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)wn(e[n],t,1);t.polygonEnd()}o.geo.area=function(e){return On=0,o.geo.stream(e,Ln),On};var On,Sn,En,kn,Cn,Tn,jn,In,An,Pn,Nn,Mn,Rn=new gn,Ln={sphere:function(){On+=4*Ie},point:F,lineStart:F,lineEnd:F,polygonStart:function(){Rn.reset(),Ln.lineStart=Dn},polygonEnd:function(){var e=2*Rn;On+=e<0?4*Ie+e:e,Ln.lineStart=Ln.lineEnd=Ln.point=F}};function Dn(){var e,t,n,r,i;function o(e,t){t=t*Me/2+Ie/4;var o=(e*=Me)-n,a=o>=0?1:-1,s=a*o,u=Math.cos(t),c=Math.sin(t),l=i*c,f=r*u+l*Math.cos(s),d=l*a*Math.sin(s);Rn.add(Math.atan2(d,f)),n=e,r=u,i=c}Ln.point=function(a,s){Ln.point=o,n=(e=a)*Me,r=Math.cos(s=(t=s)*Me/2+Ie/4),i=Math.sin(s)},Ln.lineEnd=function(){o(e,t)}}function Fn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Vn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Un(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Bn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function zn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function qn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Gn(e){return[Math.atan2(e[1],e[0]),Ve(e[2])]}function Wn(e,t){return x(e[0]-t[0])<Te&&x(e[1]-t[1])<Te}o.geo.bounds=function(){var e,t,n,r,i,a,s,u,c,l,f,d={point:h,lineStart:g,lineEnd:v,polygonStart:function(){d.point=m,d.lineStart=y,d.lineEnd=b,c=0,Ln.polygonStart()},polygonEnd:function(){Ln.polygonEnd(),d.point=h,d.lineStart=g,d.lineEnd=v,Rn<0?(e=-(n=180),t=-(r=90)):c>Te?r=90:c<-Te&&(t=-90),f[0]=e,f[1]=n}};function h(i,o){l.push(f=[e=i,n=i]),o<t&&(t=o),o>r&&(r=o)}function p(o,a){var s=Fn([o*Me,a*Me]);if(u){var c=Un(u,s),l=Un([c[1],-c[0],0],c);qn(l),l=Gn(l);var f=o-i,d=f>0?1:-1,p=l[0]*Re*d,g=x(f)>180;if(g^(d*i<p&&p<d*o))(v=l[1]*Re)>r&&(r=v);else if(g^(d*i<(p=(p+360)%360-180)&&p<d*o)){var v;(v=-l[1]*Re)<t&&(t=v)}else a<t&&(t=a),a>r&&(r=a);g?o<i?_(e,o)>_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o):n>=e?(o<e&&(e=o),o>n&&(n=o)):o>i?_(e,o)>_(e,n)&&(n=o):_(o,n)>_(e,n)&&(e=o)}else h(o,a);u=s,i=o}function g(){d.point=p}function v(){f[0]=e,f[1]=n,d.point=h,u=null}function m(e,t){if(u){var n=e-i;c+=x(n)>180?n+(n>0?360:-360):n}else a=e,s=t;Ln.point(e,t),p(e,t)}function y(){Ln.lineStart()}function b(){m(a,s),Ln.lineEnd(),x(c)>Te&&(e=-(n=180)),f[0]=e,f[1]=n,u=null}function _(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function O(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(i){if(r=n=-(e=t=1/0),l=[],o.geo.stream(i,d),c=l.length){l.sort(w);for(var a=1,s=[g=l[0]];a<c;++a)O((h=l[a])[0],g)||O(h[1],g)?(_(g[0],h[1])>_(g[0],g[1])&&(g[1]=h[1]),_(h[0],g[1])>_(g[0],g[1])&&(g[0]=h[0])):s.push(g=h);for(var u,c,h,p=-1/0,g=(a=0,s[c=s.length-1]);a<=c;g=h,++a)h=s[a],(u=_(g[1],h[0]))>p&&(p=u,e=h[0],n=g[1])}return l=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}
2(),o.geo.centroid=function(e){Sn=En=kn=Cn=Tn=jn=In=An=Pn=Nn=Mn=0,o.geo.stream(e,Hn);var t=Pn,n=Nn,r=Mn,i=t*t+n*n+r*r;return i<je&&(t=jn,n=In,r=An,En<Te&&(t=kn,n=Cn,r=Tn),(i=t*t+n*n+r*r)<je)?[NaN,NaN]:[Math.atan2(n,t)*Re,Ve(r/Math.sqrt(i))*Re]};var Hn={sphere:F,point:Kn,lineStart:Yn,lineEnd:$n,polygonStart:function(){Hn.lineStart=Qn},polygonEnd:function(){Hn.lineStart=Yn}};function Kn(e,t){e*=Me;var n=Math.cos(t*=Me);Xn(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function Xn(e,t,n){++Sn,kn+=(e-kn)/Sn,Cn+=(t-Cn)/Sn,Tn+=(n-Tn)/Sn}function Yn(){var e,t,n;function r(r,i){r*=Me;var o=Math.cos(i*=Me),a=o*Math.cos(r),s=o*Math.sin(r),u=Math.sin(i),c=Math.atan2(Math.sqrt((c=t*u-n*s)*c+(c=n*a-e*u)*c+(c=e*s-t*a)*c),e*a+t*s+n*u);En+=c,jn+=c*(e+(e=a)),In+=c*(t+(t=s)),An+=c*(n+(n=u)),Xn(e,t,n)}Hn.point=function(i,o){i*=Me;var a=Math.cos(o*=Me);e=a*Math.cos(i),t=a*Math.sin(i),n=Math.sin(o),Hn.point=r,Xn(e,t,n)}}function $n(){Hn.point=Kn}function Qn(){var e,t,n,r,i;function o(e,t){e*=Me;var o=Math.cos(t*=Me),a=o*Math.cos(e),s=o*Math.sin(e),u=Math.sin(t),c=r*u-i*s,l=i*a-n*u,f=n*s-r*a,d=Math.sqrt(c*c+l*l+f*f),h=n*a+r*s+i*u,p=d&&-Fe(h)/d,g=Math.atan2(d,h);Pn+=p*c,Nn+=p*l,Mn+=p*f,En+=g,jn+=g*(n+(n=a)),In+=g*(r+(r=s)),An+=g*(i+(i=u)),Xn(n,r,i)}Hn.point=function(a,s){e=a,t=s,Hn.point=o,a*=Me;var u=Math.cos(s*=Me);n=u*Math.cos(a),r=u*Math.sin(a),i=Math.sin(s),Xn(n,r,i)},Hn.lineEnd=function(){o(e,t),Hn.lineEnd=$n,Hn.point=Kn}}function Jn(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n}function Zn(){return!0}function er(e,t,n,r,i){var o=[],a=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Wn(n,r)){i.lineStart();for(var s=0;s<t;++s)i.point((n=e[s])[0],n[1]);i.lineEnd()}else{var u=new nr(n,e,null,!0),c=new nr(n,null,u,!1);u.o=c,o.push(u),a.push(c),u=new nr(r,e,null,!1),c=new nr(r,null,u,!0),u.o=c,o.push(u),a.push(c)}}})),a.sort(t),tr(o),tr(a),o.length){for(var s=0,u=n,c=a.length;s<c;++s)a[s].e=u=!u;for(var l,f,d=o[0];;){for(var h=d,p=!0;h.v;)if((h=h.n)===d)return;l=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(s=0,c=l.length;s<c;++s)i.point((f=l[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(s=(l=h.p.z).length-1;s>=0;--s)i.point((f=l[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}l=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}}function tr(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}function nr(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function rr(e,t,n,r){return function(i,a){var s,u=t(a),c=i.invert(r[0],r[1]),l={point:f,lineStart:h,lineEnd:p,polygonStart:function(){l.point=_,l.lineStart=w,l.lineEnd=x,s=[],g=[]},polygonEnd:function(){l.point=f,l.lineStart=h,l.lineEnd=p,s=o.merge(s);var e=function(e,t){var n=e[0],r=e[1],i=[Math.sin(n),-Math.cos(n),0],o=0,a=0;Rn.reset();for(var s=0,u=t.length;s<u;++s){var c=t[s],l=c.length;if(l)for(var f=c[0],d=f[0],h=f[1]/2+Ie/4,p=Math.sin(h),g=Math.cos(h),v=1;;){v===l&&(v=0);var m=(e=c[v])[0],y=e[1]/2+Ie/4,b=Math.sin(y),_=Math.cos(y),w=m-d,x=w>=0?1:-1,O=x*w,S=O>Ie,E=p*b;if(Rn.add(Math.atan2(E*x*Math.sin(O),g*_+E*Math.cos(O))),o+=S?w+x*Ae:w,S^d>=n^m>=n){var k=Un(Fn(f),Fn(e));qn(k);var C=Un(i,k);qn(C);var T=(S^w>=0?-1:1)*Ve(C[2]);(r>T||r===T&&(k[0]||k[1]))&&(a+=S^w>=0?1:-1)}if(!v++)break;d=m,p=b,g=_,f=e}}return(o<-Te||o<Te&&Rn<-Te)^1&a}(c,g);s.length?(b||(a.polygonStart(),b=!0),er(s,ar,e,n,a)):e&&(b||(a.polygonStart(),b=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),b&&(a.polygonEnd(),b=!1),s=g=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function f(t,n){var r=i(t,n);e(t=r[0],n=r[1])&&a.point(t,n)}function d(e,t){var n=i(e,t);u.point(n[0],n[1])}function h(){l.point=d,u.lineStart()}function p(){l.point=f,u.lineEnd()}var g,v,m=or(),y=t(m),b=!1;function _(e,t){v.push([e,t]);var n=i(e,t);y.point(n[0],n[1])}function w(){y.lineStart(),v=[]}function x(){_(v[0][0],v[0][1]),y.lineEnd();var e,t=y.clean(),n=m.buffer(),r=n.length;if(v.pop(),g.push(v),v=null,r)if(1&t){var i,o=-1;if((r=(e=n[0]).length-1)>0){for(b||(a.polygonStart(),b=!0),a.lineStart();++o<r;)a.point((i=e[o])[0],i[1]);a.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),s.push(n.filter(ir))}return l}}function ir(e){return e.length>1}function or(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:F,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function ar(e,t){return((e=e.x)[0]<0?e[1]-Ne-Te:Ne-e[1])-((t=t.x)[0]<0?t[1]-Ne-Te:Ne-t[1])}var sr=rr(Zn,(function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?Ie:-Ie,u=x(o-n);
2x(u-Ie)<Te?(e.point(n,r=(r+a)/2>0?Ne:-Ne),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=Ie&&(x(n-i)<Te&&(n-=i*Te),x(o-s)<Te&&(o-=s*Te),r=function(e,t,n,r){var i,o,a=Math.sin(e-n);return x(a)>Te?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(i=Math.cos(t))*Math.sin(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}),(function(e,t,n,r){var i;if(null==e)i=n*Ne,r.point(-Ie,i),r.point(0,i),r.point(Ie,i),r.point(Ie,0),r.point(Ie,-i),r.point(0,-i),r.point(-Ie,-i),r.point(-Ie,0),r.point(-Ie,i);else if(x(e[0]-t[0])>Te){var o=e[0]<t[0]?Ie:-Ie;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])}),[-Ie,-Ie/2]);function ur(e){var t=Math.cos(e),n=t>0,r=x(t)>Te;return rr(i,(function(e){var t,s,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,d){var h,p=[f,d],g=i(f,d),v=n?g?0:a(f,d):g?a(f+(f<0?Ie:-Ie),d):0;if(!t&&(c=u=g)&&e.lineStart(),g!==u&&(h=o(t,p),(Wn(t,h)||Wn(p,h))&&(p[0]+=Te,p[1]+=Te,g=i(p[0],p[1]))),g!==u)l=0,g?(e.lineStart(),h=o(p,t),e.point(h[0],h[1])):(h=o(t,p),e.point(h[0],h[1]),e.lineEnd()),t=h;else if(r&&t&&n^g){var m;v&s||!(m=o(p,t,!0))||(l=0,n?(e.lineStart(),e.point(m[0][0],m[0][1]),e.point(m[1][0],m[1][1]),e.lineEnd()):(e.point(m[1][0],m[1][1]),e.lineEnd(),e.lineStart(),e.point(m[0][0],m[0][1])))}!g||t&&Wn(t,p)||e.point(p[0],p[1]),t=p,u=g,s=v},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return l|(c&&u)<<1}}}),Wr(e,6*Me),n?[0,-e]:[-Ie,e-Ie]);function i(e,n){return Math.cos(e)*Math.cos(n)>t}function o(e,n,r){var i=[1,0,0],o=Un(Fn(e),Fn(n)),a=Vn(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var c=t*a/u,l=-t*s/u,f=Un(i,o),d=zn(i,c);Bn(d,zn(o,l));var h=f,p=Vn(d,h),g=Vn(h,h),v=p*p-g*(Vn(d,d)-1);if(!(v<0)){var m=Math.sqrt(v),y=zn(h,(-p-m)/g);if(Bn(y,d),y=Gn(y),!r)return y;var b,_=e[0],w=n[0],O=e[1],S=n[1];w<_&&(b=_,_=w,w=b);var E=w-_,k=x(E-Ie)<Te;if(!k&&S<O&&(b=O,O=S,S=b),k||E<Te?k?O+S>0^y[1]<(x(y[0]-_)<Te?O:S):O<=y[1]&&y[1]<=S:E>Ie^(_<=y[0]&&y[0]<=w)){var C=zn(h,(-p+m)/g);return Bn(C,d),[y,Gn(C)]}}}function a(t,r){var i=n?e:Ie-e,o=0;return t<-i?o|=1:t>i&&(o|=2),r<-i?o|=4:r>i&&(o|=8),o}}function cr(e,t,n,r){return function(i){var o,a=i.a,s=i.b,u=a.x,c=a.y,l=0,f=1,d=s.x-u,h=s.y-c;if(o=e-u,d||!(o>0)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(d>0){if(o>f)return;o>l&&(l=o)}if(o=n-u,d||!(o<0)){if(o/=d,d<0){if(o>f)return;o>l&&(l=o)}else if(d>0){if(o<l)return;o<f&&(f=o)}if(o=t-c,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>l&&(l=o)}if(o=r-c,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<f&&(f=o)}return l>0&&(i.a={x:u+l*d,y:c+l*h}),f<1&&(i.b={x:u+f*d,y:c+f*h}),i}}}}}}var lr=1e9;function fr(e,t,n,r){return function(u){var c,l,f,d,h,p,g,v,m,y,b,_=u,w=or(),x=cr(e,t,n,r),O={point:k,lineStart:function(){O.point=C,l&&l.push(f=[]);y=!0,m=!1,g=v=NaN},lineEnd:function(){c&&(C(d,h),p&&m&&w.rejoin(),c.push(w.buffer()));O.point=k,m&&u.lineEnd()},polygonStart:function(){u=w,c=[],l=[],b=!0},polygonEnd:function(){u=_,c=o.merge(c);var t=function(e){for(var t=0,n=l.length,r=e[1],i=0;i<n;++i)for(var o,a=1,s=l[i],u=s.length,c=s[0];a<u;++a)o=s[a],c[1]<=r?o[1]>r&&De(c,o,e)>0&&++t:o[1]<=r&&De(c,o,e)<0&&--t,c=o;return 0!==t}([e,r]),n=b&&t,i=c.length;(n||i)&&(u.polygonStart(),n&&(u.lineStart(),S(null,null,1,u),u.lineEnd()),i&&er(c,a,t,S,u),u.polygonEnd()),c=l=f=null}};function S(o,a,u,c){var l=0,f=0;if(null==o||(l=i(o,u))!==(f=i(a,u))||s(o,a)<0^u>0)do{c.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+u+4)%4)!==f);else c.point(a[0],a[1])}function E(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function k(e,t){E(e,t)&&u.point(e,t)}function C(e,t){var n=E(e=Math.max(-1e9,Math.min(lr,e)),t=Math.max(-1e9,Math.min(lr,t)));if(l&&f.push([e,t]),y)d=e,h=t,p=n,y=!1,n&&(u.lineStart(),u.point(e,t));else if(n&&m)u.point(e,t);else{var r={a:{x:g,y:v},b:{x:e,y:t}};x(r)?(m||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),b=!1):n&&(u.lineStart(),u.point(e,t),b=!1)}g=e,v=t,m=n}return O};function i(r,i){return x(r[0]-e)<Te?i>0?0:3:x(r[0]-n)<Te?i>0?2:1:x(r[1]-t)<Te?i>0?1:0:i>0?3:2}function a(e,t){return s(e.x,t.x)}function s(e,t){var n=i(e,1),r=i(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function dr(e){var t=0,n=Ie/3,r=Dr(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*Ie/180,n=e[1]*Ie/180):[t/Ie*180,n/Ie*180]},i}function hr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,i=1+n*(2*r-n),o=Math.sqrt(i)/r;function a(e,t){var n=Math.sqrt(i-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return a.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Ve((i-(e*e+n*n)*r*r)/(2*r))]},a}o.geo.clipExtent=function(){var e,t,n,r,i,o,a={stream:function(e){return i&&(i.valid=!1),(i=o(e)).val
2id=!0,i},extent:function(s){return arguments.length?(o=fr(e=+s[0][0],t=+s[0][1],n=+s[1][0],r=+s[1][1]),i&&(i.valid=!1,i=null),a):[[e,t],[n,r]]}};return a.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return dr(hr)}).raw=hr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,i=o.geo.albers(),a=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,n){e=[t,n]}};function c(i){var o=i[0],a=i[1];return e=null,t(o,a),e||(n(o,a),e)||r(o,a),e}return c.invert=function(e){var t=i.scale(),n=i.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?s:i).invert(e)},c.stream=function(e){var t=i.stream(e),n=a.stream(e),r=s.stream(e);return{point:function(e,i){t.point(e,i),n.point(e,i),r.point(e,i)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},c.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),s.precision(e),c):i.precision()},c.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),s.scale(e),c.translate(i.translate())):i.scale()},c.translate=function(e){if(!arguments.length)return i.translate();var o=i.scale(),l=+e[0],f=+e[1];return t=i.translate(e).clipExtent([[l-.455*o,f-.238*o],[l+.455*o,f+.238*o]]).stream(u).point,n=a.translate([l-.307*o,f+.201*o]).clipExtent([[l-.425*o+Te,f+.12*o+Te],[l-.214*o-Te,f+.234*o-Te]]).stream(u).point,r=s.translate([l-.205*o,f+.212*o]).clipExtent([[l-.214*o+Te,f+.166*o+Te],[l-.115*o-Te,f+.234*o-Te]]).stream(u).point,c},c.scale(1070)};var pr,gr,vr,mr,yr,br,_r={point:F,lineStart:F,lineEnd:F,polygonStart:function(){gr=0,_r.lineStart=wr},polygonEnd:function(){_r.lineStart=_r.lineEnd=_r.point=F,pr+=x(gr/2)}};function wr(){var e,t,n,r;function i(e,t){gr+=r*e-n*t,n=e,r=t}_r.point=function(o,a){_r.point=i,e=n=o,t=r=a},_r.lineEnd=function(){i(e,t)}}var xr={point:function(e,t){e<vr&&(vr=e);e>yr&&(yr=e);t<mr&&(mr=t);t>br&&(br=t)},lineStart:F,lineEnd:F,polygonStart:F,polygonEnd:F};function Or(){var e=Sr(4.5),t=[],n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(t){return e=Sr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function i(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function a(){n.point=r}function s(){t.push("Z")}return n}function Sr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Er,kr={point:Cr,lineStart:Tr,lineEnd:jr,polygonStart:function(){kr.lineStart=Ir},polygonEnd:function(){kr.point=Cr,kr.lineStart=Tr,kr.lineEnd=jr}};function Cr(e,t){kn+=e,Cn+=t,++Tn}function Tr(){var e,t;function n(n,r){var i=n-e,o=r-t,a=Math.sqrt(i*i+o*o);jn+=a*(e+n)/2,In+=a*(t+r)/2,An+=a,Cr(e=n,t=r)}kr.point=function(r,i){kr.point=n,Cr(e=r,t=i)}}function jr(){kr.point=Cr}function Ir(){var e,t,n,r;function i(e,t){var i=e-n,o=t-r,a=Math.sqrt(i*i+o*o);jn+=a*(n+e)/2,In+=a*(r+t)/2,An+=a,Pn+=(a=r*e-n*t)*(n+e),Nn+=a*(r+t),Mn+=3*a,Cr(n=e,r=t)}kr.point=function(o,a){kr.point=i,Cr(e=n=o,t=r=a)},kr.lineEnd=function(){i(e,t)}}function Ar(e){var t=4.5,n={point:r,lineStart:function(){n.point=i},lineEnd:a,polygonStart:function(){n.lineEnd=s},polygonEnd:function(){n.lineEnd=a,n.point=r},pointRadius:function(e){return t=e,n},result:F};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Ae)}function i(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function a(){n.point=r}function s(){e.closePath()}return n}function Pr(e){var t=.5,n=Math.cos(30*Me),r=16;function i(e){return(r?a:o)(e)}function o(t){return Rr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function a(t){var n,i,o,a,u,c,l,f,d,h,p,g,v={point:m,lineStart:y,lineEnd:_,polygonStart:function(){t.polygonStart(),v.lineStart=w},polygonEnd:function(){t.polygonEnd(),v.lineStart=y}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){f=NaN,v.point=b,t.lineStart()}function b(n,i){var o=Fn([n,i]),a=e(n,i);s(f,d,l,h,p,g,f=a[0],d=a[1],l=n,h=o[0],p=o[1],g=o[2],r,t),t.point(f,d)}function _(){v.point=m,t.lineEnd()}function w(){y(),v.point=x,v.lineEnd=O}function x(e,t){b(n=e,t),i=f,o=d,a=h,u=p,c=g,v.point=b}function O(){s(f,d,l,h,p,g,i,o,n,a,u,c,r,t),v.lineEnd=_,_()}return v}function s(r,i,o,a,u,c,l,f,d,h,p,g,v,m){var y=l-r,b=f-i,_=y*y+b*b;if(_>4*t&&v--){var w=a+h,O=u+p,S=c+g,E=Math.sqrt(w*w+O*O+S*S),k=Math.asin(S/=E),C=x(x(S)-1)<Te||x(o-d)<Te?(o+d)/2:Math.atan2(O,w),T=e(C,k),j=T[0],I=T[1],A=j-r,P=I-i,N=b*A-y*P;(N*N/_>t||x((y*A+b*P)/_-.5)>.3||a*h+u*p+c*g<n)&&(s(r,i,o,a,u,c,j,I,C,w/=E,O/=E,S,v,m),m.point(j,I),s(j,I,C,w,O,S,l,f,d,h,p,g,v,m))}}return i.precision=function(e){return arguments.length?(r=(t=e*e)>0&&16,i):Math.sqrt(t)},i}function Nr(e){var t=Pr((function(t,n){return e([t*Re,n*Re])}));return function(e){return Fr(t(e))}}function Mr(e){this.stream=e}function Rr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Lr(e){return Dr((function(){return e}))()}function Dr(e){var t,n,r,i,a,s,u=Pr((function(e,n){return[(e=t(e,n))[0]*c+i,a-e[1]*c]})),c=150,l=480,f=250,d=0,h=0,p=0,g=0,v=0,m=sr,y=M,b=null,_=null;function w(e){return[(e=r(e[0]*Me,e[1]*Me))[0]*c+i,a-e[1]*c]}function x(e){return(e=r.invert((e[0]-i)/c,(a-e[1])/c))&&[e[0]*Re,e[1]*Re]}function O(){r=Jn(n=Br(p,g,v),t);var e=t(d,h);return i=l-e[0]*c,a=f+e[1]*c,S()}function S(){return s&&(s.valid=!1,s=null),w}return w.stream=function(e){return s&&(s.valid=!1),(s=Fr(m(n,u(y(e))))).valid=!0,s},w.clipAngle=function(e){return arguments.length?(m=null==e?(b=e,sr):ur((b=+e)*Me),S()):b},w.clipExtent=function(e){return arguments.length?(_=e,y=e?fr(e[0][0],e[0][1],e[1][0],e[1][1]):M,S()):_},w.scale=function(e){return arguments.length?(c=+e,O()):c},w.translate=function(e){return arguments.length?(l=+e[0],f=+e[1],O()):[l,f]},w.center=function(e){return arguments.length?(d=e[0]%360*Me,h=e[1]%360*Me,O()):[d*Re,h*Re]},w.rotate=function(e){return arguments.length?(p=e[0]%360*Me,g=e[1]%360*Me,v=e.length>2?e[2]%360*Me:0,O()):[p*Re,g*Re,v*Re]},o.rebind(w,u,"precision"),function(){return t=e.apply(this,arguments),w.invert=t.invert&&x,O()}}function Fr(e){return Rr(e,(function(t,n){e.point(t*Me,n*Me)}))}function Vr(e,t){return[e,t]}function Ur(e,t){return[e>Ie?e-Ae:e<-Ie?e+Ae:e,t]}function Br(e,t,n){return e?t||n?Jn(qr(e),Gr(t,n)):qr(e):t||n?Gr(t,n):Ur}function zr(e){return function(t,n){return[(t+=e)>Ie?t-Ae:t<-Ie?t+Ae:t,n]}}function qr(e){var t=zr(e);return t.invert=zr(-e),t}function Gr(e,t){var n=Math.cos(e),r=Math.sin(e),i=Math.cos(t),o=Math.sin(t);function a(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,c=Math.sin(t),l=c*n+s*r;return[Math.atan2(u*i-l*o,s*n-c*r),Ve(l*i+u*o)]}return a.invert=function(e,t){var a=Math.cos(t),s=Math.cos(e)*a,u=Math.sin(e)*a,c=Math.sin(t),l=c*i-u*o;return[Math.atan2(u*i+c*o,s*n+l*r),Ve(l*n-s*r)]},a}function Wr(e,t){var n=Math.cos(e),r=Math.sin(e);return function(i,o,a,s){var u=a*t;null!=i?(i=Hr(n,i),o=Hr(n,o),(a>0?i<o:i>o)&&(i+=a*Ae)):(i=e+a*Ae,o=e-.5*u);for(var c,l=i;a>
20?l>o:l<o;l-=u)s.point((c=Gn([n,-r*Math.cos(l),-r*Math.sin(l)]))[0],c[1])}}function Hr(e,t){var n=Fn(t);n[0]-=e,qn(n);var r=Fe(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Te)%(2*Math.PI)}function Kr(e,t,n){var r=o.range(e,t-Te,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function Xr(e,t,n){var r=o.range(e,t-Te,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function Yr(e){return e.source}function $r(e){return e.target}o.geo.path=function(){var e,t,n,r,i,a=4.5;function s(e){return e&&("function"===typeof a&&r.pointRadius(+a.apply(this,arguments)),i&&i.valid||(i=n(r)),o.geo.stream(e,i)),r.result()}function u(){return i=null,s}return s.area=function(e){return pr=0,o.geo.stream(e,n(_r)),pr},s.centroid=function(e){return kn=Cn=Tn=jn=In=An=Pn=Nn=Mn=0,o.geo.stream(e,n(kr)),Mn?[Pn/Mn,Nn/Mn]:An?[jn/An,In/An]:Tn?[kn/Tn,Cn/Tn]:[NaN,NaN]},s.bounds=function(e){return yr=br=-(vr=mr=1/0),o.geo.stream(e,n(xr)),[[vr,mr],[yr,br]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||Nr(t):M,u()):e},s.context=function(e){return arguments.length?(r=null==(t=e)?new Or:new Ar(e),"function"!==typeof a&&r.pointRadius(a),u()):t},s.pointRadius=function(e){return arguments.length?(a="function"===typeof e?e:(r.pointRadius(+e),+e),s):a},s.projection(o.geo.albersUsa()).context(null)},o.geo.transform=function(e){return{stream:function(t){var n=new Mr(t);for(var r in e)n[r]=e[r];return n}}},Mr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},o.geo.projection=Lr,o.geo.projectionMutator=Dr,(o.geo.equirectangular=function(){return Lr(Vr)}).raw=Vr.invert=Vr,o.geo.rotation=function(e){function t(t){return(t=e(t[0]*Me,t[1]*Me))[0]*=Re,t[1]*=Re,t}return e=Br(e[0]%360*Me,e[1]*Me,e.length>2?e[2]*Me:0),t.invert=function(t){return(t=e.invert(t[0]*Me,t[1]*Me))[0]*=Re,t[1]*=Re,t},t},Ur.invert=Vr,o.geo.circle=function(){var e,t,n=[0,0],r=6;function i(){var e="function"===typeof n?n.apply(this,arguments):n,r=Br(-e[0]*Me,-e[1]*Me,0).invert,i=[];return t(null,null,1,{point:function(e,t){i.push(e=r(e,t)),e[0]*=Re,e[1]*=Re}}),{type:"Polygon",coordinates:[i]}}return i.origin=function(e){return arguments.length?(n=e,i):n},i.angle=function(n){return arguments.length?(t=Wr((e=+n)*Me,r*Me),i):e},i.precision=function(n){return arguments.length?(t=Wr(e*Me,(r=+n)*Me),i):r},i.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Me,i=e[1]*Me,o=t[1]*Me,a=Math.sin(r),s=Math.cos(r),u=Math.sin(i),c=Math.cos(i),l=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*a)*n+(n=c*l-u*f*s)*n),u*l+c*f*s)},o.geo.graticule=function(){var e,t,n,r,i,a,s,u,c,l,f,d,h=10,p=h,g=90,v=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:b()}}function b(){return o.range(Math.ceil(r/g)*g,n,g).map(f).concat(o.range(Math.ceil(u/v)*v,s,v).map(d)).concat(o.range(Math.ceil(t/h)*h,e,h).filter((function(e){return x(e%g)>Te})).map(c)).concat(o.range(Math.ceil(a/p)*p,i,p).filter((function(e){return x(e%v)>Te})).map(l))}return y.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},y.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(d(s).slice(1),f(n).reverse().slice(1),d(u).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.majorExtent(e).minorExtent(e):y.minorExtent()},y.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],s=+e[1][1],r>n&&(e=r,r=n,n=e),u>s&&(e=u,u=s,s=e),y.precision(m)):[[r,u],[n,s]]},y.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],a=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),a>i&&(n=a,a=i,i=n),y.precision(m)):[[t,a],[e,i]]},y.step=function(e){return arguments.length?y.majorStep(e).minorStep(e):y.minorStep()},y.majorStep=function(e){return arguments.length?(g=+e[0],v=+e[1],y):[g,v]},y.minorStep=function(e){return arguments.length?(h=+e[0],p=+e[1],y):[h,p]},y.precision=function(o){return arguments.length?(m=+o,c=Kr(a,i,90),l=Xr(t,e,m),f=Kr(u,s,90),d=Xr(r,n,m),y):m},y.majorExtent([[-180,-90+Te],[180,90-Te]]).minorExtent([[-180,-80-Te],[180,80+Te]])},o.geo.greatArc=function(){var e,t,n=Yr,r=$r;function i(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return i.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},i.source=function(t){return arguments.length?(n=t,e="function"===typeof t?null:t,i):n},i.target=function(e){return arguments.length?(r=e,t="function"===typeof e?null:e,i):r},i.precision=function(){return arguments.length?i:0},i},o.geo.interpolate=function(e,t){return function(e,t,n,r){var i=Math.cos(t),o=Math.sin(t),a=Math.cos(r),s=Math.sin(r),u=i*Math.cos(e),c=i*Math.sin(e),l=a*Math.cos(n),f=a*Math.sin(n),d=2*Math.asin(Math.sqrt(Be(r-t)+i*a*Be(n-e))),h=1/Math.sin(d),p=d?function(e){var t=Math.sin(e*=d)*h,n=Math.sin(d-e)*h,r=n*u+t*l,i=n*c+t*f,a=n*o+t*s;return[Math.atan2(i,r)*Re,Math.atan2(a,Math.sqrt(r*r+i*i))*Re]}:function(){return[e*Re,t*Re]};return p.distance=d,p}(e[0]*Me,e[1]*Me,t[0]*Me,t[1]*Me)},o.geo.length=function(e){return Er=0,o.geo.stream(e,Qr),Er};var Qr={sphere:F,point:F,lineStart:function(){var e,t,n;function r(r,i){var o=Math.sin(i*=Me),a=Math.cos(i),s=x((r*=Me)-e),u=Math.cos(s);Er+=Math.atan2(Math.sqrt((s=a*Math.sin(s))*s+(s=n*o-t*a*u)*s),t*o+n*a*u),e=r,t=o,n=a}
2Qr.point=function(i,o){e=i*Me,t=Math.sin(o*=Me),n=Math.cos(o),Qr.point=r},Qr.lineEnd=function(){Qr.point=Qr.lineEnd=F}},lineEnd:F,polygonStart:F,polygonEnd:F};function Jr(e,t){function n(t,n){var r=Math.cos(t),i=Math.cos(n),o=e(r*i);return[o*i*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),i=t(r),o=Math.sin(i),a=Math.cos(i);return[Math.atan2(e*o,r*a),Math.asin(r&&n*o/r)]},n}var Zr=Jr((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(o.geo.azimuthalEqualArea=function(){return Lr(Zr)}).raw=Zr;var ei=Jr((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),M);function ti(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ie/4+e/2)},i=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),i)/i;if(!i)return ii;function a(e,t){o>0?t<-Ne+Te&&(t=-Ne+Te):t>Ne-Te&&(t=Ne-Te);var n=o/Math.pow(r(t),i);return[n*Math.sin(i*e),o-n*Math.cos(i*e)]}return a.invert=function(e,t){var n=o-t,r=Le(i)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/i,2*Math.atan(Math.pow(o/r,1/i))-Ne]},a}function ni(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),i=n/r+e;if(x(r)<Te)return Vr;function o(e,t){var n=i-t;return[n*Math.sin(r*e),i-n*Math.cos(r*e)]}return o.invert=function(e,t){var n=i-t;return[Math.atan2(e,n)/r,i-Le(r)*Math.sqrt(e*e+n*n)]},o}(o.geo.azimuthalEquidistant=function(){return Lr(ei)}).raw=ei,(o.geo.conicConformal=function(){return dr(ti)}).raw=ti,(o.geo.conicEquidistant=function(){return dr(ni)}).raw=ni;var ri=Jr((function(e){return 1/e}),Math.atan);function ii(e,t){return[e,Math.log(Math.tan(Ie/4+t/2))]}function oi(e){var t,n=Lr(e),r=n.scale,i=n.translate,o=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=i.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var a=o.apply(n,arguments);if(a===n){if(t=null==e){var s=Ie*r(),u=i();o([[u[0]-s,u[1]-s],[u[0]+s,u[1]+s]])}}else t&&(a=null);return a},n.clipExtent(null)}(o.geo.gnomonic=function(){return Lr(ri)}).raw=ri,ii.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ne]},(o.geo.mercator=function(){return oi(ii)}).raw=ii;var ai=Jr((function(){return 1}),Math.asin);(o.geo.orthographic=function(){return Lr(ai)}).raw=ai;var si=Jr((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function ui(e,t){return[Math.log(Math.tan(Ie/4+t/2)),-e]}function ci(e){return e[0]}function li(e){return e[1]}function fi(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;i++){for(;r>1&&De(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}function di(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Lr(si)}).raw=si,ui.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ne]},(o.geo.transverseMercator=function(){var e=oi(ui),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90])}).raw=ui,o.geom={},o.geom.hull=function(e){var t=ci,n=li;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,i=_t(t),o=_t(n),a=e.length,s=[],u=[];for(r=0;r<a;r++)s.push([+i.call(this,e[r],r),+o.call(this,e[r],r),r]);for(s.sort(di),r=0;r<a;r++)u.push([s[r][0],-s[r][1]]);var c=fi(s),l=fi(u),f=l[0]===c[0],d=l[l.length-1]===c[c.length-1],h=[];for(r=c.length-1;r>=0;--r)h.push(e[s[c[r]][2]]);for(r=+f;r<l.length-d;++r)h.push(e[s[l[r]][2]]);return h}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},o.geom.polygon=function(e){return W(e,hi),e};var hi=o.geom.polygon.prototype=[];function pi(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function gi(e,t,n,r){var i=e[0],o=n[0],a=t[0]-i,s=r[0]-o,u=e[1],c=n[1],l=t[1]-u,f=r[1]-c,d=(s*(u-c)-f*(i-o))/(f*a-s*l);return[i+d*a,u+d*l]}function vi(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}hi.area=function(){for(var e,t=-1,n=this.length,r=this[n-1],i=0;++t<n;)e=r,r=this[t],i+=e[1]*r[0]-e[0]*r[1];return.5*i},hi.centroid=function(e){var t,n,r=-1,i=this.length,o=0,a=0,s=this[i-1];for(arguments.length||(e=-1/(6*this.area()));++r<i;)t=s,s=this[r],n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o*e,a*e]},hi.clip=function(e){for(var t,n,r,i,o,a,s=vi(e),u=-1,c=this.length-vi(this),l=this[c-1];++u<c;){for(t=e.slice(),e.length=0,i=this[u],o=t[(r=t.length-s)-1],n=-1;++n<r;)pi(a=t[n],l,i)?(pi(o,l,i)||e.push(gi(o,a,l,i)),e.push(a)):pi(o,l,i)&&e.push(gi(o,a,l,i)),o=a;s&&e.push(e[0]),l=i}return e};var mi,yi,bi,_i,wi,xi=[],Oi=[];function Si(){qi(this),this.edge=this.site=this.circle=null}function Ei(e){var t=xi.pop()||new Si;return t.site=e,t}function ki(e){Ri(e),bi.remove(e),xi.push(e),qi(e)}
2function Ci(e){var t=e.circle,n=t.x,r=t.cy,i={x:n,y:r},o=e.P,a=e.N,s=[e];ki(e);for(var u=o;u.circle&&x(n-u.circle.x)<Te&&x(r-u.circle.cy)<Te;)o=u.P,s.unshift(u),ki(u),u=o;s.unshift(u),Ri(u);for(var c=a;c.circle&&x(n-c.circle.x)<Te&&x(r-c.circle.cy)<Te;)a=c.N,s.push(c),ki(c),c=a;s.push(c),Ri(c);var l,f=s.length;for(l=1;l<f;++l)c=s[l],u=s[l-1],Ui(c.edge,u.site,c.site,i);u=s[0],(c=s[f-1]).edge=Fi(u.site,c.site,null,i),Mi(u),Mi(c)}function Ti(e){for(var t,n,r,i,o=e.x,a=e.y,s=bi._;s;)if((r=ji(s,a)-o)>Te)s=s.L;else{if(!((i=o-Ii(s,a))>Te)){r>-Te?(t=s.P,n=s):i>-Te?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}var u=Ei(e);if(bi.insert(t,u),t||n){if(t===n)return Ri(t),n=Ei(t.site),bi.insert(u,n),u.edge=n.edge=Fi(t.site,u.site),Mi(t),void Mi(n);if(n){Ri(t),Ri(n);var c=t.site,l=c.x,f=c.y,d=e.x-l,h=e.y-f,p=n.site,g=p.x-l,v=p.y-f,m=2*(d*v-h*g),y=d*d+h*h,b=g*g+v*v,_={x:(v*y-h*b)/m+l,y:(d*b-g*y)/m+f};Ui(n.edge,c,p,_),u.edge=Fi(c,e,null,_),n.edge=Fi(e,p,null,_),Mi(t),Mi(n)}else u.edge=Fi(t.site,u.site)}}function ji(e,t){var n=e.site,r=n.x,i=n.y,o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site).x,u=n.y,c=u-t;if(!c)return s;var l=s-r,f=1/o-1/c,d=l/c;return f?(-d+Math.sqrt(d*d-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function Ii(e,t){var n=e.N;if(n)return ji(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ai(e){this.site=e,this.edges=[]}function Pi(e,t){return t.angle-e.angle}function Ni(){qi(this),this.x=this.y=this.arc=this.site=this.cy=null}function Mi(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i.x,s=i.y,u=r.x-a,c=r.y-s,l=o.x-a,f=2*(u*(v=o.y-s)-c*l);if(!(f>=-je)){var d=u*u+c*c,h=l*l+v*v,p=(v*d-c*h)/f,g=(u*h-l*d)/f,v=g+s,m=Oi.pop()||new Ni;m.arc=e,m.site=i,m.x=p+a,m.y=v+Math.sqrt(p*p+g*g),m.cy=v,e.circle=m;for(var y=null,b=wi._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}wi.insert(y,m),y||(_i=m)}}}}function Ri(e){var t=e.circle;t&&(t.P||(_i=t.N),wi.remove(t),Oi.push(t),qi(t),e.circle=null)}function Li(e,t){var n=e.b;if(n)return!0;var r,i,o=e.a,a=t[0][0],s=t[1][0],u=t[0][1],c=t[1][1],l=e.l,f=e.r,d=l.x,h=l.y,p=f.x,g=f.y,v=(d+p)/2,m=(h+g)/2;if(g===h){if(v<a||v>=s)return;if(d>p){if(o){if(o.y>=c)return}else o={x:v,y:u};n={x:v,y:c}}else{if(o){if(o.y<u)return}else o={x:v,y:c};n={x:v,y:u}}}else if(i=m-(r=(d-p)/(g-h))*v,r<-1||r>1)if(d>p){if(o){if(o.y>=c)return}else o={x:(u-i)/r,y:u};n={x:(c-i)/r,y:c}}else{if(o){if(o.y<u)return}else o={x:(c-i)/r,y:c};n={x:(u-i)/r,y:u}}else if(h<g){if(o){if(o.x>=s)return}else o={x:a,y:r*a+i};n={x:s,y:r*s+i}}else{if(o){if(o.x<a)return}else o={x:s,y:r*s+i};n={x:a,y:r*a+i}}return e.a=o,e.b=n,!0}function Di(e,t){this.l=e,this.r=t,this.a=this.b=null}function Fi(e,t,n,r){var i=new Di(e,t);return mi.push(i),n&&Ui(i,e,t,n),r&&Ui(i,t,e,r),yi[e.i].edges.push(new Bi(i,e,t)),yi[t.i].edges.push(new Bi(i,t,e)),i}function Vi(e,t,n){var r=new Di(e,null);return r.a=t,r.b=n,mi.push(r),r}function Ui(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function Bi(e,t,n){var r=e.a,i=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(i.x-r.x,r.y-i.y):Math.atan2(r.x-i.x,i.y-r.y)}function zi(){this._=null}function qi(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Gi(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function Wi(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Hi(e){for(;e.L;)e=e.L;return e}function Ki(e,t){var n,r,i,o=e.sort(Xi).pop();for(mi=[],yi=new Array(e.length),bi=new zi,wi=new zi;;)if(i=_i,o&&(!i||o.y<i.y||o.y===i.y&&o.x<i.x))o.x===n&&o.y===r||(yi[o.i]=new Ai(o),Ti(o),n=o.x,r=o.y),o=e.pop();else{if(!i)break;Ci(i.arc)}t&&(function(e){for(var t,n=mi,r=cr(e[0][0],e[0][1],e[1][0],e[1][1]),i=n.length;i--;)(!Li(t=n[i],e)||!r(t)||x(t.a.x-t.b.x)<Te&&x(t.a.y-t.b.y)<Te)&&(t.a=t.b=null,n.splice(i,1))}(t),function(e){for(var t,n,r,i,o,a,s,u,c,l,f=e[0][0],d=e[1][0],h=e[0][1],p=e[1][1],g=yi,v=g.length;v--;)if((o=g[v])&&o.prepare())for(u=(s=o.edges).length,a=0;a<u;)r=(l=s[a].end()).x,i=l.y,t=(c=s[++a%u].start()).x,n=c.y,(x(r-t)>Te||x(i-n)>Te)&&(s.splice(a,0,new Bi(Vi(o.site,l,x(r-f)<Te&&p-i>Te?{x:f,y:x(t-f)<Te?n:p}:x(i-p)<Te&&d-r>Te?{x:x(n-p)<Te?t:d,y:p}:x(r-d)<Te&&i-h>
2Te?{x:d,y:x(t-d)<Te?n:h}:x(i-h)<Te&&r-f>Te?{x:x(n-h)<Te?t:f,y:h}:null),o.site,null)),++u)}(t));var a={cells:yi,edges:mi};return bi=wi=mi=yi=null,a}function Xi(e,t){return t.y-e.y||t.x-e.x}Ai.prototype.prepare=function(){for(var e,t=this.edges,n=t.length;n--;)(e=t[n].edge).b&&e.a||t.splice(n,1);return t.sort(Pi),t.length},Bi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},zi.prototype={insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Hi(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Gi(this,n),n=(e=n).U),n.C=!1,r.C=!0,Wi(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(Wi(this,n),n=(e=n).U),n.C=!1,r.C=!0,Gi(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?Hi(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Gi(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Wi(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Gi(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Wi(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Gi(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Wi(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}},o.geom.voronoi=function(e){var t=ci,n=li,r=t,i=n,o=Yi;if(e)return a(e);function a(e){var t=new Array(e.length),n=o[0][0],r=o[0][1],i=o[1][0],a=o[1][1];return Ki(s(e),o).cells.forEach((function(o,s){var u=o.edges,c=o.site;(t[s]=u.length?u.map((function(e){var t=e.start();return[t.x,t.y]})):c.x>=n&&c.x<=i&&c.y>=r&&c.y<=a?[[n,a],[i,a],[i,r],[n,r]]:[]).point=e[s]})),t}function s(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Te)*Te,y:Math.round(i(e,t)/Te)*Te,i:t}}))}return a.links=function(e){return Ki(s(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},a.triangles=function(e){var t=[];return Ki(s(e)).cells.forEach((function(n,r){for(var i,o,a,s,u=n.site,c=n.edges.sort(Pi),l=-1,f=c.length,d=c[f-1].edge,h=d.l===u?d.r:d.l;++l<f;)d,i=h,h=(d=c[l].edge).l===u?d.r:d.l,r<i.i&&r<h.i&&(a=i,s=h,((o=u).x-s.x)*(a.y-o.y)-(o.x-a.x)*(s.y-o.y)<0)&&t.push([e[r],e[i.i],e[h.i]])})),t},a.x=function(e){return arguments.length?(r=_t(t=e),a):t},a.y=function(e){return arguments.length?(i=_t(n=e),a):n},a.clipExtent=function(e){return arguments.length?(o=null==e?Yi:e,a):o===Yi?null:o},a.size=function(e){return arguments.length?a.clipExtent(e&&[[0,0],e]):o===Yi?null:o&&o[1]},a};var Yi=[[-1e6,-1e6],[1e6,1e6]];function $i(e){return e.x}function Qi(e){return e.y}function Ji(e,t,n,r,i,o){if(!e(t,n,r,i,o)){var a=.5*(n+i),s=.5*(r+o),u=t.nodes;u[0]&&Ji(e,u[0],n,r,a,s),u[1]&&Ji(e,u[1],a,r,i,s),u[2]&&Ji(e,u[2],n,s,a,o),u[3]&&Ji(e,u[3],a,s,i,o)}}function Zi(e,t,n,r,i,o,a){var s,u=1/0;return function e(c,l,f,d,h){if(!(l>o||f>a||d<r||h<i)){if(p=c.point){var p,g=t-c.x,v=n-c.y,m=g*g+v*v;if(m<u){var y=Math.sqrt(u=m);r=t-y,i=n-y,o=t+y,a=n+y,s=p}}for(var b=c.nodes,_=.5*(l+d),w=.5*(f+h),x=(n>=w)<<1|t>=_,O=x+4;x<O;++x)if(c=b[3&x])switch(3&x){case 0:e(c,l,f,_,w);break;case 1:e(c,_,f,d,w);break;case 2:e(c,l,w,_,h);break;case 3:e(c,_,w,d,h)}}}(e,r,i,o,a),s}function eo(e,t){e=o.rgb(e),t=o.rgb(t);var n=e.r,r=e.g,i=e.b,a=t.r-n,s=t.g-r,u=t.b-i;return function(e){return"#"+ht(Math.round(n+a*e))+ht(Math.round(r+s*e))+ht(Math.round(i+u*e))}}function to(e,t){var n,r={},i={};for(n in e)n in t?r[n]=ao(e[n],t[n]):i[n]=e[n];for(n in t)n in e||(i[n]=t[n]);return function(e){for(n in r)i[n]=r[n](e);return i}}function no(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ro(e,t){var n,r,i,o=io.lastIndex=oo.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=io.exec(e))&&(r=oo.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:no(n,r)})),o=oo.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?(t=u[0].x,function(e){return t(e)+""}):function(){return t}:(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}o.geom.delaunay=function(e){return o.geom.voronoi().triangles(e)},o.geom.quadtree=function(e,t,n,r,i){var o,a=ci,s=li;if(o=arguments.length)return a=$i,s=Qi,3===o&&(i=n,r=t,n=t=0),u(e);function u(e){var u,c,l,f,d,h,p,g,v,m=_t(a),y=_t(s);if(null!=t)h=t,p=n,g=r,v=i;else if(g=v=-(h=p=1/0),c=[],l=[],d=e.length,o)for(f=0;f<d;++f)(u=e[f]).x<h&&(h=u.x),u.y<p&&(p=u.y),u.x>g&&(g=u.x),u.y>v&&(v=u.y),c.push(u.x),l.push(u.y);else for(f=0;f<d;++f){var b=+m(u=e[f],f),_=+y(u,f);b<h&&(h=b),_<p&&(p=_),b>g&&(g=b),_>v&&(v=_),c.push(b),l.push(_)}var w=g-h,O=v-p;
2function S(e,t,n,r,i,o,a,s){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var u=e.x,c=e.y;if(null!=u)if(x(u-n)+x(c-r)<.01)E(e,t,n,r,i,o,a,s);else{var l=e.point;e.x=e.y=e.point=null,E(e,l,u,c,i,o,a,s),E(e,t,n,r,i,o,a,s)}else e.x=n,e.y=r,e.point=t}else E(e,t,n,r,i,o,a,s)}function E(e,t,n,r,i,o,a,s){var u=.5*(i+a),c=.5*(o+s),l=n>=u,f=r>=c,d=f<<1|l;e.leaf=!1,l?i=u:a=u,f?o=c:s=c,S(e=e.nodes[d]||(e.nodes[d]={leaf:!0,nodes:[],point:null,x:null,y:null}),t,n,r,i,o,a,s)}w>O?v=p+w:g=h+O;var k={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(e){S(k,e,+m(e,++f),+y(e,f),h,p,g,v)},visit:function(e){Ji(e,k,h,p,g,v)},find:function(e){return Zi(k,e[0],e[1],h,p,g,v)}};if(f=-1,null==t){for(;++f<d;)S(k,e[f],c[f],l[f],h,p,g,v);--f}else e.forEach(k.add);return c=l=e=u=null,k}return u.x=function(e){return arguments.length?(a=e,u):a},u.y=function(e){return arguments.length?(s=e,u):s},u.extent=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],i=+e[1][1]),u):null==t?null:[[t,n],[r,i]]},u.size=function(e){return arguments.length?(null==e?t=n=r=i=null:(t=n=0,r=+e[0],i=+e[1]),u):null==t?null:[r-t,i-n]},u},o.interpolateRgb=eo,o.interpolateObject=to,o.interpolateNumber=no,o.interpolateString=ro;var io=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oo=new RegExp(io.source,"g");function ao(e,t){for(var n,r=o.interpolators.length;--r>=0&&!(n=o.interpolators[r](e,t)););return n}function so(e,t){var n,r=[],i=[],o=e.length,a=t.length,s=Math.min(e.length,t.length);for(n=0;n<s;++n)r.push(ao(e[n],t[n]));for(;n<o;++n)i[n]=e[n];for(;n<a;++n)i[n]=t[n];return function(e){for(n=0;n<s;++n)i[n]=r[n](e);return i}}o.interpolate=ao,o.interpolators=[function(e,t){var n=typeof t;return("string"===n?bt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?eo:ro:t instanceof He?eo:Array.isArray(t)?so:"object"===n&&isNaN(t)?to:no)(e,t)}],o.interpolateArray=so;var uo=function(){return M},co=o.map({linear:uo,poly:function(e){return function(t){return Math.pow(t,e)}},quad:function(){return go},cubic:function(){return vo},sin:function(){return yo},exp:function(){return bo},circle:function(){return _o},elastic:function(e,t){var n;arguments.length<2&&(t=.45);arguments.length?n=t/Ae*Math.asin(1/e):(e=1,n=t/4);return function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ae/t)}},back:function(e){e||(e=1.70158);return function(t){return t*t*((e+1)*t-e)}},bounce:function(){return wo}}),lo=o.map({in:M,out:ho,"in-out":po,"out-in":function(e){return po(ho(e))}});function fo(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function ho(e){return function(t){return 1-e(1-t)}}function po(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function go(e){return e*e}function vo(e){return e*e*e}function mo(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function yo(e){return 1-Math.cos(e*Ne)}function bo(e){return Math.pow(2,10*(e-1))}function _o(e){return 1-Math.sqrt(1-e*e)}function wo(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function xo(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Oo(e){var t,n,r,i=[e.a,e.b],o=[e.c,e.d],a=Eo(i),s=So(i,o),u=Eo(((t=o)[0]+=(r=-s)*(n=i)[0],t[1]+=r*n[1],t))||0;i[0]*o[1]<o[0]*i[1]&&(i[0]*=-1,i[1]*=-1,a*=-1,s*=-1),this.rotate=(a?Math.atan2(i[1],i[0]):Math.atan2(-o[0],o[1]))*Re,this.translate=[e.e,e.f],this.scale=[a,u],this.skew=u?Math.atan2(s,u)*Re:0}function So(e,t){return e[0]*t[0]+e[1]*t[1]}function Eo(e){var t=Math.sqrt(So(e,e));return t&&(e[0]/=t,e[1]/=t),t}o.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=co.get(n)||uo,fo((r=lo.get(r)||M)(n.apply(null,a.call(arguments,1))))},o.interpolateHcl=function(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,i=e.l,a=t.h-n,s=t.c-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.c:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Je(n+a*e,r+s*e,i+u*e)+""}},o.interpolateHsl=function(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,i=e.l,a=t.h-n,s=t.s-r,u=t.l-i;isNaN(s)&&(s=0,r=isNaN(r)?t.s:r);isNaN(a)?(a=0,n=isNaN(n)?t.h:n):a>180?a-=360:a<-180&&(a+=360);return function(e){return Ye(n+a*e,r+s*e,i+u*e)+""}},o.interpolateLab=function(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,i=e.b,a=t.l-n,s=t.a-r,u=t.b-i;return function(e){return it(n+a*e,r+s*e,i+u*e)+""}},o.interpolateRound=xo,o.transform=function(e){var t=u.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Oo(n?n.matrix:ko)})(e)},Oo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ko={a:1,b:0,c:0,d:1,e:0,f:0};function Co(e){return e.length?e.pop()+",":""}function To(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push("translate(",null,",",null,")");r.push({i:i-4,x:no(e[0],t[0])},{i:i-2,x:no(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}(e.translate,t.translate,n,r),function(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Co(n)+"rotate(",null,")")-2,x:no(e,t)})):t&&n.push(Co(n)+"rotate("+t+")")}(e.rotate,t.rotate,n,r),function(e,t,n,r){e!==t?r.push({i:n.push(Co(n)+"skewX(",
2null,")")-2,x:no(e,t)}):t&&n.push(Co(n)+"skewX("+t+")")}(e.skew,t.skew,n,r),function(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var i=n.push(Co(n)+"scale(",null,",",null,")");r.push({i:i-4,x:no(e[0],t[0])},{i:i-2,x:no(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Co(n)+"scale("+t+")")}(e.scale,t.scale,n,r),e=t=null,function(e){for(var t,i=-1,o=r.length;++i<o;)n[(t=r[i]).i]=t.x(e);return n.join("")}}function jo(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function Io(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function Ao(e){for(var t=e.source,n=e.target,r=function(e,t){if(e===t)return e;var n=Po(e),r=Po(t),i=n.pop(),o=r.pop(),a=null;for(;i===o;)a=i,i=n.pop(),o=r.pop();return a}(t,n),i=[t];t!==r;)t=t.parent,i.push(t);for(var o=i.length;n!==r;)i.splice(o,0,n),n=n.parent;return i}function Po(e){for(var t=[],n=e.parent;null!=n;)t.push(e),e=n,n=n.parent;return t.push(e),t}function No(e){e.fixed|=2}function Mo(e){e.fixed&=-7}function Ro(e){e.fixed|=4,e.px=e.x,e.py=e.y}function Lo(e){e.fixed&=-5}function Do(e,t,n){var r=0,i=0;if(e.charge=0,!e.leaf)for(var o,a=e.nodes,s=a.length,u=-1;++u<s;)null!=(o=a[u])&&(Do(o,t,n),e.charge+=o.charge,r+=o.charge*o.cx,i+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var c=t*n[e.point.index];e.charge+=e.pointCharge=c,r+=c*e.point.x,i+=c*e.point.y}e.cx=r/e.charge,e.cy=i/e.charge}o.interpolateTransform=To,o.layout={},o.layout.bundle=function(){return function(e){for(var t=[],n=-1,r=e.length;++n<r;)t.push(Ao(e[n]));return t}},o.layout.chord=function(){var e,t,n,r,i,a,s,u={},c=0;function l(){var u,l,d,h,p,g={},v=[],m=o.range(r),y=[];for(e=[],t=[],u=0,h=-1;++h<r;){for(l=0,p=-1;++p<r;)l+=n[h][p];v.push(l),y.push(o.range(r)),u+=l}for(i&&m.sort((function(e,t){return i(v[e],v[t])}
2)),a&&y.forEach((function(e,t){e.sort((function(e,r){return a(n[t][e],n[t][r])}))})),u=(Ae-c*r)/u,l=0,h=-1;++h<r;){for(d=l,p=-1;++p<r;){var b=m[h],_=y[b][p],w=n[b][_],x=l,O=l+=w*u;g[b+"-"+_]={index:b,subindex:_,startAngle:x,endAngle:O,value:w}}t[b]={index:b,startAngle:d,endAngle:l,value:v[b]},l+=c}for(h=-1;++h<r;)for(p=h-1;++p<r;){var S=g[h+"-"+p],E=g[p+"-"+h];(S.value||E.value)&&e.push(S.value<E.value?{source:E,target:S}:{source:S,target:E})}s&&f()}function f(){e.sort((function(e,t){return s((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return u.matrix=function(i){return arguments.length?(r=(n=i)&&n.length,e=t=null,u):n},u.padding=function(n){return arguments.length?(c=n,e=t=null,u):c},u.sortGroups=function(n){return arguments.length?(i=n,e=t=null,u):i},u.sortSubgroups=function(t){return arguments.length?(a=t,e=null,u):a},u.sortChords=function(t){return arguments.length?(s=t,e&&f(),u):s},u.chords=function(){return e||l(),e},u.groups=function(){return t||l(),t},u},o.layout.force=function(){var e,t,n,r,i,a,s={},u=o.dispatch("start","tick","end"),c=[1,1],l=.9,f=Fo,d=Vo,h=-30,p=Uo,g=.1,v=.64,m=[],y=[];function b(e){return function(t,n,r,i){if(t.point!==e){var o=t.cx-e.x,a=t.cy-e.y,s=i-n,u=o*o+a*a;if(s*s/v<u){if(u<p){var c=t.charge/u;e.px-=o*c,e.py-=a*c}return!0}if(t.point&&u&&u<p){c=t.pointCharge/u;e.px-=o*c,e.py-=a*c}}return!t.charge}}function _(e){e.px=o.event.x,e.py=o.event.y,s.resume()}
2return s.tick=function(){if((n*=.99)<.005)return e=null,u.end({type:"end",alpha:n=0}),!0;var t,s,f,d,p,v,_,w,x,O=m.length,S=y.length;for(s=0;s<S;++s)d=(f=y[s]).source,(v=(w=(p=f.target).x-d.x)*w+(x=p.y-d.y)*x)&&(w*=v=n*i[s]*((v=Math.sqrt(v))-r[s])/v,x*=v,p.x-=w*(_=d.weight+p.weight?d.weight/(d.weight+p.weight):.5),p.y-=x*_,d.x+=w*(_=1-_),d.y+=x*_);if((_=n*g)&&(w=c[0]/2,x=c[1]/2,s=-1,_))for(;++s<O;)(f=m[s]).x+=(w-f.x)*_,f.y+=(x-f.y)*_;if(h)for(Do(t=o.geom.quadtree(m),n,a),s=-1;++s<O;)(f=m[s]).fixed||t.visit(b(f));for(s=-1;++s<O;)(f=m[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*l,f.y-=(f.py-(f.py=f.y))*l);u.tick({type:"tick",alpha:n})},s.nodes=function(e){return arguments.length?(m=e,s):m},s.links=function(e){return arguments.length?(y=e,s):y},s.size=function(e){return arguments.length?(c=e,s):c},s.linkDistance=function(e){return arguments.length?(f="function"===typeof e?e:+e,s):f},s.distance=s.linkDistance,s.linkStrength=function(e){return arguments.length?(d="function"===typeof e?e:+e,s):d},s.friction=function(e){return arguments.length?(l=+e,s):l},s.charge=function(e){return arguments.length?(h="function"===typeof e?e:+e,s):h},s.chargeDistance=function(e){return arguments.length?(p=e*e,s):Math.sqrt(p)},s.gravity=function(e){return arguments.length?(g=+e,s):g},s.theta=function(e){return arguments.length?(v=e*e,s):Math.sqrt(v)},s.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,u.end({type:"end",alpha:n=0})):t>0&&(u.start({type:"start",alpha:n=t}),e=Tt(s.tick)),s):n},s.start=function(){var e,t,n,o=m.length,u=y.length,l=c[0],p=c[1];for(e=0;e<o;++e)(n=m[e]).index=e,n.weight=0;for(e=0;e<u;++e)"number"==typeof(n=y[e]).source&&(n.source=m[n.source]),"number"==typeof n.target&&(n.target=m[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<o;++e)n=m[e],isNaN(n.x)&&(n.x=g("x",l)),isNaN(n.y)&&(n.y=g("y",p)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"===typeof f)for(e=0;e<u;++e)r[e]=+f.call(this,y[e],e);else for(e=0;e<u;++e)r[e]=f;if(i=[],"function"===typeof d)for(e=0;e<u;++e)i[e]=+d.call(this,y[e],e);else for(e=0;e<u;++e)i[e]=d;if(a=[],"function"===typeof h)for(e=0;e<o;++e)a[e]=+h.call(this,m[e],e);else for(e=0;e<o;++e)a[e]=h;function g(n,r){if(!t){for(t=new Array(o),c=0;c<o;++c)t[c]=[];for(c=0;c<u;++c){var i=y[c];t[i.source.index].push(i.target),t[i.target.index].push(i.source)}}for(var a,s=t[e],c=-1,l=s.length;++c<l;)if(!isNaN(a=s[c][n]))return a;return Math.random()*r}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(t||(t=o.behavior.drag().origin(M).on("dragstart.force",No).on("drag.force",_).on("dragend.force",Mo)),!arguments.length)return t;this.on("mouseover.force",Ro).on("mouseout.force",Lo).call(t)},o.rebind(s,u,"on")};var Fo=20,Vo=1,Uo=1/0;function Bo(e,t){return o.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=Ko,e}function zo(e,t){for(var n=[e];null!=(e=n.pop());)if(t(e),(i=e.children)&&(r=i.length))for(var r,i;--r>=0;)n.push(i[r])}function qo(e,t){for(var n=[e],r=[];null!=(e=n.pop());)if(r.push(e),(o=e.children)&&(i=o.length))for(var i,o,a=-1;++a<i;)n.push(o[a]);for(;null!=(e=r.pop());)t(e)}function Go(e){return e.children}function Wo(e){return e.value}function Ho(e,t){return t.value-e.value}function Ko(e){return o.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}o.layout.hierarchy=function(){var e=Ho,t=Go,n=Wo;function r(i){var o,a=[i],s=[];for(i.depth=0;null!=(o=a.pop());)if(s.push(o),(c=t.call(r,o,o.depth))&&(u=c.length)){for(var u,c,l;--u>=0;)a.push(l=c[u]),l.parent=o,l.depth=o.depth+1;n&&(o.value=0),o.children=c}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return qo(i,(function(t){var r,i;e&&(r=t.children)&&r.sort(e),n&&(i=t.parent)&&(i.value+=t.value)})),s}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(zo(e,(function(e){e.children&&(e.value=0)})),qo(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(e,t,r,i){var o=e.children;if(e.x=t,e.y=e.depth*i,e.dx=r,e.dy=i,o&&(a=o.length)){var a,s,u,c=-1;for(r=e.value?r/e.value:0;++c<a;)n(s=o[c],t,u=s.value*r,i),t+=u}}function r(e){var t=e.children,n=0;if(t&&(i=t.length))for(var i,o=-1;++o<i;)n=Math.max(n,r(t[o]));return 1+n}function i(i,o){var a=e.call(this,i,o);return n(a[0],0,t[0],t[1]/r(a[0])),a}return i.size=function(e){return arguments.length?(t=e,i):t},Bo(i,e)},o.layout.pie=function(){var e=Number,t=Xo,n=0,r=Ae,i=0;function a(s){var u,c=s.length,l=s.map((function(t,n){return+e.call(a,t,n)})),f=+("function"===typeof n?n.apply(this,arguments):n),d=("function"===typeof r?r.apply(this,arguments):r)-f,h=Math.min(Math.abs(d)/c,+("function"===typeof i?i.apply(this,arguments):i)),p=h*(d<0?-1:1),g=o.sum(l),v=g?(d-c*p)/g:0,m=o.range(c),y=[];return null!=t&&m.sort(t===Xo?function(e,t){return l[t]-l[e]}:function(e,n){return t(s[e],s[n])}),m.forEach((function(e){y[e]={data:s[e],value:u=l[e],startAngle:f,endAngle:f+=u*v+p,padAngle:h}})),y}return a.value=function(t){return arguments.length?(e=t,a):e},a.sort=function(e){return arguments.length?(t=e,a):t},a.startAngle=function(e){return arguments.length?(n=e,a):n},a.endAngle=function(e){return arguments.length?(r=e,a):r},a.padAngle=function(e){return arguments.length?(i=e,a):i},a};var Xo={};function Yo(e){return e.x}function $o(e){return e.y}
2function Qo(e,t,n){e.y0=t,e.y=n}o.layout.stack=function(){var e=M,t=ea,n=ta,r=Qo,i=Yo,a=$o;function s(u,c){if(!(h=u.length))return u;var l=u.map((function(t,n){return e.call(s,t,n)})),f=l.map((function(e){return e.map((function(e,t){return[i.call(s,e,t),a.call(s,e,t)]}))})),d=t.call(s,f,c);l=o.permute(l,d),f=o.permute(f,d);var h,p,g,v,m=n.call(s,f,c),y=l[0].length;for(g=0;g<y;++g)for(r.call(s,l[0][g],v=m[g],f[0][g][1]),p=1;p<h;++p)r.call(s,l[p][g],v+=f[p-1][g][1],f[p][g][1]);return u}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(e){return arguments.length?(t="function"===typeof e?e:Jo.get(e)||ea,s):t},s.offset=function(e){return arguments.length?(n="function"===typeof e?e:Zo.get(e)||ta,s):n},s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(a=e,s):a},s.out=function(e){return arguments.length?(r=e,s):r},s};var Jo=o.map({"inside-out":function(e){var t,n,r=e.length,i=e.map(na),a=e.map(ra),s=o.range(r).sort((function(e,t){return i[e]-i[t]})),u=0,c=0,l=[],f=[];for(t=0;t<r;++t)n=s[t],u<c?(u+=a[n],l.push(n)):(c+=a[n],f.push(n));return f.reverse().concat(l)},reverse:function(e){return o.range(e.length).reverse()},default:ea}),Zo=o.map({silhouette:function(e){var t,n,r,i=e.length,o=e[0].length,a=[],s=0,u=[];for(n=0;n<o;++n){for(t=0,r=0;t<i;t++)r+=e[t][n][1];r>s&&(s=r),a.push(r)}for(n=0;n<o;++n)u[n]=(s-a[n])/2;return u},wiggle:function(e){var t,n,r,i,o,a,s,u,c,l=e.length,f=e[0],d=f.length,h=[];for(h[0]=u=c=0,n=1;n<d;++n){for(t=0,i=0;t<l;++t)i+=e[t][n][1];for(t=0,o=0,s=f[n][0]-f[n-1][0];t<l;++t){for(r=0,a=(e[t][n][1]-e[t][n-1][1])/(2*s);r<t;++r)a+=(e[r][n][1]-e[r][n-1][1])/s;o+=a*e[t][n][1]}h[n]=u-=i?o/i*s:0,u<c&&(c=u)}for(n=0;n<d;++n)h[n]-=c;return h},expand:function(e){var t,n,r,i=e.length,o=e[0].length,a=1/i,s=[];for(n=0;n<o;++n){for(t=0,r=0;t<i;t++)r+=e[t][n][1];if(r)for(t=0;t<i;t++)e[t][n][1]/=r;else for(t=0;t<i;t++)e[t][n][1]=a}for(n=0;n<o;++n)s[n]=0;return s},zero:ta});function ea(e){return o.range(e.length)}function ta(e){for(var t=-1,n=e[0].length,r=[];++t<n;)r[t]=0;return r}function na(e){for(var t,n=1,r=0,i=e[0][1],o=e.length;n<o;++n)(t=e[n][1])>i&&(r=n,i=t);return r}function ra(e){return e.reduce(ia,0)}function ia(e,t){return e+t[1]}function oa(e,t){return aa(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function aa(e,t){for(var n=-1,r=+e[0],i=(e[1]-r)/t,o=[];++n<=t;)o[n]=i*n+r;return o}function sa(e){return[o.min(e),o.max(e)]}function ua(e,t){return e.value-t.value}function ca(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function la(e,t){e._pack_next=t,t._pack_prev=e}function fa(e,t){var n=t.x-e.x,r=t.y-e.y,i=e.r+t.r;return.999*i*i>n*n+r*r}function da(e){if((t=e.children)&&(u=t.length)){var t,n,r,i,o,a,s,u,c=1/0,l=-1/0,f=1/0,d=-1/0;if(t.forEach(ha),(n=t[0]).x=-n.r,n.y=0,b(n),u>1&&((r=t[1]).x=r.r,r.y=0,b(r),u>2))for(va(n,r,i=t[2]),b(i),ca(n,i),n._pack_prev=i,ca(i,r),r=n._pack_next,o=3;o<u;o++){va(n,r,i=t[o]);var h=0,p=1,g=1;for(a=r._pack_next;a!==r;a=a._pack_next,p++)if(fa(a,i)){h=1;break}if(1==h)for(s=n._pack_prev;s!==a._pack_prev&&!fa(s,i);s=s._pack_prev,g++);h?(p<g||p==g&&r.r<n.r?la(n,r=a):la(n=s,r),o--):(ca(n,i),r=i,b(i))}var v=(c+l)/2,m=(f+d)/2,y=0;for(o=0;o<u;o++)(i=t[o]).x-=v,i.y-=m,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));e.r=y,t.forEach(pa)}function b(e){c=Math.min(e.x-e.r,c),l=Math.max(e.x+e.r,l),f=Math.min(e.y-e.r,f),d=Math.max(e.y+e.r,d)}}function ha(e){e._pack_next=e._pack_prev=e}function pa(e){delete e._pack_next,delete e._pack_prev}function ga(e,t,n,r){var i=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,i)for(var o=-1,a=i.length;++o<a;)ga(i[o],t,n,r)}function va(e,t,n){var r=e.r+n.r,i=t.x-e.x,o=t.y-e.y;if(r&&(i||o)){var a=t.r+n.r,s=i*i+o*o,u=.5+((r*=r)-(a*=a))/(2*s),c=Math.sqrt(Math.max(0,2*a*(r+s)-(r-=s)*r-a*a))/(2*s);n.x=e.x+u*i+c*o,n.y=e.y+u*o-c*i}else n.x=e.x+r,n.y=e.y}function ma(e,t){return e.parent==t.parent?1:2}function ya(e){var t=e.children;return t.length?t[0]:e.t}function ba(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function _a(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function wa(e,t,n){return e.a.parent===t.parent?e.a:n}function xa(e){var t=e.children;return t&&t.length?xa(t[0]):e}function Oa(e){var t,n=e.children;return n&&(t=n.length)?Oa(n[t-1]):e}function Sa(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function Ea(e,t){var n=e.x+t[3],r=e.y+t[0],i=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return i<0&&(n+=i/2,i=0),o<0&&(r+=o/2,o=0),{x:n,y:r,dx:i,dy:o}}function ka(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function Ca(e){return e.rangeExtent?e.rangeExtent():ka(e.range())}function Ta(e,t,n,r){var i=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(i(e))}}function ja(e,t){var n,r=0,i=e.length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function Ia(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:Aa}o.layout.histogram=function(){var e=!0,t=Number,n=sa,r=oa;function i(i,a){for(var s,u,c=[],l=i.map(t,this),f=n.call(this,l,a),d=r.call(this,f,l,a),h=(a=-1,l.length),p=d.length-1,g=e?1:1/h;++a<p;)(s=c[a]=[]).dx=d[a+1]-(s.x=d[a]),s.y=0;if(p>0)for(a=-1;++a<h;)(u=l[a])>=f[0]&&u<=f[1]&&((s=c[o.bisect(d,u,1,p)-1]).y+=g,s.push(i[a]));return c}return i.value=function(e){return arguments.length?(t=e,i):t},i.range=function(e){return arguments.length?(n=_t(e),i):n},i.bins=function(e){return arguments.length?(r="number"===typeof e?function(t){return aa(t,e)}:_t(e),i):r},i.frequency=function(t){return arguments.length?(e=!!t,i):e},i},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(ua),n=0,r=[1,1];function i(i,o){var a=t.call(this,i,o),s=a[0],u=r[0],c=r[1],l=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(s.x=s.y=0,qo(s,(function(e){e.r=+l(e.value)})),qo(s,da),n){var f=n*(e?1:Math.max(2*s.r/u,2*s.r/c))/2;qo(s,(function(e){e.r+=f})),qo(s,da),qo(s,(function(e){e.r-=f}))}return ga(s,u/2,c/2,e?1:1/Math.max(2*s.r/u,2*s.r/c)),a}return i.size=function(e){return arguments.length?(r=e,i):r},i.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,i):e},i.padding=function(e){return arguments.length?(n=+e,i):n},Bo(i,t)},o.layout.tree=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ma,n=[1,1],r=null;function i(i,o){var c=e.call(this,i,o),l=c[0],f=function(e){var t,n={A:null,children:[e]}
2,r=[n];for(;null!=(t=r.pop());)for(var i,o=t.children,a=0,s=o.length;a<s;++a)r.push((o[a]=i={_:o[a],parent:t,children:(i=o[a].children)&&i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=i);return n.children[0]}(l);if(qo(f,a),f.parent.m=-f.z,zo(f,s),r)zo(l,u);else{var d=l,h=l,p=l;zo(l,(function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>p.depth&&(p=e)}));var g=t(d,h)/2-d.x,v=n[0]/(h.x+t(h,d)/2+g),m=n[1]/(p.depth||1);zo(l,(function(e){e.x=(e.x+g)*v,e.y=e.depth*m}))}return c}function a(e){var n=e.children,r=e.parent.children,i=e.i?r[e.i-1]:null;if(n.length){!function(e){var t,n=0,r=0,i=e.children,o=i.length;for(;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,d=u.m;s=ba(s),o=ya(o),s&&o;)u=ya(u),(a=ba(a)).a=e,(i=s.z+f-o.z-c+t(s._,o._))>0&&(_a(wa(s,e,r),e,i),c+=i,l+=i),f+=s.m,c+=o.m,d+=u.m,l+=a.m;s&&!ba(a)&&(a.t=s,a.m+=f-l),o&&!ya(u)&&(u.t=o,u.m+=c-d,r=e)}return r}(e,i,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e){e.x*=n[0],e.y=e.depth*n[1]}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e)?u:null,i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:u,i):r?n:null},Bo(i,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=ma,n=[1,1],r=!1;function i(i,a){var s,u=e.call(this,i,a),c=u[0],l=0;qo(c,(function(e){var n=e.children;n&&n.length?(e.x=function(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}(n),e.y=function(e){return 1+o.max(e,(function(e){return e.y}))}(n)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var f=xa(c),d=Oa(c),h=f.x-t(f,d)/2,p=d.x+t(d,f)/2;return qo(c,r?function(e){e.x=(e.x-c.x)*n[0],e.y=(c.y-e.y)*n[1]}:function(e){e.x=(e.x-h)/(p-h)*n[0],e.y=(1-(c.y?e.y/c.y:1))*n[1]}),u}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(e){return arguments.length?(r=null==(n=e),i):r?null:n},i.nodeSize=function(e){return arguments.length?(r=null!=(n=e),i):r?n:null},Bo(i,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],i=null,a=Sa,s=!1,u="squarify",c=.5*(1+Math.sqrt(5));function l(e,t){for(var n,r,i=-1,o=e.length;++i<o;)r=(n=e[i]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function f(e){var t=e.children;if(t&&t.length){var n,r,i,o=a(e),s=[],c=t.slice(),d=1/0,g="slice"===u?o.dx:"dice"===u?o.dy:"slice-dice"===u?1&e.depth?o.dy:o.dx:Math.min(o.dx,o.dy);for(l(c,o.dx*o.dy/e.value),s.area=0;(i=c.length)>0;)s.push(n=c[i-1]),s.area+=n.area,"squarify"!==u||(r=h(s,g))<=d?(c.pop(),d=r):(s.area-=s.pop().area,p(s,g,o,!1),g=Math.min(o.dx,o.dy),s.length=s.area=0,d=1/0);s.length&&(p(s,g,o,!0),s.length=s.area=0),t.forEach(f)}}function d(e){var t=e.children;if(t&&t.length){var n,r=a(e),i=t.slice(),o=[];for(l(i,r.dx*r.dy/e.value),o.area=0;n=i.pop();)o.push(n),o.area+=n.area,null!=n.z&&(p(o,n.z?r.dx:r.dy,r,!i.length),o.length=o.area=0);t.forEach(d)}}function h(e,t){for(var n,r=e.area,i=0,o=1/0,a=-1,s=e.length;++a<s;)(n=e[a].area)&&(n<o&&(o=n),n>i&&(i=n));return t*=t,(r*=r)?Math.max(t*i*c/r,r/(t*o*c)):1/0}function p(e,t,r,i){var o,a=-1,s=e.length,u=r.x,c=r.y,l=t?n(e.area/t):0;if(t==r.dx){for((i||l>r.dy)&&(l=r.dy);++a<s;)(o=e[a]).x=u,o.y=c,o.dy=l,u+=o.dx=Math.min(r.x+r.dx-u,l?n(o.area/l):0);o.z=!0,o.dx+=r.x+r.dx-u,r.y+=l,r.dy-=l}else{for((i||l>r.dx)&&(l=r.dx);++a<s;)(o=e[a]).x=u,o.y=c,o.dx=l,c+=o.dy=Math.min(r.y+r.dy-c,l?n(o.area/l):0);o.z=!1,o.dy+=r.y+r.dy-c,r.x+=l,r.dx-=l}}function g(n){var i=e||t(n),o=i[0];return o.x=o.y=0,o.value?(o.dx=r[0],o.dy=r[1]):o.dx=o.dy=0,e&&t.revalue(o),l([o],o.dx*o.dy/o.value),(e?d:f)(o),s&&(e=i),i}return g.size=function(e){return arguments.length?(r=e,g):r},g.padding=function(e){if(!arguments.length)return i;function t(t){var n=e.call(g,t,t.depth);return null==n?Sa(t):Ea(t,"number"===typeof n?[n,n,n,n]:n)}function n(t){return Ea(t,e)}var r;return a=null==(i=e)?Sa:"function"===(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,g},g.round=function(e){return arguments.length?(n=e?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(e){return arguments.length?(c=e,g):c},g.mode=function(e){return arguments.length?(u=e+"",g):u},Bo(g,t)},o.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,i;do{i=(n=2*Math.random()-1)*n+(r=2*Math.random()-1)*r}while(!i||i>1);return e+t*n*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},o.scale={};var Aa={floor:M,ceil:M};function Pa(e,t,n,r){var i=[],a=[],s=0,u=Math.min(e.length,t.length)-1;for(e[u]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<=u;)i.push(n(e[s-1],e[s])),a.push(r(t[s-1],t[s]));return function(t){var n=o.bisect(e,t,1,u)-1;return a[n](i[n](t))}}function Na(e,t,n,r){var i,o;function a(){var a=Math.min(e.length,t.length)>2?Pa:Ta,u=r?Io:jo;return i=a(e,t,u,n),o=a(t,e,u,ao),s}function s(e){return i(e)}return s.invert=function(e){return o(e)},s.domain=function(t){return arguments.length?(e=t.map(Number),a()):e},s.range=function(e){return arguments.length?(t=e,a()):t},s.rangeRound=function(e){return s.range(e).interpolate(xo)},s.clamp=function(e){return arguments.length?(r=e,a()):r},s.interpolate=function(e){return arguments.length?(n=e,a()):n},s.ticks=function(t){return Da(e,t)}
2,s.tickFormat=function(t,n){return Fa(e,t,n)},s.nice=function(t){return Ra(e,t),a()},s.copy=function(){return Na(e,t,n,r)},a()}function Ma(e,t){return o.rebind(e,t,"range","rangeRound","interpolate","clamp")}function Ra(e,t){return ja(e,Ia(La(e,t)[2])),ja(e,Ia(La(e,t)[2])),e}function La(e,t){null==t&&(t=10);var n=ka(e),r=n[1]-n[0],i=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*i;return o<=.15?i*=10:o<=.35?i*=5:o<=.75&&(i*=2),n[0]=Math.ceil(n[0]/i)*i,n[1]=Math.floor(n[1]/i)*i+.5*i,n[2]=i,n}function Da(e,t){return o.range.apply(o,La(e,t))}function Fa(e,t,n){var r=La(e,t);if(n){var i=Rt.exec(n);if(i.shift(),"s"===i[8]){var a=o.formatPrefix(Math.max(x(r[0]),x(r[1])));return i[7]||(i[7]="."+Ua(a.scale(r[2]))),i[8]="f",n=o.format(i.join("")),function(e){return n(a.scale(e))+a.symbol}}i[7]||(i[7]="."+function(e,t){var n=Ua(t[2]);return e in Va?Math.abs(n-Ua(Math.max(x(t[0]),x(t[1]))))+ +("e"!==e):n-2*("%"===e)}(i[8],r)),n=i.join("")}else n=",."+Ua(r[2])+"f";return o.format(n)}o.scale.linear=function(){return Na([0,1],[0,1],ao,!1)};var Va={s:1,g:1,p:1,r:1,e:1};function Ua(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function Ba(e,t,n,r){function i(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function a(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function s(t){return e(i(t))}return s.invert=function(t){return a(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(i)),s):r},s.base=function(n){return arguments.length?(t=+n,e.domain(r.map(i)),s):t},s.nice=function(){var t=ja(r.map(i),n?Math:qa);return e.domain(t),r=t.map(a),s},s.ticks=function(){var e=ka(r),o=[],s=e[0],u=e[1],c=Math.floor(i(s)),l=Math.ceil(i(u)),f=t%1?2:t;if(isFinite(l-c)){if(n){for(;c<l;c++)for(var d=1;d<f;d++)o.push(a(c)*d);o.push(a(c))}else for(o.push(a(c));c++<l;)for(d=f-1;d>0;d--)o.push(a(c)*d);for(c=0;o[c]<s;c++);for(l=o.length;o[l-1]>u;l--);o=o.slice(c,l)}return o},s.tickFormat=function(e,n){if(!arguments.length)return za;arguments.length<2?n=za:"function"!==typeof n&&(n=o.format(n));var r=Math.max(1,t*e/s.ticks().length);return function(e){var o=e/a(Math.round(i(e)));return o*t<t-.5&&(o*=t),o<=r?n(e):""}},s.copy=function(){return Ba(e.copy(),t,n,r)},Ma(s,e)}o.scale.log=function(){return Ba(o.scale.linear().domain([0,1]),10,!0,[1,10])};var za=o.format(".0e"),qa={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Ga(e,t,n){var r=Wa(t),i=Wa(1/t);function o(t){return e(r(t))}return o.invert=function(t){return i(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(r)),o):n},o.ticks=function(e){return Da(n,e)},o.tickFormat=function(e,t){return Fa(n,e,t)},o.nice=function(e){return o.domain(Ra(n,e))},o.exponent=function(a){return arguments.length?(r=Wa(t=a),i=Wa(1/t),e.domain(n.map(r)),o):t},o.copy=function(){return Ga(e.copy(),t,n)},Ma(o,e)}function Wa(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ha(e,t){var n,r,i;function a(i){return r[((n.get(i)||("range"===t.t?n.set(i,e.push(i)):NaN))-1)%r.length]}function s(t,n){return o.range(e.length).map((function(e){return t+n*e}))}return a.domain=function(r){if(!arguments.length)return e;e=[],n=new E;for(var i,o=-1,s=r.length;++o<s;)n.has(i=r[o])||n.set(i,e.push(i));return a[t.t].apply(a,t.a)},a.range=function(e){return arguments.length?(r=e,i=0,t={t:"range",a:arguments},a):r},a.rangePoints=function(n,o){arguments.length<2&&(o=0);var u=n[0],c=n[1],l=e.length<2?(u=(u+c)/2,0):(c-u)/(e.length-1+o);return r=s(u+l*o/2,l),i=0,t={t:"rangePoints",a:arguments},a},a.rangeRoundPoints=function(n,o){arguments.length<2&&(o=0);var u=n[0],c=n[1],l=e.length<2?(u=c=Math.round((u+c)/2),0):(c-u)/(e.length-1+o)|0;return r=s(u+Math.round(l*o/2+(c-u-(e.length-1+o)*l)/2),l),i=0,t={t:"rangeRoundPoints",a:arguments},a},a.rangeBands=function(n,o,u){arguments.length<2&&(o=0),arguments.length<3&&(u=o);var c=n[1]<n[0],l=n[c-0],f=n[1-c],d=(f-l)/(e.length-o+2*u);return r=s(l+d*u,d),c&&r.reverse(),i=d*(1-o),t={t:"rangeBands",a:arguments},a},a.rangeRoundBands=function(n,o,u){arguments.length<2&&(o=0),arguments.length<3&&(u=
2o);var c=n[1]<n[0],l=n[c-0],f=n[1-c],d=Math.floor((f-l)/(e.length-o+2*u));return r=s(l+Math.round((f-l-(e.length-o)*d)/2),d),c&&r.reverse(),i=Math.round(d*(1-o)),t={t:"rangeRoundBands",a:arguments},a},a.rangeBand=function(){return i},a.rangeExtent=function(){return ka(t.a[0])},a.copy=function(){return Ha(e,t)},a.domain(e)}o.scale.pow=function(){return Ga(o.scale.linear(),1,[0,1])},o.scale.sqrt=function(){return o.scale.pow().exponent(.5)},o.scale.ordinal=function(){return Ha([],{t:"range",a:[[]]})},o.scale.category10=function(){return o.scale.ordinal().range(Ka)},o.scale.category20=function(){return o.scale.ordinal().range(Xa)},o.scale.category20b=function(){return o.scale.ordinal().range(Ya)},o.scale.category20c=function(){return o.scale.ordinal().range($a)};var Ka=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ft),Xa=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ft),Ya=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ft),$a=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ft);function Qa(e,t){var n;function r(){var r=0,a=t.length;for(n=[];++r<a;)n[r-1]=o.quantile(e,r/a);return i}function i(e){if(!isNaN(e=+e))return t[o.bisect(n,e)]}return i.domain=function(t){return arguments.length?(e=t.map(m).filter(y).sort(v),r()):e},i.range=function(e){return arguments.length?(t=e,r()):t},i.quantiles=function(){return n},i.invertExtent=function(r){return(r=t.indexOf(r))<0?[NaN,NaN]:[r>0?n[r-1]:e[0],r<n.length?n[r]:e[e.length-1]]},i.copy=function(){return Qa(e,t)},r()}function Ja(e,t,n){var r,i;function o(t){return n[Math.max(0,Math.min(i,Math.floor(r*(t-e))))]}function a(){return r=n.length/(t-e),i=n.length-1,o}
vendor: 4,197 bytes, line 2
2return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],a()):[e,t]},o.range=function(e){return arguments.length?(n=e,a()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))<0?NaN:t/r+e,t+1/r]},o.copy=function(){return Ja(e,t,n)},a()}function Za(e,t){function n(n){if(n<=n)return t[o.bisect(e,n)]}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return Za(e,t)},n}function es(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return Da(e,t)},t.tickFormat=function(t,n){return Fa(e,t,n)},t.copy=function(){return es(e)},t}function ts(){return 0}o.scale.quantile=function(){return Qa([],[])},o.scale.quantize=function(){return Ja(0,1,[0,1])},o.scale.threshold=function(){return Za([.5],[0,1])},o.scale.identity=function(){return es([0,1])},o.svg={},o.svg.arc=function(){var e=rs,t=is,n=ts,r=ns,i=os,o=as,a=ss;function s(){var s=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+t.apply(this,arguments)),l=i.apply(this,arguments)-Ne,f=o.apply(this,arguments)-Ne,d=Math.abs(f-l),h=l>f?0:1;if(c<s&&(p=c,c=s,s=p),d>=Pe)return u(c,h)+(s?u(s,1-h):"")+"Z";var p,g,v,m,y,b,_,w,x,O,S,E,k=0,C=0,T=[];if((m=(+a.apply(this,arguments)||0)/2)&&(v=r===ns?Math.sqrt(s*s+c*c):+r.apply(this,arguments),h||(C*=-1),c&&(C=Ve(v/c*Math.sin(m))),s&&(k=Ve(v/s*Math.sin(m)))),c){y=c*Math.cos(l+C),b=c*Math.sin(l+C),_=c*Math.cos(f-C),w=c*Math.sin(f-C);var j=Math.abs(f-l-2*C)<=Ie?0:1;if(C&&us(y,b,_,w)===h^j){var I=(l+f)/2;y=c*Math.cos(I),b=c*Math.sin(I),_=w=null}}else y=b=0;if(s){x=s*Math.cos(f-k),O=s*Math.sin(f-k),S=s*Math.cos(l+k),E=s*Math.sin(l+k);var A=Math.abs(l-f+2*k)<=Ie?0:1;if(k&&us(x,O,S,E)===1-h^A){var P=(l+f)/2;x=s*Math.cos(P),O=s*Math.sin(P),S=E=null}}else x=O=0;if(d>Te&&(p=Math.min(Math.abs(c-s)/2,+n.apply(this,arguments)))>.001){g=s<c^h?0:1;var N=p,M=p;if(d<Ie){var R=null==S?[x,O]:null==_?[y,b]:gi([y,b],[S,E],[_,w],[x,O]),L=y-R[0],D=b-R[1],F=_-R[0],V=w-R[1],U=1/Math.sin(Math.acos((L*F+D*V)/(Math.sqrt(L*L+D*D)*Math.sqrt(F*F+V*V)))/2),B=Math.sqrt(R[0]*R[0]+R[1]*R[1]);M=Math.min(p,(s-B)/(U-1)),N=Math.min(p,(c-B)/(U+1))}if(null!=_){var z=cs(null==S?[x,O]:[S,E],[y,b],c,N,h),q=cs([_,w],[x,O],c,N,h);p===N?T.push("M",z[0],"A",N,",",N," 0 0,",g," ",z[1],"A",c,",",c," 0 ",1-h^us(z[1][0],z[1][1],q[1][0],q[1][1]),",",h," ",q[1],"A",N,",",N," 0 0,",g," ",q[0]):T.push("M",z[0],"A",N,",",N," 0 1,",g," ",q[0])}else T.push("M",y,",",b);if(null!=S){var G=cs([y,b],[S,E],s,-M,h),W=cs([x,O],null==_?[y,b]:[_,w],s,-M,h);p===M?T.push("L",W[0],"A",M,",",M," 0 0,",g," ",W[1],"A",s,",",s," 0 ",h^us(W[1][0],W[1][1],G[1][0],G[1][1]),",",1-h," ",G[1],"A",M,",",M," 0 0,",g," ",G[0]):T.push("L",W[0],"A",M,",",M," 0 0,",g," ",G[0])}else T.push("L",x,",",O)}else T.push("M",y,",",b),null!=_&&T.push("A",c,",",c," 0 ",j,",",h," ",_,",",w),T.push("L",x,",",O),null!=S&&T.push("A",s,",",s," 0 ",A,",",1-h," ",S,",",E);return T.push("Z"),T.join("")}function u(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return s.innerRadius=function(t){return arguments.length?(e=_t(t),s):e},s.outerRadius=function(e){return arguments.length?(t=_t(e),s):t},s.cornerRadius=function(e){return arguments.length?(n=_t(e),s):n},s.padRadius=function(e){return arguments.length?(r=e==ns?ns:_t(e),s):r},s.startAngle=function(e){return arguments.length?(i=_t(e),s):i},s.endAngle=function(e){return arguments.length?(o=_t(e),s):o},s.padAngle=function(e){return arguments.length?(a=_t(e),s):a},s.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-Ne;return[Math.cos(r)*n,Math.sin(r)*n]},s};var ns="auto";function rs(e){return e.innerRadius}function is(e){return e.outerRadius}function os(e){return e.startAngle}function as(e){return e.endAngle}function ss(e){return e&&e.padAngle}function us(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function cs(e,t,n,r,i){var o=e[0]-t[0],a=e[1]-t[1],s=(i?r:-r)/Math.sqrt(o*o+a*a),u=s*a,c=-s*o,l=e[0]+u,f=e[1]+c,d=t[0]+u,h=t[1]+c,p=(l+d)
2/2,g=(f+h)/2,v=d-l,m=h-f,y=v*v+m*m,b=n-r,_=l*h-d*f,w=(m<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-_*_)),x=(_*m-v*w)/y,O=(-_*v-m*w)/y,S=(_*m+v*w)/y,E=(-_*v+m*w)/y,k=x-p,C=O-g,T=S-p,j=E-g;return k*k+C*C>T*T+j*j&&(x=S,O=E),[[x-u,O-c],[x*n/b,O*n/b]]}function ls(e){var t=ci,n=li,r=Zn,i=ds,o=i.key,a=.7;function s(o){var s,u=[],c=[],l=-1,f=o.length,d=_t(t),h=_t(n);function p(){u.push("M",i(e(c),a))}for(;++l<f;)r.call(this,s=o[l],l)?c.push([+d.call(this,s,l),+h.call(this,s,l)]):c.length&&(p(),c=[]);return c.length&&p(),u.length?u.join(""):null}return s.x=function(e){return arguments.length?(t=e,s):t},s.y=function(e){return arguments.length?(n=e,s):n},s.defined=function(e){return arguments.length?(r=e,s):r},s.interpolate=function(e){return arguments.length?(o="function"===typeof e?i=e:(i=fs.get(e)||ds).key,s):o},s.tension=function(e){return arguments.length?(a=e,s):a},s}o.svg.line=function(){return ls(M)};var fs=o.map({linear:ds,"linear-closed":hs,step:function(e){var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];for(;++t<n;)i.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);n>1&&i.push("H",r[0]);return i.join("")},"step-before":ps,"step-after":gs,basis:ys,"basis-open":function(e){if(e.length<4)return ds(e);var t,n=[],r=-1,i=e.length,o=[0],a=[0];for(;++r<3;)t=e[r],o.push(t[0]),a.push(t[1]);n.push(bs(xs,o)+","+bs(xs,a)),--r;for(;++r<i;)t=e[r],o.shift(),o.push(t[0]),a.shift(),a.push(t[1]),Os(n,o,a);return n.join("")},"basis-closed":function(e){var t,n,r=-1,i=e.length,o=i+4,a=[],s=[];for(;++r<4;)n=e[r%i],a.push(n[0]),s.push(n[1]);t=[bs(xs,a),",",bs(xs,s)],--r;for(;++r<o;)n=e[r%i],a.shift(),a.push(n[0]),s.shift(),s.push(n[1]),Os(t,a,s);return t.join("")},bundle:function(e,t){var n=e.length-1;if(n)for(var r,i,o=e[0][0],a=e[0][1],s=e[n][0]-o,u=e[n][1]-a,c=-1;++c<=n;)r=e[c],i=c/n,r[0]=t*r[0]+(1-t)*(o+i*s),r[1]=t*r[1]+(1-t)*(a+i*u);return ys(e)},cardinal:function(e,t){return e.length<3?ds(e):e[0]+vs(e,ms(e,t))},"cardinal-open":function(e,t){return e.length<4?ds(e):e[1]+vs(e.slice(1,-1),ms(e,t))},"cardinal-closed":function(e,t){return e.length<3?hs(e):e[0]+vs((e.push(e[0]),e),ms([e[e.length-2]].concat(e,[e[1]]),t))},monotone:function(e){return e.length<3?ds(e):e[0]+vs(e,function(e){var t,n,r,i,o=[],a=function(e){var t=0,n=e.length-1,r=[],i=e[0],o=e[1],a=r[0]=Ss(i,o);for(;++t<n;)r[t]=(a+(a=Ss(i=o,o=e[t+1])))/2;return r[t]=a,r}(e),s=-1,u=e.length-1;for(;++s<u;)t=Ss(e[s],e[s+1]),x(t)<Te?a[s]=a[s+1]=0:(i=(n=a[s]/t)*n+(r=a[s+1]/t)*r)>9&&(i=3*t/Math.sqrt(i),a[s]=i*n,a[s+1]=i*r);s=-1;for(;++s<=u;)i=(e[Math.min(u,s+1)][0]-e[Math.max(0,s-1)][0])/(6*(1+a[s]*a[s])),o.push([i||0,a[s]*i||0]);return o}(e))}});function ds(e){return e.length>1?e.join("L"):e+"Z"}function hs(e){return e.join("L")+"Z"}function ps(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("V",(r=e[t])[1],"H",r[0]);return i.join("")}function gs(e){for(var t=0,n=e.length,r=e[0],i=[r[0],",",r[1]];++t<n;)i.push("H",(r=e[t])[0],"V",r[1]);return i.join("")}function vs(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return ds(e);var n=e.length!=t.length,r="",i=e[0],o=e[1],a=t[0],s=a,u=1;if(n&&(r+="Q"+(o[0]-2*a[0]/3)+","+(o[1]-2*a[1]/3)+","+o[0]+","+o[1],i=e[1],u=2),t.length>1){s=t[1],o=e[u],u++,r+="C"+(i[0]+a[0])+","+(i[1]+a[1])+","+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1];for(var c=2;c<t.length;c++,u++)o=e[u],s=t[c],r+="S"+(o[0]-s[0])+","+(o[1]-s[1])+","+o[0]+","+o[1]}if(n){var l=e[u];r+="Q"+(o[0]+2*s[0]/3)+","+(o[1]+2*s[1]/3)+","+l[0]+","+l[1]}return r}function ms(e,t){for(var n,r=[],i=(1-t)/2,o=e[0],a=e[1],s=1,u=e.length;++s<u;)n=o,o=a,a=e[s],r.push([i*(a[0]-n[0]),i*(a[1]-n[1])]);return r}function ys(e){if(e.length<3)return ds(e);var t=1,n=e.length,r=e[0],i=r[0],o=r[1],a=[i,i,i,(r=e[1])[0]],s=[o,o,o,r[1]],u=[i,",",o,"L",bs(xs,a),",",bs(xs,s)];for(e.push(e[n-1]);++t<=n;)r=e[t],a.shift(),a.push(r[0]),s.shift(),s.push(r[1]),Os(u,a,s);return e.pop(),u.push("L",r),u.join("")}function bs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}fs.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var _s=[0,2/3,1/3,0],ws=[0,1/3,2/3,0],xs=[0,1/6,2/3,1/6];function Os(e,t,n){e.push("C",bs(_s,t),",",bs(_s,n),",",bs(ws,t),",",bs(ws,n),",",bs(xs,t),",",bs(xs,n))}function Ss(e,t){return(t[1]-e[1])/(t[0]-e[0])}function Es(e){for(var t,n,r,i=-1,o=e.length;++i<o;)n=(t=e[i])[0],r=t[1]-Ne,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function ks(e){var t=ci,n=ci,r=0,i=li,o=Zn,a=ds,s=a.key,u=a,c="L",l=.7;function f(s){var f,d,h,p=[],g=[],v=[],m=-1,y=s.length,b=_t(t),_=_t(r),w=t===n?function(){return d}:_t(n),x=r===i?function(){return h}:_t(i);function O(){p.push("M",a(e(v),l),c,u(e(g.reverse()),l),"Z")}for(;++m<y;)o.call(this,f=s[m],m)?(g.push([d=+b.call(this,f,m),h=+_.call(this,f,m)]),v.push([+w.call(this,f,m),+x.call(this,f,m)])):g.length&&(O(),g=[],v=[]);return g.length&&O(),p.length?p.join(""):null}return f.x=function(e){return arguments.length?(t=n=e,f):n},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(n=e,f):n},f.y=function(e){return arguments.length?(r=i=e,f):i},f.y0=function(e){return arguments.length?(r=e,f):r},f.y1=function(e){return arguments.length?(i=e,f):i},f.defined=function(e){return arguments.length?(o=e,f):o},f.interpolate=function(e){return arguments.length?(s="function"===typeof e?a=e:(a=fs.get(e)||ds).key,u=a.reverse||a,c=a.closed?"M":"L",f):s},f.tension=function(e){return arguments.length?(l=e,f):l},f}function Cs(e){return e.radius}function Ts(e){return[e.x,e.y]}function js(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ne;return[n*Math.cos(r),n*Math.sin(r)]}}function Is(){return 64}function As(){return"circle"}function Ps(e){var t=Math.sqrt(e/Ie);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}o.svg.line.radial=function(){var e=ls(Es);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},ps.reverse=gs,gs.reverse=ps,o.svg.area=function(){return ks(M)},o.svg.area.radial=function(){var e=ks(Es);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},o.svg.chord=function(){var e=Yr,t=$r,n=Cs,r=os,i=as;function o(n,r){var i,o,c=a(this,e,n,r),l=a(this,t,n,r);return"M"+c.p0+s(c.r,c.p1,c.a1-c.a0)+(o=l,((i=c).a0==o.a0&&i.a1==o.a1?u(c.r,c.p1,c.r,c.p0):u(c.r,c.p1,l.r,l.p0)+s(l.r,l.p1,l.a1-l.a0)+u(l.r,l.p1,c.r,c.p0))+"Z")}function a(e,t,o,a){var s=t.call(e,o,a),u=n.call(e,s,a),c=r.call(e,s,a)-Ne,l=i.call(e,s,a)-Ne;return{r:u,a0:c,a1:l,p0:[u*Math.cos(c),u*Math.sin(c)],p1:[u*Math.cos(l),u*Math.sin(l)]}}function s(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ie)+",1 "+t}function u(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=_t(e),o):n},o.source=function(t){return arguments.length?(e=_t(t),o):e},o.target=function(e){return arguments.length?(t=_t(e),o):t},o.startAngle=function(e){return arguments.length?(r=_t(e),o):r},o.endAngle=function(e){return arguments.length?(i=_t(e),o):i},o},o.svg.diagonal=function(){var e=Yr,t=$r,n=Ts;function r(r,i){var o=e.call(this,r,i),a=t.call(this,r,i),s=(o.y+a.y)/2,u=[o,{x:o.x,y:s},{x:a.x,y:s},a];return"M"+(u=u.map(n))[0]+"C"+u[1]+" "+u[2]+" "+u[3]}return r.source=function(t){return arguments.length?(e=_t(t),r):e},r.target=function(e){return arguments.length?(t=_t(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=Ts,n=e.projection;return e.projection=function(e){return arguments.length?n(js(t=e)):t},e},o.svg.symbol=function(){var e=As,t=Is;function n(n,r){return(Ns.get(e.call(this,n,r))||Ps)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=_t(t),n):e},n.size=function(e){return arguments.length?(t=_t(e),n):t},n};var Ns=o.map({circle:Ps,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Rs)),n=t*Rs;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ms),n=t*Ms/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ms),n=t*Ms/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=Ns.keys();var Ms=Math.sqrt(3),Rs=Math.tan(30*Me);$.transition=function(e){for(var t,n,r=Vs||++zs,i=Ws(e),o=[],a=Us||{time:Date.now(),ease:mo,delay:0,duration:250},s=-1,u=this.length;++s<u;){o.push(t=[]);for(var c=this[s],l=-1,f=c.length;++l<f;)(n=c[l])&&Hs(n,l,i,r,a),t.push(n)}return Fs(o,i,r)},$.interrupt=function(e){return this.each(null==e?Ls:Ds(Ws(e)))};var Ls=Ds(Ws());function Ds(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Fs(e,t,n){return W(e,Bs),e.namespace=t,e.id=n,e}var Vs,Us,Bs=[],zs=0;function qs(e,t,n,r){var i=e.id,o=e.namespace;return pe(e,"function"===typeof n?function(e,a,s){e[o][i].tween.set(t,r(n.call(e,e.__data__,a,s)))}:(n=r(n),function(e){e[o][i].tween.set(t,n)}
2))}function Gs(e){return null==e&&(e=""),function(){this.textContent=e}}function Ws(e){return null==e?"__transition__":"__transition_"+e+"__"}function Hs(e,t,n,r,i){var o,a,s,u,c,l=e[n]||(e[n]={active:0,count:0}),f=l[r];function d(n){var i=l.active,d=l[i];for(var p in d&&(d.timer.c=null,d.timer.t=NaN,--l.count,delete l[i],d.event&&d.event.interrupt.call(e,e.__data__,d.index)),l)if(+p<r){var g=l[p];g.timer.c=null,g.timer.t=NaN,--l.count,delete l[p]}a.c=h,Tt((function(){return a.c&&h(n||1)&&(a.c=null,a.t=NaN),1}),0,o),l.active=r,f.event&&f.event.start.call(e,e.__data__,t),c=[],f.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&c.push(r)})),u=f.ease,s=f.duration}function h(i){for(var o=i/s,a=u(o),d=c.length;d>0;)c[--d].call(e,a);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--l.count?delete l[r]:delete e[n],1}f||(o=i.time,a=Tt((function(e){var t=f.delay;if(a.t=t+o,t<=e)return d(e-t);a.c=d}),0,o),f=l[r]={tween:new E,time:o,timer:a,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++l.count)}Bs.call=$.call,Bs.empty=$.empty,Bs.node=$.node,Bs.size=$.size,o.transition=function(e,t){return e&&e.transition?Vs?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=Bs,Bs.select=function(e){var t,n,r,i=this.id,o=this.namespace,a=[];e=Q(e);for(var s=-1,u=this.length;++s<u;){a.push(t=[]);for(var c=this[s],l=-1,f=c.length;++l<f;)(r=c[l])&&(n=e.call(r,r.__data__,l,s))?("__data__"in r&&(n.__data__=r.__data__),Hs(n,l,o,i,r[o][i]),t.push(n)):t.push(null)}return Fs(a,o,i)},Bs.selectAll=function(e){var t,n,r,i,o,a=this.id,s=this.namespace,u=[];e=J(e);for(var c=-1,l=this.length;++c<l;)for(var f=this[c],d=-1,h=f.length;++d<h;)if(r=f[d]){o=r[s][a],n=e.call(r,r.__data__,d,c),u.push(t=[]);for(var p=-1,g=n.length;++p<g;)(i=n[p])&&Hs(i,p,s,a,o),t.push(i)}return Fs(u,s,a)},Bs.filter=function(e){var t,n,r=[];"function"!==typeof e&&(e=de(e));for(var i=0,o=this.length;i<o;i++){r.push(t=[]);for(var a,s=0,u=(a=this[i]).length;s<u;s++)(n=a[s])&&e.call(n,n.__data__,s,i)&&t.push(n)}return Fs(r,this.namespace,this.id)},Bs.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):pe(this,null==t?function(t){t[r][n].tween.remove(e)}:function(i){i[r][n].tween.set(e,t)})},Bs.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var n="transform"==e?To:ao,r=o.ns.qualify(e);function i(){this.removeAttribute(r)}function a(){this.removeAttributeNS(r.space,r.local)}function s(e){return null==e?i:(e+="",function(){var t,i=this.getAttribute(r);return i!==e&&(t=n(i,e),function(e){this.setAttribute(r,t(e))})})}function u(e){return null==e?a:(e+="",function(){var t,i=this.getAttributeNS(r.space,r.local);return i!==e&&(t=n(i,e),function(e){this.setAttributeNS(r.space,r.local,t(e))})})}return qs(this,"attr."+e,t,r.local?u:s)},Bs.attrTween=function(e,t){var n=o.ns.qualify(e);return this.tween("attr."+e,n.local?function(e,r){var i=t.call(this,e,r,this.getAttributeNS(n.space,n.local));return i&&function(e){this.setAttributeNS(n.space,n.local,i(e))}}:function(e,r){var i=t.call(this,e,r,this.getAttribute(n));return i&&function(e){this.setAttribute(n,i(e))}})},Bs.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function i(){this.style.removeProperty(e)}function o(t){return null==t?i:(t+="",function(){var r,i=l(this).getComputedStyle(this,null).getPropertyValue(e);return i!==t&&(r=ao(i,t),function(t){this.style.setProperty(e,r(t),n)})})}return qs(this,"style."+e,t,o)},Bs.styleTween=function(e,t,n){function r(r,i){var o=t.call(this,r,i,l(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},Bs.text=function(e){return qs(this,"text",e,Gs)},Bs.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},Bs.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!==typeof e&&(e=o.ease.apply(o,arguments)),pe(this,(function(r){r[n][t].ease=e})))},Bs.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:pe(this,"function"===typeof e?function(r,i,o){r[n][t].delay=+e.call(r,r.__data__,i,o)}:(e=+e,function(r){r[n][t].delay=e}))},Bs.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:pe(this,"function"===typeof e?function(r,i,o){r[n][t].duration=Math.max(1,e.call(r,r.__data__,i,o))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Bs.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var i=Us,a=Vs;try{Vs=n,pe(this,(function(t,i,o){Us=t[r][n],e.call(t,t.__data__,i,o)}))}finally{Us=i,Vs=a}}else pe(this,(function(i){var a=i[r][n];(a.event||(a.event=o.dispatch("start","end","interrupt"))).on(e,t)}));return this},Bs.transition=function(){for(var e,t,n,r=this.id,i=++zs,o=this.namespace,a=[],s=0,u=this.length;s<u;s++){a.push(e=[]);for(var c,l=0,f=(c=this[s]).length;l<f;l++)(t=c[l])&&Hs(t,l,o,i,{time:(n=t[o][r]).time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration}),e.push(t)}return Fs(a,o,i)},o.svg.axis=function(){var e,t=o.scale.linear(),n=Ks,r=6,i=6,a=3,u=[10],c=null;function l(s){s.each((function(){var s,l=o.select(this),f=this.__chart__||t,d=this.__chart__=t.copy(),h=null==c?d.ticks?d.ticks.apply(d,u):d.domain():c,p=null==e?d.tickFormat?d.tickFormat.apply(d,u):M:e,g=l.selectAll(".tick").data(h,d),v=g.enter().insert("g",".domain").attr("class","tick").style("opacity",Te),m=o.transition(g.exit()).style("opacity",Te).remove(),y=o.transition(g.order()).style("opacity",1),b=Math.max(r,0)+a,_=Ca(d),w=l.selectAll(".domain").data([0]),x=(w.enter().append("path").attr("class","domain"),o.transition(w));v.append("line"),v.append("text");var O,S,E,k,C=v.select("line"),T=y.select("line"),j=g.select("text").text(p),I=v.select("text"),A=y.select("text"),P="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(s=Ys,O="x",E="y",S="x2",k="y2",j.attr("dy",P<0?"0em":".71em").style("text-anchor","middle"),x.attr("d","M"+_[0]+","+P*i+"V0H"+_[1]+"V"+P*i)):(s=$s,O="y",E="x",S="y2",k="x2",j.attr("dy",".32em").style("text-anchor",P<0?"end":"start"),x.attr("d","M"+P*i+","+_[0]+"H0V"+_[1]+"H"+P*i)),C.attr(k,P*r),I.attr(E,P*b),T.attr(S,
vendor: 1,691 bytes, line 2
20).attr(k,P*r),A.attr(O,0).attr(E,P*b),d.rangeBand){var N=d,R=N.rangeBand()/2;f=d=function(e){return N(e)+R}}else f.rangeBand?f=d:m.call(s,d,f);v.call(s,f,d),y.call(s,d,d)}))}return l.scale=function(e){return arguments.length?(t=e,l):t},l.orient=function(e){return arguments.length?(n=e in Xs?e+"":Ks,l):n},l.ticks=function(){return arguments.length?(u=s(arguments),l):u},l.tickValues=function(e){return arguments.length?(c=e,l):c},l.tickFormat=function(t){return arguments.length?(e=t,l):e},l.tickSize=function(e){var t=arguments.length;return t?(r=+e,i=+arguments[t-1],l):r},l.innerTickSize=function(e){return arguments.length?(r=+e,l):r},l.outerTickSize=function(e){return arguments.length?(i=+e,l):i},l.tickPadding=function(e){return arguments.length?(a=+e,l):a},l.tickSubdivide=function(){return arguments.length&&l},l};var Ks="bottom",Xs={top:1,right:1,bottom:1,left:1};function Ys(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function $s(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}o.svg.brush=function(){var e,t,n=q(d,"brushstart","brush","brushend"),r=null,i=null,a=[0,0],s=[0,0],u=!0,c=!0,f=Js[0];function d(e){e.each((function(){var e=o.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",v).on("touchstart.brush",v),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=e.selectAll(".resize").data(f,M);
2n.exit().remove(),n.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return Qs[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",d.empty()?"none":null);var a,s=o.transition(e),u=o.transition(t);r&&(a=Ca(r),u.attr("x",a[0]).attr("width",a[1]-a[0]),p(s)),i&&(a=Ca(i),u.attr("y",a[0]).attr("height",a[1]-a[0]),g(s)),h(s)}))}function h(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+a[+/e$/.test(e)]+","+s[+/^s/.test(e)]+")"}))}function p(e){e.select(".extent").attr("x",a[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",a[1]-a[0])}function g(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function v(){var f,v,m=this,y=o.select(o.event.target),b=n.of(m,arguments),_=o.select(m),w=y.datum(),x=!/^(n|s)$/.test(w)&&r,O=!/^(e|w)$/.test(w)&&i,S=y.classed("extent"),E=Se(m),k=o.mouse(m),C=o.select(l(m)).on("keydown.brush",I).on("keyup.brush",A);if(o.event.changedTouches?C.on("touchmove.brush",P).on("touchend.brush",M):C.on("mousemove.brush",P).on("mouseup.brush",M),_.interrupt().selectAll("*").interrupt(),S)k[0]=a[0]-k[0],k[1]=s[0]-k[1];else if(w){var T=+/w$/.test(w),j=+/^n/.test(w);v=[a[1-T]-k[0],s[1-j]-k[1]],k[0]=a[T],k[1]=s[j]}else o.event.altKey&&(f=k.slice());function I(){32==o.event.keyCode&&(S||(f=null,k[0]-=a[1],k[1]-=s[1],S=2),B())}function A(){32==o.event.keyCode&&2==S&&(k[0]+=a[1],k[1]+=s[1],S=0,B())}function P(){var e=o.mouse(m),t=!1;v&&(e[0]+=v[0],e[1]+=v[1]),S||(o.event.altKey?(f||(f=[(a[0]+a[1])/2,(s[0]+s[1])/2]),k[0]=a[+(e[0]<f[0])],k[1]=s[+(e[1]<f[1])]):f=null),x&&N(e,r,0)&&(p(_),t=!0),O&&N(e,i,1)&&(g(_),t=!0),t&&(h(_),b({type:"brush",mode:S?"move":"resize"}))}function N(n,r,i){var o,l,d=Ca(r),h=d[0],p=d[1],g=k[i],v=i?s:a,m=v[1]-v[0];if(S&&(h-=g,p-=m+g),o=(i?c:u)?Math.max(h,Math.min(p,n[i])):n[i],S?l=(o+=g)+m:(f&&(g=Math.max(h,Math.min(p,2*f[i]-o))),g<o?(l=o,o=g):l=g),v[0]!=o||v[1]!=l)return i?t=null:e=null,v[0]=o,v[1]=l,!0}function M(){P(),_.style("pointer-events","all").selectAll(".resize").style("display",d.empty()?"none":null),o.select("body").style("cursor",null),C.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),b({type:"brushend"})}_.style("pointer-events","none").selectAll(".resize").style("display",null),o.select("body").style("cursor",y.style("cursor")),b({type:"brushstart"}),P()}return d.event=function(r){r.each((function(){var r=n.of(this,arguments),i={x:a,y:s,i:e,j:t},u=this.__chart__||i;this.__chart__=i,Vs?o.select(this).transition().each("start.brush",(function(){e=u.i,t=u.j,a=u.x,s=u.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=so(a,i.x),o=so(s,i.y);return e=t=null,function(e){a=i.x=n(e),s=i.y=o(e),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=i.i,t=i.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},d.x=function(e){return arguments.length?(f=Js[!(r=e)<<1|!i],d):r},d.y=function(e){return arguments.length?(f=Js[!r<<1|!(i=e)],d):i},d.clamp=function(e){return arguments.length?(r&&i?(u=!!e[0],c=!!e[1]):r?u=!!e:i&&(c=!!e),d):r&&i?[u,c]:r?u:i?c:null},d.extent=function(n){var o,u,c,l,f;return arguments.length?(r&&(o=n[0],u=n[1],i&&(o=o[0],u=u[0]),e=[o,u],r.invert&&(o=r(o),u=r(u)),u<o&&(f=o,o=u,u=f),o==a[0]&&u==a[1]||(a=[o,u])),i&&(c=n[0],l=n[1],r&&(c=c[1],l=l[1]),t=[c,l],i.invert&&(c=i(c),l=i(l)),l<c&&(f=c,c=l,l=f),c==s[0]&&l==s[1]||(s=[c,l])),d):(r&&(e?(o=e[0],u=e[1]):(o=a[0],u=a[1],r.invert&&(o=r.invert(o),u=r.invert(u)),u<o&&(f=o,o=u,u=f))),i&&(t?(c=t[0],l=t[1]):(c=s[0],l=s[1],i.invert&&(c=i.invert(c),l=i.invert(l)),l<c&&(f=c,c=l,l=f))),r&&i?[[o,c],[u,l]]:r?[o,u]:i&&[c,l])},d.clear=function(){return d.empty()||(a=[0,0],s=[0,0],e=t=null),d},d.empty=function(){return!!r&&a[0]==a[1]||!!i&&s[0]==s[1]},o.rebind(d,n,"on")};var Qs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Js=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Zs=Ft.format=pn.timeFormat,eu=Zs.utc,tu=eu("%Y-%m-%dT%H:%M:%S.%LZ");function nu(e){return e.toISOString()}function ru(e,t,n){function r(t){return e(t)}function i(e,n){var r=(e[1]-e[0])/n,i=o.bisect(ou,r);return i==ou.length?[t.year,La(e.map((function(e){return e/31536e6})),n)[2]]:i?t[r/ou[i-1]<ou[i]/r?i-1:i]:[uu,La(e,n)[2]]}return r.invert=function(t){return iu(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(iu)},r.nice=function(e,t){var n=r.domain(),o=ka(n),a=null==e?i(o,10):"number"===typeof e&&i(o,e);function s(n){return!isNaN(n)&&!e.range(n,iu(+n+1),t).length}return a&&(e=a[0],t=a[1]),r.domain(ja(n,t>1?{floor:function(t){for(;s(t=e.floor(t));)t=iu(t-1);return t},ceil:function(t){for(;s(t=e.ceil(t));)t=iu(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ka(r.domain()),o=null==e?i(n,10):"number"===typeof e?i(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],iu(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return ru(e.copy(),t,n)},Ma(r,e)}function iu(e){return new Date(e)}Zs.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?nu:tu,nu.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},nu.toString=tu.toString,Ft.second=zt((function(e){return new Vt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Ft.seconds=Ft.second.range,Ft.seconds.utc=Ft.second.utc.range,Ft.minute=zt((function(e){return new Vt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Ft.minutes=Ft.minute.range,Ft.minutes.utc=Ft.minute.utc.range,Ft.hour=zt((function(e){var t=e.getTimezoneOffset()/60;return new Vt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Ft.hours=Ft.hour.range,Ft.hours.utc=Ft.hour.utc.range,Ft.month=zt((function(e){return(e=Ft.day(e)).setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Ft.months=Ft.month.range,Ft.months.utc=Ft.month.utc.range;var ou=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],au=[[Ft.second,1],[Ft.second,5],[Ft.second,15],[Ft.second,30],[Ft.minute,1],[Ft.minute,5],[Ft.minute,15],[Ft.minute,30],[Ft.hour,1],[Ft.hour,3],[Ft.hour,6],[Ft.hour,12],[Ft.day,1],[Ft.day,2],[Ft.week,1],[Ft.month,1],[Ft.month,3],[Ft.year,1]],su=Zs.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",Zn]]),uu={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(iu)},floor:M,ceil:M};au.year=Ft.year,Ft.scale=function(){return ru(o.scale.linear(),au,su)};var cu=au.map((function(e){return[e[0].utc,e[1]]})),lu=eu.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",Zn]]);function fu(e){return JSON.parse(e.responseText)}function du(e){var t=u.createRange();return t.selectNode(u.body),t.createContextualFragment(e.responseText)}cu.year=Ft.year.utc,Ft.scale.utc=function(){return ru(o.scale.linear(),cu,lu)},o.text=wt((function(e){return e.responseText})),o.json=function(e,t){return xt(e,"application/json",fu,t)},o.html=function(e,t){return xt(e,"text/html",du,t)},o.xml=wt((function(e){return e.responseXML})),this.d3=o,void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i)}()},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}
2e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,n.apply(this,arguments)}e.exports=n,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){},,function(e,t,n){"use strict";var r=n(9),i=n(4),o=n(0),a=(n(8),n(7)),s=n(50),u=n(49),c=n(20),l=n(16),f=o.forwardRef((function(e,t){var n=e.children,l=e.classes,f=e.className,d=(e.color,e.component),h=void 0===d?"label":d,p=(e.disabled,e.error,e.filled,e.focused,e.required,Object(r.a)(e,["children","classes","className","color","component","disabled","error","filled","focused","required"])),g=Object(u.a)(),v=Object(s.a)({props:e,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]});return o.createElement(h,Object(i.a)({className:Object(a.a)(l.root,l["color".concat(Object(c.a)(v.color||"primary"))],f,v.disabled&&l.disabled,v.error&&l.error,v.filled&&l.filled,v.focused&&l.focused,v.required&&l.required),ref:t},p),n,v.required&&o.createElement("span",{"aria-hidden":!0,className:Object(a.a)(l.asterisk,v.error&&l.error)},"\u2009","*"))}));t.a=Object(l.a)((function(e){return{root:Object(i.a)({color:e.palette.text.secondary},e.typography.body1,{lineHeight:1,padding:0,"&$focused":{color:e.palette.primary.main},"&$disabled":{color:e.palette.text.disabled},"&$error":{color:e.palette.error.main}}),colorSecondary:{"&$focused":{color:e.palette.secondary.main}},focused:{},disabled:{},error:{},filled:{},required:{},asterisk:{"&$error":{color:e.palette.error.main}}}}),{name:"MuiFormLabel"})(f)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r={active:"Mui-active",checked:"Mui-checked",completed:"Mui-completed",disabled:"Mui-disabled",error:"Mui-error",expanded:"Mui-expanded",focused:"Mui-focused",focusVisible:"Mui-focusVisible",required:"Mui-required",selected:"Mui-selected"};function i(e,t){return r[t]||"".concat(e,"-").concat(t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(121);function o(e,t){return r.useMemo((function(){return null==e&&null==t?null:function(n){Object(i.a)(e,n),Object(i.a)(t,n)}}),[e,t])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return vn}));var r=n(9),i=n(4),o=n(0),a=n.n(o),s="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},u="object"===("undefined"===typeof window?"undefined":s(window))&&"object"===("undefined"===typeof document?"undefined":s(document))&&9===document.nodeType;var c=n(80),l=n(136);function f(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Object(l.a)(e,t)}var d=n(119),h=n(102),p={}.constructor;function g(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(g);if(e.constructor!==p)return e;var t={};for(var n in e)t[n]=g(e[n]);return t}function v(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=g(t),o=r.plugins.onCreateRule(e,i,n);return o||(e[0],null)}var m=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},y=function(e,t){if(void 0===t&&(t=!1),!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=", "),n+=m(e[r]," ");else n=m(e,", ");return t||"!important"!==e[e.length-1]||(n+=" !important"),n};function b(e,t){for(var n="",r=0;r<t;r++)n+="  ";return n+e}function _(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,o=void 0===i?0:i,a=t.fallbacks;if(e&&o++,a)if(Array.isArray(a))for(var s=0;s<a.length;s++){var u=a[s];for(var c in u){var l=u[c];null!=l&&(r&&(r+="\n"),r+=b(c+": "+y(l)+";",o))}}else for(var f in a){var d=a[f];null!=d&&(r&&(r+="\n"),r+=b(f+": "+y(d)+";",o))}for(var h in t){var p=t[h];null!=p&&"fallbacks"!==h&&(r&&(r+="\n"),r+=b(h+": "+y(p)+";",o))}return(r||n.allowEmpty)&&e?(r&&(r="\n"+r+"\n"),b(e+" {"+r,--o)+b("}",o)):r}var w=/([[\].#*$><+~=|^:(),"'`\s])/g,x="undefined"!==typeof CSS&&CSS.escape,O=function(e){return x?x(e):e.replace(w,"\\$1")},S=function(){function e(e,t,n){this.type="style",this.key=void 0,this.isProcessed=!1,this.style=void 0,this.renderer=void 0,this.renderable=void 0,this.options=void 0;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var o=null==i||!1===i,a=e in this.style;if(o&&!a&&!r)return this;var s=o&&a;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var u=this.options.sheet;return u&&u.attached,this},e}(),E=function(e){function t(t,n,r){var i;(i=e.call(this,t,n,r)||this).selectorText=void 0,i.id=void 0,i.renderable=void 0;
2var o=r.selector,a=r.scoped,s=r.sheet,u=r.generateId;return o?i.selectorText=o:!1!==a&&(i.id=u(Object(d.a)(Object(d.a)(i)),s),i.selectorText="."+O(i.id)),i}f(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=y(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(i.a)({},e,{allowEmpty:!0}):e;return _(this.selectorText,this.style,n)},Object(c.a)(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(S),k={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new E(e,t,n)}},C={indent:1,children:!0},T=/@([\w-]+)/,j=function(){function e(e,t,n){this.type="conditional",this.at=void 0,this.key=void 0,this.query=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e;var r=e.match(T);for(var o in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new J(Object(i.a)({},n,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.toString=function(e){if(void 0===e&&(e=C),null==e.indent&&(e.indent=C.indent),null==e.children&&(e.children=C.children),!1===e.children)return this.query+" {}";var t=this.rules.toString(e);return t?this.query+" {\n"+t+"\n}":""},e}(),I=/@media|@supports\s+/,A={onCreateRule:function(e,t,n){return I.test(e)?new j(e,t,n):null}},P={indent:1,children:!0},N=/@keyframes\s+([\w-]+)/,M=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.key=void 0,this.name=void 0,this.id=void 0,this.rules=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0;var r=e.match(N);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,a=n.sheet,s=n.generateId;for(var u in this.id=!1===o?this.name:O(s(this,a)),this.rules=new J(Object(i.a)({},n,{parent:this})),t)this.rules.add(u,t[u],Object(i.a)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){if(void 0===e&&(e=P),null==e.indent&&(e.indent=P.indent),null==e.children&&(e.children=P.children),!1===e.children)return this.at+" "+this.id+" {}";var t=this.rules.toString(e);return t&&(t="\n"+t+"\n"),this.at+" "+this.id+" {"+t+"}"},e}(),R=/@keyframes\s+/,L=/\$([\w-]+)/g,D=function(e,t){return"string"===typeof e?e.replace(L,(function(e,n){return n in t?t[n]:e})):e},F=function(e,t,n){var r=e[t],i=D(r,n);i!==r&&(e[t]=i)},V={onCreateRule:function(e,t,n){return"string"===typeof e&&R.test(e)?new M(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&F(e,"animation-name",n.keyframes),"animation"in e&&F(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return D(e,r.keyframes);default:return e}}},U=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).renderable=void 0,t}return f(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?Object(i.a)({},e,{allowEmpty:!0}):e;return _(this.key,this.style,n)},t}(S),B={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new U(e,t,n):null}},z=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.style)){for(var t="",n=0;n<this.style.length;n++)t+=_(this.at,this.style[n]),this.style[n+1]&&(t+="\n");return t}return _(this.at,this.style,e)},e}(),q=/@font-face/,G={onCreateRule:function(e,t,n){return q.test(e)?new z(e,t,n):null}},W=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.key=void 0,this.style=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return _(this.key,this.style,e)},e}(),H={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-v
2iewport"===e?new W(e,t,n):null}},K=function(){function e(e,t,n){this.type="simple",this.key=void 0,this.value=void 0,this.options=void 0,this.isProcessed=!1,this.renderable=void 0,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),X={"@charset":!0,"@import":!0,"@namespace":!0},Y=[k,A,V,B,G,H,{onCreateRule:function(e,t,n){return e in X?new K(e,t,n):null}}],$={process:!0},Q={force:!0,process:!0},J=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=void 0,this.classes=void 0,this.keyframes=void 0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,o=r.parent,a=r.sheet,s=r.jss,u=r.Renderer,c=r.generateId,l=r.scoped,f=Object(i.a)({classes:this.classes,parent:o,sheet:a,jss:s,Renderer:u,generateId:c,scoped:l,name:e,keyframes:this.keyframes,selector:void 0},n),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(f.selector="."+O(this.classes[d]));var h=v(d,t,f);if(!h)return null;this.register(h);var p=void 0===f.index?this.index.length:f.index;return this.index.splice(p,0,h),h},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof E?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof M&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof E?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof M&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.map[e],t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=$);var i=this.options,o=i.jss.plugins,a=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t,u=s.style;if(o.onUpdate(n,t,a,r),r.process&&u&&u!==s.style){for(var c in o.onProcessStyle(s.style,s,a),s.style){var l=s.style[c];l!==u[c]&&s.prop(c,l,Q)}for(var f in u){var d=s.style[f],h=u[f];null==d&&d!==h&&s.prop(f,null,Q)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=0;i<this.index.length;i++){var o=this.index[i].toString(e);(o||r)&&(t&&(t+="\n"),t+=o)}return t},e}(),Z=function(){function e(e,t){for(var n in this.options=void 0,this.deployed=void 0,this.attached=void 0,this.rules=void 0,this.renderer=void 0,this.classes=void 0,this.keyframes=void 0,this.queue=void 0,this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Object(i.a)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new J(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),ee=function(){function e(){this.plugins={internal:[],external:[]},this.registry=void 0}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),te=new(function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=Object(h.a)(t,["attached"]),i="",o=0;o<this.registry.length;o++){var a=this.registry[o];null!=n&&a.attached!==n||(i&&(i+="\n"),i+=a.toString(r))}return i}
vendor: 5,232 bytes, line 2
2,Object(c.a)(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}()),ne="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),re="2f1acc6c3a606b082e5eef5e54414ffb";null==ne[re]&&(ne[re]=0);var ie=ne[re]++,oe=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",o="";return r&&(r.options.classNamePrefix&&(o=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(o||"c")+ie+i+t:o+n.key+"-"+ie+(i?"-"+i:"")+"-"+t}},ae=function(e){var t;return function(){return t||(t=e()),t}},se=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},ue=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=y(n,!0),"!important"===n[n.length-1]))return e.style.setProperty(t,r,"important"),!0;e.attributeStyleMap?e.attributeStyleMap.set(t,r):e.style.setProperty(t,r)}catch(i){return!1}return!0},ce=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},le=function(e,t){return e.selectorText=t,e.selectorText===t},fe=ae((function(){return document.querySelector("head")}));function de(e){var t=te.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=fe(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var he=ae((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),pe=function(e,t,n){try{if("insertRule"in e)e.insertRule(t,n);else if("appendRule"in e){e.appendRule(t)}}catch(r){return!1}return e.cssRules[n]},ge=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},ve=function(){function e(e){this.getPropertyValue=se,this.setProperty=ue,this.removeProperty=ce,this.setSelector=le,this.element=void 0,this.sheet=void 0,this.hasInsertedRules=!1,this.cssRules=[],e&&te.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var o=he();o&&this.element.setAttribute("nonce",o)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=de(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,o=i.parentNode;o&&o.insertBefore(e,i.nextSibling)}else fe().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var o=ge(n,t);if(!1===(i=pe(n,r.toString({children:!1}),o)))return!1;this.refCssRule(e,o,i)}return this.insertRules(r.rules,i),i}var a=e.toString();if(!a)return!1;var s=ge(n,t),u=pe(n,a,s);return!1!==u&&(this.hasInsertedRules=!0,this.refCssRule(e,s,u),u)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof Z&&(this.cssRules[t]=n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),me=0,ye=function(){function e(e){this.id=me++,this.version="10.7.1",this.plugins=new ee,this.options={id:{minify:!1},createGenerateId:oe,Renderer:u?ve:null,plugins:[]},this.generateId=oe({minify:!1});for(var t=0;t<Y.length;t++)this.plugins.use(Y[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=Object(i.a)({}
2,this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===te.index?0:te.index+1);var r=new Z(e,Object(i.a)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),te.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=Object(i.a)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var o=v(e,t,r);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}();function be(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var o=be(r);o&&(t||(t={}),t[n]=o)}}return t}var _e="object"===typeof CSS&&null!=CSS&&"number"in CSS,we=function(e){return new ye(e)},xe=(we(),n(256)),Oe={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},Se=n(279),Ee=(n(8),"function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__"),ke=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ce=Date.now(),Te="fnValues"+Ce,je="fnStyle"+ ++Ce,Ie=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=v(e,{},n);return r[je]=t,r},onProcessStyle:function(e,t){if(Te in t||je in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Te]=n,e},onUpdate:function(e,t,n,r){var i=t,o=i[je];o&&(i.style=o(e)||{});var a=i[Te];if(a)for(var s in a)i.prop(s,a[s](e),r)}}},Ae="@global",Pe="@global ",Ne=function(){function e(e,t,n){for(var r in this.type="global",this.at=Ae,this.rules=void 0,this.options=void 0,this.key=void 0,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new J(Object(i.a)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(){return this.rules.toString()},e}(),Me=function(){function e(e,t,n){this.type="global",this.at=Ae,this.options=void 0,this.rule=void 0,this.isProcessed=!1,this.key=void 0,this.key=e,this.options=n;var r=e.substr(Pe.length);this.rule=n.jss.createRule(r,t,Object(i.a)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Re=/\s*,\s*/g;function Le(e,t){for(var n=e.split(Re),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var De=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Ae)return new Ne(e,t,n);if("@"===e[0]&&e.substr(0,Pe.length)===Pe)return new Me(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),!1===n.scoped&&(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,o=r?r[Ae]:null;if(o){for(var a in o)t.addRule(a,o[a],Object(i.a)({},n,{selector:Le(a,e.selector)}));delete r[Ae]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var o in r)if("@"===o[0]&&o.substr(0,Ae.length)===Ae){var a=Le(o.substr(Ae.length),e.selector);t.addRule(a,r[o],Object(i.a)({},n,{selector:a})),delete r[o]}}(e,t))}}},Fe=/\s*,\s*/g,Ve=/&/g,Ue=/\$([\w-]+)/g;var Be=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?(i=i).selector:r}}function t(e,t){for(var n=t.split(Fe),r=e.split(Fe),i="",o=0;o<n.length;o++)for(var a=n[o],s=0;s<r.length;s++){var u=r[s];i&&(i+=", "),i+=-1!==u.indexOf("&")?u.replace(Ve,a):a+" "+u}return i}function n(e,t,n){if(n)return Object(i.a)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var o=Object(i.a)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete o.name,o}return{onProcessStyle:function(r,o,a){if("style"!==o.type)return r;var s,u,c=o,l=c.options.parent;for(var f in r){var d=-1!==f.indexOf("&"),h="@"===f[0];if(d||h){if(s=n(c,l,s),d){var p=t(f,c.selector);u||(u=e(l,a)),p=p.replace(Ue,u),l.addRule(p,r[f],Object(i.a)({},s,{selector:p}))}else h&&l.addRule(f,{},s).addRule(c.key,r[f],{selector:c.selector});delete r[f]}}return r}}},ze=/[A-Z]/g,qe=/^ms-/,Ge={};function We(e){return"-"+e.toLowerCase()}
vendor: 5,844 bytes, line 2
2var He=function(e){if(Ge.hasOwnProperty(e))return Ge[e];var t=e.replace(ze,We);return Ge[e]=qe.test(t)?"-"+t:t};function Ke(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:He(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(Ke):t.fallbacks=Ke(e.fallbacks)),t}var Xe=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=Ke(e[t]);return e}return Ke(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=He(t);return t===r?e:(n.prop(r,e),null)}}},Ye=_e&&CSS?CSS.px:"px",$e=_e&&CSS?CSS.ms:"ms",Qe=_e&&CSS?CSS.percent:"%";function Je(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var Ze=Je({"animation-delay":$e,"animation-duration":$e,"background-position":Ye,"background-position-x":Ye,"background-position-y":Ye,"background-size":Ye,border:Ye,"border-bottom":Ye,"border-bottom-left-radius":Ye,"border-bottom-right-radius":Ye,"border-bottom-width":Ye,"border-left":Ye,"border-left-width":Ye,"border-radius":Ye,"border-right":Ye,"border-right-width":Ye,"border-top":Ye,"border-top-left-radius":Ye,"border-top-right-radius":Ye,"border-top-width":Ye,"border-width":Ye,"border-block":Ye,"border-block-end":Ye,"border-block-end-width":Ye,"border-block-start":Ye,"border-block-start-width":Ye,"border-block-width":Ye,"border-inline":Ye,"border-inline-end":Ye,"border-inline-end-width":Ye,"border-inline-start":Ye,"border-inline-start-width":Ye,"border-inline-width":Ye,"border-start-start-radius":Ye,"border-start-end-radius":Ye,"border-end-start-radius":Ye,"border-end-end-radius":Ye,margin:Ye,"margin-bottom":Ye,"margin-left":Ye,"margin-right":Ye,"margin-top":Ye,"margin-block":Ye,"margin-block-end":Ye,"margin-block-start":Ye,"margin-inline":Ye,"margin-inline-end":Ye,"margin-inline-start":Ye,padding:Ye,"padding-bottom":Ye,"padding-left":Ye,"padding-right":Ye,"padding-top":Ye,"padding-block":Ye,"padding-block-end":Ye,"padding-block-start":Ye,"padding-inline":Ye,"padding-inline-end":Ye,"padding-inline-start":Ye,"mask-position-x":Ye,"mask-position-y":Ye,"mask-size":Ye,height:Ye,width:Ye,"min-height":Ye,"max-height":Ye,"min-width":Ye,"max-width":Ye,bottom:Ye,left:Ye,top:Ye,right:Ye,inset:Ye,"inset-block":Ye,"inset-block-end":Ye,"inset-block-start":Ye,"inset-inline":Ye,"inset-inline-end":Ye,"inset-inline-start":Ye,"box-shadow":Ye,"text-shadow":Ye,"column-gap":Ye,"column-rule":Ye,"column-rule-width":Ye,"column-width":Ye,"font-size":Ye,"font-size-delta":Ye,"letter-spacing":Ye,"text-decoration-thickness":Ye,"text-indent":Ye,"text-stroke":Ye,"text-stroke-width":Ye,"word-spacing":Ye,motion:Ye,"motion-offset":Ye,outline:Ye,"outline-offset":Ye,"outline-width":Ye,perspective:Ye,"perspective-origin-x":Qe,"perspective-origin-y":Qe,"transform-origin":Qe,"transform-origin-x":Qe,"transform-origin-y":Qe,"transform-origin-z":Qe,"transition-delay":$e,"transition-duration":$e,"vertical-align":Ye,"flex-basis":Ye,"shape-margin":Ye,size:Ye,gap:Ye,grid:Ye,"grid-gap":Ye,"row-gap":Ye,"grid-row-gap":Ye,"grid-column-gap":Ye,"grid-template-rows":Ye,"grid-template-columns":Ye,"grid-auto-rows":Ye,"grid-auto-columns":Ye,"box-shadow-x":Ye,"box-shadow-y":Ye,"box-shadow-blur":Ye,"box-shadow-spread":Ye,"font-line-height":Ye,"text-shadow-x":Ye,"text-shadow-y":Ye,"text-shadow-blur":Ye});function et(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=et(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=et(i,t[i],n);else for(var o in t)t[o]=et(e+"-"+o,t[o],n);else if("number"===typeof t&&!1===isNaN(t)){var a=n[e]||Ze[e];return!a||0===t&&a===Ye?t.toString():"function"===typeof a?a(t).toString():""+t+a}return t}var tt=function(e){void 0===e&&(e={});var t=Je(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=et(r,e[r],t);return e},onChangeValue:function(e,n){return et(n,e,t)}}},nt=n(63),rt="",it="",ot="",at="",st=u&&"ontouchstart"in document.documentElement;if(u){var ut={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},ct=document.createElement("p").style;for(var lt in ut)if(lt+"Transform"in ct){rt=lt,it=ut[lt];break}"Webkit"===rt&&"msHyphens"in ct&&(rt="ms",it=ut.ms,at="edge"),"Webkit"===rt&&"-apple-trailing-word"in ct&&(ot="apple")}var ft=rt,dt=it,ht=ot,pt=at,gt=st;var vt={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===ft?"-webkit-"+e:dt+e)}},mt={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===ft?dt+"print-"+e:e)}},yt=/[-\s]+(.)?/g;function bt(e,t){return t?t.toUpperCase():""}function _t(e){return e.replace(yt,bt)}function wt(e){return _t("-"+e)}var xt,Ot={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===ft){var n="mask-image";if(_t(n)in t)return e;if(ft+wt(n)in t)return dt+e}return e}},St={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==ht||gt?e:dt+e)}},Et={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:dt+e)}},kt={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:dt+e)}},Ct={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===ft||"ms"===ft&&"edge"!==pt?dt+e:e)}},Tt={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===ft||"ms"===ft||"apple"===ht?dt+e:e)}},jt={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===ft?"WebkitColumn"+wt(e)in t&&dt+"column-"+e:"Moz"===ft&&("page"+wt(e)in t&&"page-"+e))}},It={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===ft)return e;var n=e.replace("-inline","");return ft+wt(n)in t&&dt+n}}
2,At={supportedProperty:function(e,t){return _t(e)in t&&e}},Pt={supportedProperty:function(e,t){var n=wt(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:ft+n in t?dt+e:"Webkit"!==ft&&"Webkit"+n in t&&"-webkit-"+e}},Nt={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===ft?""+dt+e:e)}},Mt={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===ft?dt+"scroll-chaining":e)}},Rt={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Lt={supportedProperty:function(e,t){var n=Rt[e];return!!n&&(ft+wt(n)in t&&dt+n)}},Dt={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Ft=Object.keys(Dt),Vt=function(e){return dt+e},Ut=[vt,mt,Ot,St,Et,kt,Ct,Tt,jt,It,At,Pt,Nt,Mt,Lt,{supportedProperty:function(e,t,n){var r=n.multiple;if(Ft.indexOf(e)>-1){var i=Dt[e];if(!Array.isArray(i))return ft+wt(i)in t&&dt+i;if(!r)return!1;for(var o=0;o<i.length;o++)if(!(ft+wt(i[0])in t))return!1;return i.map(Vt)}return!1}}],Bt=Ut.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),zt=Ut.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,Object(nt.a)(t.noPrefill)),e}),[]),qt={};if(u){xt=document.createElement("p");var Gt=window.getComputedStyle(document.documentElement,"");for(var Wt in Gt)isNaN(Wt)||(qt[Gt[Wt]]=Gt[Wt]);zt.forEach((function(e){return delete qt[e]}))}function Ht(e,t){if(void 0===t&&(t={}),!xt)return e;if(null!=qt[e])return qt[e];"transition"!==e&&"transform"!==e||(t[e]=e in xt.style);for(var n=0;n<Bt.length&&(qt[e]=Bt[n](e,xt.style,t),!qt[e]);n++);try{xt.style[e]=""}catch(r){return!1}return qt[e]}var Kt,Xt={},Yt={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},$t=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Qt(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ht(t):", "+Ht(n);return r||(t||n)}function Jt(e,t){var n=t;if(!Kt||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=Xt[r])return Xt[r];try{Kt.style[e]=n}catch(i){return Xt[r]=!1,!1}if(Yt[e])n=n.replace($t,Qt);else if(""===Kt.style[e]&&("-ms-flex"===(n=dt+n)&&(Kt.style[e]="-ms-flexbox"),Kt.style[e]=n,""===Kt.style[e]))return Xt[r]=!1,!1;return Kt.style[e]="",Xt[r]=n,Xt[r]}u&&(Kt=document.createElement("p"));var Zt=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,o=Ht(n);o&&o!==n&&(i=!0);var a=!1,s=Jt(o,y(r));s&&s!==r&&(a=!0),(i||a)&&(i&&delete t[n],t[o||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at="-"===(n=t.at)[1]||"ms"===ft?n:"@"+dt+"keyframes"+n.substr(10)}var n},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return Jt(t,y(e))||e}}};var en=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r}}};function tn(){return{plugins:[Ie(),De(),Be(),Xe(),tt(),"undefined"===typeof window?null:Zt(),en()]}}var nn=we(tn()),rn={disableGeneration:!1,generateClassName:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,o=e.seed,a=void 0===o?"":o,s=""===a?"":"".concat(a,"-"),u=0,c=function(){return u+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==ke.indexOf(e.key))return"Mui-".concat(e.key);var o="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ee]&&""===a?"".concat(o,"-").concat(c()):o}return"".concat(s).concat(i).concat(c())}}(),jss:nn,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},on=a.a.createContext(rn);var an=-1e9;function sn(){return an+=1}n(68);var un=n(257);function cn(e){var t="function"===typeof e;return{create:function(n,r){var o;try{o=t?e(n):e}catch(u){throw u}if(!r||!n.overrides||!n.overrides[r])return o;var a=n.overrides[r],s=Object(i.a)({},o);
2return Object.keys(a).forEach((function(e){s[e]=Object(un.a)(s[e],a[e])})),s},options:{}}}var ln={};function fn(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Object(xe.a)({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}function dn(e,t){var n=e.state,r=e.theme,o=e.stylesOptions,a=e.stylesCreator,s=e.name;if(!o.disableGeneration){var u=Oe.get(o.sheetsManager,a,r);u||(u={refs:0,staticSheet:null,dynamicStyles:null},Oe.set(o.sheetsManager,a,r,u));var c=Object(i.a)({},a.options,o,{theme:r,flip:"boolean"===typeof o.flip?o.flip:"rtl"===r.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=o.sheetsRegistry;if(0===u.refs){var f;o.sheetsCache&&(f=Oe.get(o.sheetsCache,a,r));var d=a.create(r,s);f||((f=o.jss.createStyleSheet(d,Object(i.a)({link:!1},c))).attach(),o.sheetsCache&&Oe.set(o.sheetsCache,a,r,f)),l&&l.add(f),u.staticSheet=f,u.dynamicStyles=be(d)}if(u.dynamicStyles){var h=o.jss.createStyleSheet(u.dynamicStyles,Object(i.a)({link:!0},c));h.update(t),h.attach(),n.dynamicSheet=h,n.classes=Object(xe.a)({baseClasses:u.staticSheet.classes,newClasses:h.classes}),l&&l.add(h)}else n.classes=u.staticSheet.classes;u.refs+=1}}function hn(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}function pn(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var o=Oe.get(r.sheetsManager,i,n);o.refs-=1;var a=r.sheetsRegistry;0===o.refs&&(Oe.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(o.staticSheet),a&&a.remove(o.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function gn(e,t){var n,r=a.a.useRef([]),i=a.a.useMemo((function(){return{}}),t);r.current!==i&&(r.current=i,n=e()),a.a.useEffect((function(){return function(){n&&n()}}),[i])}function vn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name,o=t.classNamePrefix,s=t.Component,u=t.defaultTheme,c=void 0===u?ln:u,l=Object(r.a)(t,["name","classNamePrefix","Component","defaultTheme"]),f=cn(e),d=n||o||"makeStyles";f.options={index:sn(),name:n,meta:d,classNamePrefix:d};var h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object(Se.a)()||c,r=Object(i.a)({},a.a.useContext(on),l),o=a.a.useRef(),u=a.a.useRef();gn((function(){var i={name:n,state:{},stylesCreator:f,stylesOptions:r,theme:t};return dn(i,e),u.current=!1,o.current=i,function(){pn(i)}}),[t,f]),a.a.useEffect((function(){u.current&&hn(o.current,e),u.current=!0}));var d=fn(o.current,e.classes,s);return d};return h}},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(22)),s=n(7),u=n(25),c=n(54),l=n(16),f=!0,d=!1,h=null,p={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function g(e){e.metaKey||e.altKey||e.ctrlKey||(f=!0)}function v(){f=!1}function m(){"hidden"===this.visibilityState&&d&&(f=!0)}function y(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return f||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!p[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function b(){d=!0,window.clearTimeout(h),h=window.setTimeout((function(){d=!1}),100)}function _(){return{isFocusVisible:y,onBlurVisible:b,ref:o.useCallback((function(e){var t,n=a.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",g,!0),t.addEventListener("mousedown",v,!0),t.addEventListener("pointerdown",v,!0),t.addEventListener("touchstart",v,!0),t.addEventListener("visibilitychange",m,!0))}),[])}}var w=n(63),x=n(275),O="undefined"===typeof window?o.useEffect:o.useLayoutEffect;var S=function(e){var t=e.classes,n=e.pulsate,r=void 0!==n&&n,i=e.rippleX,a=e.rippleY,u=e.rippleSize,l=e.in,f=e.onExited,d=void 0===f?function(){}:f,h=e.timeout,p=o.useState(!1),g=p[0],v=p[1],m=Object(s.a)(t.ripple,t.rippleVisible,r&&t.ripplePulsate),y={width:u,height:u,top:-u/2+a,left
vendor: 5,306 bytes, line 2
2:-u/2+i},b=Object(s.a)(t.child,g&&t.childLeaving,r&&t.childPulsate),_=Object(c.a)(d);return O((function(){if(!l){v(!0);var e=setTimeout(_,h);return function(){clearTimeout(e)}}}),[_,l,h]),o.createElement("span",{className:m,style:y},o.createElement("span",{className:b}))},E=o.forwardRef((function(e,t){var n=e.center,a=void 0!==n&&n,u=e.classes,c=e.className,l=Object(i.a)(e,["center","classes","className"]),f=o.useState([]),d=f[0],h=f[1],p=o.useRef(0),g=o.useRef(null);o.useEffect((function(){g.current&&(g.current(),g.current=null)}),[d]);var v=o.useRef(!1),m=o.useRef(null),y=o.useRef(null),b=o.useRef(null);o.useEffect((function(){return function(){clearTimeout(m.current)}}),[]);var _=o.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,a=e.cb;h((function(e){return[].concat(Object(w.a)(e),[o.createElement(S,{key:p.current,classes:u,timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i})])})),p.current+=1,g.current=a}),[u]),O=o.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,s=void 0===o?a||t.pulsate:o,u=t.fakeElement,c=void 0!==u&&u;if("mousedown"===e.type&&v.current)v.current=!1;else{"touchstart"===e.type&&(v.current=!0);var l,f,d,h=c?null:b.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(p.width/2),f=Math.round(p.height/2);else{var g=e.touches?e.touches[0]:e,w=g.clientX,x=g.clientY;l=Math.round(w-p.left),f=Math.round(x-p.top)}if(s)(d=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(d+=1);else{var O=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,S=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(O,2)+Math.pow(S,2))}e.touches?null===y.current&&(y.current=function(){_({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})},m.current=setTimeout((function(){y.current&&(y.current(),y.current=null)}),80)):_({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[a,_]),E=o.useCallback((function(){O({},{pulsate:!0})}),[O]),k=o.useCallback((function(e,t){if(clearTimeout(m.current),"touchend"===e.type&&y.current)return e.persist(),y.current(),y.current=null,void(m.current=setTimeout((function(){k(e,t)})));y.current=null,h((function(e){return e.length>0?e.slice(1):e})),g.current=t}),[]);return o.useImperativeHandle(t,(function(){return{pulsate:E,start:O,stop:k}}),[E,O,k]),o.createElement("span",Object(r.a)({className:Object(s.a)(u.root,c),ref:b},l),o.createElement(x.a,{component:null,exit:!0},d))})),k=Object(l.a)((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(o.memo(E)),C=o.forwardRef((function(e,t){var n=e.action,l=e.buttonRef,f=e.centerRipple,d=void 0!==f&&f,h=e.children,p=e.classes,g=e.className,v=e.component,m=void 0===v?"button":v,y=e.disabled,b=void 0!==y&&y,w=e.disableRipple,x=void 0!==w&&w,O=e.disableTouchRipple,S=void 0!==O&&O,E=e.focusRipple,C=void 0!==E&&E,T=e.focusVisibleClassName,j=e.onBlur,I=e.onClick,A=e.onFocus,P=e.onFocusVisible,N=e.onKeyDown,M=e.onKeyUp,R=e.onMouseDown,L=e.onMouseLeave,D=e.onMouseUp,F=e.onTouchEnd,V=e.onTouchMove,U=e.onTouchStart,B=e.onDragLeave,z=e.tabIndex,q=void 0===z?0:z,G=e.TouchRippleProps,W=e.type,H=void 0===W?"button":W,K=Object(i.a)(e,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),X=o.useRef(null);var Y=o.useRef(null),$=o.useState(!1),Q=$[0],J=$[1];b&&Q&&J(!1);var Z=_(),ee=Z.isFocusVisible,te=Z.onBlurVisible,ne=Z.ref;function re(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S;return Object(c.a)((function(r){return t&&t(r),!n&&Y.current&&Y.current[e](r),!0}))}o.useImperativeHandle(n,(function(){return{focusVisible:function(){J(!0),X.current.focus()}}}),[]),o.useEffect((function(){Q&&C&&!x&&Y.current.pulsate()}),[x,C,Q]);var ie=re("start",R),oe=re("stop",B),ae=re("stop",D),se=re("stop",(function(e){Q&&e.preventDefault(),L&&L(e)}
2)),ue=re("start",U),ce=re("stop",F),le=re("stop",V),fe=re("stop",(function(e){Q&&(te(e),J(!1)),j&&j(e)}),!1),de=Object(c.a)((function(e){X.current||(X.current=e.currentTarget),ee(e)&&(J(!0),P&&P(e)),A&&A(e)})),he=function(){var e=a.findDOMNode(X.current);return m&&"button"!==m&&!("A"===e.tagName&&e.href)},pe=o.useRef(!1),ge=Object(c.a)((function(e){C&&!pe.current&&Q&&Y.current&&" "===e.key&&(pe.current=!0,e.persist(),Y.current.stop(e,(function(){Y.current.start(e)}))),e.target===e.currentTarget&&he()&&" "===e.key&&e.preventDefault(),N&&N(e),e.target===e.currentTarget&&he()&&"Enter"===e.key&&!b&&(e.preventDefault(),I&&I(e))})),ve=Object(c.a)((function(e){C&&" "===e.key&&Y.current&&Q&&!e.defaultPrevented&&(pe.current=!1,e.persist(),Y.current.stop(e,(function(){Y.current.pulsate(e)}))),M&&M(e),I&&e.target===e.currentTarget&&he()&&" "===e.key&&!e.defaultPrevented&&I(e)})),me=m;"button"===me&&K.href&&(me="a");var ye={};"button"===me?(ye.type=H,ye.disabled=b):("a"===me&&K.href||(ye.role="button"),ye["aria-disabled"]=b);var be=Object(u.a)(l,t),_e=Object(u.a)(ne,X),we=Object(u.a)(be,_e),xe=o.useState(!1),Oe=xe[0],Se=xe[1];o.useEffect((function(){Se(!0)}),[]);var Ee=Oe&&!x&&!b;return o.createElement(me,Object(r.a)({className:Object(s.a)(p.root,g,Q&&[p.focusVisible,T],b&&p.disabled),onBlur:fe,onClick:I,onFocus:de,onKeyDown:ge,onKeyUp:ve,onMouseDown:ie,onMouseLeave:se,onMouseUp:ae,onDragLeave:oe,onTouchEnd:ce,onTouchMove:le,onTouchStart:ue,ref:we,tabIndex:b?-1:q},ye,K),h,Ee?o.createElement(k,Object(r.a)({ref:Y,center:d},G)):null)}));t.a=Object(l.a)({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(C)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(4),i=n(197),o=n(79);t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.a)(e,Object(r.a)({defaultTheme:o.a},t))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(4);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var i=Object(r.a)({},t);return Object.keys(n).forEach((function(e){n[e]&&(i[e]="".concat(t[e]," ").concat(n[e]))})),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(4),i=n(68);function o(e){return e&&"object"===Object(i.a)(e)&&e.constructor===Object}function a(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},i=n.clone?Object(r.a)({},e):e;return o(e)&&o(t)&&Object.keys(t).forEach((function(r){"__proto__"!==r&&(o(t[r])&&r in e?i[r]=a(e[r],t[r],n):i[r]=t[r])})),i}},function(e,t,n){"use strict";function r(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,o=t.props[n];for(i in o)void 0===r[i]&&(r[i]=o[i]);return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(7)),s=n(71),u=n(16),c=n(20),l=n(82),f=n(70),d=o.forwardRef((function(e,t){var n=e.children,u=e.classes,d=e.className,h=e.color,p=void 0===h?"primary":h,g=e.component,v=void 0===g?"div":g,m=e.disabled,y=void 0!==m&&m,b=e.error,_=void 0!==b&&b,w=e.fullWidth,x=void 0!==w&&w,O=e.focused,S=e.hiddenLabel,E=void 0!==S&&S,k=e.margin,C=void 0===k?"none":k,T=e.required,j=void 0!==T&&T,I=e.size,A=e.variant,P=void 0===A?"standard":A,N=Object(i.a)(e,["children","classes","className","color","component","disabled","error","fullWidth","focused","hiddenLabel","margin","required","size","variant"]),M=o.useState((function(){var e=!1;return n&&o.Children.forEach(n,(function(t){if(Object(l.a)(t,["Input","Select"])){var n=Object(l.a)(t,["Select"])?t.props.input:t;n&&Object(s.a)(n.props)&&(e=!0)}})),e})),R=M[0],L=M[1],D=o.useState((function(){var e=!1;
2return n&&o.Children.forEach(n,(function(t){Object(l.a)(t,["Input","Select"])&&Object(s.b)(t.props,!0)&&(e=!0)})),e})),F=D[0],V=D[1],U=o.useState(!1),B=U[0],z=U[1],q=void 0!==O?O:B;y&&q&&z(!1);var G=o.useCallback((function(){V(!0)}),[]),W={adornedStart:R,setAdornedStart:L,color:p,disabled:y,error:_,filled:F,focused:q,fullWidth:x,hiddenLabel:E,margin:("small"===I?"dense":void 0)||C,onBlur:function(){z(!1)},onEmpty:o.useCallback((function(){V(!1)}),[]),onFilled:G,onFocus:function(){z(!0)},registerEffect:undefined,required:j,variant:P};return o.createElement(f.a.Provider,{value:W},o.createElement(v,Object(r.a)({className:Object(a.a)(u.root,d,"none"!==C&&u["margin".concat(Object(c.a)(C))],x&&u.fullWidth),ref:t},N),n))}));t.a=Object(u.a)({root:{display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},marginNormal:{marginTop:16,marginBottom:8},marginDense:{marginTop:8,marginBottom:4},fullWidth:{width:"100%"}},{name:"MuiFormControl"})(d)},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(7)),s=n(50),u=n(49),c=n(16),l=n(194),f=o.forwardRef((function(e,t){var n=e.classes,c=e.className,f=e.disableAnimation,d=void 0!==f&&f,h=(e.margin,e.shrink),p=(e.variant,Object(i.a)(e,["classes","className","disableAnimation","margin","shrink","variant"])),g=Object(u.a)(),v=h;"undefined"===typeof v&&g&&(v=g.filled||g.focused||g.adornedStart);var m=Object(s.a)({props:e,muiFormControl:g,states:["margin","variant"]});return o.createElement(l.a,Object(r.a)({"data-shrink":v,className:Object(a.a)(n.root,c,g&&n.formControl,!d&&n.animated,v&&n.shrink,"dense"===m.margin&&n.marginDense,{filled:n.filled,outlined:n.outlined}[m.variant]),classes:{focused:n.focused,disabled:n.disabled,error:n.error,required:n.required,asterisk:n.asterisk},ref:t},p))}));t.a=Object(c.a)((function(e){return{root:{display:"block",transformOrigin:"top left"},focused:{},disabled:{},error:{},required:{},asterisk:{},formControl:{position:"absolute",left:0,top:0,transform:"translate(0, 24px) scale(1)"},marginDense:{transform:"translate(0, 21px) scale(1)"},shrink:{transform:"translate(0, 1.5px) scale(0.75)",transformOrigin:"top left"},animated:{transition:e.transitions.create(["color","transform"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},filled:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 20px) scale(1)","&$marginDense":{transform:"translate(12px, 17px) scale(1)"},"&$shrink":{transform:"translate(12px, 10px) scale(0.75)","&$marginDense":{transform:"translate(12px, 7px) scale(0.75)"}}},outlined:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 20px) scale(1)","&$marginDense":{transform:"translate(14px, 12px) scale(1)"},"&$shrink":{transform:"translate(14px, -6px) scale(0.75)"}}}}),{name:"MuiInputLabel"})(f)},function(e,t,n){"use strict";var r=n(9),i=n(4),o=n(0),a=(n(8),n(7)),s=n(16),u=n(30),c=n(198),l=n(20),f=o.forwardRef((function(e,t){var n=e.children,s=e.classes,u=e.className,f=e.color,d=void 0===f?"default":f,h=e.component,p=void 0===h?"button":h,g=e.disabled,v=void 0!==g&&g,m=e.disableElevation,y=void 0!==m&&m,b=e.disableFocusRipple,_=void 0!==b&&b,w=e.endIcon,x=e.focusVisibleClassName,O=e.fullWidth,S=void 0!==O&&O,E=e.size,k=void 0===E?"medium":E,C=e.startIcon,T=e.type,j=void 0===T?"button":T,I=e.variant,A=void 0===I?"text":I,P=Object(r.a)(e,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),N=C&&o.createElement("span",{className:Object(a.a)(s.startIcon,s["iconSize".concat(Object(l.a)(k))])},C),M=w&&o.createElement("span",{className:Object(a.a)(s.endIcon,s["iconSize".concat(Object(l.a)(k))])},w);return o.createElement(c.a,Object(i.a)({className:Object(a.a)(s.root,s[A],u,"inherit"===d?s.colorInherit:"default"!==d&&s["".concat(A).concat(Object(l.a)(d))],"medium"!==k&&[s["".concat(A,"Size").concat(Object(l.a)(k))],s["size".concat(Object(l.a)(k))]],y&&s.disableElevation,v&&s.disabled,S&&s.fullWidth),component:p,disabled:v,focu
2sRipple:!_,focusVisibleClassName:Object(a.a)(s.focusVisible,x),ref:t,type:j},P),o.createElement("span",{className:s.label},N,n,M))}));t.a=Object(s.a)((function(e){return{root:Object(i.a)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:Object(u.a)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(Object(u.a)(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:Object(u.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(Object(u.a)(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:Object(u.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(f)},function(e,t,n){"use strict";function r(e,t,n){var r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){return r&&(n&&n[r]&&e.push(n[r]),e.push(t(r))),e}),[]).join(" ")})),r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(195);function i(e,t){var n={};return t.forEach((function(t){n[t]=Object(r.a)(e,t)})),n}},function(e,t,n){"use strict";n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return f}));var r=n(110);function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function o(e){if(e.type)return e;if("#"===e.charAt(0))return o(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(r.a)(9,e));var i,a=e.substring(t+1,e.length-1);if("color"===n){if(i=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].substr(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i))throw new Error(Object(r.a)(10,i))}else a=a.split(",");return{type:n,values:a=a.map((function(e){return parseFloat(e)})),colorSpace:i}}function a(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function s(e){var t="hsl"===(e=o(e)).type?o(function(e){var t=(e=o(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,s=r*Math.min(i,1-i),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",l=[Math.round(255*u(0)),Math.round(255*u(8)),Math.round(255*u(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),a({type:c,values:l})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}
2)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function u(e,t){var n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=o(e),t=i(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]="/".concat(t):e.values[3]=t,a(e)}function l(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return a(e)}function f(e,t){if(e=o(e),t=i(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return a(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(122);function o(e){var t=r.useRef(e);return Object(i.a)((function(){t.current=e})),r.useCallback((function(){return t.current.apply(void 0,arguments)}),[])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n(0),n(8);var r=n(67),i=n(1);function o(e){var t=e.styles,n=e.defaultTheme,o=void 0===n?{}:n,a="function"===typeof t?function(e){return t(void 0===(n=e)||null===n||0===Object.keys(n).length?o:e);var n}:t;return Object(i.jsx)(r.a,{styles:a})}},function(e,t,n){"use strict";var r=n(6),i=n(14),o=n(0),a=(n(8),n(7)),s=n(144),u=n(262),c=n(15),l=n(10),f=n(110);n(74);function d(e){return e&&e.ownerDocument||document}var h=d,p=n(34),g=n(13),v=n(19),m=n(96),y=n(195),b=n(263);function _(e){return Object(y.a)("MuiList",e)}Object(b.a)("MuiList",["root","padding","dense","subheader"]);var w=n(1),x=["children","className","component","dense","disablePadding","subheader"],O=Object(g.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((function(e){var t=e.ownerState;return Object(r.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})})),S=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiList"}),s=n.children,c=n.className,l=n.component,f=void 0===l?"ul":l,d=n.dense,h=void 0!==d&&d,p=n.disablePadding,g=void 0!==p&&p,y=n.subheader,b=Object(i.a)(n,x),S=o.useMemo((function(){return{dense:h}}),[h]),E=Object(r.a)({},n,{component:f,dense:h,disablePadding:g}),k=function(e){var t=e.classes,n={root:["root",!e.disablePadding&&"padding",e.dense&&"dense",e.subheader&&"subheader"]};return Object(u.a)(n,_,t)}(E);return Object(w.jsx)(m.a.Provider,{value:S,children:Object(w.jsxs)(O,Object(r.a)({as:f,className:Object(a.a)(k.root,c),ref:t,ownerState:E},b,{children:[y,s]}))})}));function E(e){var t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}var k=E,C=n(26),T=n(61),j=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function I(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function A(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function P(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function N(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return!1;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&P(s,o)&&!u)return s.focus(),!0;s=i(e,s,n)}return!1}var M=o.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,u=e.autoFocusItem,c=void 0!==u&&u,l=e.children,f=e.className,d=e.disabledItemsFocusable,p=void 0!==d&&d,g=e.disableListWrap,v=void 0!==g&&g,m=e.onKeyDown,y=e.variant,b=void 0===y?"selectedMenu":y,_=Object(i.a)(e,j),x=o.useRef(null),O=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Object(T.a)((function(){s&&x.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!x.current.style.width;if(e.clientHeight<x.current.clientHeight&&n){var r="".concat(k(h(e)),"px");x.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,x.current.style.width="calc(100% + ".concat(r,")")}return x.current}}}),[]);var E=Object(C.a)(x,t),M=-1;
2o.Children.forEach(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===b&&e.props.selected||-1===M)&&(M=t))}));var R=o.Children.map(l,(function(e,t){if(t===M){var n={};return c&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===b&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return Object(w.jsx)(S,Object(r.a)({role:"menu",ref:E,className:f,onKeyDown:function(e){var t=x.current,n=e.key,r=h(t).activeElement;if("ArrowDown"===n)e.preventDefault(),N(t,r,v,p,I);else if("ArrowUp"===n)e.preventDefault(),N(t,r,v,p,A);else if("Home"===n)e.preventDefault(),N(t,null,v,p,I);else if("End"===n)e.preventDefault(),N(t,null,v,p,A);else if(1===n.length){var i=O.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&P(r,i);i.previousKeyMatched&&(s||N(t,r,!1,p,I,i))?e.preventDefault():i.previousKeyMatched=!1}m&&m(e)},tabIndex:s?0:-1},_,{children:R}))})),R=n(264);function L(e){return Object(y.a)("MuiPaper",e)}Object(b.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);var D=["className","component","elevation","square","variant"],F=function(e){return((e<1?5.11916*Math.pow(e,2):4.5*Math.log(e+1)+2)/100).toFixed(2)},V=Object(g.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t["elevation".concat(n.elevation)]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({backgroundColor:t.palette.background.paper,color:t.palette.text.primary,transition:t.transitions.create("box-shadow")},!n.square&&{borderRadius:t.shape.borderRadius},"outlined"===n.variant&&{border:"1px solid ".concat(t.palette.divider)},"elevation"===n.variant&&Object(r.a)({boxShadow:t.shadows[n.elevation]},"dark"===t.palette.mode&&{backgroundImage:"linear-gradient(".concat(Object(R.a)("#fff",F(n.elevation)),", ").concat(Object(R.a)("#fff",F(n.elevation)),")")}))})),U=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiPaper"}),o=n.className,s=n.component,c=void 0===s?"div":s,l=n.elevation,f=void 0===l?1:l,d=n.square,h=void 0!==d&&d,p=n.variant,g=void 0===p?"elevation":p,m=Object(i.a)(n,D),y=Object(r.a)({},n,{component:c,elevation:f,square:h,variant:g}),b=function(e){var t=e.square,n=e.elevation,r=e.variant,i=e.classes,o={root:["root",r,!t&&"rounded","elevation"===r&&"elevation".concat(n)]};return Object(u.a)(o,L,i)}(y);return Object(w.jsx)(V,Object(r.a)({as:c,ownerState:y,className:Object(a.a)(b.root,o),ref:t},m))}));var B=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=function(){e.apply(r,o)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r};function z(e){return d(e).defaultView||window}var q=z,G=n(280),W=n(141),H=n(62);function K(){return Object(W.a)(H.a)}var X=function(e){return e.scrollTop};function Y(e,t){var n,r,i=e.timeout,o=e.easing,a=e.style,s=void 0===a?{}:a;return{duration:null!=(n=s.transitionDuration)?n:"number"===typeof i?i:i[t.mode]||0,easing:null!=(r=s.transitionTimingFunction)?r:"object"===typeof o?o[t.mode]:o,delay:s.transitionDelay}}var $=["appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Q(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var J={entering:{opacity:1,transform:Q(1)},entered:{opacity:1,transform:"none"}},Z=o.forwardRef((function(e,t){var n=e.appear,a=void 0===n||n,s=e.children,u=e.easing,c=e.in,l=e.onEnter,f=e.onEntered,d=e.onEntering,h=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,m=e.timeout,y=void 0===m?"auto":m,b=e.TransitionComponent,_=void 0===b?G.a:b,x=Object(i.a)(e,$),O=o.useRef(),S=o.useRef(),E=K(),k=o.useRef(null),T=Object(C.a)(s.ref,t),j=Object(C.a)(k,T),I=function(e){return function(t){if(e){var n=k.current;void 0===t?e(n):e(n,t)}}},A=I(d),P=I((function(e,t){X(e);var n,r=Y({style:v,timeout:y,easing:u},{mode:"enter"}),i=r.duration,o=r.delay,a=r.easing;"auto"===y?(n=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=n):n=i,e.style.transition=[E.transitions.create("opacity",{duration:n,delay:o}),E.transitions.create("transform",{duration:.666*n,delay:o,easing:a})].join(","),l&&l(e,t)})),N=I(f),M=I(g),R=I((function(e){var t,n=Y({style:v,timeout:y,easing:u},{mode:"exit"}),r=n.duration,i=n.delay,o=n.easing;"auto"===y?(t=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=r,e.style.transition=[E.transitions.create("opacity",{duration:t,delay:i}),E.transitions.create("transform",{duration:.666*t,delay:i||.333*t,easing:o}
2)].join(","),e.style.opacity="0",e.style.transform=Q(.75),h&&h(e)})),L=I(p);return o.useEffect((function(){return function(){clearTimeout(O.current)}}),[]),Object(w.jsx)(_,Object(r.a)({appear:a,in:c,nodeRef:k,onEnter:P,onEntered:N,onEntering:A,onExit:R,onExited:L,onExiting:M,addEndListener:function(e){"auto"===y&&(O.current=setTimeout(e,S.current||0))},timeout:"auto"===y?null:y},x,{children:function(e,t){return o.cloneElement(s,Object(r.a)({style:Object(r.a)({opacity:0,transform:Q(.75),visibility:"exited"!==e||c?void 0:"hidden"},J[e],v,s.props.style),ref:j},t))}}))}));Z.muiSupportAuto=!0;var ee=Z;var te=function(e){return"string"===typeof e};function ne(e){return Object(y.a)("MuiModal",e)}Object(b.a)("MuiModal",["root","hidden"]);function re(){return(re=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 ie(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}var oe=n(196),ae=n(265);function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))}var ue=n(22),ce=n(122),le=n(121);var fe=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=o.useState(null),u=Object(c.a)(s,2),l=u[0],f=u[1],d=Object(oe.a)(o.isValidElement(n)?n.ref:null,t);return Object(ce.a)((function(){a||f(function(e){return"function"===typeof e?e():e}(r)||document.body)}),[r,a]),Object(ce.a)((function(){if(l&&!a)return Object(le.a)(t,l),function(){Object(le.a)(t,null)}}),[t,l,a]),a?o.isValidElement(n)?o.cloneElement(n,{ref:d}):n:l?ue.createPortal(n,l):l})),de=n(32),he=n(33),pe=n(27);function ge(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ve(e){return parseInt(z(e).getComputedStyle(e).paddingRight,10)||0}function me(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(pe.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&ge(e,i)}))}function ye(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function be(e,t){var n=[],r=e.container;if(!t.disableScrollLock){if(function(e){var t=d(e);return t.body===e?z(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){var i=E(d(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight="".concat(ve(r)+i,"px");var o=d(r).querySelectorAll(".mui-fixed");[].forEach.call(o,(function(e){n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight="".concat(ve(e)+i,"px")}))}var a=r.parentElement,s=z(r),u="HTML"===(null==a?void 0:a.nodeName)&&"scroll"===s.getComputedStyle(a).overflowY?a:r;n.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return function(){n.forEach((function(e){var t=e.value,n=e.el,r=e.property;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var _e=function(){function e(){Object(de.a)(this,e),this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}return Object(he.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ge(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);me(t,e.mount,e.modalRef,r,!0);var i=ye(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}},{key:"mount",value:function(e,t){var n=ye(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=be(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=ye(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(
2),e.modalRef&&ge(e.modalRef,!0),me(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&ge(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}(),we=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xe(e){var t=[],n=[];return Array.from(e.querySelectorAll(we)).forEach((function(e,r){var i=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==i&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;var t=function(t){return e.ownerDocument.querySelector('input[type="radio"]'.concat(t))},n=t('[name="'.concat(e.name,'"]:checked'));return n||(n=t('[name="'.concat(e.name,'"]'))),n!==e}(e))}(e)&&(0===i?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))})),n.sort((function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex})).map((function(e){return e.node})).concat(t)}function Oe(){return!0}var Se=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getTabbable,l=void 0===c?xe:c,f=e.isEnabled,h=void 0===f?Oe:f,p=e.open,g=o.useRef(),v=o.useRef(null),m=o.useRef(null),y=o.useRef(null),b=o.useRef(null),_=o.useRef(!1),x=o.useRef(null),O=Object(oe.a)(t.ref,x),S=o.useRef(null);o.useEffect((function(){p&&x.current&&(_.current=!r)}),[r,p]),o.useEffect((function(){if(p&&x.current){var e=d(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex",-1),_.current&&x.current.focus()),function(){u||(y.current&&y.current.focus&&(g.current=!0,y.current.focus()),y.current=null)}}}),[p]),o.useEffect((function(){if(p&&x.current){var e=d(x.current),t=function(t){var n=x.current;if(null!==n)if(e.hasFocus()&&!a&&h()&&!g.current){if(!n.contains(e.activeElement)){if(t&&b.current!==t.target||e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!_.current)return;var r=[];if(e.activeElement!==v.current&&e.activeElement!==m.current||(r=l(x.current)),r.length>0){var i,o,s=Boolean((null==(i=S.current)?void 0:i.shiftKey)&&"Tab"===(null==(o=S.current)?void 0:o.key)),u=r[0],c=r[r.length-1];s?c.focus():u.focus()}else n.focus()}}else g.current=!1},n=function(t){S.current=t,!a&&h()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(g.current=!0,m.current.focus())};e.addEventListener("focusin",t),e.addEventListener("keydown",n,!0);var r=setInterval((function(){"BODY"===e.activeElement.tagName&&t()}),50);return function(){clearInterval(r),e.removeEventListener("focusin",t),e.removeEventListener("keydown",n,!0)}}}),[r,a,u,h,p,l]);var E=function(e){null===y.current&&(y.current=e.relatedTarget),_.current=!0};return Object(w.jsxs)(o.Fragment,{children:[Object(w.jsx)("div",{tabIndex:0,onFocus:E,ref:v,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:O,onFocus:function(e){null===y.current&&(y.current=e.relatedTarget),_.current=!0,b.current=e.target;var n=t.props.onFocus;n&&n(e)}}),Object(w.jsx)("div",{tabIndex:0,onFocus:E,ref:m,"data-test":"sentinelEnd"})]})},Ee=["BackdropComponent","BackdropProps","children","classes","className","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","theme","onTransitionEnter","onTransitionExited"];var ke=new _e,Ce=o.forwardRef((function(e,t){var n=e.BackdropComponent,r=e.BackdropProps,i=e.children,s=e.classes,l=e.className,f=e.closeAfterTransition,h=void 0!==f&&f,p=e.component,g=void 0===p?"div":p,v=e.components,m=void 0===v?{}:v,y=e.componentsProps,b=void 0===y?{}:y,_=e.container,x=e.disableAutoFocus,O=void 0!==x&&x,S=e.disableEnforceFocus,E=void 0!==S&&S,k=e.disableEscapeKeyDown,C=void 0!==k&&k,T=e.disablePortal,j=void 0!==T&&T,I=e.disableRestoreFocus,A=void 0!==I&&I,P=e.disableScrollLock,N=void 0!==P&&P,M=e.hideBackdrop,R=void 0!==M&&M,L=e.keepMounted,D=void 0!==L&&L,F=e.manager,V=void 0===F?ke:F,U=e.onBackdropClick,B=e.onClose,z=e.onKeyDown,q=e.open,G=e.theme,W=e.onTransitionEnter,H=e.onTransitionExited,K=ie(e,Ee),X=o.use
2State(!0),Y=Object(c.a)(X,2),$=Y[0],Q=Y[1],J=o.useRef({}),Z=o.useRef(null),ee=o.useRef(null),ue=Object(oe.a)(ee,t),ce=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(e),le=function(){return J.current.modalRef=ee.current,J.current.mountNode=Z.current,J.current},de=function(){V.mount(le(),{disableScrollLock:N}),ee.current.scrollTop=0},he=Object(ae.a)((function(){var e=function(e){return"function"===typeof e?e():e}(_)||d(Z.current).body;V.add(le(),e),ee.current&&de()})),pe=o.useCallback((function(){return V.isTopModal(le())}),[V]),ve=Object(ae.a)((function(e){Z.current=e,e&&(q&&pe()?de():ge(ee.current,!0))})),me=o.useCallback((function(){V.remove(le())}),[V]);o.useEffect((function(){return function(){me()}}),[me]),o.useEffect((function(){q?he():ce&&h||me()}),[q,me,ce,h,he]);var ye=re({},e,{classes:s,closeAfterTransition:h,disableAutoFocus:O,disableEnforceFocus:E,disableEscapeKeyDown:C,disablePortal:j,disableRestoreFocus:A,disableScrollLock:N,exited:$,hideBackdrop:R,keepMounted:D}),be=function(e){var t=e.open,n=e.exited,r=e.classes,i={root:["root",!t&&n&&"hidden"]};return Object(u.a)(i,ne,r)}(ye);if(!D&&!q&&(!ce||$))return null;var _e={};void 0===i.props.tabIndex&&(_e.tabIndex="-1"),ce&&(_e.onEnter=se((function(){Q(!1),W&&W()}),i.props.onEnter),_e.onExited=se((function(){Q(!0),H&&H(),h&&me()}),i.props.onExited));var we=m.Root||g,xe=b.root||{};return Object(w.jsx)(fe,{ref:ve,container:_,disablePortal:j,children:Object(w.jsxs)(we,re({role:"presentation"},xe,!te(we)&&{as:g,ownerState:re({},ye,xe.ownerState),theme:G},K,{ref:ue,onKeyDown:function(e){z&&z(e),"Escape"===e.key&&pe()&&(C||(e.stopPropagation(),B&&B(e,"escapeKeyDown")))},className:Object(a.a)(be.root,xe.className,l),children:[!R&&n?Object(w.jsx)(n,re({open:q,onClick:function(e){e.target===e.currentTarget&&(U&&U(e),B&&B(e,"backdropClick"))}},r)):null,Object(w.jsx)(Se,{disableEnforceFocus:E,disableAutoFocus:O,disableRestoreFocus:A,isEnabled:pe,open:q,children:o.cloneElement(i,_e)})]}))})}));function Te(e){return Object(y.a)("MuiBackdrop",e)}Object(b.a)("MuiBackdrop",["root","invisible"]);var je=["classes","className","invisible","component","components","componentsProps","theme"],Ie=o.forwardRef((function(e,t){var n=e.classes,r=e.className,i=e.invisible,o=void 0!==i&&i,s=e.component,c=void 0===s?"div":s,l=e.components,f=void 0===l?{}:l,d=e.componentsProps,h=void 0===d?{}:d,p=e.theme,g=ie(e,je),v=re({},e,{classes:n,invisible:o}),m=function(e){var t=e.classes,n={root:["root",e.invisible&&"invisible"]};return Object(u.a)(n,Te,t)}(v),y=f.Root||c,b=h.root||{};return Object(w.jsx)(y,re({"aria-hidden":!0},b,!te(y)&&{as:c,ownerState:re({},v,b.ownerState),theme:p},{ref:t},g,{className:Object(a.a)(m.root,b.className,r)}))})),Ae=n(95),Pe=["appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Ne={entering:{opacity:1},entered:{opacity:1}},Me={enter:Ae.b.enteringScreen,exit:Ae.b.leavingScreen},Re=o.forwardRef((function(e,t){var n=e.appear,a=void 0===n||n,s=e.children,u=e.easing,c=e.in,l=e.onEnter,f=e.onEntered,d=e.onEntering,h=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,m=e.timeout,y=void 0===m?Me:m,b=e.TransitionComponent,_=void 0===b?G.a:b,x=Object(i.a)(e,Pe),O=K(),S=o.useRef(null),E=Object(C.a)(s.ref,t),k=Object(C.a)(S,E),T=function(e){return function(t){if(e){var n=S.current;void 0===t?e(n):e(n,t)}}},j=T(d),I=T((function(e,t){X(e);var n=Y({style:v,timeout:y,easing:u},{mode:"enter"});e.style.webkitTransition=O.transitions.create("opacity",n),e.style.transition=O.transitions.create("opacity",n),l&&l(e,t)})),A=T(f),P=T(g),N=T((function(e){var t=Y({style:v,timeout:y,easing:u},{mode:"exit"});e.style.webkitTransition=O.transitions.create("opacity",t),e.style.transition=O.transitions.create("opacity",t),h&&h(e)})),M=T(p);return Object(w.jsx)(_,Object(r.a)({appear:a,in:c,nodeRef:S,onEnter:I,onEntered:A,onEntering:j,onExit:N,onExited:M,onExiting:P,timeout:y},x,{children:function(e,t){return o.cloneElement(s,Object(r.a)({style:Object(r.a)({opacity:0,visibility:"exited"!==e||c?void 0:"hidden"},Ne[e],v,s.props.style),ref:k},t))}}))})),Le=["children","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],De=Object(g.a)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.invisible&&t.invisible]}})((function(e){var t=e.ownerState;return Object(r.a)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})})),Fe=o.forwardRef((function(e,t){var n,o=Object(v.a)({props:e,name:"MuiBackdrop"}),a=o.children,s=o.components,u=void 0===s?{}
2:s,c=o.componentsProps,l=void 0===c?{}:c,f=o.className,d=o.invisible,h=void 0!==d&&d,p=o.open,g=o.transitionDuration,m=o.TransitionComponent,y=void 0===m?Re:m,b=Object(i.a)(o,Le),_=function(e){return e.classes}(Object(r.a)({},o,{invisible:h}));return Object(w.jsx)(y,Object(r.a)({in:p,timeout:g},b,{children:Object(w.jsx)(Ie,{className:f,invisible:h,components:Object(r.a)({Root:De},u),componentsProps:{root:Object(r.a)({},l.root,(!u.Root||!te(u.Root))&&{ownerState:Object(r.a)({},null==(n=l.root)?void 0:n.ownerState)})},classes:_,ref:t,children:a})}))})),Ve=["BackdropComponent","closeAfterTransition","children","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted"],Ue=Object(g.a)("div",{name:"MuiModal",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,!n.open&&n.exited&&t.hidden]}})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({position:"fixed",zIndex:t.zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})})),Be=Object(g.a)(Fe,{name:"MuiModal",slot:"Backdrop",overridesResolver:function(e,t){return t.backdrop}})({zIndex:-1}),ze=o.forwardRef((function(e,t){var n,a=Object(v.a)({name:"MuiModal",props:e}),s=a.BackdropComponent,u=void 0===s?Be:s,l=a.closeAfterTransition,f=void 0!==l&&l,d=a.children,h=a.components,p=void 0===h?{}:h,g=a.componentsProps,m=void 0===g?{}:g,y=a.disableAutoFocus,b=void 0!==y&&y,_=a.disableEnforceFocus,x=void 0!==_&&_,O=a.disableEscapeKeyDown,S=void 0!==O&&O,E=a.disablePortal,k=void 0!==E&&E,C=a.disableRestoreFocus,T=void 0!==C&&C,j=a.disableScrollLock,I=void 0!==j&&j,A=a.hideBackdrop,P=void 0!==A&&A,N=a.keepMounted,M=void 0!==N&&N,R=Object(i.a)(a,Ve),L=o.useState(!0),D=Object(c.a)(L,2),F=D[0],V=D[1],U={closeAfterTransition:f,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:k,disableRestoreFocus:T,disableScrollLock:I,hideBackdrop:P,keepMounted:M},B=function(e){return e.classes}(Object(r.a)({},a,U,{exited:F}));return Object(w.jsx)(Ce,Object(r.a)({components:Object(r.a)({Root:Ue},p),componentsProps:{root:Object(r.a)({},m.root,(!p.Root||!te(p.Root))&&{ownerState:Object(r.a)({},null==(n=m.root)?void 0:n.ownerState)})},BackdropComponent:u,onTransitionEnter:function(){return V(!1)},onTransitionExited:function(){return V(!0)},ref:t},R,{classes:B},U,{children:d}))}));function qe(e){return Object(y.a)("MuiPopover",e)}Object(b.a)("MuiPopover",["root","paper"]);var Ge=["onEntering"],We=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function He(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Ke(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Xe(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function Ye(e){return"function"===typeof e?e():e}var $e=Object(g.a)(ze,{name:"MuiPopover",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),Qe=Object(g.a)(U,{name:"MuiPopover",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Je=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiPopover"}),s=n.action,c=n.anchorEl,l=n.anchorOrigin,f=void 0===l?{vertical:"top",horizontal:"left"}:l,d=n.anchorPosition,p=n.anchorReference,g=void 0===p?"anchorEl":p,m=n.children,y=n.className,b=n.container,_=n.elevation,x=void 0===_?8:_,O=n.marginThreshold,S=void 0===O?16:O,E=n.open,k=n.PaperProps,T=void 0===k?{}:k,j=n.transformOrigin,I=void 0===j?{vertical:"top",horizontal:"left"}:j,A=n.TransitionComponent,P=void 0===A?ee:A,N=n.transitionDuration,M=void 0===N?"auto":N,R=n.TransitionProps,L=(R=void 0===R?{}:R).onEntering,D=Object(i.a)(n.TransitionProps,Ge),F=Object(i.a)(n,We),V=o.useRef(),U=Object(C.a)(V,T.ref),z=Object(r.a)({},n,{anchorOrigin:f,anchorReference:g,elevation:x,marginThreshold:S,PaperProps:T,transformOrigin:I,TransitionComponent:P,transitionDuration:M,TransitionProps:D}),G=function(e){var t=e.classes;return Object(u.a)({root:["root"],paper:["paper"]},qe,t)}(z),W=o.useCallback((function(){if("anchorPosition"===g)return d;var e=Ye(c),t=(e&&1===e.nodeType?e:h(V.current).body).getBoundingClientRect();return{top:t.top+He(t,f.vertical),left:t.left+Ke(t,f.horizontal)}}),[c,f.horizontal,f.vertical,d,g]),H=o.useCallback((function(e){return{vertical:He(e,I.vertical),horizontal:Ke(e,I.horizontal)}}),[I.horizontal,I.vertical]),K=o.useCallback((function(e){var t={width:e.offsetWidth,height:e.offsetHeight},n=H(t);if("none"===g)return{top:null,left:null,transformOrigin:Xe(n)};var r=W(),i=r.top-n.vertical,o=r.left-n.horizontal,a=i+t.height,s=o+t.width,u=q(Ye(c)),l=u.innerHe
2ight-S,f=u.innerWidth-S;if(i<S){var d=i-S;i-=d,n.vertical+=d}else if(a>l){var h=a-l;i-=h,n.vertical+=h}if(o<S){var p=o-S;o-=p,n.horizontal+=p}else if(s>f){var v=s-f;o-=v,n.horizontal+=v}return{top:"".concat(Math.round(i),"px"),left:"".concat(Math.round(o),"px"),transformOrigin:Xe(n)}}),[c,g,W,H,S]),X=o.useCallback((function(){var e=V.current;if(e){var t=K(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[K]);o.useEffect((function(){E&&X()})),o.useImperativeHandle(s,(function(){return E?{updatePosition:function(){X()}}:null}),[E,X]),o.useEffect((function(){if(E){var e=B((function(){X()})),t=q(c);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}}),[c,E,X]);var Y=M;"auto"!==M||P.muiSupportAuto||(Y=void 0);var $=b||(c?h(Ye(c)).body:void 0);return Object(w.jsx)($e,Object(r.a)({BackdropProps:{invisible:!0},className:Object(a.a)(G.root,y),container:$,open:E,ref:t,ownerState:z},F,{children:Object(w.jsx)(P,Object(r.a)({appear:!0,in:E,onEntering:function(e,t){L&&L(e,t),X()},timeout:Y},D,{children:Object(w.jsx)(Qe,Object(r.a)({elevation:x},T,{ref:U,className:Object(a.a)(G.paper,T.className),children:m}))}))}))}));function Ze(e){return Object(y.a)("MuiMenu",e)}Object(b.a)("MuiMenu",["root","paper","list"]);var et=["onEntering"],tt=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],nt={vertical:"top",horizontal:"right"},rt={vertical:"top",horizontal:"left"},it=Object(g.a)(Je,{shouldForwardProp:function(e){return Object(g.b)(e)||"classes"===e},name:"MuiMenu",slot:"Root",overridesResolver:function(e,t){return t.root}})({}),ot=Object(g.a)(U,{name:"MuiMenu",slot:"Paper",overridesResolver:function(e,t){return t.paper}})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),at=Object(g.a)(M,{name:"MuiMenu",slot:"List",overridesResolver:function(e,t){return t.list}})({outline:0}),st=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiMenu"}),s=n.autoFocus,c=void 0===s||s,l=n.children,f=n.disableAutoFocusItem,d=void 0!==f&&f,h=n.MenuListProps,p=void 0===h?{}:h,g=n.onClose,m=n.open,y=n.PaperProps,b=void 0===y?{}:y,_=n.PopoverClasses,x=n.transitionDuration,O=void 0===x?"auto":x,S=n.TransitionProps,E=(S=void 0===S?{}:S).onEntering,k=n.variant,C=void 0===k?"selectedMenu":k,T=Object(i.a)(n.TransitionProps,et),j=Object(i.a)(n,tt),I=K(),A="rtl"===I.direction,P=Object(r.a)({},n,{autoFocus:c,disableAutoFocusItem:d,MenuListProps:p,onEntering:E,PaperProps:b,transitionDuration:O,TransitionProps:T,variant:C}),N=function(e){var t=e.classes;return Object(u.a)({root:["root"],paper:["paper"],list:["list"]},Ze,t)}(P),M=c&&!d&&m,R=o.useRef(null),L=-1;return o.Children.map(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===C&&e.props.selected||-1===L)&&(L=t))})),Object(w.jsx)(it,Object(r.a)({classes:_,onClose:g,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?nt:rt,PaperProps:Object(r.a)({component:ot},b,{classes:Object(r.a)({},b.classes,{root:N.paper})}),className:N.root,open:m,ref:t,transitionDuration:O,TransitionProps:Object(r.a)({onEntering:function(e,t){R.current&&R.current.adjustStyleForScrollbar(e,I),E&&E(e,t)}},T),ownerState:P},j,{children:Object(w.jsx)(at,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:R,autoFocus:c&&(-1===L||d),autoFocusItem:M,variant:C},p,{className:Object(a.a)(N.list,p.className),children:l}))}))}));function ut(e){return Object(y.a)("MuiNativeSelect",e)}var ct=Object(b.a)("MuiNativeSelect",["root","select","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),lt=["className","disabled","IconComponent","inputRef","variant"],ft=function(e){var t,n=e.ownerState,i=e.theme;return Object(r.a)((t={MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===i.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"}},Object(l.a)(t,"&.".concat(ct.disabled),{cursor:"default"}),Object(l.a)(t,"&[multiple]",{height:"auto"}),Object(l.a)(t,"&:not([multiple]) option, &:not([multiple]) optgroup",{backgroundColor:i.palette.background.paper}),Object(l.a)(t,"&&&",{paddingRight:24,minWidth:16}),t),"filled"===n.variant&&{"&&&":{paddingRight:32}},"outlined"===n.variant&&{borderRadius:i.shape.borderRadius,"&:focus":{borderRadius:i.shape.borderRadius},"&&&":{paddingRight:32}})},dt=Object(g.a)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:g.b,overridesResolver:function(e,t){var n=e.ownerState;return[t.select,t[n.variant]]}})(ft),ht=function(e){var t=e.ownerState,n=e.theme;return Object(r.a)(Object(l.a)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:n.palette.action.active},"&.".concat(ct.disabled),{color:n.palette.action.disabled}),t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7})},pt=Object(g.a)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Object(p.a)(n.variant))],n.open&&t.iconOpen]}})(ht),gt=o.forwardRef((function(e,t){var n=e.className,s=e.disabled,c=e.IconComponent,l=e.inputRef,f=e.variant,d=void 0===f?"standard":f,h=Object(i.a)(e,lt),g=Object(r.a)({},e,{disabled:s,variant:d}),v=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.open,o={select:["select",n,r&&"disabled"],icon:["icon","icon".concat(Object(p.a)(n)),i&&"iconOpen",r&&"disabled"]};return Object(u.a)(o,ut,t)}(g);return Object(w.jsxs)(o.Fragment,{children:[Object(w.jsx)(dt,Object(r.a)({ownerState:g,className:Object(a.a)(v.select,n),disabled:s,ref:l||t},h)),e.multiple?null:Object(w.jsx)(pt,{as:c,ownerState:g,className:v.icon})]})})),vt=n(72);var mt=function(e){var t=e.controlled,n=e.default,r=(e.name,e.state,o.useRef(void 0!==t).current),i=o.useState(n),a=Object(c.a)(i,2),s=a[0],u=a[1];return[r?t:s,o.useCallback((function(e){r||u(e)}),[])]};function yt(e){return Object(y.a)("MuiSelect",e)}var bt=Object(b.a)("MuiSelect",["root","select","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]),_t=["aria-describedby","aria-label","autoF
2ocus","autoWidth","children","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],wt=Object(g.a)("div",{name:"MuiSelect",slot:"Select",overridesResolver:function(e,t){var n=e.ownerState;return[Object(l.a)({},"&.".concat(bt.select),t.select),Object(l.a)({},"&.".concat(bt.select),t[n.variant])]}})(ft,Object(l.a)({},"&.".concat(bt.select),{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"})),xt=Object(g.a)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:function(e,t){var n=e.ownerState;return[t.icon,n.variant&&t["icon".concat(Object(p.a)(n.variant))],n.open&&t.iconOpen]}})(ht),Ot=Object(g.a)("input",{shouldForwardProp:function(e){return Object(g.c)(e)&&"classes"!==e},name:"MuiSelect",slot:"NativeInput",overridesResolver:function(e,t){return t.nativeInput}})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function St(e,t){return"object"===typeof t&&null!==t?e===t:String(e)===String(t)}function Et(e){return null==e||"string"===typeof e&&!e.trim()}var kt=o.forwardRef((function(e,t){var n=e["aria-describedby"],s=e["aria-label"],l=e.autoFocus,d=e.autoWidth,g=e.children,v=e.className,m=e.defaultValue,y=e.disabled,b=e.displayEmpty,_=e.IconComponent,x=e.inputRef,O=e.labelId,S=e.MenuProps,E=void 0===S?{}:S,k=e.multiple,T=e.name,j=e.onBlur,I=e.onChange,A=e.onClose,P=e.onFocus,N=e.onOpen,M=e.open,R=e.readOnly,L=e.renderValue,D=e.SelectDisplayProps,F=void 0===D?{}:D,V=e.tabIndex,U=e.value,B=e.variant,z=void 0===B?"standard":B,q=Object(i.a)(e,_t),G=mt({controlled:U,default:m,name:"Select"}),W=Object(c.a)(G,2),H=W[0],K=W[1],X=o.useRef(null),Y=o.useRef(null),$=o.useState(null),Q=Object(c.a)($,2),J=Q[0],Z=Q[1],ee=o.useRef(null!=M).current,te=o.useState(),ne=Object(c.a)(te,2),re=ne[0],ie=ne[1],oe=o.useState(!1),ae=Object(c.a)(oe,2),se=ae[0],ue=ae[1],ce=Object(C.a)(t,x),le=o.useCallback((function(e){Y.current=e,e&&Z(e)}),[]);o.useImperativeHandle(ce,(function(){return{focus:function(){Y.current.focus()},node:X.current,value:H}}),[H]),o.useEffect((function(){l&&Y.current.focus()}),[l]),o.useEffect((function(){var e=h(Y.current).getElementById(O);if(e){var t=function(){getSelection().isCollapsed&&Y.current.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}),[O]);var fe,de,he=function(e,t){e?N&&N(t):A&&A(t),ee||(ie(d?null:J.clientWidth),ue(e))},pe=o.Children.toArray(g),ge=function(e){return function(t){var n;if(t.currentTarget.hasAttribute("tabindex")){if(k){n=Array.isArray(H)?H.slice():[];var r=H.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),H!==n&&(K(n),I)){var i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:T}}),I(o,e)}k||he(!1,t)}}},ve=null!==J&&(ee?M:se);delete q["aria-invalid"];var me=[],ye=!1;(Object(vt.b)({value:H})||b)&&(L?fe=L(H):ye=!0);var be=pe.map((function(e){if(!o.isValidElement(e))return null;var t;if(k){if(!Array.isArray(H))throw new Error(Object(f.a)(2));(t=H.some((function(t){return St(t,e.props.value)})))&&ye&&me.push(e.props.children)}else(t=St(H,e.props.value))&&ye&&(de=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ge(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));ye&&(fe=k?me.join(", "):de);var _e,we=re;!d&&ee&&J&&(we=J.clientWidth),_e="undefined"!==typeof V?V:y?null:0;var xe=F.id||(T?"mui-component-select-".concat(T):void 0),Oe=Object(r.a)({},e,{variant:z,value:H,open:ve}),Se=function(e){var t=e.classes,n=e.variant,r=e.disabled,i=e.open,o={select:["select",n,r&&"disabled"],icon:["icon","icon".concat(Object(p.a)(n)),i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Object(u.a)(o,yt,t)}(Oe);return Object(w.jsxs)(o.Fragment,{children:[Object(w.jsx)(wt,Object(r.a)({ref:le,tabIndex:_e,role:"button","aria-disabled":y?"true":void 0,"aria-expanded":ve?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[O,xe].filter(
2Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:function(e){if(!R){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),he(!0,e))}},onMouseDown:y||R?null:function(e){0===e.button&&(e.preventDefault(),Y.current.focus(),he(!0,e))},onBlur:function(e){!ve&&j&&(Object.defineProperty(e,"target",{writable:!0,value:{value:H,name:T}}),j(e))},onFocus:P},F,{ownerState:Oe,className:Object(a.a)(Se.select,v,F.className),id:xe,children:Et(fe)?Object(w.jsx)("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:"&#8203;"}}):fe})),Object(w.jsx)(Ot,Object(r.a)({value:Array.isArray(H)?H.join(","):H,name:T,ref:X,"aria-hidden":!0,onChange:function(e){var t=pe.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=pe[t];K(n.props.value),I&&I(e,n)}},tabIndex:-1,disabled:y,className:Se.nativeInput,autoFocus:l,ownerState:Oe},q)),Object(w.jsx)(xt,{as:_,className:Se.icon,ownerState:Oe}),Object(w.jsx)(st,Object(r.a)({id:"menu-".concat(T||""),anchorEl:J,open:ve,onClose:function(e){he(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},E,{MenuListProps:Object(r.a)({"aria-labelledby":O,role:"listbox",disableListWrap:!0},E.MenuListProps),PaperProps:Object(r.a)({},E.PaperProps,{style:Object(r.a)({minWidth:we},null!=E.PaperProps?E.PaperProps.style:null)}),children:be}))]})})),Ct=n(60),Tt=n(59);function jt(e){return Object(y.a)("MuiSvgIcon",e)}Object(b.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var It=["children","className","color","component","fontSize","htmlColor","titleAccess","viewBox"],At=Object(g.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat(Object(p.a)(n.color))],t["fontSize".concat(Object(p.a)(n.fontSize))]]}})((function(e){var t,n,r=e.theme,i=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:r.transitions.create("fill",{duration:r.transitions.duration.shorter}),fontSize:{inherit:"inherit",small:r.typography.pxToRem(20),medium:r.typography.pxToRem(24),large:r.typography.pxToRem(35)}[i.fontSize],color:null!=(t=null==(n=r.palette[i.color])?void 0:n.main)?t:{action:r.palette.action.active,disabled:r.palette.action.disabled,inherit:void 0}[i.color]}})),Pt=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiSvgIcon"}),o=n.children,s=n.className,c=n.color,l=void 0===c?"inherit":c,f=n.component,d=void 0===f?"svg":f,h=n.fontSize,g=void 0===h?"medium":h,m=n.htmlColor,y=n.titleAccess,b=n.viewBox,_=void 0===b?"0 0 24 24":b,x=Object(i.a)(n,It),O=Object(r.a)({},n,{color:l,component:d,fontSize:g,viewBox:_}),S=function(e){var t=e.color,n=e.fontSize,r=e.classes,i={root:["root","inherit"!==t&&"color".concat(Object(p.a)(t)),"fontSize".concat(Object(p.a)(n))]};return Object(u.a)(i,jt,r)}(O);return Object(w.jsxs)(At,Object(r.a)({as:d,className:Object(a.a)(S.root,s),ownerState:O,focusable:"false",viewBox:_,color:m,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:t},x,{children:[o,y?Object(w.jsx)("title",{children:y}):null]}))}));Pt.muiName="SvgIcon";var Nt=Pt;var Mt=function(e,t){var n=function(n,i){return Object(w.jsx)(Nt,Object(r.a)({"data-testid":"".concat(t,"Icon"),ref:i},n,{children:e}))};return n.muiName=Nt.muiName,o.memo(o.forwardRef(n))}(Object(w.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Rt=n(78),Lt=["onChange","maxRows","minRows","style","value"];function Dt(e,t){return parseInt(e[t],10)||0}var Ft={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Vt=o.forwardRef((function(e,t){var n=e.onChange,a=e.maxRows,s=e.minRows,u=void 0===s?1:s,l=e.style,f=e.value,d=Object(i.a)(e,Lt),h=o.useRef(null!=f).current,p=o.useRef(null),g=Object(C.a)(t,p),v=o.useRef(null),m=o.useRef(0),y=o.useState({}),b=Object(c.a)(y,2),_=b[0],x=b[1],O=o.useCallback((function(){var t=p.current,n=q(t).getComputedStyle(t);if("0px"!==n.width){var r=v.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=Dt(n,"padding-bottom")+Dt(n,"padding-top"),s=Dt(n,"border-bottom-width")+Dt(n,"border-top-width"),c=r.scrollHeight;r.value="x";var l=r.scrollHeight,f=c;u&&(f=Math.max(Number(u)*l,f)),a&&(f=Math.min(Number(a)*l,f));var d=(f=Math.max(f,l))+("border-box"===i?o+s:0),h=Math.abs(f-c)<=1;x((function(e){return m.current<20&&(d>0&&Math.abs((e.outerHeightStyle||0)-d)>1||e.overflow!==h)?(m.current+=1,{overflow:h,outerHeightStyle:d}):e}))}}),[a,u,e.placeholder]);o.useEffect((function(){var e,t=B((function(){m.current=0,O()})),n=q(p.current);return n.addEventListener("resize",t),"undefined"!==typeof ResizeObserver&&(e=new ResizeObserver(t)).observe(p.current),function(){t.clear(),n.removeEventListener("resize",t),e&&e.disconnect()}}),[O]),Object(T.a)((function(){O()})),o.useEffect((function(){m.current=0}),[f]);return Object(w.jsxs)(o.Fragment,{children:[Object(w.jsx)("textarea",Object(r.a)({value:f,onChange:function(e){m.current=0,h||O(),n&&n(e)},ref:g,rows:u,style:Object(r.a)({height:_.outerHeightStyle,overflow:_.overflow?"hidden":null},l)}
2,d)),Object(w.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:v,tabIndex:-1,style:Object(r.a)({},Ft,l,{padding:0})})]})})),Ut=n(266);var Bt=function(e){return Object(w.jsx)(Ut.a,Object(r.a)({},e,{defaultTheme:H.a}))};function zt(e){return Object(y.a)("MuiInputBase",e)}var qt=Object(b.a)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Gt=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],Wt=function(e,t){var n=e.ownerState;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t["color".concat(Object(p.a)(n.color))],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ht=function(e,t){var n=e.ownerState;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Kt=Object(g.a)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Wt})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({},t.typography.body1,Object(l.a)({color:t.palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center"},"&.".concat(qt.disabled),{color:t.palette.text.disabled,cursor:"default"}),n.multiline&&Object(r.a)({padding:"4px 0 5px"},"small"===n.size&&{paddingTop:1}),n.fullWidth&&{width:"100%"})})),Xt=Object(g.a)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ht})((function(e){var t,n=e.theme,i=e.ownerState,o="light"===n.palette.mode,a={color:"currentColor",opacity:o?.42:.5,transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})},s={opacity:"0 !important"},u={opacity:o?.42:.5};return Object(r.a)((t={font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":a,"&::-moz-placeholder":a,"&:-ms-input-placeholder":a,"&::-ms-input-placeholder":a,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"}},Object(l.a)(t,"label[data-shrink=false] + .".concat(qt.formControl," &"),{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":u,"&:focus::-moz-placeholder":u,"&:focus:-ms-input-placeholder":u,"&:focus::-ms-input-placeholder":u}),Object(l.a)(t,"&.".concat(qt.disabled),{opacity:1,WebkitTextFillColor:n.palette.text.disabled}),Object(l.a)(t,"&:-webkit-autofill",{animationDuration:"5000s",animationName:"mui-auto-fill"}),t),"small"===i.size&&{paddingTop:1},i.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===i.type&&{MozAppearance:"textfield",WebkitAppearance:"textfield"})})),Yt=Object(w.jsx)(Bt,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),$t=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiInputBase"}),s=n["aria-describedby"],l=n.autoComplete,d=n.autoFocus,h=n.className,g=n.components,m=void 0===g?{}:g,y=n.componentsProps,b=void 0===y?{}:y,_=n.defaultValue,x=n.disabled,O=n.endAdornment,S=n.fullWidth,E=void 0!==S&&S,k=n.id,j=n.inputComponent,I=void 0===j?"input":j,A=n.inputProps,P=void 0===A?{}:A,N=n.inputRef,M=n.maxRows,R=n.minRows,L=n.multiline,D=void 0!==L&&L,F=n.name,V=n.onBlur,U=n.onChange,B=n.onClick,z=n.onFocus,q=n.onKeyDown,G=n.onKeyUp,W=n.placeholder,H=n.readOnly,X=n.renderSuffix,Y=n.rows,$=n.startAdornment,Q=n.type,J=void 0===Q?"text":Q,Z=n.value,ee=Object(i.a)(n,Gt),ne=K(),re=null!=P.value?P.value:Z,ie=o.useRef(null!=re).current,oe=o.useRef(),ae=o.useCallback((function(e){0}),[]),se=Object(C.a)(P.ref,ae),ue=Object(C.a)(N,se),ce=Object(C.a)(oe,ue),le=o.useState(!1),fe=Object(c.a)(le,2),de=fe[0],he=fe[1],pe=Object(Tt.a)();var ge=Object(Ct.a)({props:n,muiFormControl:pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=pe?pe.focused:de,o.useEffect((function(){!pe&&x&&de&&(he(!1),V&&V())}),[pe,x,de,V]);var ve=pe&&pe.onFilled,me=pe&&pe.onEmpty,ye=o.useCallback((function(e){Object(vt.b)(e)?ve&&ve():me&&me()}),[ve,me]);Object(T.a)((function(){ie&&ye({value:re})}),[re,ye,ie]);o.useEffect((function(){ye(oe.current)}),[]);var be=I,_e=P;
2D&&"input"===be&&(_e=Y?Object(r.a)({type:void 0,minRows:Y,maxRows:Y},_e):Object(r.a)({type:void 0,maxRows:M,minRows:R},_e),be=Vt);o.useEffect((function(){pe&&pe.setAdornedStart(Boolean($))}),[pe,$]);var we=Object(r.a)({},n,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:O,error:ge.error,focused:ge.focused,formControl:pe,fullWidth:E,hiddenLabel:ge.hiddenLabel,multiline:D,size:ge.size,startAdornment:$,type:J}),xe=function(e){var t=e.classes,n=e.color,r=e.disabled,i=e.error,o=e.endAdornment,a=e.focused,s=e.formControl,c=e.fullWidth,l=e.hiddenLabel,f=e.multiline,d=e.size,h=e.startAdornment,g=e.type,v={root:["root","color".concat(Object(p.a)(n)),r&&"disabled",i&&"error",c&&"fullWidth",a&&"focused",s&&"formControl","small"===d&&"sizeSmall",f&&"multiline",h&&"adornedStart",o&&"adornedEnd",l&&"hiddenLabel"],input:["input",r&&"disabled","search"===g&&"inputTypeSearch",f&&"inputMultiline","small"===d&&"inputSizeSmall",l&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd"]};return Object(u.a)(v,zt,t)}(we),Oe=m.Root||Kt,Se=b.root||{},Ee=m.Input||Xt;return _e=Object(r.a)({},_e,b.input),Object(w.jsxs)(o.Fragment,{children:[Yt,Object(w.jsxs)(Oe,Object(r.a)({},Se,!te(Oe)&&{ownerState:Object(r.a)({},we,Se.ownerState),theme:ne},{ref:t,onClick:function(e){oe.current&&e.currentTarget===e.target&&oe.current.focus(),B&&B(e)}},ee,{className:Object(a.a)(xe.root,Se.className,h),children:[$,Object(w.jsx)(Rt.a.Provider,{value:null,children:Object(w.jsx)(Ee,Object(r.a)({ownerState:we,"aria-invalid":ge.error,"aria-describedby":s,autoComplete:l,autoFocus:d,defaultValue:_,disabled:ge.disabled,id:k,onAnimationStart:function(e){ye("mui-auto-fill-cancel"===e.animationName?oe.current:{value:"x"})},name:F,placeholder:W,readOnly:H,required:ge.required,rows:Y,value:re,onKeyDown:q,onKeyUp:G,type:J},_e,!te(Ee)&&{as:be,ownerState:Object(r.a)({},we,_e.ownerState),theme:ne},{ref:ce,className:Object(a.a)(xe.input,_e.className,P.className),onBlur:function(e){V&&V(e),P.onBlur&&P.onBlur(e),pe&&pe.onBlur?pe.onBlur(e):he(!1)},onChange:function(e){if(!ie){var t=e.target||oe.current;if(null==t)throw new Error(Object(f.a)(1));ye({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];P.onChange&&P.onChange.apply(P,[e].concat(r)),U&&U.apply(void 0,[e].concat(r))},onFocus:function(e){ge.disabled?e.stopPropagation():(z&&z(e),P.onFocus&&P.onFocus(e),pe&&pe.onFocus?pe.onFocus(e):he(!0))}}))}),O,X?X(Object(r.a)({},ge,{startAdornment:$})):null]}))]})}));function Qt(e){return Object(y.a)("MuiInput",e)}var Jt=Object(b.a)("MuiInput",["root","formControl","focused","disabled","colorSecondary","underline","error","sizeSmall","multiline","fullWidth","input","inputSizeSmall","inputMultiline","inputTypeSearch"]),Zt=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],en=Object(g.a)(Kt,{shouldForwardProp:function(e){return Object(g.b)(e)||"classes"===e},name:"MuiInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat(Object(pe.a)(Wt(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n=e.theme,i=e.ownerState,o="light"===n.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return Object(r.a)({position:"relative"},i.formControl&&{"label + &":{marginTop:16}},!i.disableUnderline&&(t={"&:after":{borderBottom:"2px solid ".concat(n.palette[i.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"}},Object(l.a)(t,"&.".concat(Jt.focused,":after"),{transform:"scaleX(1)"}),Object(l.a)(t,"&.".concat(Jt.error,":after"),{borderBottomColor:n.palette.error.main,transform:"scaleX(1)"}),Object(l.a)(t,"&:before",{borderBottom:"1px solid ".concat(o),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"}),Object(l.a)(t,"&:hover:not(.".concat(Jt.disabled,"):before"),{borderBottom:"2px s
2olid ".concat(n.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(o)}}),Object(l.a)(t,"&.".concat(Jt.disabled,":before"),{borderBottomStyle:"dotted"}),t))})),tn=Object(g.a)(Xt,{name:"MuiInput",slot:"Input",overridesResolver:Ht})({}),nn=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiInput"}),o=n.disableUnderline,a=n.components,c=void 0===a?{}:a,l=n.componentsProps,f=n.fullWidth,d=void 0!==f&&f,h=n.inputComponent,p=void 0===h?"input":h,g=n.multiline,m=void 0!==g&&g,y=n.type,b=void 0===y?"text":y,_=Object(i.a)(n,Zt),x=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},i=Object(u.a)(n,Qt,t);return Object(r.a)({},t,i)}(n),O={root:{ownerState:{disableUnderline:o}}},S=l?Object(s.a)(l,O):O;return Object(w.jsx)($t,Object(r.a)({components:Object(r.a)({Root:en,Input:tn},c),componentsProps:S,fullWidth:d,inputComponent:p,multiline:m,ref:t,type:b},_,{classes:x}))}));nn.muiName="Input";var rn=nn;function on(e){return Object(y.a)("MuiFilledInput",e)}var an=Object(b.a)("MuiFilledInput",["root","colorSecondary","underline","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","hiddenLabel","input","inputSizeSmall","inputHiddenLabel","inputMultiline","inputAdornedStart","inputAdornedEnd"]),sn=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],un=Object(g.a)(Kt,{shouldForwardProp:function(e){return Object(g.b)(e)||"classes"===e},name:"MuiFilledInput",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[].concat(Object(pe.a)(Wt(e,t)),[!n.disableUnderline&&t.underline])}})((function(e){var t,n,i=e.theme,o=e.ownerState,a="light"===i.palette.mode,s=a?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",u=a?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return Object(r.a)((t={position:"relative",backgroundColor:u,borderTopLeftRadius:i.shape.borderRadius,borderTopRightRadius:i.shape.borderRadius,transition:i.transitions.create("background-color",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),"&:hover":{backgroundColor:a?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:u}}},Object(l.a)(t,"&.".concat(an.focused),{backgroundColor:u}),Object(l.a)(t,"&.".concat(an.disabled),{backgroundColor:a?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}),t),!o.disableUnderline&&(n={"&:after":{borderBottom:"2px solid ".concat(i.palette[o.color].main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:i.transitions.create("transform",{duration:i.transitions.duration.shorter,easing:i.transitions.easing.easeOut}),pointerEvents:"none"}},Object(l.a)(n,"&.".concat(an.focused,":after"),{transform:"scaleX(1)"}),Object(l.a)(n,"&.".concat(an.error,":after"),{borderBottomColor:i.palette.error.main,transform:"scaleX(1)"}),Object(l.a)(n,"&:before",{borderBottom:"1px solid ".concat(s),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:i.transitions.create("border-bottom-color",{duration:i.transitions.duration.shorter}),pointerEvents:"none"}),Object(l.a)(n,"&:hover:not(.".concat(an.disabled,"):before"),{borderBottom:"1px solid ".concat(i.palette.text.primary)}),Object(l.a)(n,"&.".concat(an.disabled,":before"),{borderBottomStyle:"dotted"}),n),o.startAdornment&&{paddingLeft:12},o.endAdornment&&{paddingRight:12},o.multiline&&Object(r.a)({padding:"25px 12px 8px"},"small"===o.size&&{paddingTop:21,paddingBottom:4},o.hiddenLabel&&{paddingTop:16,paddingBottom:17}))})),cn=Object(g.a)(Xt,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ht})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},"small"===n.size&&{paddingTop:21,paddingBottom:4},n.hiddenLabel&&{paddingTop:16,paddingBottom:17},n.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0},n.hiddenLabel&&"small"===n.size&&{paddingTop:8,paddingBottom:9})})),ln=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiFilledInput"}),o=n.components,a=void 0===o?{}:o,c=n.componentsProps,l=n.fullWidth,f=void 0!==l&&l,d=n.inputComponent,h=void 0===d?"input":d,p=n.multiline,g=void 0!==p&&p,m=n.type,y=void 0===m?"text":m,b=Object(i.a)(n,sn),_=Object(r.a)({},n,{fullWidth:f,inputComponent:h,multiline:g,type:y}),x=function(e){var t=e.classes,n={root:["root",!e.disableUnderline&&"underline"],input:["input"]},i=Object(u.a)(n,on,t);return Object(r.a)({},t,i)}(n),O={root:{ownerState:_},input:{ownerState:_}},S=c?Object(s.a)(c,O):O;return Object(w.jsx)($t,Object(r.a)({components:Object(r.a)({Root:un,Input:cn},a),componentsProps:S,fullWidth:f,inputComponent:h,multiline:g,ref:t,type:y},b,{classes:x}))}));ln.muiName="Input";var fn=ln,dn=["children","classes","className","label","notched"],hn=Object(g.a)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),pn=Object(g.a)("legend",{skipSx:!0})((function(e){var t=e.ownerState,n=e.theme;return Object(r.a)({},void 0===t.label&&{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})},void 0!==t.label&&Object(r.a)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},t.notched&&{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}))}));function gn(e){return Object(y.a)("MuiOutlinedInput",e)}var vn=Object(b.a)("MuiOutlinedInput",["root","colorSecondary","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","notchedOutline","input","inputSizeSmall","inputMultiline","inputAdornedStart","inputAdornedEnd"]),mn=["components","fullWidth","inputComponent","label","multiline","notched","type"],yn=Object(g.a)(Kt,{shouldForwardProp:function(e){return Object(g.b)(e)||"classes"===e},name:"MuiOutlinedInput",slot:"Root",overridesResolver:Wt})((function(e){var t,n=e.theme,i=e.ownerState,o="light"===n.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Object(r.a)((t={position:"relative",borderRadius:n.shape.borderRadius},Object(l.a)(t,"&:hover .".concat(vn.notchedOutline),{borderColor:n.palette.text.primary}),Object(l.a)(t,"@media (hover: none)",Object(l.a)({},"&:hover .".concat(vn.notchedOutline),{borderColor:o})),Object(l.a)(t,"&.".concat(vn.focused," .").concat(vn.notchedOutline),{borderColor:n.palette[i.color].main,borderWidth:2}),Object(l.a)(t,"&.".concat(vn.error," .").concat(vn.notchedOutline),{borderColor:n.palette.error.main}),Object(l.a)(t,"&.".concat(vn.disabled," .").concat(vn.notchedOutline),{borderColor:n.palette.action.disabled}),t),i.startAdornment&&{paddingLeft:14},i.endAdornment&&{paddingRight:14},i.multiline&&Object(r.a)({padding:"16.5px 14px"},"small"===i.size&&{padding:"8.5px 14px"}))})),bn=Object(g.a)((function(e){var t=e.className,n=e.label,o=e.notched,a=Object(i.a)(e,dn),s=Object(r.a)({},e,{notched:o,label:n});
2return Object(w.jsx)(hn,Object(r.a)({"aria-hidden":!0,className:t,ownerState:s},a,{children:Object(w.jsx)(pn,{ownerState:s,children:n?Object(w.jsx)("span",{children:n}):Object(w.jsx)("span",{className:"notranslate",dangerouslySetInnerHTML:{__html:"&#8203;"}})})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:function(e,t){return t.notchedOutline}})((function(e){return{borderColor:"light"===e.theme.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}})),_n=Object(g.a)(Xt,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ht})((function(e){var t=e.theme,n=e.ownerState;return Object(r.a)({padding:"16.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},"small"===n.size&&{padding:"8.5px 14px"},n.multiline&&{padding:0},n.startAdornment&&{paddingLeft:0},n.endAdornment&&{paddingRight:0})})),wn=o.forwardRef((function(e,t){var n=Object(v.a)({props:e,name:"MuiOutlinedInput"}),o=n.components,a=void 0===o?{}:o,s=n.fullWidth,c=void 0!==s&&s,l=n.inputComponent,f=void 0===l?"input":l,d=n.label,h=n.multiline,p=void 0!==h&&h,g=n.notched,m=n.type,y=void 0===m?"text":m,b=Object(i.a)(n,mn),_=function(e){var t=e.classes,n=Object(u.a)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gn,t);return Object(r.a)({},t,n)}(n);return Object(w.jsx)($t,Object(r.a)({components:Object(r.a)({Root:yn,Input:_n},a),renderSuffix:function(e){return Object(w.jsx)(bn,{className:_.notchedOutline,label:d,notched:"undefined"!==typeof g?g:Boolean(e.startAdornment||e.filled||e.focused)})},fullWidth:c,inputComponent:f,multiline:p,ref:t,type:y},b,{classes:Object(r.a)({},_,{notchedOutline:null})}))}));wn.muiName="Input";var xn,On,Sn=wn,En=["autoWidth","children","classes","className","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],kn=["root"],Cn=o.forwardRef((function(e,t){var n=Object(v.a)({name:"MuiSelect",props:e}),c=n.autoWidth,l=void 0!==c&&c,f=n.children,d=n.classes,h=void 0===d?{}:d,p=n.className,g=n.displayEmpty,m=void 0!==g&&g,y=n.IconComponent,b=void 0===y?Mt:y,_=n.id,x=n.input,O=n.inputProps,S=n.label,E=n.labelId,k=n.MenuProps,T=n.multiple,j=void 0!==T&&T,I=n.native,A=void 0!==I&&I,P=n.onClose,N=n.onOpen,M=n.open,R=n.renderValue,L=n.SelectDisplayProps,D=n.variant,F=void 0===D?"outlined":D,V=Object(i.a)(n,En),U=A?gt:kt,B=Object(Tt.a)(),z=Object(Ct.a)({props:n,muiFormControl:B,states:["variant"]}).variant||F,q=x||{standard:xn||(xn=Object(w.jsx)(rn,{})),outlined:Object(w.jsx)(Sn,{label:S}),filled:On||(On=Object(w.jsx)(fn,{}))}[z],G=function(e){var t=e.classes;return Object(u.a)({root:["root"]},yt,t)}(Object(r.a)({},n,{classes:h})),W=Object(i.a)(h,kn),H=Object(C.a)(t,q.ref);return o.cloneElement(q,Object(r.a)({inputComponent:U,inputProps:Object(r.a)({children:f,IconComponent:b,variant:z,type:void 0,multiple:j},A?{id:_}:{autoWidth:l,displayEmpty:m,labelId:E,MenuProps:k,onClose:P,onOpen:N,open:M,renderValue:R,SelectDisplayProps:Object(r.a)({id:_},L)},O,{classes:O?Object(s.a)(W,O.classes):W},x?x.props.inputProps:{})},j&&A&&"outlined"===z?{notched:!0}:{},{ref:H,className:Object(a.a)(G.root,q.props.className,p)},V))}));Cn.muiName="Select";t.a=Cn},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(256)),s=n(51),u=n(68),c=n(142),l=(n(74),n(7));function f(e){return e&&e.ownerDocument||document}var d=n(20),h=n(16),p=n(22);function g(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=this,s=function(){e.apply(a,i)};clearTimeout(t),t=setTimeout(s,n)}return r.clear=function(){clearTimeout(t)},r}function v(e){return f(e).defaultView||window}var m=n(69),y=n(279),b=n(258),_=n(64),w=n(25);var x="undefined"!==typeof window?o.useLayoutEffect:o.useEffect;var O=o.forwardRef((function(e,t){var n=e.children,r=e.container,i=e.disablePortal,a=void 0!==i&&i,s=e.onRendered,u=o.useState(null),c=u[0],l=u[1],f=Object(w.a)(o.isValidElement(n)?n.ref:null,t);return x((function(){a||l(function(e){return e="function"===typeof e?e():e,p.findDOMNode(e)}(r)||document.body)}),[r,a]),x((function(){if(c&&!a)return Object(_.a)(t,c),function(){Object(_.a)(t,null)}}),[t,c,a]),x((function(){s&&(c||a)&&s()}),[s,c,a]),a?o.isValidElement(n)?o.cloneElement(n,{ref:f}):n:c?p.createPortal(n,c):c})),S=n(54),E=n(104);var k=n(80),C=n(63);function T(){var e=document.createElement("div");e.style.width="99px",e.style.height="99px",e.style.position="absolute",e.style.top="-9999px",e.style.overflow="scroll",document.body.appendChild(e);var t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}function j(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function I(e){return parseInt(window.getComputedStyle(e)["padding-right"],10)||0}function A(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=[t,n].concat(Object(C.a)(r)),a=["TEMPLATE","SCRIPT","STYLE"];[].forEach.call(e.children,(function(e){1===e.nodeType&&-1===o.indexOf(e)&&-1===a.indexOf(e.tagName)&&j(e,i)}))}function P(e,t){var n=-1;return e.some((function(e,r){return!!t(e)&&(n=r,!0)})),n}function N(e,t){var n,r=[],i=[],o=e.container;if(!t.disableScrollLock){if(function(e){var t=f(e);return t.body===e?v(t).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){var a=T();r.push({value:o.style.paddingRight,key:"padding-right",el:o}),o.style["padding-right"]="".concat(I(o)+a,"px"),n=f(o).querySelectorAll(".mui-fixed"),[].forEach.call(n,(function(e){i.push(e.style.paddingRight),e.style.paddingRight="".concat(I(e)+a,"px")}))}var s=o.parentElement,u="HTML"===s.nodeName&&"scroll"===window.getComputedStyle(s)["overflow-y"]?s:o;
2r.push({value:u.style.overflow,key:"overflow",el:u}),u.style.overflow="hidden"}return function(){n&&[].forEach.call(n,(function(e,t){i[t]?e.style.paddingRight=i[t]:e.style.removeProperty("padding-right")})),r.forEach((function(e){var t=e.value,n=e.el,r=e.key;t?n.style.setProperty(r,t):n.style.removeProperty(r)}))}}var M=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.modals=[],this.containers=[]}return Object(k.a)(e,[{key:"add",value:function(e,t){var n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&j(e.modalRef,!1);var r=function(e){var t=[];return[].forEach.call(e.children,(function(e){e.getAttribute&&"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);A(t,e.mountNode,e.modalRef,r,!0);var i=P(this.containers,(function(e){return e.container===t}));return-1!==i?(this.containers[i].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblingNodes:r}),n)}},{key:"mount",value:function(e,t){var n=P(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];r.restore||(r.restore=N(r,t))}},{key:"remove",value:function(e){var t=this.modals.indexOf(e);if(-1===t)return t;var n=P(this.containers,(function(t){return-1!==t.modals.indexOf(e)})),r=this.containers[n];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(t,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&j(e.modalRef,!0),A(r.container,e.mountNode,e.modalRef,r.hiddenSiblingNodes,!1),this.containers.splice(n,1);else{var i=r.modals[r.modals.length-1];i.modalRef&&j(i.modalRef,!1)}return t}},{key:"isTopModal",value:function(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}]),e}();var R=function(e){var t=e.children,n=e.disableAutoFocus,r=void 0!==n&&n,i=e.disableEnforceFocus,a=void 0!==i&&i,s=e.disableRestoreFocus,u=void 0!==s&&s,c=e.getDoc,l=e.isEnabled,d=e.open,h=o.useRef(),g=o.useRef(null),v=o.useRef(null),m=o.useRef(),y=o.useRef(null),b=o.useCallback((function(e){y.current=p.findDOMNode(e)}),[]),_=Object(w.a)(t.ref,b),x=o.useRef();return o.useEffect((function(){x.current=d}),[d]),!x.current&&d&&"undefined"!==typeof window&&(m.current=c().activeElement),o.useEffect((function(){if(d){var e=f(y.current);r||!y.current||y.current.contains(e.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),y.current.focus());var t=function(){null!==y.current&&(e.hasFocus()&&!a&&l()&&!h.current?y.current&&!y.current.contains(e.activeElement)&&y.current.focus():h.current=!1)},n=function(t){!a&&l()&&9===t.keyCode&&e.activeElement===y.current&&(h.current=!0,t.shiftKey?v.current.focus():g.current.focus())};e.addEventListener("focus",t,!0),e.addEventListener("keydown",n,!0);var i=setInterval((function(){t()}),50);return function(){clearInterval(i),e.removeEventListener("focus",t,!0),e.removeEventListener("keydown",n,!0),u||(m.current&&m.current.focus&&m.current.focus(),m.current=null)}}}),[r,a,u,l,d]),o.createElement(o.Fragment,null,o.createElement("div",{tabIndex:0,ref:g,"data-test":"sentinelStart"}),o.cloneElement(t,{ref:_}),o.createElement("div",{tabIndex:0,ref:v,"data-test":"sentinelEnd"}))},L={root:{zIndex:-1,position:"fixed",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},invisible:{backgroundColor:"transparent"}},D=o.forwardRef((function(e,t){var n=e.invisible,a=void 0!==n&&n,s=e.open,u=Object(i.a)(e,["invisible","open"]);return s?o.createElement("div",Object(r.a)({"aria-hidden":!0,ref:t},u,{style:Object(r.a)({},L.root,a?L.invisible:{},u.style)})):null}));var F=new M,V=o.forwardRef((function(e,t){var n=Object(y.a)(),a=Object(b.a)({name:"MuiModal",props:Object(r.a)({},e),theme:n}),s=a.BackdropComponent,u=void 0===s?D:s,c=a.BackdropProps,l=a.children,d=a.closeAfterTransition,h=void 0!==d&&d,g=a.container,v=a.disableAutoFocus,_=void 0!==v&&v,x=a.disableBackdropClick,k=void 0!==x&&x,C=a.disableEnforceFocus,T=void 0!==C&&C,I=a.disableEscapeKeyDown,A=void 0!==I&&I,P=a.disablePortal,N=void 0!==P&&P,M=a.disableRestoreFocus,L=void 0!==M&&M,V=a.disableScrollLock,U=void 0!==V&&V,B=a.hideBackdrop,z=void 0!==B&&B,q=a.keepMounted,G=void 0!==q&&q,W=a.manager,H=void 0===W?F:W,K=a.onBackdropClick,X=a.onClose,Y=a.onEscapeKeyDown,$=a.onRendered,Q=a.open,J=Object(i.a)(a,["BackdropComponent","BackdropProps","children","closeAfterTransition","container","disableAutoFocus","disableBackdropClick","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onEscapeKeyDown","onRendered","open"]),Z=o.useState(!0),ee=Z[0],te=Z[1],ne=o.useRef({}),re=o.useRef(null),ie=o.useRef(null),oe=Object(w.a)(ie,t),ae=function(e){return!!e.children&&e.children.props.hasOwnProperty("in")}(a),se=function(){return f(re.current)},ue=function(){return ne.current.modalRef=ie.current,ne.current.mountNode=re.current,ne.current},ce=function(){H.mount(ue(),{disableScrollLock:U}),ie.current.scrollTop=0},le=Object(S.a)((function(){var e=function(e){return e="function"===typeof e?e():e,p.findDOMNode(e)}(g)||se().body;H.add(ue(),e),ie.current&&ce()})),fe=o.useCallback((function(){return H.isTopModal(ue())}),[H]),de=Object(S.a)((function(e){re.current=e,e&&($&&$(),Q&&fe()?ce():j(ie.current,!0))})),he=o.useCallback((function(){H.remove(ue())}),[H]);if(o.useEffect((function(){return function(){he()}}),[he]),o.useEffect((function(){Q?le():ae&&h||he()}),[Q,he,ae,h,le]),!G&&!Q&&(!ae||ee))return null;var pe=function(e){return{root:{position:"fixed",zIndex:e.zIndex.modal,right:0,bottom:0,top:0,left:0},hidden:{visibility:"hidden"}}}(n||{zIndex:E.a}
2),ge={};return void 0===l.props.tabIndex&&(ge.tabIndex=l.props.tabIndex||"-1"),ae&&(ge.onEnter=Object(m.a)((function(){te(!1)}),l.props.onEnter),ge.onExited=Object(m.a)((function(){te(!0),h&&he()}),l.props.onExited)),o.createElement(O,{ref:de,container:g,disablePortal:N},o.createElement("div",Object(r.a)({ref:oe,onKeyDown:function(e){"Escape"===e.key&&fe()&&(Y&&Y(e),A||(e.stopPropagation(),X&&X(e,"escapeKeyDown")))},role:"presentation"},J,{style:Object(r.a)({},pe.root,!Q&&ee?pe.hidden:{},J.style)}),z?null:o.createElement(u,Object(r.a)({open:Q,onClick:function(e){e.target===e.currentTarget&&(K&&K(e),!k&&X&&X(e,"backdropClick"))}},c)),o.createElement(R,{disableEnforceFocus:T,disableAutoFocus:_,disableRestoreFocus:L,getDoc:se,isEnabled:fe,open:Q},o.cloneElement(l,ge))))})),U=n(280),B=n(79);function z(){return Object(y.a)()||B.a}function q(e,t){var n=e.timeout,r=e.style,i=void 0===r?{}:r;return{duration:i.transitionDuration||"number"===typeof n?n:n[t.mode]||0,delay:i.transitionDelay}}function G(e){return"scale(".concat(e,", ").concat(Math.pow(e,2),")")}var W={entering:{opacity:1,transform:G(1)},entered:{opacity:1,transform:"none"}},H=o.forwardRef((function(e,t){var n=e.children,a=e.disableStrictModeCompat,u=void 0!==a&&a,c=e.in,l=e.onEnter,f=e.onEntered,d=e.onEntering,h=e.onExit,p=e.onExited,g=e.onExiting,v=e.style,m=e.timeout,y=void 0===m?"auto":m,b=e.TransitionComponent,_=void 0===b?U.a:b,x=Object(i.a)(e,["children","disableStrictModeCompat","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"]),O=o.useRef(),S=o.useRef(),E=z(),k=E.unstable_strictMode&&!u,C=o.useRef(null),T=Object(w.a)(n.ref,t),j=Object(w.a)(k?C:void 0,T),I=function(e){return function(t,n){if(e){var r=k?[C.current,t]:[t,n],i=Object(s.a)(r,2),o=i[0],a=i[1];void 0===a?e(o):e(o,a)}}},A=I(d),P=I((function(e,t){!function(e){e.scrollTop}(e);var n,r=q({style:v,timeout:y},{mode:"enter"}),i=r.duration,o=r.delay;"auto"===y?(n=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=n):n=i,e.style.transition=[E.transitions.create("opacity",{duration:n,delay:o}),E.transitions.create("transform",{duration:.666*n,delay:o})].join(","),l&&l(e,t)})),N=I(f),M=I(g),R=I((function(e){var t,n=q({style:v,timeout:y},{mode:"exit"}),r=n.duration,i=n.delay;"auto"===y?(t=E.transitions.getAutoHeightDuration(e.clientHeight),S.current=t):t=r,e.style.transition=[E.transitions.create("opacity",{duration:t,delay:i}),E.transitions.create("transform",{duration:.666*t,delay:i||.333*t})].join(","),e.style.opacity="0",e.style.transform=G(.75),h&&h(e)})),L=I(p);return o.useEffect((function(){return function(){clearTimeout(O.current)}}),[]),o.createElement(_,Object(r.a)({appear:!0,in:c,nodeRef:k?C:void 0,onEnter:P,onEntered:N,onEntering:A,onExit:R,onExited:L,onExiting:M,addEndListener:function(e,t){var n=k?e:t;"auto"===y&&(O.current=setTimeout(n,S.current||0))},timeout:"auto"===y?null:y},x),(function(e,t){return o.cloneElement(n,Object(r.a)({style:Object(r.a)({opacity:0,transform:G(.75),visibility:"exited"!==e||c?void 0:"hidden"},W[e],v,n.props.style),ref:j},t))}))}));H.muiSupportAuto=!0;var K=H,X=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.component,u=void 0===s?"div":s,c=e.square,f=void 0!==c&&c,d=e.elevation,h=void 0===d?1:d,p=e.variant,g=void 0===p?"elevation":p,v=Object(i.a)(e,["classes","className","component","square","elevation","variant"]);return o.createElement(u,Object(r.a)({className:Object(l.a)(n.root,a,"outlined"===g?n.outlined:n["elevation".concat(h)],!f&&n.rounded),ref:t},v))})),Y=Object(h.a)((function(e){var t={};return e.shadows.forEach((function(e,n){t["elevation".concat(n)]={boxShadow:e}})),Object(r.a)({root:{backgroundColor:e.palette.background.paper,color:e.palette.text.primary,transition:e.transitions.create("box-shadow")},rounded:{borderRadius:e.shape.borderRadius},outlined:{border:"1px solid ".concat(e.palette.divider)}},t)}),{name:"MuiPaper"})(X);function $(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Q(e,t){var n=0;return"number"===typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function J(e){return[e.horizontal,e.vertical].map((function(e){return"number"===typeof e?"".concat(e,"px"):e})).join(" ")}function Z(e){return"function"===typeof e?e():e}var ee=o.forwardRef((function(e,t){var n=e.action,a=e.anchorEl,s=e.anchorOrigin,u=void 0===s?{vertical:"top",horizontal:"left"}:s,c=e.anchorPosition,d=e.anchorReference,h=void 0===d?"anchorEl":d,y=e.children,b=e.classes,_=e.className,w=e.container,x=e.elevation,O=void 0===x?8:x,S=e.getContentAnchorEl,E=e.marginThreshold,k=void 0===E?16:E,C=e.onEnter,T=e.onEntered,j=e.onEntering,I=e.onExit,A=e.onExited,P=e.onExiting,N=e.open,M=e.PaperProps,R=void 0===M?{}:M,L=e.transformOrigin,D=void 0===L?{vertical:"top",horizontal:"left"}:L,F=e.TransitionComponent,U=void 0===F?K:F,B=e.transitionDuration,z=void 0===B?"auto":B,q=e.TransitionProps,G=void 0===q?{}:q,W=Object(i.a)(e,["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","classes","className","container","elevation","getContentAnchorEl","marginThreshold","onEnter","onEntered","onEntering","onExit","onExited","onExiting","o
2pen","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"]),H=o.useRef(),X=o.useCallback((function(e){if("anchorPosition"===h)return c;var t=Z(a),n=(t&&1===t.nodeType?t:f(H.current).body).getBoundingClientRect(),r=0===e?u.vertical:"center";return{top:n.top+$(n,r),left:n.left+Q(n,u.horizontal)}}),[a,u.horizontal,u.vertical,c,h]),ee=o.useCallback((function(e){var t=0;if(S&&"anchorEl"===h){var n=S(e);if(n&&e.contains(n)){var r=function(e,t){for(var n=t,r=0;n&&n!==e;)r+=(n=n.parentElement).scrollTop;return r}(e,n);t=n.offsetTop+n.clientHeight/2-r||0}0}return t}),[u.vertical,h,S]),te=o.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return{vertical:$(e,D.vertical)+t,horizontal:Q(e,D.horizontal)}}),[D.horizontal,D.vertical]),ne=o.useCallback((function(e){var t=ee(e),n={width:e.offsetWidth,height:e.offsetHeight},r=te(n,t);if("none"===h)return{top:null,left:null,transformOrigin:J(r)};var i=X(t),o=i.top-r.vertical,s=i.left-r.horizontal,u=o+n.height,c=s+n.width,l=v(Z(a)),f=l.innerHeight-k,d=l.innerWidth-k;if(o<k){var p=o-k;o-=p,r.vertical+=p}else if(u>f){var g=u-f;o-=g,r.vertical+=g}if(s<k){var m=s-k;s-=m,r.horizontal+=m}else if(c>d){var y=c-d;s-=y,r.horizontal+=y}return{top:"".concat(Math.round(o),"px"),left:"".concat(Math.round(s),"px"),transformOrigin:J(r)}}),[a,h,X,ee,te,k]),re=o.useCallback((function(){var e=H.current;if(e){var t=ne(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin}}),[ne]),ie=o.useCallback((function(e){H.current=p.findDOMNode(e)}),[]);o.useEffect((function(){N&&re()})),o.useImperativeHandle(n,(function(){return N?{updatePosition:function(){re()}}:null}),[N,re]),o.useEffect((function(){if(N){var e=g((function(){re()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}}),[N,re]);var oe=z;"auto"!==z||U.muiSupportAuto||(oe=void 0);var ae=w||(a?f(Z(a)).body:void 0);return o.createElement(V,Object(r.a)({container:ae,open:N,ref:t,BackdropProps:{invisible:!0},className:Object(l.a)(b.root,_)},W),o.createElement(U,Object(r.a)({appear:!0,in:N,onEnter:C,onEntered:T,onExit:I,onExited:A,onExiting:P,timeout:oe},G,{onEntering:Object(m.a)((function(e,t){j&&j(e,t),re()}),G.onEntering)}),o.createElement(Y,Object(r.a)({elevation:O,ref:ie},R,{className:Object(l.a)(b.paper,R.className)}),y)))})),te=Object(h.a)({root:{},paper:{position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}},{name:"MuiPopover"})(ee),ne=n(83),re=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.className,u=e.component,c=void 0===u?"ul":u,f=e.dense,d=void 0!==f&&f,h=e.disablePadding,p=void 0!==h&&h,g=e.subheader,v=Object(i.a)(e,["children","classes","className","component","dense","disablePadding","subheader"]),m=o.useMemo((function(){return{dense:d}}),[d]);return o.createElement(ne.a.Provider,{value:m},o.createElement(c,Object(r.a)({className:Object(l.a)(a.root,s,d&&a.dense,!p&&a.padding,g&&a.subheader),ref:t},v),g,n))})),ie=Object(h.a)({root:{listStyle:"none",margin:0,padding:0,position:"relative"},padding:{paddingTop:8,paddingBottom:8},dense:{},subheader:{paddingTop:0}},{name:"MuiList"})(re);function oe(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ae(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function se(e,t){if(void 0===t)return!0;var n=e.innerText;return void 0===n&&(n=e.textContent),0!==(n=n.trim().toLowerCase()).length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function ue(e,t,n,r,i,o){for(var a=!1,s=i(e,t,!!t&&n);s;){if(s===e.firstChild){if(a)return;a=!0}var u=!r&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&se(s,o)&&!u)return void s.focus();s=i(e,s,n)}}var ce="undefined"===typeof window?o.useEffect:o.useLayoutEffect,le=o.forwardRef((function(e,t){var n=e.actions,a=e.autoFocus,s=void 0!==a&&a,u=e.autoFocusItem,c=void 0!==u&&u,l=e.children,d=e.className,h=e.disabledItemsFocusable,g=void 0!==h&&h,v=e.disableListWrap,m=void 0!==v&&v,y=e.onKeyDown,b=e.variant,_=void 0===b?"selectedMenu":b,x=Object(i.a)(e,["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"]),O=o.useRef(null),S=o.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ce((function(){s&&O.current.focus()}),[s]),o.useImperativeHandle(n,(function(){return{adjustStyleForScrollbar:function(e,t){var n=!O.current.style.width;if(e.clientHeight<O.current.clientHeight&&n){var r="".concat(T(),"px");O.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=r,O.current.style.width="calc(100% + ".concat(r,")")}return O.current}}}),[]);var E=o.useCallback((function(e){O.current=p.findDOMNode(e)}),[]),k=Object(w.a)(E,t),C=-1;
2o.Children.forEach(l,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("selectedMenu"===_&&e.props.selected||-1===C)&&(C=t))}));var j=o.Children.map(l,(function(e,t){if(t===C){var n={};return c&&(n.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===_&&(n.tabIndex=0),o.cloneElement(e,n)}return e}));return o.createElement(ie,Object(r.a)({role:"menu",ref:k,className:d,onKeyDown:function(e){var t=O.current,n=e.key,r=f(t).activeElement;if("ArrowDown"===n)e.preventDefault(),ue(t,r,m,g,oe);else if("ArrowUp"===n)e.preventDefault(),ue(t,r,m,g,ae);else if("Home"===n)e.preventDefault(),ue(t,null,m,g,oe);else if("End"===n)e.preventDefault(),ue(t,null,m,g,ae);else if(1===n.length){var i=S.current,o=n.toLowerCase(),a=performance.now();i.keys.length>0&&(a-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&o!==i.keys[0]&&(i.repeating=!1)),i.lastTime=a,i.keys.push(o);var s=r&&!i.repeating&&se(r,i);i.previousKeyMatched&&(s||ue(t,r,!1,g,oe,i))?e.preventDefault():i.previousKeyMatched=!1}y&&y(e)},tabIndex:s?0:-1},x),j)})),fe={vertical:"top",horizontal:"right"},de={vertical:"top",horizontal:"left"},he=o.forwardRef((function(e,t){var n=e.autoFocus,a=void 0===n||n,s=e.children,u=e.classes,c=e.disableAutoFocusItem,f=void 0!==c&&c,d=e.MenuListProps,h=void 0===d?{}:d,g=e.onClose,v=e.onEntering,m=e.open,y=e.PaperProps,b=void 0===y?{}:y,w=e.PopoverClasses,x=e.transitionDuration,O=void 0===x?"auto":x,S=e.TransitionProps,E=(S=void 0===S?{}:S).onEntering,k=Object(i.a)(S,["onEntering"]),C=e.variant,T=void 0===C?"selectedMenu":C,j=Object(i.a)(e,["autoFocus","children","classes","disableAutoFocusItem","MenuListProps","onClose","onEntering","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"]),I=z(),A=a&&!f&&m,P=o.useRef(null),N=o.useRef(null),M=-1;o.Children.map(s,(function(e,t){o.isValidElement(e)&&(e.props.disabled||("menu"!==T&&e.props.selected||-1===M)&&(M=t))}));var R=o.Children.map(s,(function(e,t){return t===M?o.cloneElement(e,{ref:function(t){N.current=p.findDOMNode(t),Object(_.a)(e.ref,t)}}):e}));return o.createElement(te,Object(r.a)({getContentAnchorEl:function(){return N.current},classes:w,onClose:g,TransitionProps:Object(r.a)({onEntering:function(e,t){P.current&&P.current.adjustStyleForScrollbar(e,I),v&&v(e,t),E&&E(e,t)}},k),anchorOrigin:"rtl"===I.direction?fe:de,transformOrigin:"rtl"===I.direction?fe:de,PaperProps:Object(r.a)({},b,{classes:Object(r.a)({},b.classes,{root:u.paper})}),open:m,ref:t,transitionDuration:O},j),o.createElement(le,Object(r.a)({onKeyDown:function(e){"Tab"===e.key&&(e.preventDefault(),g&&g(e,"tabKeyDown"))},actions:P,autoFocus:a&&(-1===M||f),autoFocusItem:A,variant:T},h,{className:Object(l.a)(u.list,h.className)}),R))})),pe=Object(h.a)({paper:{maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"},list:{outline:0}},{name:"MuiMenu"})(he),ge=n(71),ve=n(77);function me(e,t){return"object"===Object(u.a)(t)&&null!==t?e===t:String(e)===String(t)}var ye=o.forwardRef((function(e,t){var n=e["aria-label"],a=e.autoFocus,u=e.autoWidth,h=e.children,p=e.classes,g=e.className,v=e.defaultValue,m=e.disabled,y=e.displayEmpty,b=e.IconComponent,_=e.inputRef,x=e.labelId,O=e.MenuProps,S=void 0===O?{}:O,E=e.multiple,k=e.name,C=e.onBlur,T=e.onChange,j=e.onClose,I=e.onFocus,A=e.onOpen,P=e.open,N=e.readOnly,M=e.renderValue,R=e.SelectDisplayProps,L=void 0===R?{}:R,D=e.tabIndex,F=(e.type,e.value),V=e.variant,U=void 0===V?"standard":V,B=Object(i.a)(e,["aria-label","autoFocus","autoWidth","children","classes","className","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"]),z=Object(ve.a)({controlled:F,default:v,name:"Select"}),q=Object(s.a)(z,2),G=q[0],W=q[1],H=o.useRef(null),K=o.useState(null),X=K[0],Y=K[1],$=o.useRef(null!=P).current,Q=o.useState(),J=Q[0],Z=Q[1],ee=o.useState(!1),te=ee[0],ne=ee[1],re=Object(w.a)(t,_);o.useImperativeHandle(re,(function(){return{focus:function(){X.focus()},node:H.current,value:G}}),[X,G]),o.useEffect((function(){a&&X&&X.focus()}),[a,X]),o.useEffect((function(){if(X){var e=f(X).getElementById(x);if(e){var t=function(){getSelection().isCollapsed&&X.focus()};return e.addEventListener("click",t),function(){e.removeEventListener("click",t)}}}}),[x,X]);var ie,oe,ae=function(e,t){e?A&&A(t):j&&j(t),$||(Z(u?null:X.clientWidth),ne(e))},se=o.Children.toArray(h),ue=function(e){return function(t){var n;if(E||ae(!1,t),E){n=Array.isArray(G)?G.slice():[];var r=G.indexOf(e.props.value);-1===r?n.push(e.props.value):n.splice(r,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),G!==n&&(W(n),T&&(t.persist(),Object.defineProperty(t,"target",{writable:!0,value:{value:n,name:k}}),T(t,e)))}},ce=null!==X&&($?P:te);delete B["aria-invalid"];var le=[],fe=!1;(Object(ge.b)({value:G})||y)&&(M?ie=M(G):fe=!0);var de=se.map((function(e){if(!o.isValidElement(e))return null;var t;if(E){if(!Array.isArray(G))throw new Error(Object(c.a)(2));(t=G.some((function(t){return me(t,e.props.value)})))&&fe&&le.push(e.props.children)}else(t=me(G,e.props.value))&&fe&&(oe=e.props.children);return t&&!0,o.cloneElement(e,{"aria-selected":t?"true":void 0,onClick:ue(e),onKeyUp:function(t){" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));fe&&(ie=E?le.join(", "):oe);var he,ye=J;!u&&$&&X&&(ye=X.clientWidth),he="undefined"!==typeof D?D:m?null:0;var be=L.id||(k?"mui-component-select-".concat(k):void 0);return o.createElement(o.Fragment,null,o.createElement("div",Object(r.a)({className:Object(l.a)(p.root,p.select,p.selectMenu,p[U],g,m&&p.disabled),ref:Y,tabIndex:he,role:"button","aria-disabled":m?"true":void 0,"aria-expanded":ce?"true":void 0,"aria-haspopup":"listbox","aria-label":n,"aria-labelledby":[x,be].filter(
2Boolean).join(" ")||void 0,onKeyDown:function(e){if(!N){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),ae(!0,e))}},onMouseDown:m||N?null:function(e){0===e.button&&(e.preventDefault(),X.focus(),ae(!0,e))},onBlur:function(e){!ce&&C&&(e.persist(),Object.defineProperty(e,"target",{writable:!0,value:{value:G,name:k}}),C(e))},onFocus:I},L,{id:be}),function(e){return null==e||"string"===typeof e&&!e.trim()}(ie)?o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}}):ie),o.createElement("input",Object(r.a)({value:Array.isArray(G)?G.join(","):G,name:k,ref:H,"aria-hidden":!0,onChange:function(e){var t=se.map((function(e){return e.props.value})).indexOf(e.target.value);if(-1!==t){var n=se[t];W(n.props.value),T&&T(e,n)}},tabIndex:-1,className:p.nativeInput,autoFocus:a},B)),o.createElement(b,{className:Object(l.a)(p.icon,p["icon".concat(Object(d.a)(U))],ce&&p.iconOpen,m&&p.disabled)}),o.createElement(pe,Object(r.a)({id:"menu-".concat(k||""),anchorEl:X,open:ce,onClose:function(e){ae(!1,e)}},S,{MenuListProps:Object(r.a)({"aria-labelledby":x,role:"listbox",disableListWrap:!0},S.MenuListProps),PaperProps:Object(r.a)({},S.PaperProps,{style:Object(r.a)({minWidth:ye},null!=S.PaperProps?S.PaperProps.style:null)})}),de))})),be=n(50),_e=n(49),we=n(44),xe=Object(we.a)(o.createElement("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Oe=n(70);function Se(e,t){return parseInt(e[t],10)||0}var Ee="undefined"!==typeof window?o.useLayoutEffect:o.useEffect,ke={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},Ce=o.forwardRef((function(e,t){var n=e.onChange,a=e.rows,s=e.rowsMax,u=e.rowsMin,c=e.maxRows,l=e.minRows,f=void 0===l?1:l,d=e.style,h=e.value,p=Object(i.a)(e,["onChange","rows","rowsMax","rowsMin","maxRows","minRows","style","value"]),v=c||s,m=a||u||f,y=o.useRef(null!=h).current,b=o.useRef(null),_=Object(w.a)(t,b),x=o.useRef(null),O=o.useRef(0),S=o.useState({}),E=S[0],k=S[1],C=o.useCallback((function(){var t=b.current,n=window.getComputedStyle(t),r=x.current;r.style.width=n.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");var i=n["box-sizing"],o=Se(n,"padding-bottom")+Se(n,"padding-top"),a=Se(n,"border-bottom-width")+Se(n,"border-top-width"),s=r.scrollHeight-o;r.value="x";var u=r.scrollHeight-o,c=s;m&&(c=Math.max(Number(m)*u,c)),v&&(c=Math.min(Number(v)*u,c));var l=(c=Math.max(c,u))+("border-box"===i?o+a:0),f=Math.abs(c-s)<=1;k((function(e){return O.current<20&&(l>0&&Math.abs((e.outerHeightStyle||0)-l)>1||e.overflow!==f)?(O.current+=1,{overflow:f,outerHeightStyle:l}):e}))}),[v,m,e.placeholder]);o.useEffect((function(){var e=g((function(){O.current=0,C()}));return window.addEventListener("resize",e),function(){e.clear(),window.removeEventListener("resize",e)}}),[C]),Ee((function(){C()})),o.useEffect((function(){O.current=0}),[h]);return o.createElement(o.Fragment,null,o.createElement("textarea",Object(r.a)({value:h,onChange:function(e){O.current=0,y||C(),n&&n(e)},ref:_,rows:m,style:Object(r.a)({height:E.outerHeightStyle,overflow:E.overflow?"hidden":null},d)},p)),o.createElement("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:x,tabIndex:-1,style:Object(r.a)({},ke,d)}))})),Te="undefined"===typeof window?o.useEffect:o.useLayoutEffect,je=o.forwardRef((function(e,t){var n=e["aria-describedby"],a=e.autoComplete,s=e.autoFocus,u=e.classes,f=e.className,h=(e.color,e.defaultValue),p=e.disabled,g=e.endAdornment,v=(e.error,e.fullWidth),m=void 0!==v&&v,y=e.id,b=e.inputComponent,_=void 0===b?"input":b,x=e.inputProps,O=void 0===x?{}:x,S=e.inputRef,E=(e.margin,e.multiline),k=void 0!==E&&E,C=e.name,T=e.onBlur,j=e.onChange,I=e.onClick,A=e.onFocus,P=e.onKeyDown,N=e.onKeyUp,M=e.placeholder,R=e.readOnly,L=e.renderSuffix,D=e.rows,F=e.rowsMax,V=e.rowsMin,U=e.maxRows,B=e.minRows,z=e.startAdornment,q=e.type,G=void 0===q?"text":q,W=e.value,H=Object(i.a)(e,["aria-describedby","autoComplete","autoFocus","classes","className","color","defaultValue","disabled","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","render
2Suffix","rows","rowsMax","rowsMin","maxRows","minRows","startAdornment","type","value"]),K=null!=O.value?O.value:W,X=o.useRef(null!=K).current,Y=o.useRef(),$=o.useCallback((function(e){0}),[]),Q=Object(w.a)(O.ref,$),J=Object(w.a)(S,Q),Z=Object(w.a)(Y,J),ee=o.useState(!1),te=ee[0],ne=ee[1],re=Object(Oe.b)();var ie=Object(be.a)({props:e,muiFormControl:re,states:["color","disabled","error","hiddenLabel","margin","required","filled"]});ie.focused=re?re.focused:te,o.useEffect((function(){!re&&p&&te&&(ne(!1),T&&T())}),[re,p,te,T]);var oe=re&&re.onFilled,ae=re&&re.onEmpty,se=o.useCallback((function(e){Object(ge.b)(e)?oe&&oe():ae&&ae()}),[oe,ae]);Te((function(){X&&se({value:K})}),[K,se,X]);o.useEffect((function(){se(Y.current)}),[]);var ue=_,ce=Object(r.a)({},O,{ref:Z});"string"!==typeof ue?ce=Object(r.a)({inputRef:Z,type:G},ce,{ref:null}):k?!D||U||B||F||V?(ce=Object(r.a)({minRows:D||B,rowsMax:F,maxRows:U},ce),ue=Ce):ue="textarea":ce=Object(r.a)({type:G},ce);return o.useEffect((function(){re&&re.setAdornedStart(Boolean(z))}),[re,z]),o.createElement("div",Object(r.a)({className:Object(l.a)(u.root,u["color".concat(Object(d.a)(ie.color||"primary"))],f,ie.disabled&&u.disabled,ie.error&&u.error,m&&u.fullWidth,ie.focused&&u.focused,re&&u.formControl,k&&u.multiline,z&&u.adornedStart,g&&u.adornedEnd,"dense"===ie.margin&&u.marginDense),onClick:function(e){Y.current&&e.currentTarget===e.target&&Y.current.focus(),I&&I(e)},ref:t},H),z,o.createElement(Oe.a.Provider,{value:null},o.createElement(ue,Object(r.a)({"aria-invalid":ie.error,"aria-describedby":n,autoComplete:a,autoFocus:s,defaultValue:h,disabled:ie.disabled,id:y,onAnimationStart:function(e){se("mui-auto-fill-cancel"===e.animationName?Y.current:{value:"x"})},name:C,placeholder:M,readOnly:R,required:ie.required,rows:D,value:K,onKeyDown:P,onKeyUp:N},ce,{className:Object(l.a)(u.input,O.className,ie.disabled&&u.disabled,k&&u.inputMultiline,ie.hiddenLabel&&u.inputHiddenLabel,z&&u.inputAdornedStart,g&&u.inputAdornedEnd,"search"===G&&u.inputTypeSearch,"dense"===ie.margin&&u.inputMarginDense),onBlur:function(e){T&&T(e),O.onBlur&&O.onBlur(e),re&&re.onBlur?re.onBlur(e):ne(!1)},onChange:function(e){if(!X){var t=e.target||Y.current;if(null==t)throw new Error(Object(c.a)(1));se({value:t.value})}for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];O.onChange&&O.onChange.apply(O,[e].concat(r)),j&&j.apply(void 0,[e].concat(r))},onFocus:function(e){ie.disabled?e.stopPropagation():(A&&A(e),O.onFocus&&O.onFocus(e),re&&re.onFocus?re.onFocus(e):ne(!0))}}))),g,L?L(Object(r.a)({},ie,{startAdornment:z})):null)})),Ie=Object(h.a)((function(e){var t="light"===e.palette.type,n={color:"currentColor",opacity:t?.42:.5,transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},i={opacity:"0 !important"},o={opacity:t?.42:.5};return{"@global":{"@keyframes mui-auto-fill":{},"@keyframes mui-auto-fill-cancel":{}},root:Object(r.a)({},e.typography.body1,{color:e.palette.text.primary,lineHeight:"1.1876em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center","&$disabled":{color:e.palette.text.disabled,cursor:"default"}}),formControl:{},focused:{},disabled:{},adornedStart:{},adornedEnd:{},error:{},marginDense:{},multiline:{padding:"".concat(6,"px 0 ").concat(7,"px"),"&$marginDense":{paddingTop:3}},colorSecondary:{},fullWidth:{width:"100%"},input:{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"".concat(6,"px 0 ").concat(7,"px"),border:0,boxSizing:"content-box",background:"none",height:"1.1876em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{"-webkit-appearance":"none"},"label[data-shrink=false] + $formControl &":{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},"&$disabled":{opacity:1},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},inputMarginDense:{paddingTop:3},inputMultiline:{height:"auto",resize:"none",padding:0},inputTypeSearch:{"-moz-appearance":"textfield","-webkit-appearance":"textfield"},inputAdornedStart:{},inputAdornedEnd:{},inputHiddenLabel:{}}}),{name:"MuiInputBase"})(je),Ae=o.forwardRef((function(e,t){var n=e.disableUnderline,a=e.classes,s=e.fullWidth,u=void 0!==s&&s,c=e.inputComponent,f=void 0===c?"input":c,d=e.multiline,h=void 0!==d&&d,p=e.type,g=void 0===p?"text":p,v=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Ie,Object(r.a)({classes:Object(r.a)({},a,{root:Object(l.a)(a.root,!n&&a.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:h,ref:t,type:g},v))}));Ae.muiName="Input";var Pe=Object(h.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return{root:{position:"relative"},formControl:{"label + &":{marginTop:16}},focused:{},disabled:{},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}}
2,underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(t),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:not($disabled):before":{borderBottom:"2px solid ".concat(e.palette.text.primary),"@media (hover: none)":{borderBottom:"1px solid ".concat(t)}},"&$disabled:before":{borderBottomStyle:"dotted"}},error:{},marginDense:{},multiline:{},fullWidth:{},input:{},inputMarginDense:{},inputMultiline:{},inputTypeSearch:{}}}),{name:"MuiInput"})(Ae),Ne=o.forwardRef((function(e,t){var n=e.classes,a=e.className,s=e.disabled,u=e.IconComponent,c=e.inputRef,f=e.variant,h=void 0===f?"standard":f,p=Object(i.a)(e,["classes","className","disabled","IconComponent","inputRef","variant"]);return o.createElement(o.Fragment,null,o.createElement("select",Object(r.a)({className:Object(l.a)(n.root,n.select,n[h],a,s&&n.disabled),disabled:s,ref:c||t},p)),e.multiple?null:o.createElement(u,{className:Object(l.a)(n.icon,n["icon".concat(Object(d.a)(h))],s&&n.disabled)}))})),Me=function(e){return{root:{},select:{"-moz-appearance":"none","-webkit-appearance":"none",userSelect:"none",borderRadius:0,minWidth:16,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.type?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},"&$disabled":{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&":{paddingRight:24}},filled:{"&&":{paddingRight:32}},outlined:{borderRadius:e.shape.borderRadius,"&&":{paddingRight:32}},selectMenu:{height:"auto",minHeight:"1.1876em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},disabled:{},icon:{position:"absolute",right:0,top:"calc(50% - 12px)",pointerEvents:"none",color:e.palette.action.active,"&$disabled":{color:e.palette.action.disabled}},iconOpen:{transform:"rotate(180deg)"},iconFilled:{right:7},iconOutlined:{right:7},nativeInput:{bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%"}}},Re=o.createElement(Pe,null),Le=o.forwardRef((function(e,t){var n=e.children,a=e.classes,s=e.IconComponent,u=void 0===s?xe:s,c=e.input,l=void 0===c?Re:c,f=e.inputProps,d=(e.variant,Object(i.a)(e,["children","classes","IconComponent","input","inputProps","variant"])),h=Object(_e.a)(),p=Object(be.a)({props:e,muiFormControl:h,states:["variant"]});return o.cloneElement(l,Object(r.a)({inputComponent:Ne,inputProps:Object(r.a)({children:n,classes:a,IconComponent:u,variant:p.variant,type:void 0},f,l?l.props.inputProps:{}),ref:t},d))}));Le.muiName="Select";Object(h.a)(Me,{name:"MuiNativeSelect"})(Le);var De=o.forwardRef((function(e,t){var n=e.disableUnderline,a=e.classes,s=e.fullWidth,u=void 0!==s&&s,c=e.inputComponent,f=void 0===c?"input":c,d=e.multiline,h=void 0!==d&&d,p=e.type,g=void 0===p?"text":p,v=Object(i.a)(e,["disableUnderline","classes","fullWidth","inputComponent","multiline","type"]);return o.createElement(Ie,Object(r.a)({classes:Object(r.a)({},a,{root:Object(l.a)(a.root,!n&&a.underline),underline:null}),fullWidth:u,inputComponent:f,multiline:h,ref:t,type:g},v))}));De.muiName="Input";var Fe=Object(h.a)((function(e){var t="light"===e.palette.type,n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)";return{root:{position:"relative",backgroundColor:r,borderTopLeftRadius:e.shape.borderRadius,borderTopRightRadius:e.shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:t?"rgba(0, 0, 0, 0.13)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:r}},"&$focused":{backgroundColor:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.09)"},"&$disabled":{backgroundColor:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"}},colorSecondary:{"&$underline:after":{borderBottomColor:e.palette.secondary.main}}
2,underline:{"&:after":{borderBottom:"2px solid ".concat(e.palette.primary.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},"&$focused:after":{transform:"scaleX(1)"},"&$error:after":{borderBottomColor:e.palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid ".concat(n),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},"&:hover:before":{borderBottom:"1px solid ".concat(e.palette.text.primary)},"&$disabled:before":{borderBottomStyle:"dotted"}},focused:{},disabled:{},adornedStart:{paddingLeft:12},adornedEnd:{paddingRight:12},error:{},marginDense:{},multiline:{padding:"27px 12px 10px","&$marginDense":{paddingTop:23,paddingBottom:6}},input:{padding:"27px 12px 10px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},inputMarginDense:{paddingTop:23,paddingBottom:6},inputHiddenLabel:{paddingTop:18,paddingBottom:19,"&$inputMarginDense":{paddingTop:10,paddingBottom:11}},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiFilledInput"})(De),Ve=n(55),Ue=o.forwardRef((function(e,t){e.children;var n=e.classes,a=e.className,s=e.label,u=e.labelWidth,c=e.notched,f=e.style,h=Object(i.a)(e,["children","classes","className","label","labelWidth","notched","style"]),p="rtl"===z().direction?"right":"left";if(void 0!==s)return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,className:Object(l.a)(n.root,a),ref:t,style:f},h),o.createElement("legend",{className:Object(l.a)(n.legendLabelled,c&&n.legendNotched)},s?o.createElement("span",null,s):o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})));var g=u>0?.75*u+8:.01;return o.createElement("fieldset",Object(r.a)({"aria-hidden":!0,style:Object(r.a)(Object(Ve.a)({},"padding".concat(Object(d.a)(p)),8),f),className:Object(l.a)(n.root,a),ref:t},h),o.createElement("legend",{className:n.legend,style:{width:c?g:.01}},o.createElement("span",{dangerouslySetInnerHTML:{__html:"&#8203;"}})))})),Be=Object(h.a)((function(e){return{root:{position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden"},legend:{textAlign:"left",padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},legendLabelled:{display:"block",width:"auto",textAlign:"left",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),"& > span":{paddingLeft:5,paddingRight:5,display:"inline-block"}},legendNotched:{maxWidth:1e3,transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}}),{name:"PrivateNotchedOutline"})(Ue),ze=o.forwardRef((function(e,t){var n=e.classes,a=e.fullWidth,s=void 0!==a&&a,u=e.inputComponent,c=void 0===u?"input":u,f=e.label,d=e.labelWidth,h=void 0===d?0:d,p=e.multiline,g=void 0!==p&&p,v=e.notched,m=e.type,y=void 0===m?"text":m,b=Object(i.a)(e,["classes","fullWidth","inputComponent","label","labelWidth","multiline","notched","type"]);return o.createElement(Ie,Object(r.a)({renderSuffix:function(e){return o.createElement(Be,{className:n.notchedOutline,label:f,labelWidth:h,notched:"undefined"!==typeof v?v:Boolean(e.startAdornment||e.filled||e.focused)})},classes:Object(r.a)({},n,{root:Object(l.a)(n.root,n.underline),notchedOutline:null}),fullWidth:s,inputComponent:c,multiline:g,ref:t,type:y},b))}));ze.muiName="Input";var qe=Object(h.a)((function(e){var t="light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{root:{position:"relative",borderRadius:e.shape.borderRadius,"&:hover $notchedOutline":{borderColor:e.palette.text.primary},"@media (hover: none)":{"&:hover $notchedOutline":{borderColor:t}},"&$focused $notchedOutline":{borderColor:e.palette.primary.main,borderWidth:2},"&$error $notchedOutline":{borderColor:e.palette.error.main},"&$disabled $notchedOutline":{borderColor:e.palette.action.disabled}},colorSecondary:{"&$focused $notchedOutline":{borderColor:e.palette.secondary.main}},focused:{},disabled:{},adornedStart:{paddingLeft:14},adornedEnd:{paddingRight:14},error:{},marginDense:{},multiline:{padding:"18.5px 14px","&$marginDense":{paddingTop:10.5,paddingBottom:10.5}},notchedOutline:{borderColor:t},input:{padding:"18.5px 14px","&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.type?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.type?null:"#fff",caretColor:"light"===e.palette.type?null:"#fff",borderRadius:"inherit"}},inputMarginDense:{paddingTop:10.5,paddingBottom:10.5},inputMultiline:{padding:0},inputAdornedStart:{paddingLeft:0},inputAdornedEnd:{paddingRight:0}}}),{name:"MuiOutlinedInput"})(ze),Ge=Me,We=o.createElement(Pe,null),He=o.createElement(Fe,null),Ke=o.forwardRef((function e(t,n){var s=t.autoWidth,u=void 0!==s&&s,c=t.children,l=t.classes,f=t.displayEmpty,d=void 0!==f&&f,h=t.IconComponent,p=void 0===h?xe:h,g=t.id,v=t.input,m=t.inputProps,y=t.label,b=t.labelId,_=t.labelWidth,w=void 0===_?0:_,x=t.MenuProps,O=t.multiple,S=void 0!==O&&O,E=t.native,k=void 0!==E&&E,C=t.onClose,T=t.onOpen,j=t.open,I=t.renderValue,A=t.SelectDisplayProps,P=t.variant,N=void 0===P?"standard":P,M=Object(i.a)(t,["autoWidth","children","classes","displayEmpty","IconComponent","id","input","inputProps","label","labelId","labelWidth","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"]),R=k?Ne:ye,L=Object(_e.a)(),D=Object(be.a)({props:t,muiFormControl:L,states:["variant"]}).variant||N,F=v||{standard:We,outlined:o.createElement(qe,{label:y,labelWidth:w}),filled:He}[D];return o.cloneElement(F,Object(r.a)({inputComponent:R,inputProps:Object(r.a)({children:c,IconComponent:p,variant:D,type:void 0,multiple:S},k?{id:g}
2:{autoWidth:u,displayEmpty:d,labelId:b,MenuProps:x,onClose:C,onOpen:T,open:j,renderValue:I,SelectDisplayProps:Object(r.a)({id:g},A)},m,{classes:m?Object(a.a)({baseClasses:l,newClasses:m.classes,Component:e}):l},v?v.props.inputProps:{}),ref:n},M))}));Ke.muiName="Select";t.a=Object(h.a)(Ge,{name:"MuiSelect"})(Ke)},function(e,t,n){"use strict";var r=n(10),i=n(14),o=n(6),a=n(0),s=(n(8),n(7)),u=n(262),c=n(264),l=n(13),f=n(19),d=n(96),h=n(15),p=n(26),g=n(265).a,v=!0,m=!1,y=null,b={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _(e){e.metaKey||e.altKey||e.ctrlKey||(v=!0)}function w(){v=!1}function x(){"hidden"===this.visibilityState&&m&&(v=!0)}function O(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return v||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!b[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var S=function(){var e=a.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",_,!0),t.addEventListener("mousedown",w,!0),t.addEventListener("pointerdown",w,!0),t.addEventListener("touchstart",w,!0),t.addEventListener("visibilitychange",x,!0))}),[]),t=a.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!O(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(m=!0,window.clearTimeout(y),y=window.setTimeout((function(){m=!1}),100),t.current=!1,!0)},ref:e}},E=n(27);function k(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var C=n(275),T=n(67),j=n(1);var I=function(e){var t=e.className,n=e.classes,r=e.pulsate,i=void 0!==r&&r,o=e.rippleX,u=e.rippleY,c=e.rippleSize,l=e.in,f=e.onExited,d=e.timeout,p=a.useState(!1),g=Object(h.a)(p,2),v=g[0],m=g[1],y=Object(s.a)(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),b={width:c,height:c,top:-c/2+u,left:-c/2+o},_=Object(s.a)(n.child,v&&n.childLeaving,i&&n.childPulsate);return l||v||m(!0),a.useEffect((function(){if(!l&&null!=f){var e=setTimeout(f,d);return function(){clearTimeout(e)}}}),[f,l,d]),Object(j.jsx)("span",{className:y,style:b,children:Object(j.jsx)("span",{className:_})})},A=n(195),P=n(263);var N,M,R,L,D,F,V,U,B=Object(P.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),z=["center","classes","className"],q=Object(T.b)(D||(D=N||(N=k(["\n  0% {\n    transform: scale(0);\n    opacity: 0.1;\n  }\n\n  100% {\n    transform: scale(1);\n    opacity: 0.3;\n  }\n"])))),G=Object(T.b)(F||(F=M||(M=k(["\n  0% {\n    opacity: 1;\n  }\n\n  100% {\n    opacity: 0;\n  }\n"])))),W=Object(T.b)(V||(V=R||(R=k(["\n  0% {\n    transform: scale(1);\n  }\n\n  50% {\n    transform: scale(0.92);\n  }\n\n  100% {\n    transform: scale(1);\n  }\n"])))),H=Object(l.a)("span",{name:"MuiTouchRipple",slot:"Root",skipSx:!0})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),K=Object(l.a)(I,{name:"MuiTouchRipple",slot:"Ripple"})(U||(U=L||(L=k(["\n  opacity: 0;\n  position: absolute;\n\n  &."," {\n    opacity: 0.3;\n    transform: scale(1);\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  &."," {\n    animation-duration: ","ms;\n  }\n\n  & ."," {\n    opacity: 1;\n    display: block;\n    width: 100%;\n    height: 100%;\n    border-radius: 50%;\n    background-color: currentColor;\n  }\n\n  & ."," {\n    opacity: 0;\n    animation-name: ",";\n    animation-duration: ","ms;\n    animation-timing-function: ",";\n  }\n\n  & ."," {\n    position: absolute;\n    /* @noflip */\n    left: 0px;\n    top: 0;\n    animation-name: ",";\n    animation-duration: 2500ms;\n    animation-timing-function: ",";\n    animation-iteration-count: infinite;\n    animation-delay: 200ms;\n  }\n"]))),B.rippleVisible,q,550,(function(e){return e.theme.transitions.easing.easeInOut}),B.ripplePulsate,(function(e){return e.theme.transitions.duration.shorter}),B.child,B.childLeaving,G,550,(function(e){return e.theme.transitions.easing.easeInOut}),B.childPulsate,W,(function(e){return e.theme.transitions.easing.easeInOut})),X=a.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiTouchRipple"}),r=n.center,u=void 0!==r&&r,c=n.classes,l=void 0===c?{}:c,d=n.className,p=Object(i.a)(n,z),g=a.useState([]),v=Object(h.a)(g,2),m=v[0],y=v[1],b=a.useRef(0),_=a.useRef(null);a.useEffect((function(){_.current&&(_.current(),_.current=null)}),[m]);var w=a.useRef(!1),x=a.useRef(null),O=a.useRef(null),S=a.useRef(null);a.useEffect((function(){return function(){clearTimeout(x.current)}}),[]);var k=a.useCallback((function(e){var t=e.pulsate,n=e.rippleX,r=e.rippleY,i=e.rippleSize,o=e.cb;y((function(e){return[].concat(Object(E.a)(e),[Object(j.jsx)(K,{classes:{ripple:Object(s.a)(l.ripple,B.ripple),rippleVisible:Object(s.a)(l.rippleVisible,B.rippleVisible),ripplePulsate:Object(s.a)(l.ripplePulsate,B.ripplePulsate),
2child:Object(s.a)(l.child,B.child),childLeaving:Object(s.a)(l.childLeaving,B.childLeaving),childPulsate:Object(s.a)(l.childPulsate,B.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},b.current)])})),b.current+=1,_.current=o}),[l]),T=a.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,i=void 0!==r&&r,o=t.center,a=void 0===o?u||t.pulsate:o,s=t.fakeElement,c=void 0!==s&&s;if("mousedown"===e.type&&w.current)w.current=!1;else{"touchstart"===e.type&&(w.current=!0);var l,f,d,h=c?null:S.current,p=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(a||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)l=Math.round(p.width/2),f=Math.round(p.height/2);else{var g=e.touches?e.touches[0]:e,v=g.clientX,m=g.clientY;l=Math.round(v-p.left),f=Math.round(m-p.top)}if(a)(d=Math.sqrt((2*Math.pow(p.width,2)+Math.pow(p.height,2))/3))%2===0&&(d+=1);else{var y=2*Math.max(Math.abs((h?h.clientWidth:0)-l),l)+2,b=2*Math.max(Math.abs((h?h.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(y,2)+Math.pow(b,2))}e.touches?null===O.current&&(O.current=function(){k({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})},x.current=setTimeout((function(){O.current&&(O.current(),O.current=null)}),80)):k({pulsate:i,rippleX:l,rippleY:f,rippleSize:d,cb:n})}}),[u,k]),I=a.useCallback((function(){T({},{pulsate:!0})}),[T]),A=a.useCallback((function(e,t){if(clearTimeout(x.current),"touchend"===e.type&&O.current)return O.current(),O.current=null,void(x.current=setTimeout((function(){A(e,t)})));O.current=null,y((function(e){return e.length>0?e.slice(1):e})),_.current=t}),[]);return a.useImperativeHandle(t,(function(){return{pulsate:I,start:T,stop:A}}),[I,T,A]),Object(j.jsx)(H,Object(o.a)({className:Object(s.a)(l.root,B.root,d),ref:S},p,{children:Object(j.jsx)(C.a,{component:null,exit:!0,children:m})}))}));function Y(e){return Object(A.a)("MuiButtonBase",e)}var $,Q=Object(P.a)("MuiButtonBase",["root","disabled","focusVisible"]),J=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","type"],Z=Object(l.a)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:function(e,t){return t.root}})(($={display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"}},Object(r.a)($,"&.".concat(Q.disabled),{pointerEvents:"none",cursor:"default"}),Object(r.a)($,"@media print",{colorAdjust:"exact"}),$)),ee=a.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiButtonBase"}),r=n.action,c=n.centerRipple,l=void 0!==c&&c,d=n.children,v=n.className,m=n.component,y=void 0===m?"button":m,b=n.disabled,_=void 0!==b&&b,w=n.disableRipple,x=void 0!==w&&w,O=n.disableTouchRipple,E=void 0!==O&&O,k=n.focusRipple,C=void 0!==k&&k,T=n.LinkComponent,I=void 0===T?"a":T,A=n.onBlur,P=n.onClick,N=n.onContextMenu,M=n.onDragLeave,R=n.onFocus,L=n.onFocusVisible,D=n.onKeyDown,F=n.onKeyUp,V=n.onMouseDown,U=n.onMouseLeave,B=n.onMouseUp,z=n.onTouchEnd,q=n.onTouchMove,G=n.onTouchStart,W=n.tabIndex,H=void 0===W?0:W,K=n.TouchRippleProps,$=n.type,Q=Object(i.a)(n,J),ee=a.useRef(null),te=a.useRef(null),ne=S(),re=ne.isFocusVisibleRef,ie=ne.onFocus,oe=ne.onBlur,ae=ne.ref,se=a.useState(!1),ue=Object(h.a)(se,2),ce=ue[0],le=ue[1];function fe(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:E;return g((function(r){return t&&t(r),!n&&te.current&&te.current[e](r),!0}))}_&&ce&&le(!1),a.useImperativeHandle(r,(function(){return{focusVisible:function(){le(!0),ee.current.focus()}}}),[]),a.useEffect((function(){ce&&C&&!x&&te.current.pulsate()}),[x,C,ce]);var de=fe("start",V),he=fe("stop",N),pe=fe("stop",M),ge=fe("stop",B),ve=fe("stop",(function(e){ce&&e.preventDefault(),U&&U(e)})),me=fe("start",G),ye=fe("stop",z),be=fe("stop",q),_e=fe("stop",(function(e){oe(e),!1===re.current&&le(!1),A&&A(e)}),!1),we=g((function(e){ee.current||(ee.current=e.currentTarget),ie(e),!0===re.current&&(le(!0),L&&L(e)),R&&R(e)})),xe=function(){var e=ee.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},Oe=a.useRef(!1),Se=g((function(e){C&&!Oe.current&&ce&&te.current&&" "===e.key&&(Oe.current=!0,te.current.stop(e,(function(){te.current.start(e)}))),e.target===e.currentTarget&&xe()&&" "===e.key&&e.preventDefault(),D&&D(e),e.target===e.currentTarget&&xe()&&"Enter"===e.key&&!_&&(e.preventDefault(),P&&P(e))})),Ee=g((function(e){C&&" "===e.key&&te.current&&ce&&!e.defaultPrevented&&(Oe.current=!1,te.current.stop(e,(function(){te.current.pulsate(e)}))),F&&F(e),P&&e.target===e.currentTarget&&xe()&&" "===e.key&&!e.defaultPrevented&&P(e)})),ke=y;"button"===ke&&(Q.href||Q.to)&&(ke=I);var Ce={};"button"===ke?(Ce.type=void 0===$?"button":$,Ce.disabled=_):(Q.href||Q.to||(Ce.role="button"),_&&(Ce["aria-disabled"]=_));var Te=Object(p.a)(ae,ee),je=Object(p.a)(t,Te),Ie=a.useState(!1),Ae=Object(h.a)(Ie,2),Pe=Ae[0],Ne=Ae[1];a.useEffect((function(){Ne(!0)}),[]);var Me=Pe&&!x&&!_;var Re=Object(o.a)({},n,{centerRipple:l,component:y,disabled:_,disableRipple:x,disableTouchRipple:E,focusRipple:C,tabIndex:H,focusVisible:ce}),Le=function(e){var t=e.disabled,n=e.focusVisible,r=e.focusVisibleClassName,i=e.classes,o={root:["root",t&&"disabled",n&&"focusVisible"]},a=Object(u.a)(o,Y,i);return n&&r&&(a.root+=" ".concat(r)),a}(Re);return Object(j.jsxs)(Z,Object(o.a)({as:ke,className:Object(s.a)(Le.root,v),ownerState:Re,onBlur:_e,onClick:P,onContextMenu:he,onFocus:we,onKeyDown:Se,onKeyUp:Ee,onMouseDown:de,onMouseLeave:ve,onMouseUp:ge,onDragLeave:pe,onTouchEnd:ye,onTouchMove:be,onTouchStart:me,ref:je,tabIndex:_?-1:H,type:$},Ce,Q,{children:[d,Me?Object(j.jsx)(X,Object(o.a)({ref:te,center:l},K)):null]}))})),te=n(61);var ne=Object(P.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var re=Object(P.a)("MuiListItemIcon",["root","alignItemsFlexStart"]);var ie=Object(P.a)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function oe(e){return Object(A.a)("MuiMenuItem",e)}var ae=Object(P.a)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),se=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],ue=Object(l.a)(ee,{shouldForwardProp:function(e){return Object(l.b)(e)||"classes"===e},name:"MuiMenuItem",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((function(e){var t,n=e.theme,i=e.ownerState;return Object(o.a)({},n.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!i.disableGutters&&{paddingLeft:16,paddingRight:16},i.divider&&{borderBottom:"1px solid ".concat(n.palette.divider),backgroundClip:"padding-box"},(t={"&:hover":{textDecoration:"none",backgroundColor:n.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},Object(r.a)(t,"&.".concat(ae.selected),Object(r.a)({backgroundColor:Object(c.a)(n.palette.primary.main,n.palette.action.selectedOpacity)},"&.".concat(ae.focusVisible),{backgroundColor:Object(c.a)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.focusOpacity)})),Object(r.a)(t,"&.".concat(ae.selected,":hover"),{backgroundColor:Object(c.a)(n.palette.primary.main,n.palette.action.selectedOpacity+n.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:Object(c.a)(n.palette.primary.main,n.palette.action.selectedOpacity)}}),Object(r.a)(t,"&.".concat(ae.focusVisible),{backgroundColor:n.palette.action.focus}),Object(r.a)(t,"&.".concat(ae.disabled),{opacity:n.palette.action.disabledOpacity}),Object(r.a)(t,"& + .".concat(ne.root),{marginTop:n.spacing(1),marginBottom:n.spacing(1)}),Object(r.a)(t,"& + .".concat(ne.inset),{marginLeft:52}
2),Object(r.a)(t,"& .".concat(ie.root),{marginTop:0,marginBottom:0}),Object(r.a)(t,"& .".concat(ie.inset),{paddingLeft:36}),Object(r.a)(t,"& .".concat(re.root),{minWidth:36}),t),!i.dense&&Object(r.a)({},n.breakpoints.up("sm"),{minHeight:"auto"}),i.dense&&Object(o.a)({minHeight:36},n.typography.body2,Object(r.a)({},"& .".concat(re.root," svg"),{fontSize:"1.25rem"})))})),ce=a.forwardRef((function(e,t){var n=Object(f.a)({props:e,name:"MuiMenuItem"}),r=n.autoFocus,c=void 0!==r&&r,l=n.component,h=void 0===l?"li":l,g=n.dense,v=void 0!==g&&g,m=n.divider,y=void 0!==m&&m,b=n.disableGutters,_=void 0!==b&&b,w=n.focusVisibleClassName,x=n.role,O=void 0===x?"menuitem":x,S=n.tabIndex,E=Object(i.a)(n,se),k=a.useContext(d.a),C={dense:v||k.dense||!1,disableGutters:_},T=a.useRef(null);Object(te.a)((function(){c&&T.current&&T.current.focus()}),[c]);var I,A=Object(o.a)({},n,{dense:C.dense,divider:y,disableGutters:_}),P=function(e){var t=e.disabled,n=e.dense,r=e.divider,i=e.disableGutters,a=e.selected,s=e.classes,c={root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},l=Object(u.a)(c,oe,s);return Object(o.a)({},s,l)}(n),N=Object(p.a)(T,t);return n.disabled||(I=void 0!==S?S:-1),Object(j.jsx)(d.a.Provider,{value:C,children:Object(j.jsx)(ue,Object(o.a)({ref:N,role:O,tabIndex:I,component:h,focusVisibleClassName:Object(s.a)(P.focusVisible,w)},E,{ownerState:A,classes:P}))})}));t.a=ce},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(7)),s=n(108),u=n(44),c=Object(u.a)(o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),l=Object(u.a)(o.createElement("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),f=n(16);var d=Object(f.a)((function(e){return{root:{position:"relative",display:"flex","&$checked $layer":{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}},layer:{left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},checked:{}}}),{name:"PrivateRadioButtonIcon"})((function(e){var t=e.checked,n=e.classes,r=e.fontSize;return o.createElement("div",{className:Object(a.a)(n.root,t&&n.checked)},o.createElement(c,{fontSize:r}),o.createElement(l,{fontSize:r,className:n.layer}))}
2)),h=n(30),p=n(20),g=n(69),v=n(105);var m=o.createElement(d,{checked:!0}),y=o.createElement(d,null),b=o.forwardRef((function(e,t){var n=e.checked,u=e.classes,c=e.color,l=void 0===c?"secondary":c,f=e.name,d=e.onChange,h=e.size,b=void 0===h?"medium":h,_=Object(i.a)(e,["checked","classes","color","name","onChange","size"]),w=o.useContext(v.a),x=n,O=Object(g.a)(d,w&&w.onChange),S=f;return w&&("undefined"===typeof x&&(x=w.value===e.value),"undefined"===typeof S&&(S=w.name)),o.createElement(s.a,Object(r.a)({color:l,type:"radio",icon:o.cloneElement(y,{fontSize:"small"===b?"small":"medium"}),checkedIcon:o.cloneElement(m,{fontSize:"small"===b?"small":"medium"}),classes:{root:Object(a.a)(u.root,u["color".concat(Object(p.a)(l))]),checked:u.checked,disabled:u.disabled},name:S,checked:x,onChange:O,ref:t},_))}));t.a=Object(f.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(h.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(h.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiRadio"})(b)},function(e,t,n){"use strict";var r=n(15),i=n(14),o=n(6),a=n(0),s=(n(8),n(7)),u=n(262),c=n(19),l=n(13),f=n(72),d=n(34);var h=function(e,t){return a.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)},p=n(78),g=n(195),v=n(263);function m(e){return Object(g.a)("MuiFormControl",e)}Object(v.a)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var y=n(1),b=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],_=Object(l.a)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return Object(o.a)({},t.root,t["margin".concat(Object(d.a)(n.margin))],n.fullWidth&&t.fullWidth)}})((function(e){var t=e.ownerState;return Object(o.a)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})})),w=a.forwardRef((function(e,t){var n=Object(c.a)({props:e,name:"MuiFormControl"}),l=n.children,g=n.className,v=n.color,w=void 0===v?"primary":v,x=n.component,O=void 0===x?"div":x,S=n.disabled,E=void 0!==S&&S,k=n.error,C=void 0!==k&&k,T=n.focused,j=n.fullWidth,I=void 0!==j&&j,A=n.hiddenLabel,P=void 0!==A&&A,N=n.margin,M=void 0===N?"none":N,R=n.required,L=void 0!==R&&R,D=n.size,F=void 0===D?"medium":D,V=n.variant,U=void 0===V?"outlined":V,B=Object(i.a)(n,b),z=Object(o.a)({},n,{color:w,component:O,disabled:E,error:C,fullWidth:I,hiddenLabel:P,margin:M,required:L,size:F,variant:U}),q=function(e){var t=e.classes,n=e.margin,r=e.fullWidth,i={root:["root","none"!==n&&"margin".concat(Object(d.a)(n)),r&&"fullWidth"]};return Object(u.a)(i,m,t)}(z),G=a.useState((function(){var e=!1;return l&&a.Children.forEach(l,(function(t){if(h(t,["Input","Select"])){var n=h(t,["Select"])?t.props.input:t;n&&Object(f.a)(n.props)&&(e=!0)}})),e})),W=Object(r.a)(G,2),H=W[0],K=W[1],X=a.useState((function(){var e=!1;return l&&a.Children.forEach(l,(function(t){h(t,["Input","Select"])&&Object(f.b)(t.props,!0)&&(e=!0)})),e})),Y=Object(r.a)(X,2),$=Y[0],Q=Y[1],J=a.useState(!1),Z=Object(r.a)(J,2),ee=Z[0],te=Z[1];E&&ee&&te(!1);var ne=void 0===T||E?ee:T,re=a.useCallback((function(){Q(!0)}),[]),ie={adornedStart:H,setAdornedStart:K,color:w,disabled:E,error:C,filled:$,focused:ne,fullWidth:I,hiddenLabel:P,size:F,onBlur:function(){te(!1)},onEmpty:a.useCallback((function(){Q(!1)}),[]),onFilled:re,onFocus:function(){te(!0)},registerEffect:undefined,required:L,variant:U};return Object(y.jsx)(p.a.Provider,{value:ie,children:Object(y.jsx)(_,Object(o.a)({as:O,ownerState:z,className:Object(s.a)(q.root,g),ref:t},B,{children:l}))})}));t.a=w},function(e,t,n){"use strict";var r=n(10),i=n(14),o=n(6),a=n(0),s=(n(8),n(262)),u=n(60),c=n(59),l=n(7),f=n(34),d=n(19),h=n(13),p=n(195),g=n(263);function v(e){return Object(p.a)("MuiFormLabel",e)}var m=Object(g.a)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),y=n(1),b=["children","className","color","component","disabled","error","filled","focused","required"],_=Object(h.a)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return Object(o.a)({},t.root,"secondary"===n.color&&t.colorSecondary,n.filled&&t.filled)}})((function(e){var t,n=e.theme,i=e.ownerState;return Object(o.a)({color:n.palette.text.secondary},n.typography.body1,(t={lineHeight:"1.4375em",padding:0,position:"relative"}
2,Object(r.a)(t,"&.".concat(m.focused),{color:n.palette[i.color].main}),Object(r.a)(t,"&.".concat(m.disabled),{color:n.palette.text.disabled}),Object(r.a)(t,"&.".concat(m.error),{color:n.palette.error.main}),t))})),w=Object(h.a)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:function(e,t){return t.asterisk}})((function(e){var t=e.theme;return Object(r.a)({},"&.".concat(m.error),{color:t.palette.error.main})})),x=a.forwardRef((function(e,t){var n=Object(d.a)({props:e,name:"MuiFormLabel"}),r=n.children,a=n.className,h=n.component,p=void 0===h?"label":h,g=Object(i.a)(n,b),m=Object(c.a)(),x=Object(u.a)({props:n,muiFormControl:m,states:["color","required","focused","disabled","error","filled"]}),O=Object(o.a)({},n,{color:x.color||"primary",component:p,disabled:x.disabled,error:x.error,filled:x.filled,focused:x.focused,required:x.required}),S=function(e){var t=e.classes,n=e.color,r=e.focused,i=e.disabled,o=e.error,a=e.filled,u=e.required,c={root:["root","color".concat(Object(f.a)(n)),i&&"disabled",o&&"error",a&&"filled",r&&"focused",u&&"required"],asterisk:["asterisk",o&&"error"]};return Object(s.a)(c,v,t)}(O);return Object(y.jsxs)(_,Object(o.a)({as:p,ownerState:O,className:Object(l.a)(S.root,a),ref:t},g,{children:[r,x.required&&Object(y.jsxs)(w,{ownerState:O,"aria-hidden":!0,className:S.asterisk,children:["\u2009","*"]})]}))}));function O(e){return Object(p.a)("MuiInputLabel",e)}Object(g.a)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var S=["disableAnimation","margin","shrink","variant"],E=Object(h.a)(x,{shouldForwardProp:function(e){return Object(h.b)(e)||"classes"===e},name:"MuiInputLabel",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[Object(r.a)({},"& .".concat(m.asterisk),t.asterisk),t.root,!n.formControl&&t.formControl,"small"===n.size&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})((function(e){var t=e.theme,n=e.ownerState;return Object(o.a)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},n.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===n.size&&{transform:"translate(0, 17px) scale(1)"},n.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!n.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===n.variant&&Object(o.a)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(12px, 13px) scale(1)"},n.shrink&&Object(o.a)({transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===n.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===n.variant&&Object(o.a)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===n.size&&{transform:"translate(14px, 9px) scale(1)"},n.shrink&&{maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))})),k=a.forwardRef((function(e,t){var n=Object(d.a)({name:"MuiInputLabel",props:e}),r=n.disableAnimation,a=void 0!==r&&r,l=n.shrink,f=Object(i.a)(n,S),h=Object(c.a)(),p=l;"undefined"===typeof p&&h&&(p=h.filled||h.focused||h.adornedStart);var g=Object(u.a)({props:n,muiFormControl:h,states:["size","variant","required"]}),v=Object(o.a)({},n,{disableAnimation:a,formControl:h,shrink:p,size:g.size,variant:g.variant,required:g.required}),m=function(e){var t=e.classes,n=e.formControl,r=e.size,i=e.shrink,a={root:["root",n&&"formControl",!e.disableAnimation&&"animated",i&&"shrink","small"===r&&"sizeSmall",e.variant],asterisk:[e.required&&"asterisk"]},u=Object(s.a)(a,O,t);return Object(o.a)({},t,u)}(v);return Object(y.jsx)(E,Object(o.a)({"data-shrink":p,ownerState:v,ref:t},f,{classes:m}))}));t.a=k},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(7)),s=n(108),u=n(44),c=Object(u.a)(o.createElement("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),l=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),f=n(30),d=Object(u.a)(o.createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox"),h=n(20),p=n(16),g=o.createElement(l,null),v=o.createElement(c,null),m=o.createElement(d,null),y=o.forwardRef((function(e,t){var n=e.checkedIcon,u=void 0===n?g:n,c=e.classes,l=e.color,f=void 0===l?"secondary":l,d=e.icon,p=void 0===d?v:d,y=e.indeterminate,b=void 0!==y&&y,_=e.indeterminateIcon,w=void 0===_?m:_,x=e.inputProps,O=e.size,S=void 0===O?"medium":O,E=Object(i.a)(e,["checkedIcon","classes","color","icon","indeterminate","indeterminateIcon","inputProps","
2size"]),k=b?w:p,C=b?w:u;return o.createElement(s.a,Object(r.a)({type:"checkbox",classes:{root:Object(a.a)(c.root,c["color".concat(Object(h.a)(f))],b&&c.indeterminate),checked:c.checked,disabled:c.disabled},color:f,inputProps:Object(r.a)({"data-indeterminate":b},x),icon:o.cloneElement(k,{fontSize:void 0===k.props.fontSize&&"small"===S?S:k.props.fontSize}),checkedIcon:o.cloneElement(C,{fontSize:void 0===C.props.fontSize&&"small"===S?S:C.props.fontSize}),ref:t},E))}));t.a=Object(p.a)((function(e){return{root:{color:e.palette.text.secondary},checked:{},disabled:{},indeterminate:{},colorPrimary:{"&$checked":{color:e.palette.primary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}},colorSecondary:{"&$checked":{color:e.palette.secondary.main,"&:hover":{backgroundColor:Object(f.a)(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"&$disabled":{color:e.palette.action.disabled}}}}),{name:"MuiCheckbox"})(y)},function(e,t,n){"use strict";var r=n(41),i=n(52),o=n(144),a=["values","unit","step"];function s(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,o=e.unit,s=void 0===o?"px":o,u=e.step,c=void 0===u?5:u,l=Object(i.a)(e,a),f=Object.keys(n);function d(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function h(e,t){var r=f.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[f[r]]?n[f[r]]:t)-c/100).concat(s,")")}return Object(r.a)({keys:f,values:n,up:d,down:function(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-c/100).concat(s,")")},between:h,only:function(e){return f.indexOf(e)+1<f.length?h(e,f[f.indexOf(e)+1]):d(e)},unit:s},l)}var u={borderRadius:4},c=n(40);function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Object(c.a)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=0===n.length?[1]:n;return i.map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}var f=["breakpoints","palette","spacing","shape"];t.a=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,a=e.palette,c=void 0===a?{}:a,d=e.spacing,h=e.shape,p=void 0===h?{}:h,g=Object(i.a)(e,f),v=s(n),m=l(d),y=Object(o.a)({breakpoints:v,direction:"ltr",components:{},palette:Object(r.a)({mode:"light"},c),spacing:m,shape:Object(r.a)({},u,p)},g),b=arguments.length,_=new Array(b>1?b-1:0),w=1;w<b;w++)_[w-1]=arguments[w];return y=_.reduce((function(e,t){return Object(o.a)(e,t)}),y)}},function(e,t,n){"use strict";var r=n(106);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)}var o=n(109),a=(n(8),n(0)),s=n.n(a),u=n(81);function c(e,t){var n=Object.create(null);return e&&a.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Object(a.isValidElement)(e)?t(e):e}(e)})),n}function l(e,t,n){return null!=n[t]?n[t]:e.props[t]}function f(e,t,n){var r=c(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);var s={};for(var u in t){if(i[u])for(r=0;r<i[u].length;r++){var c=i[u][r];s[i[u][r]]=n(c)}s[u]=n(u)}for(r=0;r<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);
vendor: 1,114 bytes, line 2
2return Object.keys(i).forEach((function(o){var s=i[o];if(Object(a.isValidElement)(s)){var u=o in t,c=o in r,f=t[o],d=Object(a.isValidElement)(f)&&!f.props.in;!c||u&&!d?c||!u||d?c&&u&&Object(a.isValidElement)(f)&&(i[o]=Object(a.cloneElement)(s,{onExited:n.bind(null,s),in:f.props.in,exit:l(s,"exit",e),enter:l(s,"enter",e)})):i[o]=Object(a.cloneElement)(s,{in:!1}):i[o]=Object(a.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:l(s,"exit",e),enter:l(s,"enter",e)})}})),i}var d=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},h=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}Object(o.a)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,o=t.handleExited;
2return{children:t.firstRender?(n=e,r=o,c(n.children,(function(e){return Object(a.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:l(e,"appear",n),enter:l(e,"enter",n),exit:l(e,"exit",n)})}))):f(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=c(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=i({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,i=Object(r.a)(e,["component","childFactory"]),o=this.state.contextValue,a=d(this.state.children).map(n);return delete i.appear,delete i.enter,delete i.exit,null===t?s.a.createElement(u.a.Provider,{value:o},a):s.a.createElement(u.a.Provider,{value:o},s.a.createElement(t,i,a))},t}(s.a.Component);h.propTypes={},h.defaultProps={component:"div",childFactory:function(e){return e}};t.a=h},function(e,t,n){"use strict";var r=n(4),i=n(51),o=n(9),a=n(0),s=(n(8),n(7)),u=n(16),c=a.forwardRef((function(e,t){var n=e.classes,i=e.className,u=e.row,c=void 0!==u&&u,l=Object(o.a)(e,["classes","className","row"]);return a.createElement("div",Object(r.a)({className:Object(s.a)(n.root,i,c&&n.row),ref:t},l))})),l=Object(u.a)({root:{display:"flex",flexDirection:"column",flexWrap:"wrap"},row:{flexDirection:"row"}},{name:"MuiFormGroup"})(c),f=n(25),d=n(77),h=n(105);var p=a.forwardRef((function(e,t){var n=e.actions,s=e.children,u=e.name,c=e.value,p=e.onChange,g=Object(o.a)(e,["actions","children","name","value","onChange"]),v=a.useRef(null),m=Object(d.a)({controlled:c,default:e.defaultValue,name:"RadioGroup"}),y=Object(i.a)(m,2),b=y[0],_=y[1];a.useImperativeHandle(n,(function(){return{focus:function(){var e=v.current.querySelector("input:not(:disabled):checked");e||(e=v.current.querySelector("input:not(:disabled)")),e&&e.focus()}}}),[]);var w=Object(f.a)(t,v),x=function(e){var t=a.useState(e),n=t[0],r=t[1],i=e||n;return a.useEffect((function(){null==n&&r("mui-".concat(Math.round(1e5*Math.random())))}),[n]),i}(u);return a.createElement(h.a.Provider,{value:{name:x,onChange:function(e){_(e.target.value),p&&p(e,e.target.value)},value:b}},a.createElement(l,Object(r.a)({role:"radiogroup",ref:w},g),s))}));t.a=p},function(e,t,n){"use strict";var r=n(4),i=n(9),o=n(0),a=(n(8),n(7)),s=n(49),u=n(16),c=n(20),l={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},f=o.forwardRef((function(e,t){var n=e.align,s=void 0===n?"inherit":n,u=e.classes,f=e.className,d=e.color,h=void 0===d?"initial":d,p=e.component,g=e.display,v=void 0===g?"initial":g,m=e.gutterBottom,y=void 0!==m&&m,b=e.noWrap,_=void 0!==b&&b,w=e.paragraph,x=void 0!==w&&w,O=e.variant,S=void 0===O?"body1":O,E=e.variantMapping,k=void 0===E?l:E,C=Object(i.a)(e,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),T=p||(x?"p":k[S]||l[S])||"span";return o.createElement(T,Object(r.a)({className:Object(a.a)(u.root,f,"inherit"!==S&&u[S],"initial"!==h&&u["color".concat(Object(c.a)(h))],_&&u.noWrap,y&&u.gutterBottom,x&&u.paragraph,"inherit"!==s&&u["align".concat(Object(c.a)(s))],"initial"!==v&&u["display".concat(Object(c.a)(v))]),ref:t},C))})),d=Object(u.a)((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(f),h=o.forwardRef((function(e,t){e.checked;var n=e.classes,u=e.className,l=e.control,f=e.disabled,h=(e.inputRef,e.label),p=e.labelPlacement,g=void 0===p?"end":p,v=(e.name,e.onChange,e.value,Object(i.a)(e,["checked","classes","className","control","disabled","inputRef","label","labelPlacement","name","onChange","value"])),m=Object(s.a)(),y=f;"undefined"===typeof y&&"undefined"!==typeof l.props.disabled&&(y=l.props.disabled),"undefined"===typeof y&&m&&(y=m.disabled);var b={disabled:y};return["checked","name","onChange","value","inputRef"].forEach((function(t){"undefined"===typeof l.props[t]&&"undefined"!==typeof e[t]&&(b[t]=e[t])})),o.createElement("label",Object(r.a)({className:Object(a.a)(n.root,u,"end"!==g&&n["labelPlacement".concat(Object(c.a)(g))],y&&n.disabled),ref:t},v),o.cloneElement(l,b),o.createElement(d,{component:"span",className:Object(a.a)(n.label,y&&n.disabled)},h))}));t.a=Object(u.a)((function(e){return{root:{display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,"&$disabled":{cursor:"default"}},labelPlacementStart:{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},labelPlacementTop:{flexDirection:"column-reverse",marginLeft:16},labelPlacementBottom:{flexDirection:"column",marginLeft:16},disabled:{},label:{"&$disabled":{color:e.palette.text.disabled}}}}
2),{name:"MuiFormControlLabel"})(h)},function(e,t,n){"use strict";var r=n(9),i=n(55),o=n(4),a=n(0),s=(n(8),n(7)),u=n(16),c=n(198),l=n(82),f=n(25),d=n(83),h=n(22),p="undefined"===typeof window?a.useEffect:a.useLayoutEffect,g=a.forwardRef((function(e,t){var n=e.alignItems,i=void 0===n?"center":n,u=e.autoFocus,g=void 0!==u&&u,v=e.button,m=void 0!==v&&v,y=e.children,b=e.classes,_=e.className,w=e.component,x=e.ContainerComponent,O=void 0===x?"li":x,S=e.ContainerProps,E=(S=void 0===S?{}:S).className,k=Object(r.a)(S,["className"]),C=e.dense,T=void 0!==C&&C,j=e.disabled,I=void 0!==j&&j,A=e.disableGutters,P=void 0!==A&&A,N=e.divider,M=void 0!==N&&N,R=e.focusVisibleClassName,L=e.selected,D=void 0!==L&&L,F=Object(r.a)(e,["alignItems","autoFocus","button","children","classes","className","component","ContainerComponent","ContainerProps","dense","disabled","disableGutters","divider","focusVisibleClassName","selected"]),V=a.useContext(d.a),U={dense:T||V.dense||!1,alignItems:i},B=a.useRef(null);p((function(){g&&B.current&&B.current.focus()}),[g]);var z=a.Children.toArray(y),q=z.length&&Object(l.a)(z[z.length-1],["ListItemSecondaryAction"]),G=a.useCallback((function(e){B.current=h.findDOMNode(e)}),[]),W=Object(f.a)(G,t),H=Object(o.a)({className:Object(s.a)(b.root,_,U.dense&&b.dense,!P&&b.gutters,M&&b.divider,I&&b.disabled,m&&b.button,"center"!==i&&b.alignItemsFlexStart,q&&b.secondaryAction,D&&b.selected),disabled:I},F),K=w||"li";return m&&(H.component=w||"div",H.focusVisibleClassName=Object(s.a)(b.focusVisible,R),K=c.a),q?(K=H.component||w?K:"div","li"===O&&("li"===K?K="div":"li"===H.component&&(H.component="div")),a.createElement(d.a.Provider,{value:U},a.createElement(O,Object(o.a)({className:Object(s.a)(b.container,E),ref:W},k),a.createElement(K,H,z),z.pop()))):a.createElement(d.a.Provider,{value:U},a.createElement(K,Object(o.a)({ref:W},H),z))})),v=Object(u.a)((function(e){return{root:{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,"&$focusVisible":{backgroundColor:e.palette.action.selected},"&$selected, &$selected:hover":{backgroundColor:e.palette.action.selected},"&$disabled":{opacity:.5}},container:{position:"relative"},focusVisible:{},dense:{paddingTop:4,paddingBottom:4},alignItemsFlexStart:{alignItems:"flex-start"},disabled:{},divider:{borderBottom:"1px solid ".concat(e.palette.divider),backgroundClip:"padding-box"},gutters:{paddingLeft:16,paddingRight:16},button:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}},secondaryAction:{paddingRight:48},selected:{}}}),{name:"MuiListItem"})(g),m=a.forwardRef((function(e,t){var n,i=e.classes,u=e.className,c=e.component,l=void 0===c?"li":c,f=e.disableGutters,d=void 0!==f&&f,h=e.ListItemClasses,p=e.role,g=void 0===p?"menuitem":p,m=e.selected,y=e.tabIndex,b=Object(r.a)(e,["classes","className","component","disableGutters","ListItemClasses","role","selected","tabIndex"]);return e.disabled||(n=void 0!==y?y:-1),a.createElement(v,Object(o.a)({button:!0,role:g,tabIndex:n,component:l,selected:m,disableGutters:d,classes:Object(o.a)({dense:i.dense},h),className:Object(s.a)(i.root,u,m&&i.selected,!d&&i.gutters),ref:t},b))}));t.a=Object(u.a)((function(e){return{root:Object(o.a)({},e.typography.body1,Object(i.a)({minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",width:"auto",overflow:"hidden",whiteSpace:"nowrap"},e.breakpoints.up("sm"),{minHeight:"auto"})),gutters:{},selected:{},dense:Object(o.a)({},e.typography.body2,{minHeight:"auto"})}}),{name:"MuiMenuItem"})(m)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n.n(r);var o=i.a.createContext(null);function a(){return i.a.useContext(o)}},function(e,t,n){"use strict";var r=n(106),i=n(109),o=(n(8),n(0)),a=n.n(o),s=n(22),u=n.n(s),c=!1,l=n(81),f="unmounted",d="exited",h="entering",p="entered",g="exiting",v=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=d,r.appearStatus=h):i=p:i=t.unmountOnExit||t.mountOnEnter?f:d,r.state={status:i},r.nextCallback=null,r}Object(i.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===f?{status:d}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==h&&n!==p&&(t=h):n!==h&&n!==p||(t=g)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,a
2ppear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===h?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===d&&this.setState({status:f})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[u.a.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||c?this.safeSetState({status:p},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:h},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:p},(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:u.a.findDOMNode(this);t&&!c?(this.props.onExit(r),this.safeSetState({status:g},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:d},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:d},(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:u.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(e===f)return null;var t=this.props,n=t.children,i=(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(r.a)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a.a.createElement(l.a.Provider,{value:null},"function"===typeof n?n(e,i):a.a.cloneElement(a.a.Children.only(n),i))},t}(a.a.Component);function m(){}v.contextType=l.a,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:m,onEntering:m,onEntered:m,onExit:m,onExiting:m,onExited:m},v.UNMOUNTED=f,v.EXITED=d,v.ENTERING=h,v.ENTERED=p,v.EXITING=g;t.a=v}]]);
3//# sourceMappingURL=2.bfd6c308.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.