PageSourceSearch

https://foodie-vvn.netlify.app/static/js/main.3d00a230.js

js foodie-vvn.netlify.app collected 2026-10-03 10:44:45 UTC 1,033,984 bytes, 3 lines download raw bytes

1/*! For license information please see main.3d00a230.js.LICENSE.txt */
2!function(){var e={110:function(e,t,n){"use strict";var r=n(309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=l(n);f&&(o=o.concat(f(n)));for(var s=u(t),v=u(n),m=0;m<o.length;++m){var y=o[m];if(!a[y]&&(!r||!r[y])&&(!v||!v[y])&&(!s||!s[y])){var g=d(n,y);try{c(t,y,g)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case c:case d:case m:case v:case u:return e;default:return t}}case i:return t}}}function x(e){return k(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return x(e)||k(e)===l},t.isConcurrentMode=x,t.isContextConsumer=function(e){return k(e)===c},t.isContextProvider=function(e){return k(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===o},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===o||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===y)},t.typeOf=k},309:function(e,t,n){"use strict";e.exports=n(746)},176:function(e){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,a,o,s],l=0;(u=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},888:function(e,t,n){"use strict";var r=n(47);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},7:function(e,t,n){e.exports=n(888)()},47:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},33:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"undefined"!=typeof window&&(this.image=new Image,this.resolve=null,this.video=document.createElement("video"),this.events())}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"events",value:function(){var e=this;this.video.addEventListener("loadeddata",(function(){return e.resolve&&e.resolve(!0)})),this.video.addEventListener("loadeddata",(function(){return e.resolve&&e.resolve(!1)})),this.image.onload=function(){return e.resolve&&e.resolve(!0)},this.image.onerror=function(){return e.resolve&&e.resolve(!1)}}},{key:"load",value:function(e){var t=this;return new Promise((function(n){e||n(!0),t.resolve=n,t.loading=!0,t.ended=!1,e.match(/\.(mp4|webm)/i)&&t.video.setAttribute("src",e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&(t.image.src=e,(t.image.width>0||t.image.height>0)&&n(!0))}))}},{key:"loadImage",value:function(e){var t=this,n=new Image,r=!1;n.onload=function(){r||t.pumpLoaded()},n.onerror=function(){r||t.pumpLoaded()},n.src=e,!1===r&&(n.width>0||n.height>0)&&(r=!0,this.pumpLoaded())}},{key:"loadVideo",value:function(e){var t=this,n=document.createElement("video");n.addEventListener("loadeddata",(function(){t.pumpLoaded()})),n.addEventListener("error",(function(){t.pumpLoaded()})),n.setAttribute("src",e)}},{key:"pumpLoaded",value:function(){this.loaded+=1,this.loaded===this.toLoad&&this.resolver(!0)}},{key:"startLoad",value:function(e){e.match(/\.(mp4|webm)/i)&&this.loadVideo(e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&this.loadImage(e)}},{key:"loadMultiple",value:function(e){var t=this;return this.loaded=0,this.toLoad=e.length,new Promise((function(n){t.resolver=n,e.forEach((function(e){t.startLoad(e)}))}))}}]),e}();function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t&&t[e]||e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return h}));var r=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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 s=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach((function(t){e.classList.add(t)}))},u=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach((function(t){e.classList.remove(t)}))},c=function(e){return"string"==typeof e&&e.split(" ")[0]||""},l=function(e){var t=Array.isArray(e)?e:[e];if(1===t.length)return t[0];for(var n=a({},t[0]),r=1;r<t.length;r+=1){for(var i in n)t[r][i]&&(n[i]=[n[i],t[r][i]].join(" "));for(var o in t[r])n[o]||(n[o]=t[r][o])}return n};function f(e){var t,n=e.rootElement,i=e.cssModule,a=e.disabled,o=e.organicArrows,s=e.className,u=e.total,c=e.current,l=e.infinite,f=e.animation,d=e.fillParent,h=[n];return f&&h.push("".concat(n,"--").concat(f)),!0===o&&h.push("".concat(n,"--organic-arrows")),!0===a&&h.push("".concat(n,"--disabled")),d&&h.push("".concat(n,"--fill-parent")),!1===l&&(0===c&&h.push("".concat(n,"--first")),c===u-1&&h.push("".concat(n,"--last"))),i&&i[n]&&(h=Object(r.b)(h,i)),s&&(t=h).push.apply(t,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(s.split(" "))),h.join(" ").trim().replace(/[\s]+/gi," ")}function d(e){var t=[];return(e.constructor===Array?e:[e]).forEach((function(e){var n=a({},e.props);e.props["data-src"]&&(n.source=e.props["data-src"]),e.props["data-slug"]&&(n.slug=e.props["data-slug"]),t.push(n)})),t}function h(e,t){return{boxA:Object(r.c)("".concat(e,"__boxA"),t),boxB:Object(r.c)("".concat(e,"__boxB"),t),box:Object(r.c)("".concat(e,"__box"),t),container:Object(r.c)("".concat(e,"__container"),t),wrapper:Object(r.c)("".concat(e,"__wrapper"),t),bar:Object(r.c)("".concat(e,"__bar"),t),barActive:Object(r.c)("".concat(e,"__bar--active"),t),barEnd:Object(r.c)("".concat(e,"__bar--end"),t),content:Object(r.c)("".concat(e,"__content"),t),contentStatic:Object(r.c)("".concat(e,"__content--static"),t),contentMoveLeft:Object(r.c)("".concat(e,"__content--moveLeft"),t),contentMoveRight:Object(r.c)("".concat(e,"__content--moveRight"),t),controlsHidden:Object(r.c)("".concat(e,"__controls--hidden"),t),controlsActive:Object(r.c)("".concat(e,"__controls--active"),t),animated:Object(r.c)("".concat(e,"--animated"),t),animatedMobile:Object(r.c)("".concat(e,"--animated-mobile"),t),contentExit:Object(r.c)("".concat(e,"__content--exit"),t),exit:Object(r.c)("".concat(e,"--exit"),t),active:Object(r.c)("".concat(e,"--active"),t),moveLeft:Object(r.c)("".concat(e,"--moveLeft"),t),moveRight:Object(r.c)("".concat(e,"--moveRight"),t),startUp:Object(r.c)("".concat(e,"__startUp"),t),bulletsLoading:Object(r.c)("".concat(e,"__bullets--loading"),t)}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerance,i=void 0===r?0:r,a=n.propertyName;return new Promise((function(n){if(e){var r=null,o=t.charAt(0).toUpperCase()+t.slice(1),s=0;void 0!==e.style["Webkit"+o]&&(r="webkit"+o+"End"),void 0!==e.style.OTransition&&(r="o"+t+"End"),void 0!==e.style[t]&&(r=t+"end"),e.clearCssEndEvent&&e.clearCssEndEvent(),e.clearCssEndEvent=function(){e.removeEventListener(r,u)},e.addEventListener(r,u)}else n(!1);function u(t){if((t.srcElement||t.target)===e){if(s>=i){if(a&&a!==t.propertyName)return;e.removeEventListener(r,u),n(t)}s+=1}}}))}function i(e){window&&window.requestAnimationFrame((function(){window.requestAnimationFrame(e)}))}
2Object.defineProperty(t,"__esModule",{value:!0}),t.setCssEndEvent=r,t.beforeCssLayout=function(e){window&&window.requestAnimationFrame(e)},t.beforeNextCssLayout=i,t.beforeFutureCssLayout=function(e,t){!function e(t,n){window&&t&&Number.isInteger(t)&&t>0?window.requestAnimationFrame((function(){e(t-1,n)})):n()}(e+1,t)},t.onceNextCssLayout=function(){return new Promise((function(e){i(e)}))},t.onceTransitionEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n){r(e,"transition",t).then(n)}))},t.onceAnimationEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n){r(e,"animation",t).then(n)}))}}])},,function(e,t,n){e.exports=n(7)},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));var r=n(3),i=n.n(r),a=n(4),o=n(2),s=n.n(o),u=n(0),c=n(1);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m="awssld";function y(e){var t,n;return n=t=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}(this,h(n).call(this,e))).forceStop=!1,t.rootElement=e.rootElement||m,t.mergedStyles=Object(c.e)(e.cssModule),t.state={selected:0},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,t),function(e,t,n){t&&d(e.prototype,t),n&&d(e,n)}(n,[{key:"componentWillReceiveProps",value:function(e){this.mergedStyles=Object(c.e)(e.cssModule),this.checkStartStatus(e)}},{key:"setInfo",value:function(e){this.currentInfo=e,e.currentIndex!==this.state.selected&&this.setState({selected:e.currentIndex})}},{key:"setTimer",value:function(e){var t=this;if(!0!==this.forceStop){var n=e.querySelector(".".concat(Object(c.c)(Object(u.c)("".concat(this.rootElement,"__timer"),this.mergedStyles)))),r=e.querySelector("div");r&&(n||(n=this.createBarElement(),r.appendChild(n)),n.classList.remove(Object(u.c)("".concat(this.rootElement,"__timer--animated"),this.mergedStyles)),Object(a.onceNextCssLayout)().then((function(){n.classList.remove(Object(u.c)("".concat(t.rootElement,"__timer--run"),t.mergedStyles)),n.classList.remove(Object(u.c)("".concat(t.rootElement,"__timer--fast"),t.mergedStyles)),Object(a.onceNextCssLayout)().then((function(){n.classList.add(Object(u.c)("".concat(t.rootElement,"__timer--animated"),t.mergedStyles)),Object(a.onceNextCssLayout)().then((function(){n.classList.add(Object(u.c)("".concat(t.rootElement,"__timer--run"),t.mergedStyles)),Object(a.onceTransitionEnd)(n).then((function(){t.clearBarAnimation(n),!0!==t.forceStop&&!1!==t.props.play&&t.goTonext()}))}))}))})))}}},{key:"getBarFromSlide",value:function(e){return e.querySelector(".".concat(Object(c.c)(Object(u.c)("".concat(this.rootElement,"__timer"),this.mergedStyles))))||null}},{key:"checkStartStatus",value:function(e){this.currentInfo&&this.props.play!==e.play&&(!0===e.play&&this.currentInfo&&this.setTimer(this.currentInfo.currentSlide),!1===e.play&&this.forceClearBar(this.currentInfo))}},{key:"createBarElement",value:function(){var e=document.createElement("div");return e.classList.add(Object(u.c)("".concat(this.rootElement,"__timer"),this.mergedStyles)),e.style.setProperty("--timer-delay","".concat(this.props.interval,"ms")),e.style.setProperty("--timer-height",this.props.timerHeight),e.style.setProperty("--timer-background-color",this.props.timerBackgroun
2dColor),e}},{key:"clearBar",value:function(e){var t=this,n=this.getBarFromSlide(e.currentSlide);n&&(n.clearCssEndEvent&&n.clearCssEndEvent(),n.classList.add(Object(u.c)("".concat(this.rootElement,"__timer--fast"),this.mergedStyles)),Object(a.onceTransitionEnd)(n).then((function(){t.clearBarAnimation(n)})))}},{key:"clearBarAnimation",value:function(e){e.classList.remove(Object(u.c)("".concat(this.rootElement,"__timer--animated"),this.mergedStyles))}},{key:"restartBarAnimation",value:function(e){e.classList.remove(Object(u.c)("".concat(this.rootElement,"__timer--run"),this.mergedStyles)),e.classList.remove(Object(u.c)("".concat(this.rootElement,"__timer--fast"),this.mergedStyles))}},{key:"forceClearBar",value:function(e){var t=this.getBarFromSlide(e.currentSlide);this.restartBarAnimation(t)}},{key:"goTonext",value:function(){var e=this.currentInfo,t=e.currentIndex+1,n=t>e.slides-1?0:t;n!==this.state.selected?this.setState({selected:n}):this.forceClearBar(this.currentInfo)}},{key:"render",value:function(){var t=this,n=this.props,r=(n.inverval,n.play),a=n.cancelOnInteraction,o=(n.showTimer,n.onTransitionStart),s=n.onTransitionEnd,u=n.onFirstMount,c=n.onTransitionRequest,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,["inverval","play","cancelOnInteraction","showTimer","onTransitionStart","onTransitionEnd","onFirstMount","onTransitionRequest"]);return i.a.createElement(e,f({},l,{selected:this.state.selected,onFirstMount:function(e){u&&u(e),l.startupScreen||(t.setInfo(e),!0===r&&t.setTimer(e.currentSlide))},onTransitionStart:function(e){var n=t.getBarFromSlide(e.nextSlide);n&&t.restartBarAnimation(n),o&&o(e)},onTransitionRequest:function(e){t.clearBar(e),t.currentInfo=e,!0===a&&(t.forceStop=!0),c&&c(e)},onTransitionEnd:function(e){t.setInfo(e),!0===r&&t.setTimer(e.currentSlide),s&&s(e)}}))}}]),n}(r.Component),v(t,"propTypes",{interval:s.a.number,cssModule:s.a.any,play:s.a.bool,cancelOnInteraction:s.a.bool,timerHeight:s.a.string,timerBackgroundColor:s.a.string,showTimer:s.a.bool,onTransitionStart:s.a.func,onTransitionEnd:s.a.func,onTransitionRequest:s.a.func,rootElement:s.a.string}),v(t,"defaultProps",{interval:2e3,play:!1,cancelOnInteraction:!1,timerHeight:"6px",cssModule:null,timerBackgroundColor:"rgba(0, 0, 0, 0.15)",showTimer:!0,onTransitionStart:null,onTransitionEnd:null,onTransitionRequest:null,rootElement:m}),n}}])},e.exports=r(n(7),n(791))},878:function(e,t,n){var r;r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o}));var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),"undefined"!=typeof window&&(this.image=new Image,this.resolve=null,this.video=document.createElement("video"),this.events())}return function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(e,[{key:"events",value:function(){var e=this;this.video.addEventListener("loadeddata",(function(){return e.resolve&&e.resolve(!0)})),this.video.addEventListener("loadeddata",(function(){return e.resolve&&e.resolve(!1)})),this.image.onload=function(){return e.resolve&&e.resolve(!0)},this.image.onerror=function(){return e.resolve&&e.resolve(!1)}}},{key:"load",value:function(e){var t=this;return new Promise((function(n){e||n(!0),t.resolve=n,t.loading=!0,t.ended=!1,e.match(/\.(mp4|webm)/i)&&t.video.setAttribute("src",e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&(t.image.src=e,(t.image.width>0||t.image.height>0)&&n(!0))}))}},{key:"loadImage",value:function(e){var t=this,n=new Image,r=!1;n.onload=function(){r||t.pumpLoaded()},n.onerror=function(){r||t.pumpLoaded()},n.src=e,!1===r&&(n.width>0||n.height>0)&&(r=!0,this.pumpLoaded())}},{key:"loadVideo",value:function(e){var t=this,n=document.createElement("video");n.addEventListener("loadeddata",(function(){t.pumpLoaded()})),n.addEventListener("error",(function(){t.pumpLoaded()})),n.setAttribute("src",e)}},{key:"pumpLoaded",value:function(){this.loaded+=1,this.loaded===this.toLoad&&this.resolver(!0)}},{key:"startLoad",value:function(e){e.match(/\.(mp4|webm)/i)&&this.loadVideo(e),e.match(/\.(png|jp(e)?g|gif|webp)/i)&&this.loadImage(e)}},{key:"loadMultiple",value:function(e){var t=this;return this.loaded=0,this.toLoad=e.length,new Promise((function(n){t.resolver=n,e.forEach((function(e){t.startLoad(e)}))}))}}]),e}();function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!t)return e.join(" ").trim();for(var n=[],r=e.length;r--;)t[e[r]]&&n.push(t[e[r]]);return n}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t&&t[e]||e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"f",(function(){return h}));var r=n(0);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function 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 s=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach((function(t){e.classList.add(t)}))},u=function(e,t){"string"==typeof t&&e&&t.split(" ").forEach((function(t){e.classList.remove(t)}))},c=function(e){return"string"==typeof e&&e.split(" ")[0]||""},l=function(e){var t=Array.isArray(e)?e:[e];if(1===t.length)return t[0];for(var n=a({},t[0]),r=1;r<t.length;r+=1){for(var i in n)t[r][i]&&(n[i]=[n[i],t[r][i]].join(" "));for(var o in t[r])n[o]||(n[o]=t[r][o])}return n};function f(e){var t,n=e.rootElement,i=e.cssModule,a=e.disabled,o=e.organicArrows,s=e.className,u=e.total,c=e.current,l=e.infinite,f=e.animation,d=e.fillParent,h=[n];return f&&h.push("".concat(n,"--").concat(f)),!0===o&&h.push("".concat(n,"--organic-arrows")),!0===a&&h.push("".concat(n,"--disabled")),d&&h.push("".concat(n,"--fill-parent")),!1===l&&(0===c&&h.push("".concat(n,"--first")),c===u-1&&h.push("".concat(n,"--last"))),i&&i[n]&&(h=Object(r.b)(h,i)),s&&(t=h).push.apply(t,function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(s.split(" "))),h.join(" ").trim().replace(/[\s]+/gi," ")}function d(e){var t=[];return(e.constructor===Array?e:[e]).forEach((function(e){var n=a({},e.props);e.props["data-src"]&&(n.source=e.props["data-src"]),e.props["data-slug"]&&(n.slug=e.props["data-slug"]),t.push(n)})),t}function h(e,t){return{boxA:Object(r.c)("".concat(e,"__boxA"),t),boxB:Object(r.c)("".concat(e,"__boxB"),t),box:Object(r.c)("".concat(e,"__box"),t),container:Object(r.c)("".concat(e,"__container"),t),wrapper:Object(r.c)("".concat(e,"__wrapper"),t),bar:Object(r.c)("".concat(e,"__bar"),t),barActive:Object(r.c)("".concat(e,"__bar--active"),t),barEnd:Object(r.c)("".concat(e,"__bar--end"),t),content:Object(r.c)("".concat(e,"__content"),t),contentStatic:Object(r.c)("".concat(e,"__content--static"),t),contentMoveLeft:Object(r.c)("".concat(e,"__content--moveLeft"),t),contentMoveRight:Object(r.c)("".concat(e,"__content--moveRight"),t),controlsHidden:Object(r.c)("".concat(e,"__controls--hidden"),t),controlsActive:Object(r.c)("".concat(e,"__controls--active"),t),animated:Object(r.c)("".concat(e,"--animated"),t),animatedMobile:Object(r.c)("".concat(e,"--animated-mobile"),t),contentExit:Object(r.c)("".concat(e,"__content--exit"),t),exit:Object(r.c)("".concat(e,"--exit"),t),active:Object(r.c)("".concat(e,"--active"),t),moveLeft:Object(r.c)("".concat(e,"--moveLeft"),t),moveRight:Object(r.c)("".concat(e,"--moveRight"),t),startUp:Object(r.c)("".concat(e,"__startUp"),t),bulletsLoading:Object(r.c)("".concat(e,"__bullets--loading"),t)}}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.tolerance,i=void 0===r?0:r,a=n.propertyName;return new Promise((function(n){if(e){var r=null,o=t.charAt(0).toUpperCase()+t.slice(1),s=0;void 0!==e.style["Webkit"+o]&&(r="webkit"+o+"End"),void 0!==e.style.OTransition&&(r="o"+t+"End"),void 0!==e.style[t]&&(r=t+"end"),e.clearCssEndEvent&&e.clearCssEndEvent(),e.clearCssEndEvent=function(){e.removeEventListener(r,u)},e.addEventListener(r,u)}else n(!1);function u(t){if((t.srcElement||t.target)===e){if(s>=i){if(a&&a!==t.propertyName)return;e.removeEventListener(r,u),n(t)}s+=1}}}))}function i(e){window&&window.requestAnimationFrame((function(){window.requestAnimationFrame(e)}))}
2Object.defineProperty(t,"__esModule",{value:!0}),t.setCssEndEvent=r,t.beforeCssLayout=function(e){window&&window.requestAnimationFrame(e)},t.beforeNextCssLayout=i,t.beforeFutureCssLayout=function(e,t){!function e(t,n){window&&t&&Number.isInteger(t)&&t>0?window.requestAnimationFrame((function(){e(t-1,n)})):n()}(e+1,t)},t.onceNextCssLayout=function(){return new Promise((function(e){i(e)}))},t.onceTransitionEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n){r(e,"transition",t).then(n)}))},t.onceAnimationEnd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n){r(e,"animation",t).then(n)}))}}])},function(e,t,n){e.exports=n(13)},,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(3),i=n.n(r),a=n(2),o=n.n(a),s=n(4),u=n(0),c=n(1);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?h(e):t}(this,d(t).call(this,e)),v(h(n),"bulletClick",(function(e){var t=e.currentTarget;t.classList.add(Object(u.c)("".concat(n.rootElement,"__bullets--loading"),n.props.cssModule));var r=parseInt(t.getAttribute("data-index"),10),i=!(n.props.selected>r);n.props.onClick({index:r,direction:i})})),n.rootElement=e.rootElement,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),function(e,t,n){t&&f(e.prototype,t),n&&f(e,n)}(t,[{key:"renderBullets",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.selected,a=t.media;return(void 0===a?[]:a).map((function(t,a){var o=a===r?Object(u.c)("".concat(e.rootElement,"__bullets--active"),n):null;return i.a.createElement("button",{key:"bullet-".concat(a),"data-index":a,onClick:e.bulletClick,className:o},a)}))}},{key:"render",value:function(){var e=this.props,t=e.cssModule,n=e.rootElement;return i.a.createElement("nav",{className:Object(u.c)("".concat(n,"__bullets"),t)},this.renderBullets())}}]),t}(i.a.Component);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}v(m,"propTypes",{cssModule:o.a.object,rootElement:o.a.string.isRequired,media:o.a.array,onClick:o.a.func,selected:o.a.number}),v(m,"defaultProps",{cssModule:null,selected:0,media:[],onClick:function(){}});var _=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,w(t).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}
2),t&&k(e,t)}(t,e),function(e,t,n){t&&g(e.prototype,t),n&&g(e,n)}(t,[{key:"componentDidMount",value:function(){this.props.onMount({element:this.controls,next:this.next,prev:this.prev})}},{key:"render",value:function(){var e=this,t=this.props,n=t.rootElement,r=t.cssModule,a=t.organicArrows,o=t.buttonContentLeft,s=t.buttonContentRight,c=t.onNext,l=t.onPrev;return i.a.createElement("div",{ref:function(t){e.controls=t,e.props.onMount({element:e.controls,next:e.next||null,prev:e.prev||null})},className:[Object(u.c)("".concat(n,"__controls"),r),Object(u.c)("".concat(n,"__controls--hidden"),r)].join(" ")},i.a.createElement("button",{ref:function(t){e.next=t},"aria-label":"next",className:Object(u.c)("".concat(n,"__next"),r),onClick:c},a?i.a.createElement("span",{className:Object(u.c)("".concat(n,"__controls__arrow-right"),r)}):s),i.a.createElement("button",{ref:function(t){e.prev=t},"aria-label":"previous",className:Object(u.c)("".concat(n,"__prev"),r),onClick:l},a?i.a.createElement("span",{className:Object(u.c)("".concat(n,"__controls__arrow-left"),r)}):o))}}]),t}(i.a.Component);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(){return(E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function j(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}x(_,"propTypes",{cssModule:o.a.object,rootElement:o.a.string.isRequired,onMount:o.a.func.isRequired,onNext:o.a.func.isRequired,onPrev:o.a.func.isRequired,buttonContentLeft:o.a.node,buttonContentRight:o.a.node,organicArrows:o.a.bool}),x(_,"defaultProps",{cssModule:null,organicArrows:!0,buttonContentLeft:null,buttonContentRight:null});var N=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=function(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?j(e):t}(this,(e=O(t)).call.apply(e,[this].concat(i))),I(j(n),"state",{}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(t,e),function(e,t,n){t&&T(e.prototype,t),n&&T(e,n)}(t,[{key:"render",value:function(){var e=this.props,t=e.media,n=e.className,r=t.source,a=t.children,o=t.style,s=(t.loader,t["data-src"],t["data-alt"],t.className),u=(t.onTransitionEnd,t.onTransitionStartOut,t.onTransitionStartIn,t.onTransitionRequestOut,t.onTransitionRequestIn,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,["source","children","style","loader","data-src","data-alt","className","onTransitionEnd","onTransitionStartOut","onTransitionStartIn","onTransitionRequestOut","onTransitionRequestIn"])),c=null;return r&&(c=r.match(/\.(mp4|webm)/)?i.a.createElement("video",{title:t.title||t["data-title"],src:r,type:"video/mp4",controls:!0}):i.a.createElement("img",{alt:t.alt||t.title||t["data-alt"]||null,src:r})),i.a.createElement("div",E({className:n,style:o||null},u),c,a&&i.a.createElement("div",{className:s},t.children))}}]),t}(i.a.Component);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function L(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 D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?L(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function V(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U(e,t){return(U=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}I(N,"propTypes",{media:o.a.object.isRequired,className:o.a.string.isRequired});var B="awssld",q=new u.a,H=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==A(t)&&"function"!=typeof t?V(e):t}(this,F(t).call(this,e)),z(V(n),"clickNext",(function(){var e=null===n.index?0:n.index+1;n.onTransitionRequest("next",e),n.goTo({index:e,direction:!0})})),z(V(n),"clickPrev",(function(){var e=n.index-1;n.onTransitionRequest("prev",e),n.goTo({index:e,direction:!1})})),z(V(n),"touchStart",(function(e){if(!n.animating&&null!==n.index){var t=e.nativeEvent;n.touchStartPoint=t.touches[0].clientX}})),z(V(n),"touchMove",(function(e){if(!n.animating&&n.touchStartPoint){var t=e.nativeEvent,r=t.touches[0].clientX-n.touchStartPoint,i=n[n.active],a=n[n.loader],o=!(r>0),s=Math.abs(r);!1!==n.touchEnabled?s>=10&&(!1===n.loading?n.goTo({index:o?n.index+1:n.index-1,direction:o,touch:!0}):!0===n.direction?(r+=10,Math.abs(r)>i.offsetWidth?r=-i.offsetWidth:r>0&&(r=0),i.style.transform="translate3d(".concat(r,"px, 0, 0)"),a.style.transform="translate3d(calc(100% + ".concat(r,"px), 0, 0)")):(r-=10,Math.abs(r)>i.offsetWidth?r=i.offsetWidth:r<0&&(r=0),i.style.transform="translate3d(".concat(r,"px, 0, 0)"),a.style.transform="translate3d(calc(-100% + ".concat(r,"px), 0, 0)"))):s>20&&(n.touchEnabled=!0,n.touchStartPoint=t.touches[0].clientX)}})),z(V(n),"touchEnd",(function(){!n.animating&&n.touchStartPoint&&n.loading&&(n.touchStartPoint=null,n.animating=!0,n.touchEnabled=!1,n.animateMobileEnd((function(){n.index=n.nextIndex,n.setState({index:n.index}),n.onTransitionEnd(),n.animating=!1,n.loading=!1,n.unchargeIndex()})))})),z(V(n),"bulletClick",(function(e){var t=e.currentTarget,r=parseInt(t.getAttribute("data-index"),10);n.goTo({index:r,direction:!(n.index>r)},(function(){Object(s.onceNextCssLayout)().then((function(){Object(c.a)(t,n.classNames.bulletsLoading)}))}))})),n.rootElement=e.rootElement||B,n.boxA=null,n.boxB=null,n.loaded=[],n.active="boxA",n.loader="boxB",n.nextIndex=null,n.loading=!1,n.media=null,n.started=!1,n.touchEnabled=!1,n.setupStartup(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(t,e),function(e,t,n){t&&M(e.prototype,t),n&&M(e,n)}(t,[{key:"componentDidMount",value:function(){var e=this;Object(c.a)(this.boxA,this.classNames.active),this.props.startupScreen&&(this.buttons&&(Object(c.a)(this.buttons.element,this.classNames.controlsHidden),Object(c.a)(this.buttons.element,this.classNames.controlsActive)),!0===this.props.startup&&this.media.length>0&&this.startup()),this.props.onFirstMount&&this.props.onFirstMount(D({},this.getInfo())),this.buttons&&Object(s.onceNextCssLayout)().then((function(){e.buttons&&e.buttons.element&&Object(c.b)(e.buttons.element,e.classNames.controlsHidden)}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){if(this.checkChildren(e),this.setupClassNames(Object(c.e)(e.cssModule)),e.name===this.props.name)if(!0!==e.startup||!1!==this.started)if(e.selected===this.props.selected)this.refreshSlider();else{var t=this.getIndex(e.selected),n=!0===e.infinite&&0===t&&this.index===this.media.length-1||!(this.index>t);this.goTo({index:t,direction:n})}else this.startup();else this.resetSlider(e.selected)}},{key:"onTransitionStart",value:function(){var e=this.media[this.index],t=this.media[this.nextIndex],n=D({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:t});this.props.onTransitionStart&&this.props.onTransitionStart(n),e&&e.onTransitionStartOut&&e.onTransitionStartOut(n),t&&t.onTransitionStartIn&&t.onTransitionStartIn(n)}},{key:"onTransitionRequest",value:function(e,t){var n=this.media[this.index],r=this.checkIndex(t),i=this.media[r],a=D({eventName:e},this.getInfo(),{nextSlide:null,nextIndex:r,nextMedia:i});this.props.onTransitionRequest&&this.props.onTransitionRequest(a),n&&n.onTransitionRequestOut&&n.onTransitionRequestOut(a),i&&i.onTransitionRequestIn&&i.onTransitionRequestIn(a)}},{key:"onTransitionEnd",value:function(){var e=this.media[this.index],t=D({},this.getInfo());this.props.onTransitionEnd&&this.props.onTransitionEnd(t),e&&e.onTransitionEnd&&e.onTransitionEnd(t)}},{key:"getRootClassName",value:function(){var e=this.props,t=e.animation,n=e.className,r=e.cssModule,i=e.disabled,a=e.fillParent,o=e.infinite,s=e.organicArrows;return Object(c.d)({animation:t,className:n,cssModule:Object(c.e)(r),current:this.state.index,disabled:i,fillParent:a,infinite:o,organicArrows:s,rootElement:this.rootElement,total:this.media.length})}},{key:"setupStartup",value:function(e){if(this.checkChildren(e),this.setupClassNames(Object(c.e)(e.cssModule)),e.startupScreen){var t=this.getIndex(this.props.selected);this.index=null,this.state={index:this.index,boxA:{className:this.classNames.startUp,children:e.startupScreen},boxB:this.media[t]||null}}else this.started=!0,this.index=this.getIndex(this.props.selected),this.state={index:this.index,boxA:this.media[this.index]||null,boxB:null}}},{key:"getInfo",value:function(){return{slides:this.media.length,currentIndex:this.index,currentSlide:this[this.active],currentMedia:this.media[this.index],element:this.slider}}},{key:"getProgressBar",value:function(){if(!document)return{};var e=document.createElement("div");return e.className=this.classNames.bar,e}},{key:"setupClassNames",value:function(e){this.classNames=Object(c.f)(this.rootElement,e)}},{key:"getIndex",value:function(e){var t=0;return"number"==typeof e?e:("string"==typeof e&&this.media.forEac
2h((function(n,r){n.slug===e&&(t=r)})),t)}},{key:"refreshSlider",value:function(){var e;if(!0!==this.loading&&!1!==this.props.startup&&null!==this.index){var t=this.index;this.setState((z(e={index:t},this.active,this.media[this.getIndex(t)]),z(e,this.loader,null),e))}}},{key:"startup",value:function(){var e=this;this.started=!0,setTimeout((function(){e.goTo({index:e.props.selected,direction:!0,touch:!1})}),this.props.startupDelay||75)}},{key:"resetSlider",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.index=n,this.setState((z(e={index:n},this.active,this.media[this.getIndex(n)]),z(e,this.loader,null),e),(function(){t.props.onResetSlider&&t.props.onResetSlider(D({},t.getInfo()))}))}},{key:"checkChildren",value:function(e){e.children&&(e.children!==this.props.children||this.props.children&&!this.media)?this.media=Object(c.g)(e.children):e.media&&e.media.length?this.media=e.media:this.media||(this.media=[])}},{key:"startBarAnimation",value:function(e){var t=this,n=e.active;return new Promise((function(e){t.bar=t.getProgressBar(),n.appendChild(t.bar),Object(s.onceNextCssLayout)().then((function(){Object(s.onceNextCssLayout)().then((function(){Object(c.a)(t.bar,t.classNames.barActive),e()}))}))}))}},{key:"endBarAnimation",value:function(e){var t=this;this.bar&&Object(s.onceNextCssLayout)().then((function(){Object(s.onceTransitionEnd)(t.bar).then((function(){e()})),Object(c.a)(t.bar,t.classNames.barEnd)}))}},{key:"loadContent",value:function(e,t){var n=this;return new Promise((function(r,i){if(n.props.onLoadStart||t&&t.onLoadStart){var a=n.props.onLoadStart||t&&t.onLoadStart;return n.startBarAnimation({active:e}),void a(D({next:function(){n.endBarAnimation((function(){r(n.bar)}))},error:i},n.getInfo()))}if(t&&(t.source||t.preload)){var o=t.preload?t.preload:t.source&&[t.source]||[];return!0===n.checkLoadedUrls(o)?void r(null):(n.startBarAnimation({active:e}),void q.loadMultiple(o).then((function(){n.pushLoaded(o),n.endBarAnimation((function(){r(n.bar)}))})))}r(null)}))}},{key:"pushLoaded",value:function(e){this.loaded=[].concat(R(this.loaded),R(e))}},{key:"checkLoadedUrls",value:function(e){var t=this,n=!0;return e.forEach((function(e){t.loaded.includes(e)||(n=!1)})),n}},{key:"startAnimationMobile",value:function(){var e=this.direction,t=this[this.active],n=this[this.loader],r=e?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,i=e?this.classNames.contentMoveLeft:this.classNames.contentMoveRight;this.props.onTransitionStart&&this.props.onTransitionStart(D({},this.getInfo(),{nextSlide:this[this.loader],nextIndex:this.nextIndex,nextMedia:this.media[this.nextIndex]}));var a=t.querySelector(".".concat(Object(c.c)(this.classNames.content)));Object(c.a)(a,i),Object(c.a)(a,this.classNames.contentExit);var o=n.querySelector(".".concat(Object(c.c)(this.classNames.content)));Object(c.a)(o,r),Object(c.a)(o,this.classNames.contentStatic),Object(c.a)(t,this.classNames.animated),Object(c.a)(n,this.classNames.animated)}},{key:"animateMobileEnd",value:function(e){var t=this,n=this.direction,r=this[this.active],i=this[this.loader],a=n?this.classNames.moveLeft:this.classNames.moveRight,o=n?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,u=n?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,l=i.querySelector(".".concat(Object(c.c)(this.classNames.content))),f=r.querySelector(".".concat(Object(c.c)(this.classNames.content)));Object(c.b)(l,this.classNames.contentStatic),Object(c.a)(i,this.classNames.animatedMobile),Object(c.a)(r,this.classNames.animatedMobile),Object(s.onceNextCssLayout)().then((function(){i.style.transform="translate3d(0, 0, 0)",r.style.transform="translate3d(".concat(t.direction?"-":"","100%, 0, 0)"),Object(s.onceTransitionEnd)(r).then((function(){t.loading&&(Object(c.b)(r,t.classNames.animated),Object(c.b)(i,t.classNames.animated),Object(c.a)(i,t.classNames.active),Object(c.b)(r,t.classNames.active),Object(c.b)(r,a),Object(c.b)(i,t.classNames.animatedMobile),Object(c.b)(r,t.classNames.animatedMobile),Object(c.b)(f,u),Object(c.b)(f,t.classNames.c
2ontentExit),Object(c.b)(l,o),t.buttons&&setTimeout((function(){t.buttons&&Object(c.b)(t.buttons.element,t.classNames.controlsActive)}),t.props.controlsReturnDelay),t.activeArrow&&(Object(c.b)(t.activeArrow,t.activeArrowClass),t.activeArrow=null,t.activeArrowClass=null),t.active="boxA"===t.active?"boxB":"boxA",t.loader="boxA"===t.active?"boxB":"boxA",e&&e())}))}))}},{key:"runAnimation",value:function(e){var t=this,n=e.active,r=e.media,i=e.contentExitMoveClass,a=e.contentEnterMoveClass,o=e.activeContentElement,u=e.loaderContentElement,l=e.loader,f=e.loaderPosition,d=e.exitPosition,h=e.callback,p=e.transitionDelay;this.loadContent(n,r).then((function(e){Object(c.a)(o,i),Object(c.a)(o,t.classNames.contentExit),Object(c.a)(u,a),Object(c.a)(u,t.classNames.contentStatic),setTimeout((function(){Object(s.onceNextCssLayout)().then((function(){Object(c.a)(n,t.classNames.animated),Object(c.a)(l,t.classNames.animated),Object(c.b)(u,t.classNames.contentStatic),Object(c.a)(n,t.classNames.exit),Object(c.a)(l,f),Object(c.a)(n,d),Object(s.onceAnimationEnd)(n).then((function(){Object(c.a)(l,t.classNames.active),Object(c.b)(l,f),Object(c.b)(l,t.classNames.animated),Object(c.b)(n,t.classNames.animated),Object(c.b)(n,t.classNames.active),Object(c.b)(n,d),Object(c.b)(n,t.classNames.exit),Object(c.b)(o,i),Object(c.b)(o,t.classNames.contentExit),Object(c.b)(u,a),e&&n.removeChild(e),t.buttons&&setTimeout((function(){t.buttons&&Object(c.b)(t.buttons.element,t.classNames.controlsActive)}),t.props.controlsReturnDelay),t.active="boxA"===t.active?"boxB":"boxA",t.loader="boxA"===t.active?"boxB":"boxA";var r=!t.activeArrow;t.activeArrow&&(Object(s.onceTransitionEnd)(t.activeArrow,{tolerance:null===t.index?0:2}).then((function(){t.releaseTransition()})),Object(c.b)(t.activeArrow,t.activeArrowClass),t.activeArrow=null,t.activeArrowClass=null),h({release:r})}))}))}),p)}))}},{key:"releaseTransition",value:function(){this.loading=!1}},{key:"startAnimation",value:function(e,t,n){var r=this.props.transitionDelay,i=this[this.active],a=this[this.loader],o=e?this.classNames.moveRight:this.classNames.moveLeft,s=e?this.classNames.moveLeft:this.classNames.moveRight,u=e?this.classNames.contentMoveRight:this.classNames.contentMoveLeft,l=e?this.classNames.contentMoveLeft:this.classNames.contentMoveRight,f=i.querySelector(".".concat(Object(c.c)(this.classNames.content))),d=a.querySelector(".".concat(Object(c.c)(this.classNames.content)));i.style.removeProperty("transform"),a.style.removeProperty("transform"),this.onTransitionStart();var h={active:i,media:t,contentExitMoveClass:l,contentEnterMoveClass:u,activeContentElement:f,loaderContentElement:d,loader:a,loaderPosition:o,exitPosition:s,callback:n,transitionDelay:r};this.runAnimation(h)}},{key:"goTo",value:function(e){var t=this,n=e.index,r=e.direction,i=e.touch,a=void 0!==i&&i,o=this.getIndex(n);!0!==this.loading&&n!==this.index?(this.loading=!0,this.direction=r,!0!==a?this.activateArrows(r,(function(){t.chargeIndex(o,(function(e){t.renderedLoader=!0,t.startAnimation(r,e,(function(e){var n=e.release,r=void 0===n||n;t.index=t.nextIndex,t.setState({index:t.index},(function(){t.onTransitionEnd(),!0===r&&t.releaseTransition()}))}))}))})):this.chargeIndex(o,(function(){t.activateArrows(r),t.startAnimationMobile()}))):this.props.onTransitionReject&&this.props.onTransitionReject(D({},this.getInfo(),{forceTransition:function(){t.goTo({index:n,direction:r,touch:a})}}))}},{key:"checkIndex",value:function(e){return e>this.media.length-1?0:e<0?this.media.length-1:e}},{key:"chargeIndex",value:function(e,t){this.nextIndex=this.checkIndex(e);var n={},r=this.media[this.nextIndex];n[this.loader]=D({loader:!0},r),this.setState(n,(function(){t(r)}))}},{key:"unchargeIndex",value:function(){var e={};e[this.loader]=null,this.setState(e,(function(){}))}},{key:"activateArrows",value:function(e,t){var n=e?"right":"left",r=Object(c.e)(this.props.cssModule),i=Object(c.c)(Object(u.c)("".concat(this.rootElement,"__controls__arrow-").concat(n),r));if(this.buttons){var a=e?this.buttons.next:this.buttons.prev;this.activeArrow=a.querySelector(".".concat(i))}!this.activeArrow||this.buttons&&this.buttons.element&&this.buttons.element.classList.contains(this.classNames.c
2ontrolsActive)?t&&t():(this.activeArrowClass=Object(u.c)("".concat(this.rootElement,"__controls__arrow-").concat(n,"--active"),r),Object(s.onceTransitionEnd)(this.activeArrow,{tolerance:null===this.index?0:2}).then((function(){t&&t()})),this.buttons&&this.buttons.element&&(Object(c.a)(this.buttons.element,this.classNames.controlsActive),Object(c.a)(this.activeArrow,this.activeArrowClass)))}},{key:"renderBox",value:function(e){var t=this,n={};return this.props.mobileTouch&&(n.onTouchStart=this.touchStart,n.onTouchMove=this.touchMove,n.onTouchEnd=this.touchEnd),i.a.createElement("div",P({ref:function(n){t["box".concat(e)]=n},className:this.classNames.box},n),this.state["box".concat(e)]&&i.a.createElement(N,{media:this.state["box".concat(e)],className:this.classNames.content}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.cssModule,r=t.organicArrows,a=t.bullets,o=t.style,s=t.customContent,u=t.buttons,l=t.buttonContentLeft,f=t.buttonContentRight,d=this.rootElement;return i.a.createElement("div",{ref:function(t){e.slider=t},className:this.getRootClassName(),style:o},i.a.createElement("div",{ref:function(t){e.wrapper=t},className:this.classNames.wrapper},i.a.createElement("div",{ref:function(t){e.container=t},className:this.classNames.container},this.renderBox("A"),this.renderBox("B")),u&&i.a.createElement(_,{rootElement:d,cssModule:Object(c.e)(n),onMount:function(t){e.buttons=t},onNext:this.clickNext,onPrev:this.clickPrev,organicArrows:r,buttonContentLeft:l,buttonContentRight:f}),s),a&&i.a.createElement(m,{cssModule:Object(c.e)(n),rootElement:d,media:this.media,selected:this.state.index,onClick:function(t){e.onTransitionRequest("bullet",t.index),e.goTo(t)}}))}}]),t}(i.a.Component);z(H,"propTypes",{animation:o.a.string,bullets:o.a.bool,buttonContentLeft:o.a.node,buttonContentRight:o.a.node,buttons:o.a.bool,children:o.a.node,className:o.a.string,controlsReturnDelay:o.a.number,cssModule:o.a.any,customContent:o.a.node,onLoadStart:o.a.func,disabled:o.a.bool,fillParent:o.a.bool,infinite:o.a.bool,media:o.a.array,name:o.a.string,onFirstMount:o.a.func,onResetSlider:o.a.func,onStartupRelease:o.a.func,onTransitionEnd:o.a.func,onTransitionRequest:o.a.func,onTransitionStart:o.a.func,organicArrows:o.a.bool,rootElement:o.a.string,selected:o.a.any,startup:o.a.bool,startupDelay:o.a.number,startupScreen:o.a.object,style:o.a.object,transitionDelay:o.a.number,mobileTouch:o.a.bool}),z(H,"defaultProps",{animation:null,bullets:!0,buttonContentLeft:null,buttonContentRight:null,buttons:!0,children:null,className:null,controlsReturnDelay:0,cssModule:null,customContent:null,onLoadStart:null,disabled:!1,fillParent:!1,infinite:!0,media:[],name:"awesome-slider",onFirstMount:null,onResetSlider:null,onStartupRelease:null,onTransitionEnd:null,onTransitionRequest:null,onTransitionStart:null,organicArrows:!0,rootElement:B,selected:0,startup:!0,startupDelay:0,startupScreen:null,style:{},transitionDelay:0,mobileTouch:!0}),t.default=H}])},e.exports=r(n(7),n(791))},463:function(e,t,n){"use strict";var r=n(791),i=n(296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var l=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,g);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),x=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),O=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var R=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=R&&e[R]||e["@@iterator"])?e:null}var D,M=Object.assign;function F(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var V=!1;function U(e,t){if(!e||V)return"";V=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var u="\n"+i[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=s);break}}}finally{V=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?F(e):""}function z(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function B(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case x:return"Portal";case E:return"Profiler";case S:return"StrictMode";case C:return"Suspense";case I:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case T:return(e._context.displayName||"Context")+".Provider";case j:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:B(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return B(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.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 K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function $(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Z(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&Q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(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=""+H(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 re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return M({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le,fe=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ye=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var xe=null,_e=null,Se=null;function Ee(e){if(e=bi(e)){if("function"!==typeof xe)throw Error(a(280));var t=e.stateNode;t&&(t=ki(t),xe(e.stateNode,e.type,t))}}function Te(e){_e?Se?Se.push(e):Se=[e]:_e=e}function Oe(){if(_e){var e=_e,t=Se;if(Se=_e=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function je(e,t){return e(t)}function Ce(){}var Ie=!1;function Ne(e,t,n){if(Ie)return e(t,n);Ie=!0;try{return je(e,t,n)}finally{Ie=!1,(null!==_e||null!==Se)&&(Ce(),Oe())}}function Ae(e,t){var n=e.stateNode;if(null===n)return null;var r=ki(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Pe=!1;if(l)try{var Re={};Object.defineProperty(Re,"passive",{get:function(){Pe=!0}}),window.addEventListener("test",Re,Re),window.removeEventListener("test",Re,Re)}catch(le){Pe=!1}function Le(e,t,n,r,i,a,o,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var De=!1,Me=null,Fe=!1,Ve=null,Ue={onError:function(e){De=!0,Me=e}};function ze(e,t,n,r,i,a,o,s,u){De=!1,Me=null,Le.apply(Ue,arguments)}function Be(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 qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Be(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Be(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return He(i),e;if(o===r)return He(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=o;break}if(u===r){s=!0,r=i,n=o;break}u=u.sibling}if(!s){for(u=o.child;u;){if(u===n){s=!0,n=o,r=i;break}if(u===r){s=!0,r=o,n=i;break}u=u.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,Qe=i.unstable_cancelCallback,$e=i.unstable_shouldYield,Ye=i.unstable_requestPaint,Xe=i.unstable_now,Je=i.unstable_getCurrentPriorityLevel,Ze=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,lt=4194304;function ft(e){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: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 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=ft(s):0!==(a&=o)&&(r=ft(a))}else 0!==(o=n&~i)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8: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 pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var kt,xt,_t,St,Et,Tt=!1,Ot=[],jt=null,Ct=null,It=null,Nt=new Map,At=new Map,Pt=[],Rt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Lt(e,t){switch(e){case"focusin":case"focusout":jt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":It=null;break;case"pointerover":case"pointerout":Nt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function Dt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Mt(e){var t=gi(e.target);if(null!==t){var n=Be(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Et(e.priority,(function(){_t(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ft(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=$t(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&xt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Vt(e,t,n){Ft(e)&&n.delete(t)}function Ut(){Tt=!1,null!==jt&&Ft(jt)&&(jt=null),null!==Ct&&Ft(Ct)&&(Ct=null),null!==It&&Ft(It)&&(It=null),Nt.forEach(Vt),At.forEach(Vt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,Tt||(Tt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ut)))}function Bt(e){function t(t){return zt(t,e)}if(0<Ot.length){zt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==jt&&zt(jt,e),null!==Ct&&zt(Ct,e),null!==It&&zt(It,e),Nt.forEach(t),At.forEach(t),n=0;n<Pt.length;n++)(r=Pt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Pt.length&&null===(n=Pt[0]).blockedOn;)Mt(n),null===n.blockedOn&&Pt.shift()}var qt=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var i=bt,a=qt.transition;qt.transition=null;try{bt=1,Kt(e,t,n,r)}finally{bt=i,qt.transition=a}}function Gt(e,t,n,r){var i=bt,a=qt.transition;qt.transition=null;try{bt=4,Kt(e,t,n,r)}finally{bt=i,qt.transition=a}}function Kt(e,t,n,r){if(Ht){var i=$t(e,t,n,r);if(null===i)Hr(e,t,r,Qt,n),Lt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return jt=Dt(jt,e,t,n,r,i),!0;case"dragenter":return Ct=Dt(Ct,e,t,n,r,i),!0;case"mouseover":return It=Dt(It,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Nt.set(a,Dt(Nt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,At.set(a,Dt(At.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Lt(e,r),4&t&&-1<Rt.indexOf(e)){for(;null!==i;){var a=bi(i);if(null!==a&&kt(a),null===(a=$t(e,t,n,r))&&Hr(e,t,r,Qt,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Qt=null;function $t(e,t,n,r){if(Qt=null,null!==(e=gi(e=ke(r))))if(null===(t=Be(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(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 Qt=e,null}function Yt(e){switch(e){case"cancel":case"click":case"close":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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Je()){case Ze:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Jt=null,Zt=null;function en(){if(Zt)return Zt;var e,t,n=Jt,r=n.length,i="value"in Xt?Xt.value:Xt.textContent,a=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[a-t];t++);return Zt=i.slice(e,1<t?1-t:void 0)}function tn(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 nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,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)?nn:rn,this.isPropagationStopped=rn,this}return M(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=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=an(cn),fn=M({},cn,{view:0,detail:0}),dn=an(fn),hn=M({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,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!==un&&(un&&"mousemove"===e.type?(on=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=on=0,un=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(hn),vn=an(M({},hn,{dataTransfer:0})),mn=an(M({},fn,{relatedTarget:0})),yn=an(M({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=M({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(gn),wn=an(M({},cn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={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"},_n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Sn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=_n[e])&&!!t[e]}function En(){return Sn}var Tn=M({},fn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),On=an(Tn),jn=an(M({},hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Cn=an(M({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),In=an(M({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Nn=M({},hn,{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}),An=an(Nn),Pn=[9,13,27,32],Rn=l&&"CompositionEvent"in window,Ln=null;l&&"documentMode"in document&&(Ln=document.documentMode);var Dn=l&&"TextEvent"in window&&!Ln,Mn=l&&(!Rn||Ln&&8<Ln&&11>=Ln),Fn=String.fromCharCode(32),Vn=!1;function Un(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Wn(e,t,n,r){Te(r),0<(t=Gr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Kn=null;function Qn(e){Fr(e,0)}function $n(e){if(K(wi(e)))return e}function Yn(e,t){if("change"===e)return t}var Xn=!1;if(l){var Jn;if(l){var Zn="oninput"in document;if(!Zn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Zn="function"===typeof er.oninput}Jn=Zn}else Jn=!1;Xn=Jn&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Kn=Gn=null)}function nr(e){if("value"===e.propertyName&&$n(Kn)){var t=[];Wn(t,Kn,e,ke(e)),Ne(Qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Kn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return $n(Kn)}function ar(e,t){if("click"===e)return $n(t)}function or(e,t){if("input"===e||"change"===e)return $n(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(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(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=cr(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=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=Q((e=t.contentWindow).document)}return t}function hr(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 pr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&hr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=lr(n,a);var o=lr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var vr=l&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==Q(r)||("selectionStart"in(r=mr)&&hr(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},gr&&ur(gr,r)||(gr=r,0<(r=Gr(yr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:kr("Animation","AnimationEnd"),animationiteration:kr("Animation","AnimationIteration"),animationstart:kr("Animation","AnimationStart"),transitionend:kr("Transition","TransitionEnd")},_r={},Sr={};function Er(e){if(_r[e])return _r[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Sr)return _r[e]=n[t];return e}l&&(Sr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var Tr=Er("animationend"),Or=Er("animationiteration"),jr=Er("animationstart"),Cr=Er("transitionend"),Ir=new Map,Nr="abort auxClick 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 toggle touchMove waiting wheel".split(" ");function Ar(e,t){Ir.set(e,t),u(t,[e])}for(var Pr=0;Pr<Nr.length;Pr++){var Rr=Nr[Pr];Ar(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Ar(Tr,"onAnimationEnd"),Ar(Or,"onAnimationIteration"),Ar(jr,"onAnimationStart"),Ar("dblclick","onDoubleClick"),Ar("focusin","onFocus"),Ar("focusout","onBlur"),Ar(Cr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lr="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(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Lr));function Mr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,u,c){if(ze.apply(this,arguments),De){if(!De)throw Error(a(198));var l=Me;De=!1,Me=null,Fe||(Fe=!0,Ve=l)}}(r,t,void 0,e),e.currentTarget=null}function Fr(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 a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==a&&i.isPropagationStopped())break e;Mr(i,s,c),a=u}else for(o=0;o<r.length;o++){if(u=(s=r[o]).instance,c=s.currentTarget,s=s.listener,u!==a&&i.isPropagationStopped())break e;Mr(i,s,c),a=u}}}if(Fe)throw e=Ve,Fe=!1,Ve=null,e}function Vr(e,t){var n=t[vi];void 0===n&&(n=t[vi]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[zr]){e[zr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Yt(t)){case 1:var i=Wt;break;case 4:i=Gt;break;default:i=Kt}n=i.bind(null,t,n,e),i=void 0,!Pe||"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 Hr(e,t,n,r,i){var a=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 s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=gi(s)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}s=s.parentNode}}r=r.return}Ne((function(){var r=a,i=ke(n),o=[];e:{var s=Ir.get(e);if(void 0!==s){var u=ln,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=On;break;case"focusin":c="focus",u=mn;break;case"focusout":c="blur",u=mn;break;case"beforeblur":case"afterblur":u=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Cn;break;case Tr:case Or:case jr:u=yn;break;case Cr:u=In;break;case"scroll":u=dn;break;case"wheel":u=An;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=jn}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Ae(p,d))&&l.push(Wr(p,v,h)))),f)break;p=p.return}0<l.length&&(s=new u(s,c,null,n,i),o.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!gi(c)&&!c[pi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?gi(c):null)&&(c!==(f=Be(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=pn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(l=jn,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?s:wi(u),h=null==c?s:wi(c),(s=new l(v,p+"leave",u,n,i)).target=f,s.relatedTarget=h,v=null,gi(i)===r&&((l=new l(d,p+"enter",c,n,i)).target=h,l.relatedTarget=f,v=l),f=v,u&&c)e:{for(d=c,p=0,h=l=u;h;h=Kr(h))p++;for(h=0,v=d;v;v=Kr(v))h++;for(;0<p-h;)l=Kr(l),p--;for(;0<h-p;)d=Kr(d),h--;for(;p--;){if(l===d||null!==d&&l===d.alternate)break e;l=Kr(l),d=Kr(d)}l=null}else l=null;null!==u&&Qr(o,s,u,l,!1),null!==c&&null!==f&&Qr(o,f,c,l,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var m=Yn;else if(Hn(s))if(Xn)m=or;else{m=ir;var y=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=ar);
vendor: 1,499 bytes, line 2
2switch(m&&(m=m(e,r))?Wn(o,m,n,i):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?wi(r):window,e){case"focusin":(Hn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,gr=null);break;case"focusout":gr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(o,n,i);break;case"selectionchange":if(vr)break;case"keydown":case"keyup":wr(o,n,i)}var g;if(Rn)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 Bn?Un(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Mn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(g=en()):(Jt="value"in(Xt=i)?Xt.value:Xt.textContent,Bn=!0)),0<(y=Gr(r,b)).length&&(b=new wn(b,e,null,n,i),o.push({event:b,listeners:y}),g?b.data=g:null!==(g=zn(n))&&(b.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Vn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Rn&&Un(e,t)?(e=en(),Zt=Jt=Xt=null,Bn=!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;
vendor: 84,967 bytes, line 2
2case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=g))}Fr(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Ae(e,n))&&r.unshift(Wr(e,a,i)),null!=(a=Ae(e,t))&&r.push(Wr(e,a,i))),e=e.return}return r}function Kr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Qr(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Ae(n,a))&&o.unshift(Wr(n,u,s)):i||null!=(u=Ae(n,a))&&o.push(Wr(n,u,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var $r=/\r\n?/g,Yr=/\u0000|\uFFFD/g;function Xr(e){return("string"===typeof e?e:""+e).replace($r,"\n").replace(Yr,"")}function Jr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Zr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,ai="function"===typeof Promise?Promise:void 0,oi="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ai?function(e){return ai.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(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 Bt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Bt(t)}function ci(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)break;if("/$"===t)return null}}return e}function li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,hi="__reactProps$"+fi,pi="__reactContainer$"+fi,vi="__reactEvents$"+fi,mi="__reactListeners$"+fi,yi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=li(e);null!==e;){if(n=e[di])return n;e=li(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[pi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function ki(e){return e[hi]||null}var xi=[],_i=-1;function Si(e){return{current:e}}function Ei(e){0>_i||(e.current=xi[_i],xi[_i]=null,_i--)}function Ti(e,t){_i++,xi[_i]=e.current,e.current=t}var Oi={},ji=Si(Oi),Ci=Si(!1),Ii=Oi;function Ni(e,t){var n=e.type.contextTypes;if(!n)return Oi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ai(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Pi(){Ei(Ci),Ei(ji)}function Ri(e,t,n){if(ji.current!==Oi)throw Error(a(168));Ti(ji,t),Ti(Ci,n)}function Li(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,q(e)||"Unknown",i));return M({},n,r)}function Di(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Oi,Ii=ji.current,Ti(ji,e),Ti(Ci,Ci.current),!0}function Mi(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Li(e,t,Ii),r.__reactInternalMemoizedMergedChildContext=e,Ei(Ci),Ei(ji),Ti(ji,e)):Ei(Ci),Ti(Ci,n)}var Fi=null,Vi=!1,Ui=!1;function zi(e){null===Fi?Fi=[e]:Fi.push(e)}function Bi(){if(!Ui&&null!==Fi){Ui=!0;var e=0,t=bt;try{var n=Fi;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Fi=null,Vi=!1}catch(i){throw null!==Fi&&(Fi=Fi.slice(e+1)),Ke(Ze,Bi),i}finally{bt=t,Ui=!1}}return null}var qi=[],Hi=0,Wi=null,Gi=0,Ki=[],Qi=0,$i=null,Yi=1,Xi="";function Ji(e,t){qi[Hi++]=Gi,qi[Hi++]=Wi,Wi=e,Gi=t}function Zi(e,t,n){Ki[Qi++]=Yi,Ki[Qi++]=Xi,Ki[Qi++]=$i,$i=e;var r=Yi;e=Xi;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Yi=1<<32-ot(t)+i|n<<i|r,Xi=a+e}else Yi=1<<a|n<<i|r,Xi=e}function ea(e){null!==e.return&&(Ji(e,1),Zi(e,1,0))}function ta(e){for(;e===Wi;)Wi=qi[--Hi],qi[Hi]=null,Gi=qi[--Hi],qi[Hi]=null;for(;e===$i;)$i=Ki[--Qi],Ki[Qi]=null,Xi=Ki[--Qi],Ki[Qi]=null,Yi=Ki[--Qi],Ki[Qi]=null}var na=null,ra=null,ia=!1,aa=null;function oa(e,t){var n=Nc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,na=e,ra=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==$i?{id:Yi,overflow:Xi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ca(e){if(ia){var t=ra;if(t){var n=t;if(!sa(e,t)){if(ua(e))throw Error(a(418));t=ci(n.nextSibling);var r=na;t&&sa(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,ia=!1,na=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,ia=!1,na=e}}}function la(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!ia)return la(e),ia=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=ci(t.nextSibling)}if(la(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?ci(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=ci(e.nextSibling)}function ha(){ra=na=null,ia=!1}function pa(e){null===aa?aa=[e]:aa.push(e)}var va=w.ReactCurrentBatchConfig;function ma(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var ya=Si(null),ga=null,ba=null,wa=null;function ka(){wa=ba=ga=null}function xa(e){var t=ya.current;Ei(ya),e._currentValue=t}function _a(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 Sa(e,t){ga=e,wa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ea(e){var t=e._currentValue;if(wa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ga)throw Error(a(308));ba=e,ga.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var Ta=null;function Oa(e){null===Ta?Ta=[e]:Ta.push(e)}function ja(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Oa(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ca(e,r)}function Ca(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ia=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Aa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Pa(e,t){return{eventTime:e,lane:t,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&ju)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Ca(e,n)}return null===(i=r.interleaved)?(t.next=t,Oa(r)):(t.next=i.next,i.next=t),r.interleaved=t,Ca(e,n)}function La(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Da(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ma(e,t,n,r){var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===o?a=c:o.next=c,o=u;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==o&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=u))}if(null!==a){var f=i.baseState;for(o=0,l=c=u=null,s=a;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==l&&(l=l.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=M({},f,d);break e;case 2:Ia=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=h,u=f):l=l.next=h,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===l&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=l,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);Du|=o,e.lanes=o,e.memoizedState=f}}function Fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var Va=(new r.Component).refs;function Ua(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:M({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var za={isMounted:function(e){return!!(e=e._reactInternals)&&Be(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),a=Pa(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ra(e,a,i))&&(nc(t,e,i,r),La(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),i=tc(e),a=Pa(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),null!==(t=Ra(e,a,i))&&(nc(t,e,i,r),La(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),i=Pa(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=Ra(e,i,r))&&(nc(t,e,r,n),La(t,e,r))}};function Ba(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,a))}function qa(e,t,n){var r=!1,i=Oi,a=t.contextType;return"object"===typeof a&&null!==a?a=Ea(a):(i=Ai(t)?Ii:ji.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ni(e,i):Oi),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=za,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(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&&za.enqueueReplaceState(t,t.state,null)}function Wa(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Va,Na(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Ea(a):(a=Ai(t)?Ii:ji.current,i.context=Ni(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(Ua(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&za.enqueueReplaceState(i,i.state,null),Ma(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Ga(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===Va&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ka(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){return(0,e._init)(e._payload)}function $a(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,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Pc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Mc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var a=n.type;return a===_?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===A&&Qa(a)===t.type)?((r=i(t,n.props)).ref=Ga(e,t,n),r.return=e,r):((r=Rc(n.type,n.key,n.props,null,e.mode,r)).ref=Ga(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Mc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Rc(t.type,t.key,t.props,null,e.mode,n)).ref=Ga(e,null,t),n.return=e,n;case x:return(t=Fc(t,e.mode,n)).return=e,t;case A:return d(e,(0,t._init)(t._payload),n)}if(te(t)||L(t))return(t=Lc(t,e.mode,n,null)).return=e,t;Ka(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?c(e,t,n,r):null;case x:return n.key===i?l(e,t,n,r):null;case A:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||L(n))return null!==i?null:f(e,t,n,r,null);Ka(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case A:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||L(r))return f(t,e=e.get(n)||null,r,i,null);Ka(t,r)}return null}function v(i,a,s,u){for(var c=null,l=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=h(i,f,s[v],u);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(i,f),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y,f=m}if(v===s.length)return n(i,f),ia&&Ji(i,v),c;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],u))&&(a=o(f,a,v),null===l?c=f:l.sibling=f,l=f);return ia&&Ji(i,v),c}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m);return e&&f.forEach((function(e){return t(i,e)})),ia&&Ji(i,v),c}function m(i,s,u,c){var l=L(u);if("function"!==typeof l)throw Error(a(150));if(null==(u=l.call(u)))throw Error(a(151));for(var f=l=null,v=s,m=s=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=h(i,v,g.value,c);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,m),null===f?l=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),ia&&Ji(i,m),l;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=d(i,g.value,c))&&(s=o(g,s,m),null===f?l=g:f.sibling=g,f=g);return ia&&Ji(i,m),l}for(v=r(i,v);!g.done;m++,g=u.next())null!==(g=p(v,i,m,g.value,c))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),s=o(g,s,m),null===f?l=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(i,e)})),ia&&Ji(i,m),l}return function e(r,a,o,u){if("object"===typeof o&&null!==o&&o.type===_&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var c=o.key,l=a;null!==l;){if(l.key===c){if((c=o.type)===_){if(7===l.tag){n(r,l.sibling),(a=i(l,o.props.children)).return=r,r=a;break e}}else if(l.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===A&&Qa(c)===l.type){n(r,l.sibling),(a=i(l,o.props)).ref=Ga(r,l,o),a.return=r,r=a;break e}n(r,l);break}t(r,l),l=l.sibling}o.type===_?((a=Lc(o.props.children,r.mode,u,o.key)).return=r,r=a):((u=Rc(o.type,o.key,o.props,null,r.mode,u)).ref=Ga(r,a,o),u.return=r,r=u)}return s(r);case x:e:{for(l=o.key;null!==a;){if(a.key===l){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Fc(o,r.mode,u)).return=r,r=a}return s(r);case A:return e(r,a,(l=o._init)(o._payload),u)}if(te(o))return v(r,a,o,u);if(L(o))return m(r,a,o,u);Ka(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Mc(o,r.mode,u)).return=r,r=a),s(r)):n(r,a)}}var Ya=$a(!0),Xa=$a(!1),Ja={},Za=Si(Ja),eo=Si(Ja),to=Si(Ja);function no(e){if(e===Ja)throw Error(a(174));return e}function ro(e,t){switch(Ti(to,t),Ti(eo,e),Ti(Za,Ja),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ei(Za),Ti(Za,t)}function io(){Ei(Za),Ei(eo),Ei(to)}function ao(e){no(to.current);var t=no(Za.current),n=ue(t,e.type);t!==n&&(Ti(eo,e),Ti(Za,n))}function oo(e){eo.current===e&&(Ei(Za),Ei(eo))}var so=Si(0);function uo(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 co=[];function lo(){for(var e=0;e<co.length;e++)co[e]._workInProgressVersionPrimary=null;co.length=0}var fo=w.ReactCurrentDispatcher,ho=w.ReactCurrentBatchConfig,po=0,vo=null,mo=null,yo=null,go=!1,bo=!1,wo=0,ko=0;function xo(){throw Error(a(321))}function _o(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function So(e,t,n,r,i,o){if(po=o,vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),bo){o=0;do{if(bo=!1,wo=0,25<=o)throw Error(a(301));o+=1,yo=mo=null,t.updateQueue=null,fo.current=cs,e=n(r,i)}while(bo)}if(fo.current=os,t=null!==mo&&null!==mo.next,po=0,yo=mo=vo=null,go=!1,t)throw Error(a(300));return e}function Eo(){var e=0!==wo;return wo=0,e}function To(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===yo?vo.memoizedState=yo=e:yo=yo.next=e,yo}function Oo(){if(null===mo){var e=vo.alternate;e=null!==e?e.memoizedState:null}else e=mo.next;var t=null===yo?vo.memoizedState:yo.next;if(null!==t)yo=t,mo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(mo=e).memoizedState,baseState:mo.baseState,baseQueue:mo.baseQueue,queue:mo.queue,next:null},null===yo?vo.memoizedState=yo=e:yo=yo.next=e}return yo}function jo(e,t){return"function"===typeof t?t(e):t}function Co(e){var t=Oo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=mo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var u=s=null,c=null,l=o;do{var f=l.lane;if((po&f)===f)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(u=c=d,s=r):c=c.next=d,vo.lanes|=f,Du|=f}l=l.next}while(null!==l&&l!==o);null===c?s=r:c.next=u,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,vo.lanes|=o,Du|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);sr(o,t.memoizedState)||(ws=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function No(){}function Ao(e,t){var n=vo,r=Oo(),i=t(),o=!sr(r.memoizedState,i);if(o&&(r.memoizedState=i,ws=!0),r=r.queue,Ho(Lo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==yo&&1&yo.memoizedState.tag){if(n.flags|=2048,Vo(9,Ro.bind(null,n,r,i,t),void 0,null),null===Cu)throw Error(a(349));0!==(30&po)||Po(n,t,i)}return i}function Po(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ro(e,t,n,r){t.value=n,t.getSnapshot=r,Do(t)&&Mo(e)}function Lo(e,t,n){return n((function(){Do(t)&&Mo(e)}))}function Do(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Mo(e){var t=Ca(e,1);null!==t&&nc(t,e,1,-1)}function Fo(e){var t=To();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,vo,e),[t.memoizedState,e]}function Vo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=vo.updateQueue)?(t={lastEffect:null,stores:null},vo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Uo(){return Oo().memoizedState}function zo(e,t,n,r){var i=To();vo.flags|=e,i.memoizedState=Vo(1|t,n,void 0,void 0===r?null:r)}function Bo(e,t,n,r){var i=Oo();r=void 0===r?null:r;var a=void 0;if(null!==mo){var o=mo.memoizedState;if(a=o.destroy,null!==r&&_o(r,o.deps))return void(i.memoizedState=Vo(t,n,a,r))}vo.flags|=e,i.memoizedState=Vo(1|t,n,a,r)}function qo(e,t){return zo(8390656,8,e,t)}function Ho(e,t){return Bo(2048,8,e,t)}function Wo(e,t){return Bo(4,2,e,t)}function Go(e,t){return Bo(4,4,e,t)}function Ko(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Qo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Bo(4,4,Ko.bind(null,t,e),n)}function $o(){}function Yo(e,t){var n=Oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xo(e,t){var n=Oo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&_o(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Jo(e,t,n){return 0===(21&po)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=vt(),vo.lanes|=n,Du|=n,e.baseState=!0),t)}function Zo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{bt=n,ho.transition=r}}function es(){return Oo().memoizedState}function ts(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=ja(e,t,n,r))){nc(n,e,r,ec()),as(n,t,r)}}function ns(e,t,n){var r=tc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,o)){var u=t.interleaved;return null===u?(i.next=i,Oa(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=ja(e,t,i,r))&&(nc(n,e,r,i=ec()),as(n,t,r))}}function rs(e){var t=e.alternate;return e===vo||null!==t&&t===vo}function is(e,t){bo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function as(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var os={readContext:Ea,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useInsertionEffect:xo,useLayoutEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useMutableSource:xo,useSyncExternalStore:xo,useId:xo,unstable_isNewReconciler:!1},ss={readContext:Ea,useCallback:function(e,t){return To().memoizedState=[e,void 0===t?null:t],e},useContext:Ea,useEffect:qo,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zo(4194308,4,Ko.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=To();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=To();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,vo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},To().memoizedState=e},useState:Fo,useDebugValue:$o,useDeferredValue:function(e){return To().memoizedState=e},useTransition:function(){var e=Fo(!1),t=e[0];return e=Zo.bind(null,e[1]),To().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=vo,i=To();if(ia){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Cu)throw Error(a(349));0!==(30&po)||Po(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,qo(Lo.bind(null,r,o,e),[e]),r.flags|=2048,Vo(9,Ro.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=To(),t=Cu.identifierPrefix;if(ia){var n=Xi;t=":"+t+"R"+(n=(Yi&~(1<<32-ot(Yi)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=ko++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:Ea,useCallback:Yo,useContext:Ea,useEffect:Ho,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Go,useMemo:Xo,useReducer:Co,useRef:Uo,useState:function(){return Co(jo)},useDebugValue:$o,useDeferredValue:function(e){return Jo(Oo(),mo.memoizedState,e)},useTransition:function(){return[Co(jo)[0],Oo().memoizedState]},useMutableSource:No,useSyncExternalStore:Ao,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ea,useCallback:Yo,useContext:Ea,useEffect:Ho,useImperativeHandle:Qo,useInsertionEffect:Wo,useLayoutEffect:Go,useMemo:Xo,useReducer:Io,useRef:Uo,useState:function(){return Io(jo)},useDebugValue:$o,useDeferredValue:function(e){var t=Oo();return null===mo?t.memoizedState=e:Jo(t,mo.memoizedState,e)},useTransition:function(){return[Io(jo)[0],Oo().memoizedState]},useMutableSource:No,useSyncExternalStore:Ao,useId:es,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var hs="function"===typeof WeakMap?WeakMap:Map;function ps(e,t,n){(n=Pa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Hu||(Hu=!0,Wu=r),ds(0,t)},n}function vs(e,t,n){(n=Pa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Gu?Gu=new Set([this]):Gu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ms(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;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)||(i.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function ys(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Pa(-1,1)).tag=2,Ra(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function ks(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ya(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var a=t.ref;return Sa(t,i),r=So(e,t,n,r,a,i),n=Eo(),null===e||ws?(ia&&n&&ea(t),t.flags|=1,ks(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function _s(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||Ac(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Rc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ss(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return Hs(e,t,i)}return t.flags|=1,(e=Pc(a,r)).ref=t.ref,e.return=t,t.child=e}function Ss(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=a,0===(e.lanes&i))return t.lanes=e.lanes,Hs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Os(e,t,n,r,i)}function Es(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ti(Pu,Au),Au|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Ti(Pu,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,Ti(Pu,Au),Au|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Ti(Pu,Au),Au|=r;return ks(e,t,i,n),t.child}function Ts(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Os(e,t,n,r,i){var a=Ai(n)?Ii:ji.current;return a=Ni(t,a),Sa(t,i),n=So(e,t,n,r,a,i),r=Eo(),null===e||ws?(ia&&r&&ea(t),t.flags|=1,ks(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Hs(e,t,i))}function js(e,t,n,r,i){if(Ai(n)){var a=!0;Di(t)}else a=!1;if(Sa(t,i),null===t.stateNode)qs(e,t),qa(t,n,r),Wa(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var u=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ea(c):c=Ni(t,c=Ai(n)?Ii:ji.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||u!==c)&&Ha(t,o,r,c),Ia=!1;var d=t.memoizedState;o.state=d,Ma(t,r,o,i),u=t.memoizedState,s!==r||d!==u||Ci.current||Ia?("function"===typeof l&&(Ua(t,n,l,r),u=t.memoizedState),(s=Ia||Ba(t,n,s,r,d,u,c))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Aa(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ma(t.type,s),o.props=c,f=t.pendingProps,d=o.context,"object"===typeof(u=n.contextType)&&null!==u?u=Ea(u):u=Ni(t,u=Ai(n)?Ii:ji.current);var h=n.getDerivedStateFromProps;(l="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||d!==u)&&Ha(t,o,r,u),Ia=!1,d=t.memoizedState,o.state=d,Ma(t,r,o,i);var p=t.memoizedState;s!==f||d!==p||Ci.current||Ia?("function"===typeof h&&(Ua(t,n,h,r),p=t.memoizedState),(c=Ia||Ba(t,n,c,r,d,p,u)||!1)?(l||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,u),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=u,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,a,i)}function Cs(e,t,n,r,i,a){Ts(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Mi(t,n,!1),Hs(e,t,a);r=t.stateNode,bs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ya(t,e.child,null,a),t.child=Ya(t,null,s,a)):ks(e,t,s,a),t.memoizedState=r.state,i&&Mi(t,n,!0),t.child}function Is(e){var t=e.stateNode;t.pendingContext?Ri(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ri(0,t.context,!1),ro(e,t.containerInfo)}function Ns(e,t,n,r,i){return ha(),pa(i),t.flags|=256,ks(e,t,n,r),t.child}var As,Ps,Rs,Ls={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,i=t.pendingProps,o=so.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Ti(so,1&o),null===e)return ca(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Dc(u,i,0,null),e=Lc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Ls,e):Fs(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,Vs(e,t,s,r=fs(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Dc({mode:"visible",children:r.children},i,0,null),(o=Lc(o,i,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Ya(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Ls,o);if(0===(1&t.mode))return Vs(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,Vs(e,t,s,r=fs(o=Error(a(419)),r,void 0))}if(u=0!==(s&e.childLanes),ws||u){if(null!==(r=Cu)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==o.retryLane&&(o.retryLane=i,Ca(e,i),nc(r,e,i,-1))}return vc(),Vs(e,t,s,r=fs(Error(a(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,ra=ci(i.nextSibling),na=t,ia=!0,aa=null,null!==e&&(Ki[Qi++]=Yi,Ki[Qi++]=Xi,Ki[Qi++]=$i,Yi=e.id,Xi=e.overflow,$i=t),t=Fs(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,o,n);if(s){s=i.fallback,u=t.mode,r=(o=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==o?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Pc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=Pc(r,s):(s=Lc(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ds(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Ls,i}return e=(s=e.child).sibling,i=Pc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function Fs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vs(e,t,n,r){return null!==r&&pa(r),Ya(t,e.child,null,n),(e=Fs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),_a(e.return,t,n)}function zs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Bs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(ks(e,t,r.children,n),0!==(2&(r=so.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&&Us(e,n,t);else if(19===e.tag)Us(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}if(Ti(so,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===uo(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===uo(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function qs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Du|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){if(!ia)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 Gs(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|=14680064&i.subtreeFlags,r|=14680064&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 Ks(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gs(t),null;case 1:case 17:return Ai(t.type)&&Pi(),Gs(t),null;case 3:return r=t.stateNode,io(),Ei(Ci),Ei(ji),lo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==aa&&(oc(aa),aa=null))),Gs(t),null;case 5:oo(t);var i=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Ps(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return Gs(t),null}if(e=no(Za.current),fa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[di]=t,r[hi]=o,e=0!==(1&t.mode),n){case"dialog":Vr("cancel",r),Vr("close",r);break;case"iframe":case"object":case"embed":Vr("load",r);break;case"video":case"audio":for(i=0;i<Lr.length;i++)Vr(Lr[i],r);break;case"source":Vr("error",r);break;case"img":case"image":case"link":Vr("error",r),Vr("load",r);break;case"details":Vr("toggle",r);break;case"input":Y(r,o),Vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Vr("invalid",r);break;case"textarea":ie(r,o),Vr("invalid",r)}for(var u in ge(n,o),i=null,o)if(o.hasOwnProperty(u)){var c=o[u];"children"===u?"string"===typeof c?r.textContent!==c&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Jr(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&Vr("scroll",r)}switch(n){case"input":G(r),Z(r,o,!0);break;case"textarea":G(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Zr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[hi]=r,As(e,t),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Vr("cancel",e),Vr("close",e),i=r;break;case"iframe":case"object":case"embed":Vr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Lr.length;i++)Vr(Lr[i],e);i=r;break;case"source":Vr("error",e),i=r;break;case"img":case"image":case"link":Vr("error",e),Vr("load",e),i=r;break;case"details":Vr("toggle",e),i=r;break;case"input":Y(e,r),i=$(e,r),Vr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=M({},r,{value:void 0}),Vr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Vr("invalid",e)}for(o in ge(n,i),c=i)if(c.hasOwnProperty(o)){var l=c[o];"style"===o?me(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&fe(e,l):"children"===o?"string"===typeof l?("textarea"!==n||""!==l)&&de(e,l):"number"===typeof l&&de(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=l&&"onScroll"===o&&Vr("scroll",e):null!=l&&b(e,o,l,u))}switch(n){case"input":G(e),Z(e,r,!1);break;case"textarea":G(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Zr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Gs(t),null;case 6:if(e&&null!=t.stateNode)Rs(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Za.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Jr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Jr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Gs(t),null;case 13:if(Ei(so),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ia&&null!==ra&&0!==(1&t.mode)&&0===(128&t.flags))da(),ha(),t.flags|=98560,o=!1;else if(o=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[di]=t}else ha(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Gs(t),o=!1}else null!==aa&&(oc(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===Ru&&(Ru=3):vc())),null!==t.updateQueue&&(t.flags|=4),Gs(t),null);case 4:return io(),null===e&&Br(t.stateNode.containerInfo),Gs(t),null;case 10:return xa(t.type._context),Gs(t),null;case 19:if(Ei(so),null===(o=t.memoizedState))return Gs(t),null;if(r=0!==(128&t.flags),null===(u=o.rendering))if(r)Ws(o,!1);else{if(0!==Ru||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=uo(e))){for(t.flags|=128,Ws(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Ti(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Xe()>Bu&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=uo(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Ws(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!ia)return Gs(t),null}else 2*Xe()-o.renderingStartTime>Bu&&1073741824!==n&&(t.flags|=128,r=!0,Ws(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xe(),t.sibling=null,n=so.current,Ti(so,r?1&n|2:1&n),t):(Gs(t),null);case 22:case 23:return fc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Au)&&(Gs(t),6&t.subtreeFlags&&(t.flags|=8192)):Gs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Qs(e,t){switch(ta(t),t.tag){case 1:return Ai(t.type)&&Pi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return io(),Ei(Ci),Ei(ji),lo(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ei(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));ha()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ei(so),null;case 4:return io(),null;case 10:return xa(t.type._context),null;case 22:case 23:return fc(),null;default:return null}}As=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ps=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,no(Za.current);var a,o=null;switch(n){case"input":i=$(e,i),r=$(e,r),o=[];break;case"select":i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Zr)}for(l in ge(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var u=i[l];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(u=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(o||(o=[]),o.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(o=o||[]).push(l,c)):"children"===l?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&Vr("scroll",e),o||u===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},Rs=function(e,t,n,r){n!==r&&(t.flags|=4)};var $s=!1,Ys=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Sc(e,t,r)}else n.current=null}function eu(e,t,n){try{n()}catch(r){Sc(e,t,r)}}var tu=!1;function nu(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&eu(t,n,a)}i=i.next}while(i!==r)}}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function iu(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[hi],delete t[vi],delete t[mi],delete t[yi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ou(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ou(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==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 uu(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=Zr));else if(4!==r&&null!==(e=e.child))for(uu(e,t,n),e=e.sibling;null!==e;)uu(e,t,n),e=e.sibling}function cu(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&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var lu=null,fu=!1;function du(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||Zs(n,t);case 6:var r=lu,i=fu;lu=null,du(e,t,n),fu=i,null!==(lu=r)&&(fu?(e=lu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):lu.removeChild(n.stateNode));break;case 18:null!==lu&&(fu?(e=lu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Bt(e)):ui(lu,n.stateNode));break;case 4:r=lu,i=fu,lu=n.stateNode.containerInfo,fu=!0,du(e,t,n),lu=r,fu=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!==(2&a)||0!==(4&a))&&eu(n,t,o),i=i.next}while(i!==r)}du(e,t,n);break;case 1:if(!Ys&&(Zs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Sc(n,t,s)}du(e,t,n);break;case 21:du(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,du(e,t,n),Ys=r):du(e,t,n);break;default:du(e,t,n)}}function pu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach((function(t){var r=jc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function vu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:lu=u.stateNode,fu=!1;break e;case 3:case 4:lu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===lu)throw Error(a(160));hu(o,s,i),lu=null,fu=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(l){Sc(i,t,l)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(vu(t,e),yu(e),4&r){try{nu(3,e,e.return),ru(3,e)}catch(m){Sc(e,e.return,m)}try{nu(5,e,e.return)}catch(m){Sc(e,e.return,m)}}break;case 1:vu(t,e),yu(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(vu(t,e),yu(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(m){Sc(e,e.return,m)}}if(4&r&&null!=(i=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===o.type&&null!=o.name&&X(i,o),be(u,s);var l=be(u,o);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?me(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,l)}switch(u){case"input":J(i,o);break;case"textarea":ae(i,o);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var p=o.value;null!=p?ne(i,!!o.multiple,p,!1):h!==!!o.multiple&&(null!=o.defaultValue?ne(i,!!o.multiple,o.defaultValue,!0):ne(i,!!o.multiple,o.multiple?[]:"",!1))}i[hi]=o}catch(m){Sc(e,e.return,m)}}break;case 6:if(vu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(a(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(m){Sc(e,e.return,m)}}break;case 3:if(vu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Bt(t.containerInfo)}catch(m){Sc(e,e.return,m)}break;case 4:default:vu(t,e),yu(e);break;case 13:vu(t,e),yu(e),8192&(i=e.child).flags&&(o=null!==i.memoizedState,i.stateNode.isHidden=o,!o||null!==i.alternate&&null!==i.alternate.memoizedState||(zu=Xe())),4&r&&pu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(l=Ys)||f,vu(t,e),Ys=l):vu(t,e),yu(e),8192&r){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!f&&0!==(1&e.mode))for(Js=e,f=e.child;null!==f;){for(d=Js=f;null!==Js;){switch(p=(h=Js).child,h.tag){case 0:case 11:case 14:case 15:nu(4,h,h.return);break;case 1:Zs(h,h.return);var v=h.stateNode;if("function"===typeof v.componentWillUnmount){r=h,n=h.return;try{t=r,v.props=t.memoizedProps,v.state=t.memoizedState,v.componentWillUnmount()}catch(m){Sc(r,n,m)}}break;case 5:Zs(h,h.return);break;case 22:if(null!==h.memoizedState){ku(d);continue}}null!==p?(p.return=h,Js=p):ku(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,l?"function"===typeof(o=i.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,u.style.display=ve("display",s))}catch(m){Sc(e,e.return,m)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(m){Sc(e,e.return,m)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:vu(t,e),yu(e),4&r&&pu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ou(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),cu(e,su(e),i);break;case 3:case 4:var o=r.stateNode.containerInfo;uu(e,su(e),o);break;default:throw Error(a(161))}}catch(s){Sc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function gu(e,t,n){Js=e,bu(e,t,n)}function bu(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var i=Js,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||$s;if(!o){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Ys;s=$s;var c=Ys;if($s=o,(Ys=u)&&!c)for(Js=i;null!==Js;)u=(o=Js).child,22===o.tag&&null!==o.memoizedState?xu(i):null!==u?(u.return=o,Js=u):xu(i);for(;null!==a;)Js=a,bu(a,t,n),a=a.sibling;Js=i,$s=s,Ys=c}wu(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,Js=a):wu(e)}}function wu(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||ru(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ma(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Fa(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Fa(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var f=l.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Bt(d)}}}break;default:throw Error(a(163))}Ys||512&t.flags&&iu(t)}catch(h){Sc(t,t.return,h)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function ku(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function xu(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{ru(4,t)}catch(u){Sc(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){Sc(t,i,u)}}var a=t.return;try{iu(t)}catch(u){Sc(t,a,u)}break;case 5:var o=t.return;try{iu(t)}catch(u){Sc(t,o,u)}}}catch(u){Sc(t,t.return,u)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var _u,Su=Math.ceil,Eu=w.ReactCurrentDispatcher,Tu=w.ReactCurrentOwner,Ou=w.ReactCurrentBatchConfig,ju=0,Cu=null,Iu=null,Nu=0,Au=0,Pu=Si(0),Ru=0,Lu=null,Du=0,Mu=0,Fu=0,Vu=null,Uu=null,zu=0,Bu=1/0,qu=null,Hu=!1,Wu=null,Gu=null,Ku=!1,Qu=null,$u=0,Yu=0,Xu=null,Ju=-1,Zu=0;function ec(){return 0!==(6&ju)?Xe():-1!==Ju?Ju:Ju=Xe()}function tc(e){return 0===(1&e.mode)?1:0!==(2&ju)&&0!==Nu?Nu&-Nu:null!==va.transition?(0===Zu&&(Zu=vt()),Zu):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Yt(e.type)}function nc(e,t,n,r){if(50<Yu)throw Yu=0,Xu=null,Error(a(185));yt(e,n,r),0!==(2&ju)&&e===Cu||(e===Cu&&(0===(2&ju)&&(Mu|=n),4===Ru&&sc(e,Nu)),rc(e,r),1===n&&0===ju&&0===(1&t.mode)&&(Bu=Xe()+500,Vi&&Bi()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,u=i[o];-1===u?0!==(s&n)&&0===(s&r)||(i[o]=ht(s,t)):u<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=dt(e,e===Cu?Nu:0);if(0===r)null!==n&&Qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Qe(n),1===t)0===e.tag?function(e){Vi=!0,zi(e)}(uc.bind(null,e)):zi(uc.bind(null,e)),oi((function(){0===(6&ju)&&Bi()})),n=null;else{switch(wt(r)){case 1:n=Ze;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Cc(n,ic.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ic(e,t){if(Ju=-1,Zu=0,0!==(6&ju))throw Error(a(327));var n=e.callbackNode;if(xc()&&e.callbackNode!==n)return null;var r=dt(e,e===Cu?Nu:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=mc(e,r);else{t=r;var i=ju;ju|=2;var o=pc();for(Cu===e&&Nu===t||(qu=null,Bu=Xe()+500,dc(e,t));;)try{gc();break}catch(u){hc(e,u)}ka(),Eu.current=o,ju=i,null!==Iu?t=0:(Cu=null,Nu=0,t=Ru)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=ac(e,i))),1===t)throw n=Lu,dc(e,0),sc(e,r),rc(e,Xe()),n;if(6===t)sc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!sr(a(),i))return!1}catch(s){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}(i)&&(2===(t=mc(e,r))&&(0!==(o=pt(e))&&(r=o,t=ac(e,o))),1===t))throw n=Lu,dc(e,0),sc(e,r),rc(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:kc(e,Uu,qu);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zu+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(kc.bind(null,e,Uu,qu),t);break}kc(e,Uu,qu);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Su(r/1960))-r)){e.timeoutHandle=ri(kc.bind(null,e,Uu,qu),r);break}kc(e,Uu,qu);break;default:throw Error(a(329))}}}return rc(e,Xe()),e.callbackNode===n?ic.bind(null,e):null}function ac(e,t){var n=Vu;return e.current.memoizedState.isDehydrated&&(dc(e,t).flags|=256),2!==(e=mc(e,t))&&(t=Uu,Uu=n,null!==t&&oc(t)),e}function oc(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function sc(e,t){for(t&=~Fu,t&=~Mu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function uc(e){if(0!==(6&ju))throw Error(a(327));xc();var t=dt(e,0);if(0===(1&t))return rc(e,Xe()),null;var n=mc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Lu,dc(e,0),sc(e,t),rc(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,kc(e,Uu,qu),rc(e,Xe()),null}function cc(e,t){var n=ju;ju|=1;try{return e(t)}finally{0===(ju=n)&&(Bu=Xe()+500,Vi&&Bi())}}function lc(e){null!==Qu&&0===Qu.tag&&0===(6&ju)&&xc();var t=ju;ju|=1;var n=Ou.transition,r=bt;try{if(Ou.transition=null,bt=1,e)return e()}finally{bt=r,Ou.transition=n,0===(6&(ju=t))&&Bi()}}function fc(){Au=Pu.current,Ei(Pu)}function dc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Iu)for(n=Iu.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Pi();break;case 3:io(),Ei(Ci),Ei(ji),lo();break;case 5:oo(r);break;case 4:io();break;case 13:case 19:Ei(so);break;case 10:xa(r.type._context);break;case 22:case 23:fc()}n=n.return}if(Cu=e,Iu=e=Pc(e.current,null),Nu=Au=t,Ru=0,Lu=null,Fu=Mu=Du=0,Uu=Vu=null,null!==Ta){for(t=0;t<Ta.length;t++)if(null!==(r=(n=Ta[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Ta=null}return e}function hc(e,t){for(;;){var n=Iu;try{if(ka(),fo.current=os,go){for(var r=vo.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}go=!1}if(po=0,yo=mo=vo=null,bo=!1,wo=0,Tu.current=null,null===n||null===n.return){Ru=1,Lu=t,Iu=null;break}e:{var o=e,s=n.return,u=n,c=t;if(t=Nu,u.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=ys(s);if(null!==p){p.flags&=-257,gs(p,s,u,0,t),1&p.mode&&ms(o,l,t),c=l;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(c),t.updateQueue=m}else v.add(c);break e}if(0===(1&t)){ms(o,l,t),vc();break e}c=Error(a(426))}else if(ia&&1&u.mode){var y=ys(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),gs(y,s,u,0,t),pa(ls(c,u));break e}}o=c=ls(c,u),4!==Ru&&(Ru=2),null===Vu?Vu=[o]:Vu.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Da(o,ps(0,c,t));break e;case 1:u=c;var g=o.type,b=o.stateNode;if(0===(128&o.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Gu||!Gu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Da(o,vs(o,u,t));break e}}o=o.return}while(null!==o)}wc(n)}catch(w){t=w,Iu===n&&null!==n&&(Iu=n=n.return);continue}break}}function pc(){var e=Eu.current;return Eu.current=os,null===e?os:e}function vc(){0!==Ru&&3!==Ru&&2!==Ru||(Ru=4),null===Cu||0===(268435455&Du)&&0===(268435455&Mu)||sc(Cu,Nu)}function mc(e,t){var n=ju;ju|=2;var r=pc();for(Cu===e&&Nu===t||(qu=null,dc(e,t));;)try{yc();break}catch(i){hc(e,i)}if(ka(),ju=n,Eu.current=r,null!==Iu)throw Error(a(261));return Cu=null,Nu=0,Ru}function yc(){for(;null!==Iu;)bc(Iu)}function gc(){for(;null!==Iu&&!$e();)bc(Iu)}function bc(e){var t=_u(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?wc(e):Iu=t,Tu.current=null}function wc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Au)))return void(Iu=n)}else{if(null!==(n=Qs(n,t)))return n.flags&=32767,void(Iu=n);if(null===e)return Ru=6,void(Iu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Iu=t);Iu=t=e}while(null!==t);0===Ru&&(Ru=5)}function kc(e,t,n){var r=bt,i=Ou.transition;try{Ou.transition=null,bt=1,function(e,t,n,r){do{xc()}while(null!==Qu);if(0!==(6&ju))throw Error(a(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===Cu&&(Iu=Cu=null,Nu=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ku||(Ku=!0,Cc(tt,(function(){return xc(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Ou.transition,Ou.transition=null;var s=bt;bt=1;var u=ju;ju|=4,Tu.current=null,function(e,t){if(ei=Ht,hr(e=dr())){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,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(k){n=null;break e}var s=0,u=-1,c=-1,l=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==o||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++l===i&&(u=s),h===o&&++f===r&&(c=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,y=v.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ma(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(a(163))}}catch(k){Sc(t,t.return,k)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}v=tu,tu=!1}(e,n),mu(n,e),pr(ti),Ht=!!ei,ti=ei=null,e.current=n,gu(n,e,i),Ye(),ju=u,bt=s,Ou.transition=o}else e.current=n;if(Ku&&(Ku=!1,Qu=e,$u=i),o=e.pendingLanes,0===o&&(Gu=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((i=t[n]).value,{componentStack:i.stack,digest:i.digest});if(Hu)throw Hu=!1,e=Wu,Wu=null,e;0!==(1&$u)&&0!==e.tag&&xc(),o=e.pendingLanes,0!==(1&o)?e===Xu?Yu++:(Yu=0,Xu=e):Yu=0,Bi()}(e,t,n,r)}finally{Ou.transition=i,bt=r}return null}function xc(){if(null!==Qu){var e=wt($u),t=Ou.transition,n=bt;try{if(Ou.transition=null,bt=16>e?16:e,null===Qu)var r=!1;else{if(e=Qu,Qu=null,$u=0,0!==(6&ju))throw Error(a(331));var i=ju;for(ju|=4,Js=e.current;null!==Js;){var o=Js,s=o.child;if(0!==(16&Js.flags)){var u=o.deletions;if(null!==u){for(var c=0;c<u.length;c++){var l=u[c];for(Js=l;null!==Js;){var f=Js;switch(f.tag){case 0:case 11:case 15:nu(8,f,o)}var d=f.child;if(null!==d)d.return=f,Js=d;else for(;null!==Js;){var h=(f=Js).sibling,p=f.return;if(au(f),f===l){Js=null;break}if(null!==h){h.return=p,Js=h;break}Js=p}}}var v=o.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Js=s;else e:for(;null!==Js;){if(0!==(2048&(o=Js).flags))switch(o.tag){case 0:case 11:case 15:nu(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Js=g;break e}Js=o.return}}var b=e.current;for(Js=b;null!==Js;){var w=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Js=w;else e:for(s=b;null!==Js;){if(0!==(2048&(u=Js).flags))try{switch(u.tag){case 0:case 11:case 15:ru(9,u)}}catch(x){Sc(u,u.return,x)}if(u===s){Js=null;break e}var k=u.sibling;if(null!==k){k.return=u.return,Js=k;break e}Js=u.return}}if(ju=i,Bi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(x){}r=!0}return r}finally{bt=n,Ou.transition=t}}return!1}function _c(e,t,n){e=Ra(e,t=ps(0,t=ls(n,t),1),1),t=ec(),null!==e&&(yt(e,1,t),rc(e,t))}function Sc(e,t,n){if(3===e.tag)_c(e,e,n);else for(;null!==t;){if(3===t.tag){_c(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Gu||!Gu.has(r))){t=Ra(t,e=vs(t,e=ls(n,e),1),1),e=ec(),null!==t&&(yt(t,1,e),rc(t,e));break}}t=t.return}}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Cu===e&&(Nu&n)===n&&(4===Ru||3===Ru&&(130023424&Nu)===Nu&&500>Xe()-zu?dc(e,0):Fu|=n),rc(e,t)}function Tc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=lt,0===(130023424&(lt<<=1))&&(lt=4194304)));var n=ec();null!==(e=Ca(e,t))&&(yt(e,t,n),rc(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tc(e,n)}function jc(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;default:throw Error(a(314))}null!==r&&r.delete(t),Tc(e,n)}function Cc(e,t){return Ke(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,n,r){return new Ic(e,t,n,r)}function Ac(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Nc(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=14680064&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}function Rc(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)Ac(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case _:return Lc(n.children,i,o,t);case S:s=8,i|=8;break;case E:return(e=Nc(12,n,t,2|i)).elementType=E,e.lanes=o,e;case C:return(e=Nc(13,n,t,i)).elementType=C,e.lanes=o,e;case I:return(e=Nc(19,n,t,i)).elementType=I,e.lanes=o,e;case P:return Dc(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case T:s=10;break e;case O:s=9;break e;case j:s=11;break e;case N:s=14;break e;case A:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Nc(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Lc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Mc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,a,o,s,u){return e=new Vc(e,t,n,s,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Nc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(a),e}function zc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:x,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Bc(e){if(!e)return Oi;e:{if(Be(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ai(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ai(n))return Li(e,n,t)}return t}function qc(e,t,n,r,i,a,o,s,u){return(e=Uc(n,r,!0,e,0,a,0,s,u)).context=Bc(null),n=e.current,(a=Pa(r=ec(),i=tc(n))).callback=void 0!==t&&null!==t?t:null,Ra(n,a,i),e.current.lanes=i,yt(e,i,r),rc(e,r),e}function Hc(e,t,n,r){var i=t.current,a=ec(),o=tc(i);return n=Bc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Pa(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Ra(i,t,o))&&(nc(e,i,o,a),La(e,i,o)),o}function Wc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}_u=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ci.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Is(t),ha();break;case 5:ao(t);break;case 1:Ai(t.type)&&Di(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Ti(ya,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Ti(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(Ti(so,1&so.current),null!==(e=Hs(e,t,n))?e.sibling:null);Ti(so,1&so.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Bs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Ti(so,so.current),r)break;return null;case 22:case 23:return t.lanes=0,Es(e,t,n)}return Hs(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,ia&&0!==(1048576&t.flags)&&Zi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;qs(e,t),e=t.pendingProps;var i=Ni(t,ji.current);Sa(t,n),i=So(null,t,r,e,i,n);var o=Eo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ai(r)?(o=!0,Di(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Na(t),i.updater=za,t.stateNode=i,i._reactInternals=t,Wa(t,r,e,n),t=Cs(null,t,r,!0,o,n)):(t.tag=0,ia&&o&&ea(t),ks(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(qs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Ac(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===j)return 11;if(e===N)return 14}return 2}(r),e=ma(r,e),i){case 0:t=Os(null,t,r,e,n);break e;case 1:t=js(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=_s(null,t,r,ma(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Os(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 1:return r=t.type,i=t.pendingProps,js(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 3:e:{if(Is(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,Aa(e,t),Ma(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ns(e,t,r,n,i=ls(Error(a(423)),t));break e}if(r!==i){t=Ns(e,t,r,n,i=ls(Error(a(424)),t));break e}for(ra=ci(t.stateNode.containerInfo.firstChild),na=t,ia=!0,aa=null,n=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ha(),r===i){t=Hs(e,t,n);break e}ks(e,t,r,n)}t=t.child}return t;case 5:return ao(t),null===e&&ca(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==o&&ni(r,o)&&(t.flags|=32),Ts(e,t),ks(e,t,s,n),t.child;case 6:return null===e&&ca(t),null;case 13:return Ms(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ya(t,null,r,n):ks(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:ma(r,i),n);case 7:return ks(e,t,t.pendingProps,n),t.child;case 8:case 12:return ks(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Ti(ya,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===i.children&&!Ci.current){t=Hs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){s=o.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===o.tag){(c=Pa(-1,n&-n)).tag=2;var l=o.updateQueue;if(null!==l){var f=(l=l.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),_a(o.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),_a(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}ks(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Sa(t,n),r=r(i=Ea(i)),t.flags|=1,ks(e,t,r,n),t.child;case 14:return i=ma(r=t.type,t.pendingProps),_s(e,t,r,i=ma(r.type,i),n);case 15:return Ss(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ma(r,i),qs(e,t),t.tag=1,Ai(r)?(e=!0,Di(t)):e=!1,Sa(t,n),qa(t,r,i),Wa(t,r,i,n),Cs(null,t,r,!0,e,n);case 19:return Bs(e,t,n);case 22:return Es(e,t,n)}throw Error(a(156,t.tag))};var Qc="function"===typeof reportError?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Jc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Zc(){}function el(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=Wc(o);s.call(e)}}Hc(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Wc(o);a.call(e)}}var o=qc(t,r,e,0,null,!1,0,"",Zc);return e._reactRootContainer=o,e[pi]=o.current,Br(8===e.nodeType?e.parentNode:e),lc(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Wc(u);s.call(e)}}var u=Uc(e,0,!1,null,0,!1,0,"",Zc);return e._reactRootContainer=u,e[pi]=u.current,Br(8===e.nodeType?e.parentNode:e),lc((function(){Hc(t,u,n,r)})),u}(n,t,e,i,r);return Wc(o)}Yc.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hc(e,t,null,null)},Yc.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;lc((function(){Hc(null,e,null,null)})),t[pi]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Pt.length&&0!==t&&t<Pt[n].priority;n++);Pt.splice(n,0,e),0===n&&Mt(e)}},kt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),rc(t,Xe()),0===(6&ju)&&(Bu=Xe()+500,Bi()))}break;case 13:lc((function(){var t=Ca(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),Kc(e,1)}},xt=function(e){if(13===e.tag){var t=Ca(e,134217728);if(null!==t)nc(t,e,134217728,ec());Kc(e,134217728)}},_t=function(e){if(13===e.tag){var t=tc(e),n=Ca(e,t);if(null!==n)nc(n,e,t,ec());Kc(e,t)}},St=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},xe=function(e,t,n){switch(t){case"input":if(J(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=ki(r);if(!i)throw Error(a(90));K(r),J(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},je=cc,Ce=lc;var tl={usingClientEntryPoint:!1,Events:[bi,wi,ki,Te,Oe,cc]},nl={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rl={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{it=il.inject(rl),at=il}catch(le){}}
2t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xc(t))throw Error(a(200));return zc(e,t,null,n)},t.createRoot=function(e,t){if(!Xc(e))throw Error(a(299));var n=!1,r="",i=Qc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,i),e[pi]=t.current,Br(8===e.nodeType?e.parentNode:e),new $c(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return lc(e)},t.hydrate=function(e,t,n){if(!Jc(t))throw Error(a(200));return el(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xc(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=Qc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,i,0,o,s),e[pi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Yc(t)},t.render=function(e,t,n){if(!Jc(t))throw Error(a(200));return el(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Jc(e))throw Error(a(40));return!!e._reactRootContainer&&(lc((function(){el(null,null,e,!1,(function(){e._reactRootContainer=null,e[pi]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Jc(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return el(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},250:function(e,t,n){"use strict";var r=n(164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},77:function(e){var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,i="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function a(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,u,c,l;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(u=s;0!==u--;)if(!a(e[u],o[u]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!o.has(u.value[0]))return!1;for(l=e.entries();!(u=l.next()).done;)if(!a(u.value[1],o.get(u.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(l=e.entries();!(u=l.next()).done;)if(!o.has(u.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(u=s;0!==u--;)if(e[u]!==o[u])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(u=s;0!==u--;)if(!Object.prototype.hasOwnProperty.call(o,c[u]))return!1;if(t&&e instanceof Element)return!1;for(u=s;0!==u--;)if(("_owner"!==c[u]&&"__v"!==c[u]&&"__o"!==c[u]||!e.$$typeof)&&!a(e[c[u]],o[c[u]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return a(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},567:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=e||"";t&&(a=r(e));n&&(a=i(a));return a};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function r(e){return e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)}))}function i(e){return"string"===typeof(t=e)&&-1!==t.indexOf("@")?(console.warn("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e;var t}}
2,848:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=c(n(666)),i=c(n(567)),a=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],s=["page","hitType"],u=["action","category","label","value","nonInteraction","transport"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function f(e){return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||m(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),b(this,"reset",(function(){t.isInitialized=!1,t._testMode=!1,t._currentMeasurementId,t._hasLoadedGA=!1,t._isQueuing=!1,t._queueGtag=[]})),b(this,"_gtag",(function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t._testMode||t._isQueuing?t._queueGtag.push(n):r.default.apply(void 0,n)})),b(this,"_loadGA",(function(e,n){if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),n&&r.setAttribute("nonce",n),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),b(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=v(n,2),i=r[0],a=r[1];return t[i]?e[t[i]]=a:e[i]=a,e}),{})}})),b(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var i=n.gaOptions,a=n.gtagOptions,o=n.legacyDimensionMetric,s=void 0===o||o,u=n.nonce,c=n.testMode,l=void 0!==c&&c;if(t._testMode=l,l||t._loadGA(t._currentMeasurementId,u),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=t._appendCustomMap(p(p(p({send_page_view:!1},t._toGtagOptions(p(p({},i),e.gaOptions))),a),e.gtagOptions),s);t._gtag("config",e.trackingId,n)}))),t.isInitialized=!0,!l){var f=d(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;f.length;){var h=f.shift();t._gtag.apply(t,d(h)),"get"===h[0]&&(t._isQueuing=!0)}}})),b(this,"set",(function(e){e?"object"===f(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")}
vendor: 5,072 bytes, line 2
2)),b(this,"_gaCommandSendEvent",(function(e,n,r,i,a){t._gtag("event",n,p(p({event_category:e,event_label:r,value:i},a&&{non_interaction:a.nonInteraction}),t._toGtagOptions(a)))})),b(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendEvent.apply(t,d(n.slice(1)));else{var i=n[0],o=i.eventCategory,s=i.eventAction,u=i.eventLabel,c=i.eventValue,f=(i.hitType,l(i,a));t._gaCommandSendEvent(o,s,u,c,f)}})),b(this,"_gaCommandSendTiming",(function(e,n,r,i){t._gtag("event","timing_complete",{name:n,value:r,event_category:e,event_label:i})})),b(this,"_gaCommandSendPageview",(function(e,n){if(n&&Object.keys(n).length){var r=t._toGtagOptions(n),i=r.title,a=r.location,s=l(r,o);t._gtag("event","page_view",p(p(p(p({},e&&{page_path:e}),i&&{page_title:i}),a&&{page_location:a}),s))}else e?t._gtag("event","page_view",{page_path:e}):t._gtag("event","page_view")})),b(this,"_gaCommandSendPageviewParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendPageview.apply(t,d(n.slice(1)));else{var i=n[0],a=i.page,o=(i.hitType,l(i,s));t._gaCommandSendPageview(a,o)}})),b(this,"_gaCommandSend",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i="string"===typeof n[0]?n[0]:n[0].hitType;switch(i){case"event":t._gaCommandSendEventParameters.apply(t,n);break;case"pageview":t._gaCommandSendPageviewParameters.apply(t,n);break;case"timing":t._gaCommandSendTiming.apply(t,d(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(i));break;default:console.warn("Send command doesn't exist: ".concat(i))}})),b(this,"_gaCommandSet",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=b({},n[0],n[1])),t._gtag("set",t._toGtagOptions(n[0]))})),b(this,"_gaCommand",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];switch(e){case"send":t._gaCommandSend.apply(t,r);break;case"set":t._gaCommandSet.apply(t,r);break;default:console.warn("Command doesn't exist: ".concat(e))}})),b(this,"ga",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommand.apply(t,n);else{var i=n[0];t._gtag("get",t._currentMeasurementId,"client_id",(function(e){t._isQueuing=!1;var n=t._queueGtag;for(i({get:function(n){return"clientId"===n?e:"trackingId"===n?t._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();t._gtag.apply(t,d(r))}})),t._isQueuing=!0}return t.ga})),b(this,"event",(function(e,n){if("string"===typeof e)t._gtag("event",e,t._toGtagOptions(n));else{var r=e.action,a=e.category,o=e.label,s=e.value,c=e.nonInteraction,f=e.transport,d=l(e,u);if(!a||!r)return void console.warn("args.category AND args.action are required in event()");var h={hitType:"event",eventCategory:(0,i.default)(a),eventAction:(0,i.default)(r)};o&&(h.eventLabel=(0,i.default)(o)),"undefined"!==typeof s&&("number"!==typeof s?console.warn("Expected `args.value` arg to be a Number."):h.eventValue=s),"undefined"!==typeof c&&("boolean"!==typeof c?console.warn("`args.nonInteraction` must be a boolean."):h.nonInteraction=c),"undefined"!==typeof f&&("string"!==typeof f?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(f)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),h.transport=f)),Object.keys(d).filter((function(e){return"dimension"===e.substr(0,"dimension".length)})).forEach((function(e){h[e]=d[e]})),Object.keys(d).filter((function(e){return"metric"===e.substr(0,"metric".length)})).forEach((function(e){h[e]=d[e]})),t._gaCommand("send",h)}})),b(this,"send",(function(e){t._gaCommand("send",e)})),b(this,"pageview",(function(e,n,r){var i=null===e||void 0===e?void 0:e.trim();""!==i?t._gaCommand("send","pageview",i,{title:r}):console.warn("path cannot be an empty string in .pageview()")})),this.reset()}var t,n,c;return t=e,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}},{key:"_appendCustomMap",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t)return e;e.custom_map||(e.custom_map={});for(var n=1;n<=200;n++)e.custom_map["dimension".concat(n)]||(e.custom_map["dimension".concat(n)]="dimension".concat(n)),e.custom_map["metric".concat(n)]||(e.custom_map["metric".concat(n)]="metric".concat(n));return e}},{key:"outboundLink",value:function(e,t){var n=e.label;if("function"===typeof t)if(n){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:(0,i.default)(n)},a=!1,o=setTimeout((function(){a=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),a||t()},this._gaCommand("send",r)}else console.warn("args.label is required in outboundLink()");else console.warn("hitCallback function is required")}}],n&&g(t.prototype,n),c&&g(t,c),e}();
2t.GA4=w;var k=new w;t.default=k},666:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,t))};t.default=n},757:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.ZP=void 0;var i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var i={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=o?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(i,s,u):i[s]=e[s]}i.default=e,n&&n.set(e,i);return i}(n(848));function a(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}i.GA4;var o=i.default;t.ZP=o},87:function(e,t,n){!function(){var t={296:function(e,t,n){var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,u="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype.toString,d=Math.max,h=Math.min,p=function(){return l.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==f.call(e)}(e))return NaN;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||o.test(e)?s(e.slice(2),n?2:8):i.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,a,o,s,u,c=0,l=!1,f=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,a=i;return r=i=void 0,c=t,o=e.apply(a,n)}function b(e){return c=e,s=setTimeout(k,t),l?g(e):o}function w(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=a}function k(){var e=p();if(w(e))return x(e);s=setTimeout(k,function(e){var n=t-(e-u);return f?h(n,a-(e-c)):n}(e))}function x(e){return s=void 0,y&&r?g(e):(r=i=void 0,o)}function _(){var e=p(),n=w(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return b(u);if(f)return s=setTimeout(k,t),g(u)}return void 0===s&&(s=setTimeout(k,t)),o}return t=m(t)||0,v(n)&&(l=!!n.leading,a=(f="maxWait"in n)?d(m(n.maxWait)||0,t):a,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},_.flush=function(){return void 0===s?o:x(p())},_}},96:function(e,t,n){var r="Expected a function",i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,f=c||l||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,v=function(){return f.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function y(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(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=o.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError(r);return m(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),function(e,t,n){var i,a,o,s,u,c,l=0,f=!1,d=!1,g=!0;if("function"!=typeof e)throw new TypeError(r);function b(t){var n=i,r=a;return i=a=void 0,l=t,s=e.apply(r,n)}function w(e){return l=e,u=setTimeout(x,t),f?b(e):s}function k(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function x(){var e=v();if(k(e))return _(e);u=setTimeout(x,function(e){var n=t-(e-c);return d?p(n,o-(e-l)):n}(e))}function _(e){return u=void 0,g&&i?b(e):(i=a=void 0,s)}function S(){var e=v(),n=k(e);if(i=arguments,a=this,c=e,n){if(void 0===u)return w(c);if(d)return u=setTimeout(x,t),b(c)}return void 0===u&&(u=setTimeout(x,t)),s}return t=y(t)||0,m(n)&&(f=!!n.leading,o=(d="maxWait"in n)?h(y(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),S.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=a=u=void 0},S.flush=function(){return void 0===u?s:_(v())},S}(e,t,{leading:i,maxWait:t,trailing:a})}},703:function(e,t,n){"use strict";var r=n(414);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;
2var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},697:function(e,t,n){e.exports=n(703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}};return t[e](a,a.exports,i),a.exports}i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,{a:t}),t},i.d=function(e,t){for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(function(){"use strict";i.r(a),i.d(a,{LazyLoadComponent:function(){return K},LazyLoadImage:function(){return ie},trackWindowScroll:function(){return R}});var e=n(791),t=i.n(e),r=i(697),o=n(164),s=i.n(o);function u(){return"undefined"!=typeof window&&"IntersectionObserver"in window&&"isIntersecting"in window.IntersectionObserverEntry.prototype}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(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 f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){e.forEach((function(e){e.isIntersecting&&e.target.onVisible()}))},m={},y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(o,e);var n,r,i,a=(r=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(r);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function o(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).supportsObserver=!e.scrollPosition&&e.useIntersectionObserver&&u(),t.supportsObserver){var n=e.threshold;t.observer=function(e){return m[e]=m[e]||new IntersectionObserver(v,{rootMargin:e+"px"}),m[e]}(n)}return t}return(n=[{key:"componentDidMount",value:function(){this.placeholder&&this.observer&&(this.placeholder.onVisible=this.props.onVisible,this.observer.observe(this.placeholder)),this.supportsObserver||this.updateVisibility()}},{key:"componentWillUnmount",value:function(){this.observer&&this.placeholder&&this.observer.unobserve(this.placeholder)}},{key:"componentDidUpdate",value:function(){this.supportsObserver||this.updateVisibility()}},{key:"getPlaceholderBoundingBox",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.scrollPosition,t=this.placeholder.getBoundingClientRect(),n=s().findDOMNode(this.placeholder).style,r={left:parseInt(n.getPropertyValue("margin-left"),10)||0,top:parseInt(n.getPropertyValue("margin-top"),10)||0};
2return{bottom:e.y+t.bottom+r.top,left:e.x+t.left+r.left,right:e.x+t.right+r.left,top:e.y+t.top+r.top}}},{key:"isPlaceholderInViewport",value:function(){if("undefined"==typeof window||!this.placeholder)return!1;var e=this.props,t=e.scrollPosition,n=e.threshold,r=this.getPlaceholderBoundingBox(t),i=t.y+window.innerHeight,a=t.x,o=t.x+window.innerWidth,s=t.y;return Boolean(s-n<=r.bottom&&i+n>=r.top&&a-n<=r.right&&o+n>=r.left)}},{key:"updateVisibility",value:function(){this.isPlaceholderInViewport()&&this.props.onVisible()}},{key:"render",value:function(){var e=this,n=this.props,r=n.className,i=n.height,a=n.placeholder,o=n.style,s=n.width;if(a&&"function"!=typeof a.type)return t().cloneElement(a,{ref:function(t){return e.placeholder=t}});var u=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({display:"inline-block"},o);return void 0!==s&&(u.width=s),void 0!==i&&(u.height=i),t().createElement("span",{className:r,ref:function(t){return e.placeholder=t},style:u},a)}}])&&function(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)}}(o.prototype,n),o}(t().Component);y.propTypes={onVisible:r.PropTypes.func.isRequired,className:r.PropTypes.string,height:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string]),placeholder:r.PropTypes.element,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,scrollPosition:r.PropTypes.shape({x:r.PropTypes.number.isRequired,y:r.PropTypes.number.isRequired}),width:r.PropTypes.oneOfType([r.PropTypes.number,r.PropTypes.string])},y.defaultProps={className:"",placeholder:null,threshold:100,useIntersectionObserver:!0};var g=y,b=i(296),w=i.n(b),k=i(96),x=i.n(k),_=function(e){var t=getComputedStyle(e,null);return t.getPropertyValue("overflow")+t.getPropertyValue("overflow-y")+t.getPropertyValue("overflow-x")},S=function(e){if(!(e instanceof HTMLElement))return window;for(var t=e;t&&t instanceof HTMLElement;){if(/(scroll|auto)/.test(_(t)))return t;t=t.parentNode}return window};function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var T=["delayMethod","delayTime"];function O(){return(O=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return I(e)}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(){return"undefined"==typeof window?0:window.scrollX||window.pageXOffset},P=function(){return"undefined"==typeof window?0:window.scrollY||window.pageYOffset},R=function(e){var n=function(n){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&j(e,t)}(c,n);var r,i,a,o=(i=c,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(i);if(a){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return C(this,e)});function c(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=o.call(this,e)).useIntersectionObserver=e.useIntersectionObserver&&u(),n.useIntersectionObserver)return C(n);var r=n.onChangeScroll.bind(I(n));return"debounce"===e.delayMethod?n.delayedScroll=w()(r,e.delayTime):"throttle"===e.delayMethod&&(n.delayedScroll=x()(r,e.delayTime)),n.state={scrollPosition:{x:A(),y:P()}},n.baseComponentRef=t().createRef(),n}return(r=[{key:"componentDidMount",value:function(){this.addListeners()}},{key:"componentWillUnmount",value:function(){this.removeListeners()}},{key:"componentDidUpdate",value:function(){"undefined"==typeof window||this.useIntersectionObserver||S(s().findDOMNode(this.baseComponentRef.current))!==this.scrollElement&&(this.removeListeners(),this.addListeners())}},{key:"addListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement=S(s().findDOMNode(this.baseComponentRef.current)),this.scrollElement.addEventListener("scroll",this.delayedScroll,{passive:!0}),window.addEventListener("resize",this.delayedScroll,{passive:!0}),this.scrollElement!==window&&window.addEventListener("scroll",this.delayedScroll,{passive:!0}))}},{key:"removeListeners",value:function(){"undefined"==typeof window||this.useIntersectionObserver||(this.scrollElement.removeEventListener("scroll",this.delayedScroll),window.removeEventListener("resize",this.delayedScroll),this.scrollElement!==window&&window.removeEventListener("scroll",this.delayedScroll))}},{key:"onChangeScroll",value:function(){this.useIntersectionObserver||this.setState({scrollPosition:{x:A(),y:P()}})}},{key:"render",value:function(){var n=this.props,r=(n.delayMethod,n.delayTime,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,T)),i=this.useIntersectionObserver?null:this.state.scrollPosition;return t().createElement(e,O({forwardRef:this.baseComponentRef,scrollPosition:i},r))}}])&&function(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)}}(c.prototype,r),c}(t().Component);return n.propTypes={delayMethod:r.PropTypes.oneOf(["debounce","throttle"]),delayTime:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool},n.defaultProps={delayMethod:"throttle",delayTime:300,useIntersectionObserver:!0},n};function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e,t){if(t&&("object"===L(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function F(e){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(o,e);var n,r,i,a=(r=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=F(r);if(i){var n=F(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(this,e)});function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),a.call(this,e)}return(n=[{key:"render",value:function(){return t().createElement(g,this.props)}}])&&function(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)}}(o.prototype,n),o}(t().Component),U=R(V);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function q(e,t){if(t&&("object"===z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return H(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&B(e,t)}(o,e);var n,r,i,a=(r=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=W(r);if(i){var n=W(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return q(this,e)});function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=a.call(this,e);var n=e.afterLoad,r=e.beforeLoad,i=e.scrollPosition,s=e.visibleByDefault;return t.state={visible:s},s&&(r(),n()),t.onVisible=t.onVisible.bind(H(t)),t.isScrollTracked=Boolean(i&&Number.isFinite(i.x)&&i.x>=0&&Number.isFinite(i.y)&&i.y>=0),t}return(n=[{key:"componentDidUpdate",value:function(e,t){t.visible!==this.state.visible&&this.props.afterLoad()}},{key:"onVisible",value:function(){this.props.beforeLoad(),this.setState({visible:!0})}},{key:"render",value:function(){if(this.state.visible)return this.props.children;var e=this.props,n=e.className,r=e.delayMethod,i=e.delayTime,a=e.height,o=e.placeholder,s=e.scrollPosition,c=e.style,l=e.threshold,f=e.useIntersectionObserver,d=e.width;return this.isScrollTracked||f&&u()?t().createElement(g,{className:n,height:a,onVisible:this.onVisible,placeholder:o,scrollPosition:s,style:c,threshold:l,useIntersectionObserver:f,width:d}):t().createElement(U,{className:n,delayMethod:r,delayTime:i,height:a,onVisible:this.onVisible,placeholder:o,style:c,threshold:l,width:d})}}])&&function(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)}}(o.prototype,n),o}(t().Component);G.propTypes={afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool},G.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},useIntersectionObserver:!0,visibleByDefault:!1};var K=G;function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var $=["afterLoad","beforeLoad","delayMethod","delayTime","effect","placeholder","placeholderSrc","scrollPosition","threshold","useIntersectionObserver","visibleByDefault","wrapperClassName","wrapperProps"];function Y(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Y(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(o,e);var n,r,i,a=(r=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=ne(r);if(i){var n=ne(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return te(this,e)});function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=a.call(this,e)).state={loaded:!1},t}return(n=[{key:"onImageLoad",value:function(){var e=this;return this.state.loaded?null:function(){e.props.afterLoad(),e.setState({loaded:!0})}}},{key:"getImg",value:function(){var e=this.props,n=(e.afterLoad,e.beforeLoad,e.delayMethod,e.delayTime,e.effect,e.placeholder,e.placeholderSrc,e.scrollPosition,e.threshold,e.useIntersectionObserver,e.visibleByDefault,e.wrapperClassName,e.wrapperProps,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,$));return t().createElement("img",Z({onLoad:this.onImageLoad()},n))}},{key:"getLazyLoadImage",value:function(){var e=this.props,n=e.beforeLoad,r=e.className,i=e.delayMethod,a=e.delayTime,o=e.height,s=e.placeholder,u=e.scrollPosition,c=e.style,l=e.threshold,f=e.useIntersectionObserver,d=e.visibleByDefault,h=e.width;return t().createElement(K,{beforeLoad:n,className:r,delayMethod:i,delayTime:a,height:o,placeholder:s,scrollPosition:u,style:c,threshold:l,useIntersectionObserver:f,visibleByDefault:d,width:h},this.getImg())}},{key:"getWrappedLazyLoadImage",value:function(e){var n=this.props,r=n.effect,i=n.height,a=n.placeholderSrc,o=n.width,s=n.wrapperClassName,u=n.wrapperProps,c=this.state.loaded,l=c?" lazy-load-image-loaded":"",f=c||!a?{}:{backgroundImage:"url(".concat(a,")"),backgroundSize:"100% 100%"};return t().createElement("span",Z({className:s+" lazy-load-image-background "+r+l,style:X(X({},f),{},{color:"transparent",display:"inline-block",height:i,width:o})},u),e)}},{key:"render",value:function(){var e=this.props,t=e.effect,n=e.placeholderSrc,r=e.visibleByDefault,i=e.wrapperClassName,a=e.wrapperProps,o=this.getLazyLoadImage();return(t||n)&&!r||i||a?this.getWrappedLazyLoadImage(o):o}}])&&function(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)}}(o.prototype,n),o}(t().Component);re.propTypes={afterLoad:r.PropTypes.func,beforeLoad:r.PropTypes.func,delayMethod:r.PropTypes.string,delayTime:r.PropTypes.number,effect:r.PropTypes.string,placeholderSrc:r.PropTypes.string,threshold:r.PropTypes.number,useIntersectionObserver:r.PropTypes.bool,visibleByDefault:r.PropTypes.bool,wrapperClassName:r.PropTypes.string,wrapperProps:r.PropTypes.object},re.defaultProps={afterLoad:function(){return{}},beforeLoad:function(){return{}},delayMethod:"throttle",delayTime:300,effect:"",placeholderSrc:null,threshold:100,useIntersectionObserver:!0,visibleByDefault:!1,wrapperClassName:""};var ie=re})(),e.exports=a}()},946:function(e,t){t.g=function(e,t){var n=e.url,r=e.title,i=e.images;if(void 0===navigator.share)return null===t||void 0===t||t("Can't share on this, make sure you are running on Android or iOS devices"),void console.error("error: navigator.share is not available");if(!r)return null===t||void 0===t||t("Title is required"),void console.error("error: title is requied");var a={text:r,title:r};if(n&&(a.url=n),Array.isArray(i)){var o=i.map((function(e){return function(e){if(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,a=new Uint8Array(i);i--;)a[i]=r.charCodeAt(i);return new File([a],"image.jpg",{type:n})}}(e)}));o&&(a.files=o)}try{navigator.canShare&&navigator.canShare(a)&&navigator.share(a).then((function(){return console.info("Shared successful.")})).catch((function(e){null===t||void 0===t||t(e.message),console.error("Sharing failed ..",e)}))}catch(s){null===t||void 0===t||t(s.message),console.error("error: ",s)}}},374:function(e,t,n){"use strict";var r=n(791),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INT
vendor: 8,598 bytes, line 2
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,a={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:a,_owner:s.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): 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")},g.prototype=y.prototype;var w=b.prototype=new g;w.constructor=b,v(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,x=Object.prototype.hasOwnProperty,_={current:null},S={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)x.call(t,i)&&!S.hasOwnProperty(i)&&(a[i]=t[i]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];a.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===a[i]&&(a[i]=u[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:_.current}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function j(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===a?"."+j(u,0):a,k(o)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),C(o,t,i,"",(function(e){return e}))):null!=o&&(T(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",k(e))for(var c=0;c<e.length;c++){var l=a+j(s=e[c],c);u+=C(s,t,i,l,o)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=C(s=s.value,t,i,l=a+j(s,c++),o);else if("object"===s)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 I(e,t,n){if(null==e)return e;var r=[],i=0;return C(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function 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 A={current:null},P={transition:null},R={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:P,ReactCurrentOwner:_};t.Children={map:I,forEach:function(e,t,n){I(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return I(e,(function(){t++})),t},toArray:function(e){return I(e,(function(e){return e}))||[]},only:function(e){if(!T(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=a,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=_.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!S.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=P.transition;P.transition={};try{e()}finally{P.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,n){return A.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,n){return A.current.useReducer(e,t,n)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return A.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return A.current.useTransition()},t.version="18.2.0"},791:function(e,t,n){"use strict";e.exports=n(117)},184:function(e,t,n){"use strict";e.exports=n(374)},813:function(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<a(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 s=2*(r+1)-1,u=e[s],c=s+1,l=e[c];if(0>a(u,n))c<i&&0>a(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(c<i&&0>a(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],f=1,d=null,h=3,p=!1,v=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function k(e){if(m=!1,w(e),!v)if(null!==r(c))v=!0,P(x);else{var t=r(l);null!==t&&R(k,t.startTime-e)}}function x(e,n){v=!1,m&&(m=!1,g(T),T=-1),p=!0;var a=h;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!C());){var o=d.callback;if("function"===typeof o){d.callback=null,h=d.priorityLevel;var s=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&i(c),w(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(l);null!==f&&R(k,f.startTime-n),u=!1}return u}finally{d=null,h=a,p=!1}
2}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var _,S=!1,E=null,T=-1,O=5,j=-1;function C(){return!(t.unstable_now()-j<O)}function I(){if(null!==E){var e=t.unstable_now();j=e;var n=!0;try{n=E(!0,e)}finally{n?_():(S=!1,E=null)}}else S=!1}if("function"===typeof b)_=function(){b(I)};else if("undefined"!==typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=I,_=function(){A.postMessage(null)}}else _=function(){y(I,0)};function P(e){E=e,S||(S=!0,_())}function R(e,n){T=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(){v||p||(v=!0,P(x))},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"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=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=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(l,e),null===r(c)&&e===r(l)&&(m?(g(T),T=-1):m=!0,R(k,a-o))):(e.sortIndex=s,n(c,e),v||p||(v=!0,P(x))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},296:function(e,t,n){"use strict";e.exports=n(813)},613:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),u=0;u<a.length;u++){var c=a[u];if(!s(c))return!1;var l=e[c],f=t[c];if(!1===(i=n?n.call(r,l,f,c):void 0)||void 0===i&&l!==f)return!1}return!0}},333:function(e){var t;t=function(){var e=JSON.parse('{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","\xa2":"cent","\xa3":"pound","\xa4":"currency","\xa5":"yen","\xa9":"(c)","\xaa":"a","\xae":"(r)","\xba":"o","\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xc6":"AE","\xc7":"C","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xd0":"D","\xd1":"N","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xdd":"Y","\xde":"TH","\xdf":"ss","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xe6":"ae","\xe7":"c","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xf0":"d","\xf1":"n","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xfd":"y","\xfe":"th","\xff":"y","\u0100":"A","\u0101":"a","\u0102":"A","\u0103":"a","\u0104":"A","\u0105":"a","\u0106":"C","\u0107":"c","\u010c":"C","\u010d":"c","\u010e":"D","\u010f":"d","\u0110":"DJ","\u0111":"dj","\u0112":"E","\u0113":"e","\u0116":"E","\u0117":"e","\u0118":"e","\u0119":"e","\u011a":"E","\u011b":"e","\u011e":"G","\u011f":"g","\u0122":"G","\u0123":"g","\u0128":"I","\u0129":"i","\u012a":"i","\u012b":"i","\u012e":"I","\u012f":"i","\u0130":"I","\u0131":"i","\u0136":"k","\u0137":"k","\u013b":"L","\u013c":"l","\u013d":"L","\u013e":"l","\u0141":"L","\u0142":"l","\u0143":"N","\u0144":"n","\u0145":"N","\u0146":"n","\u0147":"N","\u0148":"n","\u014c":"O","\u014d":"o","\u0150":"O","\u0151":"o","\u0152":"OE","\u0153":"oe","\u0154":"R","\u0155":"r","\u0158":"R","\u0159":"r","\u015a":"S","\u015b":"s","\u015e":"S","\u015f":"s","\u0160":"S","\u0161":"s","\u0162":"T","\u0163":"t","\u0164":"T","\u0165":"t","\u0168":"U","\u0169":"u","\u016a":"u","\u016b":"u","\u016e":"U","\u016f":"u","\u0170":"U","\u0171":"u","\u0172":"U","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017a":"z","\u017b":"Z","\u017c":"z","\u017d":"Z","\u017e":"z","\u018f":"E","\u0192":"f","\u01a0":"O","\u01a1":"o","\u01af":"U","\u01b0":"u","\u01c8":"LJ","\u01c9":"lj","\u01cb":"NJ","\u01cc":"nj","\u0218":"S","\u0219":"s","\u021a":"T","\u021b":"t","\u0259":"e","\u02da":"o","\u0386":"A","\u0388":"E","\u0389":"H","\u038a":"I","\u038c":"O","\u038e":"Y","\u038f":"W","\u0390":"i","\u0391":"A","\u0392":"B","\u0393":"G","\u0394":"D","\u0395":"E","\u0396":"Z","\u0397":"H","\u0398":"8","\u0399":"I","\u039a":"K","\u039b":"L","\u039c":"M","\u039d":"N","\u039e":"3","\u039f":"O","\u03a0":"P","\u03a1":"R","\u03a3":"S","\u03a4":"T","\u03a5":"Y","\u03a6":"F","\u03a7":"X","\u03a8":"PS","\u03a9":"W","\u03aa":"I","\u03ab":"Y","\u03ac":"a","\u03ad":"e","\u03ae":"h","\u03af":"i","\u03b0":"y","\u03b1":"a","\u03b2":"b","\u03b3":"g","\u03b4":"d","\u03b5":"e","\u03b6":"z","\u03b7":"h","\u03b8":"8","\u03b9":"i","\u03ba":"k","\u03bb":"l","\u03bc":"m","\u03bd":"n","\u03be":"3","\u03bf":"o","\u03c0":"p","\u03c1":"r","\u03c2":"s","\u03c3":"s","\u03c4":"t","\u03c5":"y","\u03c6":"f","\u03c7":"x","\u03c8":"ps","\u03c9":"w","\u03ca":"i","\u03cb":"y","\u03cc":"o","\u03cd":"y","\u03ce":"w","\u0401":"Yo","\u0402":"DJ","\u0404":"Ye","\u0406":"I","\u0407":"Yi","\u0408":"J","\u0409":"LJ","\u040a":"NJ","\u040b":"C","\u040f":"DZ","\u0410":"A","\u0411":"B","\u0412":"V","\u0413":"G","\u0414":"D","\u0415":"E","\u0416":"Zh","\u0417":"Z","\u0418":"I","\u0419":"J","\u041a":"K","\u041b":"L","\u041c":"M","\u041d":"N","\u041e":"O","\u041f":"P","\u0420":"R","\u0421":"S","\u0422":"T","\u0423":"U","\u0424":"F","\u0425":"H","\u0426":"C","\u0427":"Ch","\u0428":"Sh","\u0429":"Sh","\u042a":"U","\u042b":"Y","\u042c":"","\u042d":"E","\u042e":"Yu","\u042f":"Ya","\u0430":"a","\u0431":"b","\u0432":"v","\u0433":"g","\u0434":"d","\u0435":"e","\u0436":"zh","\u0437":"z","\u0438":"i","\u0439":"j","\u043a":"k","\u043b":"l","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"p","\u0440":"r","\u0441":"s","\u0442":"t","\u0443":"u","\u0444":"f","\u0445":"h","\u0446":"c","\u0447":"ch","\u0448":"sh","\u0449":"sh","\u044a":"u","\u044b":"y","\u044c":"","\u044d":"e","\u044e":"yu","\u044f":"ya","\u0451":"yo","\u0452":"dj","\u0454":"ye","\u0456":"i","\u0457":"yi","\u0458":"j","\u0459":"lj","\u045a":"nj","\u045b":"c","\u045d":"u","\u045f":"dz","\u0490":"G","\u0491":"g","\u0492":"GH","\u0493":"gh","\u049a":"KH","\u049b":"kh","\u04a2":"NG","\u04a3":"ng","\u04ae":"UE","\u04af":"ue","\u04b0":"U","\u04b1":"u","\u04ba":"H","\u04bb":"h","\u04d8":"AE","\u04d9":"ae","\u04e8":"OE","\u04e9":"oe","\u0531":"A","\u0532":"B","\u0533":"G","\u0534":"D","\u0535":"E","\u0536":"Z","\u0537":"E\'","\u0538":"Y\'","\u0539":"T\'","\u053a":"JH","\u053b":"I","\u053c":"L","\u053d":"X","\u053e":"C\'","\u053f":"K","\u0540":"H","\u0541":"D\'","\u0542":"GH","\u0543":"TW","\u0544":"M","\u0545":"Y","\u0546":"N","\u0547":"SH","\u0549":"CH","\u054a":"P","\u054b":"J","\u054c":"R\'","\u054d":"S","\u054e":"V","\u054f":"T","\u0550":"R","\u0551":"C","\u0553":"P\'","\u0554":"Q\'","\u0555":"O\'\'","\u0556":"F","\u0587":"EV","\u0621":"a","\u0622":"aa","\u0623":"a","\u0624":"u","\u0625":"i","\u0626":"e","\u0627":"a","\u0628":"b","\u0629":"h","\u062a":"t","\u062b":"th","\u062c":"j","\u062d":"h","\u062e":"kh","\u062f":"d","\u0630":"th","\u0631":"r","\u0632":"z","\u0633":"s","\u0634":"sh","\u0635":"s","\u0636":"dh","\u0637":"t","\u0638":"z","\u0639":"a","\u063a":"gh","\u0641":"f","\u0642":"q","\u0643":"k","\u0644":"l","\u0645":"m","\u0646":"n","\u0647":"h","\u0648":"w","\u0649":"a","\u064a":"y","\u064b":"an","\u064c":"on","\u064d":"en","\u064e":"a","\u064f":"u","\u0650":"e","\u0652":"","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u067e":"p","\u0686":"ch","\u0698":"zh","\u06a9":"k","\u06af":"g","\u06cc":"y","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u0e3f":"baht","\u10d0":"a","\u10d1":"b","\u10d2":"g","\u10d3":"d","\u10d4":"e","\u10d5":"v","\u10d6":"z","\u10d7":"t","\u10d8":"i","\u10d9":"k","\u10da":"l","\u10db":"m","\u10dc":"n","\u10dd":"o","\u10de":"p","\u10df":"zh","\u10e0":"r","\u10e1":"s","\u10e2":"t","\u10e3":"u","\u10e4":"f","\u10e5":"k","\u10e6":"gh","\u10e7":"q","\u10e8":"sh","\u10e9":"ch","\u10ea":"ts","\u10eb":"dz","\u10ec":"ts","\u10ed":"ch","\u10ee":"kh","\u10ef":"j","\u10f0":"h","\u1e62":"S","\u1e63":"s","\u1e80":"W","\u1e81":"w","\u1e82":"W","\u1e83":"w","\u1e84":"W","\u1e85":"w","\u1e9e":"SS","\u1ea0":"A","\u1ea1":"a","\u1ea2":"A","\u1ea3":"a","\u1ea4":"A","\u1ea5":"a","\u1ea6":"A","\u1ea7":"a","\u1ea8":"A","\u1ea9":"a","\u1eaa":"A","\u1eab":"a","\u1eac":"A","\u1ead":"a","\u1eae":"A","\u1eaf":"a","\u1eb0":"A","\u1eb1":"a","\u1eb2":"A","\u1eb3":"a","\u1eb4":"A","\u1eb5":"a","\u1eb6":"A","\u1eb7":"a","\u1eb8":"E","\u1eb9":"e","\u1eba":"E","\u1ebb":"e","\u1ebc":"E","\u1ebd":"e","\u1ebe":"E","\u1ebf":"e","\u1ec0":"E","\u1ec1":"e","\u1ec2":"E","\u1ec3":"e","\u1ec4":"E","\u1ec5":"e","\u1ec6":"E","\u1ec7":"e","\u1ec8":"I","\u1ec9":"i","\u1eca":"I","\u1ecb":"i","\u1ecc":"O","\u1ecd":"o","\u1ece":"O","\u1ecf":"o","\u1ed0":"O","\u1ed1":"o","\u1ed2":"O","\u1ed3":"o","\u1ed4":"O","\u1ed5":"o","\u1ed6":"O","\u1ed7":"o","\u1ed8":"O","\u1ed9":"o","\u1eda":"O","\u1edb":"o","\u1edc":"O","\u1edd":"o","\u1ede":"O","\u1edf":"o","\u1ee0":"O","\u1ee1":"o","\u1ee2":"O","\u1ee3":"o","\u1ee4":"U","\u1ee5":"u","\u1ee6":"U","\u1ee7":"u","\u1ee8":"U","\u1ee9":"u","\u1eea":"U","\u1eeb":"u","\u1eec":"U","\u1eed":"u","\u1eee":"U","\u1eef":"u","\u1ef0":"U","\u1ef1":"u","\u1ef2":"Y","\u1ef3":"y","\u1ef4":"Y","\u1ef5":"y","\u1ef6":"Y","\u1ef7":"y","\u1ef8":"Y","\u1ef9":"y","\u2013":"-","\u2018":"\'","\u2019":"\'","\u201c":"\\"","\u201d":"\\"","\u201e":"\\"","\u2020":"+","\u2022":"*","\u2026":"...","\u20a0":"ecu","\u20a2":"cruzeiro","\u20a3":"french franc","\u20a4":"lira","\u20a5":"mill","\u20a6":"naira","\u20a7":"peseta","\u20a8":"rupee","\u20a9":"won","\u20aa":"new shequel","\u20ab":"dong","\u20ac":"euro","\u20ad":"kip","\u20ae":"tugrik","\u20af":"drachma","\u20b0":"penny","\u20b1":"peso","\u20b2":"guarani","\u20b3":"austral","\u20b4":"hryvnia","\u20b5":"cedi","\u20b8":"kazakhstani tenge","\u20b9":"indian rupee","\u20ba":"turkish lira","\u20bd":"russian ruble","\u20bf":"bitcoin","\u2120":"sm","\u2122":"tm","\u2202":"d","\u2206":"delta","\u2211":"sum","\u221e":"infinity","\u2665":"love","\u5143":"yuan","\u5186":"yen","\ufdfc":"rial","\ufef5":"laa","\ufef7":"laa","\ufef9":"lai","\ufefb":"la"}'),t=JSON.parse('{"bg":{"\u0419":"Y","\u0426":"Ts","\u0429":"Sht","\u042a":"A","\u042c":"Y","\u0439":"y","\u0446":"ts","\u0449":"sht","\u044a":"a","\u044c":"y"},"de":{"\xc4":"AE","\xe4":"ae","\xd6":"OE","\xf6":"oe","\xdc":"UE","\xfc":"ue","\xdf":"ss","%":"prozent","&":"und","|":"oder","\u2211":"summe","\u221e":"unendlich","\u2665":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","\xa2":"centavos","\xa3":"libras","\xa4":"moneda","\u20a3":"francos","\u2211":"suma","\u221e":"infinito","\u2665":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","\xa2":"centime","\xa3":"livre","\xa4":"devise","\u20a3":"franc","\u2211":"somme","\u221e":"infini","\u2665":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","\xa2":"centavo","\u2211":"soma","\xa3":"libra","\u221e":"infinito","\u2665":"amor"},"uk":{"\u0418":"Y","\u0438":"y","\u0419":"Y","\u0439":"y","\u0426":"Ts","\u0446":"ts","\u0425":"Kh","\u0445":"kh","\u0429":"Shch","\u0449":"shch","\u0413":"H","\u0433":"h"},"vi":{"\u0110":"D","\u0111":"d"},"da":{"\xd8":"OE","\xf8":"oe","\xc5":"AA","\xe5":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"st\xf8rre end"},"nb":{"&":"og","\xc5":"AA","\xc6":"AE","\xd8":"OE","\xe5":"aa","\xe6":"ae","\xf8":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","\xc5":"AA","\xc4":"AE","\xd6":"OE","\xe5":"aa","\xe4":"ae","\xf6":"oe"}}');function n(n,r){if("string"!==typeof n)throw new Error("slugify: string argument expected");var i=t[(r="string"===typeof r?{replacement:r}:r||{}).locale]||{},a=void 0===r.replacement?"-":r.replacement,o=void 0===r.trim||r.trim,s=n.normalize().split("").reduce((function(t,n){var o=i[n]||e[n]||n;return o===a&&(o=" "),t+o.replace(r.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")}),"");return r.strict&&(s=s.replace(/[^A-Za-z0-9\s]/g,"")),o&&(s=s.trim()),s=s.replace(/\s+/g,a),r.lower&&(s=s.toLowerCase()),s}return n.extend=function(t){Object.assign(e,t)},n},e.exports=t(),e.exports.default=t()}},t={};function n(r){var i=t[r];
2if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return r[e]}}));return o.default=function(){return r},n.d(a,o),a}}(),n.d=function(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=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".1e0a03c1.chunk.js"},n.miniCssF=function(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=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="foodie-vvn:";n.l=function(r,i,a,o){if(e[r])e[r].push(i);else{var s,u;if(void 0!==a)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var f=c[l];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+a){s=f;break}}s||(u=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[i];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),u&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var a=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=a);var o=n.p+n.u(t),s=new Error;n.l(o,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,a,o=r[0],s=r[1],u=r[2],c=0;if(o.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(u)u(n)}for(t&&t(r);c<o.length;c++)a=o[c],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkfoodie_vvn=self.webpackChunkfoodie_vvn||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),function(){"use strict";var e=n(791),t=n.t(e,2),r=n(7),i=n.n(r),a=n(77),o=n.n(a),s=n(176),u=n.n(s),c=n(613),l=n.n(c);function f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f.apply(this,arguments)}function d(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}var v={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},m={rel:["amphtml","canonical","alternate"]},y={type:["application/ld+json"]},g={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},b=Object.keys(v).map((function(e){return v[e]}
2)),w={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},k=Object.keys(w).reduce((function(e,t){return e[w[t]]=t,e}),{}),x=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_=function(e){var t=x(e,v.TITLE),n=x(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=x(e,"defaultTitle");return t||r||void 0},S=function(e){return x(e,"onChangeClientState")||function(){}},E=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return f({},e,t)}),{})},T=function(e,t){return t.filter((function(e){return void 0!==e[v.BASE]})).map((function(e){return e[v.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),i=0;i<r.length;i+=1){var a=r[i].toLowerCase();if(-1!==e.indexOf(a)&&n[a])return t.concat(n)}return t}),[])},O=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var i={};n.filter((function(e){for(var n,a=Object.keys(e),o=0;o<a.length;o+=1){var s=a[o],u=s.toLowerCase();-1===t.indexOf(u)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===u&&"stylesheet"===e[u].toLowerCase()||(n=u),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),i[n]||(i[n]={}),!r[n][c]&&(i[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var a=Object.keys(i),o=0;o<a.length;o+=1){var s=a[o],u=f({},r[s],i[s]);r[s]=u}return e}),[]).reverse()},j=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},C=function(e){return Array.isArray(e)?e.join(""):e},I=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},N=function(e,t){var n;return f({},e,((n={})[t]=void 0,n))},A=[v.NOSCRIPT,v.SCRIPT,v.STYLE],P=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},R=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},L=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[w[n]||n]=e[n],t}),t)},D=function(t,n){return n.map((function(n,r){var i,a=((i={key:r})["data-rh"]=!0,i);return Object.keys(n).forEach((function(e){var t=w[e]||e;"innerHTML"===t||"cssText"===t?a.dangerouslySetInnerHTML={__html:n.innerHTML||n.cssText}:a[t]=n[e]})),e.createElement(t,a)}))},M=function(t,n,r){switch(t){case v.TITLE:return{toComponent:function(){return r=n.titleAttributes,(i={key:t=n.title})["data-rh"]=!0,a=L(r,i),[e.createElement(v.TITLE,a,t)];var t,r,i,a},toString:function(){return function(e,t,n,r){var i=R(n),a=C(t);return i?"<"+e+' data-rh="true" '+i+">"+P(a,r)+"</"+e+">":"<"+e+' data-rh="true">'+P(a,r)+"</"+e+">"}(t,n.title,n.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return L(n)},toString:function(){return R(n)}};default:return{toComponent:function(){return D(t,n)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var i=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var i=void 0===r[t]?t:t+'="'+P(r[t],n)+'"';return e?e+" "+i:i}),""),a=r.innerHTML||r.cssText||"",o=-1===A.indexOf(e);return t+"<"+e+' data-rh="true" '+i+(o?"/>":">"+a+"</"+e+">")}),"")}(t,n,r)}}}},F=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,i=e.htmlAttributes,a=e.noscriptTags,o=e.styleTags,s=e.title,u=void 0===s?"":s,c=e.titleAttributes,l=e.linkTags,f=e.metaTags,d=e.scriptTags,h={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var p=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,i=I(e.metaTags,g),a=I(t,m),o=I(n,y);return{priorityMethods:{toComponent:function(){return[].concat(D(v.META,i.priority),D(v.LINK,a.priority),D(v.SCRIPT,o.priority))},toString:function(){return M(v.META,i.priority,r)+" "+M(v.LINK,a.priority,r)+" "+M(v.
vendor: 6,096 bytes, line 2
2SCRIPT,o.priority,r)}},metaTags:i.default,linkTags:a.default,scriptTags:o.default}}(e);h=p.priorityMethods,l=p.linkTags,f=p.metaTags,d=p.scriptTags}return{priority:h,base:M(v.BASE,t,r),bodyAttributes:M("bodyAttributes",n,r),htmlAttributes:M("htmlAttributes",i,r),link:M(v.LINK,l,r),meta:M(v.META,f,r),noscript:M(v.NOSCRIPT,a,r),script:M(v.SCRIPT,d,r),style:M(v.STYLE,o,r),title:M(v.TITLE,{title:u,titleAttributes:c},r)}},V=[],U=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?V:n.instances},add:function(e){(n.canUseDOM?V:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?V:n.instances).indexOf(e);(n.canUseDOM?V:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=F({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},z=e.createContext({}),B=i().shape({setHelmet:i().func,helmetInstances:i().shape({get:i().func,add:i().func,remove:i().func})}),q="undefined"!=typeof document,H=function(t){function n(e){var r;return(r=t.call(this,e)||this).helmetData=new U(r.props.context,n.canUseDOM),r}return d(n,t),n.prototype.render=function(){return e.createElement(z.Provider,{value:this.helmetData.value},this.props.children)},n}(e.Component);H.canUseDOM=q,H.propTypes={context:i().shape({helmet:i().shape()}),children:i().node.isRequired},H.defaultProps={context:{}},H.displayName="HelmetProvider";var W=function(e,t){var n,r=document.head||document.querySelector(v.HEAD),i=r.querySelectorAll(e+"[data-rh]"),a=[].slice.call(i),o=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&("innerHTML"===i?r.innerHTML=t.innerHTML:"cssText"===i?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(i,void 0===t[i]?"":t[i]));r.setAttribute("data-rh","true"),a.some((function(e,t){return n=t,r.isEqualNode(e)}))?a.splice(n,1):o.push(r)})),a.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return r.appendChild(e)})),{oldTags:a,newTags:o}},G=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),i=r?r.split(","):[],a=[].concat(i),o=Object.keys(t),s=0;s<o.length;s+=1){var u=o[s],c=t[u]||"";n.getAttribute(u)!==c&&n.setAttribute(u,c),-1===i.indexOf(u)&&i.push(u);var l=a.indexOf(u);-1!==l&&a.splice(l,1)}for(var f=a.length-1;f>=0;f-=1)n.removeAttribute(a[f]);i.length===a.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},K=function(e,t){var n=e.baseTag,r=e.htmlAttributes,i=e.linkTags,a=e.metaTags,o=e.noscriptTags,s=e.onChangeClientState,u=e.scriptTags,c=e.styleTags,l=e.title,f=e.titleAttributes;G(v.BODY,e.bodyAttributes),G(v.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=C(e)),G(v.TITLE,t)}(l,f);var d={baseTag:W(v.BASE,n),linkTags:W(v.LINK,i),metaTags:W(v.META,a),noscriptTags:W(v.NOSCRIPT,o),scriptTags:W(v.SCRIPT,u),styleTags:W(v.STYLE,c)},h={},p={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(h[e]=n),r.length&&(p[e]=d[e].oldTags)})),t&&t(),s(e,h,p)},Q=null,$=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}d(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!l()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,i=null,a=(e=n.helmetInstances.get().map((function(e){var t=f({},e.props);return delete t.context,t})),{baseTag:T(["href"],e),bodyAttributes:E("bodyAttributes",e),defer:x(e,"defer"),encode:x(e,"encodeSpecialCharacters"),htmlAttributes:E("htmlAttributes",e),linkTags:O(v.LINK,["rel","href"],e),metaTags:O(v.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:O(v.NOSCRIPT,["innerHTML"],e),onChangeClientState:S(e),scriptTags:O(v.SCRIPT,["src","innerHTML"],e),styleTags:O(v.STYLE,["cssText"],e),title:_(e),titleAttributes:E("titleAttributes",e),prioritizeSeoTags:j(e,"prioritizeSeoTags")});H.canUseDOM?(t=a,Q&&cancelAnimationFrame(Q),t.defer?Q=requestAnimationFrame((function(){K(t,(function(){Q=null}))})):(K(t),Q=null)):F&&(i=F(a)),r(i)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(e.Component);$.propTypes={context:B.isRequired},$.displayName="HelmetDispatcher";var Y=["children"],X=["children"],J=function(t){function n(){return t.apply(this,arguments)||this}d(n,t);var r=n.prototype;return r.shouldComponentUpdate=function(e){return!o()(N(this.props,"helmetData"),N(e,"helmetData"))},r.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case v.SCRIPT:case v.NOSCRIPT:return{innerHTML:t};case v.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return f({},r,((t={})[n.type]=[].concat(r[n.type]||[],[f({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},r.mapObjectTypeChildren=function(e){var t,n,r=e.child,i=e.newProps,a=e.newChildProps,o=e.nestedChildren;switch(r.type){case v.TITLE:return f({},i,((t={})[r.type]=o,t.titleAttributes=f({},a),t));case v.BODY:return f({},i,{bodyAttributes:f({},a)});case v.HTML:return f({},i,{htmlAttributes:f({},a)});default:return f({},i,((n={})[r.type]=f({},a),n))}},r.mapArrayTypeChildrenToProps=function(e,t){var n=f({},t);return Object.keys(e).forEach((function(t){var r;n=f({},n,((r={})[t]=e[t],r))})),n}
2,r.warnOnInvalidChildren=function(e,t){return u()(b.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+b.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),u()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(t,n){var r=this,i={};return e.Children.forEach(t,(function(e){if(e&&e.props){var t=e.props,a=t.children,o=p(t,Y),s=Object.keys(o).reduce((function(e,t){return e[k[t]||t]=o[t],e}),{}),u=e.type;switch("symbol"==typeof u?u=u.toString():r.warnOnInvalidChildren(e,a),u){case v.FRAGMENT:n=r.mapChildrenToProps(a,n);break;case v.LINK:case v.META:case v.NOSCRIPT:case v.SCRIPT:case v.STYLE:i=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:i,newChildProps:s,nestedChildren:a});break;default:n=r.mapObjectTypeChildren({child:e,newProps:n,newChildProps:s,nestedChildren:a})}}})),this.mapArrayTypeChildrenToProps(i,n)},r.render=function(){var t=this.props,n=t.children,r=p(t,X),i=f({},r),a=r.helmetData;return n&&(i=this.mapChildrenToProps(n,i)),!a||a instanceof U||(a=new U(a.context,a.instances)),a?e.createElement($,f({},i,{context:a.value,helmetData:void 0})):e.createElement(z.Consumer,null,(function(t){return e.createElement($,f({},i,{context:t}))}))},n}(e.Component);J.propTypes={base:i().object,bodyAttributes:i().object,children:i().oneOfType([i().arrayOf(i().node),i().node]),defaultTitle:i().string,defer:i().bool,encodeSpecialCharacters:i().bool,htmlAttributes:i().object,link:i().arrayOf(i().object),meta:i().arrayOf(i().object),noscript:i().arrayOf(i().object),onChangeClientState:i().func,script:i().arrayOf(i().object),style:i().arrayOf(i().object),title:i().string,titleAttributes:i().object,titleTemplate:i().string,prioritizeSeoTags:i().bool,helmetData:i().object},J.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},J.displayName="Helmet";var Z=n(250);function ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function te(e,t){if(e){if("string"===typeof e)return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ee(e,t):void 0}}function ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}(e,t)||te(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ie(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=re(e)););return e}function ae(){return ae="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=ie(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},ae.apply(this,arguments)}function oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},se(e,t)}function ue(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&se(e,t)}
vendor: 4,613 bytes, line 2
2function ce(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function le(e){return le="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},le(e)}function fe(e,t){if(t&&("object"===le(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return oe(e)}function de(e){var t=ce();return function(){var n,r=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fe(this,n)}}function he(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=te(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function pe(){pe=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(j){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new E(i||[]);return r(o,"_invoke",{value:k(e,n,s)}),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}e.wrap=c;var f={};function d(){}function h(){}function p(){}var v={};u(v,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(T([])));y&&y!==t&&n.call(y,a)&&(v=y);var g=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(r,a,o,s){var u=l(e[r],e,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==le(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(f).then((function(e){c.value=e,o(c)}),(function(e){return i("throw",e,o,s)}))}s(u.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function x(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=l(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e){var t=e[a];if(t)return t.call(e);
2if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=p,r(g,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=u(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,s,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(w.prototype),u(w.prototype,o,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new w(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(g),u(g,s,"Generator"),u(g,a,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=T,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function ve(e,t,n,r,i,a,o){try{var s=e[a](o),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function me(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){ve(a,r,i,o,s,"next",e)}function s(e){ve(a,r,i,o,s,"throw",e)}o(void 0)}))}}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e){var t=function(e,t){if("object"!==le(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===le(t)?t:String(t)}function be(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,ge(r.key),r)}}function we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ke(e){return function(e){if(Array.isArray(e))return ee(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||te(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xe(e,t,n){return(t=ge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e,t,n){return _e=ce()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&se(i,n.prototype),i},_e.apply(null,arguments)}function Se(e){var t="function"===typeof Map?new Map:void 0;return Se=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _e(e,arguments,re(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),se(n,e)},Se(e)}var Ee=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296===(64512&i)&&r+1<e.length&&56320===(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},Te={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var a=e[i],o=i+1<e.length,s=o?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,l=a>>2,f=(3&a)<<4|s>>4,d=(15&s)<<2|c>>6,h=63&c;u||(h=64,o||(d=64)),r.push(n[l],n[f],n[d],n[h])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(Ee(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(o>>10)),t[r++]=String.fromCharCode(56320+(1023&o))}else{var s=e[n++],u=e[n++];
2t[r++]=String.fromCharCode((15&i)<<12|(63&s)<<6|63&u)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var a=n[e.charAt(i++)],o=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==u)throw Error();var c=a<<2|o>>4;if(r.push(c),64!==s){var l=o<<4&240|s>>2;if(r.push(l),64!==u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},Oe=function(e){return function(e){var t=Ee(e);return Te.encodeByteArray(t,!0)}(e).replace(/\./g,"")},je=function(e){try{return Te.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function Ce(){return"undefined"!==typeof navigator&&"string"===typeof navigator.userAgent?navigator.userAgent:""}function Ie(){try{return"[object process]"===Object.prototype.toString.call(n.g.process)}catch(e){return!1}}function Ne(){try{return"object"===typeof indexedDB}catch(e){return!1}}var Ae=function(){return function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__},Pe=function(){try{return Ae()||function(){if("undefined"!==typeof process){var e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_FIREBASE_MESSAGING_SENDER_ID:"884833758268",REACT_APP_FIREBASE_STORAGE_BUCKET:"foodie-vvn.appspot.com",REACT_APP_FIREBASE_AUTH_DOMAIN:"foodie-vvn.firebaseapp.com",REACT_APP_FIREBASE_APP_MEASUREMENT_ID:"G-9LPJ3JQE7J",REACT_APP_FIREBASE_PROJECT_ID:"foodie-vvn",REACT_APP_FIREBASE_APP_ID:"1:884833758268:web:790615b747a7fa3801a739",REACT_APP_FIREBASE_API_KEY:"AIzaSyAHLJuCjJSbcrKGFbYTH_hhLDK1wzJkdsI"}.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0}}()||function(){if("undefined"!==typeof document){var e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}var t=e&&je(e[1]);return t&&JSON.parse(t)}}()}catch(e){return void console.info("Unable to get __FIREBASE_DEFAULTS__ due to: ".concat(e))}},Re=function(e){var t,n;return null===(n=null===(t=Pe())||void 0===t?void 0:t.emulatorHosts)||void 0===n?void 0:n[e]},Le=function(e){var t=Re(e);if(t){var n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error("Invalid host ".concat(t," with no separate hostname and port!"));var r=parseInt(t.substring(n+1),10);return"["===t[0]?[t.substring(1,n-1),r]:[t.substring(0,n),r]}},De=function(){var e;return null===(e=Pe())||void 0===e?void 0:e.config},Me=function(e){var t;return null===(t=Pe())||void 0===t?void 0:t["_".concat(e)]},Fe=function(){function e(){var t=this;ye(this,e),this.reject=function(){},this.resolve=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return we(e,[{key:"wrapCallback",value:function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"===typeof e&&(t.promise.catch((function(){})),1===e.length?e(n):e(n,r))}}}]),e}();function Ve(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=t||"demo-project",r=e.iat||0,i=e.sub||e.user_id;if(!i)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var a=Object.assign({iss:"https://securetoken.google.com/".concat(n),aud:n,iat:r,exp:r+3600,auth_time:r,sub:i,user_id:i,firebase:{sign_in_provider:"custom",identities:{}}},e);
2return[Oe(JSON.stringify({alg:"none",type:"JWT"})),Oe(JSON.stringify(a)),""].join(".")}var Ue=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this,r)).code=e,a.customData=i,a.name="FirebaseError",Object.setPrototypeOf(oe(a),n.prototype),Error.captureStackTrace&&Error.captureStackTrace(oe(a),ze.prototype.create),a}return we(n)}(Se(Error)),ze=function(){function e(t,n,r){ye(this,e),this.service=t,this.serviceName=n,this.errors=r}return we(e,[{key:"create",value:function(e){var t=(arguments.length<=1?void 0:arguments[1])||{},n="".concat(this.service,"/").concat(e),r=this.errors[e],i=r?Be(r,t):"Error",a="".concat(this.serviceName,": ").concat(i," (").concat(n,")."),o=new Ue(n,a,t);return o}}]),e}();function Be(e,t){return e.replace(qe,(function(e,n){var r=t[n];return null!=r?String(r):"<".concat(n,"?>")}))}var qe=/\{\$([^}]+)}/g;function He(e,t){if(e===t)return!0;for(var n=Object.keys(e),r=Object.keys(t),i=0,a=n;i<a.length;i++){var o=a[i];if(!r.includes(o))return!1;var s=e[o],u=t[o];if(We(s)&&We(u)){if(!He(s,u))return!1}else if(s!==u)return!1}for(var c=0,l=r;c<l.length;c++){var f=l[c];if(!n.includes(f))return!1}return!0}function We(e){return null!==e&&"object"===typeof e}function Ge(e){for(var t=[],n=function(){var e=ne(i[r],2),n=e[0],a=e[1];Array.isArray(a)?a.forEach((function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(a))},r=0,i=Object.entries(e);r<i.length;r++)n();return t.length?"&"+t.join("&"):""}function Ke(e){var t={};return e.replace(/^\?/,"").split("&").forEach((function(e){if(e){var n=ne(e.split("="),2),r=n[0],i=n[1];t[decodeURIComponent(r)]=decodeURIComponent(i)}})),t}function Qe(e){var t=e.indexOf("?");if(!t)return"";var n=e.indexOf("#",t);return e.substring(t,n>0?n:void 0)}var $e=function(){function e(t,n){var r=this;ye(this,e),this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then((function(){t(r)})).catch((function(e){r.error(e)}))}return we(e,[{key:"next",value:function(e){this.forEachObserver((function(t){t.next(e)}))}},{key:"error",value:function(e){this.forEachObserver((function(t){t.error(e)})),this.close(e)}},{key:"complete",value:function(){this.forEachObserver((function(e){e.complete()})),this.close()}},{key:"subscribe",value:function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!==typeof e||null===e)return!1;var n,r=he(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i in e&&"function"===typeof e[i])return!0}}catch(a){r.e(a)}finally{r.f()}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=Ye),void 0===r.error&&(r.error=Ye),void 0===r.complete&&(r.complete=Ye);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}})),this.observers.push(r),a}},{key:"unsubscribeOne",value:function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}},{key:"forEachObserver",value:function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)}},{key:"sendOne",value:function(e,t){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(r){"undefined"!==typeof console&&console.error&&console.error(r)}}))}},{key:"close",value:function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((function(){t.observers=void 0,t.onNoObservers=void 0})))}}]),e}();function Ye(){}function Xe(e){return e&&e._delegate?e._delegate:e}var Je=function(){function e(t,n,r){ye(this,e),this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}return we(e,[{key:"setInstantiationMode",value:function(e){return this.instantiationMode=e,this}},{key:"setMultipleInstances",value:function(e){return this.multipleInstances=e,this}},{key:"setServiceProps",value:function(e){return this.serviceProps=e,this}},{key:"setInstanceCreatedCallback",value:function(e){return this.onInstanceCreated=e,this}}]),e}(),Ze="[DEFAULT]",et=function(){function e(t,n){ye(this,e),this.name=t,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return we(e,[{key:"get",value:function(e){var t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){var n=new Fe;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:t});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(t).promise}},{key:"getImmediate",value:function(e){var t,n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service ".concat(this.name," is not available"))}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}}},{key:"getComponent",value:function(){return this.component}},{key:"setComponent",value:function(e){if(e.name!==this.name)throw Error("Mismatching Component ".concat(e.name," for Provider ").concat(this.name,"."));if(this.component)throw Error("Component for ".concat(this.name," has already been provided"));if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:Ze})}catch(u){}var t,n=he(this.instancesDeferred.entries());try{for(n.s();!(t=n.n()).done;){var r=ne(t.value,2),i=r[0],a=r[1],o=this.normalizeInstanceIdentifier(i);try{var s=this.getOrInitializeService({instanceIdentifier:o});a.resolve(s)}catch(u){}}}catch(c){n.e(c)}finally{n.f()}}}},{key:"clearInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze;this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}},{key:"delete",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Array.from(this.instances.values()),e.next=3,Promise.all([].
2concat(ke(t.filter((function(e){return"INTERNAL"in e})).map((function(e){return e.INTERNAL.delete()}))),ke(t.filter((function(e){return"_delete"in e})).map((function(e){return e._delete()})))));case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isComponentSet",value:function(){return null!=this.component}},{key:"isInitialized",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze;return this.instances.has(e)}},{key:"getOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze;return this.instancesOptions.get(e)||{}}},{key:"initialize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.options,n=void 0===t?{}:t,r=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(r))throw Error("".concat(this.name,"(").concat(r,") has already been initialized"));if(!this.isComponentSet())throw Error("Component ".concat(this.name," has not been registered yet"));var i,a=this.getOrInitializeService({instanceIdentifier:r,options:n}),o=he(this.instancesDeferred.entries());try{for(o.s();!(i=o.n()).done;){var s=ne(i.value,2),u=s[0],c=s[1],l=this.normalizeInstanceIdentifier(u);r===l&&c.resolve(a)}}catch(f){o.e(f)}finally{o.f()}return a}},{key:"onInit",value:function(e,t){var n,r=this.normalizeInstanceIdentifier(t),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&e(a,r),function(){i.delete(e)}}},{key:"invokeOnInitCallbacks",value:function(e,t){var n=this.onInitCallbacks.get(t);if(n){var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(e,t)}catch(Nw){}}}catch(o){i.e(o)}finally{i.f()}}}},{key:"getOrInitializeService",value:function(e){var t=e.instanceIdentifier,n=e.options,r=void 0===n?{}:n,i=this.instances.get(t);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:tt(t),options:r}),this.instances.set(t,i),this.instancesOptions.set(t,r),this.invokeOnInitCallbacks(i,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,i)}catch(Nw){}return i||null}},{key:"normalizeInstanceIdentifier",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ze;return this.component?this.component.multipleInstances?e:Ze:e}},{key:"shouldAutoInitialize",value:function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}]),e}();function tt(e){return e===Ze?void 0:e}var nt,rt,it=function(){function e(t){ye(this,e),this.name=t,this.providers=new Map}return we(e,[{key:"addComponent",value:function(e){var t=this.getProvider(e.name);if(t.isComponentSet())throw new Error("Component ".concat(e.name," has already been registered with ").concat(this.name));t.setComponent(e)}},{key:"addOrOverwriteComponent",value:function(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}},{key:"getProvider",value:function(e){if(this.providers.has(e))return this.providers.get(e);var t=new et(e,this);return this.providers.set(e,t),t}},{key:"getProviders",value:function(){return Array.from(this.providers.values())}}]),e}(),at=[];!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"}(rt||(rt={}));var ot={debug:rt.DEBUG,verbose:rt.VERBOSE,info:rt.INFO,warn:rt.WARN,error:rt.ERROR,silent:rt.SILENT},st=rt.INFO,ut=(xe(nt={},rt.DEBUG,"log"),xe(nt,rt.VERBOSE,"log"),xe(nt,rt.INFO,"info"),xe(nt,rt.WARN,"warn"),xe(nt,rt.ERROR,"error"),nt),ct=function(e,t){if(!(t<e.logLevel)){var n=(new Date).toISOString(),r=ut[t];if(!r)throw new Error("Attempted to log a message with an invalid logType (value: ".concat(t,")"));for(var i,a=arguments.length,o=new Array(a>2?a-2:0),s=2;s<a;s++)o[s-2]=arguments[s];(i=console)[r].apply(i,["[".concat(n,"]  ").concat(e.name,":")].concat(o))}},lt=function(){function e(t){ye(this,e),this.name=t,this._logLevel=st,this._logHandler=ct,this._userLogHandler=null,at.push(this)}return we(e,[{key:"logLevel",get:function(){return this._logLevel},set:function(e){if(!(e in rt))throw new TypeError('Invalid value "'.concat(e,'" assigned to `logLevel`'));this._logLevel=e}},{key:"setLogLevel",value:function(e){this._logLevel="string"===typeof e?ot[e]:e}},{key:"logHandler",get:function(){return this._logHandler},set:function(e){if("function"!==typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}},{key:"userLogHandler",get:function(){return this._userLogHandler},set:function(e){this._userLogHandler=e}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.DEBUG].concat(t)),this._logHandler.apply(this,[this,rt.DEBUG].concat(t))}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.VERBOSE].concat(t)),this._logHandler.apply(this,[this,rt.VERBOSE].concat(t))}},{key:"info",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.INFO].concat(t)),this._logHandler.apply(this,[this,rt.INFO].concat(t))}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.WARN].concat(t)),this._logHandler.apply(this,[this,rt.WARN].concat(t))}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._userLogHandler&&this._userLogHandler.apply(this,[this,rt.ERROR].concat(t)),this._logHandler.apply(this,[this,rt.ERROR].concat(t))}}]),e}();function ft(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 dt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?ft(Object(n),!0).forEach((function(t){xe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ht,pt;var vt=new WeakMap,mt=new WeakMap,yt=new WeakMap,gt=new WeakMap,bt=new WeakMap;var wt={get:function(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return mt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||yt.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return _t(e[t])},set:function(e,t,n){return e[t]=n,!0},has:function(e,t){return e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e}};function kt(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(pt||(pt=[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(St(this),n),_t(vt.get(this))}:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _t(e.apply(St(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];var a=e.call.apply(e,[St(this),t].concat(r));return yt.set(a,t.sort?t.sort():[t]),_t(a)}}function xt(e){return"function"===typeof e?kt(e):(e instanceof IDBTransaction&&function(e){if(!mt.has(e)){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=function(){t(),r()},a=function(){n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));mt.set(e,t)}}(e),t=e,(ht||(ht=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((function(e){return t instanceof e}))?new Proxy(e,wt):e);var t}function _t(e){if(e instanceof IDBRequest)return function(e){var t=new Promise((function(t,n){var r=function(){e.removeEventListener("success",i),e.removeEventListener("error",a)},i=function(){t(_t(e.result)),r()},a=function(){n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((function(t){t instanceof IDBCursor&&vt.set(t,e)})).catch((function(){})),bt.set(t,e),t}(e);if(gt.has(e))return gt.get(e);var t=xt(e);return t!==e&&(gt.set(e,t),bt.set(t,e)),t}var St=function(e){return bt.get(e)};var Et,Tt,Ot=["get","getKey","getAll","getAllKeys","count"],jt=["put","add","delete","clear"],Ct=new Map;function It(e,t){if(e instanceof IDBDatabase&&!(t in e)&&"string"===typeof t){if(Ct.get(t))return Ct.get(t);var n=t.replace(/FromIndex$/,""),r=t!==n,i=jt.includes(n);if(n in(r?IDBIndex:IDBObjectStore).prototype&&(i||Ot.includes(n))){var a=function(){var e=me(pe().mark((function e(t){var a,o,s,u,c,l,f=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=this.transaction(t,i?"readwrite":"readonly"),s=o.store,u=f.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=f[l];return r&&(s=s.index(c.shift())),e.next=6,Promise.all([(a=s)[n].apply(a,c),i&&o.done]);case 6:return e.abrupt("return",e.sent[0]);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();return Ct.set(t,a),a}}}wt=function(e){return dt(dt({},e),{},{get:function(t,n,r){return It(t,n)||e.get(t,n,r)},has:function(t,n){return!!It(t,n)||e.has(t,n)}})}(wt);var Nt=function(){function e(t){ye(this,e),this.container=t}return we(e,[{key:"getPlatformInfoString",value:function(){return this.container.getProviders().map((function(e){if(function(e){var t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){var t=e.getImmediate();return"".concat(t.library,"/").concat(t.version)}return null})).filter((function(e){return e})).join(" ")}}]),e}();var At="@firebase/app",Pt="0.9.0",Rt=new lt("@firebase/app"),Lt="[DEFAULT]",Dt=(xe(Et={},At,"fire-core"),xe(Et,"@firebase/app-compat","fire-core-compat"),xe(Et,"@firebase/analytics","fire-analytics"),xe(Et,"@firebase/analytics-compat","fire-analytics-compat"),xe(Et,"@firebase/app-check","fire-app-check"),xe(Et,"@firebase/app-check-compat","fire-app-check-compat"),xe(Et,"@firebase/auth","fire-auth"),xe(Et,"@firebase/auth-compat","fire-auth-compat"),xe(Et,"@firebase/database","fire-rtdb"),xe(Et,"@firebase/database-compat","fire-rtdb-compat"),xe(Et,"@firebase/functions","fire-fn"),xe(Et,"@firebase/functions-compat","fire-fn-compat"),xe(Et,"@firebase/installations","fire-iid"),xe(Et,"@firebase/installations-compat","fire-iid-compat"),xe(Et,"@firebase/messaging","fire-fcm"),xe(Et,"@firebase/messaging-compat","fire-fcm-compat"),xe(Et,"@firebase/performance","fire-perf"),xe(Et,"@firebase/performance-compat","fire-perf-compat"),xe(Et,"@firebase/remote-config","fire-rc"),xe(Et,"@firebase/remote-config-compat","fire-rc-compat"),xe(Et,"@firebase/storage","fire-gcs"),xe(Et,"@firebase/storage-compat","fire-gcs-compat"),xe(Et,"@firebase/firestore","fire-fst"),xe(Et,"@firebase/firestore-compat","fire-fst-compat"),xe(Et,"fire-js","fire-js"),xe(Et,"firebase","fire-js-all"),Et),Mt=new Map,Ft=new Map;function Vt(e,t){try{e.container.addComponent(t)}catch(n){Rt.debug("Component ".concat(t.name," failed to register with FirebaseApp ").concat(e.name),n)}}function Ut(e){var t=e.name;if(Ft.has(t))return Rt.debug("There were multiple attempts to register component ".concat(t,".")),!1;Ft.set(t,e);var n,r=he(Mt.values());try{for(r.s();!(n=r.n()).done;){Vt(n.value,e)}}catch(i){r.e(i)}finally{r.f()}return!0}function zt(e,t){var n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}var Bt=(xe(Tt={},"no-app","No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()"),xe(Tt,"bad-app-name","Illegal App name: '{$appName}"),xe(Tt,"duplicate-app","Firebase App named '{$appName}' already exists with different options or config"),xe(Tt,"app-deleted","Firebase App named '{$appName}' already deleted"),xe(Tt,"no-options","Need to provide options, when not being deployed to hosting via source."),xe(Tt,"invali
2d-app-argument","firebase.{$appName}() takes either no argument or a Firebase App instance."),xe(Tt,"invalid-log-argument","First argument to `onLog` must be null or a function."),xe(Tt,"idb-open","Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}."),xe(Tt,"idb-get","Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}."),xe(Tt,"idb-set","Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}."),xe(Tt,"idb-delete","Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."),Tt),qt=new ze("app","Firebase",Bt),Ht=function(){function e(t,n,r){var i=this;ye(this,e),this._isDeleted=!1,this._options=Object.assign({},t),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Je("app",(function(){return i}),"PUBLIC"))}return we(e,[{key:"automaticDataCollectionEnabled",get:function(){return this.checkDestroyed(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}},{key:"name",get:function(){return this.checkDestroyed(),this._name}},{key:"options",get:function(){return this.checkDestroyed(),this._options}},{key:"config",get:function(){return this.checkDestroyed(),this._config}},{key:"container",get:function(){return this._container}},{key:"isDeleted",get:function(){return this._isDeleted},set:function(e){this._isDeleted=e}},{key:"checkDestroyed",value:function(){if(this.isDeleted)throw qt.create("app-deleted",{appName:this._name})}}]),e}(),Wt="9.15.0";function Gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("object"!==typeof t){var r=t;t={name:r}}var i=Object.assign({name:Lt,automaticDataCollectionEnabled:!1},t),a=i.name;if("string"!==typeof a||!a)throw qt.create("bad-app-name",{appName:String(a)});if(n||(n=De()),!n)throw qt.create("no-options");var o=Mt.get(a);if(o){if(He(n,o.options)&&He(i,o.config))return o;throw qt.create("duplicate-app",{appName:a})}var s,u=new it(a),c=he(Ft.values());try{for(c.s();!(s=c.n()).done;){var l=s.value;u.addComponent(l)}}catch(d){c.e(d)}finally{c.f()}var f=new Ht(n,i,u);return Mt.set(a,f),f}function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Lt,t=Mt.get(e);if(!t&&e===Lt)return Gt();if(!t)throw qt.create("no-app",{appName:e});return t}function Qt(e,t,n){var r,i=null!==(r=Dt[e])&&void 0!==r?r:e;n&&(i+="-".concat(n));var a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){var s=['Unable to register library "'.concat(i,'" with version "').concat(t,'":')];return a&&s.push('library name "'.concat(i,'" contains illegal characters (whitespace or "/")')),a&&o&&s.push("and"),o&&s.push('version name "'.concat(t,'" contains illegal characters (whitespace or "/")')),void Rt.warn(s.join(" "))}Ut(new Je("".concat(i,"-version"),(function(){return{library:i,version:t}}),"VERSION"))}var $t="firebase-heartbeat-store",Yt=null;function Xt(){return Yt||(Yt=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.blocked,i=n.upgrade,a=n.blocking,o=n.terminated,s=indexedDB.open(e,t),u=_t(s);return i&&s.addEventListener("upgradeneeded",(function(e){i(_t(s.result),e.oldVersion,e.newVersion,_t(s.transaction))})),r&&s.addEventListener("blocked",(function(){return r()})),u.then((function(e){o&&e.addEventListener("close",(function(){return o()})),a&&e.addEventListener("versionchange",(function(){return a()}))})).catch((function(){})),u}("firebase-heartbeat-database",1,{upgrade:function(e,t){if(0===t)e.createObjectStore($t)}}).catch((function(e){throw qt.create("idb-open",{originalErrorMessage:e.message})}))),Yt}function Jt(e){return Zt.apply(this,arguments)}function Zt(){return Zt=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Xt();case 3:return n=e.sent,e.abrupt("return",n.transaction($t).objectStore($t).get(nn(t)));case 7:e.prev=7,e.t0=e.catch(0),e.t0 instanceof Ue?Rt.warn(e.t0.message):(r=qt.create("idb-get",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),Rt.warn(r.message));case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))),Zt.apply(this,arguments)}function en(e,t){return tn.apply(this,arguments)}function tn(){return tn=me(pe().mark((function e(t,n){var r,i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Xt();case 3:return r=e.sent,i=r.transaction($t,"readwrite"),a=i.objectStore($t),e.next=8,a.put(n,nn(t));case 8:return e.abrupt("return",i.done);case 11:e.prev=11,e.t0=e.catch(0),e.t0 instanceof Ue?Rt.warn(e.t0.message):(o=qt.create("idb-set",{originalErrorMessage:null===e.t0||void 0===e.t0?void 0:e.t0.message}),Rt.warn(o.message));case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),tn.apply(this,arguments)}function nn(e){return"".concat(e.name,"!").concat(e.options.appId)}var rn=function(){function e(t){var n=this;ye(this,e),this.container=t,this._heartbeatsCache=null;var r=this.container.getProvider("app").getImmediate();this._storage=new un(r),this._heartbeatsCachePromise=this._storage.read().then((function(e){return n._heartbeatsCache=e,e}))}return we(e,[{key:"triggerHeartbeat",value:function(){var e=me(pe().mark((function e(){var t,n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.container.getProvider("platform-logger").getImmediate(),n=t.getPlatformInfoString(),r=an(),null!==this._heartbeatsCache){e.next=7;break}return e.next=6,this._heartbeatsCachePromise;case 6:this._heartbeatsCache=e.sent;case 7:if(this._heartbeatsCache.lastSentHeartbeatDate!==r&&!this._heartbeatsCache.heartbeats.some((function(e){return e.date===r}))){e.next=11;break}return e.abrupt("return");case 11:this._heartbeatsCache.heartbeats.push({date:r,agent:n});case 12:return this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((function(e){var t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),e.abrupt("return",this._storage.overwrite(this._heartbeatsCache));case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getHeartbeatsHeader",value:function(){var e=me(pe().mark((function e(){var t,n,r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==this._heartbeatsCache){e.next=3;break}return e.next=3,this._heartbeatsCachePromise;case 3:if(null!==this._heartbeatsCache&&0!==this._heartbeatsCache.heartbeats.length){e.next=5;break}return e.abrupt("return","");case 5:if(t=an(),n=on(this._heartbeatsCache.heartbeats),r=n.heartbeatsToSend,i=n.unsentEntries,a=Oe(JSON.stringify({version:2,heartbeats:r})),this._heartbeatsCache.lastSentHeartbeatDate=t,!(i.length>0)){e.next=15;break}return this._heartbeatsCache.heartbeats=i,e.next=13,this._storage.overwrite(this._heartbeatsCache);case 13:e.next=17;break;case 15:this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache);case 17:return e.abrupt("return",a);case 18:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function an(){return(new Date).toISOString().substring(0,10)}function on(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1024,r=[],i=e.slice(),a=he(e);try{var o=function(){var e=t.value,a=r.find((function(t){return t.agent===e.agent}));if(a){if(a.dates.push(e.date),cn(r)>n)return a.dates.pop(),"break"}else if(r.push({agent:e.agent,dates:[e.date]}),cn(r)>n)return r.pop(),"break";i=i.slice(1)};for(a.s();!(t=a.n()).done;){var s=o();if("break"===s)break}}catch(u){a.e(u)}finally{a.f()}return{heartbeatsToSend:r,unsentEntries:i}}var sn,un=function(){function e(t){ye(this,e),this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}return we(e,[{key:"runIndexedDBEnvironmentCheck",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Ne()){e.next=4;break}return e.abrupt("return",!1);case 4:return e.abrupt("return",new Promise((function(e,t){try{var n=!0,r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=function(){i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=function(){n=!1},i.onerror=function(){var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(a){t(a)}})).then((function(){return!0})).catch((function(){return!1})));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return",{heartbeats:[]});case 7:return e.next=9,Jt(this.app);case 9:return t=e.sent,e.abrupt("return",t||{heartbeats:[]});case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}
2,{key:"overwrite",value:function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",en(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:t.heartbeats}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"add",value:function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._canUseIndexedDBPromise;case 2:if(e.sent){e.next=7;break}return e.abrupt("return");case 7:return e.next=9,this.read();case 9:return r=e.sent,e.abrupt("return",en(this.app,{lastSentHeartbeatDate:null!==(n=t.lastSentHeartbeatDate)&&void 0!==n?n:r.lastSentHeartbeatDate,heartbeats:[].concat(ke(r.heartbeats),ke(t.heartbeats))}));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function cn(e){return Oe(JSON.stringify({version:2,heartbeats:e})).length}sn="",Ut(new Je("platform-logger",(function(e){return new Nt(e)}),"PRIVATE")),Ut(new Je("heartbeat",(function(e){return new rn(e)}),"PRIVATE")),Qt(At,Pt,sn),Qt(At,Pt,"esm2017"),Qt("fire-js","");function ln(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;var fn;Object.create;function dn(){return xe({},"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.")}var hn=dn,pn=new ze("auth","Firebase",dn()),vn=new lt("@firebase/auth");function mn(e){if(vn.logLevel<=rt.ERROR){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];vn.error.apply(vn,["Auth (".concat(Wt,"): ").concat(e)].concat(n))}}function yn(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 kn.apply(void 0,[e].concat(n))}function gn(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 kn.apply(void 0,[e].concat(n))}function bn(e,t,n){var r=Object.assign(Object.assign({},hn()),xe({},t,n));return new ze("auth","Firebase",r).create(t,{appName:e.name})}function wn(e,t,n){if(!(t instanceof n))throw n.name!==t.constructor.name&&yn(e,"argument-error"),bn(e,"argument-error","Type of ".concat(t.constructor.name," does not match expected instance.")+"Did you pass a reference from a different Auth SDK?")}function kn(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){var i,a=n[0],o=ke(n.slice(1));return o[0]&&(o[0].appName=e.name),(i=e._errorFactory).create.apply(i,[a].concat(ke(o)))}return pn.create.apply(pn,[e].concat(n))}function xn(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 kn.apply(void 0,[t].concat(r))}}function _n(e){var t="INTERNAL ASSERTION FAILED: "+e;throw mn(t),new Error(t)}function Sn(e,t){e||_n(t)}var En=new Map;function Tn(e){Sn(e instanceof Function,"Expected a class definition");var t=En.get(e);return t?(Sn(t instanceof e,"Instance stored in cache mismatched with class"),t):(t=new e,En.set(e,t),t)}function On(e,t){var n=zt(e,"auth");if(n.isInitialized()){var r=n.getImmediate();if(He(n.getOptions(),null!==t&&void 0!==t?t:{}))return r;yn(r,"already-initialized")}return n.initialize({options:t})}function jn(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.href)||""}function Cn(){return"http:"===In()||"https:"===In()}function In(){var e;return"undefined"!==typeof self&&(null===(e=self.location)||void 0===e?void 0:e.protocol)||null}function Nn(){return!("undefined"!==typeof navigator&&navigator&&"onLine"in navigator&&"boolean"===typeof navigator.onLine&&(Cn()||function(){var e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}()||"connection"in navigator))||navigator.onLine}var An=function(){function e(t,n){ye(this,e),this.shortDelay=t,this.longDelay=n,Sn(n>
2t,"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(Ce())||"object"===typeof navigator&&"ReactNative"===navigator.product}return we(e,[{key:"get",value:function(){return Nn()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}]),e}();function Pn(e,t){Sn(e.emulator,"Emulator should always be set here");var n=e.emulator.url;return t?"".concat(n).concat(t.startsWith("/")?t.slice(1):t):n}var Rn=function(){function e(){ye(this,e)}return we(e,null,[{key:"initialize",value:function(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}},{key:"fetch",value:function(){return this.fetchImpl?this.fetchImpl:"undefined"!==typeof self&&"fetch"in self?self.fetch:void _n("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"headers",value:function(){return this.headersImpl?this.headersImpl:"undefined"!==typeof self&&"Headers"in self?self.Headers:void _n("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}},{key:"response",value:function(){return this.responseImpl?this.responseImpl:"undefined"!==typeof self&&"Response"in self?self.Response:void _n("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}]),e}(),Ln=(xe(fn={},"CREDENTIAL_MISMATCH","custom-token-mismatch"),xe(fn,"MISSING_CUSTOM_TOKEN","internal-error"),xe(fn,"INVALID_IDENTIFIER","invalid-email"),xe(fn,"MISSING_CONTINUE_URI","internal-error"),xe(fn,"INVALID_PASSWORD","wrong-password"),xe(fn,"MISSING_PASSWORD","internal-error"),xe(fn,"EMAIL_EXISTS","email-already-in-use"),xe(fn,"PASSWORD_LOGIN_DISABLED","operation-not-allowed"),xe(fn,"INVALID_IDP_RESPONSE","invalid-credential"),xe(fn,"INVALID_PENDING_TOKEN","invalid-credential"),xe(fn,"FEDERATED_USER_ID_ALREADY_LINKED","credential-already-in-use"),xe(fn,"MISSING_REQ_TYPE","internal-error"),xe(fn,"EMAIL_NOT_FOUND","user-not-found"),xe(fn,"RESET_PASSWORD_EXCEED_LIMIT","too-many-requests"),xe(fn,"EXPIRED_OOB_CODE","expired-action-code"),xe(fn,"INVALID_OOB_CODE","invalid-action-code"),xe(fn,"MISSING_OOB_CODE","internal-error"),xe(fn,"CREDENTIAL_TOO_OLD_LOGIN_AGAIN","requires-recent-login"),xe(fn,"INVALID_ID_TOKEN","invalid-user-token"),xe(fn,"TOKEN_EXPIRED","user-token-expired"),xe(fn,"USER_NOT_FOUND","user-token-expired"),xe(fn,"TOO_MANY_ATTEMPTS_TRY_LATER","too-many-requests"),xe(fn,"INVALID_CODE","invalid-verification-code"),xe(fn,"INVALID_SESSION_INFO","invalid-verification-id"),xe(fn,"INVALID_TEMPORARY_PROOF","invalid-credential"),xe(fn,"MISSING_SESSION_INFO","missing-verification-id"),xe(fn,"SESSION_EXPIRED","code-expired"),xe(fn,"MISSING_ANDROID_PACKAGE_NAME","missing-android-pkg-name"),xe(fn,"UNAUTHORIZED_DOMAIN","unauthorized-continue-uri"),xe(fn,"INVALID_OAUTH_CLIENT_ID","invalid-oauth-client-id"),xe(fn,"ADMIN_ONLY_OPERATION","admin-restricted-operation"),xe(fn,"INVALID_MFA_PENDING_CREDENTIAL","invalid-multi-factor-session"),xe(fn,"MFA_ENROLLMENT_NOT_FOUND","multi-factor-info-not-found"),xe(fn,"MISSING_MFA_ENROLLMENT_ID","missing-multi-factor-info"),xe(fn,"MISSING_MFA_PENDING_CREDENTIAL","missing-multi-factor-session"),xe(fn,"SECOND_FACTOR_EXISTS","second-factor-already-in-use"),xe(fn,"SECOND_FACTOR_LIMIT_EXCEEDED","maximum-second-factor-count-exceeded"),xe(fn,"BLOCKING_FUNCTION_ERROR_RESPONSE","internal-error"),fn),Dn=new An(3e4,6e4);function Mn(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}function Fn(e,t,n,r){return Vn.apply(this,arguments)}function Vn(){return Vn=me(pe().mark((function e(t,n,r,i){var a,o=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=o.length>4&&void 0!==o[4]?o[4]:{},e.abrupt("return",Un(t,a,me(pe().mark((function e(){var a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a={},o={},i&&("GET"===n?o=i:a={body:JSON.stringify(i)}),s=Ge(Object.assign({key:t.config.apiKey},o)).slice(1),e.next=6,t._getAdditionalHeaders();case 6:return(u=e.sent)["Content-Type"]="application/json",t.languageCode&&(u["X-Firebase-Locale"]=t.languageCode),e.abrupt("return",Rn.fetch()(Hn(t,t.config.apiHost,r,s),Object.assign({method:n,headers:u,referrerPolicy:"no-referrer"},a)));case 10:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e)}))),Vn.apply(this,arguments)}function Un(e,t,n){return zn.apply(this,arguments)}function zn(){return zn=me(pe().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,d,h;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._canInitEmulator=!1,i=Object.assign(Object.assign({},Ln),n),e.prev=2,a=new Wn(t),e.next=6,Promise.race([r(),a.promise]);case 6:return o=e.sent,a.clearNetworkTimeout(),e.next=10,o.json();
2case 10:if(!("needConfirmation"in(s=e.sent))){e.next=13;break}throw Gn(t,"account-exists-with-different-credential",s);case 13:if(!o.ok||"errorMessage"in s){e.next=17;break}return e.abrupt("return",s);case 17:if(u=o.ok?s.errorMessage:s.error.message,c=u.split(" : "),l=ne(c,2),f=l[0],d=l[1],"FEDERATED_USER_ID_ALREADY_LINKED"!==f){e.next=23;break}throw Gn(t,"credential-already-in-use",s);case 23:if("EMAIL_EXISTS"!==f){e.next=27;break}throw Gn(t,"email-already-in-use",s);case 27:if("USER_DISABLED"!==f){e.next=29;break}throw Gn(t,"user-disabled",s);case 29:if(h=i[f]||f.toLowerCase().replace(/[_\s]+/g,"-"),!d){e.next=34;break}throw bn(t,h,d);case 34:yn(t,h);case 35:e.next=42;break;case 37:if(e.prev=37,e.t0=e.catch(2),!(e.t0 instanceof Ue)){e.next=41;break}throw e.t0;case 41:yn(t,"network-request-failed");case 42:case"end":return e.stop()}}),e,null,[[2,37]])}))),zn.apply(this,arguments)}function Bn(e,t,n,r){return qn.apply(this,arguments)}function qn(){return qn=me(pe().mark((function e(t,n,r,i){var a,o,s=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=s.length>4&&void 0!==s[4]?s[4]:{},e.next=3,Fn(t,n,r,i,a);case 3:return"mfaPendingCredential"in(o=e.sent)&&yn(t,"multi-factor-auth-required",{_serverResponse:o}),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)}))),qn.apply(this,arguments)}function Hn(e,t,n,r){var i="".concat(t).concat(n,"?").concat(r);return e.config.emulator?Pn(e.config,i):"".concat(e.config.apiScheme,"://").concat(i)}var Wn=function(){function e(t){var n=this;ye(this,e),this.auth=t,this.timer=null,this.promise=new Promise((function(e,t){n.timer=setTimeout((function(){return t(gn(n.auth,"network-request-failed"))}),Dn.get())}))}return we(e,[{key:"clearNetworkTimeout",value:function(){clearTimeout(this.timer)}}]),e}();function Gn(e,t,n){var r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);var i=gn(e,t,r);return i.customData._tokenResponse=n,i}function Kn(e,t){return Qn.apply(this,arguments)}function Qn(){return Qn=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fn(t,"POST","/v1/accounts:delete",n));case 1:case"end":return e.stop()}}),e)}))),Qn.apply(this,arguments)}function $n(e,t){return Yn.apply(this,arguments)}function Yn(){return Yn=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fn(t,"POST","/v1/accounts:lookup",n));case 1:case"end":return e.stop()}}),e)}))),Yn.apply(this,arguments)}function Xn(e){if(e)try{var t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch(n){}}function Jn(){return Jn=me(pe().mark((function e(t){var n,r,i,a,o,s,u=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>1&&void 0!==u[1]&&u[1],r=Xe(t),e.next=4,r.getIdToken(n);case 4:return i=e.sent,xn((a=er(i))&&a.exp&&a.auth_time&&a.iat,r.auth,"internal-error"),o="object"===typeof a.firebase?a.firebase:void 0,s=null===o||void 0===o?void 0:o.sign_in_provider,e.abrupt("return",{claims:a,token:i,authTime:Xn(Zn(a.auth_time)),issuedAtTime:Xn(Zn(a.iat)),expirationTime:Xn(Zn(a.exp)),signInProvider:s||null,signInSecondFactor:(null===o||void 0===o?void 0:o.sign_in_second_factor)||null});case 10:case"end":return e.stop()}}),e)}))),Jn.apply(this,arguments)}function Zn(e){return 1e3*Number(e)}function er(e){var t=ne(e.split("."),3),n=t[0],r=t[1],i=t[2];if(void 0===n||void 0===r||void 0===i)return mn("JWT malformed, contained fewer than 3 sections"),null;try{var a=je(r);return a?JSON.parse(a):(mn("Failed to decode base64 JWT payload"),null)}catch(o){return mn("Caught error parsing JWT payload as JSON",null===o||void 0===o?void 0:o.toString()),null}}function tr(e,t){return nr.apply(this,arguments)}function nr(){return nr=me(pe().mark((function e(t,n){var r=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r.length>2&&void 0!==r[2]&&r[2])){e.next=3;break}return e.abrupt("return",n);case 3:return e.prev=3,e.next=6,n;case 6:return e.abrupt("return",e.sent);case 9:if(e.prev=9,e.t0=e.catch(3),!(e.t0 instanceof Ue&&rr(e.t0))){e.next=15;break}if(t.auth.currentUser!==t){e.next=15;break}return e.next=15,t.auth.signOut();case 15:throw e.t0;case 16:case"end":return e.stop()}}),e,null,[[3,9]])}))),nr.apply(this,arguments)}function rr(e){var t=e.code;return t==="auth/".concat("user-disabled")||t==="auth/".concat("user-token-expired")}var ir=function(){function e(t){ye(this,e),this.user=t,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}return we(e,[{key:"_start",value:function(){this.isRunning||(this.isRunning=!0,this.schedule())}},{key:"_stop",value:function(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}},{key:"getInterval",value:function(e){var t;if(e){var n=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),n}this.errorBackoff=3e4;var r=(null!==(t=this.user.stsTokenManager.expirationTime)&&void 0!==t?t:0)-Date.now()-3e5;return Math.max(0,r)}},{key:"schedule",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.isRunning){var n=this.getInterval(t);this.timerId=setTimeout(me(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.iteration();case 2:case"end":return t.stop()}}),t)}))),n)}}},{key:"iteration",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.user.getIdToken(!0);case 3:e.next=9;break;case 5:return e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")&&this.schedule(!0),e.abrupt("return");case 9:this.schedule();case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(){return e.apply(this,arguments)}}()}]),e}(),ar=function(){function e(t,n){ye(this,e),this.createdAt=t,this.lastLoginAt=n,this._initializeTime()}return we(e,[{key:"_initializeTime",value:function(){this.lastSignInTime=Xn(this.lastLoginAt),this.creationTime=Xn(this.createdAt)}},{key:"_copy",value:function(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}},{key:"toJSON",value:function(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}]),e}();function or(e){return sr.apply(this,arguments)}function sr(){return sr=me(pe().mark((function e(t){var n,r,i,a,o,s,u,c,l,f,d;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.auth,e.next=3,t.getIdToken();case 3:return i=e.sent,e.next=6,tr(t,$n(r,{idToken:i}));case 6:xn(null===(a=e.sent)||void 0===a?void 0:a.users.length,r,"internal-error"),o=a.users[0],t._notifyReloadListener(o),s=(null===(n=o.providerUserInfo)||void 0===n?void 0:n.length)?lr(o.providerUserInfo):[],u=cr(t.providerData,s),c=t.isAnonymous,l=!(t.email&&o.passwordHash)&&!(null===u||void 0===u?void 0:u.length),f=!!c&&l,d={uid:o.localId,displayName:o.displayName||null,photoURL:o.photoUrl||null,email:o.email||null,emailVerified:o.emailVerified||!1,phoneNumber:o.phoneNumber||null,tenantId:o.tenantId||null,providerData:u,metadata:new ar(o.createdAt,o.lastLoginAt),isAnonymous:f},Object.assign(t,d);case 17:case"end":return e.stop()}}),e)}))),sr.apply(this,arguments)}function ur(){return(ur=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Xe(t),e.next=3,or(n);case 3:return e.next=5,n.auth._persistUserIfCurrent(n);case 5:n.auth._notifyListenersIfCurrent(n);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cr(e,t){var n=e.filter((function(e){return!t.some((function(t){return t.providerId===e.providerId}))}));return[].concat(ke(n),ke(t))}function lr(e){return e.map((function(e){var t=e.providerId,n=ln(e,["providerId"]);
2return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}}))}function fr(e,t){return dr.apply(this,arguments)}function dr(){return dr=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Un(t,{},me(pe().mark((function e(){var r,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ge({grant_type:"refresh_token",refresh_token:n}).slice(1),i=t.config,a=i.tokenApiHost,o=i.apiKey,s=Hn(t,a,"/v1/token","key=".concat(o)),e.next=5,t._getAdditionalHeaders();case 5:return(u=e.sent)["Content-Type"]="application/x-www-form-urlencoded",e.abrupt("return",Rn.fetch()(s,{method:"POST",headers:u,body:r}));case 8:case"end":return e.stop()}}),e)}))));case 2:return r=e.sent,e.abrupt("return",{accessToken:r.access_token,expiresIn:r.expires_in,refreshToken:r.refresh_token});case 4:case"end":return e.stop()}}),e)}))),dr.apply(this,arguments)}var hr=function(){function e(){ye(this,e),this.refreshToken=null,this.accessToken=null,this.expirationTime=null}return we(e,[{key:"isExpired",get:function(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}},{key:"updateFromServerResponse",value:function(e){xn(e.idToken,"internal-error"),xn("undefined"!==typeof e.idToken,"internal-error"),xn("undefined"!==typeof e.refreshToken,"internal-error");var t="expiresIn"in e&&"undefined"!==typeof e.expiresIn?Number(e.expiresIn):function(e){var t=er(e);return xn(t,"internal-error"),xn("undefined"!==typeof t.exp,"internal-error"),xn("undefined"!==typeof t.iat,"internal-error"),Number(t.exp)-Number(t.iat)}(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}},{key:"getToken",value:function(){var e=me(pe().mark((function e(t){var n,r=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=r.length>1&&void 0!==r[1]&&r[1],xn(!this.accessToken||this.refreshToken,t,"user-token-expired"),n||!this.accessToken||this.isExpired){e.next=4;break}return e.abrupt("return",this.accessToken);case 4:if(!this.refreshToken){e.next=8;break}return e.next=7,this.refresh(t,this.refreshToken);case 7:return e.abrupt("return",this.accessToken);case 8:return e.abrupt("return",null);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"clearRefreshToken",value:function(){this.refreshToken=null}},{key:"refresh",value:function(){var e=me(pe().mark((function e(t,n){var r,i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fr(t,n);case 2:r=e.sent,i=r.accessToken,a=r.refreshToken,o=r.expiresIn,this.updateTokensAndExpiration(i,a,Number(o));case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"updateTokensAndExpiration",value:function(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+1e3*n}},{key:"toJSON",value:function(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}},{key:"_assign",value:function(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}},{key:"_clone",value:function(){return Object.assign(new e,this.toJSON())}},{key:"_performRefresh",value:function(){return _n("not implemented")}}],[{key:"fromJSON",value:function(t,n){var r=n.refreshToken,i=n.accessToken,a=n.expirationTime,o=new e;return r&&(xn("string"===typeof r,"internal-error",{appName:t}),o.refreshToken=r),i&&(xn("string"===typeof i,"internal-error",{appName:t}),o.accessToken=i),a&&(xn("number"===typeof a,"internal-error",{appName:t}),o.expirationTime=a),o}}]),e}();function pr(e,t){xn("string"===typeof e||"undefined"===typeof e,"internal-error",{appName:t})}var vr=function(){function e(t){ye(this,e);var n=t.uid,r=t.auth,i=t.stsTokenManager,a=ln(t,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new ir(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=r,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?ke(a.providerData):[],this.metadata=new ar(a.createdAt||void 0,a.lastLoginAt||void 0)}return we(e,[{key:"getIdToken",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tr(this,this.stsTokenManager.getToken(this.auth,t));case 2:if(xn(n=e.sent,this.auth,"internal-error"),this.accessToken===n){e.next=9;break}return this.accessToken=n,e.next=8,this.auth._persistUserIfCurrent(this);case 8:this.auth._notifyListenersIfCurrent(this);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getIdTokenResult",value:function(e){return function(e){return Jn.apply(this,arguments)}(this,e)}},{key:"reload",value:function(){return function(e){return ur.apply(this,arguments)}(this)}},{key:"_assign",value:function(e){this!==e&&(xn(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
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((function(e){return Object.assign({},e)})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}},{key:"_clone",value:function(t){return new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}))}},{key:"_onReload",value:function(e){xn(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}},{key:"_notifyReloadListener",value:function(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}},{key:"_startProactiveRefresh",value:function(){this.proactiveRefresh._start()}},{key:"_stopProactiveRefresh",value:function(){this.proactiveRefresh._stop()}},{key:"_updateTokensIfNecessary",value:function(){var e=me(pe().mark((function e(t){var n,r,i=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],r=!1,t.idToken&&t.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(t),r=!0),!n){e.next=6;break}return e.next=6,or(this);case 6:return e.next=8,this.auth._persistUserIfCurrent(this);case 8:r&&this.auth._notifyListenersIfCurrent(this);case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getIdToken();case 2:return t=e.sent,e.next=5,tr(this,Kn(this.auth,{idToken:t}));case 5:return this.stsTokenManager.clearRefreshToken(),e.abrupt("return",this.auth.signOut());case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"toJSON",value:function(){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((function(e){return Object.assign({},e)})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}},{key:"refreshToken",get:function(){return this.stsTokenManager.refreshToken||""}}],[{key:"_fromJSON",value:function(t,n){var r,i,a,o,s,u,c,l,f=null!==(r=n.displayName)&&void 0!==r?r:void 0,d=null!==(i=n.email)&&void 0!==i?i:void 0,h=null!==(a=n.phoneNumber)&&void 0!==a?a:void 0,p=null!==(o=n.photoURL)&&void 0!==o?o:void 0,v=null!==(s=n.tenantId)&&void 0!==s?s:void 0,m=null!==(u=n._redirectEventId)&&void 0!==u?u:void 0,y=null!==(c=n.createdAt)&&void 0!==c?c:void 0,g=null!==(l=n.lastLoginAt)&&void 0!==l?l:void 0,b=n.uid,w=n.emailVerified,k=n.isAnonymous,x=n.providerData,_=n.stsTokenManager;xn(b&&_,t,"internal-error");var S=hr.fromJSON(this.name,_);xn("string"===typeof b,t,"internal-error"),pr(f,t.name),pr(d,t.name),xn("boolean"===typeof w,t,"internal-error"),xn("boolean"===typeof k,t,"internal-error"),pr(h,t.name),pr(p,t.name),pr(v,t.name),pr(m,t.name),pr(y,t.name),pr(g,t.name);var E=new e({uid:b,auth:t,email:d,emailVerified:w,displayName:f,isAnonymous:k,photoURL:p,phoneNumber:h,tenantId:v,stsTokenManager:S,createdAt:y,lastLoginAt:g});return x&&Array.isArray(x)&&(E.providerData=x.map((function(e){return Object.assign({},e)}))),m&&(E._redirectEventId=m),E}},{key:"_fromIdTokenResponse",value:function(){var t=me(pe().mark((function t(n,r){var i,a,o,s=arguments;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=s.length>2&&void 0!==s[2]&&s[2],(a=new hr).updateFromServerResponse(r),o=new e({uid:r.localId,auth:n,stsTokenManager:a,isAnonymous:i}),t.next=6,or(o);case 6:return t.abrupt("return",o);case 7:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}]),e}(),mr=function(){function e(){ye(this,e),this.type="NONE",this.storage={}}return we(e,[{key:"_isAvailable",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",!0);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.storage[t]=n;case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.storage[t],e.abrupt("return",void 0===n?null:n);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:delete this.storage[t];case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),e}();mr.type="NONE";var yr=mr;function gr(e,t,n){return"firebase".concat(":",e,":").concat(t,":").concat(n)}
2var br=function(){function e(t,n,r){ye(this,e),this.persistence=t,this.auth=n,this.userKey=r;var i=this.auth,a=i.config,o=i.name;this.fullUserKey=gr(this.userKey,a.apiKey,o),this.fullPersistenceKey=gr("persistence",a.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}return we(e,[{key:"setCurrentUser",value:function(e){return this.persistence._set(this.fullUserKey,e.toJSON())}},{key:"getCurrentUser",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.persistence._get(this.fullUserKey);case 2:return t=e.sent,e.abrupt("return",t?vr._fromJSON(this.auth,t):null);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"removeCurrentUser",value:function(){return this.persistence._remove(this.fullUserKey)}},{key:"savePersistenceForRedirect",value:function(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}},{key:"setPersistence",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.persistence!==t){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.getCurrentUser();case 4:return n=e.sent,e.next=7,this.removeCurrentUser();case 7:if(this.persistence=t,!n){e.next=10;break}return e.abrupt("return",this.setCurrentUser(n));case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"delete",value:function(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}}],[{key:"create",value:function(){var t=me(pe().mark((function t(n,r){var i,a,o,s,u,c,l,f,d,h,p,v=arguments;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=v.length>2&&void 0!==v[2]?v[2]:"authUser",r.length){t.next=3;break}return t.abrupt("return",new e(Tn(yr),n,i));case 3:return t.next=5,Promise.all(r.map(function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._isAvailable();case 2:if(!e.sent){e.next=4;break}return e.abrupt("return",t);case 4:return e.abrupt("return",void 0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:a=t.sent.filter((function(e){return e})),o=a[0]||Tn(yr),s=gr(i,n.config.apiKey,n.name),u=null,c=he(r),t.prev=10,c.s();case 12:if((l=c.n()).done){t.next=29;break}return f=l.value,t.prev=14,t.next=17,f._get(s);case 17:if(!(d=t.sent)){t.next=23;break}return h=vr._fromJSON(n,d),f!==o&&(u=h),o=f,t.abrupt("break",29);case 23:t.next=27;break;case 25:t.prev=25,t.t0=t.catch(14);case 27:t.next=12;break;case 29:t.next=34;break;case 31:t.prev=31,t.t1=t.catch(10),c.e(t.t1);case 34:return t.prev=34,c.f(),t.finish(34);case 37:if(p=a.filter((function(e){return e._shouldAllowMigration})),o._shouldAllowMigration&&p.length){t.next=40;break}return t.abrupt("return",new e(o,n,i));case 40:if(o=p[0],!u){t.next=44;break}return t.next=44,o._set(s,u.toJSON());case 44:return t.next=46,Promise.all(r.map(function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t===o){e.next=8;break}return e.prev=1,e.next=4,t._remove(s);case 4:e.next=8;break;case 6:e.prev=6,e.t0=e.catch(1);case 8:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t){return e.apply(this,arguments)}}()));case 46:return t.abrupt("return",new e(o,n,i));case 47:case"end":return t.stop()}}),t,null,[[10,31,34,37],[14,25]])})));return function(e,n){return t.apply(this,arguments)}}()}]),e}();function wr(e){var t=e.toLowerCase();if(t.includes("opera/")||t.includes("opr/")||t.includes("opios/"))return"Opera";if(Sr(t))return"IEMobile";if(t.includes("msie")||t.includes("trident/"))return"IE";if(t.includes("edge/"))return"Edge";if(kr(t))return"Firefox";if(t.includes("silk/"))return"Silk";if(Tr(t))return"Blackberry";if(Or(t))return"Webos";if(xr(t))return"Safari";if((t.includes("chrome/")||_r(t))&&!t.includes("edge/"))return"Chrome";if(Er(t))return"Android";var n=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);return 2===(null===n||void 0===n?void 0:n.length)?n[1]:"Other"}function kr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/firefox\//i.test(e)}function xr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce(),t=e.toLowerCase();return t.includes("safari/")&&!t.includes("chrome/")&&!t.includes("crios/")&&!t.includes("android")}function _r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/crios\//i.test(e)}function Sr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/iemobile/i.test(e)}function Er(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/android/i.test(e)}function Tr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/blackberry/i.test(e)}function Or(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/webos/i.test(e)}function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function Cr(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return jr(t)&&!!(null===(e=window.navigator)||void 0===e?void 0:e.standalone)}function Ir(){return function(){var e=Ce();return e.indexOf("MSIE ")>=0||e.indexOf("Trident/")>=0}()&&10===document.documentMode}function Nr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ce();return jr(e)||Er(e)||Or(e)||Tr(e)||/windows phone/i.test(e)||Sr(e)}function Ar(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];switch(e){case"Browser":t=wr(Ce());break;case"Worker":t="".concat(wr(Ce()),"-").concat(e);break;default:t=e}var r=n.length?n.join(","):"FirebaseCore-web";return"".concat(t,"/","JsCore","/").concat(Wt,"/").concat(r)}var Pr=function(){function e(t){ye(this,e),this.auth=t,this.queue=[]}return we(e,[{key:"pushCallback",value:function(e,t){var n=this,r=function(t){return new Promise((function(n,r){try{n(e(t))}catch(i){r(i)}}))};r.onAbort=t,this.queue.push(r);var i=this.queue.length-1;return function(){n.queue[i]=function(){return Promise.resolve()}}}},{key:"runMiddleware",value:function(){var e=me(pe().mark((function e(t){var n,r,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.auth.currentUser!==t){e.next=2;break}return e.abrupt("return");case 2:n=[],e.prev=3,r=he(this.queue),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=14;break}return a=i.value,e.next=11,a(t);case 11:a.onAbort&&n.push(a.onAbort);case 12:e.next=7;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e.catch(5),r.e(e.t0);case 19:return e.prev=19,r.f(),e.finish(19);case 22:e.next=30;break;case 24:e.prev=24,e.t1=e.catch(3),n.reverse(),o=he(n);try{for(o.s();!(s=o.n()).done;){u=s.value;try{u()}catch(Q){}}}catch(c){o.e(c)}finally{o.f()}throw this.auth._errorFactory.create("login-blocked",{originalMessage:null===e.t1||void 0===e.t1?void 0:e.t1.message});case 30:case"end":return e.stop()}}),e,this,[[3,24],[5,16,19,22]])})));return function(t){return e.apply(this,arguments)}}()}]),e}
2(),Rr=function(){function e(t,n,r){ye(this,e),this.app=t,this.heartbeatServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Dr(this),this.idTokenSubscription=new Dr(this),this.beforeStateQueue=new Pr(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=pn,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=t.name,this.clientVersion=r.sdkClientVersion}return we(e,[{key:"_initializeWithPersistence",value:function(e,t){var n=this;return t&&(this._popupRedirectResolver=Tn(t)),this._initializationPromise=this.queue(me(pe().mark((function r(){var i,a;return pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!n._deleted){r.next=2;break}return r.abrupt("return");case 2:return r.next=4,br.create(n,e);case 4:if(n.persistenceManager=r.sent,!n._deleted){r.next=7;break}return r.abrupt("return");case 7:if(!(null===(i=n._popupRedirectResolver)||void 0===i?void 0:i._shouldInitProactively)){r.next=15;break}return r.prev=8,r.next=11,n._popupRedirectResolver._initialize(n);case 11:r.next=15;break;case 13:r.prev=13,r.t0=r.catch(8);case 15:return r.next=17,n.initializeCurrentUser(t);case 17:if(n.lastNotifiedUid=(null===(a=n.currentUser)||void 0===a?void 0:a.uid)||null,!n._deleted){r.next=20;break}return r.abrupt("return");case 20:n._isInitialized=!0;case 21:case"end":return r.stop()}}),r,null,[[8,13]])})))),this._initializationPromise}},{key:"_onStorageEvent",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._deleted){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.assertedPersistence.getCurrentUser();case 4:if(t=e.sent,this.currentUser||t){e.next=7;break}return e.abrupt("return");case 7:if(!this.currentUser||!t||this.currentUser.uid!==t.uid){e.next=12;break}return this._currentUser._assign(t),e.next=11,this.currentUser.getIdToken();case 11:return e.abrupt("return");case 12:return e.next=14,this._updateCurrentUser(t,!0);case 14:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeCurrentUser",value:function(){var e=me(pe().mark((function e(t){var n,r,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.assertedPersistence.getCurrentUser();case 2:if(r=e.sent,i=r,a=!1,!t||!this.config.authDomain){e.next=14;break}return e.next=8,this.getOrInitRedirectPersistenceManager();case 8:return o=null===(n=this.redirectUser)||void 0===n?void 0:n._redirectEventId,s=null===i||void 0===i?void 0:i._redirectEventId,e.next=12,this.tryRedirectSignIn(t);case 12:u=e.sent,o&&o!==s||!(null===u||void 0===u?void 0:u.user)||(i=u.user,a=!0);case 14:if(i){e.next=16;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 16:if(i._redirectEventId){e.next=32;break}if(!a){e.next=27;break}return e.prev=18,e.next=21,this.beforeStateQueue.runMiddleware(i);case 21:e.next=27;break;case 23:e.prev=23,e.t0=e.catch(18),i=r,this._popupRedirectResolver._overrideRedirectResult(this,(function(){return Promise.reject(e.t0)}));case 27:if(!i){e.next=31;break}return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 31:return e.abrupt("return",this.directlySetCurrentUser(null));case 32:return xn(this._popupRedirectResolver,this,"argument-error"),e.next=35,this.getOrInitRedirectPersistenceManager();case 35:if(!this.redirectUser||this.redirectUser._redirectEventId!==i._redirectEventId){e.next=37;break}return e.abrupt("return",this.directlySetCurrentUser(i));case 37:return e.abrupt("return",this.reloadAndSetCurrentUserOrClear(i));case 38:case"end":return e.stop()}}),e,this,[[18,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"tryRedirectSignIn",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=null,e.prev=1,e.next=4,this._popupRedirectResolver._completeRedirectFn(this,t,!0);case 4:n=e.sent,e.next=11;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this._setRedirectUser(null);case 11:return e.abrupt("return",n);case 12:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"reloadAndSetCurrentUserOrClear",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,or(t);case 3:e.next=9;break;case 5:if(e.prev=5,e.t0=e.catch(0),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("network-request-failed")){e.next=9;break}return e.abrupt("return",this.directlySetCurrentUser(null));case 9:return e.abrupt("return",this.directlySetCurrentUser(t));case 10:case"end":return e.stop()}}),e,this,[[0,5]])})));return function(t){return e.apply(this,arguments)}}()},{key:"useDeviceLanguage",value:function(){this.languageCode=function(){if("undefined"===typeof navigator)return null;var e=navigator;return e.languages&&e.languages[0]||e.language||null}()}},{key:"_delete",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._deleted=!0;case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"updateCurrentUser",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=t?Xe(t):null)&&xn(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),e.abrupt("return",this._updateCurrentUser(n&&n._clone(this)));case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_updateCurrentUser",value:function(){var e=me(pe().mark((function e(t){var n,r=this,i=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.length>1&&void 0!==i[1]&&i[1],!this._deleted){e.next=3;break}return e.abrupt("return");case 3:if(t&&xn(this.tenantId===t.tenantId,this,"tenant-id-mismatch"),n){e.
2next=7;break}return e.next=7,this.beforeStateQueue.runMiddleware(t);case 7:return e.abrupt("return",this.queue(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.directlySetCurrentUser(t);case 2:r.notifyAuthListeners();case 3:case"end":return e.stop()}}),e)})))));case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.beforeStateQueue.runMiddleware(null);case 2:if(!this.redirectPersistenceManager&&!this._popupRedirectResolver){e.next=5;break}return e.next=5,this._setRedirectUser(null);case 5:return e.abrupt("return",this._updateCurrentUser(null,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPersistence",value:function(e){var t=this;return this.queue(me(pe().mark((function n(){return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.assertedPersistence.setPersistence(Tn(e));case 2:case"end":return n.stop()}}),n)}))))}},{key:"_getPersistence",value:function(){return this.assertedPersistence.persistence.type}},{key:"_updateErrorMap",value:function(e){this._errorFactory=new ze("auth","Firebase",e())}},{key:"onAuthStateChanged",value:function(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}},{key:"beforeAuthStateChanged",value:function(e,t){return this.beforeStateQueue.pushCallback(e,t)}},{key:"onIdTokenChanged",value:function(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}},{key:"toJSON",value:function(){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()}}},{key:"_setRedirectUser",value:function(){var e=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getOrInitRedirectPersistenceManager(n);case 2:return r=e.sent,e.abrupt("return",null===t?r.removeCurrentUser():r.setCurrentUser(t));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getOrInitRedirectPersistenceManager",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.redirectPersistenceManager){e.next=9;break}return xn(n=t&&Tn(t)||this._popupRedirectResolver,this,"argument-error"),e.next=5,br.create(this,[Tn(n._redirectPersistence)],"redirectUser");case 5:return this.redirectPersistenceManager=e.sent,e.next=8,this.redirectPersistenceManager.getCurrentUser();case 8:this.redirectUser=e.sent;case 9:return e.abrupt("return",this.redirectPersistenceManager);case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_redirectUserForId",value:function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isInitialized){e.next=3;break}return e.next=3,this.queue(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))));case 3:if((null===(n=this._currentUser)||void 0===n?void 0:n._redirectEventId)!==t){e.next=5;break}return e.abrupt("return",this._currentUser);case 5:if((null===(r=this.redirectUser)||void 0===r?void 0:r._redirectEventId)!==t){e.next=7;break}return e.abrupt("return",this.redirectUser);case 7:return e.abrupt("return",null);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_persistUserIfCurrent",value:function(){var e=me(pe().mark((function e(t){var n=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==this.currentUser){e.next=2;break}return e.abrupt("return",this.queue(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.directlySetCurrentUser(t));case 1:case"end":return e.stop()}}),e)})))));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_notifyListenersIfCurrent",value:function(e){e===this.currentUser&&this.notifyAuthListeners()}},{key:"_key",value:function(){return"".concat(this.config.authDomain,":").concat(this.config.apiKey,":").concat(this.name)}},{key:"_startProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}},{key:"_stopProactiveRefresh",value:function(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}},{key:"_currentUser",get:function(){return this.currentUser}},{key:"notifyAuthListeners",value:function(){var e,t;if(this._isInitialized){this.idTokenSubscription.next(this.currentUser);var 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))}}},{key:"registerStateListener",value:function(e,t,n,r){var i=this;if(this._deleted)return function(){};var a="function"===typeof t?t:t.next.bind(t),o=this._isInitialized?Promise.resolve():this._initializationPromise;return xn(o,this,"internal-error"),o.then((function(){return a(i.currentUser)})),"function"===typeof t?e.addObserver(t,n,r):e.addObserver(t)}},{key:"directlySetCurrentUser",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.currentUser&&this.currentUser!==t&&this._currentUser._stopProactiveRefresh(),t&&this.isProactiveRefreshEnabled&&t._startProactiveRefresh(),this.currentUser=t,!t){e.next=8;break}return e.next=6,this.assertedPersistence.setCurrentUser(t);case 6:e.next=10;break;case 8:return e.next=10,this.assertedPersistence.removeCurrentUser();case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"queue",value:function(e){return this.operations=this.operations.then(e,e),this.operations}},{key:"assertedPersistence",get:function(){return xn(this.persistenceManager,this,"internal-error"),this.persistenceManager}},{key:"_logFramework",value:function(e){e&&!this.frameworks.includes(e)&&(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=Ar(this.config.clientPlatform,this._getFrameworks()))}},{key:"_getFrameworks",value:function(){return this.frameworks}},{key:"_getAdditionalHeaders",value:function(){var e=me(pe().mark((function e(){var t,n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=xe({},"X-Client-Version",this.clientVersion),this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId),e.next=4,null===(t=this.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===t?void 0:t.getHeartbeatsHeader();case 4:return(r=e.sent)&&(n["X-Firebase-Client"]=r),e.abrupt("return",n);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}();function Lr(e){return Xe(e)}var Dr=function(){function e(t){var n=this;ye(this,e),this.auth=t,this.observer=null,this.addObserver=function(e,t){var n=new $e(e,t);return n.subscribe.bind(n)}((function(e){return n.observer=e}))}return we(e,[{key:"next",get:function(){return xn(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}]),e}();function Mr(e,t,n){var r=Lr(e);xn(r._canInitEmulator,r,"emulator-config-failed"),xn(/^https?:\/\//.test(t),r,"invali
2d-emulator-scheme");var i=!!(null===n||void 0===n?void 0:n.disableWarnings),a=Fr(t),o=function(e){var t=Fr(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:"",port:null};var r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){var a=i[1];return{host:a,port:Vr(r.substr(a.length+1))}}var o=ne(r.split(":"),2);return{host:o[0],port:Vr(o[1])}}(t),s=o.host,u=o.port,c=null===u?"":":".concat(u);r.config.emulator={url:"".concat(a,"//").concat(s).concat(c,"/")},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:s,port:u,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})}),i||function(){function e(){var 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 Fr(e){var t=e.indexOf(":");return t<0?"":e.substr(0,t+1)}function Vr(e){if(!e)return null;var t=Number(e);return isNaN(t)?null:t}var Ur=function(){function e(t,n){ye(this,e),this.providerId=t,this.signInMethod=n}return we(e,[{key:"toJSON",value:function(){return _n("not implemented")}},{key:"_getIdTokenResponse",value:function(e){return _n("not implemented")}},{key:"_linkToIdToken",value:function(e,t){return _n("not implemented")}},{key:"_getReauthenticationResolver",value:function(e){return _n("not implemented")}}]),e}();function zr(e,t){return Br.apply(this,arguments)}function Br(){return Br=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fn(t,"POST","/v1/accounts:update",n));case 1:case"end":return e.stop()}}),e)}))),Br.apply(this,arguments)}function qr(e,t){return Hr.apply(this,arguments)}function Hr(){return Hr=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithPassword",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),Hr.apply(this,arguments)}function Wr(e,t){return Gr.apply(this,arguments)}function Gr(){return Gr=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithEmailLink",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),Gr.apply(this,arguments)}function Kr(e,t){return Qr.apply(this,arguments)}function Qr(){return Qr=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithEmailLink",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),Qr.apply(this,arguments)}var $r=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return ye(this,n),(a=t.call(this,"password",i))._email=e,a._password=r,a._tenantId=o,a}return we(n,[{key:"toJSON",value:function(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}},{key:"_getIdTokenResponse",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",qr(t,{returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",Wr(t,{email:this._email,oobCode:this._password}));case 5:yn(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_linkToIdToken",value:function(){var e=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=this.signInMethod,e.next="password"===e.t0?3:"emailLink"===e.t0?4:5;break;case 3:return e.abrupt("return",zr(t,{idToken:n,returnSecureToken:!0,email:this._email,password:this._password}));case 4:return e.abrupt("return",Kr(t,{idToken:n,email:this._email,oobCode:this._password}));case 5:yn(t,"internal-error");case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_getReauthenticationResolver",value:function(e){return this._getIdTokenResponse(e)}}],[{key:"_fromEmailAndPassword",value:function(e,t){return new n(e,t,"password")}},{key:"_fromEmailAndCode",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return new n(e,t,"emailLink",r)}},{key:"fromJSON",value:function(e){var 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}}]),n}(Ur);function Yr(e,t){return Xr.apply(this,arguments)}function Xr(){return Xr=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithIdp",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),Xr.apply(this,arguments)}var Jr=function(e){ue(n,e);var t=de(n);function n(){var e;return ye(this,n),(e=t.apply(this,arguments)).pendingToken=null,e}return we(n,[{key:"toJSON",value:function(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}},{key:"_getIdTokenResponse",value:function(e){return Yr(e,this.buildRequest())}},{key:"_linkToIdToken",value:function(e,t){var n=this.buildRequest();return n.idToken=t,Yr(e,n)}},{key:"_getReauthenticationResolver",value:function(e){var t=this.buildRequest();return t.autoCreate=!1,Yr(e,t)}},{key:"buildRequest",value:function(){var e={requestUri:"http://localhost",returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{var 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=Ge(t)}return e}}],[{key:"_fromParams",value:function(e){var t=new n(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&&(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):yn("argument-error"),t}},{key:"fromJSON",value:function(e){var t="string"===typeof e?JSON.parse(e):e,r=t.providerId,i=t.signInMethod,a=ln(t,["providerId","signInMethod"]);if(!r||!i)return null;var o=new n(r,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}}]),n}(Ur);function Zr(e,t){return ei.apply(this,arguments)}function ei(){return ei=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fn(t,"POST","/v1/accounts:sendVerificationCode",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),ei.apply(this,arguments)}function ti(){return ti=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithPhoneNumber",Mn(t,n)));case 1:case"end":return e.stop()}}),e)}))),ti.apply(this,arguments)}function ni(){return ni=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Bn(t,"POST","/v1/accounts:signInWithPhoneNumber",Mn(t,n));case 2:if(!(r=e.sent).temporaryProof){e.next=5;break}throw Gn(t,"account-exists-with-different-credential",r);case 5:return e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),ni.apply(this,arguments)}var ri=xe({},"USER_NOT_FOUND","user-not-found");function ii(){return ii=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Object.assign(Object.assign({},n),{operation:"REAUTH"}),e.abrupt("return",Bn(t,"POST","/v1/accounts:signInWithPhoneNumber",Mn(t,r),ri));case 2:case"end":return e.stop()}}),e)}))),ii.apply(this,arguments)}var ai=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this,"phone","phone")).params=e,r}return we(n,[{key:"_getIdTokenResponse",value:function(e){return function(e,t){return ti.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_linkToIdToken",value:function(e,t){return function(e,t){return ni.apply(this,arguments)}(e,Object.assign({idToken:t},this._makeVerificationRequest()))}},{key:"_getReauthenticationResolver",value:function(e){return function(e,t){return ii.apply(this,arguments)}(e,this._makeVerificationRequest())}},{key:"_makeVerificationRequest",value:function(){var e=this.params,t=e.temporaryProof,n=e.phoneNumber,r=e.verificationId,i=e.verificationCode;return t&&n?{temporaryProof:t,phoneNumber:n}:{sessionInfo:r,code:i}}},{key:"toJSON",value:function(){var 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}}],[{key:"_fromVerification",value:function(e,t){return new n({verificationId:e,verificationCode:t})}}
2,{key:"_fromTokenResponse",value:function(e,t){return new n({phoneNumber:e,temporaryProof:t})}},{key:"fromJSON",value:function(e){"string"===typeof e&&(e=JSON.parse(e));var t=e,r=t.verificationId,i=t.verificationCode,a=t.phoneNumber,o=t.temporaryProof;return i||r||a||o?new n({verificationId:r,verificationCode:i,phoneNumber:a,temporaryProof:o}):null}}]),n}(Ur);var oi=function(){function e(t){var n,r,i,a,o,s;ye(this,e);var u=Ke(Qe(t)),c=null!==(n=u.apiKey)&&void 0!==n?n:null,l=null!==(r=u.oobCode)&&void 0!==r?r:null,f=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!==(i=u.mode)&&void 0!==i?i:null);xn(c&&l&&f,"argument-error"),this.apiKey=c,this.operation=f,this.code=l,this.continueUrl=null!==(a=u.continueUrl)&&void 0!==a?a:null,this.languageCode=null!==(o=u.languageCode)&&void 0!==o?o:null,this.tenantId=null!==(s=u.tenantId)&&void 0!==s?s:null}return we(e,null,[{key:"parseLink",value:function(t){var n=function(e){var t=Ke(Qe(e)).link,n=t?Ke(Qe(t)).deep_link_id:null,r=Ke(Qe(e)).deep_link_id;return(r?Ke(Qe(r)).link:null)||r||n||t||e}(t);try{return new e(n)}catch(Nw){return null}}}]),e}();var si=function(){function e(){ye(this,e),this.providerId=e.PROVIDER_ID}return we(e,null,[{key:"credential",value:function(e,t){return $r._fromEmailAndPassword(e,t)}},{key:"credentialWithLink",value:function(e,t){var n=oi.parseLink(t);return xn(n,"argument-error"),$r._fromEmailAndCode(e,n.code,n.tenantId)}}]),e}();si.PROVIDER_ID="password",si.EMAIL_PASSWORD_SIGN_IN_METHOD="password",si.EMAIL_LINK_SIGN_IN_METHOD="emailLink";var ui=function(){function e(t){ye(this,e),this.providerId=t,this.defaultLanguageCode=null,this.customParameters={}}return we(e,[{key:"setDefaultLanguage",value:function(e){this.defaultLanguageCode=e}},{key:"setCustomParameters",value:function(e){return this.customParameters=e,this}},{key:"getCustomParameters",value:function(){return this.customParameters}}]),e}(),ci=function(e){ue(n,e);var t=de(n);function n(){var e;return ye(this,n),(e=t.apply(this,arguments)).scopes=[],e}return we(n,[{key:"addScope",value:function(e){return this.scopes.includes(e)||this.scopes.push(e),this}},{key:"getScopes",value:function(){return ke(this.scopes)}}]),n}(ui),li=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.call(this,"facebook.com")}return we(n,null,[{key:"credential",value:function(e){return Jr._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Nw){return null}}}]),n}(ci);li.FACEBOOK_SIGN_IN_METHOD="facebook.com",li.PROVIDER_ID="facebook.com";var fi=function(e){ue(n,e);var t=de(n);function n(){var e;return ye(this,n),(e=t.call(this,"google.com")).addScope("profile"),e}return we(n,null,[{key:"credential",value:function(e,t){return Jr._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthIdToken,i=t.oauthAccessToken;if(!r&&!i)return null;try{return n.credential(r,i)}catch(Nw){return null}}}]),n}(ci);fi.GOOGLE_SIGN_IN_METHOD="google.com",fi.PROVIDER_ID="google.com";var di=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.call(this,"github.com")}return we(n,null,[{key:"credential",value:function(e){return Jr._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.GITHUB_SIGN_IN_METHOD,accessToken:e})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t||!("oauthAccessToken"in t))return null;if(!t.oauthAccessToken)return null;try{return n.credential(t.oauthAccessToken)}catch(Nw){return null}}}]),n}(ci);di.GITHUB_SIGN_IN_METHOD="github.com",di.PROVIDER_ID="github.com";var hi=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.call(this,"twitter.com")}return we(n,null,[{key:"credential",value:function(e,t){return Jr._fromParams({providerId:n.PROVIDER_ID,signInMethod:n.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:t})}},{key:"credentialFromResult",value:function(e){return n.credentialFromTaggedObject(e)}},{key:"credentialFromError",value:function(e){return n.credentialFromTaggedObject(e.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var r=t.oauthAccessToken,i=t.oauthTokenSecret;if(!r||!i)return null;try{return n.credential(r,i)}catch(Nw){return null}}}]),n}(ci);hi.TWITTER_SIGN_IN_METHOD="twitter.com",hi.PROVIDER_ID="twitter.com";var pi=function(){function e(t){ye(this,e),this.user=t.user,this.providerId=t.providerId,this._tokenResponse=t._token
2Response,this.operationType=t.operationType}return we(e,null,[{key:"_fromIdTokenResponse",value:function(){var t=me(pe().mark((function t(n,r,i){var a,o,s,u,c=arguments;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=c.length>3&&void 0!==c[3]&&c[3],t.next=3,vr._fromIdTokenResponse(n,i,a);case 3:return o=t.sent,s=vi(i),u=new e({user:o,providerId:s,_tokenResponse:i,operationType:r}),t.abrupt("return",u);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()},{key:"_forOperation",value:function(){var t=me(pe().mark((function t(n,r,i){var a;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n._updateTokensIfNecessary(i,!0);case 2:return a=vi(i),t.abrupt("return",new e({user:n,providerId:a,_tokenResponse:i,operationType:r}));case 4:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}()}]),e}();function vi(e){return e.providerId?e.providerId:"phoneNumber"in e?"phone":null}var mi=function(e){ue(n,e);var t=de(n);function n(e,r,i,a){var o,s;return ye(this,n),(o=t.call(this,r.code,r.message)).operationType=i,o.user=a,Object.setPrototypeOf(oe(o),n.prototype),o.customData={appName:e.name,tenantId:null!==(s=e.tenantId)&&void 0!==s?s:void 0,_serverResponse:r.customData._serverResponse,operationType:i},o}return we(n,null,[{key:"_fromErrorAndOperation",value:function(e,t,r,i){return new n(e,t,r,i)}}]),n}(Ue);function yi(e,t,n,r){return("reauthenticate"===t?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch((function(n){if(n.code==="auth/".concat("multi-factor-auth-required"))throw mi._fromErrorAndOperation(e,n,t,r);throw n}))}function gi(e,t){return bi.apply(this,arguments)}function bi(){return bi=me(pe().mark((function e(t,n){var r,i,a=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],e.t0=tr,e.t1=t,e.t2=n,e.t3=t.auth,e.next=7,t.getIdToken();case 7:return e.t4=e.sent,e.t5=e.t2._linkToIdToken.call(e.t2,e.t3,e.t4),e.t6=r,e.next=12,(0,e.t0)(e.t1,e.t5,e.t6);case 12:return i=e.sent,e.abrupt("return",pi._forOperation(t,"link",i));case 14:case"end":return e.stop()}}),e)}))),bi.apply(this,arguments)}function wi(e,t){return ki.apply(this,arguments)}function ki(){return ki=me(pe().mark((function e(t,n){var r,i,a,o,s,u,c=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>2&&void 0!==c[2]&&c[2],i=t.auth,a="reauthenticate",e.prev=3,e.next=6,tr(t,yi(i,a,n,t),r);case 6:return xn((o=e.sent).idToken,i,"internal-error"),xn(s=er(o.idToken),i,"internal-error"),u=s.sub,xn(t.uid===u,i,"user-mismatch"),e.abrupt("return",pi._forOperation(t,a,o));case 15:throw e.prev=15,e.t0=e.catch(3),(null===e.t0||void 0===e.t0?void 0:e.t0.code)==="auth/".concat("user-not-found")&&yn(i,"user-mismatch"),e.t0;case 19:case"end":return e.stop()}}),e,null,[[3,15]])}))),ki.apply(this,arguments)}function xi(e,t){return _i.apply(this,arguments)}function _i(){return _i=me(pe().mark((function e(t,n){var r,i,a,o,s=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=s.length>2&&void 0!==s[2]&&s[2],i="signIn",e.next=4,yi(t,i,n);case 4:return a=e.sent,e.next=7,pi._fromIdTokenResponse(t,i,a);case 7:if(o=e.sent,r){e.next=11;break}return e.next=11,t._updateCurrentUser(o.user);case 11:return e.abrupt("return",o);case 12:case"end":return e.stop()}}),e)}))),_i.apply(this,arguments)}function Si(e,t,n,r){return Xe(e).onIdTokenChanged(t,n,r)}function Ei(e,t,n){return Xe(e).beforeAuthStateChanged(t,n)}function Ti(e,t){return Fn(e,"POST","/v2/accounts/mfaEnrollment:start",Mn(e,t))}new WeakMap;var Oi="__sak",ji=function(){function e(t,n){ye(this,e),this.storageRetriever=t,this.type=n}return we(e,[{key:"_isAvailable",value:function(){try{return this.storage?(this.storage.setItem(Oi,"1"),this.storage.removeItem(Oi),Promise.resolve(!0)):Promise.resolve(!1)}catch(Nw){return Promise.resolve(!1)}}},{key:"_set",value:function(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}},{key:"_get",value:function(e){var t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}},{key:"_remove",value:function(e){return this.storage.removeItem(e),Promise.resolve()}},{key:"storage",get:function(){return this.storageRetriever()}}]),e}();var Ci=function(e){ue(n,e);var t=de(n);function n(){var e;return ye(this,n),(e=t.call(this,(function(){return window.localStorage}),"LOCAL")).boundEventHandler=function(t,n){return e.onStorageEvent(t,n)},e.listeners={},e.localCache={},e.pollTimer=null,e.safariLocalStorageNotSynced=function(){var e=Ce();return xr(e)||jr(e)}()&&function(){try{return!(!window||window===window.top)}catch(e){return!1}}(),e.fallbackToPolling=Nr(),e._shouldAllowMigration=!0,e}return we(n,[{key:"forAllChangedKeys",value:function(e){for(var t=0,n=Object.keys(this.listeners);t<n.length;t++){var r=n[t],i=this.storage.getItem(r),a=this.localCache[r];i!==a&&e(r,a,i)}}},{key:"onStorageEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.key){var r=e.key;if(n?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){var i=this.storage.getItem(r);if(e.newValue!==i)null!==e.newValue?this.storage.setItem(r,e.newValue):this.storage.removeItem(r);else if(this.localCache[r]===e.newValue&&!n)return}var a=function(){var e=t.storage.getItem(r);(n||t.localCache[r]!==e)&&t.notifyListeners(r,e)},o=this.storage.getItem(r);Ir()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,10):a()}else this.forAllChangedKeys((function(e,n,r){t.notifyListeners(e,r)}))}},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t?JSON.parse(t):t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval((function(){e.forAllChangedKeys((function(t,n,r){e.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:r}),!0)}))}),1e3)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"attachListener",value:function(){window.addEventListener("storage",this.boundEventHandler)}},{key:"detachListener",value:function(){window.removeEventListener("storage",this.boundEventHandler)}},{key:"_addListener",value:function(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)}},{key:"_removeListener",value:function(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())}},{key:"_set",value:function(){var e=me(pe().mark((function e(t,r){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(re(n.prototype),"_set",this).call(this,t,r);case 2:this.localCache[t]=JSON.stringify(r);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=me(pe().mark((function e(t){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(re(n.prototype),"_get",this).call(this,t);case 2:return r=e.sent,this.localCache[t]=JSON.stringify(r),e.abrupt("return",r);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ae(re(n.prototype),"_remove",this).call(this,t);case 2:delete this.localCache[t];case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(ji);Ci.type="LOCAL";var Ii=Ci,Ni=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.call(this,(function(){return window.sessionStorage}),"SESSION")}return we(n,[{key:"_addListener",value:function(e,t){}},{key:"_removeListener",value:function(e,t){}}]),n}(ji);Ni.type="SESSION";var Ai=Ni;function Pi(e){return Promise.all(e.map(function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return n=e.sent,e.abrupt("return",{fulfilled:!0,value:n});case 7:return e.prev=7,e.t0=e.catch(0),e.abrupt("return",{fulfilled:!1,reason:e.t0});case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}()))}var Ri=function(){function e(t){ye(this,e),this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}return we(e,[{key:"isListeningto",value:function(e){return this.eventTarget===e}},{key:"handleEvent",value:function(){var e=me(pe().mark((function e(t){var n,r,i,a,o,s,u,c;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(n=t).data,i=r.eventId,a=r.eventType,o=r.data,null===(s=this.handlersMap[a])||void 0===s?void 0:s.size){e.next=5;break}return e.abrupt("return");case 5:return n.ports[0].postMessage({status:"ack",eventId:i,eventType:a}),u=Array.from(s).map(function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t(n.origin,o));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),e.next=9,Pi(u);case 9:c=e.sent,n.ports[0].postMessage({status:"done",eventId:i,eventType:a,response:c});case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_subscribe",value:function(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)}},{key:"_unsubscribe",value:function(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)}}],[{key:"_getInstance",value:function(t){var n=this.receivers.find((function(e){return e.isListeningto(t)}));if(n)return n;var r=new e(t);return this.receivers.push(r),r}}]),e}();function Li(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n="",r=0;r<t;r++)n+=Math.floor(10*Math.random());return e+n}Ri.receivers=[];var Di=function(){function e(t){ye(this,e),this.target=t,this.handlers=new Set}return we(e,[{key:"removeMessageHandler",value:function(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}},{key:"_send",value:function(){var e=me(pe().mark((function e(t,n){var r,i,a,o,s=this,u=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=u.length>2&&void 0!==u[2]?u[2]:50,i="undefined"!==typeof MessageChannel?new MessageChannel:null){e.next=4;break}throw new Error("connection_unavailable");case 4:return e.abrupt("return",new Promise((function(e,u){var c=Li("",20);i.port1.start();var l=setTimeout((function(){u(new Error("unsupported_event"))}),r);o={messageChannel:i,onMessage:function(t){var n=t;if(n.data.eventId===c)switch(n.data.status){case"ack":clearTimeout(l),a=setTimeout((function(){u(new Error("timeout"))}),3e3);break;case"done":clearTimeout(a),e(n.data.response);break;default:clearTimeout(l),clearTimeout(a),u(new Error("invalid_response"))}}},s.handlers.add(o),i.port1.addEventListener("message",o.onMessage),s.target.postMessage({eventType:t,eventId:c,data:n},[i.port2])})).finally((function(){o&&s.removeMessageHandler(o)})));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}();function Mi(){return window}
2function Fi(){return"undefined"!==typeof Mi().WorkerGlobalScope&&"function"===typeof Mi().importScripts}function Vi(){return Ui.apply(this,arguments)}function Ui(){return(Ui=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===navigator||void 0===navigator?void 0:navigator.serviceWorker){e.next=2;break}return e.abrupt("return",null);case 2:return e.prev=2,e.next=5,navigator.serviceWorker.ready;case 5:return t=e.sent,e.abrupt("return",t.active);case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))).apply(this,arguments)}function zi(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.serviceWorker)||void 0===e?void 0:e.controller)||null}var Bi="firebaseLocalStorageDb",qi="firebaseLocalStorage",Hi="fbase_key",Wi=function(){function e(t){ye(this,e),this.request=t}return we(e,[{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.request.addEventListener("success",(function(){t(e.request.result)})),e.request.addEventListener("error",(function(){n(e.request.error)}))}))}}]),e}();function Gi(e,t){return e.transaction([qi],t?"readwrite":"readonly").objectStore(qi)}function Ki(){var e=indexedDB.deleteDatabase(Bi);
2return new Wi(e).toPromise()}function Qi(){var e=indexedDB.open(Bi,1);return new Promise((function(t,n){e.addEventListener("error",(function(){n(e.error)})),e.addEventListener("upgradeneeded",(function(){var t=e.result;try{t.createObjectStore(qi,{keyPath:Hi})}catch(r){n(r)}})),e.addEventListener("success",me(pe().mark((function n(){var r;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if((r=e.result).objectStoreNames.contains(qi)){n.next=12;break}return r.close(),n.next=5,Ki();case 5:return n.t0=t,n.next=8,Qi();case 8:n.t1=n.sent,(0,n.t0)(n.t1),n.next=13;break;case 12:t(r);case 13:case"end":return n.stop()}}),n)}))))}))}function $i(e,t,n){return Yi.apply(this,arguments)}function Yi(){return(Yi=me(pe().mark((function e(t,n,r){var i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=Gi(t,!0).put((xe(i={},Hi,n),xe(i,"value",r),i)),e.abrupt("return",new Wi(a).toPromise());case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Xi(e,t){return Ji.apply(this,arguments)}function Ji(){return(Ji=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Gi(t,!1).get(n),e.next=3,new Wi(r).toPromise();case 3:return i=e.sent,e.abrupt("return",void 0===i?null:i.value);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Zi(e,t){var n=Gi(e,!0).delete(t);return new Wi(n).toPromise()}var ea=function(){function e(){ye(this,e),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((function(){}),(function(){}))}return we(e,[{key:"_openDb",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.db){e.next=2;break}return e.abrupt("return",this.db);case 2:return e.next=4,Qi();case 4:return this.db=e.sent,e.abrupt("return",this.db);case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_withRetries",value:function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=0;case 1:return e.prev=2,e.next=5,this._openDb();case 5:return r=e.sent,e.next=8,t(r);case 8:return e.abrupt("return",e.sent);case 11:if(e.prev=11,e.t0=e.catch(2),!(n++>3)){e.next=15;break}throw e.t0;case 15:this.db&&(this.db.close(),this.db=void 0);case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e,this,[[2,11]])})));return function(t){return e.apply(this,arguments)}}()},{key:"initializeServiceWorkerMessaging",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Fi()?this.initializeReceiver():this.initializeSender());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeReceiver",value:function(){var e=me(pe().mark((function e(){var t=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.receiver=Ri._getInstance(Fi()?self:null),this.receiver._subscribe("keyChanged",function(){var e=me(pe().mark((function e(n,r){var i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t._poll();case 2:return i=e.sent,e.abrupt("return",{keyProcessed:i.includes(r.key)});case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),this.receiver._subscribe("ping",function(){var e=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",["keyChanged"]);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"initializeSender",value:function(){var e=me(pe().mark((function e(){var t,n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vi();case 2:if(this.activeServiceWorker=e.sent,this.activeServiceWorker){e.next=5;break}return e.abrupt("return");case 5:return this.sender=new Di(this.activeServiceWorker),e.next=8,this.sender._send("ping",{},800);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return");case 11:(null===(t=r[0])||void 0===t?void 0:t.fulfilled)&&(null===(n=r[0])||void 0===n?void 0:n.value.includes("keyChanged"))&&(this.serviceWorkerReceiverAvailable=!0);case 12:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyServiceWorker",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.sender&&this.activeServiceWorker&&zi()===this.activeServiceWorker){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50);case 5:e.next=9;break;case 7:e.prev=7,e.t0=e.catch(2);case 9:case"end":return e.stop()}}),e,this,[[2,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_isAvailable",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,indexedDB){e.next=3;break}return e.abrupt("return",!1);case 3:return e.next=5,Qi();case 5:return t=e.sent,e.next=8,$i(t,Oi,"1");case 8:return e.next=10,Zi(t,Oi);case 10:return e.abrupt("return",!0);case 13:e.prev=13,e.t0=e.catch(0);case 15:return e.abrupt("return",!1);case 16:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(){return e.apply(this,arguments)}}()},{key:"_withPendingWrite",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.pendingWrites++,e.prev=1,e.next=4,t();case 4:return e.prev=4,this.pendingWrites--,e.finish(4);case 7:case"end":return e.stop()}}),e,this,[[1,,4,7]])})));return function(t){return e.apply(this,arguments)}}()},{key:"_set",value:function(){var e=me(pe().mark((function e(t,n){var r=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r._withRetries((function(e){return $i(e,t,n)}));case 2:return r.localCache[t]=n,e.abrupt("return",r.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_get",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){return Xi(e,t)}));case 2:return n=e.sent,this.localCache[t]=n,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_remove",value:function(){var e=me(pe().mark((function e(t){var n=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._withPendingWrite(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n._withRetries((function(e){return Zi(e,t)}));case 2:return delete n.localCache[t],e.abrupt("return",n.notifyServiceWorker(t));case 4:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_poll",value:function(){var e=me(pe().mark((function e(){var t,n,r,i,a,o,s,u,c,l,f;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._withRetries((function(e){var t=Gi(e,!1).getAll();
2return new Wi(t).toPromise()}));case 2:if(t=e.sent){e.next=5;break}return e.abrupt("return",[]);case 5:if(0===this.pendingWrites){e.next=7;break}return e.abrupt("return",[]);case 7:n=[],r=new Set,i=he(t);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.fbase_key,u=o.value,r.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),n.push(s))}catch(d){i.e(d)}finally{i.f()}for(c=0,l=Object.keys(this.localCache);c<l.length;c++)f=l[c],this.localCache[f]&&!r.has(f)&&(this.notifyListeners(f,null),n.push(f));return e.abrupt("return",n);case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"notifyListeners",value:function(e,t){this.localCache[e]=t;var n=this.listeners[e];if(n)for(var r=0,i=Array.from(n);r<i.length;r++){(0,i[r])(t)}}},{key:"startPolling",value:function(){var e=this;this.stopPolling(),this.pollTimer=setInterval(me(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e._poll());case 1:case"end":return t.stop()}}),t)}))),800)}},{key:"stopPolling",value:function(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}},{key:"_addListener",value:function(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)}},{key:"_removeListener",value:function(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()}}]),e}();ea.type="LOCAL";var ta=ea;function na(e,t){return Fn(e,"POST","/v2/accounts/mfaSignIn:start",Mn(e,t))}function ra(e){return new Promise((function(t,n){var r=document.createElement("script");r.setAttribute("src",e),r.onload=t,r.onerror=function(e){var t=gn("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)}))}function ia(e){return"__".concat(e).concat(Math.floor(1e6*Math.random()))}ia("rcb"),new An(3e4,6e4);var aa="recaptcha";function oa(e,t,n){return sa.apply(this,arguments)}function sa(){return sa=me(pe().mark((function e(t,n,r){var i,a,o,s,u,c,l,f,d;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.verify();case 2:if(a=e.sent,e.prev=3,xn("string"===typeof a,t,"argument-error"),xn(r.type===aa,t,"argument-error"),!("session"in(o="string"===typeof n?{phoneNumber:n}:n))){e.next=26;break}if(s=o.session,!("phoneNumber"in o)){e.next=17;break}return xn("enroll"===s.type,t,"internal-error"),e.next=13,Ti(t,{idToken:s.credential,phoneEnrollmentInfo:{phoneNumber:o.phoneNumber,recaptchaToken:a}});case 13:return u=e.sent,e.abrupt("return",u.phoneSessionInfo.sessionInfo);case 17:return xn("signin"===s.type,t,"internal-error"),xn(c=(null===(i=o.multiFactorHint)||void 0===i?void 0:i.uid)||o.multiFactorUid,t,"missing-multi-factor-info"),e.next=22,na(t,{mfaPendingCredential:s.credential,mfaEnrollmentId:c,phoneSignInInfo:{recaptchaToken:a}});case 22:return l=e.sent,e.abrupt("return",l.phoneResponseInfo.sessionInfo);case 24:e.next=31;break;case 26:return e.next=28,Zr(t,{phoneNumber:o.phoneNumber,recaptchaToken:a});case 28:return f=e.sent,d=f.sessionInfo,e.abrupt("return",d);case 31:return e.prev=31,r._reset(),e.finish(31);case 34:case"end":return e.stop()}}),e,null,[[3,,31,34]])}))),sa.apply(this,arguments)}var ua=function(){function e(t){ye(this,e),this.providerId=e.PROVIDER_ID,this.auth=Lr(t)}return we(e,[{key:"verifyPhoneNumber",value:function(e,t){return oa(this.auth,e,Xe(t))}}],[{key:"credential",value:function(e,t){return ai._fromVerification(e,t)}},{key:"credentialFromResult",value:function(t){var n=t;return e.credentialFromTaggedObject(n)}},{key:"credentialFromError",value:function(t){return e.credentialFromTaggedObject(t.customData||{})}},{key:"credentialFromTaggedObject",value:function(e){var t=e._tokenResponse;if(!t)return null;var n=t.phoneNumber,r=t.temporaryProof;return n&&r?ai._fromTokenResponse(n,r):null}}]),e}();function ca(e,t){return t?Tn(t):(xn(e._popupRedirectResolver,e,"argument-error"),e._popupRedirectResolver)}
2ua.PROVIDER_ID="phone",ua.PHONE_SIGN_IN_METHOD="phone";var la=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this,"custom","custom")).params=e,r}return we(n,[{key:"_getIdTokenResponse",value:function(e){return Yr(e,this._buildIdpRequest())}},{key:"_linkToIdToken",value:function(e,t){return Yr(e,this._buildIdpRequest(t))}},{key:"_getReauthenticationResolver",value:function(e){return Yr(e,this._buildIdpRequest())}},{key:"_buildIdpRequest",value:function(e){var 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}}]),n}(Ur);function fa(e){return xi(e.auth,new la(e),e.bypassAuthState)}function da(e){var t=e.auth,n=e.user;return xn(n,t,"internal-error"),wi(n,new la(e),e.bypassAuthState)}function ha(e){return pa.apply(this,arguments)}function pa(){return pa=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.auth,xn(r=t.user,n,"internal-error"),e.abrupt("return",gi(r,new la(t),t.bypassAuthState));case 3:case"end":return e.stop()}}),e)}))),pa.apply(this,arguments)}var va=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];ye(this,e),this.auth=t,this.resolver=r,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}return we(e,[{key:"execute",value:function(){var e=this;return new Promise(function(){var t=me(pe().mark((function t(n,r){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.pendingPromise={resolve:n,reject:r},t.prev=1,t.next=4,e.resolver._initialize(e.auth);case 4:return e.eventManager=t.sent,t.next=7,e.onExecution();case 7:e.eventManager.registerConsumer(e),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(1),e.reject(t.t0);case 13:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e,n){return t.apply(this,arguments)}}())}},{key:"onAuthEvent",value:function(){var e=me(pe().mark((function e(t){var n,r,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.urlResponse,r=t.sessionId,i=t.postBody,a=t.tenantId,o=t.error,s=t.type,!o){e.next=4;break}return this.reject(o),e.abrupt("return");case 4:return u={auth:this.auth,requestUri:n,sessionId:r,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState},e.prev=5,e.t0=this,e.next=9,this.getIdpTask(s)(u);case 9:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=16;break;case 13:e.prev=13,e.t2=e.catch(5),this.reject(e.t2);case 16:case"end":return e.stop()}}),e,this,[[5,13]])})));return function(t){return e.apply(this,arguments)}}()},{key:"onError",value:function(e){this.reject(e)}},{key:"getIdpTask",value:function(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return fa;case"linkViaPopup":case"linkViaRedirect":return ha;case"reauthViaPopup":case"reauthViaRedirect":return da;default:yn(this.auth,"internal-error")}}},{key:"resolve",value:function(e){Sn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}},{key:"reject",value:function(e){Sn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}},{key:"unregisterAndCleanUp",value:function(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}]),e}(),ma=new An(2e3,1e4);function ya(e,t,n){return ga.apply(this,arguments)}function ga(){return ga=me(pe().mark((function e(t,n,r){var i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Lr(t),wn(t,n,ui),a=ca(i,r),o=new ba(i,"signInViaPopup",n,a),e.abrupt("return",o.executeNotNull());case 5:case"end":return e.stop()}}),e)}))),ga.apply(this,arguments)}var ba=function(e){ue(n,e);var t=de(n);function n(e,r,i,a,o){var s;return ye(this,n),(s=t.call(this,e,r,a,o)).provider=i,s.authWindow=null,s.pollId=null,n.currentPopupAction&&n.currentPopupAction.cancel(),n.currentPopupAction=oe(s),s}return we(n,[{key:"executeNotNull",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.execute();case 2:return xn(t=e.sent,this.auth,"internal-error"),e.abrupt("return",t);case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=me(pe().mark((function e(){var t,n=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Sn(1===this.filter.length,"Popup operations only handle one event"),t=Li(),e.next=4,this.resolver._openPopup(this.auth,this.provider,this.filter[0],t);case 4:this.authWindow=e.sent,this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch((function(e){n.reject(e)})),this.resolver._isIframeWebStorageSupported(this.auth,(function(e){e||n.reject(gn(n.auth,"web-storage-unsupported"))})),this.pollUserCancellation();case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"eventId",get:function(){var e;return(null===(e=this.authWindow)||void 0===e?void 0:e.associatedEvent)||null}},{key:"cancel",value:function(){this.reject(gn(this.auth,"cancelled-popup-request"))}},{key:"cleanUp",value:function(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,n.currentPopupAction=null}},{key:"pollUserCancellation",value:function(){var e=this;!function t(){var n,r;(null===(r=null===(n=e.authWindow)||void 0===n?void 0:n.window)||void 0===r?void 0:r.closed)?e.pollId=window.setTimeout((function(){e.pollId=null,e.reject(gn(e.auth,"popup-closed-by-user"))}),2e3):e.pollId=window.setTimeout(t,ma.get())}()}}]),n}(va);ba.currentPopupAction=null;var wa=new Map,ka=function(e){ue(n,e);var t=de(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return ye(this,n),(i=t.call(this,e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],r,void 0,a)).eventId=null,i}return we(n,[{key:"execute",value:function(){var e=me(pe().mark((function e(){var t,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=wa.get(this.auth._key())){e.next=21;break}return e.prev=2,e.next=5,xa(this.resolver,this.auth);case 5:if(!e.sent){e.next=12;break}return e.next=9,ae(re(n.prototype),"execute",this).call(this);case 9:e.t0=e.sent,e.next=13;break;case 12:e.t0=null;case 13:r=e.t0,t=function(){return Promise.resolve(r)},e.next=20;break;case 17:e.prev=17,e.t1=e.catch(2),t=function(){return Promise.reject(e.t1)};case 20:wa.set(this.auth._key(),t);case 21:return this.bypassAuthState||wa.set(this.auth._key(),(function(){return Promise.resolve(null)})),e.abrupt("return",t());case 23:case"end":return e.stop()}}),e,this,[[2,17]])})));return function(){return e.apply(this,arguments)}}()},{key:"onAuthEvent",value:function(){var e=me(pe().mark((function e(t){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("signInViaRedirect"!==t.type){e.next=4;break}return e.abrupt("return",ae(re(n.prototype),"onAuthEvent",this).call(this,t));case 4:if("unknown"!==t.type){e.next=7;break}return this.resolve(null),e.abrupt("return");
2case 7:if(!t.eventId){e.next=17;break}return e.next=10,this.auth._redirectUserForId(t.eventId);case 10:if(!(r=e.sent)){e.next=16;break}return this.user=r,e.abrupt("return",ae(re(n.prototype),"onAuthEvent",this).call(this,t));case 16:this.resolve(null);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onExecution",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"cleanUp",value:function(){}}]),n}(va);function xa(e,t){return _a.apply(this,arguments)}function _a(){return _a=me(pe().mark((function e(t,n){var r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Ta(n),i=Ea(t),e.next=4,i._isAvailable();case 4:if(e.sent){e.next=6;break}return e.abrupt("return",!1);case 6:return e.next=8,i._get(r);case 8:return e.t0=e.sent,a="true"===e.t0,e.next=12,i._remove(r);case 12:return e.abrupt("return",a);case 13:case"end":return e.stop()}}),e)}))),_a.apply(this,arguments)}function Sa(e,t){wa.set(e._key(),t)}function Ea(e){return Tn(e._redirectPersistence)}function Ta(e){return gr("pendingRedirect",e.config.apiKey,e.name)}function Oa(e,t){return ja.apply(this,arguments)}function ja(){return ja=me(pe().mark((function e(t,n){var r,i,a,o,s,u=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=u.length>2&&void 0!==u[2]&&u[2],i=Lr(t),a=ca(i,n),o=new ka(i,a,r),e.next=6,o.execute();case 6:if(!(s=e.sent)||r){e.next=13;break}return delete s.user._redirectEventId,e.next=11,i._persistUserIfCurrent(s.user);case 11:return e.next=13,i._setRedirectUser(null,n);case 13:return e.abrupt("return",s);case 14:case"end":return e.stop()}}),e)}))),ja.apply(this,arguments)}var Ca=function(){function e(t){ye(this,e),this.auth=t,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}return we(e,[{key:"registerConsumer",value:function(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}},{key:"unregisterConsumer",value:function(e){this.consumers.delete(e)}},{key:"onEvent",value:function(e){var t=this;if(this.hasEventBeenHandled(e))return!1;var n=!1;return this.consumers.forEach((function(r){t.isEventForConsumer(e,r)&&(n=!0,t.sendToConsumer(e,r),t.saveEventToCache(e))})),this.hasHandledPotentialRedirect||!function(e){switch(e.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Na(e);default:return!1}}(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}},{key:"sendToConsumer",value:function(e,t){var n;if(e.error&&!Na(e)){var r=(null===(n=e.error.code)||void 0===n?void 0:n.split("auth/")[1])||"internal-error";t.onError(gn(this.auth,r))}else t.onAuthEvent(e)}},{key:"isEventForConsumer",value:function(e,t){var n=null===t.eventId||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}},{key:"hasEventBeenHandled",value:function(e){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Ia(e))}},{key:"saveEventToCache",value:function(e){this.cachedEventUids.add(Ia(e)),this.lastProcessedEventTime=Date.now()}}]),e}();function Ia(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter((function(e){return e})).join("-")}function Na(e){var t=e.type,n=e.error;return"unknown"===t&&(null===n||void 0===n?void 0:n.code)==="auth/".concat("no-auth-event")}function Aa(e){return Pa.apply(this,arguments)}function Pa(){return Pa=me(pe().mark((function e(t){var n,r=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.abrupt("return",Fn(t,"GET","/v1/projects",n));case 2:case"end":return e.stop()}}),e)}))),Pa.apply(this,arguments)}var Ra=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,La=/^https?/;function Da(){return Da=me(pe().mark((function e(t){var n,r,i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.config.emulator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,Aa(t);case 4:n=e.sent,r=n.authorizedDomains,i=he(r),e.prev=7,i.s();case 9:if((a=i.n()).done){e.next=20;break}if(o=a.value,e.prev=11,!Ma(o)){e.next=14;break}return e.abrupt("return");case 14:e.next=18;break;case 16:e.prev=16,e.t0=e.catch(11);case 18:e.next=9;break;case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(7),i.e(e.t1);case 25:return e.prev=25,i.f(),e.finish(25);case 28:yn(t,"unauthorized-domain");case 29:case"end":return e.stop()}}),e,null,[[7,22,25,28],[11,16]])}))),Da.apply(this,arguments)}function Ma(e){var t=jn(),n=new URL(t),r=n.protocol,i=n.hostname;if(e.startsWith("chrome-extension://")){var a=new URL(e);return""===a.hostname&&""===i?"chrome-extension:"===r&&e.replace("chrome-extension://","")===t.replace("chrome-extension://",""):"chrome-extension:"===r&&a.hostname===i}if(!La.test(r))return!1;if(Ra.test(e))return i===e;var o=e.replace(/\./g,"\\.");return new RegExp("^(.+\\."+o+"|"+o+")$","i").test(i)}var Fa=new An(3e4,6e4);function Va(){var e=Mi().___jsl;if(null===e||void 0===e?void 0:e.H)for(var t=0,n=Object.keys(e.H);t<n.length;t++){var r=n[t];if(e.H[r].r=e.H[r].r||[],e.H[r].L=e.H[r].L||[],e.H[r].r=ke(e.H[r].L),e.CP)for(var i=0;i<e.CP.length;i++)e.CP[i]=null}}var Ua=null;function za(e){return Ua=Ua||function(e){return new Promise((function(t,n){var r,i,a;function o(){Va(),gapi.load("gapi.iframes",{callback:function(){t(gapi.iframes.getContext())},ontimeout:function(){Va(),n(gn(e,"network-request-failed"))},timeout:Fa.get()})}if(null===(i=null===(r=Mi().gapi)||void 0===r?void 0:r.iframes)||void 0===i?void 0:i.Iframe)t(gapi.iframes.getContext());else{if(!(null===(a=Mi().gapi)||void 0===a?void 0:a.load)){var s=ia("iframefcb");return Mi()[s]=function(){gapi.load?o():n(gn(e,"network-request-failed"))},ra("https://apis.google.com/js/api.js?onload=".concat(s)).catch((function(e){return n(e)}))}o()}})).catch((function(e){throw Ua=null,e}))}(e),Ua}var Ba=new An(5e3,15e3),qa={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Ha=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Wa(e){var t=e.config;xn(t.authDomain,e,"auth-domain-config-required");var n=t.emulator?Pn(t,"emulator/auth/iframe"):"https://".concat(e.config.authDomain,"/").concat("__/auth/iframe"),r={apiKey:t.apiKey,appName:e.n
2ame,v:Wt},i=Ha.get(e.config.apiHost);i&&(r.eid=i);var a=e._getFrameworks();return a.length&&(r.fw=a.join(",")),"".concat(n,"?").concat(Ge(r).slice(1))}function Ga(e){return Ka.apply(this,arguments)}function Ka(){return Ka=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,za(t);case 2:return n=e.sent,xn(r=Mi().gapi,t,"internal-error"),e.abrupt("return",n.open({where:document.body,url:Wa(t),messageHandlersFilter:r.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:qa,dontclear:!0},(function(e){return new Promise(function(){var n=me(pe().mark((function n(r,i){var a,o,s;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return s=function(){Mi().clearTimeout(o),r(e)},n.next=3,e.restyle({setHideOnLeave:!1});case 3:a=gn(t,"network-request-failed"),o=Mi().setTimeout((function(){i(a)}),Ba.get()),e.ping(s).then(s,(function(){i(a)}));case 6:case"end":return n.stop()}}),n)})));return function(e,t){return n.apply(this,arguments)}}())})));case 6:case"end":return e.stop()}}),e)}))),Ka.apply(this,arguments)}var Qa={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},$a="_blank",Ya="http://localhost",Xa=function(){function e(t){ye(this,e),this.window=t,this.associatedEvent=null}return we(e,[{key:"close",value:function(){if(this.window)try{this.window.close()}catch(e){}}}]),e}();function Ja(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:600,a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),s="",u=Object.assign(Object.assign({},Qa),{width:r.toString(),height:i.toString(),top:a,left:o}),c=Ce().toLowerCase();n&&(s=_r(c)?$a:n),kr(c)&&(t=t||Ya,u.scrollbars="yes");var l=Object.entries(u).reduce((function(e,t){var n=ne(t,2),r=n[0],i=n[1];return"".concat(e).concat(r,"=").concat(i,",")}),"");if(Cr(c)&&"_self"!==s)return Za(t||"",s),new Xa(null);var f=window.open(t||"",s,l);xn(f,e,"popup-blocked");try{f.focus()}catch(d){}return new Xa(f)}function Za(e,t){var n=document.createElement("a");n.href=e,n.target=t;var r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}var eo="__/auth/handler",to="emulator/auth/handler";function no(e,t,n,r,i,a){xn(e.config.authDomain,e,"auth-domain-config-required"),xn(e.config.apiKey,e,"invalid-api-key");var o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:Wt,eventId:i};if(t instanceof ui){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||"",function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(var s=0,u=Object.entries(a||{});s<u.length;s++){var c=ne(u[s],2),l=c[0],f=c[1];o[l]=f}}if(t instanceof ci){var d=t.getScopes().filter((function(e){return""!==e}));d.length>0&&(o.scopes=d.join(","))}e.tenantId&&(o.tid=e.tenantId);for(var h=o,p=0,v=Object.keys(h);p<v.length;p++){var m=v[p];void 0===h[m]&&delete h[m]}return"".concat(function(e){var t=e.config;if(!t.emulator)return"https://".concat(t.authDomain,"/").concat(eo);return Pn(t,to)}(e),"?").concat(Ge(h).slice(1))}var ro="webStorageSupport",io=function(){function e(){ye(this,e),this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Ai,this._completeRedirectFn=Oa,this._overrideRedirectResult=Sa}return we(e,[{key:"_openPopup",value:function(){var e=me(pe().mark((function e(t,n,r,i){var a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Sn(null===(a=this.eventManagers[t._key()])||void 0===a?void 0:a.manager,"_initialize() not called before _openPopup()"),o=no(t,n,r,jn(),i),e.abrupt("return",Ja(t,o,Li()));case 3:case"end":return e.stop()}}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_openRedirect",value:function(){var e=me(pe().mark((function e(t,n,r,i){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._originValidation(t);case 2:return a=no(t,n,r,jn(),i),Mi().location.href=a,e.abrupt("return",new Promise((function(){})));case 4:case"end":return e.stop()}var a}),e,this)})));return function(t,n,r,i){return e.apply(this,arguments)}}()},{key:"_initialize",value:function(e){var t=this,n=e._key();if(this.eventManagers[n]){var r=this.eventManagers[n],i=r.manager,a=r.promise;return i?Promise.resolve(i):(Sn(a,"If manager is not set, promise should be"),a)}var o=this.initAndGetManager(e);return this.eventManagers[n]={promise:o},o.catch((function(){delete t.eventManagers[n]})),o}},{key:"initAndGetManager",value:function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ga(t);case 2:return n=e.sent,r=new Ca(t),n.register("authEvent",(function(e){return xn(null===e||void 0===e?void 0:e.authEvent,t,"invali
2d-auth-event"),{status:r.onEvent(e.authEvent)?"ACK":"ERROR"}}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[t._key()]={manager:r},this.iframes[t._key()]=n,e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_isIframeWebStorageSupported",value:function(e,t){this.iframes[e._key()].send(ro,{type:ro},(function(n){var r,i=null===(r=null===n||void 0===n?void 0:n[0])||void 0===r?void 0:r[ro];void 0!==i&&t(!!i),yn(e,"internal-error")}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}},{key:"_originValidation",value:function(e){var t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=function(e){return Da.apply(this,arguments)}(e)),this.originValidationPromises[t]}},{key:"_shouldInitProactively",get:function(){return Nr()||xr()||jr()}}]),e}(),ao=io,oo=function(){function e(t){ye(this,e),this.factorId=t}return we(e,[{key:"_process",value:function(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 _n("unexpected MultiFactorSessionType")}}}]),e}(),so=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this,"phone")).credential=e,r}return we(n,[{key:"_finalizeEnroll",value:function(e,t,n){return function(e,t){return Fn(e,"POST","/v2/accounts/mfaEnrollment:finalize",Mn(e,t))}(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},{key:"_finalizeSignIn",value:function(e,t){return function(e,t){return Fn(e,"POST","/v2/accounts/mfaSignIn:finalize",Mn(e,t))}(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}],[{key:"_fromCredential",value:function(e){return new n(e)}}]),n}(oo);(function(){function e(){ye(this,e)}return we(e,null,[{key:"assertion",value:function(e){return so._fromCredential(e)}}]),e}()).FACTOR_ID="phone";var uo="@firebase/auth",co="0.21.0",lo=function(){function e(t){ye(this,e),this.auth=t,this.internalListeners=new Map}return we(e,[{key:"getUid",value:function(){var e;return this.assertAuthConfigured(),(null===(e=this.auth.currentUser)||void 0===e?void 0:e.uid)||null}},{key:"getToken",value:function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.assertAuthConfigured(),e.next=3,this.auth._initializationPromise;case 3:if(this.auth.currentUser){e.next=5;break}return e.abrupt("return",null);case 5:return e.next=7,this.auth.currentUser.getIdToken(t);case 7:return n=e.sent,e.abrupt("return",{accessToken:n});case 9:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"addAuthTokenListener",value:function(e){if(this.assertAuthConfigured(),!this.internalListeners.has(e)){var t=this.auth.onIdTokenChanged((function(t){e((null===t||void 0===t?void 0:t.stsTokenManager.accessToken)||null)}));this.internalListeners.set(e,t),this.updateProactiveRefresh()}}},{key:"removeAuthTokenListener",value:function(e){this.assertAuthConfigured();var t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}},{key:"assertAuthConfigured",value:function(){xn(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}},{key:"updateProactiveRefresh",value:function(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}]),e}();var fo,ho=Me("authIdTokenMaxAge")||300,po=null,vo=function(e){return function(){var t=me(pe().mark((function t(n){var r,i,a;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=n,!t.t0){t.next=5;break}return t.next=4,n.getIdTokenResult();case 4:t.t0=t.sent;case 5:if(r=t.t0,!((i=r&&((new Date).getTime()-Date.parse(r.issuedAtTime))/1e3)&&i>ho)){t.next=9;break}return t.abrupt("return");case 9:if(a=null===r||void 0===r?void 0:r.token,po!==a){t.next=12;break}return t.abrupt("return");case 12:return po=a,t.next=15,fetch(e,{method:a?"POST":"DELETE",headers:a?{Authorization:"Bearer ".concat(a)}:{}});case 15:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()};
2function mo(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(t){a(t)}}function s(e){try{u(r.throw(e))}catch(t){a(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}u((r=r.apply(e,t||[])).next())}))}function yo(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(s){a=[6,s],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}fo="Browser",Ut(new Je("auth",(function(e,t){var n=t.options,r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=r.options,o=a.apiKey,s=a.authDomain;return function(e,t){xn(o&&!o.includes(":"),"invalid-api-key",{appName:e.name}),xn(!(null===s||void 0===s?void 0:s.includes(":")),"argument-error",{appName:e.name});var r={apiKey:o,authDomain:s,clientPlatform:fo,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:Ar(fo)},i=new Rr(e,t,r);return function(e,t){var n=(null===t||void 0===t?void 0:t.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Tn);(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)}(i,n),i}(r,i)}),"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((function(e,t,n){e.getProvider("auth-internal").initialize()}))),Ut(new Je("auth-internal",(function(e){return function(e){return new lo(e)}(Lr(e.getProvider("auth").getImmediate()))}),"PRIVATE").setInstantiationMode("EXPLICIT")),Qt(uo,co,function(e){switch(e){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";default:return}}(fo)),Qt(uo,co,"esm2017");var go=function(){return go=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},go.apply(this,arguments)},bo=function(e){return{loading:void 0===e||null===e,value:e}},wo=function(t){var n=t?t():void 0,r=(0,e.useReducer)((function(e,t){switch(t.type){case"error":return go(go({},e),{error:t.error,loading:!1,value:void 0});case"reset":return bo(t.defaultValue);case"value":return go(go({},e),{error:void 0,loading:!1,value:t.value});default:return e}}),bo(n)),i=r[0],a=r[1],o=(0,e.useCallback)((function(){var e=t?t():void 0;a({type:"reset",defaultValue:e})}),[t]),s=(0,e.useCallback)((function(e){a({type:"error",error:e})}),[]),u=(0,e.useCallback)((function(e){a({type:"value",value:e})}),[]);return(0,e.useMemo)((function(){return{error:i.error,loading:i.loading,reset:o,setError:s,setValue:u,value:i.value}}),[i.error,i.loading,o,s,u,i.value])},ko=function(t,n){var r=wo((function(){return t.currentUser})),i=r.error,a=r.loading,o=r.setError,s=r.setValue,u=r.value;return(0,e.useEffect)((function(){var e=function(e,t,n,r){return Xe(e).onAuthStateChanged(t,n,r)}(t,(function(e){return mo(void 0,void 0,void 0,(function(){var t;return yo(this,(function(r){switch(r.label){case 0:if(!(null===n||void 0===n?void 0:n.onUserChanged))return[3,4];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,n.onUserChanged(e)];case 2:return r.sent(),[3,4];case 3:return t=r.sent(),o(t),[3,4];case 4:return s(e),[2]}}))}))}),o);return function(){e()}}),[t]),[u,a,i]},xo=n(757);function _o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var So={data:""},Eo=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||So},To=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Oo=/\/\*[^]*?\*\/|  +/g,jo=/\n+/g,Co=function e(t,n){var r="",i="",a="",o=function(o){var u=t[o];"@"==o[0]?"i"==o[1]?r=o+" "+u+";":i+="f"==o[1]?e(u,o):o+"{"+e(u,"k"==o[1]?"":n)+"}":"object"==typeof u?i+=e(u,n?n.replace(/([^,])+/g,(function(e){return o.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):o):null!=u&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=e.p?e.p(o,u):o+":"+u+";"),s=o};for(var s in t)o(s);return r+(n&&a?n+"{"+a+"}":a)+i},Io={},No=function e(t){if("object"==typeof t){var n="";for(var r in t)n+=r+e(t[r]);return n}return t}
2,Ao=function(e,t,n,r,i){var a=No(e),o=Io[a]||(Io[a]=function(e){for(var t=0,n=11;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n}(a));if(!Io[o]){var s=a!==e?e:function(e){for(var t,n,r=[{}];t=To.exec(e.replace(Oo,""));)t[4]?r.shift():t[3]?(n=t[3].replace(jo," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(jo," ").trim();return r[0]}(e);Io[o]=Co(i?xe({},"@keyframes "+o,s):s,n?"":"."+o)}var u=n&&Io.g?Io.g:null;return n&&(Io.g=Io[o]),function(e,t,n,r){r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(Io[o],t,r,u),o},Po=function(e,t,n){return e.reduce((function(e,r,i){var a=t[i];if(a&&a.call){var o=a(n),s=o&&o.props&&o.props.className||/^go/.test(o)&&o;a=s?"."+s:o&&"object"==typeof o?o.props?"":Co(o,""):!1===o?"":o}return e+r+(null==a?"":a)}),"")};function Ro(e){var t=this||{},n=e.call?e(t.p):e;return Ao(n.unshift?n.raw?Po(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,Eo(t.target),t.g,t.o,t.k)}Ro.bind({g:1});var Lo,Do,Mo,Fo,Vo,Uo,zo,Bo,qo,Ho,Wo,Go,Ko,Qo,$o,Yo,Xo,Jo,Zo,es=Ro.bind({k:1});function ts(e,t){var n=this||{};return function(){var r=arguments;function i(a,o){var s=Object.assign({},a),u=s.className||i.className;n.p=Object.assign({theme:Do&&Do()},s),n.o=/ *go\d+/.test(u),s.className=Ro.apply(n,r)+(u?" "+u:""),t&&(s.ref=o);var c=e;return e[0]&&(c=s.as||e,delete s.as),Mo&&c[0]&&Mo(s),Lo(c,s)}return t?t(i):i}}var ns=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},rs=function(){var e=0;return function(){return(++e).toString()}}(),is=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),as=new Map,os=function(e){if(!as.has(e)){var t=setTimeout((function(){as.delete(e),ls({type:4,toastId:e})}),1e3);as.set(e,t)}},ss=function e(t,n){switch(n.type){case 0:return dt(dt({},t),{},{toasts:[n.toast].concat(ke(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=as.get(e);t&&clearTimeout(t)}(n.toast.id),dt(dt({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?dt(dt({},e),n.toast):e}))});case 2:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:1,toast:r}):e(t,{type:0,toast:r});case 3:var i=n.toastId;return i?os(i):t.toasts.forEach((function(e){os(e.id)})),dt(dt({},t),{},{toasts:t.toasts.map((function(e){return e.id===i||void 0===i?dt(dt({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?dt(dt({},t),{},{toasts:[]}):dt(dt({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return dt(dt({},t),{},{pausedAt:n.time});case 6:var a=n.time-(t.pausedAt||0);return dt(dt({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return dt(dt({},e),{},{pauseDuration:e.pauseDuration+a})}))})}},us=[],cs={toasts:[],pausedAt:void 0},ls=function(e){cs=ss(cs,e),us.forEach((function(e){e(cs)}))},fs={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},ds=function(e){return function(t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return dt(dt({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||rs()})}(t,e,n);return ls({type:2,toast:r}),r.id}},hs=function(e,t){return ds("blank")(e,t)};hs.error=ds("error"),hs.success=ds("success"),hs.loading=ds("loading"),hs.custom=ds("custom"),hs.dismiss=function(e){ls({type:3,toastId:e})},hs.remove=function(e){return ls({type:4,toastId:e})},hs.promise=function(e,t,n){var r=hs.loading(t.loading,dt(dt({},n),null==n?void 0:n.loading));return e.then((function(e){return hs.success(ns(t.success,e),dt(dt({id:r},n),null==n?void 0:n.success)),e})).catch((function(e){hs.error(ns(t.error,e),dt(dt({id:r},n),null==n?void 0:n.error))})),e};var ps=function(e,t){ls({type:1,toast:{id:e,height:t}})},vs=function(){ls({type:5,time:Date.now()})},ms=function(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=ne((0,e.useState)(cs),2),r=n[0],i=n[1];(0,e.useEffect)((function(){return us.push(i),function(){var e=us.indexOf(i);e>-1&&us.splice(e,1)}}),[r]);var a=r.toasts.map((function(e){var n,r;return dt(dt(dt(dt({},t),t[e.type]),e),{},{duration:e.duration||(null==(n=t[e.type])?void 0:n.duration)||(null==t?void 0:t.duration)||fs[e.type],style:dt(dt(dt({},t.style),null==(r=t[e.type])?void 0:r.style),e.style)})}));return dt(dt({},r),{},{toasts:a})}(t),r=n.toasts,i=n.pausedAt;(0,e.useEffect)((function(){if(!i){var e=Date.now(),t=r.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return hs.dismiss(t.id)}),n);t.visible&&hs.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[r,i]);var a=(0,e.useCallback)((function(){i&&ls({type:6,time:Date.now()})}),[i]),o=(0,e.useCallback)((function(e,t){var n,i=t||{},a=i.reverseOrder,o=void 0!==a&&a,s=i.gutter,u=void 0===s?8:s,c=i.defaultPosition,l=r.filter((function(t){return(t.position||c)===(e.position||c)&&t.height})),f=l.findIndex((function(t){return t.id===e.id})),d=l.filter((function(e,t){return t<f&&e.visible})).length;return(n=l.filter((function(e){return e.visible}))).slice.apply(n,ke(o?[d+1]:[0,d])).reduce((function(e,t){return e+(t.height||0)+u}),0)}),[r]);return{toasts:r,handlers:{updateHeight:ps,startPause:vs,endPause:a,calculateOffset:o}}}
2,ys=es(Fo||(Fo=_o(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n transform: scale(1) rotate(45deg);\n  opacity: 1;\n}"]))),gs=es(Vo||(Vo=_o(["\nfrom {\n  transform: scale(0);\n  opacity: 0;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),bs=es(Uo||(Uo=_o(["\nfrom {\n  transform: scale(0) rotate(90deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(90deg);\n\topacity: 1;\n}"]))),ws=ts("div")(zo||(zo=_o(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n\n  &:after,\n  &:before {\n    content: '';\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 150ms;\n    position: absolute;\n    border-radius: 3px;\n    opacity: 0;\n    background: ",";\n    bottom: 9px;\n    left: 4px;\n    height: 2px;\n    width: 12px;\n  }\n\n  &:before {\n    animation: "," 0.15s ease-out forwards;\n    animation-delay: 180ms;\n    transform: rotate(90deg);\n  }\n"])),(function(e){return e.primary||"#ff4b4b"}),ys,gs,(function(e){return e.secondary||"#fff"}),bs),ks=es(Bo||(Bo=_o(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]))),xs=ts("div")(qo||(qo=_o(["\n  width: 12px;\n  height: 12px;\n  box-sizing: border-box;\n  border: 2px solid;\n  border-radius: 100%;\n  border-color: ",";\n  border-right-color: ",";\n  animation: "," 1s linear infinite;\n"])),(function(e){return e.secondary||"#e0e0e0"}),(function(e){return e.primary||"#616161"}),ks),_s=es(Ho||(Ho=_o(["\nfrom {\n  transform: scale(0) rotate(45deg);\n\topacity: 0;\n}\nto {\n  transform: scale(1) rotate(45deg);\n\topacity: 1;\n}"]))),Ss=es(Wo||(Wo=_o(["\n0% {\n\theight: 0;\n\twidth: 0;\n\topacity: 0;\n}\n40% {\n  height: 0;\n\twidth: 6px;\n\topacity: 1;\n}\n100% {\n  opacity: 1;\n  height: 10px;\n}"]))),Es=ts("div")(Go||(Go=_o(["\n  width: 20px;\n  opacity: 0;\n  height: 20px;\n  border-radius: 10px;\n  background: ",";\n  position: relative;\n  transform: rotate(45deg);\n\n  animation: "," 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n  animation-delay: 100ms;\n  &:after {\n    content: '';\n    box-sizing: border-box;\n    animation: "," 0.2s ease-out forwards;\n    opacity: 0;\n    animation-delay: 200ms;\n    position: absolute;\n    border-right: 2px solid;\n    border-bottom: 2px solid;\n    border-color: ",";\n    bottom: 6px;\n    left: 6px;\n    height: 10px;\n    width: 6px;\n  }\n"])),(function(e){return e.primary||"#61d345"}),_s,Ss,(function(e){return e.secondary||"#fff"})),Ts=ts("div")(Ko||(Ko=_o(["\n  position: absolute;\n"]))),Os=ts("div")(Qo||(Qo=_o(["\n  position: relative;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  min-width: 20px;\n  min-height: 20px;\n"]))),js=es($o||($o=_o(["\nfrom {\n  transform: scale(0.6);\n  opacity: 0.4;\n}\nto {\n  transform: scale(1);\n  opacity: 1;\n}"]))),Cs=ts("div")(Yo||(Yo=_o(["\n  position: relative;\n  transform: scale(0.6);\n  opacity: 0.4;\n  min-width: 20px;\n  animation: "," 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)\n    forwards;\n"])),js),Is=function(t){var n=t.toast,r=n.icon,i=n.type,a=n.iconTheme;return void 0!==r?"string"==typeof r?e.createElement(Cs,null,r):r:"blank"===i?null:e.createElement(Os,null,e.createElement(xs,dt({},a)),"loading"!==i&&e.createElement(Ts,null,"error"===i?e.createElement(ws,dt({},a)):e.createElement(Es,dt({},a))))},Ns=function(e){return"\n0% {transform: translate3d(0,".concat(-200*e,"%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n")},As=function(e){return"\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,".concat(-150*e,"%,-1px) scale(.6); opacity:0;}\n")},Ps=ts("div")(Xo||(Xo=_o(["\n  display: flex;\n  align-items: center;\n  background: #fff;\n  color: #363636;\n  line-height: 1.3;\n  will-change: transform;\n  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);\n  max-width: 350px;\n  pointer-events: auto;\n  padding: 8px 10px;\n  border-radius: 8px;\n"]))),Rs=ts("div")(Jo||(Jo=_o(["\n  display: flex;\n  justify-content: center;\n  margin: 4px 10px;\n  color: inherit;\n  flex: 1 1 auto;\n  white-space: pre-line;
2\n"]))),Ls=e.memo((function(t){var n=t.toast,r=t.position,i=t.style,a=t.children,o=n.height?function(e,t){var n=e.includes("top")?1:-1,r=ne(is()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Ns(n),As(n)],2),i=r[0],a=r[1];return{animation:t?"".concat(es(i)," 0.35s cubic-bezier(.21,1.02,.73,1) forwards"):"".concat(es(a)," 0.4s forwards cubic-bezier(.06,.71,.55,1)")}}(n.position||r||"top-center",n.visible):{opacity:0},s=e.createElement(Is,{toast:n}),u=e.createElement(Rs,dt({},n.ariaProps),ns(n.message,n));return e.createElement(Ps,{className:n.className,style:dt(dt(dt({},o),i),n.style)},"function"==typeof a?a({icon:s,message:u}):e.createElement(e.Fragment,null,s,u))}));!function(e,t,n,r){Co.p=t,Lo=e,Do=n,Mo=r}(e.createElement);var Ds,Ms=function(t){var n=t.id,r=t.className,i=t.style,a=t.onHeightUpdate,o=t.children,s=e.useCallback((function(e){if(e){var t=function(){var t=e.getBoundingClientRect().height;a(n,t)};t(),new MutationObserver(t).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[n,a]);return e.createElement("div",{ref:s,className:r,style:i},o)},Fs=Ro(Zo||(Zo=_o(["\n  z-index: 9999;\n  > * {\n    pointer-events: auto;\n  }\n"]))),Vs=function(t){var n=t.reverseOrder,r=t.position,i=void 0===r?"top-center":r,a=t.toastOptions,o=t.gutter,s=t.children,u=t.containerStyle,c=t.containerClassName,l=ms(a),f=l.toasts,d=l.handlers;return e.createElement("div",{style:dt({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},u),className:c,onMouseEnter:d.startPause,onMouseLeave:d.endPause},f.map((function(t){var r=t.position||i,a=function(e,t){var n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return dt(dt({left:0,right:0,display:"flex",position:"absolute",transition:is()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)}(r,d.calculateOffset(t,{reverseOrder:n,gutter:o,defaultPosition:i}));return e.createElement(Ms,{id:t.id,key:t.id,onHeightUpdate:d.updateHeight,className:t.visible?Fs:"",style:a},"custom"===t.type?ns(t.message,t):s?s(t):e.createElement(Ls,{toast:t,position:r}))})))},Us=hs;function zs(){return zs=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},zs.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Ds||(Ds={}));var Bs,qs="popstate";function Hs(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function Ws(e){return{usr:e.state,key:e.key}}function Gs(e,t,n,r){return void 0===n&&(n=null),zs({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?Qs(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function Ks(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,i=void 0===r?"":r,a=e.hash,o=void 0===a?"":a;return i&&"?"!==i&&(n+="?"===i.charAt(0)?i:"?"+i),o&&"#"!==o&&(n+="#"===o.charAt(0)?o:"#"+o),n}function Qs(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function $s(e){var t="undefined"!==typeof window&&"undefined"!==typeof window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,n="string"===typeof e?e:Ks(e);return Hs(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function Ys(e,t,n,r){void 0===r&&(r={});var i=r,a=i.window,o=void 0===a?document.defaultView:a,s=i.v5Compat,u=void 0!==s&&s,c=o.history,l=Ds.Pop,f=null;function d(){l=Ds.Pop,f&&f({action:l,location:h.location})}var h={get action(){return l},get location(){return e(o,c)},listen:function(e){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(qs,d),f=e,function(){o.removeEventListener(qs,d),f=null}},createHref:function(e){return t(o,e)},encodeLocation:function(e){var t=$s("string"===typeof e?e:Ks(e));return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=Ds.Push;var r=Gs(h.location,e,t);n&&n(r,e);var i=Ws(r),a=h.createHref(r);try{c.pushState(i,"",a)}catch(s){o.location.assign(a)}u&&f&&f({action:l,location:h.location})},replace:function(e,t){l=Ds.Replace;var r=Gs(h.location,e,t);n&&n(r,e);var i=Ws(r),a=h.createHref(r);c.replaceState(i,"",a),u&&f&&f({action:l,location:h.location})},go:function(e){return c.go(e)}};return h}function Xs(e,t,n){void 0===n&&(n="/");var r=au(("string"===typeof t?Qs(t):t).pathname||"/",n);if(null==r)return null;var i=Js(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}
2))}(i);for(var a=null,o=0;null==a&&o<i.length;++o)a=nu(i[o],iu(r));return a}function Js(e,t,n,r){return void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=""),e.forEach((function(e,i){var a={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(Hs(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));var o=lu([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(Hs(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),Js(e.children,t,s,o)),(null!=e.path||e.index)&&t.push({path:o,score:tu(o,e.index),routesMeta:s})})),t}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(Bs||(Bs={}));var Zs=/^:\w+$/,eu=function(e){return"*"===e};function tu(e,t){var n=e.split("/"),r=n.length;return n.some(eu)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!eu(e)})).reduce((function(e,t){return e+(Zs.test(t)?3:""===t?1:10)}),r)}function nu(e,t){for(var n=e.routesMeta,r={},i="/",a=[],o=0;o<n.length;++o){var s=n[o],u=o===n.length-1,c="/"===i?t:t.slice(i.length)||"/",l=ru({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},c);if(!l)return null;
2Object.assign(r,l.params);var f=s.route;a.push({params:r,pathname:lu([i,l.pathname]),pathnameBase:fu(lu([i,l.pathnameBase])),route:f}),"/"!==l.pathnameBase&&(i=lu([i,l.pathnameBase]))}return a}function ru(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);ou("*"===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(/\*$/,"/*")+'".');var r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(function(e,t){return r.push(t),"([^\\/]+)"}));e.endsWith("*")?(r.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");var a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),r=ne(n,2),i=r[0],a=r[1],o=t.match(i);if(!o)return null;var s=o[0],u=s.replace(/(.)\/+$/,"$1"),c=o.slice(1),l=a.reduce((function(e,t,n){if("*"===t){var r=c[n]||"";u=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return ou(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:l,pathname:s,pathnameBase:u,pattern:e}}function iu(e){try{return decodeURI(e)}catch(t){return ou(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function au(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function ou(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function su(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 uu(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function cu(e,t,n,r){var i;void 0===r&&(r=!1),"string"===typeof e?i=Qs(e):(Hs(!(i=zs({},e)).pathname||!i.pathname.includes("?"),su("?","pathname","search",i)),Hs(!i.pathname||!i.pathname.includes("#"),su("#","pathname","hash",i)),Hs(!i.search||!i.search.includes("#"),su("#","search","hash",i)));var a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(r||null==s)a=n;else{var u=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),u-=1;i.pathname=c.join("/")}a=u>=0?t[u]:"/"}var l=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?Qs(e):e,r=n.pathname,i=n.search,a=void 0===i?"":i,o=n.hash,s=void 0===o?"":o,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:du(a),hash:hu(s)}}(i,a),f=s&&"/"!==s&&s.endsWith("/"),d=(o||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!f&&!d||(l.pathname+="/"),l}var lu=function(e){return e.join("/").replace(/\/\/+/g,"/")},fu=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},du=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},hu=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},pu=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n)}(Se(Error));var vu=we((function e(t,n,r,i){ye(this,e),void 0===i&&(i=!1),this.status=t,this.statusText=n||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function mu(e){return e instanceof vu}var yu=["post","put","patch","delete"],gu=(new Set(yu),["get"].concat(yu));new Set(gu),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;function bu(){return bu=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},bu.apply(this,arguments)}var wu="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},ku=e.useState,xu=e.useEffect,_u=e.useLayoutEffect,Su=e.useDebugValue;function Eu(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!wu(n,r)}catch(i){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,t.useSyncExternalStore;var Tu=e.createContext(null);var Ou=e.createContext(null);var ju=e.createContext(null);var Cu=e.createContext(null);var Iu=e.createContext(null);var Nu=e.createContext(null);var Au=e.createContext({outlet:null,matches:[]});var Pu=e.createContext(null);function Ru(){return null!=e.useContext(Nu)}function Lu(){return Ru()||Hs(!1),e.useContext(Nu).location}function Du(){Ru()||Hs(!1);var t=e.useContext(Iu),n=t.basename,r=t.navigator,i=e.useContext(Au).matches,a=Lu().pathname,o=JSON.stringify(uu(i).map((function(e){return e.pathnameBase}))),s=e.useRef(!1);e.useEffect((function(){s.current=!0}));var u=e.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!==typeof e){var i=cu(e,JSON.parse(o),a,"path"===t.relative);"/"!==n&&(i.pathname="/"===i.pathname?n:lu([n,i.pathname])),(t.replace?r.replace:r.push)(i,t.state,t)}else r.go(e)}),[n,r,o,a]);return u}var Mu=e.createContext(null);function Fu(){var t=e.useContext(Au).matches,n=t[t.length-1];return n?n.params:{}}function Vu(t,n){var r=(void 0===n?{}:n).relative,i=e.useContext(Au).matches,a=Lu().pathname,o=JSON.stringify(uu(i).map((function(e){return e.pathnameBase})));return e.useMemo((function(){return cu(t,JSON.parse(o),a,"path"===r)}),[t,o,a,r])}function Uu(){var t=function(){var t,n=e.useContext(Pu),r=Gu(Bu.UseRouteError),i=e.useContext(Au),a=i.matches[i.matches.length-1];if(n)return n;return i||Hs(!1),!a.route.id&&Hs(!1),null==(t=r.errors)?void 0:t[a.route.id]}(),n=mu(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unhandled Thrown Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:a},r):null,e.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",e.createElement("code",{style:o},"errorElement")," props on\xa0",e.createElement("code",{style:o},"<Route>")))}var zu,Bu,qu=function(t){ue(r,t);var n=de(r);function r(e){var t;return ye(this,r),(t=n.call(this,e)).state={location:e.location,error:e.error},t}
2return we(r,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?e.createElement(Pu.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),r}(e.Component);function Hu(t){var n=t.routeContext,r=t.match,i=t.children,a=e.useContext(Tu);return a&&r.route.errorElement&&(a._deepestRenderedBoundaryId=r.route.id),e.createElement(Au.Provider,{value:n},i)}function Wu(t,n,r){if(void 0===n&&(n=[]),null==t){if(null==r||!r.errors)return null;t=r.matches}var i=t,a=null==r?void 0:r.errors;if(null!=a){var o=i.findIndex((function(e){return e.route.id&&(null==a?void 0:a[e.route.id])}));o>=0||Hs(!1),i=i.slice(0,Math.min(i.length,o+1))}return i.reduceRight((function(t,o,s){var u=o.route.id?null==a?void 0:a[o.route.id]:null,c=r?o.route.errorElement||e.createElement(Uu,null):null,l=function(){return e.createElement(Hu,{match:o,routeC
2ontext:{outlet:t,matches:n.concat(i.slice(0,s+1))}},u?c:void 0!==o.route.element?o.route.element:t)};return r&&(o.route.errorElement||0===s)?e.createElement(qu,{location:r.location,component:c,error:u,children:l()}):l()}),null)}function Gu(t){var n=e.useContext(ju);return n||Hs(!1),n}!function(e){e.UseRevalidator="useRevalidator"}(zu||(zu={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(Bu||(Bu={}));var Ku;function Qu(t){return function(t){var n=e.useContext(Au).outlet;return n?e.createElement(Mu.Provider,{value:t},n):n}(t.context)}function $u(e){Hs(!1)}function Yu(t){var n=t.basename,r=void 0===n?"/":n,i=t.children,a=void 0===i?null:i,o=t.location,s=t.navigationType,u=void 0===s?Ds.Pop:s,c=t.navigator,l=t.static,f=void 0!==l&&l;Ru()&&Hs(!1);var d=r.replace(/^\/*/,"/"),h=e.useMemo((function(){return{basename:d,navigator:c,static:f}}),[d,c,f]);"string"===typeof o&&(o=Qs(o));var p=o,v=p.pathname,m=void 0===v?"/":v,y=p.search,g=void 0===y?"":y,b=p.hash,w=void 0===b?"":b,k=p.state,x=void 0===k?null:k,_=p.key,S=void 0===_?"default":_,E=e.useMemo((function(){var e=au(m,d);return null==e?null:{pathname:e,search:g,hash:w,state:x,key:S}}),[d,m,g,w,x,S]);return null==E?null:e.createElement(Iu.Provider,{value:h},e.createElement(Nu.Provider,{children:a,value:{location:E,navigationType:u}}))}function Xu(t){var n=t.children,r=t.location,i=e.useContext(Ou);return function(t,n){Ru()||Hs(!1);var r,i=e.useContext(Iu).navigator,a=e.useContext(ju),o=e.useContext(Au).matches,s=o[o.length-1],u=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/"),l=(s&&s.route,Lu());if(n){var f,d="string"===typeof n?Qs(n):n;"/"===c||(null==(f=d.pathname)?void 0:f.startsWith(c))||Hs(!1),r=d}else r=l;var h=r.pathname||"/",p=Xs(t,{pathname:"/"===c?h:h.slice(c.length)||"/"}),v=Wu(p&&p.map((function(e){return Object.assign({},e,{params:Object.assign({},u,e.params),pathname:lu([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:lu([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),o,a||void 0);return n&&v?e.createElement(Nu.Provider,{value:{location:bu({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:Ds.Pop}},v):v}(i&&!n?i.router.routes:Zu(n),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(Ku||(Ku={}));var Ju=new Promise((function(){}));e.Component;function Zu(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,i){if(e.isValidElement(t))if(t.type!==e.Fragment){t.type!==$u&&Hs(!1),t.props.index&&t.props.children&&Hs(!1);var a=[].concat(ke(n),[i]),o={id:t.props.id||a.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,hasErrorBoundary:null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle};t.props.children&&(o.children=Zu(t.props.children,a)),r.push(o)}else r.push.apply(r,Zu(t.props.children,n))})),r}function ec(){return ec=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},ec.apply(this,arguments)}function tc(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}function nc(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}var rc=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"];function ic(t){var n=t.basename,r=t.children,i=t.window,a=e.useRef();null==a.current&&(a.current=function(e){return void 0===e&&(e={}),Ys((function(e,t){var n=e.location;return Gs("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:Ks(t)}),null,e)}({window:i,v5Compat:!0}));var o=a.current,s=ne(e.useState({action:o.action,location:o.location}),2),u=s[0],c=s[1];return e.useLayoutEffect((function(){return o.listen(c)}),[o]),e.createElement(Yu,{basename:n,children:r,location:u.location,navigationType:u.action,navigator:o})}var ac=e.forwardRef((function(t,n){var r=t.onClick,i=t.relative,a=t.reloadDocument,o=t.replace,s=t.state,u=t.target,c=t.to,l=t.preventScrollReset,f=tc(t,rc),d=function(t,n){var r=(void 0===n?{}:n).relative;Ru()||Hs(!1);var i=e.useContext(Iu),a=i.basename,o=i.navigator,s=Vu(t,{relative:r}),u=s.hash,c=s.pathname,l=s.search,f=c;return"/"!==a&&(f="/"===c?a:lu([a,c])),o.createHref({pathname:f,search:l,hash:u})}(c,{relative:i}),h=function(t,n){var r=void 0===n?{}:n,i=r.target,a=r.replace,o=r.state,s=r.preventScrollReset,u=r.relative,c=Du(),l=Lu(),f=Vu(t,{relative:u});return e.useCallback((function(e){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(e,i)){e.preventDefault();var n=void 0!==a?a:Ks(l)===Ks(f);c(t,{replace:n,state:o,preventScrollReset:s,relative:u})}}),[l,c,f,a,o,i,t,s,u])}(c,{replace:o,state:s,target:u,preventScrollReset:l,relative:i});return e.createElement("a",ec({},f,{href:d,onClick:a?r:function(e){r&&r(e),e.defaultPrevented||h(e)},ref:n,target:u}))}));var oc,sc;function uc(t){var n=e.useRef(nc(t)),r=Lu(),i=e.useMemo((function(){return function(e,t){var n,r=nc(e),i=he(t.keys());try{var a=function(){var e=n.value;r.has(e)||t.getAll(e).forEach((function(t){r.append(e,t)}))};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return r}(r.search,n.current)}),[r.search]),a=Du(),o=e.useCallback((function(e,t){var n=nc("function"===typeof e?e(i):e);a("?"+n,t)}),[a,i]);return[i,o]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(oc||(oc={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(sc||(sc={}));var cc=n(184),lc=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("footer",{className:"w-full bg-dark text-center",children:(0,cc.jsxs)("p",{className:"text-gray-400 text-base text-center py-3 px-2 md:py-4",children:["Foodie VVN - A Product by"," ",(0,cc.jsx)("a",{href:"https://www.gigaweb.in?utm_campaign=product&utm_medium=website&utm_source=foodievvn",target:"_blank",rel:"noreferrer",className:"text-gray-300 font-medium hover:text-white duration-150",children:"Gigaweb"})]})})})},fc={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},dc=e.createContext&&e.createContext(fc),hc=function(){return hc=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},hc.apply(this,arguments)},pc=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function vc(t){return t&&t.map((function(t,n){return e.createElement(t.tag,hc({key:n},t.attr),vc(t.child))}))}function mc(t){return function(n){return e.createElement(yc,hc({attr:hc({},t.attr)},n),vc(t.child))}}function yc(t){var n=function(n){var r,i=t.attr,a=t.size,o=t.title,s=pc(t,["attr","size","title"]),u=a||n.size||"1em";return n.className&&(r=n.className),t.className&&(r=(r?r+" ":"")+t.className),e.createElement("svg",hc({stroke:"currentColor",fill:"
2currentColor",strokeWidth:"0"},n.attr,i,s,{className:r,style:hc(hc({color:t.color||n.color},n.style),t.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),o&&e.createElement("title",null,o),t.children)};return void 0!==dc?e.createElement(dc.Consumer,null,(function(e){return n(e)})):n(fc)}function gc(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polyline",attr:{points:"8 17 12 21 16 17"}},{tag:"line",attr:{x1:"12",y1:"12",x2:"12",y2:"21"}},{tag:"path",attr:{d:"M20.88 18.09A5 5 0 0 0 18 9h-1.26A8 8 0 1 0 3 16.29"}}]})(e)}function bc(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15.05 5A5 5 0 0 1 19 8.95M15.05 1A9 9 0 0 1 23 8.94m-1 7.98v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"}}]})(e)}function wc(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"circle",attr:{cx:"11",cy:"11",r:"8"}},{tag:"line",attr:{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}}]})(e)}function kc(e){return mc({tag:"svg",attr:{version:"1.1",x:"0px",y:"0px",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"path",attr:{fill:"#FFC107",d:"M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12\r\n\tc0-6.627,5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24\r\n\tc0,11.045,8.955,20,20,20c11.045,0,20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"}},{tag:"path",attr:{fill:"#FF3D00",d:"M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657\r\n\tC34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"}},{tag:"path",attr:{fill:"#4CAF50",d:"M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36\r\n\tc-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"}},{tag:"path",attr:{fill:"#1976D2",d:"M43.611,20.083H42V20H24v8h11.303c-0.792,2.237-2.231,4.166-4.087,5.571\r\n\tc0.001-0.001,0.002-0.001,0.003-0.002l6.19,5.238C36.971,39.205,44,34,44,24C44,22.659,43.862,21.35,43.611,20.083z"}}]})(e)}Qt("firebase","9.15.0","app");var xc,_c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{},Sc={},Ec=Ec||{},Tc=_c||self;function Oc(){}function jc(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 Cc(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var Ic="closure_uid_"+(1e9*Math.random()>>>0),Nc=0;function Ac(e,t,n){return e.call.apply(e.bind,arguments)}function Pc(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function Rc(e,t,n){return(Rc=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?Ac:Pc).apply(null,arguments)}function Lc(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 Dc(e,t){function n(){}n.prototype=t.prototype,e.X=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Wb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function Mc(){this.s=this.s,this.o=this.o}Mc.prototype.s=!1,Mc.prototype.na=function(){!this.s&&(this.s=!0,this.M(),0)&&function(e){Object.prototype.hasOwnProperty.call(e,Ic)&&e[Ic]||(e[Ic]=++Nc)}(this)},Mc.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var Fc=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if("string"===typeof e)return"string"!==typeof t||1!=t.length?-1:e.indexOf(t,0);for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1};function Vc(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function Uc(e,t){for(var n=1;n<arguments.length;n++){var r=arguments[n];if(jc(r)){var i=e.length||0,a=r.length||0;e.length=i+a;for(var o=0;o<a;o++)e[i+o]=r[o]}else e.push(r)}}function zc(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}zc.prototype.h=function(){this.defaultPrevented=!0};var Bc=function(){if(!Tc.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{Tc.addEventListener("test",Oc,t),Tc.removeEventListener("test",Oc,t)}catch(h){}return e}();function qc(e){return/^[\s\xa0]*$/.test(e)}var Hc=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function Wc(e,t){return e<t?-1:e>t?1:0}function Gc(){var e=Tc.navigator;return e&&(e=e.userAgent)?e:""}function Kc(e){return-1!=Gc().indexOf(e)}function Qc(e){return Qc[" "](e),e}Qc[" "]=Oc;var $c,Yc=Kc("Opera"),Xc=Kc("Trident")||Kc("MSIE"),Jc=Kc("Edge"),Zc=Jc||Xc,el=Kc("Gecko")&&!(-1!=Gc().toLowerCase().indexOf("webkit")&&!Kc("Edge"))&&!(Kc("Trident")||Kc("MSIE"))&&!Kc("Edge"),tl=-1!=Gc().toLowerCase().indexOf("webkit")&&!Kc("Edge");function nl(){var e=Tc.document;return e?e.documentMode:void 0}e:{var rl="",il=function(){var e=Gc();return el?/rv:([^\);]+)(\)|;)/.exec(e):Jc?/Edge\/([\d\.]+)/.exec(e):Xc?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(e):tl?/WebKit\/(\S+)/.exec(e):Yc?/(?:Version)[ \/]?(\S+)/.exec(e):void 0}();if(il&&(rl=il?il[1]:""),Xc){var al=nl();if(null!=al&&al>parseFloat(rl)){$c=String(al);break e}}$c=rl}var ol,sl={};function ul(){return function(e){var t=sl;return Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=e(9)}((function(){for(var e=0,t=Hc(String($c)).split("."),n=Hc("9").split("."),r=Math.max(t.length,n.length),i=0;0==e&&i<r;i++){var a=t[i]||"",o=n[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==a[0].length&&0==o[0].length)break;e=Wc(0==a[1].length?0:parseInt(a[1],10),0==o[1].length?0:parseInt(o[1],10))||Wc(0==a[2].length,0==o[2].length)||Wc(a[2],o[2]),a=a[3],o=o[3]}while(0==e)}return 0<=e}))}if(Tc.document&&Xc){var cl=nl();ol=cl||(parseInt($c,10)||void 0)}else ol=void 0;var ll=ol;function fl(e,t){if(zc.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(el){e:{try{Qc(t.nodeName);var i=!0;break e}catch(y){}i=!1}i||(t=null)}}
vendor: 12,573 bytes, line 2
2else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType="string"===typeof e.pointerType?e.pointerType:dl[e.pointerType]||"",this.state=e.state,this.i=e,e.defaultPrevented&&fl.X.h.call(this)}}Dc(fl,zc);var dl={2:"touch",3:"pen",4:"mouse"};fl.prototype.h=function(){fl.X.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var hl="closure_listenable_"+(1e6*Math.random()|0),pl=0;function vl(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=++pl,this.ba=this.ea=!1}function ml(e){e.ba=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function yl(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function gl(e){var t={};for(var n in e)t[n]=e[n];return t}var bl="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function wl(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var a=0;a<bl.length;a++)n=bl[a],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function kl(e){this.src=e,this.g={},this.h=0}function xl(e,t){var n=t.type;if(n in e.g){var r,i=e.g[n],a=Fc(i,t);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(ml(t),0==e.g[n].length&&(delete e.g[n],e.h--))}}function _l(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.ba&&a.listener==t&&a.capture==!!n&&a.ha==r)return i}return-1}kl.prototype.add=function(e,t,n,r,i){var a=e.toString();(e=this.g[a])||(e=this.g[a]=[],this.h++);var o=_l(e,t,r,i);return-1<o?(t=e[o],n||(t.ea=!1)):((t=new vl(t,this.src,a,!!r,i)).ea=n,e.push(t)),t};var Sl="closure_lm_"+(1e6*Math.random()|0),El={};function Tl(e,t,n,r,i){if(r&&r.once)return jl(e,t,n,r,i);if(Array.isArray(t)){for(var a=0;a<t.length;a++)Tl(e,t[a],n,r,i);return null}return n=Ll(n),e&&e[hl]?e.N(t,n,Cc(r)?!!r.capture:!!r,i):Ol(e,t,n,!1,r,i)}function Ol(e,t,n,r,i,a){if(!t)throw Error("Invalid event type");var o=Cc(i)?!!i.capture:!!i,s=Pl(e);if(s||(e[Sl]=s=new kl(e)),(n=s.add(t,n,r,o,a)).proxy)return n;if(r=function(){function e(n){return t.call(e.src,e.listener,n)}var t=Al;return e}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)Bc||(i=o),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(Nl(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return n}function jl(e,t,n,r,i){if(Array.isArray(t)){for(var a=0;a<t.length;a++)jl(e,t[a],n,r,i);return null}return n=Ll(n),e&&e[hl]?e.O(t,n,Cc(r)?!!r.capture:!!r,i):Ol(e,t,n,!0,r,i)}function Cl(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)Cl(e,t[a],n,r,i);else r=Cc(r)?!!r.capture:!!r,n=Ll(n),e&&e[hl]?(e=e.i,(t=String(t).toString())in e.g&&(-1<(n=_l(a=e.g[t],n,r,i))&&(ml(a[n]),Array.prototype.splice.call(a,n,1),0==a.length&&(delete e.g[t],e.h--)))):e&&(e=Pl(e))&&(t=e.g[t.toString()],e=-1,t&&(e=_l(t,n,r,i)),(n=-1<e?t[e]:null)&&Il(n))}function Il(e){if("number"!==typeof e&&e&&!e.ba){var t=e.src;if(t&&t[hl])xl(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(Nl(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=Pl(t))?(xl(n,e),0==n.h&&(n.src=null,t[Sl]=null)):ml(e)}}}function Nl(e){return e in El?El[e]:El[e]="on"+e}function Al(e,t){if(e.ba)e=!0;else{t=new fl(t,this);var n=e.listener,r=e.ha||e.src;e.ea&&Il(e),e=n.call(r,t)}return e}function Pl(e){return(e=e[Sl])instanceof kl?e:null}var Rl="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ll(e){return"function"===typeof e?e:(e[Rl]||(e[Rl]=function(t){return e.handleEvent(t)}),e[Rl])}function Dl(){Mc.call(this),this.i=new kl(this),this.P=this,this.I=null}function Ml(e,t){var n,r=e.I;if(r)for(n=[];r;r=r.I)n.push(r);if(e=e.P,r=t.type||t,"string"===typeof t)t=new zc(t,e);else if(t instanceof zc)t.target=t.target||e;else{var i=t;wl(t=new zc(r,e),i)}if(i=!0,n)for(var a=n.length-1;0<=a;a--){var o=t.g=n[a];i=Fl(o,r,!0,t)&&i}if(i=Fl(o=t.g=e,r,!0,t)&&i,i=Fl(o,r,!1,t)&&i,n)for(a=0;a<n.length;a++)i=Fl(o=t.g=n[a],r,!1,t)&&i}function Fl(e,t,n,r){if(!(t=e.i.g[String(t)]))return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.ba&&o.capture==n){var s=o.listener,u=o.ha||o.src;o.ea&&xl(e.i,o),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}Dc(Dl,Mc),Dl.prototype[hl]=!0,Dl.prototype.removeEventListener=function(e,t,n,r){Cl(this,e,t,n,r)},Dl.prototype.M=function(){if(Dl.X.M.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++)ml(n[r]);delete t.g[e],t.h--}}this.I=null},Dl.prototype.N=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},Dl.prototype.O=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};var Vl=Tc.JSON.stringify;function Ul(){var e=Ql,t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}var zl,Bl=function(){function e(){ye(this,e),this.h=this.g=null}return we(e,[{key:"add",value:function(e,t){var n=ql.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}]),e}(),ql=new(function(){function e(t,n){ye(this,e),this.i=t,this.j=n,this.h=0,this.g=null}return we(e,[{key:"get",value:function(){var e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}]),e}())((function(){return new Hl}),(function(e){return e.reset()})),Hl=function(){function e(){ye(this,e),this.next=this.g=this.h=null}return we(e,[{key:"set",value:function(e,t){this.h=e,this.g=t,this.next=null}},{key:"reset",value:function(){this.next=this.g=this.h=null}}]),e}();function Wl(e){Tc.setTimeout((function(){throw e}),0)}function Gl(e,t){zl||function(){var e=Tc.Promise.resolve(void 0);zl=function(){e.then($l)}}(),Kl||(zl(),Kl=!0),Ql.add(e,t)}var Kl=!1,Ql=new Bl;function $l(){for(var e;e=Ul();){try{e.h.call(e.g)}catch(h){Wl(h)}var t=ql;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}Kl=!1}function Yl(e,t){Dl.call(this),this.h=e||1,this.g=t||Tc,this.j=Rc(this.lb,this),this.l=Date.now()}function Xl(e){e.ca=!1,e.R&&(e.g.clearTimeout(e.R),e.R=null)}function Jl(e,t,n){if("function"===typeof e)n&&(e=Rc(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=Rc(e.handleEvent,e)}return 2147483647<Number(t)?-1:Tc.setTimeout(e,t||0)}function Zl(e){e.g=Jl((function(){e.g=null,e.i&&(e.i=!1,Zl(e))}),e.j);var t=e.h;e.h=null,e.m.apply(null,t)}Dc(Yl,Dl),(xc=Yl.prototype).ca=!1,xc.R=null,xc.lb=function(){if(this.ca){var e=Date.now()-this.l;0<e&&e<.8*this.h?this.R=this.g.setTimeout(this.j,this.h-e):(this.R&&(this.g.clearTimeout(this.R),this.R=null),Ml(this,"tick"),this.ca&&(Xl(this),this.start()))}},xc.start=function(){this.ca=!0,this.R||(this.R=this.g.setTimeout(this.j,this.h),this.l=Date.now())},xc.M=function(){Yl.X.M.call(this),Xl(this),delete this.g};var ef=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).m=e,i.j=r,i.h=null,i.i=!1,i.g=null,i}return we(n,[{key:"l",value:function(e){this.h=arguments,this.g?this.i=!0:Zl(this)}},{key:"M",value:function(){ae(re(n.prototype),"M",this).call(this),this.g&&(Tc.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}]),n}(Mc);function tf(e){Mc.call(this),this.h=e,this.g={}}Dc(tf,Mc);var nf=[];function rf(e,t,n,r){Array.isArray(n)||(n&&(nf[0]=n.toString()),n=nf);for(var i=0;i<n.length;i++){var a=Tl(t,n[i],r||e.handleEvent,!1,e.h||e);if(!a)break;e.g[a.key]=a}}function af(e){yl(e.g,(function(e,t){this.g.hasOwnProperty(t)&&Il(e)}),e),e.g={}}function of(){this.g=!0}function sf(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 a=i[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var o=1;o<i.length;o++)i[o]=""}}}return Vl(n)}catch(jo){return t}}(e,n)+(r?" "+r:"")}))}tf.prototype.M=function(){tf.X.M.call(this),af(this)},tf.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},of.prototype.Aa=function(){this.g=!1},of.prototype.info=function(){};var uf={},cf=null;function lf(){return cf=cf||new Dl}function ff(e){zc.call(this,uf.Pa,e)}function df(e){var t=lf();Ml(t,new ff(t))}function hf(e,t){zc.call(this,uf.STAT_EVENT,e),this.stat=t}function pf(e){var t=lf();Ml(t,new hf(t,e))}function vf(e,t){zc.call(this,uf.Qa,e),this.size=t}function mf(e,t){if("function"!==typeof e)throw Error("Fn must not be null and must be a function");return Tc.setTimeout((function(){e()}),t)}uf.Pa="serverreachability",Dc(ff,zc),uf.STAT_EVENT="statevent",Dc(hf,zc),uf.Qa="timingevent",Dc(vf,zc);var yf={NO_ERROR:0,mb:1,zb:2,yb:3,tb:4,xb:5,Ab:6,Ma:7,TIMEOUT:8,Db:9},gf={rb:"complete",Nb:"success",Na:"error",Ma:"abort",Fb:"ready",Gb:"readystatechange",TIMEOUT:"timeout",Bb:"incrementaldata",Eb:"progress",ub:"downloadprogress",Vb:"uploadprogress"};function bf(){}function wf(e){return e.h||(e.h=e.i())}function kf(){}bf.prototype.h=null;var xf,_f={OPEN:"a",qb:"b",Na:"c",Cb:"d"};function Sf(){zc.call(this,"d")}function Ef(){zc.call(this,"c")}function Tf(){}function Of(e,t,n,r){this.l=e,this.j=t,this.m=n,this.U=r||1,this.S=new tf(this),this.O=Cf,e=Zc?125:void 0,this.T=new Yl(e),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.V=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.Y=-1,this.I=!1,this.N=0,this.L=null,this.$=this.J=this.Z=this.P=!1,this.h=new jf}function jf(){this.i=null,this.g="",this.h=!1}Dc(Sf,zc),Dc(Ef,zc),Dc(Tf,bf),Tf.prototype.g=function(){return new XMLHttpRequest},Tf.prototype.i=function(){return{}},xf=new Tf;var Cf=45e3,If={},Nf={};function Af(e,t,n){e.K=1,e.v=Xf(Gf(t)),e.s=n,e.P=!0,Pf(e,null)}function Pf(e,t){e.F=Date.now(),Mf(e),e.A=Gf(e.v);var n=e.A,r=e.U;Array.isArray(r)||(r=[String(r)]),ld(n.i,"t",r),e.C=0,n=e.l.H,e.h=new jf,e.g=lh(e.l,n?t:null,!e.s),0<e.N&&(e.L=new ef(Rc(e.La,e,e.g),e.N)),rf(e.S,e.g,"readystatechange",e.ib),t=e.H?gl(e.H):{},e.s?(e.u||(e.u="POST"),t["Content-Type"]="application/x-www-form-urlencoded",e.g.da(e.A,e.u,e.s,t)):(e.u="GET",e.g.da(e.A,e.u,null,t)),df(),function(e,t,n,r,i,a){e.info((function(){if(e.g)if(a)for(var o="",s=a.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");o=2<=f.length&&"type"==f[1]?o+(l+"=")+c+"&":o+(l+"=redacted&")}}else o=null;else o=a;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+o}))}(e.j,e.u,e.A,e.m,e.U,e.s)}function Rf(e){return!!e.g&&("GET"==e.u&&2!=e.K&&e.l.Da)}function Lf(e,t,n){for(var r,i=!0;!e.I&&e.C<n.length;){if((r=Df(e,n))==Nf){4==t&&(e.o=4,pf(14),i=!1),sf(e.j,e.m,null,"[Incomplete Response]");break}if(r==If){e.o=4,pf(15),sf(e.j,e.m,n,"[Invalid Chunk]"),i=!1;break}sf(e.j,e.m,r,null),Bf(e,r)}Rf(e)&&r!=Nf&&r!=If&&(e.h.g="",e.C=0),4!=t||0!=n.length||e.h.h||(e.o=1,pf(16),i=!1),e.i=e.i&&i,i?0<n.length&&!e.$&&(e.$=!0,(t=e.l).g==e&&t.$&&!t.K&&(t.j.info("Great, no buffering proxy detected. Bytes received: "+n.length),nh(t),t.K=!0,pf(11))):(sf(e.j,e.m,n,"[Invalid Chunked Response]"),zf(e),Uf(e))}function Df(e,t){var n=e.C,r=t.indexOf("\n",n);return-1==r?Nf:(n=Number(t.substring(n,r)),isNaN(n)?If:(r+=1)+n>t.length?Nf:(t=t.substr(r,n),e.C=r+n,t))}function Mf(e){e.V=Date.now()+e.O,Ff(e,e.O)}function Ff(e,t){if(null!=e.B)throw Error("WatchDog timer not null");e.B=mf(Rc(e.gb,e),t)}function Vf(e){e.B&&(Tc.clearTimeout(e.B),e.B=null)}function Uf(e){0==e.l.G||e.I||ah(e.l,e)}function zf(e){Vf(e);var t=e.L;t&&"function"==typeof t.na&&t.na(),e.L=null,Xl(e.T),af(e.S),e.g&&(t=e.g,e.g=null,t.abort(),t.na())}function Bf(e,t){try{var n=e.l;if(0!=n.G&&(n.g==e||yd(n.h,e)))if(!e.J&&yd(n.h,e)&&3==n.G){try{var r=n.Fa.g.parse(t)}catch(a){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;ih(n),Qd(n)}th(n),pf(18)}}else n.Ba=i[1],0<n.Ba-n.T&&37500>i[2]&&n.L&&0==n.A&&!n.v&&(n.v=mf(Rc(n.cb,n),6e3));if(1>=md(n.h)&&n.ja){try{n.ja()}catch(a){}n.ja=void 0}}else sh(n,11)}else if((e.J||n.g==e)&&ih(n),!qc(t))for(i=n.Fa.g.parse(t),t=0;t<i.length;t++){var a=i[t];if(n.T=a[0],a=a[1],2==n.G)if("c"==a[0]){n.I=a[1],n.ka=a[2];var o=a[3];
2null!=o&&(n.ma=o,n.j.info("VER="+n.ma));var s=a[4];null!=s&&(n.Ca=s,n.j.info("SVER="+n.Ca));var u=a[5];null!=u&&"number"===typeof u&&0<u&&(r=1.5*u,n.J=r,n.j.info("backChannelRequestTimeoutMs_="+r)),r=n;var c=e.g;if(c){var l=c.g?c.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var f=r.h;f.g||-1==l.indexOf("spdy")&&-1==l.indexOf("quic")&&-1==l.indexOf("h2")||(f.j=f.l,f.g=new Set,f.h&&(gd(f,f.h),f.h=null))}if(r.D){var d=c.g?c.g.getResponseHeader("X-HTTP-Session-Id"):null;d&&(r.za=d,Yf(r.F,r.D,d))}}n.G=3,n.l&&n.l.xa(),n.$&&(n.P=Date.now()-e.F,n.j.info("Handshake RTT: "+n.P+"ms"));var h=e;if((r=n).sa=ch(r,r.H?r.ka:null,r.V),h.J){bd(r.h,h);var p=h,v=r.J;v&&p.setTimeout(v),p.B&&(Vf(p),Mf(p)),r.g=h}else eh(r);0<n.i.length&&Yd(n)}else"stop"!=a[0]&&"close"!=a[0]||sh(n,7);else 3==n.G&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?sh(n,7):Kd(n):"noop"!=a[0]&&n.l&&n.l.wa(a),n.A=0)}df()}catch(a){}}function qf(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(jc(e)||"string"===typeof e)Array.prototype.forEach.call(e,t,void 0);else for(var n=function(e){if(e.oa&&"function"==typeof e.oa)return e.oa();if(!e.W||"function"!=typeof e.W){if("undefined"!==typeof Map&&e instanceof Map)return Array.from(e.keys());if(!("undefined"!==typeof Set&&e instanceof Set)){if(jc(e)||"string"===typeof e){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}}(e),r=function(e){if(e.W&&"function"==typeof e.W)return e.W();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("");if(jc(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,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}(xc=Of.prototype).setTimeout=function(e){this.O=e},xc.ib=function(e){e=e.target;var t=this.L;t&&3==zd(e)?t.l():this.La(e)},xc.La=function(e){try{if(e==this.g)e:{var t=zd(this.g),n=this.g.Ea();this.g.aa();if(!(3>t)&&(3!=t||Zc||this.g&&(this.h.h||this.g.fa()||Bd(this.g)))){this.I||4!=t||7==n||df(),Vf(this);var r=this.g.aa();this.Y=r;t:if(Rf(this)){var i=Bd(this.g);e="";var a=i.length,o=4==zd(this.g);if(!this.h.i){if("undefined"===typeof TextDecoder){zf(this),Uf(this);var s="";break t}this.h.i=new Tc.TextDecoder}for(n=0;n<a;n++)this.h.h=!0,e+=this.h.i.decode(i[n],{stream:o&&n==a-1});i.splice(0,a),this.h.g+=e,this.C=0,s=this.h.g}else s=this.g.fa();if(this.i=200==r,function(e,t,n,r,i,a,o){e.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+a+" "+o}))}(this.j,this.u,this.A,this.m,this.U,t,r),this.i){if(this.Z&&!this.J){t:{if(this.g){var u,c=this.g;if((u=c.g?c.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!qc(u)){var l=u;break t}}l=null}if(!(r=l)){this.i=!1,this.o=3,pf(12),zf(this),Uf(this);break e}sf(this.j,this.m,r,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,Bf(this,r)}this.P?(Lf(this,t,s),Zc&&this.i&&3==t&&(rf(this.S,this.T,"tick",this.hb),this.T.start())):(sf(this.j,this.m,s,null),Bf(this,s)),4==t&&zf(this),this.i&&!this.I&&(4==t?ah(this.l,this):(this.i=!1,Mf(this)))}else 400==r&&0<s.indexOf("Unknown SID")?(this.o=3,pf(12)):(this.o=0,pf(13)),zf(this),Uf(this)}}}catch(t){}},xc.hb=function(){if(this.g){var e=zd(this.g),t=this.g.fa();this.C<t.length&&(Vf(this),Lf(this,e,t),this.i&&4!=e&&Mf(this))}},xc.cancel=function(){this.I=!0,zf(this)},xc.gb=function(){this.B=null;var e=Date.now();0<=e-this.V?(function(e,t){e.info((function(){return"TIMEOUT: "+t}))}(this.j,this.A),2!=this.K&&(df(),pf(17)),zf(this),this.o=2,Uf(this)):Ff(this,this.V-e)};var Hf=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function Wf(e,t){if(this.g=this.s=this.j="",this.m=null,this.o=this.l="",this.h=!1,e instanceof Wf){this.h=void 0!==t?t:e.h,Kf(this,e.j),this.s=e.s,this.g=e.g,Qf(this,e.m),this.l=e.l,t=e.i;var n=new od;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),$f(this,n),this.o=e.o}else e&&(n=String(e).match(Hf))?(this.h=!!t,Kf(this,n[1]||"",!0),this.s=Jf(n[2]||""),this.g=Jf(n[3]||"",!0),Qf(this,n[4]),this.l=Jf(n[5]||"",!0),$f(this,n[6]||"",!0),this.o=Jf(n[7]||"")):(this.h=!!t,this.i=new od(null,this.h))}function Gf(e){return new Wf(e)}function Kf(e,t,n){e.j=n?Jf(t,!0):t,e.j&&(e.j=e.j.replace(/:$/,""))}function Qf(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.m=t}else e.m=null}function $f(e,t,n){t instanceof od?(e.i=t,function(e,t){t&&!e.j&&(sd(e),e.i=null,e.g.forEach((function(e,t){var n=t.toLowerCase();t!=n&&(ud(this,t),ld(this,n,e))}),e)),e.j=t}(e.i,e.h)):(n||(t=Zf(t,id)),e.i=new od(t,e.h))}function Yf(e,t,n){e.i.set(t,n)}function Xf(e){return Yf(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Jf(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Zf(e,t,n){return"string"===typeof e?(e=encodeURI(e).replace(t,ed),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function ed(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Wf.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Zf(t,td,!0),":");var n=this.g;return(n||"file"==t)&&(e.push("//"),(t=this.s)&&e.push(Zf(t,td,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&e.push(":",String(n))),(n=this.l)&&(this.g&&"/"!=n.charAt(0)&&e.push("/"),e.push(Zf(n,"/"==n.charAt(0)?rd:nd,!0))),(n=this.i.toString())&&e.push("?",n),(n=this.o)&&e.push("#",Zf(n,ad)),e.join("")};
2var td=/[#\/\?@]/g,nd=/[#\?:]/g,rd=/[#\?]/g,id=/[#\?@]/g,ad=/#/g;function od(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function sd(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 a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.i,(function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)})))}function ud(e,t){sd(e),t=fd(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function cd(e,t){return sd(e),t=fd(e,t),e.g.has(t)}function ld(e,t,n){ud(e,t),0<n.length&&(e.i=null,e.g.set(fd(e,t),Vc(n)),e.h+=n.length)}function fd(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}(xc=od.prototype).add=function(e,t){sd(this),this.i=null,e=fd(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this},xc.forEach=function(e,t){sd(this),this.g.forEach((function(n,r){n.forEach((function(n){e.call(t,n,r,this)}),this)}),this)},xc.oa=function(){sd(this);for(var e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[],r=0;r<t.length;r++)for(var i=e[r],a=0;a<i.length;a++)n.push(t[r]);return n},xc.W=function(e){sd(this);var t=[];if("string"===typeof e)cd(this,e)&&(t=t.concat(this.g.get(fd(this,e))));else{e=Array.from(this.g.values());for(var n=0;n<e.length;n++)t=t.concat(e[n])}return t},xc.set=function(e,t){return sd(this),this.i=null,cd(this,e=fd(this,e))&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},xc.get=function(e,t){return e&&0<(e=this.W(e)).length?String(e[0]):t},xc.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var e=[],t=Array.from(this.g.keys()),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r)),a=this.W(r);for(r=0;r<a.length;r++){var o=i;""!==a[r]&&(o+="="+encodeURIComponent(String(a[r]))),e.push(o)}}return this.i=e.join("&")};var dd=we((function e(t,n){ye(this,e),this.h=t,this.g=n}));function hd(e){this.l=e||pd,Tc.PerformanceNavigationTiming?e=0<(e=Tc.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(Tc.g&&Tc.g.Ga&&Tc.g.Ga()&&Tc.g.Ga().$b),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var pd=10;function vd(e){return!!e.h||!!e.g&&e.g.size>=e.j}function md(e){return e.h?1:e.g?e.g.size:0}function yd(e,t){return e.h?e.h==t:!!e.g&&e.g.has(t)}function gd(e,t){e.g?e.g.add(t):e.h=t}function bd(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}function wd(e){if(null!=e.h)return e.i.concat(e.h.D);if(null!=e.g&&0!==e.g.size){var t,n=e.i,r=he(e.g.values());try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.concat(i.D)}}catch(a){r.e(a)}finally{r.f()}return n}return Vc(e.i)}function kd(){}function xd(){this.g=new kd}function _d(e,t,n){var r=n||"";try{qf(e,(function(e,n){var i=e;Cc(e)&&(i=Vl(e)),t.push(r+n+"="+encodeURIComponent(i))}))}catch(i){throw t.push(r+"type="+encodeURIComponent("_badmap")),i}}function Sd(e,t,n,r,i){try{t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(y){}}function Ed(e){this.l=e.ac||null,this.j=e.jb||!1}function Td(e,t){Dl.call(this),this.D=e,this.u=t,this.m=void 0,this.readyState=Od,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}hd.prototype.cancel=function(){if(this.i=wd(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){var e,t=he(this.g.values());try{for(t.s();!(e=t.n()).done;){e.value.cancel()}}catch(n){t.e(n)}finally{t.f()}this.g.clear()}},kd.prototype.stringify=function(e){return Tc.JSON.stringify(e,void 0)},kd.prototype.parse=function(e){return Tc.JSON.parse(e,void 0)},Dc(Ed,bf),Ed.prototype.g=function(){return new Td(this.l,this.j)},Ed.prototype.i=function(e){return function(){return e}}({}),Dc(Td,Dl);var Od=0;function jd(e){e.j.read().then(e.Ta.bind(e)).catch(e.ga.bind(e))}function Cd(e){e.readyState=4,e.l=null,e.j=null,e.A=null,Id(e)}function Id(e){e.onreadystatechange&&e.onreadystatechange.call(e)}(xc=Td.prototype).open=function(e,t){if(this.readyState!=Od)throw this.abort(),Error("Error reopening a connection");this.C=e,this.B=t,this.readyState=1,Id(this)},xc.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var t={headers:this.v,method:this.C,credentials:this.m,cache:void 0};
vendor: 5,459 bytes, line 2
2e&&(t.body=e),(this.D||Tc).fetch(new Request(this.B,t)).then(this.Wa.bind(this),this.ga.bind(this))},xc.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch((function(){})),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cd(this)),this.readyState=Od},xc.Wa=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,Id(this)),this.g&&(this.readyState=3,Id(this),this.g)))if("arraybuffer"===this.responseType)e.arrayBuffer().then(this.Ua.bind(this),this.ga.bind(this));else if("undefined"!==typeof Tc.ReadableStream&&"body"in e){if(this.j=e.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;jd(this)}else e.text().then(this.Va.bind(this),this.ga.bind(this))},xc.Ta=function(e){if(this.g){if(this.u&&e.value)this.response.push(e.value);else if(!this.u){var t=e.value?e.value:new Uint8Array(0);(t=this.A.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?Cd(this):Id(this),3==this.readyState&&jd(this)}},xc.Va=function(e){this.g&&(this.response=this.responseText=e,Cd(this))},xc.Ua=function(e){this.g&&(this.response=e,Cd(this))},xc.ga=function(){this.g&&Cd(this)},xc.setRequestHeader=function(e,t){this.v.append(e,t)},xc.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||""},xc.getAllResponseHeaders=function(){if(!this.h)return"";for(var e=[],t=this.h.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},Object.defineProperty(Td.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(e){this.m=e?"include":"same-origin"}});var Nd=Tc.JSON.parse;function Ad(e){Dl.call(this),this.headers=new Map,this.u=e||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=Pd,this.K=this.L=!1}Dc(Ad,Dl);var Pd="",Rd=/^https?$/i,Ld=["POST","PUT"];function Dd(e,t){e.h=!1,e.g&&(e.l=!0,e.g.abort(),e.l=!1),e.j=t,e.m=5,Md(e),Vd(e)}function Md(e){e.D||(e.D=!0,Ml(e,"complete"),Ml(e,"error"))}function Fd(e){if(e.h&&"undefined"!=typeof Ec&&(!e.C[1]||4!=zd(e)||2!=e.aa()))if(e.v&&4==zd(e))Jl(e.Ha,0,e);else if(Ml(e,"readystatechange"),4==zd(e)){e.h=!1;try{var t,n=e.aa();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var a=String(e.H).match(Hf)[1]||null;if(!a&&Tc.self&&Tc.self.location){var o=Tc.self.location.protocol;a=o.substr(0,o.length-1)}i=!Rd.test(a?a.toLowerCase():"")}t=i}if(t)Ml(e,"complete"),Ml(e,"success");else{e.m=6;try{var s=2<zd(e)?e.g.statusText:""}catch(p){s=""}e.j=s+" ["+e.aa()+"]",Md(e)}}finally{Vd(e)}}}function Vd(e,t){if(e.g){Ud(e);var n=e.g,r=e.C[0]?Oc:null;e.g=null,e.C=null,t||Ml(e,"ready");try{n.onreadystatechange=r}catch(i){}}}function Ud(e){e.g&&e.K&&(e.g.ontimeout=null),e.A&&(Tc.clearTimeout(e.A),e.A=null)}function zd(e){return e.g?e.g.readyState:0}function Bd(e){try{if(!e.g)return null;if("response"in e.g)return e.g.response;switch(e.J){case Pd:case"text":return e.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in e.g)return e.g.mozResponseArrayBuffer}return null}catch(S){return null}}function qd(e){var t="";return yl(e,(function(e,n){t+=n,t+=":",t+=e,t+="\r\n"})),t}function Hd(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}r||(n=qd(n),"string"===typeof e?null!=n&&encodeURIComponent(String(n)):Yf(e,t,n))}function Wd(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function Gd(e){this.Ca=0,this.i=[],this.j=new of,this.ka=this.sa=this.F=this.V=this.g=this.za=this.D=this.ia=this.o=this.S=this.s=null,this.ab=this.U=0,this.Za=Wd("failFast",!1,e),this.L=this.v=this.u=this.m=this.l=null,this.Y=!0,this.pa=this.Ba=this.T=-1,this.Z=this.A=this.C=0,this.Xa=Wd("baseRetryDelayMs",5e3,e),this.bb=Wd("retryDelaySeedMs",1e4,e),this.$a=Wd("forwardChannelMaxRetries",2,e),this.ta=Wd("forwardChannelRequestTimeoutMs",2e4,e),this.ra=e&&e.xmlHttpFactory||void 0,this.Da=e&&e.Zb||!1,this.J=void 0,this.H=e&&e.supportsCrossDomainXhr||!1,this.I="",this.h=new hd(e&&e.concurrentRequestLimit),this.Fa=new xd,this.O=e&&e.fastHandshake||!1,this.N=e&&e.encodeInitMessageHeaders||!1,this.O&&this.N&&(this.N=!1),this.Ya=e&&e.Xb||!1,e&&e.Aa&&this.j.Aa(),e&&e.forceLongPolling&&(this.Y=!1),this.$=!this.O&&this.Y&&e&&e.detectBufferingProxy||!1,this.ja=void 0,this.P=0,this.K=!1,this.la=this.B=null}function Kd(e){if($d(e),3==e.G){var t=e.U++,n=Gf(e.F);Yf(n,"SID",e.I),Yf(n,"RID",t),Yf(n,"TYPE","terminate"),Jd(e,n),(t=new Of(e,e.j,t,void 0)).K=2,t.v=Xf(Gf(n)),n=!1,Tc.navigator&&Tc.navigator.sendBeacon&&(n=Tc.navigator.sendBeacon(t.v.toString(),"")),!n&&Tc.Image&&((new Image).src=t.v,n=!0),n||(t.g=lh(t.l,null),t.g.da(t.v)),t.F=Date.now(),Mf(t)}uh(e)}function Qd(e){e.g&&(nh(e),e.g.cancel(),e.g=null)}function $d(e){Qd(e),e.u&&(Tc.clearTimeout(e.u),e.u=null),ih(e),e.h.cancel(),e.m&&("number"===typeof e.m&&Tc.clearTimeout(e.m),e.m=null)}function Yd(e){vd(e.h)||e.m||(e.m=!0,Gl(e.Ja,e),e.C=0)}function Xd(e,t){var n;n=t?t.m:e.U++;var r=Gf(e.F);Yf(r,"SID",e.I),Yf(r,"RID",n),Yf(r,"AID",e.T),Jd(e,r),e.o&&e.s&&Hd(r,e.o,e.s),n=new Of(e,e.j,n,e.C+1),null===e.o&&(n.H=e.s),t&&(e.i=t.D.concat(e.i)),t=Zd(e,n,1e3),n.setTimeout(
2Math.round(.5*e.ta)+Math.round(.5*e.ta*Math.random())),gd(e.h,n),Af(n,r,t)}function Jd(e,t){e.ia&&yl(e.ia,(function(e,n){Yf(t,n,e)})),e.l&&qf({},(function(e,n){Yf(t,n,e)}))}function Zd(e,t,n){n=Math.min(e.i.length,n);var r=e.l?Rc(e.l.Ra,e.l,e):null;e:for(var i=e.i,a=-1;;){var o=["count="+n];-1==a?0<n?(a=i[0].h,o.push("ofs="+a)):a=0:o.push("ofs="+a);for(var s=!0,u=0;u<n;u++){var c=i[u].h,l=i[u].g;if(0>(c-=a))a=Math.max(0,i[u].h-100),s=!1;else try{_d(l,o,"req"+c+"_")}catch(Y){r&&r(l)}}if(s){r=o.join("&");break e}}return e=e.i.splice(0,n),t.D=e,r}function eh(e){e.g||e.u||(e.Z=1,Gl(e.Ia,e),e.A=0)}function th(e){return!(e.g||e.u||3<=e.A)&&(e.Z++,e.u=mf(Rc(e.Ia,e),oh(e,e.A)),e.A++,!0)}function nh(e){null!=e.B&&(Tc.clearTimeout(e.B),e.B=null)}function rh(e){e.g=new Of(e,e.j,"rpc",e.Z),null===e.o&&(e.g.H=e.s),e.g.N=0;var t=Gf(e.sa);Yf(t,"RID","rpc"),Yf(t,"SID",e.I),Yf(t,"CI",e.L?"0":"1"),Yf(t,"AID",e.T),Yf(t,"TYPE","xmlhttp"),Jd(e,t),e.o&&e.s&&Hd(t,e.o,e.s),e.J&&e.g.setTimeout(e.J);var n=e.g;e=e.ka,n.K=1,n.v=Xf(Gf(t)),n.s=null,n.P=!0,Pf(n,e)}function ih(e){null!=e.v&&(Tc.clearTimeout(e.v),e.v=null)}function ah(e,t){var n=null;if(e.g==t){ih(e),nh(e),e.g=null;var r=2}else{if(!yd(e.h,t))return;n=t.D,bd(e.h,t),r=1}if(0!=e.G)if(e.pa=t.Y,t.i)if(1==r){n=t.s?t.s.length:0,t=Date.now()-t.F;var i=e.C;Ml(r=lf(),new vf(r,n)),Yd(e)}else eh(e);else if(3==(i=t.o)||0==i&&0<e.pa||!(1==r&&function(e,t){return!(md(e.h)>=e.h.j-(e.m?1:0))&&(e.m?(e.i=t.D.concat(e.i),!0):!(1==e.G||2==e.G||e.C>=(e.Za?0:e.$a))&&(e.m=mf(Rc(e.Ja,e,t),oh(e,e.C)),e.C++,!0))}(e,t)||2==r&&th(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:sh(e,5);break;case 4:sh(e,10);break;case 3:sh(e,6);break;default:sh(e,2)}}function oh(e,t){var n=e.Xa+Math.floor(Math.random()*e.bb);return e.l||(n*=2),n*t}function sh(e,t){if(e.j.info("Error code "+t),2==t){var n=null;e.l&&(n=null);var r=Rc(e.kb,e);n||(n=new Wf("//www.google.com/images/cleardot.gif"),Tc.location&&"http"==Tc.location.protocol||Kf(n,"https"),Xf(n)),function(e,t){var n=new of;if(Tc.Image){var r=new Image;r.onload=Lc(Sd,n,r,"TestLoadImage: loaded",!0,t),r.onerror=Lc(Sd,n,r,"TestLoadImage: error",!1,t),r.onabort=Lc(Sd,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=Lc(Sd,n,r,"TestLoadImage: timeout",!1,t),Tc.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=e}else t(!1)}(n.toString(),r)}else pf(2);e.G=0,e.l&&e.l.va(t),uh(e),$d(e)}function uh(e){if(e.G=0,e.la=[],e.l){var t=wd(e.h);0==t.length&&0==e.i.length||(Uc(e.la,t),Uc(e.la,e.i),e.h.i.length=0,Vc(e.i),e.i.length=0),e.l.ua()}}function ch(e,t,n){var r=n instanceof Wf?Gf(n):new Wf(n,void 0);if(""!=r.g)t&&(r.g=t+"."+r.g),Qf(r,r.m);else{var i=Tc.location;r=i.protocol,t=t?t+"."+i.hostname:i.hostname,i=+i.port;var a=new Wf(null,void 0);r&&Kf(a,r),t&&(a.g=t),i&&Qf(a,i),n&&(a.l=n),r=a}return n=e.D,t=e.za,n&&t&&Yf(r,n,t),Yf(r,"VER",e.ma),Jd(e,r),r}function lh(e,t,n){if(t&&!e.H)throw Error("Can't create secondary domain capable XhrIo object.");return(t=n&&e.Da&&!e.ra?new Ad(new Ed({jb:!0})):new Ad(e.ra)).Ka(e.H),t}function fh(){}function dh(){if(Xc&&!(10<=Number(ll)))throw Error("Environmental error: no available transport.")}function hh(e,t){Dl.call(this),this.g=new Gd(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.g.s=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.ya&&(e?e["X-WebChannel-Client-Profile"]=t.ya:e={"X-WebChannel-Client-Profile":t.ya}),this.g.S=e,(e=t&&t.Yb)&&!qc(e)&&(this.g.o=e),this.A=t&&t.supportsCrossDomainXhr||!1,this.v=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!qc(t)&&(this.g.D=t,null!==(e=this.h)&&t in e&&(t in(e=this.h)&&delete e[t])),this.j=new mh(this)}function ph(e){Sf.call(this);var t=e.__sm__;if(t){e:{for(var 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 vh(){Ef.call(this),this.status=1}function mh(e){this.g=e}(xc=Ad.prototype).Ka=function(e){this.L=e},xc.da=function(e,t,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+e);t=t?t.toUpperCase():"GET",this.H=e,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():xf.g(),this.C=this.u?wf(this.u):wf(xf),this.g.onreadystatechange=Rc(this.Ha,this);try{this.F=!0,this.g.open(t,String(e),!0),this.F=!1}catch(s){return void Dd(this,s)}if(e=n||"",n=new Map(this.headers),r)if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else{if("function"!==typeof r.keys||"function"!==typeof r.get)throw Error("Unknown input type for opt_headers: "+String(r));var a,o=he(r.keys());try{for(o.s();!(a=o.n()).done;){var s=a.value;n.set(s,r.get(s))}}catch(h){o.e(h)}finally{o.f()}}r=Array.from(n.keys()).find((function(e){return"content-type"==e.toLowerCase()})),i=Tc.FormData&&e instanceof Tc.FormData,!(0<=Fc(Ld,t))||r||i||n.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");var u,c=he(n);try{for(c.s();!(u=c.n()).done;){var l=ne(u.value,2),f=l[0],d=l[1];this.g.setRequestHeader(f,d)}}catch(h){c.e(h)}finally{c.f()}this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Ud(this),0<this.B&&((this.K=function(e){return Xc&&ul()&&"number"===typeof e.timeout&&void 0!==e.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=Rc(this.qa,this)):this.A=Jl(this.qa,this.B,this)),this.v=!0,this.g.send(e),this.v=!1}catch(s){Dd(this,s)}},xc.qa=function(){"undefined"!=typeof Ec&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Ml(this,"timeout"),this.abort(8))},xc.abort=function(e){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=e||7,Ml(this,"complete"),Ml(this,"abort"),Vd(this))},xc.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Vd(this,!0)),Ad.X.M.call(this)},xc.Ha=function(){this.s||(this.F||this.v||this.l?Fd(this):this.fb())},xc.fb=function(){Fd(this)},xc.aa=function(){try{return 2<zd(this)?this.g.status:-1}catch(f){return-1}},xc.fa=function(){try{return this.g?this.g.responseText:""}catch(f){return""}},xc.Sa=function(e){if(this.g){var t=this.g.responseText;
2return e&&0==t.indexOf(e)&&(t=t.substring(e.length)),Nd(t)}},xc.Ea=function(){return this.m},xc.Oa=function(){return"string"===typeof this.j?this.j:String(this.j)},(xc=Gd.prototype).ma=8,xc.G=1,xc.Ja=function(e){if(this.m)if(this.m=null,1==this.G){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;var t=new Of(this,this.j,e,void 0),n=this.s;if(this.S&&(n?wl(n=gl(n),this.S):n=this.S),null!==this.o||this.N||(t.H=n,n=null),this.O)e:{for(var r=0,i=0;i<this.i.length;i++){var a=this.i[i];if(void 0===(a="__data__"in a.g&&"string"===typeof(a=a.g.__data__)?a.length:void 0))break;if(4096<(r+=a)){r=i;break e}if(4096===r||i===this.i.length-1){r=i+1;break e}}r=1e3}else r=1e3;r=Zd(this,t,r),Yf(i=Gf(this.F),"RID",e),Yf(i,"CVER",22),this.D&&Yf(i,"X-HTTP-Session-Id",this.D),Jd(this,i),n&&(this.N?r="headers="+encodeURIComponent(String(qd(n)))+"&"+r:this.o&&Hd(i,this.o,n)),gd(this.h,t),this.Ya&&Yf(i,"TYPE","init"),this.O?(Yf(i,"$req",r),Yf(i,"SID","null"),t.Z=!0,Af(t,i,null)):Af(t,i,r),this.G=2}}else 3==this.G&&(e?Xd(this,e):0==this.i.length||vd(this.h)||Xd(this))},xc.Ia=function(){if(this.u=null,rh(this),this.$&&!(this.K||null==this.g||0>=this.P)){var e=2*this.P;this.j.info("BP detection timer enabled: "+e),this.B=mf(Rc(this.eb,this),e)}},xc.eb=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.L=!1,this.K=!0,pf(10),Qd(this),rh(this))},xc.cb=function(){null!=this.v&&(this.v=null,Qd(this),th(this),pf(19))},xc.kb=function(e){e?(this.j.info("Successfully pinged google.com"),pf(2)):(this.j.info("Failed to ping google.com"),pf(1))},(xc=fh.prototype).xa=function(){},xc.wa=function(){},xc.va=function(){},xc.ua=function(){},xc.Ra=function(){},dh.prototype.g=function(e,t){return new hh(e,t)},Dc(hh,Dl),hh.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.H=!0);var e=this.g,t=this.l,n=this.h||void 0;pf(0),e.V=t,e.ia=n||{},e.L=e.Y,e.F=ch(e,null,e.V),Yd(e)},hh.prototype.close=function(){Kd(this.g)},hh.prototype.u=function(e){var t=this.g;if("string"===typeof e){var n={};n.__data__=e,e=n}else this.v&&((n={}).__data__=Vl(e),e=n);t.i.push(new dd(t.ab++,e)),3==t.G&&Yd(t)},hh.prototype.M=function(){this.g.l=null,delete this.j,Kd(this.g),delete this.g,hh.X.M.call(this)},Dc(ph,Sf),Dc(vh,Ef),Dc(mh,fh),mh.prototype.xa=function(){Ml(this.g,"a")},mh.prototype.wa=function(e){Ml(this.g,new ph(e))},mh.prototype.va=function(e){Ml(this.g,new vh)},mh.prototype.ua=function(){Ml(this.g,"b")},dh.prototype.createWebChannel=dh.prototype.g,hh.prototype.send=hh.prototype.u,hh.prototype.open=hh.prototype.m,hh.prototype.close=hh.prototype.close,yf.NO_ERROR=0,yf.TIMEOUT=8,yf.HTTP_ERROR=6,gf.COMPLETE="complete",kf.EventType=_f,_f.OPEN="a",_f.CLOSE="b",_f.ERROR="c",_f.MESSAGE="d",Dl.prototype.listen=Dl.prototype.N,Ad.prototype.listenOnce=Ad.prototype.O,Ad.prototype.getLastError=Ad.prototype.Oa,Ad.prototype.getLastErrorCode=Ad.prototype.Ea,Ad.prototype.getStatus=Ad.prototype.aa,Ad.prototype.getResponseJson=Ad.prototype.Sa,Ad.prototype.getResponseText=Ad.prototype.fa,Ad.prototype.send=Ad.prototype.da,Ad.prototype.setWithCredentials=Ad.prototype.Ka;var yh=Sc.createWebChannelTransport=function(){return new dh},gh=Sc.getStatEventTarget=function(){return lf()},bh=Sc.ErrorCode=yf,wh=Sc.EventType=gf,kh=Sc.Event=uf,xh=Sc.Stat={sb:0,vb:1,wb:2,Pb:3,Ub:4,Rb:5,Sb:6,Qb:7,Ob:8,Tb:9,PROXY:10,NOPROXY:11,Mb:12,Ib:13,Jb:14,Hb:15,Kb:16,Lb:17,ob:18,nb:19,pb:20},_h=Sc.FetchXmlHttpFactory=Ed,Sh=Sc.WebChannel=kf,Eh=Sc.XhrIo=Ad,Th="@firebase/firestore",Oh=function(){function e(t){ye(this,e),this.uid=t}return we(e,[{key:"isAuthenticated",value:function(){return null!=this.uid}},{key:"toKey",value:function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}},{key:"isEqual",value:function(e){return e.uid===this.uid}}]),e}();Oh.UNAUTHENTICATED=new Oh(null),Oh.GOOGLE_CREDENTIALS=new Oh("google-credentials-uid"),Oh.FIRST_PARTY=new Oh("first-party-uid"),Oh.MOCK_USER=new Oh("mock-user");var jh="9.15.0",Ch=new lt("@firebase/firestore");function Ih(){return Ch.logLevel}function Nh(e){if(Ch.logLevel<=rt.DEBUG){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=n.map(Rh);
2Ch.debug.apply(Ch,["Firestore (".concat(jh,"): ").concat(e)].concat(ke(i)))}}function Ah(e){if(Ch.logLevel<=rt.ERROR){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=n.map(Rh);Ch.error.apply(Ch,["Firestore (".concat(jh,"): ").concat(e)].concat(ke(i)))}}function Ph(e){if(Ch.logLevel<=rt.WARN){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=n.map(Rh);Ch.warn.apply(Ch,["Firestore (".concat(jh,"): ").concat(e)].concat(ke(i)))}}function Rh(e){if("string"==typeof e)return e;try{return t=e,JSON.stringify(t)}catch(t){return e}var t}function Lh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Unexpected state",t="FIRESTORE (".concat(jh,") INTERNAL ASSERTION FAILED: ")+e;throw Ah(t),new Error(t)}function Dh(e,t){e||Lh()}function Mh(e,t){return e}var Fh={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Vh=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e,r)).code=e,i.message=r,i.toString=function(){return"".concat(i.name,": [code=").concat(i.code,"]: ").concat(i.message)},i}return we(n)}(Ue),Uh=we((function e(){var t=this;ye(this,e),this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))})),zh=we((function e(t,n){ye(this,e),this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization","Bearer ".concat(t))})),Bh=function(){function e(){ye(this,e)}return we(e,[{key:"getToken",value:function(){return Promise.resolve(null)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(Oh.UNAUTHENTICATED)}))}},{key:"shutdown",value:function(){}}]),e}(),qh=function(){function e(t){ye(this,e),this.token=t,this.changeListener=null}return we(e,[{key:"getToken",value:function(){return Promise.resolve(this.token)}},{key:"invalidateToken",value:function(){}},{key:"start",value:function(e,t){var n=this;this.changeListener=t,e.enqueueRetryable((function(){return t(n.token.user)}))}},{key:"shutdown",value:function(){this.changeListener=null}}]),e}(),Hh=function(){function e(t){ye(this,e),this.t=t,this.currentUser=Oh.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}return we(e,[{key:"start",value:function(e,t){var n=this,r=this.i,i=function(e){return n.i!==r?(r=n.i,t(e)):Promise.resolve()},a=new Uh;this.o=function(){n.i++,n.currentUser=n.u(),a.resolve(),a=new Uh,e.enqueueRetryable((function(){return i(n.currentUser)}))};var o=function(){var t=a;e.enqueueRetryable(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.promise;case 2:return e.next=4,i(n.currentUser);case 4:case"end":return e.stop()}}),e)}))))},s=function(e){Nh("FirebaseAuthCredentialsProvider","Auth detected"),n.auth=e,n.auth.addAuthTokenListener(n.o),o()};this.t.onInit((function(e){return s(e)})),setTimeout((function(){if(!n.auth){var e=n.t.getImmediate({optional:!0});e?s(e):(Nh("FirebaseAuthCredentialsProvider","Auth not yet detected"),a.resolve(),a=new Uh)}}),0),o()}},{key:"getToken",value:function(){var e=this,t=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return e.i!==t?(Nh("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),e.getToken()):n?(Dh("string"==typeof n.accessToken),new zh(n.accessToken,e.currentUser)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.auth&&this.auth.removeAuthTokenListener(this.o)}},{key:"u",value:function(){var e=this.auth&&this.auth.getUid();return Dh(null===e||"string"==typeof e),new Oh(e)}}]),e}(),Wh=function(){function e(t,n,r,i){ye(this,e),this.h=t,this.l=n,this.m=r,this.g=i,this.type="FirstParty",this.user=Oh.FIRST_PARTY,this.p=new Map}return we(e,[{key:"I",value:function(){return this.g?this.g():(Dh(!("object"!=typeof this.h||null===this.h||!this.h.auth||!this.h.auth.getAuthHeaderValueForFirstParty)),this.h.auth.getAuthHeaderValueForFirstParty([]))}},{key:"headers",get:function(){this.p.set("X-Goog-AuthUser",this.l);var e=this.I();return e&&this.p.set("Authorization",e),this.m&&this.p.set("X-Goog-Iam-Authorization-Token",this.m),this.p}}]),e}(),Gh=function(){function e(t,n,r,i){ye(this,e),this.h=t,this.l=n,this.m=r,this.g=i}return we(e,[{key:"getToken",value:function(){return Promise.resolve(new Wh(this.h,this.l,this.m,this.g))}},{key:"start",value:function(e,t){e.enqueueRetryable((function(){return t(Oh.FIRST_PARTY)}))}},{key:"shutdown",value:function(){}},{key:"invalidateToken",value:function(){}}]),e}(),Kh=we((function e(t){ye(this,e),this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)})),Qh=function(){function e(t){ye(this,e),this.T=t,this.forceRefresh=!1,this.appCheck=null,this.A=null}return we(e,[{key:"start",value:function(e,t){var n=this,r=function(e){null!=e.error&&Nh("FirebaseAppCheckTokenProvider","Error getting App Check token; using placeholder token instead. Error: ".concat(e.error.message));var r=e.token!==n.A;return n.A=e.token,Nh("FirebaseAppCheckTokenProvider","Received ".concat(r?"new":"existing"," token.")),r?t(e.token):Promise.resolve()};this.o=function(t){e.enqueueRetryable((function(){return r(t)}))};var i=function(e){Nh("FirebaseAppCheckTokenProvider","AppCheck detected"),n.appCheck=e,n.appCheck.addTokenListener(n.o)};this.T.onInit((function(e){return i(e)})),setTimeout((function(){if(!n.appCheck){var e=n.T.getImmediate({optional:!0});e?i(e):Nh("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}},{key:"getToken",value:function(){var e=this,t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then((function(t){return t?(Dh("string"==typeof t.token),e.A=t.token,new Kh(t.token)):null})):Promise.resolve(null)}},{key:"invalidateToken",value:function(){this.forceRefresh=!0}},{key:"shutdown",value:function(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}]),e}();function $h(e){var t="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&"function"==typeof t.getRandomValues)t.getRandomValues(n);else for(var r=0;r<e;
2r++)n[r]=Math.floor(256*Math.random());return n}var Yh=function(){function e(){ye(this,e)}return we(e,null,[{key:"R",value:function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=Math.floor(256/e.length)*e.length,n="";n.length<20;)for(var r=$h(40),i=0;i<r.length;++i)n.length<20&&r[i]<t&&(n+=e.charAt(r[i]%e.length));return n}}]),e}();function Xh(e,t){return e<t?-1:e>t?1:0}function Jh(e,t,n){return e.length===t.length&&e.every((function(e,r){return n(e,t[r])}))}var Zh=function(){function e(t,n){if(ye(this,e),this.seconds=t,this.nanoseconds=n,n<0)throw new Vh(Fh.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Vh(Fh.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(t<-62135596800)throw new Vh(Fh.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Vh(Fh.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}return we(e,[{key:"toDate",value:function(){return new Date(this.toMillis())}},{key:"toMillis",value:function(){return 1e3*this.seconds+this.nanoseconds/1e6}},{key:"_compareTo",value:function(e){return this.seconds===e.seconds?Xh(this.nanoseconds,e.nanoseconds):Xh(this.seconds,e.seconds)}},{key:"isEqual",value:function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}},{key:"toString",value:function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}},{key:"toJSON",value:function(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}},{key:"valueOf",value:function(){var e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}],[{key:"now",value:function(){return e.fromMillis(Date.now())}},{key:"fromDate",value:function(t){return e.fromMillis(t.getTime())}},{key:"fromMillis",value:function(t){var n=Math.floor(t/1e3);return new e(n,Math.floor(1e6*(t-1e3*n)))}}]),e}(),ep=function(){function e(t){ye(this,e),this.timestamp=t}return we(e,[{key:"compareTo",value:function(e){return this.timestamp._compareTo(e.timestamp)}},{key:"isEqual",value:function(e){return this.timestamp.isEqual(e.timestamp)}},{key:"toMicroseconds",value:function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}},{key:"toString",value:function(){return"SnapshotVersion("+this.timestamp.toString()+")"}},{key:"toTimestamp",value:function(){return this.timestamp}}],[{key:"fromTimestamp",value:function(t){return new e(t)}},{key:"min",value:function(){return new e(new Zh(0,0))}},{key:"max",value:function(){return new e(new Zh(253402300799,999999999))}}]),e}(),tp=function(){function e(t,n,r){ye(this,e),void 0===n?n=0:n>t.length&&Lh(),void 0===r?r=t.length-n:r>t.length-n&&Lh(),this.segments=t,this.offset=n,this.len=r}return we(e,[{key:"length",get:function(){return this.len}},{key:"isEqual",value:function(t){return 0===e.comparator(this,t)}},{key:"child",value:function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((function(e){n.push(e)})):n.push(t),this.construct(n)}},{key:"limit",value:function(){return this.offset+this.length}},{key:"popFirst",value:function(e){return e=void 0===e?1:e,this.construct(this.segments,this.offset+e,this.length-e)}},{key:"popLast",value:function(){return this.construct(this.segments,this.offset,this.length-1)}},{key:"firstSegment",value:function(){return this.segments[this.offset]}},{key:"lastSegment",value:function(){return this.get(this.length-1)}},{key:"get",value:function(e){return this.segments[this.offset+e]}},{key:"isEmpty",value:function(){return 0===this.length}},{key:"isPrefixOf",value:function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"isImmediateParentOf",value:function(e){if(this.length+1!==e.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}},{key:"forEach",value:function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}},{key:"toArray",value:function(){return this.segments.slice(this.offset,this.limit())}}],[{key:"comparator",value:function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),a=t.get(r);if(i<a)return-1;if(i>a)return 1}return e.length<t.length?-1:e.length>t.length?1:0}}]),e}(),np=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}
2return we(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().join("/")}},{key:"toString",value:function(){return this.canonicalString()}}],[{key:"fromString",value:function(){for(var e=[],t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var a=0,o=r;a<o.length;a++){var s=o[a];if(s.indexOf("//")>=0)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid segment (".concat(s,"). Paths must not contain // in them."));e.push.apply(e,ke(s.split("/").filter((function(e){return e.length>0}))))}return new n(e)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(tp),rp=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ip=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"construct",value:function(e,t,r){return new n(e,t,r)}},{key:"canonicalString",value:function(){return this.toArray().map((function(e){return e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),n.isValidIdentifier(e)||(e="`"+e+"`"),e})).join(".")}},{key:"toString",value:function(){return this.canonicalString()}},{key:"isKeyField",value:function(){return 1===this.length&&"__name__"===this.get(0)}}],[{key:"isValidIdentifier",value:function(e){return rp.test(e)}},{key:"keyField",value:function(){return new n(["__name__"])}},{key:"fromServerFormat",value:function(e){for(var t=[],r="",i=0,a=function(){if(0===r.length)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid field path (".concat(e,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"));t.push(r),r=""},o=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new Vh(Fh.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new Vh(Fh.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(o=!o,i++):"."!==s||o?(r+=s,i++):(a(),i++)}if(a(),o)throw new Vh(Fh.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new n(t)}},{key:"emptyPath",value:function(){return new n([])}}]),n}(tp),ap=function(){function e(t){ye(this,e),this.path=t}return we(e,[{key:"collectionGroup",get:function(){return this.path.popLast().lastSegment()}},{key:"hasCollectionId",value:function(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}},{key:"getCollectionGroup",value:function(){return this.path.get(this.path.length-2)}},{key:"getCollectionPath",value:function(){return this.path.popLast()}},{key:"isEqual",value:function(e){return null!==e&&0===np.comparator(this.path,e.path)}},{key:"toString",value:function(){return this.path.toString()}}],[{key:"fromPath",value:function(t){return new e(np.fromString(t))}},{key:"fromName",value:function(t){return new e(np.fromString(t).popFirst(5))}},{key:"empty",value:function(){return new e(np.emptyPath())}},{key:"comparator",value:function(e,t){return np.comparator(e.path,t.path)}},{key:"isDocumentKey",value:function(e){return e.length%2==0}},{key:"fromSegments",value:function(t){return new e(new np(t.slice()))}}]),e}(),op=we((function e(t,n,r,i){ye(this,e),this.indexId=t,this.collectionGroup=n,this.fields=r,this.indexState=i}));op.UNKNOWN_ID=-1;function sp(e,t){var n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1,i=ep.fromTimestamp(1e9===r?new Zh(n+1,0):new Zh(n,r));return new cp(i,ap.empty(),t)}function up(e){return new cp(e.readTime,e.key,-1)}var cp=function(){function e(t,n,r){ye(this,e),this.readTime=t,this.documentKey=n,this.largestBatchId=r}return we(e,null,[{key:"min",value:function(){return new e(ep.min(),ap.empty(),-1)}},{key:"max",value:function(){return new e(ep.max(),ap.empty(),-1)}}]),e}();function lp(e,t){var n=e.readTime.compareTo(t.readTime);return 0!==n?n:0!==(n=ap.comparator(e.documentKey,t.documentKey))?n:Xh(e.largestBatchId,t.largestBatchId)}var fp="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",dp=function(){function e(){ye(this,e),this.onCommittedListeners=[]}return we(e,[{key:"addOnCommittedListener",value:function(e){this.onCommittedListeners.push(e)}},{key:"raiseOnCommittedEvent",value:function(){this.onCommittedListeners.forEac
2h((function(e){return e()}))}}]),e}();function hp(e){return pp.apply(this,arguments)}function pp(){return pp=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.code===Fh.FAILED_PRECONDITION&&t.message===fp){e.next=2;break}throw t;case 2:Nh("LocalStore","Unexpectedly lost primary lease");case 3:case"end":return e.stop()}}),e)}))),pp.apply(this,arguments)}var vp=function(){function e(t){var n=this;ye(this,e),this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(e){n.isDone=!0,n.result=e,n.nextCallback&&n.nextCallback(e)}),(function(e){n.isDone=!0,n.error=e,n.catchCallback&&n.catchCallback(e)}))}return we(e,[{key:"catch",value:function(e){return this.next(void 0,e)}},{key:"next",value:function(t,n){var r=this;return this.callbackAttached&&Lh(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e((function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}}))}},{key:"toPromise",value:function(){var e=this;return new Promise((function(t,n){e.next(t,n)}))}},{key:"wrapUserFunction",value:function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}}},{key:"wrapSuccess",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.resolve(n)}},{key:"wrapFailure",value:function(t,n){return t?this.wrapUserFunction((function(){return t(n)})):e.reject(n)}}],[{key:"resolve",value:function(t){return new e((function(e,n){e(t)}))}}
2,{key:"reject",value:function(t){return new e((function(e,n){n(t)}))}},{key:"waitFor",value:function(t){return new e((function(e,n){var r=0,i=0,a=!1;t.forEach((function(t){++r,t.next((function(){++i,a&&i===r&&e()}),(function(e){return n(e)}))})),a=!0,i===r&&e()}))}},{key:"or",value:function(t){var n,r=e.resolve(!1),i=he(t);try{var a=function(){var t=n.value;r=r.next((function(n){return n?e.resolve(n):t()}))};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return r}},{key:"forEach",value:function(e,t){var n=this,r=[];return e.forEach((function(e,i){r.push(t.call(n,e,i))})),this.waitFor(r)}},{key:"mapArray",value:function(t,n){return new e((function(e,r){for(var i=t.length,a=new Array(i),o=0,s=function(s){var u=s;n(t[u]).next((function(t){a[u]=t,++o===i&&e(a)}),(function(e){return r(e)}))},u=0;u<i;u++)s(u)}))}},{key:"doWhile",value:function(t,n){return new e((function(e,r){!function i(){!0===t()?n().next((function(){i()}),r):e()}()}))}}]),e}();function mp(e){return"IndexedDbTransactionError"===e.name}var yp=function(){function e(t,n){var r=this;ye(this,e),this.previousValue=t,n&&(n.sequenceNumberHandler=function(e){return r.ut(e)},this.ct=function(e){return n.writeSequenceNumber(e)})}return we(e,[{key:"ut",value:function(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}},{key:"next",value:function(){var e=++this.previousValue;return this.ct&&this.ct(e),e}}]),e}();yp.at=-1;var gp=we((function e(t,n,r,i,a,o,s,u){ye(this,e),this.databaseId=t,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=a,this.forceLongPolling=o,this.autoDetectLongPolling=s,this.useFetchStreams=u})),bp=function(){function e(t,n){ye(this,e),this.projectId=t,this.database=n||"(default)"}return we(e,[{key:"isDefaultDatabase",get:function(){return"(default)"===this.database}},{key:"isEqual",value:function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}}],[{key:"empty",value:function(){return new e("","")}}]),e}();function wp(e){var t=0;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function kp(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function xp(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function _p(e){return null==e}function Sp(e){return 0===e&&1/e==-1/0}function Ep(e){return"number"==typeof e&&Number.isInteger(e)&&!Sp(e)&&e<=Number.MAX_SAFE_INTEGER&&e>=Number.MIN_SAFE_INTEGER}var Tp=function(e){function t(e){ye(this,t),this.binaryString=e}return we(t,[{key:Symbol.iterator,value:function(){var e=this,t=0;return{next:function(){return t<e.binaryString.length?{value:e.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}}},{key:"toBase64",value:function(){return e=this.binaryString,btoa(e);var e}},{key:"toUint8Array",value:function(){return function(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}},{key:"approximateByteSize",value:function(){return 2*this.binaryString.length}},{key:"compareTo",value:function(e){return Xh(this.binaryString,e.binaryString)}},{key:"isEqual",value:function(e){return this.binaryString===e.binaryString}}],[{key:"fromBase64String",value:function(e){return new t(atob(e))}},{key:"fromUint8Array",value:function(e){var n=function(e){for(var t="",n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(e);return new t(n)}}]),t}();Tp.EMPTY_BYTE_STRING=new Tp("");var Op=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function jp(e){if(Dh(!!e),"string"==typeof e){var t=0,n=Op.exec(e);if(Dh(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e);return{seconds:Math.floor(i.getTime()/1e3),nanos:t}}return{seconds:Cp(e.seconds),nanos:Cp(e.nanos)}}function Cp(e){return"number"==typeof e?e:"string"==typeof e?Number(e):0}function Ip(e){return"string"==typeof e?Tp.fromBase64String(e):Tp.fromUint8Array(e)}function Np(e){var t,n;return"server_timestamp"===(null===(n=((null===(t=null==e?void 0:e.mapValue)||void 0===t?void 0:t.fields)||{}).__type__)||void 0===n?void 0:n.stringValue)}function Ap(e){var t=e.mapValue.fields.__previous_value__;return Np(t)?Ap(t):t}function Pp(e){var t=jp(e.mapValue.fields.__local_write_time__.timestampValue);return new Zh(t.seconds,t.nanos)}var Rp={mapValue:{fields:{__type__:{stringValue:"__max__"}}}};function Lp(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?Np(e)?4:$p(e)?9007199254740991:10:Lh()}function Dp(e,t){if(e===t)return!0;var n=Lp(e);if(n!==Lp(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return Pp(e).isEqual(Pp(t));case 3:return function(e,t){if("string"==typeof e.timestampValue&&"string"==typeof t.timestampValue&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;var n=jp(e.timestampValue),r=jp(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 Ip(e.bytesValue).isEqual(Ip(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return Cp(e.geoPointValue.latitude)===Cp(t.geoPointValue.latitude)&&Cp(e.geoPointValue.longitude)===Cp(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if("integerValue"in e&&"integerValue"in t)return Cp(e.integerValue)===Cp(t.integerValue);if("doubleValue"in e&&"doubleValue"in t){var n=Cp(e.doubleValue),r=Cp(t.doubleValue);return n===r?Sp(n)===Sp(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return Jh(e.arrayValue.values||[],t.arrayValue.values||[],Dp);case 10:return function(e,t){var n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(wp(n)!==wp(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!Dp(n[i],r[i])))return!1;return!0}(e,t);default:return Lh()}}function Mp(e,t){return void 0!==(e.values||[]).find((function(e){return Dp(e,t)}))}function Fp(e,t){if(e===t)return 0;var n=Lp(e),r=Lp(t);if(n!==r)return Xh(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return Xh(e.booleanValue,t.booleanValue);case 2:return function(e,t){var n=Cp(e.integerValue||e.doubleValue),r=Cp(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 Vp(e.timestampValue,t.timestampValue);case 4:return Vp(Pp(e),Pp(t));case 5:return Xh(e.stringValue,t.stringValue);case 6:return function(e,t){var n=Ip(e),r=Ip(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){for(var n=e.split("/"),r=t.split("/"),i=0;i<n.length&&i<r.length;i++){var a=Xh(n[i],r[i]);if(0!==a)return a}return Xh(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){var n=Xh(Cp(e.latitude),Cp(t.latitude));return 0!==n?n:Xh(Cp(e.longitude),Cp(t.longitude))}(e.geoPointValue,t.geoPointValue);case 9:return function(e,t){for(var n=e.values||[],r=t.values||[],i=0;i<n.length&&i<r.length;++i){var a=Fp(n[i],r[i]);if(a)return a}return Xh(n.length,r.length)}(e.arrayValue,t.arrayValue);case 10:return function(e,t){if(e===Rp.mapValue&&t===Rp.mapValue)return 0;if(e===Rp.mapValue)return 1;if(t===Rp.mapValue)return-1;var n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(var o=0;o<r.length&&o<a.length;++o){var s=Xh(r[o],a[o]);if(0!==s)return s;var u=Fp(n[r[o]],i[a[o]]);if(0!==u)return u}return Xh(r.length,a.length)}(e.mapValue,t.mapValue);default:throw Lh()}}function Vp(e,t){if("string"==typeof e&&"string"==typeof t&&e.length===t.length)return Xh(e,t);var n=jp(e),r=jp(t),i=Xh(n.seconds,r.seconds);return 0!==i?i:Xh(n.nanos,r.nanos)}function Up(e){return zp(e)}function zp(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(e){var t=jp(e);return"time(".concat(t.seconds,",").concat(t.nanos,")")}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?Ip(e.bytesValue).toBase64():"referenceValue"in e?(n=e.referenceValue,ap.fromName(n).toString()):"geoPointValue"in e?"geo(".concat((t=e.geoPointValue).latitude,",").concat(t.longitude,")"):"arrayValue"in e?function(e){var t,n="[",r=!0,i=he(e.values||[]);try{for(i.s();!(t=i.n()).done;){var a=t.value;r?r=!1:n+=",",n+=zp(a)}}catch(o){i.e(o)}finally{i.f()}return n+"]"}(e.arrayValue):"mapValue"in e?function(e){var t,n="{",r=!0,i=he(Object.keys(e.fields||{}).sort());try{for(i.s();!(t=i.n()).done;){var a=t.value;r?r=!1:n+=",",n+="".concat(a,":").concat(zp(e.fields[a]))}}catch(o){i.e(o)}finally{i.f()}return n+"}"}(e.mapValue):Lh();var t,n}function Bp(e,t){return{referenceValue:"projects/".concat(e.projectId,"/databases/").concat(e.database,"/documents/").concat(t.path.canonicalString())}}function qp(e){return!!e&&"integerValue"in e}function Hp(e){return!!e&&"arrayValue"in e}function Wp(e){return!!e&&"nullValue"in e}function Gp(e){return!!e&&"doubleValue"in e&&isNaN(Number(e.doubleValue))}function Kp(e){return!!e&&"mapValue"in e}function Qp(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){var t={mapValue:{fields:{}}};return kp(e.mapValue.fields,(function(e,n){return t.mapValue.fields[e]=Qp(n)})),t}if(e.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(e.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=Qp(e.arrayValue.values[r]);return n}return Object.assign({},e)}function $p(e){return"__max__"===(((e.mapValue||{}).fields||{}).__type__||{}).stringValue}var Yp=we((function e(t,n){ye(this,e),this.position=t,this.inclusive=n}));
2function Xp(e,t,n){for(var r=0,i=0;i<e.position.length;i++){var a=t[i],o=e.position[i];if(r=a.field.isKeyField()?ap.comparator(ap.fromName(o.referenceValue),n.key):Fp(o,n.data.field(a.field)),"desc"===a.dir&&(r*=-1),0!==r)break}return r}function Jp(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(var n=0;n<e.position.length;n++)if(!Dp(e.position[n],t.position[n]))return!1;return!0}var Zp=we((function e(){ye(this,e)})),ev=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this)).field=e,a.op=r,a.value=i,a}return we(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return"!="===this.op?null!==t&&this.matchesComparison(Fp(t,this.value)):null!==t&&Lp(this.value)===Lp(t)&&this.matchesComparison(Fp(t,this.value))}},{key:"matchesComparison",value:function(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return 0===e;case"!=":return 0!==e;case">":return e>0;case">=":return e>=0;default:return Lh()}}},{key:"isInequality",value:function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}},{key:"getFlattenedFilters",value:function(){return[this]}},{key:"getFilters",value:function(){return[this]}},{key:"getFirstInequalityField",value:function(){return this.isInequality()?this.field:null}}],[{key:"create",value:function(e,t,r){return e.isKeyField()?"in"===t||"not-in"===t?this.createKeyFieldInFilter(e,t,r):new uv(e,t,r):"array-contains"===t?new dv(e,r):"in"===t?new hv(e,r):"not-in"===t?new pv(e,r):"array-contains-any"===t?new vv(e,r):new n(e,t,r)}},{key:"createKeyFieldInFilter",value:function(e,t,n){return"in"===t?new cv(e,n):new lv(e,n)}}]),n}(Zp),tv=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).filters=e,i.op=r,i.ht=null,i}return we(n,[{key:"matches",value:function(e){return nv(this)?void 0===this.filters.find((function(t){return!t.matches(e)})):void 0!==this.filters.find((function(t){return t.matches(e)}))}},{key:"getFlattenedFilters",value:function(){return null!==this.ht||(this.ht=this.filters.reduce((function(e,t){return e.concat(t.getFlattenedFilters())}),[])),this.ht}},{key:"getFilters",value:function(){return Object.assign([],this.filters)}},{key:"getFirstInequalityField",value:function(){var e=this.lt((function(e){return e.isInequality()}));return null!==e?e.field:null}},{key:"lt",value:function(e){var t,n=he(this.getFlattenedFilters());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e(r))return r}}catch(i){n.e(i)}finally{n.f()}return null}}],[{key:"create",value:function(e,t){return new n(e,t)}}]),n}(Zp);function nv(e){return"and"===e.op}function rv(e){return iv(e)&&nv(e)}function iv(e){var t,n=he(e.filters);try{for(n.s();!(t=n.n()).done;){if(t.value instanceof tv)return!1}}catch(r){n.e(r)}finally{n.f()}return!0}function av(e){if(e instanceof ev)return e.field.canonicalString()+e.op.toString()+Up(e.value);var t=e.filters.map((function(e){return av(e)})).join(",");return"".concat(e.op,"(").concat(t,")")}function ov(e,t){return e instanceof ev?function(e,t){return t instanceof ev&&e.op===t.op&&e.field.isEqual(t.field)&&Dp(e.value,t.value)}(e,t):e instanceof tv?function(e,t){return t instanceof tv&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce((function(e,n,r){return e&&ov(n,t.filters[r])}),!0)}(e,t):void Lh()}function sv(e){return e instanceof ev?function(e){return"".concat(e.field.canonicalString()," ").concat(e.op," ").concat(Up(e.value))}(e):e instanceof tv?function(e){return e.op.toString()+" {"+e.getFilters().map(sv).join(" ,")+"}"}(e):"Filter"}var uv=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this,e,r,i)).key=ap.fromName(i.referenceValue),a}return we(n,[{key:"matches",value:function(e){var t=ap.comparator(e.key,this.key);return this.matchesComparison(t)}}]),n}(ev),cv=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e,"in",r)).keys=fv("in",r),i}return we(n,[{key:"matches",value:function(e){return this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(ev),lv=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e,"not-in",r)).keys=fv("not-in",r),i}return we(n,[{key:"matches",value:function(e){return!this.keys.some((function(t){return t.isEqual(e.key)}))}}]),n}(ev);function fv(e,t){var n;return((null===(n=t.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(e){return ap.fromName(e.referenceValue)}))}var dv=function(e){ue(n,e);var t=de(n);function n(e,r){return ye(this,n),t.call(this,e,"array-contains",r)}return we(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return Hp(t)&&Mp(t.arrayValue,this.value)}}]),n}(ev),hv=function(e){ue(n,e);var t=de(n);function n(e,r){return ye(this,n),t.call(this,e,"in",r)}return we(n,[{key:"matches",value:function(e){var t=e.data.field(this.field);return null!==t&&Mp(this.value.arrayValue,t)}}]),n}(ev),pv=function(e){ue(n,e);var t=de(n);function n(e,r){return ye(this,n),t.call(this,e,"not-in",r)}return we(n,[{key:"matches",value:function(e){if(Mp(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var t=e.data.field(this.field);return null!==t&&!Mp(this.value.arrayValue,t)}}]),n}(ev),vv=function(e){ue(n,e);var t=de(n);function n(e,r){return ye(this,n),t.call(this,e,"array-contains-any",r)}return we(n,[{key:"matches",value:function(e){var t=this,n=e.data.field(this.field);return!(!Hp(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(e){return Mp(t.value.arrayValue,e)}))}}]),n}(ev),mv=we((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc";ye(this,e),this.field=t,this.dir=n}));function yv(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}var gv=function(){function e(t,n){ye(this,e),this.comparator=t,this.root=n||wv.EMPTY}return we(e,[{key:"insert",value:function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,wv.BLACK,null,
2null))}},{key:"remove",value:function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,wv.BLACK,null,null))}},{key:"get",value:function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}},{key:"indexOf",value:function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}},{key:"isEmpty",value:function(){return this.root.isEmpty()}},{key:"size",get:function(){return this.root.size}},{key:"minKey",value:function(){return this.root.minKey()}},{key:"maxKey",value:function(){return this.root.maxKey()}},{key:"inorderTraversal",value:function(e){return this.root.inorderTraversal(e)}},{key:"forEach",value:function(e){this.inorderTraversal((function(t,n){return e(t,n),!1}))}},{key:"toString",value:function(){var e=[];return this.inorderTraversal((function(t,n){return e.push("".concat(t,":").concat(n)),!1})),"{".concat(e.join(", "),"}")}},{key:"reverseTraversal",value:function(e){return this.root.reverseTraversal(e)}},{key:"getIterator",value:function(){return new bv(this.root,null,this.comparator,!1)}},{key:"getIteratorFrom",value:function(e){return new bv(this.root,e,this.comparator,!1)}},{key:"getReverseIterator",value:function(){return new bv(this.root,null,this.comparator,!0)}},{key:"getReverseIteratorFrom",value:function(e){return new bv(this.root,e,this.comparator,!0)}}]),e}(),bv=function(){function e(t,n,r,i){ye(this,e),this.isReverse=i,this.nodeStack=[];for(var a=1;!t.isEmpty();)if(a=n?r(t.key,n):1,n&&i&&(a*=-1),a<0)t=this.isReverse?t.left:t.right;else{if(0===a){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return we(e,[{key:"getNext",value:function(){var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}},{key:"hasNext",value:function(){return this.nodeStack.length>0}},{key:"peek",value:function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}]),e}(),wv=function(){function e(t,n,r,i,a){ye(this,e),this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=a?a:e.EMPTY,this.size=this.left.size+1+this.right.size}return we(e,[{key:"copy",value:function(t,n,r,i,a){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)}},{key:"isEmpty",value:function(){return!1}},{key:"inorderTraversal",value:function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}},{key:"reverseTraversal",value:function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}},{key:"min",value:function(){return this.left.isEmpty()?this:this.left.min()}},{key:"minKey",value:function(){return this.min().key}},{key:"maxKey",value:function(){return this.right.isEmpty()?this.key:this.right.maxKey()}},{key:"insert",value:function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()}},{key:"removeMin",value:function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()}},{key:"remove",value:function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()}},{key:"isRed",value:function(){return this.color}},{key:"fixUp",value:function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}},{key:"moveRedLeft",value:function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e}},{key:"moveRedRight",value:function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e}},{key:"rotateLeft",value:function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}},{key:"rotateRight",value:function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}},{key:"colorFlip",value:function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}},{key:"checkMaxDepth",value:function(){var e=this.check();return Math.pow(2,e)<=this.size+1}},{key:"check",value:function(){if(this.isRed()&&this.left.isRed())throw Lh();if(this.right.isRed())throw Lh();var e=this.left.check();if(e!==this.right.check())throw Lh();return e+(this.isRed()?0:1)}}]),e}();
2wv.EMPTY=null,wv.RED=!0,wv.BLACK=!1,wv.EMPTY=new(function(){function e(){ye(this,e),this.size=0}return we(e,[{key:"key",get:function(){throw Lh()}},{key:"value",get:function(){throw Lh()}},{key:"color",get:function(){throw Lh()}},{key:"left",get:function(){throw Lh()}},{key:"right",get:function(){throw Lh()}},{key:"copy",value:function(e,t,n,r,i){return this}},{key:"insert",value:function(e,t,n){return new wv(e,t)}},{key:"remove",value:function(e,t){return this}},{key:"isEmpty",value:function(){return!0}},{key:"inorderTraversal",value:function(e){return!1}},{key:"reverseTraversal",value:function(e){return!1}},{key:"minKey",value:function(){return null}},{key:"maxKey",value:function(){return null}},{key:"isRed",value:function(){return!1}},{key:"checkMaxDepth",value:function(){return!0}},{key:"check",value:function(){return 0}}]),e}());var kv=function(){function e(t){ye(this,e),this.comparator=t,this.data=new gv(this.comparator)}return we(e,[{key:"has",value:function(e){return null!==this.data.get(e)}},{key:"first",value:function(){return this.data.minKey()}},{key:"last",value:function(){return this.data.maxKey()}},{key:"size",get:function(){return this.data.size}},{key:"indexOf",value:function(e){return this.data.indexOf(e)}},{key:"forEach",value:function(e){this.data.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"forEachInRange",value:function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}},{key:"forEachWhile",value:function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}},{key:"firstAfterOrEqual",value:function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}},{key:"getIterator",value:function(){return new xv(this.data.getIterator())}},{key:"getIteratorFrom",value:function(e){return new xv(this.data.getIteratorFrom(e))}},{key:"add",value:function(e){return this.copy(this.data.remove(e).insert(e,!0))}},{key:"delete",value:function(e){return this.has(e)?this.copy(this.data.remove(e)):this}},{key:"isEmpty",value:function(){return this.data.isEmpty()}},{key:"unionWith",value:function(e){var t=this;return t.size<e.size&&(t=e,e=this),e.forEach((function(e){t=t.add(e)})),t}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(0!==this.comparator(i,a))return!1}return!0}},{key:"toArray",value:function(){var e=[];return this.forEach((function(t){e.push(t)})),e}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){return e.push(t)})),"SortedSet("+e.toString()+")"}},{key:"copy",value:function(t){var n=new e(this.comparator);return n.data=t,n}}]),e}(),xv=function(){function e(t){ye(this,e),this.iter=t}return we(e,[{key:"getNext",value:function(){return this.iter.getNext().key}},{key:"hasNext",value:function(){return this.iter.hasNext()}}]),e}();var _v=function(){function e(t){ye(this,e),this.fields=t,t.sort(ip.comparator)}return we(e,[{key:"unionWith",value:function(t){var n,r=new kv(ip.comparator),i=he(this.fields);try{for(i.s();!(n=i.n()).done;){var a=n.value;r=r.add(a)}}catch(c){i.e(c)}finally{i.f()}var o,s=he(t);try{for(s.s();!(o=s.n()).done;){var u=o.value;r=r.add(u)}}catch(c){s.e(c)}finally{s.f()}return new e(r.toArray())}},{key:"covers",value:function(e){var t,n=he(this.fields);try{for(n.s();!(t=n.n()).done;){if(t.value.isPrefixOf(e))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"isEqual",value:function(e){return Jh(this.fields,e.fields,(function(e,t){return e.isEqual(t)}))}}],[{key:"empty",value:function(){return new e([])}}]),e}(),Sv=function(){function e(t){ye(this,e),this.value=t}return we(e,[{key:"field",value:function(e){if(e.isEmpty())return this.value;for(var t=this.value,n=0;n<e.length-1;++n)if(!Kp(t=(t.mapValue.fields||{})[e.get(n)]))return null;return(t=(t.mapValue.fields||{})[e.lastSegment()])||null}},{key:"set",value:function(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Qp(t)}},{key:"setAll",value:function(e){var t=this,n=ip.emptyPath(),r={},i=[];e.forEach((function(e,a){if(!n.isImmediateParentOf(a)){var o=t.getFieldsMap(n);t.applyChanges(o,r,i),r={},i=[],n=a.popLast()}e?r[a.lastSegment()]=Qp(e):i.push(a.lastSegment())}
2));var a=this.getFieldsMap(n);this.applyChanges(a,r,i)}},{key:"delete",value:function(e){var t=this.field(e.popLast());Kp(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}},{key:"isEqual",value:function(e){return Dp(this.value,e.value)}},{key:"getFieldsMap",value:function(e){var t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(var n=0;n<e.length;++n){var r=t.mapValue.fields[e.get(n)];Kp(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}},{key:"applyChanges",value:function(e,t,n){kp(t,(function(t,n){return e[t]=n}));var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;delete e[a]}}catch(o){i.e(o)}finally{i.f()}}},{key:"clone",value:function(){return new e(Qp(this.value))}}],[{key:"empty",value:function(){return new e({mapValue:{}})}}]),e}();function Ev(e){var t=[];return kp(e.fields,(function(e,n){var r=new ip([e]);if(Kp(n)){var i=Ev(n.mapValue).fields;if(0===i.length)t.push(r);else{var a,o=he(i);try{for(o.s();!(a=o.n()).done;){var s=a.value;t.push(r.child(s))}}catch(u){o.e(u)}finally{o.f()}}}else t.push(r)})),new _v(t)}var Tv=function(){function e(t,n,r,i,a,o,s){ye(this,e),this.key=t,this.documentType=n,this.version=r,this.readTime=i,this.createTime=a,this.data=o,this.documentState=s}return we(e,[{key:"convertToFoundDocument",value:function(e,t){return!this.createTime.isEqual(ep.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}},{key:"convertToNoDocument",value:function(e){return this.version=e,this.documentType=2,this.data=Sv.empty(),this.documentState=0,this}},{key:"convertToUnknownDocument",value:function(e){return this.version=e,this.documentType=3,this.data=Sv.empty(),this.documentState=2,this}},{key:"setHasCommittedMutations",value:function(){return this.documentState=2,this}},{key:"setHasLocalMutations",value:function(){return this.documentState=1,this.version=ep.min(),this}},{key:"setReadTime",value:function(e){return this.readTime=e,this}},{key:"hasLocalMutations",get:function(){return 1===this.documentState}},{key:"hasCommittedMutations",get:function(){return 2===this.documentState}},{key:"hasPendingWrites",get:function(){return this.hasLocalMutations||this.hasCommittedMutations}},{key:"isValidDocument",value:function(){return 0!==this.documentType}},{key:"isFoundDocument",value:function(){return 1===this.documentType}},{key:"isNoDocument",value:function(){return 2===this.documentType}},{key:"isUnknownDocument",value:function(){return 3===this.documentType}},{key:"isEqual",value:function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}},{key:"mutableCopy",value:function(){return new e(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}},{key:"toString",value:function(){return"Document(".concat(this.key,", ").concat(this.version,", ").concat(JSON.stringify(this.data.value),", {createTime: ").concat(this.createTime,"}), {documentType: ").concat(this.documentType,"}), {documentState: ").concat(this.documentState,"})")}}],[{key:"newInvalidDocument",value:function(t){return new e(t,0,ep.min(),ep.min(),ep.min(),Sv.empty(),0)}},{key:"newFoundDocument",value:function(t,n,r,i){return new e(t,1,n,ep.min(),r,i,0)}},{key:"newNoDocument",value:function(t,n){return new e(t,2,n,ep.min(),ep.min(),Sv.empty(),0)}},{key:"newUnknownDocument",value:function(t,n){return new e(t,3,n,ep.min(),ep.min(),Sv.empty(),2)}}]),e}(),Ov=we((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;ye(this,e),this.path=t,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=a,this.startAt=o,this.endAt=s,this.ft=null}));function jv(e){var 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,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null;return new Ov(e,t,n,r,i,a,o)}function Cv(e){var t=Mh(e);if(null===t.ft){var n=t.path.canonicalString();null!==t.collectionGroup&&(n+="|cg:"+t.collectionGroup),n+="|f:",n+=t.filters.map((function(e){return av(e)})).join(","),n+="|ob:",n+=t.orderBy.map((function(e){return function(e){return e.field.canonicalString()+e.dir}(e)})).join(","),_p(t.limit)||(n+="|l:",n+=t.limit),t.startAt&&(n+="|lb:",n+=t.startAt.inclusive?"b:":"a:",n+=t.startAt.position.map((function(e){return Up(e)})).join(",")),t.endAt&&(n+="|ub:",n+=t.endAt.inclusive?"a:":"b:",n+=t.endAt.position.map((function(e){return Up(e)})).join(",")),t.ft=n}return t.ft}function Iv(e,t){if(e.limit!==t.limit)return!1;if(e.orderBy.length!==t.orderBy.length)return!1;for(var n=0;n<e.orderBy.length;n++)if(!yv(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(var r=0;r<e.filters.length;r++)if(!ov(e.filters[r],t.filters[r]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Jp(e.startAt,t.startAt)&&Jp(e.endAt,t.endAt)}function Nv(e){return ap.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}var Av=we((function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"F",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null;ye(this,e),this.path=t,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=a,this.limitType=o,this.startAt=s,this.endAt=u,this.dt=null,this._t=null,this.startAt,this.endAt}));function Pv(e,t,n,r,i,a,o,s){return new Av(e,t,n,r,i,a,o,s)}function Rv(e){return new Av(e)}function Lv(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 Dv(e){return e.explicitOrderBy.length>0?e.explicitOrderBy[0].field:null}function Mv(e){var t,n=he(e.filters);try{for(n.s();!(t=n.n()).done;){var r=t.value.getFirstInequalityField();if(null!==r)return r}}catch(i){n.e(i)}finally{n.f()}return null}function Fv(e){return null!==e.collectionGroup}function Vv(e){var t=Mh(e);if(null===t.dt){t.dt=[];var n=Mv(t),r=Dv(t);if(null!==n&&null===r)n.isKeyField()||t.dt.push(new mv(n)),t.dt.push(new mv(ip.keyField(),"asc"));else{var i,a=!1,o=he(t.explicitOrderBy);try{for(o.s();!(i=o.n()).done;){var s=i.value;t.dt.push(s),s.field.isKeyField()&&(a=!0)}}catch(c){o.e(c)}finally{o.f()}if(!a){var u=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";t.dt.push(new mv(ip.keyField(),u))}}}return t.dt}function Uv(e){var t=Mh(e);if(!t._t)if("F"===t.limitType)t._t=jv(t.path,t.collectionGroup,Vv(t),t.filters,t.limit,t.startAt,t.endAt);else{var n,r=[],i=he(Vv(t));try{for(i.s();!(n=i.n()).done;){var a=n.value,o="desc"===a.dir?"asc":"desc";r.push(new mv(a.field,o))}}catch(c){i.e(c)}finally{i.f()}var s=t.endAt?new Yp(t.endAt.position,t.endAt.inclusive):null,u=t.
2startAt?new Yp(t.startAt.position,t.startAt.inclusive):null;t._t=jv(t.path,t.collectionGroup,r,t.filters,t.limit,s,u)}return t._t}function zv(e,t){t.getFirstInequalityField(),Mv(e);var n=e.filters.concat([t]);return new Av(e.path,e.collectionGroup,e.explicitOrderBy.slice(),n,e.limit,e.limitType,e.startAt,e.endAt)}function Bv(e,t,n){return new Av(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function qv(e,t){return Iv(Uv(e),Uv(t))&&e.limitType===t.limitType}function Hv(e){return"".concat(Cv(Uv(e)),"|lt:").concat(e.limitType)}function Wv(e){return"Query(target=".concat(function(e){var t=e.path.canonicalString();return null!==e.collectionGroup&&(t+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(t+=", filters: [".concat(e.filters.map((function(e){return sv(e)})).join(", "),"]")),_p(e.limit)||(t+=", limit: "+e.limit),e.orderBy.length>0&&(t+=", orderBy: [".concat(e.orderBy.map((function(e){return function(e){return"".concat(e.field.canonicalString()," (").concat(e.dir,")")}(e)})).join(", "),"]")),e.startAt&&(t+=", startAt: ",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map((function(e){return Up(e)})).join(",")),e.endAt&&(t+=", endAt: ",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map((function(e){return Up(e)})).join(",")),"Target(".concat(t,")")}(Uv(e)),"; limitType=").concat(e.limitType,")")}function Gv(e,t){return t.isFoundDocument()&&function(e,t){var n=t.key.path;return null!==e.collectionGroup?t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n):ap.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n)}(e,t)&&function(e,t){var n,r=he(Vv(e));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.field.isKeyField()&&null===t.data.field(i.field))return!1}}catch(a){r.e(a)}finally{r.f()}return!0}(e,t)&&function(e,t){var n,r=he(e.filters);try{for(r.s();!(n=r.n()).done;){if(!n.value.matches(t))return!1}}catch(i){r.e(i)}finally{r.f()}return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){var r=Xp(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,Vv(e),t))&&!(e.endAt&&!function(e,t,n){var r=Xp(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,Vv(e),t))}(e,t)}function Kv(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Qv(e){return function(t,n){var r,i=!1,a=he(Vv(e));try{for(a.s();!(r=a.n()).done;){var o=r.value,s=$v(o,t,n);if(0!==s)return s;i=i||o.field.isKeyField()}}catch(u){a.e(u)}finally{a.f()}return 0}}function $v(e,t,n){var r=e.field.isKeyField()?ap.comparator(t.key,n.key):function(e,t,n){var r=t.data.field(e),i=n.data.field(e);return null!==r&&null!==i?Fp(r,i):Lh()}(e.field,t,n);switch(e.dir){case"asc":return r;case"desc":return-1*r;default:return Lh()}}function Yv(e,t){if(e.wt){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:Sp(t)?"-0":t}}function Xv(e){return{integerValue:""+e}}function Jv(e,t){return Ep(t)?Xv(t):Yv(e,t)}var Zv=we((function e(){ye(this,e),this._=void 0}));function em(e,t,n){return e instanceof rm?function(e,t){var n={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof im?am(e,t):e instanceof om?sm(e,t):function(e,t){var n=nm(e,t),r=cm(n)+cm(e.gt);return qp(n)&&qp(e.gt)?Xv(r):Yv(e.yt,r)}(e,t)}function tm(e,t,n){return e instanceof im?am(e,t):e instanceof om?sm(e,t):n}function nm(e,t){return e instanceof um?qp(n=t)||function(e){return!!e&&"doubleValue"in e}(n)?t:{integerValue:0}:null;var n}var rm=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n)}(Zv),im=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this)).elements=e,r}return we(n)}(Zv);function am(e,t){var n,r=lm(t),i=he(e.elements);try{var a=function(){var e=n.value;r.some((function(t){return Dp(t,e)}))||r.push(e)};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return{arrayValue:{values:r}}}var om=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this)).elements=e,r}return we(n)}(Zv);function sm(e,t){var n,r=lm(t),i=he(e.elements);try{var a=function(){var e=n.value;r=r.filter((function(t){return!Dp(t,e)}))};for(i.s();!(n=i.n()).done;)a()}catch(o){i.e(o)}finally{i.f()}return{arrayValue:{values:r}}}var um=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).yt=e,i.gt=r,i}return we(n)}(Zv);function cm(e){return Cp(e.integerValue||e.doubleValue)}function lm(e){return Hp(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}var fm=we((function e(t,n){ye(this,e),this.field=t,this.transform=n}));var dm=we((function e(t,n){ye(this,e),this.version=t,this.transformResults=n})),hm=function(){function e(t,n){ye(this,e),this.updateTime=t,this.exists=n}return we(e,[{key:"isNone",get:function(){return void 0===this.updateTime&&void 0===this.exists}},{key:"isEqual",value:function(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}],[{key:"none",value:function(){return new e}},{key:"exists",value:function(t){return new e(void 0,t)}},{key:"updateTime",value:function(t){return new e(t)}}]),e}();function pm(e,t){return void 0!==e.updateTime?t.isFoundDocument()&&t.version.isEqual(e.updateTime):void 0===e.exists||e.exists===t.isFoundDocument()}var vm=we((function e(){ye(this,e)}));function mm(e,t){if(!e.hasLocalMutations||t&&0===t.fields.length)return null;if(null===t)return e.isNoDocument()?new jm(e.key,hm.none()):new km(e.key,e.data,hm.none());var n,r=e.data,i=Sv.empty(),a=new kv(ip.comparator),o=he(t.fields);try{for(o.s();!(n=o.n()).done;){var s=n.value;if(!a.has(s)){var u=r.field(s);null===u&&s.length>1&&(s=s.popLast(),u=r.field(s)),null===u?i.delete(s):i.set(s,u),a=a.add(s)}}}catch(c){o.e(c)}finally{o.f()}return new xm(e.key,i,new _v(a.toArray()),hm.none())}function ym(e,t,n){e instanceof km?function(e,t,n){var r=e.value.clone(),i=Sm(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}
2(e,t,n):e instanceof xm?function(e,t,n){if(pm(e.precondition,t)){var r=Sm(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(_m(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else t.convertToUnknownDocument(n.version)}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function gm(e,t,n,r){return e instanceof km?function(e,t,n,r){if(!pm(e.precondition,t))return n;var i=e.value.clone(),a=Em(e.fieldTransforms,r,t);return i.setAll(a),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof xm?function(e,t,n,r){if(!pm(e.precondition,t))return n;var i=Em(e.fieldTransforms,r,t),a=t.data;return a.setAll(_m(e)),a.setAll(i),t.convertToFoundDocument(t.version,a).setHasLocalMutations(),null===n?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((function(e){return e.field})))}(e,t,n,r):function(e,t,n){return pm(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function bm(e,t){var n,r=null,i=he(e.fieldTransforms);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=t.data.field(a.field),s=nm(a.transform,o||null);null!=s&&(null===r&&(r=Sv.empty()),r.set(a.field,s))}}catch(u){i.e(u)}finally{i.f()}return r||null}function wm(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)&&Jh(e,t,(function(e,t){return function(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof im&&t instanceof im||e instanceof om&&t instanceof om?Jh(e.elements,t.elements,Dp):e instanceof um&&t instanceof um?Dp(e.gt,t.gt):e instanceof rm&&t instanceof rm}(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))}var km=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];
2return ye(this,n),(a=t.call(this)).key=e,a.value=r,a.precondition=i,a.fieldTransforms=o,a.type=0,a}return we(n,[{key:"getFieldMask",value:function(){return null}}]),n}(vm),xm=function(e){ue(n,e);var t=de(n);function n(e,r,i,a){var o,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];return ye(this,n),(o=t.call(this)).key=e,o.data=r,o.fieldMask=i,o.precondition=a,o.fieldTransforms=s,o.type=1,o}return we(n,[{key:"getFieldMask",value:function(){return this.fieldMask}}]),n}(vm);function _m(e){var t=new Map;return e.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=e.data.field(n);t.set(n,r)}})),t}function Sm(e,t,n){var r=new Map;Dh(e.length===n.length);for(var i=0;i<n.length;i++){var a=e[i],o=a.transform,s=t.data.field(a.field);r.set(a.field,tm(o,s,n[i]))}return r}function Em(e,t,n){var r,i=new Map,a=he(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.transform,u=n.data.field(o.field);i.set(o.field,em(s,u,t))}}catch(c){a.e(c)}finally{a.f()}return i}var Tm,Om,jm=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=2,i.fieldTransforms=[],i}return we(n,[{key:"getFieldMask",value:function(){return null}}]),n}(vm),Cm=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).key=e,i.precondition=r,i.type=3,i.fieldTransforms=[],i}return we(n,[{key:"getFieldMask",value:function(){return null}}]),n}(vm),Im=we((function e(t){ye(this,e),this.count=t}));function Nm(e){switch(e){default:return Lh();case Fh.CANCELLED:case Fh.UNKNOWN:case Fh.DEADLINE_EXCEEDED:case Fh.RESOURCE_EXHAUSTED:case Fh.INTERNAL:case Fh.UNAVAILABLE:case Fh.UNAUTHENTICATED:return!1;case Fh.INVALID_ARGUMENT:case Fh.NOT_FOUND:case Fh.ALREADY_EXISTS:case Fh.PERMISSION_DENIED:case Fh.FAILED_PRECONDITION:case Fh.ABORTED:case Fh.OUT_OF_RANGE:case Fh.UNIMPLEMENTED:case Fh.DATA_LOSS:return!0}}function Am(e){if(void 0===e)return Ah("GRPC error has no .code"),Fh.UNKNOWN;switch(e){case Tm.OK:return Fh.OK;case Tm.CANCELLED:return Fh.CANCELLED;case Tm.UNKNOWN:return Fh.UNKNOWN;case Tm.DEADLINE_EXCEEDED:return Fh.DEADLINE_EXCEEDED;case Tm.RESOURCE_EXHAUSTED:return Fh.RESOURCE_EXHAUSTED;case Tm.INTERNAL:return Fh.INTERNAL;case Tm.UNAVAILABLE:return Fh.UNAVAILABLE;case Tm.UNAUTHENTICATED:return Fh.UNAUTHENTICATED;case Tm.INVALID_ARGUMENT:return Fh.INVALID_ARGUMENT;case Tm.NOT_FOUND:return Fh.NOT_FOUND;case Tm.ALREADY_EXISTS:return Fh.ALREADY_EXISTS;case Tm.PERMISSION_DENIED:return Fh.PERMISSION_DENIED;case Tm.FAILED_PRECONDITION:return Fh.FAILED_PRECONDITION;case Tm.ABORTED:return Fh.ABORTED;case Tm.OUT_OF_RANGE:return Fh.OUT_OF_RANGE;case Tm.UNIMPLEMENTED:return Fh.UNIMPLEMENTED;case Tm.DATA_LOSS:return Fh.DATA_LOSS;default:return Lh()}}(Om=Tm||(Tm={}))[Om.OK=0]="OK",Om[Om.CANCELLED=1]="CANCELLED",Om[Om.UNKNOWN=2]="UNKNOWN",Om[Om.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Om[Om.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Om[Om.NOT_FOUND=5]="NOT_FOUND",Om[Om.ALREADY_EXISTS=6]="ALREADY_EXISTS",Om[Om.PERMISSION_DENIED=7]="PERMISSION_DENIED",Om[Om.UNAUTHENTICATED=16]="UNAUTHENTICATED",Om[Om.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Om[Om.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Om[Om.ABORTED=10]="ABORTED",Om[Om.OUT_OF_RANGE=11]="OUT_OF_RANGE",Om[Om.UNIMPLEMENTED=12]="UNIMPLEMENTED",Om[Om.INTERNAL=13]="INTERNAL",Om[Om.UNAVAILABLE=14]="UNAVAILABLE",Om[Om.DATA_LOSS=15]="DATA_LOSS";var Pm=function(){function e(t,n){ye(this,e),this.mapKeyFn=t,this.equalsFn=n,this.inner={},this.innerSize=0}return we(e,[{key:"get",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n){var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=ne(r.value,2),o=a[0],s=a[1];if(this.equalsFn(o,e))return s}}catch(u){i.e(u)}finally{i.f()}}}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"set",value:function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0===r)return this.inner[n]=[[e,t]],void this.innerSize++;for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return void(r[i]=[e,t]);r.push([e,t]),this.innerSize++}},{key:"delete",value:function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return 1===n.length?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}}
2,{key:"forEach",value:function(e){kp(this.inner,(function(t,n){var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=ne(r.value,2),o=a[0],s=a[1];e(o,s)}}catch(u){i.e(u)}finally{i.f()}}))}},{key:"isEmpty",value:function(){return xp(this.inner)}},{key:"size",value:function(){return this.innerSize}}]),e}(),Rm=new gv(ap.comparator);function Lm(){return Rm}var Dm=new gv(ap.comparator);function Mm(){for(var e=Dm,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];e=e.insert(o.key,o)}return e}function Fm(e){var t=Dm;return e.forEach((function(e,n){return t=t.insert(e,n.overlayedDocument)})),t}function Vm(){return zm()}function Um(){return zm()}function zm(){return new Pm((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)}))}var Bm=new gv(ap.comparator),qm=new kv(ap.comparator);function Hm(){for(var e=qm,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];e=e.add(o)}return e}var Wm=new kv(Xh);function Gm(){return Wm}var Km=function(){function e(t,n,r,i,a){ye(this,e),this.snapshotVersion=t,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=a}return we(e,null,[{key:"createSynthesizedRemoteEventForCurrentChange",value:function(t,n,r){var i=new Map;return i.set(t,Qm.createSynthesizedTargetChangeForCurrentChange(t,n,r)),new e(ep.min(),i,Gm(),Lm(),Hm())}}]),e}(),Qm=function(){function e(t,n,r,i,a){ye(this,e),this.resumeToken=t,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=a}return we(e,null,[{key:"createSynthesizedTargetChangeForCurrentChange",value:function(t,n,r){return new e(r,n,Hm(),Hm(),Hm())}}]),e}(),$m=we((function e(t,n,r,i){ye(this,e),this.It=t,this.removedTargetIds=n,this.key=r,this.Tt=i})),Ym=we((function e(t,n){ye(this,e),this.targetId=t,this.Et=n})),Xm=we((function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tp.EMPTY_BYTE_STRING,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ye(this,e),this.state=t,this.targetIds=n,this.resumeToken=r,this.cause=i})),Jm=function(){function e(){ye(this,e),this.At=0,this.Rt=ty(),this.bt=Tp.EMPTY_BYTE_STRING,this.Pt=!1,this.vt=!0}return we(e,[{key:"current",get:function(){return this.Pt}},{key:"resumeToken",get:function(){return this.bt}},{key:"Vt",get:function(){return 0!==this.At}},{key:"St",get:function(){return this.vt}},{key:"Dt",value:function(e){e.approximateByteSize()>0&&(this.vt=!0,this.bt=e)}},{key:"Ct",value:function(){var e=Hm(),t=Hm(),n=Hm();return this.Rt.forEach((function(r,i){switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:Lh()}})),new Qm(this.bt,this.Pt,e,t,n)}},{key:"xt",value:function(){this.vt=!1,this.Rt=ty()}},{key:"Nt",value:function(e,t){this.vt=!0,this.Rt=this.Rt.insert(e,t)}},{key:"kt",value:function(e){this.vt=!0,this.Rt=this.Rt.remove(e)}},{key:"Ot",value:function(){this.At+=1}},{key:"Mt",value:function(){this.At-=1}},{key:"Ft",value:function(){this.vt=!0,this.Pt=!0}}]),e}(),Zm=function(){function e(t){ye(this,e),this.$t=t,this.Bt=new Map,this.Lt=Lm(),this.qt=ey(),this.Ut=new kv(Xh)}return we(e,[{key:"Kt",value:function(e){var t,n=he(e.It);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.Tt&&e.Tt.isFoundDocument()?this.Gt(r,e.Tt):this.Qt(r,e.key,e.Tt)}}catch(s){n.e(s)}finally{n.f()}var i,a=he(e.removedTargetIds);try{for(a.s();!(i=a.n()).done;){var o=i.value;this.Qt(o,e.key,e.Tt)}}catch(s){a.e(s)}finally{a.f()}}},{key:"jt",value:function(e){var t=this;this.forEachTarget(e,(function(n){var r=t.Wt(n);switch(e.state){case 0:t.zt(n)&&r.Dt(e.resumeToken);break;case 1:r.Mt(),r.Vt||r.xt(),r.Dt(e.resumeToken);break;case 2:r.Mt(),r.Vt||t.removeTarget(n);break;case 3:t.zt(n)&&(r.Ft(),r.Dt(e.resumeToken));break;case 4:t.zt(n)&&(t.Ht(n),r.Dt(e.resumeToken));break;default:Lh()}}))}},{key:"forEachTarget",value:function(e,t){var n=this;e.targetIds.length>0?e.targetIds.forEach(t):this.Bt.forEach((function(e,r){n.zt(r)&&t(r)}))}},{key:"Jt",value:function(e){var t=e.targetId,n=e.Et.count,r=this.Yt(t);if(r){var i=r.target;if(Nv(i))if(0===n){var a=new ap(i.path);this.Qt(t,a,Tv.newNoDocument(a,ep.min()))}else Dh(1===n);else this.Xt(t)!==n&&(this.Ht(t),this.Ut=this.Ut.add(t))}}},{key:"Zt",value:function(e){var t=this,n=new Map;this.Bt.forEach((function(r,i){var a=t.Yt(i);if(a){if(r.current&&Nv(a.target)){var o=new ap(a.target.path);null!==t.Lt.get(o)||t.te(i,o)||t.Qt(i,o,Tv.newNoDocument(o,e))}r.St&&(n.set(i,r.Ct()),r.xt())}}));var r=Hm();this.qt.forEach((function(e,n){var i=!0;
2n.forEachWhile((function(e){var n=t.Yt(e);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(e))})),this.Lt.forEach((function(t,n){return n.setReadTime(e)}));var i=new Km(e,n,this.Ut,this.Lt,r);return this.Lt=Lm(),this.qt=ey(),this.Ut=new kv(Xh),i}},{key:"Gt",value:function(e,t){if(this.zt(e)){var n=this.te(e,t.key)?2:0;this.Wt(e).Nt(t.key,n),this.Lt=this.Lt.insert(t.key,t),this.qt=this.qt.insert(t.key,this.ee(t.key).add(e))}}},{key:"Qt",value:function(e,t,n){if(this.zt(e)){var r=this.Wt(e);this.te(e,t)?r.Nt(t,1):r.kt(t),this.qt=this.qt.insert(t,this.ee(t).delete(e)),n&&(this.Lt=this.Lt.insert(t,n))}}},{key:"removeTarget",value:function(e){this.Bt.delete(e)}},{key:"Xt",value:function(e){var t=this.Wt(e).Ct();return this.$t.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}},{key:"Ot",value:function(e){this.Wt(e).Ot()}},{key:"Wt",value:function(e){var t=this.Bt.get(e);return t||(t=new Jm,this.Bt.set(e,t)),t}},{key:"ee",value:function(e){var t=this.qt.get(e);return t||(t=new kv(Xh),this.qt=this.qt.insert(e,t)),t}},{key:"zt",value:function(e){var t=null!==this.Yt(e);return t||Nh("WatchChangeAggregator","Detected inactive target",e),t}},{key:"Yt",value:function(e){var t=this.Bt.get(e);return t&&t.Vt?null:this.$t.ne(e)}},{key:"Ht",value:function(e){var t=this;this.Bt.set(e,new Jm),this.$t.getRemoteKeysForTarget(e).forEach((function(n){t.Qt(e,n,null)}))}},{key:"te",value:function(e,t){return this.$t.getRemoteKeysForTarget(e).has(t)}}]),e}();function ey(){return new gv(ap.comparator)}function ty(){return new gv(ap.comparator)}var ny={asc:"ASCENDING",desc:"DESCENDING"},ry={"<":"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"},iy={and:"AND",or:"OR"},ay=we((function e(t,n){ye(this,e),this.databaseId=t,this.wt=n}));function oy(e,t){return e.wt?"".concat(new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z",""),".").concat(("000000000"+t.nanoseconds).slice(-9),"Z"):{seconds:""+t.seconds,nanos:t.nanoseconds}}function sy(e,t){return e.wt?t.toBase64():t.toUint8Array()}function uy(e,t){return oy(e,t.toTimestamp())}function cy(e){return Dh(!!e),ep.fromTimestamp(function(e){var t=jp(e);return new Zh(t.seconds,t.nanos)}(e))}function ly(e,t){return function(e){return new np(["projects",e.projectId,"databases",e.database])}(e).child("documents").child(t).canonicalString()}function fy(e){var t=np.fromString(e);return Dh(Ny(t)),t}function dy(e,t){return ly(e.databaseId,t.path)}function hy(e,t){var n=fy(t);if(n.get(1)!==e.databaseId.projectId)throw new Vh(Fh.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 Vh(Fh.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+e.databaseId.database);return new ap(yy(n))}function py(e,t){return ly(e.databaseId,t)}function vy(e){var t=fy(e);return 4===t.length?np.emptyPath():yy(t)}function my(e){return new np(["projects",e.databaseId.projectId,"databases",e.databaseId.database]).canonicalString()}function yy(e){return Dh(e.length>4&&"documents"===e.get(4)),e.popFirst(5)}function gy(e,t,n){return{name:dy(e,t),fields:n.value.mapValue.fields}}function by(e,t){var n;if(t instanceof km)n={update:gy(e,t.key,t.value)};else if(t instanceof jm)n={delete:dy(e,t.key)};else if(t instanceof xm)n={update:gy(e,t.key,t.data),updateMask:Iy(t.fieldMask)};else{if(!(t instanceof Cm))return Lh();n={verify:dy(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((function(e){return function(e,t){var n=t.transform;if(n instanceof rm)return{fieldPath:t.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof im)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof om)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof um)return{fieldPath:t.field.canonicalString(),increment:n.gt};throw Lh()}(0,e)}))),t.precondition.isNone||(n.currentDocument=function(e,t){return void 0!==t.updateTime?{updateTime:uy(e,t.updateTime)}:void 0!==t.exists?{exists:t.exists}:Lh()}(e,t.precondition)),n}function wy(e,t){return{documents:[py(e,t.path)]}}function ky(e,t){var n={structuredQuery:{}},r=t.path;null!==t.collectionGroup?(n.parent=py(e,r),n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(n.parent=py(e,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(e){if(0!==e.length)return Cy(tv.create(e,"and"))}(t.filters);i&&(n.structuredQuery.where=i);var a=function(e){if(0!==e.length)return e.map((function(e){return function(e){return{field:Oy(e.field),direction:Sy(e.dir)}}(e)}))}(t.orderBy);a&&(n.structuredQuery.orderBy=a);var o,s=function(e,t){return e.wt||_p(t)?t:{value:t}}(e,t.limit);return null!==s&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt={before:(o=t.startAt).inclusive,values:o.position}),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),n}
2function xy(e){var t=vy(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Dh(1===r);var a=n.from[0];a.allDescendants?i=a.collectionId:t=t.child(a.collectionId)}var o=[];n.where&&(o=function(e){var t=_y(e);return t instanceof tv&&rv(t)?t.getFilters():[t]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(e){return function(e){return new mv(jy(e.field),function(e){switch(e){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(e.direction))}(e)})));var u=null;n.limit&&(u=function(e){var t;return _p(t="object"==typeof e?e.value:e)?null:t}(n.limit));var c=null;n.startAt&&(c=function(e){var t=!!e.before,n=e.values||[];return new Yp(n,t)}(n.startAt));var l=null;return n.endAt&&(l=function(e){var t=!e.before,n=e.values||[];return new Yp(n,t)}(n.endAt)),Pv(t,i,s,o,u,"F",c,l)}function _y(e){return void 0!==e.unaryFilter?function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=jy(e.unaryFilter.field);return ev.create(t,"==",{doubleValue:NaN});case"IS_NULL":var n=jy(e.unaryFilter.field);return ev.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=jy(e.unaryFilter.field);return ev.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=jy(e.unaryFilter.field);return ev.create(i,"!=",{nullValue:"NULL_VALUE"});default:return Lh()}}(e):void 0!==e.fieldFilter?function(e){return ev.create(jy(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 Lh()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):void 0!==e.compositeFilter?function(e){return tv.create(e.compositeFilter.filters.map((function(e){return _y(e)})),function(e){switch(e){case"AND":return"and";case"OR":return"or";default:return Lh()}}(e.compositeFilter.op))}(e):Lh()}function Sy(e){return ny[e]}function Ey(e){return ry[e]}function Ty(e){return iy[e]}function Oy(e){return{fieldPath:e.canonicalString()}}function jy(e){return ip.fromServerFormat(e.fieldPath)}function Cy(e){return e instanceof ev?function(e){if("=="===e.op){if(Gp(e.value))return{unaryFilter:{field:Oy(e.field),op:"IS_NAN"}};if(Wp(e.value))return{unaryFilter:{field:Oy(e.field),op:"IS_NULL"}}}else if("!="===e.op){if(Gp(e.value))return{unaryFilter:{field:Oy(e.field),op:"IS_NOT_NAN"}};if(Wp(e.value))return{unaryFilter:{field:Oy(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Oy(e.field),op:Ey(e.op),value:e.value}}}(e):e instanceof tv?function(e){var t=e.getFilters().map((function(e){return Cy(e)}));return 1===t.length?t[0]:{compositeFilter:{op:Ty(e.op),filters:t}}}(e):Lh()}function Iy(e){var t=[];return e.fields.forEach((function(e){return t.push(e.canonicalString())})),{fieldPaths:t}}function Ny(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)}var Ay=["mutationQueues","mutations","documentMutations","remoteDocuments","targets","owner","targetGlobal","targetDocuments"].concat(["clientMetadata"]).concat(["remoteDocumentGlobal"]).concat(["collectionParents"]).concat(["bundles","namedQueries"]),Py=([].concat(ke(Ay),["documentOverlays"]),["mutationQueues","mutations","documentMutations","remoteDocumentsV14","targets","owner","targetGlobal","targetDocuments","clientMetadata","remoteDocumentGlobal","collectionParents","bundles","namedQueries","documentOverlays"]),Ry=Py;[].concat(Ry,["indexConfiguration","indexState","indexEntries"]);var Ly=function(){function e(t,n,r,i){ye(this,e),this.batchId=t,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}return we(e,[{key:"applyToRemoteDocument",value:function(e,t){for(var n=t.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e.key)&&ym(i,e,n[r])}}},{key:"applyToLocalView",value:function(e,t){var n,r=he(this.baseMutations);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.key.isEqual(e.key)&&(t=gm(i,e,t,this.localWriteTime))}}catch(u){r.e(u)}finally{r.f()}var a,o=he(this.mutations);try{for(o.s();!(a=o.n()).done;){var s=a.value;
2s.key.isEqual(e.key)&&(t=gm(s,e,t,this.localWriteTime))}}catch(u){o.e(u)}finally{o.f()}return t}},{key:"applyToLocalDocumentSet",value:function(e,t){var n=this,r=Um();return this.mutations.forEach((function(i){var a=e.get(i.key),o=a.overlayedDocument,s=n.applyToLocalView(o,a.mutatedFields),u=mm(o,s=t.has(i.key)?null:s);null!==u&&r.set(i.key,u),o.isValidDocument()||o.convertToNoDocument(ep.min())})),r}},{key:"keys",value:function(){return this.mutations.reduce((function(e,t){return e.add(t.key)}),Hm())}},{key:"isEqual",value:function(e){return this.batchId===e.batchId&&Jh(this.mutations,e.mutations,(function(e,t){return wm(e,t)}))&&Jh(this.baseMutations,e.baseMutations,(function(e,t){return wm(e,t)}))}}]),e}(),Dy=function(){function e(t,n,r,i){ye(this,e),this.batch=t,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}return we(e,null,[{key:"from",value:function(t,n,r){Dh(t.mutations.length===r.length);for(var i=Bm,a=t.mutations,o=0;o<a.length;o++)i=i.insert(a[o].key,r[o].version);return new e(t,n,r,i)}}]),e}(),My=function(){function e(t,n){ye(this,e),this.largestBatchId=t,this.mutation=n}return we(e,[{key:"getKey",value:function(){return this.mutation.key}},{key:"isEqual",value:function(e){return null!==e&&this.mutation===e.mutation}},{key:"toString",value:function(){return"Overlay{\n      largestBatchId: ".concat(this.largestBatchId,",\n      mutation: ").concat(this.mutation.toString(),"\n    }")}}]),e}(),Fy=function(){function e(t,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:ep.min(),o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:ep.min(),s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:Tp.EMPTY_BYTE_STRING;ye(this,e),this.target=t,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=a,this.lastLimboFreeSnapshotVersion=o,this.resumeToken=s}return we(e,[{key:"withSequenceNumber",value:function(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)}},{key:"withResumeToken",value:function(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t)}},{key:"withLastLimboFreeSnapshotVersion",value:function(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken)}}]),e}(),Vy=we((function e(t){ye(this,e),this.ie=t}));function Uy(e){var t=xy({parent:e.parent,structuredQuery:e.structuredQuery});return"LAST"===e.limitType?Bv(t,t.limit,"L"):t}var zy=function(){function e(){ye(this,e)}return we(e,[{key:"ue",value:function(e,t){this.ce(e,t),t.ae()}},{key:"ce",value:function(e,t){if("nullValue"in e)this.he(t,5);else if("booleanValue"in e)this.he(t,10),t.le(e.booleanValue?1:0);else if("integerValue"in e)this.he(t,15),t.le(Cp(e.integerValue));else if("doubleValue"in e){var n=Cp(e.doubleValue);isNaN(n)?this.he(t,13):(this.he(t,15),Sp(n)?t.le(0):t.le(n))}else if("timestampValue"in e){var r=e.timestampValue;this.he(t,20),"string"==typeof r?t.fe(r):(t.fe("".concat(r.seconds||"")),t.le(r.nanos||0))}else if("stringValue"in e)this.de(e.stringValue,t),this._e(t);else if("bytesValue"in e)this.he(t,30),t.we(Ip(e.bytesValue)),this._e(t);else if("referenceValue"in e)this.me(e.referenceValue,t);else if("geoPointValue"in e){var i=e.geoPointValue;this.he(t,45),t.le(i.latitude||0),t.le(i.longitude||0)}else"mapValue"in e?$p(e)?this.he(t,Number.MAX_SAFE_INTEGER):(this.ge(e.mapValue,t),this._e(t)):"arrayValue"in e?(this.ye(e.arrayValue,t),this._e(t)):Lh()}},{key:"de",value:function(e,t){this.he(t,25),this.pe(e,t)}},{key:"pe",value:function(e,t){t.fe(e)}},{key:"ge",value:function(e,t){var n=e.fields||{};this.he(t,55);for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];this.de(a,t),this.ce(n[a],t)}}},{key:"ye",value:function(e,t){var n=e.values||[];this.he(t,50);var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;this.ce(a,t)}}catch(o){i.e(o)}finally{i.f()}}},{key:"me",value:function(e,t){var n=this;this.he(t,37),ap.fromName(e).path.forEach((function(e){n.he(t,60),n.pe(e,t)}))}},{key:"he",value:function(e,t){e.le(t)}},{key:"_e",value:function(e){e.le(2)}}]),e}();zy.Ie=new zy;var By=function(){function e(){ye(this,e),this.Je=new qy}return we(e,[{key:"addToCollectionParentIndex",value:function(e,t){return this.Je.add(t),vp.resolve()}},{key:"getCollectionParents",value:function(e,t){return vp.resolve(this.Je.getEntries(t))}},{key:"addFieldIndex",value:function(e,t){return vp.resolve()}},{key:"deleteFieldIndex",value:function(e,t){return vp.resolve()}},{key:"getDocumentsMatchingTarget",value:function(e,t){return vp.resolve(null)}},{key:"getIndexType",value:function(e,t){return vp.resolve(0)}},{key:"getFieldIndexes",value:function(e,t){return vp.resolve([])}},{key:"getNextCollectionGroupToUpdate",value:function(e){return vp.resolve(null)}},{key:"getMinOffset",value:function(e,t){return vp.resolve(cp.min())}},{key:"getMinOffsetFromCollectionGroup",value:function(e,t){return vp.resolve(cp.min())}},{key:"updateCollectionGroup",value:function(e,t,n){return vp.resolve()}},{key:"updateIndexEntries",value:function(e,t){return vp.resolve()}}]),e}(),qy=function(){function e(){ye(this,e),this.index={}}return we(e,[{key:"add",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new kv(np.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}},{key:"has",value:function(e){var t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}},{key:"getEntries",value:function(e){return(this.index[e]||new kv(np.comparator)).toArray()}}]),e}();new Uint8Array(0);
2var Hy=function(){function e(t,n,r){ye(this,e),this.cacheSizeCollectionThreshold=t,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}return we(e,null,[{key:"withCacheSize",value:function(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}]),e}();Hy.DEFAULT_COLLECTION_PERCENTILE=10,Hy.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Hy.DEFAULT=new Hy(41943040,Hy.DEFAULT_COLLECTION_PERCENTILE,Hy.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Hy.DISABLED=new Hy(-1,0,0);var Wy=function(){function e(t){ye(this,e),this.bn=t}return we(e,[{key:"next",value:function(){return this.bn+=2,this.bn}}],[{key:"Pn",value:function(){return new e(0)}},{key:"vn",value:function(){return new e(-1)}}]),e}();var Gy=function(){function e(){ye(this,e),this.changes=new Pm((function(e){return e.toString()}),(function(e,t){return e.isEqual(t)})),this.changesApplied=!1}return we(e,[{key:"addEntry",value:function(e){this.assertNotApplied(),this.changes.set(e.key,e)}},{key:"removeEntry",value:function(e,t){this.assertNotApplied(),this.changes.set(e,Tv.newInvalidDocument(e).setReadTime(t))}},{key:"getEntry",value:function(e,t){this.assertNotApplied();var n=this.changes.get(t);return void 0!==n?vp.resolve(n):this.getFromCache(e,t)}},{key:"getEntries",value:function(e,t){return this.getAllFromCache(e,t)}},{key:"apply",value:function(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}},{key:"assertNotApplied",value:function(){}}]),e}();var Ky=we((function e(t,n){ye(this,e),this.overlayedDocument=t,this.mutatedFields=n})),Qy=function(){function e(t,n,r,i){ye(this,e),this.remoteDocumentCache=t,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}return we(e,[{key:"getDocument",value:function(e,t){var n=this,r=null;return this.documentOverlayCache.getOverlay(e,t).next((function(i){return r=i,n.remoteDocumentCache.getEntry(e,t)})).next((function(e){return null!==r&&gm(r.mutation,e,_v.empty(),Zh.now()),e}))}},{key:"getDocuments",value:function(e,t){var n=this;return this.remoteDocumentCache.getEntries(e,t).next((function(t){return n.getLocalViewOfDocuments(e,t,Hm()).next((function(){return t}))}))}},{key:"getLocalViewOfDocuments",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Hm(),i=Vm();return this.populateOverlays(e,i,t).next((function(){return n.computeViews(e,t,i,r).next((function(e){var t=Mm();return e.forEach((function(e,n){t=t.insert(e,n.overlayedDocument)})),t}))}))}},{key:"getOverlayedDocuments",value:function(e,t){var n=this,r=Vm();return this.populateOverlays(e,r,t).next((function(){return n.computeViews(e,t,r,Hm())}))}},{key:"populateOverlays",value:function(e,t,n){var r=[];return n.forEach((function(e){t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((function(e){e.forEach((function(e,n){t.set(e,n)}))}))}},{key:"computeViews",value:function(e,t,n,r){var i=Lm(),a=zm(),o=zm();return t.forEach((function(e,t){var o=n.get(t.key);r.has(t.key)&&(void 0===o||o.mutation instanceof xm)?i=i.insert(t.key,t):void 0!==o&&(a.set(t.key,o.mutation.getFieldMask()),gm(o.mutation,t,o.mutation.getFieldMask(),Zh.now()))})),this.recalculateAndSaveOverlays(e,i).next((function(e){return e.forEach((function(e,t){return a.set(e,t)})),t.forEach((function(e,t){var n;return o.set(e,new Ky(t,null!==(n=a.get(e))&&void 0!==n?n:null))})),o}))}},{key:"recalculateAndSaveOverlays",value:function(e,t){var n=this,r=zm(),i=new gv((function(e,t){return e-t})),a=Hm();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((function(e){var n,a=he(e);try{var o=function(){var e=n.value;e.keys().forEach((function(n){var a=t.get(n);if(null!==a){var o=r.get(n)||_v.empty();o=e.applyToLocalView(a,o),r.set(n,o);var s=(i.get(e.batchId)||Hm()).add(n);i=i.insert(e.batchId,s)}}))};for(a.s();!(n=a.n()).done;)o()}catch(s){a.e(s)}finally{a.f()}})).next((function(){for(var o=[],s=i.getReverseIterator(),u=function(){var i=s.getNext(),u=i.key,c=i.value,l=Um();c.forEach((function(e){if(!a.has(e)){var n=mm(t.get(e),r.get(e));null!==n&&l.set(e,n),a=a.add(e)}})),o.push(n.documentOverlayCache.saveOverlays(e,u,l))};s.hasNext();)u();return vp.waitFor(o)})).next((function(){return r}))}},{key:"recalculateAndSaveOverlaysForDocumentKeys",value:function(e,t){var n=this;return this.remoteDocumentCache.getEntries(e,t).next((function(t){return n.recalculateAndSaveOverlays(e,t)}))}},{key:"getDocumentsMatchingQuery",value:function(e,t,n){return function(e){return ap.isDocumentKey(e.path)&&null===e.collectionGroup&&0===e.filters.length}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):Fv(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n):this.getDocumentsMatchingCollectionQuery(e,t,n)}},{key:"getNextDocuments",value:function(e,t,n,r){var i=this;return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((function(a){var o=r-a.size>0?i.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-a.size):vp.resolve(Vm()),s=-1,u=a;return o.next((function(t){return vp.forEach(t,(function(t,n){return s<n.largestBatchId&&(s=n.largestBatchId),a.get(t)?vp.resolve():i.remoteDocumentCache.getEntry(e,t).next((function(e){u=u.insert(t,e)}))}
2)).next((function(){return i.populateOverlays(e,t,a)})).next((function(){return i.computeViews(e,u,t,Hm())})).next((function(e){return{batchId:s,changes:Fm(e)}}))}))}))}},{key:"getDocumentsMatchingDocumentQuery",value:function(e,t){return this.getDocument(e,new ap(t)).next((function(e){var t=Mm();return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}},{key:"getDocumentsMatchingCollectionGroupQuery",value:function(e,t,n){var r=this,i=t.collectionGroup,a=Mm();return this.indexManager.getCollectionParents(e,i).next((function(o){return vp.forEach(o,(function(o){var s=function(e,t){return new Av(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,o.child(i));return r.getDocumentsMatchingCollectionQuery(e,s,n).next((function(e){e.forEach((function(e,t){a=a.insert(e,t)}))}))})).next((function(){return a}))}))}},{key:"getDocumentsMatchingCollectionQuery",value:function(e,t,n){var r,i=this;return this.remoteDocumentCache.getAllFromCollection(e,t.path,n).next((function(a){return r=a,i.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId)})).next((function(e){e.forEach((function(e,t){var n=t.getKey();null===r.get(n)&&(r=r.insert(n,Tv.newInvalidDocument(n)))}));var n=Mm();return r.forEach((function(r,i){var a=e.get(r);void 0!==a&&gm(a.mutation,i,_v.empty(),Zh.now()),Gv(t,i)&&(n=n.insert(r,i))})),n}))}}]),e}(),$y=function(){function e(t){ye(this,e),this.yt=t,this.Zn=new Map,this.ts=new Map}return we(e,[{key:"getBundleMetadata",value:function(e,t){return vp.resolve(this.Zn.get(t))}},{key:"saveBundleMetadata",value:function(e,t){var n;return this.Zn.set(t.id,{id:(n=t).id,version:n.version,createTime:cy(n.createTime)}),vp.resolve()}},{key:"getNamedQuery",value:function(e,t){return vp.resolve(this.ts.get(t))}},{key:"saveNamedQuery",value:function(e,t){return this.ts.set(t.name,function(e){return{name:e.name,query:Uy(e.bundledQuery),readTime:cy(e.readTime)}}(t)),vp.resolve()}}]),e}(),Yy=function(){function e(){ye(this,e),this.overlays=new gv(ap.comparator),this.es=new Map}return we(e,[{key:"getOverlay",value:function(e,t){return vp.resolve(this.overlays.get(t))}},{key:"getOverlays",value:function(e,t){var n=this,r=Vm();return vp.forEach(t,(function(t){return n.getOverlay(e,t).next((function(e){null!==e&&r.set(t,e)}))})).next((function(){return r}))}},{key:"saveOverlays",value:function(e,t,n){var r=this;return n.forEach((function(n,i){r.oe(e,t,i)})),vp.resolve()}},{key:"removeOverlaysForBatchId",value:function(e,t,n){var r=this,i=this.es.get(n);return void 0!==i&&(i.forEach((function(e){return r.overlays=r.overlays.remove(e)})),this.es.delete(n)),vp.resolve()}},{key:"getOverlaysForCollection",value:function(e,t,n){for(var r=Vm(),i=t.length+1,a=new ap(t.child("")),o=this.overlays.getIteratorFrom(a);o.hasNext();){var s=o.getNext().value,u=s.getKey();if(!t.isPrefixOf(u.path))break;u.path.length===i&&s.largestBatchId>n&&r.set(s.getKey(),s)}return vp.resolve(r)}},{key:"getOverlaysForCollectionGroup",value:function(e,t,n,r){for(var i=new gv((function(e,t){return e-t})),a=this.overlays.getIterator();a.hasNext();){var o=a.getNext().value;if(o.getKey().getCollectionGroup()===t&&o.largestBatchId>n){var s=i.get(o.largestBatchId);null===s&&(s=Vm(),i=i.insert(o.largestBatchId,s)),s.set(o.getKey(),o)}}for(var u=Vm(),c=i.getIterator();c.hasNext()&&(c.getNext().value.forEach((function(e,t){return u.set(e,t)})),!(u.size()>=r)););return vp.resolve(u)}},{key:"oe",value:function(e,t,n){var r=this.overlays.get(n.key);if(null!==r){var i=this.es.get(r.largestBatchId).delete(n.key);this.es.set(r.largestBatchId,i)}this.overlays=this.overlays.insert(n.key,new My(t,n));var a=this.es.get(t);void 0===a&&(a=Hm(),this.es.set(t,a)),this.es.set(t,a.add(n.key))}}]),e}(),Xy=function(){function e(){ye(this,e),this.ns=new kv(Jy.ss),this.rs=new kv(Jy.os)}return we(e,[{key:"isEmpty",value:function(){return this.ns.isEmpty()}},{key:"addReference",value:function(e,t){var n=new Jy(e,t);this.ns=this.ns.add(n),this.rs=this.rs.add(n)}},{key:"us",value:function(e,t){var n=this;e.forEach((function(e){return n.addReference(e,t)}))}},{key:"removeReference",value:function(e,t){this.cs(new Jy(e,t))}},{key:"hs",value:function(e,t){var n=this;e.forEach((function(e){return n.removeReference(e,t)}))}},{key:"ls",value:function(e){var t=this,n=new ap(new np([])),r=new Jy(n,e),i=new Jy(n,e+1),a=[];
2return this.rs.forEachInRange([r,i],(function(e){t.cs(e),a.push(e.key)})),a}},{key:"fs",value:function(){var e=this;this.ns.forEach((function(t){return e.cs(t)}))}},{key:"cs",value:function(e){this.ns=this.ns.delete(e),this.rs=this.rs.delete(e)}},{key:"ds",value:function(e){var t=new ap(new np([])),n=new Jy(t,e),r=new Jy(t,e+1),i=Hm();return this.rs.forEachInRange([n,r],(function(e){i=i.add(e.key)})),i}},{key:"containsKey",value:function(e){var t=new Jy(e,0),n=this.ns.firstAfterOrEqual(t);return null!==n&&e.isEqual(n.key)}}]),e}(),Jy=function(){function e(t,n){ye(this,e),this.key=t,this._s=n}return we(e,null,[{key:"ss",value:function(e,t){return ap.comparator(e.key,t.key)||Xh(e._s,t._s)}},{key:"os",value:function(e,t){return Xh(e._s,t._s)||ap.comparator(e.key,t.key)}}]),e}(),Zy=function(){function e(t,n){ye(this,e),this.indexManager=t,this.referenceDelegate=n,this.mutationQueue=[],this.ws=1,this.gs=new kv(Jy.ss)}return we(e,[{key:"checkEmpty",value:function(e){return vp.resolve(0===this.mutationQueue.length)}},{key:"addMutationBatch",value:function(e,t,n,r){var i=this.ws;this.ws++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];var a=new Ly(i,t,n,r);this.mutationQueue.push(a);var o,s=he(r);try{for(s.s();!(o=s.n()).done;){var u=o.value;this.gs=this.gs.add(new Jy(u.key,i)),this.indexManager.addToCollectionParentIndex(e,u.key.path.popLast())}}catch(c){s.e(c)}finally{s.f()}return vp.resolve(a)}},{key:"lookupMutationBatch",value:function(e,t){return vp.resolve(this.ys(t))}},{key:"getNextMutationBatchAfterBatchId",value:function(e,t){var n=t+1,r=this.ps(n),i=r
2<0?0:r;return vp.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}},{key:"getHighestUnacknowledgedBatchId",value:function(){return vp.resolve(0===this.mutationQueue.length?-1:this.ws-1)}},{key:"getAllMutationBatches",value:function(e){return vp.resolve(this.mutationQueue.slice())}},{key:"getAllMutationBatchesAffectingDocumentKey",value:function(e,t){var n=this,r=new Jy(t,0),i=new Jy(t,Number.POSITIVE_INFINITY),a=[];return this.gs.forEachInRange([r,i],(function(e){var t=n.ys(e._s);a.push(t)})),vp.resolve(a)}},{key:"getAllMutationBatchesAffectingDocumentKeys",value:function(e,t){var n=this,r=new kv(Xh);return t.forEach((function(e){var t=new Jy(e,0),i=new Jy(e,Number.POSITIVE_INFINITY);n.gs.forEachInRange([t,i],(function(e){r=r.add(e._s)}))})),vp.resolve(this.Is(r))}},{key:"getAllMutationBatchesAffectingQuery",value:function(e,t){var n=t.path,r=n.length+1,i=n;ap.isDocumentKey(i)||(i=i.child(""));var a=new Jy(new ap(i),0),o=new kv(Xh);return this.gs.forEachWhile((function(e){var t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e._s)),!0)}),a),vp.resolve(this.Is(o))}},{key:"Is",value:function(e){var t=this,n=[];return e.forEach((function(e){var r=t.ys(e);null!==r&&n.push(r)})),n}},{key:"removeMutationBatch",value:function(e,t){var n=this;Dh(0===this.Ts(t.batchId,"removed")),this.mutationQueue.shift();var r=this.gs;return vp.forEach(t.mutations,(function(i){var a=new Jy(i.key,t.batchId);return r=r.delete(a),n.referenceDelegate.markPotentiallyOrphaned(e,i.key)})).next((function(){n.gs=r}))}},{key:"An",value:function(e){}},{key:"containsKey",value:function(e,t){var n=new Jy(t,0),r=this.gs.firstAfterOrEqual(n);return vp.resolve(t.isEqual(r&&r.key))}},{key:"performConsistencyCheck",value:function(e){return this.mutationQueue.length,vp.resolve()}},{key:"Ts",value:function(e,t){return this.ps(e)}},{key:"ps",value:function(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId}},{key:"ys",value:function(e){var t=this.ps(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}}]),e}(),eg=function(){function e(t){ye(this,e),this.Es=t,this.docs=new gv(ap.comparator),this.size=0}return we(e,[{key:"setIndexManager",value:function(e){this.indexManager=e}},{key:"addEntry",value:function(e,t){var n=t.key,r=this.docs.get(n),i=r?r.size:0,a=this.Es(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:a}),this.size+=a-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}},{key:"removeEntry",value:function(e){var t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}},{key:"getEntry",value:function(e,t){var n=this.docs.get(t);return vp.resolve(n?n.document.mutableCopy():Tv.newInvalidDocument(t))}},{key:"getEntries",value:function(e,t){var n=this,r=Lm();return t.forEach((function(e){var t=n.docs.get(e);r=r.insert(e,t?t.document.mutableCopy():Tv.newInvalidDocument(e))})),vp.resolve(r)}},{key:"getAllFromCollection",value:function(e,t,n){for(var r=Lm(),i=new ap(t.child("")),a=this.docs.getIteratorFrom(i);a.hasNext();){var o=a.getNext(),s=o.key,u=o.value.document;if(!t.isPrefixOf(s.path))break;s.path.length>t.length+1||lp(up(u),n)<=0||(r=r.insert(u.key,u.mutableCopy()))}return vp.resolve(r)}},{key:"getAllFromCollectionGroup",value:function(e,t,n,r){Lh()}},{key:"As",value:function(e,t){return vp.forEach(this.docs,(function(e){return t(e)}))}},{key:"newChangeBuffer",value:function(e){return new tg(this)}},{key:"getSize",value:function(e){return vp.resolve(this.size)}}]),e}(),tg=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this)).Yn=e,r}return we(n,[{key:"applyChanges",value:function(e){var t=this,n=[];
2return this.changes.forEach((function(r,i){i.isValidDocument()?n.push(t.Yn.addEntry(e,i)):t.Yn.removeEntry(r)})),vp.waitFor(n)}},{key:"getFromCache",value:function(e,t){return this.Yn.getEntry(e,t)}},{key:"getAllFromCache",value:function(e,t){return this.Yn.getEntries(e,t)}}]),n}(Gy),ng=function(){function e(t){ye(this,e),this.persistence=t,this.Rs=new Pm((function(e){return Cv(e)}),Iv),this.lastRemoteSnapshotVersion=ep.min(),this.highestTargetId=0,this.bs=0,this.Ps=new Xy,this.targetCount=0,this.vs=Wy.Pn()}return we(e,[{key:"forEachTarget",value:function(e,t){return this.Rs.forEach((function(e,n){return t(n)})),vp.resolve()}},{key:"getLastRemoteSnapshotVersion",value:function(e){return vp.resolve(this.lastRemoteSnapshotVersion)}},{key:"getHighestSequenceNumber",value:function(e){return vp.resolve(this.bs)}},{key:"allocateTargetId",value:function(e){return this.highestTargetId=this.vs.next(),vp.resolve(this.highestTargetId)}},{key:"setTargetsMetadata",value:function(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.bs&&(this.bs=t),vp.resolve()}},{key:"Dn",value:function(e){this.Rs.set(e.target,e);var t=e.targetId;t>this.highestTargetId&&(this.vs=new Wy(t),this.highestTargetId=t),e.sequenceNumber>this.bs&&(this.bs=e.sequenceNumber)}},{key:"addTargetData",value:function(e,t){return this.Dn(t),this.targetCount+=1,vp.resolve()}},{key:"updateTargetData",value:function(e,t){return this.Dn(t),vp.resolve()}},{key:"removeTargetData",value:function(e,t){return this.Rs.delete(t.target),this.Ps.ls(t.targetId),this.targetCount-=1,vp.resolve()}},{key:"removeTargets",value:function(e,t,n){var r=this,i=0,a=[];return this.Rs.forEach((function(o,s){s.sequenceNumber<=t&&null===n.get(s.targetId)&&(r.Rs.delete(o),a.push(r.removeMatchingKeysForTargetId(e,s.targetId)),i++)})),vp.waitFor(a).next((function(){return i}))}},{key:"getTargetCount",value:function(e){return vp.resolve(this.targetCount)}},{key:"getTargetData",value:function(e,t){var n=this.Rs.get(t)||null;return vp.resolve(n)}},{key:"addMatchingKeys",value:function(e,t,n){return this.Ps.us(t,n),vp.resolve()}},{key:"removeMatchingKeys",value:function(e,t,n){this.Ps.hs(t,n);var r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((function(t){i.push(r.markPotentiallyOrphaned(e,t))})),vp.waitFor(i)}},{key:"removeMatchingKeysForTargetId",value:function(e,t){return this.Ps.ls(t),vp.resolve()}},{key:"getMatchingKeysForTargetId",value:function(e,t){var n=this.Ps.ds(t);return vp.resolve(n)}},{key:"containsKey",value:function(e,t){return vp.resolve(this.Ps.containsKey(t))}}]),e}(),rg=function(){function e(t,n){var r=this;ye(this,e),this.Vs={},this.overlays={},this.Ss=new yp(0),this.Ds=!1,this.Ds=!0,this.referenceDelegate=t(this),this.Cs=new ng(this),this.indexManager=new By,this.remoteDocumentCache=new eg((function(e){return r.referenceDelegate.xs(e)})),this.yt=new Vy(n),this.Ns=new $y(this.yt)}return we(e,[{key:"start",value:function(){return Promise.resolve()}},{key:"shutdown",value:function(){return this.Ds=!1,Promise.resolve()}},{key:"started",get:function(){return this.Ds}},{key:"setDatabaseDeletedListener",value:function(){}},{key:"setNetworkEnabled",value:function(){}},{key:"getIndexManager",value:function(e){return this.indexManager}},{key:"getDocumentOverlayCache",value:function(e){var t=this.overlays[e.toKey()];return t||(t=new Yy,this.overlays[e.toKey()]=t),t}},{key:"getMutationQueue",value:function(e,t){var n=this.Vs[e.toKey()];return n||(n=new Zy(t,this.referenceDelegate),this.Vs[e.toKey()]=n),n}},{key:"getTargetCache",value:function(){return this.Cs}},{key:"getRemoteDocumentCache",value:function(){return this.remoteDocumentCache}},{key:"getBundleCache",value:function(){return this.Ns}},{key:"runTransaction",value:function(e,t,n){var r=this;Nh("MemoryPersistence","Starting transaction:",e);var i=new ig(this.Ss.next());return this.referenceDelegate.ks(),n(i).next((function(e){return r.referenceDelegate.Os(i).next((function(){return e}))})).toPromise().then((function(e){return i.raiseOnCommittedEvent(),e}))}},{key:"Ms",value:function(e,t){return vp.or(Object.values(this.Vs).map((function(n){return function(){return n.containsKey(e,t)}})))}}]),e}(),ig=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this)).currentSequenceNumber=e,r}return we(n)}(dp),ag=function(){function e(t){ye(this,e),this.persistence=t,this.Fs=new Xy,this.$s=null}return we(e,[{key:"Ls",get:function(){if(this.$s)return this.$s;throw Lh()}},{key:"addReference",value:function(e,t,n){return this.Fs.addReference(n,t),this.Ls.delete(n.toString()),vp.resolve()}},{key:"removeReference",value:function(e,t,n){return this.Fs.removeReference(n,t),this.Ls.add(n.toString()),vp.resolve()}},{key:"markPotentiallyOrphaned",value:function(e,t){return this.Ls.add(t.toString()),vp.resolve()}},{key:"removeTarget",value:function(e,t){var n=this;
2this.Fs.ls(t.targetId).forEach((function(e){return n.Ls.add(e.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,t.targetId).next((function(e){e.forEach((function(e){return n.Ls.add(e.toString())}))})).next((function(){return r.removeTargetData(e,t)}))}},{key:"ks",value:function(){this.$s=new Set}},{key:"Os",value:function(e){var t=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return vp.forEach(this.Ls,(function(r){var i=ap.fromPath(r);return t.qs(e,i).next((function(e){e||n.removeEntry(i,ep.min())}))})).next((function(){return t.$s=null,n.apply(e)}))}},{key:"updateLimboDocument",value:function(e,t){var n=this;return this.qs(e,t).next((function(e){e?n.Ls.delete(t.toString()):n.Ls.add(t.toString())}))}},{key:"xs",value:function(e){return 0}},{key:"qs",value:function(e,t){var n=this;return vp.or([function(){return vp.resolve(n.Fs.containsKey(t))},function(){return n.persistence.getTargetCache().containsKey(e,t)},function(){return n.persistence.Ms(e,t)}])}}],[{key:"Bs",value:function(t){return new e(t)}}]),e}();var og=function(){function e(t,n,r,i){ye(this,e),this.targetId=t,this.fromCache=n,this.Si=r,this.Di=i}return we(e,null,[{key:"Ci",value:function(t,n){var r,i=Hm(),a=Hm(),o=he(n.docChanges);try{for(o.s();!(r=o.n()).done;){var s=r.value;switch(s.type){case 0:i=i.add(s.doc.key);break;case 1:a=a.add(s.doc.key)}}}catch(u){o.e(u)}finally{o.f()}return new e(t,n.fromCache,i,a)}}]),e}(),sg=function(){function e(){ye(this,e),this.xi=!1}return we(e,[{key:"initialize",value:function(e,t){this.Ni=e,this.indexManager=t,this.xi=!0}},{key:"getDocumentsMatchingQuery",value:function(e,t,n,r){var i=this;return this.ki(e,t).next((function(a){return a||i.Oi(e,t,r,n)})).next((function(n){return n||i.Mi(e,t)}))}},{key:"ki",value:function(e,t){var n=this;if(Lv(t))return vp.resolve(null);var r=Uv(t);return this.indexManager.getIndexType(e,r).next((function(i){return 0===i?null:(null!==t.limit&&1===i&&(t=Bv(t,null,"F"),r=Uv(t)),n.indexManager.getDocumentsMatchingTarget(e,r).next((function(i){var a=Hm.apply(void 0,ke(i));return n.Ni.getDocuments(e,a).next((function(i){return n.indexManager.getMinOffset(e,r).next((function(r){var o=n.Fi(t,i);return n.$i(t,o,a,r.readTime)?n.ki(e,Bv(t,null,"F")):n.Bi(e,o,t,r)}))}))})))}))}},{key:"Oi",value:function(e,t,n,r){var i=this;return Lv(t)||r.isEqual(ep.min())?this.Mi(e,t):this.Ni.getDocuments(e,n).next((function(a){var o=i.Fi(t,a);return i.$i(t,o,n,r)?i.Mi(e,t):(Ih()<=rt.DEBUG&&Nh("QueryEngine","Re-using previous result from %s to execute query: %s",r.toString(),Wv(t)),i.Bi(e,o,t,sp(r,-1)))}))}},{key:"Fi",value:function(e,t){var n=new kv(Qv(e));return t.forEach((function(t,r){Gv(e,r)&&(n=n.add(r))})),n}},{key:"$i",value:function(e,t,n,r){if(null===e.limit)return!1;if(n.size!==t.size)return!0;var i="F"===e.limitType?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}},{key:"Mi",value:function(e,t){return Ih()<=rt.DEBUG&&Nh("QueryEngine","Using full collection scan to execute query:",Wv(t)),this.Ni.getDocumentsMatchingQuery(e,t,cp.min())}},{key:"Bi",value:function(e,t,n,r){return this.Ni.getDocumentsMatchingQuery(e,n,r).next((function(e){return t.forEach((function(t){e=e.insert(t.key,t)})),e}))}}]),e}(),ug=function(){function e(t,n,r,i){ye(this,e),this.persistence=t,this.Li=n,this.yt=i,this.qi=new gv(Xh),this.Ui=new Pm((function(e){return Cv(e)}),Iv),this.Ki=new Map,this.Gi=t.getRemoteDocumentCache(),this.Cs=t.getTargetCache(),this.Ns=t.getBundleCache(),this.Qi(r)}return we(e,[{key:"Qi",value:function(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Qy(this.Gi,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Gi.setIndexManager(this.indexManager),this.Li.initialize(this.localDocuments,this.indexManager)}},{key:"collectGarbage",value:function(e){var t=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return e.collect(n,t.qi)}))}}]),e}();function cg(e,t,n,r){return new ug(e,t,n,r)}function lg(e,t){return fg.apply(this,arguments)}function fg(){return fg=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mh(t),e.next=3,r.persistence.runTransaction("Handle user change","readonly",(function(e){var t;
2return r.mutationQueue.getAllMutationBatches(e).next((function(i){return t=i,r.Qi(n),r.mutationQueue.getAllMutationBatches(e)})).next((function(n){var i,a=[],o=[],s=Hm(),u=he(t);try{for(u.s();!(i=u.n()).done;){var c=i.value;a.push(c.batchId);var l,f=he(c.mutations);try{for(f.s();!(l=f.n()).done;){var d=l.value;s=s.add(d.key)}}catch(b){f.e(b)}finally{f.f()}}}catch(b){u.e(b)}finally{u.f()}var h,p=he(n);try{for(p.s();!(h=p.n()).done;){var v=h.value;o.push(v.batchId);var m,y=he(v.mutations);try{for(y.s();!(m=y.n()).done;){var g=m.value;s=s.add(g.key)}}catch(b){y.e(b)}finally{y.f()}}}catch(b){p.e(b)}finally{p.f()}return r.localDocuments.getDocuments(e,s).next((function(e){return{ji:e,removedBatchIds:a,addedBatchIds:o}}))}))}));case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)}))),fg.apply(this,arguments)}function dg(e,t){var n=Mh(e);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(e){var r=t.batch.keys(),i=n.Gi.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){var i=n.batch,a=i.keys(),o=vp.resolve();return a.forEach((function(e){o=o.next((function(){return r.getEntry(t,e)})).next((function(t){var a=n.docVersions.get(e);Dh(null!==a),t.version.compareTo(a)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),o.next((function(){return e.mutationQueue.removeMutationBatch(t,i)}))}(n,e,t,i).next((function(){return i.apply(e)}
2)).next((function(){return n.mutationQueue.performConsistencyCheck(e)})).next((function(){return n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId)})).next((function(){return n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){for(var t=Hm(),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((function(){return n.localDocuments.getDocuments(e,r)}))}))}function hg(e){var t=Mh(e);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(function(e){return t.Cs.getLastRemoteSnapshotVersion(e)}))}function pg(e,t){var n=Mh(e),r=t.snapshotVersion,i=n.qi;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(e){var a=n.Gi.newChangeBuffer({trackRemovals:!0});i=n.qi;var o=[];t.targetChanges.forEach((function(a,s){var u=i.get(s);if(u){o.push(n.Cs.removeMatchingKeys(e,a.removedDocuments,s).next((function(){return n.Cs.addMatchingKeys(e,a.addedDocuments,s)})));var c=u.withSequenceNumber(e.currentSequenceNumber);t.targetMismatches.has(s)?c=c.withResumeToken(Tp.EMPTY_BYTE_STRING,ep.min()).withLastLimboFreeSnapshotVersion(ep.min()):a.resumeToken.approximateByteSize()>0&&(c=c.withResumeToken(a.resumeToken,r)),i=i.insert(s,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)}(u,c,a)&&o.push(n.Cs.updateTargetData(e,c))}}));var s=Lm(),u=Hm();if(t.documentUpdates.forEach((function(r){t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),o.push(vg(e,a,t.documentUpdates).next((function(e){s=e.Wi,u=e.zi}))),!r.isEqual(ep.min())){var c=n.Cs.getLastRemoteSnapshotVersion(e).next((function(t){return n.Cs.setTargetsMetadata(e,e.currentSequenceNumber,r)}));o.push(c)}return vp.waitFor(o).next((function(){return a.apply(e)})).next((function(){return n.localDocuments.getLocalViewOfDocuments(e,s,u)})).next((function(){return s}))})).then((function(e){return n.qi=i,e}))}function vg(e,t,n){var r=Hm(),i=Hm();return n.forEach((function(e){return r=r.add(e)})),t.getEntries(e,r).next((function(e){var r=Lm();return n.forEach((function(n,a){var o=e.get(n);a.isFoundDocument()!==o.isFoundDocument()&&(i=i.add(n)),a.isNoDocument()&&a.version.isEqual(ep.min())?(t.removeEntry(n,a.readTime),r=r.insert(n,a)):!o.isValidDocument()||a.version.compareTo(o.version)>0||0===a.version.compareTo(o.version)&&o.hasPendingWrites?(t.addEntry(a),r=r.insert(n,a)):Nh("LocalStore","Ignoring outdated watch update for ",n,". Current version:",o.version," Watch version:",a.version)})),{Wi:r,zi:i}}))}function mg(e,t){var n=Mh(e);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(e){return void 0===t&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t)}))}function yg(e,t){var n=Mh(e);return n.persistence.runTransaction("Allocate target","readwrite",(function(e){var r;return n.Cs.getTargetData(e,t).next((function(i){return i?(r=i,vp.resolve(r)):n.Cs.allocateTargetId(e).next((function(i){return r=new Fy(t,i,0,e.currentSequenceNumber),n.Cs.addTargetData(e,r).next((function(){return r}))}))}))})).then((function(e){var r=n.qi.get(e.targetId);return(null===r||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.qi=n.qi.insert(e.targetId,e),n.Ui.set(t,e.targetId)),e}))}function gg(e,t,n){return bg.apply(this,arguments)}function bg(){return bg=me(pe().mark((function e(t,n,r){var i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=Mh(t),a=i.qi.get(n),o=r?"readwrite":"readwrite-primary",e.prev=1,e.t0=r,e.t0){e.next=6;break}return e.next=6,i.persistence.runTransaction("Release target",o,(function(e){return i.persistence.referenceDelegate.removeTarget(e,a)}));case 6:e.next=13;break;case 8:if(e.prev=8,e.t1=e.catch(1),mp(e.t1)){e.next=12;break}throw e.t1;case 12:Nh("LocalStore","Failed to update sequence numbers for target ".concat(n,": ").concat(e.t1));case 13:i.qi=i.qi.remove(n),i.Ui.delete(a.target);case 14:case"end":return e.stop()}}),e,null,[[1,8]])}))),bg.apply(this,arguments)}function wg(e,t,n){var r=Mh(e),i=ep.min(),a=Hm();
2return r.persistence.runTransaction("Execute query","readonly",(function(e){return function(e,t,n){var r=Mh(e),i=r.Ui.get(n);return void 0!==i?vp.resolve(r.qi.get(i)):r.Cs.getTargetData(t,n)}(r,e,Uv(t)).next((function(t){if(t)return i=t.lastLimboFreeSnapshotVersion,r.Cs.getMatchingKeysForTargetId(e,t.targetId).next((function(e){a=e}))})).next((function(){return r.Li.getDocumentsMatchingQuery(e,t,n?i:ep.min(),n?a:Hm())})).next((function(e){return kg(r,Kv(t),e),{documents:e,Hi:a}}))}))}function kg(e,t,n){var r=e.Ki.get(t)||ep.min();n.forEach((function(e,t){t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.Ki.set(t,r)}var xg=function(){function e(){ye(this,e),this.activeTargetIds=Gm()}return we(e,[{key:"er",value:function(e){this.activeTargetIds=this.activeTargetIds.add(e)}},{key:"nr",value:function(e){this.activeTargetIds=this.activeTargetIds.delete(e)}},{key:"tr",value:function(){var e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}]),e}(),_g=function(){function e(){ye(this,e),this.Lr=new xg,this.qr={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return we(e,[{key:"addPendingMutation",value:function(e){}},{key:"updateMutationState",value:function(e,t,n){}},{key:"addLocalQueryTarget",value:function(e){return this.Lr.er(e),this.qr[e]||"not-current"}},{key:"updateQueryState",value:function(e,t,n){this.qr[e]=t}},{key:"removeLocalQueryTarget",value:function(e){this.Lr.nr(e)}},{key:"isLocalQueryTarget",value:function(e){return this.Lr.activeTargetIds.has(e)}},{key:"clearQueryState",value:function(e){delete this.qr[e]}},{key:"getAllActiveQueryTargets",value:function(){return this.Lr.activeTargetIds}},{key:"isActiveQueryTarget",value:function(e){return this.Lr.activeTargetIds.has(e)}},{key:"start",value:function(){return this.Lr=new xg,Promise.resolve()}},{key:"handleUserChange",value:function(e,t,n){}},{key:"setOnlineState",value:function(e){}},{key:"shutdown",value:function(){}},{key:"writeSequenceNumber",value:function(e){}},{key:"notifyBundleLoaded",value:function(e){}}]),e}(),Sg=function(){function e(){ye(this,e)}return we(e,[{key:"Ur",value:function(e){}},{key:"shutdown",value:function(){}}]),e}(),Eg=function(){function e(){var t=this;ye(this,e),this.Kr=function(){return t.Gr()},this.Qr=function(){return t.jr()},this.Wr=[],this.zr()}return we(e,[{key:"Ur",value:function(e){this.Wr.push(e)}},{key:"shutdown",value:function(){window.removeEventListener("online",this.Kr),window.removeEventListener("offline",this.Qr)}},{key:"zr",value:function(){window.addEventListener("online",this.Kr),window.addEventListener("offline",this.Qr)}},{key:"Gr",value:function(){Nh("ConnectivityMonitor","Network connectivity changed: AVAILABLE");var e,t=he(this.Wr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(0)}}catch(n){t.e(n)}finally{t.f()}}},{key:"jr",value:function(){Nh("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");var e,t=he(this.Wr);try{for(t.s();!(e=t.n()).done;){(0,e.value)(1)}}catch(n){t.e(n)}finally{t.f()}}}],[{key:"C",value:function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}]),e}(),Tg={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"},Og=function(){function e(t){ye(this,e),this.Hr=t.Hr,this.Jr=t.Jr}return we(e,[{key:"Yr",value:function(e){this.Xr=e}},{key:"Zr",value:function(e){this.eo=e}},{key:"onMessage",value:function(e){this.no=e}},{key:"close",value:function(){this.Jr()}},{key:"send",value:function(e){this.Hr(e)}},{key:"so",value:function(){this.Xr()}},{key:"io",value:function(e){this.eo(e)}},{key:"ro",value:function(e){this.no(e)}}]),e}(),jg=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this,e)).forceLongPolling=e.forceLongPolling,r.autoDetectLongPolling=e.autoDetectLongPolling,r.useFetchStreams=e.useFetchStreams,r}return we(n,[{key:"fo",value:function(e,t,n,r){return new Promise((function(i,a){var o=new Eh;o.setWithCredentials(!0),o.listenOnce(wh.COMPLETE,(function(){try{switch(o.getLastErrorCode()){case bh.NO_ERROR:var t=o.getResponseJson();Nh("Connection","XHR received:",JSON.stringify(t)),i(t);break;case bh.TIMEOUT:Nh("Connection",'RPC "'+e+'" timed out'),a(new Vh(Fh.DEADLINE_EXCEEDED,"Request time out"));break;case bh.HTTP_ERROR:var n=o.getStatus();if(Nh("Connection",'RPC "'+e+'" failed with status:',n,"response text:",o.getResponseText()),n>0){var r=o.getResponseJson();Array.isArray(r)&&(r=r[0]);var s=null==r?void 0:r.error;if(s&&s.status&&s.message){var u=function(e){var t=e.toLowerCase().replace(/_/g,"-");return Object.values(Fh).indexOf(t)>=0?t:Fh.UNKNOWN}(s.status);a(new Vh(u,s.message))}else a(new Vh(Fh.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new Vh(Fh.UNAVAILABLE,"Connection failed."));break;default:Lh()}}finally{Nh("Connection",'RPC "'+e+'" completed.')}}));var s=JSON.stringify(r);o.send(t,"POST",s,n,15)}))}},{key:"wo",value:function(e,t,n){var r=[this.oo,"/","google.firestore.v1.Firestore","/",e,"/channel"],i=yh(),a=gh(),o={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/".concat(this.databaseId.projectId,"/databases/").concat(this.databaseId.database)}
2,sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(o.xmlHttpFactory=new _h({})),this.lo(o.initMessageHeaders,t,n),o.encodeInitMessageHeaders=!0;var s=r.join("");Nh("Connection","Creating WebChannel: "+s,o);var u=i.createWebChannel(s,o),c=!1,l=!1,f=new Og({Hr:function(e){l?Nh("Connection","Not sending because WebChannel is closed:",e):(c||(Nh("Connection","Opening WebChannel transport."),u.open(),c=!0),Nh("Connection","WebChannel sending:",e),u.send(e))},Jr:function(){return u.close()}}),d=function(e,t,n){e.listen(t,(function(e){try{n(e)}catch(e){setTimeout((function(){throw e}),0)}}))};return d(u,Sh.EventType.OPEN,(function(){l||Nh("Connection","WebChannel transport opened.")})),d(u,Sh.EventType.CLOSE,(function(){l||(l=!0,Nh("Connection","WebChannel transport closed"),f.io())})),d(u,Sh.EventType.ERROR,(function(e){l||(l=!0,Ph("Connection","WebChannel transport errored:",e),f.io(new Vh(Fh.UNAVAILABLE,"The operation could not be completed")))})),d(u,Sh.EventType.MESSAGE,(function(e){var t;if(!l){var n=e.data[0];Dh(!!n);var r=n,i=r.error||(null===(t=r[0])||void 0===t?void 0:t.error);if(i){Nh("Connection","WebChannel received error:",i);var a=i.status,o=function(e){var t=Tm[e];if(void 0!==t)return Am(t)}(a),s=i.message;void 0===o&&(o=Fh.INTERNAL,s="Unknown error status: "+a+" with message "+i.message),l=!0,f.io(new Vh(o,s)),u.close()}else Nh("Connection","WebChannel received:",n),f.ro(n)}})),d(a,kh.STAT_EVENT,(function(e){e.stat===xh.PROXY?Nh("Connection","Detected buffering proxy"):e.stat===xh.NOPROXY&&Nh("Connection","Detected no buffering proxy")})),setTimeout((function(){f.so()}),0),f}}]),n}(function(){function e(t){ye(this,e),this.databaseInfo=t,this.databaseId=t.databaseId;var n=t.ssl?"https":"http";this.oo=n+"://"+t.host,this.uo="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return we(e,[{key:"co",get:function(){return!1}},{key:"ao",value:function(e,t,n,r,i){var a=this.ho(e,t);Nh("RestConnection","Sending: ",a,n);var o={};return this.lo(o,r,i),this.fo(e,a,o,n).then((function(e){return Nh("RestConnection","Received: ",e),e}),(function(t){throw Ph("RestConnection","".concat(e," failed with error: "),t,"url: ",a,"request:",n),t}))}},{key:"_o",value:function(e,t,n,r,i,a){return this.ao(e,t,n,r,i)}},{key:"lo",value:function(e,t,n){e["X-Goog-Api-Client"]="gl-js/ fire/"+jh,e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((function(t,n){return e[n]=t})),n&&n.headers.forEach((function(t,n){return e[n]=t}))}},{key:"ho",value:function(e,t){var n=Tg[e];return"".concat(this.oo,"/v1/").concat(t,":").concat(n)}}]),e}());function Cg(){return"undefined"!=typeof document?document:null}function Ig(e){return new ay(e,!0)}var Ng=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1.5,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:6e4;ye(this,e),this.Hs=t,this.timerId=n,this.mo=r,this.yo=i,this.po=a,this.Io=0,this.To=null,this.Eo=Date.now(),this.reset()}return we(e,[{key:"reset",value:function(){this.Io=0}},{key:"Ao",value:function(){this.Io=this.po}},{key:"Ro",value:function(e){var t=this;this.cancel();var n=Math.floor(this.Io+this.bo()),r=Math.max(0,Date.now()-this.Eo),i=Math.max(0,n-r);i>0&&Nh("ExponentialBackoff","Backing off for ".concat(i," ms (base delay: ").concat(this.Io," ms, delay with jitter: ").concat(n," ms, last attempt: ").concat(r," ms ago)")),this.To=this.Hs.enqueueAfterDelay(this.timerId,i,(function(){return t.Eo=Date.now(),e()})),this.Io*=this.yo,this.Io<this.mo&&(this.Io=this.mo),this.Io>this.po&&(this.Io=this.po)}},{key:"Po",value:function(){null!==this.To&&(this.To.skipDelay(),this.To=null)}},{key:"cancel",value:function(){null!==this.To&&(this.To.cancel(),this.To=null)}},{key:"bo",value:function(){return(Math.random()-.5)*this.Io}}]),e}(),Ag=function(){function e(t,n,r,i,a,o,s,u){ye(this,e),this.Hs=t,this.vo=r,this.Vo=i,this.connection=a,this.authCredentialsProvider=o,this.appCheckCredentialsProvider=s,this.listener=u,this.state=0,this.So=0,this.Do=null,this.Co=null,this.stream=null,this.xo=new Ng(t,n)}return we(e,[{key:"No",value:function(){return 1===this.state||5===this.state||this.ko()}},{key:"ko",value:function(){return 2===this.state||3===this.state}},{key:"start",value:function(){4!==this.state?this.auth():this.Oo()}},{key:"stop",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.No(),!e.t0){e.next=4;break}return e.next=4,this.close(0);case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Mo",value:function(){this.state=0,this.xo.reset()}},{key:"Fo",value:function(){var e=this;this.ko()&&null===this.Do&&(this.Do=this.Hs.enqueueAfterDelay(this.vo,6e4,(function(){return e.$o()})))}},{key:"Bo",value:function(e){this.Lo(),this.stream.send(e)}},{key:"$o",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.ko()){e.next=2;break}return e.abrupt("return",this.close(0));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Lo",value:function(){this.Do&&(this.Do.cancel(),this.Do=null)}},{key:"qo",value:function(){this.Co&&(this.Co.cancel(),this.Co=null)}},{key:"close",value:function(){var e=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.Lo(),this.qo(),this.xo.cancel(),this.So++,4!==t?this.xo.reset():n&&n.code===Fh.RESOURCE_EXHAUSTED?(Ah(n.toString()),Ah("Using maximum backoff delay to prevent overloading the backend."),this.xo.Ao()):n&&n.code===Fh.UNAUTHENTICATED&&3!==this.state&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),null!==this.stream&&(this.Uo(),this.stream.close(),this.stream=null),this.state=t,e.next=9,this.listener.Zr(n);case 9:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"Uo",value:function(){}},{key:"auth",value:function(){var e=this;this.state=1;var t=this.Ko(this.So),n=this.So;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((function(t){var r=ne(t,2),i=r[0],a=r[1];e.So===n&&e.Go(i,a)}),(function(n){t((function(){var t=new Vh(Fh.UNKNOWN,"Fetching auth token failed: "+n.message);return e.Qo(t)}))}))}},{key:"Go",value:function(e,t){var n=this,r=this.Ko(this.So);this.stream=this.jo(e,t),this.stream.Yr((function(){r((function(){return n.state=2,n.Co=n.Hs.enqueueAfterDelay(n.Vo,1e4,(function(){return n.ko()&&(n.state=3),Promise.resolve()})),n.listener.Yr()}))})),this.stream.Zr((function(e){r((function(){return n.Qo(e)}))})),this.stream.onMessage((function(e){r((function(){return n.onMessage(e)}))}))}},{key:"Oo",value:function(){var e=this;this.state=5,this.xo.Ro(me(pe().mark((function t(){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.state=0,e.start();case 1:case"end":return t.stop()}}),t)}))))}},{key:"Qo",value:function(e){return Nh("PersistentStream","close with error: ".concat(e)),this.stream=null,this.close(4,e)}},{key:"Ko",value:function(e){var t=this;return function(n){t.Hs.enqueueAndForget((function(){return t.So===e?n():(Nh("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}}}]),e}(),Pg=function(e){ue(n,e);var t=de(n);function n(e,r,i,a,o,s){var u;return ye(this,n),(u=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",r,i,a,s)).yt=o,u}return we(n,[{key:"jo",value:function(e,t){return this.connection.wo("Listen",e,t)}},{key:"onMessage",value:function(e){this.xo.reset();var t=function(e,t){var n;if("targetChange"in t){t.targetChange;var r=function(e){return"NO_CHANGE"===e?0:"ADD"===e?1:"REMOVE"===e?2:"CURRENT"===e?3:"RESET"===e?4:Lh()}(t.targetChange.targetChangeType||"NO_CHANGE"),i=t.targetChange.targetIds||[],a=function(e,t){return e.wt?(Dh(void 0===t||"string"==typeof t),Tp.fromBase64String(t||"")):(Dh(void 0===t||t instanceof Uint8Array),Tp.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),o=t.targetChange.cause,s=o&&function(e){var t=void 0===e.code?Fh.UNKNOWN:Am(e.code);return new Vh(t,e.message||"")}(o);n=new Xm(r,i,a,s||null)}else if("documentChange"in t){t.documentChange;var u=t.documentChange;u.document,u.document.name,u.document.updateTime;var c=hy(e,u.document.name),l=cy(u.document.updateTime),f=u.document.createTime?cy(u.document.createTime):ep.min(),d=new Sv({mapValue:{fields:u.document.fields}}),h=Tv.newFoundDocument(c,l,f,d),p=u.targetIds||[],v=u.removedTargetIds||[];n=new $m(p,v,h.key,h)}else if("documentDelete"in t){t.documentDelete;var m=t.documentDelete;m.document;var y=hy(e,m.document),g=m.readTime?cy(m.readTime):ep.min(),b=Tv.newNoDocument(y,g),w=m.removedTargetIds||[];n=new $m([],w,b.key,b)}else if("documentRemove"in t){t.documentRemove;var k=t.documentRemove;k.document;var x=hy(e,k.document),_=k.removedTargetIds||[];n=new $m([],_,x,null)}else{if(!("filter"in t))return Lh();t.filter;var S=t.filter;S.targetId;var E=S.count||0,T=new Im(E),O=S.targetId;n=new Ym(O,T)}return n}(this.yt,e),n=function(e){if(!("targetChange"in e))return ep.min();var t=e.targetChange;return t.targetIds&&t.targetIds.length?ep.min():t.readTime?cy(t.readTime):ep.min()}(e);return this.listener.Wo(t,n)}},{key:"zo",value:function(e){var t={};t.database=my(this.yt),t.addTarget=function(e,t){var n,r=t.target;return(n=Nv(r)?{documents:wy(e,r)}:{query:ky(e,r)}).targetId=t.targetId,t.resumeToken.approximateByteSize()>0?n.resumeToken=sy(e,t.resumeToken):t.snapshotVersion.compareTo(ep.min())>0&&(n.readTime=oy(e,t.snapshotVersion.toTimestamp())),n}(this.yt,e);var n=function(e,t){var n=function(e,t){switch(t){case 0:return null;case 1:return"existence-filter-mismatch";case 2:return"limbo-document";default:return Lh()}}(0,t.purpose);return null==n?null:{"goog-listen-tags":n}}(this.yt,e);n&&(t.labels=n),this.Bo(t)}},{key:"Ho",value:function(e){var t={};t.database=my(this.yt),t.removeTarget=e,this.Bo(t)}}]),n}(Ag),Rg=function(e){ue(n,e);var t=de(n);function n(e,r,i,a,o,s){var u;return ye(this,n),(u=t.call(this,e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",r,i,a,s)).yt=o,u.Jo=!1,u}return we(n,[{key:"Yo",get:function(){return this.Jo}},{key:"start",value:function(){this.Jo=!1,this.lastStreamToken=void 0,ae(re(n.prototype),"start",this).call(this)}},{key:"Uo",value:function(){this.Jo&&this.Xo([])}},{key:"jo",value:function(e,t){return this.connection.wo("Write",e,t)}},{key:"onMessage",value:function(e){if(Dh(!!e.streamToken),this.lastStreamToken=e.streamToken,this.Jo){this.xo.reset();var t=function(e,t){return e&&e.length>0?(Dh(void 0!==t),e.map((function(e){return function(e,t){var n=e.updateTime?cy(e.updateTime):cy(t);return n.isEqual(ep.min())&&(n=cy(t)),new dm(n,e.transformResults||[])}(e,t)}))):[]}(e.writeResults,e.commitTime),n=cy(e.commitTime);return this.listener.Zo(n,t)}return Dh(!e.writeResults||0===e.writeResults.length),this.Jo=!0,this.listener.tu()}},{key:"eu",value:function(){var e={};e.database=my(this.yt),this.Bo(e)}},{key:"Xo",value:function(e){var t=this,n={streamToken:this.lastStreamToken,writes:e.map((function(e){return by(t.yt,e)}))};this.Bo(n)}}]),n}(Ag),Lg=function(e){ue(n,e);var t=de(n);function n(e,r,i,a){var o;return ye(this,n),(o=t.call(this)).authCredentials=e,o.appCheckCredentials=r,o.connection=i,o.yt=a,o.nu=!1,o}return we(n,[{key:"su",value:function(){if(this.nu)throw new Vh(Fh.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"ao",value:function(e,t,n){var r=this;return this.su(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(i){var a=ne(i,2),o=a[0],s=a[1];return r.connection.ao(e,t,n,o,s)})).catch((function(e){throw"FirebaseError"===e.name?(e.code===Fh.UNAUTHENTICATED&&(r.authCredentials.invalidateToken(),r.appCheckCredentials.invalidateToken()),e):new Vh(Fh.UNKNOWN,e.toString())}))}},{key:"_o",value:function(e,t,n,r){var i=this;return this.su(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((function(a){var o=ne(a,2),s=o[0],u=o[1];return i.connection._o(e,t,n,s,u,r)}
2)).catch((function(e){throw"FirebaseError"===e.name?(e.code===Fh.UNAUTHENTICATED&&(i.authCredentials.invalidateToken(),i.appCheckCredentials.invalidateToken()),e):new Vh(Fh.UNKNOWN,e.toString())}))}},{key:"terminate",value:function(){this.nu=!0}}]),n}(function(){return we((function e(){ye(this,e)}))}());var Dg=function(){function e(t,n){ye(this,e),this.asyncQueue=t,this.onlineStateHandler=n,this.state="Unknown",this.iu=0,this.ru=null,this.ou=!0}return we(e,[{key:"uu",value:function(){var e=this;0===this.iu&&(this.cu("Unknown"),this.ru=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return e.ru=null,e.au("Backend didn't respond within 10 seconds."),e.cu("Offline"),Promise.resolve()})))}},{key:"hu",value:function(e){"Online"===this.state?this.cu("Unknown"):(this.iu++,this.iu>=1&&(this.lu(),this.au("Connection failed 1 times. Most recent error: ".concat(e.toString())),this.cu("Offline")))}},{key:"set",value:function(e){this.lu(),this.iu=0,"Online"===e&&(this.ou=!1),this.cu(e)}},{key:"cu",value:function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}},{key:"au",value:function(e){var t="Could not reach Cloud Firestore backend. ".concat(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.ou?(Ah(t),this.ou=!1):Nh("OnlineStateTracker",t)}},{key:"lu",value:function(){null!==this.ru&&(this.ru.cancel(),this.ru=null)}}]),e}(),Mg=we((function e(t,n,r,i,a){var o=this;ye(this,e),this.localStore=t,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.fu=[],this.du=new Map,this._u=new Set,this.wu=[],this.mu=a,this.mu.Ur((function(e){r.enqueueAndForget(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=Qg(o),!e.t0){e.next=5;break}return Nh("RemoteStore","Restarting streams for network reachability change."),e.next=5,function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=Mh(t))._u.add(4),e.next=4,Ug(n);case 4:return n.gu.set("Unknown"),n._u.delete(4),e.next=8,Fg(n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(o);case 5:case"end":return e.stop()}}),e)}))))})),this.gu=new Dg(r,i)}));function Fg(e){return Vg.apply(this,arguments)}function Vg(){return Vg=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Qg(t)){e.next=18;break}n=he(t.wu),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=10;break}return i=r.value,e.next=8,i(!0);case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),n.e(e.t0);case 15:return e.prev=15,n.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])}))),Vg.apply(this,arguments)}function Ug(e){return zg.apply(this,arguments)}function zg(){return zg=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=he(t.wu),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return i=r.value,e.next=7,i(!1);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))),zg.apply(this,arguments)}function Bg(e,t){var n=Mh(e);n.du.has(t.targetId)||(n.du.set(t.targetId,t),Kg(n)?Gg(n):_b(n).ko()&&Hg(n,t))}function qg(e,t){var n=Mh(e),r=_b(n);n.du.delete(t),r.ko()&&Wg(n,t),0===n.du.size&&(r.ko()?r.Fo():Qg(n)&&n.gu.set("Unknown"))}function Hg(e,t){e.yu.Ot(t.targetId),_b(e).zo(t)}function Wg(e,t){e.yu.Ot(t),_b(e).Ho(t)}function Gg(e){e.yu=new Zm({getRemoteKeysForTarget:function(t){return e.remoteSyncer.getRemoteKeysForTarget(t)},ne:function(t){return e.du.get(t)||null}}),_b(e).start(),e.gu.uu()}function Kg(e){return Qg(e)&&!_b(e).No()&&e.du.size>0}function Qg(e){return 0===Mh(e)._u.size}function $g(e){e.yu=void 0}function Yg(e){return Xg.apply(this,arguments)}function Xg(){return Xg=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.du.forEach((function(e,n){Hg(t,e)}));case 1:case"end":return e.stop()}}),e)}))),Xg.apply(this,arguments)}function Jg(e,t){return Zg.apply(this,arguments)}function Zg(){return Zg=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:$g(t),Kg(t)?(t.gu.hu(n),Gg(t)):t.gu.set("Unknown");case 1:case"end":return e.stop()}}),e)}))),Zg.apply(this,arguments)}function eb(e,t,n){return tb.apply(this,arguments)}function tb(){return tb=me(pe().mark((function e(t,n,r){var i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.gu.set("Online"),!(n instanceof Xm&&2===n.state&&n.cause)){e.next=13;break}return e.prev=1,e.next=4,function(){var e=me(pe().mark((function e(t,n){var r,i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=n.cause,i=he(n.targetIds),e.prev=2,i.s();case 4:if((a=i.n()).done){e.next=14;break}if(o=a.value,e.t0=t.du.has(o),!e.t0){e.next=12;break}return e.next=10,t.remoteSyncer.rejectListen(o,r);case 10:t.du.delete(o),t.yu.removeTarget(o);case 12:e.next=4;break;case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(2),i.e(e.t1);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[2,16,19,22]])})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:e.next=11;break;case 6:return e.prev=6,e.t0=e.catch(1),Nh("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),e.t0),e.next=11,nb(t,e.t0);case 11:case 22:e.next=29;break;case 13:if(n instanceof $m?t.yu.Kt(n):n instanceof Ym?t.yu.Jt(n):t.yu.jt(n),r.isEqual(ep.min())){e.next=29;break}return e.prev=14,e.next=17,hg(t.localStore);case 17:if(i=e.sent,e.t1=r.compareTo(i)>=0,!e.t1){e.next=22;break}return e.next=22,function(e,t){var n=e.yu.Zt(t);
2return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=e.du.get(r);i&&e.du.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach((function(t){var n=e.du.get(t);if(n){e.du.set(t,n.withResumeToken(Tp.EMPTY_BYTE_STRING,n.snapshotVersion)),Wg(e,t);var r=new Fy(n.target,t,1,n.sequenceNumber);Hg(e,r)}})),e.remoteSyncer.applyRemoteEvent(n)}(t,r);case 24:return e.prev=24,e.t2=e.catch(14),Nh("RemoteStore","Failed to raise snapshot:",e.t2),e.next=29,nb(t,e.t2);case 29:case"end":return e.stop()}}),e,null,[[1,6],[14,24]])}))),tb.apply(this,arguments)}function nb(e,t,n){return rb.apply(this,arguments)}function rb(){return rb=me(pe().mark((function e(t,n,r){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(mp(n)){e.next=2;break}throw n;case 2:return t._u.add(1),e.next=5,Ug(t);case 5:t.gu.set("Offline"),r||(r=function(){return hg(t.localStore)}),t.asyncQueue.enqueueRetryable(me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nh("RemoteStore","Retrying IndexedDB access"),e.next=3,r();case 3:return t._u.delete(1),e.next=6,Fg(t);case 6:case"end":return e.stop()}}),e)}))));case 8:case"end":return e.stop()}}),e)}))),rb.apply(this,arguments)}function ib(e,t){return t().catch((function(n){return nb(e,n,t)}))}function ab(e){return ob.apply(this,arguments)}function ob(){return ob=me(pe().mark((function e(t){var n,r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Mh(t),r=Sb(n),i=n.fu.length>0?n.fu[n.fu.length-1].batchId:-1;case 2:if(!sb(n)){e.next=19;break}return e.prev=3,e.next=6,mg(n.localStore,i);case 6:if(null!==(a=e.sent)){e.next=10;break}return 0===n.fu.length&&r.Fo(),e.abrupt("break",19);case 10:i=a.batchId,ub(n,a),e.next=17;break;case 13:return e.prev=13,e.t0=e.catch(3),e.next=17,nb(n,e.t0);case 17:e.next=2;break;case 19:cb(n)&&lb(n);case 20:case"end":return e.stop()}}),e,null,[[3,13]])}))),ob.apply(this,arguments)}function sb(e){return Qg(e)&&e.fu.length<10}function ub(e,t){e.fu.push(t);var n=Sb(e);n.ko()&&n.Yo&&n.Xo(t.mutations)}function cb(e){return Qg(e)&&!Sb(e).No()&&e.fu.length>0}function lb(e){Sb(e).start()}function fb(e){return db.apply(this,arguments)}function db(){return db=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Sb(t).eu();case 1:case"end":return e.stop()}}),e)}))),db.apply(this,arguments)}function hb(e){return pb.apply(this,arguments)}function pb(){return pb=me(pe().mark((function e(t){var n,r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Sb(t),r=he(t.fu);try{for(r.s();!(i=r.n()).done;)a=i.value,n.Xo(a.mutations)}catch(o){r.e(o)}finally{r.f()}case 3:case"end":return e.stop()}}),e)}))),pb.apply(this,arguments)}function vb(e,t,n){return mb.apply(this,arguments)}function mb(){return mb=me(pe().mark((function e(t,n,r){var i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=t.fu.shift(),a=Dy.from(i,n,r),e.next=3,ib(t,(function(){return t.remoteSyncer.applySuccessfulWrite(a)}));case 3:return e.next=5,ab(t);case 5:case"end":return e.stop()}}),e)}))),mb.apply(this,arguments)}function yb(e,t){return gb.apply(this,arguments)}function gb(){return gb=me(pe().mark((function e(t,n){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=n&&Sb(t).Yo,!e.t0){e.next=4;break}return e.next=4,function(){var e=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Nm(i=n.code)||i===Fh.ABORTED){e.next=7;break}return r=t.fu.shift(),Sb(t).Mo(),e.next=5,ib(t,(function(){return t.remoteSyncer.rejectFailedWrite(r.batchId,n)}));case 5:return e.next=7,ab(t);case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()(t,n);case 4:cb(t)&&lb(t);case 5:case"end":return e.stop()}}),e)}))),gb.apply(this,arguments)}function bb(e,t){return wb.apply(this,arguments)}function wb(){return wb=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=Mh(t)).asyncQueue.verifyOperationInProgress(),Nh("RemoteStore","RemoteStore received new credentials"),i=Qg(r),r._u.add(3),e.next=6,Ug(r);case 6:return i&&r.gu.set("Unknown"),e.next=9,r.remoteSyncer.handleCredentialChange(n);case 9:return r._u.delete(3),e.next=12,Fg(r);case 12:case"end":return e.stop()}}),e)}))),wb.apply(this,arguments)}function kb(e,t){return xb.apply(this,arguments)}function xb(){return xb=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mh(t),!n){e.next=7;break}return r._u.delete(2),e.next=5,Fg(r);case 5:e.next=13;break;case 7:if(e.t0=n,e.t0){e.next=13;break}return r._u.add(2),e.next=12,Ug(r);case 12:r.gu.set("Unknown");case 13:case"end":return e.stop()}}),e)}))),xb.apply(this,arguments)}function _b(e){return e.pu||(e.pu=function(e,t,n){var r=Mh(e);return r.su(),new Pg(t,r.connection,r.authCredentials,r.appCheckCredentials,r.yt,n)}(e.datastore,e.asyncQueue,{Yr:Yg.bind(null,e),Zr:Jg.bind(null,e),Wo:eb.bind(null,e)}),e.wu.push(function(){var t=me(pe().mark((function t(n){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}e.pu.Mo(),Kg(e)?Gg(e):e.gu.set("Unknown"),t.next=7;break;case 4:return t.next=6,e.pu.stop();case 6:$g(e);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.pu}function Sb(e){return e.Iu||(e.Iu=function(e,t,n){var r=Mh(e);return r.su(),new Rg(t,r.connection,r.authCredentials,r.appCheckCredentials,r.yt,n)}(e.datastore,e.asyncQueue,{Yr:fb.bind(null,e),Zr:yb.bind(null,e),tu:hb.bind(null,e),Zo:vb.bind(null,e)}),e.wu.push(function(){var t=me(pe().mark((function t(n){return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=6;break}return e.Iu.Mo(),t.next=4,ab(e);case 4:t.next=9;break;case 6:return t.next=8,e.Iu.stop();case 8:e.fu.length>0&&(Nh("RemoteStore","Stopping write stream with ".concat(e.fu.length," pending writes")),e.fu=[]);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),e.Iu}var Eb=function(){function e(t,n,r,i,a){ye(this,e),this.asyncQueue=t,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=a,this.deferred=new Uh,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(e){}))}return we(e,[{key:"start",value:function(e){var t=this;this.timerHandle=setTimeout((function(){return t.handleDelayElapsed()}),e)}},{key:"skipDelay",value:function(){return this.handleDelayElapsed()}},{key:"cancel",value:function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Vh(Fh.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}},{key:"handleDelayElapsed",value:function(){var e=this;this.asyncQueue.enqueueAndForget((function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then((function(t){return e.deferred.resolve(t)}))):Promise.resolve()}))}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}))}],[{key:"createAndSchedule",value:function(t,n,r,i,a){var o=new e(t,n,Date.now()+r,i,a);return o.start(r),o}}]),e}();function Tb(e,t){if(Ah("AsyncQueue","".concat(t,": ").concat(e)),mp(e))return new Vh(Fh.UNAVAILABLE,"".concat(t,": ").concat(e));throw e}var Ob=function(){function e(t){ye(this,e),this.comparator=t?function(e,n){return t(e,n)||ap.comparator(e.key,n.key)}:function(e,t){return ap.comparator(e.key,t.key)},this.keyedMap=Mm(),this.sortedSet=new gv(this.comparator)}return we(e,[{key:"has",value:function(e){return null!=this.keyedMap.get(e)}},{key:"get",value:function(e){return this.keyedMap.get(e)}},{key:"first",value:function(){return this.sortedSet.minKey()}},{key:"last",value:function(){return this.sortedSet.maxKey()}},{key:"isEmpty",value:function(){return this.sortedSet.isEmpty()}},{key:"indexOf",value:function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}},{key:"size",get:function(){return this.sortedSet.size}}
2,{key:"forEach",value:function(e){this.sortedSet.inorderTraversal((function(t,n){return e(t),!1}))}},{key:"add",value:function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}},{key:"delete",value:function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}},{key:"isEqual",value:function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(!i.isEqual(a))return!1}return!0}},{key:"toString",value:function(){var e=[];return this.forEach((function(t){e.push(t.toString())})),0===e.length?"DocumentSet ()":"DocumentSet (\n  "+e.join("  \n")+"\n)"}},{key:"copy",value:function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r}}],[{key:"emptySet",value:function(t){return new e(t.comparator)}}]),e}(),jb=function(){function e(){ye(this,e),this.Tu=new gv(ap.comparator)}return we(e,[{key:"track",value:function(e){var t=e.doc.key,n=this.Tu.get(t);n?0!==e.type&&3===n.type?this.Tu=this.Tu.insert(t,e):3===e.type&&1!==n.type?this.Tu=this.Tu.insert(t,{type:n.type,doc:e.doc}):2===e.type&&2===n.type?this.Tu=this.Tu.insert(t,{type:2,doc:e.doc}):2===e.type&&0===n.type?this.Tu=this.Tu.insert(t,{type:0,doc:e.doc}):1===e.type&&0===n.type?this.Tu=this.Tu.remove(t):1===e.type&&2===n.type?this.Tu=this.Tu.insert(t,{type:1,doc:n.doc}):0===e.type&&1===n.type?this.Tu=this.Tu.insert(t,{type:2,doc:e.doc}):Lh():this.Tu=this.Tu.insert(t,e)}},{key:"Eu",value:function(){var e=[];return this.Tu.inorderTraversal((function(t,n){e.push(n)})),e}}]),e}(),Cb=function(){function e(t,n,r,i,a,o,s,u,c){ye(this,e),this.query=t,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=a,this.fromCache=o,this.syncStateChanged=s,this.excludesMetadataChanges=u,this.hasCachedResults=c}return we(e,[{key:"hasPendingWrites",get:function(){return!this.mutatedKeys.isEmpty()}},{key:"isEqual",value:function(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&qv(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0}}],[{key:"fromInitialDocuments",value:function(t,n,r,i,a){var o=[];return n.forEach((function(e){o.push({type:0,doc:e})})),new e(t,n,Ob.emptySet(n),o,r,i,!0,!1,a)}}]),e}(),Ib=we((function e(){ye(this,e),this.Au=void 0,this.listeners=[]})),Nb=we((function e(){ye(this,e),this.queries=new Pm((function(e){return Hv(e)}),qv),this.onlineState="Unknown",this.Ru=new Set}));function Ab(e,t){return Pb.apply(this,arguments)}function Pb(){return Pb=me(pe().mark((function e(t,n){var r,i,a,o,s;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mh(t),i=n.query,a=!1,(o=r.queries.get(i))||(a=!0,o=new Ib),!a){e.next=13;break}return e.prev=3,e.next=6,r.onListen(i);case 6:o.Au=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),s=Tb(e.t0,"Initialization of query '".concat(Wv(n.query),"' failed")),e.abrupt("return",void n.onError(s));case 13:r.queries.set(i,o),o.listeners.push(n),n.bu(r.onlineState),o.Au&&n.Pu(o.Au)&&Fb(r);case 14:case"end":return e.stop()}}),e,null,[[3,9]])}))),Pb.apply(this,arguments)}function Rb(e,t){return Lb.apply(this,arguments)}function Lb(){return Lb=me(pe().mark((function e(t,n){var r,i,a,o,s;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mh(t),i=n.query,a=!1,(o=r.queries.get(i))&&(s=o.listeners.indexOf(n))>=0&&(o.listeners.splice(s,1),a=0===o.listeners.length),!a){e.next=6;break}return e.abrupt("return",(r.queries.delete(i),r.onUnlisten(i)));case 6:case"end":return e.stop()}}),e)}))),Lb.apply(this,arguments)}function Db(e,t){var n,r=Mh(e),i=!1,a=he(t);try{for(a.s();!(n=a.n()).done;){var o=n.value,s=o.query,u=r.queries.get(s);if(u){var c,l=he(u.listeners);try{for(l.s();!(c=l.n()).done;){c.value.Pu(o)&&(i=!0)}}catch(f){l.e(f)}finally{l.f()}u.Au=o}}}catch(f){a.e(f)}finally{a.f()}i&&Fb(r)}function Mb(e,t,n){var r=Mh(e),i=r.queries.get(t);if(i){var a,o=he(i.listeners);try{for(o.s();!(a=o.n()).done;){a.value.onError(n)}}catch(s){o.e(s)}finally{o.f()}}r.queries.delete(t)}function Fb(e){e.Ru.forEach((function(e){e.next()}))}
2var Vb=function(){function e(t,n,r){ye(this,e),this.query=t,this.vu=n,this.Vu=!1,this.Su=null,this.onlineState="Unknown",this.options=r||{}}return we(e,[{key:"Pu",value:function(e){if(!this.options.includeMetadataChanges){var t,n=[],r=he(e.docChanges);try{for(r.s();!(t=r.n()).done;){var i=t.value;3!==i.type&&n.push(i)}}catch(o){r.e(o)}finally{r.f()}e=new Cb(e.query,e.docs,e.oldDocs,n,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}var a=!1;return this.Vu?this.Du(e)&&(this.vu.next(e),a=!0):this.Cu(e,this.onlineState)&&(this.xu(e),a=!0),this.Su=e,a}},{key:"onError",value:function(e){this.vu.error(e)}},{key:"bu",value:function(e){this.onlineState=e;var t=!1;return this.Su&&!this.Vu&&this.Cu(this.Su,e)&&(this.xu(this.Su),t=!0),t}},{key:"Cu",value:function(e,t){if(!e.fromCache)return!0;var n="Offline"!==t;return(!this.options.Nu||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||"Offline"===t)}},{key:"Du",value:function(e){if(e.docChanges.length>0)return!0;var t=this.Su&&this.Su.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}},{key:"xu",value:function(e){e=Cb.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Vu=!0,this.vu.next(e)}}]),e}();var Ub=we((function e(t){ye(this,e),this.key=t})),zb=we((function e(t){ye(this,e),this.key=t})),Bb=function(){function e(t,n){ye(this,e),this.query=t,this.qu=n,this.Uu=null,this.hasCachedResults=!1,this.current=!1,this.Ku=Hm(),this.mutatedKeys=Hm(),this.Gu=Qv(t),this.Qu=new Ob(this.Gu)}return we(e,[{key:"ju",get:function(){return this.qu}},{key:"Wu",value:function(e,t){var n=this,r=t?t.zu:new jb,i=t?t.Qu:this.Qu,a=t?t.mutatedKeys:this.mutatedKeys,o=i,s=!1,u="F"===this.query.limitType&&i.size===this.query.limit?i.last():null,c="L"===this.query.limitType&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((function(e,t){var l=i.get(e),f=Gv(n.query,t)?t:null,d=!!l&&n.mutatedKeys.has(l.key),h=!!f&&(f.hasLocalMutations||n.mutatedKeys.has(f.key)&&f.hasCommittedMutations),p=!1;l&&f?l.data.isEqual(f.data)?d!==h&&(r.track({type:3,doc:f}),p=!0):n.Hu(l,f)||(r.track({type:2,doc:f}),p=!0,(u&&n.Gu(f,u)>0||c&&n.Gu(f,c)<0)&&(s=!0)):!l&&f?(r.track({type:0,doc:f}),p=!0):l&&!f&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(s=!0)),p&&(f?(o=o.add(f),a=h?a.add(e):a.delete(e)):(o=o.delete(e),a=a.delete(e)))})),null!==this.query.limit)for(;o.size>this.query.limit;){var l="F"===this.query.limitType?o.last():o.first();o=o.delete(l.key),a=a.delete(l.key),r.track({type:1,doc:l})}return{Qu:o,zu:r,$i:s,mutatedKeys:a}}},{key:"Hu",value:function(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}},{key:"applyChanges",value:function(e,t,n){var r=this,i=this.Qu;this.Qu=e.Qu,this.mutatedKeys=e.mutatedKeys;var a=e.zu.Eu();a.sort((function(e,t){return function(e,t){var n=function(e){switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Lh()}};return n(e)-n(t)}(e.type,t.type)||r.Gu(e.doc,t.doc)})),this.Ju(n);var o=t?this.Yu():[],s=0===this.Ku.size&&this.current?1:0,u=s!==this.Uu;return this.Uu=s,0!==a.length||u?{snapshot:new Cb(this.query,e.Qu,i,a,e.mutatedKeys,0===s,u,!1,!!n&&n.resumeToken.approximateByteSize()>0),Xu:o}:{Xu:o}}},{key:"bu",value:function(e){return this.current&&"Offline"===e?(this.current=!1,this.applyChanges({Qu:this.Qu,zu:new jb,mutatedKeys:this.mutatedKeys,$i:!1},!1)):{Xu:[]}}},{key:"Zu",value:function(e){return!this.qu.has(e)&&!!this.Qu.has(e)&&!this.Qu.get(e).hasLocalMutations}},{key:"Ju",value:function(e){var t=this;e&&(e.addedDocuments.forEach((function(e){return t.qu=t.qu.add(e)})),e.modifiedDocuments.forEach((function(e){})),e.removedDocuments.forEach((function(e){return t.qu=t.qu.delete(e)})),this.current=e.current)}},{key:"Yu",value:function(){var e=this;if(!this.current)return[];var t=this.Ku;this.Ku=Hm(),this.Qu.forEach((function(t){e.Zu(t.key)&&(e.Ku=e.Ku.add(t.key))}));var n=[];return t.forEach((function(t){e.Ku.has(t)||n.push(new zb(t))})),this.Ku.forEach((function(e){t.has(e)||n.push(new Ub(e))})),n}},{key:"tc",value:function(e){this.qu=e.Hi,this.Ku=Hm();var t=this.Wu(e.documents);return this.applyChanges(t,!0)}},{key:"ec",value:function(){return Cb.fromInitialDocuments(this.query,this.Qu,this.mutatedKeys,0===this.Uu,this.hasCachedResults)}}]),e}
2(),qb=we((function e(t,n,r){ye(this,e),this.query=t,this.targetId=n,this.view=r})),Hb=we((function e(t){ye(this,e),this.key=t,this.nc=!1})),Wb=function(){function e(t,n,r,i,a,o){ye(this,e),this.localStore=t,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=a,this.maxConcurrentLimboResolutions=o,this.sc={},this.ic=new Pm((function(e){return Hv(e)}),qv),this.rc=new Map,this.oc=new Set,this.uc=new gv(ap.comparator),this.cc=new Map,this.ac=new Xy,this.hc={},this.lc=new Map,this.fc=Wy.vn(),this.onlineState="Unknown",this.dc=void 0}return we(e,[{key:"isPrimaryClient",get:function(){return!0===this.dc}}]),e}();function Gb(e,t){return Kb.apply(this,arguments)}function Kb(){return Kb=me(pe().mark((function e(t,n){var r,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=kw(t),!(o=r.ic.get(n))){e.next=6;break}i=o.targetId,r.sharedClientState.addLocalQueryTarget(i),a=o.view.ec(),e.next=15;break;case 6:return e.next=8,yg(r.localStore,Uv(n));case 8:return s=e.sent,r.isPrimaryClient&&Bg(r.remoteStore,s),u=r.sharedClientState.addLocalQueryTarget(s.targetId),i=s.targetId,e.next=14,Qb(r,n,i,"current"===u,s.resumeToken);case 14:a=e.sent;case 15:return e.abrupt("return",a);case 16:case"end":return e.stop()}}),e)}))),Kb.apply(this,arguments)}function Qb(e,t,n,r,i){return $b.apply(this,arguments)}function $b(){return $b=me(pe().mark((function e(t,n,r,i,a){var o,s,u,c,l,f;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t._c=function(e,n,r){return function(){var e=me(pe().mark((function e(t,n,r,i){var a,o,s;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=n.view.Wu(r),e.t0=a.$i,!e.t0){e.next=6;break}return e.next=5,wg(t.localStore,n.query,!1).then((function(e){var t=e.documents;return n.view.Wu(t,a)}));case 5:a=e.sent;case 6:return o=i&&i.targetChanges.get(n.targetId),s=n.view.applyChanges(a,t.isPrimaryClient,o),e.abrupt("return",(hw(t,n.targetId,s.Xu),s.snapshot));case 8:case"end":return e.stop()}}),e)})));return function(t,n,r,i){return e.apply(this,arguments)}}()(t,e,n,r)},e.next=3,wg(t.localStore,n,!0);case 3:return o=e.sent,s=new Bb(n,o.Hi),u=s.Wu(o.documents),c=Qm.createSynthesizedTargetChangeForCurrentChange(r,i&&"Offline"!==t.onlineState,a),l=s.applyChanges(u,t.isPrimaryClient,c),hw(t,r,l.Xu),f=new qb(n,r,s),e.abrupt("return",(t.ic.set(n,f),t.rc.has(r)?t.rc.get(r).push(n):t.rc.set(r,[n]),l.snapshot));case 11:case"end":return e.stop()}}),e)}))),$b.apply(this,arguments)}function Yb(e,t){return Xb.apply(this,arguments)}function Xb(){return Xb=me(pe().mark((function e(t,n){var r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=Mh(t),i=r.ic.get(n),!((a=r.rc.get(i.targetId)).length>1)){e.next=3;break}return e.abrupt("return",(r.rc.set(i.targetId,a.filter((function(e){return!qv(e,n)}))),void r.ic.delete(n)));case 3:if(!r.isPrimaryClient){e.next=11;break}if(r.sharedClientState.removeLocalQueryTarget(i.targetId),e.t0=r.sharedClientState.isActiveQueryTarget(i.targetId),e.t0){e.next=9;break}return e.next=9,gg(r.localStore,i.targetId,!1).then((function(){r.sharedClientState.clearQueryState(i.targetId),qg(r.remoteStore,i.targetId),fw(r,i.targetId)})).catch(hp);case 9:e.next=14;break;case 11:return fw(r,i.targetId),e.next=14,gg(r.localStore,i.targetId,!0);case 14:case"end":return e.stop()}}),e)}))),Xb.apply(this,arguments)}function Jb(e,t,n){return Zb.apply(this,arguments)}function Zb(){return Zb=me(pe().mark((function e(t,n,r){var i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=xw(t),e.prev=1,e.next=4,function(e,t){var n,r,i=Mh(e),a=Zh.now(),o=t.reduce((function(e,t){return e.add(t.key)}),Hm());return i.persistence.runTransaction("Locally write mutations","readwrite",(function(e){var s=Lm(),u=Hm();return i.Gi.getEntries(e,o).next((function(e){(s=e).forEach((function(e,t){t.isValidDocument()||(u=u.add(e))}))})).next((function(){return i.localDocuments.getOverlayedDocuments(e,s)})).next((function(r){n=r;var o,s=[],u=he(t);try{for(u.s();!(o=u.n()).done;){var c=o.value,l=bm(c,n.get(c.key).overlayedDocument);null!=l&&s.push(new xm(c.key,l,Ev(l.value.mapValue),hm.exists(!0)))}}catch(f){u.e(f)}finally{u.f()}
2return i.mutationQueue.addMutationBatch(e,a,s,t)})).next((function(t){r=t;var a=t.applyToLocalDocumentSet(n,u);return i.documentOverlayCache.saveOverlays(e,t.batchId,a)}))})).then((function(){return{batchId:r.batchId,changes:Fm(n)}}))}(i.localStore,n);case 4:return a=e.sent,i.sharedClientState.addPendingMutation(a.batchId),function(e,t,n){var r=e.hc[e.currentUser.toKey()];r||(r=new gv(Xh)),r=r.insert(t,n),e.hc[e.currentUser.toKey()]=r}(i,a.batchId,r),e.next=9,mw(i,a.changes);case 9:return e.next=11,ab(i.remoteStore);case 11:e.next=17;break;case 13:e.prev=13,e.t0=e.catch(1),o=Tb(e.t0,"Failed to persist write"),r.reject(o);case 17:case"end":return e.stop()}}),e,null,[[1,13]])}))),Zb.apply(this,arguments)}function ew(e,t){return tw.apply(this,arguments)}function tw(){return tw=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mh(t),e.prev=1,e.next=4,pg(r.localStore,n);case 4:return i=e.sent,n.targetChanges.forEach((function(e,t){var n=r.cc.get(t);n&&(Dh(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?n.nc=!0:e.modifiedDocuments.size>0?Dh(n.nc):e.removedDocuments.size>0&&(Dh(n.nc),n.nc=!1))})),e.next=8,mw(r,i,n);case 8:e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(1),e.next=14,hp(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,10]])}))),tw.apply(this,arguments)}function nw(e,t,n){var r=Mh(e);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.ic.forEach((function(e,n){var r=n.view.bu(t);r.snapshot&&i.push(r.snapshot)})),function(e,t){var n=Mh(e);n.onlineState=t;var r=!1;n.queries.forEach((function(e,n){var i,a=he(n.listeners);try{for(a.s();!(i=a.n()).done;){i.value.bu(t)&&(r=!0)}}catch(o){a.e(o)}finally{a.f()}})),r&&Fb(n)}(r.eventManager,t),i.length&&r.sc.Wo(i),r.onlineState=t,r.isPrimaryClient&&r.sharedCl
2ientState.setOnlineState(t)}}function rw(e,t,n){return iw.apply(this,arguments)}function iw(){return iw=me(pe().mark((function e(t,n,r){var i,a,o,s,u,c;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((i=Mh(t)).sharedClientState.updateQueryState(n,"rejected",r),a=i.cc.get(n),!(o=a&&a.key)){e.next=14;break}return s=(s=new gv(ap.comparator)).insert(o,Tv.newNoDocument(o,ep.min())),u=Hm().add(o),c=new Km(ep.min(),new Map,new kv(Xh),s,u),e.next=9,ew(i,c);case 9:i.uc=i.uc.remove(o),i.cc.delete(n),vw(i),e.next=16;break;case 14:return e.next=16,gg(i.localStore,n,!1).then((function(){return fw(i,n,r)})).catch(hp);case 16:case"end":return e.stop()}}),e)}))),iw.apply(this,arguments)}function aw(e,t){return ow.apply(this,arguments)}function ow(){return ow=me(pe().mark((function e(t,n){var r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mh(t),i=n.batch.batchId,e.prev=1,e.next=4,dg(r.localStore,n);case 4:return a=e.sent,lw(r,i,null),cw(r,i),r.sharedClientState.updateMutationState(i,"acknowledged"),e.next=10,mw(r,a);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,hp(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),ow.apply(this,arguments)}function sw(e,t,n){return uw.apply(this,arguments)}function uw(){return uw=me(pe().mark((function e(t,n,r){var i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=Mh(t),e.prev=1,e.next=4,function(e,t){var n=Mh(e);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(e){var r;
2return n.mutationQueue.lookupMutationBatch(e,t).next((function(t){return Dh(null!==t),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)})).next((function(){return n.mutationQueue.performConsistencyCheck(e)})).next((function(){return n.documentOverlayCache.removeOverlaysForBatchId(e,r,t)})).next((function(){return n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r)})).next((function(){return n.localDocuments.getDocuments(e,r)}))}))}(i.localStore,n);case 4:return a=e.sent,lw(i,n,r),cw(i,n),i.sharedClientState.updateMutationState(n,"rejected",r),e.next=10,mw(i,a);case 10:e.next=16;break;case 12:return e.prev=12,e.t0=e.catch(1),e.next=16,hp(e.t0);case 16:case"end":return e.stop()}}),e,null,[[1,12]])}))),uw.apply(this,arguments)}function cw(e,t){(e.lc.get(t)||[]).forEach((function(e){e.resolve()})),e.lc.delete(t)}function lw(e,t,n){var r=Mh(e),i=r.hc[r.currentUser.toKey()];if(i){var a=i.get(t);a&&(n?a.reject(n):a.resolve(),i=i.remove(t)),r.hc[r.currentUser.toKey()]=i}}function fw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e.sharedClientState.removeLocalQueryTarget(t);var r,i=he(e.rc.get(t));try{for(i.s();!(r=i.n()).done;){var a=r.value;e.ic.delete(a),n&&e.sc.wc(a,n)}}catch(o){i.e(o)}finally{i.f()}e.rc.delete(t),e.isPrimaryClient&&e.ac.ls(t).forEach((function(t){e.ac.containsKey(t)||dw(e,t)}))}function dw(e,t){e.oc.delete(t.path.canonicalString());var n=e.uc.get(t);null!==n&&(qg(e.remoteStore,n),e.uc=e.uc.remove(t),e.cc.delete(n),vw(e))}function hw(e,t,n){var r,i=he(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;a instanceof Ub?(e.ac.addReference(a.key,t),pw(e,a)):a instanceof zb?(Nh("SyncEngine","Document no longer in limbo: "+a.key),e.ac.removeReference(a.key,t),e.ac.containsKey(a.key)||dw(e,a.key)):Lh()}}catch(o){i.e(o)}finally{i.f()}}function pw(e,t){var n=t.key,r=n.path.canonicalString();e.uc.get(n)||e.oc.has(r)||(Nh("SyncEngine","New document in limbo: "+n),e.oc.add(r),vw(e))}function vw(e){for(;e.oc.size>0&&e.uc.size<e.maxConcurrentLimboResolutions;){var t=e.oc.values().next().value;e.oc.delete(t);var n=new ap(np.fromString(t)),r=e.fc.next();e.cc.set(r,new Hb(n)),e.uc=e.uc.insert(n,r),Bg(e.remoteStore,new Fy(Uv(Rv(n.path)),r,2,yp.at))}}
2function mw(e,t,n){return yw.apply(this,arguments)}function yw(){return yw=me(pe().mark((function e(t,n,r){var i,a,o,s;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=Mh(t),a=[],o=[],s=[],e.t0=i.ic.isEmpty(),e.t0){e.next=9;break}return i.ic.forEach((function(e,t){s.push(i._c(t,n,r).then((function(e){if((e||r)&&i.isPrimaryClient&&i.sharedClientState.updateQueryState(t.targetId,(null==e?void 0:e.fromCache)?"not-current":"current"),e){a.push(e);var n=og.Ci(t.targetId,e);o.push(n)}})))})),e.next=6,Promise.all(s);case 6:return i.sc.Wo(a),e.next=9,function(){var e=me(pe().mark((function e(t,n){var r,i,a,o,s,u,c,l;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mh(t),e.prev=1,e.next=4,r.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(e){return vp.forEach(n,(function(t){return vp.forEach(t.Si,(function(n){return r.persistence.referenceDelegate.addReference(e,t.targetId,n)})).next((function(){return vp.forEach(t.Di,(function(n){return r.persistence.referenceDelegate.removeReference(e,t.targetId,n)}))}))}))}));case 4:e.next=11;break;case 6:if(e.prev=6,e.t0=e.catch(1),mp(e.t0)){e.next=10;break}throw e.t0;case 10:Nh("LocalStore","Failed to update sequence numbers: "+e.t0);case 11:i=he(n);try{for(i.s();!(a=i.n()).done;)o=a.value,s=o.targetId,o.fromCache||(u=r.qi.get(s),c=u.snapshotVersion,l=u.withLastLimboFreeSnapshotVersion(c),r.qi=r.qi.insert(s,l))}catch(f){i.e(f)}finally{i.f()}case 13:case"end":return e.stop()}}),e,null,[[1,6]])})));return function(t,n){return e.apply(this,arguments)}}()(i.localStore,o);case 9:case"end":return e.stop()}}),e)}))),yw.apply(this,arguments)}function gw(e,t){return bw.apply(this,arguments)}function bw(){return bw=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=Mh(t)).currentUser.isEqual(n)){e.next=11;break}return Nh("SyncEngine","User change. New user:",n.toKey()),e.next=5,lg(r.localStore,n);case 5:return i=e.sent,r.currentUser=n,function(e,t){e.lc.forEach((function(e){e.forEach((function(e){e.reject(new Vh(Fh.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),e.lc.clear()}(r),r.sharedClientState.handleUserChange(n,i.removedBatchIds,i.addedBatchIds),e.next=11,mw(r,i.ji);case 11:case"end":return e.stop()}}),e)}))),bw.apply(this,arguments)}function ww(e,t){var n=Mh(e),r=n.cc.get(t);if(r&&r.nc)return Hm().add(r.key);var i=Hm(),a=n.rc.get(t);if(!a)return i;var o,s=he(a);try{for(s.s();!(o=s.n()).done;){var u=o.value,c=n.ic.get(u);i=i.unionWith(c.view.ju)}}catch(l){s.e(l)}finally{s.f()}return i}function kw(e){var t=Mh(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=ew.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=ww.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=rw.bind(null,t),t.sc.Wo=Db.bind(null,t.eventManager),t.sc.wc=Mb.bind(null,t.eventManager),t}function xw(e){var t=Mh(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=aw.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=sw.bind(null,t),t}var _w=function(){function e(){ye(this,e),this.synchronizeTabs=!1}return we(e,[{key:"initialize",value:function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.yt=Ig(t.databaseInfo.databaseId),this.sharedClientState=this.gc(t),this.persistence=this.yc(t),e.next=5,this.persistence.start();case 5:this.localStore=this.Ic(t),this.gcScheduler=this.Tc(t,this.localStore),this.indexBackfillerScheduler=this.Ec(t,this.localStore);case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"Tc",value:function(e,t){return null}},{key:"Ec",value:function(e,t){return null}},{key:"Ic",value:function(e){return cg(this.persistence,new sg,e.initialUser,this.yt)}},{key:"yc",value:function(e){return new rg(ag.Bs,this.yt)}},{key:"gc",value:function(e){return new _g}},{key:"terminate",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.gcScheduler&&this.gcScheduler.stop(),e.next=3,this.sharedCl
2ientState.shutdown();case 3:return e.next=5,this.persistence.shutdown();case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Sw=function(){function e(){ye(this,e)}return we(e,[{key:"initialize",value:function(){var e=me(pe().mark((function e(t,n){var r=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.localStore,e.t0){e.next=12;break}return this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(e){return nw(r.syncEngine,e,1)},this.remoteStore.remoteSyncer.handleCredentialChange=gw.bind(null,this.syncEngine),e.next=12,kb(this.remoteStore,this.syncEngine.isPrimaryClient);case 12:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"createEventManager",value:function(e){return new Nb}},{key:"createDatastore",value:function(e){var t,n=Ig(e.databaseInfo.databaseId),r=(t=e.databaseInfo,new jg(t));return function(e,t,n,r){return new Lg(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,r,n)}},{key:"createRemoteStore",value:function(e){var t,n,r,i,a,o=this;return t=this.localStore,n=this.datastore,r=e.asyncQueue,i=function(e){return nw(o.syncEngine,e,0)},a=Eg.C()?new Eg:new Sg,new Mg(t,n,r,i,a)}},{key:"createSyncEngine",value:function(e,t){return function(e,t,n,r,i,a,o){var s=new Wb(e,t,n,r,i,a);return o&&(s.dc=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}},{key:"terminate",value:function(){return function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Mh(t),Nh("RemoteStore","RemoteStore shutting down."),n._u.add(5),e.next=5,Ug(n);case 5:n.mu.shutdown(),n.gu.set("Unknown");case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(this.remoteStore)}}]),e}();function Ew(e,t,n){if(!n)throw new Vh(Fh.INVALID_ARGUMENT,"Function ".concat(e,"() cannot be called with an empty ").concat(t,"."))}function Tw(e){if(!ap.isDocumentKey(e))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but ".concat(e," has ").concat(e.length,"."))}function Ow(e){if(ap.isDocumentKey(e))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but ".concat(e," has ").concat(e.length,"."))}function jw(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e="".concat(e.substring(0,20),"...")),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){return e.constructor?e.constructor.name:null}(e);return t?"a custom ".concat(t," object"):"an object"}return"function"==typeof e?"a function":Lh()}function Cw(e,t){if("_delegate"in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new Vh(Fh.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=jw(e);throw new Vh(Fh.INVALID_ARGUMENT,"Expected type '".concat(t.name,"', but it was: ").concat(n))}return e}function Iw(e,t){if(t<=0)throw new Vh(Fh.INVALID_ARGUMENT,"Function ".concat(e,"() requires a positive number, but it was: ").concat(t,"."))}var Nw=new Map,Aw=function(){function e(t){var n;if(ye(this,e),void 0===t.host){if(void 0!==t.ssl)throw new Vh(Fh.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(n=t.ssl)||void 0===n||n;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Vh(Fh.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,function(e,t,n,r){if(!0===t&&!0===r)throw new Vh(Fh.INVALID_ARGUMENT,"".concat(e," and ").concat(n," cannot be used together."))}("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return we(e,[{key:"isEqual",value:function(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}]),e}(),Pw=function(){function e(t,n,r,i){ye(this,e),this._authCredentials=t,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Aw({}),this._settingsFrozen=!1}return we(e,[{key:"app",get:function(){if(!this._app)throw new Vh(Fh.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}},{key:"_initialized",get:function(){return this._settingsFrozen}},{key:"_terminated",get:function(){return void 0!==this._terminateTask}},{key:"_setSettings",value:function(e){if(this._settingsFrozen)throw new Vh(Fh.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 Aw(e),void 0!==e.credentials&&(this._authCredentials=function(e){if(!e)return new Bh;switch(e.type){case"gapi":var t=e.client;return new Gh(t,e.sessionIndex||"0",e.iamToken||null,e.authTokenFactory||null);case"provider":return e.client;default:throw new Vh(Fh.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
2d credential type")}}(e.credentials))}},{key:"_getSettings",value:function(){return this._settings}},{key:"_freezeSettings",value:function(){return this._settingsFrozen=!0,this._settings}},{key:"_delete",value:function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}},{key:"toJSON",value:function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}},{key:"_terminate",value:function(){return function(e){var t=Nw.get(e);t&&(Nh("ComponentProvider","Removing Datastore"),Nw.delete(e),t.terminate())}(this),Promise.resolve()}}]),e}();function Rw(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=(e=Cw(e,Pw))._getSettings();if("firestore.googleapis.com"!==a.host&&a.host!==t&&Ph("Host has been set in both settings() and useEmulator(), emulator host will be used"),e._setSettings(Object.assign(Object.assign({},a),{host:"".concat(t,":").concat(n),ssl:!1})),i.mockUserToken){var o,s;if("string"==typeof i.mockUserToken)o=i.mockUserToken,s=Oh.MOCK_USER;else{o=Ve(i.mockUserToken,null===(r=e._app)||void 0===r?void 0:r.options.projectId);var u=i.mockUserToken.sub||i.mockUserToken.user_id;if(!u)throw new Vh(Fh.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");s=new Oh(u)}e._authCredentials=new qh(new zh(o,s))}}var Lw=function(){function e(t,n,r){ye(this,e),this.converter=n,this._key=r,this.type="document",this.firestore=t}return we(e,[{key:"_path",get:function(){return this._key.path}},{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"path",get:function(){return this._key.path.canonicalString()}},{key:"parent",get:function(){return new Mw(this.firestore,this.converter,this._key.path.popLast())}},{key:"withConverter",value:function(t){return new e(this.firestore,t,this._key)}}]),e}(),Dw=function(){function e(t,n,r){ye(this,e),this.converter=n,this._query=r,this.type="query",this.firestore=t}return we(e,[{key:"withConverter",value:function(t){return new e(this.firestore,t,this._query)}}]),e}(),Mw=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this,e,r,Rv(i)))._path=i,a.type="collection",a}return we(n,[{key:"id",get:function(){return this._query.path.lastSegment()}},{key:"path",get:function(){return this._query.path.canonicalString()}},{key:"parent",get:function(){var e=this._path.popLast();return e.isEmpty()?null:new Lw(this.firestore,null,new ap(e))}},{key:"withConverter",value:function(e){return new n(this.firestore,e,this._path)}}]),n}(Dw);function Fw(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=Xe(e),Ew("collection","path",t),e instanceof Pw){var a=np.fromString.apply(np,[t].concat(r));return Ow(a),new Mw(e,null,a)}if(!(e instanceof Lw||e instanceof Mw))throw new Vh(Fh.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var o=e._path.child(np.fromString.apply(np,[t].concat(r)));return Ow(o),new Mw(e.firestore,null,o)}function Vw(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=Xe(e),1===arguments.length&&(t=Yh.R()),Ew("doc","path",t),e instanceof Pw){var a=np.fromString.apply(np,[t].concat(r));return Tw(a),new Lw(e,null,new ap(a))}if(!(e instanceof Lw||e instanceof Mw))throw new Vh(Fh.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");var o=e._path.child(np.fromString.apply(np,[t].concat(r)));return Tw(o),new Lw(e.firestore,e instanceof Mw?e.converter:null,new ap(o))}var Uw=function(){function e(t){ye(this,e),this.observer=t,this.muted=!1}return we(e,[{key:"next",value:function(e){this.observer.next&&this.Rc(this.observer.next,e)}},{key:"error",value:function(e){this.observer.error?this.Rc(this.observer.error,e):Ah("Uncaught Error in snapshot listener:",e.toString())}},{key:"bc",value:function(){this.muted=!0}},{key:"Rc",value:function(e,t){var n=this;this.muted||setTimeout((function(){n.muted||e(t)}),0)}}]),e}(),zw=function(){function e(t,n,r,i){var a=this;ye(this,e),this.authCredentials=t,this.appCheckCredentials=n,this.asyncQueue=r,this.databaseInfo=i,this.user=Oh.UNAUTHENTICATED,this.clientId=Yh.R(),this.authCredentialListener=function(){return Promise.resolve()},this.appCheckCredentialListener=function(){return Promise.resolve()},this.authCredentials.start(r,function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Nh("FirestoreClient","Received user=",t.uid),e.next=3,a.authCredentialListener(t);case 3:a.user=t;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),this.appCheckCredentials.start(r,(function(e){return Nh("FirestoreClient","Received new app check token=",e),a.appCheckCredentialListener(e,a.user)}))}return we(e,[{key:"getConfiguration",value:function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setCredentialChangeListener",value:function(e){this.authCredentialListener=e}},{key:"setAppCheckTokenChangeListener",value:function(e){this.appCheckCredentialListener=e}},{key:"verifyNotTerminated",value:function(){if(this.asyncQueue.isShuttingDown)throw new Vh(Fh.FAILED_PRECONDITION,"The client has already been terminated.")}},{key:"terminate",value:function(){var e=this;this.asyncQueue.enterRestrictedMode();var t=new Uh;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(me(pe().mark((function n(){var r;return pe().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,n.t0=e.onlineComponents,!n.t0){n.next=5;break}return n.next=5,e.onlineComponents.terminate();case 5:if(n.t1=e.offlineComponents,!n.t1){n.next=9;break}return n.next=9,e.offlineComponents.terminate();case 9:e.authCredentials.shutdown(),e.appCheckCredentials.shutdown(),t.resolve(),n.next=18;break;case 14:n.prev=14,n.t2=n.catch(0),r=Tb(n.t2,"Failed to shutdown persistence"),t.reject(r);case 18:case"end":return n.stop()}}),n,null,[[0,14]])}
2)))),t.promise}}]),e}();function Bw(e,t){return qw.apply(this,arguments)}function qw(){return qw=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),Nh("FirestoreClient","Initializing OfflineComponentProvider"),e.next=3,t.getConfiguration();case 3:return r=e.sent,e.next=6,n.initialize(r);case 6:i=r.initialUser,t.setCredentialChangeListener(function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=i.isEqual(t),e.t0){e.next=5;break}return e.next=4,lg(n.localStore,t);case 4:i=t;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t.offlineComponents=n;case 8:case"end":return e.stop()}}),e)}))),qw.apply(this,arguments)}function Hw(e,t){return Ww.apply(this,arguments)}function Ww(){return Ww=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.asyncQueue.verifyOperationInProgress(),e.next=3,Gw(t);case 3:return r=e.sent,Nh("FirestoreClient","Initializing OnlineComponentProvider"),e.next=7,t.getConfiguration();case 7:return i=e.sent,e.next=10,n.initialize(r,i);case 10:t.setCredentialChangeListener((function(e){return bb(n.remoteStore,e)})),t.setAppCheckTokenChangeListener((function(e,t){return bb(n.remoteStore,t)})),t.onlineComponents=n;case 13:case"end":return e.stop()}}),e)}))),Ww.apply(this,arguments)}function Gw(e){return Kw.apply(this,arguments)}function Kw(){return Kw=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t.offlineComponents,e.t0){e.next=5;break}return Nh("FirestoreClient","Using default OfflineComponentProvider"),e.next=5,Bw(t,new _w);case 5:return e.abrupt("return",t.offlineComponents);case 6:case"end":return e.stop()}}),e)}))),Kw.apply(this,arguments)}function Qw(e){return $w.apply(this,arguments)}function $w(){return $w=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=t.onlineComponents,e.t0){e.next=5;break}return Nh("FirestoreClient","Using default OnlineComponentProvider"),e.next=5,Hw(t,new Sw);case 5:return e.abrupt("return",t.onlineComponents);case 6:case"end":return e.stop()}}),e)}))),$w.apply(this,arguments)}function Yw(e){return Qw(e).then((function(e){return e.syncEngine}))}function Xw(e){return Jw.apply(this,arguments)}function Jw(){return Jw=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Qw(t);case 2:return n=e.sent,r=n.eventManager,e.abrupt("return",(r.onListen=Gb.bind(null,n.syncEngine),r.onUnlisten=Yb.bind(null,n.syncEngine),r));case 5:case"end":return e.stop()}}),e)}))),Jw.apply(this,arguments)}function Zw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Uh;return e.asyncQueue.enqueueAndForget(me(pe().mark((function i(){return pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var a=new Uw({next:function(a){t.enqueueAndForget((function(){return Rb(e,o)}));var s=a.docs.has(n);!s&&a.fromCache?i.reject(new Vh(Fh.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&a.fromCache&&r&&"server"===r.source?i.reject(new Vh(Fh.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:function(e){return i.reject(e)}}),o=new Vb(Rv(n.path),a,{includeMetadataChanges:!0,Nu:!0});return Ab(e,o)},i.next=3,Xw(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}function ek(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=new Uh;return e.asyncQueue.enqueueAndForget(me(pe().mark((function i(){return pe().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.t0=function(e,t,n,r,i){var a=new Uw({next:function(n){t.enqueueAndForget((function(){return Rb(e,o)})),n.fromCache&&"server"===r.source?i.reject(new Vh(Fh.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(e){return i.reject(e)}}),o=new Vb(n,a,{includeMetadataChanges:!0,Nu:!0});return Ab(e,o)},i.next=3,Xw(e);case 3:return i.t1=i.sent,i.t2=e.asyncQueue,i.t3=t,i.t4=n,i.t5=r,i.abrupt("return",(0,i.t0)(i.t1,i.t2,i.t3,i.t4,i.t5));case 9:case"end":return i.stop()}}),i)})))),r.promise}var tk=function(){function e(){var t=this;
2ye(this,e),this.Bc=Promise.resolve(),this.Lc=[],this.qc=!1,this.Uc=[],this.Kc=null,this.Gc=!1,this.Qc=!1,this.jc=[],this.xo=new Ng(this,"async_queue_retry"),this.Wc=function(){var e=Cg();e&&Nh("AsyncQueue","Visibility state changed to "+e.visibilityState),t.xo.Po()};var n=Cg();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.Wc)}return we(e,[{key:"isShuttingDown",get:function(){return this.qc}},{key:"enqueueAndForget",value:function(e){this.enqueue(e)}},{key:"enqueueAndForgetEvenWhileRestricted",value:function(e){this.zc(),this.Hc(e)}},{key:"enterRestrictedMode",value:function(e){if(!this.qc){this.qc=!0,this.Qc=e||!1;var t=Cg();t&&"function"==typeof t.removeEventListener&&t.removeEventListener("visibilitychange",this.Wc)}}},{key:"enqueue",value:function(e){var t=this;if(this.zc(),this.qc)return new Promise((function(){}));var n=new Uh;return this.Hc((function(){return t.qc&&t.Qc?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)})).then((function(){return n.promise}))}},{key:"enqueueRetryable",value:function(e){var t=this;this.enqueueAndForget((function(){return t.Lc.push(e),t.Jc()}))}},{key:"Jc",value:function(){var e=me(pe().mark((function e(){var t=this;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0===this.Lc.length){e.next=14;break}return e.prev=1,e.next=4,this.Lc[0]();case 4:this.Lc.shift(),this.xo.reset(),e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(1),mp(e.t0)){e.next=12;break}throw e.t0;case 12:Nh("AsyncQueue","Operation failed with retryable error: "+e.t0);case 13:this.Lc.length>0&&this.xo.Ro((function(){return t.Jc()}));case 14:case"end":return e.stop()}}),e,this,[[1,8]])})));return function(){return e.apply(this,arguments)}}()},{key:"Hc",value:function(e){var t=this,n=this.Bc.then((function(){return t.Gc=!0,e().catch((function(e){t.Kc=e,t.Gc=!1;var n=function(e){var t=e.message||"";return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+"\n"+e.stack),t}(e);throw Ah("INTERNAL UNHANDLED ERROR: ",n),e})).then((function(e){return t.Gc=!1,e}))}));return this.Bc=n,n}},{key:"enqueueAfterDelay",value:function(e,t,n){var r=this;this.zc(),this.jc.indexOf(e)>-1&&(t=0);var i=Eb.createAndSchedule(this,e,t,n,(function(e){return r.Yc(e)}));return this.Uc.push(i),i}},{key:"zc",value:function(){this.Kc&&Lh()}},{key:"verifyOperationInProgress",value:function(){}},{key:"Xc",value:function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.Bc,e.next=3,t;case 3:if(t!==this.Bc){e.next=0;break}case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"Zc",value:function(e){var t,n=he(this.Uc);try{for(n.s();!(t=n.n()).done;){if(t.value.timerId===e)return!0}}catch(r){n.e(r)}finally{n.f()}return!1}},{key:"ta",value:function(e){var t=this;return this.Xc().then((function(){t.Uc.sort((function(e,t){return e.targetTimeMs-t.targetTimeMs}));var n,r=he(t.Uc);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.skipDelay(),"all"!==e&&i.timerId===e)break}}catch(a){r.e(a)}finally{r.f()}return t.Xc()}))}},{key:"ea",value:function(e){this.jc.push(e)}},{key:"Yc",value:function(e){var t=this.Uc.indexOf(e);this.Uc.splice(t,1)}}]),e}();var nk=function(e){ue(n,e);var t=de(n);function n(e,r,i,a){var o;return ye(this,n),(o=t.call(this,e,r,i,a)).type="firestore",o._queue=new tk,o._persistenceKey=(null==a?void 0:a.name)||"[DEFAULT]",o}return we(n,[{key:"_terminate",value:function(){return this._firestoreClient||ik(this),this._firestoreClient.terminate()}}]),n}(Pw);function rk(e){return e._firestoreClient||ik(e),e._firestoreClient.verifyNotTerminated(),e._firestoreClient}function ik(e){var t,n=e._freezeSettings(),r=function(e,t,n,r){return new gp(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(e._databaseId,(null===(t=e._app)||void 0===t?void 0:t.options.appId)||"",e._persistenceKey,n);e._firestoreClient=new zw(e._authCredentials,e._appCheckCredentials,e._queue,r)}var ak=function(){function e(t){ye(this,e),this._byteString=t}return we(e,[{key:"toBase64",value:function(){return this._byteString.toBase64()}},{key:"toUint8Array",value:function(){return this._byteString.toUint8Array()}},{key:"toString",value:function(){return"Bytes(base64: "+this.toBase64()+")"}},{key:"isEqual",value:function(e){return this._byteString.isEqual(e._byteString)}}],[{key:"fromBase64String",value:function(t){try{return new e(Tp.fromBase64String(t))}catch(t){throw new Vh(Fh.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}},{key:"fromUint8Array",value:function(t){return new e(Tp.fromUint8Array(t))}}]),e}(),ok=function(){function e(){ye(this,e);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0;i<n.length;++i)if(0===n[i].length)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ip(n)}return we(e,[{key:"isEqual",value:function(e){return this._internalPath.isEqual(e._internalPath)}}]),e}();var sk=we((function e(t){ye(this,e),this._methodName=t})),uk=function(){function e(t,n){if(ye(this,e),!isFinite(t)||t<-90||t>90)throw new Vh(Fh.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(n)||n<-180||n>180)throw new Vh(Fh.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=t,this._long=n}return we(e,[{key:"latitude",get:function(){return this._lat}},{key:"longitude",get:function(){return this._long}},{key:"isEqual",value:function(e){return this._lat===e._lat&&this._long===e._long}},{key:"toJSON",value:function(){return{latitude:this._lat,longitude:this._long}}},{key:"_compareTo",value:function(e){return Xh(this._lat,e._lat)||Xh(this._long,e._long)}}]),e}
2(),ck=/^__.*__$/,lk=function(){function e(t,n,r){ye(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return we(e,[{key:"toMutation",value:function(e,t){return null!==this.fieldMask?new xm(e,this.data,this.fieldMask,t,this.fieldTransforms):new km(e,this.data,t,this.fieldTransforms)}}]),e}(),fk=function(){function e(t,n,r){ye(this,e),this.data=t,this.fieldMask=n,this.fieldTransforms=r}return we(e,[{key:"toMutation",value:function(e,t){return new xm(e,this.data,this.fieldMask,t,this.fieldTransforms)}}]),e}();function dk(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Lh()}}var hk=function(){function e(t,n,r,i,a,o){ye(this,e),this.settings=t,this.databaseId=n,this.yt=r,this.ignoreUndefinedProperties=i,void 0===a&&this.na(),this.fieldTransforms=a||[],this.fieldMask=o||[]}return we(e,[{key:"path",get:function(){return this.settings.path}},{key:"sa",get:function(){return this.settings.sa}},{key:"ia",value:function(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.yt,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}},{key:"ra",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ia({path:n,oa:!1});return r.ua(e),r}},{key:"ca",value:function(e){var t,n=null===(t=this.path)||void 0===t?void 0:t.child(e),r=this.ia({path:n,oa:!1});return r.na(),r}},{key:"aa",value:function(e){return this.ia({path:void 0,oa:!0})}},{key:"ha",value:function(e){return Ak(e,this.settings.methodName,this.settings.la||!1,this.path,this.settings.fa)}},{key:"contains",value:function(e){return void 0!==this.fieldMask.find((function(t){return e.isPrefixOf(t)}))||void 0!==this.fieldTransforms.find((function(t){return e.isPrefixOf(t.field)}))}},{key:"na",value:function(){if(this.path)for(var e=0;e<this.path.length;e++)this.ua(this.path.get(e))}},{key:"ua",value:function(e){if(0===e.length)throw this.ha("Document fields must not be empty");if(dk(this.sa)&&ck.test(e))throw this.ha('Document fields cannot begin and end with "__"')}}]),e}(),pk=function(){function e(t,n,r){ye(this,e),this.databaseId=t,this.ignoreUndefinedProperties=n,this.yt=r||Ig(t)}return we(e,[{key:"da",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new hk({sa:e,methodName:t,fa:n,path:ip.emptyPath(),oa:!1,la:r},this.databaseId,this.yt,this.ignoreUndefinedProperties)}}]),e}();function vk(e){var t=e._freezeSettings(),n=Ig(e._databaseId);return new pk(e._databaseId,!!t.ignoreUndefinedProperties,n)}function mk(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=e.da(a.merge||a.mergeFields?2:0,t,n,i);jk("Data must be an object, but it was:",o,r);var s,u,c=Tk(r,o);if(a.merge)s=new _v(o.fieldMask),u=o.fieldTransforms;else if(a.mergeFields){var l,f=[],d=he(a.mergeFields);try{for(d.s();!(l=d.n()).done;){var h=l.value,p=Ck(t,h,n);if(!o.contains(p))throw new Vh(Fh.INVALID_ARGUMENT,"Field '".concat(p,"' is specified in your field mask but missing from your input data."));Pk(f,p)||f.push(p)}}catch(v){d.e(v)}finally{d.f()}s=new _v(f),u=o.fieldTransforms.filter((function(e){return s.covers(e.field)}))}else s=null,u=o.fieldTransforms;return new lk(new Sv(c),s,u)}var yk=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"_toFieldTransform",value:function(e){if(2!==e.sa)throw 1===e.sa?e.ha("".concat(this._methodName,"() can only appear at the top level of your update data")):e.ha("".concat(this._methodName,"() cannot be used with set() unless you pass {merge:true}"));return e.fieldMask.push(e.path),null}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(sk);function gk(e,t,n){return new hk({sa:3,fa:t.settings.fa,methodName:e._methodName,oa:n},t.databaseId,t.yt,t.ignoreUndefinedProperties)}var bk=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"_toFieldTransform",value:function(e){return new fm(e.path,new rm)}},{key:"isEqual",value:function(e){return e instanceof n}}]),n}(sk),wk=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e))._a=r,i}return we(n,[{key:"_toFieldTransform",value:function(e){var t=gk(this,e,!0),n=this._a.map((function(e){return Ek(e,t)})),r=new im(n);return new fm(e.path,r)}},{key:"isEqual",value:function(e){return this===e}}]),n}(sk),kk=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this,e))._a=r,i}return we(n,[{key:"_toFieldTransform",value:function(e){var t=gk(this,e,!0),n=this._a.map((function(e){return Ek(e,t)})),r=new om(n);return new fm(e.path,r)}},{key:"isEqual",value:function(e){return this===e}}]),n}(sk);function xk(e,t,n,r){var i=e.da(1,t,n);jk("Data must be an object, but it was:",i,r);var a=[],o=Sv.empty();kp(r,(function(e,r){var s=Nk(t,e,n);r=Xe(r);var u=i.ca(s);if(r instanceof yk)a.push(s);else{var c=Ek(r,u);null!=c&&(a.push(s),o.set(s,c))}}));var s=new _v(a);return new fk(o,s,i.fieldTransforms)}function _k(e,t,n,r,i,a){var o=e.da(1,t,n),s=[Ck(t,r,n)],u=[i];if(a.length%2!=0)throw new Vh(Fh.INVALID_ARGUMENT,"Function ".concat(t,"() needs to be called with an even number of arguments that alternate between field names and values."));for(var c=0;c<a.length;c+=2)s.push(Ck(t,a[c])),u.push(a[c+1]);for(var l=[],f=Sv.empty(),d=s.length-1;d>=0;--d)if(!Pk(l,s[d])){var h=s[d],p=u[d];p=Xe(p);var v=o.ca(h);if(p instanceof yk)l.push(h);else{var m=Ek(p,v);null!=m&&(l.push(h),f.set(h,m))}}var y=new _v(l);return new fk(f,y,o.fieldTransforms)}function Sk(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return Ek(n,e.da(r?4:3,t))}function Ek(e,t){if(Ok(e=Xe(e)))return jk("Unsupported field value:",t,e),Tk(e,t);if(e instanceof sk)return function(e,t){if(!dk(t.sa))throw t.ha("".concat(e._methodName,"() can only be used with update(
2) and set()"));if(!t.path)throw t.ha("".concat(e._methodName,"() is not currently supported inside arrays"));var n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(void 0===e&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.oa&&4!==t.sa)throw t.ha("Nested arrays are not supported");return function(e,t){var n,r=[],i=0,a=he(e);try{for(a.s();!(n=a.n()).done;){var o=Ek(n.value,t.aa(i));null==o&&(o={nullValue:"NULL_VALUE"}),r.push(o),i++}}catch(s){a.e(s)}finally{a.f()}return{arrayValue:{values:r}}}(e,t)}return function(e,t){if(null===(e=Xe(e)))return{nullValue:"NULL_VALUE"};if("number"==typeof e)return Jv(t.yt,e);if("boolean"==typeof e)return{booleanValue:e};if("string"==typeof e)return{stringValue:e};if(e instanceof Date){var n=Zh.fromDate(e);return{timestampValue:oy(t.yt,n)}}if(e instanceof Zh){var r=new Zh(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:oy(t.yt,r)}}if(e instanceof uk)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof ak)return{bytesValue:sy(t.yt,e._byteString)};if(e instanceof Lw){var i=t.databaseId,a=e.firestore._databaseId;if(!a.isEqual(i))throw t.ha("Document reference is for database ".concat(a.projectId,"/").concat(a.database," but should be for database ").concat(i.projectId,"/").concat(i.database));return{referenceValue:ly(e.firestore._databaseId||t.databaseId,e._key.path)}}throw t.ha("Unsupported field value: ".concat(jw(e)))}(e,t)}function Tk(e,t){var n={};return xp(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):kp(e,(function(e,r){var i=Ek(r,t.ra(e));null!=i&&(n[e]=i)})),{mapValue:{fields:n}}}function Ok(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof Zh||e instanceof uk||e instanceof ak||e instanceof Lw||e instanceof sk)}function jk(e,t,n){if(!Ok(n)||!function(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}(n)){var r=jw(n);throw"an object"===r?t.ha(e+" a custom object"):t.ha(e+" "+r)}}function Ck(e,t,n){if((t=Xe(t))instanceof ok)return t._internalPath;if("string"==typeof t)return Nk(e,t);throw Ak("Field path arguments must be of type string or ",e,!1,void 0,n)}var Ik=new RegExp("[~\\*/\\[\\]]");function Nk(e,t,n){if(t.search(Ik)>=0)throw Ak("Invalid field path (".concat(t,"). Paths must not contain '~', '*', '/', '[', or ']'"),e,!1,void 0,n);try{return _e(ok,ke(t.split(".")))._internalPath}catch(d){throw Ak("Invalid field path (".concat(t,"). Paths must not be empty, begin with '.', end with '.', or contain '..'"),e,!1,void 0,n)}}function Ak(e,t,n,r,i){var a=r&&!r.isEmpty(),o=void 0!==i,s="Function ".concat(t,"() called with invalid data");n&&(s+=" (via `toFirestore()`)"),s+=". ";var u="";return(a||o)&&(u+=" (found",a&&(u+=" in field ".concat(r)),o&&(u+=" in document ".concat(i)),u+=")"),new Vh(Fh.INVALID_ARGUMENT,s+e+u)}function Pk(e,t){return e.some((function(e){return e.isEqual(t)}))}var Rk=function(){function e(t,n,r,i,a){ye(this,e),this._firestore=t,this._userDataWriter=n,this._key=r,this._document=i,this._converter=a}return we(e,[{key:"id",get:function(){return this._key.path.lastSegment()}},{key:"ref",get:function(){return new Lw(this._firestore,this._converter,this._key)}},{key:"exists",value:function(){return null!==this._document}},{key:"data",value:function(){if(this._document){if(this._converter){var e=new Lk(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}},{key:"get",value:function(e){if(this._document){var t=this._document.data.field(Dk("DocumentSnapshot.get",e));if(null!==t)return this._userDataWriter.convertValue(t)}}}]),e}(),Lk=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"data",value:function(){return ae(re(n.prototype),"data",this).call(this)}}]),n}(Rk);function Dk(e,t){return"string"==typeof t?Nk(e,t):t instanceof ok?t._internalPath:t._delegate._internalPath}function Mk(e){if("L"===e.limitType&&0===e.explicitOrderBy.length)throw new Vh(Fh.UNIMPLEMENT
2ED,"limitToLast() queries require specifying at least one orderBy() clause")}var Fk=we((function e(){ye(this,e)})),Vk=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n)}(Fk);function Uk(e,t){for(var n=[],r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];t instanceof Fk&&n.push(t),function(e){var t=e.filter((function(e){return e instanceof qk})).length,n=e.filter((function(e){return e instanceof zk})).length;if(t>1||t>0&&n>0)throw new Vh(Fh.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=n.concat(i));var o,s=he(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;e=u._apply(e)}}catch(c){s.e(c)}finally{s.f()}return e}var zk=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this))._field=e,a._op=r,a._value=i,a.type="where",a}return we(n,[{key:"_apply",value:function(e){var t=this._parse(e);return Yk(e._query,t),new Dw(e.firestore,e.converter,zv(e._query,t))}},{key:"_parse",value:function(e){var t=vk(e.firestore),n=function(e,t,n,r,i,a,o){var s;if(i.isKeyField()){if("array-contains"===a||"array-contains-any"===a)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid Query. You can't perform '".concat(a,"' queries on documentId()."));if("in"===a||"not-in"===a){$k(o,a);var u,c=[],l=he(o);try{for(l.s();!(u=l.n()).done;){var f=u.value;c.push(Qk(r,e,f))}}catch(d){l.e(d)}finally{l.f()}s={arrayValue:{values:c}}}else s=Qk(r,e,o)}else"in"!==a&&"not-in"!==a&&"array-contains-any"!==a||$k(o,a),s=Sk(n,"where",o,"in"===a||"not-in"===a);return ev.create(i,a,s)}(e._query,0,t,e.firestore._databaseId,this._field,this._op,this._value);return n}}],[{key:"_create",value:function(e,t,r){return new n(e,t,r)}}]),n}(Vk);function Bk(e,t,n){var r=t,i=Dk("where",e);return zk._create(i,r,n)}var qk=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this)).type=e,i._queryConstraints=r,i}return we(n,[{key:"_parse",value:function(e){var t=this._queryConstraints.map((function(t){return t._parse(e)})).filter((function(e){return e.getFilters().length>0}));return 1===t.length?t[0]:tv.create(t,this._getOperator())}},{key:"_apply",value:function(e){var t=this._parse(e);return 0===t.getFilters().length?e:(function(e,t){var n,r=e,i=he(t.getFlattenedFilters());try{for(i.s();!(n=i.n()).done;){var a=n.value;Yk(r,a),r=zv(r,a)}}catch(o){i.e(o)}finally{i.f()}}(e._query,t),new Dw(e.firestore,e.converter,zv(e._query,t)))}},{key:"_getQueryConstraints",value:function(){return this._queryConstraints}},{key:"_getOperator",value:function(){return"and"===this.type?"and":"or"}}],[{key:"_create",value:function(e,t){return new n(e,t)}}]),n}(Fk);var Hk=function(e){ue(n,e);var t=de(n);function n(e,r){var i;return ye(this,n),(i=t.call(this))._field=e,i._direction=r,i.type="orderBy",i}return we(n,[{key:"_apply",value:function(e){var t=function(e,t,n){if(null!==e.startAt)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==e.endAt)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new mv(t,n);return function(e,t){if(null===Dv(e)){var n=Mv(e);null!==n&&Xk(e,n,t.field)}}(e,r),r}(e._query,this._field,this._direction);return new Dw(e.firestore,e.converter,function(e,t){var n=e.explicitOrderBy.concat([t]);return new Av(e.path,e.collectionGroup,n,e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(e._query,t))}}],[{key:"_create",value:function(e,t){return new n(e,t)}}]),n}(Vk);function Wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"asc",n=t,r=Dk("orderBy",e);return Hk._create(r,n)}var Gk=function(e){ue(n,e);var t=de(n);function n(e,r,i){var a;return ye(this,n),(a=t.call(this)).type=e,a._limit=r,a._limitType=i,a}return we(n,[{key:"_apply",value:function(e){return new Dw(e.firestore,e.converter,Bv(e._query,this._limit,this._limitType))}}],[{key:"_create",value:function(e,t,r){return new n(e,t,r)}}]),n}(Vk);function Kk(e){return Iw("limit",e),Gk._create("limit",e,"F")}function Qk(e,t,n){if("string"==typeof(n=Xe(n))){if(""===n)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!Fv(t)&&-1!==n.indexOf("/"))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '".concat(n,"' contains a '/' character."));var r=t.path.child(np.fromString(n));if(!ap.isDocumentKey(r))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '".concat(r,"' is not because it has an odd number of segments (").concat(r.length,")."));return Bp(e,new ap(r))}if(n instanceof Lw)return Bp(e,n._key);throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ".concat(jw(n),"."))}function $k(e,t){if(!Array.isArray(e)||0===e.length)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '".concat(t.toString(),"' filters."));if(e.length>10)throw new Vh(Fh.INVALID_ARGUMENT,"Invalid Query. '".concat(t.toString(),"' filters support a maximum of 10 elements in the value array."))}function Yk(e,t){if(t.isInequality()){var n=Mv(e),r=t.field;if(null!==n&&!n.isEqual(r))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '".concat(n.toString(),"' and '").concat(r.toString(),"'"));var i=Dv(e);null!==i&&Xk(e,r,i)}var a=function(e,t){var n,r=he(e);try{for(r.s();!(n=r.n()).done;){var i,a=he(n.value.getFlattenedFilters());try{for(a.s();!(i=a.n()).done;){var o=i.value;if(t.indexOf(o.op)>=0)return o.op}}catch(s){a.e(s)}finally{a.f()}}}catch(s){r.e(s)}finally{r.f()}return null}(e.filters,function(e){switch(e){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","
2not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(t.op));if(null!==a)throw a===t.op?new Vh(Fh.INVALID_ARGUMENT,"Invalid query. You cannot use more than one '".concat(t.op.toString(),"' filter.")):new Vh(Fh.INVALID_ARGUMENT,"Invalid query. You cannot use '".concat(t.op.toString(),"' filters with '").concat(a.toString(),"' filters."))}function Xk(e,t,n){if(!n.isEqual(t))throw new Vh(Fh.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '".concat(t.toString(),"' and so you must also use '").concat(t.toString(),"' as your first argument to orderBy(), but your first orderBy() is on field '").concat(n.toString(),"' instead."))}var Jk=function(){function e(){ye(this,e)}return we(e,[{key:"convertValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";switch(Lp(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Cp(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(Ip(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 10:return this.convertObject(e.mapValue,t);default:throw Lh()}}},{key:"convertObject",value:function(e,t){var n=this,r={};return kp(e.fields,(function(e,i){r[e]=n.convertValue(i,t)})),r}},{key:"convertGeoPoint",value:function(e){return new uk(Cp(e.latitude),Cp(e.longitude))}},{key:"convertArray",value:function(e,t){var n=this;return(e.values||[]).map((function(e){return n.convertValue(e,t)}))}},{key:"convertServerTimestamp",value:function(e,t){switch(t){case"previous":var n=Ap(e);return null==n?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(Pp(e));default:return null}}},{key:"convertTimestamp",value:function(e){var t=jp(e);return new Zh(t.seconds,t.nanos)}},{key:"convertDocumentKey",value:function(e,t){var n=np.fromString(e);Dh(Ny(n));var r=new bp(n.get(1),n.get(3)),i=new ap(n.popFirst(5));return r.isEqual(t)||Ah("Document ".concat(i," contains a document reference within a different database (").concat(r.projectId,"/").concat(r.database,") which is not supported. It will be treated as a reference in the current database (").concat(t.projectId,"/").concat(t.database,") instead.")),i}}]),e}();function Zk(e,t,n){return e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t}var ex=function(){function e(t,n){ye(this,e),this.hasPendingWrites=t,this.fromCache=n}return we(e,[{key:"isEqual",value:function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}]),e}(),tx=function(e){ue(n,e);var t=de(n);function n(e,r,i,a,o,s){var u;return ye(this,n),(u=t.call(this,e,r,i,a,s))._firestore=e,u._firestoreImpl=e,u.metadata=o,u}return we(n,[{key:"exists",value:function(){return ae(re(n.prototype),"exists",this).call(this)}},{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._document){if(this._converter){var t=new nx(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)}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._document){var n=this._document.data.field(Dk("DocumentSnapshot.get",e));if(null!==n)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}}]),n}(Rk),nx=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"data",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ae(re(n.prototype),"data",this).call(this,e)}}]),n}(tx),rx=function(){function e(t,n,r,i){ye(this,e),this._firestore=t,this._userDataWriter=n,this._snapshot=i,this.metadata=new ex(i.hasPendingWrites,i.fromCache),this.query=r}return we(e,[{key:"docs",get:function(){var e=[];return this.forEach((function(t){return e.push(t)})),e}},{key:"size",get:function(){return this._snapshot.docs.size}},{key:"empty",get:function(){return 0===this.size}}
2,{key:"forEach",value:function(e,t){var n=this;this._snapshot.docs.forEach((function(r){e.call(t,new nx(n._firestore,n._userDataWriter,r.key,r,new ex(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))}},{key:"docChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Vh(Fh.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){var n=0;return e._snapshot.docChanges.map((function(t){var r=new nx(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ex(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter);return t.doc,{type:"added",doc:r,oldIndex:-1,newIndex:n++}}))}var r=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((function(e){return t||3!==e.type})).map((function(t){var n=new nx(e._firestore,e._userDataWriter,t.doc.key,t.doc,new ex(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,a=-1;return 0!==t.type&&(i=r.indexOf(t.doc.key),r=r.delete(t.doc.key)),1!==t.type&&(a=(r=r.add(t.doc)).indexOf(t.doc.key)),{type:ix(t.type),doc:n,oldIndex:i,newIndex:a}}))}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}}]),e}();function ix(e){switch(e){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Lh()}}function ax(e){e=Cw(e,Lw);var t=Cw(e.firestore,nk);return Zw(rk(t),e._key).then((function(n){return hx(t,e,n)}))}var ox=function(e){ue(n,e);var t=de(n);function n(e){var r;return ye(this,n),(r=t.call(this)).firestore=e,r}return we(n,[{key:"convertBytes",value:function(e){return new ak(e)}},{key:"convertReference",value:function(e){var t=this.convertDocumentKey(e,this.firestore._databaseId);return new Lw(this.firestore,null,t)}}]),n}(Jk);function sx(e){e=Cw(e,Dw);var t=Cw(e.firestore,nk),n=rk(t),r=new ox(t);return Mk(e._query),ek(n,e._query).then((function(n){return new rx(t,r,e,n)}))}function ux(e,t,n){e=Cw(e,Lw);var r=Cw(e.firestore,nk),i=Zk(e.converter,t,n);return dx(r,[mk(vk(r),"setDoc",e._key,i,null!==e.converter,n).toMutation(e._key,hm.none())])}function cx(e,t,n){e=Cw(e,Lw);for(var r=Cw(e.firestore,nk),i=vk(r),a=arguments.length,o=new Array(a>3?a-3:0),s=3;s<a;s++)o[s-3]=arguments[s];return dx(r,[("string"==typeof(t=Xe(t))||t instanceof ok?_k(i,"updateDoc",e._key,t,n,o):xk(i,"updateDoc",e._key,t)).toMutation(e._key,hm.exists(!0))])}function lx(e){return dx(Cw(e.firestore,nk),[new jm(e._key,hm.none())])}function fx(e,t){var n=Cw(e.firestore,nk),r=Vw(e),i=Zk(e.converter,t);return dx(n,[mk(vk(e.firestore),"addDoc",r._key,i,null!==e.converter,{}).toMutation(r._key,hm.exists(!1))]).then((function(){return r}))}function dx(e,t){return function(e,t){var n=new Uh;return e.asyncQueue.enqueueAndForget(me(pe().mark((function r(){return pe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.t0=Jb,r.next=3,Yw(e);case 3:return r.t1=r.sent,r.t2=t,r.t3=n,r.abrupt("return",(0,r.t0)(r.t1,r.t2,r.t3));case 7:case"end":return r.stop()}}),r)})))),n.promise}(rk(e),t)}function hx(e,t,n){var r=n.docs.get(t._key),i=new ox(e);return new tx(e,i,t._key,r,new ex(n.hasPendingWrites,n.fromCache),t.converter)}function px(){return new bk("serverTimestamp")}function vx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new wk("arrayUnion",t)}function mx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new kk("arrayRemove",t)}!function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!function(e){jh=e}(Wt),Ut(new Je("firestore",(function(e,n){var r=n.instanceIdentifier,i=n.options,a=e.getProvider("app").getImmediate(),o=new nk(new Hh(e.getProvider("auth-internal")),new Qh(e.getProvider("app-check-internal")),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,["projectId"]))throw new Vh(Fh.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new bp(e.options.projectId,t)}(a,r),a);return i=Object.assign({useFetchStreams:t},i),o._setSettings(i),o}),"PUBLIC").setMultipleInstances(!0)),Qt(Th,"3.8.0",e),Qt(Th,"3.8.0","esm2017")}();var yx="firebasestorage.googleapis.com",gx="storageBucket",bx=function(e){ue(n,e);var t=de(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ye(this,n),(i=t.call(this,wx(e),"Firebase Storage: ".concat(r," (").concat(wx(e),")"))).status_=a,i.customData={serverResponse:null},i._baseMessage=i.message,Object.setPrototypeOf(oe(i),n.prototype),i}return we(n,[{key:"status",get:function(){return this.status_},set:function(e){this.status_=e}},{key:"_codeEquals",value:function(e){return wx(e)===this.code}},{key:"serverResponse",get:function(){return this.customData.serverResponse},set:function(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message="".concat(this._baseMessage,"\n").concat(this.customData.serverResponse):this.message=this._baseMessage}}]),n}(Ue);function wx(e){return"storage/"+e}function kx(){return new bx("unknown","An unknown error occurred, please check the error payload for server response.")}function xx(){return new bx("retry-limit-exceeded","Max retry time for operation exceeded, please try again.")}function _x(){return new bx("canceled","User canceled the upload/download.")}function Sx(){return new bx("cannot-slice-blob","Cannot slice blob for upload. Please retry the upload.")}function Ex(e){return new bx("invalid-argument",e)}function Tx(){return new bx("app-deleted","The Firebase app was deleted.")}function Ox(e,t){return new bx("invalid-format","String does not match format '"+e+"': "+t)}function jx(e){throw new bx("internal-error","Internal error: "+e)}var Cx,Ix=function(){function e(t,n){ye(this,e),this.bucket=t,this.path_=n}return we(e,[{key:"path",get:function(){return this.path_}},{key:"isRoot",get:function(){return 0===this.path.length}},{key:"fullServerUrl",value:function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}},{key:"bucketOnlyServerUrl",value:function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}}],[{key:"makeFromBucketSpec",value:function(t,n){var r;try{r=e.makeFromUrl(t,n)}catch(i){return new e(t,"")}if(""===r.path)return r;throw new bx("invalid-default-bucket","Invalid default bucket '"+t+"'.")}},{key:"makeFromUrl",value:function(t,n){var r=null,i="([A-Za-z0-9.\\-_]+)";var a=new RegExp("^gs://"+i+"(/(.*))?$","i");function o(e){e.path_=decodeURIComponent(e.path)}for(var s=n.replace(/[.]/g,"\\."),u=[{regex:a,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?://".concat(s,"/").concat("v[A-Za-z0-9_]+","/b/").concat(i,"/o").concat("(/([^?#]*).*)?$"),"i"),indices:{bucket:1,path:3},postModify:o},{regex:new RegExp("^https?://".concat(n===yx?"(?:storage.googleapis.com|storage.cloud.google.com)":n,"/").concat(i,"/").concat("([^?#]*)"),"i"),indices:{bucket:1,path:2},postModify:o}],c=0;c<u.length;c++){var l=u[c],f=l.regex.exec(t);if(f){var d=f[l.indices.bucket],h=f[l.indices.path];h||(h=""),r=new e(d,h),l.postModify(r);break}}if(null==r)throw function(e){return new bx("invalid-url","Invalid URL '"+e+"'.")}(t);return r}}]),e}(),Nx=function(){function e(t){ye(this,e),this.promise_=Promise.reject(t)}return we(e,[{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(){}}]),e}();function Ax(e){return"string"===typeof e||e instanceof String}function Px(e){return Rx()&&e instanceof Blob}function Rx(){return"undefined"!==typeof Blob&&!Ie()}function Lx(e,t,n,r){if(r<t)throw Ex("Invalid value for '".concat(e,"'. Expected ").concat(t," or greater."));if(r>n)throw Ex("Invalid value for '".concat(e,"'. Expected ").concat(n," or less."))}
2function Dx(e,t,n){var r=t;return null==n&&(r="https://".concat(t)),"".concat(n,"://").concat(r,"/v0").concat(e)}function Mx(e){var t=encodeURIComponent,n="?";for(var r in e){if(e.hasOwnProperty(r))n=n+(t(r)+"="+t(e[r]))+"&"}return n=n.slice(0,-1)}function Fx(e,t){var 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"}(Cx||(Cx={}));var Vx=function(){function e(t,n,r,i,a,o,s,u,c,l,f){var d=this,h=!(arguments.length>11&&void 0!==arguments[11])||arguments[11];ye(this,e),this.url_=t,this.method_=n,this.headers_=r,this.body_=i,this.successCodes_=a,this.additionalRetryCodes_=o,this.callback_=s,this.errorCallback_=u,this.timeout_=c,this.progressCallback_=l,this.connectionFactory_=f,this.retry=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((function(e,t){d.resolve_=e,d.reject_=t,d.start_()}))}return we(e,[{key:"start_",value:function(){var e=this,t=function(t,n){var r=e.resolve_,i=e.reject_,a=n.connection;if(n.wasSuccessCode)try{var o=e.callback_(a,a.getResponse());!function(e){return void 0!==e}(o)?r():r(o)}catch(u){i(u)}else if(null!==a){var s=kx();s.serverResponse=a.getErrorText(),e.errorCallback_?i(e.errorCallback_(a,s)):i(s)}else{if(n.canceled)i(e.appDelete_?Tx():_x());else i(xx())}};this.canceled_?t(0,new Ux(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,a=null,o=!1,s=0;function u(){return 2===s}var c=!1;function l(){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 f(t){i=setTimeout((function(){i=null,e(h,u())}),t)}function d(){a&&clearTimeout(a)}function h(e){if(c)d();else{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 l.call.apply(l,[null,e].concat(n));var a;if(u()||o)return d(),void l.call.apply(l,[null,e].concat(n));r<64&&(r*=2),1===s?(s=2,a=0):a=1e3*(r+Math.random()),f(a)}}var p=!1;function v(e){p||(p=!0,d(),c||(null!==i?(e||(s=2),clearTimeout(i),f(0)):e||(s=1)))}return f(0),a=setTimeout((function(){o=!0,v(!0)}),n),v}((function(t,n){if(n)t(!1,new Ux(!1,null,!0));else{var r=e.connectionFactory_();e.pendingConnection_=r;var i=function(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)};null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then((function(){null!==e.progressCallback_&&r.removeUploadProgressListener(i),e.pendingConnection_=null;var n=r.getErrorCode()===Cx.NO_ERROR,a=r.getStatus();if(n&&!Fx(a,e.additionalRetryCodes_)||!e.retry){var o=-1!==e.successCodes_.indexOf(a);t(!0,new Ux(o,r))}else{var s=r.getErrorCode()===Cx.ABORT;t(!1,new Ux(!1,null,s))}}))}}),t,this.timeout_)}},{key:"getPromise",value:function(){return this.promise_}},{key:"cancel",value:function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&function(e){e(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}]),e}(),Ux=we((function e(t,n,r){ye(this,e),this.wasSuccessCode=t,this.connection=n,this.canceled=!!r}));function zx(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}function Bx(e,t){e["X-Firebase-Storage-Version"]="webjs/"+(null!==t&&void 0!==t?t:"AppManager")}function qx(e,t){t&&(e["X-Firebase-GMPID"]=t)}function Hx(e,t){null!==t&&(e["X-Firebase-AppCheck"]=t)}function Wx(e,t,n,r,i,a){var o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],s=Mx(e.urlParams),u=e.url+s,c=Object.assign({},e.headers);return qx(c,t),zx(c,n),Bx(c,a),Hx(c,r),new Vx(u,e.method,c,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,i,o)}function Gx(){return"undefined"!==typeof BlobBuilder?BlobBuilder:"undefined"!==typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}function Kx(){for(var e=Gx(),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(void 0!==e){for(var i=new e,a=0;a<n.length;a++)i.append(n[a]);return i.getBlob()}if(Rx())return new Blob(n);throw new bx("unsupported-environment","This browser doesn't seem to supp
2ort creating Blobs")}function Qx(e){if("undefined"===typeof atob)throw new bx("unsupported-environment","".concat("base-64"," is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information."));return atob(e)}var $x="raw",Yx="base64",Xx="base64url",Jx="data_url",Zx=we((function e(t,n){ye(this,e),this.data=t,this.contentType=n||null}));function e_(e,t){switch(e){case $x:return new Zx(t_(t));case Yx:case Xx:return new Zx(n_(e,t));case Jx:return new Zx(function(e){var t=new r_(e);return t.base64?n_(Yx,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(n){throw Ox(Jx,"Malformed data URL.")}return t_(t)}(t.rest)}(t),new r_(t).contentType)}throw kx()}function t_(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296===(64512&r))if(n<e.length-1&&56320===(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320===(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function n_(e,t){switch(e){case Yx:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw Ox(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case Xx:var i=-1!==t.indexOf("+"),a=-1!==t.indexOf("/");if(i||a)throw Ox(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var o;try{o=Qx(t)}catch(c){if(c.message.includes("polyfill"))throw c;throw Ox(e,"Invalid character found")}for(var s=new Uint8Array(o.length),u=0;u<o.length;u++)s[u]=o.charCodeAt(u);return s}var r_=we((function e(t){ye(this,e),this.base64=!1,this.contentType=null;var n=t.match(/^data:([^,]+)?,/);if(null===n)throw Ox(Jx,"Must be formatted 'data:[<mediatype>][;base64],<data>");var r=n[1]||null;null!=r&&(this.base64=function(e,t){var n=e.length>=t.length;if(!n)return!1;return e.substring(e.length-t.length)===t}(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-";base64".length):r),this.rest=t.substring(t.indexOf(",")+1)}));var i_=function(){function e(t,n){ye(this,e);var r=0,i="";Px(t)?(this.data_=t,r=t.size,i=t.type):t instanceof ArrayBuffer?(n?this.data_=new Uint8Array(t):(this.data_=new Uint8Array(t.byteLength),this.data_.set(new Uint8Array(t))),r=this.data_.length):t instanceof Uint8Array&&(n?this.data_=t:(this.data_=new Uint8Array(t.length),this.data_.set(t)),r=t.length),this.size_=r,this.type_=i}return we(e,[{key:"size",value:function(){return this.size_}},{key:"type",value:function(){return this.type_}},{key:"slice",value:function(t,n){if(Px(this.data_)){var r=function(e,t,n){return e.webkitSlice?e.webkitSlice(t,n):e.mozSlice?e.mozSlice(t,n):e.slice?e.slice(t,n):null}(this.data_,t,n);return null===r?null:new e(r)}var i=new Uint8Array(this.data_.buffer,t,n-t);return new e(i,!0)}},{key:"uploadData",value:function(){return this.data_}}],[{key:"getBlob",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(Rx()){var i=n.map((function(t){return t instanceof e?t.data_:t}));return new e(Kx.apply(null,i))}var a=n.map((function(e){return Ax(e)?e_($x,e).data:e.data_})),o=0;a.forEach((function(e){o+=e.byteLength}));var s=new Uint8Array(o),u=0;return a.forEach((function(e){for(var t=0;t<e.length;t++)s[u++]=e[t]})),new e(s,!0)}}]),e}();function a_(e){var t;try{t=JSON.parse(e)}catch(n){return null}return function(e){return"object"===typeof e&&!Array.isArray(e)}(t)?t:null}function o_(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function s_(e,t){return t}var u_=we((function e(t,n,r,i){ye(this,e),this.server=t,this.local=n||t,this.writable=!!r,this.xform=i||s_})),c_=null;function l_(){if(c_)return c_;var e=[];e.push(new u_("bucket")),e.push(new u_("generation")),e.push(new u_("metageneration")),e.push(new u_("name","fullPath",!0));var t=new u_("name");t.xform=function(e,t){return function(e){return!Ax(e)||e.length<2?e:o_(e)}(t)},e.push(t);var n=new u_("size");return n.xform=function(e,t){return void 0!==t?Number(t):t},e.push(n),e.push(new u_("timeCreated")),e.push(new u_("updated")),e.push(new u_("md5Hash",null,!0)),e.push(new u_("cacheControl",null,!0)),e.push(new u_("contentDisposition",null,!0)),e.push(new u_("contentEncoding",null,!0)),e.push(new u_("contentLanguage",null,!0)),e.push(new u_("contentType",null,!0)),e.push(new u_("metadata","customMetadata",!0)),c_=e}function f_(e,t,n){for(var r={type:"file"},i=n.length,a=0;a<i;a++){var o=n[a];r[o.local]=o.xform(r,t[o.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new Ix(n,r);return t._makeStorageReference(i)}})}(r,e),r}function d_(e,t,n){var r=a_(t);return null===r?null:f_(e,r,n)}function h_(e,t){for(var n={},r=t.length,i=0;i<r;i++){var a=t[i];a.writable&&(n[a.server]=e[a.local])}return JSON.stringify(n)}var p_=we((function e(t,n,r,i){ye(this,e),this.url=t,this.method=n,this.handler=r,this.timeout=i,this.urlParam
2s={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}));function v_(e){if(!e)throw kx()}function m_(e,t){return function(n,r){var i=d_(e,r,t);return v_(null!==i),i}}function y_(e,t){return function(n,r){var i=d_(e,r,t);return v_(null!==i),function(e,t,n,r){var i=a_(t);if(null===i)return null;if(!Ax(i.downloadTokens))return null;var a=i.downloadTokens;if(0===a.length)return null;var o=encodeURIComponent,s=a.split(",").map((function(t){var i=e.bucket,a=e.fullPath;return Dx("/b/"+o(i)+"/o/"+o(a),n,r)+Mx({alt:"media",token:t})}));return s[0]}(i,r,e.host,e._protocol)}}function g_(e){return function(t,n){var r,i,a;return 401===t.getStatus()?r=t.getErrorText().includes("Firebase App Check token is invalid")?new bx("unauthorized-app","This app does not have permission to access Firebase Storage on this project."):new bx("unauthenticated","User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(a=e.bucket,r=new bx("quota-exceeded","Quota for bucket '"+a+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new bx("unauthorized","User does not have permission to access '"+i+"'.")):r=n,r.status=t.getStatus(),r.serverResponse=n.serverResponse,r}}function b_(e){var t=g_(e);return function(n,r){var i,a=t(n,r);return 404===n.getStatus()&&(i=e.path,a=new bx("object-not-found","Object '"+i+"' does not exist.")),a.serverResponse=r.serverResponse,a}}function w_(e,t,n){var r=Dx(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,a=new p_(r,"GET",m_(e,n),i);return a.errorHandler=b_(t),a}function k_(e,t,n){var r=Object.assign({},n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}function x_(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o={"X-Goog-Upload-Protocol":"multipart"};var s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();o["Content-Type"]="multipart/related; boundary="+s;var u=k_(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+h_(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=i_.getBlob(c,r,l);if(null===f)throw Sx();var d={name:u.fullPath},h=Dx(a,e.host,e._protocol),p=e.maxUploadRetryTime,v=new p_(h,"POST",m_(e,n),p);return v.urlParams=d,v.headers=o,v.body=f.uploadData(),v.errorHandler=g_(t),v}var __=we((function e(t,n,r,i){ye(this,e),this.current=t,this.total=n,this.finalized=!!r,this.metadata=i||null}));function S_(e,t){var n=null;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(r){v_(!1)}return v_(!!n&&-1!==(t||["active"]).indexOf(n)),n}var E_=262144;function T_(e,t,n,r,i,a,o,s){var u=new __(0,0);if(o?(u.current=o.current,u.total=o.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new bx("server-file-wrong-size","Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var f=u.current,d=f+l,h={"X-Goog-Upload-Command":0===l?"finalize":c===l?"upload, finalize":"upload","X-Goog-Upload-Offset":"".concat(u.current)},p=r.slice(f,d);if(null===p)throw Sx();var v=t.maxUploadRetryTime,m=new p_(n,"POST",(function(e,n){var i,o=S_(e,["active","final"]),s=u.current+l,c=r.size();return i="final"===o?m_(t,a)(e,n):null,new __(s,c,"final"===o,i)}),v);return m.headers=h,m.body=p.uploadData(),m.progressCallback=s||null,m.errorHandler=g_(e),m}var O_="running",j_="paused",C_="success",I_="canceled",N_="error";function A_(e){switch(e){case"running":case"pausing":case"canceling":return O_;case"paused":return j_;case"success":return C_;case"canceled":return I_;default:return N_}}var P_=we((function e(t,n,r){ye(this,e);var i=function(e){return"function"===typeof e}(t)||null!=n||null!=r;if(i)this.next=t,this.error=null!==n&&void 0!==n?n:void 0,this.complete=null!==r&&void 0!==r?r:void 0;else{var a=t;this.next=a.next,this.error=a.error,this.complete=a.complete}}));function R_(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Promise.resolve().then((function(){return e.apply(void 0,n)}))}}var L_=function(){function e(){var t=this;ye(this,e),this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=Cx.NO_ERROR,this.sendPromise_=new Promise((function(e){t.xhr_.addEventListener("abort",(function(){t.errorCode_=Cx.ABORT,e()})),t.xhr_.addEventListener("error",(function(){t.errorCode_=Cx.NETWORK_E
2RROR,e()})),t.xhr_.addEventListener("load",(function(){e()}))}))}return we(e,[{key:"send",value:function(e,t,n,r){if(this.sent_)throw jx("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(t,e,!0),void 0!==r)for(var i in r)r.hasOwnProperty(i)&&this.xhr_.setRequestHeader(i,r[i].toString());return void 0!==n?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_}},{key:"getErrorCode",value:function(){if(!this.sent_)throw jx("cannot .getErrorCode() before sending");return this.errorCode_}},{key:"getStatus",value:function(){if(!this.sent_)throw jx("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}}},{key:"getResponse",value:function(){if(!this.sent_)throw jx("cannot .getResponse() before sending");return this.xhr_.response}},{key:"getErrorText",value:function(){if(!this.sent_)throw jx("cannot .getErrorText() before sending");return this.xhr_.statusText}},{key:"abort",value:function(){this.xhr_.abort()}},{key:"getResponseHeader",value:function(e){return this.xhr_.getResponseHeader(e)}},{key:"addUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",e)}},{key:"removeUploadProgressListener",value:function(e){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",e)}}]),e}(),D_=function(e){ue(n,e);var t=de(n);function n(){return ye(this,n),t.apply(this,arguments)}return we(n,[{key:"initXhr",value:function(){this.xhr_.responseType="text"}}]),n}(L_);function M_(){return new D_}var F_=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;ye(this,e),this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=t,this._blob=n,this._metadata=i,this._mappings=l_(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=function(e){if(r._request=void 0,r._chunkMultiplier=1,e._codeEquals("canceled"))r._needToFetchStatus=!0,r.completeTransitions_();else{var t=r.isExponentialBackoffExpired();if(Fx(e.status,[])){if(!t)return r.sleepTime=Math.max(2*r.sleepTime,1e3),r._needToFetchStatus=!0,void r.completeTransitions_();e=xx()}r._error=e,r._transition("error")}},this._metadataErrorHandler=function(e){r._request=void 0,e._codeEquals("canceled")?r.completeTransitions_():(r._error=e,r._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((function(e,t){r._resolve=e,r._reject=t,r._start()})),this._promise.then(null,(function(){}))}return we(e,[{key:"isExponentialBackoffExpired",value:function(){return this.sleepTime>this.maxSleepTime}},{key:"_makeProgressCallback",value:function(){var e=this,t=this._transferred;return function(n){return e._updateProgress(t+n)}}},{key:"_shouldDoResumable",value:function(e){return e.size()>262144}},{key:"_start",value:function(){var e=this;"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout((function(){e.pendingTimeout=void 0,e._continueUpload()}),this.sleepTime):this._oneShotUpload())}},{key:"_resolveToken",value:function(e){var t=this;Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then((function(n){var r=ne(n,2),i=r[0],a=r[1];switch(t._state){case"running":e(i,a);break;case"canceling":t._transition("canceled");break;case"pausing":t._transition("paused")}}))}},{key:"_createResumable",value:function(){var e=this;this._resolveToken((function(t,n){var r=function(e,t,n,r,i){var a=t.bucketOnlyServerUrl(),o=k_(t,r,i),s={name:o.fullPath},u=Dx(a,e.host,e._protocol),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":"".concat(r.size()),"X-Goog-Upload-Header-Content-Type":o.contentType,"Content-Type":"application/json; charset=utf-8"},l=h_(o,n),f=e.maxUploadRetryTime,d=new p_(u,"POST",(function(e){var t;S_(e);try{t=e.getResponseHeader("X-Goog-Upload-URL")}catch(n){v_(!1)}return v_(Ax(t)),t}),f);
2return d.urlParams=s,d.headers=c,d.body=l,d.errorHandler=g_(t),d}(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),i=e._ref.storage._makeRequest(r,M_,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._uploadUrl=t,e._needToFetchStatus=!1,e.completeTransitions_()}),e._errorHandler)}))}},{key:"_fetchStatus",value:function(){var e=this,t=this._uploadUrl;this._resolveToken((function(n,r){var i=function(e,t,n,r){var i=e.maxUploadRetryTime,a=new p_(n,"POST",(function(e){var t=S_(e,["active","final"]),n=null;try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(a){v_(!1)}n||v_(!1);var i=Number(n);return v_(!isNaN(i)),new __(i,r.size(),"final"===t)}),i);return a.headers={"X-Goog-Upload-Command":"query"},a.errorHandler=g_(t),a}(e._ref.storage,e._ref._location,t,e._blob),a=e._ref.storage._makeRequest(i,M_,n,r);e._request=a,a.getPromise().then((function(t){e._request=void 0,e._updateProgress(t.current),e._needToFetchStatus=!1,t.finalized&&(e._needToFetchMetadata=!0),e.completeTransitions_()}),e._errorHandler)}))}},{key:"_continueUpload",value:function(){var e=this,t=E_*this._chunkMultiplier,n=new __(this._transferred,this._blob.size()),r=this._uploadUrl;this._resolveToken((function(i,a){var o;try{o=T_(e._ref._location,e._ref.storage,r,e._blob,t,e._mappings,n,e._makeProgressCallback())}catch(u){return e._error=u,void e._transition("error")}var s=e._ref.storage._makeRequest(o,M_,i,a,!1);e._request=s,s.getPromise().then((function(t){e._increaseMultiplier(),e._request=void 0,e._updateProgress(t.current),t.finalized?(e._metadata=t.metadata,e._transition("success")):e.completeTransitions_()}),e._errorHandler)}))}},{key:"_increaseMultiplier",value:function(){2*(E_*this._chunkMultiplier)<33554432&&(this._chunkMultiplier*=2)}},{key:"_fetchMetadata",value:function(){var e=this;this._resolveToken((function(t,n){var r=w_(e._ref.storage,e._ref._location,e._mappings),i=e._ref.storage._makeRequest(r,M_,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._transition("success")}),e._metadataErrorHandler)}))}},{key:"_oneShotUpload",value:function(){var e=this;this._resolveToken((function(t,n){var r=x_(e._ref.storage,e._ref._location,e._mappings,e._blob,e._metadata),i=e._ref.storage._makeRequest(r,M_,t,n);e._request=i,i.getPromise().then((function(t){e._request=void 0,e._metadata=t,e._updateProgress(e._blob.size()),e._transition("success")}),e._errorHandler)}))}},{key:"_updateProgress",value:function(e){var t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}},{key:"_transition",value:function(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":var t="paused"===this._state;this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=e,this._notifyObservers();break;case"canceled":this._error=_x(),this._state=e,this._notifyObservers()}}},{key:"completeTransitions_",value:function(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}},{key:"snapshot",get:function(){var e=A_(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}},{key:"on",value:function(e,t,n,r){var i=this,a=new P_(t||void 0,n||void 0,r||void 0);return this._addObserver(a),function(){i._removeObserver(a)}}},{key:"then",value:function(e,t){return this._promise.then(e,t)}},{key:"catch",value:function(e){return this.then(null,e)}},{key:"_addObserver",value:function(e){this._observers.push(e),this._notifyObserver(e)}},{key:"_removeObserver",value:function(e){var t=this._observers.indexOf(e);-1!==t&&this._observers.splice(t,1)}},{key:"_notifyObservers",value:function(){var e=this;this._finishPromise(),this._observers.slice().forEach((function(t){e._notifyObserver(t)}))}},{key:"_finishPromise",value:function(){if(void 0!==this._resolve){var e=!0;switch(A_(this._state)){case C_:R_(this._resolve.bind(null,this.snapshot))();break;case I_:case N_:R_(this._reject.bind(null,this._error))();break;default:e=!1}e&&(this._resolve=void 0,this._reject=void 0)}}},{key:"_notifyObserver",value:function(e){switch(A_(this._state)){case O_:case j_:e.next&&R_(e.next.bind(e,this.snapshot))();break;case C_:e.complete&&R_(e.complete.bind(e))();break;default:e.error&&R_(e.error.bind(e,this._error))()}}},{key:"resume",value:function(){var e="paused"===this._state||"pausing"===this._state;return e&&this._transition("running"),e}},{key:"pause",value:function(){var e="running"===this._state;return e&&this._transition("pausing"),e}},{key:"cancel",value:function(){var e="running"===this._state||"pausing"===this._state;return e&&this._transition("canceling"),e}}]),e}(),V_=function(){function e(t,n){ye(this,e),this._service=t,this._location=n instanceof Ix?n:Ix.makeFromUrl(n,t.host)}return we(e,[{key:"toString",value:function(){return"gs://"+this._location.bucket+"/"+this._location.path}},{key:"_newRef",value:function(t,n){return new e(t,n)}},{key:"root",get:function(){var e=new Ix(this._location.bucket,"");return this._newRef(this._service,e)}},{key:"bucket",get:function(){return this._location.bucket}},{key:"fullPath",get:function(){return this._location.path}},{key:"name",get:function(){return o_(this._location.path)}},{key:"storage",get:function(){return this._service}},{key:"parent",get:function(){var t=function(e){if(0===e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this._location.path);if(null===t)return null;var n=new Ix(this._location.bucket,t);return new e(this._service,n)}},{key:"_throwIfRoot",value:function(e){if(""===this._location.path)throw function(e){return new bx("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)}}]),e}();function U_(e){e._throwIfRoot("getDownloadURL");var t=function(e,t,n){var r=Dx(t.fullServerUrl(),e.host,e._protocol),i=e.maxOperationRetryTime,a=new p_(r,"GET",y_(e,n),i);return a.errorHandler=b_(t),a}(e.storage,e._location,l_());return e.storage.makeRequestWithTokens(t,M_).then((function(e){if(null===e)throw new bx("no-download-url","The given file does not have any download URLs.");return e}))}function z_(e,t){var n=function(e,t){var n=t.split("/").filter((function(e){return e.length>0})).join("/");return 0===e.length?n:e+"/"+n}(e._location.path,t),r=new Ix(e._location.bucket,n);return new V_(e.storage,r)}function B_(e,t){if(e instanceof G_){var n=e;if(null==n._bucket)throw new bx("no-default-bucket","No default bucket found. Did you set the '"+gx+"' property when initializing the app?");var r=new V_(n,n._bucket);return null!=t?B_(r,t):r}return void 0!==t?z_(e,t):e}function q_(e,t){if(t&&/^[A-Za-z]+:\/\//.test(t)){if(e instanceof G_)return new V_(e,t);throw Ex("To use ref(service, url), the first argument must be a Storage instance.")}return B_(e,t)}function H_(e,t){var n=null===t||void 0===t?void 0:t[gx];return null==n?null:Ix.makeFromBucketSpec(n,e)}function W_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};e.host="".concat(t,":").concat(n),e._protocol="http";var i=r.mockUserToken;i&&(e._overrideAuthToken="string"===typeof i?i:Ve(i,e.app.options.projectId))}var G_=function(){function e(t,n,r,i,a){ye(this,e),this.app=t,this._authProvider=n,this._appCheckProvider=r,this._url=i,this._firebaseVersion=a,this._bucket=null,this._host=yx,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=i?Ix.makeFromBucketSpec(i,this._host):H_(this._host,this.app.options)}return we(e,[{key:"host",get:function(){return this._host},set:function(e){this._host=e,null!=this._url?this._bucket=Ix.makeFromBucketSpec(this._url,e):this._bucket=H_(e,this.app.options)}},{key:"maxUploadRetryTime",get:function(){return this._maxUploadRetryTime},set:function(e){Lx("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}},{key:"maxOperationRetryTime",get:function(){return this._maxOperationRetryTime},set:function(e){Lx("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}},{key:"_getAuthToken",value:function(){var e=me(pe().mark((function e(){var t,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._overrideAuthToken){e.next=2;break}return e.abrupt("return",this._overrideAuthToken);case 2:if(!(t=this._authProvider.getImmediate({optional:!0}))){e.next=9;break}return e.next=6,t.getToken();case 6:if(null===(n=e.sent)){e.next=9;break}return e.abrupt("return",n.accessToken);case 9:return e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_getAppCheckToken",value:function(){var e=me(pe().mark((function e(){var t,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=this._appCheckProvider.getImmediate({optional:!0}))){e.next=6;break}return e.next=4,t.getToken();case 4:return n=e.sent,e.abrupt("return",n.token);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_delete",value:function(){return this._deleted||(this._deleted=!0,this._requests.forEac
2h((function(e){return e.cancel()})),this._requests.clear()),Promise.resolve()}},{key:"_makeStorageReference",value:function(e){return new V_(this,e)}},{key:"_makeRequest",value:function(e,t,n,r){var i=this,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(this._deleted)return new Nx(Tx());var o=Wx(e,this._appId,n,r,t,this._firebaseVersion,a);return this._requests.add(o),o.getPromise().then((function(){return i._requests.delete(o)}),(function(){return i._requests.delete(o)})),o}},{key:"makeRequestWithTokens",value:function(){var e=me(pe().mark((function e(t,n){var r,i,a,o;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([this._getAuthToken(),this._getAppCheckToken()]);case 2:return r=e.sent,i=ne(r,2),a=i[0],o=i[1],e.abrupt("return",this._makeRequest(t,n,a,o).getPromise());case 7:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),e}(),K_="@firebase/storage",Q_="0.10.0",$_="storage";function Y_(e,t,n){return function(e,t,n){return e._throwIfRoot("uploadBytesResumable"),new F_(e,new i_(t),n)}(e=Xe(e),t,n)}function X_(e){return U_(e=Xe(e))}function J_(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};W_(e,t,n,r)}function Z_(e,t){var n=t.instanceIdentifier,r=e.getProvider("app").getImmediate(),i=e.getProvider("auth-internal"),a=e.getProvider("app-check-internal");return new G_(r,i,a,n,Wt)}Ut(new Je($_,Z_,"PUBLIC").setMultipleInstances(!0)),Qt(K_,Q_,""),Qt(K_,Q_,"esm2017");var eS=Gt({apiKey:"AIzaSyAHLJuCjJSbcrKGFbYTH_hhLDK1wzJkdsI",authDomain:"foodie-vvn.firebaseapp.com",projectId:"foodie-vvn",storageBucket:"foodie-vvn.appspot.com",messagingSenderId:"884833758268",appId:"1:884833758268:web:790615b747a7fa3801a739",measurementId:"G-9LPJ3JQE7J"}),tS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kt(),t=zt(e,"auth");if(t.isInitialized())return t.getImmediate();var n=On(e,{popupRedirectResolver:ao,persistence:[ta,Ii,Ai]}),r=Me("authTokenSyncURL");if(r){var i=vo(r);Ei(n,i,(function(){return i(n.currentUser)})),Si(n,(function(e){return i(e)}))}var a=Re("auth");return a&&Mr(n,"http://".concat(a)),n}(eS),nS=function(e,t){var n="string"==typeof e?e:t||"(default)",r=zt("object"==typeof e?e:Kt(),"firestore").getImmediate({identifier:n});if(!r._initialized){var i=Le("firestore");i&&Rw.apply(void 0,[r].concat(ke(i)))}return r}(eS),rS=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Kt(),t=arguments.length>1?arguments[1]:void 0,n=zt(e=Xe(e),$_),r=n.getImmediate({identifier:t}),i=Le("storage");return i&&J_.apply(void 0,[r].concat(ke(i))),r}(eS),iS=function(){var e=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fx(Fw(nS,t),n);case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),aS=function(){var e=me(pe().mark((function e(t,n,r){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ux(Vw(nS,t,n),r);case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),console.log(e.t0),e.abrupt("return",null);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t,n,r){return e.apply(this,arguments)}}(),oS=new fi,sS=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,tS.signOut();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),uS=function(){var e=me(pe().mark((function e(){var t,n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ya(tS,oS);case 3:return t=e.sent,n=t.user,r=Uk(Fw(nS,"users"),Bk("uid","==",n.uid)),e.next=8,sx(r);case 8:if(0!==e.sent.docs.length){e.next=12;break}return e.next=12,aS("users",n.email,{uid:n.uid,name:n.displayName,image:n.photoURL,email:n.email,savedShop:[],timestamp:px()});case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])}
2)));return function(){return e.apply(this,arguments)}}(),cS=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn loader ".concat("light"!==e.color?"border-t-white border-white/20":"border-t-dark border-dark/10")})})},lS=function(){var e=ne(ko(tS),2),t=e[0],n=e[1];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("button",{onClick:function(){t?sS():uS(),t?xo.ZP.event({category:"logout",action:"User logged out",label:"User logged out"}):xo.ZP.event({category:"login",action:"User logged in",label:"User logged in"})},disabled:n,className:"flex flex-row justify-center items-center rounded-md p-2 bg-gray-50 text-gray-700 font-semibold focus:ring-2 ring-offset-0 ring-dark/10 duration-200 ".concat(n&&"cursor-not-allowed","}"),children:n?(0,cc.jsx)(cS,{color:"light"}):t?(0,cc.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,cc.jsx)("img",{alt:"user profile",src:t.photoURL,className:"w-8 h-8 rounded-full",referrerPolicy:"no-referrer"}),(0,cc.jsxs)("span",{className:"ml-2",children:["Logout ",t&&t.displayName.split(" ")[0]]})]}):(0,cc.jsxs)("div",{className:"flex flex-row justify-start items-center",children:[(0,cc.jsx)(kc,{className:"text-2xl"}),(0,cc.jsx)("span",{className:"ml-2",children:"Sign in with Google"})]})})})};function fS(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm0-9.414l2.828-2.829 1.415 1.415L13.414 12l2.829 2.828-1.415 1.415L12 13.414l-2.828 2.829-1.415-1.415L10.586 12 7.757 9.172l1.415-1.415L12 10.586z"}}]}]})(e)}function dS(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 4h18v2H3V4zm0 7h12v2H3v-2zm0 7h18v2H3v-2z"}}]}]})(e)}function hS(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"g",attr:{},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11 2.05v2.012A8.001 8.001 0 0 0 12 20a8.001 8.001 0 0 0 7.938-7h2.013c-.502 5.053-4.766 9-9.951 9-5.523 0-10-4.477-10-10 0-5.185 3.947-9.449 9-9.95zm7.707 4.657L12 13.414 10.586 12l6.707-6.707L14 2h8v8l-3.293-3.293z"}}]}]})(e)}var pS=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("button",{className:"border-solid min-w-32 border-[1px] border-gray-200 hover:bg-gray-200 rounded-md gap-x-2 flex flex-row justify-center items-center px-3 py-[5px] text-md duration-150 ".concat(e.class," ").concat((e.loading||e.disabled)&&"opacity-50 cursor-not-allowed"),onClick:e.onClick,type:e.type,disabled:e.loading||e.disabled,children:e.loading?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(cS,{color:"light"}),e.loadingText]}):(0,cc.jsxs)(cc.Fragment,{children:[e.icon,e.children]})})})},vS=function(e){return(0,cc.jsx)(cc.Fragment,{children:e.external&&"dark"===e.mode?(0,cc.jsxs)("a",{className:"hover:bg-dark/90 bg-dark text-white rounded-md gap-x-2 flex flex-row justify-center items-center px-3 py-2 text-sm duration-150",href:e.link,target:e.target,children:[e.icon,e.children]}):"light"!==e.mode||e.target?(0,cc.jsxs)(ac,{className:"hover:bg-dark/90 bg-dark text-white rounded-md gap-x-2 flex flex-row justify-center items-center px-3 py-2 text-sm duration-150",to:e.link,type:e.type,children:[e.icon,e.children]}):(0,cc.jsxs)(ac,{className:"hover:bg-gray-200 rounded-md gap-x-2 flex flex-row justify-center items-center px-3 py-2 text-sm duration-150 ".concat(e.bold&&"bg-gray-200 font-semibold !px-5"),to:e.link,type:e.type,children:[e.icon,e.children]})})},mS=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{className:"border-solid border-[1px] border-gray-200 hover:bg-gray-200 rounded-md flex flex-row gap-x-2 justify-center items-center px-3 py-1.5 text-lg duration-150 ".concat(e.className),to:e.link,type:e.type,children:[e.icon,e.children]})})};function yS(){var e=Du();return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("header",{className:"py-2 bg-white sm:bg-white/70 sm:backdrop-blur-xl border-b px-5 lg:px-0",children:(0,cc.jsxs)("div",{className:"layout flex justify-between items-center mx-auto max-w-[80rem] lg:px-0",children:[(0,cc.jsx)(ac,{to:"/",className:"text-sm",children:(0,cc.jsx)("img",{src:"https://www.foodievvn.com/logo.svg",alt:"logo",className:"w-16"})}),(0,cc.jsxs)("div",{className:"relative lg:flex flex-col justify-center items-start hidden",children:[(0,cc.jsx)(wc,{className:"absolute left-4"}),(0,cc.jsx)("form",{onSubmit:function(t){t.preventDefault(),e("/search?query=".concat(t.target.query.value),{replace:!0})},children:(0,cc.jsx)("input",{type:"search",name:"query",id:"search",autoComplete:"off",placeholder:"Search your favorite restaurant...",className:"py-2 pr-3 pl-12 w-[200px] sm:w-[300px] md:w-[400px] lg:w-[500px] bg-gray-100 rounded-md focus:ring-2 ring-offset-0 ring-gray-200 ring-offset-dark/10 duration-200"})})]}),(0,cc.jsxs)("div",{className:"flex flex-row justify-start items-end gap-3 lg:hidden",children:[(0,cc.jsx)(mS,{link:"/search",children:"Search",icon:(0,cc.jsx)(wc,{size:20})}),(0,cc.jsx)(pS,{class:"!px-2 !py-2",onClick:function(){document.getElementsByClassName("navbar")[0].classList.toggle("!top-16")},icon:(0,cc.jsx)(dS,{size:24})})]}),(0,cc.jsx)("div",{className:"lg:block hidden ml-5",children:(0,cc.jsx)(lS,{})})]})})})}var gS=function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sx(Fw(nS,t));case 2:return n=e.sent,e.abrupt("return",n.docs.map((function(e){return e.data()})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),bS=function(){var e=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ax(Vw(nS,t,n));case 2:return r=e.sent,e.abrupt("return",r.data());case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),wS=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sx(Fw(nS,"shops"));case 2:return t=e.sent,e.abrupt("return",t.docs.map((function(e){return e.data()})).filter((function(e){return e.isPublic})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),kS=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sx(Fw(nS,"shops"));case 2:return t=e.sent,e.abrupt("return",t.docs.map((function(e){return e.data()})).filter((function(e){return!e.isPublic})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),xS=function(e){var t=e.children,n=e.title,r=e.deleteFunction,i=e.verifyShopFunction;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{id:"hs-scroll-inside-viewport-modal",className:"hs-overlay hidden w-full h-full fixed top-0 left-0 z-[60] overflow-x-hidden overflow-y-auto",children:(0,cc.jsx)("div",{className:"hs-overlay-open:mt-7 hs-overlay-open:opacity-100 hs-overlay-open:duration-500 mt-0 opacity-0 ease-out transition-all sm:max-w-lg sm:w-full m-3 sm:mx-auto",children:(0,cc.jsxs)("div",{className:"flex flex-col bg-white border shadow-sm rounded-xl dark:bg-gray-800 dark:border-gray-700 dark:shadow-slate-700/[.7]",children:[(0,cc.jsxs)("div",{className:"flex justify-between items-center py-3 px-4 border-b dark:border-gray-700",children:[(0,cc.jsx)("h3",{className:"font-bold text-gray-800 dark:text-white",children:n}),(0,cc.jsxs)("button",{type:"button",className:"hs-dropdown-toggle inline-flex flex-shrink-0 justify-center items-center h-8 w-8 rounded-md text-gray-500 hover:text-gray-400 focus:outline-none focus:ring-2 focus:ring-gray-400 focus:ring-offset-2 focus:ring-offset-white transition-all text-sm dark:focus:ring-gray-700 dark:focus:ring-offset-gray-800","data-hs-overlay":"#hs-scroll-inside-viewport-modal",children:[(0,cc.jsx)("span",{className:"sr-only",children:"Close"}
2),(0,cc.jsx)("svg",{className:"w-3.5 h-3.5",width:"8",height:"8",viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,cc.jsx)("path",{d:"M0.258206 1.00652C0.351976 0.912791 0.479126 0.860131 0.611706 0.860131C0.744296 0.860131 0.871447 0.912791 0.965207 1.00652L3.61171 3.65302L6.25822 1.00652C6.30432 0.958771 6.35952 0.920671 6.42052 0.894471C6.48152 0.868271 6.54712 0.854471 6.61352 0.853901C6.67992 0.853321 6.74572 0.865971 6.80722 0.891111C6.86862 0.916251 6.92442 0.953381 6.97142 1.00032C7.01832 1.04727 7.05552 1.1031 7.08062 1.16454C7.10572 1.22599 7.11842 1.29183 7.11782 1.35822C7.11722 1.42461 7.10342 1.49022 7.07722 1.55122C7.05102 1.61222 7.01292 1.6674 6.96522 1.71352L4.31871 4.36002L6.96522 7.00648C7.05632 7.10078 7.10672 7.22708 7.10552 7.35818C7.10442 7.48928 7.05182 7.61468 6.95912 7.70738C6.86642 7.80018 6.74102 7.85268 6.60992 7.85388C6.47882 7.85498 6.35252 7.80458 6.25822 7.71348L3.61171 5.06702L0.965207 7.71348C0.870907 7.80458 0.744606 7.85498 0.613506 7.85388C0.482406 7.85268 0.357007 7.80018 0.264297 7.70738C0.171597 7.61468 0.119017 7.48928 0.117877 7.35818C0.116737 7.22708 0.167126 7.10078 0.258206 7.00648L2.90471 4.36002L0.258206 1.71352C0.164476 1.61976 0.111816 1.4926 0.111816 1.36002C0.111816 1.22744 0.164476 1.10028 0.258206 1.00652Z",fill:"currentColor"})})]})]}),(0,cc.jsx)("div",{className:"p-4 overflow-y-auto",children:(0,cc.jsx)("div",{className:"mt-1 text-gray-800 dark:text-gray-400",children:t})}),(0,cc.jsxs)("div",{className:"flex justify-end items-center gap-x-2 py-3 px-4 border-t dark:border-gray-700",children:[i?(0,cc.jsx)("button",{onClick:i,type:"button",className:"hs-dropdown-toggle py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-green-500 text-gray-200 shadow-sm align-middle hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-green-500 transition-all text-sm",children:"Verify Restaurant"}):null,r?(0,cc.jsx)("button",{onClick:r,type:"button",className:"hs-dropdown-toggle py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-red-500 text-gray-200 shadow-sm align-middle hover:bg-red-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-red-500 transition-all text-sm",children:"Delete"}):null,(0,cc.jsx)("button",{type:"button",className:"hs-dropdown-toggle py-3 px-4 inline-flex justify-center items-center gap-2 rounded-md border font-medium bg-white text-black shadow-sm align-middle hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-white focus:ring-dark transition-all text-sm","data-hs-overlay":"#hs-scroll-inside-viewport-modal",children:"Close"})]})]})})})})},_S="en",SS={},ES={};function TS(){return _S}function OS(e){return SS[e]?e:ES[e.toLowerCase()]?ES[e.toLowerCase()]:void 0}function jS(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.localeMatcher||"lookup";switch(n){case"lookup":case"best fit":return CS(e);default:throw new RangeError('Invalid "localeMatcher" option: '.concat(n))}}function CS(e){var t=OS(e);if(t)return t;for(var n=e.split("-");e.length>1;){n.pop();var r=OS(e=n.join("-"));if(r)return r}}var IS={af:function(e){return 1==e?"one":"other"},am:function(e){return e>=0&&e<=1?"one":"other"},ar:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 0==e?"zero":1==e?"one":2==e?"two":n>=3&&n<=10?"few":n>=11&&n<=99?"many":"other"},ast:function(e){var t=!String(e).split(".")[1];return 1==e&&t?"one":"other"},be:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2);return 1==r&&11!=i?"one":r>=2&&r<=4&&(i<12||i>14)?"few":n&&0==r||r>=5&&r<=9||i>=11&&i<=14?"many":"other"},br:function(e){var t=String(e).split("."),n=Number(t[0])==e,r=n&&t[0].slice(-1),i=n&&t[0].slice(-2),a=n&&t[0].slice(-6);return 1==r&&11!=i&&71!=i&&91!=i?"one":2==r&&12!=i&&72!=i&&92!=i?"two":(3==r||4==r||9==r)&&(i<10||i>19)&&(i<70||i>79)&&(i<90||i>99)?"few":0!=e&&n&&0==a?"many":"other"},bs:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),u=r.slice(-2);return i&&1==a&&11!=o||1==s&&11!=u?"one":i&&a>=2&&a<=4&&(o<12||o>14)||s>=2&&s<=4&&(u<12||u>14)?"few":"other"},ca:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e&&r?"one":0!=n&&0==i&&r?"many":"other"},ceb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=r.slice(-1);return i&&(1==n||2==n||3==n)||i&&4!=a&&6!=a&&9!=a||!i&&4!=o&&6!=o&&9!=o?"one":"other"},cs:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==e&&r?"one":n>=2&&n<=4&&r?"few":r?"other":"many"},cy:function(e){return 0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e){var t=String(e).split("."),n=t[0],r=Number(t[0])==e;return 1!=e&&(r||0!=n&&1!=n)?"other":"one"},dsb:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-2),o=r.slice(-2);return i&&1==a||1==o?"one":i&&2==a||2==o?"two":i&&(3==a||4==a)||3==o||4==o?"few":"other"},dz:function(e){return"other"},es:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 1==e?"one":0!=n&&0==i&&r?"many":"other"},ff:function(e){return e>
2=0&&e<2?"one":"other"},fr:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return e>=0&&e<2?"one":0!=n&&0==i&&r?"many":"other"},ga:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e?"one":2==e?"two":n&&e>=3&&e<=6?"few":n&&e>=7&&e<=10?"many":"other"},gd:function(e){var t=String(e).split("."),n=Number(t[0])==e;return 1==e||11==e?"one":2==e||12==e?"two":n&&e>=3&&e<=10||n&&e>=13&&e<=19?"few":"other"},he:function(e){var t=String(e).split("."),n=t[0],r=!t[1];return 1==n&&r||0==n&&!r?"one":2==n&&r?"two":"other"},is:function(e){var t=String(e).split("."),n=t[0],r=(t[1]||"").replace(/0+$/,""),i=Number(t[0])==e,a=n.slice(-1),o=n.slice(-2);return i&&1==a&&11!=o||r%10==1&&r%100!=11?"one":"other"},ksh:function(e){return 0==e?"zero":1==e?"one":"other"},lt:function(e){var t=String(e).split("."),n=t[1]||"",r=Number(t[0])==e,i=r&&t[0].slice(-1),a=r&&t[0].slice(-2);return 1==i&&(a<11||a>19)?"one":i>=2&&i<=9&&(a<11||a>19)?"few":0!=n?"many":"other"},lv:function(e){var t=String(e).split("."),n=t[1]||"",r=n.length,i=Number(t[0])==e,a=i&&t[0].slice(-1),o=i&&t[0].slice(-2),s=n.slice(-2),u=n.slice(-1);return i&&0==a||o>=11&&o<=19||2==r&&s>=11&&s<=19?"zero":1==a&&11!=o||2==r&&1==u&&11!=s||2!=r&&1==u?"one":"other"},mk:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"",i=!t[1],a=n.slice(-1),o=n.slice(-2),s=r.slice(-1),u=r.slice(-2);return i&&1==a&&11!=o||1==s&&11!=u?"one":"other"},mt:function(e){var t=String(e).split("."),n=Number(t[0])==e&&t[0].slice(-2);return 1==e?"one":2==e?"two":0==e||n>=3&&n<=10?"few":n>=11&&n<=19?"many":"other"},pa:function(e){return 0==e||1==e?"one":"other"},pl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return 1==e&&r?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&1!=n&&(0==i||1==i)||r&&i>=5&&i<=9||r&&a>=12&&a<=14?"many":"other"},pt:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-6);return 0==n||1==n?"one":0!=n&&0==i&&r?"many":"other"},ro:function(e){var t=String(e).split("."),n=!t[1],r=Number(t[0])==e&&t[0].slice(-2);return 1==e&&n?"one":!n||0==e||1!=e&&r>=1&&r<=19?"few":"other"},ru:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-1),a=n.slice(-2);return r&&1==i&&11!=a?"one":r&&i>=2&&i<=4&&(a<12||a>14)?"few":r&&0==i||r&&i>=5&&i<=9||r&&a>=11&&a<=14?"many":"other"},se:function(e){return 1==e?"one":2==e?"two":"other"},si:function(e){var t=String(e).split("."),n=t[0],r=t[1]||"";return 0==e||1==e||0==n&&1==r?"one":"other"},sl:function(e){var t=String(e).split("."),n=t[0],r=!t[1],i=n.slice(-2);return r&&1==i?"one":r&&2==i?"two":r&&(3==i||4==i)||!r?"few":"other"}};IS.as=IS.am,IS.az=IS.af,IS.bg=IS.af,IS.bn=IS.am,IS.brx=IS.af,IS.ce=IS.af,IS.chr=IS.af,IS.de=IS.ast,IS.ee=IS.af,IS.el=IS.af,IS.en=IS.ast,IS.et=IS.ast,IS.eu=IS.af,IS.fa=IS.am,IS.fi=IS.ast,IS.fil=IS.ceb,IS.fo=IS.af,IS.fur=IS.af,IS.fy=IS.ast,IS.gl=IS.ast,IS.gu=IS.am,IS.ha=IS.af,IS.hi=IS.am,IS.hr=IS.bs,IS.hsb=IS.dsb,IS.hu=IS.af,IS.hy=IS.ff,IS.ia=IS.ast,IS.id=IS.dz,IS.ig=IS.dz,IS.it=IS.ca,IS.ja=IS.dz,IS.jgo=IS.af,IS.jv=IS.dz,IS.ka=IS.af,IS.kea=IS.dz,IS.kk=IS.af,IS.kl=IS.af,IS.km=IS.dz,IS.kn=IS.am,IS.ko=IS.dz,IS.ks=IS.af,IS.ku=IS.af,IS.ky=IS.af,IS.lb=IS.af,IS.lkt=IS.dz,IS.lo=IS.dz,IS.ml=IS.af,IS.mn=IS.af,IS.mr=IS.af,IS.ms=IS.dz,IS.my=IS.dz,IS.nb=IS.af,IS.ne=IS.af,IS.nl=IS.ast,IS.nn=IS.af,IS.no=IS.af,IS.or=IS.af,IS.pcm=IS.am,IS.ps=IS.af,IS.rm=IS.af,IS.sah=IS.dz,IS.sc=IS.ast,IS.sd=IS.af,IS.sk=IS.cs,IS.so=IS.af,IS.sq=IS.af,IS.sr=IS.bs,IS.su=IS.dz,IS.sv=IS.ast,IS.sw=IS.ast,IS.ta=IS.af,IS.te=IS.af,IS.th=IS.dz,IS.ti=IS.pa,IS.tk=IS.af,IS.to=IS.dz,IS.tr=IS.af,IS.ug=IS.af,IS.uk=IS.ru,IS.ur=IS.ast,IS.uz=IS.af,IS.vi=IS.dz,IS.wae=IS.af,IS.wo=IS.dz,IS.xh=IS.af,IS.yi=IS.ast,IS.yo=IS.dz,IS.yue=IS.dz,IS.zh=IS.dz,IS.zu=IS.am;var NS=IS;function AS(e){return"pt-PT"===e?e:function(e){var t=e.match(PS);if(!t)throw new TypeError("Invalid locale: ".concat(e));return t[1]}(e)}var PS=/^([a-z0-9]+)/i;function RS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var LS=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=e.supportedLocalesOf(t);if(0===r.length)throw new RangeError("Unsupported locale: "+t);if(n&&"cardinal"!==n.type)throw new RangeError('Only "cardinal" "type" is supported');this.$=NS[AS(r[0])]}var t,n,r;return t=e,r=[{key:"supportedLocalesOf",value:function(e){return"string"===typeof e&&(e=[e]),e.filter((function(e){return NS[AS(e)]}))}}],(n=[{key:"select",value:function(e){return this.$(e)}}])&&RS(t.prototype,n),r&&RS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function DS(e){return DS="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},DS(e)}function MS(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 FS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?MS(Object(n),!0).forEach((function(t){VS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function US(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return zS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zS(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function zS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var HS=["second","minute","hour","day","week","month","quarter","year"],WS=["auto","always"],GS=["long","short","narrow"],KS=["lookup","best fit"],QS=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};BS(this,e);var r=n.numeric,i=n.style,a=n.localeMatcher;if(this.numeric="always",this.style="long",this.localeMatcher="lookup",void 0!==r){if(WS.indexOf(r)<0)throw new RangeError('Invalid "numeric" option: '.concat(r));this.numeric=r}if(void 0!==i){if(GS.indexOf(i)<0)throw new RangeError('Invalid "style" option: '.concat(i));this.style=i}if(void 0!==a){if(KS.indexOf(a)<0)throw new RangeError('Invalid "localeMatcher" option: '.concat(a));this.localeMatcher=a}if("string"===typeof t&&(t=[t]),t.push(TS()),this.locale=e.supportedLocalesOf(t,{localeMatcher:this.localeMatcher})[0],!this.locale)throw new Error("No supported locale was found");LS.supportedLocalesOf(this.locale).length>0?this.pluralRules=new LS(this.locale):console.warn('"'.concat(this.locale,'" locale is not supported')),"undefined"!==typeof Intl&&Intl.NumberFormat?(this.numberFormat=new Intl.NumberFormat(this.locale),this.numberingSystem=this.numberFormat.resolvedOptions().numberingSystem):this.numberingSystem="latn",this.locale=jS(this.locale,{localeMatcher:this.localeMatcher})}var t,n,r;return t=e,n=[{key:"format",value:function(){var e=JS(arguments),t=US(e,2),n=t[0],r=t[1];return this.getRule(n,r).replace("{0}",this.formatNumber(Math.abs(n)))}},{key:"formatToParts",value:function(){var e=JS(arguments),t=US(e,2),n=t[0],r=t[1],i=this.getRule(n,r),a=i.indexOf("{0}");if(a<0)return[{type:"literal",value:i}];var o=[];return a>0&&o.push({type:"literal",value:i.slice(0,a)}),o=o.concat(this.formatNumberToParts(Math.abs(n)).map((function(e){return FS(FS({},e),{},{unit:r})}))),a+"{0}".length<i.length-1&&o.push({type:"literal",value:i.slice(a+"{0}".length)}),o}},{key:"getRule",value:function(e,t){var n,r=(n=this.locale,SS[n])[this.style][t];if("string"===typeof r)return r;if("auto"===this.numeric)if(-2===e||-1===e){var i=r["previous".concat(-1===e?"":"-"+Math.abs(e))];if(i)return i}else if(1===e||2===e){var a=r["next".concat(1===e?"":"-"+Math.abs(e))];if(a)return a}else if(0===e&&r.current)return r.current;var o,s=r[(o=e,o<0||0===o&&function(e){return 1/e===-1/0}(o)?"past":"future")];return"string"===typeof s?s:s[this.pluralRules&&this.pluralRules.select(Math.abs(e))||"other"]||s.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"formatNumberToParts",value:function(e){return this.numberFormat&&this.numberFormat.formatToParts?this.numberFormat.formatToParts(e):[{type:"integer",value:this.formatNumber(e)}]}},{key:"resolvedOptions",value:function(){return{locale:this.locale,style:this.style,numeric:this.numeric,numberingSystem:this.numberingSystem}}}],n&&qS(t.prototype,n),r&&qS(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();QS.supportedLocalesOf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"===typeof e)e=[e];else if(!Array.isArray(e))throw new TypeError('Invalid "locales" argument');return e.filter((function(e){return jS(e,t)}))},QS.addLocale=function(e){if(!e)throw new Error("No locale data passed");SS[e.locale]=e,ES[e.locale.toLowerCase()]=e.locale},QS.setDefaultLocale=function(e){_S=e},QS.getDefaultLocale=TS,QS.PluralRules=LS;var $S='Invalid "unit" argument';function YS(e){if("symbol"===DS(e))throw new TypeError($S);if("string"!==typeof e)throw new RangeError("".concat($S,": ").concat(e));if("s"===e[e.length-1]&&(e=e.slice(0,e.length-1)),HS.indexOf(e)<0)throw new RangeError("".concat($S,": ").concat(e));return e}function XS(e){if(e=Number(e),Number.isFinite&&!Number.isFinite(e))throw new RangeError("".concat('Invalid "number" argument',": ").concat(e));return e}function JS(e){if(e.length<2)throw new TypeError('"unit" argument is required');
2return[XS(e[0]),YS(e[1])]}function ZS(e){return ZS="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},ZS(e)}function eE(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var tE=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,n=[{key:"get",value:function(){for(var e=this.cache,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if("object"!==ZS(e))return;e=e[o]}return e}},{key:"put",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=t.pop(),i=t.pop(),a=this.cache,o=0,s=t;o<s.length;o++){var u=s[o];"object"!==ZS(a[u])&&(a[u]={}),a=a[u]}return a[i]=r}}],n&&eE(t.prototype,n),r&&eE(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nE(e){return nE="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},nE(e)}function rE(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return iE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iE(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function iE(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aE(e,t){for(var n,r=rE(e);!(n=r()).done;){var i=n.value;if(t(i))return i;for(var a=i.split("-");a.length>1;)if(a.pop(),t(i=a.join("-")))return i}throw new Error("No locale data has been registered for any of the locales: ".concat(e.join(", ")))}function oE(){return"object"===("undefined"===typeof Intl?"undefined":nE(Intl))&&"function"===typeof Intl.DateTimeFormat}function sE(e){return sE="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},sE(e)}function uE(e){return function(e){return void 0!==sE(e)&&null!==e&&e.constructor===cE}(e)&&(Array.isArray(e.steps)||Array.isArray(e.gradation)||Array.isArray(e.flavour)||"string"===typeof e.flavour||Array.isArray(e.labels)||"string"===typeof e.labels||Array.isArray(e.units)||"function"===typeof e.custom)}var cE={}.constructor;var lE=60,fE=3600,dE=86400,hE=7*dE,pE=2630016,vE=31556952;function mE(e){switch(e){case"second":return 1;case"minute":return lE;case"hour":return fE;case"day":return dE;case"week":return hE;case"month":return pE;case"year":return vE}}function yE(e){return void 0!==e.factor?e.factor:mE(e.unit||e.formatAs)||1}function gE(e){return"floor"===e?Math.floor:Math.round}function bE(e){return"floor"===e?1:.5}function wE(e){return wE="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},wE(e)}function kE(e,t){var n,r=t.prevStep,i=t.timestamp,a=t.now,o=t.future,s=t.round;return r&&(r.id||r.unit)&&(n=e["threshold_for_".concat(r.id||r.unit)]),void 0===n&&void 0!==e.threshold&&"function"===typeof(n=e.threshold)&&(n=n(a,o)),void 0===n&&(n=e.minTime),"object"===wE(n)&&(n=r&&r.id&&void 0!==n[r.id]?n[r.id]:n.default),"function"===typeof n&&(n=n(i,{future:o,getMinTimeForUnit:function(e,t){return xE(e,t||r&&r.formatAs,{round:s})}})),void 0===n&&e.test&&(n=e.test(i,{now:a,future:o})?0:9007199254740991),void 0===n&&(r?e.formatAs&&r.formatAs&&(n=xE(e.formatAs,r.formatAs,{round:s})):n=0),void 0===n&&console.warn("[javascript-time-ago] A step should specify `minTime`:\n"+JSON.stringify(e,null,2)),n}function xE(e,t,n){var r,i=n.round,a=mE(e);if(r=mE("now"===t?e:t),void 0!==a&&void 0!==r)return a-r*(1-bE(i))}function _E(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 SE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?_E(Object(n),!0).forEach((function(t){EE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e,t,n){var r=n.now,i=n.future,a=n.round,o=n.units,s=n.getNextStep;e=function(e,t){return e.filter((function(e){var n=e.unit,r=e.formatAs;return!(n=n||r)||t.indexOf(n)>=0}))}(e,o);var u=function(e,t,n){var r=n.now,i=n.future,a=n.round;if(0===e.length)return;var o=OE(e,t,{now:r,future:i||t<0,round:a});if(-1===o)return;var s=e[o];if(s.granularity){if(0===gE(a)(Math.abs(t)/yE(s)/s.granularity)*s.granularity&&o>0)return e[o-1]}return s}(e,t,{now:r,future:i,round:a});return s?u?[e[e.indexOf(u)-1],u,e[e.indexOf(u)+1]]:[void 0,void 0,e[0]]:u}function OE(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=kE(e[r],SE({prevStep:e[r-1],timestamp:n.now-1e3*t},n));return void 0===i||Math.abs(t)<i?r-1:r===e.length-1?r:OE(e,t,n,r+1)}function jE(e,t,n){var r=n.now,i=n.round;if(mE(e)){var a=1e3*mE(e),o=t>r,s=Math.abs(t-r),u=gE(i)(s/a)*a;return o?u>0?s-u+function(e,t){return(1-bE(e))*t+1}(i,a):s-u+1:-(s-u)+function(e,t){return bE(e)*t}(i,a)}}var CE=31536e9;function IE(e,t,n){var r=n.prevStep,i=n.nextStep,a=n.now,o=n.future,s=n.round,u=e.getTime?e.getTime():e,c=function(e){return jE(e,u,{now:a,round:s})},l=function(e,t,n){var r=n.now,i=n.future,a=n.round,o=n.prevStep;if(e){var s=function(e,t,n){var r=n.now,i=n.future,a=n.round,o=n.prevStep,s=kE(e,{timestamp:t,now:r,future:i,round:a,prevStep:o});if(void 0===s)return;return i?t-1e3*s+1:0===s&&t===r?CE:t+1e3*s}(e,t,{now:r,future:i,round:a,prevStep:o});if(void 0===s)return;return s-r}return i?t-r+1:CE}(o?t:i,u,{future:o,now:a,round:s,prevStep:o?r:t});if(void 0!==l){var f;if(t&&(t.getTimeToNextUpdate&&(f=t.getTimeToNextUpdate(u,{getTimeToNextUpdateForUnit:c,getRoundFunction:gE,now:a,future:o,round:s})),void 0===f)){var d=t.unit||t.formatAs;d&&(f=c(d))}return void 0===f?l:Math.min(f,l)}}var NE={};function AE(e){return NE[e]}function PE(e){if(!e)throw new Error("[javascript-time-ago] No locale data passed.");NE[e.locale]=e}var RE={steps:[{formatAs:"now"},{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"}],labels:"long"};function LE(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 DE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LE(Object(n),!0).forEach((function(t){ME(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ME(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var FE=DE(DE({},RE),{},{steps:RE.steps.filter((function(e){return"second"!==e.formatAs}))}),VE=[{factor:1,unit:"now"},{threshold:1,threshold_for_now:45.5,factor:1,unit:"second"},{threshold:45.5,factor:lE,unit:"minute"},{threshold:150,granularity:5,factor:lE,unit:"minute"},{threshold:1350,factor:1800,unit:"half-hour"},{threshold:2550,threshold_for_minute:3150,factor:fE,unit:"hour"},{threshold:73800,factor:dE,unit:"day"},{threshold:475200,factor:hE,unit:"week"},{threshold:2116800,factor:pE,unit:"month"},{threshold:27615168,factor:vE,unit:"year"}],UE={gradation:VE,flavour:"long",units:["now","minute","hour","day","week","month","year"]},zE={gradation:VE,flavour:"long-time",units:["now","minute","hour","day","week","month","year"]};function BE(e){return e instanceof Date?e:new Date(e)}var qE=[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"}],HE={},WE={minTime:function(e,t){t.future;return(0,t.getMinTimeForUnit)("day")},format:function(e,t){return HE[t]||(HE[t]={}),HE[t].dayMonth||(HE[t].dayMonth=new Intl.DateTimeFormat(t,{month:"short",day:"numeric"})),HE[t].dayMonth.format(BE(e))}},GE={minTime:function(e,t){return t.future?(e-(new Date(new Date(e).getFullYear(),0).getTime()-1))/1e3:(new Date(new Date(e).getFullYear()+1,0).getTime()-e)/1e3},format:function(e,t){return HE[t]||(HE[t]={}),HE[t].dayMonthYear||(HE[t].dayMonthYear=new Intl.DateTimeFormat(t,{year:"numeric",month:"short",day:"numeric"})),HE[t].dayMonthYear.format(BE(e))}};oE()?qE.push(WE,GE):qE.push({formatAs:"day"},{formatAs:"week"},{formatAs:"month"},{formatAs:"year"});var KE={steps:qE,labels:["mini","short-time","narrow","short"]};function QE(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 $E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?QE(Object(n),!0).forEach((function(t){YE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XE=$E($E({},KE),{},{steps:[{formatAs:"now"}].concat(KE.steps)});function JE(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 ZE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JE(Object(n),!0).forEach((function(t){eT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tT=ZE(ZE({},KE),{},{steps:KE.steps.filter((function(e){return"second"!==e.formatAs}))});function nT(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 rT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nT(Object(n),!0).forEach((function(t){iT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aT=rT(rT({},tT),{},{steps:[{formatAs:"now"}].concat(tT.steps)});function oT(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 sT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oT(Object(n),!0).forEach((function(t){uT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cT=sT(sT({},KE),{},{steps:KE.steps.filter((function(e){return"second"!==e.formatAs})).map((function(e){return"minute"===e.formatAs?sT(sT({},e),{},{minTime:lE}):e}))}),lT={steps:[{formatAs:"second"},{formatAs:"minute"},{formatAs:"hour"},{formatAs:"day"},{formatAs:"month"},{formatAs:"year"}],labels:["mini","short-time","narrow","short"]};function fT(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 dT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(n),!0).forEach((function(t){hT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pT=dT(dT({},lT),{},{steps:[{formatAs:"now"}].concat(lT.steps)});function vT(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 mT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?vT(Object(n),!0).forEach((function(t){yT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gT=mT(mT({},lT),{},{steps:lT.steps.filter((function(e){return"second"!==e.formatAs}))});function bT(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 wT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bT(Object(n),!0).forEach((function(t){kT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xT=wT(wT({},gT),{},{steps:[{formatAs:"now"}].concat(gT.steps)});function _T(e){return _T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_T(e)}function ST(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=TT(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ET(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,a=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(a.push(r.value),!t||a.length!==t);o=!0);}catch(u){s=!0,i=u}finally{try{o||null==n.return||n.return()}finally{if(s)throw i}}return a}(e,t)||TT(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
2function TT(e,t){if(e){if("string"===typeof e)return OT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?OT(e,t):void 0}}function OT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var IT,NT=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.polyfill;jT(this,e),"string"===typeof t&&(t=[t]),this.locale=aE(t.concat(e.getDefaultLocale()),AE),"undefined"!==typeof Intl&&Intl.NumberFormat&&(this.numberFormat=new Intl.NumberFormat(this.locale)),!1===r?(this.IntlRelativeTimeFormat=Intl.RelativeTimeFormat,this.IntlPluralRules=Intl.PluralRules):(this.IntlRelativeTimeFormat=QS,this.IntlPluralRules=QS.PluralRules),this.relativeTimeFormatCache=new tE,this.pluralRulesCache=new tE}var t,n,r;return t=e,n=[{key:"format",value:function(e,t,n){var r;n||(t&&"string"!==typeof(r=t)&&!uE(r)?(n=t,t=void 0):n={}),t||(t=FE),"string"===typeof t&&(t=function(e){switch(e){case"default":case"round":return RE;case"round-minute":return FE;case"approximate":default:return UE;case"time":case"approximate-time":return zE;case"mini":return lT;case"mini-now":return pT;case"mini-minute":return gT;case"mini-minute-now":return xT;case"twitter":return KE;case"twitter-now":return XE;case"twitter-minute":return tT;case"twitter-minute-now":return aT;case"twitter-first-minute":return cT}}(t));var i,a=function(e){if(e.constructor===Date||"object"===_T(t=e)&&"function"===typeof t.getTime)return e.getTime();var t;if("number"===typeof e)return e;throw new Error("Unsupported relative time formatter input: ".concat(_T(e),", ").concat(e))}(e),o=this.getLabels(t.flavour||t.labels),s=o.labels,u=o.labelsType;void 0!==t.now&&(i=t.now),void 0===i&&void 0!==n.now&&(i=n.now),void 0===i&&(i=Date.now());var c=(i-a)/1e3,l=n.future||c<0,f=function(e,t,n,r){var i=e.now||t&&t.now;return i?"string"===typeof i?i:r?i.future:i.past:n&&n.second&&n.second.current?n.second.current:void 0}(s,AE(this.locale).now,AE(this.locale).long,l);if(t.custom){var d=t.custom({now:i,date:new Date(a),time:a,elapsed:c,locale:this.locale});if(void 0!==d)return d}var h=function(e,t,n){var r=Object.keys(t);return n&&r.push("now"),e&&(r=e.filter((function(e){return"now"===e||r.indexOf(e)>=0}))),r}(t.units,s,f),p=n.round||t.round,v=ET(TE(t.gradation||t.steps||FE.steps,c,{now:i,units:h,round:p,future:l,getNextStep:!0}),3),m=v[0],y=v[1],g=v[2],b=this.formatDateForStep(a,y,c,{labels:s,labelsType:u,nowLabel:f,now:i,future:l,round:p})||"";return n.getTimeToNextUpdate?[b,IE(a,y,{nextStep:g,prevStep:m,now:i,future:l,round:p})]:b}},{key:"formatDateForStep",value:function(e,t,n,r){var i=this,a=r.labels,o=r.labelsType,s=r.nowLabel,u=r.now,c=r.future,l=r.round;if(t){if(t.format)return t.format(e,this.locale,{formatAs:function(e,t){return i.formatValue(t,e,{labels:a,future:c})},now:u,future:c});var f=t.unit||t.formatAs;if(!f)throw new Error("[javascript-time-ago] Each step must define either `formatAs` or `format()`. Step: ".concat(JSON.stringify(t)));if("now"===f)return s;var d=Math.abs(n)/yE(t);t.granularity&&(d=gE(l)(d/t.granularity)*t.granularity);var h=-1*Math.sign(n)*gE(l)(d);switch(0===h&&(h=c?0:-0),o){case"long":case"short":case"narrow":return this.getFormatter(o).format(h,f);default:return this.formatValue(h,f,{labels:a,future:c})}}}},{key:"formatValue",value:function(e,t,n){var r=n.labels,i=n.future;return this.getFormattingRule(r,t,e,{future:i}).replace("{0}",this.formatNumber(Math.abs(e)))}},{key:"getFormattingRule",value:function(e,t,n,r){var i=r.future;if(this.locale,"string"===typeof(e=e[t]))return e;var a=e[0===n?i?"future":"past":n<0?"past":"future"]||e;return"string"===typeof a?a:a[this.getPluralRules().select(Math.abs(n))]||a.other}},{key:"formatNumber",value:function(e){return this.numberFormat?this.numberFormat.format(e):String(e)}},{key:"getFormatter",value:function(e){return this.relativeTimeFormatCache.get(this.locale,e)||this.relativeTimeFormatCache.put(this.locale,e,new this.IntlRelativeTimeFormat(this.locale,{style:e}))}},{key:"getPluralRules",value:function(){return this.pluralRulesCache.get(this.locale)||this.pluralRulesCache.put(this.locale,new this.IntlPluralRules(this.locale))}},{key:"getLabels",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];"string"===typeof e&&(e=[e]),e=(e=e.map((function(e){switch(e){case"tiny":case"mini-time":return"mini";default:return e}}))).concat("long");for(var t,n=AE(this.locale),r=ST(e);!(t=r()).done;){var i=t.value;if(n[i])return{labelsType:i,labels:n[i]}}}}],n&&CT(t.prototype,n),r&&CT(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),AT="en";NT.getDefaultLocale=function(){return AT},NT.setDefaultLocale=function(e){return AT=e},NT.addDefaultLocale=function(e){if(IT)return console.error("[javascript-time-ago] `TimeAgo.addDefaultLocale()` can only be called once. To add other locales, use `TimeAgo.addLocale()`.");IT=!0,NT.setDefaultLocale(e.locale),NT.addLocale(e)},NT.addLocale=function(e){PE(e),QS.addLocale(e)},NT.locale=NT.addLocale,NT.addLabels=function(e,t,n){var r=AE(e);r||(PE({locale:e}),r=AE(e)),r[t]=n};NT.addDefaultLocale({locale:"en",long:{year:{previous:"last year",current:"this year",next:"next year",past:{one:"{0} year ago",other:"{0} years ago"},future:{one:"in {0} year",other:"in {0} years"}},quarter:{previous:"last quarter",current:"this quarter",next:"next quarter",past:{one:"{0} quarter ago",other:"{0} quarters ago"},future:{one:"in {0} quarter",other:"in {0} quarters"}},month:{previous:"last month",current:"this month",next:"next month",past:{one:"{0} month ago",other:"{0} months ago"},future:{one:"in {0} month",other:"in {0} months"}},week:{previous:"last week",current:"this week",next:"next week",past:{one:"{0} week ago",other:"{0} weeks ago"},future:{one:"in {0} week",other:"in {0} weeks"}},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:{one:"{0} hour ago",other:"{0} hours ago"},future:{one:"in {0} hour",other:"in {0} hours"}},minute:{current:"this minute",past:{one:"{0} minute ago",other:"{0} minutes ago"},future:{one:"in {0} minute",other:"in {0} minutes"}},second:{current:"now",past:{one:"{0} second ago",other:"{0} seconds ago"},future:{one:"in {0} second",other:"in {0} seconds"}}},short:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0} yr. ago",future:"in {0} yr."},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:{one:"{0} qtr. ago",other:"{0} qtrs. ago"},future:{one:"in {0} qtr.",other:"in {0} qtrs."}},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0} mo. ago",future:"in {0} mo."},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0} wk. ago",future:"in {0} wk."},day:{previous:"yesterday",current:"today",next:"tomorrow",past:{one:"{0} day ago",other:"{0} days ago"},future:{one:"in {0} day",other:"in {0} days"}},hour:{current:"this hour",past:"{0} hr. ago",future:"in {0} hr."},minute:{current:"this minute",past:"{0} min. ago",future:"in {0} min."},second:{current:"now",past:"{0} sec. ago",future:"in {0} sec."}},narrow:{year:{previous:"last yr.",current:"this yr.",next:"next yr.",past:"{0}y ago",future:"in {0}y"},quarter:{previous:"last qtr.",current:"this qtr.",next:"next qtr.",past:"{0}q ago",future:"in {0}q"},month:{previous:"last mo.",current:"this mo.",next:"next mo.",past:"{0}mo ago",future:"in {0}mo"},week:{previous:"last wk.",current:"this wk.",next:"next wk.",past:"{0}w ago",future:"in {0}w"},day:{previous:"yesterday",current:"today",next:"tomorrow",past:"{0}d ago",future:"in {0}d"},hour:{current:"this hour",past:"{0}h ago",future:"in {0}h"},minute:{current:"this minute",past:"{0}m ago",future:"in {0}m"},second:{current:"now",past:"{0}s ago",future:"in {0}s"}},now:{now:{current:"now",future:"in a moment",past:"just now"}},mini:{year:"{0}
2yr",month:"{0}mo",week:"{0}wk",day:"{0}d",hour:"{0}h",minute:"{0}m",second:"{0}s",now:"now"},"short-time":{year:"{0} yr.",month:"{0} mo.",week:"{0} wk.",day:{one:"{0} day",other:"{0} days"},hour:"{0} hr.",minute:"{0} min.",second:"{0} sec."},"long-time":{year:{one:"{0} year",other:"{0} years"},month:{one:"{0} month",other:"{0} months"},week:{one:"{0} week",other:"{0} weeks"},day:{one:"{0} day",other:"{0} days"},hour:{one:"{0} hour",other:"{0} hours"},minute:{one:"{0} minute",other:"{0} minutes"},second:{one:"{0} second",other:"{0} seconds"}}});var PT=function(e){return new NT("en-US").format(new Date(new Zh(e,0).toDate()))},RT=function(e){return new Date(new Zh(e.seconds,e.nanoseconds).toDate()).toDateString()},LT=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uk(Fw(nS,"contact"),Bk("addedBy","==",t),Kk(1)),e.next=3,sx(n);case 3:if(r=e.sent,i=null,r.forEach((function(e){i=e.id})),null!==i){e.next=8;break}throw new Error("No document found");case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),DT=function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LT(t);case 2:n=e.sent,lx(Vw(nS,"contact",n)).then(alert("Deleted successfully!")).catch((function(e){alert("Error in deleting document: ",e)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),MT=function(e){var t=e.contact,n=e.setModelContact;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{onClick:function(){return n(t)},className:"flex flex-col gap-0 p-4 cursor-pointer hover:bg-gray-200 duration-150","data-hs-overlay":"#hs-scroll-inside-viewport-modal",children:[(0,cc.jsx)("p",{className:"text-lg font-medium",children:t.name}),(0,cc.jsx)("p",{children:t.addedBy})]})})},FT=function(e){var t=e.contact,n=[{name:"Name",value:t.name},{name:"Phone No.",value:t.contact},{name:"Email",value:t.email},{name:"Message from",value:t.addedBy},{name:"Subject",value:t.subject},{name:"Message",value:t.message},{name:"Requested at",value:"".concat(t.subject&&RT(null===t||void 0===t?void 0:t.timestamp)," (").concat(t.subject&&PT(null===t||void 0===t?void 0:t.timestamp.seconds),")")}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"flex flex-col gap-2",children:n.map((function(e,t){return(0,cc.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,cc.jsxs)("p",{className:"font-medium",children:[e.name," : "]}),(0,cc.jsx)("p",{children:e.value})]},t)}))})})},VT=function(){var t=ne((0,e.useState)([]),2),n=t[0],r=t[1],i=ne((0,e.useState)([]),2),a=i[0],o=i[1],s=ne((0,e.useState)(!0),2),u=s[0],c=s[1];(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,gS("contact");case 3:t=e.sent,r(t),setTimeout((function(){c(!1)}),500);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);return u?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(xS,{deleteFunction:function(){window.confirm("Are you sure you want to delete this response?")&&DT(a.addedBy)},title:null===a||void 0===a?void 0:a.subject,children:(0,cc.jsx)(FT,{contact:a})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col gap-4",children:[(0,cc.jsx)("h1",{className:"text-2xl font-bold",children:"Contact Responses"}),0===n.length?(0,cc.jsx)("p",{className:"text-lg font-medium py-4",children:"No Responses"}):(0,cc.jsx)("div",{className:"flex flex-col gap-2 rounded-md overflow-hidden bg-gray-100",children:n.map((function(e,t){return(0,cc.jsx)(MT,{setModelContact:o,modelContact:a,contact:e},t)}))})]})]})},UT=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uk(Fw(nS,"shops"),Bk("shopId","==",t),Kk(1)),e.next=3,sx(n);case 3:if(r=e.sent,i=null,r.forEach((function(e){i=e.id})),null!==i){e.next=8;break}throw new Error("No document found");case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),zT=function(){var e=me(pe().mark((function e(t,n){var r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT(t);case 2:r=e.sent,cx(Vw(nS,"shops",r),{isPublic:!0,verifiedBy:n,verifiedAt:px()}).then(alert("Shop verified successfully!")).catch((function(e){alert("Error in verifying: ",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),BT=function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UT(t);case 2:n=e.sent,lx(Vw(nS,"shops",n)).then(alert("Deleted successfully!")).catch((function(e){alert("Error in deleting document: ",e)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),qT=function(e){var t=e.shop,n=e.setModelShop;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{onClick:function(){return n(t)},"data-hs-overlay":"#hs-scroll-inside-viewport-modal",className:"flex flex-row justify-between bg-gray-50 odd:bg-gray-100 w-full",children:[(0,cc.jsxs)("div",{className:"flex flex-col justify-center hover:bg-gray-200 cursor-pointer duration-150 px-4 w-full",children:[(0,cc.jsx)("p",{className:"text-base font-medium",children:t.shopName}),(0,cc.jsx)("p",{className:"text-sm",children:t.shopAddress})]}),(0,cc.jsx)("div",{children:(0,cc.jsx)(ac,{to:"/restaurant/".concat(t.shopId),className:"hover:bg-gray-200 cursor-pointer duration-150 flex justify-center p-5 items-center",children:(0,cc.jsx)(hS,{size:20})})})]})})},HT=function(e){var t=e.shop,n=[{name:"Added by",value:t.shopName&&t.addedBy},{name:"Added at",value:"".concat(t.shopName&&RT(null===t||void 0===t?void 0:t.t
2imestamp)," (").concat(t.shopName&&PT(null===t||void 0===t?void 0:t.timestamp.seconds),")")}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"flex flex-col gap-2",children:n.map((function(e,t){return(0,cc.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,cc.jsxs)("p",{className:"font-medium",children:[e.name," : "]}),(0,cc.jsx)("p",{children:e.value})]},t)}))})})},WT=function(){var t=ne(ko(tS),3),n=t[0],r=(t[1],t[2],ne((0,e.useState)([]),2)),i=r[0],a=r[1],o=ne((0,e.useState)([]),2),s=o[0],u=o[1],c=ne((0,e.useState)(!0),2),l=c[0],f=c[1];return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(!0),e.next=3,kS("shops");case 3:t=e.sent,n=t.filter((function(e){return!e.isPublic})),a(n),setTimeout((function(){f(!1)}),500);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),l?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(xS,{deleteFunction:function(){window.confirm("Are you sure you want to delete this restaurant?")&&BT(s.shopId)},verifyShopFunction:function(){window.confirm("Are you sure you want to verify this restaurant?")&&zT(s.shopId,n.email)},title:null===s||void 0===s?void 0:s.shopName,children:(0,cc.jsx)(HT,{shop:s})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col gap-4",children:[(0,cc.jsx)("h1",{className:"text-2xl font-bold",children:"Non verified Re
2staurants"}),0===i.length?(0,cc.jsx)("p",{className:"text-lg font-medium py-4",children:"No private restaurants."}):(0,cc.jsx)("div",{className:"flex flex-col rounded-md overflow-hidden",children:i.map((function(e){return(0,cc.jsx)(qT,{setModelShop:u,modelShop:s,shop:e},e.shopId)}))})]})]})},GT=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uk(Fw(nS,"requestedShops"),Bk("addedBy","==",t),Kk(1)),e.next=3,sx(n);case 3:if(r=e.sent,i=null,r.forEach((function(e){i=e.id})),null!==i){e.next=8;break}throw new Error("No document found");case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),KT=function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,GT(t);case 2:n=e.sent,lx(Vw(nS,"requestedShops",n)).then(alert("Deleted successfully!")).catch((function(e){alert("Error in deleting document: ",e)}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),QT=function(e){var t=e.shop,n=e.setModelShop;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{onClick:function(){return n(t)},className:"flex flex-col gap-0 p-4 cursor-pointer hover:bg-gray-200 duration-150","data-hs-overlay":"#hs-scroll-inside-viewport-modal",children:[(0,cc.jsx)("p",{className:"text-lg font-medium",children:t.shopName}),(0,cc.jsx)("p",{children:t.addedBy})]})})},$T=function(e){var t=e.shop,n=[{name:"Restaurant Address",value:t.shopAddress},{name:"Restaurant Phone No.",value:t.shopPhone},{name:"Restaurant Email",value:t.shopEmail},{name:"Requested by",value:t.addedBy},{name:"Requested at",value:"".concat(t.shopName&&RT(null===t||void 0===t?void 0:t.timestamp)," (").concat(t.shopName&&PT(null===t||void 0===t?void 0:t.timestamp.seconds),")")}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"flex flex-col gap-2",children:n.map((function(e,t){return(0,cc.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,cc.jsxs)("p",{className:"font-medium",children:[e.name," : "]}),(0,cc.jsx)("p",{children:e.value})]},t)}))})})},YT=function(){var t=ne((0,e.useState)([]),2),n=t[0],r=t[1],i=ne((0,e.useState)([]),2),a=i[0],o=i[1],s=ne((0,e.useState)(!0),2),u=s[0],c=s[1];(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,gS("requestedShops");case 3:t=e.sent,r(t),setTimeout((function(){c(!1)}),500);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);return u?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(xS,{deleteFunction:function(){window.confirm("Are you sure you want to delete this response?")&&KT(a.addedBy)},title:null===a||void 0===a?void 0:a.shopName,children:(0,cc.jsx)($T,{shop:a})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col gap-4",children:[(0,cc.jsx)("h1",{className:"text-2xl font-bold",children:"Requested Restaurants"}),0===n.length?(0,cc.jsx)("p",{className:"text-lg font-medium py-4",children:"No requested restaurants."}):(0,cc.jsx)("div",{className:"flex flex-col gap-2 rounded-md overflow-hidden bg-gray-100",children:n.map((function(e,t){return(0,cc.jsx)(QT,{setModelShop:o,modelShop:a,shop:e},t)}))})]})]})};function XT(e){return mc({tag:"svg",attr:{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},child:[{tag:"path",attr:{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"}}]})(e)}function JT(e){return mc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 0 0 188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.
21 512 485.7 851.1A7.98 7.98 0 0 0 492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]})(e)}function ZT(e){return mc({tag:"svg",attr:{t:"1569683618210",viewBox:"0 0 1024 1024",version:"1.1"},child:[{tag:"defs",attr:{},child:[]},{tag:"path",attr:{d:"M945 412H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h256c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM811 548H689c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h122c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM477.3 322.5H434c-6.2 0-11.2 5-11.2 11.2v248c0 3.6 1.7 6.9 4.6 9l148.9 108.6c5 3.6 12 2.6 15.6-2.4l25.7-35.1v-0.1c3.6-5 2.5-12-2.5-15.6l-126.7-91.6V333.7c0.1-6.2-5-11.2-11.1-11.2z"}},{tag:"path",attr:{d:"M804.8 673.9H747c-5.6 0-10.9 2.9-13.9 7.7-12.7 20.1-27.5 38.7-44.5 55.7-29.3 29.3-63.4 52.3-101.3 68.3-39.3 16.6-81 25-124 25-43.1 0-84.8-8.4-124-25-37.9-16-72-39-101.3-68.3s-52.3-63.4-68.3-101.3c-16.6-39.2-25-80.9-25-124 0-43.1 8.4-84.7 25-124 16-37.9 39-72 68.3-101.3 29.3-29.3 63.4-52.3 101.3-68.3 39.2-16.6 81-25 124-25 43.1 0 84.8 8.4 124 25 37.9 16 72 39 101.3 68.3 17 17 31.8 35.6 44.5 55.7 3 4.8 8.3 7.7 13.9 7.7h57.8c6.9 0 11.3-7.2 8.2-13.3-65.2-129.7-197.4-214-345-215.7-216.1-2.7-395.6 174.2-396 390.1C71.6 727.5 246.9 903 463.2 903c149.5 0 283.9-84.6 349.8-215.8 3.1-6.1-1.4-13.3-8.2-13.3z"}}]})(e)}function eO(e){return mc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M882 272.1V144c0-17.7-14.3-32-32-32H174c-17.7 0-32 14.3-32 32v128.1c-16.7 1-30 14.9-30 31.9v131.7a177 177 0 0 0 14.4 70.4c4.3 10.2 9.6 19.8 15.6 28.9v345c0 17.6 14.3 32 32 32h676c17.7 0 32-14.3 32-32V535a175 175 0 0 0 15.6-28.9c9.5-22.3 14.4-46 14.4-70.4V304c0-17-13.3-30.9-30-31.9zM214 184h596v88H214v-88zm362 656.1H448V736h128v104.1zm234 0H640V704c0-17.7-14.3-32-32-32H416c-17.7 0-32 14.3-32 32v136.1H214V597.9c2.9 1.4 5.9 2.8 9 4 22.3 9.4 46 14.1 70.4 14.1s48-4.7 70.4-14.1c13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 13.8-5.8 26.8-13.2 38.7-22.1.2-.1.4-.1.6 0a180.4 180.4 0 0 0 38.7 22.1c22.3 9.4 46 14.1 70.4 14.1 24.4 0 48-4.7 70.4-14.1 3-1.3 6-2.6 9-4v242.2zm30-404.4c0 59.8-49 108.3-109.3 108.3-40.8 0-76.4-22.1-95.2-54.9-2.9-5-8.1-8.1-13.9-8.1h-.6c-5.7 0-11 3.1-13.9 8.1A109.24 109.24 0 0 1 512 544c-40.7 0-76.2-22-95-54.7-3-5.1-8.4-8.3-14.3-8.3s-11.4 3.2-14.3 8.3a109.63 109.63 0 0 1-95.1 54.7C233 544 184 495.5 184 435.7v-91.2c0-.3.2-.5.5-.5h655c.3 0 .5.2.5.5v91.2z"}}]})(e)}function tO(e){return mc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M824.2 699.9a301.55 301.55 0 0 0-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 0 0-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 0 0 8 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 0 1 612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 0 0 8-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 0 1-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 0 1 612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 0 1-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 0 0 8 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]})(e)}function nO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M3 10h11v2H3zM3 6h11v2H3zM3 14h7v2H3zM20.59 11.93l-4.25 4.24-2.12-2.12-1.41 1.41L16.34 19 22 13.34z"}}]})(e)}function rO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M20.13 5.41L18.72 4l-9.19 9.19-4.25-4.24-1.41 1.41 5.66 5.66zM5 18h14v2H5z"}}]})(e)}function iO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M23 11.99L20.56 9.2l.34-3.69-3.61-.82L15.4 1.5 12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 11.99l2.44 2.79-.34 3.7 3.61.82 
21.89 3.2 3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69 2.44-2.8zm-3.95 1.48l-.56.65.08.85.18 1.95-1.9.43-.84.19-.44.74-.99 1.68-1.78-.77-.8-.34-.79.34-1.78.77-.99-1.67-.44-.74-.84-.19-1.9-.43.18-1.96.08-.85-.56-.65L3.67 12l1.29-1.48.56-.65-.09-.86-.18-1.94 1.9-.43.84-.19.44-.74.99-1.68 1.78.77.8.34.79-.34 1.78-.77.99 1.68.44.74.84.19 1.9.43-.18 1.95-.08.85.56.65 1.29 1.47-1.28 1.48z"}},{tag:"path",attr:{d:"M10.09 13.75l-2.32-2.33-1.48 1.49 3.8 3.81 7.34-7.36-1.48-1.49z"}}]})(e)}function aO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M6.54 5c.06.89.21 1.76.45 2.59l-1.2 1.2c-.41-1.2-.67-2.47-.76-3.79h1.51m9.86 12.02c.85.24 1.72.39 2.6.45v1.49c-1.32-.09-2.59-.35-3.8-.75l1.2-1.19M7.5 3H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.49c0-.55-.45-1-1-1-1.24 0-2.45-.2-3.57-.57a.84.84 0 00-.31-.05c-.26 0-.51.1-.71.29l-2.2 2.2a15.149 15.149 0 01-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 018.5 4c0-.55-.45-1-1-1z"}}]})(e)}function oO(e){return mc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M53.12 199.94l400-151.39a8 8 0 0110.33 10.33l-151.39 400a8 8 0 01-15-.34l-67.4-166.09a16 16 0 00-10.11-10.11L53.46 215a8 8 0 01-.34-15.06zM460 52L227 285"}}]})(e)}function sO(e){return mc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{fill:"none",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M336 192h40a40 40 0 0140 40v192a40 40 0 01-40 40H136a40 40 0 01-40-40V232a40 40 0 0140-40h40m160-64l-80-80-80 80m80 193V48"}}]})(e)}function uO(e){return mc({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2 4a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v11.5a.5.5 0 0 1-.777.416L7 13.101l-4.223 2.815A.5.5 0 0 1 2 15.5V4zm2-1a1 1 0 0 0-1 1v10.566l3.723-2.482a.5.5 0 0 1 .554 0L11 14.566V4a1 1 0 0 0-1-1H4z"}},{tag:"path",attr:{d:"M4.268 1H12a1 1 0 0 1 1 1v11.768l.223.148A.5.5 0 0 0 14 13.5V2a2 2 0 0 0-2-2H6a2 2 0 0 0-1.732 1z"}}]})(e)}function cO(e){return mc({tag:"svg",attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M2.97 1.35A1 1 0 0 1 3.73 1h8.54a1 1 0 0 1 .76.35l2.609 3.044A1.5 1.5 0 0 1 16 5.37v.255a2.375 2.375 0 0 1-4.25 1.458A2.371 2.371 0 0 1 9.875 8 2.37 2.37 0 0 1 8 7.083 2.37 2.37 0 0 1 6.125 8a2.37 2.37 0 0 1-1.875-.917A2.375 2.375 0 0 1 0 5.625V5.37a1.5 1.5 0 0 1 .361-.976l2.61-3.045zm1.78 4.275a1.375 1.375 0 0 0 2.75 0 .5.5 0 0 1 1 0 1.375 1.375 0 0 0 2.75 0 .5.5 0 0 1 1 0 1.375 1.375 0 1 0 2.75 0V5.37a.5.5 0 0 0-.12-.325L12.27 2H3.73L1.12 5.045A.5.5 0 0 0 1 5.37v.255a1.375 1.375 0 0 0 2.75 0 .5.5 0 0 1 1 0zM1.5 8.5A.5.5 0 0 1 2 9v6h1v-5a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v5h6V9a.5.5 0 0 1 1 0v6h.5a.5.5 0 0 1 0 1H.5a.5.5 0 0 1 0-1H1V9a.5.5 0 0 1 .5-.5zM4 15h3v-5H4v5zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-3zm3 0h-2v3h2v-3z"}}]})(e)}function lO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M17.5,6.5 L23,9 L23,22 L16,19 L8,22 L1,19 L1,6 L6,8 M16,19 L16,12 M8,22 L8,12 M12,16.2727273 C12,16.2727273 6,11.5 6,7 C6,3.25 9,1 12,1 C15,1 18,3.25 18,7 C18,11.5 12,16.2727273 12,16.2727273 Z M13,7 C13,6.44766667 12.5523333,6 12,6 C11.4476667,6 11,6.44766667 11,7 C11,7.55233333 11.4476667,8 12,8 C12.5523333,8 13,7.55233333 13,7 Z"}}]})(e)}function fO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",stroke:"#000",strokeWidth:"2",d:"M8,11 C10.7614237,11 13,8.76142375 13,6 C13,3.23857625 10.7614237,1 8,1 C5.23857625,1 3,3.23857625 3,6 C3,8.76142375 5.23857625,11 8,11 Z M13.0233822,13.0234994 C11.7718684,11.7594056 10.0125018,11 8,11 C4,11 1,14 1,18 L1,23 L8,23 M10,19.5 C10,20.88 11.12,22 12.5,22 C13.881,22 15,20.88 15,19.5 C15,18.119 13.881,17 12.5,17 C11.12,17 10,18.119 10,19.5 L10,19.5 Z M23,15 L20,12 L14,18 M17.5,14.5 L20.5,17.5 L17.5,14.5 Z"}}]})(e)}var dO,hO=[{email:"[email protected]"},{email:"[email protected]"}],pO=function(e){return hO.some((function(t){return t.email===e}))};function vO(){var e=Lu().pathname,t=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!dO){e.next=7;break}return dO.prompt(),e.next=4,dO.userChoice;case 4:t=e.sent,"accepted"===t.outcome&&(dO=null);case 7:xo.ZP.event({category:"download",action:"App download",label:"App Download"});case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=[{name:"Home",icon:(0,cc.jsx)(XT,{size:20}),link:"/"},{name:"About",icon:(0,cc.jsx)(tO,{size:20}),link:"/about"},{name:"Contact",icon:(0,cc.jsx)(aO,{size:20}),link:"/contact"},{name:"Promote restaurant",icon:(0,cc.jsx)(iO,{size:20}),link:"/promote/restaurant"},{name:"Request to add",icon:(0,cc.jsx)(oO,{size:20}),link:"/request/restaurant"},{name:"Add Restaurant",icon:(0,cc.jsx)(cO,{size:20}),link:"/register/restaurant"}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("nav",{className:"animate__animated animate__fadeIn h-full w-full px-5 py-8 sm:px-5 sm:py-10 lg:pl-0 lg:pt-3",children:(0,cc.jsxs)("ul",{className:"flex flex-col gap-y-1.5 md:gap-y-3 text-base font-normal md:sticky md:top-24",children:[n.map((function(t,n){return(0,cc.jsx)(ac,{to:t.link,onClick:function(){return document.getElementsByClassName("navbar")[0].classList.remove("!top-16")},children:(0,cc.jsxs)("li",{className:"text-lg py-3 px-2 flex items-center rounded-md gap-x-2 hover:bg-gray-200 duration-200 ".concat(e===t.link?"bg-gray-200 font-medium":"font-normal"),children:[t.icon,(0,cc.jsx)("span",{children:t.name})]})},n)})),(0,cc.jsxs)("li",{onClick:t,className:"cursor-pointer text-lg py-3 px-2 flex items-center rounded-md gap-x-2 hover:bg-gray-200 duration-200 font-normal",children:[(0,cc.jsx)(gc,{}),(0,cc.jsx)("span",{children:"Install App"})]}),(0,cc.jsx)(mO,{}),(0,cc.jsx)("div",{className:"lg:hidden block w-full",children:(0,cc.jsx)(lS,{})}),(0,cc.jsx)(yO,{})]})})})}window.addEventListener("beforeinstallprompt",(function(e){dO=e}));var mO=function(){var e=Lu().pathname,t=ne(ko(tS),3),n=t[0];t[1],t[2];return(0,cc.jsx)(cc.Fragment,{children:n&&pO(n.email)&&(0,cc.jsx)(ac,{to:"/admin/requested-restaurants",onClick:function(){return document.getElementsByClassName("navbar")[0].classList.remove("!top-16")},children:(0,cc.jsxs)("li",{className:"text-lg  py-3 px-2 flex items-center rounded-md gap-x-2 hover:bg-gray-200 duration-200 ".concat(e.includes("/admin")?"bg-gray-200 font-medium":"font-normal"),children:[(0,cc.jsx)(fO,{size:20}),(0,cc.jsx)("span",{children:"Admin"})]})})})},yO=function(){return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("div",{className:"lg:block hidden",children:(0,cc.jsx)("a",{href:"https://www.producthunt.com/posts/foodie-vvn?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-foodie-vvn",target:"_blank",children:(0,cc.jsx)("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=373651&theme=light",alt:"Foodie VVN - Find Best Restaurants & Lodges in Vidhyanagar | Product Hunt",style:{width:220,height:45},width:220,height:45})})}),(0,cc.jsx)("div",{className:"lg:hidden block",children:(0,cc.jsx)("a",{href:"https://www.producthunt.com/posts/foodie-vvn?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-foodie-vvn",target:"_blank",children:(0,cc.jsx)("img",{src:"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=373651&theme=light",alt:"Foodie VVN - Find Best Restaurants & Lodges in Vidhyanagar | Product Hunt",style:{width:170,height:40},width:170,height:40})})})]})},gO=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"navbar w-full lg:w-[15rem] lg:flex lg:sticky lg:top-20 fixed -top-[40rem] bg-gray-50 shadow-2xl lg:shadow-none duration-150 z-20",children:(0,cc.jsx)(vO,{})})})},bO=(0,e.createContext)();function wO(e){return mc({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zm323-128.4l-27.8-28.1c-4.6-4.7-12.1-4.7-16.8-.1l-104.8 104-45.5-45.8c-4.6-4.7-12.1-4.7-16.8-.1l-28.1 27.9c-4.7 4.6-4.7 12.1-.1 16.8l81.7 82.3c4.6 4.7 12.1 4.7 16.8.1l141.3-14
20.2c4.6-4.7 4.7-12.2.1-16.8z"}}]})(e)}function kO(e){return mc({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M515.664-.368C305.76-.368 128 178.4 128 390.176c0 221.76 206.032 448.544 344.624 607.936.528.64 22.929 25.52 50.528 25.52h2.449c27.6 0 49.84-24.88 50.399-25.52 130.064-149.52 320-396.048 320-607.936C896 178.4 757.344-.368 515.664-.368zm12.832 955.552c-1.12 1.12-2.753 2.369-4.193 3.409-1.472-1.008-3.072-2.288-4.255-3.408l-16.737-19.248C371.92 785.2 192 578.785 192 390.176c0-177.008 148.224-326.56 323.664-326.56 218.528 0 316.336 164 316.336 326.56 0 143.184-102.128 333.296-303.504 565.008zm-15.377-761.776c-106.032 0-192 85.968-192 192s85.968 192 192 192 192-85.968 192-192-85.968-192-192-192zm0 320c-70.576 0-129.473-58.816-129.473-129.408 0-70.576 57.424-128 128-128 70.624 0 128 57.424 128 128 .032 70.592-55.903 129.408-126.527 129.408z"}}]})(e)}var xO=function(e,t){var n=new Date,r=new Date(n.getTime());r.setHours(e.split(":")[0]),r.setMinutes(e.split(":")[1]);var i=new Date(n.getTime());return i.setHours(t.split(":")[0]),i.setMinutes(t.split(":")[1]),r<n&&i>n},_O=function(e){var t=e.data,n=t.shopName,r=t.closingTime,i=t.openingTime,a=t.shopType,o=t.ownerName,s=t.shopArea,u=t.shopId;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{to:"/restaurant/".concat(u),className:"py-2 px-3 flex flex-col gap-y-1 duration-150 bg-gray-50 odd:bg-gray-100 hover:bg-gray-200",children:[(0,cc.jsx)("h4",{className:"font-medium",children:n}),(0,cc.jsxs)("div",{className:"flex flex-row flex-wrap gap-x-3",children:[(0,cc.jsxs)("p",{className:"text-sm text-gray-500 flex flex-row justify-start items-center gap-x-1",children:[(0,cc.jsx)(eO,{})," ",a.label]}),"tiffin-service"===a.value?(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("p",{className:"text-sm text-gray-500 flex flex-row justify-start items-center gap-x-1",children:[(0,cc.jsx)(wO,{})," ",o]})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("p",{className:"text-sm text-gray-500 flex flex-row justify-start items-center gap-x-1",children:[(0,cc.jsx)(kO,{})," ",s.label]}),(0,cc.jsxs)("p",{className:"text-sm text-gray-500 flex flex-row justify-start items-center gap-x-1",children:[(0,cc.jsx)(ZT,{}),xO(i,r)?"Open now":"Closed"]})]})]})]})})},SO=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r=Fw(nS,"shops"),i=Uk(r,Bk("shopId","==",t)),e.next=5,sx(i);case 5:if(e.sent.forEach((function(e){n.push(e.data())})),0!==n.length){e.next=9;break}return e.abrupt("return",null);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),EO=function(){var t=ne(ko(tS),3),n=t[0],r=t[1],i=(t[2],(0,e.useContext)(bO)),a=i.savedShops,o=(i.setSavedShops,ne((0,e.useState)([]),2)),s=o[0],u=o[1];return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(a.map(function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,SO(t);case 2:if(!(n=e.sent)){e.next=5;break}return e.abrupt("return",n[0]);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 2:t=e.sent,n=t.filter((function(e){return void 0!==e})),u(n);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n?e():u([])}),[a,n]),r?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"flex flex-col rounded-md overflow-hidden bg-gray-100",children:0===s.length?(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3 py-5 px-3",children:[(0,cc.jsx)("h1",{className:"text-xl font-semibold text-gray-500 text-left",children:n?"No saved restaurants.":"Please login to see your saved restaurants."}),(0,cc.jsx)("p",{className:"text-gray-500 text-left",children:"You can save your favorite restaurant here."})]}):s.map((function(e,t){return(0,cc.jsx)(_O,{data:e},t)}))})})};function TO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"rect",attr:{x:"3",y:"4",width:"18",height:"12",rx:"1"}},{tag:"line",attr:{x1:"7",y1:"20",x2:"17",y2:"20"}},{tag:"line",attr:{x1:"9",y1:"16",x2:"9",y2:"20"}},{tag:"line",attr:{x1:"15",y1:"16",x2:"15",y2:"20"}},{tag:"path",attr:{d:"M8 12l3 -3l2 2l3 -3"}}]})(e)}function OO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"path",attr:{d:"M21 3l-6.5 18a0.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a0.55 .55 0 0 1 0 -1l18 -6.5"}}]})(e)}function jO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"desc",attr:{},child:[]},{tag:"path",attr:{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"}},{tag:"path",attr:{d:"M21 3l-6.5 18a0.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a0.55 .55 0 0 1 0 -1l18 -6.5"}}]})(e)}function CO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 9h8v2H8z"}},{tag:"path",attr:{d:"M20 22V4c0-1.103-.897-2-2-2H6c-1.103 0-2 .897-2 2v18l8-4.572L20 22zM6 10V4h12v14.553l-6-3.428-6 3.428V10z"}}]})(e)}function IO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13 14v-3h3V9h-3V6h-2v3H8v2h3v3z"}},{tag:"path",attr:{d:"M20 22V4c0-1.103-.897-2-2-2H6c-1.103 0-2 .897-2 2v18l8-4.572L20 22zM6 10V4h12v14.553l-6-3.428-6 3.428V10z"}}]})(e)}function NO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10 3H4a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM9 9H5V5h4v4zm11 4h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1zm-1 6h-4v-4h4v4zM17 3
2c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2zM7 13c-2.206 0-4 1.794-4 4s1.794 4 4 4 4-1.794 4-4-1.794-4-4-4zm0 6c-1.103 0-2-.897-2-2s.897-2 2-2 2 .897 2 2-.897 2-2 2z"}}]})(e)}function AO(e){return mc({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M3 2h2v20H3zm7 4h7v2h-7zm0 4h7v2h-7z"}},{tag:"path",attr:{d:"M19 2H6v20h13c1.103 0 2-.897 2-2V4c0-1.103-.897-2-2-2zm0 18H8V4h11v16z"}}]})(e)}var PO=[{value:"restaurant",label:"Restaurant"},{value:"cafe",label:"Cafe"},{value:"lounge",label:"Lounge"},{value:"tiffin-service",label:"Tiffin service"}],RO=[{value:"gujarati",label:"Gujarati"},{value:"punjabi",label:"Punjabi"},{value:"chinese",label:"Chinese"},{value:"south-indian",label:"South Indian"},{value:"fast-food",label:"Fast Food"},{value:"other",label:"Other"}],LO=[{value:"nana-bazaar",label:"Nana Bazaar"},{value:"mota-bazaar",label:"Mota Bazaar"},{value:"av-road",label:"A.V. Road"},{value:"iskon-road",label:"Iskon Road"},{value:"shaheed-chowk",label:"Shaheed Chowk"},{value:"bhaikaka",label:"Bhaikaka"}],DO=[{value:!0,label:"Available"},{value:!1,label:"Unavailable"}],MO=function(e){var t=e.label,n=e.value,r=e.disable,i=e.large;return(0,cc.jsx)(cc.Fragment,{children:r?(0,cc.jsx)("div",{className:"rounded-md w-fit ".concat(i?"py-2 px-3 bg-gray-100":"py-1 px-2 bg-gray-50"),children:t}):(0,cc.jsx)(ac,{to:"/food/".concat(n),className:"py-2 px-3 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 duration-150 rounded-md",children:t})})},FO=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"flex flex-row flex-wrap justify-start items-start gap-2",children:RO.map((function(e,t){if("Other"!==e.label)return(0,cc.jsx)(MO,{label:e.label,value:e.value,disable:"Other"===e.label,large:"Other"===e.label},t)}))})})},VO=function(){var t=ne((0,e.useState)(0),2),n=t[0],r=t[1],i=ne((0,e.useState)(0),2),a=i[0],o=i[1];return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gS("users");case 2:t=e.sent,r(t.length);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,gS("shops");case 2:t=e.sent,o(t.length);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e(),t()}),[]),(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col gap-2 bg-gray-100 py-4 px-5 rounded-md overflow-hidden text-base font-medium",children:[(0,cc.jsxs)("p",{children:["Users : ",n]}),(0,cc.jsxs)("p",{children:["Restaurants : ",a]})]})})},UO=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r=Fw(nS,"shops"),i=Uk(r,Bk("addedBy","==",t)),e.next=5,sx(i);case 5:return e.sent.forEach((function(e){n.push(e.data())})),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();function zO(){var t=ne(ko(tS),3),n=t[0],r=(t[1],t[2],ne((0,e.useState)(0),2)),i=r[0],a=r[1];return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UO(n.email);case 2:t=e.sent,a(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();n?e():a(0)}),[n]),0!==i&&0!==i.length&&n?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[(0,cc.jsx)(cO,{}),"Your Restaurants"]}),(0,cc.jsx)("div",{className:"bg-[#fdfdfd] rounded-md overflow-hidden flex flex-col text-base mb-8 md:mb-7",children:(0,cc.jsx)("div",{className:"flex flex-col rounded-md",children:i.map((function(e){return(0,cc.jsxs)("div",{className:"flex flex-row justify-around gap-0 bg-gray-100 odd:bg-gray-200",children:[(0,cc.jsx)(ac,{className:"hover:bg-gray-300 duration-150 p-2 text-center w-full mx-auto",to:"/restaurant/".concat(e.shopId),children:e.shopName}),(0,cc.jsx)(ac,{className:"hover:bg-gray-300 duration-150 p-2 text-center w-full mx-auto",to:"/restaurant/update-menu/".concat(e.shopId),children:"Update Menu"})]},e.shopId)}))})})]}):null}var BO=n(87),qO=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(BO.LazyLoadImage,dt(dt({draggable:"false"},e),{},{effect:"opacity"}))})},HO=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("a",{href:"https://www.gigaweb.in?utm_campaign=product&utm_medium=website&utm_source=foodievvn",target:"_blank",className:"relative flex flex-col gap-2 rounded-md overflow-hidden group",children:[(0,cc.jsx)("div",{className:"sm:h-72 md:h-48",children:(0,cc.jsx)(qO,{src:"/assets/gigaweb/meta-image.png",alt:"Gigaweb",className:"h-full w-full object-cover group-hover:scale-105 duration-300"})}),(0,cc.jsxs)("div",{className:"flex flex-row justify-between items-end text-white bg-gradient-to-t px-3 py-2 h-16 from-black to-transparent w-full absolute bottom-0",children:[(0,cc.jsx)("h5",{className:"font-medium text-white",children:"Gigaweb Agency"}),(0,cc.jsxs)("p",{className:"flex gap-1 text-gray-200 items-center",children:["Promoted",(0,cc.jsx)(hS,{})]})]})]})})},WO=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(HO,{})})};function GO(){var e=ne(ko(tS),3),t=e[0];e[1],e[2];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("aside",{className:"h-full py-5 sm:pr-0 sm:pl-5 pr-5 pl-5 flex flex-col",children:[(0,cc.jsx)(KO,{icon:(0,cc.jsx)(iO,{}),heading:"Promoted",children:(0,cc.jsx)(WO,{})}),(0,cc.jsx)(KO,{children:(0,cc.jsx)(zO,{})}),(0,cc.jsx)(KO,{icon:(0,cc.jsx)(uO,{}),heading:"Saved Restaurants",children:(0,cc.jsx)(EO,{})}),(0,cc.jsx)(KO,{icon:(0,cc.jsx)(NO,{}),heading:"Food category",children:(0,cc.jsx)(FO,{})}),t&&pO(t.email)?(0,cc.jsx)(KO,{icon:(0,cc.jsx)(TO,{}),heading:"Registered Data",children:(0,cc.jsx)(VO,{})}):null]})})}var KO=function(e){var t=e.children,n=e.heading,r=e.icon;return(0,cc.jsxs)("div",{className:"flex flex-col gap-y-2 ".concat(n&&r&&"mb-8 md:mb-7"),children:[n&&r&&(0,cc.jsxs)("h2",{className:"text-xl font-semibold flex items-center gap-2",children:[r,n]}),t]})};function QO(t){var n=t.children,r=Lu();return(0,e.useLayoutEffect)((function(){document.documentElement.scrollTo(0,0)}),[r.pathname]),n}var $O=function(){return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"About - Foodie VVN"})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding flex flex-col gap-y-5 text-lg text-gray-600",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold text-dark",children:"About Foodie VVN"}),(0,cc.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,cc.jsxs)("p",{children:["Are you a restaurant owner looking to attract more customers? Foodie VVN is here to help! Our web app makes it easy for foodies to discover the best restaurants in their area by searching by name or food tags.",(0,cc.jsx)("br",{}),"By registering with us, you'll have the opportunity to showcase your delicious dishes to an even wider audience and bring more foot traffic to your business.",(0,cc.jsx)("br",{}),"Don't miss out on this opportunity to reach new customers \u2013 join Foodie VVN today and start growing your restaurant's success!"]}),(0,cc.jsxs)("p",{children:["We are still in Beta Stage and constantly striving to improve our app, Foodie VVN, for the benefit of students and food lovers in Vidhyanagar.",(0,cc.jsx)("br",{}),"If you have any suggestions or feedback that could help us enhance the user experience, we would greatly appreciate hearing from you."]}),(0,cc.jsxs)("p",{children:["Please don't hesitate to get in touch with us at"," ",(0,cc.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold text-dark underline underline-offset-4",children:"[email protected]"})]}),(0,cc.jsx)("p",{children:"Your input is valuable to us as we work to create the best possible app for our users. Thank y
2ou for your support."})]}),(0,cc.jsx)("h1",{className:"text-3xl font-semibold text-dark",children:"About Gigaweb"}),(0,cc.jsxs)("div",{className:"flex flex-col gap-y-3",children:[(0,cc.jsxs)("p",{children:["This app is made by"," ",(0,cc.jsx)("a",{href:"https://www.gigaweb.in?utm_campaign=product&utm_medium=website&utm_source=foodievvn",target:"_blank",className:"font-semibold text-dark underline underline-offset-4",children:"Gigaweb"}),". We are a team of developers who are passionate about web development."]}),(0,cc.jsx)(qO,{className:"my-2 rounded-md",src:"/assets/gigaweb/gigaweb.png"}),(0,cc.jsxs)("p",{children:["Gigaweb is a web design agency which provides web design"," ",(0,cc.jsx)("a",{href:"https://www.gigaweb.in?utm_campaign=product&utm_medium=website&utm_source=foodievvn",target:"_blank",className:"font-semibold text-dark underline underline-offset-4",children:"services"})," ","to individuals and businesses."]}),(0,cc.jsxs)("p",{children:["We've completed projects for our clients. You can verify our work at"," ",(0,cc.jsx)("a",{href:"https://www.gigaweb.in/work?utm_campaign=product&utm_medium=website&utm_source=foodievvn/work?ref=foodievvn",target:"_blank",className:"font-semibold text-dark underline underline-offset-4",children:"gigaweb.in/work"})]}),(0,cc.jsx)(qO,{className:"my-2 rounded-md",src:"/assets/gigaweb/gigaweb-work.png"})]})]})]})};function YO(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var XO=["name"],JO=["_f"],ZO=["_f"],ej=function(e){return"checkbox"===e.type},tj=function(e){return e instanceof Date},nj=function(e){return null==e},rj=function(e){return"object"===typeof e},ij=function(e){return!nj(e)&&!Array.isArray(e)&&rj(e)&&!tj(e)},aj=function(e){return ij(e)&&e.target?ej(e.target)?e.target.checked:e.target.value:e},oj=function(e,t){return e.has(function(e){return e.substring(0,e.search(/\.\d+(\.|$)/))||e}(t))},sj=function(e){return Array.isArray(e)?e.filter(Boolean):[]},uj=function(e){return void 0===e},cj=function(e,t,n){if(!t||!ij(e))return n;var r=sj(t.split(/[,[\].]+?/)).reduce((function(e,t){return nj(e)?e:e[t]}),e);return uj(r)||r===e?uj(e[t])?n:e[t]:r},lj="blur",fj="focusout",dj="change",hj="onBlur",pj="onChange",vj="onSubmit",mj="onTouched",yj="all",gj="max",bj="min",wj="maxLength",kj="minLength",xj="pattern",_j="required",Sj="validate",Ej=e.createContext(null),Tj=function(){return e.useContext(Ej)},Oj=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i={defaultValues:t._defaultValues},a=function(a){Object.defineProperty(i,a,{get:function(){var i=a;return t._proxyFormState[i]!==yj&&(t._proxyFormState[i]=!r||yj),n&&(n[i]=!0),e[i]}})};for(var o in e)a(o);return i},jj=function(e){return ij(e)&&!Object.keys(e).length},Cj=function(e,t,n){e.name;var r=YO(e,XO);return jj(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find((function(e){return t[e]===(!n||yj)}))},Ij=function(e){return Array.isArray(e)?e:[e]},Nj=function(e,t,n){return n&&t?e===t:!e||!t||e===t||Ij(e).some((function(e){return e&&(e.startsWith(t)||t.startsWith(e))}))};function Aj(t){var n=e.useRef(t);n.current=t,e.useEffect((function(){var e=!t.disabled&&n.current.subject.subscribe({next:n.current.callback});return function(){e&&e.unsubscribe()}}),[t.disabled])}var Pj=function(e){return"string"===typeof e},Rj=function(e,t,n,r){return Pj(e)?(r&&t.watch.add(e),cj(n,e)):Array.isArray(e)?e.map((function(e){return r&&t.watch.add(e),cj(n,e)})):(r&&(t.watchAll=!0),n)},Lj="undefined"!==typeof window&&"undefined"!==typeof window.HTMLElement&&"undefined"!==typeof document;function Dj(e){var t,n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Lj&&(e instanceof Blob||e instanceof FileList)||!n&&!ij(e))return e;if(t=n?[]:{},Array.isArray(e)||function(e){var t=e.constructor&&e.constructor.prototype;return ij(t)&&t.hasOwnProperty("isPrototypeOf")}(e))for(var r in e)t[r]=Dj(e[r]);else t=e}return t}function Mj(t){var n=Tj(),r=t.name,i=t.control,a=void 0===i?n.control:i,o=t.shouldUnregister,s=oj(a._names.array,r),u=function(t){var n=Tj(),r=t||{},i=r.control,a=void 0===i?n.control:i,o=r.name,s=r.defaultValue,u=r.disabled,c=r.exact,l=e.useRef(o);l.current=o,Aj({disabled:u,subject:a._subjects.watch,callback:function(e){if(Nj(l.current,e.name,c)){var t=Rj(l.current,a._names,e.values||a._formValues);h(uj(t)?s:Dj(t))}}});var f=ne(e.useState(uj(s)?a._getWatch(o):s),2),d=f[0],h=f[1];return e.useEffect((function(){return a._removeUnmounted()})),d}({control:a,name:r,defaultValue:cj(a._formValues,r,cj(a._defaultValues,r,t.defaultValue)),exact:!0}),c=function(t){var n=Tj(),r=t||{},i=r.control,a=void 0===i?n.control:i,o=r.disabled,s=r.name,u=r.exact,c=ne(e.useState(a._formState),2),l=c[0],f=c[1],d=e.useRef(!0),h=e.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=e.useRef(s);return p.current=s,Aj({disabled:o,callback:e.useCallback((function(e){return d.current&&Nj(p.current,e.name,u)&&Cj(e,h.current)&&f(dt(dt({},a._formState),e))}),[a,u]),subject:a._subjects.state}),e.useEffect((function(){d.current=!0;var e=a._proxyFormState.isDirty&&a._getDirty();return e!==a._formState.isDirty&&a._subjects.state.next({isDirty:e}
2),a._updateValid(),function(){d.current=!1}}),[a]),Oj(l,a,h.current,!1)}({control:a,name:r}),l=e.useRef(a.register(r,dt(dt({},t.rules),{},{value:u})));return e.useEffect((function(){var e=function(e,t){var n=cj(a._fields,e);n&&(n._f.mount=t)};return e(r,!0),function(){var t=a._options.shouldUnregister||o;(s?t&&!a._stateFlags.action:t)?a.unregister(r):e(r,!1)}}),[r,a,s,o]),{field:{name:r,value:u,onChange:e.useCallback((function(e){return l.current.onChange({target:{value:aj(e),name:r},type:dj})}),[r]),onBlur:e.useCallback((function(){return l.current.onBlur({target:{value:cj(a._formValues,r),name:r},type:lj})}),[r,a]),ref:function(e){var t=cj(a._fields,r);t&&e&&(t._f.ref={focus:function(){return e.focus()},select:function(){return e.select()},setCustomValidity:function(t){return e.setCustomValidity(t)},reportValidity:function(){return e.reportValidity()}})}},formState:c,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:function(){return!!cj(c.errors,r)}},isDirty:{enumerable:!0,get:function(){return!!cj(c.dirtyFields,r)}},isTouched:{enumerable:!0,get:function(){return!!cj(c.touchedFields,r)}},error:{enumerable:!0,get:function(){return cj(c.errors,r)}}})}}var Fj=function(e){return e.render(Mj(e))},Vj=function(e,t,n,r,i){return t?dt(dt({},n[e]),{},{types:dt(dt({},n[e]&&n[e].types?n[e].types:{}),{},xe({},r,i||!0))}):{}},Uj=function(e){return/^\w*$/.test(e)},zj=function(e){return sj(e.replace(/["|']|\]/g,"").split(/\.|\[/))};function Bj(e,t,n){for(var r=-1,i=Uj(t)?[t]:zj(t),a=i.length,o=a-1;++r<a;){var s=i[r],u=n;if(r!==o){var c=e[s];u=ij(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[s]=u,e=e[s]}return e}var qj=function e(t,n,r){var i,a=he(r||Object.keys(t));try{for(a.s();!(i=a.n()).done;){var o=i.value,s=cj(t,o);if(s){var u=s._f,c=YO(s,JO);if(u&&n(u.name)){if(u.ref.focus){u.ref.focus();break}if(u.refs&&u.refs[0].focus){u.refs[0].focus();break}}else ij(c)&&e(c,n)}}}catch(l){a.e(l)}finally{a.f()}},Hj=function(e,t,n){return!n&&(t.watchAll||t.watch.has(e)||ke(t.watch).some((function(t){return e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))})))},Wj=function(e,t,n){var r=sj(cj(e,n));return Bj(r,"root",t[n]),Bj(e,n,r),e},Gj=function(e){return"boolean"===typeof e},Kj=function(e){return"file"===e.type},Qj=function(e){return"function"===typeof e},$j=function(t){return Pj(t)||e.isValidElement(t)},Yj=function(e){return"radio"===e.type},Xj=function(e){return e instanceof RegExp},Jj={value:!1,isValid:!1},Zj={value:!0,isValid:!0},eC=function(e){if(Array.isArray(e)){if(e.length>1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!uj(e[0].attributes.value)?uj(e[0].value)||""===e[0].value?Zj:{value:e[0].value,isValid:!0}:Zj:Jj}return Jj},tC={isValid:!1,value:null},nC=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),tC):tC};function rC(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"validate";if($j(e)||Array.isArray(e)&&e.every($j)||Gj(e)&&!e)return{type:n,message:$j(e)?e:"",ref:t}}var iC=function(e){return ij(e)&&!Xj(e)?e:{value:e,message:""}},aC=function(){var e=me(pe().mark((function e(t,n,r,i,a){var o,s,u,c,l,f,d,h,p,v,m,y,g,b,w,k,x,_,S,E,T,O,j,C,I,N,A,P,R,L,D,M,F,V,U,z,B,q,H,W,G,K,Q,$,Y,X,J;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t._f,s=o.ref,u=o.refs,c=o.required,l=o.maxLength,f=o.minLength,d=o.min,h=o.max,p=o.pattern,v=o.validate,m=o.name,y=o.valueAsNumber,g=o.mount,b=o.disabled,g&&!b){e.next=3;break}return e.abrupt("return",{});case 3:if(w=u?u[0]:s,k=function(e){i&&w.reportValidity&&(w.setCustomValidity(Gj(e)?"":e||""),w.reportValidity())},x={},_=Yj(s),S=ej(s),E=_||S,T=(y||Kj(s))&&!s.value||""===n||Array.isArray(n)&&!n.length,O=Vj.bind(null,m,r,x),j=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:wj,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:kj,a=e?t:n;x[m]=dt({type:e?r:i,message:a,ref:s},O(e?r:i,a))}
2,!(a?!Array.isArray(n)||!n.length:c&&(!E&&(T||nj(n))||Gj(n)&&!n||S&&!eC(u).isValid||_&&!nC(u).isValid))){e.next=19;break}if(C=$j(c)?{value:!!c,message:c}:iC(c),I=C.value,N=C.message,!I){e.next=19;break}if(x[m]=dt({type:_j,message:N,ref:w},O(_j,N)),r){e.next=19;break}return k(N),e.abrupt("return",x);case 19:if(T||nj(d)&&nj(h)){e.next=28;break}if(R=iC(h),L=iC(d),nj(n)||isNaN(n)?(M=s.valueAsDate||new Date(n),F=function(e){return new Date((new Date).toDateString()+" "+e)},V="time"==s.type,U="week"==s.type,Pj(R.value)&&n&&(A=V?F(n)>F(R.value):U?n>R.value:M>new Date(R.value)),Pj(L.value)&&n&&(P=V?F(n)<F(L.value):U?n<L.value:M<new Date(L.value))):(D=s.valueAsNumber||(n?+n:n),nj(R.value)||(A=D>R.value),nj(L.value)||(P=D<L.value)),!A&&!P){e.next=28;break}if(j(!!A,R.message,L.message,gj,bj),r){e.next=28;break}return k(x[m].message),e.abrupt("return",x);case 28:if(!l&&!f||T||!(Pj(n)||a&&Array.isArray(n))){e.next=38;break}if(z=iC(l),B=iC(f),q=!nj(z.value)&&n.length>z.value,H=!nj(B.value)&&n.length<B.value,!q&&!H){e.next=38;break}if(j(q,z.message,B.message),r){e.next=38;break}return k(x[m].message),e.abrupt("return",x);case 38:if(!p||T||!Pj(n)){e.next=45;break}if(W=iC(p),G=W.value,K=W.message,!Xj(G)||n.match(G)){e.next=45;break}if(x[m]=dt({type:xj,message:K,ref:s},O(xj,K)),r){e.next=45;break}return k(K),e.abrupt("return",x);case 45:if(!v){e.next=79;break}if(!Qj(v)){e.next=58;break}return e.next=49,v(n);case 49:if(Q=e.sent,!($=rC(Q,w))){e.next=56;break}if(x[m]=dt(dt({},$),O(Sj,$.message)),r){e.next=56;break}return k($.message),e.abrupt("return",x);case 56:e.next=79;break;case 58:if(!ij(v)){e.next=79;break}Y={},e.t0=pe().keys(v);case 61:if((e.t1=e.t0()).done){e.next=75;break}if(X=e.t1.value,jj(Y)||r){e.next=65;break}return e.abrupt("break",75);case 65:return e.t2=rC,e.next=68,v[X](n);case 68:e.t3=e.sent,e.t4=w,e.t5=X,(J=(0,e.t2)(e.t3,e.t4,e.t5))&&(Y=dt(dt({},J),O(X,J.message)),k(J.message),r&&(x[m]=Y)),e.next=61;break;case 75:if(jj(Y)){e.next=79;break}if(x[m]=dt({ref:w},Y),r){e.next=79;break}return e.abrupt("return",x);case 79:return k(!0),e.abrupt("return",x);case 81:case"end":return e.stop()}}),e)})));return function(t,n,r,i,a){return e.apply(this,arguments)}}();var oC=function(e){return{isOnSubmit:!e||e===vj,isOnBlur:e===hj,isOnChange:e===pj,isOnAll:e===yj,isOnTouch:e===mj}};function sC(e){for(var t in e)if(!uj(e[t]))return!1;return!0}function uC(e,t){var n,r=Uj(t)?[t]:zj(t),i=1==r.length?e:function(e,t){for(var n=t.slice(0,-1).length,r=0;r<n;)e=uj(e)?r++:e[t[r++]];return e}(e,r),a=r[r.length-1];i&&delete i[a];for(var o=0;o<r.slice(0,-1).length;o++){var s=-1,u=void 0,c=r.slice(0,-(o+1)),l=c.length-1;for(o>0&&(n=e);++s<c.length;){var f=c[s];u=u?u[f]:e[f],l===s&&(ij(u)&&jj(u)||Array.isArray(u)&&sC(u))&&(n?delete n[f]:delete e[f]),n=u}}return e}function cC(){var e=[];return{get observers(){return e},next:function(t){var n,r=he(e);try{for(r.s();!(n=r.n()).done;){n.value.next(t)}}catch(i){r.e(i)}finally{r.f()}},subscribe:function(t){return e.push(t),{unsubscribe:function(){e=e.filter((function(e){return e!==t}))}}},unsubscribe:function(){e=[]}}}var lC=function(e){return nj(e)||!rj(e)};function fC(e,t){if(lC(e)||lC(t))return e===t;if(tj(e)&&tj(t))return e.getTime()===t.getTime();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0,a=n;i<a.length;i++){var o=a[i],s=e[o];if(!r.includes(o))return!1;if("ref"!==o){var u=t[o];if(tj(s)&&tj(u)||ij(s)&&ij(u)||Array.isArray(s)&&Array.isArray(u)?!fC(s,u):s!==u)return!1}}return!0}var dC=function(e){var t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},hC=function(e){return"select-multiple"===e.type},pC=function(e){return Yj(e)||ej(e)},vC=function(e){return dC(e)&&e.isConnected},mC=function(e){for(var t in e)if(Qj(e[t]))return!0;return!1};function yC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Array.isArray(e);if(ij(e)||n)for(var r in e)Array.isArray(e[r])||ij(e[r])&&!mC(e[r])?(t[r]=Array.isArray(e[r])?[]:{},yC(e[r],t[r])):nj(e[r])||(t[r]=!0);return t}function gC(e,t,n){var r=Array.isArray(e);if(ij(e)||r)for(var i in e)Array.isArray(e[i])||ij(e[i])&&!mC(e[i])?uj(t)||lC(n[i])?n[i]=Array.isArray(e[i])?yC(e[i],[]):dt({},yC(e[i])):gC(e[i],nj(t)?{}:t[i],n[i]):fC(e[i],t[i])?delete n[i]:n[i]=!0;return n}var bC=function(e,t){return gC(e,t,yC(t))},wC=function(e,t){var n=t.valueAsNumber,r=t.valueAsDate,i=t.setValueAs;return uj(e)?e:n?""===e?NaN:e?+e:e:r&&Pj(e)?new Date(e):i?i(e):e};function kC(e){var t=e.ref;if(!(e.refs?e.refs.every((function(e){return e.disabled})):t.disabled))return Kj(t)?t.files:Yj(t)?nC(e.refs).value:hC(t)?ke(t.
2selectedOptions).map((function(e){return e.value})):ej(t)?eC(e.refs).value:wC(uj(t.value)?e.ref.value:t.value,e)}var xC=function(e,t,n,r){var i,a={},o=he(e);try{for(o.s();!(i=o.n()).done;){var s=i.value,u=cj(t,s);u&&Bj(a,s,u._f)}}catch(c){o.e(c)}finally{o.f()}return{criteriaMode:n,names:ke(e),fields:a,shouldUseNativeValidation:r}},_C=function(e){return uj(e)?e:Xj(e)?e.source:ij(e)?Xj(e.value)?e.value.source:e.value:e},SC=function(e){return e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)};function EC(e,t,n){var r=cj(e,n);if(r||Uj(n))return{error:r,name:n};for(var i=n.split(".");i.length;){var a=i.join("."),o=cj(t,a),s=cj(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(s&&s.type)return{name:a,error:s};i.pop()}return{name:n}}var TC=function(e,t,n,r,i){return!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e)},OC=function(e,t){return!sj(cj(e,t)).length&&uC(e,t)},jC={mode:vj,reValidateMode:pj,shouldFocusError:!0};function CC(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=dt(dt({},jC),t),r={submitCount:0,isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Dj(n.defaultValues)||{},o=n.shouldUnregister?{}:Dj(a),s={action:!1,mount:!1,watch:!1},u={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0,l={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={watch:cC(),array:cC(),state:cC()},d=oC(n.mode),h=oC(n.reValidateMode),p=n.criteriaMode===yj,v=function(e){return function(t){clearTimeout(c),c=window.setTimeout(e,t)}},m=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!l.isValid){e.next=14;break}if(!n.resolver){e.next=9;break}return e.t1=jj,e.next=5,_();case 5:e.t2=e.sent.errors,e.t0=(0,e.t1)(e.t2),e.next=12;break;case 9:return e.next=11,E(i,!0);case 11:e.t0=e.sent;case 12:(t=e.t0)!==r.isValid&&(r.isValid=t,f.state.next({isValid:t}));case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),y=function(e){return l.isValidating&&e!==r.isValidating&&f.state.next({isValidating:e})},g=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,c=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],d=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(u&&n){if(s.action=!0,d&&Array.isArray(cj(i,e))){var h=n(cj(i,e),u.argA,u.argB);c&&Bj(i,e,h)}if(d&&Array.isArray(cj(r.errors,e))){var p=n(cj(r.errors,e),u.argA,u.argB);c&&Bj(r.errors,e,p),OC(r.errors,e)}if(l.touchedFields&&d&&Array.isArray(cj(r.touchedFields,e))){var v=n(cj(r.touchedFields,e),u.argA,u.argB);c&&Bj(r.touchedFields,e,v)}l.dirtyFields&&(r.dirtyFields=bC(a,o)),f.state.next({name:e,isDirty:O(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Bj(o,e,t)},b=function(e,t){Bj(r.errors,e,t),f.state.next({errors:r.errors})},w=function(e,t,n,r){var u=cj(i,e);if(u){var c=cj(o,e,uj(n)?cj(a,e):n);uj(c)||r&&r.defaultChecked||t?Bj(o,e,t?c:kC(u._f)):I(e,c),s.mount&&m()}},k=function(e,t,n,i,o){var s=!1,u=!1,c={name:e};if((!n||i)&&(l.isDirty&&(u=r.isDirty,r.isDirty=c.isDirty=O(),s=u!==c.isDirty),l.dirtyFields)){u=cj(r.dirtyFields,e);var d=fC(cj(a,e),t);d?uC(r.dirtyFields,e):Bj(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,s=s||u!==!d}if(n){var h=cj(r.touchedFields,e);h||(Bj(r.touchedFields,e,n),c.touchedFields=r.touchedFields,s=s||l.touchedFields&&h!==n)}return s&&o&&f.state.next(c),s?c:{}},x=function(n,i,a,o){var s=cj(r.errors,n),u=l.isValid&&Gj(i)&&r.isValid!==i;if(t.delayError&&a?(e=v((function(){return b(n,a)})))(t.delayError):(clearTimeout(c),e=null,a?Bj(r.errors,n,a):uC(r.errors,n)),(a?!fC(s,a):s)||!jj(o)||u){var d=dt(dt(dt({},o),u&&Gj(i)?{isValid:i}:{}),{},{errors:r.errors,name:n});r=dt(dt({},r),d),f.state.next(d)}y(!1)},_=function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.resolver(o,n.context,xC(t||u.mount,i,n.criteriaMode,n.shouldUseNativeValidation));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=me(pe().mark((function e(t){var n,i,a,o,s,u;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_();case 2:if(n=e.sent,i=n.errors,t){a=he(t);try{for(a.s();!(o=a.n()).done;)s=o.value,(u=cj(i,s))?Bj(r.errors,s,u):uC(r.errors,s)}catch(c){a.e(c)}finally{a.f()}}else r.errors=i;return e.abrupt("return",i);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),E=function(){var e=me(pe().mark((function e(t,i){var a,s,c,l,f,d,h,v=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=v.length>2&&void 0!==v[2]?v[2]:{valid:!0},e.t0=pe().keys(t);case 2:if((e.t1=e.t0()).done){e.next=23;break}if(s=e.t1.value,!(c=t[s])){e.next=21;break}if(l=c._f,f=YO(c,ZO),!l){e.next=17;break}return d=u.array.has(l.name),e.next=11,aC(c,cj(o,l.name),p,n.shouldUseNativeValidation,d);case 11:if(!(h=e.sent)[l.name]){e.next=16;break}if(a.valid=!1,!i){e.next=16;break}return e.abrupt("break",23);
2case 16:!i&&(cj(h,l.name)?d?Wj(r.errors,h,l.name):Bj(r.errors,l.name,h[l.name]):uC(r.errors,l.name));case 17:if(e.t2=f,!e.t2){e.next=21;break}return e.next=21,E(f,i,a);case 21:e.next=2;break;case 23:return e.abrupt("return",a.valid);case 24:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),T=function(){var e,t=he(u.unMount);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=cj(i,n);r&&(r._f.refs?r._f.refs.every((function(e){return!vC(e)})):!vC(r._f.ref))&&U(n)}}catch(a){t.e(a)}finally{t.f()}u.unMount=new Set},O=function(e,t){return e&&t&&Bj(o,e,t),!fC(L(),a)},j=function(e,t,n){return Rj(e,u,dt({},s.mount?o:uj(t)?a:Pj(e)?xe({},e,t):t),n)},C=function(e){return sj(cj(s.mount?o:a,e,t.shouldUnregister?cj(a,e,[]):[]))},I=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=cj(i,e),a=t;if(r){var s=r._f;s&&(!s.disabled&&Bj(o,e,wC(t,s)),a=Lj&&dC(s.ref)&&nj(t)?"":t,hC(s.ref)?ke(s.ref.options).forEach((function(e){return e.selected=a.includes(e.value)})):s.refs?ej(s.ref)?s.refs.length>1?s.refs.forEach((function(e){return(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find((function(t){return t===e.value})):a===e.value)})):s.refs[0]&&(s.refs[0].checked=!!a):s.refs.forEach((function(e){return e.checked=e.value===a})):Kj(s.ref)?s.ref.value="":(s.ref.value=a,s.ref.type||f.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&k(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&R(e)},N=function e(t,n,r){for(var a in n){var o=n[a],s="".concat(t,".").concat(a),c=cj(i,s);!u.array.has(t)&&lC(o)&&(!c||c._f)||tj(o)?I(s,o,r):e(s,o,r)}},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=cj(i,e),c=u.array.has(e),d=Dj(t);Bj(o,e,d),c?(f.array.next({name:e,values:o}),(l.isDirty||l.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=bC(a,o),f.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:O(e,d)}))):!s||s._f||nj(d)?I(e,d,n):N(e,d,n),Hj(e,u)&&f.state.next({}),f.watch.next({name:e})},P=function(){var t=me(pe().mark((function t(a){var s,c,v,g,b,w,S,T,O,j,C,I,N,A,P,L;return pe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=a.target,c=s.name,v=cj(i,c),g=function(){return s.type?kC(v._f):aj(a)},!v){t.next=44;break}if(S=g(),T=a.type===lj||a.type===fj,O=!SC(v._f)&&!n.resolver&&!cj(r.errors,c)&&!v._f.deps||TC(T,cj(r.touchedFields,c),r.isSubmitted,h,d),j=Hj(c,u,T),Bj(o,c,S),T?(v._f.onBlur&&v._f.onBlur(a),e&&e(0)):v._f.onChange&&v._f.onChange(a),C=k(c,S,T,!1),I=!jj(C)||j,!T&&f.watch.next({name:c,type:a.type}),!O){t.next=17;break}return l.isValid&&m(),t.abrupt("return",I&&f.state.next(dt({name:c},j?{}:C)));case 17:if(!T&&j&&f.state.next({}),y(!0),!n.resolver){t.next=31;break}return t.next=22,_([c]);case 22:N=t.sent,A=N.errors,P=EC(r.errors,i,c),L=EC(A,i,P.name||c),b=L.error,c=L.name,w=jj(A),t.next=43;break;case 31:return t.next=33,aC(v,cj(o,c),p,n.shouldUseNativeValidation);case 33:if(t.t0=c,!(b=t.sent[t.t0])){t.next=39;break}w=!1,t.next=43;break;case 39:if(!l.isValid){t.next=43;break}return t.next=42,E(i,!0);case 42:w=t.sent;case 43:lC(S)&&g()!==S?y(!1):(v._f.deps&&R(v._f.deps),x(c,w,b,C));case 44:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),R=function(){var e=me(pe().mark((function e(t){var a,o,s,c,d,h=arguments;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=h.length>1&&void 0!==h[1]?h[1]:{},c=Ij(t),y(!0),!n.resolver){e.next=11;break}return e.next=6,S(uj(t)?t:c);case 6:d=e.sent,o=jj(d),s=t?!c.some((function(e){return cj(d,e)})):o,e.next=21;break;case 11:if(!t){e.next=18;break}return e.next=14,Promise.all(c.map(function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=cj(i,t),e.next=3,E(n&&n._f?xe({},t,n):n);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 14:((s=e.sent.every(Boolean))||r.isValid)&&m(),e.next=21;break;case 18:return e.next=20,E(i);case 20:s=o=e.sent;case 21:return f.state.next(dt(dt(dt({},!Pj(t)||l.isValid&&o!==r.isValid?{}:{name:t}),n.resolver||!t?{isValid:o}:{}),{},{errors:r.errors,isValidating:!1})),a.shouldFocus&&!s&&qj(i,(function(e){return e&&cj(r.errors,e)}
2),t?c:u.mount),e.abrupt("return",s);case 24:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=function(e){var t=dt(dt({},a),s.mount?o:{});return uj(e)?t:Pj(e)?cj(t,e):e.map((function(e){return cj(t,e)}))},D=function(e,t){return{invalid:!!cj((t||r).errors,e),isDirty:!!cj((t||r).dirtyFields,e),isTouched:!!cj((t||r).touchedFields,e),error:cj((t||r).errors,e)}},M=function(e){e?Ij(e).forEach((function(e){return uC(r.errors,e)})):r.errors={},f.state.next({errors:r.errors})},F=function(e,t,n){var a=(cj(i,e,{_f:{}})._f||{}).ref;Bj(r.errors,e,dt(dt({},t),{},{ref:a})),f.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&a&&a.focus&&a.focus()},V=function(e,t){return Qj(e)?f.watch.subscribe({next:function(n){return e(j(void 0,t),n)}}):j(e,t,!0)},U=function(e){var t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=he(e?Ij(e):u.mount);try{for(c.s();!(t=c.n()).done;){var l=t.value;u.mount.delete(l),u.array.delete(l),cj(i,l)&&(s.keepValue||(uC(i,l),uC(o,l)),!s.keepError&&uC(r.errors,l),!s.keepDirty&&uC(r.dirtyFields,l),!s.keepTouched&&uC(r.touchedFields,l),!n.shouldUnregister&&!s.keepDefaultValue&&uC(a,l))}}catch(d){c.e(d)}finally{c.f()}f.watch.next({}),f.state.next(dt(dt({},r),s.keepDirty?{isDirty:O()}:{})),!s.keepIsValid&&m()},z=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=cj(i,t),l=Gj(r.disabled);return Bj(i,t,dt(dt({},c||{}),{},{_f:dt(dt({},c&&c._f?c._f:{ref:{name:t}}),{},{name:t,mount:!0},r)})),u.mount.add(t),c?l&&Bj(o,t,r.disabled?void 0:cj(o,t,kC(c._f))):w(t,!0,r.value),dt(dt(dt({},l?{disabled:r.disabled}:{}),n.shouldUseNativeValidation?{required:!!r.required,min:_C(r.min),max:_C(r.max),minLength:_C(r.minLength),maxLength:_C(r.maxLength),pattern:_C(r.pattern)}:{}),{},{name:t,onChange:P,onBlur:P,ref:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(o){if(o){e(t,r),c=cj(i,t);var l=uj(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,f=pC(l),d=c._f.refs||[];if(f?d.find((function(e){return e===l})):l===c._f.ref)return;Bj(i,t,{_f:dt(dt({},c._f),f?{refs:[].concat(ke(d.filter(vC)),[l],ke(Array.isArray(cj(a,t))?[{}]:[])),ref:{type:l.type,name:t}}:{ref:l})}),w(t,!1,void 0,l)}else(c=cj(i,t,{}))._f&&(c._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!oj(u.array,t)||!s.action)&&u.unMount.add(t)}))})},B=function(){return n.shouldFocusError&&qj(i,(function(e){return e&&cj(r.errors,e)}),u.mount)},q=function(e,t){return function(){var a=me(pe().mark((function a(s){var u,c,l,d,h;return pe().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist()),u=!0,c=Dj(o),f.state.next({isSubmitting:!0}),a.prev=4,!n.resolver){a.next=15;break}return a.next=8,_();case 8:l=a.sent,d=l.errors,h=l.values,r.errors=d,c=h,a.next=17;break;case 15:return a.next=17,E(i);case 17:if(!jj(r.errors)){a.next=23;break}return f.state.next({errors:{},isSubmitting:!0}),a.next=21,e(c,s);case 21:a.next=27;break;case 23:if(!t){a.next=26;break}return a.next=26,t(dt({},r.errors),s);case 26:B();case 27:a.next=33;break;case 29:throw a.prev=29,a.t0=a.catch(4),u=!1,a.t0;case 33:return a.prev=33,r.isSubmitted=!0,f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:jj(r.errors)&&u,submitCount:r.submitCount+1,errors:r.errors}),a.finish(33);case 37:case"end":return a.stop()}}),a,null,[[4,29,33,37]])})));return function(e){return a.apply(this,arguments)}}()},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cj(i,e)&&(uj(t.defaultValue)?A(e,cj(a,e)):(A(e,t.defaultValue),Bj(a,e,t.defaultValue)),t.keepTouched||uC(r.touchedFields,e),t.keepDirty||(uC(r.dirtyFields,e),r.isDirty=t.defaultValue?O(e,cj(a,e)):O()),t.keepError||(uC(r.errors,e),l.isValid&&m()),f.state.next(dt({},r)))},W=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=e||a,d=Dj(c),h=e&&!jj(e)?d:a;if(n.keepDefaultValues||(a=c),!n.keepValues){if(n.keepDirtyValues){var p,v=he(u.mount);try{for(v.s();!(p=v.n()).done;){var m=p.value;cj(r.dirtyFields,m)?Bj(h,m,cj(o,m)):A(m,cj(h,m))}}catch(_){v.e(_)}finally{v.f()}}else{if(Lj&&uj(e)){var y,g=he(u.mount);try{for(g.s();!(y=g.n()).done;){var b=y.value,w=cj(i,b);
2if(w&&w._f){var k=Array.isArray(w._f.refs)?w._f.refs[0]:w._f.ref;if(dC(k)){var x=k.closest("form");if(x){x.reset();break}}}}}catch(_){g.e(_)}finally{g.f()}}i={}}o=t.shouldUnregister?n.keepDefaultValues?Dj(a):{}:d,f.array.next({values:h}),f.watch.next({values:h})}u={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!l.isValid||!!n.keepIsValid,s.watch=!!t.shouldUnregister,f.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||fC(e,a)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&e?bC(a,e):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},G=function(e,t){return W(Qj(e)?e(o):e,t)},K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=cj(i,e),r=n&&n._f;if(r){var a=r.refs?r.refs[0]:r.ref;a.focus&&(a.focus(),t.shouldSelect&&a.select())}};return{control:{register:z,unregister:U,getFieldState:D,_executeSchema:_,_focusError:B,_getWatch:j,_getDirty:O,_updateValid:m,_removeUnmounted:T,_updateFieldArray:g,_getFieldArray:C,_subjects:f,_proxyFormState:l,get _fields(){return i},get _formValues(){return o},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return a},get _names(){return u},set _names(e){u=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n=dt(dt({},n),e)}},trigger:R,register:z,handleSubmit:q,watch:V,setValue:A,getValues:L,reset:G,resetField:H,clearErrors:M,unregister:U,setError:F,setFocus:K,getFieldState:D}}function IC(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.useRef(),r=e.useState({isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:t.defaultValues}),i=ne(r,2),a=i[0],o=i[1];n.current||(n.current=dt(dt({},CC(t)),{},{formState:a}));var s=n.current.control;return s._options=t,Aj({subject:s._subjects.state,callback:e.useCallback((function(e){Cj(e,s._proxyFormState,!0)&&(s._formState=dt(dt({},s._formState),e),o(dt({},s._formState)))}),[s])}),e.useEffect((function(){s._stateFlags.mount||(s._proxyFormState.isValid&&s._updateValid(),s._stateFlags.mount=!0),s._stateFlags.watch&&(s._stateFlags.watch=!1,s._subjects.state.next({})),s._removeUnmounted()})),e.useEffect((function(){a.submitCount&&s._focusError()}),[s,a.submitCount]),n.current.formState=Oj(a,s),n.current}var NC=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function AC(t){var n=t.defaultInputValue,r=void 0===n?"":n,i=t.defaultMenuIsOpen,a=void 0!==i&&i,o=t.defaultValue,s=void 0===o?null:o,u=t.inputValue,c=t.menuIsOpen,l=t.onChange,f=t.onInputChange,d=t.onMenuClose,h=t.onMenuOpen,p=t.value,v=YO(t,NC),m=ne((0,e.useState)(void 0!==u?u:r),2),y=m[0],g=m[1],b=ne((0,e.useState)(void 0!==c?c:a),2),w=b[0],k=b[1],x=ne((0,e.useState)(void 0!==p?p:s),2),_=x[0],S=x[1],E=(0,e.useCallback)((function(e,t){"function"===typeof l&&l(e,t),S(e)}),[l]),T=(0,e.useCallback)((function(e,t){var n;"function"===typeof f&&(n=f(e,t)),g(void 0!==n?n:e)}),[f]),O=(0,e.useCallback)((function(){"function"===typeof h&&h(),k(!0)}),[h]),j=(0,e.useCallback)((function(){"function"===typeof d&&d(),k(!1)}),[d]),C=void 0!==u?u:y,I=void 0!==c?c:w,N=void 0!==p?p:_;return dt(dt({},v),{},{inputValue:C,menuIsOpen:I,onChange:E,onInputChange:T,onMenuClose:j,onMenuOpen:O,value:N})}function PC(){return PC=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},PC.apply(this,arguments)}var RC=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++}
vendor: 5,284 bytes, line 2
2,t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),LC=Math.abs,DC=String.fromCharCode,MC=Object.assign;function FC(e){return e.trim()}function VC(e,t,n){return e.replace(t,n)}function UC(e,t){return e.indexOf(t)}function zC(e,t){return 0|e.charCodeAt(t)}function BC(e,t,n){return e.slice(t,n)}function qC(e){return e.length}function HC(e){return e.length}function WC(e,t){return t.push(e),e}var GC=1,KC=1,QC=0,$C=0,YC=0,XC="";function JC(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:GC,column:KC,length:o,return:""}}function ZC(e,t){return MC(JC("",null,null,"",null,null,0),e,{length:-e.length},t)}function eI(){return YC=$C>0?zC(XC,--$C):0,KC--,10===YC&&(KC=1,GC--),YC}function tI(){return YC=$C<QC?zC(XC,$C++):0,KC++,10===YC&&(KC=1,GC++),YC}function nI(){return zC(XC,$C)}function rI(){return $C}function iI(e,t){return BC(XC,e,t)}function aI(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oI(e){return GC=KC=1,QC=qC(XC=e),$C=0,[]}function sI(e){return XC="",e}function uI(e){return FC(iI($C-1,fI(91===e?e+2:40===e?e+1:e)))}function cI(e){for(;(YC=nI())&&YC<33;)tI();return aI(e)>2||aI(YC)>3?"":" "}function lI(e,t){for(;--t&&tI()&&!(YC<48||YC>102||YC>57&&YC<65||YC>70&&YC<97););return iI(e,rI()+(t<6&&32==nI()&&32==tI()))}function fI(e){for(;tI();)switch(YC){case e:return $C;case 34:case 39:34!==e&&39!==e&&fI(YC);break;case 40:41===e&&fI(e);break;case 92:tI()}return $C}function dI(e,t){for(;tI()&&e+YC!==57&&(e+YC!==84||47!==nI()););return"/*"+iI(t,$C-1)+"*"+DC(47===e?e:tI())}function hI(e){for(;!aI(nI());)tI();return iI(e,$C)}var pI="-ms-",vI="-moz-",mI="-webkit-",yI="comm",gI="rule",bI="decl",wI="@keyframes";function kI(e,t){for(var n="",r=HC(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function xI(e,t,n,r){switch(e.type){case"@import":case bI:return e.return=e.return||e.value;case yI:return"";case wI:return e.return=e.value+"{"+kI(e.children,r)+"}";case gI:e.value=e.props.join(",")}return qC(n=kI(e.children,r))?e.return=e.value+"{"+n+"}":""}function _I(e){return function(t){t.root||(t=t.return)&&e(t)}}function SI(e){return sI(EI("",null,null,null,[""],e=oI(e),0,[0],e))}function EI(e,t,n,r,i,a,o,s,u){for(var c=0,l=0,f=o,d=0,h=0,p=0,v=1,m=1,y=1,g=0,b="",w=i,k=a,x=r,_=b;m;)switch(p=g,g=tI()){case 40:if(108!=p&&58==zC(_,f-1)){-1!=UC(_+=VC(uI(g),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:_+=uI(g);break;case 9:case 10:case 13:case 32:_+=cI(p);break;case 92:_+=lI(rI()-1,7);continue;case 47:switch(nI()){case 42:case 47:WC(OI(dI(tI(),rI()),t,n),u);break;default:_+="/"}break;case 123*v:s[c++]=qC(_)*y;case 125*v:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+l:h>0&&qC(_)-f&&WC(h>32?jI(_+";",r,n,f-1):jI(VC(_," ","")+";",r,n,f-2),u);break;case 59:_+=";";default:if(WC(x=TI(_,t,n,c,l,i,s,b,w=[],k=[],f),a),123===g)if(0===l)EI(_,t,x,x,w,a,f,s,k);else switch(99===d&&110===zC(_,3)?100:d){case 100:case 109:case 115:EI(e,x,x,r&&WC(TI(e,x,x,0,0,i,s,b,i,w=[],f),k),i,k,f,s,r?w:k);break;default:EI(_,x,x,x,[""],k,0,s,k)}}c=l=h=0,v=y=1,b=_="",f=o;break;case 58:f=1+qC(_),h=p;default:if(v<1)if(123==g)--v;else if(125==g&&0==v++&&125==eI())continue;switch(_+=DC(g),g*v){case 38:y=l>0?1:(_+="\f",-1);break;case 44:s[c++]=(qC(_)-1)*y,y=1;break;case 64:45===nI()&&(_+=uI(tI())),d=nI(),l=f=qC(b=_+=hI(rI())),g++;break;case 45:45===p&&2==qC(_)&&(v=0)}}return a}function TI(e,t,n,r,i,a,o,s,u,c,l){for(var f=i-1,d=0===i?a:[""],h=HC(d),p=0,v=0,m=0;p<r;++p)for(var y=0,g=BC(e,f+1,f=LC(v=o[p])),b=e;y<h;++y)(b=FC(v>0?d[y]+" "+g:VC(g,/&\f/g,d[y])))&&(u[m++]=b);return JC(e,t,n,0===i?gI:s,u,c,l)}function OI(e,t,n){return JC(e,t,n,yI,DC(YC),BC(e,2,-2),0)}function jI(e,t,n,r){return JC(e,t,n,bI,BC(e,0,r),BC(e,r+1,-1),r)}var CI=function(e,t,n){for(var r=0,i=0;r=i,i=nI(),38===r&&12===i&&(t[n]=1),!aI(i);)tI();return iI(e,$C)},II=function(e,t){return sI(function(e,t){var n=-1,r=44;do{switch(aI(r)){case 0:38===r&&12===nI()&&(t[n]=1),e[n]+=CI($C-1,t,n);break;case 2:e[n]+=uI(r);break;case 4:if(44===r){e[++n]=58===nI()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=DC(r)}}while(r=tI());return e}(oI(e),t))},NI=new WeakMap,AI=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||NI.get(n))&&!r){NI.set(e,!0);for(var i=[],a=II(t,i),o=n.props,s=0,u=0;s<a.length;s++)for(var c=0;c<o.length;c++,u++)e.props[u]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},PI=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function RI(e,t){switch(function(e,t){return 45^zC(e,0)?(((t<<2^zC(e,0))<<2^zC(e,1))<<2^zC(e,2))<<2^zC(e,3):0}(e,t)){case 5103:return mI+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return mI+e+e;
vendor: 4,485 bytes, line 2
2case 5349:case 4246:case 4810:case 6968:case 2756:return mI+e+vI+e+pI+e+e;case 6828:case 4268:return mI+e+pI+e+e;case 6165:return mI+e+pI+"flex-"+e+e;case 5187:return mI+e+VC(e,/(\w+).+(:[^]+)/,mI+"box-$1$2"+pI+"flex-$1$2")+e;case 5443:return mI+e+pI+"flex-item-"+VC(e,/flex-|-self/,"")+e;case 4675:return mI+e+pI+"flex-line-pack"+VC(e,/align-content|flex-|-self/,"")+e;case 5548:return mI+e+pI+VC(e,"shrink","negative")+e;case 5292:return mI+e+pI+VC(e,"basis","preferred-size")+e;case 6060:return mI+"box-"+VC(e,"-grow","")+mI+e+pI+VC(e,"grow","positive")+e;case 4554:return mI+VC(e,/([^-])(transform)/g,"$1"+mI+"$2")+e;case 6187:return VC(VC(VC(e,/(zoom-|grab)/,mI+"$1"),/(image-set)/,mI+"$1"),e,"")+e;case 5495:case 3959:return VC(e,/(image-set\([^]*)/,mI+"$1$`$1");case 4968:return VC(VC(e,/(.+:)(flex-)?(.*)/,mI+"box-pack:$3"+pI+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+mI+e+e;case 4095:case 3583:case 4068:case 2532:return VC(e,/(.+)-inline(.+)/,mI+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qC(e)-1-t>6)switch(zC(e,t+1)){case 109:if(45!==zC(e,t+4))break;case 102:return VC(e,/(.+:)(.+)-([^]+)/,"$1"+mI+"$2-$3$1"+vI+(108==zC(e,t+3)?"$3":"$2-$3"))+e;case 115:return~UC(e,"stretch")?RI(VC(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==zC(e,t+1))break;case 6444:switch(zC(e,qC(e)-3-(~UC(e,"!important")&&10))){case 107:return VC(e,":",":"+mI)+e;case 101:return VC(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+mI+(45===zC(e,14)?"inline-":"")+"box$3$1"+mI+"$2$3$1"+pI+"$2box$3")+e}break;case 5936:switch(zC(e,t+11)){case 114:return mI+e+pI+VC(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return mI+e+pI+VC(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return mI+e+pI+VC(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return mI+e+pI+e+e}return e}var LI=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bI:e.return=RI(e.value,e.length);break;case wI:return kI([ZC(e,{value:VC(e.value,"@","@"+mI)})],r);case gI:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return kI([ZC(e,{props:[VC(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return kI([ZC(e,{props:[VC(t,/:(plac\w+)/,":"+mI+"input-$1")]}),ZC(e,{props:[VC(t,/:(plac\w+)/,":-moz-$1")]}),ZC(e,{props:[VC(t,/:(plac\w+)/,pI+"input-$1")]})],r)}return""}))}}],DI=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||LI;var i,a,o={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;s.push(e)}));var u=[AI,PI];var c,l=[xI,_I((function(e){c.insert(e)}))],f=function(e){var t=HC(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}(u.concat(r,l));a=function(e,t,n,r){c=n,function(e){kI(SI(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new RC({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:a};return d.sheet.hydrate(s),d};var MI=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var FI=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},VI={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGr
2idRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var UI=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}},zI=/[A-Z]|^ms/g,BI=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qI=function(e){return 45===e.charCodeAt(1)},HI=function(e){return null!=e&&"boolean"!==typeof e},WI=UI((function(e){return qI(e)?e:e.replace(zI,"-$&").toLowerCase()})),GI=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(BI,(function(e,t,n){return QI={name:t,styles:n,next:QI},t}))}return 1===VI[e]||qI(e)||"number"!==typeof t||0===t?t:t+"px"};function KI(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return QI={name:n.name,styles:n.styles,next:QI},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)QI={name:r.name,styles:r.styles,next:QI},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=KI(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":HI(o)&&(r+=WI(a)+":"+GI(a,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=KI(e,t,o);switch(a){case"animation":case"animationName":r+=WI(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var u=0;u<o.length;u++)HI(o[u])&&(r+=WI(a)+":"+GI(a,o[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=QI,a=n(e);return QI=i,KI(e,t,a)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var QI,$I=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var YI=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";QI=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=KI(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=KI(n,t,e[o]),r&&(i+=a[o]);$I.lastIndex=0;for(var s,u="";null!==(s=$I.exec(i));)u+="-"+s[1];return{name:FI(i)+u,styles:i,next:QI}},XI=!!t.useInsertionEffect&&t.useInsertionEffect,JI=XI||function(e){return e()},ZI=(XI||e.useLayoutEffect,{}.hasOwnProperty),eN=(0,e.createContext)("undefined"!==typeof HTMLElement?DI({key:"css"}):null);eN.Provider;var tN=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(eN);return t(n,i,r)}))},nN=(0,e.createContext)({});var rN="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",iN=function(e,t){var n={};for(var r in t)ZI.call(t,r)&&(n[r]=t[r]);return n[rN]=e,n},aN=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;MI(t,n,r);JI((function(){return function(e,t,n){MI(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}));return null},oN=tN((function(t,n,r){var i=t.css;"string"===typeof i&&void 0!==n.registered[i]&&(i=n.registered[i]);var a=t[rN],o=[i],s="";"string"===typeof t.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,o,t.className):null!=t.className&&(s=t.className+" ");var u=YI(o,void 0,(0,e.useContext)(nN));s+=n.key+"-"+u.name;var c={};for(var l in t)ZI.call(t,l)&&"css"!==l&&l!==rN&&(c[l]=t[l]);return c.ref=r,c.className=s,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(aN,{cache:n,serialized:u,isStringTag:"string"===typeof a}),(0,e.createElement)(a,c))}));n(110);var sN=function(t,n){var r=arguments;if(null==n||!ZI.call(n,"css"))return e.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=oN,a[1]=iN(t,n);for(var o=2;o<i;o++)a[o]=r[o];return e.createElement.apply(null,a)};function uN(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return YI(t)}var cN=n(164);Math.min,Math.max;var lN=["top","right","bottom","left"];lN.reduce((function(e,t){return e.concat(t,t+"-start",t+"-end")}),[]);var fN;function dN(e){var t;return(null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hN(e){return dN(e).getComputedStyle(e)}function pN(e){return gN(e)?(e.nodeName||"").toLowerCase():""}function vN(){if(fN)return fN;var e=navigator.userAgentData;return e&&Array.isArray(e.brands)?fN=e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function mN(e){return e instanceof dN(e).HTMLElement}function yN(e){return e instanceof dN(e).Element}function gN(e){return e instanceof dN(e).Node}function bN(e){return"undefined"!=typeof ShadowRoot&&(e instanceof dN(e).ShadowRoot||e instanceof ShadowRoot)}function wN(e){var t=hN(e),n=t.overflow,r=t.overflowX,i=t.overflowY,a=t.display;return/auto|scroll|overlay|hidden/.test(n+i+r)&&!["inline","contents"].includes(a)}function kN(){return!/^((?!chrome|android).)*safari/i.test(vN())}function xN(e){return["html","body","#document"].includes(pN(e))}var _N={x:1,y:1};function SN(e){var t=!yN(e)&&e.contextElement?e.contextElement:yN(e)?e:null;if(!t)return _N;var n=t.getBoundingClientRect(),r=hN(t),i=n.width/parseFloat(r.width),a=n.height/parseFloat(r.height);return i&&Number.isFinite(i)||(i=1),a&&Number.isFinite(a)||(a=1),{x:i,y:a}}function EN(e,t,n,r){var i,a,o,s;void 0===t&&(t=!1),void 0===n&&(n=!1);var u=e.getBoundingClientRect(),c=_N;t&&(r?yN(r)&&(c=SN(r)):c=SN(e));var l=yN(e)?dN(e):window,f=!kN()&&n,d=(u.left+(f&&null!=(i=null==(a=l.visualVie
2wport)?void 0:a.offsetLeft)?i:0))/c.x,h=(u.top+(f&&null!=(o=null==(s=l.visualViewport)?void 0:s.offsetTop)?o:0))/c.y,p=u.width/c.x,v=u.height/c.y;return{width:p,height:v,top:h,right:d+p,bottom:h+v,left:d,x:d,y:h}}function TN(e){return((gN(e)?e.ownerDocument:e.document)||window.document).documentElement}function ON(e){if("html"===pN(e))return e;var t=e.assignedSlot||e.parentNode||(bN(e)?e.host:null)||TN(e);return bN(t)?t.host:t}Math.min,Math.max;function jN(e){var t=ON(e);return xN(t)?e.ownerDocument.body:mN(t)&&wN(t)?t:jN(t)}function CN(e,t){var n;void 0===t&&(t=[]);var r=jN(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=dN(r);return i?t.concat(a,a.visualViewport||[],wN(r)?r:[]):t.concat(r,CN(r))}var IN=e.useLayoutEffect,NN=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],AN=function(){};function PN(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function RN(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];var a=[].concat(r);if(t&&e)for(var o in t)t.hasOwnProperty(o)&&t[o]&&a.push("".concat(PN(e,o)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var LN=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===le(e)&&null!==e?[e]:[];var t},DN=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,dt({},YO(e,NN))},MN=function(e,t,n){var r=e.cx,i=e.getStyles,a=e.getClassNames,o=e.className;return{css:i(t,e),className:r(null!==n&&void 0!==n?n:{},a(t,e),o)}};function FN(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function VN(e){return FN(e)?window.pageYOffset:e.scrollTop}function UN(e,t){FN(e)?window.scrollTo(0,t):e.scrollTop=t}function zN(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function BN(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:AN,i=VN(e),a=t-i,o=10,s=0;function u(){var t=zN(s+=o,i,a,n);UN(e,t),s<n?window.requestAnimationFrame(u):r(e)}u()}function qN(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=t.offsetHeight/3;r.bottom+i>n.bottom?UN(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i<n.top&&UN(e,Math.max(t.offsetTop-i,0))}function HN(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var WN=!1,GN={get passive(){return WN=!0}},KN="undefined"!==typeof window?window:{};KN.addEventListener&&KN.removeEventListener&&(KN.addEventListener("p",AN,GN),KN.removeEventListener("p",AN,!1));var QN=WN;function $N(e){return null!=e}function YN(e,t,n){return e?t:n}function XN(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,i=e.placement,a=e.shouldScroll,o=e.isFixedPosition,s=e.controlHeight,u=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return i;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var l=u.getBoundingClientRect().height,f=n.getBoundingClientRect(),d=f.bottom,h=f.height,p=f.top,v=n.offsetParent.getBoundingClientRect().top,m=o?window.innerHeight:function(e){return FN(e)?window.innerHeight:e.clientHeight}(u),y=VN(u),g=parseInt(getComputedStyle(n).marginBottom,10),b=parseInt(getComputedStyle(n).marginTop,10),w=v-b,k=m-p,x=w+y,_=l-y-p,S=d-m+y+g,E=y+p-b,T=160;switch(i){case"auto":case"bottom":if(k>=h)return{placement:"bottom",maxHeight:t};if(_>=h&&!o)return a&&BN(u,S,T),{placement:"bottom",maxHeight:t};if(!o&&_>=r||o&&k>=r)return a&&BN(u,S,T),{placement:"bottom",maxHeight:o?k-g:_-g};if("auto"===i||o){var O=t,j=o?w:x;return j>=r&&(O=Math.min(j-g-s,t)),{placement:"top",maxHeight:O}}if("bottom"===i)return a&&UN(u,S),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(x>=h&&!o)return a&&BN(u,E,T),{placement:"top",maxHeight:t};if(!o&&x>=r||o&&w>=r){var C=t;return(!o&&x>=r||o&&w>=r)&&(C=o?w-b:x-b),a&&BN(u,E,T),{placement:"top",maxHeight:C}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var JN=function(e){return"auto"===e?"bottom":e},ZN=(0,e.createContext)(null),eA=function(t){var n=t.children,r=t.minMenuHeight,i=t.maxMenuHeight,a=t.menuPlacement,o=t.menuPosition,s=t.menuShouldScrollIntoView,u=t.theme,c=((0,e.useContext)(ZN)||{}).setPortalPlacement,l=(0,e.useRef)(null),f=ne((0,e.useState)(i),2),d=f[0],h=f[1],p=ne((0,e.useState)(null),2),v=p[0],m=p[1],y=u.spacing.controlHeight;return IN((function(){var e=l.current;if(e){var t="fixed"===o,n=XN({maxHeight:i,menuEl:e,minHeight:r,placement:a,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:y});h(n.maxHeight),m(n.placement),null===c||void 0===c||c(n.placement)}}),[i,a,o,s,r,c,y]),n({ref:l,placerProps:dt(dt({},t),{},{placement:v||JN(a),maxHeight:d})})},tA=function(e,t){var n=e.theme,r=n.spacing.baseUnit,i=n.colors;return dt({textAlign:"center"},t?{}:{color:i.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},nA=tA,rA=tA,iA=function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),n),t)};iA.defaultProps={children:"No options"};var aA=function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),n),t)};aA.defaultProps={children:"Loading..."};var oA,sA=["size"];var uA={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},cA=function(e){var t=e.size,n=YO(e,sA);return sN("svg",PC({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:uA},n))},lA=function(e){return sN(cA,PC({size:20},e),sN("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},fA=function(e){return sN(cA,PC({size:20},e),sN("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},dA=function(e,t){var n=e.isFocused,r=e.theme,i=r.spacing.baseUnit,a=r.colors;
2return dt({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*i,":hover":{color:n?a.neutral80:a.neutral40}})},hA=dA,pA=dA,vA=function(){var e=uN.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(oA||(oA=_o(["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"]))),mA=function(e){var t=e.delay,n=e.offset;return sN("span",{css:uN({animation:"".concat(vA," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},yA=function(e){var t=e.innerProps,n=e.isRtl;return sN("div",PC({},MN(e,"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),sN(mA,{delay:0,offset:n}),sN(mA,{delay:160,offset:!0}),sN(mA,{delay:320,offset:!n}))};yA.defaultProps={size:4};var gA=["data"],bA=["innerRef","isDisabled","isHidden","inputClassName"],wA={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kA={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":dt({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},wA)},xA=function(e){return dt({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},wA)},_A=function(e){var t=e.children,n=e.innerProps;return sN("div",n,t)};var SA={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||sN(lA,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.innerRef,a=e.innerProps,o=e.menuIsOpen;return sN("div",PC({ref:i},MN(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":o}),a),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||sN(fA,null))},DownChevron:fA,CrossIcon:lA,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,i=e.getClassNames,a=e.Heading,o=e.headingProps,s=e.innerProps,u=e.label,c=e.theme,l=e.selectProps;return sN("div",PC({},MN(e,"group",{group:!0}),s),sN(a,PC({},o,{selectProps:l,theme:c,getStyles:r,getClassNames:i,cx:n}),u),sN("div",null,t))},GroupHeading:function(e){var t=DN(e);t.data;var n=YO(t,gA);return sN("div",PC({},MN(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return sN("span",PC({},t,MN(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=DN(e),i=r.innerRef,a=r.isDisabled,o=r.isHidden,s=r.inputClassName,u=YO(r,bA);return sN("div",PC({},MN(e,"input",{"input-container":!0}),{"data-value":n||""}),sN("input",PC({className:t({input:!0},s),ref:i,style:xA(o),disabled:a},u)))},LoadingIndicator:yA,Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return sN("div",PC({},MN(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,i=e.isMulti;return sN("div",PC({},MN(e,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,i=t.controlElement,a=t.innerProps,o=t.menuPlacement,s=t.menuPosition,u=(0,e.useRef)(null),c=(0,e.useRef)(null),l=ne((0,e.useState)(JN(o)),2),f=l[0],d=l[1],h=(0,e.useMemo)((function(){return{setPortalPlacement:d}}),[]),p=ne((0,e.useState)(null),2),v=p[0],m=p[1],y=(0,e.useCallback)((function(){if(i){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(i),t="fixed"===s?0:window.pageYOffset,n=e[f]+t;n===(null===v||void 0===v?void 0:v.offset)&&e.left===(null===v||void 0===v?void 0:v.rect.left)&&e.width===(null===v||void 0===v?void 0:v.rect.width)||m({offset:n,rect:e})}}),[i,s,f,null===v||void 0===v?void 0:v.offset,null===v||void 0===v?void 0:v.rect.left,null===v||void 0===v?void 0:v.rect.width]);IN((function(){y()}),[y]);var g=(0,e.useCallback)((function(){"function"===typeof c.current&&(c.current(),c.current=null),i&&u.current&&(c.current=function(e,t,n,r){void 0===r&&(r={});var i=r,a=i.ancestorScroll,o=void 0===a||a,s=i.ancestorResize,u=void 0===s||s,c=i.elementResize,l=void 0===c||c,f=i.animationFrame,d=void 0!==f&&f,h=o&&!d,p=
2h||u?[].concat(ke(yN(e)?CN(e):e.contextElement?CN(e.contextElement):[]),ke(CN(t))):[];p.forEach((function(e){h&&e.addEventListener("scroll",n,{passive:!0}),u&&e.addEventListener("resize",n)}));var v,m=null;if(l){var y=!0;m=new ResizeObserver((function(){y||n(),y=!1})),yN(e)&&!d&&m.observe(e),yN(e)||!e.contextElement||d||m.observe(e.contextElement),m.observe(t)}var g=d?EN(e):null;return d&&function t(){var r=EN(e);!g||r.x===g.x&&r.y===g.y&&r.width===g.width&&r.height===g.height||n(),g=r,v=requestAnimationFrame(t)}(),n(),function(){var e;p.forEach((function(e){h&&e.removeEventListener("scroll",n),u&&e.removeEventListener("resize",n)})),null==(e=m)||e.disconnect(),m=null,d&&cancelAnimationFrame(v)}}(i,u.current,y,{elementResize:"ResizeObserver"in window}))}),[i,y]);IN((function(){g()}),[g]);var b=(0,e.useCallback)((function(e){u.current=e,g()}),[g]);if(!n&&"fixed"!==s||!v)return null;var w=sN("div",PC({ref:b},MN(dt(dt({},t),{},{offset:v.offset,position:s,rect:v.rect}),"menuPortal",{"menu-portal":!0}),a),r);return sN(ZN.Provider,{value:h},n?(0,cN.createPortal)(w,n):w)},LoadingMessage:aA,NoOptionsMessage:iA,MultiValue:function(e){var t=e.children,n=e.components,r=e.data,i=e.innerProps,a=e.isDisabled,o=e.removeProps,s=e.selectProps,u=n.Container,c=n.Label,l=n.Remove;return sN(u,{data:r,innerProps:dt(dt({},MN(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":a})),i),selectProps:s},sN(c,{data:r,innerProps:dt({},MN(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),sN(l,{data:r,innerProps:dt(dt({},MN(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},o),selectProps:s}))},MultiValueContainer:_A,MultiValueLabel:_A,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return sN("div",PC({role:"button"},n),t||sN(lA,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.innerRef,o=e.innerProps;return sN("div",PC({},MN(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":i}),{ref:a,"aria-disabled":n},o),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return sN("div",PC({},MN(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,i=e.isRtl;return sN("div",PC({},MN(e,"container",{"--is-disabled":r,"--is-rtl":i}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return sN("div",PC({},MN(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,i=e.hasValue;return sN("div",PC({},MN(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":i}),n),t)}},EA=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function TA(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],i=t[n],!(r===i||EA(r)&&EA(i)))return!1;var r,i;return!0}for(var OA={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},jA=function(e){return sN("span",PC({css:OA},e))},CA={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>
21?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=void 0===i?"":i,o=e.selectValue,s=e.isDisabled,u=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(a," focused, ").concat(c(o,n),".");if("menu"===t){var l=s?" disabled":"",f="".concat(u?"selected":"focused").concat(l);return"option ".concat(a," ").concat(f,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},IA=function(t){var n=t.ariaSelection,r=t.focusedOption,i=t.focusedValue,a=t.focusableOptions,o=t.isFocused,s=t.selectValue,u=t.selectProps,c=t.id,l=u.ariaLiveMessages,f=u.getOptionLabel,d=u.inputValue,h=u.isMulti,p=u.isOptionDisabled,v=u.isSearchable,m=u.menuIsOpen,y=u.options,g=u.screenReaderStatus,b=u.tabSelectsValue,w=u["aria-label"],k=u["aria-live"],x=(0,e.useMemo)((function(){return dt(dt({},CA),l||{})}),[l]),_=(0,e.useMemo)((function(){var e,t="";if(n&&x.onChange){var r=n.option,i=n.options,a=n.removedValue,o=n.removedValues,u=n.value,c=a||r||(e=u,Array.isArray(e)?null:e),l=c?f(c):"",d=i||o||void 0,h=d?d.map(f):[],v=dt({isDisabled:c&&p(c,s),label:l,labels:h},n);t=x.onChange(v)}return t}),[n,x,p,s,f]),S=(0,e.useMemo)((function(){var e="",t=r||i,n=!!(r&&s&&s.includes(r));if(t&&x.onFocus){var o={focused:t,label:f(t),isDisabled:p(t,s),isSelected:n,options:a,context:t===r?"menu":"value",selectValue:s};e=x.onFocus(o)}return e}),[r,i,f,p,x,a,s]),E=(0,e.useMemo)((function(){var e="";if(m&&y.length&&x.onFilter){var t=g({count:a.length});e=x.onFilter({inputValue:d,resultsMessage:t})}return e}),[a,d,m,x,y,g]),T=(0,e.useMemo)((function(){var e="";if(x.guidance){var t=i?"value":m?"menu":"input";e=x.guidance({"aria-label":w,context:t,isDisabled:r&&p(r,s),isMulti:h,isSearchable:v,tabSelectsValue:b})}return e}),[w,r,i,h,p,v,m,x,s,b]),O="".concat(S," ").concat(E," ").concat(T),j=sN(e.Fragment,null,sN("span",{id:"aria-selection"},_),sN("span",{id:"aria-context"},O)),C="initial-input-focus"===(null===n||void 0===n?void 0:n.action);return sN(e.Fragment,null,sN(jA,{id:c},C&&j),sN(jA,{"aria-live":k,"aria-atomic":"false","aria-relevant":"additions text"},o&&!C&&j))},NA=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"}
vendor: 8,309 bytes, line 2
2,{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],AA=new RegExp("["+NA.map((function(e){return e.letters})).join("")+"]","g"),PA={},RA=0;RA<NA.length;RA++)for(var LA=NA[RA],DA=0;DA<LA.letters.length;DA++)PA[LA.letters[DA]]=LA.base;var MA=function(e){return e.replace(AA,(function(e){return PA[e]}))},FA=function(e,t){void 0===t&&(t=TA);var n=null;function r(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return r.clear=function(){n=null},r}(MA),VA=function(e){return e.replace(/^\s+|\s+$/g,"")},UA=function(e){return"".concat(e.label," ").concat(e.value)},zA=["innerRef"];function BA(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Object.entries(e).filter((function(e){var t=ne(e,1)[0];return!n.includes(t)}));return i.reduce((function(e,t){var n=ne(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})}(YO(e,zA),"onExited","in","enter","exit","appear");return sN("input",PC({ref:t},n,{css:uN({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var qA=["boxSizing","height","overflow","paddingRight","position"],HA={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function WA(e){e.preventDefault()}function GA(e){e.stopPropagation()}function KA(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function QA(){return"ontouchstart"in window||navigator.maxTouchPoints}var $A=!("undefined"===typeof window||!window.document||!window.document.createElement),YA=0,XA={capture:!1,passive:!1};var JA=function(){return document.activeElement&&document.activeElement.blur()},ZA={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function eP(t){var n=t.children,r=t.lockEnabled,i=t.captureEnabled,a=function(t){var n=t.isEnabled,r=t.onBottomArrive,i=t.onBottomLeave,a=t.onTopArrive,o=t.onTopLeave,s=(0,e.useRef)(!1),u=(0,e.useRef)(!1),c=(0,e.useRef)(0),l=(0,e.useRef)(null),f=(0,e.useCallback)((function(e,t){if(null!==l.current){var n=l.current,c=n.scrollTop,f=n.scrollHeight,d=n.clientHeight,h=l.current,p=t>0,v=f-d-c,m=!1;v>t&&s.current&&(i&&i(e),s.current=!1),p&&u.current&&(o&&o(e),u.current=!1),p&&t>v?(r&&!s.current&&r(e),h.scrollTop=f,m=!0,s.current=!0):!p&&-t>c&&(a&&!u.current&&a(e),h.scrollTop=0,m=!0,u.current=!0),m&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,i,a,o]),d=(0,e.useCallback)((function(e){f(e,e.deltaY)}),[f]),h=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),p=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;f(e,t)}),[f]),v=(0,e.useCallback)((function(e){if(e){var t=!!QN&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",h,t),e.addEventListener("touchmove",p,t)}}),[p,h,d]),m=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",h,!1),e.removeEventListener("touchmove",p,!1))}),[p,h,d]);return(0,e.useEffect)((function(){if(n){var e=l.current;return v(e),function(){m(e)}}}),[n,v,m]),function(e){l.current=e}}({isEnabled:void 0===i||i,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),o=function(t){var n=t.isEnabled,r=t.accountForScrollbars,i=void 0===r||r,a=(0,e.useRef)({}),o=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if($A){var t=document.body,n=t&&t.style;if(i&&qA.forEach((function(e){var t=n&&n[e];a.current[e]=t})),i&&YA<1){var r=parseInt(a.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+r||0;Object.keys(HA).forEach((function(e){var t=HA[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&QA()&&(t.addEventListener("touchmove",WA,XA),e&&(e.addEventListener("touchstart",KA,XA),e.addEventListener("touchmove",GA,XA))),YA+=1}}),[i]),u=(0,e.useCallback)((function(e){if($A){var t=document.body,n=t&&t.style;YA=Math.max(YA-1,0),i&&YA<1&&qA.forEach((function(e){var t=a.current[e];n&&(n[e]=t)})),t&&QA()&&(t.removeEventListener("touchmove",WA,XA),e&&(e.removeEventListener("touchstart",KA,XA),e.removeEventListener("touchmove",GA,XA)))}}),[i]);return(0,e.useEffect)((function(){if(n){var e=o.current;return s(e),function(){u(e)}}}),[n,s,u]),function(e){o.current=e}}({isEnabled:r});return sN(e.Fragment,null,r&&sN("div",{onClick:JA,css:ZA}),n((function(e){a(e),o(e)})))}var tP={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;
2opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},nP=function(e){var t=e.name,n=e.onFocus;return sN("input",{required:!0,name:t,tabIndex:-1,onFocus:n,css:tP,value:"",onChange:function(){}})},rP=function(e){return e.label},iP=function(e){return e.value},aP={clearIndicator:pA,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.theme,a=i.colors,o=i.borderRadius;return dt({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?a.neutral5:a.neutral0,borderColor:n?a.neutral10:r?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(a.primary):void 0,"&:hover":{borderColor:r?a.primary:a.neutral30}})},dropdownIndicator:hA,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,i=n.spacing;return dt({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*i.baseUnit,paddingRight:3*i.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing.baseUnit,a=r.colors;return dt({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?a.neutral10:a.neutral20,marginBottom:2*i,marginTop:2*i})},input:function(e,t){var n=e.isDisabled,r=e.value,i=e.theme,a=i.spacing,o=i.colors;return dt(dt({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},kA),t?{}:{margin:a.baseUnit/2,paddingBottom:a.baseUnit/2,paddingTop:a.baseUnit/2,color:o.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,i=e.theme,a=i.colors,o=i.spacing.baseUnit;return dt({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?a.neutral60:a.neutral20,padding:2*o})},loadingMessage:rA,menu:function(e,t){var n,r=e.placement,i=e.theme,a=i.borderRadius,o=i.spacing,s=i.colors;return dt((xe(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),xe(n,"position","absolute"),xe(n,"width","100%"),xe(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:a,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:o.menuGutter,marginTop:o.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return dt({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors;return dt({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:a.neutral10,borderRadius:i/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,i=n.colors,a=e.cropWithEllipsis;return dt({overflow:"hidden",textOverflow:a||void 0===a?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,i=n.borderRadius,a=n.colors,o=e.isFocused;return dt({alignItems:"center",display:"flex"},t?{}:{borderRadius:i/2,backgroundColor:o?a.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}})},noOptionsMessage:nA,option:function(e,t){var n=e.isDisabled,r=e.isFocused,i=e.isSelected,a=e.theme,o=a.spacing,s=a.colors;return dt({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:i?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:i?s.neutral0:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),":active":{backgroundColor:n?void 0:i?s.primary:s.primary50}})}
2,placeholder:function(e,t){var n=e.theme,r=n.spacing,i=n.colors;return dt({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:i.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,i=r.spacing,a=r.colors;return dt({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?a.neutral40:a.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,i=e.hasValue,a=e.selectProps.controlShouldRenderValue;return dt({alignItems:"center",display:r&&i&&a?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var oP={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},sP={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:HN(),captureMenuScroll:!HN(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e){return function(t,n){if(t.data.__isNew__)return!0;var r=dt({ignoreCase:!0,ignoreAccents:!0,stringify:UA,trim:!0,matchFrom:"any"},e),i=r.ignoreCase,a=r.ignoreAccents,o=r.stringify,s=r.trim,u=r.matchFrom,c=s?VA(n):n,l=s?VA(o(t)):o(t);return i&&(c=c.toLowerCase(),l=l.toLowerCase()),a&&(c=FA(c),l=MA(l)),"start"===u?l.substr(0,c.length)===c:l.indexOf(c)>-1}}(),formatGroupLabel:function(e){return e.label},getOptionLabel:rP,getOptionValue:iP,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function uP(e,t,n,r){return{type:"option",data:t,isDisabled:pP(e,t,n),isSelected:vP(e,t,n),label:dP(e,t),value:hP(e,t),index:r}}function cP(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return uP(e,n,t,r)})).filter((function(t){return fP(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=uP(e,n,t,r);return fP(e,a)?a:void 0})).filter($N)}function lP(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,ke(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function fP(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!yP(e)||!a)&&mP(e,{label:o,value:s,data:i},r)}var dP=function(e,t){return e.getOptionLabel(t)},hP=function(e,t){return e.getOptionValue(t)};function pP(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function vP(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=hP(e,t);return n.some((function(t){return hP(e,t)===r}))}function mP(e,t,n){return!e.filterOption||e.filterOption(t,n)}var yP=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},gP=1,bP=function(t){ue(r,t);var n=de(r);function r(e){var t;if(ye(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e}
vendor: 14,277 bytes, line 2
2,t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,i=r.onChange,a=r.name;n.name=a,t.ariaOnChange(e,n),i(e,n)},t.setValue=function(e,n,r){var i=t.props,a=i.closeMenuOnSelect,o=i.isMulti,s=i.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),a&&(t.setState({inputIsHiddenAfterUpdate:!o}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,i=n.isMulti,a=n.name,o=t.state.selectValue,s=i&&t.isOptionSelected(e,o),u=t.isOptionDisabled(e,o);if(s){var c=t.getOptionValue(e);t.setValue(o.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(u)return void t.ariaOnChange(e,{action:"select-option",option:e,name:a});i?t.setValue([].concat(ke(o),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,i=t.getOptionValue(e),a=r.filter((function(e){return t.getOptionValue(e)!==i})),o=YN(n,a,a[0]||null);t.onChange(o,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(YN(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],i=n.slice(0,n.length-1),a=YN(e,i,i[0]||null);t.onChange(a,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return RN.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return dP(t.props,e)},t.getOptionValue=function(e){return hP(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,i=aP[e](n,r);i.boxSizing="border-box";var a=t.props.styles[e];return a?a(i,n):i},t.getClassNames=function(e,n){var r,i;return null===(r=(i=t.props.classNames)[e])||void 0===r?void 0:r.call(i,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,dt(dt({},SA),e.components);var e},t.buildCategorizedOptions=function(){return cP(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return lP(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:dt({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,i=n.menuIsOpen;t.focusInput(),i?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&FN(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var i=Math.abs(r.clientX-t.initialTouchX),a=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=i>5||a>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return yP(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,i=n.backspaceRemovesValue,a=n.escapeClearsValue,o=n.inputValue,s=n.isClearable,u=n.isDisabled,c=n.menuIsOpen,l=n.onKeyDown,f=n.tabSelectsValue,d=n.openMenuOnFocus,h=t.state,p=h.focusedOption,v=h.focusedValue,m=h.selectValue;if(!u&&("function"!==typeof l||(l(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||o)return;t.focusValue("previous");break;case"ArrowRight":if(!r||o)return;t.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(v)t.removeValue(v);else{if(!i)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!f||!p||d&&t.isOptionSelected(p,m))return;t.selectOption(p);break;case"Enter":if(229===e.keyCode)break;if(c){if(!p)return;if(t.isComposing)return;t.selectOption(p);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:o}),t.onMenuClose()):s&&a&&t.clearValue();break;case" ":if(o)return;if(!c){t.openMenu("first");break}if(!p)return;t.selectOption(p);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++gP),t.state.selectValue=LN(e.value),e.menuIsOpen&&t.state.selectValue.length){var i=t.buildFocusableOptions(),a=i.indexOf(t.state.selectValue[0]);t.state.focusedOption=i[a]}return t}return we(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&qN(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,i=this.state.isFocused;(i&&!n&&e.isDisabled||i&&r&&!e.menuIsOpen)&&this.focusInput(),i&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):i||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(qN(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===i?0:-1===i?a:i-1;break;case"next":i>-1&&i<a&&(o=i+1)}this.setState({inputIsHidden:-1!==o,focusedValue:n[o]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),"up"===e?i=a>0?a-1:r.length-1:"down"===e?i=(a+1)%r.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(oP):dt(dt({},oP),this.props.theme):oP}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,i=this.getValue,a=this.selectOption,o=this.setValue,s=this.props,u=s.isMulti,c=s.isRtl,l=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:i,hasValue:this.hasValue(),isMulti:u,isRtl:c,options:l,selectOption:a,selectProps:s,setValue:o,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return pP(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return vP(this.props,e,t)}},{key:"filterOption",value:function(e,t){return mP(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,i=t.inputId,a=t.inputValue,o=t.tabIndex,s=t.form,u=t.menuIsOpen,c=t.required,l=this.getComponents().Input,f=this.state,d=f.inputIsHidden,h=f.ariaSelection,p=this.commonProps,v=i||this.getElementId("input"),m=dt(dt(dt({"aria-autocomplete":"list","aria-expanded":u,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},u&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===h||void 0===h?void 0:h.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(l,PC({},p,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:n,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:o,form:s,type:"text",value:a},m)):e.createElement(BA,PC({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:AN,onFocus:this.onInputFocus,disabled:n,tabIndex:o,inputMode:"none",form:s,value:""},m))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,i=n.MultiValueContainer,a=n.MultiValueLabel,o=n.MultiValueRemove,s=n.SingleValue,u=n.Placeholder,c=this.commonProps,l=this.props,f=l.controlShouldRenderValue,d=l.isDisabled,h=l.isMulti,p=l.inputValue,v=l.placeholder,m=this.state,y=m.selectValue,g=m.focu
2sedValue,b=m.isFocused;if(!this.hasValue()||!f)return p?null:e.createElement(u,PC({},c,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),v);if(h)return y.map((function(n,s){var u=n===g,l="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,PC({},c,{components:{Container:i,Label:a,Remove:o},isFocused:u,isDisabled:d,key:l,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(p)return null;var w=y[0];return e.createElement(s,PC({},c,{data:w,isDisabled:d}),this.formatOptionLabel(w,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,o=this.state.isFocused;if(!this.isClearable()||!t||i||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,PC({},n,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,i=r.isDisabled,a=r.isLoading,o=this.state.isFocused;if(!t||!a)return null;return e.createElement(t,PC({},n,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return e.createElement(r,PC({},i,{isDisabled:a,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,PC({},n,{innerProps:a,isDisabled:r,isFocused:i}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,i=n.GroupHeading,a=n.Menu,o=n.MenuList,s=n.MenuPortal,u=n.LoadingMessage,c=n.NoOptionsMessage,l=n.Option,f=this.commonProps,d=this.state.focusedOption,h=this.props,p=h.captureMenuScroll,v=h.inputValue,m=h.isLoading,y=h.loadingMessage,g=h.minMenuHeight,b=h.maxMenuHeight,w=h.menuIsOpen,k=h.menuPlacement,x=h.menuPosition,_=h.menuPortalTarget,S=h.menuShouldBlockScroll,E=h.menuShouldScrollIntoView,T=h.noOptionsMessage,O=h.onMenuScrollToTop,j=h.onMenuScrollToBottom;if(!w)return null;var C,I=function(n,r){var i=n.type,a=n.data,o=n.isDisabled,s=n.isSelected,u=n.label,c=n.value,h=d===a,p=o?void 0:function(){return t.onOptionHover(a)},v=o?void 0:function(){return t.selectOption(a)},m="".concat(t.getElementId("option"),"-").concat(r),y={id:m,onClick:v,onMouseMove:p,onMouseOver:p,tabIndex:-1};return e.createElement(l,PC({},f,{innerProps:y,data:a,isDisabled:o,isSelected:s,key:m,label:u,type:i,value:c,isFocused:h,innerRef:h?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())C=this.getCategorizedOptions().map((function(n){if("group"===n.type){var a=n.data,o=n.options,s=n.index,u="".concat(t.getElementId("group"),"-").concat(s),c="".concat(u,"-heading");return e.createElement(r,PC({},f,{key:u,data:a,options:o,Heading:i,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return I(n,"".concat(n.index))}));else if(m){var N=y({inputValue:v});if(null===N)return null;C=e.createElement(u,f,N)}else{var A=T({inputValue:v});if(null===A)return null;C=e.createElement(c,f,A)}var P={minMenuHeight:g,maxMenuHeight:b,menuPlacement:k,menuPosition:x,menuShouldScrollIntoView:E},R=e.createElement(eA,PC({},f,P),(function(n){var r=n.ref,i=n.placerProps,s=i.placement,u=i.maxHeight;return e.createElement(a,PC({},f,P,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:m,placement:s}),e.createElement(eP,{captureEnabled:p,onTopArrive:O,onBottomArrive:j,lockEnabled:S},(function(n){return e.createElement(o,PC({},f,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:m,maxHeight:u,focusedOption:d}),C)})))}));return _||"fixed"===x?e.createElement(s,PC({},f,{appendTo:_,controlElement:this.controlRef,menuPlacement:k,menuPosition:x}),R):R}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,i=n.isDisabled,a=n.isMulti,o=n.name,s=n.required,u=this.state.selectValue;if(o&&!i){if(s&&!this.hasValue())return e.createElement(nP,{name:o,onFocus:this.onValueInputFocus});if(a){if(r){var c=u.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:o,type:"hidden",value:c})}var l=u.length>0?u.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:o,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:o,type:"hidden",value:""});return e.createElement("div",null,l)}var f=u[0]?this.getOptionValue(u[0]):"";return e.createElement("input",{name:o,type:"hidden",value:f})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,i=n.focusedOption,a=n.focusedValue,o=n.isFocused,s=n.selectValue,u=this.getFocusableOptions();return e.createElement(IA,PC({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:u}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,i=t.SelectContainer,a=t.ValueContainer,o=this.props,s=o.className,u=o.id,c=o.isDisabled,l=o.menuIsOpen,f=this.state.isFocused,d=this.commonProps=this.getCommonProps();return e.createElement(i,PC({},d,{className:s,innerProps:{id:u,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:f}),this.renderLiveRegion(),e.createElement(n,PC({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:f,menuIsOpen:l}),e.createElement(a,PC({},d,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,PC({},d,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,i=t.inputIsHiddenAfterUpdate,a=t.ariaSelection,o=t.isFocused,s=t.prevWasFocused,u=e.options,c=e.value,l=e.menuIsOpen,f=e.inputValue,d=e.isMulti,h=LN(c),p={};if(n&&(c!==n.value||u!==n.options||l!==n.menuIsOpen||f!==n.inputValue)){var v=l?function(e,t){return lP(cP(e,t))}(e,h):[],m=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);p={selectValue:h,focusedOption:y,focusedValue:m,clearFocusValueOnUpdate:!1}}var g=null!=i&&e!==n?{inputIsHidden:i,inputIsHiddenAfterUpdate:void 0}:{},b=a,w=o&&s;return o&&!w&&(b={value:YN(d,h,h[0]||null),options:h,action:"initial-input-focus"},w=!s),"initial-input-focus"===(null===a||void 0===a?void 0:a.action)&&(b=null),dt(dt(dt({},p),g),{},{prevProps:e,ariaSelection:b,prevWasFocused:w})}}]),r}(e.Component);bP.defaultProps=sP;var wP=(0,e.forwardRef)((function(t,n){var r=AC(t);return e.createElement(bP,PC({ref:n},r))})),kP=wP,xP=n(333),_P=n.n(xP),SP=["foodImage","shopImage","slug"],EP=function(e){var t=e.label,n=e.name;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("label",{className:"mt-7 font-medium mb-2",htmlFor:n,children:t})})},TP=function(t){t.formDataAdded;var n=t.setFormDataAdded,r=ne(ko(tS),3),i=r[0],a=(r[1],r[2],ne((0,e.useState)(!1),2)),o=a[0],s=a[1],u=ne((0,e.useState)({}),2),c=u[0],l=u[1],f=ne((0,e.useState)(null),2),d=f[0],h=f[1],p=ne((0,e.useState)(null),2),v=p[0],m=p[1],y=IC(),g=y.register,b=y.handleSubmit,w=y.control,k=y.reset,x=y.watch,_=y.formState.errors,S=function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(s(!0),l(t),l((function(e){e.foodImage,e.shopImage,e.slug;return YO(e,SP)}
2)),!E()&&!t.shopImage[0]||!E()&&!T(t.shopImage[0])||!t.foodImage[0]||!T(t.foodImage[0])){e.next=15;break}return e.next=6,SO(_P()(t.shopName,{lower:!0,strict:!0,remove:/[*+~.()'"!:@]/g}));case 6:if(e.sent){e.next=11;break}!E()&&O(t.shopImage[0],t.shopName,"shopImage"),O(t.foodImage[0],t.shopName,"foodImage"),e.next=13;break;case 11:hs.error("A restaurant with this name already exists. Please try another name."),s(!1);case 13:e.next=17;break;case 15:hs.error("Please upload valid images"),s(!1);case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,e.useEffect)((function(){v&&(E()||d)&&(E()?l((function(e){return dt(dt({},e),{},{addedBy:i.email,shopArea:"",shopId:_P()(e.shopName,{lower:!0,strict:!0,remove:/[*+~.()'"!:@]/g}),foodTags:e.foodCategory.map((function(e){return e.value})),isPublic:!1,foodImageUrl:v,timestamp:px()})})):l((function(e){return dt(dt({},e),{},{addedBy:i.email,shopId:_P()(e.shopName,{lower:!0,strict:!0,remove:/[*+~.()'"!:@]/g}),shopAreaSlug:e.shopArea.value,foodTags:e.foodCategory.map((function(e){return e.value})),isPublic:!1,foodImageUrl:v,shopImageUrl:d,timestamp:px()})})))}),[v,d]),(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,aS("shops",c.shopId,c);case 2:s(!1),hs.success("".concat(c.shopType.label," will be add after verified.")),k(),xo.ZP.event({category:"Add Restaurant",action:"Add Restaurant",label:"Restaurant response by ".concat(i.email)}),n(!0);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();c.foodImageUrl&&(E()||c.shopImageUrl)&&e()}),[c]);var E=function(){return!!x("shopType")&&"tiffin-service"===x("shopType").value},T=function(e){return!(e.size>2097152)||(hs.error("File (".concat(e.name,") size is too large, Please upload a file less than 2MB")),s(!1),!1)},O=function(){var e=me(pe().mark((function e(t,n,r){var i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=rS,u="".concat(n,"/").concat(t.name),i=q_(o=Xe(o),u),a=Y_(i,t),hs.promise(a,{loading:"Uploading ".concat(t.name),success:"Uploaded ".concat(t.name),error:"Failed to upload ".concat(t.name)}),a.on("state_changed",(function(e){}),(function(e){hs.error(e.message),s(!1)}),(function(){X_(a.snapshot.ref).then((function(e){"shopImage"===r?h(e):m(e)}))}));case 4:case"end":return e.stop()}var o,u}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("form",{onSubmit:b(S),className:"animate__animated animate__faster animate__fadeIn flex flex-col justify-start items-start w-full pb-10",children:[(0,cc.jsx)(EP,{label:"Restaurant type *",name:"shopType"}),(0,cc.jsx)(Fj,{name:"shopType",control:w,render:function(e){var t=e.field;return(0,cc.jsx)(kP,dt(dt({className:"basic-single w-full",isSearchable:!1,name:"shopType",options:PO},t),{},{required:"true",theme:function(e){return dt(dt({},e),{},{borderRadius:5,colors:dt(dt({},e.colors),{},{primary25:"#e5e7eb",primary:"black"})})}}))}}),(0,cc.jsx)(EP,{label:"Restaurant Name *",name:"shopName"}),(0,cc.jsx)("input",dt({className:"inputTextStyle ".concat(_.shopName?"errorInputStyles":""),placeholder:"Restaurant name",autoComplete:"off"},g("shopName",{required:!0,minLength:3,maxLength:40}))),_.shopName&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["required"===_.shopName.type&&"Restaurant name is required","maxLength"===_.shopName.type&&"Restaurant name can't exceed 40 characters","minLength"===_.shopName.type&&"Restaurant name must be at least 3 characters"]}),(0,cc.jsx)(EP,{label:"Id (Autogenerate - Read only)",name:"slug"}),(0,cc.jsx)("input",dt({className:"inputTextStyle cursor-not-allowed",placeholder:"/restaurant/name-of-your-restaurant",disabled:!0,value:x("shopName")?_P()(x("shopName"),{lower:!0,strict:!0,remove:/[*+~.()'"!:@]/g}):""},g("slug"))),E()?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(EP,{label:"Owner Name *",name:"ownerName"}),(0,cc.jsx)(Fj,{name:"ownerName",control:w,render:function(e){e.field;return(0,cc.jsx)("textarea",dt({className:"inputTextStyle ".concat(_.ownerName?"errorInputStyles":""),placeholder:"Owner name",autoComplete:"off"},g("ownerName",{required:!0,minLength:3,maxLength:20})))}}),_.ownerName&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["required"===_.ownerName.type&&"Owner name is required","maxLength"===_.ownerName.type&&"Owner name can't exceed 20 characters","minLength"===_.ownerName.type&&"Owner name must be at least 3 characters"]})]}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(EP,{label:"Restaurant Address *",name:"shopAddress"}),(0,cc.jsx)(Fj,{name:"shopAddress",control:w,render:function(e){e.field;return(0,cc.jsx)("textarea",dt({className:"inputTextStyle ".concat(_.shopAddress?"errorInputStyles":""),placeholder:"Restaurant address",autoComplete:"off"},g("shopAddress",{required:!0,minLength:5,maxLength:100})))}}),_.shopAddress&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["required"===_.shopAddress.type&&"Restaurant address is required","maxLength"===_.shopAddress.type&&"Restaurant address can't exceed 100 characters","minLength"===_.shopAddress.type&&"Restaurant address must be at least 5 characters"]})]}),(0,cc.jsx)(EP,{label:"Restaurant Contact No.",name:"shopContact"}),(0,cc.jsx)(Fj,{name:"shopContact",control:w,render:function(e){e.field;return(0,cc.jsx)("input",dt({className:"inputTextStyle ".concat(_.shopContact?"errorInputStyles":""),placeholder:"9876543210",autoComplete:"off"},g("shopContact",{minLength:10,maxLength:10,pattern:/^[0-9]*$/})))}}),_.shopContact&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["maxLength"===_.shopContact.type&&"Restaurant contact number can't exceed 10 characters","minLength"===_.shopContact.type&&"Restaurant contact number must be at least 10 characters","pattern"===_.shopContact.type&&"Restaurant contact number must be a number"]}),E()?null:(0,cc.jsxs)("div",{className:"flex flex-row gap-x-10",children:[(0,cc.jsxs)("div",{className:"flex flex-col",children:[(0,cc.jsx)(EP,{label:"Opening time *",name:"openingTime"}),(0,cc.jsx)(Fj,{name:"openingTime",control:w,render:function(e){e.field;return(0,cc.jsx)("input",dt({type:"time"},g("openingTime",{required:!0})))}}),_.openingTime&&(0,cc.jsx)("p",{className:"text-red-400 mt-1",children:"required"===_.openingTime.type&&"Opening time is required"})]}),(0,cc.jsxs)("div",{className:"flex flex-col",children:[(0,cc.jsx)(EP,{label:"Closing time *",name:"closingTime"}),(0,cc.jsx)(Fj,{name:"closingTime",control:w,render:function(e){e.field;return(0,cc.jsx)("input",dt({type:"time"},g("closingTime",{required:!0})))}}),_.closingTime&&(0,cc.jsx)("p",{className:"text-red-400 mt-1",children:"required"===_.closingTime.type&&"Closing time is required"})]})]}),(0,cc.jsx)(EP,{label:"Food category *",name:"foodCategory"}),(0,cc.jsx)(Fj,{name:"foodCategory",control:w,render:function(e){var t=e.field;return(0,cc.jsx)(kP,dt(dt({className:"basic-single w-full",isSearchable:!1,closeMenuOnSelect:!1,name:"foodCategory",options:RO},t),{},{isMulti:!0,required:"true",styles:{backgroundColor:"#e5e7eb"},theme:function(e){return dt(dt({},e),{},{borderRadius:5,colors:dt(dt({},e.colors),{},{primary25:"#e5e7eb",primary:"black"})})}}))}}),(0,cc.jsx)(EP,{label:"Parcel Available *",name:"parcelAvailability"}),(0,cc.jsx)(Fj,{name:"parcelAvailability",control:w,render:function(e){var t=e.field;return(0,cc.jsx)(kP,dt(dt({className:"basic-single w-full",isSearchable:!1,name:"parcelAvailability",options:DO},t),{},{required:"true",theme:function(e){return dt(dt({},e),{},{borderRadius:5,colors:dt(dt({},e.colors),{},{primary25:"#e5e7eb",primary:"black"})})}}))}}),E()?null:(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(EP,{label:"Area of Restaurant in Vidhyanagar *",name:"shopArea"}),(0,cc.jsx)(Fj,{name:"shopArea",control:w,render:function(e){var t=e.field;return(0,cc.jsx)(kP,dt(dt({className:"basic-single w-full",isSearchable:!1,closeMenuOnSelect:!0,name:"shopArea",options:LO},t),{},{isMulti:!1,required:"true",styles:{backgroundColor:"#e5e7eb"},theme:function(e){return dt(dt({},e),{},{borderRadius:5,colors:dt(dt({},e.colors),{},{primary25:"#e5e7eb",primary:"black"})})}}))}})]}),E()?null:(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(EP,{label:"Google maps location *",name:"gMapLocation"}),(0,cc.jsx)("input",dt({className:"inputTextStyle ".concat(_.gMapLocation?"errorInputStyles":""),type:"url",placeholder:"https://goo.gl/maps/...",required:!1,autoComplete:"off"},g("gMapLocation",{required:!0,pattern:/^(https?:\/\/)?(www\.)?((google\.com\/maps\/place\/)|(goo\.gl\/maps\/))([a-zA-Z0-9\-\_]+\/?)+$/}))),_.gMapLocation&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["required"===_.gMapLocation.type&&"Google maps location is required","pattern"===_.gMapLocation.type&&"Google maps location must be a valid url"]})]}),(0,cc.jsx)(EP,{label:"Upload Food Image *",name:"foodImage"}),(0,cc.jsx)(Fj,{name:"foodImage",control:w,render:function(e){e.field;return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("input",dt(dt({type:"file",accept:"image/*",multiple:!1},g("foodImage",{required:!0,validate:function(e){if(e.length>0)return e[0].size<=2097152}})),{},{className:"block w-full bg-gray-100 text-sm text-gray-500 rounded-md overflow-hidden file:mr-4 file:py-2 file:px-4 file:border-0 file:text-sm file:font-semibold file:bg-black file:text-white"})),(0,cc.jsx)("p",{className:"text-red-400 mt-1",children:_.foodImage?(0,cc.jsxs)(cc.Fragment,{children:[_.foodImage&&"required"===_.foodImage.type&&"Food image is required",_.foodImage&&"validate"===_.foodImage.type&&"Food image must be less than 2MB"]}):(0,cc.jsx)("span",{className:"text-gray-400 font-light mt-2 text-sm",children:"Less than 2MB(.jpg, .jpeg, .png)"})})]})}}),E()?null:(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(EP,{label:"Upload Restaurant Image *",name:"shopImage"}),(0,cc.jsx)(Fj,{name:"shopImage",control:w,render:function(e){e.field;return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("input",dt(dt({type:"file",name:"shopImage",accept:"image/*",multiple:!1},g("shopImage",{required:!0,validate:function(e){if(e.length>0)return e[0].size<=2097152}})),{},{className:"block w-full text-sm text-gray-500 bg-gray-100 rounded-md overflow-hidden file:mr-4 file:py-2 file:px-4 file:border-0 file:text-sm file:font-semibold file:bg-black file:text-white"})),(0,cc.jsx)("p",{className:"text-red-400 mt-1",children:_.shopImage?(0,cc.jsxs)(cc.Fragment,{children:[_.shopImage&&"required"===_.shopImage.type&&"Food image is required",_.shopImage&&"validate"===_.shopImage.type&&"Restaurant image must be less than 2MB"]}):(0,cc.jsx)("span",{className:"text-gray-400 font-light mt-2 text-sm",children:"Less than 2MB(.jpg, .jpeg, .png)"})})]})}})]}),(0,cc.jsx)(pS,{type:"submit",class:"mt-7 !py-2 !px-4",loading:o,loadingText:"Adding...",children:"Add Restaurant",icon:(0,cc.jsx)(rO,{})})]})})},OP=function(e){var t=e.img,n=e.content;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex gap-y-5 flex-col justify-center items-center mx-auto rounded-md w-full h-full",children:[(0,cc.jsx)(qO,{src:t?"/assets/".concat(t):"/assets/gigaweb/meta-image.png",className:"mx-auto w-3/4 sm:w-auto",alt:"Foodie VVN",border:"0"}),(0,cc.jsxs)("div",{className:"flex flex-col justify-center items-center p-2 sm:p-5 w-full text-center gap-y-8",children:[(0,cc.jsx)("p",{className:"text-2xl md:text-3xl font-semibold text-center",children:n}),(0,cc.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,cc.jsxs)("p",{className:"text-base sm:text-xl",children:["Don't worry, Have a cup of coffee &"," ",(0,cc.jsx)(ac,{to:"/",className:"text-black underline underline-offset-4",children:"Go back"})]}),(0,cc.jsxs)("h1",{className:"text-lg sm:text-2xl font-medium flex justify-center items-end gap-x-1",children:["Foodie VVN by"," ",(0,cc.jsx)("a",{href:"https://www.gigaweb.in/?utm_campaign=product&utm_medium=website&utm_source=foodievvn",target:"_blank",className:"text-black underline underline-offset-8",children:"Gigaweb"})]})]})]})]})})},jP=function(e){return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("p",{className:"text-lg sm:w-11/12",children:["You have already registered",(0,cc.jsx)(ac,{to:"/restaurant/".concat(e.shopId),className:"mx-2 underline text-black font-bold text-xl",children:e.addedShops[0].shopName}),"which is not verified yet. Until, You can only",(0,cc.jsx)(ac,{to:"/request/restaurant",className:"mx-2 underline text-black font-bold text-xl",children:"submit request"}),"for another one."]}),(0,cc.jsx)(OP,{img:"not-authorized.png",content:"Not authorized to add more shop."})]})},CP=function(){var t=ne((0,e.useState)([]),2),n=t[0],r=t[1],i=ne((0,e.useState)(!0),2),a=i[0],o=i[1],s=ne((0,e.useState)(!1),2),u=s[0],c=s[1],l=ne((0,e.useState)(!1),2),f=l[0],d=l[1],h=ne(ko(tS),3),p=h[0],v=h[1],m=(h[2],function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UO(t);case 2:return n=e.sent,r=n.filter((function(e){return!1===e.isPublic})),e.abrupt("return",r.length>0);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),y=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,UO(p.email);case 2:t=e.sent,r(t),setTimeout((function(){o(!1)}),500);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=5;break}return e.next=3,m(p.email);case 3:t=e.sent,d(!t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){p&&(y(),g())}),[p,u]),v?(0,cc.jsx)("div",{className:"flex min-h-screen justify-center items-center",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"Add Restaurant - Foodie VVN"})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col justify-start items-start gap-y-5 sm:w-3/4 mx-auto layout-padding",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold",children:"Add a Restaurant"}),(0,cc.jsx)("p",{className:"text-lg sm:w-11/12",children:p?"We use two step verification process to verify restaurant details before showing it to public. Once added restaurant will be verified, you will be notified by email.":"Please login to add a restaurant."}),p?a?(0,cc.jsx)(cS,{color:"light"}):pO(p.email)||0===n.length||f?(0,cc.jsx)(TP,{formDataAdded:u,setFormDataAdded:c}):(0,cc.jsx)(jP,{shopId:n[0].shopId,addedShops:n}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(lS,{})})]})]})},IP=function(){var e=Lu().pathname.split("/")[2];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-row gap-2 justify-between items-stretch rounded-md text-center bg-gray-200 p-1.5",children:[{name:"Requested",path:"requested-restaurants"},{name:"Contacts",path:"contacts"},{name:"Non-verified",path:"non-verified-restaurants"}].map((function(t,n){return(0,cc.jsx)(ac,{to:t.path,className:"flex items-center justify-center p-2 duration-300 w-full rounded-md ".concat(e===t.path?"bg-gray-50 px-2 md:px-10 font-medium":"hover:bg-gray-100"),children:t.name},n)}))})})},NP=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"relative h-full w-full min-h-screen",children:(0,cc.jsxs)("div",{className:"flex flex-col gap-7 layout-padding",children:[(0,cc.jsx)(IP,{}),(0,cc.jsx)(Qu,{})]})})})},AP=[{name:"name",label:"Your Name",placeholder:"John Doe"},{name:"email",label:"Email Address",type:"email",placeholder:"[email protected]"},{name:"contact",label:"Phone No.",placeholder:"+919876543210"},{name:"subject",label:"Subject",placeholder:"I have an issue with..."},{name:"message",label:"Message",placeholder:"Additional Information you would like to add..."}],PP=function(e){var t=e.item,n=t.label,r=t.name,i=t.type,a=t.placeholder;return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("label",{className:"mt-4 font-medium",htmlFor:r,children:n}),(0,cc.jsx)("input",{type:i||"text",required:!0,name:r,autoComplete:"off",cla
2ssName:"inputTextStyle",placeholder:a})]})},RP=function(){var t=ne(ko(tS),3),n=t[0],r=t[1],i=(t[2],ne((0,e.useState)(!1),2)),a=i[0],o=i[1],s=ne((0,e.useState)({}),2),u=s[0],c=s[1];(0,e.useEffect)((function(){n||r||hs.error("Login to leave a message.")}),[n]);var l=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iS("contact",u);case 2:e.sent?(o(!1),hs.success("Message sent successfully.")):(o(!1),hs.error("Message not sent."));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,e.useEffect)((function(){u.addedBy&&u.name&&u.timestamp&&u.email&&u.subject&&u.message?l():a&&(o(!1),hs.error("Something went wrong. Message not sent."))}),[u]);var f=function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),o(!0),c(Object.fromEntries(new FormData(t.target))),c((function(e){return dt(dt({},e),{},{addedBy:n.email,timestamp:px()})})),xo.ZP.event({category:"Contact",action:"Contact response",label:"Contact response by ".concat(n.email)}),t.target.reset();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"Contact - Foodie VVN"})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col justify-start items-start gap-y-5 sm:w-3/4 py-7 mx-auto layout-padding",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold",children:"Leave a message"}),r?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("p",{className:"text-lg text-gray-500 w-full",children:n?"Fill out the form to leave a message.":"Please login to leave a message."}),n?(0,cc.jsxs)("form",{onSubmit:f,className:"flex flex-col justify-start items-start gap-y-2 w-full",children:[AP.map((function(e,t){return(0,cc.jsx)(PP,{item:e},t)})),(0,cc.jsx)(pS,{type:"submit",class:"mt-7 !py-2 !px-4",loading:a,loadingText:"Sending...",children:"Leave a message",icon:(0,cc.jsx)(jO,{})})]}):(0,cc.jsx)(lS,{})]})]})]})},LP=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{to:e.link,className:"group relative flex flex-col justify-start items-center w-60 sm:w-56 md:w-48 h-[20rem] sm:h-72 bg-gray-100 rounded-md overflow-hidden",children:[(0,cc.jsx)(qO,{src:e.image,className:"w-full h-full object-cover group-hover:scale-105 !duration-300"}),(0,cc.jsx)("div",{className:"group-hover:h-1/3 duration-300 bg-gradient-to-t flex flex-col justify-end items-start p-3 h-20 from-dark to-transparent w-full text-white absolute bottom-0",children:(0,cc.jsx)("p",{className:"font-light text-lg",children:e.name})})]})})},DP=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start",id:"food-menu",children:[(0,cc.jsx)("h2",{className:"text-2xl font-semibold heading-padding",children:"\ud83c\udf54 Featured Menu"}),(0,cc.jsx)("div",{className:"w-full flex overflow-auto",children:(0,cc.jsx)("div",{className:"grid grid-flow-col gap-3 overflow-x-auto layout-padding overflow-auto",children:[{name:"Gujarati Dishes",link:"/food/gujarati",image:"/assets/food/gujarati.jpg"},{name:"Punjabi Dishes",link:"/food/punjabi",image:"/assets/food/punjabi.jpg"},{name:"Chinese Dishes",link:"/food/chinese",image:"/assets/food/chinese.jpg"},{name:"South Indian",link:"/food/south-indian",image:"/assets/food/south-indian.jpg"},{name:"Fast Foods",link:"/food/fast-food",image:"/assets/food/fastfood.jpg"}].map((function(e,t){return(0,cc.jsx)(LP,{link:e.link,name:e.name,image:e.image},t)}))})})]})})},MP=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{to:e.item.link,className:"h-[17rem] sm:h-auto group relative flex flex-col justify-start items-center bg-gray-100 rounded-md overflow-hidden",children:[(0,cc.jsx)(qO,{src:e.item.image,alt:"1",className:"w-full h-full object-cover group-hover:scale-105 duration-300"}),(0,cc.jsxs)("div",{className:"bg-gradient-to-t flex flex-col justify-end items-start p-3 h-32 from-dark to-transparent w-full text-white absolute bottom-0",children:[(0,cc.jsx)("p",{className:"font-normal sm:font-light text-xl sm:text-lg",children:e.item.name}),(0,cc.jsxs)("div",{className:"flex flex-row flex-wrap justify-start items-center text-white/80 gap-1",children:[(0,cc.jsx)("span",{className:"font-light text-sm",children:e.item.price}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),(0,cc.jsxs)("span",{className:"font-light text-sm flex gap-x-1 items-center",children:[(0,cc.jsx)(kO,{})," ",e.item.locationArea]}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),(0,cc.jsxs)("span",{className:"font-light text-sm flex gap-x-1 items-center",children:["View More ",(0,cc.jsx)(JT,{})]})]})]})]})})},FP=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3 layout-padding",children:[(0,cc.jsx)("h2",{className:"text-2xl font-semibold",children:"\ud83d\ude0b Gujarati Lounge"}),(0,cc.jsx)("div",{className:"grid grid-rows-2 sm:grid-flow-col gap-5 sm:gap-3",children:[{name:"Gajanan Foodland",image:"https://firebasestorage.googleapis.com/v0/b/foodie-vvn.appspot.com/o/Gajanan%20foodland%2FGujarati-Food-1.jpg?alt=media&token=e6a8d261-252b-4ff7-8ea7-09ae7857f26b",price:"\u20b980",locationArea:"Nana Bazaar",link:"/restaurant/gajanan-foodland"},{name:"Nutan Club",image:"https://firebasestorage.googleapis.com/v0/b/foodie-vvn.appspot.com/o/Nutan%20Club%2F2022-11-21.jpg?alt=media&token=f55c8c9d-d9eb-40e3-8a1e-8886d852c8ab",price:"\u20b980",locationArea:"Nana Bazaar",link:"/restaurant/nutan-club"},{name:"Jay Bhavani Nasta House",image:"https://firebasestorage.googleapis.com/v0/b/foodie-vvn.appspot.com/o/Jay%20Bhavani%20Nasta%20House%2Ffood.png?alt=media&token=ebdfeb6f-7712-486d-91ba-654a70d3c7ea",price:"\u20b950",locationArea:"Shaheed Chowk",link:"/restaurant/jay-bhavani-nasta-house"},{name:"Gayatri Dinning Hall",image:"https://firebasestorage.googleapis.com/v0/b/foodie-vvn.appspot.com/o/Gayatri%20Dinning%20Hall%2F2022-07-13.jpg?alt=media&token=92ea33b1-4642-4151-ae35-6bc9535cc43e",price:"\u20b980",locationArea:"Nana Bazaar",link:"/restaurant/gayatri-dinning-hall"}].map((function(e,t){return(0,cc.jsx)(MP,{item:e},t)}))})]})})},VP=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r=Fw(nS,"shops"),i=Uk(r,Wk("verifiedAt","desc"),Kk(t)),e.next=5,sx(i);case 5:if(e.sent.forEach((function(e){n.push(e.data())})),0!==n.length){e.next=9;break}return e.abrupt("return",null);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),UP=function(e){var t=e.shopData;return(0,cc.jsxs)(ac,{to:"/restaurant/".concat(t.shopId),className:"h-[17rem] sm:h-auto group relative flex flex-col justify-start items-center bg-gray-100 rounded-md overflow-hidden",children:[(0,cc.jsx)(qO,{src:t.shopImageUrl,alt:"1",className:"w-full h-full object-cover group-hover:scale-105 duration-300"}),(0,cc.jsxs)("div",{className:"bg-gradient-to-t flex flex-col justify-end items-start p-3 h-32 from-dark to-transparent w-full text-white absolute bottom-0",children:[(0,cc.jsx)("p",{className:"font-normal sm:font-light text-xl sm:text-lg",children:t.shopName}),(0,cc.jsxs)("div",{className:"flex flex-row flex-wrap justify-start items-center text-white/80 gap-1",children:[(0,cc.jsxs)("span",{className:"font-light text-sm flex items-center flex-wrap gap-x-1",children:[(0,cc.jsx)(eO,{}),t.shopType.label]}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),(0,cc.jsxs)("span",{className:"font-light text-sm flex items-center flex-wrap gap-x-1",children:[(0,cc.jsx)(kO,{}),t.shopArea.label]}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),(0,cc.jsxs)("span",{className:"font-light text-sm flex items-center gap-x-1 flex-wrap",children:["View More ",(0,cc.jsx)(JT,{})]})]})]})]})},zP=function(){var t=ne((0,e.useState)([]),2),n=t[0],r=t[1];return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,VP(2);case 2:t=e.sent,r(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3 layout-padding",children:[(0,cc.jsx)("h2",{className:"text-2xl font-semibold",children:"\u2705 Recently Verified"}),(0,cc.jsx)("div",{className:"grid grid-rows-1 sm:grid-flow-col gap-5 sm:gap-3",children:n.map((function(e,t){return(0,cc.jsx)(UP,{shopData:e},t)}))})]})})},BP=function(e){var t=e.label,n=e.link,r=e.img;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(ac,{to:n,className:"p-1 sm:p-2 hover:bg-gray-100 focus:bg-gray-100 duration-150 rounded-md",children:(0,cc.jsxs)("div",{className:"flex flex-col justify-center items-center gap-1",children:[(0,cc.jsx)(qO,{src:r,className:"rounded-full",alt:"Foodie VVN"}),(0,cc.jsx)("p",{className:"text-base sm:text-lg text-center",children:t})]})})})},qP=function(){var e=[{label:PO[0].label,link:"/category/".concat(PO[0].value),img:"/assets/restaurants/restaurant.png"},{label:PO[1].label,link:"/category/".concat(PO[1].value),img:"/assets/restaurants/cafe.png"},{label:PO[2].label,link:"/category/".concat(PO[2].value),img:"/assets/restaurants/lounge.png"},{label:PO[3].label.split(" ")[0],link:"/category/".concat(PO[3].value),img:"/assets/restaurants/tiffin.png"}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col gap-3 layout-padding -mb-4",children:[(0,cc.jsx)("h3",{className:"text-2xl font-medium flex gap-2 items-center",children:"\ud83c\udf74 V
2arious Category"}),(0,cc.jsx)("div",{className:"grid grid-flow-col grid-cols-4 gap-2",children:e.map((function(e,t){return(0,cc.jsx)(BP,dt({},e),t)}))})]})})};function HP(e){return mc({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M170.718 216.482L141.6 245.6l93.6 93.6 208-208-29.118-29.118L235.2 279.918l-64.482-63.436zM422.4 256c0 91.518-74.883 166.4-166.4 166.4S89.6 347.518 89.6 256 164.482 89.6 256 89.6c15.6 0 31.2 2.082 45.764 6.241L334 63.6C310.082 53.2 284.082 48 256 48 141.6 48 48 141.6 48 256s93.6 208 208 208 208-93.6 208-208h-41.6z"}}]})(e)}var WP=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{to:e.item.link,className:"group relative flex flex-col justify-start items-center bg-gray-100 rounded-md w-full overflow-hidden",children:[(0,cc.jsx)(qO,{src:e.item.image,alt:"1",className:"w-full h-full object-cover group-hover:scale-105 duration-300"}),(0,cc.jsxs)("div",{className:"bg-gradient-to-t flex flex-col justify-end items-start p-3 h-32 from-dark to-transparent w-full text-white absolute bottom-0",children:[(0,cc.jsx)("p",{className:"font-normal sm:font-light text-xl sm:text-lg",children:e.item.name}),(0,cc.jsxs)("div",{className:"flex flex-row justify-start items-center text-white/80 gap-x-1",children:[(0,cc.jsx)("span",{className:"font-light text-sm",children:e.item.price}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),e.item.parcel?(0,cc.jsxs)("span",{className:"font-light text-sm flex gap-x-1 items-center",children:["Parcel ",(0,cc.jsx)(HP,{})]}):(0,cc.jsxs)("span",{className:"font-light text-sm flex gap-x-1 items-center",children:["Parcel ",(0,cc.jsx)(fS,{})]}),(0,cc.jsx)("span",{className:"font-light text-sm",children:"|"}),(0,cc.jsxs)("span",{className:"font-light text-sm flex gap-x-1 items-center",children:["View More ",(0,cc.jsx)(JT,{})]})]})]})]})})},GP=function(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3 layout-padding",children:[(0,cc.jsx)("h2",{className:"text-2xl font-semibold",children:"\ud83c\udf7d\ufe0f Tiffin Services"}),(0,cc.jsx)("div",{className:"grid grid-rows-1 sm:grid-flow-col gap-5 sm:gap-3 w-full",children:[{name:"Radhe tiffin service",image:"https://assets.gqindia.com/photos/6086c49078866ae25e37741e/16:9/w_2560%2Cc_limit/Tiffin%2520Service%2520COVID.jpeg",price:"\u20b960",parcel:!0,link:"/restaurant/radhe-tiffin-service"}].map((function(e,t){return(0,cc.jsx)(WP,{item:e},t)}))})]})})},KP=function(e){var t=e.label,n=e.link;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(ac,{to:n,className:"py-2 px-3 bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 duration-150 rounded-md",children:t})})},QP=function(){var e=[{label:LO[0].label,link:"/area/".concat(LO[0].value)},{label:LO[1].label,link:"/area/".concat(LO[1].value)},{label:LO[2].label,link:"/area/".concat(LO[2].value)},{label:LO[3].label,link:"/area/".concat(LO[3].value)},{label:LO[4].label,link:"/area/".concat(LO[4].value)},{label:LO[5].label,link:"/area/".concat(LO[5].value)}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col gap-3 layout-padding -mb-4",children:[(0,cc.jsx)("h3",{className:"text-2xl font-medium flex gap-2 items-center",children:"\ud83d\udccd Area wise restaurants"}),(0,cc.jsx)("div",{className:"flex flex-row flex-wrap gap-2 lg:gap-1",children:e.map((function(e,t){return(0,cc.jsx)(KP,dt({},e),t)}))})]})})};function $P(){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col gap-y-0 pb-7 sm:pb-0",children:[(0,cc.jsx)(qP,{}),(0,cc.jsx)(FP,{}),(0,cc.jsx)(GP,{}),(0,cc.jsx)(zP,{}),(0,cc.jsx)(QP,{}),(0,cc.jsx)(DP,{})]})})}var YP=function(){return(0,e.useEffect)((function(){Us.error("Page not found, Please check the URL.")}),[]),(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding min-h-[90vh] flex justify-center items-center",children:(0,cc.jsx)(OP,{img:"404.png",content:"Page not found, Please check the URL"})})})},XP=[{name:"shopName",label:"Restaurant Name",placeholder:"Abc Xyz"},{name:"shopAddress",label:"Restaurant Address",placeholder:"123, Abc Street, Xyz City"},{name:"shopPhone",label:"Owner Phone",placeholder:"+91 1234567890"},{name:"shopEmail",label:"Owner Email",type:"email",placeholder:"[email protected]"}],JP=function(e){var t=e.item,n=t.label,r=t.name,i=t.type,a=t.placeholder;return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("label",{className:"mt-4 font-medium",htmlFor:r,children:n}),(0,cc.jsx)("input",{type:i||"text",required:!0,name:r,autoComplete:"off",className:"inputTextStyle",placeholder:a})]})},ZP=function(){var t=ne(ko(tS),3),n=t[0],r=t[1],i=(t[2],ne((0,e.useState)(!1),2)),a=i[0],o=i[1],s=ne((0,e.useState)({}),2),u=s[0],c=s[1];(0,e.useEffect)((function(){n||r||Us.error("Login to request for shop.")}),[n]),(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.addedBy||!u.shopEmail){e.next=5;break}return e.next=3,iS("requestedShops",u);case 3:e.sent&&(o(!1),Us.success("Request sent successfully."));case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[u]);var l=function(){var e=me(pe().mark((function e(t){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.preventDefault(),o(!0),c(Object.fromEntries(new FormData(t.target))),c((function(e){return dt(dt({},e),{},{addedBy:n.email,timestamp:px()})})),xo.ZP.event({category:"Request restaurant",action:"Requested for add a restaurant",label:"Requested restaurant by ".concat(n.email)}),t.target.reset();case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"Request Restaurant - Foodie VVN"})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col justify-start items-start gap-y-5 sm:w-3/4 mx-auto layout-padding",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold",children:"Request to add a Restaurant"}),(0,cc.jsxs)("p",{className:"text-lg text-gray-500",children:["If you are a restaurant owner and want to add your shop, you can add shop before requesting to",(0,cc.jsx)(ac,{to:"/register/restaurant",className:"ml-1 text-black font-medium underline underline-offset-4",children:"add a restaurant."})]}),r?(0,cc.jsx)(cS,{color:"light"}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("p",{className:"text-lg w-full",children:n?"Please fill the form below to request to add a restaurant. We will review your request and add the restaurant if it is valid.":"Please login to request for a restaurant."}),n?(0,cc.jsxs)("form",{onSubmit:l,className:"flex flex-col justify-start items-start gap-y-2 w-full pb-10",children:[XP.map((function(e,t){return(0,cc.jsx)(JP,{item:e},t)})),(0,cc.jsx)(pS,{type:"submit",class:"mt-7 !py-2 !px-4",loading:a,loadingText:"Sending...",children:"Send Request",icon:(0,cc.jsx)(jO,{})})]}):(0,cc.jsx)(lS,{})]})]})]})},eR=function(e){return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)(ac,{to:e.link,className:"flex flex-row justify-start items-center w-full bg-gray-50 rounded-md overflow-hidden pl-2 py-2 sm:py-0",children:[(0,cc.jsx)("div",{className:"w-2/5 h-32 sm:w-2/5 sm:h-32 rounded-md overflow-hidden bg-gray-200",children:(0,cc.jsx)(qO,{className:"w-full h-full object-cover",src:e.image,alt:e.shopName})}),(0,cc.jsxs)("div",{className:"w-3/5 sm:w-3/5 p-2 sm:p-5 flex flex-col gap-y-2",children:[(0,cc.jsx)("h3",{className:"text-lg sm:text-2xl font-medium",children:e.shopName}),(0,cc.jsxs)("div",{className:"flex flex-row flex-wrap gap-2 text-sm sm:text-base",children:[(0,cc.jsxs)("span",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(lO,{})," ",e.shopArea.label]}),(0,cc.jsx)("span",{children:"|"}),(0,cc.jsxs)("span",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(cO,{})," ",e.shopType.label]})]}),(0,cc.jsx)("div",{className:"text-base flex flex-row flex-wrap gap-1",children:e.foodCategory.map((function(e,t){return(0,cc.jsx)("span",{className:"text-sm rounded-md w-fit py-1 px-2 bg-gray-200",children:e.label},t)}))})]})]})})},tR=function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uk(Fw(nS,"shops"),Bk("foodTags","array-contains",t)),e.next=3,sx(n);
2case 3:if(!(r=e.sent).empty){e.next=6;break}return e.abrupt("return",[]);case 6:return e.abrupt("return",r.docs.map((function(e){return e.data()})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),nR=function(){var t,n=Fu().tag,r=ne((0,e.useState)([]),2),i=r[0],a=r[1],o=ne((0,e.useState)(!0),2),s=o[0],u=o[1];return(0,e.useEffect)((function(){a([]);var e=function(){var e=me(pe().mark((function e(){var t,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,tR(n);case 3:t=e.sent,r=t.filter((function(e){return e.isPublic})),a(r),setTimeout((function(){return u(!1)}),500);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();"other"!==n?e():(a([]),u(!1))}),[n]),(0,e.useEffect)((function(){a([])}),[]),s?(0,cc.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsxs)("title",{children:[n," Food - Foodie VVN"]})}),(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding",children:(0,cc.jsx)("div",{className:"flex flex-col justify-start items-start gap-y-4",children:0===i.length?(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(OP,{img:"error.png",content:"No restaurant founded for ".concat(n)})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-medium flex gap-3",children:[i.length," ",i.length>1?"results ":"result ","founded for :"," ",null===(t=RO.filter((function(e){return e.value===n}))[0])||void 0===t?void 0:t.label," ","Foods"]}),(0,cc.jsx)("div",{className:"flex flex-col gap-y-3 mt-4 w-full",children:i.map((function(e){return(0,cc.jsx)(eR,dt({image:e.foodImageUrl,link:"/restaurant/".concat(e.shopId)},e),e.shopId)}))})]})})}),(0,cc.jsx)(DP,{})]})},rR=function(){var e=Du();return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"lg:hidden relative flex flex-col justify-center items-start gap-2 w-full",children:(0,cc.jsxs)("form",{className:"relative w-full flex flex-col justify-center items-start",onSubmit:function(t){t.preventDefault(),e("/search?query=".concat(t.target.query.value),{replace:!0})},children:[(0,cc.jsx)("input",{type:"search",name:"query",id:"search",autoComplete:"off",placeholder:"Search your favorite restaurant...",className:"py-2 pr-3 pl-12 w-full bg-gray-100 rounded-md focus:ring-2 ring-offset-0 ring-gray-200 ring-offset-dark/10 duration-200"}),(0,cc.jsx)(wc,{className:"absolute left-4"})]})})})},iR=function(){var t=ne((0,e.useState)(!1),2),n=t[0],r=t[1],i=ne((0,e.useState)([]),2),a=i[0],o=i[1],s=ne(uc(),1)[0].get("query");return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t,n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.next=3,wS("shops");case 3:if(t=e.sent){e.next=8;break}return e.abrupt("return",o(null));case 8:n=t.filter((function(e){return e.isPublic})),o(n?n.filter((function(e){return e.shopName.toLowerCase().includes(s.toLowerCase())?(setTimeout((function(){r(!1)}),500),e):(setTimeout((function(){r(!1)}),500),null)})):null),setTimeout((function(){r(!1)}),500);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();s&&e()}),[s]),n?(0,cc.jsx)("div",{className:"flex justify-start items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"Search - Foodie VVN"})}),(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding",children:s?0===a.length?(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col gap-y-4",children:[(0,cc.jsx)(rR,{}),(0,cc.jsx)(OP,{img:"error.png",content:"No restaurant found for : ".concat(s)})]})}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3",children:[(0,cc.jsx)(rR,{}),(0,cc.jsxs)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-medium flex gap-3",children:[a.length," ",a.length>1?"results ":"result ","founded for : ",s]}),(0,cc.jsx)("div",{className:"flex flex-col justify-start items-start gap-y-3 w-full",children:a.map((function(e){return(0,cc.jsx)(eR,dt({image:e.shopImageUrl||e.foodImageUrl,link:"/restaurant/".concat(e.shopId)},e),e.shopId)}))})]})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(rR,{}
2),(0,cc.jsx)("p",{className:"text-lg md:text-2xl font-medium mt-4",children:"Search your favorite restaurants."})]})}),(0,cc.jsx)(qP,{})]})},aR=function(){var e=me(pe().mark((function e(t){var n,r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=[],r=Fw(nS,"shops"),i=Uk(r,Bk("shopType","==",t)),e.next=5,sx(i);case 5:if(e.sent.forEach((function(e){n.push(e.data())})),0!==n.length){e.next=9;break}return e.abrupt("return",null);case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),oR=function(){var t,n=Fu().category,r=ne((0,e.useState)([]),2),i=r[0],a=r[1],o=ne((0,e.useState)(!0),2),s=o[0],u=o[1];return(0,e.useEffect)((function(){a([]);var e=function(){var e=me(pe().mark((function e(t){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,aR(t);case 3:if(null!==(r=e.sent)){e.next=8;break}return u(!1),hs.error("".concat(n[0].toUpperCase()+n.slice(1)," not found.")),e.abrupt("return");case 8:i=r.filter((function(e){return e.isPublic})),a(i),setTimeout((function(){return u(!1)}),500);case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),t=PO.filter((function(e){return e.value===n}));t.length>0?e(t[0]):(u(!1),hs.error("Invalid category"))}),[n]),s?(0,cc.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsxs)("title",{children:[n," Category - Foodie VVN"]})}),(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn flex flex-col justify-start items-start gap-y-4 layout-padding",children:0===i.length?(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(OP,{img:"error.png",content:"No result founded for ".concat(n)})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-medium flex gap-3",children:[i.length," ",i.length>1?"results ":"result ","founded for :"," ",null===(t=PO.find((function(e){return e.value===n})))||void 0===t?void 0:t.label," ","category"]}),(0,cc.jsx)("div",{className:"flex flex-col gap-y-3 mt-4 w-full",children:i.map((function(e){return(0,cc.jsx)(eR,dt({image:e.shopImageUrl||e.foodImageUrl,link:"/restaurant/".concat(e.shopId)},e),e.shopId)}))})]})}),(0,cc.jsx)("div",{className:"my-7",children:(0,cc.jsx)(qP,{})})]})},sR=function(){var e=me(pe().mark((function e(t){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Uk(Fw(nS,"shops"),Bk("shopAreaSlug","==",t)),e.next=3,sx(n);case 3:if(!(r=e.sent).empty){e.next=6;break}return e.abrupt("return",[]);case 6:return e.abrupt("return",r.docs.map((function(e){return e.data()})));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),uR=function(){var t,n=Fu().areaSlug,r=ne((0,e.useState)([]),2),i=r[0],a=r[1],o=ne((0,e.useState)(!0),2),s=o[0],u=o[1];return(0,e.useEffect)((function(){a([]);var e=function(){var e=me(pe().mark((function e(){var t,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,sR(n);case 3:t=e.sent,r=t.filter((function(e){return e.isPublic})),a(r),setTimeout((function(){return u(!1)}),500);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[n]),(0,e.useEffect)((function(){a([])}),[]),s?(0,cc.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsxs)("title",{children:[n," Area - Foodie VVN"]})}),(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding",children:(0,cc.jsx)("div",{className:"flex flex-col justify-start items-start gap-y-4",children:0===i.length?(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(OP,{img:"error.png",content:"No restaurant founded for ".concat(n)})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)("h1",{className:"text-xl sm:text-2xl md:text-3xl font-medium flex gap-3",children:[i.length," ",i.length>1?"results ":"result ","founded around :"," ",null===(t=LO.filter((function(e){return e.value===n}))[0])||void 0===t?void 0:t.label," ","Area"]}),(0,cc.jsx)("div",{className:"flex flex-col gap-y-3 mt-4 w-full",children:i.map((function(e){return(0,cc.jsx)(eR,dt({image:e.shopImageUrl,link:"/restaurant/".concat(e.shopId)},e),e.shopId)}))})]})})}),(0,cc.jsx)("div",{className:"pb-5",children:(0,cc.jsx)(QP,{})})]})},cR=n(878),lR=n.n(cR),fR=n(33),dR=n.n(fR)()(lR()),hR=function(e){var t=[{url:e.foodImage},{url:e.shopImage}];return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"rounded-md overflow-hidden",children:(0,cc.jsx)(dR,{play:!0,mobileTouch:!0,buttons:!1,cancelOnInteraction:!1,interval:3e3,bullets:!1,children:t.map((function(e,t){return(0,cc.jsx)("div",{className:"w-full h-full",children:(0,cc.jsx)(qO,{src:e.url,alt:"slider",className:"w-full h-full object-cover"})},t)}))})})})},pR=function(){var e=me(pe().mark((function e(t,n,r,i){var a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,a=Vw(nS,t,n),e.t0=i,e.next="add"===e.t0?5:"remove"===e.t0?8:11;break;case 5:return e.next=7,cx(a,{savedShop:vx(r)});case 7:case 10:return e.abrupt("return",!0);case 8:return e.next=10,cx(a,{savedShop:mx(r)});case 11:e.next=17;break;case 13:return e.prev=13,e.t1=e.catch(0),console.log(e.t1),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t,n,r,i){return e.apply(this,arguments)}}(),vR=function(){var e=me(pe().mark((function e(t){var n;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,bS("foodMenu",t);case 2:return n=e.sent,e.abrupt("return",n);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),mR=function(){var e=me(pe().mark((function e(t,n){var r,i,a;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Uk(Fw(nS,"shops"),Bk("addedBy","==",n),Bk("shopId","==",t)),e.next=3,sx(r);case 3:return i=e.sent,a=i.docs.map((function(e){return e.data()})),e.abrupt("return",a.length>0);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),yR=n(946),gR=function(e){var t=e.foodMenuData,n=e.time;return(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-1",children:[(0,cc.jsx)("h3",{className:"text-lg font-medium",children:n}),0===t.length?(0,cc.jsx)("p",{className:"text-gray-500",children:"No any updates."}):(0,cc.jsx)("div",{className:"flex flex-row flex-wrap justify-start items-start gap-1",children:t.map((function(e,t){return(0,cc.jsx)(MO,{label:e.label,disable:!0},t)}
2))})]})},bR=function(){var t=Fu().id,n=ne((0,e.useState)(null),2),r=n[0],i=n[1],a=ne((0,e.useState)([]),2),o=a[0],s=a[1],u=ne((0,e.useState)(""),2),c=u[0],l=u[1],f=ne(ko(tS),3),d=f[0],h=f[1],p=(f[2],(0,e.useContext)(bO)),v=p.savedShops,m=p.setSavedShops,y=ne((0,e.useState)(!1),2),g=y[0],b=y[1],w=ne((0,e.useState)(!1),2),k=w[0],x=w[1],_=ne((0,e.useState)(!0),2),S=_[0],E=_[1],T=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isPublic){e.next=12;break}if(10!==v.length){e.next=4;break}return hs.error("You can't save more than 10 shops."),e.abrupt("return");case 4:return e.next=6,pR("users",d.email,t,"add");case 6:if(!e.sent){e.next=10;break}m([].concat(ke(v),[t])),hs.success("".concat(r.shopName," added in your save list.")),b(!0);case 10:e.next=13;break;case 12:hs.error("Can't save non verified restaurants.");case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=me(pe().mark((function e(){return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,pR("users",d.email,t,"remove");case 2:if(!e.sent){e.next=6;break}m(v.filter((function(e){return e!==t}))),hs.success("".concat(r.shopName," removed from your save list.")),b(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){d||b(!1),null!==v&&void 0!==v&&v.includes(t)?b(!0):b(!1)}),[v,t,d]),(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var n,r;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i(null),E(!0),e.next=4,SO(t);case 4:if(null!==(n=e.sent)){e.next=12;break}return l("Please check the restaurant id and try again."),hs.error("Restaurant not found."),E(!1),e.abrupt("return");case 12:if(!n[0].isPublic){e.next=16;break}i(n[0]),e.next=32;break;case 16:if(!d){e.next=30;break}if(e.t0=pO(d.email),e.t0){e.next=22;break}return e.next=21,mR(t,d.email);case 21:e.t0=e.sent;case 22:if(!e.t0){e.next=26;break}i(n[0]),e.next=28;break;case 26:l("Restaurant is not verified yet."),hs.error("Restaurant is not verified yet.");case 28:e.next=32;break;case 30:l("This restaurant is not verified yet."),hs.error("This restaurant is not verified yet.");case 32:return e.next=34,vR(t);case 34:r=e.sent,s(r),setTimeout((function(){E(!1)}),500);case 37:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();h||e()}),[d,t,h]),S?(0,cc.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding",children:r?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsxs)(J,{children:[(0,cc.jsxs)("title",{children:[r.shopName," - Foodie VVN"]}),(0,cc.jsx)("meta",{property:"og:title",content:"\ud83d\udc40 Take a Look at this restaurant - ".concat(r.shopName),"data-react-helmet":"true"}),(0,cc.jsx)("meta",{property:"og:description",content:r.shopAddress,"data-react-helmet":"true"}),(0,cc.jsx)("meta",{name:"twitter:title",content:"\ud83d\udc40 Take a Look at this restaurant - ".concat(r.shopName),"data-react-helmet":"true"}),(0,cc.jsx)("meta",{name:"twitter:description",content:r.shopAddress,"data-react-helmet":"true"})]}),(0,cc.jsx)(hR,{shopImage:"tiffin-service"!==r.shopType.value?r.shopImageUrl:"https://assets.gqindia.com/photos/6086c49078866ae25e37741e/16:9/w_2560%2Cc_limit/Tiffin%2520Service%2520COVID.jpeg",foodImage:r.foodImageUrl}),(0,cc.jsxs)("div",{className:"mt-7 flex flex-col justify-start items-start gap-y-3",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold",children:r.shopName}),"tiffin-service"!==r.shopType.value?(0,cc.jsx)("p",{className:"text-lg",children:r.shopAddress}):null,(0,cc.jsxs)("div",{className:"flex flex-row justify-start items-start gap-2 flex-wrap",children:[(0,cc.jsxs)("p",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(eO,{}),r.shopType.label]}),"tiffin-service"!==r.shopType.value&&"lounge"!==r.shopType.value||null===o||void 0===o||!o.foodMenu.foodPrice?null:(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("p",{children:"|"}),(0,cc.jsxs)("p",{className:"flex gap-x-1 justify-center items-center",children:["\u20b9",null===o||void 0===o?void 0:o.foodMenu.foodPrice]})]}),"tiffin-service"!==r.shopType.value?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("p",{children:"|"}),(0,cc.jsxs)("p",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(ZT,{}),r.openingTime," to ",r.closingTime," (",xO(r.openingTime,r.closingTime)?"Open now":"Closed",")"]}),(0,cc.jsx)("p",{children:"|"}),(0,cc.jsxs)("p",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(kO,{})," ",r.shopArea.label]})]}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)("p",{children:"|"}),(0,cc.jsxs)("p",{className:"flex gap-x-1 justify-center items-center",children:[(0,cc.jsx)(wO,{})," ",r.ownerName]})]}),(0,cc.jsx)("p",{children:"|"}),(0,cc.jsx)("p",{className:"flex gap-x-1 justify-center items-center",children:r.parcelAvailability&&r.parcelAvailability.value?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(HP,{})," Parcel"]}):(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(fS,{})," Parcel"]})})]}),(0,cc.jsx)("div",{className:"flex flex-row justify-start items-start gap-2 flex-wrap",children:r.foodCategory.map((function(e,t){return(0,cc.jsx)(MO,{label:e.label,value:e.value,disable:"Other"===e.label,large:"Other"===e.label},t)}))}),(0,cc.jsxs)("div",{className:"mt-2 flex flex-row justify-start flex-wrap items-start gap-2",children:["tiffin-service"!==r.shopType.value?(0,cc.jsx)(vS,{icon:(0,cc.jsx)(OO,{}),link:r.gMapLocation,external:!0,children:"Visit Restaurant",target:"_blank",mode:"dark"}):null,r.shopContact&&(0,cc.jsx)(vS,{icon:(0,cc.jsx)(bc,{}),link:"tel:".concat(r.shopContact),external:!0,children:"Call",mode:"dark"}),r.addedBy===(null===d||void 0===d?void 0:d.email)&&(0,cc.jsx)(vS,{mode:"Dark",icon:(0,cc.jsx)(nO,{}),link:"/restaurant/update-menu/".concat(r.shopId),children:"Update food"}),(0,cc.jsx)(pS,{mode:"light",disabled:!d,onClick:function(){x(!0),g?O():T(),setTimeout((function(){x(!1)}),500)},loading:k,loadingText:"Updating...",icon:g?(0,cc.jsx)(CO,{}):(0,cc.jsx)(IO,{}),children:g?"Saved":"Save"}),(0,cc.jsx)(pS,{mode:"light",className:"rounded-md bg-gray-100 p-2 flex justify-center items-center gap-2",icon:(0,cc.jsx)(sO,{}),children:"Share",onClick:function(){return(0,yR.g)({text:"".concat(r.shopName," - Foodie VVN"),url:"https://foodievvn.com/restaurant/".concat(r.shopId),title:"\ud83d\udc40 Take a Look at this ".concat(r.shopType.label," in Foodie VVN - ").concat(r.shopName)})}})]}),o?(0,cc.jsxs)("div",{className:"mt-4 flex flex-col justify-start items-start gap-y-5",children:[(0,cc.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,cc.jsxs)("h2",{className:"text-2xl font-semibold flex justify-start items-center gap-x-2",children:[(0,cc.jsx)(AO,{}),"Food Menu"]}),(0,cc.jsxs)("span",{className:"text-gray-700 font-normal text-sm",children:["Last Updated, ",PT(o.updatedAt.seconds)]})]}),(0,cc.jsx)("div",{className:"flex flex-col justify-start items-start gap-5",children:"tiffin-service"===(null===r||void 0===r?void 0:r.shopType.value)||"lounge"===(null===r||void 0===r?void 0:r.shopType.value)?(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(gR,{foodMenuData:o.foodMenu.breakfastFood,time:"Breakfast"}),(0,cc.jsx)(gR,{foodMenuData:o.foodMenu.lunchFood,time:"Lunch"}),(0,cc.jsx)(gR,{foodMenuData:o.foodMenu.dinnerFood,time:"Dinner"})]}):(0,cc.jsx)(gR,{foodMenuData:o.foodMenu.foodItems,time:"Food Items"})})]}):(0,cc.jsx)("span",{className:"text-gray-700 font-normal text-lg",children:"No food menu available"})]})]}):(0,cc.jsx)("div",{className:"py-10",children:(0,cc.jsx)(OP,{img:"error.png",content:c})})}),(0,cc.jsx)(DP,{})]})},wR=function(){return(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(J,{children:(0,cc.jsx)("title",{children:"Promote restaurant - Foodie VVN"})}),(0,cc.jsxs)("div",{className:"animate__animated animate__faster animate__fadeIn layout-padding flex flex-col gap-y-3 text-lg text-gray-600",children:[(0,cc.jsx)("h1",{className:"text-3xl font-semibold text-dark",children:"Promote your restaurant"}),(0,cc.jsxs)("p",{children:["Promote your restaurant to reach customers on top of the feed! Contact us at"," ",(0,cc.jsx)("a",{href:"mailto:[email protected]",className:"font-semibold text-dark underline underline-offset-4",children:"[email protected]"})]}),(0,cc.jsx)(qO,{className:"my-2",src:"/assets/sponsorship.png"})]})]})},kR=["allowCreateWhileLoading","createOptionPosition","formatCreateLabel","isValidNewOption","getNewOptionData","onCreateOption","options","onChange"],xR=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=String(e).toLowerCase(),i=String(n.getOptionValue(t)).toLowerCase(),a=String(n.getOptionLabel(t)).toLowerCase();return i===r||a===r},_R={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n,r){return!(!e||t.some((function(t){return xR(e,t,r)}))||n.some((function(t){return xR(e,t,r)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}};var SR=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.allowCreateWhileLoading,r=void 0!==n&&n,i=t.createOptionPosition,a=void 0===i?"last":i,o=t.formatCreateLabel,s=void 0===o?_R.formatCreateLabel:o,u=t.isValidNewOption,c=void 0===u?_R.isValidNewOption:u,l=t.getNewOptionData,f=void 0===l?_R.getNewOptionData:l,d=t.onCreateOption,h=t.options,p=void 0===h?[]:h,v=t.onChange,m=YO(t,kR),y=m.getOptionValue,g=void 0===y?iP:y,b=m.getOptionLabel,w=void 0===b?rP:b,k=m.inputValue,x=m.isLoading,_=m.isMulti,S=m.value,E=m.name,T=(0,e.useMemo)((function(){return c(k,LN(S),p,{getOptionValue:g,getOptionLabel:w})?f(k,s(k)):void 0}),[s,f,w,g,k,c,p,S]),O=(0,e.useMemo)((function(){return!r&&x||!T?p:"first"===a?[T].concat(ke(p)):[].concat(ke(p),[T])}),[r,a,x,T,p]),j=(0,e.useCallback)((function(e,t){if("select-option"!==t.action)return v(e,t);var n=Array.isArray(e)?e:[e];if(n[n.length-1]!==T)v(e,t);else if(d)d(k);else{var r=f(k,k),i={action:"create-option",name:E,option:r};v(YN(_,[].concat(ke(LN(S)),[r]),r),i)}}),[f,k,_,E,T,d,v,S]);return dt(dt({},m),{},{options:O,onChange:j})}(AC(t));return e.createElement(bP,PC({ref:n},r))})),ER=SR,TR=function(){var e=me(pe().mark((function e(t,n){var r,i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Vw(nS,"foodMenu",n),e.next=3,ux(r,t);case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),OR=function(e){var t=e.label,n=e.name;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("label",{className:"mt-7 font-medium mb-2",htmlFor:n,children:t})})},jR=function(t){var n=t.shopId,r=t.shopName,i=t.shopType,a=ne(ko(tS),3),o=a[0],s=(a[1],a[2],Du()),u=ne((0,e.useState)(!1),2),c=u[0],l=u[1],f=ne((0,e.useState)(!0),2),d=f[0],h=f[1],p=ne((0,e.useState)([]),2),v=p[0],m=p[1],y=ne((0,e.useState)([]),2),g=y[0],b=y[1],w=ne((0,e.useState)([]),2),k=w[0],x=w[1],_=ne((0,e.useState)(),2),S=_[0],E=_[1],T=IC({defaultValues:{breakfastFood:v,lunchFood:g,dinnerFood:k}}),O=T.register,j=T.handleSubmit,C=T.control,I=(T.reset,T.formState.errors),N=function(){var e=me(pe().mark((function e(t){var i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l(!0),0!==t.breakfastFood.length||0!==t.lunchFood.length||0!==t.dinnerFood.length||""!==t.foodPrice){e.next=5;break}return hs.error("Please add at least one food item"),l(!1),e.abrupt("return");case 5:return i={foodPrice:t.foodPrice?Number(t.foodPrice):S,breakfastFood:t.breakfastFood.map((function(e){return delete e.__isNew__,e})),lunchFood:t.lunchFood.map((function(e){return delete e.__isNew__,e})),dinnerFood:t.dinnerFood.map((function(e){return delete e.__isNew__,e}))},e.next=8,TR({foodMenu:i,updatedAt:px(),shopName:r},n);case 8:setTimeout((function(){l(!1),s("/restaurant/".concat(n)),hs.success("Food menu updated successfully")}),[200]);case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vR(n);case 2:if(t=e.sent){e.next=6;break}return h(!1),e.abrupt("return");case 6:E(t.foodMenu.foodPrice),m(t.foodMenu.breakfastFood),b(t.foodMenu.lunchFood),x(t.foodMenu.dinnerFood),h(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[o,n]),d?(0,cc.jsx)("div",{className:"flex w-full justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("form",{onKeyDown:function(e){"Enter"===e.key&&e.preventDefault()},onSubmit:j(N),className:"flex flex-col justify-start items-start w-full",children:[(0,cc.jsx)(OR,{label:"tiffin-service"===i.value?"Price for tiffin":"Price of fixed dish",name:"foodPrice"}),(0,cc.jsx)(Fj,{name:"foodPrice",control:C,render:function(e){e.field;return(0,cc.jsx)("input",dt({className:"inputTextStyle ".concat(I.foodPrice?"errorInputStyles":""),type:"number",placeholder:"Enter the price of food",autoComplete:"off"},O("foodPrice",{required:!S,pattern:/^[0-9]*$/})))}}),I.foodPrice&&(0,cc.jsxs)("p",{className:"text-red-400 mt-1",children:["pattern"===I.foodPrice.type&&"Food price must be a valid number.","required"===I.foodPrice.type&&"You must have to add food price for the first time."]}),S?(0,cc.jsx)("p",{className:"text-gray-500 mt-1",children:"Leave it blank if you don't want to update the price."}):null,(0,cc.jsx)(OR,{label:"Breakfast Food",name:"breakfastFood"}),(0,cc.jsx)(Fj,{name:"breakfastFood",control:C,render:function(e){var t=e.field;return(0,cc.jsx)(ER,dt(dt({},t),{},{className:"w-full",options:v,isClearable:!0,isMulti:!0,placeholder:"Enter breakfast food item and press enter...",closeMenuOnSelect:!1}))}}),(0,cc.jsx)(OR,{label:"Lunch Food",name:"lunchFood"}),(0,cc.jsx)(Fj,{name:"lunchFood",control:C,render:function(e){var t=e.field;return(0,cc.jsx)(ER,dt(dt({},t),{},{className:"w-full",options:g,isClearable:!0,isMulti:!0,placeholder:"Enter lunch food item and press enter...",closeMenuOnSelect:!1}))}}),(0,cc.jsx)(OR,{label:"Dinner Food",name:"dinnerFood"}),(0,cc.jsx)(Fj,{name:"dinnerFood",control:C,render:function(e){var t=e.field;return(0,cc.jsx)(ER,dt(dt({},t),{},{className:"w-full",options:k,isClearable:!0,isMulti:!0,placeholder:"Enter dinner food item and press enter...",closeMenuOnSelect:!1}))}}),(0,cc.jsx)(pS,{type:"submit",class:"mt-7 !py-2 !px-4",loading:c,loadingText:"Updating...",children:"Update Menu",icon:(0,cc.jsx)(AO,{})})]})})},CR=function(e){var t=e.label,n=e.name;return(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("label",{className:"mt-7 font-medium mb-2",htmlFor:n,children:t})})},IR=function(t){var n=t.shopId,r=t.shopName,i=ne(ko(tS),3),a=i[0],o=(i[1],i[2],ne((0,e.useState)(!1),2)),s=o[0],u=o[1],c=ne((0,e.useState)(!0),2),l=c[0],f=c[1],d=ne((0,e.useState)([]),2),h=d[0],p=d[1],v=IC({defaultValues:{foodItems:h}}),m=(v.register,v.handleSubmit),y=v.control,g=(v.reset,v.errors,function(){var e=me(pe().mark((function e(t){var i;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),i={foodItems:t.foodItems.map((function(e){return delete e.__isNew__,e}))},e.next=4,TR({foodMenu:i,updatedAt:px(),shopName:r},n);case 4:hs.success("Food menu updated successfully"),setTimeout((function(){u(!1)}),[500]);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());return(0,e.useEffect)((function(){var e=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vR(n);case 2:if(t=e.sent){e.next=6;break}return f(!1),e.abrupt("return");case 6:p(t.foodMenu.foodItems),f(!1);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[a,n]),l?(0,cc.jsx)("div",{className:"flex w-full justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)("form",{onKeyDo
2wn:function(e){"Enter"===e.key&&e.preventDefault()},onSubmit:m(g),className:"flex flex-col justify-start items-start w-full",children:[(0,cc.jsx)(CR,{label:"Food Items",name:"foodItems"}),(0,cc.jsx)(Fj,{name:"foodItems",control:y,render:function(e){var t=e.field;return(0,cc.jsx)(ER,dt(dt({},t),{},{className:"w-full",options:h,isClearable:!0,isMulti:!0,placeholder:"Enter food item and press enter...",closeMenuOnSelect:!1}))}}),(0,cc.jsx)(pS,{type:"submit",class:"mt-7 !py-2 !px-4",loading:s,loadingText:"Updating...",children:"Update Menu",icon:(0,cc.jsx)(AO,{})})]})})},NR=function(){var t,n,r=Fu().id,i=ne(ko(tS),3),a=i[0],o=(i[1],i[2],ne((0,e.useState)(!0),2)),s=o[0],u=o[1],c=ne((0,e.useState)([]),2),l=c[0],f=c[1],d=ne((0,e.useState)(""),2),h=d[0],p=d[1],v=function(){var e=me(pe().mark((function e(){var t;return pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,SO(r);case 3:if(null!==(t=e.sent)){e.next=10;break}return hs.error("This restaurant doesn't exist."),u(!1),e.abrupt("return");case 10:if(!t[0].isPublic){e.next=25;break}return e.next=13,mR(r,a.email);case 13:if(e.t0=e.sent,e.t0){e.next=16;break}e.t0=pO(a.email);case 16:if(!e.t0){e.next=20;break}f(t[0]),e.next=23;break;case 20:f(null),p("You can't update the food menu of this shop."),hs.error("You can't update the food menu of this shop.");case 23:e.next=28;break;case 25:f(null),p("This restaurant is not verified yet."),hs.error("This restaurant is not verified yet.");case 28:setTimeout((function(){u(!1)}),500);case 29:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,e.useEffect)((function(){a?v():setTimeout((function(){u(!1)}),500)}),[a,r]),s?(0,cc.jsx)("div",{className:"flex justify-center items-center h-screen",children:(0,cc.jsx)(cS,{color:"light"})}):(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)("div",{className:"layout-padding",children:l?(0,cc.jsxs)("div",{className:"flex flex-col justify-start items-start gap-y-3",children:[(0,cc.jsxs)("h1",{className:"text-3xl font-medium ",children:["Update Food Me
2nu of ",l.shopName]}),(0,cc.jsx)("p",{children:"You just have to add food items once and next time, we will give you suggestions."}),"lounge"===(null===l||void 0===l||null===(t=l.shopType)||void 0===t?void 0:t.value)||"tiffin-service"===(null===l||void 0===l||null===(n=l.shopType)||void 0===n?void 0:n.value)?(0,cc.jsx)(jR,{shopId:r,shopType:l.shopType,shopName:l.shopName}):(0,cc.jsx)(IR,{shopId:r,shopName:l.shopName})]}):(0,cc.jsx)(OP,{img:"This restaurant is not verified yet."===h?"error.png":"not-authorized.png",content:h})})})};xo.ZP.initialize("G-N2WTZKNJEL");var AR=function(){var t=ne(ko(tS),3),n=t[0],r=t[1],i=t[2],a=ne((0,e.useState)([]),2),o=a[0],s=a[1];return(0,e.useEffect)((function(){n?Us.success("Welcome, ".concat(n.displayName)):r||Us("Please login to get better experience.",{icon:"\u26a0\ufe0f"}),i&&Us.error(i.message)}),[n,r,i]),(0,e.useEffect)((function(){xo.ZP.send({hitType:"pageview",page:window.location.pathname})}),[]),(0,e.useEffect)((function(){n&&bS("users",n.email).then((function(e){s(null===e||void 0===e?void 0:e.savedShop)}))}),[n]),(0,cc.jsxs)(cc.Fragment,{children:[(0,cc.jsx)(Vs,{position:"bottom-right",toastOptions:{duration:4e3,style:{fontFamily:"Inter"}}}),(0,cc.jsxs)(J,{children:[(0,cc.jsx)("title",{children:"Foodie VVN - Find Foods & Restaurants in Vidhyanagar"}),(0,cc.jsx)("meta",{name:"description",content:"Foodie VVN is a web app that helps user to find the best food restaurants in vidhyanagar. User can search for restaurants by their name, category and food items by their tags."}),(0,cc.jsx)("meta",{name:"keywords",content:"foodie, vvn, vidhyanagar,anand,aanand, food, restaurants"}),(0,cc.jsx)("meta",{name:"google-site-verification",content:"WWAfu4QZXt13XpQW6dGW-y_2uomoiIy1zzqn4zlxCOA"}),(0,cc.jsx)("meta",{property:"og:title",content:"Foodie VVN - Find Foods & Restaurants in Vidhyanagar"}),(0,cc.jsx)("meta",{property:"og:image",content:"https://www.foodievvn.com/meta-img.png"}),(0,cc.jsx)("meta",{property:"og:description",content:"Foodie VVN is a web app that helps user to find the best food restaurants in vidhyanagar. User can search for restaurants by their name, category and food items by their tags."}),(0,cc.jsx)("meta",{property:"og:url",content:"https://www.foodievvn.com/"}),(0,cc.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,cc.jsx)("meta",{name:"twitter:title",content:"Foodie VVN - Find Foods & Restaurants in Vidhyanagar"}),(0,cc.jsx)("meta",{name:"twitter:description",content:"Foodie VVN is a web app that helps user to find the best food restaurants in vidhyanagar. User can search for restaurants by their name, category and food items by their tags."}),(0,cc.jsx)("meta",{name:"twitter:image",content:"https://www.foodievvn.com/meta-img.png"}),(0,cc.jsx)("meta",{name:"twitter:creator",content:"@gigawebin"}),(0,cc.jsx)("meta",{name:"robots",content:"index, follow"}),(0,cc.jsx)("meta",{httpEquiv:"Content-Type",content:"text/html; charset=utf-8"}),(0,cc.jsx)("meta",{name:"language",content:"English"}),(0,cc.jsx)("meta",{name:"revisit-after",content:"15 days"}),(0,cc.jsx)("meta",{name:"author",content:"Gigaweb"})]}),(0,cc.jsx)(bO.Provider,{value:{savedShops:o,setSavedShops:s},children:(0,cc.jsxs)(ic,{children:[(0,cc.jsx)(QO,{}),(0,cc.jsxs)("main",{className:"font-Inter bg-gray-50 w-full",children:[(0,cc.jsx)("div",{className:"sticky top-0 z-30",children:(0,cc.jsx)(yS,{})}),(0,cc.jsxs)("div",{className:"w-fit layout mx-auto flex md:flex-row justify-center items-start flex-col",children:[(0,cc.jsx)(gO,{}),(0,cc.jsxs)("div",{className:"lg-layout flex flex-col md:flex-row justify-center items-start",onClick:function(){return document.getElementsByClassName("navbar")[0].classList.remove("!top-16")},children:[(0,cc.jsx)("div",{className:"w-full sm:max-w-full md:max-w-[35rem] lg:max-w-[44rem] md:border-r md:border-l flex-1 bg-white h-full min-h-screen",children:(0,cc.jsxs)(Xu,{children:[(0,cc.jsx)($u,{path:"/",element:(0,cc.jsx)($P,{})}),(0,cc.jsx)($u,{path:"/about",element:(0,cc.jsx)($O,{})}),(0,cc.jsx)($u,{path:"/contact",element:(0,cc.jsx)(RP,{})}),(0,cc.jsx)($u,{path:"/promote/restaurant",element:(0,cc.jsx)(wR,{})}),(0,cc.jsx)($u,{path:"/request/restaurant",element:(0,cc.jsx)(ZP,{})}),(0,cc.jsx)($u,{path:"/register/restaurant",element:(0,cc.jsx)(CP,{})}),(0,cc.jsx)($u,{path:"/restaurant/:id",element:(0,cc.jsx)(bR,{})}),(0,cc.jsx)($u,{path:"/category/:category",element:(0,cc.jsx)(oR,{})}),(0,cc.jsx)($u,{path:"/area/:areaSlug",element:(0,cc.jsx)(uR,{})}),(r||n)&&(0,cc.jsx)($u,{path:"/restaurant/update-menu/:id",element:(0,cc.jsx)(NR,{})}),(0,cc.jsx)($u,{path:"/search",element:(0,cc.jsx)(iR,{})}),(0,cc.jsx)($u,{path:"/food/:tag",element:(0,cc.jsx)(nR,{})}),n&&pO(n.email)&&(0,cc.jsx)(cc.Fragment,{children:(0,cc.jsxs)($u,{path:"admin",element:(0,cc.jsx)(NP,{}),children:[(0,cc.jsx)($u,{path:"requested-restaurants",element:(0,cc.jsx)(YT,{})}),(0,cc.jsx)($u,{path:"contacts",element:(0,cc.jsx)(VT,{})}),(0,cc.jsx)($u,{path:"non-verified-restaurants",element:(0,cc.jsx)(WT,{})})]})}),(0,cc.jsx)($u,{path:"*",element:(0,cc.jsx)(YP,{})})]})}),(0,cc.jsx)("div",{className:"w-full md:w-[20rem] md:sticky md:top-20",onClick:function(){return document.getElementsByClassName("navbar")[0].classList.remove("!top-16")},children:(0,cc.jsx)(GO,{})})]})]}),(0,cc.jsx)(lc,{})]})]})})]})},PR=Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function RR(e,t){navigator.serviceWorker.register(e).then((function(e){e.onupdatefound=function(){var n=e.installing;null!=n&&(n.onstatechange=function(){"installed"===n.state&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(e)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(e)))})}})).catch((function(e){console.error("Error during service worker registration:",e)}))}n.e(223).then(n.t.bind(n,223,23)),Z.createRoot(document.getElementById("root")).render((0,cc.jsx)(cc.Fragment,{children:(0,cc.jsx)(e.StrictMode,{children:(0,cc.jsx)(H,{children:(0,cc.jsx)(AR,{})})})}
2)),function(e){if("serviceWorker"in navigator){var t=new URL("",window.location.href);if(console.log("publicUrl",t),t.origin!==window.location.origin)return;window.addEventListener("load",(function(){var t="".concat("","/service-worker.js");console.log("swUrl",t),PR?(!function(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then((function(n){var r=n.headers.get("content-type");404===n.status||null!=r&&-1===r.indexOf("javascript")?navigator.serviceWorker.ready.then((function(e){e.unregister().then((function(){window.location.reload()}))})):RR(e,t)})).catch((function(){console.log("No internet connection found. App is running in offline mode.")}))}(t,e),navigator.serviceWorker.ready.then((function(){console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")}))):RR(t,e)}))}}()}()}();
3//# sourceMappingURL=main.3d00a230.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.