PageSourceSearch

https://qualityanalyst.net/static/js/main.415bbea6.js

js qualityanalyst.net collected 2026-10-09 00:44:30 UTC 1,045,001 bytes, 3 lines download raw bytes

1/*! For license information please see main.415bbea6.js.LICENSE.txt */
2(()=>{var e={381:(e,t,n)=>{var r="Expected a function",i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,l=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,h=c||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return h.Date.now()};function g(e,t,n){var i,s,o,a,l,c,u=0,h=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=s;return i=s=void 0,u=t,a=e.apply(r,n)}function w(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-u>=o}function _(){var e=m();if(w(e))return T(e);l=setTimeout(_,function(e){var n=t-(e-c);return d?p(n,o-(e-u)):n}(e))}function T(e){return l=void 0,g&&i?b(e):(i=s=void 0,a)}function x(){var e=m(),n=w(e);if(i=arguments,s=this,c=e,n){if(void 0===l)return function(e){return u=e,l=setTimeout(_,t),h?b(e):a}(c);if(d)return l=setTimeout(_,t),b(c)}return void 0===l&&(l=setTimeout(_,t)),a}return t=v(t)||0,y(n)&&(h=!!n.leading,o=(d="maxWait"in n)?f(v(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),x.cancel=function(){void 0!==l&&clearTimeout(l),u=0,i=c=s=l=void 0},x.flush=function(){return void 0===l?a:T(m())},x}function y(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(y(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=y(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=o.test(e);return n||a.test(e)?l(e.slice(2),n?2:8):s.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,s=!0;if("function"!=typeof e)throw new TypeError(r);return y(n)&&(i="leading"in n?!!n.leading:i,s="trailing"in n?!!n.trailing:s),g(e,t,{leading:i,maxWait:t,trailing:s})}},579:(e,t,n)=>{"use strict";e.exports=n(2799)},1497:(e,t,n)=>{"use strict";var r=n(3218);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,o){if(o!==r){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,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i}
2;return n.PropTypes=n,n}},2123:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,i){for(var s,o,a=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in s=Object(arguments[l]))n.call(s,c)&&(a[c]=s[c]);if(t){o=t(s);for(var u=0;u<o.length;u++)r.call(s,o[u])&&(a[o[u]]=s[o[u]])}}return a}},2799:(e,t)=>{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},4288:(e,t)=>
2{"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,m(w,y.prototype),w.isPureReactComponent=!0;var _=Array.isArray,T={H:null,A:null,T:null,S:null},x=Object.prototype.hasOwnProperty;function E(e,t,r,i,s,o){return r=o.ref,{$$typeof:n,type:e,key:t,ref:void 0!==r?r:null,props:o}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var k=/\/+/g;function I(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(){}function A(e,t,i,s,o){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l,c,u=!1;if(null===e)u=!0;else switch(a){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0;break;case d:return A((u=e._init)(e._payload),t,i,s,o)}}if(u)return o=o(e),u=""===s?"."+I(e,0):s,_(o)?(i="",null!=u&&(i=u.replace(k,"$&/")+"/"),A(o,t,i,"",(function(e){return e}))):null!=o&&(S(o)&&(l=o,c=i+(null==o.key||e&&e.key===o.key?"":(""+o.key).replace(k,"$&/")+"/")+u,o=E(l.type,c,void 0,0,0,l.props)),t.push(o)),1;u=0;var h,p=""===s?".":s+":";if(_(e))for(var m=0;m<e.length;m++)u+=A(s=e[m],t,i,a=p+I(s,m),o);else if("function"===typeof(m=null===(h=e)||"object"!==typeof h?null:"function"===typeof(h=f&&h[f]||h["@@iterator"])?h:null))for(e=m.call(e),m=0;!(s=e.next()).done;)u+=A(s=s.value,t,i,a=p+I(s,m++),o);else if("object"===a){if("function"===typeof e.then)return A(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(C,C):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,s,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function P(e,t,n){if(null==e)return e;var r=[],i=0;return A(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function N(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function D(){}t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=s,t.Suspense=u,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,t.act=function(){throw Error("act(...) is not supported in production builds of React.")},t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key;if(null!=t)for(s in void 0!==t.ref&&void 0,void 0!==t.key&&(i=""+t.key),t)!x.call(t,s)||"key"===s||"__self"===s||"__source"===s||"ref"===s&&void 0===t.ref||(r[s]=t[s]);var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){for(var o=Array(s),a=0;a<s;a++)o[a]=arguments[a+2];r.children=o}return E(e.type,i,void 0,0,0,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:a,_context:e},e},t.createElement=function(e,t,n){var r,i={},s=null;if(null!=t)for(r in void 0!==t.key&&(s=""+t.key),t)x.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var o=arguments.length-2;if(1===o)i.children=n;else if(1<o){for(var a=Array(o),l=0;l<o;l++)a[l]=arguments[l+2];i.children=a}if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===i[r]&&(i[r]=o[r]);return E(e,s,void 0,0,0,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=T.T,n={};T.T=n;
2try{var r=e(),i=T.S;null!==i&&i(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(D,R)}catch(s){R(s)}finally{T.T=t}},t.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},t.use=function(e){return T.H.use(e)},t.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},t.useCallback=function(e,t){return T.H.useCallback(e,t)},t.useContext=function(e){return T.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return T.H.useEffect(e,t)},t.useId=function(){return T.H.useId()},t.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return T.H.useMemo(e,t)},t.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},t.useRef=function(e){return T.H.useRef(e)},t.useState=function(e){return T.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return T.H.useTransition()},t.version="19.0.0"},4332:(e,t,n)=>{"use strict";var r,i=n(5043),s=(r=i)&&"object"===typeof r&&"default"in r?r.default:r;function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=!("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 l,c=[];function u(){l=e(c.map((function(e){return e.props}))),h.canUseDOM?t(l):n&&(l=n(l))}var h=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 l},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=l;return l=void 0,c=[],e};var o=i.prototype;return o.UNSAFE_componentWillMount=function(){c.push(this),u()},o.componentDidUpdate=function(){u()},o.componentWillUnmount=function(){var e=c.indexOf(this);c.splice(e,1),u()},o.render=function(){return s.createElement(r,this.props)},i}(i.PureComponent);return o(h,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")"),o(h,"canUseDOM",a),h}}},4358:(e,t)=>{"use strict";const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,s=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function l(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function c(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function u(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},4391:(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(7004)},5043:(e,t,n)=>{"use strict";e.exports=n(4288)},5173:(e,t,n)=>{e.exports=n(1497)()},5896:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<s(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var a=2*(r+1)-1,l=e[a],c=a+1,u=e[c];if(0>s(l,n))c<i&&0>s(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[a]=n,r=a);else{if(!(c<i&&0>s(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function s(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var a=Date,l=a.now();t.unstable_now=function(){return a.now()-l}}var c=[],u=[],h=1,d=null,f=3,p=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(u);null!==t;){if(null===t.callback)i(u);else{if(!(t.startTime<=e))break;i(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function _(e){if(g=!1,w(e),!m)if(null!==r(c))m=!0,N();else{var t=r(u);null!==t&&R(_,t.startTime-e)}}var T,x=!1,E=-1,S=5,k=-1;function I(){return!(t.unstable_now()-k<S)}function C(){if(x){var e=t.unstable_now();k=e;var n=!0;try{e:{m=!1,g&&(g=!1,v(E),E=-1),p=!0;var s=f;try{t:{for(w(e),d=r(c);null!==d&&!(d.expirationTime>e&&I());){var o=d.callback;if("function"===typeof o){d.callback=null,f=d.priorityLevel;var a=o(d.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof a){d.callback=a,w(e),n=!0;break t}d===r(c)&&i(c),w(e)}else i(c);d=r(c)}if(null!==d)n=!0;else{var l=r(u);null!==l&&R(_,l.startTime-e),n=!1}}break e}finally{d=null,f=s,p=!1}n=void 0}}finally{n?T():x=!1}}}if("function"===typeof b)T=function(){b(C)};else if("undefined"!==typeof MessageChannel){var A=new MessageChannel,P=A.port2;A.port1.onmessage=C,T=function(){P.postMessage(null)}}else T=function(){y(C,0)};function N(){x||(x=!0,T())}function R(e,n){E=y((function(){e(t.unstable_now())}),n)}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(){m||p||(m=!0,N())},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"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,i,s){var o=t.unstable_now();switch("object"===typeof s&&null!==s?s="number"===typeof(s=s.delay)&&0<s?o+s:o:s=o,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return e={id:h++,callback:i,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>o?(e.sortIndex=s,n(u,e),null===r(c)&&e===r(u)&&(g?(v(E),E=-1):g=!0,R(_,s-o))):(e.sortIndex=a,n(c,e),m||p||(m=!0,N())
2),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},6366:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function s(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var a,l,c,u;if(Array.isArray(e)){if((a=e.length)!=o.length)return!1;for(l=a;0!==l--;)if(!s(e[l],o[l]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!s(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((a=e.length)!=o.length)return!1;for(l=a;0!==l--;)if(e[l]!==o[l])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof o.toString)return e.toString()===o.toString();if((a=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(l=a;0!==l--;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=a;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!s(e[c[l]],o[c[l]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return s(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},6672:(e,t,n)=>{"use strict";var r=n(5043);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},a=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:a,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,o.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&o.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin),i="string"===typeof t.integrity?t.integrity:void 0,s="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:s}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:s,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=c(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=c(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=c(t.as,t.crossOrigin);o.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},t.requestFormReset=function(e){o.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.0.0"},7004:(e,t,n)=>{"use strict";var r=n(8853),i=n(5043),s=n(7950);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function a(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}var l=Symbol.for("react.element"),c=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),m=Symbol.for("react.consumer"),g=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),b=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),_=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var T=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var x=Symbol.for("react.memo_cache_sentinel"),E=Symbol.iterator;function S(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=E&&e[E]||e["@@iterator"])?e:null}var k=Symbol.for("react.client.reference");function I(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===k?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case h:return"Fragment";case u:return"Portal";case f:return"Profiler";case d:return"StrictMode";case v:return"Suspense";case b:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case g:return(e.displayName||"Context")+".Provider";case m:return(e._context.displayName||"Context")+".Consumer";case y:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(t=e.displayName||null)?t:I(e.type)||"Memo";case _:t=e._payload,e=e._init;try{return I(e(t))}catch(n){}}return null}var C,A,P=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=Object.assign;function R(e){if(void 0===C)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);C=t&&t[1]||"",A=-1<n.stack.indexOf("\n    at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+C+e+A}var D=!1;function O(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}
vendor: 5,108 bytes, line 2
2else{try{n.call()}catch(s){r=s}e.call(n.prototype)}}else{try{throw Error()}catch(o){r=o}(n=e())&&"function"===typeof n.catch&&n.catch((function(){}))}}catch(a){if(a&&r&&"string"===typeof a.stack)return[a.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=r.DetermineComponentFrameRoot(),o=s[0],a=s[1];if(o&&a){var l=o.split("\n"),c=a.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==c[i]){var u="\n"+l[r].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=r&&0<=i);break}}}finally{D=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?R(n):""}function L(e){switch(e.tag){case 26:case 27:case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 15:return e=O(e.type,!1);case 11:return e=O(e.type.render,!1);case 1:return e=O(e.type,!0);default:return""}}function j(e){try{var t="";do{t+=L(e),e=e.return}while(e);return t}catch(n){return"\nError generating stack: "+n.message+"\n"+n.stack}}function M(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function F(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 V(e){if(M(e)!==e)throw Error(o(188))}function U(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=U(e)))return t;e=e.sibling}return null}var z=Array.isArray,B=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q={pending:!1,data:null,method:null,action:null},$=[],H=-1;function W(e){return{current:e}}function K(e){0>H||(e.current=$[H],$[H]=null,H--)}function G(e,t){H++,$[H]=e.current,e.current=t}var Q=W(null),Y=W(null),X=W(null),J=W(null);function Z(e,t){switch(G(X,t),G(Y,e),G(Q,null),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Yu(t):0;break;default:if(t=(e=8===e?t.parentNode:t).tagName,e=e.namespaceURI)t=Xu(e=Yu(e),t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}K(Q),G(Q,t)}function ee(){K(Q),K(Y),K(X)}function te(e){null!==e.memoizedState&&G(J,e);var t=Q.current,n=Xu(t,e.type);t!==n&&(G(Y,e),G(Q,n))}function ne(e){Y.current===e&&(K(Q),K(Y)),J.current===e&&(K(J),jh._currentValue=q)}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,se=r.unstable_cancelCallback,oe=r.unstable_shouldYield,ae=r.unstable_requestPaint,le=r.unstable_now,ce=r.unstable_getCurrentPriorityLevel,ue=r.unstable_ImmediatePriority,he=r.unstable_UserBlockingPriority,de=r.unstable_NormalPriority,fe=r.unstable_LowPriority,pe=r.unstable_IdlePriority,me=r.log,ge=r.unstable_setDisableYieldValue,ye=null,ve=null;function be(e){if("function"===typeof me&&ge(e),ve&&"function"===typeof ve.setStrictMode)try{ve.setStrictMode(ye,e)}catch(t){}}var we=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(_e(e)/Te|0)|0},_e=Math.log,Te=Math.LN2;var xe=128,Ee=4194304;function Se(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function ke(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=e.warmLanes;e=0!==e.finishedLanes;var a=134217727&n;return 0!==a?0!==(n=a&~i)?r=Se(n):0!==(s&=a)?r=Se(s):e||0!==(o=a&~o)&&(r=Se(o)):0!==(a=n&~i)?r=Se(a):0!==s?r=Se(s):e||0!==(o=n&~o)&&(r=Se(o)),0===r?0:0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||32===i&&0!==(4194176&o))?t:r}function Ie(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Ce(e,t){switch(e){case 1:case 2:case 4:case 8:return t+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Ae(){var e=xe;return 0===(4194176&(xe<<=1))&&(xe=128),e}function Pe(){var e=Ee;return 0===(62914560&(Ee<<=1))&&(Ee=4194304),e}function Ne(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}
2function Re(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function De(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-we(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|4194218&n}function Oe(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-we(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Le(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function je(){var e=B.p;return 0!==e?e:void 0===(e=window.event)?32:Xh(e.type)}var Me=Math.random().toString(36).slice(2),Fe="__reactFiber$"+Me,Ve="__reactProps$"+Me,Ue="__reactContainer$"+Me,ze="__reactEvents$"+Me,Be="__reactListeners$"+Me,qe="__reactHandles$"+Me,$e="__reactResources$"+Me,He="__reactMarker$"+Me;function We(e){delete e[Fe],delete e[Ve],delete e[ze],delete e[Be],delete e[qe]}function Ke(e){var t=e[Fe];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ue]||n[Fe]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=lh(e);null!==e;){if(n=e[Fe])return n;e=lh(e)}return t}n=(e=n).parentNode}return null}function Ge(e){if(e=e[Fe]||e[Ue]){var t=e.tag;if(5===t||6===t||13===t||26===t||27===t||3===t)return e}return null}function Qe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(o(33))}function Ye(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Xe(e){e[He]=!0}var Je=new Set,Ze={};function et(e,t){tt(e,t),tt(e+"Capture",t)}function tt(e,t){for(Ze[e]=t,e=0;e<t.length;e++)Je.add(t[e])}var nt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),rt=RegExp("^[: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]*$"),it={},st={};function ot(e,t,n){if(i=t,re.call(st,i)||!re.call(it,i)&&(rt.test(i)?st[i]=!0:(it[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function at(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function lt(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function ct(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ut(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ht(e){e._valueTracker||(e._valueTracker=function(e){var t=ut(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,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,s.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 dt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ut(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function ft(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}}var pt=/[\n"\\]/g;function mt(e){return e.replace(pt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function gt(e,t,n,r,i,s,o,a){e.name="",null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+ct(t)):e.value!==""+ct(t)&&(e.value=""+ct(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?vt(e,o,ct(t)):null!=n?vt(e,o,ct(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=s&&(e.defaultChecked=!!s),null!=i&&(e.checked=i&&"function"!==typeof i&&"symbol"!==typeof i),null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a?e.name=""+ct(a):e.removeAttribute("name")}function yt(e,t,n,r,i,s,o,a){if(null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s&&(e.type=s),null!=t||null!=n){if(!("submit"!==s&&"reset"!==s||void 0!==t&&null!==t))return;n=null!=n?""+ct(n):"",t=null!=t?""+ct(t):n,a||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:i)&&"symbol"!==typeof r&&!!r,e.checked=a?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.name=o)}function vt(e,t,n){"number"===t&&ft(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function bt(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=""+ct(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 wt(e,t,n){null==t||((t=""+ct(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+ct(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function _t(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(o(92));if(z(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=ct(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r)}function Tt(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var xt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Et(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||xt.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function St(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(o(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Et(e,i,r)}else for(var s in t)t.hasOwnProperty(s)&&Et(e,s,t[s])}function kt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var It=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ct=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function At(e){return Ct.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Pt=null;function Nt(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Rt=null,Dt=null;function Ot(e){var t=Ge(e);if(t&&(e=t.stateNode)){var n=e[Ve]||null;e:switch(e=t.stateNode,t.type){case"input":if(gt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+mt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Ve]||null;if(!i)throw Error(o(90));gt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&dt(r)}break e;case"textarea":wt(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&bt(e,!!n.multiple,t,!1)}}}var Lt=!1;function jt(e,t,n){if(Lt)return e(t,n);Lt=!0;try{return e(t)}finally{if(Lt=!1,(null!==Rt||null!==Dt)&&(Fc(),Rt&&(t=Rt,e=Dt,Dt=Rt=null,Ot(t),e)))for(t=0;t<e.length;t++)Ot(e[t])}}function Mt(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Ve]||null;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(o(231,t,typeof n));return n}var Ft=!1;if(nt)try{var Vt={};Object.defineProperty(Vt,"passive",{get:function(){Ft=!0}}),window.addEventListener("test",Vt,Vt),window.removeEventListener("test",Vt,Vt)}catch(_d){Ft=!1}var Ut=null,zt=null,Bt=null;function qt(){if(Bt)return Bt;var e,t,n=zt,r=n.length,i="value"in Ut?Ut.value:Ut.textContent,s=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[s-t];t++);return Bt=i.slice(e,1<t?1-t:void 0)}function $t(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 Ht(){return!0}function Wt(){return!1}function Kt(e){function t(t,n,r,i,s){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=s,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Ht:Wt,this.isPropagationStopped=Wt,this}return N(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=Ht)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Ht)},persist:function(){},isPersistent:Ht}),t}var Gt,Qt,Yt,Xt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Jt=Kt(Xt),Zt=N({},Xt,{view:0,detail:0}),en=Kt(Zt),tn=N({},Zt,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yt&&(Yt&&"mousemove"===e.type?(Gt=e.screenX-Yt.screenX,Qt=e.screenY-Yt.screenY):Qt=Gt=0,Yt=e),Gt)},movementY:function(e){return"movementY"in e?e.movementY:Qt}}),nn=Kt(tn),rn=Kt(N({},tn,{dataTransfer:0})),sn=Kt(N({},Zt,{relatedTarget:0})),on=Kt(N({},Xt,{animationName:0,elapsedTime:0,pseudoElement:0})),an=Kt(N({},Xt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),ln=Kt(N({},Xt,{data:0})),cn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},un={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"},hn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function dn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=hn[e])&&!!t[e]}function fn(){return dn}var pn=Kt(N({},Zt,{key:function(e){if(e.key){var t=cn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=$t(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"ke
2yup"===e.type?un[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fn,charCode:function(e){return"keypress"===e.type?$t(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?$t(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),mn=Kt(N({},tn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),gn=Kt(N({},Zt,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fn})),yn=Kt(N({},Xt,{propertyName:0,elapsedTime:0,pseudoElement:0})),vn=Kt(N({},tn,{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})),bn=Kt(N({},Xt,{newState:0,oldState:0})),wn=[9,13,27,32],_n=nt&&"CompositionEvent"in window,Tn=null;nt&&"documentMode"in document&&(Tn=document.documentMode);var xn=nt&&"TextEvent"in window&&!Tn,En=nt&&(!_n||Tn&&8<Tn&&11>=Tn),Sn=String.fromCharCode(32),kn=!1;function In(e,t){switch(e){case"keyup":return-1!==wn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var An=!1;var Pn={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 Nn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Pn[e.type]:"textarea"===t}function Rn(e,t,n,r){Rt?Dt?Dt.push(r):Dt=[r]:Rt=r,0<(t=ju(t,"onChange")).length&&(n=new Jt("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Dn=null,On=null;function Ln(e){Cu(e,0)}function jn(e){if(dt(Qe(e)))return e}function Mn(e,t){if("change"===e)return t}var Fn=!1;if(nt){var Vn;if(nt){var Un="oninput"in document;if(!Un){var zn=document.createElement("div");zn.setAttribute("oninput","return;"),Un="function"===typeof zn.oninput}Vn=Un}else Vn=!1;Fn=Vn&&(!document.documentMode||9<document.documentMode)}function Bn(){Dn&&(Dn.detachEvent("onpropertychange",qn),On=Dn=null)}function qn(e){if("value"===e.propertyName&&jn(On)){var t=[];Rn(t,On,e,Nt(e)),jt(Ln,t)}}function $n(e,t,n){"focusin"===e?(Bn(),On=n,(Dn=t).attachEvent("onpropertychange",qn)):"focusout"===e&&Bn()}function Hn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return jn(On)}function Wn(e,t){if("click"===e)return jn(t)}function Kn(e,t){if("input"===e||"change"===e)return jn(t)}var Gn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Qn(e,t){if(Gn(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!re.call(t,i)||!Gn(e[i],t[i]))return!1}return!0}function Yn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Xn(e,t){var n,r=Yn(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=Yn(r)}}function Jn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Jn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function Zn(e){for(var t=ft((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ft((e=t.contentWindow).document)}return t}function er(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)}function tr(e,t){var n=Zn(t);t=e.focusedElem;var r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Jn(t.ownerDocument.documentElement,t)){if(null!==r&&er(t))if(e=r.start,void 0===(n=r.end)&&(n=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(n,t.value.length);else if((n=(e=t.ownerDocument||document)&&e.defaultView||window).getSelection){n=n.getSelection();var i=t.textContent.length,s=Math.min(r.start,i);r=void 0===r.end?s:Math.min(r.end,i),!n.extend&&s>r&&(i=r,r=s,s=i),i=Xn(t,s);var o=Xn(t,r);i&&o&&(1!==n.rangeCount||n.anchorNode!==i.node||n.anchorOffset!==i.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&((e=e.createRange()).setStart(i.node,i.offset),n.removeAllRanges(),s>r?(n.addRange(e),n.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),n.addRange(e)))}for(e=[],n=t;n=n.parentNode;)1===n.nodeType&&e.push({element:n,left:n.scrollLeft,top:n.scrollTop});
vendor: 20,096 bytes, line 2
2for("function"===typeof t.focus&&t.focus(),t=0;t<e.length;t++)(n=e[t]).element.scrollLeft=n.left,n.element.scrollTop=n.top}}var nr=nt&&"documentMode"in document&&11>=document.documentMode,rr=null,ir=null,sr=null,or=!1;function ar(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;or||null==rr||rr!==ft(r)||("selectionStart"in(r=rr)&&er(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},sr&&Qn(sr,r)||(sr=r,0<(r=ju(ir,"onSelect")).length&&(t=new Jt("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=rr)))}function lr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var cr={animationend:lr("Animation","AnimationEnd"),animationiteration:lr("Animation","AnimationIteration"),animationstart:lr("Animation","AnimationStart"),transitionrun:lr("Transition","TransitionRun"),transitionstart:lr("Transition","TransitionStart"),transitioncancel:lr("Transition","TransitionCancel"),transitionend:lr("Transition","TransitionEnd")},ur={},hr={};function dr(e){if(ur[e])return ur[e];if(!cr[e])return e;var t,n=cr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return ur[e]=n[t];return e}nt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete cr.animationend.animation,delete cr.animationiteration.animation,delete cr.animationstart.animation),"TransitionEvent"in window||delete cr.transitionend.transition);var fr=dr("animationend"),pr=dr("animationiteration"),mr=dr("animationstart"),gr=dr("transitionrun"),yr=dr("transitionstart"),vr=dr("transitioncancel"),br=dr("transitionend"),wr=new Map,_r="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(" ");function Tr(e,t){wr.set(e,t),et(t,[e])}var xr=[],Er=0,Sr=0;function kr(){for(var e=Er,t=Sr=Er=0;t<e;){var n=xr[t];xr[t++]=null;var r=xr[t];xr[t++]=null;var i=xr[t];xr[t++]=null;var s=xr[t];if(xr[t++]=null,null!==r&&null!==i){var o=r.pending;null===o?i.next=i:(i.next=o.next,o.next=i),r.pending=i}0!==s&&Pr(n,i,s)}}function Ir(e,t,n,r){xr[Er++]=e,xr[Er++]=t,xr[Er++]=n,xr[Er++]=r,Sr|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Cr(e,t,n,r){return Ir(e,t,n,r),Nr(e)}function Ar(e,t){return Ir(e,null,null,t),Nr(e)}function Pr(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,s=e.return;null!==s;)s.childLanes|=n,null!==(r=s.alternate)&&(r.childLanes|=n),22===s.tag&&(null===(e=s.stateNode)||1&e._visibility||(i=!0)),e=s,s=s.return;i&&null!==t&&3===e.tag&&(s=e.stateNode,i=31-we(n),null===(e=(s=s.hiddenUpdates)[i])?s[i]=[t]:e.push(t),t.lane=536870912|n)}function Nr(e){if(50<Cc)throw Cc=0,Ac=null,Error(o(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Rr={},Dr=new WeakMap;function Or(e,t){if("object"===typeof e&&null!==e){var n=Dr.get(e);return void 0!==n?n:(t={value:e,source:t,stack:j(t)},Dr.set(e,t),t)}return{value:e,source:t,stack:j(t)}}var Lr=[],jr=0,Mr=null,Fr=0,Vr=[],Ur=0,zr=null,Br=1,qr="";function $r(e,t){Lr[jr++]=Fr,Lr[jr++]=Mr,Mr=e,Fr=t}function Hr(e,t,n){Vr[Ur++]=Br,Vr[Ur++]=qr,Vr[Ur++]=zr,zr=e;var r=Br;e=qr;var i=32-we(r)-1;r&=~(1<<i),n+=1;var s=32-we(t)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Br=1<<32-we(t)+i|n<<i|r,qr=s+e}else Br=1<<s|n<<i|r,qr=e}function Wr(e){null!==e.return&&($r(e,1),Hr(e,1,0))}function Kr(e){for(;e===Mr;)Mr=Lr[--jr],Lr[jr]=null,Fr=Lr[--jr],Lr[jr]=null;for(;e===zr;)zr=Vr[--Ur],Vr[Ur]=null,qr=Vr[--Ur],Vr[Ur]=null,Br=Vr[--Ur],Vr[Ur]=null}var Gr=null,Qr=null,Yr=!1,Xr=null,Jr=!1,Zr=Error(o(519));function ei(e){throw si(Or(Error(o(418,"")),e)),Zr}function ti(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Fe]=e,t[Ve]=r,n){case"dialog":Au("cancel",t),Au("close",t);break;case"iframe":case"object":case"embed":Au("load",t);break;case"video":case"audio":for(n=0;n<ku.length;n++)Au(ku[n],t);break;case"source":Au("error",t);break;case"img":case"image":case"link":Au("error",t),Au("load",t);break;case"details":Au("toggle",t);break;case"input":Au("invalid",t),yt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),ht(t);break;case"select":Au("invalid",t);break;case"textarea":Au("invalid",t),_t(t,r.value,r.defaultValue,r.children),ht(t)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||Bu(t.textContent,n)?(null!=r.popover&&(Au("beforetoggle",t),Au("toggle",t)),null!=r.onScroll&&Au("scroll",t),null!=r.onScrollEnd&&Au("scrollend",t),null!=r.onClick&&(t.onclick=qu),t=!0):t=!1,t||ei(e)}function ni(e){for(Gr=e.return;Gr;)switch(Gr.tag){case 3:case 27:return void(Jr=!0);case 5:case 13:return void(Jr=!1);default:Gr=Gr.return}}function ri(e){if(e!==Gr)return!1;if(!Yr)return ni(e),Yr=!0,!1;var t,n=!1;if((t=3!==e.tag&&27!==e.tag)&&((t=5===e.tag)&&(t=!("form"!==(t=e.type)&&"button"!==t)||Ju(e.type,e.memoizedProps)),t=!t),t&&(n=!0),n&&Qr&&ei(e),ni(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(8===e.nodeType)if("/$"===(t=e.data)){if(0===n){Qr=ah(e.nextSibling);break e}n--}else"$"!==t&&"$!"!==t&&"$?"!==t||n++;e=e.nextSibling}Qr=null}}else Qr=Gr?ah(e.stateNode.nextSibling):null;return!0}function ii(){Qr=Gr=null,Yr=!1}function si(e){null===Xr?Xr=[e]:Xr.push(e)}var oi=Error(o(460)),ai=Error(o(474)),li={then:function(){}};function ci(e){return"fulfilled"===(e=e.status)||"rejected"===e}function ui(){}function hi(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(ui,ui),t=n),t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===oi)throw Error(o(483));throw e;default:if("string"===typeof t.status)t.then(ui,ui);else{if(null!==(e=tc)&&100<e.shellSuspendCounter)throw Error(o(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":if((e=t.reason)===oi)throw Error(o(483));throw e}throw di=t,oi}}var di=null;function fi(){if(null===di)throw Error(o(459));var e=di;return di=null,e}var pi=null,mi=0;function gi(e){var t=mi;return mi+=1,null===pi&&(pi=[]),hi(pi,e,t)}function yi(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function vi(e,t){if(t.$$typeof===l)throw Error(o(525));throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function wi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Ml(e,t)).index=0,e.sibling=null,e}function s(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=33554434,n):r:(t.flags|=33554434,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=33554434),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Bl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n,r){var s=n.type;return s===h?p(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===_&&bi(s)===t.type)?(yi(t=i(t,n.props),n),t.return=e,t):(yi(t=Vl(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ql(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function p(e,t,n,r,s){return null===t||7!==t.tag?((t=Ul(n,e.mode,r,s)).return=e,t):((t=i(t,n)).return=e,t)}function m(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Bl(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case c:return yi(n=Vl(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case u:return(t=ql(t,e.mode,n)).return=e,t;case _:return m(e,t=(0,t._init)(t._payload),n)}if(z(t)||S(t))return(t=Ul(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return m(e,gi(t),n);if(t.$$typeof===g)return m(e,ka(e,t),n);vi(e,t)}return null}function y(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case c:return n.key===i?d(e,t,n,r):null;case u:return n.key===i?f(e,t,n,r):null;case _:return y(e,t,n=(i=n._init)(n._payload),r)}if(z(n)||S(n))return null!==i?null:p(e,t,n,r,null);if("function"===typeof n.then)return y(e,t,gi(n),r);if(n.$$typeof===g)return y(e,t,ka(e,n),r);vi(e,n)}return null}function v(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case c:return d(t,e=e.get(null===r.key?n:r.key)||null,r,i);case u:return f(t,e=e.get(null===r.key?n:r.key)||null,r,i);case _:return v(e,t,n,r=(0,r._init)(r._payload),i)}if(z(r)||S(r))return p(t,e=e.get(n)||null,r,i,null);if("function"===typeof r.then)return v(e,t,n,gi(r),i);if(r.$$typeof===g)return v(e,t,n,ka(t,r),i);vi(t,r)}return null}function b(l,d,f,p){if("object"===typeof f&&null!==f&&f.type===h&&null===f.key&&(f=f.props.children),"object"===typeof f&&null!==f){switch(f.$$typeof){case c:e:{for(var w=f.key;null!==d;){if(d.key===w){if((w=f.type)===h){if(7===d.tag){n(l,d.sibling),(p=i(d,f.props.children)).return=l,l=p;break e}}else if(d.elementType===w||"object"===typeof w&&null!==w&&w.$$typeof===_&&bi(w)===d.type){n(l,d.sibling),yi(p=i(d,f.props),f),p.return=l,l=p;break e}n(l,d);break}t(l,d),d=d.sibling}f.type===h?((p=Ul(f.props.children,l.mode,p,f.key)).return=l,l=p):(yi(p=Vl(f.type,f.key,f.props,null,l.mode,p),f),p.return=l,l=p)}return a(l);case u:e:{for(w=f.key;null!==d;){if(d.key===w){if(4===d.tag&&d.stateNode.containerInfo===f.containerInfo&&d.stateNode.implementation===f.implementation){n(l,d.sibling),(p=i(d,f.children||[])).return=l,l=p;break e}n(l,d);break}t(l,d),d=d.sibling}(p=ql(f,l.mode,p)).return=l,l=p}return a(l);case _:return b(l,d,f=(w=f._init)(f._payload),p)}if(z(f))return function(i,o,a,l){for(var c=null,u=null,h=o,d=o=0,f=null;null!==h&&d<a.length;d++){h.index>d?(f=h,h=null):f=h.sibling;var p=y(i,h,a[d],l);if(null===p){null===h&&(h=f);break}e&&h&&null===p.alternate&&t(i,h),o=s(p,o,d),null===u?c=p:u.sibling=p,u=p,h=f}if(d===a.length)return n(i,h),Yr&&$r(i,d),c;if(null===h){for(;d<a.length;d++)null!==(h=m(i,a[d],l))&&(o=s(h,o,d),null===u?c=h:u.sibling=h,u=h);return Yr&&$r(i,d),c}for(h=r(h);d<a.length;d++)null!==(f=v(h,i,d,a[d],l))&&(e&&null!==f.alternate&&h.delete(null===f.key?d:f.key),o=s(f,o,d),null===u?c=f:u.sibling=f,u=f);return e&&h.forEach((function(e){return t(i,e)})),Yr&&$r(i,d),c}(l,d,f,p);if(S(f)){if("function"!==typeof(w=S(f)))throw Error(o(150));return function(i,a,l,c){if(null==l)throw Error(o(151));for(var u=null,h=null,d=a,f=a=0,p=null,g=l.next();null!==d&&!g.done;f++,g=l.next()){d.index>f?(p=d,d=null):p=d.sibling;var b=y(i,d,g.value,c);if(null===b){null===d&&(d=p);break}e&&d&&null===b.alternate&&t(i,d),a=s(b,a,f),null===h?u=b:h.sibling=b,h=b,d=p}if(g.done)return n(i,d),Yr&&$r(i,f),u;if(null===d){for(;!g.done;f++,g=l.next())null!==(g=m(i,g.value,c))&&(a=s(g,a,f),null===h?u=g:h.sibling=g,h=g);return Yr&&$r(i,f),u}for(d=r(d);!g.done;f++,g=l.next())null!==(g=v(d,i,f,g.value,c))&&(e&&null!==g.alternate&&d.delete(null===g.key?f:g.key),a=s(g,a,f),null===h?u=g:h.sibling=g,h=g);return e&&d.forEach((function(e){return t(i,e)})),Yr&&$r(i,f),u}(l,d,f=w.call(f),p)}if("function"===typeof f.then)return b(l,d,gi(f),p);if(f.$$typeof===g)return b(l,d,ka(l,f),p);vi(l,f)}return"string"===typeof f&&""!==f||"number"===typeof f||"bigint"===typeof f?(f=""+f,null!==d&&6===d.tag?(n(l,d.sibling),(p=i(d,f)).return=l,l=p):(n(l,d),(p=Bl(f,l.mode,p)).return=l,l=p),a(l)):n(l,d)}return function(e,t,n,r){try{mi=0;var i=b(e,t,n,r);return pi=null,i}catch(o){if(o===oi)throw o;var s=Ll(29,o,null,e.mode);return s.lanes=r,s.return=e,s}}}var _i=wi(!0),Ti=wi(!1),xi=W(null),Ei=W(0);function Si(e,t){G(Ei,e=cc),G(xi,t),cc=e|t.baseLanes}function ki(){G(Ei,cc),G(xi,xi.current)}function Ii(){cc=Ei.current,K(xi),K(Ei)}var Ci=W(null),Ai=null;function Pi(e){var t=e.alternate;G(Oi,1&Oi.current),G(Ci,e),null===Ai&&(null===t||null!==xi.current||null!==t.memoizedState)&&(Ai=e)}function Ni(e){if(22===e.tag){if(G(Oi,Oi.current),G(Ci,e),null===Ai){var t=e.alternate;null!==t&&null!==t.memoizedState&&(Ai=e)}}else Ri()}function Ri(){G(Oi,Oi.current),G(Ci,Ci.current)}function Di(e){K(Ci),Ai===e&&(Ai=null),K(Oi)}var Oi=W(0);function Li(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!==(128&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 ji="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Mi=r.unstable_scheduleCallback,Fi=r.unstable_NormalPriority,Vi={$$typeof:g,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ui(){return{controller:new ji,data:new Map,refCount:0}}function zi(e){e.refCount--,0===e.refCount&&Mi(Fi,(function(){e.controller.abort()}))}var Bi=null,qi=0,$i=0,Hi=null;function Wi(){if(0===--qi&&null!==Bi){null!==Hi&&(Hi.status="fulfilled");var e=Bi;Bi=null,$i=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ki=P.S;P.S=function(e,t){"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Bi){var n=Bi=[];qi=0,$i=_u(),Hi={status:"pending",value:void 0,then:function(e){n.push(e)}}}qi++,t.then(Wi,Wi)}(0,t),null!==Ki&&Ki(e,t)};var Gi=W(null);function Qi(){var e=Gi.current;return null!==e?e:tc.pooledCache}function Yi(e,t){G(Gi,null===t?Gi.current:t.pool)}function Xi(){var e=Qi();return null===e?null:{parent:Vi._currentValue,pool:e}}var Ji=0,Zi=null,es=null,ts=null,ns=!1,rs=!1,is=!1,ss=0,os=0,as=null,ls=0;function cs(){throw Error(o(321))}function us(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Gn(e[n],t[n]))return!1;return!0}function hs(e,t,n,r,i,s){return Ji=s,Zi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=null===e||null===e.memoizedState?ko:Io,is=!1,s=n(r,i),is=!1,rs&&(s=fs(t,n,r,i)),ds(e),s}function ds(e){P.H=So;var t=null!==es&&null!==es.next;if(Ji=0,ts=es=Zi=null,ns=!1,os=0,as=null,t)throw Error(o(300));null===e||$o||null!==(e=e.dependencies)&&xa(e)&&($o=!0)}function fs(e,t,n,r){Zi=e;var i=0;do{if(rs&&(as=null),os=0,rs=!1,25<=i)throw Error(o(301));if(i+=1,ts=es=null,null!=e.updateQueue){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,null!=s.memoCache&&(s.memoCache.index=0)}P.H=Co,s=t(n,r)}while(rs);return s}function ps(){var e=P.H,t=e.useState()[0];return t="function"===typeof t.then?ws(t):t,e=e.useState()[0],(null!==es?es.memoizedState:null)!==e&&(Zi.flags|=1024),t}function ms(){var e=0!==ss;return ss=0,e}function gs(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ys(e){if(ns){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}ns=!1}Ji=0,ts=es=Zi=null,rs=!1,os=ss=0,as=null}function vs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ts?Zi.memoizedState=ts=e:ts=ts.next=e,ts}function bs(){if(null===es){var e=Zi.alternate;e=null!==e?e.memoizedState:null}else e=es.next;var t=null===ts?Zi.memoizedState:ts.next;if(null!==t)ts=t,es=e;else{if(null===e){if(null===Zi.alternate)throw Error(o(467));throw Error(o(310))}e={memoizedState:(es=e).memoizedState,baseState:es.baseState,baseQueue:es.baseQueue,queue:es.queue,next:null},null===ts?Zi.memoizedState=ts=e:ts=ts.next=e}return ts}function ws(e){var t=os;return os+=1,null===as&&(as=[]),e=hi(as,e,t),t=Zi,null===(null===ts?t.memoizedState:ts.next)&&(t=t.alternate,P.H=null===t||null===t.memoizedState?ko:Io),e}function _s(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return ws(e);if(e.$$typeof===g)return Sa(e)}throw Error(o(438,String(e)))}function Ts(e){var t=null,n=Zi.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Zi.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Zi.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=x;return t.index++,n}function xs(e,t){return"function"===typeof t?t(e):t}function Es(e){return Ss(bs(),es,e)}function Ss(e,t,n){var r=e.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,s=r.pending;if(null!==s){if(null!==i){var a=i.next;i.next=s.next,s.next=a}t.baseQueue=i=s,r.pending=null}if(s=e.baseState,null===i)e.memoizedState=s;else{var l=a=null,c=null,u=t=i.next,h=!1;do{var d=-536870913&u.lane;if(d!==u.lane?(rc&d)===d:(Ji&d)===d){var f=u.revertLane;if(0===f)null!==c&&(c=c.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===$i&&(h=!0);else{if((Ji&f)===f){u=u.next,f===$i&&(h=!0);continue}d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=d,a=s):c=c.next=d,Zi.lanes|=f,hc|=f}d=u.action,is&&n(s,d),s=u.hasEagerState?u.eagerState:n(s,d)}else f={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},null===c?(l=c=f,a=s):c=c.next=f,Zi.lanes|=d,hc|=d;u=u.next}while(null!==u&&u!==t);if(null===c?a=s:c.next=l,!Gn(s,e.memoizedState)&&($o=!0,h&&null!==(n=Hi)))throw n;e.memoizedState=s,e.baseState=a,e.baseQueue=c,r.lastRenderedState=s}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ks(e){var t=bs(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,s=t.memoizedState;if(null!==i){n.pending=null;var a=i=i.next;do{s=e(s,a.action),a=a.next}while(a!==i);Gn(s,t.memoizedState)||($o=!0),t.memoizedState=s,null===t.baseQueue&&(t.baseState=s),n.lastRenderedState=s}return[s,r]}function Is(e,t,n){var r=Zi,i=bs(),s=Yr;if(s){if(void 0===n)throw Error(o(407));n=n()}else n=t();var a=!Gn((es||i).memoizedState,n);if(a&&(i.memoizedState=n,$o=!0),i=i.queue,Js(Ps.bind(null,r,i,e),[e]),i.getSnapshot!==t||a||null!==ts&&1&ts.memoizedState.tag){if(r.flags|=2048,Ks(9,As.bind(null,r,i,n,t),{destroy:void 0},null),null===tc)throw Error(o(349));s||0!==(60&Ji)||Cs(r,t,n)}return n}function Cs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Zi.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Zi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function As(e,t,n,r){t.value=n,t.getSnapshot=r,Ns(t)&&Rs(e)}function Ps(e,t,n){return n((function(){Ns(t)&&Rs(e)}))}function Ns(e){var t=e.getSnapshot;e=e.value;try{var n=t();
2return!Gn(e,n)}catch(r){return!0}}function Rs(e){var t=Ar(e,2);null!==t&&Rc(t,e,2)}function Ds(e){var t=vs();if("function"===typeof e){var n=e;if(e=n(),is){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:e},t}function Os(e,t,n,r){return e.baseState=n,Ss(e,es,"function"===typeof r?r:xs)}function Ls(e,t,n,r,i){if(To(e))throw Error(o(485));if(null!==(e=t.action)){var s={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){s.listeners.push(e)}};null!==P.T?n(!0):s.isTransition=!1,r(s),null===(n=t.pending)?(s.next=t.pending=s,js(t,s)):(s.next=n.next,t.pending=n.next=s)}}function js(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var s=P.T,o={};P.T=o;try{var a=n(i,r),l=P.S;null!==l&&l(o,a),Ms(e,t,a)}catch(c){Vs(e,t,c)}finally{P.T=s}}else try{Ms(e,t,s=n(i,r))}catch(u){Vs(e,t,u)}}function Ms(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then((function(n){Fs(e,t,n)}),(function(n){return Vs(e,t,n)})):Fs(e,t,n)}function Fs(e,t,n){t.status="fulfilled",t.value=n,Us(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,js(e,n)))}function Vs(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Us(t),t=t.next}while(t!==r)}e.action=null}function Us(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function zs(e,t){return t}function Bs(e,t){if(Yr){var n=tc.formState;if(null!==n){e:{var r=Zi;if(Yr){if(Qr){t:{for(var i=Qr,s=Jr;8!==i.nodeType;){if(!s){i=null;break t}if(null===(i=ah(i.nextSibling))){i=null;break t}}i="F!"===(s=i.data)||"F"===s?i:null}if(i){Qr=ah(i.nextSibling),r="F!"===i.data;break e}}ei(r)}r=!1}r&&(t=n[0])}}return(n=vs()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:t},n.queue=r,n=bo.bind(null,Zi,r),r.dispatch=n,r=Ds(!1),s=_o.bind(null,Zi,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=vs()).queue=i,n=Ls.bind(null,Zi,i,s,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function qs(e){return $s(bs(),es,e)}function $s(e,t,n){t=Ss(e,t,zs)[0],e=Es(xs)[0],t="object"===typeof t&&null!==t&&"function"===typeof t.then?ws(t):t;var r=bs(),i=r.queue,s=i.dispatch;return n!==r.memoizedState&&(Zi.flags|=2048,Ks(9,Hs.bind(null,i,n),{destroy:void 0},null)),[t,s,e]}function Hs(e,t){e.action=t}function Ws(e){var t=bs(),n=es;if(null!==n)return $s(t,n,e);bs(),t=t.memoizedState;var r=(n=bs()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ks(e,t,n,r){return e={tag:e,create:t,inst:n,deps:r,next:null},null===(t=Zi.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Zi.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Gs(){return bs().memoizedState}function Qs(e,t,n,r){var i=vs();Zi.flags|=e,i.memoizedState=Ks(1|t,n,{destroy:void 0},void 0===r?null:r)}function Ys(e,t,n,r){var i=bs();r=void 0===r?null:r;var s=i.memoizedState.inst;null!==es&&null!==r&&us(r,es.memoizedState.deps)?i.memoizedState=Ks(t,n,s,r):(Zi.flags|=e,i.memoizedState=Ks(1|t,n,s,r))}function Xs(e,t){Qs(8390656,8,e,t)}function Js(e,t){Ys(2048,8,e,t)}function Zs(e,t){return Ys(4,2,e,t)}function eo(e,t){return Ys(4,4,e,t)}function to(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}function no(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Ys(4,4,to.bind(null,t,e),n)}function ro(){}function io(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&us(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function so(e,t){var n=bs();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&us(t,r[1]))return r[0];if(r=e(),is){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function oo(e,t,n){return void 0===n||0!==(1073741824&Ji)?e.memoizedState=t:(e.memoizedState=n,e=Nc(),Zi.lanes|=e,hc|=e,n)}function ao(e,t,n,r){return Gn(n,t)?n:null!==xi.current?(e=oo(e,n,r),Gn(e,t)||($o=!0),e):0===(42&Ji)?($o=!0,e.memoizedState=n):(e=Nc(),Zi.lanes|=e,hc|=e,t)}function lo(e,t,n,r,i){var s=B.p;B.p=0!==s&&8>s?s:8;var o=P.T,a={};P.T=a,_o(e,!1,t,n);try{var l=i(),c=P.S;if(null!==c&&c(a,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)wo(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then((function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)}),(function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)})),r}(l,r),Pc());else wo(e,t,r,Pc())}catch(u){wo(e,t,{then:function(){},status:"rejected",reason:u},Pc())}finally{B.p=s,P.T=o}}function co(){}function uo(e,t,n,r){if(5!==e.tag)throw Error(o(476));
vendor: 8,356 bytes, line 2
2var i=ho(e).queue;lo(e,i,t,q,null===n?co:function(){return fo(e),n(r)})}function ho(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:q},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xs,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function fo(e){wo(e,ho(e).next.queue,{},Pc())}function po(){return Sa(jh)}function mo(){return bs().memoizedState}function go(){return bs().memoizedState}function yo(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Pc(),r=Ra(t,e=Na(n),n);return null!==r&&(Rc(r,t,n),Da(r,t,n)),t={cache:Ui()},void(e.payload=t)}t=t.return}}function vo(e,t,n){var r=Pc();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},To(e)?xo(t,n):null!==(n=Cr(e,t,n,r))&&(Rc(n,e,r),Eo(n,t,r))}function bo(e,t,n){wo(e,t,n,Pc())}function wo(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(To(e))xo(t,i);else{var s=e.alternate;if(0===e.lanes&&(null===s||0===s.lanes)&&null!==(s=t.lastRenderedReducer))try{var o=t.lastRenderedState,a=s(o,n);if(i.hasEagerState=!0,i.eagerState=a,Gn(a,o))return Ir(e,t,i,0),null===tc&&kr(),!1}catch(l){}if(null!==(n=Cr(e,t,i,r)))return Rc(n,e,r),Eo(n,t,r),!0}return!1}function _o(e,t,n,r){if(r={lane:2,revertLane:_u(),action:r,hasEagerState:!1,eagerState:null,next:null},To(e)){if(t)throw Error(o(479))}else null!==(t=Cr(e,n,r,2))&&Rc(t,e,2)}function To(e){var t=e.alternate;return e===Zi||null!==t&&t===Zi}function xo(e,t){rs=ns=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Eo(e,t,n){if(0!==(4194176&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Oe(e,n)}}var So={readContext:Sa,use:_s,useCallback:cs,useContext:cs,useEffect:cs,useImperativeHandle:cs,useLayoutEffect:cs,useInsertionEffect:cs,useMemo:cs,useReducer:cs,useRef:cs,useState:cs,useDebugValue:cs,useDeferredValue:cs,useTransition:cs,useSyncExternalStore:cs,useId:cs};So.useCacheRefresh=cs,So.useMemoCache=cs,So.useHostTransitionStatus=cs,So.useFormState=cs,So.useActionState=cs,So.useOptimistic=cs;var ko={readContext:Sa,use:_s,useCallback:function(e,t){return vs().memoizedState=[e,void 0===t?null:t],e},useContext:Sa,useEffect:Xs,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Qs(4194308,4,to.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qs(4194308,4,e,t)},useInsertionEffect:function(e,t){Qs(4,2,e,t)},useMemo:function(e,t){var n=vs();t=void 0===t?null:t;var r=e();if(is){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=vs();if(void 0!==n){var i=n(t);if(is){be(!0);try{n(t)}finally{be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=vo.bind(null,Zi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},vs().memoizedState=e},useState:function(e){var t=(e=Ds(e)).queue,n=bo.bind(null,Zi,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ro,useDeferredValue:function(e,t){return oo(vs(),e,t)},useTransition:function(){var e=Ds(!1);return e=lo.bind(null,Zi,e.queue,!0,!1),vs().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Zi,i=vs();if(Yr){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===tc)throw Error(o(349));0!==(60&rc)||Cs(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Xs(Ps.bind(null,r,s,e),[e]),r.flags|=2048,Ks(9,As.bind(null,r,s,n,t),{destroy:void 0},null),n},useId:function(){var e=vs(),t=tc.identifierPrefix;if(Yr){var n=qr;t=":"+t+"R"+(n=(Br&~(1<<32-we(Br)-1)).toString(32)+n),0<(n=ss++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ls++).toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return vs().memoizedState=yo.bind(null,Zi)}};ko.useMemoCache=Ts,ko.useHostTransitionStatus=po,ko.useFormState=Bs,ko.useActionState=Bs,ko.useOptimistic=function(e){var t=vs();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=_o.bind(null,Zi,!0,n),n.dispatch=t,[e,t]};var Io={readContext:Sa,use:_s,useCallback:io,useContext:Sa,useEffect:Js,useImperativeHandle:no,useInsertionEffect:Zs,useLayoutEffect:eo,useMemo:so,useReducer:Es,useRef:Gs,useState:function(){return Es(xs)},useDebugValue:ro,useDeferredValue:function(e,t){return ao(bs(),es.memoizedState,e,t)},useTransition:function(){var e=Es(xs)[0],t=bs().memoizedState;return["boolean"===typeof e?e:ws(e),t]},useSyncExternalStore:Is,useId:mo};Io.useCacheRefresh=go,Io.useMemoCache=Ts,Io.useHostTransitionStatus=po,Io.useFormState=qs,Io.useActionState=qs,Io.useOptimistic=function(e,t){return Os(bs(),0,e,t)};var Co={readContext:Sa,use:_s,useCallback:io,useContext:Sa,useEffect:Js,useImperativeHandle:no,useInsertionEffect:Zs,useLayoutEffect:eo,useMemo:so,useReducer:ks,useRef:Gs,useState:function(){return ks(xs)},useDebugValue:ro,useDeferredValue:function(e,t){var n=bs();return null===es?oo(n,e,t):ao(n,es.memoizedState,e,t)},useTransition:function(){var e=ks(xs)[0],t=bs().memoizedState;return["boolean"===typeof e?e:ws(e),t]},useSyncExternalStore:Is,useId:mo};function Ao(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:N({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}Co.useCacheRefresh=go,Co.useMemoCache=Ts,Co.useHostTransitionStatus=po,Co.useFormState=Ws,Co.useActionState=Ws,Co.useOptimistic=function(e,t){var n=bs();return null!==es?Os(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])};var Po={isMounted:function(e){return!!(e=e._reactInternals)&&M(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Pc(),i=Na(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ra(e,i,r))&&(Rc(t,e,r),Da(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Pc(),i=Na(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Ra(e,i,r))&&(Rc(t,e,r),Da(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Pc(),r=Na(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=Ra(e,r,n))&&(Rc(t,e,n),Da(t,e,n))}};function No(e,t,n,r,i,s,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,s,o):!t.prototype||!t.prototype.isPureReactComponent||(!Qn(n,r)||!Qn(i,s))}function Ro(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&&Po.enqueueReplaceState(t,t.state,null)}function Do(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=N({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}var Oo="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)};function Lo(e){Oo(e)}function jo(e){console.error(e)}function Mo(e){Oo(e)}function Fo(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout((function(){throw n}))}}function Vo(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout((function(){throw r}))}}function Uo(e,t,n){return(n=Na(n)).tag=3,n.payload={element:null},n.callback=function(){Fo(e,t)},n}function zo(e){return(e=Na(e)).tag=3,e}function Bo(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"===typeof i){var s=r.value;e.payload=function(){return i(s)},e.callback=function(){Vo(t,n,r)}}var o=n.stateNode;null!==o&&"function"===typeof o.componentDidCatch&&(e.callback=function(){Vo(t,n,r),"function"!==typeof i&&(null===Tc?Tc=new Set([this]):Tc.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var qo=Error(o(461)),$o=!1;
2function Ho(e,t,n,r){t.child=null===e?Ti(t,null,n,r):_i(t,e.child,n,r)}function Wo(e,t,n,r,i){n=n.render;var s=t.ref;if("ref"in r){var o={};for(var a in r)"ref"!==a&&(o[a]=r[a])}else o=r;return Ea(t),r=hs(e,t,n,o,s,i),a=ms(),null===e||$o?(Yr&&a&&Wr(t),t.flags|=1,Ho(e,t,r,i),t.child):(gs(e,t,i),da(e,t,i))}function Ko(e,t,n,r,i){if(null===e){var s=n.type;return"function"!==typeof s||jl(s)||void 0!==s.defaultProps||null!==n.compare?((e=Vl(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=s,Go(e,t,s,r,i))}if(s=e.child,!fa(e,i)){var o=s.memoizedProps;if((n=null!==(n=n.compare)?n:Qn)(o,r)&&e.ref===t.ref)return da(e,t,i)}return t.flags|=1,(e=Ml(s,r)).ref=t.ref,e.return=t,t.child=e}function Go(e,t,n,r,i){if(null!==e){var s=e.memoizedProps;if(Qn(s,r)&&e.ref===t.ref){if($o=!1,t.pendingProps=r=s,!fa(e,i))return t.lanes=e.lanes,da(e,t,i);0!==(131072&e.flags)&&($o=!0)}}return Jo(e,t,n,r,i)}function Qo(e,t,n){var r=t.pendingProps,i=r.children,s=0!==(2&t.stateNode._pendingVisibility),o=null!==e?e.memoizedState:null;if(Xo(e,t),"hidden"===r.mode||s){if(0!==(128&t.flags)){if(r=null!==o?o.baseLanes|n:n,null!==e){for(i=t.child=e.child,s=0;null!==i;)s=s|i.lanes|i.childLanes,i=i.sibling;t.childLanes=s&~r}else t.childLanes=0,t.child=null;return Yo(e,t,r,n)}if(0===(536870912&n))return t.lanes=t.childLanes=536870912,Yo(e,t,null!==o?o.baseLanes|n:n,n);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Yi(0,null!==o?o.cachePool:null),null!==o?Si(t,o):ki(),Ni(t)}else null!==o?(Yi(0,o.cachePool),Si(t,o),Ri(),t.memoizedState=null):(null!==e&&Yi(0,null),ki(),Ri());return Ho(e,t,i,n),t.child}function Yo(e,t,n,r){var i=Qi();return i=null===i?null:{parent:Vi._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},null!==e&&Yi(0,null),ki(),Ni(t),null!==e&&Ta(e,t,r,!0),null}function Xo(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=2097664);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(o(284));null!==e&&e.ref===n||(t.flags|=2097664)}}function Jo(e,t,n,r,i){return Ea(t),n=hs(e,t,n,r,void 0,i),r=ms(),null===e||$o?(Yr&&r&&Wr(t),t.flags|=1,Ho(e,t,n,i),t.child):(gs(e,t,i),da(e,t,i))}function Zo(e,t,n,r,i,s){return Ea(t),t.updateQueue=null,n=fs(t,r,n,i),ds(e),r=ms(),null===e||$o?(Yr&&r&&Wr(t),t.flags|=1,Ho(e,t,n,s),t.child):(gs(e,t,s),da(e,t,s))}function ea(e,t,n,r,i){if(Ea(t),null===t.stateNode){var s=Rr,o=n.contextType;"object"===typeof o&&null!==o&&(s=Sa(o)),s=new n(r,s),t.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=Po,t.stateNode=s,s._reactInternals=t,(s=t.stateNode).props=r,s.state=t.memoizedState,s.refs={},Aa(t),o=n.contextType,s.context="object"===typeof o&&null!==o?Sa(o):Rr,s.state=t.memoizedState,"function"===typeof(o=n.getDerivedStateFromProps)&&(Ao(t,n,o,r),s.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof s.getSnapshotBeforeUpdate||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||(o=s.state,"function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount(),o!==s.state&&Po.enqueueReplaceState(s,s.state,null),Ma(t,r,s,i),ja(),s.state=t.memoizedState),"function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){s=t.stateNode;var a=t.memoizedProps,l=Do(n,a);s.props=l;var c=s.context,u=n.contextType;o=Rr,"object"===typeof u&&null!==u&&(o=Sa(u));var h=n.getDerivedStateFromProps;u="function"===typeof h||"function"===typeof s.getSnapshotBeforeUpdate,a=t.pendingProps!==a,u||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(a||c!==o)&&Ro(t,s,r,o),Ca=!1;var d=t.memoizedState;s.state=d,Ma(t,r,s,i),ja(),c=t.memoizedState,a||d!==c||Ca?("function"===typeof h&&(Ao(t,n,h,r),c=t.memoizedState),(l=Ca||No(t,n,l,r,d,c,o))?(u||"function"!==typeof s.UNSAFE_componentWillMount&&"function"!==typeof s.componentWillMount||("function"===typeof s.componentWillMount&&s.componentWillMount(),"function"===typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"===typeof s.componentDidMount&&(t.flags|=4194308)):("function"===typeof s.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=o,r=l):("function"===typeof s.componentDidMount&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Pa(e,t),u=Do(n,o=t.memoizedProps),s.props=u,h=t.pendingProps,d=s.context,c=n.contextType,l=Rr,"object"===typeof c&&null!==c&&(l=Sa(c)),(c="function"===typeof(a=n.getDerivedStateFromProps)||"function"===typeof s.getSnapshotBeforeUpdate)||"function"!==typeof s.UNSAFE_componentWillReceiveProps&&"function"!==typeof s.componentWillReceiveProps||(o!==h||d!==l)&&Ro(t,s,r,l),Ca=!1,d=t.memoizedState,s.state=d,Ma(t,r,s,i),ja();var f=t.memoizedState;o!==h||d!==f||Ca||null!==e&&null!==e.dependencies&&xa(e.dependencies)?("function"===typeof a&&(Ao(t,n,a,r),f=t.memoizedState),(u=Ca||No(t,n,u,r,d,f,l)||null!==e&&null!==e.dependencies&&xa(e.dependencies))?(c||"function"!==typeof s.UNSAFE_componentWillUpdate&&"function"!==typeof s.componentWillUpdate||("function"===typeof s.componentWillUpdate&&s.componentWillUpdate(r,f,l),"function"===typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(r,f,l)),"function"===typeof s.componentDidUpdate&&(t.flags|=4),"function"===typeof s.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=f),s.props=r,s.state=f,s.context=l,r=u):("function"!==typeof s.componentDidUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof s.getSnapshotBeforeUpdate||o===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return s=r,Xo(e,t),r=0!==(128&t.flags),s||r?(s=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:s.render(),t.flags|=1,null!==e&&r?(t.child=_i(t,e.child,null,i),t.child=_i(t,null,n,i)):Ho(e,t,n,i),t.memoizedState=s.state,e=t.child):e=da(e,t,i),e}function ta(e,t,n,r){return ii(),t.flags|=256,Ho(e,t,n,r),t.child}var na={dehydrated:null,treeContext:null,retryLane:0};function ra(e){return{baseLanes:e,cachePool:Xi()}}function ia(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=pc),e}function sa(e,t,n){var r,i=t.pendingProps,s=!1,a=0!==(128&t.flags);if((r=a)||(r=(null===e||null!==e.memoizedState)&&0!==(2&Oi.current)),r&&(s=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(Yr){if(s?Pi(t):Ri(),Yr){var l,c=Qr;if(l=c){e:{for(l=c,c=Jr;
vendor: 35,076 bytes, line 2
28!==l.nodeType;){if(!c){c=null;break e}if(null===(l=ah(l.nextSibling))){c=null;break e}}c=l}null!==c?(t.memoizedState={dehydrated:c,treeContext:null!==zr?{id:Br,overflow:qr}:null,retryLane:536870912},(l=Ll(18,null,null,0)).stateNode=c,l.return=t,t.child=l,Gr=t,Qr=null,l=!0):l=!1}l||ei(t)}if(null!==(c=t.memoizedState)&&null!==(c=c.dehydrated))return"$!"===c.data?t.lanes=16:t.lanes=536870912,null;Di(t)}return c=i.children,i=i.fallback,s?(Ri(),c=aa({mode:"hidden",children:c},s=t.mode),i=Ul(i,s,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,(s=t.child).memoizedState=ra(n),s.childLanes=ia(e,r,n),t.memoizedState=na,i):(Pi(t),oa(t,c))}if(null!==(l=e.memoizedState)&&null!==(c=l.dehydrated)){if(a)256&t.flags?(Pi(t),t.flags&=-257,t=la(e,t,n)):null!==t.memoizedState?(Ri(),t.child=e.child,t.flags|=128,t=null):(Ri(),s=i.fallback,c=t.mode,i=aa({mode:"visible",children:i.children},c),(s=Ul(s,c,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,_i(t,e.child,null,n),(i=t.child).memoizedState=ra(n),i.childLanes=ia(e,r,n),t.memoizedState=na,t=s);else if(Pi(t),"$!"===c.data){if(r=c.nextSibling&&c.nextSibling.dataset)var u=r.dgst;r=u,(i=Error(o(419))).stack="",i.digest=r,si({value:i,source:null,stack:null}),t=la(e,t,n)}else if($o||Ta(e,t,n,!1),r=0!==(n&e.childLanes),$o||r){if(null!==(r=tc)){if(0!==(42&(i=n&-n)))i=1;else switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=64;break;case 268435456:i=134217728;break;default:i=0}if(0!==(i=0!==(i&(r.suspendedLanes|n))?0:i)&&i!==l.retryLane)throw l.retryLane=i,Ar(e,i),Rc(r,e,i),qo}"$?"===c.data||$c(),t=la(e,t,n)}else"$?"===c.data?(t.flags|=128,t.child=e.child,t=au.bind(null,e),c._reactRetry=t,t=null):(e=l.treeContext,Qr=ah(c.nextSibling),Gr=t,Yr=!0,Xr=null,Jr=!1,null!==e&&(Vr[Ur++]=Br,Vr[Ur++]=qr,Vr[Ur++]=zr,Br=e.id,qr=e.overflow,zr=t),(t=oa(t,i.children)).flags|=4096);return t}return s?(Ri(),s=i.fallback,c=t.mode,u=(l=e.child).sibling,(i=Ml(l,{mode:"hidden",children:i.children})).subtreeFlags=31457280&l.subtreeFlags,null!==u?s=Ml(u,s):(s=Ul(s,c,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,null===(c=e.child.memoizedState)?c=ra(n):(null!==(l=c.cachePool)?(u=Vi._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Xi(),c={baseLanes:c.baseLanes|n,cachePool:l}),s.memoizedState=c,s.childLanes=ia(e,r,n),t.memoizedState=na,i):(Pi(t),e=(n=e.child).sibling,(n=Ml(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function oa(e,t){return(t=aa({mode:"visible",children:t},e.mode)).return=e,e.child=t}function aa(e,t){return zl(e,t,0,null)}function la(e,t,n){return _i(t,e.child,null,n),(e=oa(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function ca(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),wa(e.return,t,n)}function ua(e,t,n,r,i){var s=e.memoizedState;null===s?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function ha(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(Ho(e,t,r.children,n),0!==(2&(r=Oi.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&ca(e,n,t);else if(19===e.tag)ca(e,n,t);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}switch(G(Oi,r),i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Li(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ua(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Li(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ua(t,!0,n,null,s);break;case"together":ua(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function da(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),hc|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Ta(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ml(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ml(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function fa(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!xa(e))}function pa(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)$o=!0;else{if(!fa(e,n)&&0===(128&t.flags))return $o=!1,function(e,t,n){switch(t.tag){case 3:Z(t,t.stateNode.containerInfo),va(t,Vi,e.memoizedState.cache),ii();break;case 27:case 5:te(t);break;case 4:Z(t,t.stateNode.containerInfo);break;case 10:va(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Pi(t),t.flags|=128,null):0!==(n&t.child.childLanes)?sa(e,t,n):(Pi(t),null!==(e=da(e,t,n))?e.sibling:null);Pi(t);break;case 19:var i=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(Ta(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return ha(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),G(Oi,Oi.current),r)break;return null;case 22:case 23:return t.lanes=0,Qo(e,t,n);case 24:va(t,Vi,e.memoizedState.cache)}return da(e,t,n)}(e,t,n);$o=0!==(131072&e.flags)}else $o=!1,Yr&&0!==(1048576&t.flags)&&Hr(t,Fr,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,"function"!==typeof r){if(void 0!==r&&null!==r){if((i=r.$$typeof)===y){t.tag=11,t=Wo(null,t,r,e,n);break e}if(i===w){t.tag=14,t=Ko(null,t,r,e,n);break e}}throw t=I(r)||r,Error(o(306,t,""))}jl(r)?(e=Do(r,e),t.tag=1,t=ea(null,t,r,e,n)):(t.tag=0,t=Jo(null,t,r,e,n))}return t;case 0:return Jo(e,t,t.type,t.pendingProps,n);case 1:return ea(e,t,r=t.type,i=Do(r,t.pendingProps),n);case 3:e:{if(Z(t,t.stateNode.containerInfo),null===e)throw Error(o(387));var s=t.pendingProps;r=(i=t.memoizedState).element,Pa(e,t),Ma(t,s,null,n);var a=t.memoizedState;if(s=a.cache,va(t,Vi,s),s!==i.cache&&_a(t,[Vi],n,!0),ja(),s=a.element,i.isDehydrated){if(i={element:s,isDehydrated:!1,cache:a.cache},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ta(e,t,s,n);break e}if(s!==r){si(r=Or(Error(o(424)),t)),t=ta(e,t,s,n);break e}for(Qr=ah(t.stateNode.containerInfo.firstChild),Gr=t,Yr=!0,Xr=null,Jr=!0,n=Ti(t,null,s,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ii(),s===r){t=da(e,t,n);break e}Ho(e,t,s,n)}t=t.child}return t;case 26:return Xo(e,t),null===e?(n=gh(t.type,null,t.pendingProps,null))?t.memoizedState=n:Yr||(n=t.type,e=t.pendingProps,(r=Qu(X.current).createElement(n))[Fe]=t,r[Ve]=e,Wu(r,n,e),Xe(r),t.stateNode=r):t.memoizedState=gh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return te(t),null===e&&Yr&&(r=t.stateNode=ch(t.type,t.pendingProps,X.current),Gr=t,Jr=!0,Qr=ah(r.firstChild)),r=t.pendingProps.children,null!==e||Yr?Ho(e,t,r,n):t.child=_i(t,null,r,n),Xo(e,t),t.child;case 5:return null===e&&Yr&&((i=r=Qr)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[He])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(s=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(s!==i.rel||e.getAttribute("href")!==(null==i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((s=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var s=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===s)return e}if(null===(e=ah(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,Jr))?(t.stateNode=r,Gr=t,Qr=ah(r.firstChild),Jr=!1,i=!0):i=!1),i||ei(t)),te(t),i=t.type,s=t.pendingProps,a=null!==e?e.memoizedProps:null,r=s.children,Ju(i,s)?r=null:null!==a&&Ju(i,a)&&(t.flags|=32),null!==t.memoizedState&&(i=hs(e,t,ps,null,null,n),jh._currentValue=i),Xo(e,t),Ho(e,t,r,n),t.child;case 6:return null===e&&Yr&&((e=n=Qr)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=ah(e.nextSibling)))return null}return e}(n,t.pendingProps,Jr))?(t.stateNode=n,Gr=t,Qr=null,e=!0):e=!1),e||ei(t)),null;case 13:return sa(e,t,n);case 4:return Z(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=_i(t,null,r,n):Ho(e,t,r,n),t.child;case 11:return Wo(e,t,t.type,t.pendingProps,n);case 7:return Ho(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ho(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,va(t,t.type,r.value),Ho(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Ea(t),r=r(i=Sa(i)),t.flags|=1,Ho(e,t,r,n),t.child;case 14:return Ko(e,t,t.type,t.pendingProps,n);case 15:return Go(e,t,t.type,t.pendingProps,n);case 19:return ha(e,t,n);case 22:return Qo(e,t,n);case 24:return Ea(t),r=Sa(Vi),null===e?(null===(i=Qi())&&(i=tc,s=Ui(),i.pooledCache=s,s.refCount++,null!==s&&(i.pooledCacheLanes|=n),i=s),t.memoizedState={parent:r,cache:i},Aa(t),va(t,Vi,i)):(0!==(e.lanes&n)&&(Pa(e,t),Ma(t,null,null,n),ja()),i=e.memoizedState,s=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),va(t,Vi,r)):(r=s.cache,va(t,Vi,r),r!==i.cache&&_a(t,[Vi],n,!0))),Ho(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}var ma=W(null),ga=null,ya=null;function va(e,t,n){G(ma,t._currentValue),t._currentValue=n}function ba(e){e._currentValue=ma.current,K(ma)}function wa(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _a(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var s=i.dependencies;if(null!==s){var a=i.child;s=s.firstContext;e:for(;null!==s;){var l=s;s=i;for(var c=0;c<t.length;c++)if(l.context===t[c]){s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),wa(s.return,n,e),r||(a=null);break e}s=l.next}}else if(18===i.tag){if(null===(a=i.return))throw Error(o(341));a.lanes|=n,null!==(s=a.alternate)&&(s.lanes|=n),wa(a,n,e),a=null}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===e){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function Ta(e,t,n,r){e=null;for(var i=t,s=!1;null!==i;){if(!s)if(0!==(524288&i.flags))s=!0;else if(0!==(262144&i.flags))break;if(10===i.tag){var a=i.alternate;if(null===a)throw Error(o(387));if(null!==(a=a.memoizedProps)){var l=i.type;Gn(i.pendingProps.value,a.value)||(null!==e?e.push(l):e=[l])}}else if(i===J.current){if(null===(a=i.alternate))throw Error(o(387));a.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(jh):e=[jh])}i=i.return}null!==e&&_a(t,e,n,r),t.flags|=262144}function xa(e){for(e=e.firstContext;null!==e;){if(!Gn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ea(e){ga=e,ya=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Sa(e){return Ia(ga,e)}function ka(e,t){return null===ga&&Ea(e),Ia(e,t)}function Ia(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===ya){if(null===e)throw Error(o(308));ya=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ya=ya.next=t;return n}var Ca=!1;function Aa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&ec)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Nr(e),Pr(e,null,n),t}return Ir(e,r,t,n),Nr(e)}function Da(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194176&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Oe(e,n)}}function Oa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,s=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===s?i=s=o:s=s.next=o,n=n.next}while(null!==n);null===s?i=s=t:s=s.next=t}else i=s=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var La=!1;function ja(){if(La){if(null!==Hi)throw Hi}}function Ma(e,t,n,r){La=!1;var i=e.updateQueue;Ca=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,a=i.shared.pending;if(null!==a){i.shared.pending=null;var l=a,c=l.next;l.next=null,null===o?s=c:o.next=c,o=l;var u=e.alternate;null!==u&&((a=(u=u.updateQueue).lastBaseUpdate)!==o&&(null===a?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(null!==s){var h=i.baseState;for(o=0,u=c=l=null,a=s;;){var d=-536870913&a.lane,f=d!==a.lane;if(f?(rc&d)===d:(r&d)===d){0!==d&&d===$i&&(La=!0),null!==u&&(u=u.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var p=e,m=a;d=t;var g=n;switch(m.tag){case 1:if("function"===typeof(p=m.payload)){h=p.call(g,h,d);break e}h=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=m.payload)?p.call(g,h,d):p)||void 0===d)break e;h=N({},h,d);break e;case 2:Ca=!0}}null!==(d=a.callback)&&(e.flags|=64,f&&(e.flags|=8192),null===(f=i.callbacks)?i.callbacks=[d]:f.push(d))}else f={lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===u?(c=u=f,l=h):u=u.next=f,o|=d;if(null===(a=a.next)){if(null===(a=i.shared.pending))break;a=(f=a).next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}null===u&&(l=h),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,null===s&&(i.shared.lanes=0),hc|=o,e.lanes=o,e.memoizedState=h}}function Fa(e,t){if("function"!==typeof e)throw Error(o(191,e));e.call(t)}function Va(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Fa(n[e],t)}function Ua(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var s=n.create,o=n.inst;r=s(),o.destroy=r}n=n.next}while(n!==i)}}catch(a){ru(t,t.return,a)}}function za(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var s=i.next;r=s;do{if((r.tag&e)===e){var o=r.inst,a=o.destroy;if(void 0!==a){o.destroy=void 0,i=t;var l=n;try{a()}catch(c){ru(i,l,c)}}}r=r.next}while(r!==s)}}catch(c){ru(t,t.return,c)}}function Ba(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{Va(t,n)}catch(r){ru(e,e.return,r)}}}function qa(e,t,n){n.props=Do(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){ru(e,t,r)}}function $a(e,t){try{var n=e.ref;if(null!==n){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var i=r;break;default:i=r}"function"===typeof n?e.refCleanup=n(i):n.current=i}}catch(s){ru(e,t,s)}}function Ha(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(i){ru(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(s){ru(e,t,s)}else n.current=null}function Wa(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){ru(e,e.return,i)}}function Ka(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,s=null,a=null,l=null,c=null,u=null,h=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&null!=d)switch(p){case"checked":case"value":break;case"defaultValue":c=d;default:r.hasOwnProperty(p)||$u(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(null!=p||null!=d))switch(f){case"type":s=p;break;case"name":i=p;break;case"checked":u=p;break;case"defaultChecked":h=p;break;case"value":a=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(o(137,t));break;default:p!==d&&$u(e,t,f,p,r,d)}}return void gt(e,a,l,c,u,h,s,i);case"select":for(s in p=a=l=f=null,n)if(c=n[s],n.hasOwnProperty(s)&&null!=c)switch(s){case"value":break;case"multiple":p=c;default:r.hasOwnProperty(s)||$u(e,t,s,null,r,c)}for(i in r)if(s=r[i],c=n[i],r.hasOwnProperty(i)&&(null!=s||null!=c))switch(i){case"value":f=s;break;case"defaultValue":l=s;break;case"multiple":a=s;default:s!==c&&$u(e,t,i,s,r,c)}return t=l,n=a,r=p,void(null!=f?bt(e,!!n,f,!1):!!r!==!!n&&(null!=t?bt(e,!!n,t,!0):bt(e,!!n,n?[]:"",!1)));case"textarea":for(l in p=f=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:$u(e,t,l,null,r,i)}for(a in r)if(i=r[a],s=n[a],r.hasOwnProperty(a)&&(null!=i||null!=s))switch(a){case"value":f=i;break;case"defaultValue":p=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(o(91));break;default:i!==s&&$u(e,t,a,i,r,s)}return void wt(e,f,p);case"option":for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&null!=f&&!r.hasOwnProperty(m))if("selected"===m)e.selected=!1;else $u(e,t,m,null,r,f);for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(null!=f||null!=p))if("selected"===c)e.selected=f&&"function"!==typeof f&&"symbol"!==typeof f;else $u(e,t,c,f,r,p);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)f=n[g],n.hasOwnProperty(g)&&null!=f&&!r.hasOwnProperty(g)&&$u(e,t,g,null,r,f);for(u in r)if(f=r[u],p=n[u],r.hasOwnProperty(u)&&f!==p&&(null!=f||null!=p))switch(u){case"children":case"dangerouslySetInnerHTML":if(null!=f)throw Error(o(137,t));break;default:$u(e,t,u,f,r,p)}return;default:if(kt(t)){for(var y in n)f=n[y],n.hasOwnProperty(y)&&void 0!==f&&!r.hasOwnProperty(y)&&Hu(e,t,y,void 0,r,f);for(h in r)f=r[h],p=n[h],!r.hasOwnProperty(h)||f===p||void 0===f&&void 0===p||Hu(e,t,h,f,r,p);return}}for(var v in n)f=n[v],n.hasOwnProperty(v)&&null!=f&&!r.hasOwnProperty(v)&&$u(e,t,v,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||null==f&&null==p||$u(e,t,d,f,r,p)}(r,e.type,n,t),r[Ve]=t}catch(i){ru(e,e.return,i)}}function Ga(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag||4===e.tag}function Qa(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ga(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&27!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,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=qu));else if(4!==r&&27!==r&&null!==(e=e.child))for(Ya(e,t,n),e=e.sibling;null!==e;)Ya(e,t,n),e=e.sibling}function Xa(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&27!==r&&null!==(e=e.child))for(Xa(e,t,n),e=e.sibling;null!==e;)Xa(e,t,n),e=e.sibling}var Ja=!1,Za=!1,el=!1,tl="function"===typeof WeakSet?WeakSet:Set,nl=null,rl=!1;function il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:yl(e,n),4&r&&Ua(5,n);break;case 1:if(yl(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(a){ru(n,n.return,a)}else{var i=Do(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(l){ru(n,n.return,l)}}64&r&&Ba(n),512&r&&$a(n,n.return);break;case 3:if(yl(e,n),64&r&&null!==(r=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:e=n.child.stateNode}try{Va(r,e)}catch(a){ru(n,n.return,a)}}break;case 26:yl(e,n),512&r&&$a(n,n.return);break;case 27:case 5:yl(e,n),null===t&&4&r&&Wa(n),512&r&&$a(n,n.return);break;case 12:default:yl(e,n);break;case 13:yl(e,n),4&r&&ul(e,n);break;case 22:if(!(i=null!==n.memoizedState||Ja)){t=null!==t&&null!==t.memoizedState||Za;var s=Ja,o=Za;Ja=i,(Za=t)&&!o?bl(e,n,0!==(8772&n.subtreeFlags)):yl(e,n),Ja=s,Za=o}512&r&&("manual"===n.memoizedProps.mode?$a(n,n.return):Ha(n,n.return))}}function sl(e){var t=e.alternate;null!==t&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&We(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ol=null,al=!1;function ll(e,t,n){for(n=n.child;null!==n;)cl(e,t,n),n=n.sibling}function cl(e,t,n){if(ve&&"function"===typeof ve.onCommitFiberUnmount)try{ve.onCommitFiberUnmount(ye,n)}catch(o){}switch(n.tag){case 26:Za||Ha(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Za||Ha(n,t);var r=ol,i=al;for(ol=n.stateNode,ll(e,t,n),t=(n=n.stateNode).attributes;t.length;)n.removeAttributeNode(t[0]);We(n),ol=r,al=i;break;case 5:Za||Ha(n,t);case 6:i=ol;var s=al;if(ol=null,ll(e,t,n),al=s,null!==(ol=i))if(al)try{e=ol,r=n.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)}catch(a){ru(n,t,a)}else try{ol.removeChild(n.stateNode)}catch(a){ru(n,t,a)}break;case 18:null!==ol&&(al?(t=ol,n=n.stateNode,8===t.nodeType?sh(t.parentNode,n):1===t.nodeType&&sh(t,n),md(t)):sh(ol,n.stateNode));break;case 4:r=ol,i=al,ol=n.stateNode.containerInfo,al=!0,ll(e,t,n),ol=r,al=i;break;case 0:case 11:case 14:case 15:Za||za(2,n,t),Za||za(4,n,t),ll(e,t,n);break;case 1:Za||(Ha(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&qa(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:Za||Ha(n,t),Za=(r=Za)||null!==n.memoizedState,ll(e,t,n),Za=r;break;default:ll(e,t,n)}}function ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{md(e)}catch(n){ru(t,t.return,n)}}function hl(e,t){var n=function(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new tl),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new tl),t;default:throw Error(o(435,e.tag))}}(e);t.forEach((function(t){var r=lu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}function dl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],s=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 27:case 5:ol=l.stateNode,al=!1;break e;case 3:case 4:ol=l.stateNode.containerInfo,al=!0;break e}l=l.return}if(null===ol)throw Error(o(160));cl(s,a,i),ol=null,al=!1,null!==(s=i.alternate)&&(s.return=null),i.return=null}if(13878&t.subtreeFlags)for(t=t.child;null!==t;)pl(t,e),t=t.sibling}var fl=null;function pl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:dl(t,e),ml(e),4&r&&(za(3,e,e.return),Ua(3,e),za(5,e,e.return));break;case 1:dl(t,e),ml(e),512&r&&(Za||null===n||Ha(n,n.return)),64&r&&Ja&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var i=fl;if(dl(t,e),ml(e),512&r&&(Za||null===n||Ha(n,n.return)),4&r){var s=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(s=i.getElementsByTagName("title")[0])||s[He]||s[Fe]||"http://www.w3.org/2000/svg"===s.namespaceURI||s.hasAttribute("itemprop"))&&(s=i.createElement(r),i.head.insertBefore(s,i.querySelector("head > title"))),Wu(s,r,n),s[Fe]=e,Xe(s),r=s;break e;case"link":var a=Ih("link","href",i).get(r+(n.href||""));if(a)for(var l=0;l<a.length;l++)if((s=a[l]).getAttribute("href")===(null==n.href?null:n.href)&&s.getAttribute("rel")===(null==n.rel?null:n.rel)&&s.getAttribute("title")===(null==n.title?null:n.title)&&s.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){a.splice(l,1);break t}Wu(s=i.createElement(r),r,n),i.head.appendChild(s);break;case"meta":if(a=Ih("meta","content",i).get(r+(n.content||"")))for(l=0;l<a.length;l++)if((s=a[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&s.getAttribute("name")===(null==n.name?null:n.name)&&s.getAttribute("property")===(null==n.property?null:n.property)&&s.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&s.getAttribute("charset")===(null==n.charSet?null:n.charSet)){a.splice(l,1);break t}Wu(s=i.createElement(r),r,n),i.head.appendChild(s);break;default:throw Error(o(468,r))}s[Fe]=e,Xe(s),r=s}e.stateNode=r}else Ch(i,e.type,e.stateNode);else e.stateNode=Th(i,r,e.memoizedProps);else s!==r?(null===s?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):s.count--,null===r?Ch(i,e.type,e.stateNode):Th(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&Ka(e,e.memoizedProps,n.memoizedProps)}break;case 27:if(4&r&&null===e.alternate){i=e.stateNode,s=e.memoizedProps;try{for(var c=i.firstChild;c;){var u=c.nextSibling,h=c.nodeName;c[He]||"HEAD"===h||"BODY"===h||"SCRIPT"===h||"STYLE"===h||"LINK"===h&&"stylesheet"===c.rel.toLowerCase()||i.removeChild(c),c=u}for(var d=e.type,f=i.attributes;f.length;)i.removeAttributeNode(f[0]);Wu(i,d,s),i[Fe]=e,i[Ve]=s}catch(m){ru(e,e.return,m)}}case 5:if(dl(t,e),ml(e),512&r&&(Za||null===n||Ha(n,n.return)),32&e.flags){i=e.stateNode;try{Tt(i,"")}catch(m){ru(e,e.return,m)}}4&r&&null!=e.stateNode&&Ka(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(el=!0);break;case 6:if(dl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){ru(e,e.return,m)}}break;case 3:if(kh=null,i=fl,fl=dh(t.containerInfo),dl(t,e),fl=i,ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{md(t.containerInfo)}catch(m){ru(e,e.return,m)}el&&(el=!1,gl(e));break;case 4:r=fl,fl=dh(e.stateNode.containerInfo),dl(t,e),ml(e),fl=r;break;case 12:dl(t,e),ml(e);break;case 13:dl(t,e),ml(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(bc=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,hl(e,r)));break;case 22:if(512&r&&(Za||null===n||Ha(n,n.return)),c=null!==e.memoizedState,u=null!==n&&null!==n.memoizedState,Ja=(h=Ja)||c,Za=(d=Za)||u,dl(t,e),Za=d,Ja=h,ml(e),(t=e.stateNode)._current=e,t._visibility&=-3,t._visibility|=2&t._pendingVisibility,8192&r&&(t._visibility=c?-2&t._visibility:1|t._visibility,c&&(t=Ja||Za,null===n||u||t||vl(e)),null===e.memoizedProps||"manual"!==e.memoizedProps.mode))e:for(n=null,t=e;;){if(5===t.tag||26===t.tag||27===t.tag){if(null===n){u=n=t;try{if(i=u.stateNode,c)"function"===typeof(s=i.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{a=u.stateNode;var p=void 0!==(l=u.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null;a.style.display=null==p||"boolean"===typeof p?"":(""+p).trim()}}catch(m){ru(u,u.return,m)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=c?"":u.memoizedProps}catch(m){ru(u,u.return,m)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,hl(e,n))));break;case 19:dl(t,e),ml(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,hl(e,r)));break;case 21:break;default:dl(t,e),ml(e)}}function ml(e){var t=e.flags;if(2&t){try{if(27!==e.tag){e:{for(var n=e.return;null!==n;){if(Ga(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 27:var i=r.stateNode;Xa(e,Qa(e),i);break;case 5:var s=r.stateNode;32&r.flags&&(Tt(s,""),r.flags&=-33),Xa(e,Qa(e),s);break;case 3:case 4:var a=r.stateNode.containerInfo;Ya(e,Qa(e),a);break;default:throw Error(o(161))}}}catch(l){ru(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gl(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;gl(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function yl(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)il(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),vl(t);break;case 1:Ha(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&qa(t,t.return,n),vl(t);break;case 26:case 27:case 5:Ha(t,t.return),vl(t);break;case 22:Ha(t,t.return),null===t.memoizedState&&vl(t);break;default:vl(t)}e=e.sibling}}function bl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,s=t,o=s.flags;switch(s.tag){case 0:case 11:case 15:bl(i,s,n),Ua(4,s);break;case 1:if(bl(i,s,n),"function"===typeof(i=(r=s).stateNode).componentDidMount)try{i.componentDidMount()}catch(c){ru(r,r.return,c)}if(null!==(i=(r=s).updateQueue)){var a=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Fa(l[i],a)}catch(c){ru(r,r.return,c)}}n&&64&o&&Ba(s),$a(s,s.return);break;case 26:case 27:case 5:bl(i,s,n),n&&null===r&&4&o&&Wa(s),$a(s,s.return);break;case 12:default:bl(i,s,n);break;case 13:bl(i,s,n),n&&4&o&&ul(i,s);break;case 22:null===s.memoizedState&&bl(i,s,n),$a(s,s.return)}t=t.sibling}}function wl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&zi(n))}function _l(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&zi(e))}function Tl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)xl(e,t,n,r),t=t.sibling}function xl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),2048&i&&Ua(9,t);break;case 3:Tl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&zi(e)));break;case 12:if(2048&i){Tl(e,t,n,r),e=t.stateNode;try{var s=t.memoizedProps,o=s.id,a=s.onPostCommit;"function"===typeof a&&a(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){ru(t,t.return,l)}}else Tl(e,t,n,r);break;case 23:break;case 22:s=t.stateNode,null!==t.memoizedState?4&s._visibility?Tl(e,t,n,r):Sl(e,t):4&s._visibility?Tl(e,t,n,r):(s._visibility|=4,El(e,t,n,r,0!==(10256&t.subtreeFlags))),2048&i&&wl(t.alternate,t);break;case 24:Tl(e,t,n,r),2048&i&&_l(t.alternate,t);break;default:Tl(e,t,n,r)}}function El(e,t,n,r,i){for(i=i&&0!==(10256&t.subtreeFlags),t=t.child;null!==t;){var s=e,o=t,a=n,l=r,c=o.flags;switch(o.tag){case 0:case 11:case 15:El(s,o,a,l,i),Ua(8,o);break;case 23:break;case 22:var u=o.stateNode;null!==o.memoizedState?4&u._visibility?El(s,o,a,l,i):Sl(s,o):(u._visibility|=4,El(s,o,a,l,i)),i&&2048&c&&wl(o.alternate,o);break;case 24:El(s,o,a,l,i),i&&2048&c&&_l(o.alternate,o);break;default:El(s,o,a,l,i)}t=t.sibling}}function Sl(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Sl(n,r),2048&i&&wl(r.alternate,r);break;case 24:Sl(n,r),2048&i&&_l(r.alternate,r);break;default:Sl(n,r)}t=t.sibling}}var kl=8192;function Il(e){if(e.subtreeFlags&kl)for(e=e.child;null!==e;)Cl(e),e=e.sibling}function Cl(e){switch(e.tag){case 26:Il(e),e.flags&kl&&null!==e.memoizedState&&function(e,t,n){if(null===Ph)throw Error(o(475));var r=Ph;if("stylesheet"===t.type&&("string"!==typeof n.media||!1!==matchMedia(n.media).matches)&&0===(4&t.state.loading)){if(null===t.instance){var i=yh(n.href),s=e.querySelector(vh(i));if(s)return null!==(e=s._p)&&"object"===typeof e&&"function"===typeof e.then&&(r.count++,r=Rh.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=s,void Xe(s);s=e.ownerDocument||e,n=bh(n),(i=uh.get(i))&&Eh(n,i),Xe(s=s.createElement("link"));var a=s;a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Wu(s,"link",n),t.instance=s}null===r.stylesheets&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&0===(3&t.state.loading)&&(r.count++,t=Rh.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}(fl,e.memoizedState,e.memoizedProps);break;case 5:default:Il(e);break;case 3:case 4:var t=fl;fl=dh(e.stateNode.containerInfo),Il(e),fl=t;break;case 22:null===e.memoizedState&&(null!==(t=e.alternate)&&null!==t.memoizedState?(t=kl,kl=16777216,Il(e),kl=t):Il(e))}}function Al(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function Pl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Dl(r,e)}Al(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)Nl(e),e=e.sibling}function Nl(e){switch(e.tag){case 0:case 11:case 15:Pl(e),2048&e.flags&&za(9,e,e.return);break;case 3:case 12:default:Pl(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&4&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-5,Rl(e)):Pl(e)}}function Rl(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];nl=r,Dl(r,e)}Al(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:za(8,t,t.return),Rl(t);break;case 22:4&(n=t.stateNode)._visibility&&(n._visibility&=-5,Rl(t));break;default:Rl(t)}e=e.sibling}}function Dl(e,t){for(;null!==nl;){var n=nl;switch(n.tag){case 0:case 11:case 15:za(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:zi(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,nl=r;else e:for(n=e;null!==nl;){var i=(r=nl).sibling,s=r.return;if(sl(r),r===n){nl=null;break e}if(null!==i){i.return=s,nl=i;break e}nl=s}}}function Ol(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.t
2ype=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ll(e,t,n,r){return new Ol(e,t,n,r)}function jl(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ml(e,t){var n=e.alternate;return null===n?((n=Ll(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.subtreeFlags=0,n.deletions=null),n.flags=31457280&e.flags,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.refCleanup=e.refCleanup,n}function Fl(e,t){e.flags&=31457282;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Vl(e,t,n,r,i,s){var a=0;if(r=e,"function"===typeof e)jl(e)&&(a=1);else if("string"===typeof e)a=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,Q.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case h:return Ul(n.children,i,s,t);case d:a=8,i|=24;break;case f:return(e=Ll(12,n,t,2|i)).elementType=f,e.lanes=s,e;case v:return(e=Ll(13,n,t,i)).elementType=v,e.lanes=s,e;case b:return(e=Ll(19,n,t,i)).elementType=b,e.lanes=s,e;case T:return zl(n,i,s,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case p:case g:a=10;break e;case m:a=9;break e;case y:a=11;break e;case w:a=14;break e;case _:a=16,r=null;break e}a=29,n=Error(o(130,null===e?"null":typeof e,"")),r=null}return(t=Ll(a,n,t,i)).elementType=e,t.type=r,t.lanes=s,t}function Ul(e,t,n,r){return(e=Ll(7,e,r,t)).lanes=n,e}function zl(e,t,n,r){(e=Ll(22,e,r,t)).elementType=T,e.lanes=n;var i={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=i._current;if(null===e)throw Error(o(456));if(0===(2&i._pendingVisibility)){var t=Ar(e,2);null!==t&&(i._pendingVisibility|=2,Rc(t,e,2))}},attach:function(){var e=i._current;if(null===e)throw Error(o(456));if(0!==(2&i._pendingVisibility)){var t=Ar(e,2);null!==t&&(i._pendingVisibility&=-3,Rc(t,e,2))}}};return e.stateNode=i,e}function Bl(e,t,n){return(e=Ll(6,e,null,t)).lanes=n,e}function ql(e,t,n){return(t=Ll(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $l(e){e.flags|=4}function Hl(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!Ah(t)){if(null!==(t=Ci.current)&&((4194176&rc)===rc?null!==Ai:(62914560&rc)!==rc&&0===(536870912&rc)||t!==Ai))throw di=li,ai;e.flags|=8192}}function Wl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,mc|=t)}function Kl(e,t){if(!Yr)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 Gl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=31457280&i.subtreeFlags,r|=31457280&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ql(e,t,n){var r=t.pendingProps;switch(Kr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return Gl
vendor: 13,440 bytes, line 2
2(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ba(Vi),ee(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(ri(t)?$l(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Xr&&(Oc(Xr),Xr=null))),Gl(t),null;case 26:return n=t.memoizedState,null===e?($l(t),null!==n?(Gl(t),Hl(t,n)):(Gl(t),t.flags&=-16777217)):n?n!==e.memoizedState?($l(t),Gl(t),Hl(t,n)):(Gl(t),t.flags&=-16777217):(e.memoizedProps!==r&&$l(t),Gl(t),t.flags&=-16777217),null;case 27:ne(t),n=X.current;var i=t.type;if(null!==e&&null!=t.stateNode)e.memoizedProps!==r&&$l(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gl(t),null}e=Q.current,ri(t)?ti(t):(e=ch(i,r,n),t.stateNode=e,$l(t))}return Gl(t),null;case 5:if(ne(t),n=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&$l(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Gl(t),null}if(e=Q.current,ri(t))ti(t);else{switch(i=Qu(X.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":(e=i.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e="string"===typeof r.is?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e="string"===typeof r.is?i.createElement(n,{is:r.is}):i.createElement(n)}}e[Fe]=t,e[Ve]=r;e:for(i=t.child;null!==i;){if(5===i.tag||6===i.tag)e.appendChild(i.stateNode);else if(4!==i.tag&&27!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;null===i.sibling;){if(null===i.return||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(Wu(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&$l(t)}}return Gl(t),t.flags&=-16777217,null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&$l(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(e=X.current,ri(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=Gr))switch(i.tag){case 27:case 5:r=i.memoizedProps}e[Fe]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||Bu(e.nodeValue,n)))||ei(t)}else(e=Qu(e).createTextNode(r))[Fe]=t,t.stateNode=e}return Gl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=ri(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[Fe]=t}else ii(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gl(t),i=!1}else null!==Xr&&(Oc(Xr),Xr=null),i=!0;if(!i)return 256&t.flags?(Di(t),t):(Di(t),null)}if(Di(t),0!==(128&t.flags))return t.lanes=n,t;if(n=null!==r,e=null!==e&&null!==e.memoizedState,n){i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool);var s=null;null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(s=r.memoizedState.cachePool.pool),s!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Wl(t,t.updateQueue),Gl(t),null;case 4:return ee(),null===e&&Ru(t.stateNode.containerInfo),Gl(t),null;case 10:return ba(t.type),Gl(t),null;case 19:if(K(Oi),null===(i=t.memoizedState))return Gl(t),null;if(r=0!==(128&t.flags),null===(s=i.rendering))if(r)Kl(i,!1);else{if(0!==uc||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(s=Li(e))){for(t.flags|=128,Kl(i,!1),e=s.updateQueue,t.updateQueue=e,Wl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Fl(n,e),n=n.sibling;return G(Oi,1&Oi.current|2),t.child}e=e.sibling}null!==i.tail&&le()>wc&&(t.flags|=128,r=!0,Kl(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=Li(s))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Wl(t,e),Kl(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate&&!Yr)return Gl(t),null}else 2*le()-i.renderingStartTime>wc&&536870912!==n&&(t.flags|=128,r=!0,Kl(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(null!==(e=i.last)?e.sibling=s:t.child=s,i.last=s)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=le(),t.sibling=null,e=Oi.current,G(Oi,r?1&e|2:1&e),t):(Gl(t),null);case 22:case 23:return Di(t),Ii(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(Gl(t),6&t.subtreeFlags&&(t.flags|=8192)):Gl(t),null!==(n=t.updateQueue)&&Wl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&K(Gi),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ba(Vi),Gl(t),null;case 25:return null}throw Error(o(156,t.tag))}function Yl(e,t){switch(Kr(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ba(Vi),ee(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return ne(t),null;case 13:if(Di(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ii()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return K(Oi),null;case 4:return ee(),null;case 10:return ba(t.type),null;case 22:case 23:return Di(t),Ii(),null!==e&&K(Gi),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return ba(Vi),null;default:return null}}function Xl(e,t){switch(Kr(t),t.tag){case 3:ba(Vi),ee();break;case 26:case 27:case 5:ne(t);break;case 4:ee();break;case 13:Di(t);break;case 19:K(Oi);break;case 10:ba(t.type);break;case 22:case 23:Di(t),Ii(),null!==e&&K(Gi);break;case 24:ba(Vi)}}var Jl={getCacheForType:function(e){var t=Sa(Vi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n}},Zl="function"===typeof WeakMap?WeakMap:Map,ec=0,tc=null,nc=null,rc=0,ic=0,sc=null,oc=!1,ac=!1,lc=!1,cc=0,uc=0,hc=0,dc=0,fc=0,pc=0,mc=0,gc=null,yc=null,vc=!1,bc=0,wc=1/0,_c=null,Tc=null,xc=!1,Ec=null,Sc=0,kc=0,Ic=null,Cc=0,Ac=null;function Pc(){if(0!==(2&ec)&&0!==rc)return rc&-rc;if(null!==P.T){return 0!==$i?$i:_u()}return je()}function Nc(){0===pc&&(pc=0===(536870912&rc)||Yr?Ae():536870912);var e=Ci.current;return null!==e&&(e.flags|=32),pc}function Rc(e,t,n){(e===tc&&2===ic||null!==e.cancelPendingCommit)&&(Uc(e,0),Mc(e,rc,pc,!1)),Re(e,n),0!==(2&ec)&&e===tc||(e===tc&&(0===(2&ec)&&(dc|=n),4===uc&&Mc(e,rc,pc,!1)),mu(e))}function Dc(e,t,n){if(0!==(6&ec))throw Error(o(327));for(var r=!n&&0===(60&t)&&0===(t&e.expiredLanes)||Ie(e,t),i=r?function(e,t){var n=ec;ec|=2;var r=Bc(),i=qc();tc!==e||rc!==t?(_c=null,wc=le()+500,Uc(e,t)):ac=Ie(e,t);e:for(;;)try{if(0!==ic&&null!==nc){t=nc;var s=sc;t:switch(ic){case 1:ic=0,sc=null,Yc(e,t,s,1);break;case 2:if(ci(s)){ic=0,sc=null,Qc(t);break}t=function(){2===ic&&tc===e&&(ic=7),mu(e)},s.then(t,t);break e;case 3:ic=7;break e;case 4:ic=5;break e;case 7:ci(s)?(ic=0,sc=null,Qc(t)):(ic=0,sc=null,Yc(e,t,s,7));break;case 5:var a=null;switch(nc.tag){case 26:a=nc.memoizedState;case 5:case 27:var l=nc;if(!a||Ah(a)){ic=0,sc=null;var c=l.sibling;if(null!==c)nc=c;else{var u=l.return;null!==u?(nc=u,Xc(u)):nc=null}break t}}ic=0,sc=null,Yc(e,t,s,5);break;case 6:ic=0,sc=null,Yc(e,t,s,6);break;case 8:Vc(),uc=6;break e;default:throw Error(o(462))}}Kc();break}catch(h){zc(e,h)}return ya=ga=null,P.H=r,P.A=i,ec=n,null!==nc?0:(tc=null,rc=0,kr(),uc)}(e,t):Hc(e,t,!0),s=r;;){if(0===i){ac&&!r&&Mc(e,t,0,!1);break}if(6===i)Mc(e,t,0,!oc);else{if(n=e.current.alternate,s&&!jc(n)){i=Hc(e,t,!1),s=!1;continue}if(2===i){if(s=t,e.errorRecoveryDisabledLanes&s)var a=0;else a=0!==(a=-536870913&e.pendingLanes)?a:536870912&a?536870912:0;if(0!==a){t=a;e:{var l=e;i=gc;var c=l.current.memoizedState.isDehydrated;if(c&&(Uc(l,a).flags|=256),2!==(a=Hc(l,a,!1))){if(lc&&!c){l.errorRecoveryDisabledLanes|=s,dc|=s,i=4;break e}s=yc,yc=i,null!==s&&Oc(s)}i=a}if(s=!1,2!==i)continue}}if(1===i){Uc(e,0),Mc(e,t,0,!0);break}e:{switch(r=e,i){case 0:case 1:throw Error(o(345));case 4:if((4194176&t)===t){Mc(r,t,pc,!oc);break e}break;case 2:yc=null;break;case 3:case 5:break;default:throw Error(o(329))}if(r.finishedWork=n,r.finishedLanes=t,(62914560&t)===t&&10<(s=bc+300-le())){if(Mc(r,t,pc,!oc),0!==ke(r,0))break e;r.timeoutHandle=eh(Lc.bind(null,r,n,yc,_c,vc,t,pc,dc,mc,oc,2,-0,0),s)}else Lc(r,n,yc,_c,vc,t,pc,dc,mc,oc,0,-0,0)}}break}mu(e)}function Oc(e){null===yc?yc=e:yc.push.apply(yc,e)}function Lc(e,t,n,r,i,s,a,l,c,u,h,d,f){var p=t.subtreeFlags;if((8192&p||16785408===(16785408&p))&&(Ph={stylesheets:null,count:0,unsuspend:Nh},Cl(t),null!==(t=function(){if(null===Ph)throw Error(o(475));var e=Ph;return e.stylesheets&&0===e.count&&Oh(e,e.stylesheets),0<e.count?function(t){var n=setTimeout((function(){if(e.stylesheets&&Oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}())))return e.cancelPendingCommit=t(Zc.bind(null,e,n,r,i,a,l,c,1,d,f)),void Mc(e,s,a,!u);Zc(e,n,r,i,a,l,c,h,d,f)}function jc(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Gn(s(),i))return!1}catch(o){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Mc(e,t,n,r){t&=~fc,t&=~dc,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var s=31-we(i),o=1<<s;r[s]=-1,i&=~o}0!==n&&De(e,n,t)}function Fc(){return 0!==(6&ec)||(gu(0,!1),!1)}function Vc(){if(null!==nc){if(0===ic)var e=nc.return;else ya=ga=null,ys(e=nc),pi=null,mi=0,e=nc;for(;null!==e;)Xl(e.alternate,e),e=e.return;nc=null}}function Uc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,th(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Vc(),tc=e,nc=n=Ml(e.current,null),rc=t,ic=0,sc=null,oc=!1,ac=Ie(e,t),lc=!1,mc=pc=fc=dc=hc=uc=0,yc=gc=null,vc=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-we(r),s=1<<i;t|=e[i],r&=~s}return cc=t,kr(),n}function zc(e,t){Zi=null,P.H=So,t===oi?(t=fi(),ic=3):t===ai?(t=fi(),ic=4):ic=t===qo?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,sc=t,null===nc&&(uc=1,Fo(e,Or(t,e.current)))}function Bc(){var e=P.H;return P.H=So,null===e?So:e}function qc(){var e=P.A;return P.A=Jl,e}function $c(){uc=4,oc||(4194176&rc)!==rc&&null!==Ci.current||(ac=!0),0===(134217727&hc)&&0===(134217727&dc)||null===tc||Mc(tc,rc,pc,!1)}function Hc(e,t,n){var r=ec;ec|=2;var i=Bc(),s=qc();tc===e&&rc===t||(_c=null,Uc(e,t)),t=!1;var o=uc;e:for(;;)try{if(0!==ic&&null!==nc){var a=nc,l=sc;switch(ic){case 8:Vc(),o=6;break e;case 3:case 2:case 6:null===Ci.current&&(t=!0);var c=ic;if(ic=0,sc=null,Yc(e,a,l,c),n&&ac){o=0;break e}break;default:c=ic,ic=0,sc=null,Yc(e,a,l,c)}}Wc(),o=uc;break}catch(u){zc(e,u)}return t&&e.shellSuspendCounter++,ya=ga=null,ec=r,P.H=i,P.A=s,null===nc&&(tc=null,rc=0,kr()),o}function Wc(){for(;null!==nc;)Gc(nc)}function Kc(){for(;null!==nc&&!oe();)Gc(nc)}function Gc(e){var t=pa(e.alternate,e,cc);e.memoizedProps=e.pendingProps,null===t?Xc(e):nc=t}function Qc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Zo(n,t,t.pendingProps,t.type,void 0,rc);break;case 11:t=Zo(n,t,t.pendingProps,t.type.render,t.ref,rc);break;case 5:ys(t);default:Xl(n,t),t=pa(n,t=nc=Fl(t,cc),cc)}e.memoizedProps=e.pendingProps,null===t?Xc(e):nc=t}function Yc(e,t,n,r){ya=ga=null,ys(t),pi=null,mi=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&Ta(t,n,i,!0),null!==(n=Ci.current)){switch(n.tag){case 13:return null===Ai?$c():null===n.alternate&&0===uc&&(uc=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===li?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),iu(e,r,i)),!1;case 22:return n.flags|=65536,r===li?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),iu(e,r,i)),!1}throw Error(o(435,n.tag))}return iu(e,r,i),$c(),!1}if(Yr)return null!==(t=Ci.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Zr&&si(Or(e=Error(o(422),{cause:r}),n))):(r!==Zr&&si(Or(t=Error(o(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Or(r,n),Oa(e,i=Uo(e.stateNode,r,i)),4!==uc&&(uc=2)),!1;var s=Error(o(520),{cause:r});if(s=Or(s,n),null===gc?gc=[s]:gc.push(s),4!==uc&&(uc=2),null===t)return!0;r=Or(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,Oa(n,e=Uo(n.stateNode,r,e)),!1;case 1:if(t=n.type,s=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==s&&"function"===typeof s.componentDidCatch&&(null===Tc||
2!Tc.has(s))))return n.flags|=65536,i&=-i,n.lanes|=i,Bo(i=zo(i),e,n,r),Oa(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,rc))return uc=1,Fo(e,Or(n,e.current)),void(nc=null)}catch(s){if(null!==i)throw nc=i,s;return uc=1,Fo(e,Or(n,e.current)),void(nc=null)}32768&t.flags?(Yr||1===r?e=!0:ac||0!==(536870912&rc)?e=!1:(oc=e=!0,(2===r||3===r||6===r)&&(null!==(r=Ci.current)&&13===r.tag&&(r.flags|=16384))),Jc(t,e)):Xc(t)}function Xc(e){var t=e;do{if(0!==(32768&t.flags))return void Jc(t,oc);e=t.return;var n=Ql(t.alternate,t,cc);if(null!==n)return void(nc=n);if(null!==(t=t.sibling))return void(nc=t);nc=t=e}while(null!==t);0===uc&&(uc=5)}function Jc(e,t){do{var n=Yl(e.alternate,e);if(null!==n)return n.flags&=32767,void(nc=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(nc=e);nc=e=n}while(null!==e);uc=6,nc=null}function Zc(e,t,n,r,i,s,a,l,c,u){var h=P.T,d=B.p;try{B.p=2,P.T=null,function(e,t,n,r,i,s,a,l){do{tu()}while(null!==Ec);if(0!==(6&ec))throw Error(o(327));var c=e.finishedWork;if(r=e.finishedLanes,null===c)return null;if(e.finishedWork=null,e.finishedLanes=0,c===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var u=c.lanes|c.childLanes;if(function(e,t,n,r,i,s){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var a=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-we(n),h=1<<u;a[u]=0,l[u]=-1;var d=c[u];if(null!==d)for(c[u]=null,u=0;u<d.length;u++){var f=d[u];null!==f&&(f.lane&=-536870913)}n&=~h}0!==r&&De(e,r,0),0!==s&&0===i&&0!==e.tag&&(e.suspendedLanes|=s&~(o&~t))}(e,r,u|=Sr,s,a,l),e===tc&&(nc=tc=null,rc=0),0===(10256&c.subtreeFlags)&&0===(10256&c.flags)||xc||(xc=!0,kc=u,Ic=n,function(e,t){ie(e,t)}(de,(function(){return tu(),null}))),n=0!==(15990&c.flags),0!==(15990&c.subtreeFlags)||n?(n=P.T,P.T=null,s=B.p,B.p=2,a=ec,ec|=4,function(e,t){if(e=e.containerInfo,Ku=$h,er(e=Zn(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch(g){n=null;break e}var a=0,l=-1,c=-1,u=0,h=0,d=e,f=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=a+i),d!==s||0!==r&&3!==d.nodeType||(c=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(p=d.firstChild);)f=d,d=p;for(;;){if(d===e)break t;if(f===n&&++u===i&&(l=a),f===s&&++h===r&&(c=a),null!==(p=d.nextSibling))break;f=(d=f).parentNode}d=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gu={focusedElem:e,selectionRange:n},$h=!1,nl=t;null!==nl;)if(e=(t=nl).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,nl=e;else for(;null!==nl;){switch(s=(t=nl).alternate,e=t.flags,t.tag){case 0:case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==s){e=void 0,n=t,i=s.memoizedProps,s=s.memoizedState,r=n.stateNode;try{var m=Do(n.type,i,(n.elementType,n.type));e=r.getSnapshotBeforeUpdate(m,s),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){ru(n,n.return,y)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))oh(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":oh(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(o(163))}if(null!==(e=t.sibling)){e.return=t.return,nl=e;break}nl=t.return}m=rl,rl=!1}(e,c),pl(c,e),tr(Gu,e.containerInfo),$h=!!Ku,Gu=Ku=null,e.current=c,il(e,c.alternate,c),ae(),ec=a,B.p=s,P.T=n):e.current=c,xc?(xc=!1,Ec=e,Sc=r):eu(e,u),u=e.pendingLanes,0===u&&(Tc=null),function(e){if(ve&&"function"===typeof ve.onCommitFiberRoot)try{ve.onCommitFiberRoot(ye,e,void 0,128===(128&e.current.flags))}catch(t){}}(c.stateNode),mu(e),null!==t)for(i=e.onRecoverableError,c=0;c<t.length;c++)u=t[c],i(u.value,{componentStack:u.stack});0!==(3&Sc)&&tu(),u=e.pendingLanes,0!==(4194218&r)&&0!==(42&u)?e===Ac?Cc++:(Cc=0,Ac=e):Cc=0,gu(0,!1)}(e,t,n,r,d,i,s,a)}finally{P.T=h,B.p=d}}function eu(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,zi(t)))}function tu(){if(null!==Ec){var e=Ec,t=kc;kc=0;var n=Le(Sc),r=P.T,i=B.p;try{if(B.p=32>n?32:n,P.T=null,null===Ec)var s=!1;else{n=Ic,Ic=null;var a=Ec,l=Sc;if(Ec=null,Sc=0,0!==(6&ec))throw Error(o(331));var c=ec;if(ec|=4,Nl(a.current),xl(a,a.current,l,n),ec=c,gu(0,!1),ve&&"function"===typeof ve.onPostCommitFiberRoot)try{ve.onPostCommitFiberRoot(ye,a)}catch(u){}s=!0}return s}finally{B.p=i,P.T=r,eu(e,t)}}return!1}function nu(e,t,n){t=Or(n,t),null!==(e=Ra(e,t=Uo(e.stateNode,t,2),2))&&(Re(e,2),mu(e))}function ru(e,t,n){if(3===e.tag)nu(e,e,n);else for(;null!==t;){if(3===t.tag){nu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Tc||
vendor: 9,645 bytes, line 2
2!Tc.has(r))){e=Or(n,e),null!==(r=Ra(t,n=zo(2),2))&&(Bo(n,r,t,e),Re(r,2),mu(r));break}}t=t.return}}function iu(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new Zl;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(lc=!0,i.add(n),e=su.bind(null,e,t,n),t.then(e,e))}function su(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,tc===e&&(rc&n)===n&&(4===uc||3===uc&&(62914560&rc)===rc&&300>le()-bc?0===(2&ec)&&Uc(e,0):fc|=n,mc===rc&&(mc=0)),mu(e)}function ou(e,t){0===t&&(t=Pe()),null!==(e=Ar(e,t))&&(Re(e,t),mu(e))}function au(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),ou(e,n)}function lu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}null!==r&&r.delete(t),ou(e,n)}var cu=null,uu=null,hu=!1,du=!1,fu=!1,pu=0;function mu(e){var t;e!==uu&&null===e.next&&(null===uu?cu=uu=e:uu=uu.next=e),du=!0,hu||(hu=!0,t=yu,rh((function(){0!==(6&ec)?ie(ue,t):t()})))}function gu(e,t){if(!fu&&du){fu=!0;do{for(var n=!1,r=cu;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var s=0;else{var o=r.suspendedLanes,a=r.pingedLanes;s=(1<<31-we(42|e)+1)-1,s=201326677&(s&=i&~(o&~a))?201326677&s|1:s?2|s:0}0!==s&&(n=!0,wu(r,s))}else s=rc,0===(3&(s=ke(r,r===tc?s:0)))||Ie(r,s)||(n=!0,wu(r,s));r=r.next}}while(n);fu=!1}}function yu(){du=hu=!1;var e=0;0!==pu&&(function(){var e=window.event;if(e&&"popstate"===e.type)return e!==Zu&&(Zu=e,!0);return Zu=null,!1}()&&(e=pu),pu=0);for(var t=le(),n=null,r=cu;null!==r;){var i=r.next,s=vu(r,t);0===s?(r.next=null,null===n?cu=i:n.next=i,null===i&&(uu=n)):(n=r,(0!==e||0!==(3&s))&&(du=!0)),r=i}gu(e,!1)}function vu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,s=-62914561&e.pendingLanes;0<s;){var o=31-we(s),a=1<<o,l=i[o];-1===l?0!==(a&n)&&0===(a&r)||(i[o]=Ce(a,t)):l<=t&&(e.expiredLanes|=a),s&=~a}if(n=rc,n=ke(e,e===(t=tc)?n:0),r=e.callbackNode,0===n||e===t&&2===ic||null!==e.cancelPendingCommit)return null!==r&&null!==r&&se(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Ie(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&se(r),Le(n)){case 2:case 8:n=he;break;case 32:default:n=de;break;case 268435456:n=pe}return r=bu.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&se(r),e.callbackPriority=2,e.callbackNode=null,2}function bu(e,t){var n=e.callbackNode;if(tu()&&e.callbackNode!==n)return null;var r=rc;return 0===(r=ke(e,e===tc?r:0))?null:(Dc(e,r,t),vu(e,le()),null!=e.callbackNode&&e.callbackNode===n?bu.bind(null,e):null)}function wu(e,t){if(tu())return null;Dc(e,t,!0)}function _u(){return 0===pu&&(pu=Ae()),pu}function Tu(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:At(""+e)}function xu(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Eu=0;Eu<_r.length;Eu++){var Su=_r[Eu];Tr(Su.toLowerCase(),"on"+(Su[0].toUpperCase()+Su.slice(1)))}Tr(fr,"onAnimationEnd"),Tr(pr,"onAnimationIteration"),Tr(mr,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(gr,"onTransitionRun"),Tr(yr,"onTransitionStart"),Tr(vr,"onTransitionCancel"),Tr(br,"onTransitionEnd"),tt("onMouseEnter",["mouseout","mouseover"]),tt("onMouseLeave",["mouseout","mouseover"]),tt("onPointerEnter",["pointerout","pointerover"]),tt("onPointerLeave",["pointerout","pointerover"]),et("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),et("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),et("onBeforeInput",["compositionend","keypress","textInput","paste"]),et("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),et("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Iu=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function Cu(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 s=void 0;if(t)for(var o=r.length-1;0<=o;o--){var a=r[o],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==s&&i.isPropagationStopped())break e;s=a,i.currentTarget=c;try{s(i)}catch(u){Oo(u)}i.currentTarget=null,s=l}else for(o=0;o<r.length;o++){if(l=(a=r[o]).instance,c=a.currentTarget,a=a.listener,l!==s&&i.isPropagationStopped())break e;s=a,i.currentTarget=c;try{s(i)}catch(u){Oo(u)}i.currentTarget=null,s=l}}}}function Au(e,t){var n=t[ze];void 0===n&&(n=t[ze]=new Set);var r=e+"__bubble";n.has(r)||(Du(t,e,2,!1),n.add(r))}function Pu(e,t,n){var r=0;t&&(r|=4),Du(n,e,r,t)}var Nu="_reactListening"+Math.random().toString(36).slice(2);function Ru(e){if(!e[Nu]){e[Nu]=!0,Je.forEach((function(t){"selectionchange"!==t&&(Iu.has(t)||Pu(t,!1,e),Pu(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Nu]||(t[Nu]=!0,Pu("selectionchange",!1,t))}}function Du(e,t,n,r){switch(Xh(t)){case 2:var i=Hh;break;case 8:i=Wh;break;default:i=Kh}n=i.bind(null,t,n,e),i=void 0,!Ft||"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 Ou(e,t,n,r,i){var s=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var a=r.stateNode.containerInfo;if(a===i||8===a.nodeType&&a.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==a;){if(null===(o=Ke(a)))return;if(5===(l=o.tag)||6===l||26===l||27===l){r=s=o;continue e}a=a.parentNode}}r=r.return}jt((function(){var r=s,i=Nt(n),o=[];e:{var a=wr.get(e);if(void 0!==a){var l=Jt,c=e;switch(e){case"keypress":if(0===$t(n))break e;case"keydown":case"keyup":l=pn;break;case"focusin":c="focus",l=sn;break;case"focusout":c="blur",l=sn;break;case"beforeblur":case"afterblur":l=sn;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":l=nn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=rn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=gn;break;case fr:case pr:case mr:l=on;break;case br:l=yn;break;case"scroll":case"scrollend":l=en;break;case"wheel":l=vn;break;case"copy":case"cut":case"paste":l=an;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=mn;break;case"toggle":case"beforetoggle":l=bn}var u=0!==(4&t),h=!u&&("scroll"===e||"scrollend"===e),d=u?null!==a?a+"Capture":null:a;u=[];for(var f,p=r;null!==p;){var m=p;if(f=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===f||null===d||null!=(m=Mt(p,d))&&u.push(Lu(p,m,f)),h)break;p=p.return}0<u.length&&(a=new l(a,c,null,n,i),o.push({event:a,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(a="mouseover"===e||"pointerover"===e)||n===Pt||!(c=n.relatedTarget||n.fromElement)||!Ke(c)&&!c[Ue])&&(l||a)&&(a=i.window===i?i:(a=i.ownerDocument)?a.defaultView||a.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ke(c):null)&&(h=M(c),u=c.tag,c!==h||5!==u&&27!==u&&6!==u)&&(c=null)):(l=null,c=r),l!==c)){if(u=nn,m="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=mn,m="onPointerLeave",d="onPointerEnter",p="pointer"),h=null==l?a:Qe(l),f=null==c?a:Qe(c),(a=new u(m,p+"leave",l,n,i)).target=h,a.relatedTarget=f,m=null,Ke(i)===r&&((u=new u(d,p+"enter",c,n,i)).target=f,u.relatedTarget=h,m=u),h=m,l&&c)e:{for(d=c,p=0,f=u=l;f;f=Mu(f))p++;for(f=0,m=d;m;m=Mu(m))f++;for(;0<p-f;)u=Mu(u),p--;for(;0<f-p;)d=Mu(d),f--;for(;p--;){if(u===d||null!==d&&u===d.alternate)break e;u=Mu(u),d=Mu(d)}u=null}else u=null;null!==l&&Fu(o,a,l,u,!1),null!==c&&null!==h&&Fu(o,h,c,u,!0)}if("select"===(l=(a=r?Qe(r):window).nodeName&&a.nodeName.toLowerCase())||"input"===l&&"file"===a.type)var g=Mn;else if(Nn(a))if(Fn)g=Kn;else{g=Hn;var y=$n}else!(l=a.nodeName)||"input"!==l.toLowerCase()||"checkbox"!==a.type&&"radio"!==a.type?r&&kt(r.elementType)&&(g=Mn):g=Wn;switch(g&&(g=g(e,r))?Rn(o,g,n,i):(y&&y(e,a,r),"focusout"===e&&r&&"number"===a.type&&null!=r.memoizedProps.value&&vt(a,"number",a.value)),y=r?Qe(r):window,e){case"focusin":(Nn(y)||"true"===y.contentEditable)&&(rr=y,ir=r,sr=null);break;case"focusout":sr=ir=rr=null;break;case"mousedown":or=!0;break;case"contextmenu":case"mouseup":case"dragend":or=!1,ar(o,n,i);break;case"selectionchange":if(nr)break;case"keydown":case"keyup":ar(o,n,i)}var v;if(_n)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 An?In(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");
2b&&(En&&"ko"!==n.locale&&(An||"onCompositionStart"!==b?"onCompositionEnd"===b&&An&&(v=qt()):(zt="value"in(Ut=i)?Ut.value:Ut.textContent,An=!0)),0<(y=ju(r,b)).length&&(b=new ln(b,e,null,n,i),o.push({event:b,listeners:y}),v?b.data=v:null!==(v=Cn(n))&&(b.data=v))),(v=xn?function(e,t){switch(e){case"compositionend":return Cn(t);case"keypress":return 32!==t.which?null:(kn=!0,Sn);case"textInput":return(e=t.data)===Sn&&kn?null:e;default:return null}}(e,n):function(e,t){if(An)return"compositionend"===e||!_n&&In(e,t)?(e=qt(),Bt=zt=Ut=null,An=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return En&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(b=ju(r,"onBeforeInput")).length&&(y=new ln("onBeforeInput","beforeinput",null,n,i),o.push({event:y,listeners:b}),y.data=v)),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var s=Tu((i[Ve]||null).action),o=r.submitter;o&&null!==(t=(t=o[Ve]||null)?Tu(t.formAction):o.getAttribute("formAction"))&&(s=t,o=null);var a=new Jt("action","action",null,r,i);e.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==pu){var e=o?xu(i,o):new FormData(i);uo(n,{pending:!0,data:e,method:i.method,action:s},null,e)}}else"function"===typeof s&&(a.preventDefault(),e=o?xu(i,o):new FormData(i),uo(n,{pending:!0,data:e,method:i.method,action:s},s,e))},currentTarget:i}]})}}(o,e,r,n,i)}Cu(o,t)}))}function Lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ju(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,s=i.stateNode;5!==(i=i.tag)&&26!==i&&27!==i||null===s||(null!=(i=Mt(e,n))&&r.unshift(Lu(e,i,s)),null!=(i=Mt(e,t))&&r.push(Lu(e,i,s))),e=e.return}return r}function Mu(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function Fu(e,t,n,r,i){for(var s=t._reactName,o=[];null!==n&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(a=a.tag,null!==l&&l===r)break;5!==a&&26!==a&&27!==a||null===c||(l=c,i?null!=(c=Mt(n,s))&&o.unshift(Lu(n,c,l)):i||null!=(c=Mt(n,s))&&o.push(Lu(n,c,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Vu=/\r\n?/g,Uu=/\u0000|\uFFFD/g;function zu(e){return("string"===typeof e?e:""+e).replace(Vu,"\n").replace(Uu,"")}function Bu(e,t){return t=zu(t),zu(e)===t}function qu(){}function $u(e,t,n,r,i,s){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||Tt(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&Tt(e,""+r);break;case"className":at(e,"class",r);break;case"tabIndex":at(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":at(e,n,r);break;case"style":St(e,r,s);break;case"data":if("object"!==t){at(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof s&&("formAction"===n?("input"!==t&&$u(e,t,"name",i.name,i,null),$u(e,t,"formEncType",i.formEncType,i,null),$u(e,t,"formMethod",i.formMethod,i,null),$u(e,t,"formTarget",i.formTarget,i,null)):($u(e,t,"encType",i.encType,i,null),$u(e,t,"method",i.method,i,null),$u(e,t,"target",i.target,i,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=At(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=qu);break;case"onScroll":null!=r&&Au("scroll",e);break;case"onScrollEnd":null!=r&&Au("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=At(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
2ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Au("beforetoggle",e),Au("toggle",e),ot(e,"popover",r);break;case"xlinkActuate":lt(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":lt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":lt(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":lt(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":lt(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":lt(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":lt(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":lt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":lt(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ot(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&&ot(e,n=It.get(n)||n,r)}}function Hu(e,t,n,r,i,s){switch(n){case"style":St(e,r,s);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(o(60));e.innerHTML=n}}break;case"children":"string"===typeof r?Tt(e,r):("number"===typeof r||"bigint"===typeof r)&&Tt(e,""+r);break;case"onScroll":null!=r&&Au("scroll",e);break;case"onScrollEnd":null!=r&&Au("scrollend",e);break;case"onClick":null!=r&&(e.onclick=qu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:Ze.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"===typeof(s=null!=(s=e[Ve]||null)?s[n]:null)&&e.removeEventListener(t,s,i),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):ot(e,n,r):("function"!==typeof s&&null!==s&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function Wu(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Au("error",e),Au("load",e);var r,i=!1,s=!1;for(r in n)if(n.hasOwnProperty(r)){var a=n[r];if(null!=a)switch(r){case"src":i=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:$u(e,t,r,a,n,null)}}return s&&$u(e,t,"srcSet",n.srcSet,n,null),void(i&&$u(e,t,"src",n.src,n,null));case"input":Au("invalid",e);var l=r=a=s=null,c=null,u=null;for(i in n)if(n.hasOwnProperty(i)){var h=n[i];if(null!=h)switch(i){case"name":s=h;break;case"type":a=h;break;case"checked":c=h;break;case"defaultChecked":u=h;break;case"value":r=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(o(137,t));break;default:$u(e,t,i,h,n,null)}}return yt(e,r,l,c,u,a,s,!1),void ht(e);case"select":for(s in Au("invalid",e),i=a=r=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":r=l;break;case"defaultValue":a=l;break;case"multiple":i=l;default:$u(e,t,s,l,n,null)}return t=r,n=a,e.multiple=!!i,void(null!=t?bt(e,!!i,t,!1):null!=n&&bt(e,!!i,n,!0));case"textarea":for(a in Au("invalid",e),r=s=i=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]
vendor: 9,394 bytes, line 2
2))switch(a){case"value":i=l;break;case"defaultValue":s=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(o(91));break;default:$u(e,t,a,l,n,null)}return _t(e,i,s,r),void ht(e);case"option":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))if("selected"===c)e.selected=i&&"function"!==typeof i&&"symbol"!==typeof i;else $u(e,t,c,i,n,null);return;case"dialog":Au("cancel",e),Au("close",e);break;case"iframe":case"object":Au("load",e);break;case"video":case"audio":for(i=0;i<ku.length;i++)Au(ku[i],e);break;case"image":Au("error",e),Au("load",e);break;case"details":Au("toggle",e);break;case"embed":case"source":case"link":Au("error",e),Au("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:$u(e,t,u,i,n,null)}return;default:if(kt(t)){for(h in n)n.hasOwnProperty(h)&&(void 0!==(i=n[h])&&Hu(e,t,h,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&$u(e,t,l,i,n,null))}var Ku=null,Gu=null;function Qu(e){return 9===e.nodeType?e:e.ownerDocument}function Yu(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Xu(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function Ju(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Zu=null;var eh="function"===typeof setTimeout?setTimeout:void 0,th="function"===typeof clearTimeout?clearTimeout:void 0,nh="function"===typeof Promise?Promise:void 0,rh="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof nh?function(e){return nh.resolve(null).then(e).catch(ih)}:eh;function ih(e){setTimeout((function(){throw e}))}function sh(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void md(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);md(t)}function oh(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":oh(n),We(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function ah(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"F!"===t||"F"===t)break;if("/$"===t)return null}}return e}function lh(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}function ch(e,t,n){switch(t=Qu(n),e){case"html":if(!(e=t.documentElement))throw Error(o(452));return e;case"head":if(!(e=t.head))throw Error(o(453));return e;case"body":if(!(e=t.body))throw Error(o(454));return e;default:throw Error(o(451))}}var uh=new Map,hh=new Set;function dh(e){return"function"===typeof e.getRootNode?e.getRootNode():e.ownerDocument}var fh=B.d;B.d={f:function(){var e=fh.f(),t=Fc();return e||t},r:function(e){var t=Ge(e);null!==t&&5===t.tag&&"form"===t.type?fo(t):fh.r(e)},D:function(e){fh.D(e),mh("dns-prefetch",e,null)},C:function(e,t){fh.C(e,t),mh("preconnect",e,t)},L:function(e,t,n){fh.L(e,t,n);var r=ph;if(r&&e&&t){var i='link[rel="preload"][as="'+mt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+mt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(i+='[imagesizes="'+mt(n.imageSizes)+'"]')):i+='[href="'+mt(e)+'"]';var s=i;switch(t){case"style":s=yh(e);break;case"script":s=wh(e)}uh.has(s)||(e=N({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),uh.set(s,e),null!==r.querySelector(i)||"style"===t&&r.querySelector(vh(s))||"script"===t&&r.querySelector(_h(s))||(Wu(t=r.createElement("link"),"link",e),Xe(t),r.head.appendChild(t)))}},m:function(e,t){fh.m(e,t);var n=ph;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+mt(r)+'"][href="'+mt(e)+'"]',s=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=wh(e)}if(!uh.has(s)&&(e=N({rel:"modulepreload",href:e},t),uh.set(s,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(_h(s)))return}Wu(r=n.createElement("link"),"link",e),Xe(r),n.head.appendChild(r)}}},X:function(e,t){fh.X(e,t);var n=ph;if(n&&e){var r=Ye(n).hoistableScripts,i=wh(e),s=r.get(i);s||((s=n.querySelector(_h(i)))||(e=N({src:e,async:!0},t),(t=uh.get(i))&&Sh(e,t),Xe(s=n.createElement("script")),Wu(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(i,s))}},S:function(e,t,n){fh.S(e,t,n);var r=ph;if(r&&e){var i=Ye(r).hoistableStyles,s=yh(e);t=t||"default";var o=i.get(s);if(!o){var a={loading:0,preload:null};if(o=r.querySelector(vh(s)))a.loading=5;else{e=N({rel:"stylesheet",href:e,"data-precedence":t},n),(n=uh.get(s))&&Eh(e,n);var l=o=r.createElement("link");Xe(l),Wu(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){a.loading|=1})),l.addEventListener("error",(function(){a.loading|=2})),a.loading|=4,xh(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:a},i.set(s,o)}}},M:function(e,t){fh.M(e,t);var n=ph;if(n&&e){var r=Ye(n).hoistableScripts,i=wh(e),s=r.get(i);s||((s=n.querySelector(_h(i)))||(e=N({src:e,async:!0,type:"module"},t),(t=uh.get(i))&&Sh(e,t),Xe(s=n.createElement("script")),Wu(s,"link",e),n.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},r.set(i,s))}}};var ph="undefined"===typeof document?null:document;function mh(e,t,n){var r=ph;if(r&&"string"===typeof t&&t){var i=mt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"===typeof n&&(i+='[crossorigin="'+n+'"]'),hh.has(i)||(hh.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(Wu(t=r.createElement("link"),"link",e),Xe(t),r.head.appendChild(t)))}}function gh(e,t,n,r){var i,s,a,l,c=(c=X.current)?dh(c):null;if(!c)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=yh(n.href),(r=(n=Ye(c).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=yh(n.href);var u=Ye(c).hoistableStyles,h=u.get(e);if(h||(c=c.ownerDocument||c,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,h),(u=c.querySelector(vh(e)))&&!u._p&&(h.instance=u,h.state.loading=5),uh.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},uh.set(e,n),u||(i=c,s=e,a=n,l=h.state,i.querySelector('link[rel="preload"][as="style"]['+s+"]")?l.loading=1:(s=i.createElement("link"),l.preload=s,s.addEventListener("load",(function(){return l.loading|=1})),s.addEventListener("error",(function(){return l.loading|=2})),Wu(s,"link",a),Xe(s),i.head.appendChild(s))))),t&&null===r)throw Error(o(528,""));return h}if(t&&null!==r)throw Error(o(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=wh(n),(r=(n=Ye(c).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function yh(e){return'href="'+mt(e)+'"'}function vh(e){return'link[rel="stylesheet"]['+e+"]"}function bh(e){return N({},e,{"data-precedence":e.precedence,precedence:null})}function wh(e){return'[src="'+mt(e)+'"]'}function _h(e){return"script[async]"+e}function Th(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+mt(n.href)+'"]');if(r)return t.instance=r,Xe(r),r;var i=N({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return Xe(r=(e.ownerDocument||e).createElement("style")),Wu(r,"style",i),xh(r,n.precedence,e),t.instance=r;case"stylesheet":i=yh(n.href);var s=e.querySelector(vh(i));if(s)return t.state.loading|=4,t.instance=s,Xe(s),s;r=bh(n),(i=uh.get(i))&&Eh(r,i),Xe(s=(e.ownerDocument||e).createElement("link"));var a=s;return a._p=new Promise((function(e,t){a.onload=e,a.onerror=t})),Wu(s,"link",r),t.state.loading|=4,xh(s,n.precedence,e),t.instance=s;case"script":return s=wh(n.src),(i=e.querySelector(_h(s)))?(t.instance=i,Xe(i),i):(r=n,(i=uh.get(s))&&Sh(r=N({},n),i),Xe(i=(e=e.ownerDocument||e).createElement("script")),Wu(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,xh(r,n.precedence,e));return t.instance}function xh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,
vendor: 5,213 bytes, line 2
2s=i,o=0;o<r.length;o++){var a=r[o];if(a.dataset.precedence===t)s=a;else if(s!==i)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Eh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function Sh(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var kh=null;function Ih(e,t,n){if(null===kh){var r=new Map,i=kh=new Map;i.set(n,r)}else(r=(i=kh).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var s=n[i];if(!(s[He]||s[Fe]||"link"===e&&"stylesheet"===s.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==s.namespaceURI){var o=s.getAttribute(t)||"";o=e+o;var a=r.get(o);a?a.push(s):r.set(o,[s])}}return r}function Ch(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function Ah(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var Ph=null;function Nh(){}function Rh(){if(this.count--,0===this.count)if(this.stylesheets)Oh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var Dh=null;function Oh(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,Dh=new Map,t.forEach(Lh,e),Dh=null,Rh.call(e))}function Lh(e,t){if(!(4&t.state.loading)){var n=Dh.get(e);if(n)var r=n.get(null);else{n=new Map,Dh.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<i.length;s++){var o=i[s];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(i=t.instance).getAttribute("data-precedence"),(s=n.get(o)||r)===r&&n.set(null,i),n.set(o,i),this.count++,r=Rh.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),s?s.parentNode.insertBefore(i,s.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var jh={$$typeof:g,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function Mh(e,t,n,r,i,s,o,a){this.tag=1,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ne(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ne(0),this.hiddenUpdates=Ne(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=s,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=a,this.incompleteTransitions=new Map}function Fh(e,t,n,r,i,s,o,a,l,c,u,h){return e=new Mh(e,t,n,o,a,l,c,h),t=1,!0===s&&(t|=24),s=Ll(3,null,null,t),e.current=s,s.stateNode=e,(t=Ui()).refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:r,isDehydrated:n,cache:t},Aa(s),e}function Vh(e){return e?e=Rr:Rr}function Uh(e,t,n,r,i,s){i=Vh(i),null===r.context?r.context=i:r.pendingContext=i,(r=Na(t)).payload={element:n},null!==(s=void 0===s?null:s)&&(r.callback=s),null!==(n=Ra(e,r,t))&&(Rc(n,0,t),Da(n,e,t))}function zh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Bh(e,t){zh(e,t),(e=e.alternate)&&zh(e,t)}function qh(e){if(13===e.tag){var t=Ar(e,67108864);null!==t&&Rc(t,0,67108864),Bh(e,67108864)}}var $h=!0;function Hh(e,t,n,r){var i=P.T;P.T=null;var s=B.p;try{B.p=2,Kh(e,t,n,r)}finally{B.p=s,P.T=i}}function Wh(e,t,n,r){var i=P.T;P.T=null;var s=B.p;try{B.p=8,Kh(e,t,n,r)}finally{B.p=s,P.T=i}}function Kh(e,t,n,r){if($h){var i=Gh(r);if(null===i)Ou(e,t,r,Qh,n),od(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Zh=ad(Zh,e,t,n,r,i),!0;case"dragenter":return ed=ad(ed,e,t,n,r,i),!0;case"mouseover":return td=ad(td,e,t,n,r,i),!0;case"pointerover":var s=i.pointerId;return nd.set(s,ad(nd.get(s)||null,e,t,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,rd.set(s,ad(rd.get(s)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(od(e,r),4&t&&-1<sd.indexOf(e)){for(;null!==i;){var s=Ge(i);if(null!==s)switch(s.tag){case 3:if((s=s.stateNode).current.memoizedState.isDehydrated){var o=Se(s.pendingLanes);if(0!==o){var a=s;for(a.pendingLanes|=2,a.entangledLanes|=2;o;){var l=1<<31-we(o);a.entanglements[1]|=l,o&=~l}mu(s),0===(6&ec)&&(wc=le()+500,gu(0,!1))}}break;case 13:null!==(a=Ar(s,2))&&Rc(a,0,2),Fc(),Bh(s,2)}if(null===(s=Gh(r))&&Ou(e,t,r,Qh,n),s===i)break;i=s}null!==i&&r.stopPropagation()}else Ou(e,t,r,null,n)}}function Gh(e){return Yh(e=Nt(e))}var Qh=null;function Yh(e){if(Qh=null,null!==(e=Ke(e))){var t=M(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=F(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Qh=e,null}function Xh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 6,483 bytes, line 2
2:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ce()){case ue:return 2;case he:return 8;case de:case fe:return 32;case pe:return 268435456;default:return 32}default:return 32}}var Jh=!1,Zh=null,ed=null,td=null,nd=new Map,rd=new Map,id=[],sd="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".split(" ");function od(e,t){switch(e){case"focusin":case"focusout":Zh=null;break;case"dragenter":case"dragleave":ed=null;break;case"mouseover":case"mouseout":td=null;break;case"pointerover":case"pointerout":nd.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(t.pointerId)}}function ad(e,t,n,r,i,s){return null===e||e.nativeEvent!==s?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},null!==t&&(null!==(t=Ge(t))&&qh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function ld(e){var t=Ke(e.target);if(null!==t){var n=M(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=F(n)))return e.blockedOn=t,void function(e,t){var n=B.p;try{return B.p=e,t()}finally{B.p=n}}(e.priority,(function(){if(13===n.tag){var e=Pc(),t=Ar(n,e);null!==t&&Rc(t,0,e),Bh(n,e)}}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function cd(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gh(e.nativeEvent);if(null!==n)return null!==(t=Ge(n))&&qh(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Pt=r,n.target.dispatchEvent(r),Pt=null,t.shift()}return!0}function ud(e,t,n){cd(e)&&n.delete(t)}function hd(){Jh=!1,null!==Zh&&cd(Zh)&&(Zh=null),null!==ed&&cd(ed)&&(ed=null),null!==td&&cd(td)&&(td=null),nd.forEach(ud),rd.forEach(ud)}function dd(e,t){e.blockedOn===t&&(e.blockedOn=null,Jh||(Jh=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,hd)))}var fd=null;function pd(e){fd!==e&&(fd=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){fd===e&&(fd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!==typeof r){if(null===Yh(r||n))continue;break}var s=Ge(n);null!==s&&(e.splice(t,3),t-=3,uo(s,{pending:!0,data:i,method:n.method,action:r},r,i))}})))}function md(e){function t(t){return dd(t,e)}null!==Zh&&dd(Zh,e),null!==ed&&dd(ed,e),null!==td&&dd(td,e),nd.forEach(t),rd.forEach(t);for(var n=0;n<id.length;n++){var r=id[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<id.length&&null===(n=id[0]).blockedOn;)ld(n),null===n.blockedOn&&id.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],s=n[r+1],o=i[Ve]||null;if("function"===typeof s)o||pd(n);else if(o){var a=null;if(s&&s.hasAttribute("formAction")){if(i=s,o=s[Ve]||null)a=o.formAction;else if(null!==Yh(i))continue}else a=o.action;"function"===typeof a?n[r+1]=a:(n.splice(r,3),r-=3),pd(n)}}}function gd(e){this._internalRoot=e}function yd(e){this._internalRoot=e}yd.prototype.render=gd.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Uh(t.current,Pc(),e,t,null,null)},yd.prototype.unmount=gd.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;0===e.tag&&tu(),Uh(e.current,2,null,e,null,null),Fc(),t[Ue]=null}},yd.prototype.unstable_scheduleHydration=function(e){if(e){var t=je();e={blockedOn:null,target:e,priority:t};for(var n=0;n<id.length&&0!==t&&t<id[n].priority;n++);id.splice(n,0,e),0===n&&ld(e)}};var vd=i.version;if("19.0.0"!==vd)throw Error(o(527,vd,"19.0.0"));B.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=M(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var s=i.alternate;if(null===s){if(null!==(r=i.return)){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return V(i),e;if(s===r)return V(i),t;s=s.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=s;else{for(var a=!1,l=i.child;l;){if(l===n){a=!0,n=i,r=s;break}if(l===r){a=!0,r=i,n=s;break}l=l.sibling}if(!a){for(l=s.child;l;){if(l===n){a=!0,n=s,r=i;break}if(l===r){a=!0,r=s,n=i;break}l=l.sibling}if(!a)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?U(e):null)?null:e.stateNode};var bd={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ke,reconcilerVersion:"19.0.0"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var wd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wd.isDisabled&&wd.supportsFiber)try{ye=wd.inject(bd),ve=wd}catch(Td){}}t.createRoot=function(e,t){if(!a(e))throw Error(o(299));var n=!1,r="",i=Lo,s=jo,l=Mo;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(s=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError),void 0!==t.unstable_transitionCallbacks&&t.unstable_transitionCallbacks),t=Fh(e,1,!1,null,0,n,r,i,s,l,0,null),e[
2Ue]=t.current,Ru(8===e.nodeType?e.parentNode:e),new gd(t)},t.hydrateRoot=function(e,t,n){if(!a(e))throw Error(o(299));var r=!1,i="",s=Lo,l=jo,c=Mo,u=null;return null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(r=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onUncaughtError&&(s=n.onUncaughtError),void 0!==n.onCaughtError&&(l=n.onCaughtError),void 0!==n.onRecoverableError&&(c=n.onRecoverableError),void 0!==n.unstable_transitionCallbacks&&n.unstable_transitionCallbacks,void 0!==n.formState&&(u=n.formState)),(t=Fh(e,1,!0,t,0,r,i,s,l,c,0,u)).context=Vh(null),n=t.current,(i=Na(r=Pc())).callback=null,Ra(n,i,r),t.current.lanes=r,Re(t,r),mu(t),e[Ue]=t.current,Ru(e),new yd(t)},t.version="19.0.0"},7950:(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(6672)},8853:(e,t,n)=>{"use strict";e.exports=n(5896)}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,n),s.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+".951e16f8.chunk.js",n.miniCssF=e=>{},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="gss:";n.l=(r,i,s,o)=>{if(e[r])e[r].push(i);else{var a,l;if(void 0!==s)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var h=c[u];if(h.getAttribute("src")==r||h.getAttribute("data-webpack")==t+s){a=h;break}}a||(l=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,n.nc&&a.setAttribute("nonce",n.nc),a.setAttribute("data-webpack",t+s),a.src=r),e[r]=[i];var d=(t,n)=>{a.onerror=a.onload=null,clearTimeout(f);var i=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((e=>e(n))),t)return t(n)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",(()=>{var e={792:0};n.f.j=(t,r)=>{var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var s=new Promise(((n,r)=>i=e[t]=[n,r]));r.push(i[2]=s);var o=n.p+n.u(t),a=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var s=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;a.message="Loading chunk "+t+" failed.\n("+s+": "+o+")",a.name="ChunkLoadError",a.type=s,a.request=o,i[1](a)}}),"chunk-"+t,t)}};var t=(t,r)=>{var i,s,o=r[0],a=r[1],l=r[2],c=0;if(o.some((t=>0!==e[t]))){for(i in a)n.o(a,i)&&(n.m[i]=a[i]);if(l)l(n)}for(t&&t(r);c<o.length;c++)s=o[c],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},r=self.webpackChunkgss=self.webpackChunkgss||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e={};n.r(e),n.d(e,{FirebaseError:()=>bu,SDK_VERSION:()=>Jh,_DEFAULT_ENTRY_NAME:()=>Lh,_addComponent:()=>Uh,_addOrOverwriteComponent:()=>zh,_apps:()=>Mh,_clearComponents:()=>Kh,_components:()=>Vh,_getProvider:()=>qh,_isFirebaseApp:()=>Hh,_isFirebaseServerApp:()=>Wh,_registerComponent:()=>Bh,_removeServiceInstance:()=>$h,_serverApps:()=>Fh,deleteApp:()=>rd,getApp:()=>td,getApps:()=>nd,initializeApp:()=>Zh,initializeServerApp:()=>ed,onLog:()=>sd,registerVersion:()=>id,setLogLevel:()=>od});var t=n(5043),r=n(4391),i=(n(4358),"popstate");function s(){return d((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return c("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:u(t)}),null,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})}function o(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function a(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function l(e,t){return{usr:e.state,key:e.key,idx:t}}function c(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return{pathname:"string"===typeof e?e:e.pathname,search:"",hash:"",..."string"===typeof t?h(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function h(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function d(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},{window:s=document.defaultView,v5Compat:a=!1}=r,h=s.history,d="POP",f=null,p=m();
2function m(){return(h.state||{idx:null}).idx}function g(){d="POP";let e=m(),t=null==e?null:e-p;p=e,f&&f({action:d,location:v.location,delta:t})}function y(e){let t="null"!==s.location.origin?s.location.origin:s.location.href,n="string"===typeof e?e:u(e);return n=n.replace(/ $/,"%20"),o(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==p&&(p=0,h.replaceState({...h.state,idx:p},""));let v={get action(){return d},get location(){return e(s,h)},listen(e){if(f)throw new Error("A history only accepts one active listener");return s.addEventListener(i,g),f=e,()=>{s.removeEventListener(i,g),f=null}},createHref:e=>t(s,e),createURL:y,encodeLocation(e){let t=y(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){d="PUSH";let r=c(v.location,e,t);n&&n(r,e),p=m()+1;let i=l(r,p),o=v.createHref(r);try{h.pushState(i,"",o)}catch(u){if(u instanceof DOMException&&"DataCloneError"===u.name)throw u;s.location.assign(o)}a&&f&&f({action:d,location:v.location,delta:1})},replace:function(e,t){d="REPLACE";let r=c(v.location,e,t);n&&n(r,e),p=m();let i=l(r,p),s=v.createHref(r);h.replaceState(i,"",s),a&&f&&f({action:d,location:v.location,delta:0})},go:e=>h.go(e)};return v}function f(e,t){return p(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",!1)}function p(e,t,n,r){let i=C(("string"===typeof t?h(t):t).pathname||"/",n);if(null==i)return null;let s=m(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let o=null;for(let a=0;null==o&&a<s.length;++a){let e=I(i);o=S(s[a],e,r)}return o}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=(e,i,s)=>{let a={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(o(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let l=D([r,a.relativePath]),c=n.concat(a);e.children&&e.children.length>0&&(o(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),m(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:E(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of g(e.path))i(e,t,n);else i(e,t)})),t}function g(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(0===r.length)return i?[s,""]:[s];let o=g(r.join("/")),a=[];return a.push(...o.map((e=>""===e?s:[s,e].join("/")))),i&&a.push(...o),a.map((t=>e.startsWith("/")&&""===t?"/":t))}var y=/^:[\w-]+$/,v=3,b=2,w=1,_=10,T=-2,x=e=>"*"===e;function E(e,t){let n=e.split("/"),r=n.length;return n.some(x)&&(r+=T),t&&(r+=b),n.filter((e=>!x(e))).reduce(((e,t)=>e+(y.test(t)?v:""===t?w:_)),r)}function S(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{routesMeta:r}=e,i={},s="/",o=[];for(let a=0;a<r.length;++a){let e=r[a],l=a===r.length-1,c="/"===s?t:t.slice(s.length)||"/",u=k({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),h=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=k({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;
2Object.assign(i,u.params),o.push({params:i,pathname:D([s,u.pathname]),pathnameBase:O(D([s,u.pathnameBase])),route:h}),"/"!==u.pathnameBase&&(s=D([s,u.pathnameBase]))}return o}function k(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];a("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let s=new RegExp(i,t?void 0:"i");return[s,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],o=s.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=l[n]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const a=l[n];return e[r]=i&&!a?void 0:(a||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:o,pattern:e}}function I(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return a(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function C(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function A(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function P(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function N(e){let t=P(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function R(e,t,n){let r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"===typeof e?r=h(e):(r={...e},o(!r.pathname||!r.pathname.includes("?"),A("?","pathname","search",r)),o(!r.pathname||!r.pathname.includes("#"),A("#","pathname","hash",r)),o(!r.search||!r.search.includes("#"),A("#","search","hash",r)));let s,a=""===e||""===r.pathname,l=a?"/":r.pathname;if(null==l)s=n;else{let e=t.length-1;if(!i&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;r.pathname=t.join("/")}s=e>=0?t[e]:"/"}let c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",{pathname:n,search:r="",hash:i=""}="string"===typeof e?h(e):e,s=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:s,search:L(r),hash:j(i)}}(r,s),u=l&&"/"!==l&&l.endsWith("/"),d=(a||"."===l)&&n.endsWith("/");return c.pathname.endsWith("/")||!u&&!d||(c.pathname+="/"),c}var D=e=>e.join("/").replace(/\/\/+/g,"/"),O=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),L=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",j=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function M(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}var F=["POST","PUT","PATCH","DELETE"],V=(new Set(F),["GET",...F]);new Set(V),Symbol("ResetLoaderData");var U=t.createContext(null);U.displayName="DataRouter";var z=t.createContext(null);z.displayName="DataRouterState";var B=t.createContext({isTransitioning:!1});B.displayName="ViewTransition";var q=t.createContext(new Map);q.displayName="Fetchers";var $=t.createContext(null);$.displayName="Await";var H=t.createContext(null);H.displayName="Navigation";var W=t.createContext(null);W.displayName="Location";var K=t.createContext({outlet:null,matches:[],isDataRoute:!1});K.displayName="Route";var G=t.createContext(null);G.displayName="RouteError";function Q(){return null!=t.useContext(W)}function Y(){return o(Q(),"useLocation() may be used only in the context of a <Router> component."),t.useContext(W).location}var X="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function J(e){t.useContext(H).static||t.useLayoutEffect(e)}function Z(){let{isDataRoute:e}=t.useContext(K);return e?function(){let{router:e}=le("useNavigate"),n=ue("useNavigate"),r=t.useRef(!1);J((()=>{r.current=!0}));let i=t.useCallback((async function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a(r.current,X),r.current&&("number"===typeof t?e.navigate(t):await e.navigate(t,{fromRouteId:n,...i}))}),[e,n]);return i}():function(){o(Q(),"useNavigate() may be used only in the context of a <Router> component.");let e=t.useContext(U),{basename:n,navigator:r}=t.useContext(H),{matches:i}=t.useContext(K),{pathname:s}=Y(),l=JSON.stringify(N(i)),c=t.useRef(!1);J((()=>{c.current=!0}));let u=t.useCallback((function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a(c.current,X),!c.current)return;if("number"===typeof t)return void r.go(t);let o=R(t,JSON.parse(l),s,"path"===i.relative);null==e&&"/"!==n&&(o.pathname="/"===o.pathname?n:D([n,o.pathname])),(i.replace?r.replace:r.push)(o,i.state,i)}),[n,r,l,s,e]);return u}()}t.createContext(null);function ee(e){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{matches:r}=t.useContext(K),{pathname:i}=Y(),s=JSON.stringify(N(r));return t.useMemo((()=>R(e,JSON.parse(s),i,"path"===n)),[e,s,i,n])}function te(e,n,r,i){o(Q(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:l}=t.useContext(H),{matches:c}=t.useContext(K),u=c[c.length-1],d=u?u.params:{},p=u?u.pathname:"/",m=u?u.pathnameBase:"/",g=u&&u.route;{let e=g&&g.path||"";fe(p,!g||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let y,v=Y();if(n){let e="string"===typeof n?h(n):n;o("/"===m||e.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${e.pathname}" was given in the \`location\` prop.`),y=e}else y=v;let b=y.pathname||"/",w=b;if("/"!==m){let e=m.replace(/^\//,"").split("/");w="/"+b.replace(/^\//,"").split("/").slice(e.length).join("/")}let _=!l&&r&&r.matches&&r.matches.length>0?r.matches:f(e,{pathname:w});a(g||null!=_,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),a(null==_||void 0!==_[_.length-1].route.element||void 0!==_[_.length-1].route.Component||void 0!==_[_.length-1].route.lazy,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let T=oe(_&&_.map((e=>Object.assign({},e,{params:Object.assign({},d,e.params),pathname:D([m,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?m:D([m,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),c,r,i);return n&&T?t.createElement(W.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...y},navigationType:"POP"}},T):T}function ne(){let e=he(),n=M(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=t.createElement(t.Fragment,null,t.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),t.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",t.createElement("code",{style:o},"ErrorBoundary")," or"," ",t.createElement("code",{style:o},"errorElement")," prop on your route.")),t.createElement(t.Fragment,null,t.createElement("h2",null,"Unexpected Application 
2Error!"),t.createElement("h3",{style:{fontStyle:"italic"}},n),r?t.createElement("pre",{style:s},r):null,a)}var re=t.createElement(ne,null),ie=class extends t.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?t.createElement(K.Provider,{value:this.props.routeContext},t.createElement(G.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function se(e){let{routeContext:n,match:r,children:i}=e,s=t.useContext(U);return s&&s.static&&s.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=r.route.id),t.createElement(K.Provider,{value:n},i)}function oe(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(0!==n.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,s=r?.errors;if(null!=s){let e=i.findIndex((e=>e.route.id&&void 0!==s?.[e.route.id]));o(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,l=-1;if(r)for(let t=0;t<i.length;t++){let e=i[t];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(l=t),e.route.id){let{loaderData:t,errors:n}=r,s=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!n||void 0===n[e.route.id]);if(e.route.lazy||s){a=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}return i.reduceRight(((e,o,c)=>{let u,h=!1,d=null,f=null;r&&(u=s&&o.route.id?s[o.route.id]:void 0,d=o.route.errorElement||re,a&&(l<0&&0===c?(fe("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),h=!0,f=null):l===c&&(h=!0,f=o.route.hydrateFallbackElement||null)));let p=n.concat(i.slice(0,c+1)),m=()=>{let n;return n=u?d:h?f:o.route.Component?t.createElement(o.route.Component,null):o.route.element?o.route.element:e,t.createElement(se,{match:o,routeC
2ontext:{outlet:e,matches:p,isDataRoute:null!=r},children:n})};return r&&(o.route.ErrorBoundary||o.route.errorElement||0===c)?t.createElement(ie,{location:r.location,revalidation:r.revalidation,component:d,error:u,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}function ae(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function le(e){let n=t.useContext(U);return o(n,ae(e)),n}function ce(e){let n=t.useContext(z);return o(n,ae(e)),n}function ue(e){let n=function(e){let n=t.useContext(K);return o(n,ae(e)),n}(e),r=n.matches[n.matches.length-1];return o(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function he(){let e=t.useContext(G),n=ce("useRouteError"),r=ue("useRouteError");return void 0!==e?e:n.errors?.[r]}var de={};function fe(e,t,n){t||de[e]||(de[e]=!0,a(!1,n))}t.memo((function(e){let{routes:t,future:n,state:r}=e;return te(t,void 0,r,n)}));function pe(e){o(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function me(e){let{basename:n="/",children:r=null,location:i,navigationType:s="POP",navigator:l,static:c=!1}=e;o(!Q(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=n.replace(/^\/*/,"/"),d=t.useMemo((()=>({basename:u,navigator:l,static:c,future:{}})),[u,l,c]);"string"===typeof i&&(i=h(i));let{pathname:f="/",search:p="",hash:m="",state:g=null,key:y="default"}=i,v=t.useMemo((()=>{let e=C(f,u);return null==e?null:{location:{pathname:e,search:p,hash:m,state:g,key:y},navigationType:s}}),[u,f,p,m,g,y,s]);return a(null!=v,`<Router basename="${u}"> is not able to match the URL "${f}${p}${m}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:t.createElement(H.Provider,{value:d},t.createElement(W.Provider,{children:r,value:v}))}function ge(e){let{children:t,location:n}=e;return te(ye(t),n)}t.Component;function ye(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=[];return t.Children.forEach(e,((e,i)=>{if(!t.isValidElement(e))return;let s=[...n,i];if(e.type===t.Fragment)return void r.push.apply(r,ye(e.props.children,s));o(e.type===pe,`[${"string"===typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),o(!e.props.index||!e.props.children,"An index route cannot have child routes.");let a={id:e.props.id||s.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ye(e.props.children,s)),r.push(a)})),r}var ve="get",be="application/x-www-form-urlencoded";function we(e){return null!=e&&"string"===typeof e.tagName}var _e=null;var Te=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function xe(e){return null==e||Te.has(e)?e:(a(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${be}"`),null)}function Ee(e,t){let n,r,i,s,o;if(we(a=e)&&"form"===a.tagName.toLowerCase()){let o=e.getAttribute("action");r=o?C(o,t):null,n=e.getAttribute("method")||ve,i=xe(e.getAttribute("enctype"))||be,s=new FormData(e)}else if(function(e){return we(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return we(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let a=e.getAttribute("formaction")||o.getAttribute("action");if(r=a?C(a,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||ve,i=xe(e.getAttribute("formenctype"))||xe(o.getAttribute("enctype"))||be,s=new FormData(o,e),!function(){if(null===_e)try{new FormData(document.createElement("form"),0),_e=!1}catch(e){_e=!0}return _e}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";s.append(`${e}x`,"0"),s.append(`${e}y`,"0")}
2else t&&s.append(t,r)}}else{if(we(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ve,r=null,i=be,o=e}var a;return s&&"text/plain"===i&&(o=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:o}}function Se(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}async function ke(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function Ie(e){return null!=e&&"string"===typeof e.page}function Ce(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"===typeof e.imageSrcSet&&"string"===typeof e.imageSizes:"string"===typeof e.rel&&"string"===typeof e.href)}function Ae(e,t,n,r,i,s){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,a=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===s?t.filter(((e,t)=>o(e,t)||a(e,t))):"data"===s?t.filter(((t,s)=>{let l=r.routes[t.route.id];if(!l||!l.hasLoader)return!1;if(o(t,s)||a(t,s))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"===typeof r)return r}return!0})):[]}function Pe(e,t){let{includeHydrateFallback:n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function Ne(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&!Ie(i)&&"script"===i.as&&i.href&&r.has(i.href))return e;let s=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(s)||(n.add(s),e.push({key:s,link:i})),e}),[])}function Re(e){return{__html:e}}Symbol("SingleFetchRedirect");function De(e){let t="string"===typeof e?new URL(e,"undefined"===typeof window?"server://singlefetch/":window.location.origin):e;return"/"===t.pathname?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}t.Component;function Oe(e){let{error:n,isOutsideRemixApp:r}=e;console.error(n);let i,s=t.createElement("script",{dangerouslySetInnerHTML:{__html:'\n        console.log(\n          "\ud83d\udcbf Hey developer \ud83d\udc4b. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n        );\n      '}});if(M(n))return t.createElement(Le,{title:"Unhandled Thrown Response!"},t.createElement("h1",{style:{fontSize:"24px"}},n.status," ",n.statusText),s);if(n instanceof Error)0;else{let e=null==n?"Unknown Error":"object"===typeof n&&"toString"in n?n.toString():JSON.stringify(n);new Error(e)}return t.createElement(Le,{title:"Application Error!",isOutsideRemixApp:r},t.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),t.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},i.stack),s)}function Le(e){let{title:n,renderScripts:r,isOutsideRemixApp:i,children:s}=e,{routeModules:o}=Ue();return o.root?.Layout&&!i?s:t.createElement("html",{lang:"en"},t.createElement("head",null,t.createElement("meta",{charSet:"utf-8"}),t.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),t.createElement("title",null,n)),t.createElement("body",null,t.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},s,r?t.createElement(Ke,null):null)))}function je(e){return!0===e}function Me(){let e=t.useContext(U);return Se(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Fe(){let e=t.useContext(z);return Se(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ve=t.createContext(void 0);function Ue(){let e=t.useContext(Ve);return Se(e,"You must render this element inside a <HydratedRouter> element"),e}function ze(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Be(e,t,n){if(n&&!We)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function qe(e){let{page:n,...r}=e,{router:i}=Me(),s=t.useMemo((()=>f(i.routes,n,i.basename)),[i.routes,n,i.basename]);return s?t.createElement(He,{page:n,matches:s,...r}):null}function $e(e){let{manifest:n,routeModules:r}=Ue(),[i,s]=t.useState([]);return t.useEffect((()=>{let t=!1;return async function(e,t,n){return Ne((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await ke(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(Ce).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,n,r).then((e=>{t||s(e)})),()=>{t=!0}}),[e,n,r]),i}function He(e){let{page:n,matches:r,...i}=e,s=Y(),{manifest:o,routeModules:a}=Ue(),{loaderData:l,matches:c}=Fe(),u=t.useMemo((()=>Ae(n,r,c,o,s,"data")),[n,r,c,o,s]),h=t.useMemo((()=>Ae(n,r,c,o,s,"assets")),[n,r,c,o,s]),d=t.useMemo((()=>
2{if(n===s.pathname+s.search+s.hash)return[];let e=new Set,t=!1;if(r.forEach((n=>{let r=o.routes[n.route.id];r&&r.hasLoader&&(!u.some((e=>e.route.id===n.route.id))&&n.route.id in l&&a[n.route.id]?.shouldRevalidate||r.hasClientLoader?t=!0:e.add(n.route.id))})),0===e.size)return[];let i=De(n);return t&&e.size>0&&i.searchParams.set("_routes",r.filter((t=>e.has(t.route.id))).map((e=>e.route.id)).join(",")),[i.pathname+i.search]}),[l,s,o,u,r,n,a]),f=t.useMemo((()=>Pe(h,o)),[h,o]),p=$e(h);return t.createElement(t.Fragment,null,d.map((e=>t.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...i}))),f.map((e=>t.createElement("link",{key:e,rel:"modulepreload",href:e,...i}))),p.map((e=>{let{key:n,link:r}=e;return t.createElement("link",{key:n,...r})})))}Ve.displayName="FrameworkContext";var We=!1;function Ke(e){let{manifest:n,serverHandoffString:r,isSpaMode:i,ssr:s,renderMeta:o}=Ue(),{router:a,static:l,staticContext:c}=Me(),{matches:u}=Fe(),h=je(s);o&&(o.didRenderScripts=!0);let d=Be(u,null,i);t.useEffect((()=>{0}),[]);let p=t.useMemo((()=>{let i=c?`window.__reactRouterContext = ${r};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",s=l?`${n.hmr?.runtime?`import ${JSON.stringify(n.hmr.runtime)};`:""}${h?"":`import ${JSON.stringify(n.url)}`};\n${d.map(((e,t)=>{let r=`route${t}`,i=n.routes[e.route.id];Se(i,`Route ${e.route.id} not found in manifest`);let{clientActionModule:s,clientLoaderModule:o,hydrateFallbackModule:a,module:l}=i,c=[...s?[{module:s,varName:`${r}_clientAction`}]:[],...o?[{module:o,varName:`${r}_clientLoader`}]:[],...a?[{module:a,varName:`${r}_HydrateFallback`}]:[],{module:l,varName:`${r}_main`}];return 1===c.length?`import * as ${r} from ${JSON.stringify(l)};`:[c.map((e=>`import * as ${e.varName} from "${e.module}";`)).join("\n"),`const ${r} = {${c.map((e=>`...${e.varName}`)).join(",")}};`].join("\n")})).join("\n")}\n  ${h?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(r.pop();r.length>0;)i.push(`/${r.join("/")}`),r.pop();i.forEach((e=>{let r=f(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let s=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:s}}(n,a),null,2)};`:""}\n  window.__reactRouterRouteModules = {${d.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(n.entry.module)});`:" ";return t.createElement(t.Fragment,null,t.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Re(i),type:void 0}),t.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:Re(s),type:"module",async:!0}))}),[]),m=We?[]:n.entry.imports.concat(Pe(d,n,{includeHydrateFallback:!0}));return We?null:t.createElement(t.Fragment,null,h?null:t.createElement("link",{rel:"modulepreload",href:n.url,crossOrigin:e.crossOrigin}),t.createElement("link",{rel:"modulepreload",href:n.entry.module,crossOrigin:e.crossOrigin}),[...new Set(g)].map((n=>t.createElement("link",{key:n,rel:"modulepreload",href:n,crossOrigin:e.crossOrigin}))),p);var g}function Ge(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"===typeof t?t(e):null!=t&&(t.current=e)}))}}var Qe="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement;try{Qe&&(window.__reactRouterVersion="7.2.0")}catch(vL){}function Ye(e){let{basename:n,children:r,window:i}=e,o=t.useRef();null==o.current&&(o.current=s({window:i,v5Compat:!0}));let a=o.current,[l,c]=t.useState({action:a.action,location:a.location}),u=t.useCallback((e=>{t.startTransition((()=>c(e)))}),[c]);return t.useLayoutEffect((()=>a.listen(u)),[a,u]),t.createElement(me,{basename:n,children:r,location:l.location,navigationType:l.action,navigator:a})}var Xe=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=t.forwardRef((function(e,n){let r,{onClick:i,discover:s="render",prefetch:l="none",relative:c,reloadDocument:h,replace:d,state:f,target:p,to:m,preventScrollReset:g,viewTransition:y,...v}=e,{basename:b}=t.useContext(H),w="string"===typeof m&&Xe.test(m),_=!1;if("string"===typeof m&&w&&(r=m,Qe))try{let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=C(t.pathname,b);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:_=!0}catch(vL){a(!1,`<Link to="${m}">
2 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=function(e){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(Q(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=t.useContext(H),{hash:s,pathname:a,search:l}=ee(e,{relative:n}),c=a;return"/"!==r&&(c="/"===a?r:D([r,a])),i.createHref({pathname:c,search:l,hash:s})}(m,{relative:c}),[x,E,S]=function(e,n){let r=t.useContext(Ve),[i,s]=t.useState(!1),[o,a]=t.useState(!1),{onFocus:l,onBlur:c,onMouseEnter:u,onMouseLeave:h,onTouchStart:d}=n,f=t.useRef(null);t.useEffect((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),t.useEffect((()=>{if(i){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[i]);let p=()=>{s(!0)},m=()=>{s(!1),a(!1)};return r?"intent"!==e?[o,f,{}]:[o,f,{onFocus:ze(l,p),onBlur:ze(c,m),onMouseEnter:ze(u,p),onMouseLeave:ze(h,m),onTouchStart:ze(d,p)}]:[!1,f,{}]}(l,v),k=function(e){let{target:n,replace:r,state:i,preventScrollReset:s,relative:o,viewTransition:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Z(),c=Y(),h=ee(e,{relative:o});return t.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:u(c)===u(h);l(e,{replace:n,state:i,preventScrollReset:s,relative:o,viewTransition:a})}}),[c,l,h,r,i,n,e,s,o,a])}(m,{replace:d,state:f,target:p,preventScrollReset:g,relative:c,viewTransition:y});let I=t.createElement("a",{...v,...S,href:r||T,onClick:_||h?i:function(e){i&&i(e),e.defaultPrevented||k(e)},ref:Ge(n,E),target:p,"data-discover":w||"render"!==s?void 0:"true"});return x&&!w?t.createElement(t.Fragment,null,I,t.createElement(qe,{page:T})):I}));Je.displayName="Link";var Ze=t.forwardRef((function(e,n){let{"aria-current":r="page",caseSensitive:i=!1,className:s="",end:a=!1,style:l,to:c,viewTransition:u,children:h,...d}=e,f=ee(c,{relative:d.relative}),p=Y(),m=t.useContext(z),{navigator:g,basename:y}=t.useContext(H),v=null!=m&&function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.useContext(B);o(null!=r,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=nt("useViewTransitionState"),s=ee(e,{relative:n.relative});if(!r.isTransitioning)return!1;let a=C(r.currentLocation.pathname,i)||r.currentLocation.pathname,l=C(r.nextLocation.pathname,i)||r.nextLocation.pathname;return null!=k(s.pathname,l)||null!=k(s.pathname,a)}(f)&&!0===u,b=g.encodeLocation?g.encodeLocation(f).pathname:f.pathname,w=p.pathname,_=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;i||(w=w.toLowerCase(),_=_?_.toLowerCase():null,b=b.toLowerCase()),_&&y&&(_=C(_,y)||_);const T="/"!==b&&b.endsWith("/")?b.length-1:b.length;let x,E=w===b||!a&&w.startsWith(b)&&"/"===w.charAt(T),S=null!=_&&(_===b||!a&&_.startsWith(b)&&"/"===_.charAt(b.length)),I={isActive:E,isPending:S,isTransitioning:v},A=E?r:void 0;x="function"===typeof s?s(I):[s,E?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let P="function"===typeof l?l(I):l;return t.createElement(Je,{...d,"aria-current":A,className:x,ref:n,style:P,to:c,viewTransition:u},"function"===typeof h?h(I):h)}));Ze.displayName="NavLink";var et=t.forwardRef(((e,n)=>{let{discover:r="render",fetcherKey:i,navigate:s,reloadDocument:a,replace:l,state:c,method:h=ve,action:d,onSubmit:f,relative:p,preventScrollReset:m,viewTransition:g,...y}=e,v=st(),b=function(e){let{relative:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{basename:r}=t.useContext(H),i=t.useContext(K);o(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),a={...ee(e||".",{relative:n})},l=Y();if(null==e){a.search=l.search;let e=new URLSearchParams(a.search),t=e.getAll("index"),n=t.some((e=>""===e));if(n){e.delete("index"),t.filter((e=>
2e)).forEach((t=>e.append("index",t)));let n=e.toString();a.search=n?`?${n}`:""}}e&&"."!==e||!s.route.index||(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index");"/"!==r&&(a.pathname="/"===a.pathname?r:D([r,a.pathname]));return u(a)}(d,{relative:p}),w="get"===h.toLowerCase()?"get":"post",_="string"===typeof d&&Xe.test(d);return t.createElement("form",{ref:n,method:w,action:b,onSubmit:a?f:e=>{if(f&&f(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,n=t?.getAttribute("formmethod")||h;v(t||e.currentTarget,{fetcherKey:i,method:n,navigate:s,replace:l,state:c,relative:p,preventScrollReset:m,viewTransition:g})},...y,"data-discover":_||"render"!==r?void 0:"true"})}));function tt(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function nt(e){let n=t.useContext(U);return o(n,tt(e)),n}et.displayName="Form";var rt=0,it=()=>`__${String(++rt)}__`;function st(){let{router:e}=nt("useSubmit"),{basename:n}=t.useContext(H),r=ue("useRouteId");return t.useCallback((async function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{action:s,method:o,encType:a,formData:l,body:c}=Ee(t,n);if(!1===i.navigate){let t=i.fetcherKey||it();await e.fetch(t,r,i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||o,formEncType:i.encType||a,replace:i.replace,state:i.state,fromRouteId:r,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[e,n,r])}new TextEncoder;var ot=n(579);const at=()=>(0,ot.jsx)("div",{children:(0,ot.jsxs)("div",{className:"not-found",children:[(0,ot.jsx)("h1",{children:"404"}),(0,ot.jsx)("h2",{children:"Oops! Page Not Found"}),(0,ot.jsx)("p",{children:"The page you are looking for doesn\u2019t exist or has been moved."}),(0,ot.jsx)(Je,{to:"/",className:"home-btn",children:"Go Home"})]})}),lt=n.p+"static/media/logo.a580744d0e97aae10635.png",ct=()=>{const[e,n]=(0,t.useState)(!1);(0,t.useEffect)((()=>{const e=()=>{n(window.scrollY>0)};return window.addEventListener("scroll",e),()=>window.removeEventListener("scroll",e)}),[]);const[r,i]=(0,t.useState)(!1),s=()=>{i((e=>!e))};return(0,ot.jsx)("div",{children:(0,ot.jsx)("header",{children:(0,ot.jsx)("div",{className:"ul-nav-area",children:(0,ot.jsxs)("div",{className:"row",children:[(0,ot.jsx)("div",{className:"col-xl-3 col-lg-3 col-md-3 col-sm-3",children:(0,ot.jsx)("div",{className:"header-logo",children:(0,ot.jsx)(Je,{to:"/",children:(0,ot.jsx)("img",{src:lt,alt:"logo",className:"img-fluid"})})})}),(0,ot.jsx)(Je,{to:"/about-us#certificates",className:"acc",children:(0,ot.jsx)("p",{children:"Accreditations"})}),(0,ot.jsxs)("div",{className:"menu-toggle",onClick:s,children:[(0,ot.jsx)("p",{children:"Menu"}),(0,ot.jsx)("svg",{id:"Layer_1","enable-background":"new 0 0 512 512",height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("path",{d:"m16.197 118.877c-9.994-9.993-16.197-23.787-16.197-38.967s6.203-28.974 16.197-38.967 23.787-16.197 38.967-16.197h401.672c15.18 0 28.974 6.203 38.967 16.197s16.197 23.787 16.197 38.967-6.203 28.974-16.197 38.967c-9.993 9.994-23.787 16.197-38.967 16.197h-401.672c-15.18 0-28.974-6.203-38.967-16.197zm440.639 258.049h-401.672c-15.18 0-28.974 6.203-38.967 16.197-9.994 9.992-16.197 23.786-16.197 38.966s6.203 28.974 16.197 38.967c9.993 9.994 23.787 16.197 38.967 16.197h401.672c15.18 0 28.974-6.203 38.967-16.197 9.994-9.993 16.197-23.786 16.197-38.967 0-15.18-6.203-28.974-16.197-38.967-9.993-9.993-23.787-16.196-38.967-16.196zm0-176.09h-401.672c-15.18 0-28.974 6.203-38.967 16.197-9.994 9.993-16.197 23.786-16.197 38.967 0 15.18 6.203 28.974 16.197 38.968 9.994 9.993 23.787 16.197 38.967 16.197h401.672c15.18 0 28.974-6.203 38.967-16.197 9.994-9.995 16.197-23.788 16.197-38.968s-6.203-28.974-16.197-38.967c-9.993-9.994-23.787-16.197-38.967-16.197z"})})]}),(0,ot.jsxs)("div",{className:"col-xl-9 col-lg-9 col-md-9 col-sm-9 header",children:[(0,ot.jsx)("div",{className:"main-menu-area text-center",children:(0,ot.jsx)("div",{className:"main-menu",children:(0,ot.jsx)("nav",{id:"mobile-menu",children:(0,ot.jsxs)("ul",{children:[(0,ot.jsx)("li",{className:"active",children:(0,ot.jsx)(Je,{to:"/",children:"home"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us",children:"about us"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/laboratory-services",children:" Laboratory Services"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/test-kits",children:"Test Kits"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/sustainability",children:"Sustainability"})}),(0,ot.jsxs)("li",{children:[(0,ot.jsx)("a",{href:"#",children:"Resources"}),(0,ot.jsxs)("ul",{className:"sub-menu text-left",children:[(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/how-we-add-value",children:"How we add value"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/technicals",children:"Technicals"})})]})]}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/career",children:"Career"})})]})})})}),(0,ot.jsx)(Je,{id:"quote-btn",to:"/contact",children:"Contact Us"}),(0,ot.jsxs)("ul",{className:"header-cert",children:[(0,ot.jsxs)("li",{children:[" ",(0,ot.jsx)(Je,{to:"/about-us#certificates",children:"ISO 9001:2015 certified"})]}),(0,ot.jsxs)("li",{children:[" ",(0,ot.jsx)(Je,{to:"/about-us#certificates",children:"ISO 14001:2015 certified"})," "]}),(0,ot.jsxs)("li",{children:["  ",(0,ot.jsx)(Je,{to:"/about-us#certificates",children:"ISO 17025: 2017 accredited "})]}),(0,ot.jsxs)("li",{children:["  ",(0,ot.jsx)(Je,{to:"/about-us#certificates",children:" NABL accredited"})," "]}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",children:"Member- Global Water Partnership"})})]})]}),(0,ot.jsxs)("div",{className:"mobile-menu",style:{display:r?"block":"none"},children:[(0,ot.jsx)("svg",{onClick:s,xmlns:"http://www.w3.org/2000/svg",id:"Solid",viewBox:"0 0 64 64",children:(0,ot.jsx)("path",{d:"M43.4141,32,58.95,16.4644a7.0076,7.0076,0,0,0,0-9.9L57.4351,5.
205a7.0076,7.0076,0,0,0-9.8995,0L32,20.5859,16.4644,5.05a7.0076,7.0076,0,0,0-9.9,0L5.05,6.5649a7.0076,7.0076,0,0,0,0,9.9L20.5859,32,5.05,47.5356a7.0076,7.0076,0,0,0,0,9.8995L6.5649,58.95a7.0076,7.0076,0,0,0,9.9,0L32,43.4141,47.5356,58.95a7.0081,7.0081,0,0,0,9.8995,0L58.95,57.4351a7.0076,7.0076,0,0,0,0-9.8995ZM55.3209,7.1077a1,1,0,1,1,0,1.4142A1,1,0,0,1,55.3209,7.1077ZM48.25,21.25l7.7782-7.7782a3.0014,3.0014,0,0,0,.8707-2.3112,1,1,0,1,1,1.9956-.1257,5.0013,5.0013,0,0,1-1.4522,3.8512L49.664,22.664A1,1,0,0,1,48.25,21.25ZM8.4554,8.8351a1,1,0,1,1,0-1.4142A1,1,0,0,1,8.4554,8.8351Zm14.1422,7.0711a1,1,0,0,1-1.4143,0L13.4052,8.128a3.001,3.001,0,0,0-2.3112-.8707,1,1,0,0,1-.1257-1.9957,5.0012,5.0012,0,0,1,3.8511,1.4522l7.7782,7.7781A1,1,0,0,1,22.5976,15.9062Z"})}),(0,ot.jsxs)("nav",{children:[(0,ot.jsxs)("ul",{children:[(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/",onClick:s,children:"home"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us",onClick:s,children:"about us"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/laboratory-services",onClick:s,children:"Laboratory Services"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/test-kits",onClick:s,children:"Test Kits"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/sustainability",onClick:s,children:"Sustainability"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/how-we-add-value",onClick:s,children:"How we add value"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/technicals",onClick:s,children:"Technicals"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/career",onClick:s,children:"Career"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/contact",onClick:s,children:"Contact Us"})})]}),(0,ot.jsxs)("ul",{className:"header-cert-mobile",children:[(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",onClick:s,children:"ISO 9001:2015 certified"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",onClick:s,children:"ISO 14001:2015 certified"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",onClick:s,children:"ISO 17025:2017 accredited"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",onClick:s,children:"NABL accredited"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us#certificates",onClick:s,children:"Global Water Partnership"})})]})]})]})]})})})})},ut=()=>(0,ot.jsxs)("div",{className:"preloader",children:[(0,ot.jsx)("div",{className:"beaker",children:(0,ot.jsx)("div",{className:"liquid"})}),(0,ot.jsx)("p",{className:"loading-text",children:"Loading..."})]});function ht(e,t){-1===e.indexOf(t)&&e.push(t)}function dt(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const ft=e=>e;let pt=ft,mt=ft;const gt=!1,yt=!1;function vt(e){let t;return()=>(void 0===t&&(t=e()),t)}const bt=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r};class wt{constructor(){this.subscriptions=[]}add(e){return ht(this.subscriptions,e),()=>dt(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){const r=this.subscriptions[i];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const _t=e=>1e3*e,Tt=e=>e/1e3;function xt(e,t){return t?e*(1e3/t):0}new Set;function Et(e){if("undefined"===typeof Proxy)return e;const t=new Map;return new Proxy((function(){return e(...arguments)}),{get:(n,r)=>"create"===r?e:(t.has(r)||t.set(r,e(r)),t.get(r))})}function St(e){return null!==e&&"object"===typeof e&&"function"===typeof e.start}function kt(e){const t=[{},{}];return null===e||void 0===e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function It(e,t,n,r){if("function"===typeof t){const[i,s]=kt(r);t=t(void 0!==n?n:e.custom,i,s)}if("string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t){const[i,s]=kt(r);t=t(void 0!==n?n:e.custom,i,s)}return t}function Ct(e,t,n){const r=e.getProps();return It(r,t,void 0!==n?n:r.custom,e)}const At=vt((()=>void 0!==window.ScrollTimeline));class Pt{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){const n=this.animations.map((n=>At()&&n.attachTimeline?n.attachTimeline(e):"function"===typeof t?t(n):void 0));return()=>
2{n.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Nt extends Pt{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function Rt(e,t){return e?e[t]||e.default||e:void 0}const Dt=2e4;function Ot(e){let t=0;let n=e.next(t);for(;!n.done&&t<Dt;)t+=50,n=e.next(t);return t>=Dt?1/0:t}function Lt(e){return"function"===typeof e}function jt(e,t){e.timeline=t,e.onfinish=null}const Mt=e=>Array.isArray(e)&&"number"===typeof e[0],Ft={linearEasing:void 0};function Vt(e,t){const n=vt(e);return()=>{var e;return null!==(e=Ft[t])&&void 0!==e?e:n()}}const Ut=Vt((()=>{try{document.createElement("div").animate({opacity:0}
2,{easing:"linear(0, 1)"})}catch(vL){return!1}return!0}),"linearEasing"),zt=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const i=Math.max(Math.round(t/n),2);for(let s=0;s<i;s++)r+=e(bt(0,i-1,s))+", ";return`linear(${r.substring(0,r.length-2)})`};function Bt(e){return Boolean("function"===typeof e&&Ut()||!e||"string"===typeof e&&(e in $t||Ut())||Mt(e)||Array.isArray(e)&&e.every(Bt))}const qt=e=>{let[t,n,r,i]=e;return`cubic-bezier(${t}, ${n}, ${r}, ${i})`},$t={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qt([0,.65,.55,1]),circOut:qt([.55,0,1,.45]),backIn:qt([.31,.01,.66,-.59]),backOut:qt([.33,1.53,.69,.99])};function Ht(e,t){return e?"function"===typeof e&&Ut()?zt(e,t):Mt(e)?qt(e):Array.isArray(e)?e.map((e=>Ht(e,t)||$t.easeOut)):$t[e]:void 0}const Wt=["read","resolveKeyframes","update","preRender","render","postRender"],Kt={value:null,addProjectionMetrics:null};function Gt(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Wt.reduce(((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1},l=0;function c(t){o.has(t)&&(u.schedule(t),e()),l++,t(a)}const u={schedule:function(e){const t=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i?n:r;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&o.add(e),t.has(e)||t.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{a=e,i?s=!0:(i=!0,[n,r]=[r,n],n.forEach(c),t&&Kt.value&&Kt.value.frameloop[t].push(l),l=0,n.clear(),i=!1,s&&(s=!1,u.process(e)))}};return u}(s,t?n:void 0),e)),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:h,postRender:d}=o,f=()=>{const s=yt?i.timestamp:performance.now();n=!1,yt||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1)),i.timestamp=s,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),h.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(f))},p=Wt.reduce(((t,s)=>{const a=o[s];return t[s]=function(t){let s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,i.isProcessing||e(f)),a.schedule(t,s,o)},t}),{});return{schedule:p,cancel:e=>{for(let t=0;t<Wt.length;t++)o[Wt[t]].cancel(e)},state:i,steps:o}}const{schedule:Qt,cancel:Yt,state:Xt,steps:Jt}=Gt("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:ft,!0),{schedule:Zt,cancel:en}=Gt(queueMicrotask,!1);let tn;function nn(){tn=void 0}const rn={now:()=>(void 0===tn&&rn.set(Xt.isProcessing||yt?Xt.timestamp:performance.now()),tn),set:e=>{tn=e,queueMicrotask(nn)}},sn={x:!1,y:!1};function on(){return sn.x||sn.y}function an(e,t){const n=function(e,t,n){var r;if(e instanceof EventTarget)return[e];if("string"===typeof e){let i=document;t&&(i=t.current);const s=null!==(r=null===n||void 0===n?void 0:n[e])&&void 0!==r?r:i.querySelectorAll(e);return s?Array.from(s):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ln(e){return!("touch"===e.pointerType||on())}function cn(e,t){const n=`${t}PointerCapture`;if(e.target instanceof Element&&n in e.target&&void 0!==e.pointerId)try{e.target[n](e.pointerId)}catch(vL){}}const un=(e,t)=>
2!!t&&(e===t||un(e,t.parentElement)),hn=e=>"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary,dn=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const fn=new WeakSet;function pn(e){return t=>{"Enter"===t.key&&e(t)}}function mn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function gn(e){return hn(e)&&!on()}function yn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,i,s]=an(e,n),o=e=>{const n=e.currentTarget;if(!n||!gn(e)||fn.has(n))return;fn.add(n),cn(e,"set");const r=t(n,e),s=(e,t)=>{n.removeEventListener("pointerup",o),n.removeEventListener("pointercancel",a),cn(e,"release"),gn(e)&&fn.has(n)&&(fn.delete(n),"function"===typeof r&&r(e,{success:t}))},o=e=>{const t=!!e.isTrusted&&(r=e,i=n instanceof Element?n.getBoundingClientRect():{left:0,top:0,right:window.innerWidth,bottom:window.innerHeight},r.clientX<i.left||r.clientX>i.right||r.clientY<i.top||r.clientY>i.bottom);var r,i;s(e,!t&&(!(n instanceof Element)||un(n,e.target)))},a=e=>{s(e,!1)};n.addEventListener("pointerup",o,i),n.addEventListener("pointercancel",a,i),n.addEventListener("lostpointercapture",a,i)};return r.forEach((e=>{let t=!1;var r;(e=n.useGlobalTarget?window:e)instanceof HTMLElement&&(t=!0,r=e,dn.has(r.tagName)||-1!==r.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0)),e.addEventListener("pointerdown",o,i),t&&e.addEventListener("focus",(e=>((e,t)=>{const n=e.currentTarget;if(!n)return;const r=pn((()=>{if(fn.has(n))return;mn(n,"down");const e=pn((()=>{mn(n,"up")}));n.addEventListener("keyup",e,t),n.addEventListener("blur",(()=>mn(n,"cancel")),t)}));n.addEventListener("keydown",r,t),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),t)})(e,i)),i)})),s}const vn={layout:0,mainThread:0,waapi:0};const bn={current:void 0};class wn{constructor(e){var t=this;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.version="12.5.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(e){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=rn.now();t.updatedAt!==r&&t.setPrevFrameValue(),t.prev=t.current,t.setCurrent(e),t.current!==t.prev&&t.events.change&&t.events.change.notify(t.current),n&&t.events.renderRequest&&t.events.renderRequest.notify(t.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){var t;this.current=e,this.updatedAt=rn.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new wt);const n=this.events[e].add(t);return"change"===e?()=>{n(),Qt.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return bn.current&&bn.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=rn.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return xt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function _n(e,t){return new wn(e,t)}const Tn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xn=new Set(Tn),En=new Set(["width","height","top","left","right","bottom",...Tn]),Sn=e=>Array.isArray(e),kn=e=>Sn(e)?e[e.length-1]||0:e;function In(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_n(n))}const Cn=e=>Boolean(e&&e.getVelocity);function An(e,t){const n=e.getValue("willChange");if(r=n,Boolean(Cn(r)&&r.add))return n.add(t);var r}const Pn=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Nn="data-"+Pn("framerAppearId");function Rn(e){return e.props[Nn]}const Dn=!1,On=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Ln(e,t,n,r){if(e===t&&n===r)return ft;const i=t=>function(e,t,n,r,i){let s,o,a=0;do{o=t+(n-t)/2,s=On(o,r,i)-e,s>0?n=o:t=o}while(Math.abs(s)>1e-7&&++a<12);return o}(t,0,1,e,n);return e=>0===e||1===e?e:On(i(e),t,r)}const jn=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Mn=e=>t=>1-e(1-t),Fn=Ln(.33,1.53,.69,.99),Vn=Mn(Fn),Un=jn(Vn),zn=e=>(e*=2)<1?.5*Vn(e):.5*(2-Math.pow(2,-10*(e-1))),Bn=e=>1-Math.sin(Math.acos(e)),qn=Mn(Bn),$n=jn(Bn),Hn=e=>/^0[^.\s]+$/u.test(e);const Wn=(e,t,n)=>n>t?t:n<e?e:n,Kn={test:e=>"number"===typeof e,parse:parseFloat,transform:e=>e},Gn={...Kn,transform:e=>Wn(0,1,e)},Qn={...Kn,default:1},Yn=e=>Math.round(1e5*e)/1e5,Xn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Jn=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zn=(e,t)=>n=>Boolean("string"===typeof n&&Jn.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),er=(e,t,n)=>r=>{if("string"!==typeof r)return r;const[i,s,o,a]=r.match(Xn);return{[e]:parseFloat(i),[t]:parseFloat(s),[n]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tr={...Kn,transform:e=>Math.round((e=>Wn(0,255,e))(e))},nr={test:Zn("rgb","red"),parse:er("red","green","blue"),transform:e=>{let{red:t,green:n,blue:r,alpha:i=1}=e;return"rgba("+tr.transform(t)+", "+tr.transform(n)+", "+tr.transform(r)+", "+Yn(Gn.transform(i))+")"}};const rr={test:Zn("#"),parse:function(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alph
2a:i?parseInt(i,16)/255:1}},transform:nr.transform},ir=e=>({test:t=>"string"===typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),sr=ir("deg"),or=ir("%"),ar=ir("px"),lr=ir("vh"),cr=ir("vw"),ur={...or,parse:e=>or.parse(e)/100,transform:e=>or.transform(100*e)},hr={test:Zn("hsl","hue"),parse:er("hue","saturation","lightness"),transform:e=>{let{hue:t,saturation:n,lightness:r,alpha:i=1}=e;return"hsla("+Math.round(t)+", "+or.transform(Yn(n))+", "+or.transform(Yn(r))+", "+Yn(Gn.transform(i))+")"}},dr={test:e=>nr.test(e)||rr.test(e)||hr.test(e),parse:e=>nr.test(e)?nr.parse(e):hr.test(e)?hr.parse(e):rr.parse(e),transform:e=>"string"===typeof e?e:e.hasOwnProperty("red")?nr.transform(e):hr.transform(e)},fr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const pr="number",mr="color",gr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function yr(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let s=0;const o=t.replace(gr,(e=>(dr.test(e)?(r.color.push(s),i.push(mr),n.push(dr.parse(e))):e.startsWith("var(")?(r.var.push(s),i.push("var"),n.push(e)):(r.number.push(s),i.push(pr),n.push(parseFloat(e))),++s,"${}"))).split("${}");return{values:n,split:o,indexes:r,types:i}}function vr(e){return yr(e).values}function br(e){const{split:t,types:n}=yr(e),r=t.length;return e=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],void 0!==e[s]){const t=n[s];i+=t===pr?Yn(e[s]):t===mr?dr.transform(e[s]):e[s]}return i}}const wr=e=>"number"===typeof e?0:e;const _r={test:function(e){var t,n;return isNaN(e)&&"string"===typeof e&&((null===(t=e.match(Xn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(fr))||void 0===n?void 0:n.length)||0)>0},parse:vr,createTransformer:br,getAnimatableNone:function(e){const t=vr(e);return br(e)(t.map(wr))}},Tr=new Set(["brightness","contrast","saturate","opacity"]);function xr(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Xn)||[];if(!r)return e;const i=n.replace(r,"");let s=Tr.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+i+")"}const Er=/\b([a-z-]*)\(.*?\)/gu,Sr={..._r,getAnimatableNone:e=>{const t=e.match(Er);return t?t.map(xr).join(" "):e}},kr={borderWidth:ar,borderTopWidth:ar,borderRightWidth:ar,borderBottomWidth:ar,borderLeftWidth:ar,borderRadius:ar,radius:ar,borderTopLeftRadius:ar,borderTopRightRadius:ar,borderBottomRightRadius:ar,borderBottomLeftRadius:ar,width:ar,maxWidth:ar,height:ar,maxHeight:ar,top:ar,right:ar,bottom:ar,left:ar,padding:ar,paddingTop:ar,paddingRight:ar,paddingBottom:ar,paddingLeft:ar,margin:ar,marginTop:ar,marginRight:ar,marginBottom:ar,marginLeft:ar,backgroundPositionX:ar,backgroundPositionY:ar},Ir={rotate:sr,rotateX:sr,rotateY:sr,rotateZ:sr,scale:Qn,scaleX:Qn,scaleY:Qn,scaleZ:Qn,skew:sr,skewX:sr,skewY:sr,distance:ar,translateX:ar,translateY:ar,translateZ:ar,x:ar,y:ar,z:ar,perspective:ar,transformPerspective:ar,opacity:Gn,originX:ur,originY:ur,originZ:ar},Cr={...Kn,transform:Math.round},Ar={...kr,...Ir,zIndex:Cr,size:ar,fillOpacity:Gn,strokeOpacity:Gn,numOctaves:Cr},Pr={...Ar,color:dr,backgroundColor:dr,outlineColor:dr,fill:dr,stroke:dr,borderColor:dr,borderTopColor:dr,borderRightColor:dr,borderBottomColor:dr,borderLeftColor:dr,filter:Sr,WebkitFilter:Sr},Nr=e=>Pr[e];function Rr(e,t){let n=Nr(e);return n!==Sr&&(n=_r),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Dr=new Set(["auto","none","0"]);const Or=e=>180*e/Math.PI,Lr=e=>{const t=Or(Math.atan2(e[1],e[0]));return Mr(t)},jr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Lr,rotateZ:Lr,skewX:e=>Or(Math.atan(e[1])),skewY:e=>Or(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Mr=e=>((e%=360)<0&&(e+=360),e),Fr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Vr=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Ur={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Fr,scaleY:Vr,scale:e=>(Fr(e)+Vr(e))/2,rotateX:e=>Mr(Or(Math.atan2(e[6],e[5]))),rotateY:e=>Mr(Or(Math.atan2(-e[2],e[0]))),rotateZ:Lr,rotate:Lr,skewX:e=>Or(Math.atan(e[4])),skewY:e=>Or(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function zr(e){return e.includes("scale")?1:0}function Br(e,t){if(!e||"none"===e)return zr(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,i;if(n)r=Ur,i=n;else{const t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=jr,i=t}if(!i)return zr(t);const s=r[t],o=i[1].split(",").map(qr);return"function"===typeof s?s(o):o[s]}function qr(e){return parseFloat(e.trim())}const $r=e=>e===Kn||e===ar,Hr=new Set(["x","y","z"]),Wr=Tn.filter((e=>!Hr.has(e)));const Kr={width:(e,t)=>{let{x:n}=e,{paddingLeft:r="0",paddingRight:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},height:(e,t)=>
2{let{y:n}=e,{paddingTop:r="0",paddingBottom:i="0"}=t;return n.max-n.min-parseFloat(r)-parseFloat(i)},top:(e,t)=>{let{top:n}=t;return parseFloat(n)},left:(e,t)=>{let{left:n}=t;return parseFloat(n)},bottom:(e,t)=>{let{y:n}=e,{top:r}=t;return parseFloat(r)+(n.max-n.min)},right:(e,t)=>{let{x:n}=e,{left:r}=t;return parseFloat(r)+(n.max-n.min)},x:(e,t)=>{let{transform:n}=t;return Br(n,"x")},y:(e,t)=>{let{transform:n}=t;return Br(n,"y")}};Kr.translateX=Kr.x,Kr.translateY=Kr.y;const Gr=new Set;let Qr=!1,Yr=!1;function Xr(){if(Yr){const e=Array.from(Gr).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return Wr.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((t=>{let[n,r]=t;var i;null===(i=e.getValue(n))||void 0===i||i.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Yr=!1,Qr=!1,Gr.forEach((e=>e.complete())),Gr.clear()}function Jr(){Gr.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Yr=!0)}))}class Zr{constructor(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Gr.add(this),Qr||(Qr=!0,Qt.read(Jr),Qt.resolveKeyframes(Xr))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(null===e[i])if(0===i){const i=null===r||void 0===r?void 0:r.get(),s=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){const r=n.readValue(t,s);void 0!==r&&null!==r&&(e[0]=r)}void 0===e[0]&&(e[0]=s),r&&void 0===i&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Gr.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Gr.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const ei=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ti=e=>t=>"string"===typeof t&&t.startsWith(e),ni=ti("--"),ri=ti("var(--"),ii=e=>!!ri(e)&&si.test(e.split("/*")[0].trim()),si=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,oi=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ai(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;mt(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=function(e){const t=oi.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${null!==n&&void 0!==n?n:r}`,i]}(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const e=s.trim();return ei(e)?parseFloat(e):e}return ii(i)?ai(i,t,n+1):i}const li=e=>t=>t.test(e),ci=[Kn,ar,or,sr,cr,lr,{test:e=>"auto"===e,parse:e=>e}],ui=e=>ci.find(li(e));class hi extends Zr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let n=e[a];if("string"===typeof n&&(n=n.trim(),ii(n))){const r=ai(n,t.current);void 0!==r&&(e[a]=r),a===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!En.has(n)||2!==e.length)return;const[r,i]=e,s=ui(r),o=ui(i);if(s!==o)if($r(s)&&$r(o))for(let a=0;a<e.length;a++){const t=e[a];"string"===typeof t&&(e[a]=parseFloat(t))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let i=0;i<e.length;i++)("number"===typeof(r=e[i])?0===r:null===r||"none"===r||"0"===r||Hn(r))&&n.push(i);var r;n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){const t=e[i];"string"===typeof t&&!Dr.has(t)&&yr(t).values.length&&(r=e[i]),i++}if(r&&n)for(const s of t)e[s]=Rr(n,r)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);const s=r.length-1,o=r[s];r[s]=Kr[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEac
2h((e=>{let[n,r]=e;t.getValue(n).set(r)})),this.resolveNoneKeyframes()}}const di=(e,t)=>"zIndex"!==t&&(!("number"!==typeof e&&!Array.isArray(e))||!("string"!==typeof e||!_r.test(e)&&"0"!==e||e.startsWith("url(")));function fi(e,t,n,r){const i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;const s=e[e.length-1],o=di(i,t),a=di(s,t);return pt(o===a,`You are trying to animate ${t} from "${i}" to "${s}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${s} via the \`style\` property.`),!(!o||!a)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||Lt(n))&&r)}const pi=e=>null!==e;function mi(e,t,n){let{repeat:r,repeatType:i="loop"}=t;const s=e.filter(pi),o=r&&"loop"!==i&&r%2===1?0:s.length-1;return o&&void 0!==n?n:s[o]}class gi{constructor(e){let{autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:o="loop",...a}=e;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=rn.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:s,repeatType:o,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Jr(),Xr()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=rn.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:i,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!fi(e,n,r,i)){if(Dn||!s)return a&&a(mi(e,this.options,t)),o&&o(),void this.resolveFinishedPromise();this.options.duration=0}const c=this.initPlayback(e,t);!1!==c&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear")}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const yi=(e,t,n)=>e+(t-e)*n;function vi(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function bi(e,t){return n=>n>0?t:e}const wi=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},_i=[rr,nr,hr];function Ti(e){const t=(e=>_i.find((t=>t.test(e))))(e);if(pt(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===hr&&(n=function(e){let{hue:t,saturation:n,lightness:r,alpha:i}=e;t/=360,n/=100,r/=100;let s=0,o=0,a=0;if(n){const e=r<.5?r*(1+n):r+n-r*n,i=2*r-e;s=vi(i,e,t+1/3),o=vi(i,e,t),a=vi(i,e,t-1/3)}else s=o=a=r;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}const xi=(e,t)=>{const n=Ti(e),r=Ti(t);if(!n||!r)return bi(e,t);const i={...n};return e=>(i.red=wi(n.red,r.red,e),i.green=wi(n.green,r.green,e),i.blue=wi(n.blue,r.blue,e),i.alpha=yi(n.alpha,r.alpha,e),nr.transform(i))},Ei=(e,t)=>n=>t(e(n)),Si=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(Ei)},ki=new Set(["none","hidden"]);function Ii(e,t){return n=>yi(e,t,n)}function Ci(e){return"number"===typeof e?Ii:"string"===typeof e?ii(e)?bi:dr.test(e)?xi:Ni:Array.isArray(e)?Ai:"object"===typeof e?dr.test(e)?xi:Pi:bi}function Ai(e,t){const n=[...e],r=n.length,i=e.map(((e,n)=>Ci(e)(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function Pi(e,t){const n={...e,...t},r={};for(const i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Ci(e[i])(e[i],t[i]));return e=>{for(const t in r)n[t]=r[t](e);return n}}const Ni=(e,t)=>{const n=_r.createTransformer(t),r=yr(e),i=yr(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?ki.has(e)&&!i.values.length||ki.has(t)&&!r.values.length?function(e,t){return ki.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Si(Ai(function(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){const o=t.types[s],a=e.indexes[o][i[o]],l=null!==(n=e.values[a])&&void 0!==n?n:0;r[s]=l,i[o]++}return r}(r,i),i.values),n):(pt(!0,`Complex values '${e}' and '${t}
2' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),bi(e,t))};function Ri(e,t,n){if("number"===typeof e&&"number"===typeof t&&"number"===typeof n)return yi(e,t,n);return Ci(e)(e,t)}function Di(e,t,n){const r=Math.max(t-5,0);return xt(n-e(r),t-r)}const Oi={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Li=.001;function ji(e){let t,n,{duration:r=Oi.duration,bounce:i=Oi.bounce,velocity:s=Oi.velocity,mass:o=Oi.mass}=e;pt(r<=_t(Oi.maxDuration),"Spring duration must be 10 seconds or less");let a=1-i;a=Wn(Oi.minDamping,Oi.maxDamping,a),r=Wn(Oi.minDuration,Oi.maxDuration,Tt(r)),a<1?(t=e=>{const t=e*a,n=t*r,i=t-s,o=Fi(e,a),l=Math.exp(-n);return Li-i/o*l},n=e=>{const n=e*a*r,i=n*s+s,o=Math.pow(a,2)*Math.pow(e,2)*r,l=Math.exp(-n),c=Fi(Math.pow(e,2),a);return(-t(e)+Li>0?-1:1)*((i-o)*l)/c}):(t=e=>Math.exp(-e*r)*((e-s)*r+1)-.001,n=e=>Math.exp(-e*r)*(r*r*(s-e)));const l=function(e,t,n){let r=n;for(let i=1;i<Mi;i++)r-=e(r)/t(r);return r}(t,n,5/r);if(r=_t(r),isNaN(l))return{stiffness:Oi.stiffness,damping:Oi.damping,duration:r};{const e=Math.pow(l,2)*o;return{stiffness:e,damping:2*a*Math.sqrt(o*e),duration:r}}}const Mi=12;function Fi(e,t){return e*Math.sqrt(1-t*t)}const Vi=["duration","bounce"],Ui=["stiffness","damping","mass"];function zi(e,t){return t.some((t=>void 0!==e[t]))}function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oi.visualDuration,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oi.bounce;const n="object"!==typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:c,mass:u,duration:h,velocity:d,isResolvedFromDuration:f}=function(e){let t={velocity:Oi.velocity,stiffness:Oi.stiffness,damping:Oi.damping,mass:Oi.mass,isResolvedFromDuration:!1,...e};if(!zi(e,Ui)&&zi(e,Vi))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(1.2*n),i=r*r,s=2*Wn(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Oi.mass,stiffness:i,damping:s}}else{const n=ji(e);t={...t,...n,mass:Oi.mass},t.isResolvedFromDuration=!0}return t}({...n,velocity:-Tt(n.velocity||0)}),p=d||0,m=c/(2*Math.sqrt(l*u)),g=o-s,y=Tt(Math.sqrt(l/u)),v=Math.abs(g)<5;let b;if(r||(r=v?Oi.restSpeed.granular:Oi.restSpeed.default),i||(i=v?Oi.restDelta.granular:Oi.restDelta.default),m<1){const e=Fi(y,m);b=t=>{const n=Math.exp(-m*y*t);return o-n*((p+m*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===m)b=e=>o-Math.exp(-y*e)*(g+(p+y*g)*e);else{const e=y*Math.sqrt(m*m-1);b=t=>{const n=Math.exp(-m*y*t),r=Math.min(e*t,300);return o-n*((p+m*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}const w={calculatedDuration:f&&h||null,next:e=>{const t=b(e);if(f)a.done=e>=h;else{let n=0;m<1&&(n=0===e?_t(p):Di(b,e,t));const s=Math.abs(n)<=r,l=Math.abs(o-t)<=i;a.done=s&&l}return a.value=a.done?o:t,a},toString:()=>{const e=Math.min(Ot(w),Dt),t=zt((t=>w.next(e*t).value),e,30);return e+"ms "+t}};return w}function qi(e){let{keyframes:t,velocity:n=0,power:r=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:l,max:c,restDelta:u=.5,restSpeed:h}=e;const d=t[0],f={done:!1,value:d},p=e=>void 0===l?c:void 0===c||Math.abs(l-e)<Math.abs(c-e)?l:c;let m=r*n;const g=d+m,y=void 0===a?g:a(g);y!==g&&(m=y-d);const v=e=>-m*Math.exp(-e/i),b=e=>y+v(e),w=e=>{const t=v(e),n=b(e);f.done=Math.abs(t)<=u,f.value=f.done?y:n};let _,T;const x=e=>{(e=>void 0!==l&&e<l||void 0!==c&&e>c)(f.value)&&(_=e,T=Bi({keyframes:[f.value,p(f.value)],velocity:Di(b,e,f.value),damping:s,stiffness:o,restDelta:u,restSpeed:h}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return T||void 0!==_||(t=!0,w(e),x(e)),void 0!==_&&e>=_?T.next(e-_):(!t&&w(e),f)}}}const $i=Ln(.42,0,1,1),Hi=Ln(0,0,.58,1),Wi=Ln(.42,0,.58,1),Ki={linear:ft,easeIn:$i,easeInOut:Wi,easeOut:Hi,circIn:Bn,circInOut:$n,circOut:qn,backIn:Vn,backInOut:Un,backOut:Fn,anticipate:zn},Gi=e=>{if(Mt(e)){mt(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Ln(t,n,r,i)}return"string"===typeof e?(mt(void 0!==Ki[e],`Invalid easing type '${e}'`),Ki[e]):e};function Qi(e,t){let{clamp:n=!0,ease:r,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=e.length;if(mt(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const r=[],i=n||Ri,s=e.length-1;for(let o=0;o<s;o++){let n=i(e[o],e[o+1]);if(t){const e=Array.isArray(t)?t[o]||ft:t;n=Si(e,n)}r.push(n)}return r}(t,r,i),l=a.length,c=n=>{if(o&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);const i=bt(e[r],e[r+1],n);return a[r](i)};return n?t=>c(Wn(e[0],e[s-1],t)):c}function Yi(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=bt(0,t,r);e.push(yi(n,1,i))}}(t,e.length-1),t}function Xi(e){let{duration:t=300,keyframes:n,times:r,ease:i="easeInOut"}=e;const s=(e=>Array.isArray(e)&&"number"!==typeof e[0])(i)?i.map(Gi):Gi(i),o={done:!1,value:n[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===n.length?r:Yi(n),t),l=Qi(a,n,{ease:Array.isArray(s)?s:(c=n,u=s,c.map((()=>u||Wi)).splice(0,c.length-1))});var c,u;return{calculatedDuration:t,next:e=>(o.value=l(e),o.done=e>=t,o)}}const Ji=e=>{const t=t=>{let{timestamp:n}=t;return e(n)};return{start:()=>Qt.update(t,!0),stop:()=>Yt(t),now:()=>Xt.isProcessing?Xt.timestamp:rn.now()}},Zi={decay:qi,inertia:qi,tween:Xi,keyframes:Xi,spring:Bi},es=e=>e/100;class ts extends gi{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
2{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:n,element:r,keyframes:i}=this.options,s=(null===r||void 0===r?void 0:r.KeyframeResolver)||Zr;this.resolver=new s(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:s=0}=this.options,o=Lt(t)?t:Zi[t]||Xi;let a,l;o!==Xi&&"number"!==typeof e[0]&&(a=Si(es,Ri(e[0],e[1])),e=[0,100]);const c=o({...this.options,keyframes:e});"mirror"===i&&(l=o({...this.options,keyframes:[...e].reverse(),velocity:-s})),null===c.calculatedDuration&&(c.calculatedDuration=Ot(c));const{calculatedDuration:u}=c,h=u+r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:h,totalDuration:h*(n+1)-r}}onPostResolved(){const{autoplay:e=!0}=this.options;vn.mainThread++,this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:r,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(null===this.startTime)return i.next(0);const{delay:h,repeat:d,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-h*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>c;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=c);let v=this.currentTime,b=i;if(d){const e=Math.min(this.currentTime,c)/u;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,d+1);Boolean(t%2)&&("reverse"===f?(n=1-n,p&&(n-=p/u)):"mirror"===f&&(b=s)),v=Wn(0,1,n)*u}const w=y?{done:!1,value:a[0]}:b.next(v);o&&(w.value=o(w.value));let{done:_}=w;y||null===l||(_=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return T&&void 0!==r&&(w.value=mi(a,this.options,r)),m&&m(w.value),T&&this.finish(),w}get duration(){const{resolved:e}=this;return e?Tt(e.calculatedDuration):0}get time(){return Tt(this.currentTime)}set time(e){e=_t(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Tt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Ji,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!==n&&void 0!==n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedProm
2ise(),this.startTime=this.cancelTime=null,this.resolver.cancel(),vn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const ns=new Set(["opacity","clipPath","filter","transform"]);const rs=vt((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const is={anticipate:zn,backInOut:Un,circInOut:$n};class ss extends gi{constructor(e){super(e);const{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new hi(i,((e,t)=>this.onKeyframesResolved(e,t)),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:n=300,times:r,ease:i,type:s,motionValue:o,name:a,startTime:l}=this.options;if(!o.owner||!o.owner.current)return!1;var c;if("string"===typeof i&&Ut()&&i in is&&(i=is[i]),Lt((c=this.options).type)||"spring"===c.type||!Bt(c.ease)){const{onComplete:t,onUpdate:o,motionValue:a,element:l,...c}=this.options,u=function(e,t){const n=new ts({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let s=0;for(;!r.done&&s<2e4;)r=n.sample(s),i.push(r.value),s+=10;return{times:void 0,keyframes:i,duration:s-10,ease:"linear"}}(e,c);1===(e=u.keyframes).length&&(e[1]=e[0]),n=u.duration,r=u.times,i=u.ease,s="keyframes"}const u=function(e,t,n){let{delay:r=0,duration:i=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const c={[t]:n};l&&(c.offset=l);const u=Ht(a,i);Array.isArray(u)&&(c.easing=u),Kt.value&&vn.waapi++;const h=e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"});return Kt.value&&h.finished.finally((()=>{vn.waapi--})),h}(o.owner.current,a,e,{...this.options,duration:n,times:r,ease:i});return u.startTime=null!==l&&void 0!==l?l:this.calcStartTime(),this.pendingTimeline?(jt(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;o.set(mi(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:n,times:r,type:s,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Tt(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Tt(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=_t(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return ft;const{animation:n}=t;jt(n,e)}else this.pendingTimeline=e;return ft}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:r,type:i,ease:s,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:a,element:l,...c}=this.options,u=new ts({...c,keyframes:n,duration:r,type:i,ease:s,times:o,isGenerator:!0}),h=_t(this.time);e.setWithVelocity(u.sample(h-10).value,u.sample(h).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:s,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=t.owner.getProps();return rs()&&n&&ns.has(n)&&!a&&!l&&!r&&"mirror"!==i&&0!==s&&"inertia"!==o}}const os={type:"spring",stiffness:500,damping:25,restSpeed:10},as={type:"keyframes",duration:.8},ls={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},cs=(e,t)=>{let{keyframes:n}=t;return n.length>2?as:xn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:os:ls};const us=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return o=>{const a=Rt(r,e)||{},l=a.delay||r.delay||0;let{elapsed:c=0}=r;c-=_t(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:i};(function(e){let{when:t,delay:n,delayChildren:r,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:l,from:c,elapsed:u,...h}=e;return!!Object.keys(h).length})(a)||(u={...u,...cs(e,u)}),u.duration&&(u.duration=_t(u.duration)),u.repeatDelay&&(u.repeatDelay=_t(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let h=!1;if((!1===u.type||0===u.duration&&!u.repeatDelay)&&(u.duration=0,0===u.delay&&(h=!0)),(Dn||gt)&&(h=!0,u.duration=0,u.delay=0),u.allowFlatten=!a.type&&!a.ease,h&&!s&&void 0!==t.get()){const e=mi(u.keyframes,a);if(void 0!==e)return Qt.update((()=>{u.onUpdate(e),u.onComplete()}
2)),new Nt([])}return!s&&ss.supports(u)?new ss(u):new ts(u)}};function hs(e,t){let{protectedKeys:n,needsAnimating:r}=e;const i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}function ds(e,t){let{delay:n=0,transitionOverride:r,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(o=r);const c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const t=e.getValue(h,null!==(s=e.latestValues[h])&&void 0!==s?s:null),r=l[h];if(void 0===r||u&&hs(u,h))continue;const i={delay:n,...Rt(o||{},h)};let a=!1;if(window.MotionHandoffAnimation){const t=Rn(e);if(t){const e=window.MotionHandoffAnimation(t,h,Qt);null!==e&&(i.startTime=e,a=!0)}}An(e,h),t.start(us(h,t,r,e.shouldReduceMotion&&En.has(h)?{type:!1}:i,e,a));const d=t.animation;d&&c.push(d)}return a&&Promise.all(c).then((()=>{Qt.update((()=>{a&&function(e,t){const n=Ct(e,t);let{transitionEnd:r={},transition:i={},...s}=n||{};s={...s,...r};for(const o in s)In(e,o,kn(s[o]))}(e,a)}))})),c}function fs(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const i=Ct(e,t,"exit"===n.type?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);const o=i?()=>Promise.all(ds(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:i=0,staggerChildren:o,staggerDirection:a}=s;return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=arguments.length>5?arguments[5]:void 0;const o=[],a=(e.variantChildren.size-1)*r,l=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(ps).forEach(((e,r)=>{e.notify("AnimationStart",t),o.push(fs(e,t,{...s,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(o)}(e,t,i+r,o,a,n)}:()=>Promise.resolve(),{when:l}=s;if(l){const[e,t]="beforeChildren"===l?[o,a]:[a,o];return e().then((()=>t()))}return Promise.all([o(),a(n.delay)])}function ps(e,t){return e.sortNodePosition(t)}function ms(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function gs(e){return"string"===typeof e||Array.isArray(e)}const ys=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],vs=["initial",...ys],bs=vs.length;function ws(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&ws(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let n=0;n<bs;n++){const r=vs[n],i=e.props[r];(gs(i)||!1===i)&&(t[r]=i)}return t}const _s=[...ys].reverse(),Ts=ys.length;function xs(e){return t=>Promise.all(t.map((t=>{let{animation:n,options:r}=t;return function(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){const i=t.map((t=>fs(e,t,r)));n=Promise.all(i)}else if("string"===typeof t)n=fs(e,t,r);else{const i="function"===typeof t?Ct(e,t,r.custom):t;n=Promise.all(ds(e,i,r))}return n.then((()=>{e.notify("AnimationComplete",t)}))}(e,n,r)})))}function Es(e){let t=xs(e),n=Is(),r=!0;const i=t=>(n,r)=>{var i;const s=Ct(e,r,"exit"===t?null===(i=e.presenceContext)||void 0===i?void 0:i.custom:void 0);if(s){const{transition:e,transitionEnd:t,...r}=s;n={...n,...r,...t}}return n};function s(s){const{props:o}=e,a=ws(e.parent)||{},l=[],c=new Set;let u={},h=1/0;for(let t=0;t<Ts;t++){const d=_s[t],f=n[d],p=void 0!==o[d]?o[d]:a[d],m=gs(p),g=d===s?f.isActive:null;!1===g&&(h=t);let y=p===a[d]&&p!==o[d]&&m;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),f.protectedKeys={...u},!f.isActive&&null===g||!p&&!f.prevProp||St(p)||"boolean"===typeof p)continue;const v=Ss(f.prevProp,p);let b=v||d===s&&f.isActive&&!y&&m||t>h&&m,w=!1;const _=Array.isArray(p)?p:[p];let T=_.reduce(i(d),{});!1===g&&(T={});const{prevResolvedValues:x={}}=f,E={...x,...T},S=t=>{b=!0,c.has(t)&&(w=!0,c.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=T[e],n=x[e];if(u.hasOwnProperty(e))continue;let r=!1;r=Sn(t)&&Sn(n)?!ms(t,n):t!==n,r?void 0!==t&&null!==t?S(e):c.add(e):void 0!==t&&c.has(e)?S(e):f.protectedKeys[e]=!0}f.prevProp=p,f.prevResolvedValues=T,f.isActive&&(u={...u,...T}),r&&e.blockInitialAnimation&&(b=!1);b&&(!(y&&v)||w)&&l.push(..._.map((e=>({animation:e,options:{type:d}}))))}if(c.size){const t={};if("boolean"!==typeof o.initial){const n=Ct(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach((n=>{const r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=null!==r&&void 0!==r?r:null})),l.push({animation:t})}let d=Boolean(l.length);return!r||!1!==o.initial&&o.initial!==o.animate||e.manuallyAnimateOnMount||(d=!1),r=!1,d?t(l):Promise.resolve()}return{animateChanges:s,setActive:function(t,r){var i;if(n[t].isActive===r)return Promise.resolve();
2null===(i=e.variantChildren)||void 0===i||i.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const o=s(t);for(const e in n)n[e].protectedKeys={};return o},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Is(),r=!0}}}function Ss(e,t){return"string"===typeof t?t!==e:!!Array.isArray(t)&&!ms(t,e)}function ks(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Is(){return{animate:ks(!0),whileInView:ks(),whileHover:ks(),whileTap:ks(),whileDrag:ks(),whileFocus:ks(),exit:ks()}}class Cs{constructor(e){this.isMounted=!1,this.node=e}update(){}}let As=0;const Ps={animation:{Feature:class extends Cs{constructor(e){super(e),e.animationState||(e.animationState=Es(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();St(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Cs{constructor(){super(...arguments),this.id=As++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then((()=>{t(this.id)}))}mount(){const{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Ns(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Rs(e){return{point:{x:e.pageX,y:e.pageY}}}function Ds(e,t,n,r){return Ns(e,t,(e=>t=>hn(t)&&e(t,Rs(t)))(n),r)}function Os(e){let{top:t,left:n,right:r,bottom:i}=e;return{x:{min:n,max:r},y:{min:t,max:i}}}function Ls(e){return e.max-e.min}function js(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=yi(t.min,t.max,e.origin),e.scale=Ls(n)/Ls(t),e.translate=yi(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function Ms(e,t,n,r){js(e.x,t.x,n.x,r?r.originX:void 0),js(e.y,t.y,n.y,r?r.originY:void 0)}function Fs(e,t,n){e.min=n.min+t.min,e.max=e.min+Ls(t)}function Vs(e,t,n){e.min=t.min-n.min,e.max=e.min+Ls(t)}function Us(e,t,n){Vs(e.x,t.x,n.x),Vs(e.y,t.y,n.y)}const zs=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Bs(e){return[e("x"),e("y")]}function qs(e){return void 0===e||1===e}function $s(e){let{scale:t,scaleX:n,scaleY:r}=e;return!qs(t)||!qs(n)||!qs(r)}function Hs(e){return $s(e)||Ws(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ws(e){return Ks(e.x)||Ks(e.y)}function Ks(e){return e&&"0%"!==e}function Gs(e,t,n){return n+t*(e-n)}function Qs(e,t,n,r,i){return void 0!==i&&(e=Gs(e,i,r)),Gs(e,n,r)+t}function Ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;e.min=Qs(e.min,t,n,r,i),e.max=Qs(e.max,t,n,r,i)}function Xs(e,t){let{x:n,y:r}=t;Ys(e.x,n.translate,n.scale,n.originPoint),Ys(e.y,r.translate,r.scale,r.originPoint)}const Js=.999999999999,Zs=1.0000000000001;function eo(e,t){e.min=e.min+t,e.max=e.max+t}function to(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;Ys(e,t,n,yi(e.min,e.max,i),r)}function no(e,t){to(e.x,t.x,t.scaleX,t.scale,t.originX),to(e.y,t.y,t.scaleY,t.scale,t.originY)}function ro(e,t){return Os(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const io=e=>{let{current:t}=e;return t?t.ownerDocument.defaultView:null};function so(e){return e&&"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const oo=(e,t)=>Math.abs(e-t);class ao{constructor(e,t){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=uo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=oo(e.x,t.x),r=oo(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:i}=Xt;this.history.push({...r,timestamp:i});const{onStart:s,onMove:o}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>
2{this.lastMoveEvent=e,this.lastMoveEventInfo=lo(t,this.transformPagePoint),Qt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const s=uo("pointercancel"===e.type?this.lastMoveEventInfo:lo(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),r&&r(e,s)},!hn(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;const s=lo(Rs(e),this.transformPagePoint),{point:o}=s,{timestamp:a}=Xt;this.history=[{...o,timestamp:a}];const{onSessionStart:l}=t;l&&l(e,uo(s,this.history)),this.removeListeners=Si(Ds(this.contextWindow,"pointermove",this.handlePointerMove),Ds(this.contextWindow,"pointerup",this.handlePointerUp),Ds(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Yt(this.updatePoint)}}function lo(e,t){return t?{point:t(e.point)}:e}function co(e,t){return{x:e.x-t.x,y:e.y-t.y}}function uo(e,t){let{point:n}=e;return{point:n,delta:co(n,fo(t)),offset:co(n,ho(t)),velocity:po(t,.1)}}function ho(e){return e[0]}function fo(e){return e[e.length-1]}function po(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=fo(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>_t(t)));)n--;if(!r)return{x:0,y:0};const s=Tt(i.timestamp-r.timestamp);if(0===s)return{x:0,y:0};const o={x:(i.x-r.x)/s,y:(i.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function mo(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function go(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const yo=.35;function vo(e,t,n){return{min:bo(e,t),max:bo(e,n)}}function bo(e,t){return"number"===typeof e?e:e[t]||0}const wo=new WeakMap;class _o{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e){let{snapToCursor:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new ao(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Rs(e).point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(s=n)||"y"===s?sn[s]?null:(sn[s]=!0,()=>{sn[s]=!1}):sn.x||sn.y?null:(sn.x=sn.y=!0,()=>{sn.x=sn.y=!1}),!this.openDragLock))return;var s;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bs((e=>{let t=this.getAxisMotionValue(e).get()||0;if(or.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];if(r){t=Ls(r)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&Qt.postRender((()=>i(e,t))),An(this.visualElement,"transform");const{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:s}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:o}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(o),void(null!==this.currentDirection&&i&&i(this.currentDirection));this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&s(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>Bs((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:io(this.visualElement)})}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&Qt.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!To(e,r,this.currentDirection))return;const i=this.getAxisMotionValue(e);let s=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(s=function(e,t,n){let{min:r,max:i}=t;return void 0!==r&&e<r?e=n?yi(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?yi(i,e,n.max):Math.min(e,i)),e}(s,this.constraints[e],this.elastic[e])),i.set(s)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,i=this.constraints;t&&so(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!r)&&function(e,t){let{top:n,left:r,bottom:i,right:s}=t;return{x:mo(e.x,r,s),y:mo(e.y,n,i)}}(r.layoutBox,t),this.elastic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yo;return!1===e?e=0:!0===e&&(e=yo),{x:vo(e,"left","right"),y:vo(e,"to
2p","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Bs((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(r.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!so(e))return!1;const n=e.current;mt(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const i=function(e,t,n){const r=ro(e,n),{scroll:i}=t;return i&&(eo(r.x,i.offset.x),eo(r.y,i.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let s=function(e,t){return{x:go(e.x,t.x),y:go(e.y,t.y)}}(r.layout.layoutBox,i);if(t){const e=t(function(e){let{x:t,y:n}=e;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=Os(e))}return s}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{},l=Bs((o=>{if(!To(o,t,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,h={type:"inertia",velocity:n?e[o]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(o,h)}));return Promise.all(l).then(o)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return An(this.visualElement,e),n.start(us(e,n,0,t,this.visualElement,!1))}stopAnimation(){Bs((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){Bs((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Bs((t=>{const{drag:n}=this.getProps();if(!To(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:s}=r.layout.layoutBox[t];i.set(e[t]-yi(n,s,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!so(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Bs((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();r[e]=function(e,t){let n=.5;const r=Ls(e),i=Ls(t);return i>r?n=bt(t.min,t.max-r,e.min):r>i&&(n=bt(e.min,e.max-i,t.min)),Wn(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Bs((t=>{if(!To(t,e,null))return;const n=this.getAxisMotionValue(t),{min:i,max:s}=this.constraints[t];n.set(yi(i,s,r[t]))}))}addListeners(){if(!this.visualElement.current)return;wo.set(this.visualElement,this);const e=Ds(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();so(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),Qt.read(t);const i=Ns(window,"resize",(()=>this.scalePositionWithinConstraints())),s=n.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n}=e;this.isDragging&&n&&(Bs((e=>{const n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))})),this.visualElement.render())}));return()=>{i(),e(),r(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:s=yo,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function To(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}const xo=e=>(t,n)=>{e&&Qt.postRender((()=>e(t,n)))};const Eo=(0,t.createContext)(null);function So(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const n=(0,t.useContext)(Eo);if(null===n)return[!0,null];const{isPresent:r,onExitComplete:i,register:s}=n,o=(0,t.useId)();(0,t.useEffect)((()=>
2{if(e)return s(o)}),[e]);const a=(0,t.useCallback)((()=>e&&i&&i(o)),[o,i,e]);return!r&&i?[!1,a]:[!0]}const ko=(0,t.createContext)({}),Io=(0,t.createContext)({}),Co={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ao(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Po={correct:(e,t)=>{if(!t.target)return e;if("string"===typeof e){if(!ar.test(e))return e;e=parseFloat(e)}return`${Ao(e,t.target.x)}% ${Ao(e,t.target.y)}%`}},No={correct:(e,t)=>{let{treeScale:n,projectionDelta:r}=t;const i=e,s=_r.parse(e);if(s.length>5)return i;const o=_r.createTransformer(e),a="number"!==typeof s[0]?1:0,l=r.x.scale*n.x,c=r.y.scale*n.y;s[0+a]/=l,s[1+a]/=c;const u=yi(l,c,.5);return"number"===typeof s[2+a]&&(s[2+a]/=u),"number"===typeof s[3+a]&&(s[3+a]/=u),o(s)}},Ro={};class Do extends t.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;!function(e){for(const t in e)Ro[t]=e[t],ni(t)&&(Ro[t].isCSSVariable=!0)}(Lo),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",(()=>{this.safeToRemove()})),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Co.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,s=n.projection;return s?(s.isPresent=i,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||Qt.postRender((()=>{const e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Zt.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Oo(e){const[n,r]=So(),i=(0,t.useContext)(ko);return(0,ot.jsx)(Do,{...e,layoutGroup:i,switchLayoutGroup:(0,t.useContext)(Io),isPresent:n,safeToRemove:r})}const Lo={borderRadius:{...Po,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Po,borderTopRightRadius:Po,borderBottomLeftRadius:Po,borderBottomRightRadius:Po,boxShadow:No};const jo=(e,t)=>e.depth-t.depth;class Mo{constructor(){this.children=[],this.isDirty=!1}add(e){ht(this.children,e),this.isDirty=!0}remove(e){dt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(jo),this.isDirty=!1,this.children.forEach(e)}}function Fo(e,t){const n=rn.now(),r=i=>{let{timestamp:s}=i;const o=s-n;o>=t&&(Yt(r),e(o-t))};return Qt.read(r,!0),()=>Yt(r)}function Vo(e){const t=Cn(e)?e.get():e;return(e=>Boolean(e&&"object"===typeof e&&e.mix&&e.toValue))(t)?t.toValue():t}const Uo=["TopLeft","TopRight","BottomLeft","BottomRight"],zo=Uo.length,Bo=e=>"string"===typeof e?parseFloat(e):e,qo=e=>"number"===typeof e||ar.test(e);function $o(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Ho=Ko(0,.5,qn),Wo=Ko(.5,.95,ft);function Ko(e,t,n){return r=>r<e?0:r>t?1:n(bt(e,t,r))}function Go(e,t){e.min=t.min,e.max=t.max}function Qo(e,t){Go(e.x,t.x),Go(e.y,t.y)}function Yo(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Xo(e,t,n,r,i){return e=Gs(e-=t,1/n,r),void 0!==i&&(e=Gs(e,1/i,r)),e}function Jo(e,t,n,r,i){let[s,o,a]=n;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;or.test(t)&&(t=parseFloat(t),t=yi(o.min,o.max,t/100)-o.min);if("number"!==typeof t)return;let a=yi(s.min,s.max,r);e===s&&(a-=t),e.min=Xo(e.min,t,n,a,i),e.max=Xo(e.max,t,n,a,i)}(e,t[s],t[o],t[a],t.scale,r,i)}const Zo=["x","scaleX","originX"],ea=["y","scaleY","originY"];function ta(e,t,n,r){Jo(e.x,t,Zo,n?n.x:void 0,r?r.x:void 0),Jo(e.y,t,ea,n?n.y:void 0,r?r.y:void 0)}function na(e){return 0===e.translate&&1===e.scale}function ra(e){return na(e.x)&&na(e.y)}function ia(e,t){return e.min===t.min&&e.max===t.max}function sa(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function oa(e,t){return sa(e.x,t.x)&&sa(e.y,t.y)}function aa(e){return Ls(e.x)/Ls(e.y)}function la(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ca{constructor(){this.members=[]}add(e){ht(this.members,e),e.scheduleRender()}remove(e){if(dt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let r=t;r>=0;r--){const e=this.members[r];if(!1!==e.isPresent){n=e;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}
2exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const ua={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ha=["","X","Y","Z"],da={visibility:"hidden"};let fa=0;function pa(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function ma(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Rn(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Qt,!(t||r))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&ma(r)}function ga(e){let{attachResizeListener:t,defaultParent:n,measureScroll:r,checkIsScrollRoot:i,resetTransform:s}=e;return class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();this.id=fa++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Kt.value&&(ua.nodes=ua.calculatedTargetDeltas=ua.calculatedProjections=0),this.nodes.forEach(ba),this.nodes.forEach(ka),this.nodes.forEach(Ia),this.nodes.forEach(wa),Kt.addProjectionMetrics&&Kt.addProjectionMetrics(ua)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=t?t.root||t:this,this.path=t?[...t.path,t]:[],this.parent=t,this.depth=t?t.depth+1:0;for(let n=0;n<this.path.length;n++)this.path[n].shouldResetTransform=!0;this.root===this&&(this.nodes=new Mo)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new wt),this.eventHandlers.get(e).add(t)}notifyListeners(e){const t=this.eventHandlers.get(e);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t&&t.notify(...r)}hasListeners(e){return this.eventHandlers.has(e)}mount(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=e)instanceof SVGElement&&"svg"!==r.tagName,this.instance=e;const{layoutId:i,layout:s,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(s||i)&&(this.isLayoutDirty=!0),t){let n;const r=()=>this.root.updateBlockedByResize=!1;t(e,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=Fo(r,250),Co.hasAnimatedSinceResize&&(Co.hasAnimatedSinceResize=!1,this.nodes.forEach(Sa))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",(e=>{let{delta:t,hasLayoutChanged:n,hasRelativeLayoutChanged:r,layout:i}=e;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const s=this.options.transition||o.getDefaultTransition()||Da,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=o.getProps(),c=!this.targetLayout||!oa(this.targetLayout,i),u=!n&&r;if(this.options.layoutRoot||this.resumeFrom||u||n&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);const e={...Rt(s,"layout"),onPlay:a,onComplete:l};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else n||Sa(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Yt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
2h(Ca),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ma(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let i=0;i<this.path.length;i++){const e=this.path[i];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ta);this.isUpdating||this.nodes.forEach(xa),this.isUpdating=!1,this.nodes.forEach(Ea),this.nodes.forEach(ya),this.nodes.forEach(va),this.clearAllSnapshots();const e=rn.now();Xt.delta=Wn(0,1e3/60,e-Xt.timestamp),Xt.timestamp=e,Xt.isProcessing=!0,Jt.update.process(Xt),Jt.preRender.process(Xt),Jt.render.process(Xt),Xt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zt.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(_a),this.sharedNodes.forEach(Aa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Qt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Qt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Ls(this.snapshot.measuredBox.x)||Ls(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),(!this.options.alwaysMeasureLayout||!this.isLead())&&!this.isLayoutDirty)return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n<this.path.length;n++){this.path[n].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!s)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ra(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Hs(this.latestValues)||i)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),ja((r=n).x),ja(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Fa))){const{scroll:e}=this.root;e&&(eo(n.x,e.offset.x),eo(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Qo(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let r=0;r<this.path.length;r++){const t=this.path[r],{scroll:i,options:s}=t;t!==this.root&&i&&s.layoutScroll&&(i.wasRoot&&Qo(n,e),eo(n.x,i.offset.x),eo(n.y,i.offset.y))}return n}applyTransform(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};Qo(n,e);for(let r=0;r<this.path.length;r++){const e=this.path[r];!t&&e.options.layoutScroll&&e.scroll&&e!==e.root&&no(n,{x:-e.scroll.offset.x,y:-e.scroll.offset.y}),Hs(e.latestValues)&&no(n,e.latestValues)}return Hs(this.latestValues)&&no(n,this.latestValues),n}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};Qo(t,e);for(let n=0;n<this.path.length;n++){const e=this.path[n];if(!e.instance)continue;if(!Hs(e.latestValues))continue;$s(e.latestValues)&&e.updateSnapshot();const r={x:{min:0,max:0},y:{min:0,max:0}};Qo(r,e.measurePageBox()),ta(t,e.latestValues,e.snapshot?e.snapshot.layoutBox:void 0,r)}return Hs(this.latestValues)&&ta(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Xt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isS
2haredProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:i,layoutId:s}=this.options;if(this.layout&&(i||s)){if(this.resolvedRelativeTargetAt=Xt.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Us(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Qo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var o,a,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,l=this.relativeParent.target,Fs(o.x,a.x,l.x),Fs(o.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Qo(this.target,this.layout.layoutBox),Xs(this.target,this.targetDelta)):Qo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},Us(this.relativeTargetOrigin,this.target,e.target),Qo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Kt.value&&ua.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!$s(this.parent.latestValues)&&!Ws(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===Xt.timestamp&&(r=!1),r)return;const{layout:i,layoutId:s}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!i&&!s)return;Qo(this.layoutCorrected,this.layout.layoutBox);const o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=n.length;if(!i)return;let s,o;t.x=t.y=1;for(let a=0;a<i;a++){s=n[a],o=s.projectionDelta;const{visualElement:i}=s.options;i&&i.props.style&&"contents"===i.props.style.display||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&no(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Xs(e,o)),r&&Hs(s.latestValues)&&no(e,s.latestValues))}t.x<Zs&&t.x>Js&&(t.x=1),t.y<Zs&&t.y>Js&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(Yo(this.prevProjectionDelta.x,this.projectionDelta.x),Yo(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Ms(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&la(this.projectionDelta.x,this.prevProjectionDelta.x)&&la(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Kt.value&&ua.calculatedProjections++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const o={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(Ra));let h;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,d,f,p;Pa(s.x,e.x,n),Pa(s.y,e.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Us(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),l=this.relativeTarget,d=this.relativeTargetOrigin,f=o,p=n,Na(l.x,d.x,f.x,p),Na(l.y,d.y,f.y,p),h&&function(e,t){return ia(e.x,t.x)&&ia(e.y,t.y)}(this.relativeTarget,h)&&(this.isProjectionDirty=!1),h||(h={x:{min:0,max:0},y:{min:0,max:0}}),Qo(h,this.relativeTarget)),a&&(this.animationValues=i,function(e,t,n,r,i,s){i?(e.opacity=yi(0,void 0!==n.opacity?n.opacity:1,Ho(r)),e.opacityExit=yi(void 0!==t.opacity?t.opacity:1,0,Wo(r))):s&&(e.opacity=yi(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<zo;o++){const i=`border${Uo[o]}Radius`;let s=$o(t,i),a=$o(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||qo(s)===qo(a)?(e[i]=Math.max(yi(Bo(s),Bo(a),r),0),(or.test(a)||or.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=yi(t.rotate||0,n.rotate||0,r))}(i,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Yt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Qt.update((()=>{Co.hasAnimatedSinceResize=!0,vn.layout++,this.currentAnimation=function(e,t,n){const r=Cn(e)?e:_n(e);return r.start(us("",r,t,n)),r.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{vn.layout--},onComplete:()=>{vn.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&Ma(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=Ls(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Ls(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Qo(t,n),no(t,i),Ms(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
2)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new ca);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote(){let{needsReset:e,transition:t,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const r={};n.z&&pa("z",e,r,this.animationValues);for(let i=0;i<ha.length;i++)pa(`rotate${ha[i]}`,e,r,this.animationValues),pa(`skew${ha[i]}`,e,r,this.animationValues);e.render();for(const i in r)e.setStaticValue(i,r[i]),this.animationValues&&(this.animationValues[i]=r[i]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return da;const r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=Vo(null===e||void 0===e?void 0:e.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;const s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=Vo(null===e||void 0===e?void 0:e.pointerEvents)||""),this.hasProjected&&!Hs(this.latestValues)&&(t.transform=i?i({},""):"none",this.hasProjected=!1),t}const o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),r.transform=function(e,t,n){let r="";const i=e.x.translate/t.x,s=e.y.translate/t.y,o=(null===n||void 0===n?void 0:n.z)||0;if((i||s||o)&&(r=`translate3d(${i}px, ${s}px, ${o}px) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:i,rotateY:s,skewX:o,skewY:a}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return 1===a&&1===l||(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),i&&(r.transform=i(o,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(n=null!==(t=o.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0;for(const c in Ro){if(void 0===o[c])continue;const{correct:e,applyTo:t,isCSSVariable:n}=Ro[c],i="none"===r.transform?o[c]:e(o[c],s);if(t){const e=t.length;for(let n=0;n<e;n++)r[t[n]]=i}else n?this.options.visualElement.renderState.vars[c]=i:r[c]=i}return this.options.layoutId&&(r.pointerEvents=s===this?Vo(null===e||void 0===e?void 0:e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Ta),this.root.sharedNodes.clear()}}}function ya(e){e.updateLayout()}function va(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;"size"===i?Bs((e=>{const r=s?n.measuredBox[e]:n.layoutBox[e],i=Ls(r);r.min=t[e].min,r.max=r.min+i})):Ma(i,n.layoutBox,t)&&Bs((r=>{const i=s?n.measuredBox[r]:n.layoutBox[r],o=Ls(t[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)}));const o={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Ms(o,t,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};s?Ms(a,e.applyTransform(r,!0),n.measuredBox):Ms(a,t,n.layoutBox);const l=!ra(o);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:i,layout:s}=r;if(i&&s){const o={x:{min:0,max:0},y:{min:0,max:0}};Us(o,n.layoutBox,i.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Us(a,t,s.layoutBox),oa(o,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ba(e){Kt.value&&ua.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function wa(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function _a(e){e.clearSnapshot()}function Ta(e){e.clearMeasurements()}function xa(e){e.isLayoutDirty=!1}function Ea(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Sa(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ka(e){e.resolveTargetDelta()}function Ia(e){e.calcProjection()}
2function Ca(e){e.resetSkewAndRotation()}function Aa(e){e.removeLeadSnapshot()}function Pa(e,t,n){e.translate=yi(t.translate,0,n),e.scale=yi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Na(e,t,n,r){e.min=yi(t.min,n.min,r),e.max=yi(t.max,n.max,r)}function Ra(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Da={duration:.45,ease:[.4,0,.1,1]},Oa=e=>"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),La=Oa("applewebkit/")&&!Oa("chrome/")?Math.round:ft;function ja(e){e.min=La(e.min),e.max=La(e.max)}function Ma(e,t,n){return"position"===e||"preserve-aspect"===e&&(r=aa(t),i=aa(n),s=.2,!(Math.abs(r-i)<=s));var r,i,s}function Fa(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Va=ga({attachResizeListener:(e,t)=>Ns(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ua={current:void 0},za=ga({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ua.current){const e=new Va({});e.mount(window),e.setOptions({layoutScroll:!0}),Ua.current=e}return Ua.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Ba={pan:{Feature:class extends Cs{constructor(){super(...arguments),this.removePointerDownListener=ft}onPointerDown(e){this.session=new ao(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:io(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:xo(e),onStart:xo(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Qt.postRender((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Ds(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Cs{constructor(e){super(e),this.removeGroupControls=ft,this.removeListeners=ft,this.controls=new _o(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ft}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:za,MeasureLayout:Oo}};function qa(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);const i=r["onHover"+n];i&&Qt.postRender((()=>i(t,Rs(t))))}function $a(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);const i=r["onTap"+("End"===n?"":n)];i&&Qt.postRender((()=>i(t,Rs(t))))}const Ha=new WeakMap,Wa=new WeakMap,Ka=e=>{const t=Ha.get(e.target);t&&t(e)},Ga=e=>{e.forEach(Ka)};function Qa(e,t,n){const r=function(e){let{root:t,...n}=e;const r=t||document;Wa.has(r)||Wa.set(r,{});const i=Wa.get(r),s=JSON.stringify(n);return i[s]||(i[s]=new IntersectionObserver(Ga,{root:t,...n})),i[s]}(t);return Ha.set(e,n),r.observe(e),()=>{Ha.delete(e),r.unobserve(e)}}const Ya={some:0,all:1};const Xa={inView:{Feature:class extends Cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,s={root:t?t.current:void 0,rootMargin:n,threshold:"number"===typeof r?r:Ya[r]};return Qa(this.node.current,s,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,i&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),s=t?n:r;s&&s(e)}))}mount(){this.startObserver()}update(){if("undefined"===typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function(e){let{viewport:t={}}=e,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=>t[e]!==n[e]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Cs{mount(){const{current:e}=this.node;e&&(this.unmount=yn(e,((e,t)=>
2($a(this.node,t,"Start"),(e,t)=>{let{success:n}=t;return $a(this.node,e,n?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Cs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(vL){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Si(Ns(this.node.current,"focus",(()=>this.onFocus())),Ns(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Cs{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,i,s]=an(e,n),o=e=>{if(!ln(e))return;const{target:n}=e,r=t(n,e);if("function"!==typeof r||!n)return;const s=e=>{ln(e)&&(r(e),n.removeEventListener("pointerleave",s))};n.addEventListener("pointerleave",s,i)};return r.forEach((e=>{e.addEventListener("pointerenter",o,i)})),s}(e,((e,t)=>(qa(this.node,t,"Start"),e=>qa(this.node,e,"End")))))}unmount(){}}}},Ja={layout:{ProjectionNode:za,MeasureLayout:Oo}},Za=(0,t.createContext)({strict:!1}),el=(0,t.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),tl=(0,t.createContext)({});function nl(e){return St(e.animate)||vs.some((t=>gs(e[t])))}function rl(e){return Boolean(nl(e)||e.variants)}function il(e){const{initial:n,animate:r}=function(e,t){if(nl(e)){const{initial:t,animate:n}=e;return{initial:!1===t||gs(t)?t:void 0,animate:gs(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,t.useContext)(tl));return(0,t.useMemo)((()=>({initial:n,animate:r})),[sl(n),sl(r)])}function sl(e){return Array.isArray(e)?e.join(" "):e}const ol="undefined"!==typeof window,al={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},ll={};for(const n in al)ll[n]={isEnabled:e=>al[n].some((t=>!!e[t]))};const cl=Symbol.for("motionComponentSymbol");function ul(e,n,r){return(0,t.useCallback)((t=>{t&&e.onMount&&e.onMount(t),n&&(t?n.mount(t):n.unmount()),r&&("function"===typeof r?r(t):so(r)&&(r.current=t))}),[n])}const hl=ol?t.useLayoutEffect:t.useEffect;function dl(e,n,r,i,s){var o,a;const{visualElement:l}=(0,t.useContext)(tl),c=(0,t.useContext)(Za),u=(0,t.useContext)(Eo),h=(0,t.useContext)(el).reducedMotion,d=(0,t.useRef)(null);i=i||c.renderer,!d.current&&i&&(d.current=i(e,{visualState:n,parent:l,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));const f=d.current,p=(0,t.useContext)(Io);!f||f.projection||!s||"html"!==f.type&&"svg"!==f.type||function(e,t,n,r){const{layoutId:i,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:fl(e.parent)),e.projection.setOptions({layoutId:i,layout:s,alwaysMeasureLayout:Boolean(o)||a&&so(a),visualElement:e,animationType:"string"===typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}(d.current,r,s,p);const m=(0,t.useRef)(!1);(0,t.useInsertionEffect)((()=>{f&&m.current&&f.update(r,u)}));const g=r[Nn],y=(0,t.useRef)(Boolean(g)&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,g))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,g)));return hl((()=>{f&&(m.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Zt.render(f.render),y.current&&f.animationState&&f.animationState.animateChanges())})),(0,t.useEffect)((()=>{f&&(!y.current&&f.animationState&&f.animationState.animateChanges(),y.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,g)}
2)),y.current=!1))})),f}function fl(e){if(e)return!1!==e.options.allowProjection?e.projection:fl(e.parent)}function pl(e){let{preloadedFeatures:n,createVisualElement:r,useRender:i,useVisualState:s,Component:o}=e;var a,l;function c(e,n){let a;const l={...(0,t.useContext)(el),...e,layoutId:ml(e)},{isStatic:c}=l,u=il(e),h=s(e,c);if(!c&&ol){!function(){(0,t.useContext)(Za).strict;0}();const e=function(e){const{drag:t,layout:n}=ll;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:(null===t||void 0===t?void 0:t.isEnabled(e))||(null===n||void 0===n?void 0:n.isEnabled(e))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=e.MeasureLayout,u.visualElement=dl(o,h,l,r,e.ProjectionNode)}return(0,ot.jsxs)(tl.Provider,{value:u,children:[a&&u.visualElement?(0,ot.jsx)(a,{visualElement:u.visualElement,...l}):null,i(o,e,ul(h,u.visualElement,n),h,c,u.visualElement)]})}n&&function(e){for(const t in e)ll[t]={...ll[t],...e[t]}}(n),c.displayName=`motion.${"string"===typeof o?o:`create(${null!==(l=null!==(a=o.displayName)&&void 0!==a?a:o.name)&&void 0!==l?l:""})`}`;const u=(0,t.forwardRef)(c);return u[cl]=o,u}function ml(e){let{layoutId:n}=e;const r=(0,t.useContext)(ko).id;return r&&void 0!==n?r+"-"+n:n}function gl(e,t){let{layout:n,layoutId:r}=t;return xn.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!Ro[e]||"opacity"===e)}const yl=(e,t)=>t&&"number"===typeof e?t.transform(e):e,vl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bl=Tn.length;function wl(e,t,n){const{style:r,vars:i,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const e=t[l];if(xn.has(l))o=!0;else if(ni(l))i[l]=e;else{const t=yl(e,Ar[l]);l.startsWith("origin")?(a=!0,s[l]=t):r[l]=t}}if(t.transform||(o||n?r.transform=function(e,t,n){let r="",i=!0;for(let s=0;s<bl;s++){const o=Tn[s],a=e[o];if(void 0===a)continue;let l=!0;if(l="number"===typeof a?a===(o.startsWith("scale")?1:0):0===parseFloat(a),!l||n){const e=yl(a,Ar[o]);l||(i=!1,r+=`${vl[o]||o}(${e}) `),n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),a){const{originX:e="50%",originY:t="50%",originZ:n=0}=s;r.transformOrigin=`${e} ${t} ${n}`}}const _l=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Tl(e,t,n){for(const r in t)Cn(t[r])||gl(r,n)||(e[r]=t[r])}function xl(e,n){const r={};return Tl(r,e.style||{},e),Object.assign(r,function(e,n){let{transformTemplate:r}=e;return(0,t.useMemo)((()=>{const e={style:{},transform:{},transformOrigin:{},vars:{}};return wl(e,n,r),Object.assign({},e.vars,e.style)}),[n])}(e,n)),r}function El(e,t){const n={},r=xl(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Sl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function kl(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Sl.has(e)}let Il=e=>!kl(e);try{(Cl=require("@emotion/is-prop-valid").default)&&(Il=e=>e.startsWith("on")?!kl(e):Cl(e))}catch(bL){}var Cl;const Al=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Pl(e){return"string"===typeof e&&!e.includes("-")&&!!(Al.indexOf(e)>-1||/[A-Z]/u.test(e))}const Nl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Rl={offset:"strokeDashoffset",array:"strokeDasharray"};function Dl(e,t,n){return"string"===typeof e?e:ar.transform(t+n*e)}function Ol(e,t,n,r){let{attrX:i,attrY:s,attrScale:o,originX:a,originY:l,pathLength:c,pathSpacing:u=1,pathOffset:h=0,...d}=t;
2if(wl(e,d,r),n)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:p,dimensions:m}=e;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==a||void 0!==l||p.transform)&&(p.transformOrigin=function(e,t,n){return`${Dl(t,e.x,e.width)} ${Dl(n,e.y,e.height)}`}(m,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==i&&(f.x=i),void 0!==s&&(f.y=s),void 0!==o&&(f.scale=o),void 0!==c&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;const s=i?Nl:Rl;e[s.offset]=ar.transform(-r);const o=ar.transform(t),a=ar.transform(n);e[s.array]=`${o} ${a}`}(f,c,u,h,!1)}const Ll=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),jl=e=>"string"===typeof e&&"svg"===e.toLowerCase();function Ml(e,n,r,i){const s=(0,t.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return Ol(t,n,jl(i),e.transformTemplate),{...t.attrs,style:{...t.style}}}),[n]);if(e.style){const t={};Tl(t,e.style,e),s.style={...t,...s.style}}return s}function Fl(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(n,r,i,s,o)=>{let{latestValues:a}=s;const l=(Pl(n)?Ml:El)(r,a,o,n),c=function(e,t,n){const r={};for(const i in e)"values"===i&&"object"===typeof e.values||(Il(i)||!0===n&&kl(i)||!t&&!kl(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(r,"string"===typeof n,e),u=n!==t.Fragment?{...c,...l,ref:i}:{},{children:h}=r,d=(0,t.useMemo)((()=>Cn(h)?h.get():h),[h]);return(0,t.createElement)(n,{...u,children:d})}}function Vl(e){const n=(0,t.useRef)(null);return null===n.current&&(n.current=e()),n.current}const Ul=e=>(n,r)=>{const i=(0,t.useContext)(tl),s=(0,t.useContext)(Eo),o=()=>function(e,t,n,r){let{scrapeMotionValuesFromProps:i,createRenderState:s,onUpdate:o}=e;const a={latestValues:zl(t,n,r,i),renderState:s()};return o&&(a.onMount=e=>o({props:t,current:e,...a}),a.onUpdate=e=>o(e)),a}(e,n,i,s);return r?o():Vl(o)};function zl(e,t,n,r){const i={},s=r(e,{});for(const d in s)i[d]=Vo(s[d]);let{initial:o,animate:a}=e;const l=nl(e),c=rl(e);t&&c&&!l&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===o;const h=u?a:o;if(h&&"boolean"!==typeof h&&!St(h)){const t=Array.isArray(h)?h:[h];for(let n=0;n<t.length;n++){const r=It(e,t[n]);if(r){const{transitionEnd:e,transition:t,...n}=r;for(const r in n){let e=n[r];if(Array.isArray(e)){e=e[u?e.length-1:0]}null!==e&&(i[r]=e)}for(const r in e)i[r]=e[r]}}}return i}function Bl(e,t,n){var r;const{style:i}=e,s={};for(const o in i)(Cn(i[o])||t.style&&Cn(t.style[o])||gl(o,e)||void 0!==(null===(r=null===n||void 0===n?void 0:n.getValue(o))||void 0===r?void 0:r.liveStyle))&&(s[o]=i[o]);return s}const ql={useVisualState:Ul({scrapeMotionValuesFromProps:Bl,createRenderState:_l})};function $l(e,t){try{t.dimensions="function"===typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(vL){t.dimensions={x:0,y:0,width:0,height:0}}}function Hl(e,t,n,r){let{style:i,vars:s}=t;Object.assign(e.style,i,r&&r.getProjectionStyles(n));for(const o in s)e.style.setProperty(o,s[o])}const Wl=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Kl(e,t,n,r){Hl(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(Wl.has(i)?i:Pn(i),t.attrs[i])}function Gl(e,t,n){const r=Bl(e,t,n);for(const i in e)if(Cn(e[i])||Cn(t[i])){r[-1!==Tn.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]}return r}const Ql=["x","y","width","height","cx","cy","r"],Yl={useVisualState:Ul({scrapeMotionValuesFromProps:Gl,createRenderState:Ll,onUpdate:e=>{let{props:t,prevProps:n,current:r,renderState:i,latestValues:s}=e;if(!r)return;let o=!!t.drag;if(!o)for(const l in s)if(xn.has(l)){o=!0;break}if(!o)return;let a=!n;if(n)for(let l=0;l<Ql.length;l++){const e=Ql[l];t[e]!==n[e]&&(a=!0)}a&&Qt.read((()=>{$l(r,i),Qt.render((()=>{Ol(i,s,jl(r.tagName),t.transformTemplate),Kl(r,i)}
2))}))}})};function Xl(e,t){return function(n){let{forwardMotionProps:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return pl({...Pl(n)?Yl:ql,preloadedFeatures:e,useRender:Fl(r),createVisualElement:t,Component:n})}}const Jl={current:null},Zl={current:!1};const ec=[...ci,dr,_r],tc=new WeakMap;const nc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class rc{scrapeMotionValuesFromProps(e,t,n){return{}}constructor(e){let{parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:s,visualState:o}=e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Zr,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=rn.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Qt.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:u}=o;this.onUpdate=u,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=Boolean(s),this.isControllingVariants=nl(n),this.isVariantNode=rl(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);const{willChange:h,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const f in d){const e=d[f];void 0!==l[f]&&Cn(e)&&e.set(l[f],!1)}}mount(e){this.current=e,tc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Zl.current||function(){if(Zl.current=!0,ol)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Jl.current=e.matches;e.addListener(t),t()}else Jl.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Jl.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Yt(this.notifyUpdate),Yt(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const n=xn.has(e);n&&this.onBindTransform&&this.onBindTransform();const r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Qt.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),i=t.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{r(),i(),s&&s(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in ll){const t=ll[e];if(!t)continue;const{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let n=0;n<nc.length;n++){const t=nc[n];this.propEventSubscriptions[t]&&(this.propEventSubscriptions[t](),delete this.propEventSubscriptions[t]);const r=e["on"+t];r&&(this.propEventSubscriptions[t]=this.on(t,r))}this.prevMotionValues=function(e,t,n){for(const r in t){const i=t[r],s=n[r];if(Cn(i))e.addValue(r,i);else if(Cn(s))e.addValue(r,_n(i,{owner:e}));else if(s!==i)if(e.hasValue(r)){const t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{const t=e.getStaticValue(r);e.addValue(r,_n(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
2addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=_n(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return void 0!==r&&null!==r&&("string"===typeof r&&(ei(r)||Hn(r))?r=parseFloat(r):!(e=>ec.find(li(e)))(r)&&_r.test(t)&&(r=Rr(e,t)),this.setBaseTarget(e,Cn(r)?r.get():r)),Cn(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let r;if("string"===typeof n||"object"===typeof n){const i=It(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);i&&(r=i[e])}if(n&&void 0!==r)return r;const i=this.getBaseTargetFromProps(this.props,e);return void 0===i||Cn(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}on(e,t){return this.events[e]||(this.events[e]=new wt),this.events[e].add(t)}notify(e){if(this.events[e]){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.events[e].notify(...n)}}}class ic extends rc{constructor(){super(...arguments),this.KeyframeResolver=hi}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,t){let{vars:n,style:r}=t;delete n[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Cn(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class sc extends ic{constructor(){super(...arguments),this.type="html",this.renderInstance=Hl}readValueFromInstance(e,t){if(xn.has(t))return((e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Br(n,t)})(e,t);{const r=(n=e,window.getComputedStyle(n)),i=(ni(t)?r.getPropertyValue(t):r[t])||0;return"string"===typeof i?i.trim():i}var n}measureInstanceViewportBox(e,t){let{transformPagePoint:n}=t;return ro(e,n)}build(e,t,n){wl(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Bl(e,t,n)}}class oc extends ic{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=zs,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&$l(this.current,this.renderState)}}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(xn.has(t)){const e=Nr(t);return e&&e.default||0}return t=Wl.has(t)?t:Pn(t),e.getAttribute(t)}
2scrapeMotionValuesFromProps(e,t,n){return Gl(e,t,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&Qt.postRender(this.updateDimensions)}build(e,t,n){Ol(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Kl(e,t,0,r)}mount(e){this.isSVGTag=jl(e.tagName),super.mount(e)}}const ac=(e,n)=>Pl(e)?new oc(n):new sc(n,{allowProjection:e!==t.Fragment}),lc=Et(Xl({...Ps,...Xa,...Ba,...Ja},ac));var cc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},uc=t.createContext&&t.createContext(cc),hc=["attr","size","title"];function dc(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fc(){return fc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fc.apply(this,arguments)}function pc(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 mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pc(Object(n),!0).forEach((function(t){gc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gc(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yc(e){return e&&e.map(((e,n)=>t.createElement(e.tag,mc({key:n},e.attr),yc(e.child))))}function vc(e){return n=>t.createElement(bc,fc({attr:mc({},e.attr)},n),yc(e.child))}function bc(e){var n=n=>{var r,{attr:i,size:s,title:o}=e,a=dc(e,hc),l=s||n.size||"1em";return n.className&&(r=n.className),e.className&&(r=(r?r+" ":"")+e.className),t.createElement("svg",fc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,i,a,{className:r,style:mc(mc({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),o&&t.createElement("title",null,o),e.children)};return void 0!==uc?t.createElement(uc.Consumer,null,(e=>n(e))):n(cc)}function wc(e){return vc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function _c(e){return vc({tag:"svg",attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function Tc(e){return vc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"},child:[]}]})(e)}const xc=()=>(0,ot.jsx)("div",{children:(0,ot.jsx)("footer",{className:"footer",children:(0,ot.jsxs)("div",{className:"container",children:[(0,ot.jsxs)(lc.div,{className:"footer-content",initial:{opacity:0,y:30}
2,animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,ot.jsxs)("div",{className:"footer-section",children:[(0,ot.jsx)("h2",{children:"About Us"}),(0,ot.jsx)("p",{children:"Quality Lab is the fastest growing certified independent analytical laboratory, serving the best in the business among five star hotels, embassies, industrial firms and water treatment OEM's"})]}),(0,ot.jsxs)("div",{className:"footer-section",children:[(0,ot.jsx)("h3",{children:"Quick Links"}),(0,ot.jsxs)("ul",{children:[(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/",children:"Home"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/about-us",children:"About Us"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/laboratory-services",children:" Laboratory Services"})}),(0,ot.jsx)("li",{children:(0,ot.jsx)(Je,{to:"/test-kits",children:"Test Kits"})}),(0,ot.jsxs)("li",{children:[" ",(0,ot.jsx)(Je,{to:"/sustainability",children:"Sustainability"})]}),(0,ot.jsxs)("li",{children:["  ",(0,ot.jsx)(Je,{to:"/career",children:"Career"})]}),(0,ot.jsxs)("li",{children:["  ",(0,ot.jsx)(Je,{to:"/career",children:"Contact Us"})]})]})]}),(0,ot.jsxs)("div",{className:"footer-section",children:[(0,ot.jsx)("h3",{children:"Contact Us"}),(0,ot.jsx)("a",{href:"tel:919810098791",children:(0,ot.jsxs)("p",{children:[(0,ot.jsx)("div",{className:"svg",children:(0,ot.jsx)(Tc,{})}),"+91 9810098791"]})}),(0,ot.jsx)("a",{href:"mailto:[email protected]",children:(0,ot.jsxs)("p",{children:[(0,ot.jsx)("div",{className:"svg",children:(0,ot.jsx)(wc,{})}),"[email protected]"]})}),(0,ot.jsxs)("p",{children:[(0,ot.jsx)("div",{className:"svg",children:(0,ot.jsx)(_c,{})}),"Plot No-270, Udyog Vihar Industrial Area Phase 6, Sector 37, Gurugram, Haryana 122004"]})]}),(0,ot.jsxs)("div",{className:"footer-section map-container",children:[(0,ot.jsx)("h3",{children:"Find Us"}),(0,ot.jsx)("iframe",{title:"Quality Lab Location",src:"https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d56120.358265016184!2d76.99819229732682!3d28.463810500866334!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x390d17f21d156d61%3A0x70e97395fec8c56a!2sQuality%20Analyst%20%26%20Labs%20Pvt.%20Ltd!5e0!3m2!1sen!2sin!4v1742295212775!5m2!1sen!2sin",allowfullscreen:"",loading:"lazy"})]})]}),(0,ot.jsx)("div",{className:"footer-bottom",children:(0,ot.jsxs)("p",{children:[" \xa9 ",(new Date).getFullYear()," Quality Lab. All rights reserved. Designed By ",(0,ot.jsx)("a",{style:{color:"#fff"},href:"https://ahsassuredservices.com/web_design_and_development",children:" AHS"})]})})]})})}),Ec=n.p+"static/media/slider.0573f0e01128edc7f774.jpg",Sc=n.p+"static/media/7998.1b340827fee858066704.jpg",kc=n.p+"static/media/2149335686.de3007ffd4457c8b0bfe.jpg";class Ic extends t.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=t.offsetParent,n=e instanceof HTMLElement&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function Cc(e){let{children:n,isPresent:r,anchorX:i}=e;const s=(0,t.useId)(),o=(0,t.useRef)(null),a=(0,t.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:l}=(0,t.useContext)(el);return(0,t.useInsertionEffect)((()=>{const{width:e,height:t,top:n,left:c,right:u}=a.current;if(r||!o.current||!e||!t)return;const h="left"===i?`left: ${c}`:`right: ${u}`;o.current.dataset.motionPopId=s;const d=document.createElement("style");return l&&(d.nonce=l),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`\n          [data-motion-pop-id="${s}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${t}px !important;\n            ${h}px !important;\n            top: ${n}px !important;\n          }\n        `),()=>{document.head.removeChild(d)}}),[r]),(0,ot.jsx)(Ic,{isPresent:r,childRef:o,sizeRef:a,children:t.cloneElement(n,{ref:o})})}const Ac=e=>{let{children:n,initial:r,isPresent:i,onExitComplete:s,custom:o,presenceAffectsLayout:a,mode:l,anchorX:c}=e;const u=Vl(Pc),h=(0,t.useId)(),d=(0,t.useCallback)((e=>{u.set(e,!0);for(const t of u.values())if(!t)return;s&&s()}),[u,s]),f=(0,t.useMemo)((()=>({id:h,initial:r,isPresent:i,custom:o,onExitComplete:d,register:e=>(u.set(e,!1),()=>u.delete(e))})),a?[Math.random(),d]:[i,d]);return(0,t.useMemo)((()=>{u.forEach(((e,t)=>u.set(t,!1)))}),[i]),t.useEffect((()=>{!i&&!u.size&&s&&s()}),[i]),"popLayout"===l&&(n=(0,ot.jsx)(Cc,{isPresent:i,anchorX:c,children:n})),(0,ot.jsx)(Eo.Provider,{value:f,children:n})};function Pc(){return new Map}const Nc=e=>e.key||"";function Rc(e){const n=[];
2return t.Children.forEach(e,(e=>{(0,t.isValidElement)(e)&&n.push(e)})),n}const Dc=e=>{let{children:n,custom:r,initial:i=!0,onExitComplete:s,presenceAffectsLayout:o=!0,mode:a="sync",propagate:l=!1,anchorX:c="left"}=e;const[u,h]=So(l),d=(0,t.useMemo)((()=>Rc(n)),[n]),f=l&&!u?[]:d.map(Nc),p=(0,t.useRef)(!0),m=(0,t.useRef)(d),g=Vl((()=>new Map)),[y,v]=(0,t.useState)(d),[b,w]=(0,t.useState)(d);hl((()=>{p.current=!1,m.current=d;for(let e=0;e<b.length;e++){const t=Nc(b[e]);f.includes(t)?g.delete(t):!0!==g.get(t)&&g.set(t,!1)}}),[b,f.length,f.join("-")]);const _=[];if(d!==y){let e=[...d];for(let t=0;t<b.length;t++){const n=b[t],r=Nc(n);f.includes(r)||(e.splice(t,0,n),_.push(n))}return"wait"===a&&_.length&&(e=_),w(Rc(e)),v(d),null}const{forceRender:T}=(0,t.useContext)(ko);return(0,ot.jsx)(ot.Fragment,{children:b.map((e=>{const t=Nc(e),n=!(l&&!u)&&(d===b||f.includes(t));return(0,ot.jsx)(Ac,{isPresent:n,initial:!(p.current&&!i)&&void 0,custom:r,presenceAffectsLayout:o,mode:a,onExitComplete:n?void 0:()=>{if(!g.has(t))return;g.set(t,!0);let e=!0;g.forEach((t=>{t||(e=!1)})),e&&(null===T||void 0===T||T(),w(m.current),l&&(null===h||void 0===h||h()),s&&s())},anchorX:c,children:e},t)}))})},Oc=n.p+"static/media/Analysis of Water, Air, Effluent, Noise, Luminosity, Chemicals, Food, Oil.646a90bdd215a9659a31.jpg",Lc=n.p+"static/media/Pilot Plant Studies.cdd616c768f8e068f4d6.jpg",jc=n.p+"static/media/Treatability Studies.9fa600010293ae6db45c.jpg",Mc=n.p+"static/media/Lab Steps and Accreditations.aa5d2a362efb715087db.jpg",Fc=n.p+"static/media/Corrosion Coupon Studies.e6bcb637088a3429c671.jpg",Vc=n.p+"static/media/Environmental Studies.e335eb81d1304e1c89d3.jpg",Uc=n.p+"static/media/water.71cb563b5f6182008f8e.jpg",zc=n.p+"static/media/food.fd69ba1e58257f7a06ed.jpg",Bc=n.p+"static/media/Water Footprint Mapping.0375452fef0560518559.jpg",qc=n.p+"static/media/Environment Footprint Mapping.94c66364529c14ec6ff2.jpg",$c=n.p+"static/media/Water and Environmental Audits.c45c49039517bfb0694a.jpg",Hc=n.p+"static/media/Eco Labelling.4557a2b0109620fb084f.jpg",Wc=n.p+"static/media/CSR Reports Preparations.d6ec88f0929610e95e85.jpg",Kc=n.p+"static/media/Improvements in WTP`s, ETP`s and Recycling Systems.d735918e084e85bad55c.jpg",Gc=n.p+"static/media/Only One Earth.dc78af5c69126f3b5064.jpg";var Qc=n(381),Yc=n.n(Qc);const Xc="animate__animated",Jc="undefined"===typeof window;let Zc;Jc||(Zc=window);const eu=e=>{let{offset:n=150,duration:r=1,style:i,className:s,initiallyVisible:o=!1,animateIn:a,afterAnimatedIn:l,animateOut:c,delay:u=0,animatePreScroll:h=!0,afterAnimatedOut:d,scrollableParentSelector:f,animateOnce:p=!1,children:m}=e;const[g,y]=(0,t.useState)(Xc),[v,b]=(0,t.useState)({animationDuration:`${r}s`,opacity:o?1:0}),w=(0,t.useRef)(null),_=(0,t.useRef)(!1),T=(0,t.useRef)({onScreen:!1,inViewport:!1}),x=(0,t.useRef)(void 0),E=(0,t.useRef)(void 0),S=(0,t.useRef)(Zc),k=(0,t.useCallback)((e=>{let t=0;for(;e&&void 0!==e.offsetTop&&void 0!==e.clientTop;)t+=e.offsetTop+e.clientTop,e=e.offsetParent;return t}),[]),I=(0,t.useCallback)((()=>void 0!==S.current.pageYOffset?S.current.pageYOffset:S.current.scrollTop),[S]),C=(0,t.useCallback)((()=>void 0!==S.current.innerHeight?S.current.innerHeight:S.current.clientHeight),[S]),A=(0,t.useCallback)((()=>I()+n),[n,I]),P=(0,t.useCallback)((()=>I()+C()-n),[n,I,C]),N=(0,t.useCallback)((e=>e>=A()&&e<=P()),[A,P]),R=(0,t.useCallback)((e=>e<A()),[A]),D=(0,t.useCallback)((e=>e>P()),[P]),O=(0,t.useCallback)(((e,t)=>N(e)||N(t)||R(e)&&D(t)),[N,R,D]),L=(0,t.useCallback)((e=>e<I()),[I]),j=(0,t.useCallback)((e=>e>I()+C()),[I,C]),M=(0,t.useCallback)(((e,t)=>!L(t)&&!j(e)),[L,j]),F=(0,t.useCallback)((()=>{const e=k(w.current)-k(S.current),t=e+w.current.clientHeight;return{inViewport:O(e,t),onScreen:M(e,t)}}),[k,w,O,M,S]),V=(0,t.useCallback)(((e,t)=>e.inViewport!==t.inViewport||e.onScreen!==t.onScreen),[]),U=(0,t.useCallback)(((e,t)=>{x.current=setTimeout((()=>{_.current=!0,y(`${Xc} ${e}`),b({animationDuration:`${r}s`}),E.current=setTimeout(t,1e3*r)}),u)}),[_,u,r]),z=(0,t.useCallback)((e=>{U(a,(()=>{p||(b({animationDuration:`${r}s`,opacity:1}),_.current=!1);const t=F();e&&e(t)}
2))}),[_,a,p,r,U,F]),B=(0,t.useCallback)((e=>{U(c,(()=>{y(Xc),b({animationDuration:`${r}s`,opacity:0});const t=F();t.inViewport&&a?z(l):_.current=!1,e&&e(t)}))}),[_,U,a,r,l,z,c,F]),q=(0,t.useCallback)((()=>{if(!_.current){const{current:e}=T,t=F();V(e,t)&&(clearTimeout(x.current),t.onScreen?t.inViewport&&a?z(l):t.onScreen&&e.inViewport&&c&&"1"===w.current.style.opacity&&B(d):(y(Xc),b({animationDuration:`${r}s`,opacity:o?1:0})),T.current=t)}}),[l,d,a,z,c,r,o,V,B,F]),$=(0,t.useMemo)((()=>Yc()((()=>{q()}),50)),[q]);return(0,t.useEffect)((()=>{if(!Jc){const e=f;return S.current=e?document.querySelector(e):window,S.current&&S.current.addEventListener?S.current.addEventListener("scroll",$):console.warn(`Cannot find element by locator: ${f}`),h&&q(),()=>{clearTimeout(x.current),clearTimeout(E.current),window&&window.removeEventListener&&window.removeEventListener("scroll",$)}}}),[q,f,S,$,h]),t.createElement("div",{ref:w,className:s?`${s} ${g}`:g,style:Object.assign({},v,i)},m)},tu=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let 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},nu={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const t=e[i],s=i+1<e.length,o=s?e[i+1]:0,a=i+2<e.length,l=a?e[i+2]:0,c=t>>2,u=(3&t)<<4|o>>4;let h=(15&o)<<2|l>>6,d=63&l;a||(d=64,s||(h=64)),r.push(n[c],n[u],n[h],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(tu(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const s=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&s)}else if(i>239&&i<365){const s=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(s>>10)),t[r++]=String.fromCharCode(56320+(1023&s))}else{const s=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&o)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const t=n[e.charAt(i++)],s=i<e.length?n[e.charAt(i)]:0;++i;const o=i<e.length?n[e.charAt(i)]:64;++i;const a=i<e.length?n[e.charAt(i)]:64;if(++i,null==t||null==s||null==o||null==a)throw new ru;const l=t<<2|s>>4;if(r.push(l),64!==o){const e=s<<4&240|o>>2;if(r.push(e),64!==a){const e=o<<6&192|a;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class ru extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const iu=function(e){return function(e){const t=tu(e);return nu.encodeByteArray(t,!0)}(e).replace(/\./g,"")},su=function(e){try{return nu.decodeString(e,!0)}catch(vL){console.error("base64Decode failed: ",vL)}return null};function ou(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(const n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=ou(e[n],t[n]));return e}function au(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}const lu=()=>{try{return au().__FIREBASE_DEFAULTS__||(()=>{if("undefined"===typeof process)return;const e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;
2]+)/)}catch(vL){return}const t=e&&su(e[1]);return t&&JSON.parse(t)})()}catch(vL){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${vL}`)}},cu=()=>{var e;return null===(e=lu())||void 0===e?void 0:e.config};class uu{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function hu(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function du(){var e;const t=null===(e=lu())||void 0===e?void 0:e.forceEnvironment;if("node"===t)return!0;if("browser"===t)return!1;try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(vL){return!1}}function fu(){return"undefined"!==typeof WorkerGlobalScope&&"undefined"!==typeof self&&self instanceof WorkerGlobalScope}function pu(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function mu(){return"object"===typeof navigator&&"ReactNative"===navigator.product}function gu(){const e=hu();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}function yu(){return!du()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function vu(){try{return"object"===typeof indexedDB}catch(vL){return!1}}class bu extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,bu.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,wu.prototype.create)}}class wu{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e){const t=(arguments.length<=1?void 0:arguments[1])||{},n=`${this.service}/${e}`,r=this.errors[e],i=r?function(e,t){return e.replace(_u,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(r,t):"Error",s=`${this.serviceName}: ${i} (${n}).`;return new bu(n,s,t)}}const _u=/\{\$([^}]+)}/g;function Tu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xu(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],s=t[i];if(Eu(n)&&Eu(s)){if(!xu(n,s))return!1}else if(n!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function Eu(e){return null!==e&&"object"===typeof e}function Su(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach((e=>{t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}function ku(e){const t={};return e.replace(/^\?/,"").split("&").forEach((e=>{if(e){const[n,r]=e.split("=");
2t[decodeURIComponent(n)]=decodeURIComponent(r)}})),t}function Iu(e){const t=e.indexOf("?");if(!t)return"";const n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}function Cu(e,t){const n=new Au(e,t);return n.subscribe.bind(n)}class Au{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=Pu),void 0===r.error&&(r.error=Pu),void 0===r.complete&&(r.complete=Pu);const i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(vL){}})),this.observers.push(r),i}unsubscribeOne(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))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then((()=>
vendor: 4,915 bytes, line 2
2{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(vL){"undefined"!==typeof console&&console.error&&console.error(vL)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function Pu(){}function Nu(e){return e&&e._delegate?e._delegate:e}class Ru{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const Du="[DEFAULT]";class Ou{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new uu;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(vL){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(vL){if(r)return null;throw vL}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Du})}catch(vL){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(vL){}}}}clearInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du;return this.instances.has(e)}getOptions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du;return this.instancesOptions.get(e)||{}}initialize(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[i,s]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(i)&&s.resolve(r)}return r}onInit(e,t){var n;const 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);const s=this.instances.get(r);return s&&e(s,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(bL){}}getOrInitializeService(e){let{instanceIdentifier:t,options:n={}}=e,r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:(i=t,i===Du?void 0:i),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch(bL){}var i;return r||null}normalizeInstanceIdentifier(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Du;return this.component?this.component.multipleInstances?e:Du:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Lu{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);
2const t=new Ou(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const ju=[];var Mu;!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"}(Mu||(Mu={}));const Fu={debug:Mu.DEBUG,verbose:Mu.VERBOSE,info:Mu.INFO,warn:Mu.WARN,error:Mu.ERROR,silent:Mu.SILENT},Vu=Mu.INFO,Uu={[Mu.DEBUG]:"log",[Mu.VERBOSE]:"log",[Mu.INFO]:"info",[Mu.WARN]:"warn",[Mu.ERROR]:"error"},zu=function(e,t){if(t<e.logLevel)return;const n=(new Date).toISOString(),r=Uu[t];if(!r)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];console[r](`[${n}]  ${e.name}:`,...s)};class Bu{constructor(e){this.name=e,this._logLevel=Vu,this._logHandler=zu,this._userLogHandler=null,ju.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Mu))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"===typeof e?Fu[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,Mu.DEBUG,...t),this._logHandler(this,Mu.DEBUG,...t)}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,Mu.VERBOSE,...t),this._logHandler(this,Mu.VERBOSE,...t)}info(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,Mu.INFO,...t),this._logHandler(this,Mu.INFO,...t)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,Mu.WARN,...t),this._logHandler(this,Mu.WARN,...t)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler(this,Mu.ERROR,...t),this._logHandler(this,Mu.ERROR,...t)}}let qu,$u;const Hu=new WeakMap,Wu=new WeakMap,Ku=new WeakMap,Gu=new WeakMap,Qu=new WeakMap;let Yu={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Wu.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Ku.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Zu(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Xu(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?($u||($u=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.apply(eh(this),n),Zu(Hu.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];
2return Zu(e.apply(eh(this),n))}:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];const s=e.call(eh(this),t,...r);return Ku.set(s,t.sort?t.sort():[t]),Zu(s)}}function Ju(e){return"function"===typeof e?Xu(e):(e instanceof IDBTransaction&&function(e){if(Wu.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",s),e.removeEventListener("abort",s)},i=()=>{t(),r()},s=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",s),e.addEventListener("abort",s)}));Wu.set(e,t)}(e),t=e,(qu||(qu=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,Yu):e);var t}function Zu(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",s)},i=()=>{t(Zu(e.result)),r()},s=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",s)}));return t.then((t=>{t instanceof IDBCursor&&Hu.set(t,e)})).catch((()=>{})),Qu.set(t,e),t}(e);if(Gu.has(e))return Gu.get(e);const t=Ju(e);return t!==e&&(Gu.set(e,t),Qu.set(t,e)),t}const eh=e=>Qu.get(e);const th=["get","getKey","getAll","getAllKeys","count"],nh=["put","add","delete","clear"],rh=new Map;function ih(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(rh.get(t))return rh.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=nh.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!th.includes(n))return;const s=async function(e){const t=this.transaction(e,i?"readwrite":"readonly");let s=t.store;for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return r&&(s=s.index(a.shift())),(await Promise.all([s[n](...a),i&&t.done]))[0]};return rh.set(t,s),s}Yu=(e=>({...e,get:(t,n,r)=>ih(t,n)||e.get(t,n,r),has:(t,n)=>!!ih(t,n)||e.has(t,n)}))(Yu);class sh{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const oh="@firebase/app",ah="0.11.4",lh=new Bu("@firebase/app"),ch="@firebase/app-compat",uh="@firebase/analytics-compat",hh="@firebase/analytics",dh="@firebase/app-check-compat",fh="@firebase/app-check",ph="@firebase/auth",mh="@firebase/auth-compat",gh="@firebase/database",yh="@firebase/data-connect",vh="@firebase/database-compat",bh="@firebase/functions",wh="@firebase/functions-compat",_h="@firebase/installations",Th="@firebase/installations-compat",xh="@firebase/messaging",Eh="@firebase/messaging-compat",Sh="@firebase/performance",kh="@firebase/performance-compat",Ih="@firebase/remote-config",Ch="@firebase/remote-config-compat",Ah="@firebase/storage",Ph="@firebase/storage-compat",Nh="@f
2irebase/firestore",Rh="@firebase/vertexai",Dh="@firebase/firestore-compat",Oh="firebase",Lh="[DEFAULT]",jh={[oh]:"fire-core",[ch]:"fire-core-compat",[hh]:"fire-analytics",[uh]:"fire-analytics-compat",[fh]:"fire-app-check",[dh]:"fire-app-check-compat",[ph]:"fire-auth",[mh]:"fire-auth-compat",[gh]:"fire-rtdb",[yh]:"fire-data-connect",[vh]:"fire-rtdb-compat",[bh]:"fire-fn",[wh]:"fire-fn-compat",[_h]:"fire-iid",[Th]:"fire-iid-compat",[xh]:"fire-fcm",[Eh]:"fire-fcm-compat",[Sh]:"fire-perf",[kh]:"fire-perf-compat",[Ih]:"fire-rc",[Ch]:"fire-rc-compat",[Ah]:"fire-gcs",[Ph]:"fire-gcs-compat",[Nh]:"fire-fst",[Dh]:"fire-fst-compat",[Rh]:"fire-vertex","fire-js":"fire-js",[Oh]:"fire-js-all"},Mh=new Map,Fh=new Map,Vh=new Map;function Uh(e,t){try{e.container.addComponent(t)}catch(vL){lh.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,vL)}}function zh(e,t){e.container.addOrOverwriteComponent(t)}function Bh(e){const t=e.name;if(Vh.has(t))return lh.debug(`There were multiple attempts to register component ${t}.`),!1;Vh.set(t,e);for(const n of Mh.values())Uh(n,e);for(const n of Fh.values())Uh(n,e);return!0}function qh(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function $h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Lh;qh(e,t).clearInstance(n)}function Hh(e){return void 0!==e.options}function Wh(e){return null!==e&&void 0!==e&&void 0!==e.settings}function Kh(){Vh.clear()}const Gh=new wu("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
2d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Qh{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new Ru("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Gh.create("app-deleted",{appName:this._name})}}function Yh(e,t){const n=su(e.split(".")[1]);if(null===n)return void console.error(`FirebaseServerApp ${t} is invalid: second part could not be parsed.`);if(void 0===JSON.parse(n).exp)return void console.error(`FirebaseServerApp ${t} is invalid: expiration claim could not be parsed`);1e3*JSON.parse(n).exp-(new Date).getTime()<=0&&console.error(`FirebaseServerApp ${t} is invalid: the token has expired.`)}class Xh extends Qh{constructor(e,t,n,r){const i=void 0!==t.automaticDataCollectionEnabled&&t.automaticDataCollectionEnabled,s={name:n,automaticDataCollectionEnabled:i};if(void 0!==e.apiKey)super(e,s,r);else{super(e.options,s,r)}this._serverConfig=Object.assign({automaticDataCollectionEnabled:i},t),this._serverConfig.authIdToken&&Yh(this._serverConfig.authIdToken,"authIdToken"),this._serverConfig.appCheckToken&&Yh(this._serverConfig.appCheckToken,"appCheckToken"),this._finalizationRegistry=null,"undefined"!==typeof FinalizationRegistry&&(this._finalizationRegistry=new FinalizationRegistry((()=>{this.automaticCleanup()}))),this._refCount=0,this.incRefCount(this._serverConfig.releaseOnDeref),this._serverConfig.releaseOnDeref=void 0,t.releaseOnDeref=void 0,id(oh,ah,"serverapp")}toJSON(){}get refCount(){return this._refCount}incRefCount(e){this.isDeleted||(this._refCount++,void 0!==e&&null!==this._finalizationRegistry&&this._finalizationRegistry.register(e,this))}decRefCount(){return this.isDeleted?0:--this._refCount}automaticCleanup(){rd(this)}get settings(){return this.checkDestroyed(),this._serverConfig}checkDestroyed(){if(this.isDeleted)throw Gh.create("server-app-deleted")}}const Jh="11.6.0";function Zh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:Lh,automaticDataCollectionEnabled:!1},t),i=r.name;if("string"!==typeof i||!i)throw Gh.create("bad-app-name",{appName:String(i)});if(n||(n=cu()),!n)throw Gh.create("no-options");const s=Mh.get(i);if(s){if(xu(n,s.options)&&xu(r,s.config))return s;throw Gh.create("duplicate-app",{appName:i})}const o=new Lu(i);for(const l of Vh.values())o.addComponent(l);const a=new Qh(n,r,o);return Mh.set(i,a),a}function ed(e,t){if(("undefined"!==typeof window||fu())&&!fu())throw Gh.create("invalid-server-app-environment");let n;void 0===t.automaticDataCollectionEnabled&&(t.automaticDataCollectionEnabled=!1),n=Hh(e)?e.options:e;const r=Object.assign(Object.assign({},t),n);void 0!==r.releaseOnDeref&&delete r.releaseOnDeref;if(void 0!==t.releaseOnDeref&&"undefined"===typeof FinalizationRegistry)throw Gh.create("finalization-registry-not-supported",{});const i=""+(s=JSON.stringify(r),[...s].reduce(((e,t)=>Math.imul(31,e)+t.charCodeAt(0)|0),0));var s;const o=Fh.get(i);if(o)return o.incRefCount(t.releaseOnDeref),o;const a=new Lu(i);for(const c of Vh.values())a.addComponent(c);const l=new Xh(n,t,i,a);return Fh.set(i,l),l}function td(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lh;const t=Mh.get(e);if(!t&&e===Lh&&cu())return Zh();if(!t)throw Gh.create("no-app",{appName:e});return t}
2function nd(){return Array.from(Mh.values())}async function rd(e){let t=!1;const n=e.name;if(Mh.has(n))t=!0,Mh.delete(n);else if(Fh.has(n)){e.decRefCount()<=0&&(Fh.delete(n),t=!0)}t&&(await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function id(e,t,n){var r;let i=null!==(r=jh[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const s=i.match(/\s|\//),o=t.match(/\s|\//);if(s||o){const e=[`Unable to register library "${i}" with version "${t}":`];return s&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),s&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void lh.warn(e.join(" "))}Bh(new Ru(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}function sd(e,t){if(null!==e&&"function"!==typeof e)throw Gh.create("invalid-log-argument");!function(e,t){for(const n of ju){let r=null;t&&t.level&&(r=Fu[t.level]),n.userLogHandler=null===e?null:function(t,n){for(var i=arguments.length,s=new Array(i>2?i-2:0),o=2;o<i;o++)s[o-2]=arguments[o];const a=s.map((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((e=>e)).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:Mu[n].toLowerCase(),message:a,args:s,type:t.name})}}}(e,t)}function od(e){var t;t=e,ju.forEach((e=>{e.setLogLevel(t)}))}const ad="firebase-heartbeat-store";let ld=null;function cd(){return ld||(ld=function(e,t){let{blocked:n,upgrade:r,blocking:i,terminated:s}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=indexedDB.open(e,t),a=Zu(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(Zu(o.result),e.oldVersion,e.newVersion,Zu(o.transaction),e)})),n&&o.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),a.then((e=>{s&&e.addEventListener("close",(()=>s())),i&&e.addEventListener("versionchange",(e=>i(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),a}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(ad)}catch(vL){console.warn(vL)}}}).catch((e=>{throw Gh.create("idb-open",{originalErrorMessage:e.message})}))),ld}async function ud(e,t){try{const n=(await cd()).transaction(ad,"readwrite"),r=n.objectStore(ad);await r.put(t,hd(e)),await n.done}catch(vL){if(vL instanceof bu)lh.warn(vL.message);else{const t=Gh.create("idb-set",{originalErrorMessage:null===vL||void 0===vL?void 0:vL.message});lh.warn(t.message)}}}function hd(e){return`${e.name}!${e.options.appId}`}class dd{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new pd(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){var e,t;try{const n=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),r=fd();if(null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)&&(this._heartbeatsCache=await this._heartbeatsCachePromise,null==(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)))return;if(this._heartbeatsCache.lastSentHeartbeatDate===r||this._heartbeatsCache.heartbeats.some((e=>e.date===r)))return;if(this._heartbeatsCache.heartbeats.push({date:r,agent:n}),this._heartbeatsCache.heartbeats.length>30){const e=function(e){if(0===e.length)return-1;let t=0,n=e[0].date;for(let r=1;r<e.length;r++)e[r].date<n&&(n=e[r].date,t=r);return t}(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(e,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(vL){lh.warn(vL)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null==(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)||0===this._heartbeatsCache.heartbeats.length)return"";const t=fd(),{heartbeatsToSend:n,unsentEntries:r}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024;const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),md(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),md(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),i=iu(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,r.length>0?(this._heartbeatsCache.heartbeats=r,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),i}catch(vL){return lh.warn(vL),""}}}function fd(){return(new Date).toISOString().substring(0,10)}class pd{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!vu()&&new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}})).then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){const e=await async function(e){try{const t=(await cd()).transaction(ad),n=await t.objectStore(ad).get(hd(e));return await t.done,n}catch(vL){if(vL instanceof bu)lh.warn(vL.message);else{const t=Gh.create("idb-get",{originalErrorMessage:null===vL||void 0===vL?void 0:vL.message});lh.warn(t.message)}}}(this.app);return(null===e||void 0===e?void 0:e.heartbeats)?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ud(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return ud(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function md(e){return iu(JSON.stringify({version:2,heartbeats:e})).length}var gd;gd="",Bh(new Ru("platform-logger",(e=>new sh(e)),"PRIVATE")),Bh(new Ru("heartbeat",(e=>new dd(e)),"PRIVATE")),id(oh,ah,gd),id(oh,ah,"esm2017"),id("fire-js","");class yd{constructor(e,t){this._delegate=e,this.firebase=t,Uh(e,new Ru("app-compat",(()=>this),"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise((e=>{this._delegate.checkDestroyed(),e()})).then((()=>(this.firebase.INTERNAL.removeApp(this.name),rd(this._delegate))))}_getService(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lh;var n;this._delegate.checkDestroyed();const r=this._delegate.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})}_removeServiceInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Lh;
2this._delegate.container.getProvider(e).clearInstance(t)}_addComponent(e){Uh(this._delegate,e)}_addOrOverwriteComponent(e){zh(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const vd=new wu("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."});const bd=function t(){const n=function(t){const n={},r={__esModule:!0,initializeApp:function(e){const i=Zh(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(Tu(n,i.name))return n[i.name];const s=new t(i,r);return n[i.name]=s,s},app:i,registerVersion:id,setLogLevel:od,onLog:sd,apps:null,SDK_VERSION:Jh,INTERNAL:{registerComponent:function(e){const n=e.name,s=n.replace("-compat","");if(Bh(e)&&"PUBLIC"===e.type){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i();if("function"!==typeof e[s])throw vd.create("invalid-app-argument",{appName:n});return e[s]()};void 0!==e.serviceProps&&ou(o,e.serviceProps),r[s]=o,t.prototype[s]=function(){const t=this._getService.bind(this,n);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return t.apply(this,e.multipleInstances?i:[])}}return"PUBLIC"===e.type?r[s]:null},removeApp:function(e){delete n[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:e}};function i(e){if(!Tu(n,e=e||Lh))throw vd.create("no-app",{appName:e});return n[e]}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(n).map((e=>n[e]))}}),i.App=t,r}(yd);return n.INTERNAL=Object.assign(Object.assign({},n.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(e){ou(n,e)},createSubscribe:Cu,ErrorFactory:wu,deepExtend:ou}),n}(),wd=new Bu("@firebase/app-compat");try{const e=au();if(void 0!==e.firebase){wd.warn("\n      Warning: Firebase is already defined in the global scope. Please make sure\n      Firebase library is only loaded once.\n    ");const t=e.firebase.SDK_VERSION;t&&t.indexOf("LITE")>=0&&wd.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        ")}}catch(bL){}const _d=bd;!function(e){id("@firebase/app-compat","0.2.53",e)}();_d.registerVersion("firebase","11.6.0","app-compat");function Td(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}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError;const xd="facebook.com",Ed="github.com",Sd="google.com",kd="password",Id="twitter.com",Cd="EMAIL_SIGNIN",Ad="PASSWORD_RESET",Pd="RECOVER_EMAIL",Nd="REVERT_SECOND_FACTOR_ADDITION",Rd="VERIFY_AND_CHANGE_EMAIL",Dd="VERIFY_EMAIL";function Od(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Ld=function
vendor: 12,062 bytes, line 2
2(){return{"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.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","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 always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"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 AuthError 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 registered 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 AuthError 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 to 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-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","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 incorrect, 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.","invalid-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.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","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 AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","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-password":"A non-empty password must be 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-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.","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.","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 AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError 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.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend.","unsupported-password-policy-schema-version":"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.","password-does-not-meet-requirements":"The password does not meet the requirements.","invalid-hosting-link-domain":"The provided Hosting link domain is not configured in Firebase Hosting or is not owned by the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`)."}},
2jd=Od,Md=new wu("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Fd=new Bu("@firebase/auth");function Vd(e){if(Fd.logLevel<=Mu.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Fd.error(`Auth (${Jh}): ${e}`,...n)}}function Ud(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Hd(e,...n)}function zd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Hd(e,...n)}function Bd(e,t,n){const r=Object.assign(Object.assign({},jd()),{[t]:n});return new wu("auth","Firebase",r).create(t,{appName:e.name})}function qd(e){return Bd(e,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function $d(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&Ud(e,"argument-error"),Bd(e,"argument-error",`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function Hd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if("string"!==typeof e){const t=n[0],r=[...n.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(t,...r)}return Md.create(e,...n)}function Wd(e,t){if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];throw Hd(t,...r)}}function Kd(e){const t="INTERNAL ASSERTION FAILED: "+e;throw Vd(t),new Error(t)}function Gd(e,t){e||Kd(t)}function Qd(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function Yd(){return"http:"===Xd()||"https:"===Xd()}function Xd(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}class Jd{constructor(e,t){this.shortDelay=e,this.longDelay=t,Gd(t>e,"Short delay should be less than long delay!"),this.isMobile="undefined"!==typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(hu())||mu()}get(){return"undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(Yd()||pu()||"connection"in navigator)&&!navigator.onLine?Math.min(5e3,this.shortDelay):this.isMobile?this.longDelay:this.shortDelay}}function Zd(e,t){Gd(e.emulator,"Emulator should always be set here");const{url:n}=e.emulator;return t?`${n}${t.startsWith("/")?t.slice(1):t}`:n}class ef{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:"undefined"!==typeof globalThis&&globalThis.fetch?globalThis.fetch:"undefined"!==typeof fetch?fetch:void Kd("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:"undefined"!==typeof globalThis&&globalThis.Headers?globalThis.Headers:"undefined"!==typeof Headers?Headers:void Kd("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:"undefined"!==typeof globalThis&&globalThis.Response?globalThis.Response:"undefined"!==typeof Response?Response:void Kd("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const tf={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",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_REQ_TYPE:"internal-error",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",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",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",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_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},nf=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],rf=new Jd(3e4,6e4);function sf(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function of(e,t,n,r){return af(e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},(async()=>{let i={},s={};r&&("GET"===t?s=r:i={body:JSON.stringify(r)});const o=Su(Object.assign({key:e.config.apiKey},s)).slice(1),a=await e._getAdditionalHeaders();a["Content-Type"]="application/json",e.languageCode&&(a["X-Firebase-Locale"]=e.languageCode);const l=Object.assign({method:t,headers:a},i);return"undefined"!==typeof navigator&&"Cloudflare-Workers"===navigator.userAgent||(l.referrerPolicy="no-referrer"),ef.fetch()(await cf(e,e.config.apiHost,n,o),l)}))}async function af(e,t,n){e._canInitEmulator=!1;const r=Object.assign(Object.assign({},tf),t);try{const t=new hf(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();const s=await i.json();if("needConfirmation"in s)throw df(e,"account-exists-with-different-credential",s);if(i.ok&&!("errorMessage"in s))return s;{const t=i.ok?s.errorMessage:s.error.message,[n,o]=t.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===n)throw df(e,"credential-already-in-use",s);if("EMAIL_EXISTS"===n)throw df(e,"email-already-in-use",s);if("USER_DISABLED"===n)throw df(e,"user-disabled",s);const a=r[n]||n.toLowerCase().replace(/[_\s]+/g,"-");if(o)throw Bd(e,a,o);
2Ud(e,a)}}catch(vL){if(vL instanceof bu)throw vL;Ud(e,"network-request-failed",{message:String(vL)})}}async function lf(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const s=await of(e,t,n,r,i);return"mfaPendingCredential"in s&&Ud(e,"multi-factor-auth-required",{_serverResponse:s}),s}async function cf(e,t,n,r){const i=`${t}${n}?${r}`,s=e,o=s.config.emulator?Zd(e.config,i):`${e.config.apiScheme}://${i}`;if(nf.includes(n)&&(await s._persistenceManagerAvailable,"COOKIE"===s._getPersistenceType())){return s._getPersistence()._getFinalTarget(o).toString()}return o}function uf(e){switch(e){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class hf{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise(((e,t)=>{this.timer=setTimeout((()=>t(zd(this.auth,"network-request-failed"))),rf.get())}))}}function df(e,t,n){const r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=zd(e,t,r);return i.customData._tokenResponse=n,i}function ff(e){return void 0!==e&&void 0!==e.getResponse}function pf(e){return void 0!==e&&void 0!==e.enterprise}class mf{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===e.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return uf(t.enforcementState);return null}isProviderEnabled(e){return"ENFORCE"===this.getProviderEnforcementState(e)||"AUDIT"===this.getProviderEnforcementState(e)}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function gf(e,t){return of(e,"GET","/v2/recaptchaConfig",sf(e,t))}async function yf(e,t){return of(e,"POST","/v1/accounts:lookup",t)}function vf(e){if(e)try{const t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(vL){}}function bf(e){return 1e3*Number(e)}function wf(e){const[t,n,r]=e.split(".");if(void 0===t||void 0===n||void 0===r)return Vd("JWT malformed, contained fewer than 3 sections"),null;try{const e=su(n);return e?JSON.parse(e):(Vd("Failed to decode base64 JWT payload"),null)}catch(vL){return Vd("Caught error parsing JWT payload as JSON",null===vL||void 0===vL?void 0:vL.toString()),null}}function _f(e){const t=wf(e);return Wd(t,"internal-error"),Wd("undefined"!==typeof t.exp,"internal-error"),Wd("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}async function Tf(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return t;try{return await t}catch(vL){throw vL instanceof bu&&function(e){let{code:t}=e;return"auth/user-disabled"===t||"auth/user-token-expired"===t}(vL)&&e.auth.currentUser===e&&await e.auth.signOut(),vL}}class xf{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){const e=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),e}{this.errorBackoff=3e4;const e=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,e)}}schedule(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.isRunning)return;const t=this.getInterval(e);this.timerId=setTimeout((async()=>{await this.iteration()}),t)}async iteration(){try{await this.user.getIdToken(!0)}catch(vL){return void("auth/network-request-failed"===(null===vL||void 0===vL?void 0:vL.code)&&this.schedule(!0))}this.schedule()}}class Ef{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=vf(this.lastLoginAt),this.creationTime=vf(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}async function Sf(e){var t;const n=e.auth,r=await e.getIdToken(),i=await Tf(e,yf(n,{idToken:r}));Wd(null===i||void 0===i?void 0:i.users.length,n,"internal-error");const s=i.users[0];e._notifyReloadListener(s);const o=(null===(t=s.providerUserInfo)||void 0===t?void 0:t.length)?kf(s.providerUserInfo):[],a=(l=e.providerData,c=o,[...l.filter((e=>!c.some((t=>t.providerId===e.providerId)))),...c]);var l,c;const u=e.isAnonymous,h=!(e.email&&s.passwordHash)&&!(null===a||void 0===a?void 0:a.length),d=!!u&&h,f={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:a,metadata:new Ef(s.createdAt,s.lastLoginAt),isAnonymous:d};Object.assign(e,f)}function kf(e){return e.map((e=>{var{providerId:t}=e,n=Td(e,["providerId"]);
2return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}class If{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Wd(e.idToken,"internal-error"),Wd("undefined"!==typeof e.idToken,"internal-error"),Wd("undefined"!==typeof e.refreshToken,"internal-error");const t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):_f(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Wd(0!==e.length,"internal-error");const t=_f(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]||!this.accessToken||this.isExpired?(Wd(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null):this.accessToken}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){const{accessToken:n,refreshToken:r,expiresIn:i}=await async function(e,t){const n=await af(e,{},(async()=>{const n=Su({grant_type:"refresh_token",refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,s=await cf(e,r,"/v1/token",`key=${i}`),o=await e._getAdditionalHeaders();return o["Content-Type"]="application/x-www-form-urlencoded",ef.fetch()(s,{method:"POST",headers:o,body:n})}));return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}static fromJSON(e,t){const{refreshToken:n,accessToken:r,expirationTime:i}=t,s=new If;return n&&(Wd("string"===typeof n,"internal-error",{appName:e}),s.refreshToken=n),r&&(Wd("string"===typeof r,"internal-error",{appName:e}),s.accessToken=r),i&&(Wd("number"===typeof i,"internal-error",{appName:e}),s.expirationTime=i),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new If,this.toJSON())}_performRefresh(){return Kd("not implemented")}}function Cf(e,t){Wd("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}class Af{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=Td(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new xf(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Ef(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const t=await Tf(this,this.stsTokenManager.getToken(this.auth,e));return Wd(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return async function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=Nu(e),r=await n.getIdToken(t),i=wf(r);Wd(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const s="object"===typeof i.firebase?i.firebase:void 0,o=null===s||void 0===s?void 0:s.sign_in_provider;return{claims:i,token:r,authTime:vf(bf(i.auth_time)),issuedAtTime:vf(bf(i.iat)),expirationTime:vf(bf(i.exp)),signInProvider:o||null,signInSecondFactor:(null===s||void 0===s?void 0:s.sign_in_second_factor)||null}}(this,e)}reload(){return async function(e){const t=Nu(e);await Sf(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}(this)}_assign(e){this!==e&&(Wd(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
vendor: 14,727 bytes, line 2
2otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map((e=>Object.assign({},e))),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const t=new Af(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){Wd(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Sf(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Wh(this.auth.app))return Promise.reject(qd(this.auth));const e=await this.getIdToken();return await Tf(this,async function(e,t){return of(e,"POST","/v1/accounts:delete",t)}(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map((e=>Object.assign({},e))),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,r,i,s,o,a,l,c;const u=null!==(n=t.displayName)&&void 0!==n?n:void 0,h=null!==(r=t.email)&&void 0!==r?r:void 0,d=null!==(i=t.phoneNumber)&&void 0!==i?i:void 0,f=null!==(s=t.photoURL)&&void 0!==s?s:void 0,p=null!==(o=t.tenantId)&&void 0!==o?o:void 0,m=null!==(a=t._redirectEventId)&&void 0!==a?a:void 0,g=null!==(l=t.createdAt)&&void 0!==l?l:void 0,y=null!==(c=t.lastLoginAt)&&void 0!==c?c:void 0,{uid:v,emailVerified:b,isAnonymous:w,providerData:_,stsTokenManager:T}=t;Wd(v&&T,e,"internal-error");const x=If.fromJSON(this.name,T);Wd("string"===typeof v,e,"internal-error"),Cf(u,e.name),Cf(h,e.name),Wd("boolean"===typeof b,e,"internal-error"),Wd("boolean"===typeof w,e,"internal-error"),Cf(d,e.name),Cf(f,e.name),Cf(p,e.name),Cf(m,e.name),Cf(g,e.name),Cf(y,e.name);const E=new Af({uid:v,auth:e,email:h,emailVerified:b,displayName:u,isAnonymous:w,photoURL:f,phoneNumber:d,tenantId:p,stsTokenManager:x,createdAt:g,lastLoginAt:y});return _&&Array.isArray(_)&&(E.providerData=_.map((e=>Object.assign({},e)))),m&&(E._redirectEventId=m),E}static async _fromIdTokenResponse(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=new If;r.updateFromServerResponse(t);const i=new Af({uid:t.localId,auth:e,stsTokenManager:r,isAnonymous:n});return await Sf(i),i}static async _fromGetAccountInfoResponse(e,t,n){const r=t.users[0];Wd(void 0!==r.localId,"internal-error");const i=void 0!==r.providerUserInfo?kf(r.providerUserInfo):[],s=!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length),o=new If;o.updateFromIdToken(n);const a=new Af({uid:r.localId,auth:e,stsTokenManager:o,isAnonymous:s}),l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:i,metadata:new Ef(r.createdAt,r.lastLoginAt),isAnonymous:!(r.email&&r.passwordHash)&&!(null===i||void 0===i?void 0:i.length)};return Object.assign(a,l),a}}const Pf=new Map;function Nf(e){Gd(e instanceof Function,"Expected a class definition");let t=Pf.get(e);return t?(Gd(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,Pf.set(e,t),t)}class Rf{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){const t=this.storage[e];return void 0===t?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}}Rf.type="NONE";const Df=Rf;function Of(e,t,n){return`firebase:${e}:${t}:${n}`}class Lf{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;const{config:r,name:i}=this.auth;this.fullUserKey=Of(this.userKey,r.apiKey,i),this.fullPersistenceKey=Of("persistence",r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if("string"===typeof e){const t=await yf(this.auth,{idToken:e}).catch((()=>{}));return t?Af._fromGetAccountInfoResponse(this.auth,t,e):null}return Af._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const t=await this.getCurrentUser();return await this.removeCurrentUser(),this.persistence=e,t?this.setCurrentUser(t):void 0}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"authUser";if(!t.length)return new Lf(Nf(Df),e,n);const r=(await Promise.all(t.map((async e=>{if(await e._isAvailable())return e})))).filter((e=>e));let i=r[0]||Nf(Df);const s=Of(n,e.config.apiKey,e.name);let o=null;for(const l of t)try{const t=await l._get(s);if(t){let n;if("string"===typeof t){const r=await yf(e,{idToken:t}).catch((()=>{}));if(!r)break;n=await Af._fromGetAccountInfoResponse(e,r,t)}else n=Af._fromJSON(e,t);l!==i&&(o=n),i=l;break}}catch(bL){}const a=r.filter((e=>e._shouldAllowMigration));return i._shouldAllowMigration&&a.length?(i=a[0],o&&await i._set(s,o.toJSON()),await Promise.all(t.map((async e=>{if(e!==i)try{await e._remove(s)}catch(bL){}}))),new Lf(i,e,n)):new Lf(i,e,n)}}function jf(e){const t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Uf(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(Mf(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Bf(t))return"Blackberry";if(qf(t))return"Webos";if(Ff(t))return"Safari";if((t.includes("chrome/")||Vf(t))&&!t.includes("edge/"))return"Chrome";if(zf(t))return"Android";{const t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=e.match(t);if(2===(null===n||void 0===n?void 0:n.length))return n[1]}return"Other"}function Mf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/firefox\//i.test(e)}function Ff(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu()).toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function Vf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/crios\//i.test(e)}function Uf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/iemobile/i.test(e)}function zf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/android/i.test(e)}function Bf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/blackberry/i.test(e)}function qf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/webos/i.test(e)}function $f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Hf(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return $f(e)||zf(e)||qf(e)||Bf(e)||/windows phone/i.test(e)||Uf(e)}function Wf(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=jf(hu());break;case"Worker":t=`${jf(hu())}-${e}`;break;default:t=e}const r=n.length?n.join(","):"FirebaseCore-web";return`${t}/JsCore/${Jh}/${r}`}class Kf{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){const n=t=>new Promise(((n,r)=>{try{n(e(t))}catch(vL){r(vL)}}));n.onAbort=t,this.queue.push(n);const r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const t=[];try{for(const n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(vL){t.reverse();for(const r of t)try{r()}catch(n){}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===vL||void 0===vL?void 0:vL.message})}}}class Gf{constructor(e){var t,n,r,i;const s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(t=s.minPasswordLength)&&void 0!==t?t:6,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),void 0!==s.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),void 0!==s.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),void 0!==s.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),void 0!==s.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(r=null===(n=e.allowedNonAlphanumericCharacters)||void 0===n?void 0:n.join(""))&&void 0!==r?r:"",this.forceUpgradeOnSignin=null!==(i=e.forceUpgradeOnSignin)&&void 0!==i&&i,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,r,i,s,o;const a={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,a),this.validatePasswordCharacterOptions(e,a),a.isValid&&(a.isValid=null===(t=a.meetsMinPasswordLength)||void 0===t||t),a.isValid&&(a.isValid=null===(n=a.meetsMaxPasswordLength)||void 0===n||n),a.isValid&&(a.isValid=null===(r=a.containsLowercaseLetter)||void 0===r||r),a.isValid&&(a.isValid=null===(i=a.containsUppercaseLetter)||void 0===i||i),a.isValid&&(a.isValid=null===(s=a.containsNumericCharacter)||void 0===s||s),a.isValid&&(a.isValid=null===(o=a.containsNonAlphanumericCharacter)||void 0===o||o),a}validatePasswordLengthOptions(e,t){const n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){let n;this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=r)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=i))}}class Qf{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Xf(this),this.idTokenSubscription=new Xf(this),this.beforeStateQueue=new Kf(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Md,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion,this._persistenceManagerAvailable=new Promise((e=>this._resolvePersistenceManagerAvailable=e))}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Nf(t)),this._initializationPromise=this.queue((async()=>{var n,r,i;if(!this._deleted&&(this.persistenceManager=await Lf.create(this,e),null===(n=this._resolvePersistenceManagerAvailable)||void 0===n||n.call(this),!this._deleted)){if(null===(r=this._popupRedirectResolver)||void 0===r?void 0:r._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch(vL){}await this.initializeCurrentUser(t),this.lastNotifiedUid=(null===(i=this.currentUser)||void 0===i?void 0:i.uid)||null,this._deleted||(this._isInitialized=!0)}})),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();return this.currentUser||e?this.currentUser&&e&&this.currentUser.uid===e.uid?(this._currentUser._assign(e),void await this.currentUser.getIdToken()):void await this._updateCurrentUser(e,!0):void 0}async initializeCurrentUserFromIdToken(e){try{const t=await yf(this,{idToken:e}),n=await Af._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var t;if(Wh(this.app)){const e=this.app.settings.authIdToken;return e?new Promise((t=>{setTimeout((()=>this.initializeCurrentUserFromIdToken(e).then(t,t)))})):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const n=null===(t=this.redirectUser)||void 0===t?void 0:t._redirectEventId,s=null===r||void 0===r?void 0:r._redirectEventId,o=await this.tryRedirectSignIn(e);n&&n!==s||!(null===o||void 0===o?void 0:o.user)||(r=o.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);
2if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(vL){r=n,this._popupRedirectResolver._overrideRedirectResult(this,(()=>Promise.reject(vL)))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Wd(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch(vL){await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Sf(e)}catch(vL){if("auth/network-request-failed"!==(null===vL||void 0===vL?void 0:vL.code))return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=function(){if("undefined"===typeof navigator)return null;const e=navigator;return e.languages&&e.languages[0]||e.language||null}()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Wh(this.app))return Promise.reject(qd(this));const t=e?Nu(e):null;return t&&Wd(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this._deleted)return e&&Wd(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||await this.beforeStateQueue.runMiddleware(e),this.queue((async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()}))}async signOut(){return Wh(this.app)?Promise.reject(qd(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Wh(this.app)?Promise.reject(qd(this)):this.queue((async()=>{await this.assertedPersistence.setPersistence(Nf(e))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await async function(e){return of(e,"GET","/v2/passwordPolicy",sf(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}(this),t=new Gf(e);null===this.tenantId?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new wu("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise(((e,t)=>{if(this.currentUser)e();else{const n=this.onAuthStateChanged((()=>{n(),e()}),t)}}))}async revokeAccessToken(e){if(this.currentUser){const t={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:await this.currentUser.getIdToken()};null!=this.tenantId&&(t.tenantId=this.tenantId),await async function(e,t){return of(e,"POST","/v2/accounts:revokeToken",sf(e,t))}(this,t)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(e=this._currentUser)||void 0===e?void 0:e.toJSON()}}async _setRedirectUser(e,t){const n=await this.getOrInitRedirectPersistenceManager(t);return null===e?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const t=e&&Nf(e)||this._popupRedirectResolver;Wd(t,this,"argument-error"),this.redirectPersistenceManager=await Lf.create(this,[Nf(t._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var t,n;return this._isInitialized&&await this.queue((async()=>{})),(null===(t=this._currentUser)||void 0===t?void 0:t._redirectEventId)===e?this._currentUser:(null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue((async()=>this.directlySetCurrentUser(e)))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const n=null!==(t=null===(e=this.currentUser)||void 0===e?void 0:e.uid)&&void 0!==t?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};const i="function"===typeof t?t:t.next.bind(t);let s=!1;const o=this._isInitialized?Promise.resolve():this._initializationPromise;if(Wd(o,this,"internal-error"),o.then((()=>{s||i(this.currentUser)})),"function"===typeof t){const i=e.addObserver(t,n,r);return()=>{s=!0,i()}}{const n=e.addObserver(t);return()=>{s=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Wd(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Wf(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);const n=await(null===(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getHeartbeatsHeader());n&&(t["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(t["X-Firebase-AppCheck"]=r),t}async _getAppCheckToken(){var e;if(Wh(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const t=await(null===(e=this.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===e?void 0:e.getToken());return(null===t||void 0===t?void 0:t.error)&&function(e){if(Fd.logLevel<=Mu.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];Fd.warn(`Auth (${Jh}): ${e}`,...n)}}(`Error while retrieving App Check token: ${t.error}`),null===t||void 0===t?void 0:t.token}}function Yf(e){return Nu(e)}class Xf{constructor(e){this.auth=e,this.observer=null,this.addObserver=Cu((e=>this.observer=e))}get next(){return Wd(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let Jf={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Zf(e){return Jf.loadJS(e)}function ep(e){return`__${e}${Math.floor(1e6*Math.random())}`}const tp=1e12;class np{constructor(e){this.auth=e,this.counter=tp,this._widgets=new Map}render(e,t){const n=this.counter;return this._widgets.set(n,new sp(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;const n=e||tp;null===(t=this._widgets.get(n))||void 0===t||t.delete(),this._widgets.delete(n)}getResponse(e){var t;const n=e||tp;return(null===(t=this._widgets.get(n))||void 0===t?void 0:t.getResponse())||""}async execute(e){var t;const n=e||tp;return null===(t=this._widgets.get(n))||void 0===t||t.execute(),""}}class rp{constructor(){this.enterprise=new ip}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class ip{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}}class sp{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const r="string"===typeof e?document.getElementById(e):e;Wd(r,"argument-error",{appName:t}),this.container=r,this.isVisible="invisible"!==this.params.size,this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),this.timerId||(this.timerId=window.setTimeout((()=>{this.responseToken=function(e){const t=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<e;r++)t.push(n.charAt(Math.floor(Math.random()*n.length)));return t.join("")}(50);const{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch(vL){}this.timerId=window.setTimeout((()=>
2{if(this.timerId=null,this.responseToken=null,t)try{t()}catch(vL){}this.isVisible&&this.execute()}),6e4)}),500))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}const op="NO_RECAPTCHA";class ap{constructor(e){this.type="recaptcha-enterprise",this.auth=Yf(e)}async verify(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"verify",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(t,n,r){const i=window.grecaptcha;pf(i)?i.enterprise.ready((()=>{i.enterprise.execute(t,{action:e}).then((e=>{n(e)})).catch((()=>{n(op)}))})):r(Error("No reCAPTCHA enterprise script loaded."))}if(this.auth.settings.appVerificationDisabledForTesting){return(new rp).execute("siteKey",{action:"verify"})}return new Promise(((e,r)=>{(async function(e){if(!t){if(null==e.tenantId&&null!=e._agentRecaptchaConfig)return e._agentRecaptchaConfig.siteKey;if(null!=e.tenantId&&void 0!==e._tenantRecaptchaConfigs[e.tenantId])return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise((async(t,n)=>{gf(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then((r=>{if(void 0!==r.recaptchaKey){const n=new mf(r);return null==e.tenantId?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}n(new Error("recaptcha Enterprise site key undefined"))})).catch((e=>{n(e)}))}))})(this.auth).then((i=>{if(!t&&pf(window.grecaptcha))n(i,e,r);else{if("undefined"===typeof window)return void r(new Error("RecaptchaVerifier is only supported in browser"));let t=Jf.recaptchaEnterpriseScript;0!==t.length&&(t+=i),Zf(t).then((()=>{n(i,e,r)})).catch((e=>{r(e)}))}})).catch((e=>{r(e)}))}))}}async function lp(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const s=new ap(e);let o;if(i)o=op;else try{o=await s.verify(n)}catch(l){o=await s.verify(n,!0)}const a=Object.assign({},t);if("mfaSmsEnrollment"===n||"mfaSmsSignIn"===n){if("phoneEnrollmentInfo"in a){const e=a.phoneEnrollmentInfo.phoneNumber,t=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:t,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const e=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:e,captchaResponse:o,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:o}):Object.assign(a,{captchaResponse:o}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function cp(e,t,n,r,i){var s,o;if("EMAIL_PASSWORD_PROVIDER"===i){if(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const i=await lp(e,t,n,"getOobCode"===n);return r(e,i)}return r(e,t).catch((async i=>{if("auth/missing-recaptcha-token"===i.code){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const i=await lp(e,t,n,"getOobCode"===n);return r(e,i)}return Promise.reject(i)}))}if("PHONE_PROVIDER"===i){if(null===(o=e._getRecaptchaConfig())||void 0===o?void 0:o.isProviderEnabled("PHONE_PROVIDER")){const i=await lp(e,t,n);return r(e,i).catch((async i=>{var s;if("AUDIT"===(null===(s=e._getRecaptchaConfig())||void 0===s?void 0:s.getProviderEnforcementState("PHONE_PROVIDER"))&&("auth/missing-recaptcha-token"===i.code||"auth/invalid-app-credential"===i.code)){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const i=await lp(e,t,n,!1,!0);return r(e,i)}return Promise.reject(i)}))}{const i=await lp(e,t,n,!1,!0);return r(e,i)}}return Promise.reject(i+" provider is not supported.")}async function up(e){const t=Yf(e),n=await gf(t,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new mf(n);if(null==t.tenantId?t._agentRecaptchaConfig=r:t._tenantRecaptchaConfigs[t.tenantId]=r,r.isAnyProviderEnabled()){new ap(t).verify()}}function hp(e,t,n){const r=Yf(e);
2Wd(/^https?:\/\//.test(t),r,"invalid-emulator-scheme");const i=!!(null===n||void 0===n?void 0:n.disableWarnings),s=dp(t),{host:o,port:a}=function(e){const t=dp(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const e=i[1];return{host:e,port:fp(r.substr(e.length+1))}}{const[e,t]=r.split(":");return{host:e,port:fp(t)}}}(t),l={url:`${s}//${o}${null===a?"":`:${a}`}/`},c=Object.freeze({host:o,port:a,protocol:s.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator)return Wd(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),void Wd(xu(l,r.config.emulator)&&xu(c,r.emulatorConfig),r,"emulator-config-failed");r.config.emulator=l,r.emulatorConfig=c,r.settings.appVerificationDisabledForTesting=!0,i||function(){function e(){const e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(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.");"undefined"!==typeof window&&"undefined"!==typeof document&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",e):e())}()}function dp(e){const t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function fp(e){if(!e)return null;const t=Number(e);return isNaN(t)?null:t}class pp{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Kd("not implemented")}_getIdTokenResponse(e){return Kd("not implemented")}_linkToIdToken(e,t){return Kd("not implemented")}_getReauthenticationResolver(e){return Kd("not implemented")}}async function mp(e,t){return of(e,"POST","/v1/accounts:resetPassword",sf(e,t))}async function gp(e,t){return of(e,"POST","/v1/accounts:signUp",t)}async function yp(e,t){return lf(e,"POST","/v1/accounts:signInWithPassword",sf(e,t))}async function vp(e,t){return of(e,"POST","/v1/accounts:sendOobCode",sf(e,t))}async function bp(e,t){return vp(e,t)}async function wp(e,t){return vp(e,t)}class _p extends pp{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;super("password",n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(e,t){return new _p(e,t,"password")}static _fromEmailAndCode(e,t){return new _p(e,t,"emailLink",arguments.length>2&&void 0!==arguments[2]?arguments[2]:null)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e;if((null===t||void 0===t?void 0:t.email)&&(null===t||void 0===t?void 0:t.password)){if("password"===t.signInMethod)return this._fromEmailAndPassword(t.email,t.password);if("emailLink"===t.signInMethod)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":return cp(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",yp,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return lf(e,"POST","/v1/accounts:signInWithEmailLink",sf(e,t))}(e,{email:this._email,oobCode:this._password});default:Ud(e,"internal-error")}}async _linkToIdToken(e,t){switch(this.signInMethod){case"password":return cp(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",gp,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return async function(e,t){return lf(e,"POST","/v1/accounts:signInWithEmailLink",sf(e,t))}(e,{idToken:t,email:this._email,oobCode:this._password});default:Ud(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}async function Tp(e,t){return lf(e,"POST","/v1/accounts:signInWithIdp",sf(e,t))}class xp extends pp{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const t=new xp(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
2(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):Ud("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r}=t,i=Td(t,["providerId","signInMethod"]);if(!n||!r)return null;const s=new xp(n,r);return s.idToken=i.idToken||void 0,s.accessToken=i.accessToken||void 0,s.secret=i.secret,s.nonce=i.nonce,s.pendingToken=i.pendingToken||null,s}_getIdTokenResponse(e){return Tp(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tp(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tp(e,t)}buildRequest(){const e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=Su(t)}return e}}async function Ep(e,t){return of(e,"POST","/v1/accounts:sendVerificationCode",sf(e,t))}const Sp={USER_NOT_FOUND:"user-not-found"};class kp extends pp{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new kp({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new kp({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return async function(e,t){return lf(e,"POST","/v1/accounts:signInWithPhoneNumber",sf(e,t))}(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return async function(e,t){const n=await lf(e,"POST","/v1/accounts:signInWithPhoneNumber",sf(e,t));if(n.temporaryProof)throw df(e,"account-exists-with-different-credential",n);return n}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return async function(e,t){return lf(e,"POST","/v1/accounts:signInWithPhoneNumber",sf(e,Object.assign(Object.assign({},t),{operation:"REAUTH"})),Sp)}(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){"string"===typeof e&&(e=JSON.parse(e));const{verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}=e;return n||t||r||i?new kp({verificationId:t,verificationCode:n,phoneNumber:r,temporaryProof:i}):null}}class Ip{constructor(e){var t,n,r,i,s,o;const a=ku(Iu(e)),l=null!==(t=a.apiKey)&&void 0!==t?t:null,c=null!==(n=a.oobCode)&&void 0!==n?n:null,u=function(e){switch(e){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(r=a.mode)&&void 0!==r?r:null);Wd(l&&c&&u,"argument-error"),this.apiKey=l,this.operation=u,this.code=c,this.continueUrl=null!==(i=a.continueUrl)&&void 0!==i?i:null,this.languageCode=null!==(s=a.languageCode)&&void 0!==s?s:null,this.tenantId=null!==(o=a.tenantId)&&void 0!==o?o:null}static parseLink(e){const t=function(e){const t=ku(Iu(e)).link,n=t?ku(Iu(t)).deep_link_id:null,r=ku(Iu(e)).deep_link_id;return(r?ku(Iu(r)).link:null)||r||n||t||e}(e);try{return new Ip(t)}catch(bL){return null}}}class Cp{constructor(){this.providerId=Cp.PROVIDER_ID}static credential(e,t){return _p._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){const n=Ip.parseLink(t);return Wd(n,"argument-error"),_p._fromEmailAndCode(e,n.code,n.tenantId)}}Cp.PROVIDER_ID="password",Cp.EMAIL_PASSWORD_SIGN_IN_METHOD="password",Cp.EMAIL_LINK_SIGN_IN_METHOD="emailLink";class Ap{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}class Pp extends Ap{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class Np extends Pp{static credentialFromJSON(e){const t="string"===typeof e?JSON.parse(e):e;return Wd("providerId"in t&&"signInMethod"in t,"argument-error"),xp._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return Wd(e.idToken||e.accessToken,"argument-error"),xp._fromParams(Object.assign(Object.assign({}
2,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return Np.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return Np.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:s,nonce:o,providerId:a}=t;if(!r&&!i&&!n&&!s)return null;if(!a)return null;try{return new Np(a)._credential({idToken:n,accessToken:r,nonce:o,pendingToken:s})}catch(vL){return null}}}class Rp extends Pp{constructor(){super("facebook.com")}static credential(e){return xp._fromParams({providerId:Rp.PROVIDER_ID,signInMethod:Rp.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Rp.credentialFromTaggedObject(e)}static credentialFromError(e){return Rp.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Rp.credential(t.oauthAccessToken)}catch(bL){return null}}}Rp.FACEBOOK_SIGN_IN_METHOD="facebook.com",Rp.PROVIDER_ID="facebook.com";class Dp extends Pp{constructor(){super("google.com"),this.addScope("profile")}static credential(e,t){return xp._fromParams({providerId:Dp.PROVIDER_ID,signInMethod:Dp.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}static credentialFromResult(e){return Dp.credentialFromTaggedObject(e)}static credentialFromError(e){return Dp.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return Dp.credential(n,r)}catch(bL){return null}}}Dp.GOOGLE_SIGN_IN_METHOD="google.com",Dp.PROVIDER_ID="google.com";class Op extends Pp{constructor(){super("github.com")}static credential(e){return xp._fromParams({providerId:Op.PROVIDER_ID,signInMethod:Op.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Op.credentialFromTaggedObject(e)}static credentialFromError(e){return Op.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return Op.credential(t.oauthAccessToken)}catch(bL){return null}}}Op.GITHUB_SIGN_IN_METHOD="github.com",Op.PROVIDER_ID="github.com";class Lp extends pp{constructor(e,t){super(e,e),this.pendingToken=t}_getIdTokenResponse(e){return Tp(e,this.buildRequest())}_linkToIdToken(e,t){const n=this.buildRequest();return n.idToken=t,Tp(e,n)}_getReauthenticationResolver(e){const t=this.buildRequest();return t.autoCreate=!1,Tp(e,t)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const t="string"===typeof e?JSON.parse(e):e,{providerId:n,signInMethod:r,pendingToken:i}=t;return n&&r&&i&&n===r?new Lp(n,i):null}static _create(e,t){return new Lp(e,t)}buildRequest(){return{requestUri:"http://localhost",returnSecureToken:!0,pendingToken:this.pendingToken}}}class jp extends Ap{constructor(e){Wd(e.startsWith("saml."),"argument-error"),super(e)}static credentialFromResult(e){return jp.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return jp.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){const t=Lp.fromJSON(e);return Wd(t,"argument-error"),t}static samlCredentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{pendingToken:n,providerId:r}=t;if(!n||!r)return null;try{return Lp._create(r,n)}catch(vL){return null}}}class Mp extends Pp{constructor(){super("twitter.com")}static credential(e,t){return xp._fromParams({providerId:Mp.PROVIDER_ID,signInMethod:Mp.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}static credentialFromResult(e){return Mp.credentialFromTaggedObject(e)}static credentialFromError(e){return Mp.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return Mp.credential(n,r)}catch(bL){return null}}}async function Fp(e,t){return lf(e,"POST","/v1/accounts:signUp",sf(e,t))}Mp.TWITTER_SIGN_IN_METHOD="twitter.com",Mp.PROVIDER_ID="twitter.com";class Vp{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=await Af._fromIdTokenResponse(e,n,r),s=Up(n);return new Vp({user:i,providerId:s,_tokenResponse:n,operationType:t})}static async _forOperation(e,t,n){await e._updateTokensIfNecessary(n,!0);const r=Up(n);
2return new Vp({user:e,providerId:r,_tokenResponse:n,operationType:t})}}function Up(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}class zp extends bu{constructor(e,t,n,r){var i;super(t.code,t.message),this.operationType=n,this.user=r,Object.setPrototypeOf(this,zp.prototype),this.customData={appName:e.name,tenantId:null!==(i=e.tenantId)&&void 0!==i?i:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,r){return new zp(e,t,n,r)}}function Bp(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((n=>{if("auth/multi-factor-auth-required"===n.code)throw zp._fromErrorAndOperation(e,n,t,r);throw n}))}function qp(e){return new Set(e.map((e=>{let{providerId:t}=e;return t})).filter((e=>!!e)))}async function $p(e,t){const n=Nu(e);await Wp(!0,n,t);const{providerUserInfo:r}=await async function(e,t){return of(e,"POST","/v1/accounts:update",t)}(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=qp(r||[]);return n.providerData=n.providerData.filter((e=>i.has(e.providerId))),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function Hp(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=await Tf(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Vp._forOperation(e,"link",r)}async function Wp(e,t,n){await Sf(t);const r=!1===e?"provider-already-linked":"no-such-provider";Wd(qp(t.providerData).has(n)===e,t.auth,r)}async function Kp(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{auth:r}=e;if(Wh(r.app))return Promise.reject(qd(r));const i="reauthenticate";try{const s=await Tf(e,Bp(r,i,t,e),n);Wd(s.idToken,r,"internal-error");const o=wf(s.idToken);Wd(o,r,"internal-error");const{sub:a}=o;return Wd(e.uid===a,r,"user-mismatch"),Vp._forOperation(e,i,s)}catch(vL){throw"auth/user-not-found"===(null===vL||void 0===vL?void 0:vL.code)&&Ud(r,"user-mismatch"),vL}}async function Gp(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Wh(e.app))return Promise.reject(qd(e));const r="signIn",i=await Bp(e,r,t),s=await Vp._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(s.user),s}async function Qp(e,t){return Gp(Yf(e),t)}async function Yp(e,t){const n=Nu(e);return await Wp(!1,n,t.providerId),Hp(n,t)}async function Xp(e,t){return Kp(Nu(e),t)}async function Jp(e,t){if(Wh(e.app))return Promise.reject(qd(e));const n=Yf(e),r=await async function(e,t){return lf(e,"POST","/v1/accounts:signInWithCustomToken",sf(e,t))}(n,{token:t,returnSecureToken:!0}),i=await Vp._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(i.user),i}class Zp{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?em._fromServerResponse(e,t):"totpInfo"in t?tm._fromServerResponse(e,t):Ud(e,"internal-error")}}class em extends Zp{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new em(t)}}class tm extends Zp{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new tm(t)}}function nm(e,t,n){var r;Wd((null===(r=n.url)||void 0===r?void 0:r.length)>0,e,"invalid-continue-uri"),Wd("undefined"===typeof n.dynamicLinkDomain||n.dynamicLinkDomain.length>0,e,"invalid-dynamic-link-domain"),Wd("undefined"===typeof n.linkDomain||n.linkDomain.length>0,e,"invalid-hosting-link-domain"),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.linkDomain=n.linkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Wd(n.iOS.bundleId.length>0,e,"missing-ios-bundle-id"),t.iOSBundleId=n.iOS.bundleId),n.android&&(Wd(n.android.packageName.length>0,e,"missing-android-pkg-name"),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function rm(e){const t=Yf(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function im(e,t){await async function(e,t){return of(e,"POST","/v1/accounts:update",sf(e,t))}(Nu(e),{oobCode:t})}async function sm(e,t){const n=Nu(e),r=await mp(n,{oobCode:t}),i=r.requestType;switch(Wd(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":Wd(r.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":Wd(r.mfaInfo,n,"internal-error");default:Wd(r.email,n,"internal-error")}let s=null;return r.mfaInfo&&(s=Zp._fromServerResponse(Yf(n),r.mfaInfo)),{data:{email:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.newEmail:r.email)||null,previousEmail:("VERIFY_AND_CHANGE_EMAIL"===r.requestType?r.email:r.newEmail)||null,multiFactorInfo:s},operation:i}}async function om(e,t){const n={identifier:t,continueUri:Yd()?Qd():"http://localhost"},{signinMethods:r}=await async function(e,t){return of(e,"POST","/v1/accounts:createAuthUri",sf(e,t))}(Nu(e),n);return r||[]}async function am(e,t){const n=Nu(e),r={requestType:"VERIFY_EMAIL",idToken:await e.getIdToken()};t&&nm(n.auth,r,t);const{email:i}=await async function(e,t){return vp(e,t)}(n.auth,r);i!==e.email&&await e.reload()}async function lm(e,t,n){const r=Nu(e),i={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await e.getIdToken(),newEmail:t};n&&nm(r.auth,i,n);const{email:s}=await async function(e,t){return vp(e,t)}(r.auth,i);s!==e.email&&await e.reload()}async function cm(e,t){let{displayName:n,photoURL:r}=t;if(void 0===n&&void 0===r)return;const i=Nu(e),s={idToken:await i.getIdToken(),displayName:n,photoUrl:r,returnSecureToken:!0},o=await Tf(i,async function(e,t){return of(e,"POST","/v1/accounts:update",t)}(i.auth,s));i.displayName=o.displayName||null,i.photoURL=o.photoUrl||null;const a=i.providerData.find((e=>{let{providerId:t}=e;return"password"===t}));a&&(a.displayName=i.displayName,a.photoURL=i.photoURL),await i._updateTokensIfNecessary(o)}async function um(e,t,n){const{auth:r}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);const s=await Tf(e,async function(e,t){return of(e,"POST","/v1/accounts:update",t)}(r,i));await e._updateTokensIfNecessary(s,!0)}class hm{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.isNewUser=e,this.providerId=t,this.profile=n}}class dm extends hm{constructor(e,t,n,r){super(e,t,n),this.username=r}}class fm extends hm{constructor(e,t){super(e,"facebook.com",t)}}class pm extends dm{constructor(e,t){super(e,"github.com",t,"string"===typeof(null===t||void 0===t?void 0:t.login)?null===t||void 0===t?void 0:t.login:null)}}class mm extends hm{constructor(e,t){super(e,"google.com",t)}}class gm extends dm{constructor(e,t,n){super(e,"twitter.com",t,n)}}
2function ym(e){const{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:function(e){var t,n;if(!e)return null;const{providerId:r}=e,i=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},s=e.isNewUser||"identitytoolkit#SignupNewUserResponse"===e.kind;if(!r&&(null===e||void 0===e?void 0:e.idToken)){const r=null===(n=null===(t=wf(e.idToken))||void 0===t?void 0:t.firebase)||void 0===n?void 0:n.sign_in_provider;if(r)return new hm(s,"anonymous"!==r&&"custom"!==r?r:null)}if(!r)return null;switch(r){case"facebook.com":return new fm(s,i);case"github.com":return new pm(s,i);case"google.com":return new mm(s,i);case"twitter.com":return new gm(s,i,e.screenName||null);case"custom":case"anonymous":return new hm(s,null);default:return new hm(s,r,i)}}(n)}class vm{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fromIdtoken(e,t){return new vm("enroll",e,t)}static _fromMfaPendingCredential(e){return new vm("signin",e)}toJSON(){const e="enroll"===this.type?"idToken":"pendingCredential";return{multiFactorSession:{[e]:this.credential}}}static fromJSON(e){var t,n;if(null===e||void 0===e?void 0:e.multiFactorSession){if(null===(t=e.multiFactorSession)||void 0===t?void 0:t.pendingCredential)return vm._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(null===(n=e.multiFactorSession)||void 0===n?void 0:n.idToken)return vm._fromIdtoken(e.multiFactorSession.idToken)}return null}}class bm{constructor(e,t,n){this.session=e,this.hints=t,this.signInResolver=n}static _fromError(e,t){const n=Yf(e),r=t.customData._serverResponse,i=(r.mfaInfo||[]).map((e=>Zp._fromServerResponse(n,e)));Wd(r.mfaPendingCredential,n,"internal-error");const s=vm._fromMfaPendingCredential(r.mfaPendingCredential);return new bm(s,i,(async e=>{const i=await e._process(n,s);delete r.mfaInfo,delete r.mfaPendingCredential;const o=Object.assign(Object.assign({},r),{idToken:i.idToken,refreshToken:i.refreshToken});switch(t.operationType){case"signIn":const e=await Vp._fromIdTokenResponse(n,t.operationType,o);return await n._updateCurrentUser(e.user),e;case"reauthenticate":return Wd(t.user,n,"internal-error"),Vp._forOperation(t.user,t.operationType,o);default:Ud(n,"internal-error")}}))}async resolveSignIn(e){const t=e;return this.signInResolver(t)}}function wm(e,t){return of(e,"POST","/v2/accounts/mfaEnrollment:start",sf(e,t))}class _m{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload((t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map((t=>Zp._fromServerResponse(e.auth,t))))}))}static _fromUser(e){return new _m(e)}async getSession(){return vm._fromIdtoken(await this.user.getIdToken(),this.user)}
2async enroll(e,t){const n=e,r=await this.getSession(),i=await Tf(this.user,n._process(this.user.auth,r,t));return await this.user._updateTokensIfNecessary(i),this.user.reload()}async unenroll(e){const t="string"===typeof e?e:e.uid,n=await this.user.getIdToken();try{const e=await Tf(this.user,(r=this.user.auth,i={idToken:n,mfaEnrollmentId:t},of(r,"POST","/v2/accounts/mfaEnrollment:withdraw",sf(r,i))));this.enrolledFactors=this.enrolledFactors.filter((e=>{let{uid:n}=e;return n!==t})),await this.user._updateTokensIfNecessary(e),await this.user.reload()}catch(vL){throw vL}var r,i}}const Tm=new WeakMap;const xm="__sak";class Em{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(xm,"1"),this.storage.removeItem(xm),Promise.resolve(!0)):Promise.resolve(!1)}catch(bL){return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){const t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}class Sm extends Em{constructor(){super((()=>window.localStorage),"LOCAL"),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=Hf(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const t of Object.keys(this.listeners)){const n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e.key)return void this.forAllChangedKeys(((e,t,n)=>{this.notifyListeners(e,n)}));const n=e.key;t?this.detachListener():this.stopPolling();const r=()=>{const e=this.storage.getItem(n);(t||this.localCache[n]!==e)&&this.notifyListeners(n,e)},i=this.storage.getItem(n);gu()&&10===document.documentMode&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,10):r()}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t?JSON.parse(t):t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((()=>{this.forAllChangedKeys(((e,t,n)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:t,newValue:n}),!0)}))}),1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,t){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){const t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}}Sm.type="LOCAL";const km=Sm;function Im(e){var t,n;const r=e.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),i=RegExp(`${r}=([^;]+)`);return null!==(n=null===(t=document.cookie.match(i))||void 0===t?void 0:t[1])&&void 0!==n?n:null}function Cm(e){return`${"http:"===window.location.protocol?"__dev_":"__HOST-"}FIREBASE_${e.split(":")[3]}`}class Am{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(void 0===typeof window)return e;const t=new URL(`${window.location.origin}/__cookies__`);return t.searchParams.set("finalTarget",e),t}async _isAvailable(){var e;return!("boolean"===typeof isSecureContext&&!isSecureContext)&&("undefined"!==typeof navigator&&"undefined"!==typeof document&&(null===(e=navigator.cookieEnabled)||void 0===e||e))}async _set(e,t){}async _get(e){if(!this._isAvailable())return null;const t=Cm(e);if(window.cookieStore){const e=await window.cookieStore.get(t);return null===e||void 0===e?void 0:e.value}return Im(t)}async _remove(e){if(!this._isAvailable())return;if(!await this._get(e))return;const t=Cm(e);document.cookie=`${t}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;
2Priority=High`,await fetch("/__cookies__",{method:"DELETE"}).catch((()=>{}))}_addListener(e,t){if(!this._isAvailable())return;const n=Cm(e);if(window.cookieStore){const e=e=>{const r=e.changed.find((e=>e.name===n));r&&t(r.value);e.deleted.find((e=>e.name===n))&&t(null)},r=()=>window.cookieStore.removeEventListener("change",e);return this.listenerUnsubscribes.set(t,r),window.cookieStore.addEventListener("change",e)}let r=Im(n);const i=setInterval((()=>{const e=Im(n);e!==r&&(t(e),r=e)}),1e3);this.listenerUnsubscribes.set(t,(()=>clearInterval(i)))}_removeListener(e,t){const n=this.listenerUnsubscribes.get(t);n&&(n(),this.listenerUnsubscribes.delete(t))}}Am.type="COOKIE";class Pm extends Em{constructor(){super((()=>window.sessionStorage),"SESSION")}_addListener(e,t){}_removeListener(e,t){}}Pm.type="SESSION";const Nm=Pm;class Rm{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const t=this.receivers.find((t=>t.isListeningto(e)));if(t)return t;const n=new Rm(e);return this.receivers.push(n),n}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const t=e,{eventId:n,eventType:r,data:i}=t.data,s=this.handlersMap[r];if(!(null===s||void 0===s?void 0:s.size))return;t.ports[0].postMessage({status:"ack",eventId:n,eventType:r});const o=Array.from(s).map((async e=>e(t.origin,i))),a=await function(e){return Promise.all(e.map((async e=>{try{return{fulfilled:!0,value:await e}}catch(t){return{fulfilled:!1,reason:t}}})))}(o);t.ports[0].postMessage({status:"done",eventId:n,eventType:r,response:a})}_subscribe(e,t){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),t&&0!==this.handlersMap[e].size||delete this.handlersMap[e],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}function Dm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="";for(let r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}Rm.receivers=[];class Om{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:50;const r="undefined"!==typeof MessageChannel?new MessageChannel:null;if(!r)throw new Error("connection_unavailable");let i,s;return new Promise(((o,a)=>{const l=Dm("",20);r.port1.start();const c=setTimeout((()=>{a(new Error("unsupported_event"))}),n);s={messageChannel:r,onMessage(e){const t=e;if(t.data.eventId===l)switch(t.data.status){case"ack":clearTimeout(c),i=setTimeout((()=>{a(new Error("timeout"))}),3e3);break;case"done":clearTimeout(i),o(t.data.response);break;default:clearTimeout(c),clearTimeout(i),a(new Error("invalid_response"))}}},this.handlers.add(s),r.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:l,data:t},[r.port2])})).finally((()=>{s&&this.removeMessageHandler(s)}))}}function Lm(){return window}function jm(){return"undefined"!==typeof Lm().WorkerGlobalScope&&"function"===typeof Lm().importScripts}const Mm="firebaseLocalStorageDb",Fm="firebaseLocalStorage",Vm="fbase_key";class Um{constructor(e){this.request=e}toPromise(){return new Promise(((e,t)=>{this.request.addEventListener("success",(()=>{e(this.request.result)})),this.request.addEventListener("error",(()=>{t(this.request.error)}))}))}}function zm(e,t){return e.transaction([Fm],t?"readwrite":"readonly").objectStore(Fm)}function Bm(){const e=indexedDB.open(Mm,1);return new Promise(((t,n)=>{e.addEventListener("error",(()=>{n(e.error)})),e.addEventListener("upgradeneeded",(()=>{const t=e.result;try{t.createObjectStore(Fm,{keyPath:Vm})}catch(vL){n(vL)}})),e.addEventListener("success",(async()=>{const n=e.result;n.objectStoreNames.contains(Fm)?t(n):(n.close(),await function(){const e=indexedDB.deleteDatabase(Mm);
vendor: 6,602 bytes, line 2
2return new Um(e).toPromise()}(),t(await Bm()))}))}))}async function qm(e,t,n){const r=zm(e,!0).put({[Vm]:t,value:n});return new Um(r).toPromise()}function $m(e,t){const n=zm(e,!0).delete(t);return new Um(n).toPromise()}class Hm{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then((()=>{}),(()=>{}))}async _openDb(){return this.db||(this.db=await Bm()),this.db}async _withRetries(e){let t=0;for(;;)try{const t=await this._openDb();return await e(t)}catch(vL){if(t++>3)throw vL;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return jm()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Rm._getInstance(jm()?self:null),this.receiver._subscribe("keyChanged",(async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)}))),this.receiver._subscribe("ping",(async(e,t)=>["keyChanged"]))}async initializeSender(){var e,t;if(this.activeServiceWorker=await async function(){if(!(null===navigator||void 0===navigator?void 0:navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch(e){return null}}(),!this.activeServiceWorker)return;this.sender=new Om(this.activeServiceWorker);const n=await this.sender._send("ping",{},800);n&&(null===(e=n[0])||void 0===e?void 0:e.fulfilled)&&(null===(t=n[0])||void 0===t?void 0:t.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(this.sender&&this.activeServiceWorker&&function(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}()===this.activeServiceWorker)try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch(bL){}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await Bm();return await qm(e,xm,"1"),await $m(e,xm),!0}catch(bL){}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite((async()=>(await this._withRetries((n=>qm(n,e,t))),this.localCache[e]=t,this.notifyServiceWorker(e))))}async _get(e){const t=await this._withRetries((t=>async function(e,t){const n=zm(e,!1).get(t),r=await new Um(n).toPromise();return void 0===r?null:r.value}(t,e)));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite((async()=>(await this._withRetries((t=>$m(t,e))),delete this.localCache[e],this.notifyServiceWorker(e))))}async _poll(){const e=await this._withRetries((e=>{const t=zm(e,!1).getAll();return new Um(t).toPromise()}));if(!e)return[];if(0!==this.pendingWrites)return[];const t=[],n=new Set;if(0!==e.length)for(const{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(const r of Object.keys(this.localCache))this.localCache[r]&&!n.has(r)&&(this.notifyListeners(r,null),t.push(r));return t}notifyListeners(e,t){this.localCache[e]=t;const n=this.listeners[e];if(n)for(const r of Array.from(n))r(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval((async()=>this._poll()),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,t){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),0===this.listeners[e].size&&delete this.listeners[e]),0===Object.keys(this.listeners).length&&this.stopPolling()}}Hm.type="LOCAL";const Wm=Hm;function Km(e,t){return of(e,"POST","/v2/accounts/mfaSignIn:start",sf(e,t))}const Gm=ep("rcb"),Qm=new Jd(3e4,6e4);class Ym{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(null===(e=Lm().grecaptcha)||void 0===e?void 0:e.render)}load(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Wd(function(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}(t),e,"argument-error"),this.shouldResolveImmediately(t)&&ff(Lm().grecaptcha)?Promise.resolve(Lm().grecaptcha):new Promise(((n,r)=>{const i=Lm().setTimeout((()=>{r(zd(e,"network-request-failed"))}),Qm.get());Lm()[Gm]=()=>{Lm().clearTimeout(i),delete Lm()[Gm];const s=Lm().grecaptcha;if(!s||!ff(s))return void r(zd(e,"internal-error"));const o=s.render;s.render=(e,t)=>{const n=o(e,t);return this.counter++,n},this.hostLanguage=t,n(s)};Zf(`${Jf.recaptchaV2Script}?${Su({onload:Gm,render:"explicit",hl:t})}`).catch((()=>{clearTimeout(i),r(zd(e,"internal-error"))}))}))}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(null===(t=Lm().grecaptcha)||void 0===t?void 0:t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}class Xm{async load(e){return new np(e)}clearedOneInstance(){}}const Jm="recaptcha",Zm={theme:"light",type:"image"};class eg{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Object.assign({},Zm);this.parameters=n,this.type=Jm,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Yf(e),this.isInvisible="invisible"===this.parameters.size,Wd("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment");const r="string"===typeof t?document.getElementById(t):t;Wd(r,this.auth,"argument-error"),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new Xm:new Ym,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise((n=>{const r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)}))}render(){try{this.assertNotDestroyed()}catch(vL){return Promise.reject(vL)}return this.renderPromise||(this.renderPromise=this.makeRenderPromise().catch((e=>{throw this.renderPromise=null,e}))),this.renderPromise}_reset(){this.assertNotDestroyed(),null!==this.widgetId&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
2h((e=>{this.container.removeChild(e)}))}validateStartingState(){Wd(!this.parameters.sitekey,this.auth,"argument-error"),Wd(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Wd("undefined"!==typeof document,this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach((e=>e(t))),"function"===typeof e)e(t);else if("string"===typeof e){const n=Lm()[e];"function"===typeof n&&n(t)}}}assertNotDestroyed(){Wd(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){Wd(Yd()&&!jm(),this.auth,"internal-error"),await function(){let e=null;return new Promise((t=>{"complete"!==document.readyState?(e=()=>t(),window.addEventListener("load",e)):t()})).catch((t=>{throw e&&window.removeEventListener("load",e),t}))}(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await async function(e){return(await of(e,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}(this.auth);Wd(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return Wd(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}class tg{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){const t=kp._fromVerification(this.verificationId,e);return this.onConfirmation(t)}}async function ng(e,t,n){var r;if(!e._getRecaptchaConfig())try{await up(e)}catch(i){console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(i="string"===typeof t?{phoneNumber:t}:t,"session"in i){const t=i.session;if("phoneNumber"in i){Wd("enroll"===t.type,e,"internal-error");const r={idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}},s=cp(e,r,"mfaSmsEnrollment",(async(e,t)=>{if(t.phoneEnrollmentInfo.captchaResponse===op){Wd((null===n||void 0===n?void 0:n.type)===Jm,e,"argument-error");return wm(e,await rg(e,t,n))}return wm(e,t)}),"PHONE_PROVIDER");return(await s.catch((e=>Promise.reject(e)))).phoneSessionInfo.sessionInfo}{Wd("signin"===t.type,e,"internal-error");const s=(null===(r=i.multiFactorHint)||void 0===r?void 0:r.uid)||i.multiFactorUid;Wd(s,e,"missing-multi-factor-info");const o={mfaPendingCredential:t.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}},a=cp(e,o,"mfaSmsSignIn",(async(e,t)=>{if(t.phoneSignInInfo.captchaResponse===op){Wd((null===n||void 0===n?void 0:n.type)===Jm,e,"argument-error");return Km(e,await rg(e,t,n))}return Km(e,t)}),"PHONE_PROVIDER");return(await a.catch((e=>Promise.reject(e)))).phoneResponseInfo.sessionInfo}}{const t={phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"},r=cp(e,t,"sendVerificationCode",(async(e,t)=>{if(t.captchaResponse===op){Wd((null===n||void 0===n?void 0:n.type)===Jm,e,"argument-error");return Ep(e,await rg(e,t,n))}return Ep(e,t)}),"PHONE_PROVIDER");return(await r.catch((e=>Promise.reject(e)))).sessionInfo}}finally{null===n||void 0===n||n._reset()}}async function rg(e,t,n){Wd(n.type===Jm,e,"argument-error");const r=await n.verify();Wd("string"===typeof r,e,"argument-error");const i=Object.assign({},t);if("phoneEnrollmentInfo"in i){const e=i.phoneEnrollmentInfo.phoneNumber,t=i.phoneEnrollmentInfo.captchaResponse,n=i.phoneEnrollmentInfo.clientType,s=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:e,recaptchaToken:r,captchaResponse:t,clientType:n,recaptchaVersion:s}}),i}if("phoneSignInInfo"in i){const e=i.phoneSignInInfo.captchaResponse,t=i.phoneSignInInfo.clientType,n=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:e,clientType:t,recaptchaVersion:n}}),i}return Object.assign(i,{recaptchaToken:r}),i}class ig{constructor(e){this.providerId=ig.PROVIDER_ID,this.auth=Yf(e)}verifyPhoneNumber(e,t){return ng(this.auth,e,Nu(t))}static credential(e,t){return kp._fromVerification(e,t)}static credentialFromResult(e){const t=e;return ig.credentialFromTaggedObject(t)}static credentialFromError(e){return ig.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject(e){let{_tokenResponse:t}=e;if(!t)return null;const{phoneNumber:n,temporaryProof:r}=t;return n&&r?kp._fromTokenResponse(n,r):null}}function sg(e,t){return t?Nf(t):(Wd(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
vendor: 4,438 bytes, line 2
2ig.PROVIDER_ID="phone",ig.PHONE_SIGN_IN_METHOD="phone";class og extends pp{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Tp(e,this._buildIdpRequest())}_linkToIdToken(e,t){return Tp(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return Tp(e,this._buildIdpRequest())}_buildIdpRequest(e){const t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}}function ag(e){return Gp(e.auth,new og(e),e.bypassAuthState)}function lg(e){const{auth:t,user:n}=e;return Wd(n,t,"internal-error"),Kp(n,new og(e),e.bypassAuthState)}async function cg(e){const{auth:t,user:n}=e;return Wd(n,t,"internal-error"),Hp(n,new og(e),e.bypassAuthState)}class ug{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(vL){this.reject(vL)}}))}async onAuthEvent(e){const{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:s,type:o}=e;if(s)return void this.reject(s);const a={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(a))}catch(vL){this.reject(vL)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return ag;case"linkViaPopup":case"linkViaRedirect":return cg;case"reauthViaPopup":case"reauthViaRedirect":return lg;default:Ud(this.auth,"internal-error")}}resolve(e){Gd(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Gd(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}const hg=new Jd(2e3,1e4);class dg extends ug{constructor(e,t,n,r,i){super(e,t,r,i),this.provider=n,this.authWindow=null,this.pollId=null,dg.currentPopupAction&&dg.currentPopupAction.cancel(),dg.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Wd(e,this.auth,"internal-error"),e}async onExecution(){Gd(1===this.filter.length,"Popup operations only handle one event");const e=Dm();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch((e=>{this.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(e=>{e||this.reject(zd(this.auth,"web-storage-unsupported"))})),this.pollUserCancellation()}get eventId(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}cancel(){this.reject(zd(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,dg.currentPopupAction=null}pollUserCancellation(){const e=()=>{var t,n;(null===(n=null===(t=this.authWindow)||void 0===t?void 0:t.window)||void 0===n?void 0:n.closed)?this.pollId=window.setTimeout((()=>{this.pollId=null,this.reject(zd(this.auth,"popup-closed-by-user"))}),8e3):this.pollId=window.setTimeout(e,hg.get())};e()}}dg.currentPopupAction=null;const fg=new Map;class pg extends ug{constructor(e,t){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,arguments.length>2&&void 0!==arguments[2]&&arguments[2]),this.eventId=null}async execute(){let e=fg.get(this.auth._key());if(!e){try{const t=await async function(e,t){const n=vg(t),r=yg(e);if(!await r._isAvailable())return!1;const i="true"===await r._get(n);return await r._remove(n),i}(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(vL){e=()=>Promise.reject(vL)}fg.set(this.auth._key(),e)}return this.bypassAuthState||fg.set(this.auth._key(),(()=>Promise.resolve(null))),e()}async onAuthEvent(e){if("signInViaRedirect"===e.type)return super.onAuthEvent(e);
2if("unknown"!==e.type){if(e.eventId){const t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}else this.resolve(null)}async onExecution(){}cleanUp(){}}async function mg(e,t){return yg(e)._set(vg(t),"true")}function gg(e,t){fg.set(e._key(),t)}function yg(e){return Nf(e._redirectPersistence)}function vg(e){return Of("pendingRedirect",e.config.apiKey,e.name)}function bg(e,t,n){return async function(e,t,n){if(Wh(e.app))return Promise.reject(qd(e));const r=Yf(e);$d(e,t,Ap),await r._initializationPromise;const i=sg(r,n);return await mg(i,r),i._openRedirect(r,t,"signInViaRedirect")}(e,t,n)}function wg(e,t,n){return async function(e,t,n){const r=Nu(e);if($d(r.auth,t,Ap),Wh(r.auth.app))return Promise.reject(qd(r.auth));await r.auth._initializationPromise;const i=sg(r.auth,n);await mg(i,r.auth);const s=await xg(r);return i._openRedirect(r.auth,t,"reauthViaRedirect",s)}(e,t,n)}function _g(e,t,n){return async function(e,t,n){const r=Nu(e);$d(r.auth,t,Ap),await r.auth._initializationPromise;const i=sg(r.auth,n);await Wp(!1,r,t.providerId),await mg(i,r.auth);const s=await xg(r);return i._openRedirect(r.auth,t,"linkViaRedirect",s)}(e,t,n)}async function Tg(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(Wh(e.app))return Promise.reject(qd(e));const r=Yf(e),i=sg(r,t),s=new pg(r,i,n),o=await s.execute();return o&&!n&&(delete o.user._redirectEventId,await r._persistUserIfCurrent(o.user),await r._setRedirectUser(null,t)),o}async function xg(e){const t=Dm(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}class Eg{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach((n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return kg(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!kg(e)){const r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(zd(this.auth,r))}else t.onAuthEvent(e)}isEventForConsumer(e,t){const n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Sg(e))}saveEventToCache(e){this.cachedEventUids.add(Sg(e)),this.lastProcessedEventTime=Date.now()}}function Sg(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((e=>e)).join("-")}function kg(e){let{type:t,error:n}=e;return"unknown"===t&&"auth/no-auth-event"===(null===n||void 0===n?void 0:n.code)}async function Ig(e){return of(e,"GET","/v1/projects",arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}const Cg=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Ag=/^https?/;function Pg(e){const t=Qd(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith("chrome-extension://")){const i=new URL(e);return""===i.hostname&&""===r?"chrome-extension:"===n&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===n&&i.hostname===r}if(!Ag.test(n))return!1;if(Cg.test(e))return r===e;const i=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}const Ng=new Jd(3e4,6e4);function Rg(){const e=Lm().___jsl;if(null===e||void 0===e?void 0:e.H)for(const t of Object.keys(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],e.CP)for(let n=0;n<e.CP.length;n++)e.CP[n]=null}function Dg(e){return new Promise(((t,n)=>{var r,i,s;function o(){Rg(),gapi.load("gapi.iframes",{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{Rg(),n(zd(e,"network-request-failed"))},timeout:Ng.get()})}if(null===(i=null===(r=Lm().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(s=Lm().gapi)||void 0===s?void 0:s.load)){const t=ep("iframefcb");return Lm()[t]=()=>{gapi.load?o():n(zd(e,"network-request-failed"))},Zf(`${Jf.gapiScript}?onload=${t}`).catch((e=>n(e)))}o()}})).catch((e=>{throw Og=null,e}))}let Og=null;const Lg=new Jd(5e3,15e3),jg={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Mg=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Fg(e){const t=e.config;Wd(t.authDomain,e,"auth-domain-config-required");const n=t.emulator?Zd(t,"emulator/auth/iframe"):`https://${e.config.authDomain}
2/__/auth/iframe`,r={apiKey:t.apiKey,appName:e.name,v:Jh},i=Mg.get(e.config.apiHost);i&&(r.eid=i);const s=e._getFrameworks();return s.length&&(r.fw=s.join(",")),`${n}?${Su(r).slice(1)}`}async function Vg(e){const t=await function(e){return Og=Og||Dg(e),Og}(e),n=Lm().gapi;return Wd(n,e,"internal-error"),t.open({where:document.body,url:Fg(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:jg,dontclear:!0},(t=>new Promise((async(n,r)=>{await t.restyle({setHideOnLeave:!1});const i=zd(e,"network-request-failed"),s=Lm().setTimeout((()=>{r(i)}),Lg.get());function o(){Lm().clearTimeout(s),n(t)}t.ping(o).then(o,(()=>{r(i)}))}))))}const Ug={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class zg{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch(vL){}}}function Bg(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600;const s=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l=Object.assign(Object.assign({},Ug),{width:r.toString(),height:i.toString(),top:s,left:o}),c=hu().toLowerCase();n&&(a=Vf(c)?"_blank":n),Mf(c)&&(t=t||"http://localhost",l.scrollbars="yes");const u=Object.entries(l).reduce(((e,t)=>{let[n,r]=t;return`${e}${n}=${r},`}),"");if(function(){var e;return $f(arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu())&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}(c)&&"_self"!==a)return function(e,t){const n=document.createElement("a");n.href=e,n.target=t;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}(t||"",a),new zg(null);const h=window.open(t||"",a,u);Wd(h,e,"popup-blocked");try{h.focus()}catch(vL){}return new zg(h)}const qg="__/auth/handler",$g="emulator/auth/handler",Hg=encodeURIComponent("fac");async function Wg(e,t,n,r,i,s){Wd(e.config.authDomain,e,"auth-domain-config-required"),Wd(e.config.apiKey,e,"invalid-api-key");const o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Jh,eventId:i};if(t instanceof Ap){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||"",function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(const[e,t]of Object.entries(s||{}))o[e]=t}if(t instanceof Pp){const e=t.getScopes().filter((e=>""!==e));e.length>0&&(o.scopes=e.join(","))}e.tenantId&&(o.tid=e.tenantId);const a=o;for(const u of Object.keys(a))void 0===a[u]&&delete a[u];const l=await e._getAppCheckToken(),c=l?`#${Hg}=${encodeURIComponent(l)}`:"";return`${function(e){let{config:t}=e;if(!t.emulator)return`https://${t.authDomain}/${qg}`;return Zd(t,$g)}(e)}?${Su(a).slice(1)}${c}`}const Kg="webStorageSupport";const Gg=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Nm,this._completeRedirectFn=Tg,this._overrideRedirectResult=gg}async _openPopup(e,t,n,r){var i;Gd(null===(i=this.eventManagers[e._key()])||void 0===i?void 0:i.manager,"_initialize() not called before _openPopup()");return Bg(e,await Wg(e,t,n,Qd(),r),Dm())}async _openRedirect(e,t,n,r){await this._originValidation(e);return function(e){Lm().location.href=e}(await Wg(e,t,n,Qd(),r)),new Promise((()=>{}))}_initialize(e){const t=e._key();if(this.eventManagers[t]){const{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(Gd(n,"If manager is not set, promise should be"),n)}const n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch((()=>{delete this.eventManagers[t]})),n}async initAndGetManager(e){const t=await Vg(e),n=new Eg(e);return t.register("authEvent",(t=>{Wd(null===t||void 0===t?void 0:t.authEvent,e,"invalid-auth-event");return{status:n.onEvent(t.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(Kg,{type:Kg},(n=>{var r;const i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[Kg];void 0!==i&&t(!!i),Ud(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){if(e.config.emulator)return;const{authorizedDomains:t}=await Ig(e);for(const n of t)try{if(Pg(n))return}catch(bL){}Ud(e,"unauthorized-domain")}(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return Hf()||Ff()||$f()}};class Qg{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return Kd("unexpected MultiFactorSessionType")}}}class Yg extends Qg{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new Yg(e)}_finalizeEnroll(e,t,n){return function(e,t){return of(e,"POST","/v2/accounts/mfaEnrollment:finalize",sf(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return function(e,t){return of(e,"POST","/v2/accounts/mfaSignIn:finalize",sf(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class Xg{constructor(){}static assertion(e){return Yg._fromCredential(e)}}Xg.FACTOR_ID="phone";var Jg="@firebase/auth",Zg="1.10.0";class ey{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}async getToken(e){if(this.assertAuthConfigured(),await this.auth._initializationPromise,!this.auth.currentUser)return null;return{accessToken:await this.auth.currentUser.getIdToken(e)}}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const t=this.auth.onIdTokenChanged((t=>{e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Wd(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}(e=>{var t;null===(t=lu())||void 0===t||t[`_${e}`]})("authIdTokenMaxAge");var ty;function ny(){return window}
2Jf={loadJS:e=>new Promise(((t,n)=>{const r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=e=>{const t=zd("internal-error");t.customData=e,n(t)},r.type="text/javascript",r.charset="UTF-8",function(){var e,t;return null!==(t=null===(e=document.getElementsByTagName("head"))||void 0===e?void 0:e[0])&&void 0!==t?t:document}().appendChild(r)})),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="},ty="Browser",Bh(new Ru("auth",((e,t)=>{let{options:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),s=e.getProvider("app-check-internal"),{apiKey:o,authDomain:a}=r.options;Wd(o&&!o.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:o,authDomain:a,clientPlatform:ty,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Wf(ty)},c=new Qf(r,i,s,l);return function(e,t){const n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Nf);(null===t||void 0===t?void 0:t.errorMap)&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,null===t||void 0===t?void 0:t.popupRedirectResolver)}(c,n),c}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback(((e,t,n)=>{e.getProvider("auth-internal").initialize()}))),Bh(new Ru("auth-internal",(e=>(e=>new ey(e))(Yf(e.getProvider("auth").getImmediate()))),"PRIVATE").setInstantiationMode("EXPLICIT")),id(Jg,Zg,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(ty)),id(Jg,Zg,"esm2017");async function ry(e,t,n){var r;const{BuildInfo:i}=ny();Gd(t.sessionId,"AuthEvent did not contain a session ID");const s=await async function(e){const t=function(e){if(Gd(/[0-9a-zA-Z]+/.test(e),"Can only convert alpha-numeric strings"),"undefined"!==typeof TextEncoder)return(new TextEncoder).encode(e);const t=new ArrayBuffer(e.length),n=new Uint8Array(t);for(let r=0;r<e.length;r++)n[r]=e.charCodeAt(r);return n}(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")}(t.sessionId),o={};return $f()?o.ibi=i.packageName:zf()?o.apn=i.packageName:Ud(e,"operation-not-supported-in-this-environment"),i.displayName&&(o.appDisplayName=i.displayName),o.sessionId=s,Wg(e,n,t.type,void 0,null!==(r=t.eventId)&&void 0!==r?r:void 0,o)}function iy(e){const{cordova:t}=ny();return new Promise((n=>{t.plugins.browsertab.isAvailable((r=>{let i=null;r?t.plugins.browsertab.openUrl(e):i=t.InAppBrowser.open(e,function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/(iPad|iPhone|iPod).*OS 7_\d/i.test(e)||/(iPad|iPhone|iPod).*OS 8_\d/i.test(e)}()?"_blank":"_system","location=yes"),n(i)}))}))}class sy extends Eg{constructor(){super(...arguments),this.passiveListeners=new Set,this.initPromise=new Promise((e=>{this.resolveInitialized=e}))}addPassiveListener(e){this.passiveListeners.add(e)}removePassiveListener(e){this.passiveListeners.delete(e)}resetRedirect(){this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1}onEvent(e){return this.resolveInitialized(),this.passiveListeners.forEach((t=>t(e))),super.onEvent(e)}async initialized(){await this.initPromise}}async function oy(e){const t=await cy()._get(uy(e));return t&&await cy()._remove(uy(e)),t}function ay(e,t){var n,r;const i=function(e){const t=hy(e),n=t.link?decodeURIComponent(t.link):void 0,r=hy(n).link,i=t.deep_link_id?decodeURIComponent(t.deep_link_id):void 0;return hy(i).link||i||r||n||e}(t);if(i.includes("/__/auth/callback")){const t=hy(i),s=t.firebaseError?function(e){try{return JSON.parse(e)}catch(vL){return null}}(decodeURIComponent(t.firebaseError)):null,o=null===(r=null===(n=null===s||void 0===s?void 0:s.code)||void 0===n?void 0:n.split("auth/"))||void 0===r?void 0:r[1],a=o?zd(o):null;return a?{type:e.type,eventId:e.eventId,tenantId:e.tenantId,error:a,urlResponse:null,sessionId:null,postBody:null}:{type:e.type,eventId:e.eventId,tenantId:e.tenantId,sessionId:e.sessionId,urlResponse:i,postBody:null}}return null}function ly(){const e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let n=0;n<20;n++){const n=Math.floor(62*Math.random());e.push(t.charAt(n))}return e.join("")}function cy(){return Nf(km)}function uy(e){return Of("authEvent",e.config.apiKey,e.name)}function hy(e){if(!(null===e||void 0===e?void 0:e.includes("?")))return{};const[t,...n]=e.split("?");return ku(n.join("?"))}const dy=class{constructor(){this._redirectPersistence=Nm,this._shouldInitProactively=!0,this.eventManagers=new Map,this.originValidationPromises={},this._completeRedirectFn=Tg,this._overrideRedirectResult=gg}async _initialize(e){const t=e._key();let n=this.eventManagers.get(t);return n||(n=new sy(e),this.eventManagers.set(t,n),this.attachCallbackListeners(e,n)),n}_openPopup(e){Ud(e,"operation-not-supported-in-this-environment")}async _openRedirect(e,t,n,r){!function(e){var t,n,r,i,s,o,a,l,c,u;const h=ny();Wd("function"===typeof(null===(t=null===h||void 0===h?void 0:h.universalLinks)||void 0===t?void 0:t.subscribe),e,"invali
2d-cordova-configuration",{missingPlugin:"cordova-universal-links-plugin-fix"}),Wd("undefined"!==typeof(null===(n=null===h||void 0===h?void 0:h.BuildInfo)||void 0===n?void 0:n.packageName),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-buildInfo"}),Wd("function"===typeof(null===(s=null===(i=null===(r=null===h||void 0===h?void 0:h.cordova)||void 0===r?void 0:r.plugins)||void 0===i?void 0:i.browsertab)||void 0===s?void 0:s.openUrl),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Wd("function"===typeof(null===(l=null===(a=null===(o=null===h||void 0===h?void 0:h.cordova)||void 0===o?void 0:o.plugins)||void 0===a?void 0:a.browsertab)||void 0===l?void 0:l.isAvailable),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-browsertab"}),Wd("function"===typeof(null===(u=null===(c=null===h||void 0===h?void 0:h.cordova)||void 0===c?void 0:c.InAppBrowser)||void 0===u?void 0:u.open),e,"invalid-cordova-configuration",{missingPlugin:"cordova-plugin-inappbrowser"})}(e);const i=await this._initialize(e);await i.initialized(),i.resetRedirect(),fg.clear(),await this._originValidation(e);const s=function(e,t){return{type:t,eventId:arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,urlResponse:null,sessionId:ly(),postBody:null,tenantId:e.tenantId,error:zd(e,"no-auth-event")}}(e,n,r);await function(e,t){return cy()._set(uy(e),t)}(e,s);const o=await ry(e,s,t);return async function(e,t,n){const{cordova:r}=ny();let i=()=>{};try{await new Promise(((s,o)=>{let a=null;function l(){var e;s();const t=null===(e=r.plugins.browsertab)||void 0===e?void 0:e.close;"function"===typeof t&&t(),"function"===typeof(null===n||void 0===n?void 0:n.close)&&n.close()}function c(){a||(a=window.setTimeout((()=>{o(zd(e,"redirect-cancelled-by-user"))}),2e3))}function u(){"visible"===(null===document||void 0===document?void 0:document.visibilityState)&&c()}t.addPassiveListener(l),document.addEventListener("resume",c,!1),zf()&&document.addEventListener("visibilitychange",u,!1),i=()=>{t.removePassiveListener(l),document.removeEventListener("resume",c,!1),document.removeEventListener("visibilitychange",u,!1),a&&window.clearTimeout(a)}}))}finally{i()}}(e,i,await iy(o))}_isIframeWebStorageSupported(e,t){throw new Error("Method not implemented.")}_originValidation(e){const t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=async function(e){const{BuildInfo:t}=ny(),n={};$f()?n.iosBundleId=t.packageName:zf()?n.androidPackageName=t.packageName:Ud(e,"operation-not-supported-in-this-environment"),await Ig(e,n)}(e)),this.originValidationPromises[t]}attachCallbackListeners(e,t){const{universalLinks:n,handleOpenURL:r,BuildInfo:i}=ny(),s=setTimeout((async()=>{await oy(e),t.onEvent(fy())}),500),o=async n=>{clearTimeout(s);const r=await oy(e);let i=null;r&&(null===n||void 0===n?void 0:n.url)&&(i=ay(r,n.url)),t.onEvent(i||fy())};"undefined"!==typeof n&&"function"===typeof n.subscribe&&n.subscribe(null,o);const a=r,l=`${i.packageName.toLowerCase()}://`;ny().handleOpenURL=async e=>{if(e.toLowerCase().startsWith(l)&&o({url:e}),"function"===typeof a)try{a(e)}catch(vL){console.error(vL)}}}};function fy(){return{type:"unknown",eventId:null,sessionId:null,urlResponse:null,postBody:null,tenantId:null,error:zd("no-auth-event")}}function py(){var e;return(null===(e=null===self||void 0===self?void 0:self.location)||void 0===e?void 0:e.protocol)||null}function my(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return!("file:"!==py()&&"ionic:"!==py()&&"capacitor:"!==py()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function gy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return gu()&&11===(null===document||void 0===document?void 0:document.documentMode)||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hu();return/Edge\/\d+/.test(e)}(e)}function yy(){try{const e=self.localStorage,t=Dm();if(e)return e.setItem(t,"1"),e.removeItem(t),!gy()||vu()}catch(vL){return vy()&&vu()}return!1}function vy(){return"undefined"!==typeof n.g&&"WorkerGlobalScope"in n.g&&"importScripts"in n.g}function by(){return("http:"===py()||"https:"===py()||pu()||my())&&!(mu()||du())&&yy()&&!vy()}function wy(){return my()&&"undefined"!==typeof document}
2const _y={LOCAL:"local",NONE:"none",SESSION:"session"},Ty=Wd,xy="persistence";async function Ey(e){await e._initializationPromise;const t=Sy(),n=Of(xy,e.config.apiKey,e.name);t&&t.setItem(n,e._getPersistenceType())}function Sy(){var e;try{return(null===(e="undefined"!==typeof window?window:null)||void 0===e?void 0:e.sessionStorage)||null}catch(vL){return null}}const ky=Wd;class Iy{constructor(){this.browserResolver=Nf(Gg),this.cordovaResolver=Nf(dy),this.underlyingResolver=null,this._redirectPersistence=Nm,this._completeRedirectFn=Tg,this._overrideRedirectResult=gg}async _initialize(e){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._initialize(e)}async _openPopup(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openPopup(e,t,n,r)}async _openRedirect(e,t,n,r){return await this.selectUnderlyingResolver(),this.assertedUnderlyingResolver._openRedirect(e,t,n,r)}_isIframeWebStorageSupported(e,t){this.assertedUnderlyingResolver._isIframeWebStorageSupported(e,t)}_originValidation(e){return this.assertedUnderlyingResolver._originValidation(e)}get _shouldInitProactively(){return wy()||this.browserResolver._shouldInitProactively}get assertedUnderlyingResolver(){return ky(this.underlyingResolver,"internal-error"),this.underlyingResolver}async selectUnderlyingResolver(){if(this.underlyingResolver)return;const e=await async function(){return!!wy()&&new Promise((e=>{const t=setTimeout((()=>{e(!1)}),1e3);document.addEventListener("deviceready",(()=>{clearTimeout(t),e(!0)}))}))}();this.underlyingResolver=e?this.cordovaResolver:this.browserResolver}}function Cy(e){return e.unwrap()}function Ay(e,t){var n;const r=null===(n=t.customData)||void 0===n?void 0:n._tokenResponse;if("auth/multi-factor-auth-required"===(null===t||void 0===t?void 0:t.code)){t.resolver=new Dy(e,function(e,t){var n;const r=Nu(e),i=t;return Wd(t.customData.operationType,r,"argument-error"),Wd(null===(n=i.customData._serverResponse)||void 0===n?void 0:n.mfaPendingCredential,r,"argument-error"),bm._fromError(r,i)}(e,t))}else if(r){const e=Py(t),n=t;e&&(n.credential=e,n.tenantId=r.tenantId||void 0,n.email=r.email||void 0,n.phoneNumber=r.phoneNumber||void 0)}}function Py(e){const{_tokenResponse:t}=e instanceof bu?e.customData:e;if(!t)return null;if(!(e instanceof bu)&&"temporaryProof"in t&&"phoneNumber"in t)return ig.credentialFromResult(e);const n=t.providerId;if(!n||n===kd)return null;let r;switch(n){case Sd:r=Dp;break;case xd:r=Rp;break;case Ed:r=Op;break;case Id:r=Mp;break;default:const{oauthIdToken:e,oauthAccessToken:i,oauthTokenSecret:s,pendingToken:o,nonce:a}=t;return i||s||e||o?o?n.startsWith("saml.")?Lp._create(n,o):xp._fromParams({providerId:n,signInMethod:n,pendingToken:o,idToken:e,accessToken:i}):new Np(n).credential({idToken:e,accessToken:i,rawNonce:a}):null}return e instanceof bu?r.credentialFromError(e):r.credentialFromResult(e)}function Ny(e,t){return t.catch((t=>{throw t instanceof bu&&Ay(e,t),t})).then((e=>{const t=e.operationType,n=e.user;return{operationType:t,credential:(r=e,Py(r)),additionalUserInfo:ym(e),user:Oy.getOrCreate(n)};var r}))}async function Ry(e,t){const n=await t;return{verificationId:n.verificationId,confirm:t=>Ny(e,n.confirm(t))}}class Dy{constructor(e,t){this.resolver=t,this.auth=e.wrapped()}get session(){return this.resolver.session}get hints(){return this.resolver.hints}resolveSignIn(e){return Ny(Cy(this.auth),this.resolver.resolveSignIn(e))}}class Oy{constructor(e){this._delegate=e,this.multiFactor=function(e){const t=Nu(e);return Tm.has(t)||Tm.set(t,_m._fromUser(t)),Tm.get(t)}(e)}static getOrCreate(e){return Oy.USER_MAP.has(e)||Oy.USER_MAP.set(e,new Oy(e)),Oy.USER_MAP.get(e)}delete(){return this._delegate.delete()}reload(){return this._delegate.reload()}toJSON(){return this._delegate.toJSON()}getIdTokenResult(e){return this._delegate.getIdTokenResult(e)}getIdToken(e){return this._delegate.getIdToken(e)}linkAndRetrieveDataWithCredential(e){return this.linkWithCredential(e)}async linkWithCredential(e){return Ny(this.auth,Yp(this._delegate,e))}async linkWithPhoneNumber(e,t){return Ry(this.auth,async function(e,t,n){const r=Nu(e);await Wp(!1,r,"phone");const i=await ng(r.auth,t,Nu(n));return new tg(i,(e=>Yp(r,e)))}(this._delegate,e,t))}async linkWithPopup(e){return Ny(this.auth,async function(e,t,n){const r=Nu(e);$d(r.auth,t,Ap);const i=sg(r.auth,n);return new dg(r.auth,"linkViaPopup",t,i,r).executeNotNull()}(this._delegate,e,Iy))}async linkWithRedirect(e){return await Ey(Yf(this.auth)),_g(this._delegate,e,Iy)}reauthenticateAndRetrieveDataWithCredential(e){return this.reauthenticateWithCredential(e)}async reauthenticateWithCredential(e){return Ny(this.auth,Xp(this._delegate,e))}reauthenticateWithPhoneNumber(e,t){return Ry(this.auth,async function(e,t,n){const r=Nu(e);if(Wh(r.auth.app))return Promise.reject(qd(r.auth));const i=await ng(r.auth,t,Nu(n));return new tg(i,(e=>Xp(r,e)))}(this._delegate,e,t))}reauthenticateWithPopup(e){return Ny(this.auth,async function(e,t,n){const r=Nu(e);if(Wh(r.auth.app))return Promise.reject(zd(r.auth,"operation-not-supported-in-this-environment"));$d(r.auth,t,Ap);const i=sg(r.auth,n);return new dg(r.auth,"reauthViaPopup",t,i,r).executeNotNull()}(this._delegate,e,Iy))}async reauthenticateWithRedirect(e){return await Ey(Yf(this.auth)),wg(this._delegate,e,Iy)}sendEmailVerification(e){return am(this._delegate,e)}async unlink(e){return await $p(this._delegate,e),this}updateEmail(e){return function(e,t){const n=Nu(e);return Wh(n.auth.app)?Promise.reject(qd(n.auth)):um(n,t,null)}(this._delegate,e)}updatePassword(e){return function(e,t){return um(Nu(e),null,t)}(this._delegate,e)}updatePhoneNumber(e){return async function(e,t){const n=Nu(e);if(Wh(n.auth.app))return Promise.reject(qd(n.auth));await Hp(n,t)}(this._delegate,e)}updateProfile(e){return cm(this._delegate,e)}verifyBeforeUpdateEmail(e,t){return lm(this._delegate,e,t)}get emailVerified(){return this._delegate.emailVerified}get isAnonymous(){return this._delegate.isAnonymous}get metadata(){return this._delegate.metadata}get phoneNumber(){return this._delegate.phoneNumber}get providerData(){return this._delegate.providerData}get refreshToken(){return this._delegate.refreshToken}get tenantId(){return this._delegate.tenantId}get displayName(){return this._delegate.displayName}get email(){return this._delegate.email}get photoURL(){return this._delegate.photoURL}get providerId(){return this._delegate.providerId}get uid(){return this._delegate.uid}get auth(){return this._delegate.auth}}Oy.USER_MAP=new WeakMap;const Ly=Wd;class jy{constructor(e,t){if(this.app=e,t.isInitialized())return this._delegate=t.getImmediate(),void this.linkUnderlyingAuth();const{apiKey:n}=e.options;
2Ly(n,"invalid-api-key",{appName:e.name}),Ly(n,"invalid-api-key",{appName:e.name});const r="undefined"!==typeof window?Iy:void 0;this._delegate=t.initialize({options:{persistence:Fy(n,e.name),popupRedirectResolver:r}}),this._delegate._updateErrorMap(Ld),this.linkUnderlyingAuth()}get emulatorConfig(){return this._delegate.emulatorConfig}get currentUser(){return this._delegate.currentUser?Oy.getOrCreate(this._delegate.currentUser):null}get languageCode(){return this._delegate.languageCode}set languageCode(e){this._delegate.languageCode=e}get settings(){return this._delegate.settings}get tenantId(){return this._delegate.tenantId}set tenantId(e){this._delegate.tenantId=e}useDeviceLanguage(){this._delegate.useDeviceLanguage()}signOut(){return this._delegate.signOut()}useEmulator(e,t){hp(this._delegate,e,t)}applyActionCode(e){return im(this._delegate,e)}checkActionCode(e){return sm(this._delegate,e)}confirmPasswordReset(e,t){return async function(e,t,n){await mp(Nu(e),{oobCode:t,newPassword:n}).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&rm(e),t}))}(this._delegate,e,t)}async createUserWithEmailAndPassword(e,t){return Ny(this._delegate,async function(e,t,n){if(Wh(e.app))return Promise.reject(qd(e));const r=Yf(e),i=cp(r,{returnSecureToken:!0,email:t,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Fp,"EMAIL_PASSWORD_PROVIDER"),s=await i.catch((t=>{throw"auth/password-does-not-meet-requirements"===t.code&&rm(e),t})),o=await Vp._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(o.user),o}(this._delegate,e,t))}fetchProvidersForEmail(e){return this.fetchSignInMethodsForEmail(e)}fetchSignInMethodsForEmail(e){return om(this._delegate,e)}isSignInWithEmailLink(e){return function(e,t){const n=Ip.parseLink(t);return"EMAIL_SIGNIN"===(null===n||void 0===n?void 0:n.operation)}(this._delegate,e)}async getRedirectResult(){Ly(by(),this._delegate,"operation-not-supported-in-this-environment");const e=await async function(e,t){return await Yf(e)._initializationPromise,Tg(e,t,!1)}(this._delegate,Iy);return e?Ny(this._delegate,Promise.resolve(e)):{credential:null,user:null}}addFrameworkForLogging(e){!function(e,t){Yf(e)._logFramework(t)}(this._delegate,e)}onAuthStateChanged(e,t,n){const{next:r,error:i,complete:s}=My(e,t,n);return this._delegate.onAuthStateChanged(r,i,s)}onIdTokenChanged(e,t,n){const{next:r,error:i,complete:s}=My(e,t,n);return this._delegate.onIdTokenChanged(r,i,s)}sendSignInLinkToEmail(e,t){return async function(e,t,n){const r=Yf(e),i={requestType:"EMAIL_SIGNIN",email:t,clientType:"CLIENT_TYPE_WEB"};!function(e,t){Wd(t.handleCodeInApp,r,"argument-error"),t&&nm(r,e,t)}(i,n),await cp(r,i,"getOobCode",wp,"EMAIL_PASSWORD_PROVIDER")}(this._delegate,e,t)}sendPasswordResetEmail(e,t){return async function(e,t,n){const r=Yf(e),i={requestType:"PASSWORD_RESET",email:t,clientType:"CLIENT_TYPE_WEB"};n&&nm(r,i,n),await cp(r,i,"getOobCode",bp,"EMAIL_PASSWORD_PROVIDER")}(this._delegate,e,t||void 0)}async setPersistence(e){let t;switch(function(e,t){Ty(Object.values(_y).includes(t),e,"invalid-persistence-type"),mu()?Ty(t!==_y.SESSION,e,"unsupported-persistence-type"):du()?Ty(t===_y.NONE,e,"unsupported-persistence-type"):vy()?Ty(t===_y.NONE||t===_y.LOCAL&&vu(),e,"unsupported-persistence-type"):Ty(t===_y.NONE||yy(),e,"unsupported-persistence-type")}(this._delegate,e),e){case _y.SESSION:t=Nm;break;case _y.LOCAL:t=await Nf(Wm)._isAvailable()?Wm:km;break;case _y.NONE:t=Df;break;default:return Ud("argument-error",{appName:this._delegate.name})}return this._delegate.setPersistence(t)}signInAndRetrieveDataWithCredential(e){return this.signInWithCredential(e)}signInAnonymously(){return Ny(this._delegate,async function(e){var t;if(Wh(e.app))return Promise.reject(qd(e));const n=Yf(e);if(await n._initializationPromise,null===(t=n.currentUser)||void 0===t?void 0:t.isAnonymous)return new Vp({user:n.currentUser,providerId:null,operationType:"signIn"});const r=await Fp(n,{returnSecureToken:!0}),i=await Vp._fromIdTokenResponse(n,"signIn",r,!0);return await n._updateCurrentUser(i.user),i}(this._delegate))}signInWithCredential(e){return Ny(this._delegate,Qp(this._delegate,e))}signInWithCustomToken(e){return Ny(this._delegate,Jp(this._delegate,e))}signInWithEmailAndPassword(e,t){return Ny(this._delegate,function(e,t,n){return Wh(e.app)?Promise.reject(qd(e)):Qp(Nu(e),Cp.credential(t,n)).catch((async t=>{throw"auth/password-does-not-meet-requirements"===t.code&&rm(e),t}))}(this._delegate,e,t))}signInWithEmailLink(e,t){return Ny(this._delegate,async function(e,t,n){if(Wh(e.app))return Promise.reject(qd(e));const r=Nu(e),i=Cp.credentialWithLink(t,n||Qd());return Wd(i._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),Qp(r,i)}(this._delegate,e,t))}signInWithPhoneNumber(e,t){return Ry(this._delegate,async function(e,t,n){if(Wh(e.app))return Promise.reject(qd(e));const r=Yf(e),i=await ng(r,t,Nu(n));return new tg(i,(e=>Qp(r,e)))}(this._delegate,e,t))}async signInWithPopup(e){return Ly(by(),this._delegate,"operation-not-supported-in-this-environment"),Ny(this._delegate,async function(e,t,n){if(Wh(e.app))return Promise.reject(zd(e,"operation-not-supported-in-this-environment"));const r=Yf(e);$d(e,t,Ap);const i=sg(r,n);return new dg(r,"signInViaPopup",t,i).executeNotNull()}(this._delegate,e,Iy))}async signInWithRedirect(e){return Ly(by(),this._delegate,"operation-not-supported-in-this-environment"),await Ey(this._delegate),bg(this._delegate,e,Iy)}updateCurrentUser(e){return this._delegate.updateCurrentUser(e)}verifyPasswordResetCode(e){return async function(e,t){const{data:n}=await sm(Nu(e),t);return n.email}(this._delegate,e)}unwrap(){return this._delegate}_delete(){return this._delegate._delete()}linkUnderlyingAuth(){this._delegate.wrapped=()=>this}}function My(e,t,n){let r=e;"function"!==typeof e&&({next:r,error:t,complete:n}=e);const i=r;return{next:e=>i(e&&Oy.getOrCreate(e)),error:t,complete:n}}function Fy(e,t){const n=function(e,t){const n=Sy();if(!n)return[];const r=Of(xy,e,t);switch(n.getItem(r)){case _y.NONE:return[Df];case _y.LOCAL:return[Wm,Nm];case _y.SESSION:return[Nm];default:return[]}}(e,t);if("undefined"===typeof self||n.includes(Wm)||n.push(Wm),"undefined"!==typeof window)for(const r of[km,Nm])n.includes(r)||n.push(r);return n.includes(Df)||n.push(Df),n}jy.Persistence=_y;class Vy{static credential(e,t){return ig.credential(e,t)}constructor(){this.providerId="phone",this._delegate=new ig(Cy(_d.auth()))}verifyPhoneNumber(e,t){return this._delegate.verifyPhoneNumber(e,t)}unwrap(){return this._delegate}}Vy.PHONE_SIGN_IN_METHOD=ig.PHONE_SIGN_IN_METHOD,Vy.PROVIDER_ID=ig.PROVIDER_ID;const Uy=Wd;class zy{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_d.app();var r;Uy(null===(r=n.options)||void 0===r?void 0:r.apiKey,"invalid-api-key",{appName:n.name}),this._delegate=new eg(n.auth(),e,t),this.type=this._delegate.type}clear(){this._delegate.clear()}render(){return this._delegate.render()}verify(){return this._delegate.verify()}}var By;(By=_d).INTERNAL.registerComponent(new Ru("auth-compat",(e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("auth");return new jy(t,n)}),"PUBLIC").setServiceProps({ActionCodeInfo:{Operation:{EMAIL_SIGNIN:Cd,PASSWORD_RESET:Ad,RECOVER_EMAIL:Pd,REVERT_SECOND_FACTOR_ADDITION:Nd,VERIFY_AND_CHANGE_EMAIL:Rd,VERIFY_EMAIL:Dd}},EmailAuthProvider:Cp,FacebookAuthProvider:Rp,GithubAuthProvider:Op,GoogleAuthProvider:Dp,OAuthProvider:Np,SAMLAuthProvider:jp,PhoneAuthProvider:Vy,PhoneMultiFactorGenerator:Xg,RecaptchaVerifier:zy,TwitterAuthProvider:Mp,Auth:jy,AuthCredential:pp,Error:bu}).setInstantiationMode("LAZY").setMultipleInstances(!1)),By.registerVersion("@firebase/auth-compat","0.5.20");var qy,$y,Hy="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},Wy={};(function(){var e;function t(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function n(e,t,n){n||(n=0);var r=Array(16);if("string"===typeof t)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var s=e.g[3],o=t+(s^n&(i^s))+r[0]+3614090360&4294967295;o=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=(n=(i=(s=(t=n+(o<<7&4294967295|o>>>25))+((o=s+(i^t&(n^i))+r[1]+3905402710&4294967295)<<12&4294967295|o>>>20))+((o=i+(n^s&(t^n))+r[2]+606105819&4294967295)<<17&4294967295|o>>>15))+((o=n+(t^i&(s^t))+r[3]+3250441966&4294967295)<<22&4294967295|o>>>10))+((o=t+(s^n&(i^s))+r[4]+4118548399&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^t&(n^i))+r[5]+1200080426&4294967295)<<12&4294967295|o>>>20))+((o=i+(n^s&(t^n))+r[6]+2821735955&4294967295)<<17&4294967295|o>>>15))+((o=n+(t^i&(s^t))+r[7]+4249261313&4294967295)<<22&4294967295|o>>>10))+((o=t+(s^n&(i^s))+r[8]+1770035416&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^t&(n^i))+r[9]+2336552879&4294967295)<<12&4294967295|o>>>20))+((o=i+(n^s&(t^n))+r[10]+4294925233&4294967295)<<17&4294967295|o>>>15))+((o=n+(t^i&(s^t))+r[11]+2304563134&4294967295)<<22&4294967295|o>>>10))+((o=t+(s^n&(i^s))+r[12]+1804603682&4294967295)<<7&4294967295|o>>>25))+((o=s+(i^t&(n^i))+r[13]+4254626195&4294967295)<<12&4294967295|o>>>20))+((o=i+(n^s&(t^n))+r[14]+2792965006&4294967295)<<17&4294967295|o>>>15))+((o=n+(t^i&(s^t))+r[15]+1236535329&4294967295)<<22&4294967295|o>>>10))+((o=t+(i^s&(n^i))+r[1]+4129170786&4294967295)<<5&4294967295|o>>>27))+((o=s+(n^i&(t^n))+r[6]+3225465664&4294967295)<<9&4294967295|o>>>23))+((o=i+(t^n&(s^t))+r[11]+643717713&4294967295)<<14&4294967295|o>>>18))+((o=n+(s^t&(i^s))+r[0]+3921069994&4294967295)<<20&4294967295|o>>>
212))+((o=t+(i^s&(n^i))+r[5]+3593408605&4294967295)<<5&4294967295|o>>>27))+((o=s+(n^i&(t^n))+r[10]+38016083&4294967295)<<9&4294967295|o>>>23))+((o=i+(t^n&(s^t))+r[15]+3634488961&4294967295)<<14&4294967295|o>>>18))+((o=n+(s^t&(i^s))+r[4]+3889429448&4294967295)<<20&4294967295|o>>>12))+((o=t+(i^s&(n^i))+r[9]+568446438&4294967295)<<5&4294967295|o>>>27))+((o=s+(n^i&(t^n))+r[14]+3275163606&4294967295)<<9&4294967295|o>>>23))+((o=i+(t^n&(s^t))+r[3]+4107603335&4294967295)<<14&4294967295|o>>>18))+((o=n+(s^t&(i^s))+r[8]+1163531501&4294967295)<<20&4294967295|o>>>12))+((o=t+(i^s&(n^i))+r[13]+2850285829&4294967295)<<5&4294967295|o>>>27))+((o=s+(n^i&(t^n))+r[2]+4243563512&4294967295)<<9&4294967295|o>>>23))+((o=i+(t^n&(s^t))+r[7]+1735328473&4294967295)<<14&4294967295|o>>>18))+((o=n+(s^t&(i^s))+r[12]+2368359562&4294967295)<<20&4294967295|o>>>12))+((o=t+(n^i^s)+r[5]+4294588738&4294967295)<<4&4294967295|o>>>28))+((o=s+(t^n^i)+r[8]+2272392833&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^t^n)+r[11]+1839030562&4294967295)<<16&4294967295|o>>>16))+((o=n+(i^s^t)+r[14]+4259657740&4294967295)<<23&4294967295|o>>>9))+((o=t+(n^i^s)+r[1]+2763975236&4294967295)<<4&4294967295|o>>>28))+((o=s+(t^n^i)+r[4]+1272893353&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^t^n)+r[7]+4139469664&4294967295)<<16&4294967295|o>>>16))+((o=n+(i^s^t)+r[10]+3200236656&4294967295)<<23&4294967295|o>>>9))+((o=t+(n^i^s)+r[13]+681279174&4294967295)<<4&4294967295|o>>>28))+((o=s+(t^n^i)+r[0]+3936430074&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^t^n)+r[3]+3572445317&4294967295)<<16&4294967295|o>>>16))+((o=n+(i^s^t)+r[6]+76029189&4294967295)<<23&4294967295|o>>>9))+((o=t+(n^i^s)+r[9]+3654602809&4294967295)<<4&4294967295|o>>>28))+((o=s+(t^n^i)+r[12]+3873151461&4294967295)<<11&4294967295|o>>>21))+((o=i+(s^t^n)+r[15]+530742520&4294967295)<<16&4294967295|o>>>16))+((o=n+(i^s^t)+r[2]+3299628645&4294967295)<<23&4294967295|o>>>9))+((o=t+(i^(n|~s))+r[0]+4096336452&4294967295)<<6&4294967295|o>>>26))+((o=s+(n^(t|~i))+r[7]+1126891415&4294967295)<<10&4294967295|o>>>22))+((o=i+(t^(s|~n))+r[14]+2878612391&4294967295)<<15&4294967295|o>>>17))+((o=n+(s^(i|~t))+r[5]+4237533241&4294967295)<<21&4294967295|o>>>11))+((o=t+(i^(n|~s))+r[12]+1700485571&4294967295)<<6&4294967295|o>>>26))+((o=s+(n^(t|~i))+r[3]+2399980690&4294967295)<<10&4294967295|o>>>22))+((o=i+(t^(s|~n))+r[10]+4293915773&4294967295)<<15&4294967295|o>>>17))+((o=n+(s^(i|~t))+r[1]+2240044497&4294967295)<<21&4294967295|o>>>11))+((o=t+(i^(n|~s))+r[8]+1873313359&4294967295)<<6&4294967295|o>>>26))+((o=s+(n^(t|~i))+r[15]+4264355552&4294967295)<<10&4294967295|o>>>22))+((o=i+(t^(s|~n))+r[6]+2734768916&4294967295)<<15&4294967295|o>>>17))+((o=n+(s^(i|~t))+r[13]+1309151649&4294967295)<<21&4294967295|o>>>11))+((s=(t=n+((o=t+(i^(n|~s))+r[4]+4149444226&4294967295)<<6&4294967295|o>>>26))+((o=s+(n^(t|~i))+r[11]+3174756917&4294967295)<<10&4294967295|o>>>22))^((i=s+((o=i+(t^(s|~n))+r[2]+718787259&4294967295)<<15&4294967295|o>>>17))|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(o<<21&4294967295|o>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+s&4294967295}function r(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var s=0|e[i];r&&s==t||(n[i]=s,r=!1)}this.g=n}!function(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}(t,(function(){this.blockSize=-1})),t.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0},t.prototype.u=function(e,t){void 0===t&&(t=e.length);for(var r=t-this.blockSize,i=this.B,s=this.h,o=0;o<t;){if(0==s)for(;o<=r;)n(this,e,o),o+=this.blockSize;if("string"===typeof e){for(;o<t;)if(i[s++]=e.charCodeAt(o++),s==this.blockSize){n(this,i),s=0;break}}else for(;o<t;)if(i[s++]=e[o++],s==this.blockSize){n(this,i),s=0;break}}this.h=s,this.o+=t},t.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=255&n,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};var i={};function s(e){return-128<=e&&128>e?function(e,t){var n=i;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,(function(e){return new r([0|e],0>e?-1:0)})):new r([0|e],0>e?-1:0)}function o(e){if(isNaN(e)||!isFinite(e))return a;
2if(0>e)return d(o(-e));for(var t=[],n=1,i=0;e>=n;i++)t[i]=e/n|0,n*=4294967296;return new r(t,0)}var a=s(0),l=s(1),c=s(16777216);function u(e){if(0!=e.h)return!1;for(var t=0;t<e.g.length;t++)if(0!=e.g[t])return!1;return!0}function h(e){return-1==e.h}function d(e){for(var t=e.g.length,n=[],i=0;i<t;i++)n[i]=~e.g[i];return new r(n,~e.h).add(l)}function f(e,t){return e.add(d(t))}function p(e,t){for(;(65535&e[t])!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function m(e,t){this.g=e,this.h=t}function g(e,t){if(u(t))throw Error("division by zero");if(u(e))return new m(a,a);if(h(e))return t=g(d(e),t),new m(d(t.g),d(t.h));if(h(t))return t=g(e,d(t)),new m(d(t.g),t.h);if(30<e.g.length){if(h(e)||h(t))throw Error("slowDivide_ only works with positive integers.");for(var n=l,r=t;0>=r.l(e);)n=y(n),r=y(r);var i=v(n,1),s=v(r,1);for(r=v(r,2),n=v(n,2);!u(r);){var c=s.add(r);0>=c.l(e)&&(i=i.add(n),s=c),r=v(r,1),n=v(n,1)}return t=f(e,i.j(t)),new m(i,t)}for(i=a;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=48>=(r=Math.ceil(Math.log(n)/Math.LN2))?1:Math.pow(2,r-48),c=(s=o(n)).j(t);h(c)||0<c.l(e);)c=(s=o(n-=r)).j(t);u(s)&&(s=l),i=i.add(s),e=f(e,c)}return new m(i,e)}function y(e){for(var t=e.g.length+1,n=[],i=0;i<t;i++)n[i]=e.i(i)<<1|e.i(i-1)>>>31;return new r(n,e.h)}function v(e,t){var n=t>>5;t%=32;for(var i=e.g.length-n,s=[],o=0;o<i;o++)s[o]=0<t?e.i(o+n)>>>t|e.i(o+n+1)<<32-t:e.i(o+n);return new r(s,e.h)}(e=r.prototype).m=function(){if(h(this))return-d(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(2>(e=e||10)||36<e)throw Error("radix out of range: "+e);if(u(this))return"0";if(h(this))return"-"+d(this).toString(e);for(var t=o(Math.pow(e,6)),n=this,r="";;){var i=g(n,t).g,s=((0<(n=f(n,i.j(t))).g.length?n.g[0]:n.h)>>>0).toString(e);if(u(n=i))return s+r;for(;6>s.length;)s="0"+s;r=s+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h},e.l=function(e){return h(e=f(this,e))?-1:u(e)?0:1},e.abs=function(){return h(this)?d(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0,s=0;s<=t;s++){var o=i+(65535&this.i(s))+(65535&e.i(s)),a=(o>>>16)+(this.i(s)>>>16)+(e.i(s)>>>16);i=a>>>16,o&=65535,a&=65535,n[s]=a<<16|o}return new r(n,-2147483648&n[n.length-1]?-1:0)},e.j=function(e){if(u(this)||u(e))return a;if(h(this))return h(e)?d(this).j(d(e)):d(d(this).j(e));if(h(e))return d(this.j(d(e)));if(0>this.l(c)&&0>e.l(c))return o(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],i=0;i<2*t;i++)n[i]=0;for(i=0;i<this.g.length;i++)for(var s=0;s<e.g.length;s++){var l=this.i(i)>>>16,f=65535&this.i(i),m=e.i(s)>>>16,g=65535&e.i(s);n[2*i+2*s]+=f*g,p(n,2*i+2*s),n[2*i+2*s+1]+=l*g,p(n,2*i+2*s+1),n[2*i+2*s+1]+=f*m,p(n,2*i+2*s+1),n[2*i+2*s+2]+=l*m,p(n,2*i+2*s+2)}for(i=0;i<t;i++)n[i]=n[2*i+1]<<16|n[2*i];for(i=t;i<2*t;i++)n[i]=0;return new r(n,0)},e.A=function(e){return g(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)&e.i(i);return new r(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)|e.i(i);return new r(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],i=0;i<t;i++)n[i]=this.i(i)^e.i(i);return new r(n,this.h^e.h)},t.prototype.digest=t.prototype.v,t.prototype.reset=t.prototype.s,t.prototype.update=t.prototype.u,$y=Wy.Md5=t,r.prototype.add=r.prototype.add,r.prototype.multiply=r.prototype.j,r.prototype.modulo=r.prototype.A,r.prototype.compare=r.prototype.l,r.prototype.toNumber=r.prototype.m,r.prototype.toString=r.prototype.toString,r.prototype.getBits=r.prototype.i,r.fromNumber=o,r.fromString=function e(t,n){if(0==t.length)throw Error("number format error: empty string");if(2>(n=n||10)||36<n)throw Error("radix out of range: "+n);if("-"==t.charAt(0))return d(e(t.substring(1),n));if(0<=t.indexOf("-"))throw Error('number format error: interior "-" character');for(var r=o(Math.pow(n,8)),i=a,s=0;s<t.length;s+=8){var l=Math.min(8,t.length-s),c=parseInt(t.substring(s,s+l),n);8>l?(l=o(Math.pow(n,l)),i=i.j(l).add(o(c))):i=(i=i.j(r)).add(o(c))}return i},qy=Wy.Integer=r}).apply("undefined"!==typeof Hy?Hy:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});var Ky,Gy,Qy,Yy,Xy,Jy,Zy,ev,tv="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{},nv={};(function(){var e,t="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var n=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof tv&&tv];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error("Cannot find global object")}(this);!function(e,r){if(r)e:{var i=n;e=e.split(".");for(var s=0;s<e.length-1;s++){var o=e[s];if(!(o in i))break e;i=i[o]}(r=r(s=i[e=e[e.length-1]]))!=s&&null!=r&&t(i,e,{configurable:!0,writable:!0,value:r})}}("Array.prototype.values",(function(e){return e||function(){return function(e,t){e instanceof String&&(e+="");var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}(this,(function(e,t){return t}))}}));var r=r||{},i=this||self;function s(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 o(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}function a(e,t,n){return e.call.apply(e.bind,arguments)}function l(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)}}
2function c(e,t,n){return(c=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?a:l).apply(null,arguments)}function u(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 h(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),s=2;s<arguments.length;s++)i[s-2]=arguments[s];return t.prototype[n].apply(e,i)}}function d(e){const t=e.length;if(0<t){const n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function f(e,t){for(let n=1;n<arguments.length;n++){const t=arguments[n];if(s(t)){const n=e.length||0,r=t.length||0;e.length=n+r;for(let i=0;i<r;i++)e[n+i]=t[i]}else e.push(t)}}function p(e){return/^[\s\xa0]*$/.test(e)}function m(){var e=i.navigator;return e&&(e=e.userAgent)?e:""}function g(e){return g[" "](e),e}g[" "]=function(){};var y=-1!=m().indexOf("Gecko")&&!(-1!=m().toLowerCase().indexOf("webkit")&&-1==m().indexOf("Edge"))&&!(-1!=m().indexOf("Trident")||-1!=m().indexOf("MSIE"))&&-1==m().indexOf("Edge");function v(e,t,n){for(const r in e)t.call(n,e[r],r,e)}function b(e){const t={};for(const n in e)t[n]=e[n];return t}const w="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function _(e,t){let n,r;for(let i=1;i<arguments.length;i++){for(n in r=arguments[i],r)e[n]=r[n];for(let t=0;t<w.length;t++)n=w[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function T(e){var t=1;e=e.split(":");const n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(":")),n}function x(e){i.setTimeout((()=>{throw e}),0)}function E(){var e=A;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var S=new class{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}((()=>new k),(e=>e.reset()));class k{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let I,C=!1,A=new class{constructor(){this.h=this.g=null}add(e,t){const n=S.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}},P=()=>{const e=i.Promise.resolve(void 0);I=()=>{e.then(N)}};var N=()=>{for(var e;e=E();){try{e.h.call(e.g)}catch(n){x(n)}var t=S;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}C=!1};function R(){this.s=this.s,this.C=this.C}function D(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}R.prototype.s=!1,R.prototype.ma=function(){this.s||(this.s=!0,this.N())},R.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},D.prototype.h=function(){this.defaultPrevented=!0};var O=function(){if(!i.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{const e=()=>{};i.addEventListener("test",e,t),i.removeEventListener("test",e,t)}catch(n){}return e}();function L(e,t){if(D.call(this,e?e.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(y){e:{try{g(t.nodeName);var i=!0;break e}catch(s){}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:j[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&L.aa.h.call(this)}}h(L,D);var j={2:"touch",3:"pen",4:"mouse"};L.prototype.h=function(){L.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var M="closure_listenable_"+(1e6*Math.random()|0),F=0;function V(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++F,this.da=this.fa=!1}function U(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function z(e){this.src=e,this.g={},this.h=0}function B(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],s=Array.prototype.indexOf.call(i,t,void 0);(r=0<=s)&&Array.prototype.splice.call(i,s,1),r&&(U(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function q(e,t,n,r){for(var i=0;i<e.length;++i){var s=e[i];if(!s.da&&s.listener==t&&s.capture==!!n&&s.ha==r)return i}return-1}z.prototype.add=function(e,t,n,r,i){var s=e.toString();(e=this.g[s])||(e=this.g[s]=[],this.h++);
2var o=q(e,t,r,i);return-1<o?(t=e[o],n||(t.fa=!1)):((t=new V(t,this.src,s,!!r,i)).fa=n,e.push(t)),t};var $="closure_lm_"+(1e6*Math.random()|0),H={};function W(e,t,n,r,i){if(r&&r.once)return G(e,t,n,r,i);if(Array.isArray(t)){for(var s=0;s<t.length;s++)W(e,t[s],n,r,i);return null}return n=te(n),e&&e[M]?e.K(t,n,o(r)?!!r.capture:!!r,i):K(e,t,n,!1,r,i)}function K(e,t,n,r,i,s){if(!t)throw Error("Invalid event type");var a=o(i)?!!i.capture:!!i,l=Z(e);if(l||(e[$]=l=new z(e)),(n=l.add(t,n,r,a,s)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}const t=J;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)O||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(X(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function G(e,t,n,r,i){if(Array.isArray(t)){for(var s=0;s<t.length;s++)G(e,t[s],n,r,i);return null}return n=te(n),e&&e[M]?e.L(t,n,o(r)?!!r.capture:!!r,i):K(e,t,n,!0,r,i)}function Q(e,t,n,r,i){if(Array.isArray(t))for(var s=0;s<t.length;s++)Q(e,t[s],n,r,i);else r=o(r)?!!r.capture:!!r,n=te(n),e&&e[M]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=q(s=e.g[t],n,r,i))&&(U(s[n]),Array.prototype.splice.call(s,n,1),0==s.length&&(delete e.g[t],e.h--)))):e&&(e=Z(e))&&(t=e.g[t.toString()],e=-1,t&&(e=q(t,n,r,i)),(n=-1<e?t[e]:null)&&Y(n))}function Y(e){if("number"!==typeof e&&e&&!e.da){var t=e.src;if(t&&t[M])B(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(X(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Z(t))?(B(n,e),0==n.h&&(n.src=null,t[$]=null)):U(e)}}}function X(e){return e in H?H[e]:H[e]="on"+e}function J(e,t){if(e.da)e=!0;else{t=new L(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&Y(e),e=n.call(r,t)}return e}function Z(e){return(e=e[$])instanceof z?e:null}var ee="__closure_events_fn_"+(1e9*Math.random()>>>0);function te(e){return"function"===typeof e?e:(e[ee]||(e[ee]=function(t){return e.handleEvent(t)}),e[ee])}function ne(){R.call(this),this.i=new z(this),this.M=this,this.F=null}function re(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,"string"===typeof t)t=new D(t,e);else if(t instanceof D)t.target=t.target||e;else{var i=t;_(t=new D(r,e),i)}if(i=!0,n)for(var s=n.length-1;0<=s;s--){var o=t.g=n[s];i=ie(o,r,!0,t)&&i}if(i=ie(o=t.g=e,r,!0,t)&&i,i=ie(o,r,!1,t)&&i,n)for(s=0;s<n.length;s++)i=ie(o=t.g=n[s],r,!1,t)&&i}function ie(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,s=0;s<t.length;++s){var o=t[s];if(o&&!o.da&&o.capture==n){var a=o.listener,l=o.ha||o.src;o.fa&&B(e.i,o),i=!1!==a.call(l,r)&&i}}return i&&!r.defaultPrevented}function se(e,t,n){if("function"===typeof e)n&&(e=c(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=c(e.handleEvent,e)}return 2147483647<Number(t)?-1:i.setTimeout(e,t||0)}function oe(e){e.g=se((()=>{e.g=null,e.i&&(e.i=!1,oe(e))}),e.l);const t=e.h;e.h=null,e.m.apply(null,t)}h(ne,R),ne.prototype[M]=!0,ne.prototype.removeEventListener=function(e,t,n,r){Q(this,e,t,n,r)},ne.prototype.N=function(){if(ne.aa.N.call(this),this.i){var e,t=this.i;for(e in t.g){for(var n=t.g[e],r=0;r<n.length;r++)U(n[r]);delete t.g[e],t.h--}}this.F=null},ne.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},ne.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};class ae extends R{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:oe(this)}N(){super.N(),this.g&&(i.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function le(e){R.call(this),this.h=e,this.g={}}h(le,R);var ce=[];function ue(e){v(e.g,(function(e,t){this.g.hasOwnProperty(t)&&Y(e)}),e),e.g={}}le.prototype.N=function(){le.aa.N.call(this),ue(this)},le.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var he=i.JSON.stringify,de=i.JSON.parse,fe=class{stringify(e){return i.JSON.stringify(e,void 0)}parse(e){return i.JSON.parse(e,void 0)}};function pe(){}function me(e){return e.h||(e.h=e.i())}function ge(){}pe.prototype.h=null;var ye={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function ve(){D.call(this,"d")}function be(){D.call(this,"c")}h(ve,D),h(be,D);var we={},_e=null;function Te(){return _e=_e||new ne}function xe(e){D.call(this,we.La,e)}function Ee(e){const t=Te();re(t,new xe(t))}function Se(e,t){D.call(this,we.STAT_EVENT,e),this.stat=t}function ke(e){const t=Te();re(t,new Se(t,e))}function Ie(e,t){D.call(this,we.Ma,e),this.size=t}function Ce(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return i.setTimeout((function(){e()}),t)}function Ae(){this.g=!0}function Pe(e,t,n,r){e.info((function(){return"XMLHTTP TEXT ("+t+"): "+function(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var s=i[0];if("noop"!=s&&"stop"!=s&&"close"!=s)for(var o=1;o<i.length;o++)i[o]=""}}}return he(n)}catch(a){return t}}(e,n)+(r?" "+r:"")}))}we.La="serverreachability",h(xe,D),we.STAT_EVENT="statevent",h(Se,D),we.Ma="timingevent",h(Ie,D),Ae.prototype.xa=function(){this.g=!1},Ae.prototype.info=function(){};var Ne,Re={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},De={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"};function Oe(){}function Le(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new le(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new je}function je(){this.i=null,this.g="",this.h=!1}h(Oe,pe),Oe.prototype.g=function(){return new XMLHttpRequest},Oe.prototype.i=function(){return{}},Ne=new Oe;var Me={},Fe={};function Ve(e,t,n){e.L=1,e.v=ht(ot(t)),e.m=n,e.P=!0,Ue(e,null)}function Ue(e,t){e.F=Date.now(),qe(e),e.A=ot(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),St(n.i,"t",r),e.C=0,n=e.j.J,e.h=new je,e.g=fn(e.j,n?t:null,!e.m),
20<e.O&&(e.M=new ae(c(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var i="readystatechange";Array.isArray(i)||(i&&(ce[0]=i.toString()),i=ce);for(var s=0;s<i.length;s++){var o=W(n,i[s],r||t.handleEvent,!1,t.h||t);if(!o)break;t.g[o.key]=o}t=e.H?b(e.H):{},e.m?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.ea(e.A,e.u,e.m,t)):(e.u="GET",e.g.ea(e.A,e.u,null,t)),Ee(),function(e,t,n,r,i,s){e.info((function(){if(e.g)if(s)for(var o="",a=s.split("&"),l=0;l<a.length;l++){var c=a[l].split("=");if(1<c.length){var u=c[0];c=c[1];var h=u.split("_");o=2<=h.length&&"type"==h[1]?o+(u+"=")+c+"&":o+(u+"=redacted&")}}else o=null;else o=s;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+o}))}(e.i,e.u,e.A,e.l,e.R,e.m)}function ze(e){return!!e.g&&("GET"==e.u&&2!=e.L&&e.j.Ca)}function Be(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Fe:(n=Number(t.substring(n,r)),isNaN(n)?Me:(r+=1)+n>t.length?Fe:(t=t.slice(r,r+n),e.C=r+n,t))}function qe(e){e.S=Date.now()+e.I,$e(e,e.I)}function $e(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=Ce(c(e.ba,e),t)}function He(e){e.B&&(i.clearTimeout(e.B),e.B=null)}function We(e){0==e.j.G||e.J||ln(e.j,e)}function Ke(e){He(e);var t=e.M;t&&"function"==typeof t.ma&&t.ma(),e.M=null,ue(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function Ge(e,t){try{var n=e.j;if(0!=n.G&&(n.g==e||Ze(n.h,e)))if(!e.K&&Ze(n.h,e)&&3==n.G){try{var r=n.Da.g.parse(t)}catch(u){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){e:if(!n.u){if(n.g){if(!(n.g.F+3e3<e.F))break e;an(n),Yt(n)}rn(n),ke(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&0==n.v&&!n.C&&(n.C=Ce(c(n.Za,n),6e3));if(1>=Je(n.h)&&n.ca){try{n.ca()}catch(u){}n.ca=void 0}}else un(n,11)}else if((e.K||n.g==e)&&an(n),!p(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){let c=i[t];if(n.T=c[0],c=c[1],2==n.G)if("c"==c[0]){n.K=c[1],n.ia=c[2];const t=c[3];null!=t&&(n.la=t,n.j.info("VER="+n.la));const i=c[4];null!=i&&(n.Aa=i,n.j.info("SVER="+n.Aa));const u=c[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.L=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;const h=e.g;if(h){const e=h.g?h.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(e){var s=r.h;s.g||-1==e.indexOf("spdy")&&-1==e.indexOf("quic")&&-1==e.indexOf("h2")||(s.j=s.l,s.g=new Set,s.h&&(et(s,s.h),s.h=null))}if(r.D){const e=h.g?h.g.getResponseHeader("X-HTTP-Session-Id"):null;e&&(r.ya=e,ut(r.I,r.D,e))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info("Handshake RTT: "+n.R+"ms"));var o=e;if((r=n).qa=dn(r,r.J?r.ia:null,r.W),o.K){tt(r.h,o);var a=o,l=r.L;l&&(a.I=l),a.B&&(He(a),qe(a)),r.g=o}else nn(r);0<n.i.length&&Jt(n)}else"stop"!=c[0]&&"close"!=c[0]||un(n,7);else 3==n.G&&("stop"==c[0]||"close"==c[0]?"stop"==c[0]?un(n,7):Qt(n):"noop"!=c[0]&&n.l&&n.l.ta(c),n.v=0)}Ee()}catch(u){}}Le.prototype.ca=function(e){e=e.target;const t=this.M;t&&3==Ht(e)?t.j():this.Y(e)},Le.prototype.Y=function(e){try{if(e==this.g)e:{const d=Ht(this.g);var t=this.g.Ba();this.g.Z();if(!(3>d)&&(3!=d||this.g&&(this.h.h||this.g.oa()||Wt(this.g)))){this.J||4!=d||7==t||Ee(),He(this);var n=this.g.Z();this.X=n;t:if(ze(this)){var r=Wt(this.g);e="";var s=r.length,o=4==Ht(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){Ke(this),We(this);var a="";break t}this.h.i=new i.TextDecoder}for(t=0;t<s;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(o&&t==s-1)});r.length=0,this.h.g+=e,this.C=0,a=this.h.g}else a=this.g.oa();if(this.o=200==n,function(e,t,n,r,i,s,o){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+s+" "+o}))}(this.i,this.u,this.A,this.l,this.R,d,n),this.o){if(this.T&&!this.K){t:{if(this.g){var l,c=this.g;if((l=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!p(l)){var u=l;break t}}u=null}if(!(n=u)){this.o=!1,this.s=3,ke(12),Ke(this),We(this);break e}Pe(this.i,this.l,n,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Ge(this,n)}if(this.P){let e;for(n=!0;!this.J&&this.C<a.length;){if(e=Be(this,a),e==Fe){4==d&&(this.s=4,ke(14),n=!1),Pe(this.i,this.l,null,"[Incomplete Response]");break}if(e==Me){this.s=4,ke(15),Pe(this.i,this.l,a,"[Invalid Chunk]"),n=!1;break}Pe(this.i,this.l,e,null),Ge(this,e)}if(ze(this)&&0!=this.C&&(this.h.g=this.h.g.slice(this.C),this.C=0),4!=d||0!=a.length||this.h.h||(this.s=1,ke(16),n=!1),this.o=this.o&&n,n){if(0<a.length&&!this.W){this.W=!0;var h=this.j;h.g==this&&h.ba&&!h.M&&(h.j.info("Great, no buffering proxy detected. Bytes received: "+a.length),sn(h),h.M=!0,ke(11))}}else Pe(this.i,this.l,a,"[Invalid Chunked Response]"),Ke(this),We(this)}else Pe(this.i,this.l,a,null),Ge(this,a);4==d&&Ke(this),this.o&&!this.J&&(4==d?ln(this.j,this):(this.o=!1,qe(this)))}else(function(e){const t={};e=(e.g&&2<=Ht(e)&&e.g.getAllResponseHeaders()||"").split("\r\n");for(let r=0;r<e.length;r++){if(p(e[r]))continue;var n=T(e[r]);const i=n[0];if("string"!==typeof(n=n[1]))continue;n=n.trim();const s=t[i]||[];t[i]=s,s.push(n)}!function(e,t){for(const n in e)t.call(void 0,e[n],n,e)}(t,(function(e){return e.join(", ")}))})(this.g),400==n&&0<a.indexOf("Unknown SID")?(this.s=3,ke(12)):(this.s=0,ke(13)),Ke(this),We(this)}}}catch(d){}},Le.prototype.cancel=function(){this.J=!0,Ke(this)},Le.prototype.ba=function(){this.B=null;const e=Date.now();0<=e-this.S?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.i,this.A),2!=this.L&&(Ee(),ke(17)),Ke(this),this.s=2,We(this)):$e(this,this.S-e)};var Qe=class{constructor(e,t){this.g=e,this.map=t}};function Ye(e){this.l=e||10,i.PerformanceNavigationTiming?e=0<(e=i.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(i.chrome&&i.chrome.loadTimes&&i.chrome.loadTimes()&&i.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Xe(e){return!!e.h||!!e.g&&e.g.size>=e.j}function Je(e){return e.h?1:e.g?e.g.size:0}function Ze(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function et(e,t){e.g?e.g.add(t):e.h=t}function tt(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function nt(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){let t=e.i;for(const n of e.g.values())t=t.concat(n.D);return t}return d(e.i)}function rt(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(s(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.na&&"function"==typeof e.na)return e.na();if(!e.V||"function"!=typeof e.V){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(s(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(const r in e)t[n++]=r;return t}}}(e),r=function(e){if(e.V&&"function"==typeof e.V)return e.V();if("undefined"!==typeof Map&&e instanceof Map||"undefined"!==typeof Set&&e instanceof Set)return Array.from(e.values());if("string"===typeof e)return e.split("");
2if(s(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),i=r.length,o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}Ye.prototype.cancel=function(){if(this.i=nt(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){for(const e of this.g.values())e.cancel();this.g.clear()}};var it=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function st(e){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,e instanceof st){this.h=e.h,at(this,e.j),this.o=e.o,this.g=e.g,lt(this,e.s),this.l=e.l;var t=e.i,n=new _t;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),ct(this,n),this.m=e.m}else e&&(t=String(e).match(it))?(this.h=!1,at(this,t[1]||"",!0),this.o=dt(t[2]||""),this.g=dt(t[3]||"",!0),lt(this,t[4]),this.l=dt(t[5]||"",!0),ct(this,t[6]||"",!0),this.m=dt(t[7]||"")):(this.h=!1,this.i=new _t(null,this.h))}function ot(e){return new st(e)}function at(e,t,n){e.j=n?dt(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function lt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.s=t}else e.s=null}function ct(e,t,n){t instanceof _t?(e.i=t,function(e,t){t&&!e.j&&(Tt(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(xt(this,t),St(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=ft(t,bt)),e.i=new _t(t,e.h))}function ut(e,t,n){e.i.set(t,n)}function ht(e){return ut(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function dt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function ft(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,pt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function pt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}st.prototype.toString=function(){var e=[],t=this.j;t&&e.push(ft(t,gt,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.o)&&e.push(ft(t,gt,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.s)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(ft(n,"/"==n.charAt(0)?vt:yt,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.m)&&e.push("#",ft(n,wt)),e.join("")};var mt,gt=/[#\/\?@]/g,yt=/[#\?:]/g,vt=/[#\?]/g,bt=/[#\?@]/g,wt=/#/g;function _t(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Tt(e){e.g||(e.g=new Map,e.h=0,e.i&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var s=e[n].substring(0,r);i=e[n].substring(r+1)}else s=e[n];t(s,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function xt(e,t){Tt(e),t=kt(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function Et(e,t){return Tt(e),t=kt(e,t),e.g.has(t)}function St(e,t,n){xt(e,t),0<n.length&&(e.i=null,e.g.set(kt(e,t),d(n)),e.h+=n.length)}function kt(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function It(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch(s){}}function Ct(){this.g=new fe}function At(e,t,n){const r=n||"";try{rt(e,(function(e,n){let i=e;o(e)&&(i=he(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(vL){throw t.push(r+"type="+encodeURIComponent("_badmap")),vL}}function Pt(e){this.l=e.Ub||null,this.j=e.eb||!1}function Nt(e,t){ne.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}function Rt(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}function Dt(e){e.readyState=4,e.l=null,e.j=null,e.v=null,Ot(e)}function Ot(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function Lt(e){let t="";return v(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function jt(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=Lt(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):ut(e,t,n))}function Mt(e){ne.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}(e=_t.prototype).add=function(e,t){Tt(this),this.i=null,e=kt(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},e.forEach=function(e,t){Tt(this),this.g.forEach((function(n,r){n.forEac
2h((function(n){e.call(t,n,r,this)}),this)}),this)},e.na=function(){Tt(this);const e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){const i=e[r];for(let e=0;e<i.length;e++)n.push(t[r])}return n},e.V=function(e){Tt(this);let t=[];if("string"===typeof e)Et(this,e)&&(t=t.concat(this.g.get(kt(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Tt(this),this.i=null,Et(this,e=kt(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e&&0<(e=this.V(e)).length?String(e[0]):t},e.toString=function(){if(this.i)return this.i;if(!this.g)return"";const e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];const s=encodeURIComponent(String(r)),o=this.V(r);for(r=0;r<o.length;r++){var i=s;""!==o[r]&&(i+="="+encodeURIComponent(String(o[r]))),e.push(i)}}return this.i=e.join("&")},h(Pt,pe),Pt.prototype.g=function(){return new Nt(this.l,this.j)},Pt.prototype.i=(mt={},function(){return mt}),h(Nt,ne),(e=Nt.prototype).open=function(e,t){if(0!=this.readyState)throw this.abort(),Error("Error reopening a connection");this.B=e,this.A=t,this.readyState=1,Ot(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;const t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||i).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((()=>{})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Dt(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,Ot(this)),this.g&&(this.readyState=3,Ot(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if("undefined"!==typeof i.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;Rt(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))},e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array(0);(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Dt(this):Ot(this),3==this.readyState&&Rt(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,Dt(this))},e.Qa=function(e){this.g&&(this.response=e,Dt(this))},e.ga=function(){this.g&&Dt(this)},e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},e.getAllResponseHeaders=function(){if(!this.h)return"";const e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Nt.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}}),h(Mt,ne);var Ft=/^https?$/i,Vt=["POST","PUT"];function Ut(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,zt(e),qt(e)}function zt(e){e.A||(e.A=!0,re(e,"complete"),re(e,"error"))}function Bt(e){if(e.h&&"undefined"!=typeof r&&(!e.v[1]||4!=Ht(e)||2!=e.Z()))if(e.u&&4==Ht(e))se(e.Ea,0,e);else if(re(e,"readystatechange"),4==Ht(e)){e.h=!1;try{const r=e.Z();e:switch(r){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break e;default:t=!1}var n;if(!(n=t)){var s;if(s=0===r){var o=String(e.D).match(it)[1]||null;!o&&i.self&&i.self.location&&(o=i.self.location.protocol.slice(0,-1)),s=!Ft.test(o?o.toLowerCase():"")}n=s}if(n)re(e,"complete"),re(e,"success");else{e.m=6;try{var a=2<Ht(e)?e.g.statusText:""}catch(l){a=""}e.l=a+" ["+e.Z()+"]",zt(e)}}finally{qt(e)}}}function qt(e,t){if(e.g){$t(e);const n=e.g,r=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||re(e,"ready");try{n.onreadystatechange=r}catch(vL){}}}function $t(e){e.I&&(i.clearTimeout(e.I),e.I=null)}function Ht(e){return e.g?e.g.readyState:0}function Wt(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.H){case"":case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(iv){return null}}
vendor: 8,180 bytes, line 2
2function Kt(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Gt(e){this.Aa=0,this.i=[],this.j=new Ae,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Kt("failFast",!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Kt("baseRetryDelayMs",5e3,e),this.cb=Kt("retryDelaySeedMs",1e4,e),this.Wa=Kt("forwardChannelMaxRetries",2,e),this.wa=Kt("forwardChannelRequestTimeoutMs",2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K="",this.h=new Ye(e&&e.concurrentRequestLimit),this.Da=new Ct,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}function Qt(e){if(Xt(e),3==e.G){var t=e.U++,n=ot(e.I);if(ut(n,"SID",e.K),ut(n,"RID",t),ut(n,"TYPE","terminate"),en(e,n),(t=new Le(e,e.j,t)).L=2,t.v=ht(ot(n)),n=!1,i.navigator&&i.navigator.sendBeacon)try{n=i.navigator.sendBeacon(t.v.toString(),"")}catch(r){}!n&&i.Image&&((new Image).src=t.v,n=!0),n||(t.g=fn(t.j,null),t.g.ea(t.v)),t.F=Date.now(),qe(t)}hn(e)}function Yt(e){e.g&&(sn(e),e.g.cancel(),e.g=null)}function Xt(e){Yt(e),e.u&&(i.clearTimeout(e.u),e.u=null),an(e),e.h.cancel(),e.s&&("number"===typeof e.s&&i.clearTimeout(e.s),e.s=null)}function Jt(e){if(!Xe(e.h)&&!e.s){e.s=!0;var t=e.Ga;I||P(),C||(I(),C=!0),A.add(t,e),e.B=0}}function Zt(e,t){var n;n=t?t.l:e.U++;const r=ot(e.I);ut(r,"SID",e.K),ut(r,"RID",n),ut(r,"AID",e.T),en(e,r),e.m&&e.o&&jt(r,e.m,e.o),n=new Le(e,e.j,n,e.B+1),null===e.m&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=tn(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),et(e.h,n),Ve(n,r,t)}function en(e,t){e.H&&v(e.H,(function(e,n){ut(t,n,e)})),e.l&&rt({},(function(e,n){ut(t,n,e)}))}function tn(e,t,n){n=Math.min(e.i.length,n);var r=e.l?c(e.l.Na,e.l,e):null;e:{var i=e.i;let t=-1;for(;;){const e=["count="+n];-1==t?0<n?(t=i[0].g,e.push("ofs="+t)):t=0:e.push("ofs="+t);let o=!0;for(let a=0;a<n;a++){let n=i[a].g;const l=i[a].map;if(n-=t,0>n)t=Math.max(0,i[a].g-100),o=!1;else try{At(l,e,"req"+n+"_")}catch(s){r&&r(l)}}if(o){r=e.join("&");break e}}}return e=e.i.splice(0,n),t.D=e,r}function nn(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;I||P(),C||(I(),C=!0),A.add(t,e),e.v=0}}function rn(e){return!(e.g||e.u||3<=e.v)&&(e.Y++,e.u=Ce(c(e.Fa,e),cn(e,e.v)),e.v++,!0)}function sn(e){null!=e.A&&(i.clearTimeout(e.A),e.A=null)}function on(e){e.g=new Le(e,e.j,"rpc",e.Y),null===e.m&&(e.g.H=e.o),e.g.O=0;var t=ot(e.qa);ut(t,"RID","rpc"),ut(t,"SID",e.K),ut(t,"AID",e.T),ut(t,"CI",e.F?"0":"1"),!e.F&&e.ja&&ut(t,"TO",e.ja),ut(t,"TYPE","xmlhttp"),en(e,t),e.m&&e.o&&jt(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=ht(ot(t)),n.m=null,n.P=!0,Ue(n,e)}function an(e){null!=e.C&&(i.clearTimeout(e.C),e.C=null)}function ln(e,t){var n=null;if(e.g==t){an(e),sn(e),e.g=null;var r=2}else{if(!Ze(e.h,t))return;n=t.D,tt(e.h,t),r=1}if(0!=e.G)if(t.o)if(1==r){n=t.m?t.m.length:0,t=Date.now()-t.F;var i=e.B;re(r=Te(),new Ie(r,n)),Jt(e)}else nn(e);else if(3==(i=t.s)||0==i&&0<t.X||!(1==r&&function(e,t){return!(Je(e.h)>=e.h.j-(e.s?1:0))&&(e.s?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.B>=(e.Va?0:e.Wa))&&(e.s=Ce(c(e.Ga,e,t),cn(e,e.B)),e.B++,!0))}(e,t)||2==r&&rn(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:un(e,5);break;case 4:un(e,10);break;case 3:un(e,6);break;default:un(e,2)}}function cn(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function un(e,t){if(e.j.info("Error code "+t),2==t){var n=c(e.fb,e),r=e.Xa;const t=!r;r=new st(r||"//www.google.com/images/cleardot.gif"),i.location&&"http"==i.location.protocol||at(r,"https"),ht(r),t?function(e,t){const n=new Ae;if(i.Image){const r=new Image;r.onload=u(It,n,"TestLoadImage: loaded",!0,t,r),r.onerror=u(It,n,"TestLoadImage: error",!1,t,r),r.onabort=u(It,n,"TestLoadImage: abort",!1,t,r),r.ontimeout=u(It,n,"TestLoadImage: timeout",!1,t,r),i.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(r.toString(),n):function(e,t){new Ae;const n=new AbortController,r=setTimeout((()=>{n.abort(),It(0,0,!1,t)}),1e4);fetch(e,{signal:n.signal}).then((e=>{clearTimeout(r),e.ok?It(0,0,!0,t):It(0,0,!1,t)})).catch((()=>{clearTimeout(r),It(0,0,!1,t)}))}(r.toString(),n)}else ke(2);e.G=0,e.l&&e.l.sa(t),hn(e),Xt(e)}function hn(e){if(e.G=0,e.ka=[],e.l){const t=nt(e.h);0==t.length&&0==e.i.length||(f(e.ka,t),f(e.ka,e.i),e.h.i.length=0,d(e.i),e.i.length=0),e.l.ra()}}function dn(e,t,n){var r=n instanceof st?ot(n):new st(n);if(""!=r.g)t&&(r.g=t+"."+r.g),lt(r,r.s);else{var s=i.location;r=s.protocol,t=t?t+"."+s.hostname:s.hostname,s=+s.port;var o=new st(null);r&&at(o,r),t&&(o.g=t),s&&lt(o,s),n&&(o.l=n),r=o}return n=e.D,t=e.ya,n&&t&&ut(r,n,t),ut(r,"VER",e.la),en(e,r),r}function fn(e,t,n){if(t&&!e.J)throw Error("Can't create secondary domain capable XhrIo object.");return(t=e.Ca&&!e.pa?new Mt(new Pt({eb:n})):new Mt(e.pa)).Ha(e.J),t}function pn(){}function mn(){}function gn(e,t){ne.call(this),this.g=new Gt(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.o=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.va&&(e?e["X-WebChannel-Client-Profile"]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!p(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!p(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new bn(this)}function yn(e){ve.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){e:{for(const n in t){e=n;break e}e=void 0}(this.i=e)&&(e=this.i,t=null!==t&&e in t?t[e]:void 0),this.data=t}else this.data=e}function vn(){be.call(this),this.status=1}function bn(e){this.g=e}(e=Mt.prototype).Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+e);t=t?t.toUpperCase():"GET",this.D=e,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Ne.g(),this.v=this.o?me(this.o):me(Ne),this.g.onreadystatechange=c(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(o){return void Ut(this,o)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var s in r)n.set(s,r[s]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));for(const e of r.keys())n.set(e,r.get(e))}r=Array.from(n.keys()).find((e=>"content-type"==e.toLowerCase())),s=i.FormData&&e instanceof i.FormData,!(0<=Array.prototype.indexOf.call(Vt,t,void 0))||r||s||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[i,a]of n)this.g.setRequestHeader(i,a);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{$t(this),this.u=!0,this.g.send(e),this.u=!1}catch(o){Ut(this,o)}},e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,re(this,"complete"),re(this,"abort"),qt(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),qt(this,!0)),Mt.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?Bt(this):this.bb())},e.bb=function(){Bt(this)},e.isActive=function(){return!!this.g},e.Z=function(){try{return 2<Ht(this)?this.g.status:-1}catch(mt){return-1}},e.oa=function(){try{return this.g?this.g.responseText:""}catch(mt){return""}},e.Oa=function(e){if(this.g){var t=this.g.responseText;
2return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),de(t)}},e.Ba=function(){return this.m},e.Ka=function(){return"string"===typeof this.l?this.l:String(this.l)},(e=Gt.prototype).la=8,e.G=1,e.connect=function(e,t,n,r){ke(0),this.W=e,this.H=t||{},n&&void 0!==r&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=dn(this,null,this.W),Jt(this)},e.Ga=function(e){if(this.s)if(this.s=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;const i=new Le(this,this.j,e);let s=this.o;if(this.S&&(s?(s=b(s),_(s,this.S)):s=this.S),null!==this.m||this.O||(i.H=s,s=null),this.P)e:{for(var t=0,n=0;n<this.i.length;n++){var r=this.i[n];if(void 0===(r="__data__"in r.map&&"string"===typeof(r=r.map.__data__)?r.length:void 0))break;if(4096<(t+=r)){t=n;break e}if(4096===t||n===this.i.length-1){t=n+1;break e}}t=1e3}else t=1e3;t=tn(this,i,t),ut(n=ot(this.I),"RID",e),ut(n,"CVER",22),this.D&&ut(n,"X-HTTP-Session-Id",this.D),en(this,n),s&&(this.O?t="headers="+encodeURIComponent(String(Lt(s)))+"&"+t:this.m&&jt(n,this.m,s)),et(this.h,i),this.Ua&&ut(n,"TYPE","init"),this.P?(ut(n,"$req",t),ut(n,"SID","null"),i.T=!0,Ve(i,n,null)):Ve(i,n,t),this.G=2}}else 3==this.G&&(e?Zt(this,e):0==this.i.length||Xe(this.h)||Zt(this))},e.Fa=function(){if(this.u=null,on(this),this.ba&&!(this.M||null==this.g||0>=this.R)){var e=2*this.R;this.j.info("BP detection timer enabled: "+e),this.A=Ce(c(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,ke(10),Yt(this),on(this))},e.Za=function(){null!=this.C&&(this.C=null,Yt(this),rn(this),ke(19))},e.fb=function(e){e?(this.j.info("Successfully pinged google.com"),ke(2)):(this.j.info("Failed to ping google.com"),ke(1))},e.isActive=function(){return!!this.l&&this.l.isActive(this)},(e=pn.prototype).ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){},mn.prototype.g=function(e,t){return new gn(e,t)},h(gn,ne),gn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},gn.prototype.close=function(){Qt(this.g)},gn.prototype.o=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.u&&((n={}).__data__=he(e),e=n);t.i.push(new Qe(t.Ya++,e)),3==t.G&&Jt(t)},gn.prototype.N=function(){this.g.l=null,delete this.j,Qt(this.g),delete this.g,gn.aa.N.call(this)},h(yn,ve),h(vn,be),h(bn,pn),bn.prototype.ua=function(){re(this.g,"a")},bn.prototype.ta=function(e){re(this.g,new yn(e))},bn.prototype.sa=function(e){re(this.g,new vn)},bn.prototype.ra=function(){re(this.g,"b")},mn.prototype.createWebChannel=mn.prototype.g,gn.prototype.send=gn.prototype.o,gn.prototype.open=gn.prototype.m,gn.prototype.close=gn.prototype.close,ev=nv.createWebChannelTransport=function(){return new mn},Zy=nv.getStatEventTarget=function(){return Te()},Jy=nv.Event=we,Xy=nv.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},Re.NO_ERROR=0,Re.TIMEOUT=8,Re.HTTP_ERROR=6,Yy=nv.ErrorCode=Re,De.COMPLETE="complete",Qy=nv.EventType=De,ge.EventType=ye,ye.OPEN="a",ye.CLOSE="b",ye.ERROR="c",ye.MESSAGE="d",ne.prototype.listen=ne.prototype.K,Gy=nv.WebChannel=ge,nv.FetchXmlHttpFactory=Pt,Mt.prototype.listenOnce=Mt.prototype.L,Mt.prototype.getLastError=Mt.prototype.Ka,Mt.prototype.getLastErrorCode=Mt.prototype.Ba,Mt.prototype.getStatus=Mt.prototype.Z,Mt.prototype.getResponseJson=Mt.prototype.Oa,Mt.prototype.getResponseText=Mt.prototype.oa,Mt.prototype.send=Mt.prototype.ea,Mt.prototype.setWithCredentials=Mt.prototype.Ha,Ky=nv.XhrIo=Mt}).apply("undefined"!==typeof tv?tv:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{});const rv="@firebase/firestore",iv="4.7.10";class sv{constructor(e){this.uid=e}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}sv.UNAUTHENTICATED=new sv(null),sv.GOOGLE_CREDENTIALS=new sv("google-credentials-uid"),sv.FIRST_PARTY=new sv("first-party-uid"),sv.MOCK_USER=new sv("mock-user");let ov="11.5.0";const av=new Bu("@firebase/firestore");function lv(){return av.logLevel}function cv(e){if(av.logLevel<=Mu.DEBUG){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(dv);av.debug(`Firestore (${ov}): ${e}`,...i)}}function uv(e){if(av.logLevel<=Mu.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(dv);av.error(`Firestore (${ov}): ${e}`,...i)}}function hv(e){if(av.logLevel<=Mu.WARN){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const i=n.map(dv);av.warn(`Firestore (${ov}): ${e}`,...i)}}function dv(e){if("string"==typeof e)return e;try{return function(e){return JSON.stringify(e)}(e)}catch(t){return e}}function fv(){const e=`FIRESTORE (${ov}) INTERNAL ASSERTION FAILED: `+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state");throw uv(e),new Error(e)}function pv(e,t){e||fv()}function mv(e,t){return e}const gv={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
vendor: 4,259 bytes, line 2
2ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class yv extends bu{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class vv{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}}class bv{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class wv{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(sv.UNAUTHENTICATED)))}shutdown(){}}class _v{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable((()=>t(this.token.user)))}shutdown(){this.changeListener=null}}class Tv{constructor(e){this.t=e,this.currentUser=sv.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){pv(void 0===this.o);let n=this.i;const r=e=>this.i!==n?(n=this.i,t(e)):Promise.resolve();let i=new vv;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new vv,e.enqueueRetryable((()=>r(this.currentUser)))};const s=()=>{const t=i;e.enqueueRetryable((async()=>{await t.promise,await r(this.currentUser)}))},o=e=>{cv("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit((e=>o(e))),setTimeout((()=>{if(!this.auth){const e=this.t.getImmediate({optional:!0});e?o(e):(cv("FirebaseAuthCredentialsProvider","Auth not yet detected"),i.resolve(),i=new vv)}}),0),s()}getToken(){const e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i!==e?(cv("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):t?(pv("string"==typeof t.accessToken),new bv(t.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return pv(null===e||"string"==typeof e),new sv(e)}}class xv{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type="FirstParty",this.user=sv.FIRST_PARTY,this.T=new Map}I(){return this.P?this.P():null}get headers(){this.T.set("X-Goog-AuthUser",this.l);const e=this.I();return e&&this.T.set("Authorization",e),this.h&&this.T.set("X-Goog-Iam-Authorization-Token",this.h),this.T}}class Ev{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new xv(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable((()=>t(sv.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class Sv{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class kv{constructor(e,t){this.A=t,this.forceRefresh=!1,this.appCheck=null,this.R=null,this.V=null,Wh(e)&&e.settings.appCheckToken&&(this.V=e.settings.appCheckToken)}start(e,t){pv(void 0===this.o);const n=e=>{null!=e.error&&cv("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);const n=e.token!==this.R;return this.R=e.token,cv("FirebaseAppCheckTokenProvider",`Received ${n?"new":"existing"} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};const r=e=>{cv("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit((e=>r(e))),setTimeout((()=>{if(!this.appCheck){const e=this.A.getImmediate({optional:!0});e?r(e):cv("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){if(this.V)return Promise.resolve(new Sv(this.V));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(pv("string"==typeof e.token),this.R=e.token,new Sv(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}function Iv(e){const t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(let r=0;r<e;
2r++)n[r]=Math.floor(256*Math.random());return n}function Cv(){return new TextEncoder}class Av{static newId(){const e=62*Math.floor(256/62);let t="";for(;t.length<20;){const n=Iv(40);for(let r=0;r<n.length;++r)t.length<20&&n[r]<e&&(t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(n[r]%62))}return t}}function Pv(e,t){return e<t?-1:e>t?1:0}function Nv(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=e.codePointAt(n),i=t.codePointAt(n);if(r!==i){if(r<128&&i<128)return Pv(r,i);{const s=Cv(),o=Dv(s.encode(Rv(e,n)),s.encode(Rv(t,n)));return 0!==o?o:Pv(r,i)}}n+=r>65535?2:1}return Pv(e.length,t.length)}function Rv(e,t){return e.codePointAt(t)>65535?e.substring(t,t+2):e.substring(t,t+1)}function Dv(e,t){for(let n=0;n<e.length&&n<t.length;++n)if(e[n]!==t[n])return Pv(e[n],t[n]);return Pv(e.length,t.length)}function Ov(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}function Lv(e){return e+"\0"}const jv=-62135596800,Mv=1e6;class Fv{static now(){return Fv.fromMillis(Date.now())}static fromDate(e){return Fv.fromMillis(e.getTime())}static fromMillis(e){const t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*Mv);return new Fv(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new yv(gv.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new yv(gv.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<jv)throw new yv(gv.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new yv(gv.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/Mv}_compareTo(e){return this.seconds===e.seconds?Pv(this.nanoseconds,e.nanoseconds):Pv(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds-jv;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class Vv{static fromTimestamp(e){return new Vv(e)}static min(){return new Vv(new Fv(0,0))}static max(){return new Vv(new Fv(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}const Uv="__name__";class zv{constructor(e,t,n){void 0===t?t=0:t>e.length&&fv(),void 0===n?n=e.length-t:n>e.length-t&&fv(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return 0===zv.comparator(this,e)}child(e){const t=this.segments.slice(this.offset,this.limit());return e instanceof zv?e.forEach((e=>{t.push(e)})):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return 0===this.length}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){const n=zv.compareSegments(e.get(r),t.get(r));if(0!==n)return n}return Pv(e.length,t.length)}static compareSegments(e,t){const n=zv.isNumericId(e),r=zv.isNumericId(t);return n&&!r?-1:!n&&r?1:n&&r?zv.extractNumericId(e).compare(zv.extractNumericId(t)):Nv(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return qy.fromString(e.substring(4,e.length-2))}}class Bv extends zv{construct(e,t,n){return new Bv(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}
vendor: 6,754 bytes, line 2
2toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(){const e=[];for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n){if(i.indexOf("//")>=0)throw new yv(gv.INVALID_ARGUMENT,`Invalid segment (${i}). Paths must not contain // in them.`);e.push(...i.split("/").filter((e=>e.length>0)))}return new Bv(e)}static emptyPath(){return new Bv([])}}const qv=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class $v extends zv{construct(e,t,n){return new $v(e,t,n)}static isValidIdentifier(e){return qv.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),$v.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&this.get(0)===Uv}static keyField(){return new $v([Uv])}static fromServerFormat(e){const t=[];let n="",r=0;const i=()=>{if(0===n.length)throw new yv(gv.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""};let s=!1;for(;r<e.length;){const t=e[r];if("\\"===t){if(r+1===e.length)throw new yv(gv.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const t=e[r+1];if("\\"!==t&&"."!==t&&"`"!==t)throw new yv(gv.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=t,r+=2}else"`"===t?(s=!s,r++):"."!==t||s?(n+=t,r++):(i(),r++)}if(i(),s)throw new yv(gv.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new $v(t)}static emptyPath(){return new $v([])}}class Hv{constructor(e){this.path=e}static fromPath(e){return new Hv(Bv.fromString(e))}static fromName(e){return new Hv(Bv.fromString(e).popFirst(5))}static empty(){return new Hv(Bv.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return null!==e&&0===Bv.comparator(this.path,e.path)}toString(){return this.path.toString()}static comparator(e,t){return Bv.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new Hv(new Bv(e.slice()))}}const Wv=-1;class Kv{constructor(e,t,n,r){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=r}}function Gv(e){return e.fields.find((e=>2===e.kind))}function Qv(e){return e.fields.filter((e=>2!==e.kind))}Kv.UNKNOWN_ID=-1;class Yv{constructor(e,t){this.fieldPath=e,this.kind=t}}class Xv{constructor(e,t){this.sequenceNumber=e,this.offset=t}static empty(){return new Xv(0,eb.min())}}function Jv(e,t){const n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=Vv.fromTimestamp(1e9===r?new Fv(n+1,0):new Fv(n,r));return new eb(i,Hv.empty(),t)}function Zv(e){return new eb(e.readTime,e.key,Wv)}class eb{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new eb(Vv.min(),Hv.empty(),Wv)}static max(){return new eb(Vv.max(),Hv.empty(),Wv)}}function tb(e,t){let n=e.readTime.compareTo(t.readTime);return 0!==n?n:(n=Hv.comparator(e.documentKey,t.documentKey),0!==n?n:Pv(e.largestBatchId,t.largestBatchId))}const nb="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class rb{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}async function ib(e){if(e.code!==gv.FAILED_PRECONDITION||e.message!==nb)throw e;cv("LocalStore","Unexpectedly lost primary lease")}class sb{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)}),(e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)}))}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&fv(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new sb(((n,r)=>{this.nextCallback=t=>{this.wrapSuccess(e,t).next(n,r)},this.catchCallback=e=>{this.wrapFailure(t,e).next(n,r)}}))}toPromise(){return new Promise(((e,t)=>{this.next(e,t)}))}wrapUserFunction(e){try{const t=e();return t instanceof sb?t:sb.resolve(t)}catch(e){return sb.reject(e)}}wrapSuccess(e,t){return e?this.wrapUserFunction((()=>e(t))):sb.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction((()=>e(t))):sb.reject(t)}static resolve(e){return new sb(((t,n)=>{t(e)}))}static reject(e){return new sb(((t,n)=>{n(e)}))}static waitFor(e){return new sb(((t,n)=>{let r=0,i=0,s=!1;e.forEach((e=>{++r,e.next((()=>{++i,s&&i===r&&t()}),(e=>n(e)))})),s=!0,i===r&&t()}))}static or(e){let t=sb.resolve(!1);for(const n of e)t=t.next((e=>e?sb.resolve(e):n()));return t}static forEach(e,t){const n=[];return e.forEach(((e,r)=>{n.push(t.call(this,e,r))})),this.waitFor(n)}static mapArray(e,t){return new sb(((n,r)=>{const i=e.length,s=new Array(i);let o=0;for(let a=0;a<i;a++){const l=a;t(e[l]).next((e=>{s[l]=e,++o,o===i&&n(s)}),(e=>r(e)))}}))}static doWhile(e,t){return new sb(((n,r)=>{const i=()=>{!0===e()?t().next((()=>{i()}),r):n()};i()}))}}const ob="SimpleDb";class ab{static open(e,t,n,r){try{return new ab(t,e.transaction(r,n))}catch(e){throw new hb(t,e)}}constructor(e,t){this.action=e,this.transaction=t,this.aborted=!1,this.m=new vv,this.transaction.oncomplete=()=>{this.m.resolve()},this.transaction.onabort=()=>{t.error?this.m.reject(new hb(e,t.error)):this.m.resolve()},this.transaction.onerror=t=>{const n=gb(t.target.error);this.m.reject(new hb(e,n))}}get p(){return this.m.promise}abort(e){e&&this.m.reject(e),this.aborted||(cv(ob,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}S(){const e=this.transaction;this.aborted||"function"!=typeof e.commit||e.commit()}store(e){const t=this.transaction.objectStore(e);return new fb(t)}}class lb{static delete(e){return cv(ob,"Removing database:",e),pb(window.indexedDB.deleteDatabase(e)).toPromise()}static D(){if(!vu())return!1;if(lb.v())return!0;const e=hu(),t=lb.C(e),n=0<t&&t<10,r=cb(e),i=0<r&&r<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||n||i)}static v(){var e;return"undefined"!=typeof process&&"YES"===(null===(e=process.__PRIVATE_env)||void 0===e?void 0:e.F)}static M(e,t){return e.store(t)}static C(e){const t=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),n=t?t[1].split("_").slice(0,2).join("."):"-1";return Number(n)}constructor(e,t,n){this.name=e,this.version=t,this.O=n,12.2===lb.C(hu())&&uv("Firestore persistence suffers from a bug in 
2iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}async N(e){return this.db||(cv(ob,"Opening database:",this.name),this.db=await new Promise(((t,n)=>{const r=indexedDB.open(this.name,this.version);r.onsuccess=e=>{const n=e.target.result;t(n)},r.onblocked=()=>{n(new hb(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},r.onerror=t=>{const r=t.target.error;"VersionError"===r.name?n(new yv(gv.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.")):"InvalidStateError"===r.name?n(new yv(gv.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+r)):n(new hb(e,r))},r.onupgradeneeded=e=>{cv(ob,'Database "'+this.name+'" requires upgrade from version:',e.oldVersion);const t=e.target.result;this.O.B(t,r.transaction,e.oldVersion,this.version).next((()=>{cv(ob,"Database upgrade to version "+this.version+" complete")}))}}))),this.L&&(this.db.onversionchange=e=>this.L(e)),this.db}k(e){this.L=e,this.db&&(this.db.onversionchange=t=>e(t))}async runTransaction(e,t,n,r){const i="readonly"===t;let s=0;for(;;){++s;try{this.db=await this.N(e);const t=ab.open(this.db,e,i?"readonly":"readwrite",n),s=r(t).next((e=>(t.S(),e))).catch((e=>(t.abort(e),sb.reject(e)))).toPromise();return s.catch((()=>{})),await t.p,s}catch(e){const t=e,n="FirebaseError"!==t.name&&s<3;if(cv(ob,"Transaction failed with error:",t.message,"Retrying:",n),this.close(),!n)return Promise.reject(t)}}}close(){this.db&&this.db.close(),this.db=void 0}}function cb(e){const t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(n)}class ub{constructor(e){this.q=e,this.$=!1,this.U=null}get isDone(){return this.$}get K(){return this.U}set cursor(e){this.q=e}done(){this.$=!0}W(e){this.U=e}delete(){return pb(this.q.delete())}}class hb extends yv{constructor(e,t){super(gv.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${t}`),this.name="IndexedDbTransactionError"}}function db(e){return"IndexedDbTransactionError"===e.name}class fb{constructor(e){this.store=e}put(e,t){let n;return void 0!==t?(cv(ob,"PUT",this.store.name,e,t),n=this.store.put(t,e)):(cv(ob,"PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),pb(n)}add(e){return cv(ob,"ADD",this.store.name,e,e),pb(this.store.add(e))}get(e){return pb(this.store.get(e)).next((t=>(void 0===t&&(t=null),cv(ob,"GET",this.store.name,e,t),t)))}delete(e){return cv(ob,"DELETE",this.store.name,e),pb(this.store.delete(e))}count(){return cv(ob,"COUNT",this.store.name),pb(this.store.count())}G(e,t){const n=this.options(e,t),r=n.index?this.store.index(n.index):this.store;if("function"==typeof r.getAll){const e=r.getAll(n.range);return new sb(((t,n)=>{e.onerror=e=>{n(e.target.error)},e.onsuccess=e=>{t(e.target.result)}}))}{const e=this.cursor(n),t=[];return this.j(e,((e,n)=>{t.push(n)})).next((()=>t))}}H(e,t){const n=this.store.getAll(e,null===t?void 0:t);return new sb(((e,t)=>{n.onerror=e=>{t(e.target.error)},n.onsuccess=t=>{e(t.target.result)}}))}J(e,t){cv(ob,"DELETE ALL",this.store.name);const n=this.options(e,t);n.Y=!1;const r=this.cursor(n);return this.j(r,((e,t,n)=>n.delete()))}Z(e,t){let n;t?n=e:(n={},t=e);const r=this.cursor(n);return this.j(r,t)}X(e){const t=this.cursor({});return new sb(((n,r)=>{t.onerror=e=>{const t=gb(e.target.error);r(t)},t.onsuccess=t=>{const r=t.target.result;r?e(r.primaryKey,r.value).next((e=>{e?r.continue():n()})):n()}}))}j(e,t){const n=[];return new sb(((r,i)=>{e.onerror=e=>{i(e.target.error)},e.onsuccess=e=>{const i=e.target.result;if(!i)return void r();const s=new ub(i),o=t(i.primaryKey,i.value,s);if(o instanceof sb){const e=o.catch((e=>(s.done(),sb.reject(e))));n.push(e)}s.isDone?r():null===s.K?i.continue():i.continue(s.K)}})).next((()=>sb.waitFor(n)))}options(e,t){let n;return void 0!==e&&("string"==typeof e?n=e:t=e),{index:n,range:t}}cursor(e){let t="next";if(e.reverse&&(t="prev"),e.index){const n=this.store.index(e.index);return e.Y?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)}}function pb(e){return new sb(((t,n)=>{e.onsuccess=e=>{const n=e.target.result;t(n)},e.onerror=e=>{const t=gb(e.target.error);n(t)}}))}let mb=!1;function gb(e){const t=lb.C(hu());if(t>=12.2&&t<13){const t="An internal error was encountered in the Indexed Database server";if(e.message.indexOf(t)>=0){const e=new yv("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${t}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return mb||(mb=!0,setTimeout((()=>{throw e}
vendor: 6,999 bytes, line 2
2),0)),e}}return e}const yb="IndexBackfiller";class vb{constructor(e,t){this.asyncQueue=e,this.ee=t,this.task=null}start(){this.te(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return null!==this.task}te(e){cv(yb,`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,(async()=>{this.task=null;try{const e=await this.ee.ne();cv(yb,`Documents written: ${e}`)}catch(e){db(e)?cv(yb,"Ignoring IndexedDB error during index backfill: ",e):await ib(e)}await this.te(6e4)}))}}class bb{constructor(e,t){this.localStore=e,this.persistence=t}async ne(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:50;return this.persistence.runTransaction("Backfill Indexes","readwrite-primary",(t=>this.re(t,e)))}re(e,t){const n=new Set;let r=t,i=!0;return sb.doWhile((()=>!0===i&&r>0),(()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next((t=>{if(null!==t&&!n.has(t))return cv(yb,`Processing collection: ${t}`),this.ie(e,t,r).next((e=>{r-=e,n.add(t)}));i=!1})))).next((()=>t-r))}ie(e,t,n){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,t).next((r=>this.localStore.localDocuments.getNextDocuments(e,t,r,n).next((n=>{const i=n.changes;return this.localStore.indexManager.updateIndexEntries(e,i).next((()=>this.se(r,n))).next((n=>(cv(yb,`Updating offset: ${n}`),this.localStore.indexManager.updateCollectionGroup(e,t,n)))).next((()=>i.size))}))))}se(e,t){let n=e;return t.changes.forEach(((e,t)=>{const r=Zv(t);tb(r,n)>0&&(n=r)})),new eb(n.readTime,n.documentKey,Math.max(t.batchId,e.largestBatchId))}}class wb{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.oe(e),this._e=e=>t.writeSequenceNumber(e))}oe(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this._e&&this._e(e),e}}wb.ae=-1;const _b=-1;function Tb(e){return null==e}function xb(e){return 0===e&&1/e==-1/0}function Eb(e){return"number"==typeof e&&Number.isInteger(e)&&!xb(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}const Sb="\x01";function kb(e){let t="";for(let n=0;n<e.length;n++)t.length>0&&(t=Cb(t)),t=Ib(e.get(n),t);return Cb(t)}function Ib(e,t){let n=t;const r=e.length;for(let i=0;i<r;i++){const t=e.charAt(i);switch(t){case"\0":n+="\x01\x10";break;case Sb:n+="\x01\x11";break;default:n+=t}}return n}function Cb(e){return e+Sb+"\x01"}function Ab(e){const t=e.length;if(pv(t>=2),2===t)return pv(e.charAt(0)===Sb&&"\x01"===e.charAt(1)),Bv.emptyPath();const n=t-2,r=[];let i="";for(let s=0;s<t;){const t=e.indexOf(Sb,s);switch((t<0||t>n)&&fv(),e.charAt(t+1)){case"\x01":const n=e.substring(s,t);let o;0===i.length?o=n:(i+=n,o=i,i=""),r.push(o);break;case"\x10":i+=e.substring(s,t),i+="\0";break;case"\x11":i+=e.substring(s,t+1);break;default:fv()}s=t+2}return new Bv(r)}const Pb="remoteDocuments",Nb="owner",Rb="owner",Db="mutationQueues",Ob="mutations",Lb="batchId",jb="userMutationsIndex",Mb=["userId","batchId"];function Fb(e,t){return[e,kb(t)]}function Vb(e,t,n){return[e,kb(t),n]}const Ub={},zb="documentMutations",Bb="remoteDocumentsV14",qb=["prefixPath","collectionGroup","readTime","documentId"],$b="documentKeyIndex",Hb=["prefixPath","collectionGroup","documentId"],Wb="collectionGroupIndex",Kb=["collectionGroup","readTime","prefixPath","documentId"],Gb="remoteDocumentGlobal",Qb="remoteDocumentGlobalKey",Yb="targets",Xb="queryTargetsIndex",Jb=["canonicalId","targetId"],Zb="targetDocuments",ew=["targetId","path"],tw="documentTargetsIndex",nw=["path","targetId"],rw="targetGlobalKey",iw="targetGlobal",sw="collectionParents",ow=["collectionId","parent"],aw="clientMetadata",lw="bundles",cw="namedQueries",uw="indexConfiguration",hw="collectionGroupIndex",dw="indexState",fw=["indexId","uid"],pw="sequenceNumberIndex",mw=["uid","sequenceNumber"],gw="indexEntries",yw=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],vw="documentKeyIndex",bw=["indexId","uid","orderedDocumentKey"],ww="documentOverlays",_w=["userId","collectionPath","documentId"],Tw="collectionPathOverlayIndex",xw=["userId","collectionPath","largestBatchId"],Ew="collectionGroupOverlayIndex",Sw=["userId","collectionGroup","largestBatchId"],kw="globals",Iw=[Db,Ob,zb,Pb,Yb,Nb,iw,Zb,aw,Gb,sw,lw,cw],Cw=[...Iw,ww],Aw=[Db,Ob,zb,Bb,Yb,Nb,iw,Zb,aw,Gb,sw,lw,cw,ww],Pw=Aw,Nw=[...Pw,uw,dw,gw],Rw=Nw,Dw=[...Nw,kw];class Ow extends rb{constructor(e,t){super(),this.ue=e,this.currentSequenceNumber=t}}function Lw(e,t){const n=mv(e);return lb.M(n.ue,t)}function jw(e){let t=0;for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function Mw(e,t){for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function Fw(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}class Vw{constructor(e,t){this.comparator=e,this.root=t||zw.EMPTY}insert(e,t){return new Vw(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,zw.BLACK,null,null))}remove(e){return new Vw(this.comparator,this.root.remove(e,this.comparator).copy(null,null,zw.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){const n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){const 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}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((t,n)=>(e(t,n),!1)))}toString(){const e=[];return this.inorderTraversal(((t,n)=>(e.push(`${t}:${n}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Uw(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Uw(this.root,e,this.comparator,!1)}getReverseIterator(){return new Uw(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Uw(this.root,e,this.comparator,!0)}}class Uw{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&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}}getNext(){let e=this.nodeStack.pop();const 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}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class zw{constructor(e,t,n,r,i){this.key=e,this.value=t,this.color=null!=n?n:zw.RED,this.left=null!=r?r:zw.EMPTY,this.right=null!=i?i:zw.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,r,i){return new zw(null!=e?e:this.key,null!=t?t:this.value,
vendor: 2,466 bytes, line 2
2null!=n?n:this.color,null!=r?r:this.left,null!=i?i:this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this;const 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)),r.fixUp()}removeMin(){if(this.left.isEmpty())return zw.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,r=this;if(t(e,r.key)<0)r.left.isEmpty()||r.left.isRed()||r.left.left.isRed()||(r=r.moveRedLeft()),r=r.copy(null,null,null,r.left.remove(e,t),null);else{if(r.left.isRed()&&(r=r.rotateRight()),r.right.isEmpty()||r.right.isRed()||r.right.left.isRed()||(r=r.moveRedRight()),0===t(e,r.key)){if(r.right.isEmpty())return zw.EMPTY;n=r.right.min(),r=r.copy(n.key,n.value,null,null,r.right.removeMin())}r=r.copy(null,null,null,null,r.right.remove(e,t))}return r.fixUp()}isRed(){return this.color}fixUp(){let 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}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,zw.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,zw.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const 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)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw fv();if(this.right.isRed())throw fv();const e=this.left.check();if(e!==this.right.check())throw fv();return e+(this.isRed()?0:1)}}
2zw.EMPTY=null,zw.RED=!0,zw.BLACK=!1,zw.EMPTY=new class{constructor(){this.size=0}get key(){throw fv()}get value(){throw fv()}get color(){throw fv()}get left(){throw fv()}get right(){throw fv()}copy(e,t,n,r,i){return this}insert(e,t,n){return new zw(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Bw{constructor(e){this.comparator=e,this.data=new Vw(this.comparator)}has(e){return null!==this.data.get(e)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((t,n)=>(e(t),!1)))}forEachInRange(e,t){const n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){const r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){const t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new qw(this.data.getIterator())}getIteratorFrom(e){return new qw(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach((e=>{t=t.add(e)})),t}isEqual(e){if(!(e instanceof Bw))return!1;if(this.size!==e.size)return!1;const t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(0!==this.comparator(e,r))return!1}return!0}toArray(){const e=[];return this.forEach((t=>{e.push(t)})),e}toString(){const e=[];return this.forEach((t=>e.push(t))),"SortedSet("+e.toString()+")"}copy(e){const t=new Bw(this.comparator);return t.data=e,t}}class qw{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function $w(e){return e.hasNext()?e.getNext():void 0}class Hw{constructor(e){this.fields=e,e.sort($v.comparator)}static empty(){return new Hw([])}unionWith(e){let t=new Bw($v.comparator);for(const n of this.fields)t=t.add(n);for(const n of e)t=t.add(n);return new Hw(t.toArray())}covers(e){for(const t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Ov(this.fields,e.fields,((e,t)=>e.isEqual(t)))}}class Ww extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class Kw{constructor(e){this.binaryString=e}static fromBase64String(e){const t=function(e){try{return atob(e)}catch(e){throw"undefined"!=typeof DOMException&&e instanceof DOMException?new Ww("Invalid base64 string: "+e):e}}(e);return new Kw(t)}static fromUint8Array(e){const t=function(e){let t="";for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new Kw(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return e=this.binaryString,btoa(e);var e}toUint8Array(){return function(e){const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Pv(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}Kw.EMPTY_BYTE_STRING=new Kw("");const Gw=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Qw(e){if(pv(!!e),"string"==typeof e){let t=0;const n=Gw.exec(e);if(pv(!!n),n[1]){let e=n[1];e=(e+"000000000").substr(0,9),t=Number(e)}const r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:Yw(e.seconds),nanos:Yw(e.nanos)}}function Yw(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Xw(e){return"string"==typeof e?Kw.fromBase64String(e):Kw.fromUint8Array(e)}const Jw="server_timestamp",Zw="__type__",e_="__previous_value__",t_="__local_write_time__";function n_(e){var t,n;return(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{})[Zw])||void 0===n?void 0:n.stringValue)===Jw}function r_(e){const t=e.mapValue.fields[e_];return n_(t)?r_(t):t}function i_(e){const t=Qw(e.mapValue.fields[t_].timestampValue);return new Fv(t.seconds,t.nanos)}class s_{constructor(e,t,n,r,i,s,o,a,l){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=s,this.autoDetectLongPolling=o,this.longPollingOptions=a,this.useFetchStreams=l}}const o_="(default)";class a_{constructor(e,t){this.projectId=e,this.database=t||o_}static empty(){return new a_("","")}get isDefaultDatabase(){return this.database===o_}isEqual(e){return e instanceof a_&&e.projectId===this.projectId&&e.database===this.database}}const l_="__type__",c_="__max__",u_={mapValue:{fields:{__type__:{stringValue:c_}}}},h_="__vector__",d_="value",f_={nullValue:"NULL_VALUE"};function p_(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?n_(e)?4:N_(e)?9007199254740991:A_(e)?10:11:fv()}function m_(e,t){if(e===t)return!0;const n=p_(e);if(n!==p_(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return i_(e).isEqual(i_(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;const n=Qw(e.timestampValue),r=Qw(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 Xw(e.bytesValue).isEqual(Xw(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Yw(e.geoPointValue.latitude)===Yw(t.geoPointValue.latitude)&&Yw(e.geoPointValue.longitude)===Yw(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return Yw(e.integerValue)===Yw(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){const n=Yw(e.doubleValue),r=Yw(t.doubleValue);return n===r?xb(n)===xb(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Ov(e.arrayValue.values||[],t.arrayValue.values||[],m_);case 10:case 11:return function(e,t){const n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(jw(n)!==jw(r))return!1;for(const i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!m_(n[i],r[i])))return!1;return!0}(e,t);default:return fv()}}function g_(e,t){return void 0!==(e.values||[]).find((e=>m_(e,t)))}function y_(e,t){if(e===t)return 0;const n=p_(e),r=p_(t);if(n!==r)return Pv(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Pv(e.booleanValue,t.booleanValue);case 2:return function(e,t){const n=Yw(e.integerValue||e.doubleValue),r=Yw(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 v_(e.timestampValue,t.timestampValue);case 4:return v_(i_(e),i_(t));case 5:return Nv(e.stringValue,t.stringValue);case 6:return function(e,t){const n=Xw(e),r=Xw(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){const n=e.split("/"),r=t.split("/");for(let i=0;i<n.length&&i<r.length;i++){const e=Pv(n[i],r[i]);if(0!==e)return e}return Pv(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){const n=Pv(Yw(e.latitude),Yw(t.latitude));return 0!==n?n:Pv(Yw(e.longitude),Yw(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return b_(e.arrayValue,t.arrayValue);case 10:return function(e,t){var n,r,i,s;const o=e.fields||{},a=t.fields||{},l=null===(n=o[d_])||void 0===n?void 0:n.arrayValue,c=null===(r=a[d_])||void 0===r?void 0:r.arrayValue,u=Pv((null===(i=null==l?void 0:l.values)||void 0===i?void 0:i.length)||0,(null===(s=null==c?void 0:c.values)||void 0===s?void 0:s.length)||0);return 0!==u?u:b_(l,c)}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===u_.mapValue&&t===u_.mapValue)return 0;if(e===u_.mapValue)return 1;if(t===u_.mapValue)return-1;const n=e.fields||{},r=Object.keys(n),i=t.fields||{},s=Object.keys(i);r.sort(),s.sort();for(let o=0;o<r.length&&o<s.length;++o){const e=Nv(r[o],s[o]);if(0!==e)return e;const t=y_(n[r[o]],i[s[o]]);if(0!==t)return t}return Pv(r.length,s.length)}(e.mapValue,t.mapValue);default:throw fv()}}function v_(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Pv(e,t);const n=Qw(e),r=Qw(t),i=Pv(n.seconds,r.seconds);return 0!==i?i:Pv(n.nanos,r.nanos)}function b_(e,t){const n=e.values||[],r=t.values||[];for(let i=0;i<n.length&&i<r.length;++i){const e=y_(n[i],r[i]);if(e)return e}return Pv(n.length,r.length)}function w_(e){return __(e)}function __(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){const t=Qw(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?function(e){return Xw(e).toBase64()}(e.bytesValue):"referenceValue"in e?function(e){return Hv.fromName(e).toString()}(e.referenceValue):"geoPointValue"in e?function(e){return`geo(${e.latitude},${e.longitude})`}(e.geoPointValue):"arrayValue"in e?function(e){let t="[",n=!0;for(const r of e.values||[])n?n=!1:t+=",",t+=__(r);return t+"]"}(e.arrayValue):"mapValue"in e?function(e){const t=Object.keys(e.fields||{}).sort();let n="{",r=!0;for(const i of t)r?r=!1:n+=",",n+=`${i}:${__(e.fields[i])}`;return n+"}"}(e.mapValue):fv()}function T_(e){switch(p_(e)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=r_(e);return t?16+T_(t):16;case 5:return 2*e.stringValue.length;case 6:return Xw(e.bytesValue).approximateByteSize();case 7:return e.referenceValue.length;case 9:return function(e){return(e.values||[]).reduce(((e,t)=>e+T_(t)),0)}(e.arrayValue);case 10:case 11:return function(e){let t=0;return Mw(e.fields,((e,n)=>{t+=e.length+T_(n)})),t}(e.mapValue);default:throw fv()}}function x_(e,t){return{referenceValue:`projects/${e.projectId}/databases/${e.database}/documents/${t.path.canonicalString()}`}}function E_(e){return!!e&&"integerValue"in e}function S_(e){return!!e&&"arrayValue"in e}function k_(e){return!!e&&"nullValue"in e}function I_(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function C_(e){return!!e&&"mapValue"in e}function A_(e){var t,n;return(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}
vendor: 5,219 bytes, line 2
2)[l_])||void 0===n?void 0:n.stringValue)===h_}function P_(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&"object"==typeof e.timestampValue)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){const t={mapValue:{fields:{}}};return Mw(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=P_(n))),t}if(e.arrayValue){const t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=P_(e.arrayValue.values[n]);return t}return Object.assign({},e)}function N_(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===c_}const R_={mapValue:{fields:{[l_]:{stringValue:h_},[d_]:{arrayValue:{}}}}};function D_(e){return"nullValue"in e?f_:"booleanValue"in e?{booleanValue:!1}:"integerValue"in e||"doubleValue"in e?{doubleValue:NaN}:"timestampValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in e?{stringValue:""}:"bytesValue"in e?{bytesValue:""}:"referenceValue"in e?x_(a_.empty(),Hv.empty()):"geoPointValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in e?{arrayValue:{}}:"mapValue"in e?A_(e)?R_:{mapValue:{}}:fv()}function O_(e){return"nullValue"in e?{booleanValue:!1}:"booleanValue"in e?{doubleValue:NaN}:"integerValue"in e||"doubleValue"in e?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in e?{stringValue:""}:"stringValue"in e?{bytesValue:""}:"bytesValue"in e?x_(a_.empty(),Hv.empty()):"referenceValue"in e?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in e?{arrayValue:{}}:"arrayValue"in e?R_:"mapValue"in e?A_(e)?{mapValue:{}}:u_:fv()}function L_(e,t){const n=y_(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?-1:!e.inclusive&&t.inclusive?1:0}function j_(e,t){const n=y_(e.value,t.value);return 0!==n?n:e.inclusive&&!t.inclusive?1:!e.inclusive&&t.inclusive?-1:0}class M_{constructor(e){this.value=e}static empty(){return new M_({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!C_(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=P_(t)}setAll(e){let t=$v.emptyPath(),n={},r=[];e.forEach(((e,i)=>{if(!t.isImmediateParentOf(i)){const e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=P_(e):r.push(i.lastSegment())}));const i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){const t=this.field(e.popLast());C_(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return m_(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];C_(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){Mw(t,((t,n)=>e[t]=n));for(const r of n)delete e[r]}clone(){return new M_(P_(this.value))}}function F_(e){const t=[];return Mw(e.fields,((e,n)=>{const r=new $v([e]);if(C_(n)){const e=F_(n.mapValue).fields;if(0===e.length)t.push(r);else for(const n of e)t.push(r.child(n))}else t.push(r)})),new Hw(t)}class V_{constructor(e,t,n,r,i,s,o){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=i,this.data=s,this.documentState=o}static newInvalidDocument(e){return new V_(e,0,Vv.min(),Vv.min(),Vv.min(),M_.empty(),0)}static newFoundDocument(e,t,n,r){return new V_(e,1,t,Vv.min(),n,r,0)}static newNoDocument(e,t){return new V_(e,2,t,Vv.min(),Vv.min(),M_.empty(),0)}static newUnknownDocument(e,t){return new V_(e,3,t,Vv.min(),Vv.min(),M_.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(Vv.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=M_.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=M_.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Vv.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(e){return e instanceof V_&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new V_(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}
2class U_{constructor(e,t){this.position=e,this.inclusive=t}}function z_(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){const s=t[i],o=e.position[i];if(r=s.field.isKeyField()?Hv.comparator(Hv.fromName(o.referenceValue),n.key):y_(o,n.data.field(s.field)),"desc"===s.dir&&(r*=-1),0!==r)break}return r}function B_(e,t){if(null===e)return null===t;if(null===t)return!1;if(e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!m_(e.position[n],t.position[n]))return!1;return!0}class q_{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";this.field=e,this.dir=t}}function $_(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}class H_{}class W_ extends H_{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,n):new nT(e,t,n):"array-contains"===t?new oT(e,n):"in"===t?new aT(e,n):"not-in"===t?new lT(e,n):"array-contains-any"===t?new cT(e,n):new W_(e,t,n)}static createKeyFieldInFilter(e,t,n){return"in"===t?new rT(e,n):new iT(e,n)}matches(e){const t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(y_(t,this.value)):null!==t&&p_(this.value)===p_(t)&&this.matchesComparison(y_(t,this.value))}matchesComparison(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 fv()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class K_ extends H_{constructor(e,t){super(),this.filters=e,this.op=t,this.ce=null}static create(e,t){return new K_(e,t)}matches(e){return G_(this)?void 0===this.filters.find((t=>!t.matches(e))):void 0!==this.filters.find((t=>t.matches(e)))}getFlattenedFilters(){return null!==this.ce||(this.ce=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.ce}getFilters(){return Object.assign([],this.filters)}}function G_(e){return"and"===e.op}function Q_(e){return"or"===e.op}function Y_(e){return X_(e)&&G_(e)}function X_(e){for(const t of e.filters)if(t instanceof K_)return!1;return!0}function J_(e){if(e instanceof W_)return e.field.canonicalString()+e.op.toString()+w_(e.value);if(Y_(e))return e.filters.map((e=>J_(e))).join(",");{const t=e.filters.map((e=>J_(e))).join(",");return`${e.op}(${t})`}}function Z_(e,t){return e instanceof W_?function(e,t){return t instanceof W_&&e.op===t.op&&e.field.isEqual(t.field)&&m_(e.value,t.value)}(e,t):e instanceof K_?function(e,t){return t instanceof K_&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce(((e,n,r)=>e&&Z_(n,t.filters[r])),!0)}(e,t):void fv()}function eT(e,t){const n=e.filters.concat(t);return K_.create(n,e.op)}function tT(e){return e instanceof W_?function(e){return`${e.field.canonicalString()} ${e.op} ${w_(e.value)}`}(e):e instanceof K_?function(e){return e.op.toString()+" {"+e.getFilters().map(tT).join(" ,")+"}"}(e):"Filter"}class nT extends W_{constructor(e,t,n){super(e,t,n),this.key=Hv.fromName(n.referenceValue)}matches(e){const t=Hv.comparator(e.key,this.key);return this.matchesComparison(t)}}class rT extends W_{constructor(e,t){super(e,"in",t),this.keys=sT("in",t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}}class iT extends W_{constructor(e,t){super(e,"not-in",t),this.keys=sT("not-in",t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}}function sT(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((e=>Hv.fromName(e.referenceValue)))}class oT extends W_{constructor(e,t){super(e,"array-contains",t)}matches(e){const t=e.data.field(this.field);return S_(t)&&g_(t.arrayValue,this.value)}}class aT extends W_{constructor(e,t){super(e,"in",t)}matches(e){const t=e.data.field(this.field);return null!==t&&g_(this.value.arrayValue,t)}}class lT extends W_{constructor(e,t){super(e,"not-in",t)}matches(e){if(g_(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const t=e.data.field(this.field);return null!==t&&!g_(this.value.arrayValue,t)}}class cT extends W_{constructor(e,t){super(e,"array-contains-any",t)}matches(e){const t=e.data.field(this.field);return!(!S_(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>g_(this.value.arrayValue,e)))}}class uT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=s,this.endAt=o,this.le=null}}function hT(e){return new uT(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,arguments.length>6&&void 0!==arguments[6]?arguments[6]:null)}function dT(e){const t=mv(e);
vendor: 6,781 bytes, line 2
2if(null===t.le){let e=t.path.canonicalString();null!==t.collectionGroup&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map((e=>J_(e))).join(","),e+="|ob:",e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(","),Tb(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map((e=>w_(e))).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map((e=>w_(e))).join(",")),t.le=e}return t.le}function fT(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!$_(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!Z_(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!B_(e.startAt,t.startAt)&&B_(e.endAt,t.endAt)}function pT(e){return Hv.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}function mT(e,t){return e.filters.filter((e=>e instanceof W_&&e.field.isEqual(t)))}function gT(e,t,n){let r=f_,i=!0;for(const s of mT(e,t)){let e=f_,t=!0;switch(s.op){case"<":case"<=":e=D_(s.value);break;case"==":case"in":case">=":e=s.value;break;case">":e=s.value,t=!1;break;case"!=":case"not-in":e=f_}L_({value:r,inclusive:i},{value:e,inclusive:t})<0&&(r=e,i=t)}if(null!==n)for(let s=0;s<e.orderBy.length;++s)if(e.orderBy[s].field.isEqual(t)){const e=n.position[s];L_({value:r,inclusive:i},{value:e,inclusive:n.inclusive})<0&&(r=e,i=n.inclusive);break}return{value:r,inclusive:i}}function yT(e,t,n){let r=u_,i=!0;for(const s of mT(e,t)){let e=u_,t=!0;switch(s.op){case">=":case">":e=O_(s.value),t=!1;break;case"==":case"in":case"<=":e=s.value;break;case"<":e=s.value,t=!1;break;case"!=":case"not-in":e=u_}j_({value:r,inclusive:i},{value:e,inclusive:t})>0&&(r=e,i=t)}if(null!==n)for(let s=0;s<e.orderBy.length;++s)if(e.orderBy[s].field.isEqual(t)){const e=n.position[s];j_({value:r,inclusive:i},{value:e,inclusive:n.inclusive})>0&&(r=e,i=n.inclusive);break}return{value:r,inclusive:i}}class vT{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=s,this.startAt=o,this.endAt=a,this.he=null,this.Pe=null,this.Te=null,this.startAt,this.endAt}}function bT(e,t,n,r,i,s,o,a){return new vT(e,t,n,r,i,s,o,a)}function wT(e){return new vT(e)}function _T(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())}function TT(e){return null!==e.collectionGroup}function xT(e){const t=mv(e);if(null===t.he){t.he=[];const e=new Set;for(const i of t.explicitOrderBy)t.he.push(i),e.add(i.field.canonicalString());const n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc",r=function(e){let t=new Bw($v.comparator);return e.filters.forEach((e=>{e.getFlattenedFilters().forEach((e=>{e.isInequality()&&(t=t.add(e.field))}))})),t}(t);r.forEach((r=>{e.has(r.canonicalString())||r.isKeyField()||t.he.push(new q_(r,n))})),e.has($v.keyField().canonicalString())||t.he.push(new q_($v.keyField(),n))}return t.he}function ET(e){const t=mv(e);return t.Pe||(t.Pe=ST(t,xT(e))),t.Pe}function ST(e,t){if("F"===e.limitType)return hT(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map((e=>{const t="desc"===e.dir?"asc":"desc";return new q_(e.field,t)}));const n=e.endAt?new U_(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new U_(e.startAt.position,e.startAt.inclusive):null;return hT(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function kT(e,t){const n=e.filters.concat([t]);return new vT(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function IT(e,t,n){return new vT(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function CT(e,t){return fT(ET(e),ET(t))&&e.limitType===t.limitType}function AT(e){return`${dT(ET(e))}|lt:${e.limitType}`}function PT(e){return`Query(target=${function(e){let t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map((e=>tT(e))).join(", ")}]`),Tb(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map((e=>function(e){return`${e.field.canonicalString()} (${e.dir})`}(e))).join(", ")}]`),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((e=>w_(e))).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((e=>w_(e))).join(",")),`Target(${t})`}(ET(e))}; limitType=${e.limitType})`}function NT(e,t){return t.isFoundDocument()&&function(e,t){const n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):Hv.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){for(const n of xT(e))if(!n.field.isKeyField()&&null===t.data.field(n.field))return!1;return!0}(e,t)&&function(e,t){for(const n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){const r=z_(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,xT(e),t))&&!(e.endAt&&!function(e,t,n){const r=z_(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,xT(e),t))}(e,t)}function RT(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function DT(e){return(t,n)=>{let r=!1;for(const i of xT(e)){const e=OT(i,t,n);if(0!==e)return e;r=r||i.field.isKeyField()}return 0}}function OT(e,t,n){const r=e.field.isKeyField()?Hv.comparator(t.key,n.key):function(e,t,n){const r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?y_(r,i):fv()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return fv()}}class LT{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(const[r,i]of n)if(this.equalsFn(r,e))return i}has(e){return void 0!==this.get(e)}set(e,t){const n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);
2r.push([e,t]),this.innerSize++}delete(e){const t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(let 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),this.innerSize--,!0;return!1}forEach(e){Mw(this.inner,((t,n)=>{for(const[r,i]of n)e(r,i)}))}isEmpty(){return Fw(this.inner)}size(){return this.innerSize}}const jT=new Vw(Hv.comparator);function MT(){return jT}const FT=new Vw(Hv.comparator);function VT(){let e=FT;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.insert(i.key,i);return e}function UT(e){let t=FT;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function zT(){return qT()}function BT(){return qT()}function qT(){return new LT((e=>e.toString()),((e,t)=>e.isEqual(t)))}const $T=new Vw(Hv.comparator),HT=new Bw(Hv.comparator);function WT(){let e=HT;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(const i of n)e=e.add(i);return e}const KT=new Bw(Pv);function GT(){return KT}function QT(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:xb(t)?"-0":t}}function YT(e){return{integerValue:""+e}}function XT(e,t){return Eb(t)?YT(t):QT(e,t)}class JT{constructor(){this._=void 0}}function ZT(e,t,n){return e instanceof nx?function(e,t){const n={fields:{[Zw]:{stringValue:Jw},[t_]:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&n_(t)&&(t=r_(t)),t&&(n.fields[e_]=t),{mapValue:n}}(n,t):e instanceof rx?ix(e,t):e instanceof sx?ox(e,t):function(e,t){const n=tx(e,t),r=lx(n)+lx(e.Ie);return E_(n)&&E_(e.Ie)?YT(r):QT(e.serializer,r)}(e,t)}function ex(e,t,n){return e instanceof rx?ix(e,t):e instanceof sx?ox(e,t):n}function tx(e,t){return e instanceof ax?function(e){return E_(e)||function(e){return!!e&&"doubleValue"in e}(e)}(t)?t:{integerValue:0}:null}class nx extends JT{}class rx extends JT{constructor(e){super(),this.elements=e}}function ix(e,t){const n=cx(t);for(const r of e.elements)n.some((e=>m_(e,r)))||n.push(r);return{arrayValue:{values:n}}}class sx extends JT{constructor(e){super(),this.elements=e}}function ox(e,t){let n=cx(t);for(const r of e.elements)n=n.filter((e=>!m_(e,r)));return{arrayValue:{values:n}}}class ax extends JT{constructor(e,t){super(),this.serializer=e,this.Ie=t}}function lx(e){return Yw(e.integerValue||e.doubleValue)}function cx(e){return S_(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}class ux{constructor(e,t){this.field=e,this.transform=t}}class hx{constructor(e,t){this.version=e,this.transformResults=t}}class dx{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new dx}static exists(e){return new dx(void 0,e)}static updateTime(e){return new dx(e)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function fx(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}class px{}function mx(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new Sx(e.key,dx.none()):new wx(e.key,e.data,dx.none());{const n=e.data,r=M_.empty();let i=new Bw($v.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);null===t&&e.length>1&&(e=e.popLast(),t=n.field(e)),null===t?r.delete(e):r.set(e,t),i=i.add(e)}return new _x(e.key,r,new Hw(i.toArray()),dx.none())}}function gx(e,t,n){e instanceof wx?function(e,t,n){const r=e.value.clone(),i=xx(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof _x?function(e,t,n){if(!fx(e.precondition,t))return void t.convertToUnknownDocument(n.version);const r=xx(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(Tx(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function yx(e,t,n,r){return e instanceof wx?function(e,t,n,r){if(!fx(e.precondition,t))return n;const i=e.value.clone(),s=Ex(e.fieldTransforms,r,t);return i.setAll(s),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof _x?function(e,t,n,r){if(!fx(e.precondition,t))return n;const i=Ex(e.fieldTransforms,r,t),s=t.data;return s.setAll(Tx(e)),s.setAll(i),t.convertToFoundDocument(t.version,s).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((e=>e.field)))}(e,t,n,r):function(e,t,n){return fx(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function vx(e,t){let n=null;for(const r of e.fieldTransforms){const e=t.data.field(r.field),i=tx(r.transform,e||null);null!=i&&(null===n&&(n=M_.empty()),n.set(r.field,i))}return n||null}function bx(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)&&Ov(e,t,((e,t)=>
2function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof rx&&t instanceof rx||e instanceof sx&&t instanceof sx?Ov(e.elements,t.elements,m_):e instanceof ax&&t instanceof ax?m_(e.Ie,t.Ie):e instanceof nx&&t instanceof nx}(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))}class wx extends px{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}}class _x extends px{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}}function Tx(e){const t=new Map;return e.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const r=e.data.field(n);t.set(n,r)}})),t}function xx(e,t,n
vendor: 5,249 bytes, line 2
2){const r=new Map;pv(e.length===n.length);for(let i=0;i<n.length;i++){const s=e[i],o=s.transform,a=t.data.field(s.field);r.set(s.field,ex(o,a,n[i]))}return r}function Ex(e,t,n){const r=new Map;for(const i of e){const e=i.transform,s=n.data.field(i.field);r.set(i.field,ZT(e,s,t))}return r}class Sx extends px{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class kx extends px{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}class Ix{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){const n=t.mutationResults;for(let r=0;r<this.mutations.length;r++){const t=this.mutations[r];t.key.isEqual(e.key)&&gx(t,e,n[r])}}applyToLocalView(e,t){for(const n of this.baseMutations)n.key.isEqual(e.key)&&(t=yx(n,e,t,this.localWriteTime));for(const n of this.mutations)n.key.isEqual(e.key)&&(t=yx(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){const n=BT();return this.mutations.forEach((r=>{const i=e.get(r.key),s=i.overlayedDocument;let o=this.applyToLocalView(s,i.mutatedFields);o=t.has(r.key)?null:o;const a=mx(s,o);null!==a&&n.set(r.key,a),s.isValidDocument()||s.convertToNoDocument(Vv.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),WT())}isEqual(e){return this.batchId===e.batchId&&Ov(this.mutations,e.mutations,((e,t)=>bx(e,t)))&&Ov(this.baseMutations,e.baseMutations,((e,t)=>bx(e,t)))}}class Cx{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(e,t,n){pv(e.mutations.length===n.length);let r=$T;const i=e.mutations;for(let s=0;s<i.length;s++)r=r.insert(i[s].key,n[s].version);return new Cx(e,t,n,r)}}class Ax{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return null!==e&&this.mutation===e.mutation}toString(){return`Overlay{\n      largestBatchId: ${this.largestBatchId},\n      mutation: ${this.mutation.toString()}\n    }`}}class Px{constructor(e,t){this.count=e,this.unchangedNames=t}}var Nx,Rx;function Dx(e){switch(e){case gv.OK:return fv();case gv.CANCELLED:case gv.UNKNOWN:case gv.DEADLINE_EXCEEDED:case gv.RESOURCE_EXHAUSTED:case gv.INTERNAL:case gv.UNAVAILABLE:case gv.UNAUTHENTICATED:return!1;case gv.INVALID_ARGUMENT:case gv.NOT_FOUND:case gv.ALREADY_EXISTS:case gv.PERMISSION_DENIED:case gv.FAILED_PRECONDITION:case gv.ABORTED:case gv.OUT_OF_RANGE:case gv.UNIMPLEMENTED:case gv.DATA_LOSS:return!0;default:return fv()}}function Ox(e){if(void 0===e)return uv("GRPC error has no .code"),gv.UNKNOWN;switch(e){case Nx.OK:return gv.OK;case Nx.CANCELLED:return gv.CANCELLED;case Nx.UNKNOWN:return gv.UNKNOWN;case Nx.DEADLINE_EXCEEDED:return gv.DEADLINE_EXCEEDED;case Nx.RESOURCE_EXHAUSTED:return gv.RESOURCE_EXHAUSTED;case Nx.INTERNAL:return gv.INTERNAL;case Nx.UNAVAILABLE:return gv.UNAVAILABLE;case Nx.UNAUTHENTICATED:return gv.UNAUTHENTICATED;case Nx.INVALID_ARGUMENT:return gv.INVALID_ARGUMENT;case Nx.NOT_FOUND:return gv.NOT_FOUND;case Nx.ALREADY_EXISTS:return gv.ALREADY_EXISTS;case Nx.PERMISSION_DENIED:return gv.PERMISSION_DENIED;case Nx.FAILED_PRECONDITION:return gv.FAILED_PRECONDITION;case Nx.ABORTED:return gv.ABORTED;case Nx.OUT_OF_RANGE:return gv.OUT_OF_RANGE;case Nx.UNIMPLEMENTED:return gv.UNIMPLEMENTED;case Nx.DATA_LOSS:return gv.DATA_LOSS;default:return fv()}}(Rx=Nx||(Nx={}))[Rx.OK=0]="OK",Rx[Rx.CANCELLED=1]="CANCELLED",Rx[Rx.UNKNOWN=2]="UNKNOWN",Rx[Rx.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Rx[Rx.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Rx[Rx.NOT_FOUND=5]="NOT_FOUND",Rx[Rx.ALREADY_EXISTS=6]="ALREADY_EXISTS",Rx[Rx.PERMISSION_DENIED=7]="PERMISSION_DENIED",Rx[Rx.UNAUTHENTICATED=16]="UNAUTHENTICATED",Rx[Rx.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Rx[Rx.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Rx[Rx.ABORTED=10]="ABORTED",Rx[Rx.OUT_OF_RANGE=11]="OUT_OF_RANGE",Rx[Rx.UNIMPLEMENTED=12]="UNIMPLEMENTED",Rx[Rx.INTERNAL=13]="INTERNAL",Rx[Rx.UNAVAILABLE=14]="UNAVAILABLE",Rx[Rx.DATA_LOSS=15]="DATA_LOSS";let Lx=null;const jx=new qy([4294967295,4294967295],0);function Mx(e){const t=Cv().encode(e),n=new $y;return n.update(t),new Uint8Array(n.digest())}function Fx(e){const t=new DataView(e.buffer),n=t.getUint32(0,!0),r=t.getUint32(4,!0),i=t.getUint32(8,!0),s=t.getUint32(12,!0);return[new qy([n,r],0),new qy([i,s],0)]}class Vx{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Ux(`Invalid padding: ${t}`);if(n<0)throw new Ux(`Invalid hash count: ${n}`);if(e.length>0&&0===this.hashCount)throw new Ux(`Invalid hash count: ${n}`);if(0===e.length&&0!==t)throw new Ux(`Invalid padding when bitmap length is 0: ${t}`);this.Ee=8*e.length-t,this.de=qy.fromNumber(this.Ee)}Ae(e,t,n){let r=e.add(t.multiply(qy.fromNumber(n)));return 1===r.compare(jx)&&(r=new qy([r.getBits(0),r.getBits(1)],0)),r.modulo(this.de).toNumber()}Re(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(0===this.Ee)return!1;const t=Mx(e),[n,r]=Fx(t);for(let i=0;i<this.hashCount;i++){const e=this.Ae(n,r,i);if(!this.Re(e))return!1}return!0}static create(e,t,n){const r=e%8==0?0:8-e%8,i=new Uint8Array(Math.ceil(e/8)),s=new Vx(i,r,t);
2return n.forEach((e=>s.insert(e))),s}insert(e){if(0===this.Ee)return;const t=Mx(e),[n,r]=Fx(t);for(let i=0;i<this.hashCount;i++){const e=this.Ae(n,r,i);this.Ve(e)}}Ve(e){const t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}class Ux extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}class zx{constructor(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(e,t,n){const r=new Map;return r.set(e,Bx.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new zx(Vv.min(),r,new Vw(Pv),MT(),WT())}}class Bx{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new Bx(n,t,WT(),WT(),WT())}}class qx{constructor(e,t,n,r){this.me=e,this.removedTargetIds=t,this.key=n,this.fe=r}}class $x{constructor(e,t){this.targetId=e,this.ge=t}}class Hx{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Kw.EMPTY_BYTE_STRING,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}class Wx{constructor(){this.pe=0,this.ye=Qx(),this.we=Kw.EMPTY_BYTE_STRING,this.Se=!1,this.be=!0}get current(){return this.Se}get resumeToken(){return this.we}get De(){return 0!==this.pe}get ve(){return this.be}Ce(e){e.approximateByteSize()>0&&(this.be=!0,this.we=e)}Fe(){let e=WT(),t=WT(),n=WT();return this.ye.forEach(((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:fv()}})),new Bx(this.we,this.Se,e,t,n)}Me(){this.be=!1,this.ye=Qx()}xe(e,t){this.be=!0,this.ye=this.ye.insert(e,t)}Oe(e){this.be=!0,this.ye=this.ye.remove(e)}Ne(){this.pe+=1}Be(){this.pe-=1,pv(this.pe>=0)}Le(){this.be=!0,this.Se=!0}}class Kx{constructor(e){this.ke=e,this.qe=new Map,this.Qe=MT(),this.$e=Gx(),this.Ue=Gx(),this.Ke=new Vw(Pv)}We(e){for(const t of e.me)e.fe&&e.fe.isFoundDocument()?this.Ge(t,e.fe):this.ze(t,e.key,e.fe);for(const t of e.removedTargetIds)this.ze(t,e.key,e.fe)}je(e){this.forEachTarget(e,(t=>{const n=this.He(t);switch(e.state){case 0:this.Je(t)&&n.Ce(e.resumeToken);break;case 1:n.Be(),n.De||n.Me(),n.Ce(e.resumeToken);break;case 2:n.Be(),n.De||this.removeTarget(t);break;case 3:this.Je(t)&&(n.Le(),n.Ce(e.resumeToken));break;case 4:this.Je(t)&&(this.Ye(t),n.Ce(e.resumeToken));break;default:fv()}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.qe.forEach(((e,n)=>{this.Je(n)&&t(n)}))}Ze(e){const t=e.targetId,n=e.ge.count,r=this.Xe(t);if(r){const i=r.target;if(pT(i))if(0===n){const e=new Hv(i.path);this.ze(t,e,V_.newNoDocument(e,Vv.min()))}else pv(1===n);else{const r=this.et(t);if(r!==n){const n=this.tt(e),i=n?this.nt(n,e,r):1;if(0!==i){this.Ye(t);const e=2===i?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(t,e)}null==Lx||Lx.rt(function(e,t,n,r,i){var s,o,a,l,c,u;const h={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},d=t.unchangedNames;return d&&(h.bloomFilter={applied:0===i,hashCount:null!==(s=null==d?void 0:d.hashCount)&&void 0!==s?s:0,bitmapLength:null!==(l=null===(a=null===(o=null==d?void 0:d.bits)||void 0===o?void 0:o.bitmap)||void 0===a?void 0:a.length)&&void 0!==l?l:0,padding:null!==(u=null===(c=null==d?void 0:d.bits)||void 0===c?void 0:c.padding)&&void 0!==u?u:0,mightContain:e=>{var t;return null!==(t=null==r?void 0:r.mightContain(e))&&void 0!==t&&t}}),h}(r,e.ge,this.ke.it(),n,i))}}}}tt(e){const t=e.ge.unchangedNames;if(!t||!t.bits)return null;const{bits:{bitmap:n="",padding:r=0},hashCount:i=0}=t;let s,o;try{s=Xw(n).toUint8Array()}catch(e){if(e instanceof Ww)return hv("Decoding the base64 bloom filter in existence filter failed ("+e.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw e}try{o=new Vx(s,r,i)}catch(e){return hv(e instanceof Ux?"BloomFilter error: ":"Applying bloom filter failed: ",e),null}return 0===o.Ee?null:o}nt(e,t,n){return t.ge.count===n-this.st(e,t.targetId)?0:2}st(e,t){const n=this.ke.getRemoteKeysForTarget(t);let r=0;
2return n.forEach((n=>{const i=this.ke.it(),s=`projects/${i.projectId}/databases/${i.database}/documents/${n.path.canonicalString()}`;e.mightContain(s)||(this.ze(t,n,null),r++)})),r}ot(e){const t=new Map;this.qe.forEach(((n,r)=>{const i=this.Xe(r);if(i){if(n.current&&pT(i.target)){const t=new Hv(i.target.path);this._t(t).has(r)||this.ut(r,t)||this.ze(r,t,V_.newNoDocument(t,e))}n.ve&&(t.set(r,n.Fe()),n.Me())}}));let n=WT();this.Ue.forEach(((e,t)=>{let r=!0;t.forEachWhile((e=>{const t=this.Xe(e);return!t||"TargetPurposeLimboResolution"===t.purpose||(r=!1,!1)})),r&&(n=n.add(e))})),this.Qe.forEach(((t,n)=>n.setReadTime(e)));const r=new zx(e,t,this.Ke,this.Qe,n);return this.Qe=MT(),this.$e=Gx(),this.Ue=Gx(),this.Ke=new Vw(Pv),r}Ge(e,t){if(!this.Je(e))return;const n=this.ut(e,t.key)?2:0;this.He(e).xe(t.key,n),this.Qe=this.Qe.insert(t.key,t),this.$e=this.$e.insert(t.key,this._t(t.key).add(e)),this.Ue=this.Ue.insert(t.key,this.ct(t.key).add(e))}ze(e,t,n){if(!this.Je(e))return;const r=this.He(e);this.ut(e,t)?r.xe(t,1):r.Oe(t),this.Ue=this.Ue.insert(t,this.ct(t).delete(e)),this.Ue=this.Ue.insert(t,this.ct(t).add(e)),n&&(this.Qe=this.Qe.insert(t,n))}removeTarget(e){this.qe.delete(e)}et(e){const t=this.He(e).Fe();return this.ke.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}Ne(e){this.He(e).Ne()}He(e){let t=this.qe.get(e);return t||(t=new Wx,this.qe.set(e,t)),t}ct(e){let t=this.Ue.get(e);return t||(t=new Bw(Pv),this.Ue=this.Ue.insert(e,t)),t}_t(e){let t=this.$e.get(e);return t||(t=new Bw(Pv),this.$e=this.$e.insert(e,t)),t}Je(e){const t=null!==this.Xe(e);return t||cv("WatchChangeAggregator","Detected inactive target",e),t}Xe(e){const t=this.qe.get(e);return t&&t.De?null:this.ke.lt(e)}Ye(e){this.qe.set(e,new Wx),this.ke.getRemoteKeysForTarget(e).forEach((t=>{this.ze(e,t,null)}))}ut(e,t){return this.ke.getRemoteKeysForTarget(e).has(t)}}function Gx(){return new Vw(Hv.comparator)}function Qx(){return new Vw(Hv.comparator)}const Yx={asc:"ASCENDING",desc:"DESCENDING"},Xx={"<":"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"},Jx={and:"AND",or:"OR"};class Zx{constructor(e,t){this.databaseId=e,this.useProto3Json=t}}function eE(e,t){return e.useProto3Json||Tb(t)?t:{value:t}}function tE(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function nE(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function rE(e,t){return tE(e,t.toTimestamp())}function iE(e){return pv(!!e),Vv.fromTimestamp(function(e){const t=Qw(e);return new Fv(t.seconds,t.nanos)}(e))}function sE(e,t){return oE(e,t).canonicalString()}function oE(e,t){const n=function(e){return new Bv(["projects",e.projectId,"databases",e.database])}(e).child("documents");return void 0===t?n:n.child(t)}function aE(e){const t=Bv.fromString(e);return pv(AE(t)),t}function lE(e,t){return sE(e.databaseId,t.path)}function cE(e,t){const n=aE(t);if(n.get(1)!==e.databaseId.projectId)throw new yv(gv.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 yv(gv.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new Hv(fE(n))}function uE(e,t){return sE(e.databaseId,t)}function hE(e){const t=aE(e);return 4===t.length?Bv.emptyPath():fE(t)}function dE(e){return new Bv(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function fE(e){return pv(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function pE(e,t,n){return{name:lE(e,t),fields:n.value.mapValue.fields}}function mE(e,t,n){const r=cE(e,t.name),i=iE(t.updateTime),s=t.createTime?iE(t.createTime):Vv.min(),o=new M_({mapValue:{fields:t.fields}}),a=V_.newFoundDocument(r,i,s,o);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function gE(e,t){let n;if(t instanceof wx)n={update:pE(e,t.key,t.value)};else if(t instanceof Sx)n={delete:lE(e,t.key)};else if(t instanceof _x)n={update:pE(e,t.key,t.data),updateMask:CE(t.fieldMask)};else{if(!(t instanceof kx))return fv();n={verify:lE(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){const n=t.transform;if(n instanceof nx)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof rx)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof sx)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof ax)return{fieldPath:t.field.canonicalString(),increment:n.Ie};throw fv()}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:rE(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:fv()}(e,t.precondition)),n}function yE(e,t){const n=t.currentDocument?function(e){return void 0!==e.updateTime?dx.updateTime(iE(e.updateTime)):void 0!==e.exists?dx.exists(e.exists):dx.none()}(t.currentDocument):dx.none(),r=t.updateTransforms?t.updateTransforms.map((t=>function(e,t){let n=null;if("setToServerValue"in t)pv("REQUEST_TIME"===t.setToServerValue),n=new nx;else if("appendMissingElements"in t){const e=t.appendMissingElements.values||[];n=new rx(e)}else if("removeAllFromArray"in t){const e=t.removeAllFromArray.values||[];n=new sx(e)}else"increment"in t?n=new ax(e,t.increment):fv();const r=$v.fromServerFormat(t.fieldPath);return new ux(r,n)}(e,t))):[];if(t.update){t.update.name;const i=cE(e,t.update.name),s=new M_({mapValue:{fields:t.update.fields}});if(t.updateMask){const e=function(e){const t=e.fieldPaths||[];return new Hw(t.map((e=>$v.fromServerFormat(e))))}(t.updateMask);return new _x(i,s,e,n,r)}return new wx(i,s,n,r)}if(t.delete){const r=cE(e,t.delete);return new Sx(r,n)}if(t.verify){const r=cE(e,t.verify);return new kx(r,n)}return fv()}function vE(e,t){return{documents:[uE(e,t.path)]}}function bE(e,t){const n={structuredQuery:{}},r=t.path;let i;null!==t.collectionGroup?(i=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=uE(e,i);const s=function(e){if(0!==e.length)return IE(K_.create(e,"and"))}(t.filters);s&&(n.structuredQuery.where=s);const o=function(e){if(0!==e.length)return e.map((e=>function(e){return{field:SE(e.field),direction:TE(e.dir)}}(e)))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);const a=eE(e,t.limit);return null!==a&&(n.structuredQuery.limit=a),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{ht:n,parent:i}}function wE(e){let t=hE(e.parent);
2const n=e.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){pv(1===r);const e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let s=[];n.where&&(s=function(e){const t=_E(e);return t instanceof K_&&Y_(t)?t.getFilters():[t]}(n.where));let o=[];n.orderBy&&(o=function(e){return e.map((e=>function(e){return new q_(kE(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)))}(n.orderBy));let a=null;n.limit&&(a=function(e){let t;return t="object"==typeof e?e.value:e,Tb(t)?null:t}(n.limit));let l=null;n.startAt&&(l=function(e){const t=!!e.before,n=e.values||[];return new U_(n,t)}(n.startAt));let c=null;return n.endAt&&(c=function(e){const t=!e.before,n=e.values||[];return new U_(n,t)}(n.endAt)),bT(t,i,o,s,a,"F",l,c)}function _E(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":const t=kE(e.unaryFilter.field);return W_.create(t,"==",{doubleValue:NaN});case"IS_NULL":const n=kE(e.unaryFilter.field);return W_.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const r=kE(e.unaryFilter.field);return W_.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const i=kE(e.unaryFilter.field);return W_.create(i,"!=",{nullValue:"NULL_VALUE"});default:return fv()}}(e):void 0!==e.fieldFilter?function(e){return W_.create(kE(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";default:return fv()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return K_.create(e.compositeFilter.filters.map((e=>_E(e))),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return fv()}}(e.compositeFilter.op))}(e):fv()}function TE(e){return Yx[e]}function xE(e){return Xx[e]}function EE(e){return Jx[e]}function SE(e){return{fieldPath:e.canonicalString()}}function kE(e){return $v.fromServerFormat(e.fieldPath)}function IE(e){return e instanceof W_?function(e){if("=="===e.op){if(I_(e.value))return{unaryFilter:{field:SE(e.field),op:"IS_NAN"}};if(k_(e.value))return{unaryFilter:{field:SE(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(I_(e.value))return{unaryFilter:{field:SE(e.field),op:"IS_NOT_NAN"}};if(k_(e.value))return{unaryFilter:{field:SE(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:SE(e.field),op:xE(e.op),value:e.value}}}(e):e instanceof K_?function(e){const t=e.getFilters().map((e=>IE(e)));return 1===t.length?t[0]:{compositeFilter:{op:EE(e.op),filters:t}}}(e):fv()}function CE(e){const t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function AE(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}class PE{constructor(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vv.min(),s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Vv.min(),o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Kw.EMPTY_BYTE_STRING,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=o,this.expectedCount=a}withSequenceNumber(e){return new PE(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new PE(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new PE(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new PE(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}class NE{constructor(e){this.Tt=e}}function RE(e,t){const n=t.key,r={prefixPath:n.getCollectionPath().popLast().toArray(),collectionGroup:n.collectionGroup,documentId:n.path.lastSegment(),readTime:DE(t.readTime),hasCommittedMutations:t.hasCommittedMutations};if(t.isFoundDocument())r.document=function(e,t){return{name:lE(e,t.key),fields:t.data.value.mapValue.fields,updateTime:tE(e,t.version.toTimestamp()),createTime:tE(e,t.createTime.toTimestamp())}}(e.Tt,t);else if(t.isNoDocument())r.noDocument={path:n.path.toArray(),readTime:OE(t.version)};else{if(!t.isUnknownDocument())return fv();r.unknownDocument={path:n.path.toArray(),version:OE(t.version)}}return r}function DE(e){const t=e.toTimestamp();return[t.seconds,t.nanoseconds]}function OE(e){const t=e.toTimestamp();return{seconds:t.seconds,nanoseconds:t.nanoseconds}}function LE(e){const t=new Fv(e.seconds,e.nanoseconds);return Vv.fromTimestamp(t)}function jE(e,t){const n=(t.baseMutations||[]).map((t=>yE(e.Tt,t)));for(let s=0;s<t.mutations.length-1;++s){const e=t.mutations[s];if(s+1<t.mutations.length&&void 0!==t.mutations[s+1].transform){const n=t.mutations[s+1];e.updateTransforms=n.transform.fieldTransforms,t.mutations.splice(s+1,1),++s}}const r=t.mutations.map((t=>yE(e.Tt,t))),i=Fv.fromMillis(t.localWriteTimeMs);return new Ix(t.batchId,i,n,r)}function ME(e){const t=LE(e.readTime),n=void 0!==e.lastLimboFreeSnapshotVersion?LE(e.lastLimboFreeSnapshotVersion):Vv.min();let r;return r=function(e){return void 0!==e.documents}(e.query)?function(e){return pv(1===e.documents.length),ET(wT(hE(e.documents[0])))}(e.query):function(e){return ET(wE(e))}(e.query),new PE(r,e.targetId,"TargetPurposeListen",e.lastListenSequenceNumber,t,n,Kw.fromBase64String(e.resumeToken))}function FE(e,t){const n=OE(t.snapshotVersion),r=OE(t.lastLimboFreeSnapshotVersion);let i;i=pT(t.target)?vE(e.Tt,t.target):bE(e.Tt,t.target).ht;const s=t.resumeToken.toBase64();return{targetId:t.targetId,canonicalId:dT(t.target),readTime:n,resumeToken:s,lastListenSequenceNumber:t.sequenceNumber,lastLimboFreeSnapshotVersion:r,query:i}}function VE(e){const t=wE({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?IT(t,t.limit,"L"):t}function UE(e,t){return new Ax(t.largestBatchId,yE(e.Tt,t.overlayMutation))}function zE(e,t){const n=t.path.lastSegment();return[e,kb(t.path.popLast()),n]}function BE(e,t,n,r){return{indexId:e,uid:t,sequenceNumber:n,readTime:OE(r.readTime),documentKey:kb(r.documentKey.path),largestBatchId:r.largestBatchId}}class qE{getBundleMetadata(e,t){return $E(e).get(t).next((e=>{if(e)return function(e){return{id:e.bundleId,createTime:LE(e.createTime),version:e.version}}(e)}))}saveBundleMetadata(e,t){return $E(e).put(function(e){return{bundleId:e.id,createTime:OE(iE(e.createTime)),version:e.version}}(t))}getNamedQuery(e,t){return HE(e).get(t).next((e=>{if(e)return function(e){return{name:e.name,query:VE(e.bundledQuery),readTime:LE(e.readTime)}}(e)}))}saveNamedQuery(e,t){return HE(e).put(function(e){return{name:e.name,readTime:OE(iE(e.readTime)),bundledQuery:e.bundledQuery}}(t))}}function $E(e){return Lw(e,lw)}function HE(e){return Lw(e,cw)}
vendor: 5,742 bytes, line 2
2class WE{constructor(e,t){this.serializer=e,this.userId=t}static It(e,t){const n=t.uid||"";return new WE(e,n)}getOverlay(e,t){return KE(e).get(zE(this.userId,t)).next((e=>e?UE(this.serializer,e):null))}getOverlays(e,t){const n=zT();return sb.forEach(t,(t=>this.getOverlay(e,t).next((e=>{null!==e&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){const r=[];return n.forEach(((n,i)=>{const s=new Ax(t,i);r.push(this.Et(e,s))})),sb.waitFor(r)}removeOverlaysForBatchId(e,t,n){const r=new Set;t.forEach((e=>r.add(kb(e.getCollectionPath()))));const i=[];return r.forEach((t=>{const r=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,n+1],!1,!0);i.push(KE(e).J(Tw,r))})),sb.waitFor(i)}getOverlaysForCollection(e,t,n){const r=zT(),i=kb(t),s=IDBKeyRange.bound([this.userId,i,n],[this.userId,i,Number.POSITIVE_INFINITY],!0);return KE(e).G(Tw,s).next((e=>{for(const t of e){const e=UE(this.serializer,t);r.set(e.getKey(),e)}return r}))}getOverlaysForCollectionGroup(e,t,n,r){const i=zT();let s;const o=IDBKeyRange.bound([this.userId,t,n],[this.userId,t,Number.POSITIVE_INFINITY],!0);return KE(e).Z({index:Ew,range:o},((e,t,n)=>{const o=UE(this.serializer,t);i.size()<r||o.largestBatchId===s?(i.set(o.getKey(),o),s=o.largestBatchId):n.done()})).next((()=>i))}Et(e,t){return KE(e).put(function(e,t,n){const[r,i,s]=zE(t,n.mutation.key);return{userId:t,collectionPath:i,documentId:s,collectionGroup:n.mutation.key.getCollectionGroup(),largestBatchId:n.largestBatchId,overlayMutation:gE(e.Tt,n.mutation)}}(this.serializer,this.userId,t))}}function KE(e){return Lw(e,ww)}class GE{dt(e){return Lw(e,kw)}getSessionToken(e){return this.dt(e).get("sessionToken").next((e=>{const t=null==e?void 0:e.value;return t?Kw.fromUint8Array(t):Kw.EMPTY_BYTE_STRING}))}setSessionToken(e,t){return this.dt(e).put({name:"sessionToken",value:t.toUint8Array()})}}class QE{constructor(){}At(e,t){this.Rt(e,t),t.Vt()}Rt(e,t){if("nullValue"in e)this.ft(t,5);else if("booleanValue"in e)this.ft(t,10),t.gt(e.booleanValue?1:0);else if("integerValue"in e)this.ft(t,15),t.gt(Yw(e.integerValue));else if("doubleValue"in e){const n=Yw(e.doubleValue);isNaN(n)?this.ft(t,13):(this.ft(t,15),xb(n)?t.gt(0):t.gt(n))}else if("timestampValue"in e){let n=e.timestampValue;this.ft(t,20),"string"==typeof n&&(n=Qw(n)),t.yt(`${n.seconds||""}`),t.gt(n.nanos||0)}else if("stringValue"in e)this.wt(e.stringValue,t),this.St(t);else if("bytesValue"in e)this.ft(t,30),t.bt(Xw(e.bytesValue)),this.St(t);else if("referenceValue"in e)this.Dt(e.referenceValue,t);else if("geoPointValue"in e){const n=e.geoPointValue;this.ft(t,45),t.gt(n.latitude||0),t.gt(n.longitude||0)}else"mapValue"in e?N_(e)?this.ft(t,Number.MAX_SAFE_INTEGER):A_(e)?this.vt(e.mapValue,t):(this.Ct(e.mapValue,t),this.St(t)):"arrayValue"in e?(this.Ft(e.arrayValue,t),this.St(t)):fv()}wt(e,t){this.ft(t,25),this.Mt(e,t)}Mt(e,t){t.yt(e)}Ct(e,t){const n=e.fields||{};this.ft(t,55);for(const r of Object.keys(n))this.wt(r,t),this.Rt(n[r],t)}vt(e,t){var n,r;const i=e.fields||{};this.ft(t,53);const s=d_,o=(null===(r=null===(n=i[s].arrayValue)||void 0===n?void 0:n.values)||void 0===r?void 0:r.length)||0;this.ft(t,15),t.gt(Yw(o)),this.wt(s,t),this.Rt(i[s],t)}Ft(e,t){const n=e.values||[];this.ft(t,50);for(const r of n)this.Rt(r,t)}Dt(e,t){this.ft(t,37),Hv.fromName(e).path.forEach((e=>{this.ft(t,60),this.Mt(e,t)}))}ft(e,t){e.gt(t)}St(e){e.gt(2)}}QE.xt=new QE;const YE=255;function XE(e){if(0===e)return 8;let t=0;return e>>4||(t+=4,e<<=4),e>>6||(t+=2,e<<=2),e>>7||(t+=1),t}function JE(e){const t=64-function(e){let t=0;for(let n=0;n<8;++n){const r=XE(255&e[n]);if(t+=r,8!==r)break}return t}(e);return Math.ceil(t/8)}class ZE{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Ot(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.Nt(n.value),n=t.next();this.Bt()}Lt(e){const t=e[Symbol.iterator]();let n=t.next();for(;!n.done;)this.kt(n.value),n=t.next();this.qt()}Qt(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.Nt(e);else if(e<2048)this.Nt(960|e>>>6),this.Nt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.Nt(480|e>>>12),this.Nt(128|63&e>>>6),this.Nt(128|63&e);else{const e=t.codePointAt(0);this.Nt(240|e>>>18),this.Nt(128|63&e>>>12),this.Nt(128|63&e>>>6),this.Nt(128|63&e)}}this.Bt()}$t(e){for(const t of e){const e=t.charCodeAt(0);if(e<128)this.kt(e);else if(e<2048)this.kt(960|e>>>6),this.kt(128|63&e);else if(t<"\ud800"||"\udbff"<t)this.kt(480|e>>>12),this.kt(128|63&e>>>6),this.kt(128|63&e);else{const e=t.codePointAt(0);this.kt(240|e>>>18),this.kt(128|63&e>>>12),this.kt(128|63&e>>>6),this.kt(128|63&e)}}this.qt()}Ut(e){const t=this.Kt(e),n=JE(t);this.Wt(1+n),this.buffer[this.position++]=255&n;for(let r=t.length-n;r<t.length;++r)this.buffer[this.position++]=255&t[r]}Gt(e){const t=this.Kt(e),n=JE(t);this.Wt(1+n),this.buffer[this.position++]=~(255&n);for(let r=t.length-n;r<t.length;++r)this.buffer[this.position++]=~(255&t[r])}zt(){this.jt(YE),this.jt(255)}Ht(){this.Jt(YE),this.Jt(255)}reset(){this.position=0}seed(e){this.Wt(e.length),this.buffer.set(e,this.position),this.position+=e.length}Yt(){return this.buffer.slice(0,this.position)}Kt(e){const t=function(e){const t=new DataView(new ArrayBuffer(8));return t.setFloat64(0,e,!1),new Uint8Array(t.buffer)}(e),n=!!(128&t[0]);t[0]^=n?255:128;for(let r=1;r<t.length;++r)t[r]^=n?255:0;return t}Nt(e){const t=255&e;0===t?(this.jt(0),this.jt(255)):t===YE?(this.jt(YE),this.jt(0)):this.jt(t)}kt(e){const t=255&e;0===t?(this.Jt(0),this.Jt(255)):t===YE?(this.Jt(YE),this.Jt(0)):this.Jt(e)}Bt(){this.jt(0),this.jt(1)}qt(){this.Jt(0),this.Jt(1)}jt(e){this.Wt(1),this.buffer[this.position++]=e}Jt(e){this.Wt(1),this.buffer[this.position++]=~e}Wt(e){const t=e+this.position;if(t<=this.buffer.length)return;let n=2*this.buffer.length;n<t&&(n=t);
2const r=new Uint8Array(n);r.set(this.buffer),this.buffer=r}}class eS{constructor(e){this.Zt=e}bt(e){this.Zt.Ot(e)}yt(e){this.Zt.Qt(e)}gt(e){this.Zt.Ut(e)}Vt(){this.Zt.zt()}}class tS{constructor(e){this.Zt=e}bt(e){this.Zt.Lt(e)}yt(e){this.Zt.$t(e)}gt(e){this.Zt.Gt(e)}Vt(){this.Zt.Ht()}}class nS{constructor(){this.Zt=new ZE,this.Xt=new eS(this.Zt),this.en=new tS(this.Zt)}seed(e){this.Zt.seed(e)}tn(e){return 0===e?this.Xt:this.en}Yt(){return this.Zt.Yt()}reset(){this.Zt.reset()}}class rS{constructor(e,t,n,r){this.indexId=e,this.documentKey=t,this.arrayValue=n,this.directionalValue=r}nn(){const e=this.directionalValue.length,t=0===e||255===this.directionalValue[e-1]?e+1:e,n=new Uint8Array(t);return n.set(this.directionalValue,0),t!==e?n.set([0],this.directionalValue.length):++n[n.length-1],new rS(this.indexId,this.documentKey,this.arrayValue,n)}}function iS(e,t){let n=e.indexId-t.indexId;return 0!==n?n:(n=sS(e.arrayValue,t.arrayValue),0!==n?n:(n=sS(e.directionalValue,t.directionalValue),0!==n?n:Hv.comparator(e.documentKey,t.documentKey)))}function sS(e,t){for(let n=0;n<e.length&&n<t.length;++n){const r=e[n]-t[n];if(0!==r)return r}return e.length-t.length}class oS{constructor(e){this.rn=new Bw(((e,t)=>$v.comparator(e.field,t.field))),this.collectionId=null!=e.collectionGroup?e.collectionGroup:e.path.lastSegment(),this.sn=e.orderBy,this._n=[];for(const t of e.filters){const e=t;e.isInequality()?this.rn=this.rn.add(e):this._n.push(e)}}get an(){return this.rn.size>1}un(e){if(pv(e.collectionGroup===this.collectionId),this.an)return!1;const t=Gv(e);if(void 0!==t&&!this.cn(t))return!1;const n=Qv(e);let r=new Set,i=0,s=0;for(;i<n.length&&this.cn(n[i]);++i)r=r.add(n[i].fieldPath.canonicalString());if(i===n.length)return!0;if(this.rn.size>0){const e=this.rn.getIterator().getNext();if(!r.has(e.field.canonicalString())){const t=n[i];if(!this.ln(e,t)||!this.hn(this.sn[s++],t))return!1}++i}for(;i<n.length;++i){const e=n[i];if(s>=this.sn.length||!this.hn(this.sn[s++],e))return!1}return!0}Pn(){if(this.an)return null;let e=new Bw($v.comparator);const t=[];for(const n of this._n)if(!n.field.isKeyField())if("array-contains"===n.op||"array-contains-any"===n.op)t.push(new Yv(n.field,2));else{if(e.has(n.field))continue;e=e.add(n.field),t.push(new Yv(n.field,0))}for(const n of this.sn)n.field.isKeyField()||e.has(n.field)||(e=e.add(n.field),t.push(new Yv(n.field,"asc"===n.dir?0:1)));return new Kv(Kv.UNKNOWN_ID,this.collectionId,t,Xv.empty())}cn(e){for(const t of this._n)if(this.ln(t,e))return!0;return!1}ln(e,t){if(void 0===e||!e.field.isEqual(t.fieldPath))return!1;const n="array-contains"===e.op||"array-contains-any"===e.op;return 2===t.kind===n}hn(e,t){return!!e.field.isEqual(t.fieldPath)&&(0===t.kind&&"asc"===e.dir||1===t.kind&&"desc"===e.dir)}}function aS(e){var t,n;if(pv(e instanceof W_||e instanceof K_),e instanceof W_){if(e instanceof aT){const r=(null===(n=null===(t=e.value.arrayValue)||void 0===t?void 0:t.values)||void 0===n?void 0:n.map((t=>W_.create(e.field,"==",t))))||[];return K_.create(r,"or")}return e}const r=e.filters.map((e=>aS(e)));return K_.create(r,e.op)}function lS(e){if(0===e.getFilters().length)return[];const t=dS(aS(e));return pv(hS(t)),cS(t)||uS(t)?[t]:t.getFilters()}function cS(e){return e instanceof W_}function uS(e){return e instanceof K_&&Y_(e)}function hS(e){return cS(e)||uS(e)||function(e){if(e instanceof K_&&Q_(e)){for(const t of e.getFilters())if(!cS(t)&&!uS(t))return!1;return!0}return!1}(e)}function dS(e){if(pv(e instanceof W_||e instanceof K_),e instanceof W_)return e;if(1===e.filters.length)return dS(e.filters[0]);const t=e.filters.map((e=>dS(e)));let n=K_.create(t,e.op);return n=mS(n),hS(n)?n:(pv(n instanceof K_),pv(G_(n)),pv(n.filters.length>1),n.filters.reduce(((e,t)=>fS(e,t))))}function fS(e,t){let n;return pv(e instanceof W_||e instanceof K_),pv(t instanceof W_||t instanceof K_),n=e instanceof W_?t instanceof W_?function(e,t){return K_.create([e,t],"and")}(e,t):pS(e,t):t instanceof W_?pS(t,e):function(e,t){if(pv(e.filters.length>0&&t.filters.length>0),G_(e)&&G_(t))return eT(e,t.getFilters());const n=Q_(e)?e:t,r=Q_(e)?t:e,i=n.filters.map((e=>fS(e,r)));return K_.create(i,"or")}(e,t),mS(n)}function pS(e,t){if(G_(t))return eT(t,e.getFilters());{const n=t.filters.map((t=>fS(e,t)));return K_.create(n,"or")}}function mS(e){if(pv(e instanceof W_||e instanceof K_),e instanceof W_)return e;const t=e.getFilters();if(1===t.length)return mS(t[0]);if(X_(e))return e;const n=t.map((e=>mS(e))),r=[];
vendor: 8,531 bytes, line 2
2return n.forEach((t=>{t instanceof W_?r.push(t):t instanceof K_&&(t.op===e.op?r.push(...t.filters):r.push(t))})),1===r.length?r[0]:K_.create(r,e.op)}class gS{constructor(){this.Tn=new yS}addToCollectionParentIndex(e,t){return this.Tn.add(t),sb.resolve()}getCollectionParents(e,t){return sb.resolve(this.Tn.getEntries(t))}addFieldIndex(e,t){return sb.resolve()}deleteFieldIndex(e,t){return sb.resolve()}deleteAllFieldIndexes(e){return sb.resolve()}createTargetIndexes(e,t){return sb.resolve()}getDocumentsMatchingTarget(e,t){return sb.resolve(null)}getIndexType(e,t){return sb.resolve(0)}getFieldIndexes(e,t){return sb.resolve([])}getNextCollectionGroupToUpdate(e){return sb.resolve(null)}getMinOffset(e,t){return sb.resolve(eb.min())}getMinOffsetFromCollectionGroup(e,t){return sb.resolve(eb.min())}updateCollectionGroup(e,t,n){return sb.resolve()}updateIndexEntries(e,t){return sb.resolve()}}class yS{constructor(){this.index={}}add(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new Bw(Bv.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){const t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new Bw(Bv.comparator)).toArray()}}const vS="IndexedDbIndexManager",bS=new Uint8Array(0);class wS{constructor(e,t){this.databaseId=t,this.In=new yS,this.En=new LT((e=>dT(e)),((e,t)=>fT(e,t))),this.uid=e.uid||""}addToCollectionParentIndex(e,t){if(!this.In.has(t)){const n=t.lastSegment(),r=t.popLast();e.addOnCommittedListener((()=>{this.In.add(t)}));const i={collectionId:n,parent:kb(r)};return _S(e).put(i)}return sb.resolve()}getCollectionParents(e,t){const n=[],r=IDBKeyRange.bound([t,""],[Lv(t),""],!1,!0);return _S(e).G(r).next((e=>{for(const r of e){if(r.collectionId!==t)break;n.push(Ab(r.parent))}return n}))}addFieldIndex(e,t){const n=xS(e),r=function(e){return{indexId:e.indexId,collectionGroup:e.collectionGroup,fields:e.fields.map((e=>[e.fieldPath.canonicalString(),e.kind]))}}(t);delete r.indexId;const i=n.add(r);if(t.indexState){const n=ES(e);return i.next((e=>{n.put(BE(e,this.uid,t.indexState.sequenceNumber,t.indexState.offset))}))}return i.next()}deleteFieldIndex(e,t){const n=xS(e),r=ES(e),i=TS(e);return n.delete(t.indexId).next((()=>r.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0)))).next((()=>i.delete(IDBKeyRange.bound([t.indexId],[t.indexId+1],!1,!0))))}deleteAllFieldIndexes(e){const t=xS(e),n=TS(e),r=ES(e);return t.J().next((()=>n.J())).next((()=>r.J()))}createTargetIndexes(e,t){return sb.forEach(this.dn(t),(t=>this.getIndexType(e,t).next((n=>{if(0===n||1===n){const n=new oS(t).Pn();if(null!=n)return this.addFieldIndex(e,n)}}))))}getDocumentsMatchingTarget(e,t){const n=TS(e);let r=!0;const i=new Map;return sb.forEach(this.dn(t),(t=>this.An(e,t).next((e=>{r&&(r=!!e),i.set(t,e)})))).next((()=>{if(r){let e=WT();const r=[];return sb.forEach(i,((i,s)=>{cv(vS,`Using index ${function(e){return`id=${e.indexId}|cg=${e.collectionGroup}|f=${e.fields.map((e=>`${e.fieldPath}:${e.kind}`)).join(",")}`}(i)} to execute ${dT(t)}`);const o=function(e,t){const n=Gv(t);if(void 0===n)return null;for(const r of mT(e,n.fieldPath))switch(r.op){case"array-contains-any":return r.value.arrayValue.values||[];case"array-contains":return[r.value]}return null}(s,i),a=function(e,t){const n=new Map;for(const r of Qv(t))for(const t of mT(e,r.fieldPath))switch(t.op){case"==":case"in":n.set(r.fieldPath.canonicalString(),t.value);break;case"not-in":case"!=":return n.set(r.fieldPath.canonicalString(),t.value),Array.from(n.values())}return null}(s,i),l=function(e,t){const n=[];let r=!0;for(const i of Qv(t)){const t=0===i.kind?gT(e,i.fieldPath,e.startAt):yT(e,i.fieldPath,e.startAt);n.push(t.value),r&&(r=t.inclusive)}return new U_(n,r)}(s,i),c=function(e,t){const n=[];let r=!0;for(const i of Qv(t)){const t=0===i.kind?yT(e,i.fieldPath,e.endAt):gT(e,i.fieldPath,e.endAt);n.push(t.value),r&&(r=t.inclusive)}return new U_(n,r)}(s,i),u=this.Rn(i,s,l),h=this.Rn(i,s,c),d=this.Vn(i,s,a),f=this.mn(i.indexId,o,u,l.inclusive,h,c.inclusive,d);return sb.forEach(f,(i=>n.H(i,t.limit).next((t=>{t.forEach((t=>{const n=Hv.fromSegments(t.documentKey);e.has(n)||(e=e.add(n),r.push(n))}))}))))})).next((()=>r))}return sb.resolve(null)}))}dn(e){let t=this.En.get(e);return t||(t=0===e.filters.length?[e]:lS(K_.create(e.filters,"and")).map((t=>hT(e.path,e.collectionGroup,e.orderBy,t.getFilters(),e.limit,e.startAt,e.endAt))),this.En.set(e,t),t)}mn(e,t,n,r,i,s,o){const a=(null!=t?t.length:1)*Math.max(n.length,i.length),l=a/(null!=t?t.length:1),c=[];for(let u=0;u<a;++u){const a=t?this.fn(t[u/l]):bS,h=this.gn(e,a,n[u%l],r),d=this.pn(e,a,i[u%l],s),f=o.map((t=>this.gn(e,a,t,!0)));c.push(...this.createRange(h,d,f))}return c}gn(e,t,n,r){const i=new rS(e,Hv.empty(),t,n);return r?i:i.nn()}pn(e,t,n,r){const i=new rS(e,Hv.empty(),t,n);return r?i.nn():i}An(e,t){const n=new oS(t),r=null!=t.collectionGroup?t.collectionGroup:t.path.lastSegment();return this.getFieldIndexes(e,r).next((e=>{let t=null;for(const r of e)n.un(r)&&(!t||r.fields.length>t.fields.length)&&(t=r);return t}))}getIndexType(e,t){let n=2;const r=this.dn(t);return sb.forEach(r,(t=>this.An(e,t).next((e=>{e?0!==n&&e.fields.length<function(e){let t=new Bw($v.comparator),n=!1;for(const r of e.filters)for(const e of r.getFlattenedFilters())e.field.isKeyField()||("array-contains"===e.op||"array-contains-any"===e.op?n=!0:t=t.add(e.field));for(const r of e.orderBy)r.field.isKeyField()||(t=t.add(r.field));return t.size+(n?1:0)}(t)&&(n=1):n=0})))).next((()=>function(e){return null!==e.limit}(t)&&r.length>1&&2===n?1:n))}yn(e,t){const n=new nS;for(const r of Qv(e)){const e=t.data.field(r.fieldPath);if(null==e)return null;const i=n.tn(r.kind);QE.xt.At(e,i)}return n.Yt()}fn(e){const t=new nS;return QE.xt.At(e,t.tn(0)),t.Yt()}wn(e,t){const n=new nS;return QE.xt.At(x_(this.databaseId,t),n.tn(function(e){const t=Qv(e);return 0===t.length?0:t[t.length-1].kind}(e))),n.Yt()}Vn(e,t,n){if(null===n)return[];let r=[];r.push(new nS);let i=0;for(const s of Qv(e)){const e=n[i++];for(const n of r)if(this.Sn(t,s.fieldPath)&&S_(e))r=this.bn(r,s,e);else{const t=n.tn(s.kind);QE.xt.At(e,t)}}return this.Dn(r)}Rn(e,t,n){return this.Vn(e,t,n.position)}Dn(e){const t=[];for(let n=0;n<e.length;++n)t[n]=e[n].Yt();return t}bn(e,t,n){const r=[...e],i=[];for(const s of n.arrayValue.values||[])for(const e of r){const n=new nS;n.seed(e.Yt()),QE.xt.At(s,n.tn(t.kind)),i.push(n)}return i}Sn(e,t){return!!e.filters.find((e=>e instanceof W_&&e.field.isEqual(t)&&("in"===e.op||"not-in"===e.op)))}getFieldIndexes(e,t){const n=xS(e),r=ES(e);return(t?n.G(hw,IDBKeyRange.bound(t,t)):n.G()).next((e=>{const t=[];return sb.forEach(e,(e=>r.get([e.indexId,this.uid]).next((n=>{t.push(function(e,t){const n=t?new Xv(t.sequenceNumber,new eb(LE(t.readTime),new Hv(Ab(t.documentKey)),t.largestBatchId)):Xv.empty(),r=e.fields.map((e=>{let[t,n]=e;return new Yv($v.fromServerFormat(t),n)}));return new Kv(e.indexId,e.collectionGroup,r,n)}(e,n))})))).next((()=>t))}))}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next((e=>0===e.length?null:(e.sort(((e,t)=>{const n=e.indexState.sequenceNumber-t.indexState.sequenceNumber;return 0!==n?n:Pv(e.collectionGroup,t.collectionGroup)})),e[0].collectionGroup)))}updateCollectionGroup(e,t,n){const r=xS(e),i=ES(e);return this.vn(e).next((e=>r.G(hw,IDBKeyRange.bound(t,t)).next((t=>sb.forEach(t,(t=>i.put(BE(t.indexId,this.uid,e,n))))))))}updateIndexEntries(e,t){const n=new Map;return sb.forEach(t,((t,r)=>{const i=n.get(t.collectionGroup);return(i?sb.resolve(i):this.getFieldIndexes(e,t.collectionGroup)).next((i=>(n.set(t.collectionGroup,i),sb.forEach(i,(n=>this.Cn(e,t,n).next((t=>{const i=this.Fn(r,n);return t.isEqual(i)?sb.resolve():this.Mn(e,r,n,t,i)})))))))}))}xn(e,t,n,r){return TS(e).put({indexId:r.indexId,uid:this.uid,arrayValue:r.arrayValue,directionalValue:r.directionalValue,orderedDocumentKey:this.wn(n,t.key),documentKey:t.key.path.toArray()})}On(e,t,n,r){return TS(e).delete([r.indexId,this.uid,r.arrayValue,r.directionalValue,this.wn(n,t.key),t.key.path.toArray()])}Cn(e,t,n){const r=TS(e);let i=new Bw(iS);return r.Z({index:vw,range:IDBKeyRange.only([n.indexId,this.uid,this.wn(n,t)])},((e,r)=>{i=i.add(new rS(n.indexId,t,r.arrayValue,r.directionalValue))})).next((()=>i))}Fn(e,t){let n=new Bw(iS);const r=this.yn(t,e);if(null==r)return n;const i=Gv(t);if(null!=i){const s=e.data.field(i.fieldPath);if(S_(s))for(const i of s.arrayValue.values||[])n=n.add(new rS(t.indexId,e.key,this.fn(i),r))}else n=n.add(new rS(t.indexId,e.key,bS,r));return n}
2Mn(e,t,n,r,i){cv(vS,"Updating index entries for document '%s'",t.key);const s=[];return function(e,t,n,r,i){const s=e.getIterator(),o=t.getIterator();let a=$w(s),l=$w(o);for(;a||l;){let e=!1,t=!1;if(a&&l){const r=n(a,l);r<0?t=!0:r>0&&(e=!0)}else null!=a?t=!0:e=!0;e?(r(l),l=$w(o)):t?(i(a),a=$w(s)):(a=$w(s),l=$w(o))}}(r,i,iS,(r=>{s.push(this.xn(e,t,n,r))}),(r=>{s.push(this.On(e,t,n,r))})),sb.waitFor(s)}vn(e){let t=1;return ES(e).Z({index:pw,reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},((e,n,r)=>{r.done(),t=n.sequenceNumber+1})).next((()=>t))}createRange(e,t,n){n=n.sort(((e,t)=>iS(e,t))).filter(((e,t,n)=>!t||0!==iS(e,n[t-1])));const r=[];r.push(e);for(const s of n){const n=iS(s,e),i=iS(s,t);if(0===n)r[0]=e.nn();else if(n>0&&i<0)r.push(s),r.push(s.nn());else if(i>0)break}r.push(t);const i=[];for(let s=0;s<r.length;s+=2){if(this.Nn(r[s],r[s+1]))return[];const e=[r[s].indexId,this.uid,r[s].arrayValue,r[s].directionalValue,bS,[]],t=[r[s+1].indexId,this.uid,r[s+1].arrayValue,r[s+1].directionalValue,bS,[]];i.push(IDBKeyRange.bound(e,t))}return i}Nn(e,t){return iS(e,t)>0}getMinOffsetFromCollectionGroup(e,t){return this.getFieldIndexes(e,t).next(SS)}getMinOffset(e,t){return sb.mapArray(this.dn(t),(t=>this.An(e,t).next((e=>e||fv())))).next(SS)}}function _S(e){return Lw(e,sw)}function TS(e){return Lw(e,gw)}function xS(e){return Lw(e,uw)}function ES(e){return Lw(e,dw)}function SS(e){pv(0!==e.length);let t=e[0].indexState.offset,n=t.largestBatchId;for(let r=1;r<e.length;r++){const i=e[r].indexState.offset;tb(i,t)<0&&(t=i),n<i.largestBatchId&&(n=i.largestBatchId)}return new eb(t.readTime,t.documentKey,n)}const kS={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},IS=41943040;class CS{static withCacheSize(e){return new CS(e,CS.DEFAULT_COLLECTION_PERCENTILE,CS.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}}function AS(e,t,n){const r=e.store(Ob),i=e.store(zb),s=[],o=IDBKeyRange.only(n.batchId);let a=0;const l=r.Z({range:o},((e,t,n)=>(a++,n.delete())));s.push(l.next((()=>{pv(1===a)})));const c=[];for(const u of n.mutations){const e=Vb(t,u.key.path,n.batchId);s.push(i.delete(e)),c.push(u.key)}return sb.waitFor(s).next((()=>c))}function PS(e){if(!e)return 0;let t;if(e.document)t=e.document;else if(e.unknownDocument)t=e.unknownDocument;else{if(!e.noDocument)throw fv();t=e.noDocument}return JSON.stringify(t).length}CS.DEFAULT_COLLECTION_PERCENTILE=10,CS.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,CS.DEFAULT=new CS(IS,CS.DEFAULT_COLLECTION_PERCENTILE,CS.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),CS.DISABLED=new CS(-1,0,0);class NS{constructor(e,t,n,r){this.userId=e,this.serializer=t,this.indexManager=n,this.referenceDelegate=r,this.Bn={}}static It(e,t,n,r){pv(""!==e.uid);const i=e.isAuthenticated()?e.uid:"";return new NS(i,t,n,r)}checkEmpty(e){let t=!0;const n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return DS(e).Z({index:jb,range:n},((e,n,r)=>{t=!1,r.done()})).next((()=>t))}addMutationBatch(e,t,n,r){const i=OS(e),s=DS(e);return s.add({}).next((o=>{pv("number"==typeof o);const a=new Ix(o,t,n,r),l=function(e,t,n){const r=n.baseMutations.map((t=>gE(e.Tt,t))),i=n.mutations.map((t=>gE(e.Tt,t)));return{userId:t,batchId:n.batchId,localWriteTimeMs:n.localWriteTime.toMillis(),baseMutations:r,mutations:i}}(this.serializer,this.userId,a),c=[];let u=new Bw(((e,t)=>Pv(e.canonicalString(),t.canonicalString())));for(const e of r){const t=Vb(this.userId,e.key.path,o);u=u.add(e.key.path.popLast()),c.push(s.put(l)),c.push(i.put(t,Ub))}return u.forEach((t=>{c.push(this.indexManager.addToCollectionParentIndex(e,t))})),e.addOnCommittedListener((()=>{this.Bn[o]=a.keys()})),sb.waitFor(c).next((()=>a))}))}lookupMutationBatch(e,t){return DS(e).get(t).next((e=>e?(pv(e.userId===this.userId),jE(this.serializer,e)):null))}Ln(e,t){return this.Bn[t]?sb.resolve(this.Bn[t]):this.lookupMutationBatch(e,t).next((e=>{if(e){const n=e.keys();return this.Bn[t]=n,n}return null}))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=IDBKeyRange.lowerBound([this.userId,n]);let i=null;return DS(e).Z({index:jb,range:r},((e,t,r)=>{t.userId===this.userId&&(pv(t.batchId>=n),i=jE(this.serializer,t)),r.done()})).next((()=>i))}getHighestUnacknowledgedBatchId(e){const t=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let n=_b;return DS(e).Z({index:jb,range:t,reverse:!0},((e,t,r)=>{n=t.batchId,r.done()})).next((()=>n))}getAllMutationBatches(e){const t=IDBKeyRange.bound([this.userId,_b],[this.userId,Number.POSITIVE_INFINITY]);return DS(e).G(jb,t).next((e=>e.map((e=>jE(this.serializer,e)))))}getAllMutationBatchesAffectingDocumentKey(e,t){const n=Fb(this.userId,t.path),r=IDBKeyRange.lowerBound(n),i=[];return OS(e).Z({range:r},((n,r,s)=>{const[o,a,l]=n,c=Ab(a);if(o===this.userId&&t.path.isEqual(c))return DS(e).get(l).next((e=>{if(!e)throw fv();pv(e.userId===this.userId),i.push(jE(this.serializer,e))}));s.done()})).next((()=>i))}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new Bw(Pv);const r=[];return t.forEach((t=>{const i=Fb(this.userId,t.path),s=IDBKeyRange.lowerBound(i),o=OS(e).Z({range:s}
vendor: 13,047 bytes, line 2
2,((e,r,i)=>{const[s,o,a]=e,l=Ab(o);s===this.userId&&t.path.isEqual(l)?n=n.add(a):i.done()}));r.push(o)})),sb.waitFor(r).next((()=>this.kn(e,n)))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1,i=Fb(this.userId,n),s=IDBKeyRange.lowerBound(i);let o=new Bw(Pv);return OS(e).Z({range:s},((e,t,i)=>{const[s,a,l]=e,c=Ab(a);s===this.userId&&n.isPrefixOf(c)?c.length===r&&(o=o.add(l)):i.done()})).next((()=>this.kn(e,o)))}kn(e,t){const n=[],r=[];return t.forEach((t=>{r.push(DS(e).get(t).next((e=>{if(null===e)throw fv();pv(e.userId===this.userId),n.push(jE(this.serializer,e))})))})),sb.waitFor(r).next((()=>n))}removeMutationBatch(e,t){return AS(e.ue,this.userId,t).next((n=>(e.addOnCommittedListener((()=>{this.qn(t.batchId)})),sb.forEach(n,(t=>this.referenceDelegate.markPotentiallyOrphaned(e,t))))))}qn(e){delete this.Bn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next((t=>{if(!t)return sb.resolve();const n=IDBKeyRange.lowerBound(function(e){return[e]}(this.userId)),r=[];return OS(e).Z({range:n},((e,t,n)=>{if(e[0]===this.userId){const t=Ab(e[1]);r.push(t)}else n.done()})).next((()=>{pv(0===r.length)}))}))}containsKey(e,t){return RS(e,this.userId,t)}Qn(e){return LS(e).get(this.userId).next((e=>e||{userId:this.userId,lastAcknowledgedBatchId:_b,lastStreamToken:""}))}}function RS(e,t,n){const r=Fb(t,n.path),i=r[1],s=IDBKeyRange.lowerBound(r);let o=!1;return OS(e).Z({range:s,Y:!0},((e,n,r)=>{const[s,a,l]=e;s===t&&a===i&&(o=!0),r.done()})).next((()=>o))}function DS(e){return Lw(e,Ob)}function OS(e){return Lw(e,zb)}function LS(e){return Lw(e,Db)}class jS{constructor(e){this.$n=e}next(){return this.$n+=2,this.$n}static Un(){return new jS(0)}static Kn(){return new jS(-1)}}class MS{constructor(e,t){this.referenceDelegate=e,this.serializer=t}allocateTargetId(e){return this.Wn(e).next((t=>{const n=new jS(t.highestTargetId);return t.highestTargetId=n.next(),this.Gn(e,t).next((()=>t.highestTargetId))}))}getLastRemoteSnapshotVersion(e){return this.Wn(e).next((e=>Vv.fromTimestamp(new Fv(e.lastRemoteSnapshotVersion.seconds,e.lastRemoteSnapshotVersion.nanoseconds))))}getHighestSequenceNumber(e){return this.Wn(e).next((e=>e.highestListenSequenceNumber))}setTargetsMetadata(e,t,n){return this.Wn(e).next((r=>(r.highestListenSequenceNumber=t,n&&(r.lastRemoteSnapshotVersion=n.toTimestamp()),t>r.highestListenSequenceNumber&&(r.highestListenSequenceNumber=t),this.Gn(e,r))))}addTargetData(e,t){return this.zn(e,t).next((()=>this.Wn(e).next((n=>(n.targetCount+=1,this.jn(t,n),this.Gn(e,n))))))}updateTargetData(e,t){return this.zn(e,t)}removeTargetData(e,t){return this.removeMatchingKeysForTargetId(e,t.targetId).next((()=>FS(e).delete(t.targetId))).next((()=>this.Wn(e))).next((t=>(pv(t.targetCount>0),t.targetCount-=1,this.Gn(e,t))))}removeTargets(e,t,n){let r=0;const i=[];return FS(e).Z(((s,o)=>{const a=ME(o);a.sequenceNumber<=t&&null===n.get(a.targetId)&&(r++,i.push(this.removeTargetData(e,a)))})).next((()=>sb.waitFor(i))).next((()=>r))}forEachTarget(e,t){return FS(e).Z(((e,n)=>{const r=ME(n);t(r)}))}Wn(e){return VS(e).get(rw).next((e=>(pv(null!==e),e)))}Gn(e,t){return VS(e).put(rw,t)}zn(e,t){return FS(e).put(FE(this.serializer,t))}jn(e,t){let n=!1;return e.targetId>t.highestTargetId&&(t.highestTargetId=e.targetId,n=!0),e.sequenceNumber>t.highestListenSequenceNumber&&(t.highestListenSequenceNumber=e.sequenceNumber,n=!0),n}getTargetCount(e){return this.Wn(e).next((e=>e.targetCount))}getTargetData(e,t){const n=dT(t),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]);let i=null;return FS(e).Z({range:r,index:Xb},((e,n,r)=>{const s=ME(n);fT(t,s.target)&&(i=s,r.done())})).next((()=>i))}addMatchingKeys(e,t,n){const r=[],i=US(e);return t.forEach((t=>{const s=kb(t.path);r.push(i.put({targetId:n,path:s})),r.push(this.referenceDelegate.addReference(e,n,t))})),sb.waitFor(r)}removeMatchingKeys(e,t,n){const r=US(e);return sb.forEach(t,(t=>{const i=kb(t.path);return sb.waitFor([r.delete([n,i]),this.referenceDelegate.removeReference(e,n,t)])}))}removeMatchingKeysForTargetId(e,t){const n=US(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return n.delete(r)}getMatchingKeysForTargetId(e,t){const n=IDBKeyRange.bound([t],[t+1],!1,!0),r=US(e);let i=WT();return r.Z({range:n,Y:!0},((e,t,n)=>{const r=Ab(e[1]),s=new Hv(r);i=i.add(s)})).next((()=>i))}containsKey(e,t){const n=kb(t.path),r=IDBKeyRange.bound([n],[Lv(n)],!1,!0);let i=0;return US(e).Z({index:tw,Y:!0,range:r},((e,t,n)=>{let[r,s]=e;0!==r&&(i++,n.done())})).next((()=>i>0))}lt(e,t){return FS(e).get(t).next((e=>e?ME(e):null))}}function FS(e){return Lw(e,Yb)}function VS(e){return Lw(e,iw)}function US(e){return Lw(e,Zb)}const zS="LruGarbageCollector",BS=1048576;function qS(e,t){let[n,r]=e,[i,s]=t;const o=Pv(n,i);return 0===o?Pv(r,s):o}class $S{constructor(e){this.Hn=e,this.buffer=new Bw(qS),this.Jn=0}Yn(){return++this.Jn}Zn(e){const t=[e,this.Yn()];if(this.buffer.size<this.Hn)this.buffer=this.buffer.add(t);else{const e=this.buffer.last();qS(t,e)<0&&(this.buffer=this.buffer.delete(e).add(t))}}get maxValue(){return this.buffer.last()[0]}}class HS{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Xn=null}start(){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.er(6e4)}stop(){this.Xn&&(this.Xn.cancel(),this.Xn=null)}get started(){return null!==this.Xn}er(e){cv(zS,`Garbage collection scheduled in ${e}ms`),this.Xn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(async()=>{this.Xn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){db(e)?cv(zS,"Ignoring IndexedDB error during garbage collection: ",e):await ib(e)}await this.er(3e5)}))}}class WS{constructor(e,t){this.tr=e,this.params=t}calculateTargetCount(e,t){return this.tr.nr(e).next((e=>Math.floor(t/100*e)))}nthSequenceNumber(e,t){if(0===t)return sb.resolve(wb.ae);const n=new $S(t);return this.tr.forEachTarget(e,(e=>n.Zn(e.sequenceNumber))).next((()=>this.tr.rr(e,(e=>n.Zn(e))))).next((()=>n.maxValue))}removeTargets(e,t,n){return this.tr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.tr.removeOrphanedDocuments(e,t)}collect(e,t){return-1===this.params.cacheSizeCollectionThreshold?(cv("LruGarbageCollector","Garbage collection skipped; disabled"),sb.resolve(kS)):this.getCacheSize(e).next((n=>n<this.params.cacheSizeCollectionThreshold?(cv("LruGarbageCollector",`Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),kS):this.ir(e,t)))}getCacheSize(e){return this.tr.getCacheSize(e)}ir(e,t){let n,r,i,s,o,a,l;const c=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((t=>(t>this.params.maximumSequenceNumbersToCollect?(cv("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${t}`),r=this.params.maximumSequenceNumbersToCollect):r=t,s=Date.now(),this.nthSequenceNumber(e,r)))).next((r=>(n=r,o=Date.now(),this.removeTargets(e,n,t)))).next((t=>(i=t,a=Date.now(),this.removeOrphanedDocuments(e,n)))).next((e=>(l=Date.now(),lv()<=Mu.DEBUG&&cv("LruGarbageCollector",`LRU Garbage Collection\n\tCounted targets in ${s-c}ms\n\tDetermined least recently used ${r} in `+(o-s)+"ms\n"+`\tRemoved ${i} targets in `+(a-o)+"ms\n"+`\tRemoved ${e} documents in `+(l-a)+"ms\n"+`Total Duration: ${l-c}ms`),sb.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:e}))))}}function KS(e,t){return new WS(e,t)}class GS{constructor(e,t){this.db=e,this.garbageCollector=KS(this,t)}nr(e){const t=this.sr(e);return this.db.getTargetCache().getTargetCount(e).next((e=>t.next((t=>e+t))))}sr(e){let t=0;return this.rr(e,(e=>{t++})).next((()=>t))}forEachTarget(e,t){return this.db.getTargetCache().forEachTarget(e,t)}rr(e,t){return this._r(e,((e,n)=>t(n)))}addReference(e,t,n){return QS(e,n)}removeReference(e,t,n){return QS(e,n)}removeTargets(e,t,n){return this.db.getTargetCache().removeTargets(e,t,n)}markPotentiallyOrphaned(e,t){return QS(e,t)}ar(e,t){return function(e,t){let n=!1;return LS(e).X((r=>RS(e,r,t).next((e=>(e&&(n=!0),sb.resolve(!e)))))).next((()=>n))}(e,t)}removeOrphanedDocuments(e,t){const n=this.db.getRemoteDocumentCache().newChangeBuffer(),r=[];let i=0;return this._r(e,((s,o)=>{if(o<=t){const t=this.ar(e,s).next((t=>{if(!t)return i++,n.getEntry(e,s).next((()=>(n.removeEntry(s,Vv.min()),US(e).delete(function(e){return[0,kb(e.path)]}(s)))))}));r.push(t)}})).next((()=>sb.waitFor(r))).next((()=>n.apply(e))).next((()=>i))}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,n)}updateLimboDocument(e,t){return QS(e,t)}_r(e,t){const n=US(e);let r,i=wb.ae;return n.Z({index:tw},((e,n)=>{let[s,o]=e,{path:a,sequenceNumber:l}=n;0===s?(i!==wb.ae&&t(new Hv(Ab(r)),i),i=l,r=a):i=wb.ae})).next((()=>{i!==wb.ae&&t(new Hv(Ab(r)),i)}))}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function QS(e,t){return US(e).put(function(e,t){return{targetId:0,path:kb(e.path),sequenceNumber:t}}(t,e.currentSequenceNumber))}class YS{constructor(){this.changes=new LT((e=>e.toString()),((e,t)=>e.isEqual(t))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,V_.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();const n=this.changes.get(t);return void 0!==n?sb.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}class XS{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,t,n){return tk(e).put(n)}removeEntry(e,t,n){return tk(e).delete(function(e,t){const n=e.path.toArray();return[n.slice(0,n.length-2),n[n.length-2],DE(t),n[n.length-1]]}(t,n))}updateMetadata(e,t){return this.getMetadata(e).next((n=>(n.byteSize+=t,this.ur(e,n))))}getEntry(e,t){let n=V_.newInvalidDocument(t);return tk(e).Z({index:$b,range:IDBKeyRange.only(nk(t))},((e,r)=>{n=this.cr(t,r)})).next((()=>n))}lr(e,t){let n={size:0,document:V_.newInvalidDocument(t)};return tk(e).Z({index:$b,range:IDBKeyRange.only(nk(t))},((e,r)=>{n={document:this.cr(t,r),size:PS(r)}})).next((()=>n))}getEntries(e,t){let n=MT();return this.hr(e,t,((e,t)=>{const r=this.cr(e,t);n=n.insert(e,r)})).next((()=>n))}Pr(e,t){let n=MT(),r=new Vw(Hv.comparator);return this.hr(e,t,((e,t)=>{const i=this.cr(e,t);n=n.insert(e,i),r=r.insert(e,PS(t))})).next((()=>({documents:n,Tr:r})))}hr(e,t,n){if(t.isEmpty())return sb.resolve();let r=new Bw(ik);t.forEach((e=>r=r.add(e)));const i=IDBKeyRange.bound(nk(r.first()),nk(r.last())),s=r.getIterator();let o=s.getNext();return tk(e).Z({index:$b,range:i},((e,t,r)=>{const i=Hv.fromSegments([...t.prefixPath,t.collectionGroup,t.documentId]);for(;o&&ik(o,i)<0;)n(o,null),o=s.getNext();o&&o.isEqual(i)&&(n(o,t),o=s.hasNext()?s.getNext():null),o?r.W(nk(o)):r.done()})).next((()=>{for(;o;)n(o,null),o=s.hasNext()?s.getNext():null}))}getDocumentsMatchingQuery(e,t,n,r,i){const s=t.path,o=[s.popLast().toArray(),s.lastSegment(),DE(n.readTime),n.documentKey.path.isEmpty()?"":n.documentKey.path.lastSegment()],a=[s.popLast().toArray(),s.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return tk(e).G(IDBKeyRange.bound(o,a,!0)).next((e=>{null==i||i.incrementDocumentReadCount(e.length);let n=MT();for(const i of e){const e=this.cr(Hv.fromSegments(i.prefixPath.concat(i.collectionGroup,i.documentId)),i);e.isFoundDocument()&&(NT(t,e)||r.has(e.key))&&(n=n.insert(e.key,e))}return n}))}getAllFromCollectionGroup(e,t,n,r){let i=MT();const s=rk(t,n),o=rk(t,eb.max());return tk(e).Z({index:Wb,range:IDBKeyRange.bound(s,o,!0)},((e,t,n)=>{const s=this.cr(Hv.fromSegments(t.prefixPath.concat(t.collectionGroup,t.documentId)),t);i=i.insert(s.key,s),i.size===r&&n.done()})).next((()=>i))}newChangeBuffer(e){return new ZS(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next((e=>e.byteSize))}getMetadata(e){return ek(e).get(Qb).next((e=>(pv(!!e),e)))}ur(e,t){return ek(e).put(Qb,t)}cr(e,t){if(t){const e=function(e,t){let n;if(t.document)n=mE(e.Tt,t.document,!!t.hasCommittedMutations);else if(t.noDocument){const e=Hv.fromSegments(t.noDocument.path),r=LE(t.noDocument.readTime);n=V_.newNoDocument(e,r),t.hasCommittedMutations&&n.setHasCommittedMutations()}else{if(!t.unknownDocument)return fv();{const e=Hv.fromSegments(t.unknownDocument.path),r=LE(t.unknownDocument.version);n=V_.newUnknownDocument(e,r)}}return t.readTime&&n.setReadTime(function(e){const t=new Fv(e[0],e[1]);return Vv.fromTimestamp(t)}(t.readTime)),n}(this.serializer,t);if(!e.isNoDocument()||!e.version.isEqual(Vv.min()))return e}return V_.newInvalidDocument(e)}}function JS(e){return new XS(e)}class ZS extends YS{constructor(e,t){super(),this.Ir=e,this.trackRemovals=t,this.Er=new LT((e=>e.toString()),((e,t)=>e.isEqual(t)))}applyChanges(e){const t=[];let n=0,r=new Bw(((e,t)=>Pv(e.canonicalString(),t.canonicalString())));
vendor: 4,645 bytes, line 2
2return this.changes.forEach(((i,s)=>{const o=this.Er.get(i);if(t.push(this.Ir.removeEntry(e,i,o.readTime)),s.isValidDocument()){const a=RE(this.Ir.serializer,s);r=r.add(i.path.popLast());const l=PS(a);n+=l-o.size,t.push(this.Ir.addEntry(e,i,a))}else if(n-=o.size,this.trackRemovals){const n=RE(this.Ir.serializer,s.convertToNoDocument(Vv.min()));t.push(this.Ir.addEntry(e,i,n))}})),r.forEach((n=>{t.push(this.Ir.indexManager.addToCollectionParentIndex(e,n))})),t.push(this.Ir.updateMetadata(e,n)),sb.waitFor(t)}getFromCache(e,t){return this.Ir.lr(e,t).next((e=>(this.Er.set(t,{size:e.size,readTime:e.document.readTime}),e.document)))}getAllFromCache(e,t){return this.Ir.Pr(e,t).next((e=>{let{documents:t,Tr:n}=e;return n.forEach(((e,n)=>{this.Er.set(e,{size:n,readTime:t.get(e).readTime})})),t}))}}function ek(e){return Lw(e,Gb)}function tk(e){return Lw(e,Bb)}function nk(e){const t=e.path.toArray();return[t.slice(0,t.length-2),t[t.length-2],t[t.length-1]]}function rk(e,t){const n=t.documentKey.path.toArray();return[e,DE(t.readTime),n.slice(0,n.length-2),n.length>0?n[n.length-1]:""]}function ik(e,t){const n=e.path.toArray(),r=t.path.toArray();let i=0;for(let s=0;s<n.length-2&&s<r.length-2;++s)if(i=Pv(n[s],r[s]),i)return i;return i=Pv(n.length,r.length),i||(i=Pv(n[n.length-2],r[r.length-2]),i||Pv(n[n.length-1],r[r.length-1]))}class sk{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}}class ok{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next((r=>(n=r,this.remoteDocumentCache.getEntry(e,t)))).next((e=>(null!==n&&yx(n.mutation,e,Hw.empty(),Fv.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,WT()).next((()=>t))))}getLocalViewOfDocuments(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WT();const r=zT();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=VT();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){const n=zT();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,WT())))}populateOverlays(e,t,n){const r=[];return n.forEach((e=>{t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((e=>{e.forEach(((e,n)=>{t.set(e,n)}))}))}computeViews(e,t,n,r){let i=MT();const s=qT(),o=qT();return t.forEach(((e,t)=>{const o=n.get(t.key);r.has(t.key)&&(void 0===o||o.mutation instanceof _x)?i=i.insert(t.key,t):void 0!==o?(s.set(t.key,o.mutation.getFieldMask()),yx(o.mutation,t,o.mutation.getFieldMask(),Fv.now())):s.set(t.key,Hw.empty())})),this.recalculateAndSaveOverlays(e,i).next((e=>(e.forEach(((e,t)=>s.set(e,t))),t.forEach(((e,t)=>{var n;return o.set(e,new sk(t,null!==(n=s.get(e))&&void 0!==n?n:null))})),o)))}recalculateAndSaveOverlays(e,t){const n=qT();let r=new Vw(((e,t)=>e-t)),i=WT();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((e=>{for(const i of e)i.keys().forEach((e=>{const s=t.get(e);if(null===s)return;let o=n.get(e)||Hw.empty();o=i.applyToLocalView(s,o),n.set(e,o);const a=(r.get(i.batchId)||WT()).add(e);r=r.insert(i.batchId,a)}))})).next((()=>{const s=[],o=r.getReverseIterator();for(;o.hasNext();){const r=o.getNext(),a=r.key,l=r.value,c=BT();l.forEach((e=>{if(!i.has(e)){const r=mx(t.get(e),n.get(e));null!==r&&c.set(e,r),i=i.add(e)}})),s.push(this.documentOverlayCache.saveOverlays(e,a,c))}return sb.waitFor(s)})).next((()=>n))}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.recalculateAndSaveOverlays(e,t)))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return Hv.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):TT(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((i=>{const s=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):sb.resolve(zT());let o=Wv,a=i;return s.next((t=>sb.forEach(t,((t,n)=>(o<n.largestBatchId&&(o=n.largestBatchId),i.get(t)?sb.resolve():this.remoteDocumentCache.getEntry(e,t).next((e=>{a=a.insert(t,e)}))))).next((()=>this.populateOverlays(e,t,i))).next((()=>this.computeViews(e,a,t,WT()))).next((e=>({batchId:o,changes:UT(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new Hv(t)).next((e=>{let t=VT();
vendor: 16,808 bytes, line 2
2return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){const i=t.collectionGroup;let s=VT();return this.indexManager.getCollectionParents(e,i).next((o=>sb.forEach(o,(o=>{const a=function(e,t){return new vT(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,o.child(i));return this.getDocumentsMatchingCollectionQuery(e,a,n,r).next((e=>{e.forEach(((e,t)=>{s=s.insert(e,t)}))}))})).next((()=>s))))}getDocumentsMatchingCollectionQuery(e,t,n,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((s=>(i=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r)))).next((e=>{i.forEach(((t,n)=>{const r=n.getKey();null===e.get(r)&&(e=e.insert(r,V_.newInvalidDocument(r)))}));let n=VT();return e.forEach(((e,r)=>{const s=i.get(e);void 0!==s&&yx(s.mutation,r,Hw.empty(),Fv.now()),NT(t,r)&&(n=n.insert(e,r))})),n}))}}class ak{constructor(e){this.serializer=e,this.dr=new Map,this.Ar=new Map}getBundleMetadata(e,t){return sb.resolve(this.dr.get(t))}saveBundleMetadata(e,t){return this.dr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:iE(e.createTime)}}(t)),sb.resolve()}getNamedQuery(e,t){return sb.resolve(this.Ar.get(t))}saveNamedQuery(e,t){return this.Ar.set(t.name,function(e){return{name:e.name,query:VE(e.bundledQuery),readTime:iE(e.readTime)}}(t)),sb.resolve()}}class lk{constructor(){this.overlays=new Vw(Hv.comparator),this.Rr=new Map}getOverlay(e,t){return sb.resolve(this.overlays.get(t))}getOverlays(e,t){const n=zT();return sb.forEach(t,(t=>this.getOverlay(e,t).next((e=>{null!==e&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){return n.forEach(((n,r)=>{this.Et(e,t,r)})),sb.resolve()}removeOverlaysForBatchId(e,t,n){const r=this.Rr.get(n);return void 0!==r&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.Rr.delete(n)),sb.resolve()}getOverlaysForCollection(e,t,n){const r=zT(),i=t.length+1,s=new Hv(t.child("")),o=this.overlays.getIteratorFrom(s);for(;o.hasNext();){const e=o.getNext().value,s=e.getKey();if(!t.isPrefixOf(s.path))break;s.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return sb.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new Vw(((e,t)=>e-t));const s=this.overlays.getIterator();for(;s.hasNext();){const e=s.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);null===t&&(t=zT(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}const o=zT(),a=i.getIterator();for(;a.hasNext()&&(a.getNext().value.forEach(((e,t)=>o.set(e,t))),!(o.size()>=r)););return sb.resolve(o)}Et(e,t,n){const r=this.overlays.get(n.key);if(null!==r){const e=this.Rr.get(r.largestBatchId).delete(n.key);this.Rr.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new Ax(t,n));let i=this.Rr.get(t);void 0===i&&(i=WT(),this.Rr.set(t,i)),this.Rr.set(t,i.add(n.key))}}class ck{constructor(){this.sessionToken=Kw.EMPTY_BYTE_STRING}getSessionToken(e){return sb.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,sb.resolve()}}class uk{constructor(){this.Vr=new Bw(hk.mr),this.gr=new Bw(hk.pr)}isEmpty(){return this.Vr.isEmpty()}addReference(e,t){const n=new hk(e,t);this.Vr=this.Vr.add(n),this.gr=this.gr.add(n)}yr(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.wr(new hk(e,t))}Sr(e,t){e.forEach((e=>this.removeReference(e,t)))}br(e){const t=new Hv(new Bv([])),n=new hk(t,e),r=new hk(t,e+1),i=[];return this.gr.forEachInRange([n,r],(e=>{this.wr(e),i.push(e.key)})),i}Dr(){this.Vr.forEach((e=>this.wr(e)))}wr(e){this.Vr=this.Vr.delete(e),this.gr=this.gr.delete(e)}vr(e){const t=new Hv(new Bv([])),n=new hk(t,e),r=new hk(t,e+1);let i=WT();return this.gr.forEachInRange([n,r],(e=>{i=i.add(e.key)})),i}containsKey(e){const t=new hk(e,0),n=this.Vr.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}class hk{constructor(e,t){this.key=e,this.Cr=t}static mr(e,t){return Hv.comparator(e.key,t.key)||Pv(e.Cr,t.Cr)}static pr(e,t){return Pv(e.Cr,t.Cr)||Hv.comparator(e.key,t.key)}}class dk{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.Fr=1,this.Mr=new Bw(hk.mr)}checkEmpty(e){return sb.resolve(0===this.mutationQueue.length)}addMutationBatch(e,t,n,r){const i=this.Fr;this.Fr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new Ix(i,t,n,r);this.mutationQueue.push(s);for(const o of r)this.Mr=this.Mr.add(new hk(o.key,i)),this.indexManager.addToCollectionParentIndex(e,o.key.path.popLast());return sb.resolve(s)}lookupMutationBatch(e,t){return sb.resolve(this.Or(t))}getNextMutationBatchAfterBatchId(e,t){const n=t+1,r=this.Nr(n),i=r<0?0:r;return sb.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return sb.resolve(0===this.mutationQueue.length?_b:this.Fr-1)}getAllMutationBatches(e){return sb.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){const n=new hk(t,0),r=new hk(t,Number.POSITIVE_INFINITY),i=[];return this.Mr.forEachInRange([n,r],(e=>{const t=this.Or(e.Cr);i.push(t)})),sb.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new Bw(Pv);return t.forEach((e=>{const t=new hk(e,0),r=new hk(e,Number.POSITIVE_INFINITY);this.Mr.forEachInRange([t,r],(e=>{n=n.add(e.Cr)}))})),sb.resolve(this.Br(n))}getAllMutationBatchesAffectingQuery(e,t){const n=t.path,r=n.length+1;let i=n;Hv.isDocumentKey(i)||(i=i.child(""));const s=new hk(new Hv(i),0);let o=new Bw(Pv);return this.Mr.forEachWhile((e=>{const t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e.Cr)),!0)}),s),sb.resolve(this.Br(o))}Br(e){const t=[];return e.forEach((e=>{const n=this.Or(e);null!==n&&t.push(n)})),t}removeMutationBatch(e,t){pv(0===this.Lr(t.batchId,"removed")),this.mutationQueue.shift();let n=this.Mr;return sb.forEach(t.mutations,(r=>{const i=new hk(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.Mr=n}))}qn(e){}containsKey(e,t){const n=new hk(t,0),r=this.Mr.firstAfterOrEqual(n);return sb.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,sb.resolve()}Lr(e,t){return this.Nr(e)}Nr(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}Or(e){const t=this.Nr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}class fk{constructor(e){this.kr=e,this.docs=new Vw(Hv.comparator),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){const n=t.key,r=this.docs.get(n),i=r?r.size:0,s=this.kr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:s}),this.size+=s-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){const t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){const n=this.docs.get(t);return sb.resolve(n?n.document.mutableCopy():V_.newInvalidDocument(t))}getEntries(e,t){let n=MT();return t.forEach((e=>{const t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():V_.newInvalidDocument(e))})),sb.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let i=MT();const s=t.path,o=new Hv(s.child("__id-9223372036854775808__")),a=this.docs.getIteratorFrom(o);for(;a.hasNext();){const{key:e,value:{document:o}}=a.getNext();if(!s.isPrefixOf(e.path))break;e.path.length>s.length+1||tb(Zv(o),n)<=0||(r.has(o.key)||NT(t,o))&&(i=i.insert(o.key,o.mutableCopy()))}return sb.resolve(i)}getAllFromCollectionGroup(e,t,n,r){fv()}qr(e,t){return sb.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new pk(this)}getSize(e){return sb.resolve(this.size)}}class pk extends YS{constructor(e){super(),this.Ir=e}applyChanges(e){const t=[];return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this.Ir.addEntry(e,r)):this.Ir.removeEntry(n)})),sb.waitFor(t)}getFromCache(e,t){return this.Ir.getEntry(e,t)}getAllFromCache(e,t){return this.Ir.getEntries(e,t)}}class mk{constructor(e){this.persistence=e,this.Qr=new LT((e=>dT(e)),fT),this.lastRemoteSnapshotVersion=Vv.min(),this.highestTargetId=0,this.$r=0,this.Ur=new uk,this.targetCount=0,this.Kr=jS.Un()}forEachTarget(e,t){return this.Qr.forEach(((e,n)=>t(n))),sb.resolve()}getLastRemoteSnapshotVersion(e){return sb.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return sb.resolve(this.$r)}allocateTargetId(e){return this.highestTargetId=this.Kr.next(),sb.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.$r&&(this.$r=t),sb.resolve()}zn(e){this.Qr.set(e.target,e);const t=e.targetId;t>this.highestTargetId&&(this.Kr=new jS(t),this.highestTargetId=t),e.sequenceNumber>this.$r&&(this.$r=e.sequenceNumber)}addTargetData(e,t){return this.zn(t),this.targetCount+=1,sb.resolve()}updateTargetData(e,t){return this.zn(t),sb.resolve()}removeTargetData(e,t){return this.Qr.delete(t.target),this.Ur.br(t.targetId),this.targetCount-=1,sb.resolve()}removeTargets(e,t,n){let r=0;const i=[];return this.Qr.forEach(((s,o)=>{o.sequenceNumber<=t&&null===n.get(o.targetId)&&(this.Qr.delete(s),i.push(this.removeMatchingKeysForTargetId(e,o.targetId)),r++)})),sb.waitFor(i).next((()=>r))}getTargetCount(e){return sb.resolve(this.targetCount)}getTargetData(e,t){const n=this.Qr.get(t)||null;return sb.resolve(n)}addMatchingKeys(e,t,n){return this.Ur.yr(t,n),sb.resolve()}removeMatchingKeys(e,t,n){this.Ur.Sr(t,n);const r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((t=>{i.push(r.markPotentiallyOrphaned(e,t))})),sb.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.Ur.br(t),sb.resolve()}getMatchingKeysForTargetId(e,t){const n=this.Ur.vr(t);return sb.resolve(n)}containsKey(e,t){return sb.resolve(this.Ur.containsKey(t))}}class gk{constructor(e,t){this.Wr={},this.overlays={},this.Gr=new wb(0),this.zr=!1,this.zr=!0,this.jr=new ck,this.referenceDelegate=e(this),this.Hr=new mk(this),this.indexManager=new gS,this.remoteDocumentCache=function(e){return new fk(e)}((e=>this.referenceDelegate.Jr(e))),this.serializer=new NE(t),this.Yr=new ak(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.zr=!1,Promise.resolve()}get started(){return this.zr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new lk,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.Wr[e.toKey()];return n||(n=new dk(t,this.referenceDelegate),this.Wr[e.toKey()]=n),n}getGlobalsCache(){return this.jr}getTargetCache(){return this.Hr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Yr}runTransaction(e,t,n){cv("MemoryPersistence","Starting transaction:",e);const r=new yk(this.Gr.next());return this.referenceDelegate.Zr(),n(r).next((e=>this.referenceDelegate.Xr(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}ei(e,t){return sb.or(Object.values(this.Wr).map((n=>()=>n.containsKey(e,t))))}}class yk extends rb{constructor(e){super(),this.currentSequenceNumber=e}}class vk{constructor(e){this.persistence=e,this.ti=new uk,this.ni=null}static ri(e){return new vk(e)}get ii(){if(this.ni)return this.ni;throw fv()}addReference(e,t,n){return this.ti.addReference(n,t),this.ii.delete(n.toString()),sb.resolve()}removeReference(e,t,n){return this.ti.removeReference(n,t),this.ii.add(n.toString()),sb.resolve()}markPotentiallyOrphaned(e,t){return this.ii.add(t.toString()),sb.resolve()}removeTarget(e,t){this.ti.br(t.targetId).forEach((e=>this.ii.add(e.toString())));const n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.ii.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}Zr(){this.ni=new Set}Xr(e){const t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return sb.forEach(this.ii,(n=>{const r=Hv.fromPath(n);return this.si(e,r).next((e=>{e||t.removeEntry(r,Vv.min())}))})).next((()=>(this.ni=null,t.apply(e))))}updateLimboDocument(e,t){return this.si(e,t).next((e=>{e?this.ii.delete(t.toString()):this.ii.add(t.toString())}))}Jr(e){return 0}si(e,t){return sb.or([()=>sb.resolve(this.ti.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.ei(e,t)])}}class bk{constructor(e,t){this.persistence=e,this.oi=new LT((e=>kb(e.path)),((e,t)=>e.isEqual(t))),this.garbageCollector=KS(this,t)}static ri(e,t){return new bk(e,t)}Zr(){}Xr(e){return sb.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}nr(e){const t=this.sr(e);return this.persistence.getTargetCache().getTargetCount(e).next((e=>t.next((t=>e+t))))}sr(e){let t=0;return this.rr(e,(e=>{t++})).next((()=>t))}rr(e,t){return sb.forEach(this.oi,((n,r)=>this.ar(e,n,r).next((e=>e?sb.resolve():t(r)))))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0;const r=this.persistence.getRemoteDocumentCache(),i=r.newChangeBuffer();return r.qr(e,(r=>this.ar(e,r,t).next((e=>{e||(n++,i.removeEntry(r,Vv.min()))})))).next((()=>i.apply(e))).next((()=>n))}markPotentiallyOrphaned(e,t){return this.oi.set(t,e.currentSequenceNumber),sb.resolve()}removeTarget(e,t){const n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.oi.set(n,e.currentSequenceNumber),sb.resolve()}removeReference(e,t,n){return this.oi.set(n,e.currentSequenceNumber),sb.resolve()}updateLimboDocument(e,t){return this.oi.set(t,e.currentSequenceNumber),sb.resolve()}Jr(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=T_(e.data.value)),t}ar(e,t,n){return sb.or([()=>this.persistence.ei(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{const e=this.oi.get(t);return sb.resolve(void 0!==e&&e>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}class wk{constructor(e){this.serializer=e}B(e,t,n,r){const i=new ab("createOrUpgrade",t);n<1&&r>=1&&(function(e){e.createObjectStore(Nb)}(e),function(e){e.createObjectStore(Db,{keyPath:"userId"});e.createObjectStore(Ob,{keyPath:Lb,autoIncrement:!0}).createIndex(jb,Mb,{unique:!0}),e.createObjectStore(zb)}(e),_k(e),function(e){e.createObjectStore(Pb)}(e));let s=sb.resolve();return n<3&&r>=3&&(0!==n&&(function(e){e.deleteObjectStore(Zb),e.deleteObjectStore(Yb),e.deleteObjectStore(iw)}(e),_k(e)),s=s.next((()=>function(e){const t=e.store(iw),n={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:Vv.min().toTimestamp(),targetCount:0};return t.put(rw,n)}(i)))),n<4&&r>=4&&(0!==n&&(s=s.next((()=>function(e,t){return t.store(Ob).G().next((n=>{e.deleteObjectStore(Ob),e.createObjectStore(Ob,{keyPath:Lb,autoIncrement:!0}).createIndex(jb,Mb,{unique:!0});const r=t.store(Ob),i=n.map((e=>r.put(e)));return sb.waitFor(i)}))}(e,i)))),s=s.next((()=>{!function(e){e.createObjectStore(aw,{keyPath:"clientId"})}(e)}))),n<5&&r>=5&&(s=s.next((()=>this._i(i)))),n<6&&r>=6&&(s=s.next((()=>(function(e){e.createObjectStore(Gb)}(e),this.ai(i))))),n<7&&r>=7&&(s=s.next((()=>this.ui(i)))),n<8&&r>=8&&(s=s.next((()=>this.ci(e,i)))),n<9&&r>=9&&(s=s.next((()=>{!function(e){e.objectStoreNames.contains("remoteDocumentChanges")&&e.deleteObjectStore("remoteDocumentChanges")}(e)}))),n<10&&r>=10&&(s=s.next((()=>this.li(i)))),n<11&&r>=11&&(s=s.next((()=>{!function(e){e.createObjectStore(lw,{keyPath:"bundleId"})}(e),function(e){e.createObjectStore(cw,{keyPath:"name"})}(e)}))),n<12&&r>=12&&(s=s.next((()=>{!function(e){const t=e.createObjectStore(ww,{keyPath:_w});t.createIndex(Tw,xw,{unique:!1}),t.createIndex(Ew,Sw,{unique:!1})}(e)}))),n<13&&r>=13&&(s=s.next((()=>function(e){const t=e.createObjectStore(Bb,{keyPath:qb});t.createIndex($b,Hb),t.createIndex(Wb,Kb)}(e))).next((()=>this.hi(e,i))).next((()=>e.deleteObjectStore(Pb)))),n<14&&r>=14&&(s=s.next((()=>this.Pi(e,i)))),n<15&&r>=15&&(s=s.next((()=>function(e){e.createObjectStore(uw,{keyPath:"indexId",autoIncrement:!0}).createIndex(hw,"collectionGroup",{unique:!1});e.createObjectStore(dw,{keyPath:fw}).createIndex(pw,mw,{unique:!1});e.createObjectStore(gw,{keyPath:yw}).createIndex(vw,bw,{unique:!1})}(e)))),n<16&&r>=16&&(s=s.next((()=>{t.objectStore(dw).clear()})).next((()=>{t.objectStore(gw).clear()}))),n<17&&r>=17&&(s=s.next((()=>{!function(e){e.createObjectStore(kw,{keyPath:"name"})}(e)}))),s}ai(e){let t=0;return e.store(Pb).Z(((e,n)=>{t+=PS(n)})).next((()=>{const n={byteSize:t};return e.store(Gb).put(Qb,n)}))}_i(e){const t=e.store(Db),n=e.store(Ob);return t.G().next((t=>sb.forEach(t,(t=>{const r=IDBKeyRange.bound([t.userId,_b],[t.userId,t.lastAcknowledgedBatchId]);return n.G(jb,r).next((n=>sb.forEach(n,(n=>{pv(n.userId===t.userId);const r=jE(this.serializer,n);return AS(e,t.userId,r).next((()=>{}))}))))}
2))))}ui(e){const t=e.store(Zb),n=e.store(Pb);return e.store(iw).get(rw).next((e=>{const r=[];return n.Z(((n,i)=>{const s=new Bv(n),o=function(e){return[0,kb(e)]}(s);r.push(t.get(o).next((n=>n?sb.resolve():(n=>t.put({targetId:0,path:kb(n),sequenceNumber:e.highestListenSequenceNumber}))(s))))})).next((()=>sb.waitFor(r)))}))}ci(e,t){e.createObjectStore(sw,{keyPath:ow});const n=t.store(sw),r=new yS,i=e=>{if(r.add(e)){const t=e.lastSegment(),r=e.popLast();return n.put({collectionId:t,parent:kb(r)})}};return t.store(Pb).Z({Y:!0},((e,t)=>{const n=new Bv(e);return i(n.popLast())})).next((()=>t.store(zb).Z({Y:!0},((e,t)=>{let[n,r,s]=e;const o=Ab(r);return i(o.popLast())}))))}li(e){const t=e.store(Yb);return t.Z(((e,n)=>{const r=ME(n),i=FE(this.serializer,r);return t.put(i)}))}hi(e,t){const n=t.store(Pb),r=[];return n.Z(((e,n)=>{const i=t.store(Bb),s=function(e){return e.document?new Hv(Bv.fromString(e.document.name).popFirst(5)):e.noDocument?Hv.fromSegments(e.noDocument.path):e.unknownDocument?Hv.fromSegments(e.unknownDocument.path):fv()}(n).path.toArray(),o={prefixPath:s.slice(0,s.length-2),collectionGroup:s[s.length-2],documentId:s[s.length-1],readTime:n.readTime||[0,0],unknownDocument:n.unknownDocument,noDocument:n.noDocument,document:n.document,hasCommittedMutations:!!n.hasCommittedMutations};r.push(i.put(o))})).next((()=>sb.waitFor(r)))}Pi(e,t){const n=t.store(Ob),r=JS(this.serializer),i=new gk(vk.ri,this.serializer.Tt);return n.G().next((e=>{const n=new Map;return e.forEach((e=>{var t;let r=null!==(t=n.get(e.userId))&&void 0!==t?t:WT();jE(this.serializer,e).keys().forEach((e=>r=r.add(e))),n.set(e.userId,r)})),sb.forEach(n,((e,n)=>{const s=new sv(n),o=WE.It(this.serializer,s),a=i.getIndexManager(s),l=NS.It(s,this.serializer,a,i.referenceDelegate);return new ok(r,l,o,a).recalculateAndSaveOverlaysForDocumentKeys(new Ow(t,wb.ae),e).next()}))}))}}function _k(e){e.createObjectStore(Zb,{keyPath:ew}).createIndex(tw,nw,{unique:!0}),e.createObjectStore(Yb,{keyPath:"targetId"}).createIndex(Xb,Jb,{unique:!0}),e.createObjectStore(iw)}const Tk="IndexedDbPersistence",xk=18e5,Ek=5e3,Sk="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.",kk="main";class Ik{constructor(e,t,n,r,i,s,o,a,l,c){let u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:17;if(this.allowTabSynchronization=e,this.persistenceKey=t,this.clientId=n,this.Ti=i,this.window=s,this.document=o,this.Ii=l,this.Ei=c,this.di=u,this.Gr=null,this.zr=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Ai=null,this.inForeground=!1,this.Ri=null,this.Vi=null,this.mi=Number.NEGATIVE_INFINITY,this.fi=e=>Promise.resolve(),!Ik.D())throw new yv(gv.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new GS(this,r),this.gi=t+kk,this.serializer=new NE(a),this.pi=new lb(this.gi,this.di,new wk(this.serializer)),this.jr=new GE,this.Hr=new MS(this.referenceDelegate,this.serializer),this.remoteDocumentCache=JS(this.serializer),this.Yr=new qE,this.window&&this.window.localStorage?this.yi=this.window.localStorage:(this.yi=null,!1===c&&uv(Tk,"LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.wi().then((()=>
vendor: 23,150 bytes, line 2
2{if(!this.isPrimary&&!this.allowTabSynchronization)throw new yv(gv.FAILED_PRECONDITION,Sk);return this.Si(),this.bi(),this.Di(),this.runTransaction("getHighestListenSequenceNumber","readonly",(e=>this.Hr.getHighestSequenceNumber(e)))})).then((e=>{this.Gr=new wb(e,this.Ii)})).then((()=>{this.zr=!0})).catch((e=>(this.pi&&this.pi.close(),Promise.reject(e))))}Ci(e){return this.fi=async t=>{if(this.started)return e(t)},e(this.isPrimary)}setDatabaseDeletedListener(e){this.pi.k((async t=>{null===t.newVersion&&await e()}))}setNetworkEnabled(e){this.networkEnabled!==e&&(this.networkEnabled=e,this.Ti.enqueueAndForget((async()=>{this.started&&await this.wi()})))}wi(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(e=>Ak(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next((()=>{if(this.isPrimary)return this.Fi(e).next((e=>{e||(this.isPrimary=!1,this.Ti.enqueueRetryable((()=>this.fi(!1))))}))})).next((()=>this.Mi(e))).next((t=>this.isPrimary&&!t?this.xi(e).next((()=>!1)):!!t&&this.Oi(e).next((()=>!0)))))).catch((e=>{if(db(e))return cv(Tk,"Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return cv(Tk,"Releasing owner lease after error during lease refresh",e),!1})).then((e=>{this.isPrimary!==e&&this.Ti.enqueueRetryable((()=>this.fi(e))),this.isPrimary=e}))}Fi(e){return Ck(e).get(Rb).next((e=>sb.resolve(this.Ni(e))))}Bi(e){return Ak(e).delete(this.clientId)}async Li(){if(this.isPrimary&&!this.ki(this.mi,xk)){this.mi=Date.now();const e=await this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(e=>{const t=Lw(e,aw);return t.G().next((e=>{const n=this.qi(e,xk),r=e.filter((e=>-1===n.indexOf(e)));return sb.forEach(r,(e=>t.delete(e.clientId))).next((()=>r))}))})).catch((()=>[]));if(this.yi)for(const t of e)this.yi.removeItem(this.Qi(t.clientId))}}Di(){this.Vi=this.Ti.enqueueAfterDelay("client_metadata_refresh",4e3,(()=>this.wi().then((()=>this.Li())).then((()=>this.Di()))))}Ni(e){return!!e&&e.ownerId===this.clientId}Mi(e){return this.Ei?sb.resolve(!0):Ck(e).get(Rb).next((t=>{if(null!==t&&this.ki(t.leaseTimestampMs,Ek)&&!this.$i(t.ownerId)){if(this.Ni(t)&&this.networkEnabled)return!0;if(!this.Ni(t)){if(!t.allowTabSynchronization)throw new yv(gv.FAILED_PRECONDITION,Sk);return!1}}return!(!this.networkEnabled||!this.inForeground)||Ak(e).G().next((e=>void 0===this.qi(e,Ek).find((e=>{if(this.clientId!==e.clientId){const t=!this.networkEnabled&&e.networkEnabled,n=!this.inForeground&&e.inForeground,r=this.networkEnabled===e.networkEnabled;if(t||n&&r)return!0}return!1}))))})).next((e=>(this.isPrimary!==e&&cv(Tk,`Client ${e?"is":"is not"} eligible for a primary lease.`),e)))}async shutdown(){this.zr=!1,this.Ui(),this.Vi&&(this.Vi.cancel(),this.Vi=null),this.Ki(),this.Wi(),await this.pi.runTransaction("shutdown","readwrite",[Nb,aw],(e=>{const t=new Ow(e,wb.ae);return this.xi(t).next((()=>this.Bi(t)))})),this.pi.close(),this.Gi()}qi(e,t){return e.filter((e=>this.ki(e.updateTimeMs,t)&&!this.$i(e.clientId)))}zi(){return this.runTransaction("getActiveClients","readonly",(e=>Ak(e).G().next((e=>this.qi(e,xk).map((e=>e.clientId))))))}get started(){return this.zr}getGlobalsCache(){return this.jr}getMutationQueue(e,t){return NS.It(e,this.serializer,t,this.referenceDelegate)}getTargetCache(){return this.Hr}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new wS(e,this.serializer.Tt.databaseId)}getDocumentOverlayCache(e){return WE.It(this.serializer,e)}getBundleCache(){return this.Yr}runTransaction(e,t,n){cv(Tk,"Starting transaction:",e);const r="readonly"===t?"readonly":"readwrite",i=function(e){return 17===e?Dw:16===e?Rw:15===e?Nw:14===e?Pw:13===e?Aw:12===e?Cw:11===e?Iw:void fv()}(this.di);let s;return this.pi.runTransaction(e,r,i,(r=>(s=new Ow(r,this.Gr?this.Gr.next():wb.ae),"readwrite-primary"===t?this.Fi(s).next((e=>!!e||this.Mi(s))).next((t=>{if(!t)throw uv(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.Ti.enqueueRetryable((()=>this.fi(!1))),new yv(gv.FAILED_PRECONDITION,nb);return n(s)})).next((e=>this.Oi(s).next((()=>e)))):this.ji(s).next((()=>n(s)))))).then((e=>(s.raiseOnCommittedEvent(),e)))}ji(e){return Ck(e).get(Rb).next((e=>{if(null!==e&&this.ki(e.leaseTimestampMs,Ek)&&!this.$i(e.ownerId)&&!this.Ni(e)&&!(this.Ei||this.allowTabSynchronization&&e.allowTabSynchronization))throw new yv(gv.FAILED_PRECONDITION,Sk)}))}Oi(e){const t={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return Ck(e).put(Rb,t)}static D(){return lb.D()}xi(e){const t=Ck(e);return t.get(Rb).next((e=>this.Ni(e)?(cv(Tk,"Releasing primary lease."),t.delete(Rb)):sb.resolve()))}ki(e,t){const n=Date.now();return!(e<n-t)&&(!(e>n)||(uv(`Detected an update time that is in the future: ${e} > ${n}`),!1))}Si(){null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Ri=()=>{this.Ti.enqueueAndForget((()=>(this.inForeground="visible"===this.document.visibilityState,this.wi())))},this.document.addEventListener("visibilitychange",this.Ri),this.inForeground="visible"===this.document.visibilityState)}Ki(){this.Ri&&(this.document.removeEventListener("visibilitychange",this.Ri),this.Ri=null)}bi(){var e;"function"==typeof(null===(e=this.window)||void 0===e?void 0:e.addEventListener)&&(this.Ai=()=>{this.Ui();const e=/(?:Version|Mobile)\/1[456]/;yu()&&(navigator.appVersion.match(e)||navigator.userAgent.match(e))&&this.Ti.enterRestrictedMode(!0),this.Ti.enqueueAndForget((()=>this.shutdown()))},this.window.addEventListener("pagehide",this.Ai))}Wi(){this.Ai&&(this.window.removeEventListener("pagehide",this.Ai),this.Ai=null)}$i(e){var t;try{const n=null!==(null===(t=this.yi)||void 0===t?void 0:t.getItem(this.Qi(e)));return cv(Tk,`Client '${e}' ${n?"is":"is not"} zombied in LocalStorage`),n}catch(e){return uv(Tk,"Failed to get zombied client id.",e),!1}}Ui(){if(this.yi)try{this.yi.setItem(this.Qi(this.clientId),String(Date.now()))}catch(vL){uv("Failed to set zombie client id.",vL)}}Gi(){if(this.yi)try{this.yi.removeItem(this.Qi(this.clientId))}catch(vL){}}Qi(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function Ck(e){return Lw(e,Nb)}function Ak(e){return Lw(e,aw)}function Pk(e,t){let n=e.projectId;return e.isDefaultDatabase||(n+="."+e.database),"firestore/"+t+"/"+n+"/"}class Nk{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.Hi=n,this.Ji=r}static Yi(e,t){let n=WT(),r=WT();for(const i of t.docChanges)switch(i.type){case 0:n=n.add(i.doc.key);break;case 1:r=r.add(i.doc.key)}return new Nk(e,t.fromCache,n,r)}}class Rk{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}class Dk{constructor(){this.Zi=!1,this.Xi=!1,this.es=100,this.ts=yu()?8:cb(hu())>0?6:4}initialize(e,t){this.ns=e,this.indexManager=t,this.Zi=!0}getDocumentsMatchingQuery(e,t,n,r){const i={result:null};return this.rs(e,t).next((e=>{i.result=e})).next((()=>{if(!i.result)return this.ss(e,t,r,n).next((e=>{i.result=e}))})).next((()=>{if(i.result)return;const n=new Rk;return this._s(e,t,n).next((r=>{if(i.result=r,this.Xi)return this.us(e,t,n,r.size)}))})).next((()=>i.result))}us(e,t,n,r){return n.documentReadCount<this.es?(lv()<=Mu.DEBUG&&cv("QueryEngine","SDK will not create cache indexes for query:",PT(t),"since it only creates cache indexes for collection contains","more than or equal to",this.es,"documents"),sb.resolve()):(lv()<=Mu.DEBUG&&cv("QueryEngine","Query:",PT(t),"scans",n.documentReadCount,"local documents and returns",r,"documents as results."),n.documentReadCount>this.ts*r?(lv()<=Mu.DEBUG&&cv("QueryEngine","The SDK decides to create cache indexes for query:",PT(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ET(t))):sb.resolve())}rs(e,t){if(_T(t))return sb.resolve(null);let n=ET(t);return this.indexManager.getIndexType(e,n).next((r=>0===r?null:(null!==t.limit&&1===r&&(t=IT(t,null,"F"),n=ET(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{const i=WT(...r);return this.ns.getDocuments(e,i).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{const s=this.cs(t,r);return this.ls(t,s,i,n.readTime)?this.rs(e,IT(t,null,"F")):this.hs(e,s,t,n)}))))})))))}ss(e,t,n,r){return _T(t)||r.isEqual(Vv.min())?sb.resolve(null):this.ns.getDocuments(e,n).next((i=>{const s=this.cs(t,i);return this.ls(t,s,n,r)?sb.resolve(null):(lv()<=Mu.DEBUG&&cv("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),PT(t)),this.hs(e,s,t,Jv(r,Wv)).next((e=>e)))}))}cs(e,t){let n=new Bw(DT(e));return t.forEach(((t,r)=>{NT(e,r)&&(n=n.add(r))})),n}ls(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;const i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}_s(e,t,n){return lv()<=Mu.DEBUG&&cv("QueryEngine","Using full collection scan to execute query:",PT(t)),this.ns.getDocumentsMatchingQuery(e,t,eb.min(),n)}hs(e,t,n,r){return this.ns.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}}const Ok="LocalStore";class Lk{constructor(e,t,n,r){this.persistence=e,this.Ps=t,this.serializer=r,this.Ts=new Vw(Pv),this.Is=new LT((e=>dT(e)),fT),this.Es=new Map,this.ds=e.getRemoteDocumentCache(),this.Hr=e.getTargetCache(),this.Yr=e.getBundleCache(),this.As(n)}As(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new ok(this.ds,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.ds.setIndexManager(this.indexManager),this.Ps.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(t=>e.collect(t,this.Ts)))}}function jk(e,t,n,r){return new Lk(e,t,n,r)}async function Mk(e,t){const n=mv(e);return await n.persistence.runTransaction("Handle user change","readonly",(e=>{let r;return n.mutationQueue.getAllMutationBatches(e).next((i=>(r=i,n.As(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{const i=[],s=[];let o=WT();for(const e of r){i.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}for(const e of t){s.push(e.batchId);for(const t of e.mutations)o=o.add(t.key)}return n.localDocuments.getDocuments(e,o).next((e=>({Rs:e,removedBatchIds:i,addedBatchIds:s})))}))}))}function Fk(e){const t=mv(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(e=>t.Hr.getLastRemoteSnapshotVersion(e)))}function Vk(e,t,n){let r=WT(),i=WT();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=MT();return n.forEach(((n,s)=>{const o=e.get(n);s.isFoundDocument()!==o.isFoundDocument()&&(i=i.add(n)),s.isNoDocument()&&s.version.isEqual(Vv.min())?(t.removeEntry(n,s.readTime),r=r.insert(n,s)):!o.isValidDocument()||s.version.compareTo(o.version)>0||0===s.version.compareTo(o.version)&&o.hasPendingWrites?(t.addEntry(s),r=r.insert(n,s)):cv(Ok,"Ignoring outdated watch update for ",n,". Current version:",o.version," Watch version:",s.version)})),{Vs:r,fs:i}}))}function Uk(e,t){const n=mv(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(e=>(void 0===t&&(t=_b),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t))))}function zk(e,t){const n=mv(e);return n.persistence.runTransaction("Allocate target","readwrite",(e=>{let r;return n.Hr.getTargetData(e,t).next((i=>i?(r=i,sb.resolve(r)):n.Hr.allocateTargetId(e).next((i=>(r=new PE(t,i,"TargetPurposeListen",e.currentSequenceNumber),n.Hr.addTargetData(e,r).next((()=>r)))))))})).then((e=>{const r=n.Ts.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.Ts=n.Ts.insert(e.targetId,e),n.Is.set(t,e.targetId)),e}))}async function Bk(e,t,n){const r=mv(e),i=r.Ts.get(t),s=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",s,(e=>r.persistence.referenceDelegate.removeTarget(e,i)))}catch(e){if(!db(e))throw e;cv(Ok,`Failed to update sequence numbers for target ${t}: ${e}`)}r.Ts=r.Ts.remove(t),r.Is.delete(i.target)}function qk(e,t,n){const r=mv(e);let i=Vv.min(),s=WT();return r.persistence.runTransaction("Execute query","readwrite",(e=>function(e,t,n){const r=mv(e),i=r.Is.get(n);return void 0!==i?sb.resolve(r.Ts.get(i)):r.Hr.getTargetData(t,n)}(r,e,ET(t)).next((t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.Hr.getMatchingKeysForTargetId(e,t.targetId).next((e=>{s=e}))})).next((()=>r.Ps.getDocumentsMatchingQuery(e,t,n?i:Vv.min(),n?s:WT()))).next((e=>(Wk(r,RT(t),e),{documents:e,gs:s})))))}function $k(e,t){const n=mv(e),r=mv(n.Hr),i=n.Ts.get(t);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(e=>r.lt(e,t).next((e=>e?e.target:null))))}function Hk(e,t){const n=mv(e),r=n.Es.get(t)||Vv.min();return n.persistence.runTransaction("Get new document changes","readonly",(e=>n.ds.getAllFromCollectionGroup(e,t,Jv(r,Wv),Number.MAX_SAFE_INTEGER))).then((e=>(Wk(n,t,e),e)))}function Wk(e,t,n){let r=e.Es.get(t)||Vv.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.Es.set(t,r)}async function Kk(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:WT();const r=await zk(e,ET(VE(t.bundledQuery))),i=mv(e);return i.persistence.runTransaction("Save named query","readwrite",(e=>{const s=iE(t.readTime);if(r.snapshotVersion.compareTo(s)>=0)return i.Yr.saveNamedQuery(e,t);const o=r.withResumeToken(Kw.EMPTY_BYTE_STRING,s);return i.Ts=i.Ts.insert(o.targetId,o),i.Hr.updateTargetData(e,o).next((()=>i.Hr.removeMatchingKeysForTargetId(e,r.targetId))).next((()=>i.Hr.addMatchingKeys(e,n,r.targetId))).next((()=>i.Yr.saveNamedQuery(e,t)))}))}const Gk="firestore_clients";function Qk(e,t){return`${Gk}_${e}_${t}`}const Yk="firestore_mutations";function Xk(e,t,n){let r=`${Yk}_${e}_${n}`;return t.isAuthenticated()&&(r+=`_${t.uid}`),r}const Jk="firestore_targets";function Zk(e,t){return`${Jk}_${e}_${t}`}const eI="SharedClientState";class tI{constructor(e,t,n,r){this.user=e,this.batchId=t,this.state=n,this.error=r}static Ss(e,t,n){const r=JSON.parse(n);let i,s="object"==typeof r&&-1!==["pending","acknowledged","rejected"].indexOf(r.state)&&(void 0===r.error||"object"==typeof r.error);return s&&r.error&&(s="string"==typeof r.error.message&&"string"==typeof r.error.code,s&&(i=new yv(r.error.code,r.error.message))),s?new tI(e,t,r.state,i):(uv(eI,`Failed to parse mutation state for ID '${t}': ${n}`),null)}bs(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class nI{constructor(e,t,n){this.targetId=e,this.state=t,this.error=n}static Ss(e,t){const n=JSON.parse(t);let r,i="object"==typeof n&&-1!==["not-current","current","rejected"].indexOf(n.state)&&(void 0===n.error||"object"==typeof n.error);return i&&n.error&&(i="string"==typeof n.error.message&&"string"==typeof n.error.code,i&&(r=new yv(n.error.code,n.error.message))),i?new nI(e,n.state,r):(uv(eI,`Failed to parse target state for ID '${e}': ${t}`),null)}bs(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class rI{constructor(e,t){this.clientId=e,this.activeTargetIds=t}static Ss(e,t){const n=JSON.parse(t);let r="object"==typeof n&&n.activeTargetIds instanceof Array,i=GT();for(let s=0;r&&s<n.activeTargetIds.length;++s)r=Eb(n.activeTargetIds[s]),i=i.add(n.activeTargetIds[s]);return r?new rI(e,i):(uv(eI,`Failed to parse client data for instance '${e}': ${t}`),null)}}class iI{constructor(e,t){this.clientId=e,this.onlineState=t}static Ss(e){const t=JSON.parse(e);return"object"==typeof t&&-1!==["Unknown","Online","Offline"].indexOf(t.onlineState)&&"string"==typeof t.clientId?new iI(t.clientId,t.onlineState):(uv(eI,`Failed to parse online state: ${e}`),null)}}class sI{constructor(){this.activeTargetIds=GT()}Ds(e){this.activeTargetIds=this.activeTargetIds.add(e)}vs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}bs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class oI{constructor(e,t,n,r,i){this.window=e,this.Ti=t,this.persistenceKey=n,this.Cs=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.Fs=this.Ms.bind(this),this.xs=new Vw(Pv),this.started=!1,this.Os=[];const s=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Ns=Qk(this.persistenceKey,this.Cs),this.Bs=function(e){return`firestore_sequence_number_${e}`}(this.persistenceKey),this.xs=this.xs.insert(this.Cs,new sI),this.Ls=new RegExp(`^${Gk}_${s}_([^_]*)$`),this.ks=new RegExp(`^${Yk}_${s}_(\\d+)(?:_(.*))?$`),this.qs=new RegExp(`^${Jk}_${s}_(\\d+)$`),this.Qs=function(e){return`firestore_online_state_${e}`}(this.persistenceKey),this.$s=function(e){return`firestore_bundle_loaded_v2_${e}`}(this.persistenceKey),this.window.addEventListener("storage",this.Fs)}static D(e){return!(!e||!e.localStorage)}async start(){const e=await this.syncEngine.zi();for(const n of e){if(n===this.Cs)continue;const e=this.getItem(Qk(this.persistenceKey,n));if(e){const t=rI.Ss(n,e);t&&(this.xs=this.xs.insert(t.clientId,t))}}this.Us();const t=this.storage.getItem(this.Qs);if(t){const e=this.Ks(t);e&&this.Ws(e)}for(const n of this.Os)this.Ms(n);this.Os=[],this.window.addEventListener("pagehide",(()=>this.shutdown())),this.started=!0}writeSequenceNumber(e){this.setItem(this.Bs,JSON.stringify(e))}getAllActiveQueryTargets(){return this.Gs(this.xs)}isActiveQueryTarget(e){let t=!1;return this.xs.forEach(((n,r)=>{r.activeTargetIds.has(e)&&(t=!0)})),t}addPendingMutation(e){this.zs(e,"pending")}updateMutationState(e,t,n){this.zs(e,t,n),this.js(e)}addLocalQueryTarget(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n="not-current";if(this.isActiveQueryTarget(e)){const t=this.storage.getItem(Zk(this.persistenceKey,e));if(t){const r=nI.Ss(e,t);r&&(n=r.state)}}return t&&this.Hs.Ds(e),this.Us(),n}removeLocalQueryTarget(e){this.Hs.vs(e),this.Us()}isLocalQueryTarget(e){return this.Hs.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(Zk(this.persistenceKey,e))}updateQueryState(e,t,n){this.Js(e,t,n)}handleUserChange(e,t,n){t.forEach((e=>{this.js(e)})),this.currentUser=e,n.forEach((e=>{this.addPendingMutation(e)}))}setOnlineState(e){this.Ys(e)}notifyBundleLoaded(e){this.Zs(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.Fs),this.removeItem(this.Ns),this.started=!1)}getItem(e){const t=this.storage.getItem(e);return cv(eI,"READ",e,t),t}setItem(e,t){cv(eI,"SET",e,t),this.storage.setItem(e,t)}removeItem(e){cv(eI,"REMOVE",e),this.storage.removeItem(e)}Ms(e){const t=e;if(t.storageArea===this.storage){if(cv(eI,"EVENT",t.key,t.newValue),t.key===this.Ns)return void uv("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Ti.enqueueRetryable((async()=>{if(this.started){if(null!==t.key)if(this.Ls.test(t.key)){if(null==t.newValue){const e=this.Xs(t.key);return this.eo(e,null)}{const e=this.no(t.key,t.newValue);if(e)return this.eo(e.clientId,e)}}else if(this.ks.test(t.key)){if(null!==t.newValue){const e=this.ro(t.key,t.newValue);if(e)return this.io(e)}}else if(this.qs.test(t.key)){if(null!==t.newValue){const e=this.so(t.key,t.newValue);if(e)return this.oo(e)}}else if(t.key===this.Qs){if(null!==t.newValue){const e=this.Ks(t.newValue);if(e)return this.Ws(e)}}else if(t.key===this.Bs){const e=function(e){let t=wb.ae;if(null!=e)try{const n=JSON.parse(e);pv("number"==typeof n),t=n}catch(e){uv(eI,"Failed to read sequence number from WebStorage",e)}return t}(t.newValue);e!==wb.ae&&this.sequenceNumberHandler(e)}else if(t.key===this.$s){const e=this._o(t.newValue);await Promise.all(e.map((e=>this.syncEngine.ao(e))))}}else this.Os.push(t)}))}}get Hs(){return this.xs.get(this.Cs)}Us(){this.setItem(this.Ns,this.Hs.bs())}zs(e,t,n){const r=new tI(this.currentUser,e,t,n),i=Xk(this.persistenceKey,this.currentUser,e);this.setItem(i,r.bs())}js(e){const t=Xk(this.persistenceKey,this.currentUser,e);this.removeItem(t)}Ys(e){const t={clientId:this.Cs,onlineState:e};this.storage.setItem(this.Qs,JSON.stringify(t))}Js(e,t,n){const r=Zk(this.persistenceKey,e),i=new nI(e,t,n);this.setItem(r,i.bs())}Zs(e){const t=JSON.stringify(Array.from(e));this.setItem(this.$s,t)}Xs(e){const t=this.Ls.exec(e);return t?t[1]:null}no(e,t){const n=this.Xs(e);return rI.Ss(n,t)}ro(e,t){const n=this.ks.exec(e),r=Number(n[1]),i=void 0!==n[2]?n[2]:null;return tI.Ss(new sv(i),r,t)}so(e,t){const n=this.qs.exec(e),r=Number(n[1]);return nI.Ss(r,t)}Ks(e){return iI.Ss(e)}_o(e){return JSON.parse(e)}async io(e){if(e.user.uid===this.currentUser.uid)return this.syncEngine.uo(e.batchId,e.state,e.error);cv(eI,`Ignoring mutation for non-active user ${e.user.uid}`)}oo(e){return this.syncEngine.co(e.targetId,e.state,e.error)}eo(e,t){const n=t?this.xs.insert(e,t):this.xs.remove(e),r=this.Gs(this.xs),i=this.Gs(n),s=[],o=[];return i.forEach((e=>{r.has(e)||s.push(e)})),r.forEach((e=>{i.has(e)||o.push(e)})),this.syncEngine.lo(s,o).then((()=>{this.xs=n}))}Ws(e){this.xs.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}Gs(e){let t=GT();return e.forEach(((e,n)=>{t=t.unionWith(n.activeTargetIds)})),t}}class aI{constructor(){this.ho=new sI,this.Po={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e){return(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&this.ho.Ds(e),this.Po[e]||"not-current"}updateQueryState(e,t,n){this.Po[e]=t}removeLocalQueryTarget(e){this.ho.vs(e)}isLocalQueryTarget(e){return this.ho.activeTargetIds.has(e)}clearQueryState(e){delete this.Po[e]}getAllActiveQueryTargets(){return this.ho.activeTargetIds}isActiveQueryTarget(e){return this.ho.activeTargetIds.has(e)}start(){return this.ho=new sI,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}class lI{To(e){}shutdown(){}}const cI="ConnectivityMonitor";class uI{constructor(){this.Io=()=>this.Eo(),this.Ao=()=>this.Ro(),this.Vo=[],this.mo()}To(e){this.Vo.push(e)}shutdown(){window.removeEventListener("online",this.Io),window.removeEventListener("offline",this.Ao)}mo(){window.addEventListener("online",this.Io),window.addEventListener("offline",this.Ao)}Eo(){cv(cI,"Network connectivity changed: AVAILABLE");for(const e of this.Vo)e(0)}Ro(){cv(cI,"Network connectivity changed: UNAVAILABLE");for(const e of this.Vo)e(1)}static D(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let hI=null;function dI(){return null===hI?hI=268435456+Math.round(2147483648*Math.random()):hI++,"0x"+hI.toString(16)}const fI="RestConnection",pI={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregation
2Query:"runAggregationQuery"};class mI{get fo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.po=t+"://"+e.host,this.yo=`projects/${n}/databases/${r}`,this.wo=this.databaseId.database===o_?`project_id=${n}`:`project_id=${n}&database_id=${r}`}So(e,t,n,r,i){const s=dI(),o=this.bo(e,t.toUriEncodedString());cv(fI,`Sending RPC '${e}' ${s}:`,o,n);const a={"google-cloud-resource-prefix":this.yo,"x-goog-request-params":this.wo};return this.Do(a,r,i),this.vo(e,o,a,n).then((t=>(cv(fI,`Received RPC '${e}' ${s}: `,t),t)),(t=>{throw hv(fI,`RPC '${e}' ${s} failed with error: `,t,"url: ",o,"request:",n),t}))}Co(e,t,n,r,i,s){return this.So(e,t,n,r,i)}Do(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+ov,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach(((t,n)=>e[n]=t)),n&&n.headers.forEach(((t,n)=>e[n]=t))}bo(e,t){const n=pI[e];return`${this.po}/v1/${t}:${n}`}terminate(){}}class gI{constructor(e){this.Fo=e.Fo,this.Mo=e.Mo}xo(e){this.Oo=e}No(e){this.Bo=e}Lo(e){this.ko=e}onMessage(e){this.qo=e}close(){this.Mo()}send(e){this.Fo(e)}Qo(){this.Oo()}$o(){this.Bo()}Uo(e){this.ko(e)}Ko(e){this.qo(e)}}const yI="WebChannelConnection";class vI extends mI{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}vo(e,t,n,r){const i=dI();return new Promise(((s,o)=>{const a=new Ky;a.setWithCredentials(!0),a.listenOnce(Qy.COMPLETE,(()=>{try{switch(a.getLastErrorCode()){case Yy.NO_ERROR:const t=a.getResponseJson();cv(yI,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(t)),s(t);break;case Yy.TIMEOUT:cv(yI,`RPC '${e}' ${i} timed out`),o(new yv(gv.DEADLINE_EXCEEDED,"Request time out"));break;case Yy.HTTP_ERROR:const n=a.getStatus();if(cv(yI,`RPC '${e}' ${i} failed with status:`,n,"response text:",a.getResponseText()),n>0){let e=a.getResponseJson();Array.isArray(e)&&(e=e[0]);const t=null==e?void 0:e.error;if(t&&t.status&&t.message){const e=function(e){const t=e.toLowerCase().replace(/_/g,"-");return Object.values(gv).indexOf(t)>=0?t:gv.UNKNOWN}(t.status);o(new yv(e,t.message))}else o(new yv(gv.UNKNOWN,"Server responded with status "+a.getStatus()))}else o(new yv(gv.UNAVAILABLE,"Connection failed."));break;default:fv()}}finally{cv(yI,`RPC '${e}' ${i} completed.`)}}));const l=JSON.stringify(r);cv(yI,`RPC '${e}' ${i} sending request:`,r),a.send(t,"POST",l,n,15)}))}Wo(e,t,n){const r=dI(),i=[this.po,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=ev(),o=Zy(),a={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},l=this.longPollingOptions.timeoutSeconds;void 0!==l&&(a.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(a.useFetchStreams=!0),this.Do(a.initMessageHeaders,t,n),a.encodeInitMessageHeaders=!0;const c=i.join("");cv(yI,`Creating RPC '${e}' stream ${r}: ${c}`,a);const u=s.createWebChannel(c,a);let h=!1,d=!1;const f=new gI({Fo:t=>{d?cv(yI,`Not sending because RPC '${e}' stream ${r} is closed:`,t):(h||(cv(yI,`Opening RPC '${e}' stream ${r} transport.`),u.open(),h=!0),cv(yI,`RPC '${e}' stream ${r} sending:`,t),u.send(t))},Mo:()=>u.close()}),p=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))};return p(u,Gy.EventType.OPEN,(()=>{d||(cv(yI,`RPC '${e}' stream ${r} transport opened.`),f.Qo())})),p(u,Gy.EventType.CLOSE,(()=>{d||(d=!0,cv(yI,`RPC '${e}' stream ${r} transport closed`),f.Uo())})),p(u,Gy.EventType.ERROR,(t=>{d||(d=!0,hv(yI,`RPC '${e}' stream ${r} transport errored:`,t),f.Uo(new yv(gv.UNAVAILABLE,"The operation could not be completed")))})),p(u,Gy.EventType.MESSAGE,(t=>{var n;if(!d){const i=t.data[0];pv(!!i);const s=i,o=(null==s?void 0:s.error)||(null===(n=s[0])||void 0===n?void 0:n.error);if(o){cv(yI,`RPC '${e}' stream ${r} received error:`,o);const t=o.status;let n=function(e){const t=Nx[e];if(void 0!==t)return Ox(t)}(t),i=o.message;void 0===n&&(n=gv.INTERNAL,i="Unknown error status: "+t+" with message "+o.message),d=!0,f.Uo(new yv(n,i)),u.close()}else cv(yI,`RPC '${e}' stream ${r} received:`,i),f.Ko(i)}})),p(o,Jy.STAT_EVENT,(t=>{t.stat===Xy.PROXY?cv(yI,`RPC '${e}' stream ${r} detected buffering proxy`):t.stat===Xy.NOPROXY&&cv(yI,`RPC '${e}' stream ${r} detected no buffering proxy`)})),setTimeout((()=>{f.$o()}),0),f}}function bI(){return"undefined"!=typeof window?window:null}function wI(){return"undefined"!=typeof document?document:null}function _I(e){return new Zx(e,!0)}class TI{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;this.Ti=e,this.timerId=t,this.Go=n,this.zo=r,this.jo=i,this.Ho=0,this.Jo=null,this.Yo=Date.now(),this.reset()}reset(){this.Ho=0}Zo(){this.Ho=this.jo}Xo(e){this.cancel();const t=Math.floor(this.Ho+this.e_()),n=Math.max(0,Date.now()-this.Yo),r=Math.max(0,t-n);r>0&&cv("ExponentialBackoff",`Backing off for ${r} ms (base delay: ${this.Ho}
2 ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.Jo=this.Ti.enqueueAfterDelay(this.timerId,r,(()=>(this.Yo=Date.now(),e()))),this.Ho*=this.zo,this.Ho<this.Go&&(this.Ho=this.Go),this.Ho>this.jo&&(this.Ho=this.jo)}t_(){null!==this.Jo&&(this.Jo.skipDelay(),this.Jo=null)}cancel(){null!==this.Jo&&(this.Jo.cancel(),this.Jo=null)}e_(){return(Math.random()-.5)*this.Ho}}const xI="PersistentStream";class EI{constructor(e,t,n,r,i,s,o,a){this.Ti=e,this.n_=n,this.r_=r,this.connection=i,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=o,this.listener=a,this.state=0,this.i_=0,this.s_=null,this.o_=null,this.stream=null,this.__=0,this.a_=new TI(e,t)}u_(){return 1===this.state||5===this.state||this.c_()}c_(){return 2===this.state||3===this.state}start(){this.__=0,4!==this.state?this.auth():this.l_()}async stop(){this.u_()&&await this.close(0)}h_(){this.state=0,this.a_.reset()}P_(){this.c_()&&null===this.s_&&(this.s_=this.Ti.enqueueAfterDelay(this.n_,6e4,(()=>this.T_())))}I_(e){this.E_(),this.stream.send(e)}async T_(){if(this.c_())return this.close(0)}E_(){this.s_&&(this.s_.cancel(),this.s_=null)}d_(){this.o_&&(this.o_.cancel(),this.o_=null)}async close(e,t){this.E_(),this.d_(),this.a_.cancel(),this.i_++,4!==e?this.a_.reset():t&&t.code===gv.RESOURCE_EXHAUSTED?(uv(t.toString()),uv("Using maximum backoff delay to prevent overloading the backend."),this.a_.Zo()):t&&t.code===gv.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.A_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.Lo(t)}A_(){}auth(){this.state=1;const e=this.R_(this.i_),t=this.i_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((e=>{let[n,r]=e;this.i_===t&&this.V_(n,r)}),(t=>{e((()=>{const e=new yv(gv.UNKNOWN,"Fetching auth token failed: "+t.message);return this.m_(e)}))}))}V_(e,t){const n=this.R_(this.i_);this.stream=this.f_(e,t),this.stream.xo((()=>{n((()=>this.listener.xo()))})),this.stream.No((()=>{n((()=>(this.state=2,this.o_=this.Ti.enqueueAfterDelay(this.r_,1e4,(()=>(this.c_()&&(this.state=3),Promise.resolve()))),this.listener.No())))})),this.stream.Lo((e=>{n((()=>this.m_(e)))})),this.stream.onMessage((e=>{n((()=>1==++this.__?this.g_(e):this.onNext(e)))}))}l_(){this.state=5,this.a_.Xo((async()=>{this.state=0,this.start()}))}m_(e){return cv(xI,`close with error: ${e}`),this.stream=null,this.close(4,e)}R_(e){return t=>{this.Ti.enqueueAndForget((()=>this.i_===e?t():(cv(xI,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class SI extends EI{constructor(e,t,n,r,i,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,r,s),this.serializer=i}f_(e,t){return this.connection.Wo("Listen",e,t)}g_(e){return this.onNext(e)}onNext(e){this.a_.reset();const t=function(e,t){let n;if("targetChange"in t){t.targetChange;const r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:fv()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],s=function(e,t){return e.useProto3Json?(pv(void 0===t||"string"==typeof t),Kw.fromBase64String(t||"")):(pv(void 0===t||t instanceof Buffer||t instanceof Uint8Array),Kw.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),o=t.targetChange.cause,a=o&&function(e){const t=void 0===e.code?gv.UNKNOWN:Ox(e.code);return new yv(t,e.message||"")}(o);n=new Hx(r,i,s,a||null)}else if("documentChange"in t){t.documentChange;const r=t.documentChange;r.document,r.document.name,r.document.updateTime;const i=cE(e,r.document.name),s=iE(r.document.updateTime),o=r.document.createTime?iE(r.document.createTime):Vv.min(),a=new M_({mapValue:{fields:r.document.fields}}),l=V_.newFoundDocument(i,s,o,a),c=r.targetIds||[],u=r.removedTargetIds||[];n=new qx(c,u,l.key,l)}else if("documentDelete"in t){t.documentDelete;const r=t.documentDelete;r.document;const i=cE(e,r.document),s=r.readTime?iE(r.readTime):Vv.min(),o=V_.newNoDocument(i,s),a=r.removedTargetIds||[];n=new qx([],a,o.key,o)}else if("documentRemove"in t){t.documentRemove;const r=t.documentRemove;r.document;const i=cE(e,r.document),s=r.removedTargetIds||[];n=new qx([],s,i,null)}else{if(!("filter"in t))return fv();{t.filter;const e=t.filter;e.targetId;const{count:r=0,unchangedNames:i}=e,s=new Px(r,i),o=e.targetId;n=new $x(o,s)}}return n}(this.serializer,e),n=function(e){if(!("targetChange"in e))return Vv.min();const t=e.targetChange;return t.targetIds&&t.targetIds.length?Vv.min():t.readTime?iE(t.readTime):Vv.min()}(e);return this.listener.p_(t,n)}y_(e){const t={};t.database=dE(this.serializer),t.addTarget=function(e,t){let n;const r=t.target;if(n=pT(r)?{documents:vE(e,r)}:{query:bE(e,r).ht},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=nE(e,t.resumeToken);const r=eE(e,t.expectedCount);null!==r&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(Vv.min())>0){n.readTime=tE(e,t.snapshotVersion.toTimestamp());const r=eE(e,t.expectedCount);null!==r&&(n.expectedCount=r)}return n}(this.serializer,e);const n=function(e,t){const n=function(e){switch(e){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return fv()}}(t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.serializer,e);n&&(t.labels=n),this.I_(t)}w_(e){const t={};t.database=dE(this.serializer),t.removeTarget=e,this.I_(t)}}
2class kI extends EI{constructor(e,t,n,r,i,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,r,s),this.serializer=i}get S_(){return this.__>0}start(){this.lastStreamToken=void 0,super.start()}A_(){this.S_&&this.b_([])}f_(e,t){return this.connection.Wo("Write",e,t)}g_(e){return pv(!!e.streamToken),this.lastStreamToken=e.streamToken,pv(!e.writeResults||0===e.writeResults.length),this.listener.D_()}onNext(e){pv(!!e.streamToken),this.lastStreamToken=e.streamToken,this.a_.reset();const t=function(e,t){return e&&e.length>0?(pv(void 0!==t),e.map((e=>function(e,t){let n=e.updateTime?iE(e.updateTime):iE(t);return n.isEqual(Vv.min())&&(n=iE(t)),new hx(n,e.transformResults||[])}(e,t)))):[]}(e.writeResults,e.commitTime),n=iE(e.commitTime);return this.listener.v_(n,t)}C_(){const e={};e.database=dE(this.serializer),this.I_(e)}b_(e){const t={streamToken:this.lastStreamToken,writes:e.map((e=>gE(this.serializer,e)))};this.I_(t)}}class II{}class CI extends II{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.F_=!1}M_(){if(this.F_)throw new yv(gv.FAILED_PRECONDITION,"The client has already been terminated.")}So(e,t,n,r){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((i=>{let[s,o]=i;return this.connection.So(e,oE(t,n),r,s,o)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===gv.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new yv(gv.UNKNOWN,e.toString())}))}Co(e,t,n,r,i){return this.M_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((s=>{let[o,a]=s;return this.connection.Co(e,oE(t,n),r,o,a,i)})).catch((e=>{throw"FirebaseError"===e.name?(e.code===gv.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new yv(gv.UNKNOWN,e.toString())}))}terminate(){this.F_=!0,this.connection.terminate()}}class AI{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.x_=0,this.O_=null,this.N_=!0}B_(){0===this.x_&&(this.L_("Unknown"),this.O_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.O_=null,this.k_("Backend didn't respond within 10 seconds."),this.L_("Offline"),Promise.resolve()))))}q_(e){"Online"===this.state?this.L_("Unknown"):(this.x_++,this.x_>=1&&(this.Q_(),this.k_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.L_("Offline")))}set(e){this.Q_(),this.x_=0,"Online"===e&&(this.N_=!1),this.L_(e)}L_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}k_(e){const 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.N_?(uv(t),this.N_=!1):cv("OnlineStateTracker",t)}Q_(){null!==this.O_&&(this.O_.cancel(),this.O_=null)}}const PI="RemoteStore";class NI{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.U_=[],this.K_=new Map,this.W_=new Set,this.G_=[],this.z_=i,this.z_.To((e=>{n.enqueueAndForget((async()=>{UI(this)&&(cv(PI,"Restarting streams for network reachability change."),await async function(e){const t=mv(e);t.W_.add(4),await DI(t),t.j_.set("Unknown"),t.W_.delete(4),await RI(t)}(this))}))})),this.j_=new AI(n,r)}}async function RI(e){if(UI(e))for(const t of e.G_)await t(!0)}async function DI(e){for(const t of e.G_)await t(!1)}function OI(e,t){const n=mv(e);n.K_.has(t.targetId)||(n.K_.set(t.targetId,t),VI(n)?FI(n):sC(n).c_()&&jI(n,t))}function LI(e,t){const n=mv(e),r=sC(n);n.K_.delete(t),r.c_()&&MI(n,t),0===n.K_.size&&(r.c_()?r.P_():UI(n)&&n.j_.set("Unknown"))}function jI(e,t){if(e.H_.Ne(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(Vv.min())>0){const n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}sC(e).y_(t)}function MI(e,t){e.H_.Ne(t),sC(e).w_(t)}function FI(e){e.H_=new Kx({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),lt:t=>e.K_.get(t)||null,it:()=>e.datastore.serializer.databaseId}),sC(e).start(),e.j_.B_()}function VI(e){return UI(e)&&!sC(e).u_()&&e.K_.size>0}function UI(e){return 0===mv(e).W_.size}function zI(e){e.H_=void 0}async function BI(e){e.j_.set("Online")}async function qI(e){e.K_.forEach(((t,n)=>{jI(e,t)}))}async function $I(e,t){zI(e),VI(e)?(e.j_.q_(t),FI(e)):e.j_.set("Unknown")}
vendor: 8,661 bytes, line 2
2async function HI(e,t,n){if(e.j_.set("Online"),t instanceof Hx&&2===t.state&&t.cause)try{await async function(e,t){const n=t.cause;for(const r of t.targetIds)e.K_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.K_.delete(r),e.H_.removeTarget(r))}(e,t)}catch(n){cv(PI,"Failed to remove targets %s: %s ",t.targetIds.join(","),n),await WI(e,n)}else if(t instanceof qx?e.H_.We(t):t instanceof $x?e.H_.Ze(t):e.H_.je(t),!n.isEqual(Vv.min()))try{const t=await Fk(e.localStore);n.compareTo(t)>=0&&await function(e,t){const n=e.H_.ot(t);return n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){const i=e.K_.get(r);i&&e.K_.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{const r=e.K_.get(t);if(!r)return;e.K_.set(t,r.withResumeToken(Kw.EMPTY_BYTE_STRING,r.snapshotVersion)),MI(e,t);const i=new PE(r.target,t,n,r.sequenceNumber);jI(e,i)})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){cv(PI,"Failed to raise snapshot:",t),await WI(e,t)}}async function WI(e,t,n){if(!db(t))throw t;e.W_.add(1),await DI(e),e.j_.set("Offline"),n||(n=()=>Fk(e.localStore)),e.asyncQueue.enqueueRetryable((async()=>{cv(PI,"Retrying IndexedDB access"),await n(),e.W_.delete(1),await RI(e)}))}function KI(e,t){return t().catch((n=>WI(e,n,t)))}async function GI(e){const t=mv(e),n=oC(t);let r=t.U_.length>0?t.U_[t.U_.length-1].batchId:_b;for(;QI(t);)try{const e=await Uk(t.localStore,r);if(null===e){0===t.U_.length&&n.P_();break}r=e.batchId,YI(t,e)}catch(e){await WI(t,e)}XI(t)&&JI(t)}function QI(e){return UI(e)&&e.U_.length<10}function YI(e,t){e.U_.push(t);const n=oC(e);n.c_()&&n.S_&&n.b_(t.mutations)}function XI(e){return UI(e)&&!oC(e).u_()&&e.U_.length>0}function JI(e){oC(e).start()}async function ZI(e){oC(e).C_()}async function eC(e){const t=oC(e);for(const n of e.U_)t.b_(n.mutations)}async function tC(e,t,n){const r=e.U_.shift(),i=Cx.from(r,t,n);await KI(e,(()=>e.remoteSyncer.applySuccessfulWrite(i))),await GI(e)}async function nC(e,t){t&&oC(e).S_&&await async function(e,t){if(function(e){return Dx(e)&&e!==gv.ABORTED}(t.code)){const n=e.U_.shift();oC(e).h_(),await KI(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await GI(e)}}(e,t),XI(e)&&JI(e)}async function rC(e,t){const n=mv(e);n.asyncQueue.verifyOperationInProgress(),cv(PI,"RemoteStore received new credentials");const r=UI(n);n.W_.add(3),await DI(n),r&&n.j_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(t),n.W_.delete(3),await RI(n)}async function iC(e,t){const n=mv(e);t?(n.W_.delete(2),await RI(n)):t||(n.W_.add(2),await DI(n),n.j_.set("Unknown"))}function sC(e){return e.J_||(e.J_=function(e,t,n){const r=mv(e);return r.M_(),new SI(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{xo:BI.bind(null,e),No:qI.bind(null,e),Lo:$I.bind(null,e),p_:HI.bind(null,e)}),e.G_.push((async t=>{t?(e.J_.h_(),VI(e)?FI(e):e.j_.set("Unknown")):(await e.J_.stop(),zI(e))}))),e.J_}function oC(e){return e.Y_||(e.Y_=function(e,t,n){const r=mv(e);return r.M_(),new kI(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{xo:()=>Promise.resolve(),No:ZI.bind(null,e),Lo:nC.bind(null,e),D_:eC.bind(null,e),v_:tC.bind(null,e)}),e.G_.push((async t=>{t?(e.Y_.h_(),await GI(e)):(await e.Y_.stop(),e.U_.length>0&&(cv(PI,`Stopping write stream with ${e.U_.length} pending writes`),e.U_=[]))}))),e.Y_}class aC{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new vv,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((e=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,r,i){const s=Date.now()+n,o=new aC(e,t,s,r,i);return o.start(n),o}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new yv(gv.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function lC(e,t){if(uv("AsyncQueue",`${t}: ${e}`),db(e))return new yv(gv.UNAVAILABLE,`${t}: ${e}`);throw e}class cC{static emptySet(e){return new cC(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||Hv.comparator(t.key,n.key):(e,t)=>Hv.comparator(e.key,t.key),this.keyedMap=VT(),this.sortedSet=new Vw(this.comparator)}has(e){return null!=this.keyedMap.get(e)}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((t,n)=>(e(t),!1)))}add(e){const t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){const t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof cC))return!1;if(this.size!==e.size)return!1;const t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){const e=t.getNext().key,r=n.getNext().key;if(!e.isEqual(r))return!1}return!0}toString(){const e=[];return this.forEach((t=>{e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}copy(e,t){const n=new cC;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}}class uC{constructor(){this.Z_=new Vw(Hv.comparator)}track(e){const t=e.doc.key,n=this.Z_.get(t);n?0!==e.type&&3===n.type?this.Z_=this.Z_.insert(t,e):3===e.type&&1!==n.type?this.Z_=this.Z_.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Z_=this.Z_.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Z_=this.Z_.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Z_=this.Z_.remove(t):1===e.type&&2===n.type?this.Z_=this.Z_.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Z_=this.Z_.insert(t,{type:2,doc:e.doc}):fv():this.Z_=this.Z_.insert(t,e)}X_(){const e=[];return this.Z_.inorderTraversal(((t,n)=>{e.push(n)})),e}}class hC{constructor(e,t,n,r,i,s,o,a,l){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=s,this.syncStateChanged=o,this.excludesMetadataChanges=a,this.hasCachedResults=l}static fromInitialDocuments(e,t,n,r,i){const s=[];return t.forEach((e=>{s.push({type:0,doc:e})})),new hC(e,t,cC.emptySet(t),s,n,r,!0,!1,i)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&CT(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}class dC{constructor(){this.ea=void 0,this.ta=[]}na(){return this.ta.some((e=>e.ra()))}}class fC{constructor(){this.queries=pC(),this.onlineState="Unknown",this.ia=new Set}terminate(){!function(e,t){const n=mv(e),r=n.queries;n.queries=pC(),r.forEach(((e,n)=>{for(const r of n.ta)r.onError(t)}))}(this,new yv(gv.ABORTED,"Firestore shutting down"))}}function pC(){return new LT((e=>AT(e)),CT)}async function mC(e,t){const n=mv(e);let r=3;const i=t.query;let s=n.queries.get(i);s?!s.na()&&t.ra()&&(r=2):(s=new dC,r=t.ra()?0:1);try{switch(r){case 0:s.ea=await n.onListen(i,!0);break;case 1:s.ea=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){const n=lC(e,`Initialization of query '${PT(t.query)}' failed`);return void t.onError(n)}n.queries.set(i,s),s.ta.push(t),t.sa(n.onlineState),s.ea&&t.oa(s.ea)&&bC(n)}async function gC(e,t){const n=mv(e),r=t.query;let i=3;const s=n.queries.get(r);if(s){const e=s.ta.indexOf(t);e>=0&&(s.ta.splice(e,1),0===s.ta.length?i=t.ra()?0:1:!s.na()&&t.ra()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function yC(e,t){const n=mv(e);let r=!1;for(const i of t){const e=i.query,t=n.queries.get(e);if(t){for(const e of t.ta)e.oa(i)&&(r=!0);t.ea=i}}r&&bC(n)}function vC(e,t,n){const r=mv(e),i=r.queries.get(t);if(i)for(const s of i.ta)s.onError(n);r.queries.delete(t)}
2function bC(e){e.ia.forEach((e=>{e.next()}))}var wC,_C;(_C=wC||(wC={}))._a="default",_C.Cache="cache";class TC{constructor(e,t,n){this.query=e,this.aa=t,this.ua=!1,this.ca=null,this.onlineState="Unknown",this.options=n||{}}oa(e){if(!this.options.includeMetadataChanges){const t=[];for(const n of e.docChanges)3!==n.type&&t.push(n);e=new hC(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.ua?this.la(e)&&(this.aa.next(e),t=!0):this.ha(e,this.onlineState)&&(this.Pa(e),t=!0),this.ca=e,t}onError(e){this.aa.error(e)}sa(e){this.onlineState=e;let t=!1;return this.ca&&!this.ua&&this.ha(this.ca,e)&&(this.Pa(this.ca),t=!0),t}ha(e,t){if(!e.fromCache)return!0;if(!this.ra())return!0;const n="Offline"!==t;return(!this.options.Ta||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}la(e){if(e.docChanges.length>0)return!0;const t=this.ca&&this.ca.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}Pa(e){e=hC.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ua=!0,this.aa.next(e)}ra(){return this.options.source!==wC.Cache}}class xC{constructor(e,t){this.Ia=e,this.byteLength=t}Ea(){return"metadata"in this.Ia}}class EC{constructor(e){this.serializer=e}ps(e){return cE(this.serializer,e)}ys(e){return e.metadata.exists?mE(this.serializer,e.document,!1):V_.newNoDocument(this.ps(e.metadata.name),this.ws(e.metadata.readTime))}ws(e){return iE(e)}}class SC{constructor(e,t,n){this.da=e,this.localStore=t,this.serializer=n,this.queries=[],this.documents=[],this.collectionGroups=new Set,this.progress=kC(e)}Aa(e){this.progress.bytesLoaded+=e.byteLength;let t=this.progress.documentsLoaded;if(e.Ia.namedQuery)this.queries.push(e.Ia.namedQuery);else if(e.Ia.documentMetadata){this.documents.push({metadata:e.Ia.documentMetadata}),e.Ia.documentMetadata.exists||++t;const n=Bv.fromString(e.Ia.documentMetadata.name);this.collectionGroups.add(n.get(n.length-2))}else e.Ia.document&&(this.documents[this.documents.length-1].document=e.Ia.document,++t);return t!==this.progress.documentsLoaded?(this.progress.documentsLoaded=t,Object.assign({},this.progress)):null}Ra(e){const t=new Map,n=new EC(this.serializer);for(const r of e)if(r.metadata.queries){const e=n.ps(r.metadata.name);for(const n of r.metadata.queries){const r=(t.get(n)||WT()).add(e);t.set(n,r)}}return t}async complete(){const e=await async function(e,t,n,r){const i=mv(e);let s=WT(),o=MT();for(const c of n){const e=t.ps(c.metadata.name);c.document&&(s=s.add(e));const n=t.ys(c);n.setReadTime(t.ws(c.metadata.readTime)),o=o.insert(e,n)}const a=i.ds.newChangeBuffer({trackRemovals:!0}),l=await zk(i,function(e){return ET(wT(Bv.fromString(`__bundle__/docs/${e}`)))}(r));return i.persistence.runTransaction("Apply bundle documents","readwrite",(e=>Vk(e,a,o).next((t=>(a.apply(e),t))).next((t=>i.Hr.removeMatchingKeysForTargetId(e,l.targetId).next((()=>i.Hr.addMatchingKeys(e,s,l.targetId))).next((()=>i.localDocuments.getLocalViewOfDocuments(e,t.Vs,t.fs))).next((()=>t.Vs))))))}(this.localStore,new EC(this.serializer),this.documents,this.da.id),t=this.Ra(this.documents);for(const n of this.queries)await Kk(this.localStore,n,t.get(n.name));return this.progress.taskState="Success",{progress:this.progress,Va:this.collectionGroups,ma:e}}}function kC(e){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}class IC{constructor(e){this.key=e}}class CC{constructor(e){this.key=e}}class AC{constructor(e,t){this.query=e,this.fa=t,this.ga=null,this.hasCachedResults=!1,this.current=!1,this.pa=WT(),this.mutatedKeys=WT(),this.ya=DT(e),this.wa=new cC(this.ya)}get Sa(){return this.fa}ba(e,t){const n=t?t.Da:new uC,r=t?t.wa:this.wa;let i=t?t.mutatedKeys:this.mutatedKeys,s=r,o=!1;const a="F"===this.query.limitType&&r.size===this.query.limit?r.last():null,l="L"===this.query.limitType&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal(((e,t)=>{const c=r.get(e),u=NT(this.query,t)?t:null,h=!!c&&this.mutatedKeys.has(c.key),d=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations);let f=!1;c&&u?c.data.isEqual(u.data)?h!==d&&(n.track({type:3,doc:u}),f=!0):this.va(c,u)||(n.track({type:2,doc:u}),f=!0,(a&&this.ya(u,a)>0||l&&this.ya(u,l)<0)&&(o=!0)):!c&&u?(n.track({type:0,doc:u}),f=!0):c&&!u&&(n.track({type:1,doc:c}),f=!0,(a||l)&&(o=!0)),f&&(u?(s=s.add(u),i=d?i.add(e):i.delete(e)):(s=s.delete(e),i=i.delete(e)))})),null!==this.query.limit)for(;s.size>this.query.limit;
2){const e="F"===this.query.limitType?s.last():s.first();s=s.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{wa:s,Da:n,ls:o,mutatedKeys:i}}va(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){const i=this.wa;this.wa=e.wa,this.mutatedKeys=e.mutatedKeys;const s=e.Da.X_();s.sort(((e,t)=>function(e,t){const n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return fv()}};return n(e)-n(t)}(e.type,t.type)||this.ya(e.doc,t.doc))),this.Ca(n),r=null!=r&&r;const o=t&&!r?this.Fa():[],a=0===this.pa.size&&this.current&&!r?1:0,l=a!==this.ga;return this.ga=a,0!==s.length||l?{snapshot:new hC(this.query,e.wa,i,s,e.mutatedKeys,0===a,l,!1,!!n&&n.resumeToken.approximateByteSize()>0),Ma:o}:{Ma:o}}sa(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({wa:this.wa,Da:new uC,mutatedKeys:this.mutatedKeys,ls:!1},!1)):{Ma:[]}}xa(e){return!this.fa.has(e)&&!!this.wa.has(e)&&!this.wa.get(e).hasLocalMutations}Ca(e){e&&(e.addedDocuments.forEach((e=>this.fa=this.fa.add(e))),e.modifiedDocuments.forEach((e=>{})),e.removedDocuments.forEach((e=>this.fa=this.fa.delete(e))),this.current=e.current)}Fa(){if(!this.current)return[];const e=this.pa;this.pa=WT(),this.wa.forEach((e=>{this.xa(e.key)&&(this.pa=this.pa.add(e.key))}));const t=[];return e.forEach((e=>{this.pa.has(e)||t.push(new CC(e))}
2)),this.pa.forEach((n=>{e.has(n)||t.push(new IC(n))})),t}Oa(e){this.fa=e.gs,this.pa=WT();const t=this.ba(e.documents);return this.applyChanges(t,!0)}Na(){return hC.fromInitialDocuments(this.query,this.wa,this.mutatedKeys,0===this.ga,this.hasCachedResults)}}const PC="SyncEngine";class NC{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}}class RC{constructor(e){this.key=e,this.Ba=!1}}class DC{constructor(e,t,n,r,i,s){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=s,this.La={},this.ka=new LT((e=>AT(e)),CT),this.qa=new Map,this.Qa=new Set,this.$a=new Vw(Hv.comparator),this.Ua=new Map,this.Ka=new uk,this.Wa={},this.Ga=new Map,this.za=jS.Kn(),this.onlineState="Unknown",this.ja=void 0}get isPrimaryClient(){return!0===this.ja}}async function OC(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=cA(e);let i;const s=r.ka.get(t);return s?(r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.view.Na()):i=await jC(r,t,n,!0),i}async function LC(e,t){const n=cA(e);await jC(n,t,!0,!1)}async function jC(e,t,n,r){const i=await zk(e.localStore,ET(t)),s=i.targetId,o=e.sharedCl
2ientState.addLocalQueryTarget(s,n);let a;return r&&(a=await MC(e,t,s,"current"===o,i.resumeToken)),e.isPrimaryClient&&n&&OI(e.remoteStore,i),a}async function MC(e,t,n,r,i){e.Ha=(t,n,r)=>async function(e,t,n,r){let i=t.view.ba(n);i.ls&&(i=await qk(e.localStore,t.query,!1).then((e=>{let{documents:n}=e;return t.view.ba(n,i)})));const s=r&&r.targetChanges.get(t.targetId),o=r&&null!=r.targetMismatches.get(t.targetId),a=t.view.applyChanges(i,e.isPrimaryClient,s,o);return QC(e,t.targetId,a.Ma),a.snapshot}(e,t,n,r);const s=await qk(e.localStore,t,!0),o=new AC(t,s.gs),a=o.ba(s.documents),l=Bx.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==e.onlineState,i),c=o.applyChanges(a,e.isPrimaryClient,l);QC(e,n,c.Ma);const u=new NC(t,n,o);return e.ka.set(t,u),e.qa.has(n)?e.qa.get(n).push(t):e.qa.set(n,[t]),c.snapshot}async function FC(e,t,n){const r=mv(e),i=r.ka.get(t),s=r.qa.get(i.targetId);if(s.length>1)return r.qa.set(i.targetId,s.filter((e=>!CT(e,t)))),void r.ka.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
vendor: 1,938 bytes, line 2
2ientState.isActiveQueryTarget(i.targetId)||await Bk(r.localStore,i.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(i.targetId),n&&LI(r.remoteStore,i.targetId),KC(r,i.targetId)})).catch(ib)):(KC(r,i.targetId),await Bk(r.localStore,i.targetId,!0))}async function VC(e,t){const n=mv(e),r=n.ka.get(t),i=n.qa.get(r.targetId);n.isPrimaryClient&&1===i.length&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),LI(n.remoteStore,r.targetId))}async function UC(e,t){const n=mv(e);try{const e=await function(e,t){const n=mv(e),r=t.snapshotVersion;let i=n.Ts;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(e=>{const s=n.ds.newChangeBuffer({trackRemovals:!0});i=n.Ts;const o=[];t.targetChanges.forEach(((s,a)=>{const l=i.get(a);if(!l)return;o.push(n.Hr.removeMatchingKeys(e,s.removedDocuments,a).next((()=>n.Hr.addMatchingKeys(e,s.addedDocuments,a))));let c=l.withSequenceNumber(e.currentSequenceNumber);null!==t.targetMismatches.get(a)?c=c.withResumeToken(Kw.EMPTY_BYTE_STRING,Vv.min()).withLastLimboFreeSnapshotVersion(Vv.min()):s.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(s.resumeToken,r)),i=i.insert(a,c),function(e,t,n){return 0===e.resumeToken.approximateByteSize()||(t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0)}(l,c,s)&&o.push(n.Hr.updateTargetData(e,c))}));let a=MT(),l=WT();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),o.push(Vk(e,s,t.documentUpdates).next((e=>{a=e.Vs,l=e.fs}))),!r.isEqual(Vv.min())){const t=n.Hr.getLastRemoteSnapshotVersion(e).next((t=>n.Hr.setTargetsMetadata(e,e.currentSequenceNumber,r)));o.push(t)}return sb.waitFor(o).next((()=>s.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,a,l))).next((()=>a))})).then((e=>(n.Ts=i,e)))}(n.localStore,t);
2t.targetChanges.forEach(((e,t)=>{const r=n.Ua.get(t);r&&(pv(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.Ba=!0:e.modifiedDocuments.size>0?pv(r.Ba):e.removedDocuments.size>0&&(pv(r.Ba),r.Ba=!1))})),await JC(n,e,t)}catch(e){await ib(e)}}function zC(e,t,n){const r=mv(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){const e=[];r.ka.forEach(((n,r)=>{const i=r.view.sa(t);i.snapshot&&e.push(i.snapshot)})),function(e,t){const n=mv(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(const i of n.ta)i.sa(t)&&(r=!0)})),r&&bC(n)}(r.eventManager,t),e.length&&r.La.p_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function BC(e,t,n){const r=mv(e);r.sharedClientState.updateQueryState(t,"rejected",n);const i=r.Ua.get(t),s=i&&i.key;if(s){let e=new Vw(Hv.comparator);e=e.insert(s,V_.newNoDocument(s,Vv.min()));const n=WT().add(s),i=new zx(Vv.min(),new Map,new Vw(Pv),e,n);await UC(r,i),r.$a=r.$a.remove(s),r.Ua.delete(t),XC(r)}else await Bk(r.localStore,t,!1).then((()=>KC(r,t,n))).catch(ib)}async function qC(e,t){const n=mv(e),r=t.batch.batchId;try{const e=await function(e,t){const n=mv(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(e=>{const r=t.batch.keys(),i=n.ds.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){const i=n.batch,s=i.keys();let o=sb.resolve();return s.forEach((e=>{o=o.next((()=>r.getEntry(t,e))).next((t=>{const s=n.docVersions.get(e);pv(null!==s),t.version.compareTo(s)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),o.next((()=>e.mutationQueue.removeMutationBatch(t,i)))}(n,e,t,i).next((()=>i.apply(e))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=WT();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t)))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(n.localStore,t);WC(n,r,null),HC(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await JC(n,e)}catch(e){await ib(e)}}async function $C(e,t,n){const r=mv(e);try{const e=await function(e,t){const n=mv(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(e=>{let r;
2return n.mutationQueue.lookupMutationBatch(e,t).next((t=>(pv(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(r.localStore,t);WC(r,t,n),HC(r,t),r.sharedClientState.updateMutationState(t,"rejected",n),await JC(r,e)}catch(n){await ib(n)}}function HC(e,t){(e.Ga.get(t)||[]).forEach((e=>{e.resolve()})),e.Ga.delete(t)}function WC(e,t,n){const r=mv(e);let i=r.Wa[r.currentUser.toKey()];if(i){const e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.Wa[r.currentUser.toKey()]=i}}function KC(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);for(const r of e.qa.get(t))e.ka.delete(r),n&&e.La.Ja(r,n);e.qa.delete(t),e.isPrimaryClient&&e.Ka.br(t).forEach((t=>{e.Ka.containsKey(t)||GC(e,t)}))}function GC(e,t){e.Qa.delete(t.path.canonicalString());const n=e.$a.get(t);null!==n&&(LI(e.remoteStore,n),e.$a=e.$a.remove(t),e.Ua.delete(n),XC(e))}function QC(e,t,n){for(const r of n)r instanceof IC?(e.Ka.addReference(r.key,t),YC(e,r)):r instanceof CC?(cv(PC,"Document no longer in limbo: "+r.key),e.Ka.removeReference(r.key,t),e.Ka.containsKey(r.key)||GC(e,r.key)):fv()}function YC(e,t){const n=t.key,r=n.path.canonicalString();e.$a.get(n)||e.Qa.has(r)||(cv(PC,"New document in limbo: "+n),e.Qa.add(r),XC(e))}function XC(e){for(;e.Qa.size>0&&e.$a.size<e.maxConcurrentLimboResolutions;){const t=e.Qa.values().next().value;e.Qa.delete(t);const n=new Hv(Bv.fromString(t)),r=e.za.next();e.Ua.set(r,new RC(n)),e.$a=e.$a.insert(n,r),OI(e.remoteStore,new PE(ET(wT(n.path)),r,"TargetPurposeLimboResolution",wb.ae))}}async function JC(e,t,n){const r=mv(e),i=[],s=[],o=[];r.ka.isEmpty()||(r.ka.forEach(((e,a)=>{o.push(r.Ha(a,t,n).then((e=>{var t;if((e||n)&&r.isPrimaryClient){const i=e?!e.fromCache:null===(t=null==n?void 0:n.targetChanges.get(a.targetId))||void 0===t?void 0:t.current;
vendor: 4,204 bytes, line 2
2r.sharedClientState.updateQueryState(a.targetId,i?"current":"not-current")}if(e){i.push(e);const t=Nk.Yi(a.targetId,e);s.push(t)}})))})),await Promise.all(o),r.La.p_(i),await async function(e,t){const n=mv(e);try{await n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(e=>sb.forEach(t,(t=>sb.forEach(t.Hi,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>sb.forEach(t.Ji,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!db(e))throw e;cv(Ok,"Failed to update sequence numbers: "+e)}for(const r of t){const e=r.targetId;if(!r.fromCache){const t=n.Ts.get(e),r=t.snapshotVersion,i=t.withLastLimboFreeSnapshotVersion(r);n.Ts=n.Ts.insert(e,i)}}}(r.localStore,s))}async function ZC(e,t){const n=mv(e);if(!n.currentUser.isEqual(t)){cv(PC,"User change. New user:",t.toKey());const e=await Mk(n.localStore,t);n.currentUser=t,function(e,t){e.Ga.forEach((e=>{e.forEach((e=>{e.reject(new yv(gv.CANCELLED,t))}))})),e.Ga.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await JC(n,e.Rs)}}function eA(e,t){const n=mv(e),r=n.Ua.get(t);if(r&&r.Ba)return WT().add(r.key);{let e=WT();const r=n.qa.get(t);if(!r)return e;for(const t of r){const r=n.ka.get(t);e=e.unionWith(r.view.Sa)}return e}}async function tA(e,t){const n=mv(e),r=await qk(n.localStore,t.query,!0),i=t.view.Oa(r);return n.isPrimaryClient&&QC(n,t.targetId,i.Ma),i}async function nA(e,t){const n=mv(e);return Hk(n.localStore,t).then((e=>JC(n,e)))}async function rA(e,t,n,r){const i=mv(e),s=await function(e,t){const n=mv(e),r=mv(n.mutationQueue);return n.persistence.runTransaction("Lookup mutation documents","readonly",(e=>r.Ln(e,t).next((t=>t?n.localDocuments.getDocuments(e,t):sb.resolve(null)))))}(i.localStore,t);null!==s?("pending"===n?await GI(i.remoteStore):"acknowledged"===n||"rejected"===n?(WC(i,t,r||null),HC(i,t),function(e,t){mv(mv(e).mutationQueue).qn(t)}(i.localStore,t)):fv(),await JC(i,s)):cv(PC,"Cannot apply mutation batch with id: "+t)}async function iA(e,t,n){const r=mv(e),i=[],s=[];for(const o of t){let e;const t=r.qa.get(o);if(t&&0!==t.length){e=await zk(r.localStore,ET(t[0]));for(const e of t){const t=r.ka.get(e),n=await tA(r,t);n.snapshot&&s.push(n.snapshot)}}else{const t=await $k(r.localStore,o);e=await zk(r.localStore,t),await MC(r,sA(t),o,!1,e.resumeToken)}i.push(e)}return r.La.p_(s),i}function sA(e){return bT(e.path,e.collectionGroup,e.orderBy,e.filters,e.limit,"F",e.startAt,e.endAt)}function oA(e){return function(e){return mv(mv(e).persistence).zi()}(mv(e).localStore)}async function aA(e,t,n,r){const i=mv(e);if(i.ja)return void cv(PC,"Ignoring unexpected query state notification.");const s=i.qa.get(t);if(s&&s.length>0)switch(n){case"current":case"not-current":{const e=await Hk(i.localStore,RT(s[0])),r=zx.createSynthesizedRemoteEventForCurrentChange(t,"current"===n,Kw.EMPTY_BYTE_STRING);await JC(i,e,r);break}case"rejected":await Bk(i.localStore,t,!0),KC(i,t,r);break;default:fv()}}async function lA(e,t,n){const r=cA(e);if(r.ja){for(const e of t){if(r.qa.has(e)&&r.sharedClientState.isActiveQueryTarget(e)){cv(PC,"Adding an already active target "+e);continue}const t=await $k(r.localStore,e),n=await zk(r.localStore,t);await MC(r,sA(t),n.targetId,!1,n.resumeToken),OI(r.remoteStore,n)}for(const e of n)r.qa.has(e)&&await Bk(r.localStore,e,!1).then((()=>{LI(r.remoteStore,e),KC(r,e)})).catch(ib)}}function cA(e){const t=mv(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=UC.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=eA.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=BC.bind(null,t),t.La.p_=yC.bind(null,t.eventManager),t.La.Ja=vC.bind(null,t.eventManager),t}function uA(e){const t=mv(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=qC.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=$C.bind(null,t),t}class hA{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=_I(e.databaseInfo.databaseId),this.sharedClientState=this.Za(e),this.persistence=this.Xa(e),await this.persistence.start(),this.localStore=this.eu(e),this.gcScheduler
2=this.tu(e,this.localStore),this.indexBackfillerScheduler=this.nu(e,this.localStore)}tu(e,t){return null}nu(e,t){return null}eu(e){return jk(this.persistence,new Dk,e.initialUser,this.serializer)}Xa(e){return new gk(vk.ri,this.serializer)}Za(e){return new aI}async terminate(){var e,t;null===(e=this.gcScheduler)||void 0===e||e.stop(),null===(t=this.indexBackfillerScheduler)||void 0===t||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}hA.provider={build:()=>new hA};class dA extends hA{constructor(e){super(),this.cacheSizeBytes=e}tu(e,t){pv(this.persistence.referenceDelegate instanceof bk);const n=this.persistence.referenceDelegate.garbageCollector;return new HS(n,e.asyncQueue,t)}Xa(e){const t=void 0!==this.cacheSizeBytes?CS.withCacheSize(this.cacheSizeBytes):CS.DEFAULT;return new gk((e=>bk.ri(e,t)),this.serializer)}}class fA extends hA{constructor(e,t,n){super(),this.ru=e,this.cacheSizeBytes=t,this.forceOwnership=n,this.kind="persistent",this.synchronizeTabs=!1}async initialize(e){await super.initialize(e),await this.ru.initialize(this,e),await uA(this.ru.syncEngine),await GI(this.ru.remoteStore),await this.persistence.Ci((()=>(this.gcScheduler&&!this.gcScheduler.started&&this.gcScheduler.start(),this.indexBackfillerScheduler&&!this.indexBackfillerScheduler.started&&this.indexBackfillerScheduler.start(),Promise.resolve())))}eu(e){return jk(this.persistence,new Dk,e.initialUser,this.serializer)}tu(e,t){const n=this.persistence.referenceDelegate.garbageCollector;return new HS(n,e.asyncQueue,t)}nu(e,t){const n=new bb(t,this.persistence);return new vb(e.asyncQueue,n)}Xa(e){const t=Pk(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?CS.withCacheSize(this.cacheSizeBytes):CS.DEFAULT;return new Ik(this.synchronizeTabs,t,e.clientId,n,e.asyncQueue,bI(),wI(),this.serializer,this.sharedClientState,!!this.forceOwnership)}Za(e){return new aI}}class pA extends fA{constructor(e,t){super(e,t,!1),this.ru=e,this.cacheSizeBytes=t,this.synchronizeTabs=!0}async initialize(e){await super.initialize(e);const t=this.ru.syncEngine;this.sharedClientState instanceof oI&&(this.sharedClientState.syncEngine={uo:rA.bind(null,t),co:aA.bind(null,t),lo:lA.bind(null,t),zi:oA.bind(null,t),ao:nA.bind(null,t)},await this.sharedClientState.start()),await this.persistence.Ci((async e=>{await async function(e,t){const n=mv(e);if(cA(n),uA(n),!0===t&&!0!==n.ja){const e=n.sharedClientState.getAllActiveQueryTargets(),t=await iA(n,e.toArray());n.ja=!0,await iC(n.remoteStore,!0);for(const r of t)OI(n.remoteStore,r)}else if(!1===t&&!1!==n.ja){const e=[];let t=Promise.resolve();n.qa.forEach(((r,i)=>{n.sharedClientState.isLocalQueryTarget(i)?e.push(i):t=t.then((()=>(KC(n,i),Bk(n.localStore,i,!0)))),LI(n.remoteStore,i)})),await t,await iA(n,e),function(e){const t=mv(e);t.Ua.forEach(((e,n)=>{LI(t.remoteStore,n)})),t.Ka.Dr(),t.Ua=new Map,t.$a=new Vw(Hv.comparator)}(n),n.ja=!1,await iC(n.remoteStore,!1)}}(this.ru.syncEngine,e),this.gcScheduler&&(e&&!this.gcScheduler.started?this.gcScheduler.start():e||this.gcScheduler.stop()),this.indexBackfillerScheduler&&(e&&!this.indexBackfillerScheduler.started?this.indexBackfillerScheduler.start():e||this.indexBackfillerScheduler.stop())}))}Za(e){const t=bI();if(!oI.D(t))throw new yv(gv.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const n=Pk(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new oI(t,e.asyncQueue,n,e.clientId,e.initialUser)}}class mA{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=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=e=>zC(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=ZC.bind(null,this.syncEngine),await iC(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return new fC}createDatastore(e){const t=_I(e.databaseInfo.databaseId),n=function(e){return new vI(e)}(e.databaseInfo);return function(e,t,n,r){return new CI(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new NI(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,(e=>zC(this.syncEngine,e,0)),uI.D()?new uI:new lI)}createSyncEngine(e,t){return function(e,t,n,r,i,s,o){const a=new DC(e,t,n,r,i,s);return o&&(a.ja=!0),a}(this.localStore,this.remoteStore,this.eventManager,this.sharedCl
2ientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){const t=mv(e);cv(PI,"RemoteStore shutting down."),t.W_.add(5),await DI(t),t.z_.shutdown(),t.j_.set("Unknown")}(this.remoteStore),null===(e=this.datastore)||void 0===e||e.terminate(),null===(t=this.eventManager)||void 0===t||t.terminate()}}function gA(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10240,n=0;return{async read(){if(n<e.byteLength){const r={value:e.slice(n,n+t),done:!1};return n+=t,r}return{done:!0}},async cancel(){},releaseLock(){},closed:Promise.resolve()}}mA.provider={build:()=>new mA};class yA{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.iu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.iu(this.observer.error,e):uv("Uncaught Error in snapshot listener:",e.toString()))}su(){this.muted=!0}iu(e,t){setTimeout((()=>{this.muted||e(t)}),0)}}class vA{constructor(e,t){this.ou=e,this.serializer=t,this.metadata=new vv,this.buffer=new Uint8Array,this._u=new TextDecoder("utf-8"),this.au().then((e=>{e&&e.Ea()?this.metadata.resolve(e.Ia.metadata):this.metadata.reject(new Error(`The first element of the bundle is not a metadata, it is\n             ${JSON.stringify(null==e?void 0:e.Ia)}`))}),(e=>this.metadata.reject(e)))}close(){return this.ou.cancel()}async getMetadata(){return this.metadata.promise}async Ya(){return await this.getMetadata(),this.au()}async au(){const e=await this.uu();if(null===e)return null;const t=this._u.decode(e),n=Number(t);isNaN(n)&&this.cu(`length string (${t}) is not valid number`);const r=await this.lu(n);return new xC(JSON.parse(r),e.length+n)}hu(){return this.buffer.findIndex((e=>e==="{".charCodeAt(0)))}async uu(){for(;this.hu()<0&&!await this.Pu(););if(0===this.buffer.length)return null;const e=this.hu();e<0&&this.cu("Reached the end of bundle when a length string is expected.");const t=this.buffer.slice(0,e);return this.buffer=this.buffer.slice(e),t}async lu(e){for(;this.buffer.length<e;)await this.Pu()&&this.cu("Reached the end of bundle when more is expected.");const t=this._u.decode(this.buffer.slice(0,e));return this.buffer=this.buffer.slice(e),t}cu(e){throw this.ou.cancel(),new Error(`Invalid bundle format: ${e}`)}async Pu(){const e=await this.ou.read();if(!e.done){const t=new Uint8Array(this.buffer.length+e.value.length);t.set(this.buffer),t.set(e.value,this.buffer.length),this.buffer=t}return e.done}}class bA{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}async lookup(e){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw this.lastTransactionError=new yv(gv.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),this.lastTransactionError;const t=await async function(e,t){const n=mv(e),r={documents:t.map((e=>lE(n.serializer,e)))},i=await n.Co("BatchGetDocuments",n.serializer.databaseId,Bv.emptyPath(),r,t.length),s=new Map;i.forEach((e=>{const t=function(e,t){return"found"in t?function(e,t){pv(!!t.found),t.found.name,t.found.updateTime;const n=cE(e,t.found.name),r=iE(t.found.updateTime),i=t.found.createTime?iE(t.found.createTime):Vv.min(),s=new M_({mapValue:{fields:t.found.fields}});return V_.newFoundDocument(n,r,i,s)}(e,t):"missing"in t?function(e,t){pv(!!t.missing),pv(!!t.readTime);const n=cE(e,t.missing),r=iE(t.readTime);return V_.newNoDocument(n,r)}(e,t):fv()}(n.serializer,e);s.set(t.key.toString(),t)}));const o=[];return t.forEach((e=>{const t=s.get(e.toString());pv(!!t),o.push(t)})),o}(this.datastore,e);return t.forEach((e=>this.recordVersion(e))),t}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(e){this.lastTransactionError=e}this.writtenDocs.add(e.toString())}delete(e){this.write(new Sx(e,this.precondition(e))),this.writtenDocs.add(e.toString())}async commit(){if(this.ensureCommitNotCalled(),this.lastTransactionError)throw this.lastTransactionError;const e=this.readVersions;this.mutations.forEach((t=>{e.delete(t.key.toString())})),e.forEach(((e,t)=>{const n=Hv.fromPath(t);
vendor: 4,366 bytes, line 2
2this.mutations.push(new kx(n,this.precondition(n)))})),await async function(e,t){const n=mv(e),r={writes:t.map((e=>gE(n.serializer,e)))};await n.So("Commit",n.serializer.databaseId,Bv.emptyPath(),r)}(this.datastore,this.mutations),this.committed=!0}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw fv();t=Vv.min()}const n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new yv(gv.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){const t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual(Vv.min())?dx.exists(!1):dx.updateTime(t):dx.none()}preconditionForUpdate(e){const t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(Vv.min()))throw new yv(gv.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return dx.updateTime(t)}return dx.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}}class wA{constructor(e,t,n,r,i){this.asyncQueue=e,this.datastore=t,this.options=n,this.updateFunction=r,this.deferred=i,this.Tu=n.maxAttempts,this.a_=new TI(this.asyncQueue,"transaction_retry")}Iu(){this.Tu-=1,this.Eu()}Eu(){this.a_.Xo((async()=>{const e=new bA(this.datastore),t=this.du(e);t&&t.then((t=>{this.asyncQueue.enqueueAndForget((()=>e.commit().then((()=>{this.deferred.resolve(t)})).catch((e=>{this.Au(e)}))))})).catch((e=>{this.Au(e)}))}))}du(e){try{const t=this.updateFunction(e);return!Tb(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}}Au(e){this.Tu>0&&this.Ru(e)?(this.Tu-=1,this.asyncQueue.enqueueAndForget((()=>(this.Eu(),Promise.resolve())))):this.deferred.reject(e)}Ru(e){if("FirebaseError"===e.name){const t=e.code;return"aborted"===t||"failed-precondition"===t||"already-exists"===t||!Dx(t)}return!1}}const _A="FirestoreClient";class TA{constructor(e,t,n,r,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=sv.UNAUTHENTICATED,this.clientId=Av.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(n,(async e=>{cv(_A,"Received user=",e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(cv(_A,"Received new app check token=",e),this.appCheckCredentialListener(e,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new vv;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){const n=lC(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}}async function xA(e,t){e.asyncQueue.verifyOperationInProgress(),cv(_A,"Initializing OfflineComponentProvider");const n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await Mk(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function EA(e,t){e.asyncQueue.verifyOperationInProgress();const n=await SA(e);cv(_A,"Initializing OnlineComponentProvider"),await t.initialize(n,e.configuration),e.setCredentialChangeListener((e=>rC(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>rC(t.remoteStore,n))),e._onlineComponents=t}async function SA(e){if(!e._offlineComponents)if(e._uninitializedComponentsProvider){cv(_A,"Using user provided OfflineComponentProvider");try{await xA(e,e._uninitializedComponentsProvider._offline)}catch(t){const n=t;if(!function(e){return"FirebaseError"===e.name?e.code===gv.FAILED_PRECONDITION||e.code===gv.UNIMPLEMENT
2ED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||22===e.code||20===e.code||11===e.code}(n))throw n;hv("Error using user provided cache. Falling back to memory cache: "+n),await xA(e,new hA)}}else cv(_A,"Using default OfflineComponentProvider"),await xA(e,new dA(void 0));return e._offlineComponents}async function kA(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(cv(_A,"Using user provided OnlineComponentProvider"),await EA(e,e._uninitializedComponentsProvider._online)):(cv(_A,"Using default OnlineComponentProvider"),await EA(e,new mA))),e._onlineComponents}function IA(e){return SA(e).then((e=>e.persistence))}function CA(e){return SA(e).then((e=>e.localStore))}function AA(e){return kA(e).then((e=>e.remoteStore))}function PA(e){return kA(e).then((e=>e.syncEngine))}function NA(e){return kA(e).then((e=>e.datastore))}async function RA(e){const t=await kA(e),n=t.eventManager;return n.onListen=OC.bind(null,t.syncEngine),n.onUnlisten=FC.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=LC.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=VC.bind(null,t.syncEngine),n}function DA(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new vv;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const s=new yA({next:a=>{s.su(),t.enqueueAndForget((()=>gC(e,o)));const l=a.docs.has(n);!l&&a.fromCache?i.reject(new yv(gv.UNAVAILABLE,"Failed to get document because the client is offline.")):l&&a.fromCache&&r&&"server"===r.source?i.reject(new yv(gv.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(a)},error:e=>i.reject(e)}),o=new TC(wT(n.path),s,{includeMetadataChanges:!0,Ta:!0});return mC(e,o)}(await RA(e),e.asyncQueue,t,n,r))),r.promise}function OA(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=new vv;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){const s=new yA({next:n=>{s.su(),t.enqueueAndForget((()=>gC(e,o))),n.fromCache&&"server"===r.source?i.reject(new yv(gv.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:e=>i.reject(e)}),o=new TC(n,s,{includeMetadataChanges:!0,Ta:!0});return mC(e,o)}(await RA(e),e.asyncQueue,t,n,r))),r.promise}function LA(e,t,n,r){const i=function(e,t){let n;return n="string"==typeof e?Cv().encode(e):e,function(e,t){return new vA(e,t)}(function(e,t){if(e instanceof Uint8Array)return gA(e,t);if(e instanceof ArrayBuffer)return gA(new Uint8Array(e),t);if(e instanceof ReadableStream)return e.getReader();throw new Error("Source of `toByteStreamReader` has to be a ArrayBuffer or ReadableStream")}(n),t)}(n,_I(t));e.asyncQueue.enqueueAndForget((async()=>{!function(e,t,n){const r=mv(e);(async function(e,t,n){try{const r=await t.getMetadata();if(await function(e,t){const n=mv(e),r=iE(t.createTime);return n.persistence.runTransaction("hasNewerBundle","readonly",(e=>n.Yr.getBundleMetadata(e,t.id))).then((e=>!!e&&e.createTime.compareTo(r)>=0))}(e.localStore,r))return await t.close(),n._completeWith(function(e){return{taskState:"Success",documentsLoaded:e.totalDocuments,bytesLoaded:e.totalBytes,totalDocuments:e.totalDocuments,totalBytes:e.totalBytes}}(r)),Promise.resolve(new Set);n._updateProgress(kC(r));const i=new SC(r,e.localStore,t.serializer);let s=await t.Ya();for(;s;){const e=await i.Aa(s);e&&n._updateProgress(e),s=await t.Ya()}const o=await i.complete();return await JC(e,o.ma,void 0),await function(e,t){const n=mv(e);return n.persistence.runTransaction("Save bundle","readwrite",(e=>n.Yr.saveBundleMetadata(e,t)))}(e.localStore,r),n._completeWith(o.progress),Promise.resolve(o.Va)}catch(e){return hv(PC,`Loading bundle failed with ${e}`),n._failWith(e),Promise.resolve(new Set)}})(r,t,n).then((e=>{r.sharedClientState.notifyBundleLoaded(e)}))}(await PA(e),i,r)}))}function jA(e){const t={};return void 0!==e.timeoutSeconds&&(t.timeoutSeconds=e.timeoutSeconds),t}const MA=new Map;function FA(e,t,n){if(!n)throw new yv(gv.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function VA(e,t,n,r){if(!0===t&&!0===r)throw new yv(gv.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}function UA(e){if(!Hv.isDocumentKey(e))throw new yv(gv.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function zA(e){if(Hv.isDocumentKey(e))throw new yv(gv.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function BA(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";{const t=function(e){return e.constructor?e.constructor.name:null}(e);return t?`a custom ${t} object`:"an object"}}return"function"==typeof e?"a function":fv()}function qA(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new yv(gv.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=BA(e);throw new yv(gv.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}function $A(e,t){if(t<=0)throw new yv(gv.INVALID_ARGUMENT,`Function ${e}() requires a positive number, but it was: ${t}.`)}const HA="firestore.googleapis.com",WA=!0;class KA{constructor(e){var t,n;if(void 0===e.host){if(void 0!==e.ssl)throw new yv(gv.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=HA,this.ssl=WA}else this.host=e.host,this.ssl=null!==(t=e.ssl)&&void 0!==t?t:WA;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,void 0===e.cacheSizeBytes)this.cacheSizeBytes=IS;else{if(-1!==e.cacheSizeBytes&&e.cacheSizeBytes<BS)throw new yv(gv.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}VA("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:void 0===e.experimentalAutoDetectLongPolling?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=jA(null!==(n=e.experimentalLongPollingOptions)&&void 0!==n?n:{}),function(e){if(void 0!==e.timeoutSeconds){if(isNaN(e.timeoutSeconds))throw new yv(gv.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new yv(gv.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new yv(gv.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(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&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class GA{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new KA({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new yv(gv.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return"notTerminated"!==this._terminateTask}_setSettings(e){if(this._settingsFrozen)throw new yv(gv.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 KA(e),this._emulatorOptions=e.emulatorOptions||{},void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new wv;switch(e.type){case"firstParty":return new Ev(e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new yv(gv.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
2d credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return"notTerminated"===this._terminateTask&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){"notTerminated"===this._terminateTask?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){const t=MA.get(e);t&&(cv("ComponentProvider","Removing Datastore"),MA.delete(e),t.terminate())}(this),Promise.resolve()}}function QA(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var i;const s=(e=qA(e,GA))._getSettings(),o=Object.assign(Object.assign({},s),{emulatorOptions:e._getEmulatorOptions()}),a=`${t}:${n}`;s.host!==HA&&s.host!==a&&hv("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const l=Object.assign(Object.assign({},s),{host:a,ssl:!1,emulatorOptions:r});if(!xu(l,o)&&(e._setSettings(l),r.mockUserToken)){let t,n;if("string"==typeof r.mockUserToken)t=r.mockUserToken,n=sv.MOCK_USER;else{t=function(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);return[iu(JSON.stringify({alg:"none",type:"JWT"})),iu(JSON.stringify(s)),""].join(".")}(r.mockUserToken,null===(i=e._app)||void 0===i?void 0:i.options.projectId);const s=r.mockUserToken.sub||r.mockUserToken.user_id;if(!s)throw new yv(gv.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");n=new sv(s)}e._authCredentials=new _v(new bv(t,n))}}class YA{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new YA(this.firestore,e,this._query)}}class XA{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new JA(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new XA(this.firestore,e,this._key)}}class JA extends YA{constructor(e,t,n){super(e,t,wT(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new XA(this.firestore,null,new Hv(e))}withConverter(e){return new JA(this.firestore,e,this._path)}}function ZA(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Nu(e),FA("collection","path",t),e instanceof GA){const n=Bv.fromString(t,...r);return zA(n),new JA(e,null,n)}{if(!(e instanceof XA||e instanceof JA))throw new yv(gv.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(Bv.fromString(t,...r));return zA(n),new JA(e.firestore,null,n)}}function eP(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(e=Nu(e),1===arguments.length&&(t=Av.newId()),FA("doc","path",t),e instanceof GA){const n=Bv.fromString(t,...r);return UA(n),new XA(e,null,new Hv(n))}{if(!(e instanceof XA||e instanceof JA))throw new yv(gv.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const n=e._path.child(Bv.fromString(t,...r));return UA(n),new XA(e.firestore,e instanceof JA?e.converter:null,new Hv(n))}}function tP(e,t){return e=Nu(e),t=Nu(t),(e instanceof XA||e instanceof JA)&&(t instanceof XA||t instanceof JA)&&e.firestore===t.firestore&&e.path===t.path&&e.converter===t.converter}function nP(e,t){return e=Nu(e),t=Nu(t),e instanceof YA&&t instanceof YA&&e.firestore===t.firestore&&CT(e._query,t._query)&&e.converter===t.converter}const rP="AsyncQueue";class iP{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Promise.resolve();this.Vu=[],this.mu=!1,this.fu=[],this.gu=null,this.pu=!1,this.yu=!1,this.wu=[],this.a_=new TI(this,"async_queue_retry"),this.Su=()=>{const e=wI();e&&cv(rP,"Visibility state changed to "+e.visibilityState),this.a_.t_()},this.bu=e;const t=wI();t&&"function"==typeof t.addEventListener&&t.addEventListener("visibilitychange",this.Su)}get isShuttingDown(){return this.mu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.Du(),this.vu(e)}enterRestrictedMode(e){if(!this.mu){this.mu=!0,this.yu=e||!1;const t=wI();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Su)}}enqueue(e){if(this.Du(),this.mu)return new Promise((()=>{}));const t=new vv;return this.vu((()=>this.mu&&this.yu?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>
2(this.Vu.push(e),this.Cu())))}async Cu(){if(0!==this.Vu.length){try{await this.Vu[0](),this.Vu.shift(),this.a_.reset()}catch(vL){if(!db(vL))throw vL;cv(rP,"Operation failed with retryable error: "+vL)}this.Vu.length>0&&this.a_.Xo((()=>this.Cu()))}}vu(e){const t=this.bu.then((()=>(this.pu=!0,e().catch((e=>{this.gu=e,this.pu=!1;const t=function(e){let t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw uv("INTERNAL UNHANDLED ERROR: ",t),e})).then((e=>(this.pu=!1,e))))));return this.bu=t,t}enqueueAfterDelay(e,t,n){this.Du(),this.wu.indexOf(e)>-1&&(t=0);const r=aC.createAndSchedule(this,e,t,n,(e=>this.Fu(e)));return this.fu.push(r),r}Du(){this.gu&&fv()}verifyOperationInProgress(){}async Mu(){let e;do{e=this.bu,await e}while(e!==this.bu)}xu(e){for(const t of this.fu)if(t.timerId===e)return!0;return!1}Ou(e){return this.Mu().then((()=>{this.fu.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(const t of this.fu)if(t.skipDelay(),"all"!==e&&t.timerId===e)break;return this.Mu()}))}Nu(e){this.wu.push(e)}Fu(e){const t=this.fu.indexOf(e);this.fu.splice(t,1)}}function sP(e){return function(e,t){if("object"!=typeof e||null===e)return!1;const n=e;for(const r of t)if(r in n&&"function"==typeof n[r])return!0;return!1}(e,["next","error","complete"])}class oP{constructor(){this._progressObserver={},this._taskCompletionResolver=new vv,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}onProgress(e,t,n){this._progressObserver={next:e,error:t,complete:n}}catch(e){return this._taskCompletionResolver.promise.catch(e)}then(e,t){return this._taskCompletionResolver.promise.then(e,t)}_completeWith(e){this._updateProgress(e),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(e)}_failWith(e){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(e),this._taskCompletionResolver.reject(e)}_updateProgress(e){this._lastProgress=e,this._progressObserver.next&&this._progressObserver.next(e)}}class aP extends GA{constructor(e,t,n,r){super(e,t,n,r),this.type="firestore",this._queue=new iP,this._persistenceKey=(null==r?void 0:r.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new iP(e),this._firestoreClient=void 0,await e}}}function lP(e){if(e._terminated)throw new yv(gv.FAILED_PRECONDITION,"The client has already been terminated.");return e._firestoreClient||cP(e),e._firestoreClient}function cP(e){var t,n,r;const i=e._freezeSettings(),s=function(e,t,n,r){return new s_(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,jA(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,i);e._componentsProvider||(null===(n=i.localCache)||void 0===n?void 0:n._offlineComponentProvider)&&(null===(r=i.localCache)||void 0===r?void 0:r._onlineComponentProvider)&&(e._componentsProvider={_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider}),e._firestoreClient=new TA(e._authCredentials,e._appCheckCredentials,e._queue,s,e._componentsProvider&&function(e){const t=null==e?void 0:e._online.build();return{_offline:null==e?void 0:e._offline.build(t),_online:t}}(e._componentsProvider))}function uP(e,t,n){if((e=qA(e,aP))._firestoreClient||e._terminated)throw new yv(gv.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.");if(e._componentsProvider||e._getSettings().localCache)throw new yv(gv.FAILED_PRECONDITION,"SDK cache is already specified.");e._componentsProvider={_online:t,_offline:n},cP(e)}function hP(e){return function(e){const t=new vv;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t){const n=mv(e);UI(n.remoteStore)||cv(PC,"The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled.");try{const e=await function(e){const t=mv(e);return t.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(e=>
2t.mutationQueue.getHighestUnacknowledgedBatchId(e)))}(n.localStore);if(e===_b)return void t.resolve();const r=n.Ga.get(e)||[];r.push(t),n.Ga.set(e,r)}catch(e){const n=lC(e,"Initialization of waitForPendingWrites() operation failed");t.reject(n)}}(await PA(e),t))),t.promise}(lP(e=qA(e,aP)))}function dP(e){return function(e){return e.asyncQueue.enqueue((async()=>{const t=await IA(e),n=await AA(e);return t.setNetworkEnabled(!0),function(e){const t=mv(e);return t.W_.delete(0),RI(t)}(n)}))}(lP(e=qA(e,aP)))}function fP(e){return function(e){return e.asyncQueue.enqueue((async()=>{const t=await IA(e),n=await AA(e);return t.setNetworkEnabled(!1),async function(e){const t=mv(e);t.W_.add(0),await DI(t),t.j_.set("Offline")}(n)}))}(lP(e=qA(e,aP)))}function pP(e,t){return function(e,t){return e.asyncQueue.enqueue((async()=>function(e,t){const n=mv(e);return n.persistence.runTransaction("Get named query","readonly",(e=>n.Yr.getNamedQuery(e,t)))}(await CA(e),t)))}(lP(e=qA(e,aP)),t).then((t=>t?new YA(e,null,t.query):null))}class mP{constructor(e){this._byteString=e}static fromBase64String(e){try{return new mP(Kw.fromBase64String(e))}catch(e){throw new yv(gv.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(e){return new mP(Kw.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}class gP{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(let r=0;r<t.length;++r)if(0===t[r].length)throw new yv(gv.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new $v(t)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}class yP{constructor(e){this._methodName=e}}class vP{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new yv(gv.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new yv(gv.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Pv(this._lat,e._lat)||Pv(this._long,e._long)}}class bP{constructor(e){this._values=(e||[]).map((e=>e))}toArray(){return this._values.map((e=>e))}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}}const wP=/^__.*__$/;class _P{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return null!==this.fieldMask?new _x(e,this.data,this.fieldMask,t,this.fieldTransforms):new wx(e,this.data,t,this.fieldTransforms)}}class TP{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new _x(e,this.data,this.fieldMask,t,this.fieldTransforms)}}function xP(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw fv()}}class EP{constructor(e,t,n,r,i,s){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Bu(),this.fieldTransforms=i||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Lu(){return this.settings.Lu}ku(e){return new EP(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}qu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ku({path:n,Qu:!1});return r.$u(e),r}Uu(e){var t;const n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ku({path:n,Qu:!1});return r.Bu(),r}Ku(e){return this.ku({path:void 0,Qu:!0})}Wu(e){return $P(e,this.settings.methodName,this.settings.Gu||!1,this.path,this.settings.zu)}contains(e){return void 0!==this.fieldMask.find((t=>e.isPrefixOf(t)))||void 0!==this.fieldTransforms.find((t=>e.isPrefixOf(t.field)))}
vendor: 6,572 bytes, line 2
2Bu(){if(this.path)for(let e=0;e<this.path.length;e++)this.$u(this.path.get(e))}$u(e){if(0===e.length)throw this.Wu("Document fields must not be empty");if(xP(this.Lu)&&wP.test(e))throw this.Wu('Document fields cannot begin and end with "__"')}}class SP{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||_I(e)}ju(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new EP({Lu:e,methodName:t,zu:n,path:$v.emptyPath(),Qu:!1,Gu:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function kP(e){const t=e._freezeSettings(),n=_I(e._databaseId);return new SP(e._databaseId,!!t.ignoreUndefinedProperties,n)}function IP(e,t,n,r,i){let s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};const o=e.ju(s.merge||s.mergeFields?2:0,t,n,i);UP("Data must be an object, but it was:",o,r);const a=FP(r,o);let l,c;if(s.merge)l=new Hw(o.fieldMask),c=o.fieldTransforms;else if(s.mergeFields){const e=[];for(const r of s.mergeFields){const i=zP(t,r,n);if(!o.contains(i))throw new yv(gv.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);HP(e,i)||e.push(i)}l=new Hw(e),c=o.fieldTransforms.filter((e=>l.covers(e.field)))}else l=null,c=o.fieldTransforms;return new _P(new M_(a),l,c)}class CP extends yP{_toFieldTransform(e){if(2!==e.Lu)throw 1===e.Lu?e.Wu(`${this._methodName}() can only appear at the top level of your update data`):e.Wu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof CP}}function AP(e,t,n){return new EP({Lu:3,zu:t.settings.zu,methodName:e._methodName,Qu:n},t.databaseId,t.serializer,t.ignoreUndefinedProperties)}class PP extends yP{_toFieldTransform(e){return new ux(e.path,new nx)}isEqual(e){return e instanceof PP}}class NP extends yP{constructor(e,t){super(e),this.Hu=t}_toFieldTransform(e){const t=AP(this,e,!0),n=this.Hu.map((e=>MP(e,t))),r=new rx(n);return new ux(e.path,r)}isEqual(e){return e instanceof NP&&xu(this.Hu,e.Hu)}}class RP extends yP{constructor(e,t){super(e),this.Hu=t}_toFieldTransform(e){const t=AP(this,e,!0),n=this.Hu.map((e=>MP(e,t))),r=new sx(n);return new ux(e.path,r)}isEqual(e){return e instanceof RP&&xu(this.Hu,e.Hu)}}class DP extends yP{constructor(e,t){super(e),this.Ju=t}_toFieldTransform(e){const t=new ax(e.serializer,XT(e.serializer,this.Ju));return new ux(e.path,t)}isEqual(e){return e instanceof DP&&this.Ju===e.Ju}}function OP(e,t,n,r){const i=e.ju(1,t,n);UP("Data must be an object, but it was:",i,r);const s=[],o=M_.empty();Mw(r,((e,r)=>{const a=qP(t,e,n);r=Nu(r);const l=i.Uu(a);if(r instanceof CP)s.push(a);else{const e=MP(r,l);null!=e&&(s.push(a),o.set(a,e))}}));const a=new Hw(s);return new TP(o,a,i.fieldTransforms)}function LP(e,t,n,r,i,s){const o=e.ju(1,t,n),a=[zP(t,r,n)],l=[i];if(s.length%2!=0)throw new yv(gv.INVALID_ARGUMENT,`Function ${t}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let d=0;d<s.length;d+=2)a.push(zP(t,s[d])),l.push(s[d+1]);const c=[],u=M_.empty();for(let d=a.length-1;d>=0;--d)if(!HP(c,a[d])){const e=a[d];let t=l[d];t=Nu(t);const n=o.Uu(e);if(t instanceof CP)c.push(e);else{const r=MP(t,n);null!=r&&(c.push(e),u.set(e,r))}}const h=new Hw(c);return new TP(u,h,o.fieldTransforms)}function jP(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return MP(n,e.ju(r?4:3,t))}function MP(e,t){if(VP(e=Nu(e)))return UP("Unsupported field value:",t,e),FP(e,t);if(e instanceof yP)return function(e,t){if(!xP(t.Lu))throw t.Wu(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.Wu(`${e._methodName}() is not currently supported inside arrays`);const 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.Qu&&4!==t.Lu)throw t.Wu("Nested arrays are not supported");return function(e,t){const n=[];let r=0;for(const i of e){let e=MP(i,t.Ku(r));null==e&&(e={nullValue:"NULL_VALUE"}),n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if(null===(e=Nu(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return XT(t.serializer,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){const n=Fv.fromDate(e);return{timestampValue:tE(t.serializer,n)}}if(e instanceof Fv){const n=new Fv(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:tE(t.serializer,n)}}if(e instanceof vP)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof mP)return{bytesValue:nE(t.serializer,e._byteString)};if(e instanceof XA){const n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Wu(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:sE(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof bP)return function(e,t){return{mapValue:{fields:{[l_]:{stringValue:h_},[d_]:{arrayValue:{values:e.toArray().map((e=>{if("number"!=typeof e)throw t.Wu("VectorValues must only contain numeric values.");return QT(t.serializer,e)}))}}}}}}(e,t);throw t.Wu(`Unsupported field value: ${BA(e)}`)}(e,t)}function FP(e,t){const n={};return Fw(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):Mw(e,((e,r)=>{const i=MP(r,t.qu(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function VP(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Fv||e instanceof vP||e instanceof mP||e instanceof XA||e instanceof yP||e instanceof bP)}function UP(e,t,n){if(!VP(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){const r=BA(n);throw"an object"===r?t.Wu(e+" a custom object"):t.Wu(e+" "+r)}}function zP(e,t,n){if((t=Nu(t))instanceof gP)return t._internalPath;if("string"==typeof t)return qP(e,t);throw $P("Field path arguments must be of type string or ",e,!1,void 0,n)}const BP=new RegExp("[~\\*/\\[\\]]");function qP(e,t,n){if(t.search(BP)>=0)throw $P(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new gP(...t.split("."))._internalPath}catch(KD){throw $P(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function $P(e,t,n,r,i){const s=r&&!r.isEmpty(),o=void 0!==i;let a=`Function ${t}
2() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(s||o)&&(l+=" (found",s&&(l+=` in field ${r}`),o&&(l+=` in document ${i}`),l+=")"),new yv(gv.INVALID_ARGUMENT,a+e+l)}function HP(e,t){return e.some((e=>e.isEqual(t)))}class WP{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new XA(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const e=new KP(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const t=this._document.data.field(GP("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}class KP extends WP{data(){return super.data()}}function GP(e,t){return"string"==typeof t?qP(e,t):t instanceof gP?t._internalPath:t._delegate._internalPath}function QP(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new yv(gv.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class YP{}class XP extends YP{}function JP(e,t){let n=[];for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s];t instanceof YP&&n.push(t),n=n.concat(i),function(e){const t=e.filter((e=>e instanceof eN)).length,n=e.filter((e=>e instanceof ZP)).length;if(t>1||t>0&&n>0)throw new yv(gv.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(n);for(const o of n)e=o._apply(e);return e}class ZP extends XP{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new ZP(e,t,n)}_apply(e){const t=this._parse(e);return lN(e._query,t),new YA(e.firestore,e.converter,kT(e._query,t))}_parse(e){const t=kP(e.firestore),n=function(e,t,n,r,i,s,o){let a;if(i.isKeyField()){if("array-contains"===s||"array-contains-any"===s)throw new yv(gv.INVALID_ARGUMENT,`Invalid Query. You can't perform '${s}' queries on documentId().`);if("in"===s||"not-in"===s){aN(o,s);const t=[];for(const n of o)t.push(oN(r,e,n));a={arrayValue:{values:t}}}else a=oN(r,e,o)}else"in"!==s&&"not-in"!==s&&"array-contains-any"!==s||aN(o,s),a=jP(n,t,o,"in"===s||"not-in"===s);return W_.create(i,s,a)}(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value);return n}}class eN extends YP{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new eN(e,t)}_parse(e){const t=this._queryConstraints.map((t=>t._parse(e))).filter((e=>e.getFilters().length>0));return 1===t.length?t[0]:K_.create(t,this._getOperator())}_apply(e){const t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){let n=e;const r=t.getFlattenedFilters();for(const i of r)lN(n,i),n=kT(n,i)}(e._query,t),new YA(e.firestore,e.converter,kT(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return"and"===this.type?"and":"or"}}class tN extends XP{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new tN(e,t)}_apply(e){const t=function(e,t,n){if(null!==e.startAt)throw new yv(gv.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new yv(gv.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new q_(t,n)}(e._query,this._field,this._direction);return new YA(e.firestore,e.converter,function(e,t){const n=e.explicitOrderBy.concat([t]);return new vT(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}class nN extends XP{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new nN(e,t,n)}_apply(e){return new YA(e.firestore,e.converter,IT(e._query,this._limit,this._limitType))}}class rN extends XP{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new rN(e,t,n)}_apply(e){const t=sN(e,this.type,this._docOrFields,this._inclusive);return new YA(e.firestore,e.converter,function(e,t){return new vT(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,t,e.endAt)}(e._query,t))}}class iN extends XP{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new iN(e,t,n)}_apply(e){const t=sN(e,this.type,this._docOrFields,this._inclusive);return new YA(e.firestore,e.converter,function(e,t){return new vT(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,t)}(e._query,t))}}function sN(e,t,n,r){if(n[0]=Nu(n[0]),n[0]instanceof WP)return function(e,t,n,r,i){if(!r)throw new yv(gv.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${n}().`);const s=[];for(const o of xT(e))if(o.field.isKeyField())s.push(x_(t,r.key));else{const e=r.data.field(o.field);if(n_(e))throw new yv(gv.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+o.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===e){const e=o.field.canonicalString();throw new yv(gv.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${e}' (used as the orderBy) does not exist.`)}s.push(e)}return new U_(s,i)}(e._query,e.firestore._databaseId,t,n[0]._document,r);{const i=kP(e.firestore);return function(e,t,n,r,i,s){const o=e.explicitOrderBy;if(i.length>o.length)throw new yv(gv.INVALID_ARGUMENT,`Too many arguments provided to ${r}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const a=[];for(let l=0;l<i.length;l++){const s=i[l];
2if(o[l].field.isKeyField()){if("string"!=typeof s)throw new yv(gv.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${r}(), but got a ${typeof s}`);if(!TT(e)&&-1!==s.indexOf("/"))throw new yv(gv.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${r}() must be a plain document ID, but '${s}' contains a slash.`);const n=e.path.child(Bv.fromString(s));if(!Hv.isDocumentKey(n))throw new yv(gv.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${r}() must result in a valid document path, but '${n}' is not because it contains an odd number of segments.`);const i=new Hv(n);a.push(x_(t,i))}else{const e=jP(n,r,s);a.push(e)}}return new U_(a,s)}(e._query,e.firestore._databaseId,i,t,n,r)}}function oN(e,t,n){if("string"==typeof(n=Nu(n))){if(""===n)throw new yv(gv.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!TT(t)&&-1!==n.indexOf("/"))throw new yv(gv.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=t.path.child(Bv.fromString(n));if(!Hv.isDocumentKey(r))throw new yv(gv.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return x_(e,new Hv(r))}if(n instanceof XA)return x_(e,n._key);throw new yv(gv.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${BA(n)}.`)}function aN(e,t){if(!Array.isArray(e)||0===e.length)throw new yv(gv.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function lN(e,t){const n=function(e,t){for(const n of e)for(const e of n.getFlattenedFilters())if(t.indexOf(e.op)>=0)return e.op;return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==n)throw n===t.op?new yv(gv.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new yv(gv.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${n.toString()}' filters.`)}class cN{convertValue(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(p_(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Yw(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(Xw(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 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw fv()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";const n={};return Mw(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertVectorValue(e){var t,n,r;const i=null===(r=null===(n=null===(t=e.fields)||void 0===t?void 0:t[d_].arrayValue)||void 0===n?void 0:n.values)||void 0===r?void 0:r.map((e=>Yw(e.doubleValue)));return new bP(i)}convertGeoPoint(e){return new vP(Yw(e.latitude),Yw(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case"previous":const n=r_(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(i_(e));default:return null}}convertTimestamp(e){const t=Qw(e);return new Fv(t.seconds,t.nanos)}convertDocumentKey(e,t){const n=Bv.fromString(e);pv(AE(n));const r=new a_(n.get(1),n.get(3)),i=new Hv(n.popFirst(5));return r.isEqual(t)||uv(`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}}
2function uN(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}class hN extends cN{constructor(e){super(),this.firestore=e}convertBytes(e){return new mP(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new XA(this.firestore,null,t)}}class dN{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class fN extends WP{constructor(e,t,n,r,i,s){super(e,t,n,r,s),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){const t=new pN(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)}}get(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){const n=this._document.data.field(GP("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}class pN extends fN{data(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.data(e)}}class mN{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new dN(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){const e=[];return this.forEach((t=>e.push(t))),e}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(e,t){this._snapshot.docs.forEach((n=>{e.call(t,new pN(this._firestore,this._userDataWriter,n.key,n,new dN(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(){const e=!!(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new yv(gv.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map((n=>{const r=new pN(e._firestore,e._userDataWriter,n.doc.key,n.doc,new dN(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:"added",doc:r,oldIndex:-1,newIndex:t++}}))}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((e=>t||3!==e.type)).map((t=>{const r=new pN(e._firestore,e._userDataWriter,t.doc.key,t.doc,new dN(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);let i=-1,s=-1;return 0!==t.type&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),1!==t.type&&(n=n.add(t.doc),s=n.indexOf(t.doc.key)),{type:gN(t.type),doc:r,oldIndex:i,newIndex:s}}))}}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}}function gN(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return fv()}}function yN(e,t){return e instanceof fN&&t instanceof fN?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 mN&&t instanceof mN&&e._firestore===t._firestore&&nP(e.query,t.query)&&e.metadata.isEqual(t.metadata)&&e._snapshot.isEqual(t._snapshot)}class vN extends cN{constructor(e){super(),this.firestore=e}convertBytes(e){return new mP(e)}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return new XA(this.firestore,null,t)}}function bN(e){e=qA(e,XA);const t=qA(e.firestore,aP),n=lP(t),r=new vN(t);return function(e,t){const n=new vv;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){try{const r=await function(e,t){const n=mv(e);return n.persistence.runTransaction("read document","readonly",(e=>n.localDocuments.getDocument(e,t)))}(e,t);r.isFoundDocument()?n.resolve(r):r.isNoDocument()?n.resolve(null):n.reject(new yv(gv.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.)"))}catch(e){const r=lC(e,`Failed to get document '${t} from cache`);n.reject(r)}}(await CA(e),t,n))),n.promise}(n,e._key).then((n=>new fN(t,r,e._key,n,new dN(null!==n&&n.hasLocalMutations,!0),e.converter)))}function wN(e){e=qA(e,YA);const t=qA(e.firestore,aP),n=lP(t),r=new vN(t);return function(e,t){const n=new vv;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){try{const r=await qk(e,t,!0),i=new AC(t,r.gs),s=i.ba(r.documents),o=i.applyChanges(s,
2!1);n.resolve(o.snapshot)}catch(e){const r=lC(e,`Failed to execute query '${t} against cache`);n.reject(r)}}(await CA(e),t,n))),n.promise}(n,e._query).then((n=>new mN(t,r,e,n)))}function _N(e,t,n){e=qA(e,XA);const r=qA(e.firestore,aP),i=uN(e.converter,t,n);return SN(r,[IP(kP(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,dx.none())])}function TN(e,t,n){e=qA(e,XA);const r=qA(e.firestore,aP),i=kP(r);let s;for(var o=arguments.length,a=new Array(o>3?o-3:0),l=3;l<o;l++)a[l-3]=arguments[l];return s="string"==typeof(t=Nu(t))||t instanceof gP?LP(i,"updateDoc",e._key,t,n,a):OP(i,"updateDoc",e._key,t),SN(r,[s.toMutation(e._key,dx.exists(!0))])}function xN(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i,s,o;e=Nu(e);let a={includeMetadataChanges:!1,source:"default"},l=0;"object"!=typeof n[l]||sP(n[l])||(a=n[l],l++);const c={includeMetadataChanges:a.includeMetadataChanges,source:a.source};if(sP(n[l])){const e=n[l];n[l]=null===(i=e.next)||void 0===i?void 0:i.bind(e),n[l+1]=null===(s=e.error)||void 0===s?void 0:s.bind(e),n[l+2]=null===(o=e.complete)||void 0===o?void 0:o.bind(e)}let u,h,d;if(e instanceof XA)h=qA(e.firestore,aP),d=wT(e._key.path),u={next:t=>{n[l]&&n[l](kN(h,e,t))},error:n[l+1],complete:n[l+2]};else{const t=qA(e,YA);h=qA(t.firestore,aP),d=t._query;const r=new vN(h);u={next:e=>{n[l]&&n[l](new mN(h,r,t,e))},error:n[l+1],complete:n[l+2]},QP(e._query)}return function(e,t,n,r){const i=new yA(r),s=new TC(t,i,n);return e.asyncQueue.enqueueAndForget((async()=>mC(await RA(e),s))),()=>{i.su(),e.asyncQueue.enqueueAndForget((async()=>gC(await RA(e),s)))}}(lP(h),d,c,u)}function EN(e,t){return function(e,t){const n=new yA(t);return e.asyncQueue.enqueueAndForget((async()=>function(e,t){mv(e).ia.add(t),t.next()}(await RA(e),n))),()=>{n.su(),e.asyncQueue.enqueueAndForget((async()=>function(e,t){mv(e).ia.delete(t)}(await RA(e),n)))}}(lP(e=qA(e,aP)),sP(t)?t:{next:t})}function SN(e,t){return function(e,t){const n=new vv;return e.asyncQueue.enqueueAndForget((async()=>async function(e,t,n){const r=uA(e);try{const e=await function(e,t){const n=mv(e),r=Fv.now(),i=t.reduce(((e,t)=>e.add(t.key)),WT());let s,o;return n.persistence.runTransaction("Locally write mutations","readwrite",(e=>{let a=MT(),l=WT();return n.ds.getEntries(e,i).next((e=>{a=e,a.forEach(((e,t)=>{t.isValidDocument()||(l=l.add(e))}))})).next((()=>n.localDocuments.getOverlayedDocuments(e,a))).next((i=>{s=i;const o=[];for(const e of t){const t=vx(e,s.get(e.key).overlayedDocument);null!=t&&o.push(new _x(e.key,t,F_(t.value.mapValue),dx.exists(!0)))}
2return n.mutationQueue.addMutationBatch(e,r,o,t)})).next((t=>{o=t;const r=t.applyToLocalDocumentSet(s,l);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)}))})).then((()=>({batchId:o.batchId,changes:UT(s)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.Wa[e.currentUser.toKey()];r||(r=new Vw(Pv)),r=r.insert(t,n),e.Wa[e.currentUser.toKey()]=r}(r,e.batchId,n),await JC(r,e.changes),await GI(r.remoteStore)}catch(e){const t=lC(e,"Failed to persist write");n.reject(t)}}(await PA(e),t,n))),n.promise}(lP(e),t)}function kN(e,t,n){const r=n.docs.get(t._key),i=new vN(e);return new fN(e,i,t._key,r,new dN(n.hasPendingWrites,n.fromCache),t.converter)}const IN={maxAttempts:5};class CN{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=kP(e)}set(e,t,n){this._verifyNotCommitted();const r=AN(e,this._firestore),i=uN(r.converter,t,n),s=IP(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(s.toMutation(r._key,dx.none())),this}update(e,t,n){this._verifyNotCommitted();const r=AN(e,this._firestore);let i;for(var s=arguments.length,o=new Array(s>3?s-3:0),a=3;a<s;a++)o[a-3]=arguments[a];return i="string"==typeof(t=Nu(t))||t instanceof gP?LP(this._dataReader,"WriteBatch.update",r._key,t,n,o):OP(this._dataReader,"WriteBatch.update",r._key,t),this._mutations.push(i.toMutation(r._key,dx.exists(!0))),this}delete(e){this._verifyNotCommitted();const t=AN(e,this._firestore);return this._mutations=this._mutations.concat(new Sx(t._key,dx.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new yv(gv.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function AN(e,t){if((e=Nu(e)).firestore!==t)throw new yv(gv.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return e}class PN{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=kP(e)}get(e){const t=AN(e,this._firestore),n=new hN(this._firestore);return this._transaction.lookup([t._key]).then((e=>{if(!e||1!==e.length)return fv();const r=e[0];if(r.isFoundDocument())return new WP(this._firestore,n,r.key,r,t.converter);if(r.isNoDocument())return new WP(this._firestore,n,t._key,null,t.converter);throw fv()}))}set(e,t,n){const r=AN(e,this._firestore),i=uN(r.converter,t,n),s=IP(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,s),this}update(e,t,n){const r=AN(e,this._firestore);let i;for(var s=arguments.length,o=new Array(s>3?s-3:0),a=3;a<s;a++)o[a-3]=arguments[a];return i="string"==typeof(t=Nu(t))||t instanceof gP?LP(this._dataReader,"Transaction.update",r._key,t,n,o):OP(this._dataReader,"Transaction.update",r._key,t),this._transaction.update(r._key,i),this}delete(e){const t=AN(e,this._firestore);return this._transaction.delete(t._key),this}}class NN extends PN{constructor(e,t){super(e,t),this._firestore=e}get(e){const t=AN(e,this._firestore),n=new vN(this._firestore);return super.get(e).then((e=>new fN(this._firestore,n,t._key,e._document,new dN(!1,!1),t.converter)))}}new WeakMap;!function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){ov=e}(Jh),Bh(new Ru("firestore",((e,n)=>{let{instanceIdentifier:r,options:i}=n;const s=e.getProvider("app").getImmediate(),o=new aP(new Tv(e.getProvider("auth-internal")),new kv(s,e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new yv(gv.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new a_(e.options.projectId,t)}(s,r),s);return i=Object.assign({useFetchStreams:t},i),o._setSettings(i),o}),"PUBLIC").setMultipleInstances(!0)),id(rv,iv,e),id(rv,iv,"esm2017")}();function RN(e,t){if(void 0===t)return{merge:!1};if(void 0!==t.mergeFields&&void 0!==t.merge)throw new yv("invalid-argument",`Invalid options passed to function ${e}(): You cannot specify both "merge" and "mergeFields".`);return t}function DN(){if("undefined"===typeof Uint8Array)throw new yv("unimplemented","Uint8Arrays are not available in this environment.")}
2function ON(){if("undefined"==typeof atob)throw new yv("unimplemented","Blobs are unavailable in Firestore in this environment.")}class LN{constructor(e){this._delegate=e}static fromBase64String(e){return ON(),new LN(mP.fromBase64String(e))}static fromUint8Array(e){return DN(),new LN(mP.fromUint8Array(e))}toBase64(){return ON(),this._delegate.toBase64()}toUint8Array(){return DN(),this._delegate.toUint8Array()}isEqual(e){return this._delegate.isEqual(e._delegate)}toString(){return"Blob(base64: "+this.toBase64()+")"}}function jN(e){return function(e,t){if("object"!==typeof e||null===e)return!1;const n=e;for(const r of t)if(r in n&&"function"===typeof n[r])return!0;return!1}(e,["next","error","complete"])}class MN{enableIndexedDbPersistence(e,t){return function(e,t){hv("enableIndexedDbPersistence() will be deprecated in the future, you can use `FirestoreSettings.cache` instead.");const n=e._freezeSettings();return uP(e,mA.provider,{build:e=>new fA(e,n.cacheSizeBytes,null==t?void 0:t.forceOwnership)}),Promise.resolve()}(e._delegate,{forceOwnership:t})}enableMultiTabIndexedDbPersistence(e){return async function(e){hv("enableMultiTabIndexedDbPersistence() will be deprecated 
2in the future, you can use `FirestoreSettings.cache` instead.");const t=e._freezeSettings();uP(e,mA.provider,{build:e=>new pA(e,t.cacheSizeBytes)})}(e._delegate)}clearIndexedDbPersistence(e){return function(e){if(e._initialized&&!e._terminated)throw new yv(gv.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const t=new vv;return e._queue.enqueueAndForgetEvenWhileRestricted((async()=>{try{await async function(e){if(!lb.D())return Promise.resolve();const t=e+kk;await lb.delete(t)}(Pk(e._databaseId,e._persistenceKey)),t.resolve()}catch(e){t.reject(e)}})),t.promise}(e._delegate)}}class FN{constructor(e,t,n){this._delegate=t,this._persistenceProvider=n,this.INTERNAL={delete:()=>this.terminate()},e instanceof a_||(this._appCompat=e)}get _databaseId(){return this._delegate._databaseId}settings(e){const t=this._delegate._getSettings();e.merge||t.host===e.host||hv("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)}useEmulator(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};QA(this._delegate,e,t,n)}enableNetwork(){return dP(this._delegate)}disableNetwork(){return fP(this._delegate)}enablePersistence(e){let t=!1,n=!1;return e&&(t=!!e.synchronizeTabs,n=!!e.experimentalForceOwningTab,VA("synchronizeTabs",t,"experimentalForceOwningTab",n)),t?this._persistenceProvider.enableMultiTabIndexedDbPersistence(this):this._persistenceProvider.enableIndexedDbPersistence(this,n)}clearPersistence(){return this._persistenceProvider.clearIndexedDbPersistence(this)}terminate(){return this._appCompat&&(this._appCompat._removeServiceInstance("firestore-compat"),this._appCompat._removeServiceInstance("firestore")),this._delegate._delete()}waitForPendingWrites(){return hP(this._delegate)}onSnapshotsInSync(e){return EN(this._delegate,e)}get app(){if(!this._appCompat)throw new yv("failed-precondition","Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._appCompat}collection(e){try{return new JN(this,ZA(this._delegate,e))}catch(vL){throw $N(vL,"collection()","Firestore.collection()")}}doc(e){try{return new qN(this,eP(this._delegate,e))}catch(vL){throw $N(vL,"doc()","Firestore.doc()")}}collectionGroup(e){try{return new QN(this,function(e,t){if(e=qA(e,GA),FA("collectionGroup","collection id",t),t.indexOf("/")>=0)throw new yv(gv.INVALID_ARGUMENT,`Invalid collection ID '${t}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new YA(e,null,function(e){return new vT(Bv.emptyPath(),e)}(t))}(this._delegate,e))}catch(vL){throw $N(vL,"collectionGroup()","Firestore.collectionGroup()")}}runTransaction(e){return function(e,t,n){e=qA(e,aP);const r=Object.assign(Object.assign({},IN),n);return function(e){if(e.maxAttempts<1)throw new yv(gv.INVALID_ARGUMENT,"Max attempts must be at least 1")}(r),function(e,t,n){const r=new vv;return e.asyncQueue.enqueueAndForget((async()=>{const i=await NA(e);new wA(e.asyncQueue,i,n,t,r).Iu()})),r.promise}(lP(e),(n=>t(new NN(e,n))),r)}(this._delegate,(t=>e(new UN(this,t))))}batch(){return lP(this._delegate),new zN(new CN(this._delegate,(e=>SN(this._delegate,e))))}loadBundle(e){return function(e,t){const n=lP(e=qA(e,aP)),r=new oP;return LA(n,e._databaseId,t,r),r}(this._delegate,e)}namedQuery(e){return pP(this._delegate,e).then((e=>e?new QN(this,e):null))}}class VN extends cN{constructor(e){super(),this.firestore=e}convertBytes(e){return new LN(new mP(e))}convertReference(e){const t=this.convertDocumentKey(e,this.firestore._databaseId);return qN.forKey(t,this.firestore,null)}}class UN{constructor(e,t){this._firestore=e,this._delegate=t,this._userDataWriter=new VN(e)}get(e){const t=ZN(e);return this._delegate.get(t).then((e=>new KN(this._firestore,new fN(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,t.converter))))}set(e,t,n){const r=ZN(e);return n?(RN("Transaction.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),s=3;s<r;s++)i[s-3]=arguments[s];const o=ZN(e);return 2===arguments.length?this._delegate.update(o,t):this._delegate.update(o,t,n,...i),this}delete(e){const t=ZN(e);return this._delegate.delete(t),this}}class zN{constructor(e){this._delegate=e}set(e,t,n){const r=ZN(e);return n?(RN("WriteBatch.set",n),this._delegate.set(r,t,n)):this._delegate.set(r,t),this}update(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),s=3;s<r;s++)i[s-3]=arguments[s];const o=ZN(e);return 2===arguments.length?this._delegate.update(o,t):this._delegate.update(o,t,n,...i),this}delete(e){const t=ZN(e);return this._delegate.delete(t),this}commit(){return this._delegate.commit()}}class BN{constructor(e,t,n){this._firestore=e,this._userDataWriter=t,this._delegate=n}fromFirestore(e,t){const n=new pN(this._firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,null);
2return this._delegate.fromFirestore(new GN(this._firestore,n),null!==t&&void 0!==t?t:{})}toFirestore(e,t){return t?this._delegate.toFirestore(e,t):this._delegate.toFirestore(e)}static getInstance(e,t){const n=BN.INSTANCES;let r=n.get(e);r||(r=new WeakMap,n.set(e,r));let i=r.get(t);return i||(i=new BN(e,new VN(e),t),r.set(t,i)),i}}BN.INSTANCES=new WeakMap;class qN{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new VN(e)}static forPath(e,t,n){if(e.length%2!==0)throw new yv("invalid-argument",`Invalid document reference. Document references must have an even number of segments, but ${e.canonicalString()} has ${e.length}`);return new qN(t,new XA(t._delegate,n,new Hv(e)))}static forKey(e,t,n){return new qN(t,new XA(t._delegate,n,e))}get id(){return this._delegate.id}get parent(){return new JN(this.firestore,this._delegate.parent)}get path(){return this._delegate.path}collection(e){try{return new JN(this.firestore,ZA(this._delegate,e))}catch(vL){throw $N(vL,"collection()","DocumentReference.collection()")}}isEqual(e){return(e=Nu(e))instanceof XA&&tP(this._delegate,e)}set(e,t){t=RN("DocumentReference.set",t);try{return t?_N(this._delegate,e,t):_N(this._delegate,e)}catch(vL){throw $N(vL,"setDoc()","DocumentReference.set()")}}update(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];try{return 1===arguments.length?TN(this._delegate,e):TN(this._delegate,e,t,...r)}catch(vL){throw $N(vL,"updateDoc()","DocumentReference.update()")}}delete(){return SN(qA((e=this._delegate).firestore,aP),[new Sx(e._key,dx.none())]);var e}onSnapshot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=HN(t),i=WN(t,(e=>new KN(this.firestore,new fN(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter))));return xN(this._delegate,r,i)}get(e){let t;return t="cache"===(null===e||void 0===e?void 0:e.source)?bN(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?function(e){e=qA(e,XA);const t=qA(e.firestore,aP);return DA(lP(t),e._key,{source:"server"}).then((n=>kN(t,e,n)))}(this._delegate):function(e){e=qA(e,XA);const t=qA(e.firestore,aP);return DA(lP(t),e._key).then((n=>kN(t,e,n)))}(this._delegate),t.then((e=>new KN(this.firestore,new fN(this.firestore._delegate,this._userDataWriter,e._key,e._document,e.metadata,this._delegate.converter))))}withConverter(e){return new qN(this.firestore,e?this._delegate.withConverter(BN.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function $N(e,t,n){return e.message=e.message.replace(t,n),e}function HN(e){for(const t of e)if("object"===typeof t&&!jN(t))return t;return{}}function WN(e,t){var n,r;let i;return i=jN(e[0])?e[0]:jN(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]},{next:e=>{i.next&&i.next(t(e))},error:null===(n=i.error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}class KN{constructor(e,t){this._firestore=e,this._delegate=t}get ref(){return new qN(this._firestore,this._delegate.ref)}get id(){return this._delegate.id}get metadata(){return this._delegate.metadata}get exists(){return this._delegate.exists()}data(e){return this._delegate.data(e)}get(e,t){return this._delegate.get(e,t)}isEqual(e){return yN(this._delegate,e._delegate)}}class GN extends KN{data(e){const t=this._delegate.data(e);return this._delegate._converter||void 0!==t||fv(),t}}class QN{constructor(e,t){this.firestore=e,this._delegate=t,this._userDataWriter=new VN(e)}where(e,t,n){try{return new QN(this.firestore,JP(this._delegate,function(e,t,n){const r=t,i=GP("where",e);return ZP._create(i,r,n)}(e,t,n)))}catch(vL){throw $N(vL,/(orderBy|where)\(\)/,"Query.$1()")}}orderBy(e,t){try{return new QN(this.firestore,JP(this._delegate,function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=GP("orderBy",e);return tN._create(n,t)}(e,t)))}catch(vL){throw $N(vL,/(orderBy|where)\(\)/,"Query.$1()")}}limit(e){try{return new QN(this.firestore,JP(this._delegate,($A("limit",t=e),nN._create("limit",t,"F"))))}catch(t){throw $N(t,"limit()","Query.limit()")}var t}limitToLast(e){try{return new QN(this.firestore,JP(this._delegate,($A("limitToLast",t=e),nN._create("limitToLast",t,"L"))))}catch(t){throw $N(t,"limitToLast()","Query.limitToLast()")}var t}startAt(){try{return new QN(this.firestore,JP(this._delegate,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rN._create("startAt",t,!0)}(...arguments)))}catch(vL){throw $N(vL,"startAt()","Query.startAt()")}}startAfter(){try{return new QN(this.firestore,JP(this._delegate,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return rN._create("startAfter",t,!1)}(...arguments)))}catch(vL){throw $N(vL,"startAfter()","Query.startAfter()")}}endBefore(){try{return new QN(this.firestore,JP(this._delegate,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return iN._create("endBefore",t,!1)}(...arguments)))}catch(vL){throw $N(vL,"endBefore()","Query.endBefore()")}}endAt(){try{return new QN(this.firestore,JP(this._delegate,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return iN._create("endAt",t,!0)}(...arguments)))}catch(vL){throw $N(vL,"endAt()","Query.endAt()")}}isEqual(e){return nP(this._delegate,e._delegate)}get(e){let t;return t="cache"===(null===e||void 0===e?void 0:e.source)?wN(this._delegate):"server"===(null===e||void 0===e?void 0:e.source)?function(e){e=qA(e,YA);const t=qA(e.firestore,aP),n=lP(t),r=new vN(t);return OA(n,e._query,{source:"server"}).then((n=>new mN(t,r,e,n)))}(this._delegate):function(e){e=qA(e,YA);const t=qA(e.firestore,aP),n=lP(t),r=new vN(t);return QP(e._query),OA(n,e._query).then((n=>new mN(t,r,e,n)))}(this._delegate),t.then((e=>
2new XN(this.firestore,new mN(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot))))}onSnapshot(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=HN(t),i=WN(t,(e=>new XN(this.firestore,new mN(this.firestore._delegate,this._userDataWriter,this._delegate,e._snapshot))));return xN(this._delegate,r,i)}withConverter(e){return new QN(this.firestore,e?this._delegate.withConverter(BN.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}class YN{constructor(e,t){this._firestore=e,this._delegate=t}get type(){return this._delegate.type}get doc(){return new GN(this._firestore,this._delegate.doc)}get oldIndex(){return this._delegate.oldIndex}get newIndex(){return this._delegate.newIndex}}class XN{constructor(e,t){this._firestore=e,this._delegate=t}get query(){return new QN(this._firestore,this._delegate.query)}get metadata(){return this._delegate.metadata}get size(){return this._delegate.size}get empty(){return this._delegate.empty}get docs(){return this._delegate.docs.map((e=>new GN(this._firestore,e)))}docChanges(e){return this._delegate.docChanges(e).map((e=>new YN(this._firestore,e)))}forEach(e,t){this._delegate.forEach((n=>{e.call(t,new GN(this._firestore,n))}))}isEqual(e){return yN(this._delegate,e._delegate)}}class JN extends QN{constructor(e,t){super(e,t),this.firestore=e,this._delegate=t}get id(){return this._delegate.id}get path(){return this._delegate.path}get parent(){const e=this._delegate.parent;return e?new qN(this.firestore,e):null}doc(e){try{return new qN(this.firestore,void 0===e?eP(this._delegate):eP(this._delegate,e))}catch(vL){throw $N(vL,"doc()","CollectionReference.doc()")}}add(e){return function(e,t){const n=qA(e.firestore,aP),r=eP(e),i=uN(e.converter,t);return SN(n,[IP(kP(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,dx.exists(!1))]).then((()=>r))}(this._delegate,e).then((e=>new qN(this.firestore,e)))}isEqual(e){return tP(this._delegate,e._delegate)}withConverter(e){return new JN(this.firestore,e?this._delegate.withConverter(BN.getInstance(this.firestore,e)):this._delegate.withConverter(null))}}function ZN(e){return qA(e,XA)}class eR{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._delegate=new gP(...t)}static documentId(){return new eR($v.keyField().canonicalString())}isEqual(e){return(e=Nu(e))instanceof gP&&this._delegate._internalPath.isEqual(e._internalPath)}}class tR{static serverTimestamp(){const e=new PP("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new tR(e)}static delete(){const e=new CP("deleteField");return e._methodName="FieldValue.delete",new tR(e)}static arrayUnion(){const e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new NP("arrayUnion",t)}(...arguments);return e._methodName="FieldValue.arrayUnion",new tR(e)}static arrayRemove(){const e=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new RP("arrayRemove",t)}(...arguments);return e._methodName="FieldValue.arrayRemove",new tR(e)}static increment(e){const t=new DP("increment",e);return t._methodName="FieldValue.increment",new tR(t)}constructor(e){this._delegate=e}isEqual(e){return this._delegate.isEqual(e._delegate)}}const nR={Firestore:FN,GeoPoint:vP,Timestamp:Fv,Blob:LN,Transaction:UN,WriteBatch:zN,DocumentReference:qN,DocumentSnapshot:KN,Query:QN,QueryDocumentSnapshot:GN,QuerySnapshot:XN,CollectionReference:JN,FieldPath:eR,FieldValue:tR,setLogLevel:function(e){var t;t=e,av.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};!function(e){!function(e,t){e.INTERNAL.registerComponent(new Ru("firestore-compat",(e=>{const n=e.getProvider("app-compat").getImmediate(),r=e.getProvider("firestore").getImmediate();return t(n,r)}),"PUBLIC").setServiceProps(Object.assign({},nR)))}(e,((e,t)=>new FN(e,t,new MN))),e.registerVersion("@firebase/firestore-compat","0.3.45")}(_d);const rR="firebasestorage.googleapis.com",iR="storageBucket";class sR extends bu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(lR(e),`Firebase Storage: ${t} (${lR(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,sR.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return lR(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage}\n${this.customData.serverResponse}`:this.message=this._baseMessage}}var oR,aR;function lR(e){return"storage/"+e}function cR(){return new sR(oR.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function uR(){return new sR(oR.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function hR(){return new sR(oR.CANCELED,"User canceled the upload/download.")}function dR(e){return new sR(oR.INVALID_ARGUMENT,e)}function fR(){return new sR(oR.APP_DELETED,"The Firebase app was deleted.")}!function(e){e.UNKNOWN="unknown",e.OBJECT_NOT_FOUND="object-not-found",e.BUCKET_NOT_FOUND="bucket-not-found",e.PROJECT_NOT_FOUND="project-not-found",e.QUOTA_EXCEEDED="quota-exceeded",e.UNAUTHENTICATED="unauthenticated",e.UNAUTHORIZED="unauthorized",e.UNAUTHORIZED_APP="unauthorized-app",e.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",e.INVALID_CHECKSUM="invalid-checksum",e.CANCELED="canceled",e.INVALID_EVENT_NAME="invalid-event-name",e.INVALID_URL="invalid-url",e.INVALID_DEFAULT_BUCKET="invalid-default-bucket",e.NO_DEFAULT_BUCKET="no-default-bucket",e.CA
vendor: 7,518 bytes, line 2
2NNOT_SLICE_BLOB="cannot-slice-blob",e.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",e.NO_DOWNLOAD_URL="no-download-url",e.INVALID_ARGUMENT="invalid-argument",e.INVALID_ARGUMENT_COUNT="invalid-argument-count",e.APP_DELETED="app-deleted",e.INVALID_ROOT_OPERATION="invalid-root-operation",e.INVALID_FORMAT="invalid-format",e.INTERNAL_ERROR="internal-error",e.UNSUPPORTED_ENVIRONMENT="unsupported-environment"}(oR||(oR={}));class pR{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=pR.makeFromUrl(e,t)}catch(vL){return new pR(e,"")}if(""===n.path)return n;throw r=e,new sR(oR.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.");var r}static makeFromUrl(e,t){let n=null;const r="([A-Za-z0-9.\\-_]+)";const i=new RegExp("^gs://"+r+"(/(.*))?$","i");function s(e){e.path_=decodeURIComponent(e.path)}const o=t.replace(/[.]/g,"\\."),a=[{regex:i,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?://${o}/v[A-Za-z0-9_]+/b/${r}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:s},{regex:new RegExp(`^https?://${t===rR?"(?:storage.googleapis.com|storage.cloud.google.com)":t}/${r}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:s}];for(let l=0;l<a.length;l++){const t=a[l],r=t.regex.exec(e);if(r){const e=r[t.indices.bucket];let i=r[t.indices.path];i||(i=""),n=new pR(e,i),t.postModify(n);break}}if(null==n)throw function(e){return new sR(oR.INVALID_URL,"Invalid URL '"+e+"'.")}(e);return n}}class mR{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(){}}function gR(e,t,n,r){if(r<t)throw dR(`Invalid value for '${e}'. Expected ${t} or greater.`);if(r>n)throw dR(`Invalid value for '${e}'. Expected ${n} or less.`)}function yR(e){const t=encodeURIComponent;let n="?";for(const r in e)if(e.hasOwnProperty(r)){n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1),n}function vR(e,t){const n=e>=500&&e<600,r=-1!==[408,429].indexOf(e),i=-1!==t.indexOf(e);return n||r||i}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(aR||(aR={}));class bR{constructor(e,t,n,r,i,s,o,a,l,c,u){let h=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i,this.additionalRetryCodes_=s,this.callback_=o,this.errorCallback_=a,this.timeout_=l,this.progressCallback_=c,this.connectionFactory_=u,this.retry=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise(((e,t)=>{this.resolve_=e,this.reject_=t,this.start_()}))}start_(){const e=(e,t)=>{if(t)return void e(!1,new wR(!1,null,!0));const n=this.connectionFactory_();this.pendingConnection_=n;const r=e=>{const t=e.loaded,n=e.lengthComputable?e.total:-1;null!==this.progressCallback_&&this.progressCallback_(t,n)};null!==this.progressCallback_&&n.addUploadProgressListener(r),n.send(this.url_,this.method_,this.body_,this.headers_).then((()=>{null!==this.progressCallback_&&n.removeUploadProgressListener(r),this.pendingConnection_=null;const t=n.getErrorCode()===aR.NO_ERROR,i=n.getStatus();if(!t||vR(i,this.additionalRetryCodes_)&&this.retry){const t=n.getErrorCode()===aR.ABORT;return void e(!1,new wR(!1,null,t))}const s=-1!==this.successCodes_.indexOf(i);e(!0,new wR(s,n))}))},t=(e,t)=>{const n=this.resolve_,r=this.reject_,i=t.connection;if(t.wasSuccessCode)try{const e=this.callback_(i,i.getResponse());!function(e){return void 0!==e}(e)?n():n(e)}catch(vL){r(vL)}else if(null!==i){const e=cR();e.serverResponse=i.getErrorText(),this.errorCallback_?r(this.errorCallback_(i,e)):r(e)}else if(t.canceled){r(this.appDelete_?fR():hR())}else{r(uR())}};this.canceled_?t(0,new wR(!1,null,!0)):this.backoffId_=function(e,t,n){let r=1,i=null,s=null,o=!1,a=0;function l(){return 2===a}let c=!1;function u(){if(!c){c=!0;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.apply(null,n)}}function h(t){i=setTimeout((()=>{i=null,e(f,l())}),t)}function d(){s&&clearTimeout(s)}function f(e){if(c)return void d();for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];if(e)return d(),void u.call(null,e,...n);if(l()||o)return d(),void u.call(null,e,...n);let s;r<64&&(r*=2),1===a?(a=2,s=0):s=1e3*(r+Math.random()),h(s)}let p=!1;function m(e){p||(p=!0,d(),c||(null!==i?(e||(a=2),clearTimeout(i),h(0)):e||(a=1)))}return h(0),s=setTimeout((()=>{o=!0,m(!0)}),n),m}(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function(e){e(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class wR{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}}function _R(e){const t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}class TR{constructor(e,t){this._service=e,this._location=t instanceof pR?t:pR.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new TR(e,t)}get root(){const e=new pR(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return _R(this._location.path)}get storage(){return this._service}get parent(){const e=function(e){if(0===e.length)return null;const t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===e)return null;const t=new pR(this._location.bucket,e);return new TR(this._service,t)}_throwIfRoot(e){if(""===this._location.path)throw function(e){return new sR(oR.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').")}(e)}}function xR(e,t){const n=null===t||void 0===t?void 0:t[iR];return null==n?null:pR.makeFromBucketSpec(n,e)}class ER{constructor(e,t,n,r,i){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=r,this._firebaseVersion=i,this._bucket=null,this._host=rR,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=r?pR.makeFromBucketSpec(r,this._host):xR(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,null!=this._url?this._bucket=pR.makeFromBucketSpec(this._url,e):this._bucket=xR(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){gR("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){gR("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const t=await e.getToken();if(null!==t)return t.accessToken}return null}async _getAppCheckToken(){if(Wh(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});if(e){return(await e.getToken()).token}return null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEac
2h((e=>e.cancel())),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new TR(this,e)}_makeRequest(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new mR(fR());{const s=function(e,t,n,r,i,s){let o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];const a=yR(e.urlParams),l=e.url+a,c=Object.assign({},e.headers);return function(e,t){t&&(e["X-Firebase-GMPID"]=t)}(c,t),function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(c,n),function(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}(c,s),function(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}(c,r),new bR(l,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o)}(e,this._appId,n,r,t,this._firebaseVersion,i);return this._requests.add(s),s.getPromise().then((()=>this._requests.delete(s)),(()=>this._requests.delete(s))),s}}async makeRequestWithTokens(e,t){const[n,r]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,t,n,r).getPromise()}}const SR="@firebase/storage",kR="0.13.7",IR="storage";function CR(e,t){let{instanceIdentifier:n}=t;const r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),s=e.getProvider("app-check-internal");return new ER(r,i,s,n,Jh)}Bh(new Ru(IR,CR,"PUBLIC").setMultipleInstances(!0)),id(SR,kR,""),id(SR,
2kR,"esm2017"),_d.initializeApp({apiKey:"AIzaSyALH2zgdYP9TMPQl9hfsX1Aq1GG9RMoCdQ",authDomain:"quality-lab-6d8e9.firebaseapp.com",projectId:"quality-lab-6d8e9",storageBucket:"quality-lab-6d8e9.firebasestorage.app",messagingSenderId:"755528078043",appId:"1:755528078043:web:4cecb24bf4f164e12cb2fe"});const AR=_d;class PR{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Network Error";this.status=e,this.text=t}}const NR={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:(()=>{if("undefined"!==typeof localStorage)return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},RR=e=>e?"string"===typeof e?{publicKey:e}:"[object Object]"===e.toString()?e:{}:{},DR=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=await fetch(NR.origin+e,{method:"POST",headers:n,body:t}),i=await r.text(),s=new PR(r.status,i);if(r.ok)return s;throw s},OR=(e,t,n)=>{if(!e||"string"!==typeof e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||"string"!==typeof t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!n||"string"!==typeof n)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},LR=e=>e.webdriver||!e.languages||0===e.languages.length,jR=()=>new PR(451,"Unavailable For Headless Browser"),MR=(e,t)=>{if((e=>!e.list?.length||!e.watchVariable)(e))return!1;((e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if("string"!==typeof t)throw"The BlockList watchVariable has to be a string"})(e.list,e.watchVariable);const n=((e,t)=>e instanceof FormData?e.get(t):e[t])(t,e.watchVariable);return"string"===typeof n&&e.list.includes(n)},FR=()=>new PR(403,"Forbidden"),VR=async(e,t,n)=>{if(!t.throttle||!n)return!1;((e,t)=>{if("number"!==typeof e||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&"string"!==typeof t)throw"The LimitRate ID has to be a non-empty string"})(t.throttle,t.id);const r=t.id||e,i=await(async(e,t,n)=>{const r=Number(await n.get(e)||0);return t-Date.now()+r})(r,t.throttle,n);return i>0||(await n.set(r,Date.now().toString()),!1)},UR=()=>new PR(429,"Too Many Requests"),zR=async(e,t,n,r)=>{const i=RR(r),s=i.publicKey||NR.publicKey,o=i.blockHeadless||NR.blockHeadless,a=NR.storageProvider||i.storageProvider,l={...NR.blockList,...i.blockList},c={...NR.limitRate,...i.limitRate};if(o&&LR(navigator))return Promise.reject(jR());const u=(e=>"string"===typeof e?document.querySelector(e):e)(n);OR(s,e,t),(e=>{if(!e||"FORM"!==e.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"})(u);const h=new FormData(u);return MR(l,h)?Promise.reject(FR()):await VR(location.pathname,c,a)?Promise.reject(UR()):(h.append("lib_version","4.4.1"),h.append("service_id",e),h.append("template_id",t),h.append("user_id",s),DR("/api/v1.0/email/send-form",h))};var BR=n(5173),qR=n.n(BR),$R=n(4332),HR=n.n($R),WR=n(6366),KR=n.n(WR),GR=n(2123),QR=n.n(GR),YR="bodyAttributes",XR="htmlAttributes",JR="titleAttributes",ZR={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},eD=(Object.keys(ZR).map((function(e){return ZR[e]})),"charset"),tD="cssText",nD="href",rD="http-equiv",iD="innerHTML",sD="itemprop",oD="name",aD="property",lD="rel",cD="src",uD="target",hD={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},dD="defaultTitle",fD="defer",pD="encodeSpecialCharacters",mD="onChangeClientState",gD="titleTemplate",yD=Object.keys(hD).reduce((function(e,t){return e[hD[t]]=t,e}),{}),vD=[ZR.NOSCRIPT,ZR.SCRIPT,ZR.STYLE],bD="data-react-helmet",wD="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},_D=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}}(),TD=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},xD=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},ED=function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},SD=function(e){var t=PD(e,ZR.TITLE),n=PD(e,gD);if(n&&t)return n.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var r=PD(e,dD);return t||r||void 0},kD=function(e){return PD(e,mD)||function(){}},ID=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 TD({},e,t)}),{})},CD=function(e,t){return t.filter((function(e){return"undefined"!==typeof e[ZR.BASE]})).map((function(e){return e[ZR.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i++){var s=r[i].toLowerCase();if(-1!==e.indexOf(s)&&n[s])return t.concat(n)}return t}),[])},AD=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||("undefined"!==typeof t[e]&&LD("Helmet: "+e+' should be of type "Array". Instead found type "'+wD(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,s=Object.keys(e),o=0;o<s.length;o++){var a=s[o],l=a.toLowerCase();-1===t.indexOf(l)||n===lD&&"canonical"===e[n].toLowerCase()||l===lD&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(a)||a!==iD&&a!==tD&&a!==sD||(n=a)}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 s=Object.keys(i),o=0;o<s.length;o++){var a=s[o],l=QR()({},r[a],i[a]);r[a]=l}return e}),[]).reverse()},PD=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},ND=function(){var e=Date.now();return function(t){var n=Date.now();n-e>16?(e=n,t(n)):setTimeout((function(){ND(t)}),0)}}(),RD=function(e){return clearTimeout(e)},DD="undefined"!==typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||ND:n.g.requestAnimationFrame||ND,OD="undefined"!==typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||RD:n.g.cancelAnimationFrame||RD,LD=function(e){return console&&"function"===typeof console.warn&&console.warn(e)},jD=null,MD=function(e,t){var n=e.baseTag,r=e.bodyAttributes,i=e.htmlAttributes,s=e.linkTags,o=e.metaTags,a=e.noscriptTags,l=e.onChangeClientState,c=e.scriptTags,u=e.styleTags,h=e.title,d=e.titleAttributes;UD(ZR.BODY,r),UD(ZR.HTML,i),VD(h,d);var f={baseTag:zD(ZR.BASE,n),linkTags:zD(ZR.LINK,s),metaTags:zD(ZR.META,o),noscriptTags:zD(ZR.NOSCRIPT,a),scriptTags:zD(ZR.SCRIPT,c),styleTags:zD(ZR.STYLE,u)},p={},m={};Object.keys(f).forEach((function(e){var t=f[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(m[e]=f[e].oldTags)})),t&&t(),l(e,p,m)},FD=function(e){return Array.isArray(e)?e.join(""):e},VD=function(e,t){"undefined"!==typeof e&&document.title!==e&&(document.title=FD(e)),UD(ZR.TITLE,t)},UD=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute(bD),i=r?r.split(","):[],s=[].concat(i),o=Object.keys(t),a=0;a<o.length;a++){var l=o[a],c=t[l]||"";n.getAttribute(l)!==c&&n.setAttribute(l,c),-1===i.indexOf(l)&&i.push(l);var u=s.indexOf(l);-1!==u&&s.splice(u,1)}for(var h=s.length-1;h>=0;h--)n.removeAttribute(s[h]);i.length===s.length?n.removeAttribute(bD):n.getAttribute(bD)!==o.join(",")&&n.setAttribute(bD,o.join(","))}},zD=function(e,t){var n=document.head||document.querySelector(ZR.HEAD),r=n.querySelectorAll(e+"["+bD+"]"),i=Array.prototype.slice.call(r),s=[],o=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===iD)n.innerHTML=t.innerHTML;else if(r===tD)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var a="undefined"===typeof t[r]?"":t[r];n.setAttribute(r,a)}n.setAttribute(bD,"true"),i.some((function(e,t){return o=t,n.isEqualNode(e)}))?i.splice(o,1):s.push(n)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),s.forEach((function(e){return n.appendChild(e)})),{oldTags:i,newTags:s}},BD=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}),"")},qD=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[hD[n]||n]=e[n],t}),t)},$D=function(e,n,r){switch(e){case ZR.TITLE:return{toComponent:function(){return function(e,n,r){var i,s=((i={key:n})[bD]=!0,i),o=qD(r,s);return[t.createElement(ZR.TITLE,o,n)]}(0,n.title,n.titleAttributes)},toString:function(){return function(e,t,n,r){var i=BD(n),s=FD(t);return i?"<"+e+" "+bD+'="true" '+i+">"+ED(s,r)+"</"+e+">":"<"+e+" "+bD+'="true">'+ED(s,r)+"</"+e+">"}(e,n.title,n.titleAttributes,r)}};case YR:case XR:return{toComponent:function(){return qD(n)},toString:function(){return BD(n)}};default:return{toComponent:function(){return function(e,n){return n.map((function(n,r){var i,s=((i={key:r})[bD]=!0,i);
2return Object.keys(n).forEach((function(e){var t=hD[e]||e;if(t===iD||t===tD){var r=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:r}}else s[t]=n[e]})),t.createElement(e,s)}))}(e,n)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!(e===iD||e===tD)})).reduce((function(e,t){var i="undefined"===typeof r[t]?t:t+'="'+ED(r[t],n)+'"';return e?e+" "+i:i}),""),s=r.innerHTML||r.cssText||"",o=-1===vD.indexOf(e);return t+"<"+e+" "+bD+'="true" '+i+(o?"/>":">"+s+"</"+e+">")}),"")}(e,n,r)}}}},HD=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,s=e.linkTags,o=e.metaTags,a=e.noscriptTags,l=e.scriptTags,c=e.styleTags,u=e.title,h=void 0===u?"":u,d=e.titleAttributes;return{base:$D(ZR.BASE,t,r),bodyAttributes:$D(YR,n,r),htmlAttributes:$D(XR,i,r),link:$D(ZR.LINK,s,r),meta:$D(ZR.META,o,r),noscript:$D(ZR.NOSCRIPT,a,r),script:$D(ZR.SCRIPT,l,r),style:$D(ZR.STYLE,c,r),title:$D(ZR.TITLE,{title:h,titleAttributes:d},r)}},WD=function(e){var n,r;return r=n=function(n){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}(this,n.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)}(r,n),r.prototype.shouldComponentUpdate=function(e){return!KR()(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case ZR.SCRIPT:case ZR.NOSCRIPT:return{innerHTML:t};case ZR.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.")},r.prototype.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren,i=e.newChildProps,s=e.nestedChildren;return TD({},r,((t={})[n.type]=[].concat(r[n.type]||[],[TD({},i,this.mapNestedChildrenToProps(n,s))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,s=e.newChildProps,o=e.nestedChildren;switch(r.type){case ZR.TITLE:return TD({},i,((t={})[r.type]=o,t.titleAttributes=TD({},s),t));case ZR.BODY:return TD({},i,{bodyAttributes:TD({},s)});case ZR.HTML:return TD({},i,{htmlAttributes:TD({},s)})}return TD({},i,((n={})[r.type]=TD({},s),n))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var n=TD({},t);return Object.keys(e).forEach((function(t){var r;n=TD({},n,((r={})[t]=e[t],r))})),n}
2,r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,n){var r=this,i={};return t.Children.forEach(e,(function(e){if(e&&e.props){var t=e.props,s=t.children,o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,n){return t[yD[n]||n]=e[n],t}),t)}(xD(t,["children"]));switch(r.warnOnInvalidChildren(e,s),e.type){case ZR.LINK:case ZR.META:case ZR.NOSCRIPT:case ZR.SCRIPT:case ZR.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:o,nestedChildren:s});break;default:n=r.mapObjectTypeChildren({child:e,newProps:n,newChildProps:o,nestedChildren:s})}}})),n=this.mapArrayTypeChildrenToProps(i,n)},r.prototype.render=function(){var n=this.props,r=n.children,i=xD(n,["children"]),s=TD({},i);return r&&(s=this.mapChildrenToProps(r,s)),t.createElement(e,s)},_D(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(t.Component),n.propTypes={base:qR().object,bodyAttributes:qR().object,children:qR().oneOfType([qR().arrayOf(qR().node),qR().node]),defaultTitle:qR().string,defer:qR().bool,encodeSpecialCharacters:qR().bool,htmlAttributes:qR().object,link:qR().arrayOf(qR().object),meta:qR().arrayOf(qR().object),noscript:qR().arrayOf(qR().object),onChangeClientState:qR().func,script:qR().arrayOf(qR().object),style:qR().arrayOf(qR().object),title:qR().string,titleAttributes:qR().object,titleTemplate:qR().string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var t=e.rewind();return t||(t=HD({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}(HR()((function(e){return{baseTag:CD([nD,uD],e),bodyAttributes:ID(YR,e),defer:PD(e,fD),encode:PD(e,pD),htmlAttributes:ID(XR,e),linkTags:AD(ZR.LINK,[lD,nD],e),metaTags:AD(ZR.META,[oD,eD,rD,aD,sD],e),noscriptTags:AD(ZR.NOSCRIPT,[iD],e),onChangeClientState:kD(e),scriptTags:AD(ZR.SCRIPT,[cD,iD],e),styleTags:AD(ZR.STYLE,[tD],e),title:SD(e),titleAttributes:ID(JR,e)}}),(function(e){jD&&OD(jD),e.defer?jD=DD((function(){MD(e,(function(){jD=null}))})):(MD(e),jD=null)}),HD)((function(){return null})));WD.renderStatic=WD.rewind;function KD(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=KD(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const GD=function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=KD(e))&&(r&&(r+=" "),r+=t);return r};!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}(':root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);
2-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}
2.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}
2}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n');var QD=e=>"number"==typeof e&&!isNaN(e),YD=e=>"string"==typeof e,XD=e=>"function"==typeof e,JD=e=>YD(e)||XD(e)?e:null,ZD=(e,t)=>!1===e||QD(e)&&e>0?e:t,eO=e=>(0,t.isValidElement)(e)||YD(e)||XD(e)||QD(e);function tO(e){let{enter:n,exit:r,appendPosition:i=!1,collapse:s=!0,collapseDuration:o=300}=e;return function(e){let{children:a,position:l,preventExitTransition:c,done:u,nodeRef:h,isIn:d,playToast:f}=e,p=i?`${n}--${l}`:n,m=i?`${r}--${l}`:r,g=(0,t.useRef)(0);return(0,t.useLayoutEffect)((()=>{let e=h.current,t=p.split(" "),n=r=>{r.target===h.current&&(f(),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===g.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,t.useEffect)((()=>{let e=h.current,t=()=>{e.removeEventListener("animationend",t),s?function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,{scrollHeight:r,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=r+"px",i.transition=`all ${n}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,u,o):u()};d||(c?t():(g.current=1,e.className+=` ${m}`,e.addEventListener("animationend",t)))}),[d]),t.createElement(t.Fragment,null,a)}}function nO(e,t){return{content:rO(e.content,e.props),containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,reason:e.removalReason,status:t}}function rO(e,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,t.isValidElement)(e)&&!YD(e.type)?(0,t.cloneElement)(e,{closeToast:n.closeToast,toastProps:n,data:n.data,isPaused:r}):XD(e)?e({closeToast:n.closeToast,toastProps:n,data:n.data,isPaused:r}):e}function iO(e){let{delay:n,isRunning:r,closeToast:i,type:s="default",hide:o,className:a,controlledProgress:l,progress:c,rtl:u,isIn:h,theme:d}=e,f=o||l&&0===c,p={animationDuration:`${n}ms`,animationPlayState:r?"running":"paused"};l&&(p.transform=`scaleX(${c})`);let m=GD("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${s}`,{"Toastify__progress-bar--rtl":u}),g=XD(a)?a({rtl:u,type:s,defaultClassName:m}):GD(m,a),y={[l&&c>=1?"onTransitionEnd":"onAnimationEnd"]:l&&c<1?null:()=>{h&&i()}};return t.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":f},t.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${d} Toastify__progress-bar--${s}`}),t.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:p,...y}))}var sO=1,oO=()=>""+sO++;function aO(e,t,n){let r=1,i=0,s=[],o=[],a=t,l=new Map,c=new Set,u=()=>
2{o=Array.from(l.values()),c.forEach((e=>e()))},h=e=>{var t,n;null==(n=null==(t=e.props)?void 0:t.onClose)||n.call(t,e.removalReason),e.isActive=!1},d=e=>{if(null==e)l.forEach(h);else{let t=l.get(e);t&&h(t)}u()},f=e=>{var t,r;let{toastId:i,updateId:s}=e.props,o=null==s;e.staleId&&l.delete(e.staleId),e.isActive=!0,l.set(i,e),u(),n(nO(e,o?"added":"updated")),o&&(null==(r=(t=e.props).onOpen)||r.call(t))};return{id:e,props:a,observe:e=>(c.add(e),()=>c.delete(e)),toggle:(e,t)=>{l.forEach((n=>{var r;(null==t||t===n.props.toastId)&&(null==(r=n.toggle)||r.call(n,e))}))},removeToast:d,toasts:l,clearQueue:()=>{i-=s.length,s=[]},buildToast:(t,o)=>{if((t=>{let{containerId:n,toastId:r,updateId:i}=t,s=n?n!==e:1!==e,o=l.has(r)&&null==i;return s||o})(o))return;let{toastId:c,updateId:h,data:p,staleId:m,delay:g}=o,y=null==h;y&&i++;let v={...a,style:a.toastStyle,key:r++,...Object.fromEntries(Object.entries(o).filter((e=>{let[t,n]=e;return null!=n}))),toastId:c,updateId:h,data:p,isIn:!1,className:JD(o.className||a.toastClassName),progressClassName:JD(o.progressClassName||a.progressClassName),autoClose:!o.isLoading&&ZD(o.autoClose,a.autoClose),closeToast(e){l.get(c).removalReason=e,d(c)},deleteToast(){let e=l.get(c);if(null!=e){if(n(nO(e,"removed")),l.delete(c),i--,i<0&&(i=0),s.length>0)return void f(s.shift());u()}}};v.closeButton=a.closeButton,!1===o.closeButton||eO(o.closeButton)?v.closeButton=o.closeButton:!0===o.closeButton&&(v.closeButton=!eO(a.closeButton)||a.closeButton);let b={content:t,props:v,staleId:m};a.limit&&a.limit>0&&i>a.limit&&y?s.push(b):QD(g)?setTimeout((()=>{f(b)}),g):f(b)},setProps(e){a=e},setToggle:(e,t)=>{let n=l.get(e);n&&(n.toggle=t)},isToastActive:e=>{var t;return null==(t=l.get(e))?void 0:t.isActive},getSnapshot:()=>o}}var lO=new Map,cO=[],uO=new Set,hO=e=>uO.forEach((t=>t(e))),dO=()=>lO.size>0;function fO(e,t){var n;if(t)return!(null==(n=lO.get(t))||!n.isToastActive(e));let r=!1;return lO.forEach((t=>{t.isToastActive(e)&&(r=!0)})),r}function pO(e){if(dO()){if(null==e||(e=>YD(e)||QD(e))(e))lO.forEach((t=>{t.removeToast(e)}));else if(e&&("containerId"in e||"id"in e)){let t=lO.get(e.containerId);t?t.removeToast(e.id):lO.forEach((t=>{t.removeToast(e.id)}))}}else cO=cO.filter((t=>null!=e&&t.options.toastId!==e))}function mO(e,t){eO(e)&&(dO()||cO.push({content:e,options:t}),lO.forEach((n=>{n.buildToast(e,t)})))}function gO(e,t){lO.forEach((n=>{(null==t||null==t||!t.containerId||(null==t?void 0:t.containerId)===n.id)&&n.toggle(e,null==t?void 0:t.id)}))}function yO(e){let t=e.containerId||1;return{subscribe(n){let r=aO(t,e,hO);lO.set(t,r);let i=r.observe(n);return cO.forEach((e=>mO(e.content,e.options))),cO=[],()=>{i(),lO.delete(t)}},setProps(e){var n;null==(n=lO.get(t))||n.setProps(e)},getSnapshot(){var e;return null==(e=lO.get(t))?void 0:e.getSnapshot()}}}function vO(e){return e&&(YD(e.toastId)||QD(e.toastId))?e.toastId:oO()}function bO(e,t){return mO(e,t),t.toastId}function wO(e,t){return{...t,type:t&&t.type||e,toastId:vO(t)}}function _O(e){return(t,n)=>bO(t,wO(e,n))}function TO(e,t){return bO(e,wO("default",t))}function xO(e){let[n,r]=(0,t.useState)(!1),[i,s]=(0,t.useState)(!1),o=(0,t.useRef)(null),a=(0,t.useRef)({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:l,pauseOnHover:c,closeToast:u,onClick:h,closeOnClick:d}=e;function f(){r(!0)}function p(){r(!1)}function m(t){let r=o.current;if(a.canDrag&&r){a.didMove=!0,n&&p(),"x"===e.draggableDirection?a.delta=t.clientX-a.start:a.delta=t.clientY-a.start,a.start!==t.clientX&&(a.canCloseOnClick=!1);let i="x"===e.draggableDirection?`${a.delta}px, var(--y)`:`0, calc(${a.delta}px + var(--y))`;r.style.transform=`translate3d(${i},0)`,r.style.opacity=""+(1-Math.abs(a.delta/a.removalDistance))}}function g(){document.removeEventListener("pointermove",m),document.removeEventListener("pointerup",g);let t=o.current;if(a.canDrag&&a.didMove&&t){if(a.canDrag=!1,Math.abs(a.delta)>a.removalDistance)return s(!0),e.closeToast(!0),void e.collapseAll();t.style.transition="transform 0.2s, opacity 0.2s",t.style.removeProperty("transform"),t.style.removeProperty("opacity")}}(function(e){var t;null==(t=lO.get(e.containerId||1))||t.setToggle(e.id,e.fn)})({id:e.toastId,containerId:e.containerId,fn:r}),(0,t.useEffect)((()=>
2{if(e.pauseOnFocusLoss)return document.hasFocus()||p(),window.addEventListener("focus",f),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",p)}}),[e.pauseOnFocusLoss]);let y={onPointerDown:function(t){if(!0===e.draggable||e.draggable===t.pointerType){a.didMove=!1,document.addEventListener("pointermove",m),document.addEventListener("pointerup",g);let n=o.current;a.canCloseOnClick=!0,a.canDrag=!0,n.style.transition="none","x"===e.draggableDirection?(a.start=t.clientX,a.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(a.start=t.clientY,a.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent)/100)}},onPointerUp:function(t){let{top:n,bottom:r,left:i,right:s}=o.current.getBoundingClientRect();"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&t.clientX>=i&&t.clientX<=s&&t.clientY>=n&&t.clientY<=r?p():f()}};return l&&c&&(y.onMouseEnter=p,e.stacked||(y.onMouseLeave=f)),d&&(y.onClick=e=>{h&&h(e),a.canCloseOnClick&&u(!0)}),{playToast:f,pauseToast:p,isRunning:n,preventExitTransition:i,toastRef:o,eventHandlers:y}}TO.loading=(e,t)=>
2bO(e,wO("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),TO.promise=function(e,t,n){let r,{pending:i,error:s,success:o}=t;i&&(r=YD(i)?TO.loading(i,n):TO.loading(i.render,{...n,...i}));let a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},l=(e,t,i)=>{if(null==t)return void TO.dismiss(r);let s={type:e,...a,...n,data:i},o=YD(t)?{render:t}:t;return r?TO.update(r,{...s,...o}):TO(o.render,{...s,...o}),i},c=XD(e)?e():e;return c.then((e=>l("success",o,e))).catch((e=>l("error",s,e))),c},TO.success=_O("success"),TO.info=_O("info"),TO.error=_O("error"),TO.warning=_O("warning"),TO.warn=TO.warning,TO.dark=(e,t)=>bO(e,wO("default",{theme:"dark",...t})),TO.dismiss=function(e){pO(e)},TO.clearWaitingQueue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};lO.forEach((t=>{t.props.limit&&(!e.containerId||t.id===e.containerId)&&t.clearQueue()}))},TO.isActive=fO,TO.update=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=((e,t)=>{let{containerId:n}=t;var r;return null==(r=lO.get(n||1))?void 0:r.toasts.get(e)})(e,t);if(n){let{props:r,content:i}=n,s={delay:100,...r,...t,toastId:t.toastId||e,updateId:oO()};s.toastId!==e&&(s.staleId=e);let o=s.render||i;delete s.render,bO(o,s)}},TO.done=e=>{TO.update(e,{progress:1})},TO.onChange=function(e){return uO.add(e),()=>{uO.delete(e)}},TO.play=e=>gO(!0,e),TO.pause=e=>gO(!1,e);var EO="undefined"!=typeof window?t.useLayoutEffect:t.useEffect,SO=e=>{let{theme:n,type:r,isLoading:i,...s}=e;return t.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===n?"currentColor":`var(--toastify-icon-color-${r})`,...s})};var kO={info:function(e){return t.createElement(SO,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return t.createElement(SO,{...e},t.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return t.createElement(SO,{...e},t.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return t.createElement(SO,{...e},t.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return t.createElement("div",{className:"Toastify__spinner"})}};function IO(e){let{theme:n,type:r,isLoading:i,icon:s}=e,o=null,a={theme:n,type:r};return!1===s||(XD(s)?o=s({...a,isLoading:i}):(0,t.isValidElement)(s)?o=(0,t.cloneElement)(s,a):i?o=kO.spinner():(e=>e in kO)(r)&&(o=kO[r](a))),o}var CO=e=>{let{isRunning:n,preventExitTransition:r,toastRef:i,eventHandlers:s,playToast:o}=xO(e),{closeButton:a,children:l,autoClose:c,onClick:u,type:h,hideProgressBar:d,closeToast:f,transition:p,position:m,className:g,style:y,progressClassName:v,updateId:b,role:w,progress:_,rtl:T,toastId:x,deleteToast:E,isIn:S,isLoading:k,closeOnClick:I,theme:C,ariaLabel:A}=e,P=GD("Toastify__toast",`Toastify__toast-theme--${C}`,`Toastify__toast--${h}`,{"Toastify__toast--rtl":T},{"Toastify__toast--close-on-click":I}),N=XD(g)?g({rtl:T,position:m,type:h,defaultClassName:P}):GD(P,g),R=IO(e),D=!!_||!c,O={closeToast:f,type:h,theme:C},L=null;return!1===a||(L=XD(a)?a(O):(0,t.isValidElement)(a)?(0,t.cloneElement)(a,O):function(e){let{closeToast:n,theme:r,ariaLabel:i="close"}=e;return t.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),n(!0)},"aria-label":i},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}(O)),t.createElement(p,{isIn:S,done:E,position:m,preventExitTransition:r,nodeRef:i,playToast:o},t.createElement("div",{id:x,tabIndex:0,onClick:u,"data-in":S,className:N,...s,style:y,ref:i,...S&&{role:w,"aria-label":A}},null!=R&&t.createElement("div",{className:GD("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter"
2:!k})},R),rO(l,e,!n),L,!e.customProgressBar&&t.createElement(iO,{...b&&!D?{key:`p-${b}`}:{},rtl:T,theme:C,delay:c,isRunning:n,isIn:S,closeToast:f,hide:d,type:h,className:v,controlledProgress:D,progress:_||0})))},AO=function(e){return{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:arguments.length>1&&void 0!==arguments[1]&&arguments[1]}},PO=tO(AO("bounce",!0)),NO=(tO(AO("slide",!0)),tO(AO("zoom")),tO(AO("flip")),{position:"top-right",transition:PO,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:e=>e.altKey&&"KeyT"===e.code});function RO(e){let n={...NO,...e},r=e.stacked,[i,s]=(0,t.useState)(!0),o=(0,t.useRef)(null),{getToastToRender:a,isToastActive:l,count:c}=function(e){var n;let{subscribe:r,getSnapshot:i,setProps:s}=(0,t.useRef)(yO(e)).current;s(e);let o=null==(n=(0,t.useSyncExternalStore)(r,i,i))?void 0:n.slice();return{getToastToRender:function(t){if(!o)return[];let n=new Map;return e.newestOnTop&&o.reverse(),o.forEach((e=>{let{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},isToastActive:fO,count:null==o?void 0:o.length}}(n),{className:u,style:h,rtl:d,containerId:f,hotKeys:p}=n;function m(e){let t=GD("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":d});return XD(u)?u({position:e,rtl:d,defaultClassName:t}):GD(t,JD(u))}function g(){r&&(s(!0),TO.play())}return EO((()=>{var e;if(r){let t=o.current.querySelectorAll('[data-in="true"]'),r=12,s=null==(e=n.position)?void 0:e.includes("top"),a=0,l=0;Array.from(t).reverse().forEach(((e,t)=>{let n=e;n.classList.add("Toastify__toast--stacked"),t>0&&(n.dataset.collapsed=`${i}`),n.dataset.pos||(n.dataset.pos=s?"top":"bot");let o=a*(i?.2:1)+(i?0:r*t);n.style.setProperty("--y",`${s?o:-1*o}px`),n.style.setProperty("--g",`${r}`),n.style.setProperty("--s",""+(1-(i?l:0))),a+=n.offsetHeight,l+=.025}))}}),[i,c,r]),(0,t.useEffect)((()=>{function e(e){var t;let n=o.current;p(e)&&(null==(t=n.querySelector('[tabIndex="0"]'))||t.focus(),s(!1),TO.pause()),"Escape"===e.key&&(document.activeElement===n||null!=n&&n.contains(document.activeElement))&&(s(!0),TO.play())}return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[p]),t.createElement("section",{ref:o,className:"Toastify",id:f,onMouseEnter:()=>{r&&(s(!1),TO.pause())},onMouseLeave:g,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":n["aria-label"]},a(((e,n)=>{let i=n.length?{...h}:{...h,pointerEvents:"none"};return t.createElement("div",{tabIndex:-1,className:m(e),"data-stacked":r,style:i,key:`c-${e}`},n.map((e=>{let{content:n,props:i}=e;return t.createElement(CO,{...i,stacked:r,collapseAll:g,isIn:l(i.toastId,i.containerId),key:`t-${i.key}`},n)})))})))}const DO=AR.firestore().collection("Contact_Form"),OO=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"});const e=window.location.href.substring(window.location.href.lastIndexOf("#")+1),t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth"})}),[]);const[e,n]=(0,t.useState)(0),r=[{icon:(0,ot.jsxs)("svg",{id:"Layer_1",height:"512",viewBox:"0 0 64 64",width:"512",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",children:[(0,ot.jsx)("circle",{cx:"39.569",cy:"35.594",r:"2.977"}),(0,ot.jsx)("path",{d:"m52.1 36.593v-2h3.339a15.921 15.921 0 0 0 -14.87-14.873v3.338h-2v-3.338a15.923 15.923 0 0 0 -14.869 14.873h3.338v2h-3.338a15.923 15.923 0 0 0 14.869 14.875v-3.338h2v3.338a15.922 15.922 0 0 0 14.874-14.875zm-3.97 6.637-5.269-3.93a5.016 5.016 0 1 1 1.2-1.6l5.263 3.928z"}),(0,ot.jsx)("path",{d:"m39.569 13.424a22.352 22.352 0 0 0 -2.769.176h-30.175a1 1 0 0 0 -.855 1.52l3.713 6.135a1 1 0 0 0 .856.482h7.572v-2h-7.011l-2.5-4.137h21.576a22.255 22.255 0 0 0 -10.821 11.335h-16.941v2h16.2a22.2 22.2 0 0 0 11.562 26.651h-17.214l-2.5-4.135h8.885v-2h-10.664a1 1 0 0 0 -.855 1.517l3.715 6.132a1 1 0 0 0 .855.483h24.602a22.168 22.168 0 1 0 2.766-44.162zm0 40.094a17.924 17.924 0 1 1 17.925-17.925 17.945 17.945 0 0 1 -17.925 17.925z"}),(0,ot.jsx)("path",{d:"m0 34.593h11.5v2h-11.5z"}),(0,ot.jsx)("path",{d:"m2.214 42.253h11.857v2h-11.857z"}),(0,ot.jsx)("path",{d:"m36.6 11.614a23.493 23.493 0 0 1 5.948 0v-2.78h4.452v-4.6h-14.86v4.6h4.46z"}),(0,ot.jsx)("path",{d:"m51.872 14.8q.863.513 1.676 1.094l1.009-1.461 1.689 1.167 2.068-3-5.025-3.47-2.069 3 1.69 1.17z"})]}),title:"Speed & Accuracy",desc:"We prioritize delivering rapid, reliable results, crucial for your operations and compliance."},{icon:(0,ot.jsx)("svg",{id:"Layer_1","enable-background":"new 0 0 512 512",height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("path",{"clip-rule":"evenodd",d:"m213.643 16c-109.155 0-197.643 88.488-197.643 197.643s88.488 197.643 197.643 197.643c23.496 0 46.03-4.109 66.934-11.633-2.63-4.111-3.837-8.69-4.533-13.632-.203-1.442-.381-4.028-.761-5.671-1.261-1.166-3.413-2.605-4.594-3.531-4.77-3.74-8.692-7.894-10.801-13.71-2.113-5.829-1.719-11.5-.444-17.428.304-1.412 1.038-3.951 1.225-5.602-.636-1.262-1.876-2.986-2.526-3.999-2.663-4.15-4.841-8.228-5.71-13.16-.502-2.845-.471-5.601-.022-8.273h-145.65c0-59.029 47.853-106.882 106.882-106.882 26.766 0 51.229 9.843 69.978 26.102 3.789-3.931 8.467-6.164 13.681-7.866 1.396-.456 3.908-1.08 5.469-1.742.925-1.438 1.968-3.807 2.668-5.121 2.847-5.349 6.238-9.938 11.597-13.033 5.361-3.096 11.023-3.705 17.072-3.496 1.462.05 4.032.322 5.727.235 1.369-1.047 3.146-2.903 4.268-3.908 4.508-4.039 9.281-7.169 15.361-8.241s11.636.236 17.253 2.49c1.398.561 3.703 1.697 5.348 2.213 1.623-.497 3.945-1.632 5.302-2.18 5.613-2.265 11.
2141-3.629 17.238-2.553 1.972.348 3.805.914 5.534 1.657-10.635-99.127-94.545-176.322-196.496-176.322zm143.736 430.228-23.172 49.772-19.954-34.338-39.123 6.836 26.061-55.975c.587.187 1.145.382 1.618.581.923 1.427 1.97 3.792 2.663 5.093 2.845 5.342 6.22 9.928 11.574 13.022 5.355 3.095 11.013 3.724 17.062 3.521 1.467-.049 4.041-.322 5.735-.234 1.361 1.035 3.151 2.904 4.258 3.9 3.98 3.581 8.157 6.458 13.278 7.822zm111.191-35.499 20.364 47.281-38.907-7.968-20.941 33.745-17.085-39.667c2.854-1.487 5.447-3.454 7.957-5.703 1.122-1.005 2.9-2.862 4.269-3.909 1.695-.088 4.265.184 5.727.235 6.049.209 11.711-.4 17.072-3.497 5.357-3.094 8.75-7.683 11.596-13.032.7-1.315 1.742-3.682 2.667-5.121 1.561-.662 4.074-1.287 5.469-1.742.613-.199 1.217-.407 1.812-.622zm27.304-93.519c1.24 7.034-7.095 13.171-8.313 20.074-1.148 6.505 3.71 14.513 1.571 20.375-2.151 5.896-11.059 8.933-14.322 14.58-3.272 5.661-1.461 14.893-5.48 19.689-4.009 4.782-13.412 4.612-18.431 8.831-4.978 4.185-6.41 13.477-11.874 16.633-5.353 3.092-14.177-.269-20.341 1.966-6.054 2.196-10.582 10.436-16.864 11.543-6.282 1.108-13.355-5.087-19.795-5.079-6.557.007-13.699 6.184-19.787 5.109-6.213-1.097-10.738-9.337-16.848-11.569-6.156-2.248-14.935 1.128-20.338-1.995-5.421-3.133-6.875-12.426-11.885-16.627-4.999-4.191-14.403-3.994-18.444-8.802-4.012-4.773-2.192-13.972-5.492-19.684-3.24-5.608-12.14-8.64-14.3-14.597-2.11-5.822 2.762-13.794 1.601-20.379-1.068-6.057-7.344-11.475-8.342-17.136-1.241-7.039 7.093-13.168 8.312-20.074 1.147-6.498-3.709-14.517-1.571-20.375 2.153-5.899 11.061-8.937 14.323-14.58 3.271-5.658 1.46-14.892 5.481-19.689 4.008-4.782 13.413-4.613 18.43-8.831 4.978-4.186 6.414-13.48 11.874-16.633 5.354-3.092 14.177.268 20.341-1.966 6.057-2.197 10.581-10.435 16.864-11.543 6.284-1.108 13.354 5.087 19.795 5.079 6.555-.007 13.699-6.183 19.787-5.109 6.212 1.096 10.742 9.34 16.848 11.569 6.158 2.248 14.937-1.128 20.339 1.995 5.42 3.133 6.875 12.429 11.885 16.627 4.997 4.189 14.405 3.995 18.444 8.802 4.014 4.776 2.191 13.967 5.492 19.684 3.236 5.604 12.138 8.639 14.3 14.598 2.112 5.82-2.763 13.794-1.602 20.379 1.067 6.056 7.344 11.474 8.342 17.135zm-113.842-84.201c23.655 0 45.072 9.589 60.575 25.092s25.092 36.92 25.092 60.575c0 23.656-9.589 45.072-25.092 60.575s-36.919 25.092-60.575 25.092c-23.655 0-45.072-9.589-60.575-25.092-15.502-15.503-25.092-36.92-25.092-60.575s9.589-45.072 25.092-60.575 36.92-25.092 60.575-25.092zm49.263 36.404c12.607 12.607 20.404 30.024 20.404 49.262 0 19.239-7.798 36.656-20.404 49.263-12.607 12.607-30.024 20.404-49.262 20.404s-36.656-7.797-49.262-20.404c-12.607-12.607-20.404-30.024-20.404-49.263 0-19.238 7.798-36.656 20.404-49.262 12.606-12.607 30.024-20.404 49.262-20.404s36.655 7.798 49.262 20.404zm-49.263-2.196 13.174 32.239 34.733 2.567-26.59 22.492 8.292 33.826-29.608-18.338-29.608 18.338 8.292-33.826-26.59-22.492 34.732-2.567zm-168.388-177.53c29.845 0 54.039 24.194 54.039 54.039s-24.194 54.039-54.039 54.039-54.039-24.194-54.039-54.039 24.194-54.039 54.039-54.039z","fill-rule":"evenodd"})}),title:"Expert Interpretation",desc:"Our team of highly trained scientists doesn't just run tests\u2014they interpret results, providing clear, concise reports that empower you to make informed decisions, super-fast."},{icon:(0,ot.jsx)("svg",{id:"Capa_1","enable-background":"new 0 0 512.002 512.002",height:"512",viewBox:"0 0 512.002 512.002",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("g",{children:(0,ot.jsx)("g",{id:"Page-1_26_",children:(0,ot.jsxs)("g",{id:"_x30_27---Science",children:[(0,ot.jsx)("path",{id:"Shape_144_",d:"m322.649 370.56c-49.901 29.414-111.54 30.627-162.56 3.2-46.171-25.234-63.177-32-82.56-33.006-2.975-.016-5.772 1.416-7.497 3.84l-21.303 29.44c-14.082 19.479-16.05 45.211-5.092 66.604 10.957 21.394 32.987 34.834 57.024 34.79h182.674c22.602.2 43.562-11.782 54.857-31.36v-65.554c-1.032-1.768-2.161-3.477-3.383-5.12-2.676-3.996-7.992-5.235-12.16-2.834z"}),(0,ot.jsx)("path",{id:"Shape_143_",d:"m127.907 36.571h128c10.099 0 18.286-8.187 18.286-18.286s-8.187-18.285-18.286-18.285h-128c-10.099 0-18.286 8.187-18.286 18.286s8.187 18.285 18.286 18.285z"}
2),(0,ot.jsx)("circle",{id:"Oval_13_",cx:"429.621",cy:"210.286",r:"18.286"}),(0,ot.jsx)("circle",{id:"Oval_12_",cx:"228.478",cy:"310.857",r:"18.286"}),(0,ot.jsx)("circle",{id:"Oval_11_",cx:"182.764",cy:"228.571",r:"9.143"}),(0,ot.jsx)("path",{id:"Shape_142_",d:"m283.335 493.714h-182.674c-30.909.015-59.219-17.293-73.296-44.81s-11.546-60.602 6.553-85.658l21.303-29.44c5.358-7.474 14.127-11.738 23.314-11.337 24.229 1.28 44.709 10.331 90.331 35.2 45.483 24.376 100.394 23.232 144.823-3.017 7.519-4.232 16.584-4.705 24.503-1.28v-36.297l-74.057-98.011c-11.234-15.646-17.307-34.407-17.371-53.669v-110.538h-109.715v110.537c-.048 19.193-6.089 37.893-17.28 53.486l-100.754 133.76c-22.026 30.642-25.057 71.031-7.85 104.617s51.759 54.72 89.496 54.743h182.674c23.952.145 47.145-8.398 65.28-24.046-3.159-5.696-5.645-11.741-7.406-18.011-15.316 15.375-36.173 23.942-57.874 23.771zm-18.286-182.857c0 20.198-16.374 36.571-36.571 36.571s-36.571-16.374-36.571-36.571c0-20.198 16.374-36.571 36.571-36.571s36.571 16.373 36.571 36.571zm-54.857-155.428c5.049 0 9.143 4.093 9.143 9.143 0 5.049-4.093 9.143-9.143 9.143-5.049 0-9.143-4.093-9.143-9.143s4.094-9.143 9.143-9.143zm-27.428 45.714c15.148 0 27.429 12.28 27.429 27.429 0 15.148-12.28 27.429-27.429 27.429-15.148 0-27.429-12.28-27.429-27.429.045-15.13 12.299-27.384 27.429-27.429zm-27.429 73.143c5.049 0 9.143 4.093 9.143 9.143 0 5.049-4.093 9.143-9.143 9.143-5.049 0-9.143-4.093-9.143-9.143s4.094-9.143 9.143-9.143z"}),(0,ot.jsx)("path",{id:"Shape_141_",d:"m356.478 448c0 35.346 28.654 64 64 64s64-28.654 64-64v-393.143h-128zm100.571-310.857c5.049 0 9.143 4.093 9.143 9.143s-4.093 9.143-9.143 9.143c-5.049 0-9.143-4.093-9.143-9.143s4.094-9.143 9.143-9.143zm9.143 73.143c0 20.198-16.374 36.571-36.571 36.571-20.198 0-36.571-16.374-36.571-36.571s16.374-36.571 36.571-36.571c20.198-.001 36.571 16.373 36.571 36.571zm-64-128c15.148 0 27.429 12.28 27.429 27.429s-12.28 27.429-27.429 27.429c-15.148 0-27.429-12.28-27.429-27.429.046-15.13 12.3-27.384 27.429-27.429zm-27.428 192c0-5.049 4.093-9.143 9.143-9.143h73.143c5.049 0 9.143 4.093 9.143 9.143v173.714c0 25.247-20.467 45.714-45.714 45.714s-45.715-20.467-45.715-45.714z"}),(0,ot.jsx)("path",{id:"Shape_140_",d:"m420.478 475.429c15.13-.045 27.383-12.299 27.429-27.429v-164.571h-54.857v164.571c.045 15.13 12.298 27.383 27.428 27.429z"}),(0,ot.jsx)("path",{id:"Shape_139_",d:"m493.621 0h-146.286c-10.099 0-18.286 8.187-18.286 18.286s8.187 18.286 18.286 18.286h146.286c10.099 0 18.286-8.187 18.286-18.286s-8.187-18.286-18.286-18.286z"}),(0,ot.jsx)("circle",{id:"Oval_10_",cx:"402.192",cy:"109.714",r:"9.143"})]})})})}),title:"State-of-the-Art Technology",desc:"Our laboratory is equipped with the latest scientific instruments, ensuring precise and comprehensive analysis."},{icon:(0,ot.jsx)("svg",{id:"Layer_1","enable-background":"new 0 0 512 512",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("path",{"clip-rule":"evenodd",d:"m288.42 282.968v-76.126c0-20.673 16.913-37.586 37.586-37.586s37.586 16.913 37.586 37.586v83.837c5.386 23.555 35.586 57.241 40.254 130.226h-19.999-91.537-135.825c-3.851-43.225-15.511-93.092-46.936-141.632-5.271-8.142-4.138-18.592 2.756-25.415 10.675-10.561 23.07-23.12 45.417-39.002v43.171c0 13.748 11.193 24.941 24.941 24.941h85.756zm135.636-53.359v53.359h-34.797l5.529 5.529c12.121 12.121 31.957 12.121 44.078 0 12.122-12.122 12.122-31.957 0-44.078zm-250.333 28.419c0 4.917 4.023 8.941 8.941 8.941h89.757v-60.127c0-29.503 24.082-53.585 53.586-53.585s53.586 24.082 53.586 53.585v60.127h28.465v-80.997c44.913 22.583 94.942 1.578 94.942-36.171 0-37.748-50.029-58.753-94.944-36.17v-80.996h-80.997c22.583 44.915 1.578 94.944-36.17 94.944s-58.753-50.029-36.17-94.944h-80.997v16.241c14.582 17.646 23.345 40.277 23.345 64.953s-8.763 47.307-23.345 64.952v79.247zm-78.689-58.165c47.515 0 86.034-38.519 86.034-86.034s-38.519-86.034-86.034-86.034c-47.515-.001-86.034 38.518-86.034 86.034 0 47.515 38.519 86.034 86.034 86.034zm34.719-119.256c3.106-3.124 8.158-3.138 11.281-.031s3.138 8.158.031 11.281l-54.681 55.194c-3.086 3.103-8.09 3.137-11.218.093l-26.072-25.413c-3.158-3.072-3.228-8.123-.156-11.281s8.123-3.228 11.281-.156l20.411 19.897zm9.645 356.298h281.218c1.695 0 3.082 1.387 3.082 3.082v41.136c0 1.695-1.387 3.082-3.082 3.082h-281.218c-1.695 0-3.082-1.387-3.082-3.082v-41.136c0-1.695 1.387-3.082 3.082-3.082z","fill-rule":"evenodd"})}),title:"Tailored Solutions",desc:"We offer customized testing packages to meet your specific needs, whether it is rout
2ine checks or specialized analysis."},{icon:(0,ot.jsx)("svg",{id:"Layer_1",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",children:(0,ot.jsx)("path",{d:"m376.7 407.106c6.136 6.416 6.459 16.664.087 23.036a16.313 16.313 0 0 1 -22.888 0c-16.62-16.62-32.952-33.628-49.386-50.468a7.479 7.479 0 0 0 -10.723 10.43l45.024 46.136a16.2 16.2 0 1 1 -22.83 22.977c-17.327-17.33-34.349-35.01-51.482-52.564a7.479 7.479 0 1 0 -10.722 10.429l45.02 46.136a16.194 16.194 0 1 1 -22.829 22.975c-18.816-18.816-37.3-37.921-55.9-56.98a7.479 7.479 0 1 0 -10.722 10.43l45.024 46.135a11.929 11.929 0 0 1 .059 16.805l.014.014-.094.093a11.83 11.83 0 0 1 -16.491.071c-28.142-28.471-56.253-57.229-83.988-86.1-10.608-11.046-28.268-29.425-51.771-41.3l44.086-127.3a151.5 151.5 0 0 0 21.732 3.945 156.348 156.348 0 0 0 37.3-.72l-18.927 17.8a40.9 40.9 0 0 0 -13.18 30.444v78.847a7.5 7.5 0 0 0 7.5 7.5c17.6 0 35.366-5.872 48.328-16.365 12.143-9.829 20.124-23.631 20.124-40.475 0-12.639 10.367-21.9 17.581-27.785l85.76 85.707a42.189 42.189 0 0 0 13.9 9.287zm-81.853-335.806a7.483 7.483 0 0 0 10.225-2.725l19.99-34.625a7.482 7.482 0 0 0 -12.949-7.5l-19.99 34.625a7.482 7.482 0 0 0 2.724 10.225zm84.438 78.84c24.61 0 44.56-19.705 44.56-44.013s-19.95-44.013-44.56-44.013-44.56 19.705-44.56 44.013 19.95 44.01 44.56 44.01zm-66.4 81.488c-16.467-5.211-29.687-10.136-47.444-5.817a60.91 60.91 0 0 0 -27.356 15.114l-41.54 39.059a25.492 25.492 0 0 0 -8.433 19.546v70.92c11.705-1.319 22.923-5.685 31.394-12.542 8.785-7.111 14.558-16.972 14.558-28.874 0-20.72 15.527-33.253 24.791-40.73.271-.219 3.3-2.735 3.3-2.732a7.478 7.478 0 0 1 10.245.284l90.551 90.494a26.168 26.168 0 0 0 29.132 5.858c6.187-2.525 11.87-5.261 17.4-8.017l-45.4-131.11c-18.683-1.166-34.714-6.238-51.197-11.456zm-17.5-48.765a59.939 59.939 0 0 1 -78.77 0 63.149 63.149 0 0 0 -34.595 54.967c13.476.1 27.386-1.817 43.263-5.406 11.1-10.44 21.569-17.477 36.644-21.144 21.027-5.115 35.987-.116 55.47 6.051 3.262 1.033 6.5 2.059 9.757 3.045a63.494 63.494 0 0 0 -31.769-37.516zm-88.457-114.32a7.468 7.468 0 1 0 12.949-7.443l-19.99-34.625a7.468 7.468 0 0 0 -12.949 7.442zm-192.086 133.639v187.977h66.265l60.181-173.778q-63.224-26.974-126.446-14.199zm355.87 14.2 60.18 173.778h66.266v-187.978q-63.223-12.775-126.446 14.199zm8.573-51.244a59.733 59.733 0 0 1 -39.385-14.758 63.663 63.663 0 0 0 -26.778 25.861 78.222 78.222 0 0 1 3
20.566 48.582 138.649 138.649 0 0 0 14.958 2.554l-6.684-19.3 12.864-5.489c27.335-11.663 55.367-18.335 83.944-19.363a63.575 63.575 0 0 0 -30.1-32.842 59.733 59.733 0 0 1 -39.385 14.754zm-246.57-15c24.61 0 44.559-19.705 44.559-44.013s-19.949-44.013-44.559-44.013-44.56 19.705-44.56 44.013 19.95 44.012 44.56 44.012zm123.285-89.23a7.5 7.5 0 0 0 7.5-7.5v-39.981a7.5 7.5 0 0 0 -15 0v39.981a7.5 7.5 0 0 0 7.5 7.5zm-95.961 147.166-8.939 25.794a136.667 136.667 0 0 0 15.935 2.978 77.976 77.976 0 0 1 31.838-60.6 63.659 63.659 0 0 0 -26.773-25.866 59.935 59.935 0 0 1 -78.769 0 63.577 63.577 0 0 0 -30.1 32.842c28.577 1.028 56.609 7.7 83.945 19.363zm95.961-25.458c24.61 0 44.56-19.705 44.56-44.013s-19.95-44.013-44.56-44.013-44.56 19.71-44.56 44.01 19.95 44.016 44.56 44.016z"})}),title:"Trusted Partnerships",desc:"We're committed to building lasting relationships with our clients, based on exceptional service, uncompromising quality, and unwavering\xa0integrity."}],i=[{name:"Analysis of Water, Air, Effluent, Noise, Luminosity, Chemicals, Food, Oil",image:Oc},{name:"Pilot Plant Studies",image:Lc,desc:" Lorem ipsum dolor sit, amet consectetur adipisicing elit. Numquam officia tempora porro neque repellat ..."},{name:"Treatability Studies",image:jc},{name:"Lab Steps and Accreditations",image:Mc},{name:"Corrosion Coupon Studies",image:Fc},{name:"Environmental Studies",image:Vc}],[s,o]=(0,t.useState)(0),[a,l]=(0,t.useState)({}),c=["25 years of Analytical Excellence","100+ Turnkey Lab Setups","1000+ Environmental Audits","Analyzed 2 Million plus parameters and Counting"],[u,h]=(0,t.useState)(0);(0,t.useEffect)((()=>{const e=setInterval((()=>{h((e=>(e+1)%c.length))}),3e3);return()=>clearInterval(e)}),[]);const d=(0,t.useRef)(),[f,p]=(0,t.useState)({Name:"",Email:"",Mobile:"",Message:""});let m,g;const y=e=>{m=e.target.name,g=e.target.value,p({...f,[m]:g})};return(0,ot.jsx)("div",{children:(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Quality Lab | Trusted Testing & Certification Services"}),(0,ot.jsx)("meta",{name:"description",content:"Quality Lab is a certified testing laboratory providing accurate, reliable services in water, food, air, soil, and chemical testing for over 25 years."}),(0,ot.jsx)("meta",{name:"keywords",content:"Quality Lab, testing lab, water testing, food analysis, life sciences, environmental testing, GSS Lifesciences"}),(0,ot.jsx)("meta",{name:"author",content:"GSS Lifesciences"}),(0,ot.jsx)("meta",{property:"og:title",content:"Quality Lab \u2013 Trusted Laboratory Services"}),(0,ot.jsx)("meta",{property:"og:description",content:"Accurate and certified lab testing services in water, food, air, and environment. Trusted by industries for 25+ years."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/"}),(0,ot.jsx)("meta",{property:"og:type",content:"website"})]}),(0,ot.jsxs)("div",{className:"slider",children:[(0,ot.jsx)("img",{src:Ec,alt:"slider"}),(0,ot.jsx)("div",{className:"slider-card",children:(0,ot.jsx)("h4",{className:"slider-heading",children:c[u]},u)})]}),(0,ot.jsx)("section",{className:"about",children:(0,ot.jsx)("div",{className:"container",children:(0,ot.jsx)(eu,{animateIn:"animate__slideInLeft",children:(0,ot.jsxs)(lc.div,{className:"about-content",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1},children:[(0,ot.jsxs)("div",{className:"about-text",children:[(0,ot.jsx)("h1",{className:"about-title",children:"Welcome to Quality Lab"}),(0,ot.jsx)("p",{className:"about-description",children:"We are a 25 years young, Independent, Certified Laboratory, trusted by leading names, five-star hotels, embassies, industrial powerhouses, and water treatment OEMs. We deliver rapid, accurate results across a wide range of testing needs. From ensuring water purity and food safety to monitoring crucial environmental parameters like air, soil, and effluent, we've covered you with tailored testing packages. Our state-of-the-art lab is packed with cutting-edge scientific instruments, enabling detailed analysis of everything from chemicals and metals to building materials, pilot plant studies, treatability studies lab steps and accreditations, corrosion coupon studies, environmental studies,\xa0oils,\xa0and\xa0more."}),(0,ot.jsx)(Je,{to:"/about-us","aria-label":"Learn more about our lab testing and certifications",children:(0,ot.jsxs)(lc.button,{className:"custom-button",whileHover:{scale:1.1,boxSh
2adow:"0px 0px 12px rgba(0, 119, 182, 0.6)"},whileTap:{scale:.95},children:["Learn More",(0,ot.jsx)("span",{className:"glow"})]})})]}),(0,ot.jsxs)(lc.div,{className:"about-image",initial:{scale:.9},animate:{scale:1},transition:{duration:1.5,ease:"easeInOut"},children:[(0,ot.jsx)("img",{src:Sc,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"lab",src:kc,alt:"Laboratory"})]})]})})})}),(0,ot.jsx)("div",{className:"why-choose-us",children:(0,ot.jsxs)(eu,{animateIn:"animate__slideInRight",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Why Choose Quality Lab?"})}),(0,ot.jsx)("div",{className:"features",children:r.map(((e,t)=>(0,ot.jsxs)("div",{className:`feature feature-${t}`,style:{transform:a[t]||"rotateY(0deg) rotateX(0deg)"},onMouseMove:e=>((e,t)=>{const n=e.currentTarget.getBoundingClientRect(),r=(e.clientX-n.left)/n.width-.5,i=(e.clientY-n.top)/n.height-.5;l((e=>({...e,[t]:`rotateY(${40*r}deg) rotateX(${-40*i}deg)`})))})(e,t),onMouseLeave:()=>(e=>{l((t=>({...t,[e]:"rotateY(0deg) rotateX(0deg)"})))})(t),children:[(0,ot.jsx)("div",{className:"icon",children:e.icon}),(0,ot.jsxs)("div",{className:"text",children:[(0,ot.jsx)("h3",{children:e.title}),(0,ot.jsx)("p",{children:e.desc})]})]},t)))})]})}),(0,ot.jsx)("section",{className:"our-services",children:(0,ot.jsxs)(eu,{animateIn:"animate__slideInLeft",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Laboratory Services"})}),(0,ot.jsx)(Dc,{children:null!==e&&(0,ot.jsx)(lc.div,{className:"sub-services",children:i.map(((e,t)=>(0,ot.jsxs)("div",{className:"sub-service-card",children:[(0,ot.jsx)("img",{className:"img",src:e.image,alt:e.name}),(0,ot.jsx)("div",{className:"sub-service-card-text",children:(0,ot.jsx)("h3",{children:e.name})})]},t)))})})]})}),(0,ot.jsx)("div",{className:"contact-container",children:(0,ot.jsx)("div",{className:"form-section",children:(0,ot.jsxs)(lc.div,{className:"glassmorphism-form",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,ot.jsx)("h2",{children:"Contact Us"}),(0,ot.jsx)("p",{children:"Have questions? Get in touch with us."}),(0,ot.jsxs)("form",{action:"POST",ref:d,children:[(0,ot.jsx)("input",{type:"text",placeholder:"Your Name",className:"input-field",name:"Name",value:f.Name,onChange:y,required:!0}),(0,ot.jsx)("input",{type:"email",placeholder:"Your Email",className:"input-field",name:"Email",value:f.Email,onChange:y,required:!0}),(0,ot.jsx)("input",{type:"text",placeholder:"Your Mobile Number",className:"input-field",name:"Mobile",value:f.Mobile,onChange:y,required:!0}),(0,ot.jsx)("textarea",{placeholder:"Your Message",rows:4,className:"input-field",name:"Message",value:f.Message,onChange:y,required:!0}),(0,ot.jsx)(lc.button,{onClick:async e=>{e.preventDefault();const{Name:t,Email:n,Mobile:r,Message:i}=f;if(t&&n&&r&&i){if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(f.Email))return void alert("Please enter a valid email address");if("undefined"!==typeof r){if(!new RegExp(/^[0-9\b]+$/).test(f.Mobile))return void alert("Please enter only number.");if(10!==f.Mobile.length)return void alert("Please enter 10 digit Mobile number.")}try{DO.add({Name:t,Email:n,Mobile:r,Message:i}).then((e=>{alert("Message Sent Successfully")})).catch((e=>{console.error("error:",e)})),zR("service_2u7g9er","template_3ygcxp5",d.current,"UDqjA4S3qCAI1MPCq").then((e=>{console.log(e.text)}),(e=>{console.log(e.text)})),p({Name:"",Email:"",Mobile:"",Message:""})}catch(e){console.error("Error adding document: ",e),alert("Error adding document")}}else alert("Please fill the data")},whileHover:{scale:1.05},className:"submit-btn",children:"Send Message"})]})]})})})]})})},LO=n.p+"static/media/cropped-devinder-scaled-1.854fc05835027590256c.jpg",jO=n.p+"static/media/1308996.5114014b6cafafbe1859.png",MO=n.p+"static/media/lab element one.2cbf8d9c24ab6dc4bc38.png",FO=n.p+"static/media/lab element two.d5184d8c428ab4410cfb.png",VO=n.p+"static/media/lab element three.2c3c89f6659567e7618c.png",UO=n.p+"static/media/bg.72164294d61dde4a0cb7.jpg",zO=n.p+"static/media/mission.e48fc19aaca13f7b4949.jpg",BO=n.p+"static/media/story.3adfa474f3670e9ef93c.jpg",qO="CertificateSlider_slide__NklL+",$O=n.p+"static/media/Certificate Global Water Partnership_page-0001.0ef2c89e6c11aadce0e9.jpg",HO=n.p+"static/media/Certificate TC-7160.pdf -2024-26_page-0001.2419686b439b56ba68e7.jpg",WO=n.p+"static/media/Print _ Udyam Registration Certificate-1_page-0001.22640b06b2192651f178.jpg",KO=n.p+"static/media/Quality Analyst & Labs EMS (1).02f8c20a9d988cff1114.jpg",GO=n.p+"static/media/Quality Analyst & Labs QMS (1).88b67c5df769e629f17e.jpg",QO=n.p+"static/media/CERT_INSCAI_Devinder Khetarpal_090425_page-0001.4eae9b0b221f7c9f1bf5.jpg",YO=n.p+"static/media/2.039881bcc6ce354ea3f8.jpg",XO=n.p+"static/media/3.71121e12e60ac1ea46c7.jpg",JO=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const e=Y();(0,t.useEffect)((()=>
2{if("#certificates"===e.hash){const e=document.getElementById("certificates");if(e){const t=-100,n=e.getBoundingClientRect().top+window.pageYOffset+t;window.scrollTo({top:n,behavior:"smooth"})}}}),[e]);const n=[{icon:(0,ot.jsxs)("svg",{id:"Capa_1","enable-background":"new 0 0 512 512",height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg",children:[(0,ot.jsx)("path",{d:"m325.95 282.75 3.64-9.75h31.41v-31h-27.36l-45.82 45.82-.02-.02c-8.14 8.15-19.4 13.2-31.8 13.2-24.81 0-45-20.19-45-45 0-12.4 5.05-23.66 13.2-31.8l-.02-.02 42.08-42.08c-7.53-1.06-15.1-.97-22.56.26l-10.44 1.74-15.09-27.19-26.23 14.55 15.09 27.2-7 7.94c-5.83 6.61-10.66 14.79-13.98 23.65l-3.65 9.75h-31.4v29h30.78l3.6 10.7c3.31 9.85 4.89 14.26 12.89 23.94l6.73 8.18-15.9 26.49 25.72 15.44 16.04-26.73 10.39 2.11c9.01 1.82 18.11 1.99 27.05.51l10.44-1.74 15.09 27.19 26.23-14.56-15.09-27.19 7-7.94c6.44-7.29 11.01-14.7 13.98-22.65z"}),(0,ot.jsx)("path",{d:"m314.63 133.73 12.9-12.9 1.11-14.09c-22.47-10.93-47.31-16.74-72.64-16.74-91.53 0-166 74.47-166 166s74.47 166 166 166 166-74.47 166-166c0-25.32-5.81-50.16-16.75-72.64l-14.08 1.11-27.53 27.53h27.36v91h-41.23c-2.41 4.75-5.25 9.36-8.54 13.86l19.62 35.35-78.7 43.67-19.66-35.43c-5.49.33-11.01.23-16.51-.31l-20.88 34.77-77.16-46.32 20.69-34.47c-4-5.84-6.35-10.55-8.19-15.12h-39.44v-89h41.14c2.53-5.18 5.45-10.13 8.69-14.74l-19.68-35.47 78.7-43.67 19.66 35.43c5.49-.33 11.01-.23 16.51.31l20.88-34.77z"}),(0,ot.jsx)("path",{d:"m488.01 147.63-31.69 31.69-19.31 1.53c9.81 23.66 14.99 49.19 14.99 75.15 0 108.07-87.92 196-196 196-108.07 0-196-87.93-196-196s87.93-196 196-196c25.97 0 51.5 5.17 75.15 14.98l1.53-19.3 31.69-31.69c-33.7-15.78-70.5-23.99-108.37-23.99-141.572 0-256 114.394-256 256 0 141.572 114.393 256 256 256 141.572 0 256-114.394 256-256 0-37.87-8.21-74.67-23.99-108.37z"}),(0,ot.jsx)("circle",{cx:"256",cy:"256",r:"15"}),(0,ot.jsx)("path",{d:"m511.99 81.22-69.06 69.06-65.16 5.16-81.17 81.17c-4.44-9.26-11.95-16.77-21.21-21.21l81.17-81.18 5.16-65.15 69.06-69.06v81.21z"})]}),title:"Accuracy and Precision",desc:"We are committed to delivering the highest level of accuracy in every test result. Our meticulous attention to detail and adherence to rigorous scientific standards ensure the reliability of our data."},{icon:(0,ot.jsx)("svg",{height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("g",{id:"_22-guarantee","data-name":"22-guarantee",children:(0,ot.jsxs)("g",{id:"glyph",children:[(0,ot.jsx)("path",{d:"m217.788 161.621 38.212-20.089 38.212 20.089a12 12 0 0 0 17.412-12.649l-7.3-42.551 30.916-30.134a12 12 0 0 0 -6.65-20.468l-42.723-6.208-19.106-38.711a12 12 0 0 0 -21.522 0l-19.106 38.711-42.723 6.208a12 12 0 0 0 -6.65 20.468l30.914 30.134-7.3 42.551a12 12 0 0 0 17.412 12.649z"}),(0,ot.jsx)("path",{d:"m503.034 182.392-34.539-25.9 1.755-43.137a12 12 0 0 0 -18.9-10.3l-35.302 24.845-40.483-15a12 12 0 0 0 -15.636 14.787l12.719 41.256-26.774 33.867a12 12 0 0 0 9.232 19.441l43.166.651 23.936 35.93a12 12 0 0 0 9.984 5.347 12.226 12.226 0 0 0 1.548-.1 12 12 0 0 0 9.81-8.02l13.959-40.853 41.567-11.661a12 12 0 0 0 3.958-21.154z"}),(0,ot.jsx)("path",{d:"m156.894 222.252a12 12 0 0 0 9.232-19.441l-26.774-33.867 12.719-41.256a12 12 0 0 0 -15.636-14.788l-40.483 15-35.3-24.845a12 12 0 0 0 -18.9 10.3l1.755 43.137-34.539 25.9a12 12 0 0 0 3.958 21.154l41.567 11.661 13.957 40.853a12 12 0 0 0 21.342 2.773l23.936-35.93z"}),(0,ot.jsx)("path",{d:"m404 348a24.01 24.01 0 0 0 23.244-18 24.01 24.01 0 0 0 -23.244-18h-88v-55c0-14.962 0-44.791-39.252-48.6a8 8 0 0 0 -8.748 7.972v54.364a8 8 0 0 1 -1.187 4.192l-22.813 37.072h1l-33 21.551v154.157a31.835 31.835 0 0 0 16 4.292h160a24.01 24.01 0 0 0 23.244-18 24.01 24.01 0 0 0 -23.244-18h-24v-12h32a24.01 24.01 0 0 0 23.244-18 24.01 24.01 0 0 0 -23.244-18h-32v-12h40a24.01 24.01 0 0 0 23.244-18 24.01 24.01 0 0 0 -23.244-18h-40v-12z"}),(0,ot.jsx)("path",{d:"m188 312h-80a12 12 0 0 0 -12 12v168a12 12 0 0 0 12 12h80a12 12 0 0 0 12-12v-168a12 12 0 0 0 -12-12zm-40 173a12 12 0 1 1 12-12 12 12 0 0 1 -12 12z"})]})})}),title:"Customer Satisfaction",desc:"Our clients are at the heart of everything we do. We strive to exceed their expectations by providing exceptional service, clear communication, and tailored solutions. We aim to build lasting partnerships based on trust and mutual respect. "},{icon:(0,ot.jsx)("svg",{id:"Layer_1",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",children:(0,ot.jsx)("path",{d:"m66.995 255.935h-55.931c0-41.784 10.46-81.125 28.905-115.547l48.479 27.99c-13.702 26.178-21.454 55.962-21.454 87.557zm87.709-159.631-27.989-48.479c-31.892 19.865-58.885 46.856-78.752 78.747l48.48 27.99c14.909-23.427 34.834-43.35 58.262-58.257zm93.3
261-29.272v-55.967c-38.81 1.245-75.34 11.516-107.561 28.783l27.989 48.48c23.961-12.544 50.944-20.103 79.571-21.294zm123.561-27.185c-32.22-17.267-68.75-27.537-107.561-28.783v55.968c28.628 1.192 55.611 8.75 79.571 21.294l27.989-48.48zm44.062 114.714 48.479-27.99c-19.866-31.891-46.859-58.882-78.752-78.746l-27.989 48.479c23.428 14.907 43.353 34.83 58.262 58.257zm29.28 93.374h55.968c-1.245-38.805-11.513-75.33-28.776-107.547l-48.479 27.99c12.54 23.957 20.095 50.935 21.287 79.557zm-21.294 95.571 48.479 27.99c17.267-32.22 27.537-68.751 28.783-107.561h-55.968c-1.192 28.628-8.75 55.611-21.294 79.571zm-66.235 72.052 27.99 48.479c31.891-19.866 58.882-46.86 78.747-78.752l-48.479-27.989c-14.907 23.428-34.83 43.353-58.257 58.262zm-101.374 29.447v55.931c41.784 0 81.125-10.46 115.547-28.905l-27.99-48.479c-26.178 13.703-55.962 21.454-87.557 21.454zm0-29.578c44.042 0 83.915-17.852 112.777-46.715 28.863-28.863 46.715-68.736 46.715-112.777s-17.852-83.915-46.715-112.777c-28.862-28.863-68.736-46.715-112.777-46.715s-83.915 17.852-112.777 46.715c-28.863 28.862-46.715 68.736-46.715 112.777 0 4.418 3.582 8 8 8h20.296c4.418 0 8-3.582 8-8s-3.582-8-8-8h-12.071c1.117-20.328 6.465-39.528 15.179-56.736l10.469 6.044c3.814 2.209 8.697.908 10.906-2.906s.908-8.697-2.906-10.906l-10.472-6.046c5.42-8.27 11.663-15.951 18.626-22.915s14.645-13.206 22.915-18.626l6.046 10.472c2.209 3.814 7.092 5.115 10.906 2.906s5.115-7.092 2.906-10.906l-6.044-10.469c17.208-8.714 36.407-14.062 56.736-15.179v12.071c0 4.418 3.582 8 8 8s8-3.582 8-8v-12.071c20.328 1.117 39.528 6.465 56.736 15.179l-6.044 10.469c-2.209 3.814-.908 8.697 2.906 10.906s8.697.908 10.906-2.906l6.046-10.472c8.27 5.42 15.951 11.663 22.915 18.626 6.963 6.963 13.206 14.645 18.626 22.915l-10.472 6.046c-3.814 2.209-5.115 7.092-2.906 10.906s7.092 5.115 10.906 2.906l10.469-6.044c8.714 17.208 14.062 36.407 15.179 56.736h-12.071c-4.418 0-8 3.582-8 8s3.582 8 8 8h12.071c-1.117 20.328-6.465 39.528-15.179 56.736l-10.469-6.044c-3.814-2.209-8.697-.908-10.906 2.906s-.908 8.697 2.906 10.906l10.472 6.046c-5.42 8.27-11.663 15.951-18.626 22.915-6.963 6.963-14.645 13.206-22.914 18.626l-6.046-10.472c-2.209-3.814-7.092-5.115-10.906-2.906s-5.115 7.092-2.906 10.906l6.044 10.469c-17.208 8.714-36.407 14.062-56.736 15.179v-12.071c0-4.418-3.582-8-8-8s-8 3.582-8 8v20.296c0 4.418 3.582 8 8 8zm-49.039-78.494h95.96v-35.446h-133.468c15.007 8.857 27.84 21.001 37.509 35.446zm3.487 64.278c0 54.927-44.798 99.724-99.724 99.724s-99.725-44.797-99.725-99.724 44.798-99.724 99.724-99.724 99.724 44.798 99.724 99.724zm-49.185-26.274h-44.121l23.506-40.713h-39.235l-41.229 71.155h38.921l-22.319 62.818 84.477-93.261zm140.883-198.908c-3.814-2.209-8.697-.908-10.906 2.906l-32.577 56.426c-.874-.113-1.759-.191-2.663-.191-11.437 0-20.765 9.328-20.765 20.765s9.328 20.765 20.765 20.765 20.765-9.328 20.765-20.765c0-4.727-1.611-9.079-4.288-12.576l32.576-56.423c2.209-3.814.908-8.697-2.906-10.906z","fill-rule":"evenodd"})}),title:"Speed and Efficiency",desc:"We understand the importance of timely results. We are dedicated to delivering our services with speed and efficiency, without compromising accuracy or quality."},{icon:(0,ot.jsx)("svg",{id:"Layer_1","enable-background":"new 0 0 512 512",height:"512",viewBox:"0 0 512 512",width:"512",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("path",{"clip-rule":"evenodd",d:"m393.717 105.533-93.256-93.256v87.106h43.305c3.447 0 6.276 2.705 6.276 6.15s-2.829 6.274-6.276 6.274h-49.579c-3.444 0-6.277-2.829-6.277-6.274v-99.53h-258.359v499.994h364.166v-87.476l10.087 11.934 15.381-12.919-11.319-13.533c39.371-39.615 42.692-103.467 6.153-147.144-6.03-7.257-12.919-13.533-20.302-18.823zm-240.891 134.226c-2.338-2.337-2.338-6.397 0-8.735 2.457-2.461 6.396-2.461 8.858 0l29.896 29.773 69.632-86.86c2.218-2.707 6.033-3.074 8.736-.983 2.708 2.215 3.199 6.151.987 8.856l-73.693 91.903c-.25.248-.497.617-.742.863-2.459 2.459-6.397 2.459-8.859 0zm255.283 203.49 22.885-19.192 47.983 57.211c5.288 6.273 4.429 15.747-1.848 21.036-6.272 5.291-15.745 4.43-21.036-1.845zm-140.005-190.45c-40.846 34.203-46.257 95.595-12.058 136.441 34.206 40.72 95.593 46.137 136.319 11.933 40.845-34.079 46.257-95.473 12.059-136.315-34.207-40.846-95.596-46.261-136.32-12.059zm-56.467 85.259c-57.581-16.116-89.078-45.15-94.367-86.979v-113.312c32.725 7.629 67.053.862 94.367-18.578 27.435 19.44 61.759 26.208 94.482 18.578v82.675c-16.482 3.693-32.234 11.197-46.014 22.761-28.049 23.498-41.338 58.069-38.875 92.027-3.075.985-6.277 1.845-9.593 2.828z","fill-rule":"evenodd"})}
2),title:"Integrity and Transparency",desc:"We uphold the highest ethical standards in all our interactions. We are committed to transparency in our processes and communications, ensuring our clients have complete confidence in our services."},{icon:(0,ot.jsx)("svg",{"clip-rule":"evenodd","fill-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2",viewBox:"0 0 510 510",xmlns:"http://www.w3.org/2000/svg",children:(0,ot.jsx)("path",{d:"m108.501 273.056v-37.855l24.27-9.341c3.114-12.973 8.223-25.308 15.209-36.645l-10.578-23.791 28.022-28.022 23.791 10.578c11.337-6.986 23.672-12.095 36.605-15.169l9.381-24.31h39.638l9.341 24.31c12.933 3.074 25.268 8.183 36.605 15.169l23.791-10.578 20.662 20.662c-2.711-1.469-5.756-2.22-9.036-2.22-5.905 0-10.921 2.398-14.614 6.822-.034.039-15.881 18.708-28.115 33.119-15.033-14.83-35.686-23.981-58.477-23.981-41.595 0-76.032 30.481-82.206 70.338l-4.488-5.285c-.024-.028-.048-.056-.072-.084-3.762-4.369-8.754-6.638-14.458-6.638-5.826 0-10.697 2.269-14.459 6.638-.024.028-.048.056-.072.084zm250.035-100.133 42.197 49.71c.784.922.941 2.158.431 3.257-.51 1.118-1.55 1.785-2.766 1.785h-19.656v139.557c0 3.374-2.766 6.12-6.14 6.12h-32.82c-3.374 0-6.14-2.746-6.14-6.12v-139.557h-19.637c-1.236 0-2.276-.667-2.786-1.785-.51-1.099-.353-2.335.452-3.257l42.196-49.71c.589-.706 1.393-1.079 2.335-1.079.922 0 1.726.373 2.334 1.079zm-202.43 74.29 42.197 49.691c.784.941.961 2.158.451 3.276-.51 1.099-1.569 1.785-2.786 1.785h-19.656v65.267c0 3.374-2.747 6.12-6.121 6.12h-32.839c-3.374 0-6.12-2.746-6.12-6.12v-65.267h-19.657c-1.216 0-2.276-.686-2.786-1.785-.51-1.118-.333-2.335.452-3.276l42.196-49.691c.608-.706 1.393-1.078 2.335-1.078.922 0 1.726.372 2.334 1.078zm101.205-37.135c14.066 16.557 28.131 33.134 42.197 49.691.804.922.961 2.157.451 3.276-.51 1.098-1.55 1.765-2.786 1.765h-19.656v102.422c0 3.374-2.746 6.12-6.121 6.12h-32.819c-3.374 0-6.14-2.746-6.14-6.12v-102.422h-19.657c-1.216 0-2.256-.667-2.766-1.765-.529-1.119-.353-2.354.432-3.276 14.065-16.557 28.131-33.134 42.196-49.691.609-.726 1.413-1.079 2.335-1.079.941 0 1.746.353 2.334 1.079zm178.668-109.077c.569 1.423.454 3.028-.312 4.355s-2.099 2.23-3.615 2.449l-59.242 8.564c-1.895.274-3.78-.558-4.855-2.143-1.074-1.585-1.149-3.644-.192-5.303l6.736-11.683c-6.474-4.91-13.333-9.464-20.547-13.634-94.672-54.646-215.706-22.22-270.352 72.451-29.243 50.668-33.55 108.881-16.707 160.427l-37.089 21.425c-23.702-64.522-19.669-138.7 17.365-202.893 66.278-114.78 213.044-154.091 327.824-87.841 7.187 4.17 14.073 8.642 20.684 13.388l9.115-15.794c.957-1.659 2.778-2.625 4.688-2.488 1.911.137 3.575 1.354 4.285 3.132zm44.219 71.104c23.702 64.522 19.669 138.701-17.393 202.894-66.25 114.752-213.016 154.091-327.796 87.813-7.187-4.143-14.1-8.614-20.684-13.388l-9.171 15.899c-.957 1.659-2.777 2.626-4.688 2.489-1.91-.137-3.575-1.353-4.286-3.132l-22.212-55.585c-.569-1.423-.454-3.028.312-4.355.767-1.327 2.099-2.229 3.615-2.449l59.233-8.563c1.895-.274 3.781.559 4.855 2.145s1.148 3.646.19 5.305l-6.697 11.596c6.501 4.91 13.36 9.464 20.574 13.634 94.644 54.646 215.705 22.221 270.352-72.45 29.243-50.669 33.55-108.882 16.707-160.455z"})}),title:"Continuous Improvement",desc:"We foster a culture of continuous learning and improvement. We invest in the latest technology and empower our team to innovate and evolve, ensuring we remain at the forefront of our industry."},{icon:(0,ot.jsxs)("svg",{"enable-background":"new 0 0 32 32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",children:[(0,ot.jsx)("g",{id:"Guides"}),(0,ot.jsx)("g",{id:"_x32_0"}),(0,ot.jsx)("g",{id:"_x31_9"}),(0,ot.jsx)("g",{id:"_x31_8"}),(0,ot.jsx)("g",{id:"_x31_7"}),(0,ot.jsx)("g",{id:"_x31_6"}),(0,ot.jsx)("g",{id:"_x31_5"}),(0,ot.jsx)("g",{id:"_x31_4"}),(0,ot.jsx)("g",{id:"_x31_3"}),(0,ot.jsxs)("g",{id:"_x31_2",children:[(0,ot.jsx)("path",{d:"m29.6581421 19.8860474-1.8865356-.6288452c-.1660767-.6447754-.420166-1.2526855-.7515869-1.8118896l.8898926-1.7798462c.0962524-.1925049.0585327-.4249878-.093689-.5771484l-.904541-.904541c-.1521606-.1522217-.3846436-.1899414-.5771484-.093689l-1.7798462.8898926c-.5592041-.3314209-1.1671143-.5855103-1.8118896-.7515869l-.6288452-1.8865356c-.0680544-.2041628-.2590944-.3418581-.4743044-.3418581h-1.2792969c-.21521 0-.40625.1376953-.4743042.3418579l-.6288452 1.8865356c-.6447754.1660767-1.2526855.420166-1.8118896.7515869l-1.7798462-.8898926c-.1925049-.0962524-.4249878-.0585327-.5771484.093689l-.904541.904541c-.1522217.1521606-.1899414.3846436-.093
2689.5771484l.8898926 1.7798462c-.3314209.5592041-.5855103 1.1671143-.7515869 1.8118896l-1.8865356.6288452c-.2041627.0680544-.341858.2590944-.341858.4743044v1.2792969c0 .21521.1376953.40625.3418579.4743042l1.8865356.6288452c.1660767.6447754.420166 1.2526855.7515869 1.8118896l-.8898926 1.7798462c-.0962524.1925049-.0585327.4249878.093689.5771484l.904541.904541c.1521606.1522217.3846436.1899414.5771484.093689l1.7798462-.8898926c.5592041.3314209 1.1671143.5855103 1.8118896.7515869l.6288452 1.8864746c.0680544.2041627.2590944.341919.4743044.341919h1.2792969c.21521 0 .40625-.1377563.4743042-.3419189l.6288452-1.8864746c.6447754-.1660767 1.2526855-.420166 1.8118896-.7515869l1.7798462.8898926c.1925049.0962524.4249878.0585327.5771484-.093689l.904541-.904541c.1522217-.1521606.1899414-.3846436.093689-.5771484l-.8898926-1.7798462c.3314209-.5592041.5855103-1.1671143.7515869-1.8118896l1.8865356-.6288452c.2041627-.0680544.341858-.2590944.341858-.4743044v-1.2792969c0-.2152099-.1376953-.4062499-.3418579-.4743041zm-8.6581421 6.1139526c-2.7614136 0-5-2.2385864-5-5s2.2385864-5 5-5 5 2.2385864 5 5-2.2385864 5-5 5z"}),(0,ot.jsx)("path",{d:"m15 2h-7c-.5522847 0-1 .4477153-1 1v3h9v-3c0-.5522847-.4477148-1-1-1z"}),(0,ot.jsx)("circle",{cx:"21",cy:"19",r:"2"}),(0,ot.jsx)("path",{d:"m24 23.6177979v-.6177979c0-1.1046143-.8954468-2-2-2h-2c-1.1045532 0-2 .8953857-2 2v.6177979c.7337646.8399047 1.7996826 1.3822021 3 1.3822021s2.2662354-.5422974 3-1.3822021z"}),(0,ot.jsx)("path",{d:"m20 4h-3v2c0 .5522461-.4476929 1-1 1h-9c-.5523071 0-1-.4477539-1-1v-2h-3c-.5523071 0-1 .4476929-1 1v24c0 .5522461.4476929 1 1 1h15.9511719c-.003418-.0095215-.010437-.0167236-.0136719-.0263672l-.4638672-1.3916016c-.3598633-.1201172-.7104492-.2646484-1.0483398-.4345703l-1.3120117.6572266c-.2089844.1035156-.4404297.1582031-.6713867.1582031-.4018555 0-.7788086-.15625-1.0615234-.4404297l-.9038086-.9033203c-.4575195-.4589844-.5698242-1.1542969-.28125-1.7314453l.6567383-1.3134766c-.1694336-.3378906-.3144531-.6875-.434082-1.046875l-1.3925783-.4648437c-.6137695-.2050781-1.0253906-.7773437-1.0253906-1.4228516v-1.2792969c0-.6455078.4116211-1.2177734 1.0244141-1.4228516l1.3935547-.4648438c.1196289-.359375.2646484-.7089844.434082-1.046875l-.6567383-1.3134766c-.2885742-.5771484-.1762695-1.2724609.2802734-1.7304688l.9057617-.9052734c.2817383-.2832031.6586914-.4394531 1.0605469-.4394531.230957 0 .4624023.0546875.6689453.1572266l1.3144531.6582031c.3378906-.1699219.6884766-.3144531 1.0483398-.4345703l.4638
2673-1.392578c.2041016-.6132812.7758789-1.0253906 1.4228516-1.0253906h.6396484v-6c0-.5523071-.4476929-1-1-1zm-12.1464844 20.8535156-2 2c-.0976562.0976563-.2255859.1464844-.3535156.1464844s-.2558594-.0488281-.3535156-.1464844l-1-1c-.1953125-.1953125-.1953125-.5117188 0-.7070313s.5117188-.1953125.7070313 0l.6464843.6464845 1.6464844-1.6464844c.1953125-.1953125.5117188-.1953125.7070313 0s.1953124.5117187-.0000001.7070312zm0-5-2 2c-.0976562.0976563-.2255859.1464844-.3535156.1464844s-.2558594-.0488281-.3535156-.1464844l-1-1c-.1953125-.1953125-.1953125-.5117188 0-.7070313s.5117188-.1953125.7070313 0l.6464843.6464845 1.6464844-1.6464844c.1953125-.1953125.5117188-.1953125.7070313 0s.1953124.5117187-.0000001.7070312zm0-5-2 2c-.0976562.0976563-.2255859.1464844-.3535156.1464844s-.2558594-.0488281-.3535156-.1464844l-1-1c-.1953125-.1953125-.1953125-.5117188 0-.7070313s.5117188-.1953125.7070313 0l.6464843.6464845 1.6464844-1.6464844c.1953125-.1953125.5117188-.1953125.7070313 0s.1953124.5117187-.0000001.7070312zm0-5-2 2c-.0976562.0976563-.2255859.1464844-.3535156.1464844s-.2558594-.0488281-.3535156-.1464844l-1-1c-.1953125-.1953125-.1953125-.5117188 0-.7070313s.5117188-.1953125.7070313 0l.6464843.6464845 1.6464844-1.6464844c.1953125-.1953125.5117188-.1953125.7070313 0s.1953124.5117187-.0000001.7070312z"})]}),(0,ot.jsx)("g",{id:"_x31_1"}),(0,ot.jsx)("g",{id:"_x31_0"}),(0,ot.jsx)("g",{id:"_x30_9"}),(0,ot.jsx)("g",{id:"_x30_8"}),(0,ot.jsx)("g",{id:"_x30_7"}),(0,ot.jsx)("g",{id:"_x30_6"}),(0,ot.jsx)("g",{id:"_x30_5"}),(0,ot.jsx)("g",{id:"_x30_4"}),(0,ot.jsx)("g",{id:"_x30_3"}),(0,ot.jsx)("g",{id:"_x30_2"}),(0,ot.jsx)("g",{id:"_x30_1"})]}),title:"Ownership and Accountability",desc:"We instill a sense of pride and ownership in our team, encouraging them to take responsibility for their work and contribute to the collective success of the company. We are accountable for our actions and committed to delivering on\xa0our\xa0promises."}];return(0,ot.jsx)("div",{children:(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"About Us | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Discover the mission, vision, leadership, and values of Quality Analyst and Labs Pvt. Ltd.\u2014your trusted partner in analytical testing and environmental solutions."}),(0,ot.jsx)("meta",{name:"keywords",content:"Analytical Testing, ISO 17025, Environmental Audit, Laboratory Services, Water Analysis, Sustainability, Delhi Lab Services"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"About Us | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Learn more about our leadership, mission, and values in the world of analytical services and lab testing."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/about"})]}),(0,ot.jsxs)("div",{className:"about-page",children:[(0,ot.jsxs)("section",{className:"about-page-slider",children:[(0,ot.jsx)("img",{src:UO,alt:"about",className:"bg"}),(0,ot.jsxs)(lc.div,{className:"about-content",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1},children:[(0,ot.jsx)("div",{className:"about-text",children:(0,ot.jsxs)("h2",{className:"about-title",children:[" ",(0,ot.jsx)("span",{class:"text",children:"About Us"})]})}),(0,ot.jsxs)(lc.div,{className:"about-image",initial:{scale:.9},animate:{scale:1},transition:{duration:1.5,ease:"easeInOut"},children:[(0,ot.jsx)("img",{src:jO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape1",src:MO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape2",src:FO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape3",src:VO,alt:"Laboratory"})]})]}),(0,ot.jsx)("div",{className:"molecule molecule-1"}),(0,ot.jsx)("div",{className:"molecule molecule-2"}),(0,ot.jsx)("div",{className:"molecule molecule-3"})]}),(0,ot.jsx)("div",{className:"about-page-slider-mobile",children:(0,ot.jsxs)("h2",{children:[" ",(0,ot.jsx)("span",{class:"text",children:"About Us"})]})}),(0,ot.jsx)("section",{className:"about-body",children:(0,ot.jsxs)("div",{className:"about-card",children:[(0,ot.jsx)("div",{className:"about-image",children:(0,ot.jsx)("img",{src:LO,alt:"story"})}),(0,ot.jsxs)("div",{className:"about-text",children:[(0,ot.jsx)("div",{className:"sec-title",children:(0,ot.jsx)("div",{className:"title",children:"Leadership"})}),(0,ot.jsx)("h2",{children:"Devinder Khetarpal"}),(0,ot.jsx)("p",{children:"A water treatment professional with 32 years of extensive experience in water analysis, treatment, distribution and water footprint mapping. A qualified assessor for ISO 17025 \u2013 Laboratory Accreditation and ISO 14020 \u2013 Eco Labelling, having worked with Ion Exchange India Ltd and currently as CEO of Quality Analyst & Labs Pvt. Ltd. in New Delhi. Major areas of interest include sustainability, water conservation, carbon emissions, climate change, environmental & water audits and eco-labelling."})]})]})}),(0,ot.jsx)("section",{className:"story vision",children:(0,ot.jsxs)("div",{className:"story-body",children:[(0,ot.jsx)("div",{className:"story-image",children:(0,ot.jsx)("img",{src:BO,alt:"story"})}),(0,ot.jsxs)("div",{className:"story-text",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Our Vision"})}),(0,ot.jsx)("p",{children:"Our vision is to instill a deep sense of pride and confidence in our 
2customers, making Quality Analyst and Labs Private Limited synonymous with reliability and excellence in the analytical services sector. We envision a future where our meticulous approach to accuracy in test results and our dedication to delivering services with unparalleled speed become the hallmark of our brand. We aim to empower our clients with the knowledge and insights they need to succeed, becoming an indispensable asset to their operations. We strive to be recognized as a leader in the industry, continuously evolving and adapting to the changing needs of our clients and the evolving scientific landscape. By fostering a culture of ownership and accountability within our team, we empower our employees to take initiative and contribute their unique talents to the collective success of our company. We aspire to be a catalyst for progress, playing a pivotal role in advancing scientific understanding, promoting environmental sustainability, and ensuring the safety and well-being of our communities. Through our unwavering dedication to quality, speed, and customer satisfaction, we aim to shape a future where every analysis performed by Quality Analyst and Labs Private Limited represents a benchmark for excellence."})]})]})}),(0,ot.jsx)("section",{className:"about-section",children:(0,ot.jsxs)("div",{className:"row clearfix",children:[(0,ot.jsx)("div",{className:"content-column ",children:(0,ot.jsxs)("div",{className:"inner-column",children:[(0,ot.jsx)("div",{className:"sec-title",children:(0,ot.jsx)("div",{className:"title",children:"Our Mission"})}),(0,ot.jsx)("div",{className:"text",children:"At Quality Analyst and Labs Private Limited, our mission is to redefine industry benchmarks by consistently delivering world-class analytical services that exceed customer expectations. We are driven by a relentless pursuit of excellence, aiming to achieve maximum customer satisfaction through a combination of precision, efficiency, and unwavering commitment. We strive to be more than just a testing laboratory; we aim to be a trusted partner, providing our clients with the critical data they need to make informed decisions and achieve their goals. We are dedicated to fostering a culture of continuous improvement, investing in state-of-the-art technology, and empowering our team of skilled professionals to provide innovative solutions. By upholding the highest standards of quality and integrity, we seek to build lasting relationships with our clients, enabling them to confidently navigate the complexities of their respective industries. Our commitment extends to promoting sustainable practices and contributing positively to the communities we serve, ensuring that our analytical expertise supports environmental stewardship and public health. We are dedicated to providing clear, transparent, and accurate analytical services that our clients can rely on."})]})}),(0,ot.jsx)("div",{className:"image-column ",children:(0,ot.jsx)("div",{className:"inner-column ","data-wow-delay":"0ms","data-wow-duration":"1500ms",children:(0,ot.jsx)("div",{className:"image",children:(0,ot.jsx)("img",{src:zO,alt:"mission"})})})})]})}),(0,ot.jsxs)("section",{className:"values",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Our Values"})}),(0,ot.jsx)("p",{children:"At Quality Analyst and Labs Private Limited, our actions are guided by a set of core values that define who we are and how we operate:"}),(0,ot.jsx)("div",{className:"features",children:n.map(((e,t)=>(0,ot.jsxs)("div",{className:`feature feature-${t}`,children:[(0,ot.jsx)("div",{className:"icon",children:e.icon}),(0,ot.jsxs)("div",{className:"text",children:[(0,ot.jsx)("h3",{children:e.title}),(0,ot.jsx)("p",{children:e.desc})]})]},t)))})]}),(0,ot.jsxs)("section",{id:"certificates",className:"values",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Certificates"})}),(0,ot.jsx)("div",{className:"cert-body",children:(0,ot.jsxs)("div",{className:qO,children:[(0,ot.jsx)("img",{src:HO,alt:"Certificates"}),(0,ot.jsx)("img",{src:WO,alt:"Certificates"}),(0,ot.jsx)("img",{src:KO,alt:"Certificates"}),(0,ot.jsx)("img",{src:GO,alt:"Certificates"}),(0,ot.jsx)("img",{src:QO,alt:"Certificates"}),(0,ot.jsx)("img",{src:YO,alt:"Certificates"}),(0,ot.jsx)("img",{src:$O,alt:"Certificates"}),(0,ot.jsx)("img",{src:XO,alt:"Certificates"})]})})]})]})]})})},ZO=n.p+"static/media/slider.af8703fcc11a60c37bf9.png";var eL=function(){return eL=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},eL.apply(this,arguments)},tL=function(e){var n=e.children,r=e.textClassName,i=e.textStyle;return t.createElement("p",{className:r,style:eL({display:"inline"},i)},n)};const nL=function(e){var n=e.children,r=e.className,i=e.style,s=e.expandLabel,o=void 0===s?"Read more":s,a=e.collapseLabel,l=void 0===a?"Read less":a,c=e.textClassName,u=e.textStyle,h=e.buttonClassName,d=e.buttonStyle,f=e.lettersLimit,p=void 0===f?500:f,m=t.useState(!1),g=m[0],y=m[1],v=t.useCallback((function(){return y(!0)}),[]),b=t.useCallback((function(){return y(!1)}),[]),w=new String(n),_=g?n:w.substring(0,p)+"...";return t.createElement("div",{className:r,style:eL({display:"black"},i)},t.createElement(tL,{textClassName:c,textStyle:u},_),w.length>p&&t.createElement("button",{className:h,style:eL({display:"inline",color:"unset",backgroundColor:"unset",border:"unset",textDecoration:"underline",cursor:"pointer",paddingLeft:"8px",paddingRight:"8px"},d),onClick:g?b:v},g?l:o))},rL=nL,iL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const[e,n]=(0,t.useState)("tab1"),r=[{id:"tab1",image:Oc,title:(0,ot.jsxs)("div",{children:[(0,ot.jsx)("span",{children:"Analysis of"})," Water, Air, Effluent,",(0,ot.jsx)("br",{}),"  Noise, Luminosity, Chemicals, Food, Oil"]}),content:" We are engaged in rendering services for Analysis of Water, Air, Food, Oil, Soil, Noise, Chemicals, Medical  Devices. All these services are provided by our experienced professionals, in accordance with the established norms and standards of the industry. All our professionals make sure to use premium quality material, while offering these services to the customers."},{id:"tab2",image:Lc,title:"Pilot Plant Studies",content:"A pilot plant is a prototype of a processing system which is operated to generate data about the behaviour and efficacy of different processes for use in design of larger facilities. These plants are generally preferred and deployed to reduce the risks associated with opting for large process plants straight away."},{id:"tab3",image:jc,title:"Treatability Studies",content:"The Treatment of difficult Effluent and Water can be tedious and cumbersome. Treatability studies help in exploring appropriate technology for treatment and also  reducing the capital cost as well as operational cost for a full scale plant. "},{id:"tab4",image:Mc,title:"Lab Steps and Accreditations",content:"Quality Control is an integral part of any product line, more so in beverages and water Industry. We set up complete laboratory, provide training and technical help in accreditation or approvals"},{id:"tab5",image:Fc,title:"Corrosion Coupon Studies",content:(0,ot.jsx)(rL,{lettersLimit:350,children:"Corrosion of metallic components due to ambient air pollution has been documented for many years. It historically occurred only at industrial sites such as pulp and paper mills, petrochemical refineries, and geothermal plants. These facilities produce local environments relatively high in sulfur content \u2013 hydrogen sulfide, sulfur dioxide, Mercaptans, or Sulfur laden Particulates. Therefore, Equipments in these plants were subject to corrosion due to reactions with the environmental sulfur and humidity. Compounds such as nitrogen oxides and chlorine can also be present at these facilities and promote corrosion\xa0of\xa0electronics."})},{id:"tab6",image:Vc,title:"Environmental Studies",content:"Baseline data, Mapping Environmental parameters help ascertain Environmental impacts as well as track seasonal fluctuations, thereby enabling mitigation and preventive actions."}];return(0,ot.jsx)("div",{children:(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Laboratory Services | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Explore the laboratory services offered by Quality Analyst and Labs Pvt. Ltd. We provide high-quality analytical testing and research services with a focus on accuracy and precision."}),(0,ot.jsx)("meta",{name:"keywords",content:"Laboratory Services, Quality Analyst, Analytical Testing, Research Services, Quality Testing, Laboratory Solutions"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Laboratory Services | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Discover the comprehensive laboratory services offered by Quality Analyst and Labs Pvt. Ltd. Our services cover a wide range of testing and analysis solutions."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/laboratory-services"})]}),(0,ot.jsxs)("div",{className:"lab-page",children:[(0,ot.jsxs)("section",{className:"lab-page-slider",children:[(0,ot.jsx)("img",{src:UO,alt:"about",className:"bg"}),(0,ot.jsxs)(lc.div,{className:"lab-content",initial:{opacity:0,y:50}
2,animate:{opacity:1,y:0},transition:{duration:1},children:[(0,ot.jsx)("div",{className:"lab-text",children:(0,ot.jsxs)("h2",{className:"lab-title",children:[" ",(0,ot.jsxs)("span",{class:"text",children:["Laboratory",(0,ot.jsx)("br",{})," Services"]})]})}),(0,ot.jsxs)(lc.div,{className:"lab-image",initial:{scale:.9},animate:{scale:1},transition:{duration:1.5,ease:"easeInOut"},children:[(0,ot.jsx)("img",{src:ZO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape1",src:MO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape2",src:FO,alt:"Laboratory"})]})]}),(0,ot.jsx)("div",{className:"molecule molecule-1"}),(0,ot.jsx)("div",{className:"molecule molecule-2"}),(0,ot.jsx)("div",{className:"molecule molecule-3"})]}),(0,ot.jsx)("div",{className:"lab-page-slider-mobile",children:(0,ot.jsxs)("h2",{children:[" ",(0,ot.jsx)("span",{class:"text",children:"Laboratory Services"})]})}),(0,ot.jsx)("section",{className:"services-section2",children:r.map((t=>(0,ot.jsxs)(lc.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},className:"tab-content-box",children:[(0,ot.jsx)("h3",{className:"tab-title",children:t.title}),(0,ot.jsx)("hr",{className:"tab-divider"}),(0,ot.jsxs)("div",{className:"tab-content-body",children:[(0,ot.jsx)("img",{src:t.image,alt:"service"}),(0,ot.jsxs)("div",{className:"tab-text",children:[(0,ot.jsx)("p",{children:t.content}),(0,ot.jsx)(Je,{to:"/contact",className:"button",children:"Send Enquiry"})]})]})]},e)))})]})]})})},sL=n.p+"static/media/slider.54c8d98dd02c15e12bbb.png",oL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const[e,n]=(0,t.useState)("tab1"),r=[{id:"tab1",image:Uc,title:"Water",content:"Turn yourself into analyst by our Rapid Water Test kits, Analyze Hardness, Calcium, Chlorides, Alkalinity, pH, Iron at home and take precautions accordingly while using water."},{id:"tab2",image:zc,title:"Food",content:"Food adulterants are on the rise, Use our Rapid Food Test kits for common contaminants and save yourself and your loved ones from consuming harmful chemicals and contaminants."}];return(0,ot.jsxs)("div",{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Test Kits | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Explore our high-quality laboratory test kits designed for accurate testing and analysis across multiple industries. Get reliable results with Quality Analyst's premium test kits."}),(0,ot.jsx)("meta",{name:"keywords",content:"Test Kits, Laboratory Test Kits, Accurate Testing, Premium Test Kits, Quality Analyst, Testing Solutions, Industrial Test Kits"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Test Kits | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Discover Quality Analyst's range of premium test kits that offer accuracy and reliability for laboratory testing in various industries."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/test-kits"})]}),(0,ot.jsx)(ot.Fragment,{children:(0,ot.jsxs)("div",{className:"lab-page",children:[(0,ot.jsxs)("section",{className:"lab-page-slider",children:[(0,ot.jsx)("img",{src:UO,alt:"about",className:"bg"}),(0,ot.jsxs)(lc.div,{className:"lab-content",initial:{opacity:0,y:50},animate:{opacity:1,y:0},transition:{duration:1},children:[(0,ot.jsx)("div",{className:"lab-text",children:(0,ot.jsxs)("h2",{className:"lab-title",children:[" ",(0,ot.jsx)("span",{class:"text",children:"Test Kits"})]})}),(0,ot.jsxs)(lc.div,{className:"lab-image",initial:{scale:.9},animate:{scale:1},transition:{duration:1.5,ease:"easeInOut"},children:[(0,ot.jsx)("img",{src:sL,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape1",src:MO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape2",src:FO,alt:"Laboratory"})]})]}),(0,ot.jsx)("div",{className:"molecule molecule-1"}),(0,ot.jsx)("div",{className:"molecule molecule-2"}),(0,ot.jsx)("div",{className:"molecule molecule-3"})]}),(0,ot.jsx)("div",{className:"lab-page-slider-mobile",children:(0,ot.jsxs)("h2",{className:"lab-title",children:[" ",(0,ot.jsx)("span",{class:"text",children:"Test Kits"})]})}),(0,ot.jsx)("section",{className:"services-section2",children:r.map((t=>(0,ot.jsxs)(lc.div,{initial:{opacity:0,x:50}
2,animate:{opacity:1,x:0},className:"tab-content-box",children:[(0,ot.jsx)("h3",{className:"tab-title",children:t.title}),(0,ot.jsx)("hr",{className:"tab-divider"}),(0,ot.jsxs)("div",{className:"tab-content-body",children:[(0,ot.jsx)("img",{src:t.image,alt:t.title}),(0,ot.jsxs)("div",{className:"tab-text",children:[(0,ot.jsx)("p",{children:t.content}),(0,ot.jsx)(Je,{to:"/contact",className:"button",children:"Send Enquiry"})]})]})]},e)))})]})})]})},aL=n.p+"static/media/slider.4ba7b095b54dbfa7bada.png",lL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const[e,n]=(0,t.useState)("tab1"),r=[{id:"tab1",image:Bc,title:"Water Footprint Mapping",content:(0,ot.jsxs)("div",{children:["Through water footprint mapping we quantify the amount of freshwater required to produce a product, service, or the goods and services and how it can be reduced through\xa0due\xa0diligence.",(0,ot.jsx)("br",{}),(0,ot.jsx)("br",{}),(0,ot.jsxs)("span",{children:["Link - ",(0,ot.jsx)("a",{style:{textDecoration:"underline!important"},href:"https://www.waterfootprint.org/the-network/professionals/devinder-khetarpal/",children:"https://www.waterfootprint.org/the-network/professionals/devinder-khetarpal/z"})]})," "]})},{id:"tab2",image:qc,title:"Environment Footprint Mapping",content:(0,ot.jsx)("div",{children:"We calculate the total greenhouse gas emissions, expressed as carbon dioxide equivalents (CO\u2082e), resulting from activities such as burning fossil fuels, manufacturing, and transportation associated with an individual, organization, or product, and thereafter conduct due diligence to reduce the same.      "})},{id:"tab3",image:$c,title:"Water and Environmental Audits",content:"We conduct systematic water and environmental audits to assess consumption, identify inefficiencies, and promote sustainability. Our process includes quantifying water loss, reducing usage, encouraging reuse, and fostering water stewardship. We also evaluate environmental compliance, identify pollutants, and provide technical solutions to minimize environmental impact and enhance organizational processes."},{id:"tab4",image:Hc,title:"Eco Labelling",content:"We work closely with Green Seal, Inc. (USA) for eco-labelling services, including Green Seal audits. We provide technical guidance and assessments as per IS:14020."},{id:"tab5",image:Wc,title:"CSR Reports Preparations",content:"A corporate sustainability report outlines a company's social, environmental, and economic performance, along with its commitment to sustainable development. We provide vital inputs in environmental performance for a corporate, both in terms of monitoring and achieving corporate environmental goals."},{id:"tab6",image:Kc,title:"Improvements in WTP`s, ETP`s and Recycling Systems",content:"With 32 years of expertise in water and wastewater treatment, we strive to improve existing water treatment plants, sewage treatment plants, and effluent treatment plants using the latest technologies. The focus is on improving efficiency, reducing environmental impact, and lowering operational costs through advanced technologies, automation, and sustainable practices."},{id:"tab7",image:Gc,title:"Only One Earth",content:(0,ot.jsxs)("div",{children:["We are all aware that we have just one planet Earth to live on, and the resources of Earth are finite. Therefore, we urgently need to protect the environment, aiming to meet the needs of current and future generations. With this in mind, we assess organizations' environmental footprints and provide One Earth Certifications through Only One Earth (",(0,ot.jsx)("a",{href:"https://onlyoneearth.in/",target:"_blank",children:"www.onlyoneearth.in"}),")."]})}];return(0,ot.jsxs)("div",{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Sustainability | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Learn how Quality Analyst is driving sustainability through eco-conscious laboratory practices, minimizing environmental impact, and fostering green innovation."}),(0,ot.jsx)("meta",{name:"keywords",content:"Sustainability, Eco-Conscious Practices, Environmental Impact, Green Innovation, Quality Analyst, Laboratory Services, Sustainable Solutions"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Sustainability | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Discover how we champion sustainability in the laboratory industry, reducing our carbon footprint and promoting greener practices in testing and analysis."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/sustainability"})]}),(0,ot.jsx)(ot.Fragment,{children:(0,ot.jsxs)("div",{className:"lab-page",children:[(0,ot.jsxs)("section",{className:"lab-page-slider",children:[(0,ot.jsx)("img",{src:UO,alt:"about",className:"bg"}),(0,ot.jsxs)(lc.div,{className:"lab-content",initial:{opacity:0,y:50}
2,animate:{opacity:1,y:0},transition:{duration:1},children:[(0,ot.jsx)("div",{className:"lab-text",children:(0,ot.jsxs)("h2",{className:"lab-title",children:[" ",(0,ot.jsx)("span",{class:"text",children:"Sustainability"})]})}),(0,ot.jsxs)(lc.div,{className:"lab-image",initial:{scale:.9},animate:{scale:1},transition:{duration:1.5,ease:"easeInOut"},children:[(0,ot.jsx)("img",{src:aL,style:{marginLeft:"-15%",width:"100%",marginTop:"5%"},alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape1",src:MO,alt:"Laboratory"}),(0,ot.jsx)("img",{className:"labshape2",src:FO,alt:"Laboratory"})]})]}),(0,ot.jsx)("div",{className:"molecule molecule-1"}),(0,ot.jsx)("div",{className:"molecule molecule-2"}),(0,ot.jsx)("div",{className:"molecule molecule-3"})]}),(0,ot.jsx)("div",{className:"lab-page-slider-mobile",children:(0,ot.jsxs)("h2",{className:"lab-title",children:[" ",(0,ot.jsx)("span",{class:"text",children:"Sustainability"})]})}),(0,ot.jsx)("section",{className:"services-section2",children:r.map((t=>(0,ot.jsxs)(lc.div,{initial:{opacity:0,x:50},animate:{opacity:1,x:0},className:"tab-content-box",children:[(0,ot.jsx)("h3",{className:"tab-title",children:t.title}),(0,ot.jsx)("hr",{className:"tab-divider"}),(0,ot.jsxs)("div",{className:"tab-content-body",children:[(0,ot.jsx)("img",{src:t.image,alt:t.title}),(0,ot.jsxs)("div",{className:"tab-text",children:[(0,ot.jsx)("p",{children:t.content}),(0,ot.jsx)(Je,{to:"/contact",className:"button",children:"Send Enquiry"})]})]})]},e)))})]})})]})},cL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const e=[{question:"If family members or house guests have recurrent incidents of gastro-intestinal illness",answer:"Coliform Bacteria, Nitrates, Sulphates"},{question:"If stains are due to plumbing fixtures and in laundry",answer:"Iron, Manganese, Copper, Total Hardness, Calcium"},{question:"If water has objectionable taste or smell",answer:"Sulphates, PH, Corrosion index, Copper, Lead, Iron, Zinc, Sodium, Chloride, TDS"},{question:"If pipes or plumbing show signs of corrosion",answer:"Corrosion Index, PH, Lead, Iron, Manganese, Copper, Zinc"},{question:"If water leaves scaly residue and soap scum",answer:"Hardness, TDS"},{question:"Efficacy of your softener",answer:"Total Hardness, Calcium, Manganese, Iron, Sodium"},{question:"Efficacy of your water purifier",answer:"Coliform, E-coli, Turbidity, Residual Free Chlorine"},{question:"Efficacy of your RO plant",answer:"TDS, PH, Calcium, Magnesium, Chlorides, Sulphates, Silica, Iron, Nitrates, Alkalinity, Coliform, E-coli"},{question:"If buying a home and wish to assess the quality of existing water supply",answer:"Coliform Bacteria, TDS, Total Hardness, Chlorides, PH, Sulphates, Lead, Iron, Nitrates, Corrosion Index"},{question:"If a baby is expected in the household",answer:"Coliform Bacteria, TDS, Nitrates, Lead"},{question:"If you are located near a dump, polluting industry, landfill or dry cleaning operation",answer:"PH, TDS, Chloride, Sulphates, Metals, Coliform Bacteria"},{question:"If you are located near an area of intensive agricultural use",answer:"Pesticides, Coliform Bacteria, Nitrates, PH, TDS"}],[n,r]=(0,t.useState)(null);return(0,ot.jsxs)("div",{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Frequently Asked Questions | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Explore the most commonly asked questions about our services and solutions. Find answers to key concerns related to our quality analysis and laboratory services."}),(0,ot.jsx)("meta",{name:"keywords",content:"FAQ, Frequently Asked Questions, Quality Analyst, Laboratory Services, Water Testing, Problem Situations, Eco-Conscious Practices"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Frequently Asked Questions | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Visit our FAQ section to find answers to the most common questions about our services, including water testing and quality control practices."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/faq"})]}),(0,ot.jsxs)("div",{className:"faq",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Frequently Asked Questions"})}
2),(0,ot.jsx)("p",{className:"s",children:"Do you know what requires your attention when..."}),(0,ot.jsxs)("div",{className:"accordion",children:[(0,ot.jsxs)("div",{className:"accordion-left",children:[(0,ot.jsx)("h3",{children:"Problem Situation "}),e.map(((e,t)=>(0,ot.jsx)("div",{className:"accordion-item",children:(0,ot.jsxs)("p",{className:"accordion-title",children:[" ",e.question]})},t)))]}),(0,ot.jsxs)("div",{className:"accordion-right",children:[(0,ot.jsx)("h3",{children:"Suspect in Water"}),e.map(((e,t)=>(0,ot.jsx)("div",{className:"accordion-item",children:(0,ot.jsxs)("p",{children:[" ",e.answer]})},t)))]})]})]})]})},uL=n.p+"static/media/how we add value.181ea898ee08fe989792.jpg",hL=()=>((0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]),(0,ot.jsx)("div",{children:(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"How We Add Value | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Learn how Quality Analyst and Labs Pvt. Ltd. contributes to sustainability by implementing rigorous quality control measures, minimizing waste, and empowering businesses to reduce their environmental footprint."}),(0,ot.jsx)("meta",{name:"keywords",content:"Sustainability, Quality Control, Environmental Footprint, Data-Driven Insights, Eco-Conscious, Waste Minimization, Industrial Sustainability"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"How We Add Value | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Discover how Quality Analyst and Labs Pvt. Ltd. is committed to sustainability and how we help businesses adopt eco-conscious practices to reduce their environmental impact."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/how-we-add-value"})]}),(0,ot.jsx)("div",{className:"how-page",children:(0,ot.jsx)("section",{className:"about-body",children:(0,ot.jsxs)("div",{className:"about-card",children:[(0,ot.jsx)("div",{className:"about-image",children:(0,ot.jsx)("img",{src:uL,alt:"story"})}),(0,ot.jsxs)("div",{className:"about-text",children:[(0,ot.jsx)("div",{className:"sec-title",children:(0,ot.jsx)("div",{className:"title",children:"How We Add Value"})}),(0,ot.jsx)("p",{children:"Our commitment at Quality Analyst extends beyond mere analysis; we strive to be stewards of our planet. By implementing rigorous quality control measures, we minimize waste generation and optimize resource utilization across industries. Our data-driven insights empower businesses to adopt sustainable practices, reduce their environmental footprint, and lessen their impact on delicate ecosystems. We champion eco-conscious methodologies, contributing to a healthier Mother Earth for generations to come. Together, we can forge a path towards a greener, more sustainable industrial landscape."})]})]})})})]})})),dL=AR.firestore().collection("Career_Form"),fL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const[e,n]=(0,t.useState)(!1),r=()=>{n(!0)},i=(0,t.useRef)(),[s,o]=(0,t.useState)({Name:"",Email:"",Mobile:"",CoverLetter:""});let a,l;const c=e=>{a=e.target.name,l=e.target.value,o({...s,[a]:l})};return(0,ot.jsxs)("div",{className:"career",children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Careers at Quality Analyst and Labs Pvt. Ltd. | Join Our Team"}),(0,ot.jsx)("meta",{name:"description",content:"Explore rewarding career opportunities at Quality Analyst and Labs Pvt. Ltd. We are hiring for te
2chnical, marketing, and administrative roles across departments."}),(0,ot.jsx)("meta",{name:"keywords",content:"Careers at Quality Analyst, Lab Jobs in Delhi, Technical Officer Jobs, Lab Assistant Vacancies, Quality Analyst Hiring, Job Openings in Analytical Labs"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Careers at Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Join our growing team of professionals in analytical testing, marketing, and lab operations. View current job openings and apply online today."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/career"})]}),(0,ot.jsx)(RO,{}),(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Career"})}),(0,ot.jsx)("div",{className:"career-top",children:(0,ot.jsx)("p",{children:"Quality Lab believes in the adage that it is not the company but the people who run it that matter. Quality Lab is an equal opportunity employer, and performance is generously rewarded. We offer attractive career opportunities for technical, marketing, and support professionals. At present, we have openings for:"})}),(0,ot.jsxs)("div",{className:"career-body",children:[(0,ot.jsxs)("div",{className:"career-card",children:[(0,ot.jsx)("h2",{children:"Technical Officers / Executives / Managers"}),(0,ot.jsx)("p",{children:"A highly rewarding opportunity awaits candidates who have B.E./B.Sc./M.Sc./Ph.D. as a basic qualification, with Chemistry as one of the subjects. Experience in the analytical field shall be an added advantage. Fresh graduates with an analytical bent of mind may also apply."}),(0,ot.jsx)("button",{onClick:r,children:"Apply Now"})]}),(0,ot.jsxs)("div",{className:"career-card",children:[(0,ot.jsx)("h2",{children:"Marketing Officers / Executives"}),(0,ot.jsx)("p",{children:"A suitable candidate would have a flair for marketing and achieving targets. A good personality with excellent written and spoken communication skills is a prerequisite. The emphasis is on delivering quality solutions to clients. An MBA would be a definite advantage."}),(0,ot.jsx)("button",{onClick:r,children:"Apply Now"})]}),(0,ot.jsxs)("div",{className:"career-card",children:[(0,ot.jsx)("h2",{children:"Administrative Officers / Co-ordinator / Accounts Officer "}),(0,ot.jsx)("p",{children:"People with good man-management skills and proficiency in computers are essential. Expertise in Tally is a prerequisite for accounts professionals."}),(0,ot.jsx)("button",{onClick:r,children:"Apply Now"})]}),(0,ot.jsxs)("div",{className:"career-card",children:[(0,ot.jsx)("h2",{children:"Field Exective / Sampling Assistant / Lab Assistant"}),(0,ot.jsx)("p",{children:"\xa0Knowledge of the various routes and general topography of the areas is essential for field executives and sampling assistants. Lab assistants should have a keen eye and strong presence of mind."}),(0,ot.jsx)("button",{onClick:r,children:"Apply Now"})]})]}),(0,ot.jsxs)("div",{className:"career-last",children:[(0,ot.jsx)("p",{children:"We impart suitable training to all new recruits. Candidates staying around our centres shall be preferred."}),(0,ot.jsxs)("p",{children:["Email your resume to us at : ",(0,ot.jsx)("a",{href:"mailto:[email protected] ",style:{color:"rgba(8, 142, 217, 1)"},children:"[email protected]"})]})]}),e&&(0,ot.jsx)("div",{className:"career-form",children:(0,ot.jsxs)("form",{action:"POST",ref:i,children:[(0,ot.jsxs)("h3",{children:[(0,ot.jsx)("svg",{onClick:()=>{n(!1)},xmlns:"http://www.w3.org/2000/svg",id:"Solid",viewBox:"0 0 64 64",children:(0,ot.jsx)("path",{d:"M43.4141,32,58.95,16.4644a7.0076,7.0076,0,0,0,0-9.9L57.4351,5.05a7.0076,7.0076,0,0,0-9.8995,0L32,20.5859,16.4644,5.05a7.0076,7.0076,0,0,0-9.9,0L5.05,6.5649a7.0076,7.0076,0,0,0,0,9.9L20.5859,32,5.05,47.5356a7.0076,7.0076,0,0,0,0,9.8995L6.5649,58.95a7.0076,7.0076,0,0,0,9.9,0L32,43.4141,47.5356,58.95a7.0081,7.0081,0,0,0,9.8995,0L58.95,57.4351a7.00
276,7.0076,0,0,0,0-9.8995ZM55.3209,7.1077a1,1,0,1,1,0,1.4142A1,1,0,0,1,55.3209,7.1077ZM48.25,21.25l7.7782-7.7782a3.0014,3.0014,0,0,0,.8707-2.3112,1,1,0,1,1,1.9956-.1257,5.0013,5.0013,0,0,1-1.4522,3.8512L49.664,22.664A1,1,0,0,1,48.25,21.25ZM8.4554,8.8351a1,1,0,1,1,0-1.4142A1,1,0,0,1,8.4554,8.8351Zm14.1422,7.0711a1,1,0,0,1-1.4143,0L13.4052,8.128a3.001,3.001,0,0,0-2.3112-.8707,1,1,0,0,1-.1257-1.9957,5.0012,5.0012,0,0,1,3.8511,1.4522l7.7782,7.7781A1,1,0,0,1,22.5976,15.9062Z"})}),"Apply Now"]}),(0,ot.jsxs)("div",{className:"f",children:[(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"name",children:"Name"}),(0,ot.jsx)("input",{type:"text",id:"name",name:"Name",value:s.Name,onChange:c,required:!0})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"name",children:"Mobile"}),(0,ot.jsx)("input",{type:"text",id:"name",name:"Mobile",value:s.Mobile,onChange:c,required:!0})]})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"email",children:"Email"}),(0,ot.jsx)("input",{type:"email",id:"email",name:"Email",value:s.Email,onChange:c,required:!0})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"email",children:"Select Position"}),(0,ot.jsxs)("select",{name:"Position",id:"Position",value:s.Position,onChange:c,required:!0,children:[(0,ot.jsx)("option",{value:"Technical Officers/Executives/Managers",children:"Technical Officers/Executives/Managers"}),(0,ot.jsx)("option",{value:"Marketing Officers/Executives",children:"Marketing Officers/Executives"}),(0,ot.jsx)("option",{value:"Administrative Officers/Co-ordinator/Accounts Officer ",children:"Administrative Officers/Co-ordinator/Accounts Officer "}),(0,ot.jsx)("option",{value:"Field Exective/Sampling Assistant/Lab Assistant",children:"Field Exective/Sampling Assistant/Lab Assistant"})]})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"CoverLetter",children:"Cover Letter"}),(0,ot.jsx)("textarea",{id:"CoverLetter",name:"CoverLetter",rows:"5",value:s.CoverLetter,onChange:c,required:!0})]}),(0,ot.jsx)("button",{type:"submit",onClick:async e=>{e.preventDefault();const{Name:t,Email:n,Mobile:r,Position:a,CoverLetter:l}=s;if(t&&n&&r&&a&&l){if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(s.Email))return void TO.warning("Please enter a valid email address");if("undefined"!==typeof r){if(!new RegExp(/^[0-9\b]+$/).test(s.Mobile))return void TO.warning("Please enter only number.");if(10!==s.Mobile.length)return void TO.warning("Please enter 10 digit Mobile number.")}try{dL.add({Name:t,Email:n,Mobile:r,Position:a,CoverLetter:l}).then((e=>{TO.success("Message Sent Successfully")})).catch((e=>{console.error("error:",e)})),zR("service_2u7g9er","template_cad5tnr",i.current,"UDqjA4S3qCAI1MPCq").then((e=>{console.log(e.text)}),(e=>{console.log(e.text)})),o({Name:"",Email:"",Mobile:"",Position:"",CoverLetter:""})}catch(e){console.error("Error adding document: ",e),TO.warning("Error adding document")}}else TO.warning("Please fill the data")},className:"submit-button",children:"Send Message"})]})})]})},pL=AR.firestore().collection("Contact_Form"),mL=()=>{(0,t.useEffect)((()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})}),[]);const e=(0,t.useRef)(),[n,r]=(0,t.useState)({Name:"",Email:"",Mobile:"",Message:""});let i,s;const o=e=>{i=e.target.name,s=e.target.value,r({...n,[i]:s})};return(0,ot.jsx)("div",{children:(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsxs)(WD,{children:[(0,ot.jsx)("title",{children:"Contact Us | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{name:"description",content:"Get in touch with Quality Analyst and Labs Pvt. Ltd. for any inquiries. Reach out to us via email, phone, or visit our offices in Gurugram and Delhi."}),(0,ot.jsx)("meta",{name:"keywords",content:"Contact Quality Analyst, Lab in Gurugram, Lab in Delhi, Contact info, Analytical Services, Reach Quality Analyst"}),(0,ot.jsx)("meta",{name:"robots",content:"index, follow"}),(0,ot.jsx)("meta",{property:"og:title",content:"Contact Us | Quality Analyst and Labs Pvt. Ltd."}),(0,ot.jsx)("meta",{property:"og:description",content:"Need help or have questions? Contact Quality Analyst and Labs Pvt. Ltd. at our Gurugram or Delhi locations. We\u2019re here to assist you."}),(0,ot.jsx)("meta",{property:"og:image",content:"https://qualityanalyst.net/qualityLogo.png"}),(0,ot.jsx)("meta",{property:"og:url",content:"https://qualityanalyst.net/contact"})]}),(0,ot.jsxs)("div",{className:"contact-page",children:[(0,ot.jsx)("div",{className:"circle",children:(0,ot.jsx)("h2",{children:"Contact Us"})}),(0,ot.jsx)(RO,{}),(0,ot.jsxs)("div",{className:"container",children:[(0,ot.jsxs)("div",{className:"contact-body",children:[(0,ot.jsxs)("div",{className:"contact-info",children:[(0,ot.jsx)("h2",{children:"Gurugram"}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fas fa-thumbtack"}),(0,ot.jsx)("p",{children:"Plot No-270, Udyog Vihar Industrial Area Phase 6, Sector 37, Gurugram, Haryana 122004"})]}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fa fa-envelope"}),(0,ot.jsx)("p",{children:(0,ot.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})})]}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fa fa-phone"}),(0,ot.jsx)("p",{children:(0,ot.jsx)("a",{href:"tel:919312430446",children:"+91 - 9312430446"})})]}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fa fa-phone"}),(0,ot.jsx)("p",{children:(0,ot.jsx)("a",{href:"tel:0124-4384380",children:"0124-4384380/1/2"})})]})]}),(0,ot.jsxs)("div",{className:"contact-info",children:[(0,ot.jsx)("h2",{children:"Delhi"}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fas fa-thumbtack"}),(0,ot.jsx)("p",{children:"382, Vardhman Charve Plaza-5 Plot 20, KP Block Commercial Centre, Pitampura, New Delhi \u2013 110034"})]}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fa fa-envelope"}),(0,ot.jsx)("p",{children:(0,ot.jsx)("a",{href:"mailto:[email protected]",children:"[email protected]"})})]}),(0,ot.jsxs)("div",{className:"info-item",children:[(0,ot.jsx)("i",{className:"fa fa-phone"}),(0,ot.jsx)("p",{children:(0,ot.jsx)("a",{href:"tel:919810098791",children:"+91 - 9810098791"})})]})]})]}),(0,ot.jsxs)("div",{className:"contact-form",children:[(0,ot.jsx)("h3",{children:"Send us a Message"}),(0,ot.jsxs)("form",{action:"POST",ref:e,children:[(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"name",children:"Name"}),(0,ot.jsx)("input",{type:"text",id:"name",name:"Name",value:n.Name,onChange:o,required:!0})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"name",children:"Mobile"}),(0,ot.jsx)("input",{type:"text",id:"name",name:"Mobile",value:n.Mobile,onChange:o,required:!0})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"email",children:"Email"}),(0,ot.jsx)("input",{type:"email",id:"email",name:"Email",value:n.Email,onChange:o,required:!0})]}),(0,ot.jsxs)("div",{className:"form-group",children:[(0,ot.jsx)("label",{htmlFor:"message",children:"Message"}),(0,ot.jsx)("textarea",{id:"message",name:"Message",rows:"5",value:n.Message,onChange:o,required:!0})]}),(0,ot.jsx)("button",{type:"submit",onClick:async t=>{t.preventDefault();const{Name:i,Email:s,Mobile:o,Message:a}=n;
2if(i&&s&&o&&a){if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(n.Email))return void TO.warning("Please enter a valid email address");if("undefined"!==typeof o){if(!new RegExp(/^[0-9\b]+$/).test(n.Mobile))return void TO.warning("Please enter only number.");if(10!==n.Mobile.length)return void TO.warning("Please enter 10 digit Mobile number.")}try{pL.add({Name:i,Email:s,Mobile:o,Message:a}).then((e=>{TO.success("Message Sent Successfully")})).catch((e=>{console.error("error:",e)})),zR("service_2u7g9er","template_3ygcxp5",e.current,"UDqjA4S3qCAI1MPCq").then((e=>{console.log(e.text)}),(e=>{console.log(e.text)})),r({Name:"",Email:"",Mobile:"",Message:""})}catch(t){console.error("Error adding document: ",t),TO.warning("Error adding document")}}else TO.warning("Please fill the data")},className:"submit-button",children:"Send Message"})]})]})]})]})]})})},gL=()=>{const[e,n]=(0,t.useState)(!0);return(0,t.useEffect)((()=>{setTimeout((()=>{n(!1)}),3e3)}),[]),(0,ot.jsx)(Ye,{children:e?(0,ot.jsx)(ut,{}):(0,ot.jsxs)(ot.Fragment,{children:[(0,ot.jsx)(ct,{}),(0,ot.jsxs)(ge,{children:[(0,ot.jsx)(pe,{path:"/",element:(0,ot.jsx)(OO,{})}),(0,ot.jsx)(pe,{path:"/about-us",element:(0,ot.jsx)(JO,{})}),(0,ot.jsx)(pe,{path:"/laboratory-services",element:(0,ot.jsx)(iL,{})}),(0,ot.jsx)(pe,{path:"/test-kits",element:(0,ot.jsx)(oL,{})}),(0,ot.jsx)(pe,{path:"/sustainability",element:(0,ot.jsx)(lL,{})}),(0,ot.jsx)(pe,{path:"/technicals",element:(0,ot.jsx)(cL,{})}),(0,ot.jsx)(pe,{path:"/how-we-add-value",element:(0,ot.jsx)(hL,{})}),(0,ot.jsx)(pe,{path:"/career",element:(0,ot.jsx)(fL,{})}),(0,ot.jsx)(pe,{path:"/contact",element:(0,ot.jsx)(mL,{})}),(0,ot.jsx)(pe,{path:"*",element:(0,ot.jsx)(at,{})})," "]}),(0,ot.jsx)(xc,{})]})})},yL=e=>{e&&e instanceof Function&&n.e(453).then(n.bind(n,6453)).then((t=>{let{getCLS:n,getFID:r,getFCP:i,getLCP:s,getTTFB:o}=t;n(e),r(e),i(e),s(e),o(e)}))};r.createRoot(document.getElementById("root")).render((0,ot.jsx)(t.StrictMode,{children:(0,ot.jsx)(gL,{})})),yL()})()})();
3//# sourceMappingURL=main.415bbea6.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.