vendor: 5,827 bytes, lines 1-9
1var dw=Object.defineProperty;var hw=(e,t,n)=>t in e?dw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var co=(e,t,n)=>hw(e,typeof t!="symbol"?t+"":t,n);function pw(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Qy={exports:{}},Ul={},qy={exports:{}},K={};/** 2 * @license React 3 * react.production.min.js 4 * 5 * Copyright (c) Facebook, Inc. and its affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var As=Symbol.for("react.element"),mw=Symbol.for("react.portal"),gw=Symbol.for("react.fragment"),yw=Symbol.for("react.strict_mode"),vw=Symbol.for("react.profiler"),_w=Symbol.for("react.provider"),Sw=Symbol.for("react.context"),ww=Symbol.for("react.forward_ref"),Cw=Symbol.for("react.suspense"),Ew=Symbol.for("react.memo"),kw=Symbol.for("react.lazy"),jp=Symbol.iterator;function xw(e){return e===null||typeof e!="object"?null:(e=jp&&e[jp]||e["@@iterator"],typeof e=="function"?e:null)}var Xy={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jy=Object.assign,Zy={};function Ji(e,t,n){this.props=e,this.context=t,this.refs=Zy,this.updater=n||Xy}Ji.prototype.isReactComponent={};Ji.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)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")};Ji.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function e0(){}e0.prototype=Ji.prototype;function xd(e,t,n){this.props=e,this.context=t,this.refs=Zy,this.updater=n||Xy}var bd=xd.prototype=new e0;bd.constructor=xd;Jy(bd,Ji.prototype);bd.isPureReactComponent=!0;var Up=Array.isArray,t0=Object.prototype.hasOwnProperty,Td={current:null},n0={key:!0,ref:!0,__self:!0,__source:!0};function r0(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)t0.call(t,r)&&!n0.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),u=0;u<a;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:As,type:e,key:o,ref:s,props:i,_owner:Td.current}}function bw(e,t){return{$$typeof:As,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Id(e){return typeof e=="object"&&e!==null&&e.$$typeof===As}function Tw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Wp=/\/+/g;function Wu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Tw(""+e.key):t.toString(36)}function Ta(e,t,n,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case As:case mw:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Wu(s,0):r,Up(i)?(n="",e!=null&&(n=e.replace(Wp,"$&/")+"/"),Ta(i,t,n,"",function(u){return u})):i!=null&&(Id(i)&&(i=bw(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(Wp,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",Up(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Wu(o,a);s+=Ta(o,t,n,l,i)}else if(l=xw(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Wu(o,a++),s+=Ta(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function ra(e,t,n){if(e==null)return e;var r=[],i=0;return Ta(e,r,"","",function(o){return t.call(n,o,i++)}),r}function Iw(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var nt={current:null},Ia={transition:null},Pw={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:Ia,ReactCurrentOwner:Td};function i0(){throw Error("act(...) is not supported in production builds of React.")}K.Children={map:ra,forEach:function(e,t,n){ra(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ra(e,function(){t++}),t},toArray:function(e){return ra(e,function(t){return t})||[]},only:function(e){if(!Id(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};K.Component=Ji;K.Fragment=gw;K.Profiler=vw;K.PureComponent=xd;K.StrictMode=yw;K.Suspense=Cw;
vendor: 2,839 bytes, lines 9-17
9K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pw;K.act=i0;K.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Jy({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Td.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)t0.call(t,l)&&!n0.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var u=0;u<l;u++)a[u]=arguments[u+2];r.children=a}return{$$typeof:As,type:e.type,key:i,ref:o,props:r,_owner:s}};K.createContext=function(e){return e={$$typeof:Sw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:_w,_context:e},e.Consumer=e};K.createElement=r0;K.createFactory=function(e){var t=r0.bind(null,e);return t.type=e,t};K.createRef=function(){return{current:null}};K.forwardRef=function(e){return{$$typeof:ww,render:e}};K.isValidElement=Id;K.lazy=function(e){return{$$typeof:kw,_payload:{_status:-1,_result:e},_init:Iw}};K.memo=function(e,t){return{$$typeof:Ew,type:e,compare:t===void 0?null:t}};K.startTransition=function(e){var t=Ia.transition;Ia.transition={};try{e()}finally{Ia.transition=t}};K.unstable_act=i0;K.useCallback=function(e,t){return nt.current.useCallback(e,t)};K.useContext=function(e){return nt.current.useContext(e)};K.useDebugValue=function(){};K.useDeferredValue=function(e){return nt.current.useDeferredValue(e)};K.useEffect=function(e,t){return nt.current.useEffect(e,t)};K.useId=function(){return nt.current.useId()};K.useImperativeHandle=function(e,t,n){return nt.current.useImperativeHandle(e,t,n)};K.useInsertionEffect=function(e,t){return nt.current.useInsertionEffect(e,t)};K.useLayoutEffect=function(e,t){return nt.current.useLayoutEffect(e,t)};K.useMemo=function(e,t){return nt.current.useMemo(e,t)};K.useReducer=function(e,t,n){return nt.current.useReducer(e,t,n)};K.useRef=function(e){return nt.current.useRef(e)};K.useState=function(e){return nt.current.useState(e)};K.useSyncExternalStore=function(e,t,n){return nt.current.useSyncExternalStore(e,t,n)};K.useTransition=function(){return nt.current.useTransition()};K.version="18.3.1";qy.exports=K;var b=qy.exports;const Kn=Ky(b),Vp=pw({__proto__:null,default:Kn},[b]);/** 10 * @license React 11 * react-jsx-runtime.production.min.js 12 * 13 * Copyright (c) Facebook, Inc. and its affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var Nw=b,Aw=Symbol.for("react.element"),Rw=Symbol.for("react.fragment"),Ow=Object.prototype.hasOwnProperty,Mw=Nw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dw={ke
vendor: 11,382 bytes, lines 17-34
17y:!0,ref:!0,__self:!0,__source:!0};function o0(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Ow.call(t,r)&&!Dw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:Aw,type:e,key:o,ref:s,props:i,_owner:Mw.current}}Ul.Fragment=Rw;Ul.jsx=o0;Ul.jsxs=o0;Qy.exports=Ul;var A=Qy.exports,s0={exports:{}},xt={},a0={exports:{}},l0={};/** 18 * @license React 19 * scheduler.production.min.js 20 * 21 * Copyright (c) Facebook, Inc. and its affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */(function(e){function t(R,O){var $=R.length;R.push(O);e:for(;0<$;){var W=$-1>>>1,oe=R[W];if(0<i(oe,O))R[W]=O,R[$]=oe,$=W;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var O=R[0],$=R.pop();if($!==O){R[0]=$;e:for(var W=0,oe=R.length,en=oe>>>1;W<en;){var Pt=2*(W+1)-1,Nt=R[Pt],At=Pt+1,vn=R[At];if(0>i(Nt,$))At<oe&&0>i(vn,Nt)?(R[W]=vn,R[At]=$,W=At):(R[W]=Nt,R[Pt]=$,W=Pt);else if(At<oe&&0>i(vn,$))R[W]=vn,R[At]=$,W=At;else break e}}return O}function i(R,O){var $=R.sortIndex-O.sortIndex;return $!==0?$:R.id-O.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var l=[],u=[],f=1,c=null,d=3,y=!1,g=!1,_=!1,C=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var O=n(u);O!==null;){if(O.callback===null)r(u);else if(O.startTime<=R)r(u),O.sortIndex=O.expirationTime,t(l,O);else break;O=n(u)}}function S(R){if(_=!1,v(R),!g)if(n(l)!==null)g=!0,ge(w);else{var O=n(u);O!==null&&Te(S,O.startTime-R)}}function w(R,O){g=!1,_&&(_=!1,m(T),T=-1),y=!0;var $=d;try{for(v(O),c=n(l);c!==null&&(!(c.expirationTime>O)||R&&!P());){var W=c.callback;if(typeof W=="function"){c.callback=null,d=c.priorityLevel;var oe=W(c.expirationTime<=O);O=e.unstable_now(),typeof oe=="function"?c.callback=oe:c===n(l)&&r(l),v(O)}else r(l);c=n(l)}if(c!==null)var en=!0;else{var Pt=n(u);Pt!==null&&Te(S,Pt.startTime-O),en=!1}return en}finally{c=null,d=$,y=!1}}var E=!1,k=null,T=-1,D=5,h=-1;function P(){return!(e.unstable_now()-h<D)}function F(){if(k!==null){var R=e.unstable_now();h=R;var O=!0;try{O=k(!0,R)}finally{O?z():(E=!1,k=null)}}else E=!1}var z;if(typeof p=="function")z=function(){p(F)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,Q=U.port2;U.port1.onmessage=F,z=function(){Q.postMessage(null)}}else z=function(){C(F,0)};function ge(R){k=R,E||(E=!0,z())}function Te(R,O){T=C(function(){R(e.unstable_now())},O)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_continueExecution=function(){g||y||(g=!0,ge(w))},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(R){switch(d){case 1:case 2:case 3:var O=3;break;default:O=d}var $=d;d=O;try{return R()}finally{d=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(R,O){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var $=d;d=R;try{return O()}finally{d=$}},e.unstable_scheduleCallback=function(R,O,$){var W=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?W+$:W):$=W,R){case 1:var oe=-1;break;case 2:oe=250;break;case 5:oe=1073741823;break;case 4:oe=1e4;break;default:oe=5e3}return oe=$+oe,R={id:f++,callback:O,priorityLevel:R,startTime:$,expirationTime:oe,sortIndex:-1},$>W?(R.sortIndex=$,t(u,R),n(l)===null&&R===n(u)&&(_?(m(T),T=-1):_=!0,Te(S,$-W))):(R.sortIndex=oe,t(l,R),g||y||(g=!0,ge(w))),R},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(R){var O=d;return function(){var $=d;d=O;try{return R.apply(this,arguments)}finally{d=$}}}})(l0);a0.exports=l0;var Lw=a0.exports;/** 26 * @license React 27 * react-dom.production.min.js 28 * 29 * Copyright (c) Facebook, Inc. and its affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var Fw=b,kt=Lw;function I(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 u0=new Set,Jo={};function Zr(e,t){zi(e,t),zi(e+"Capture",t)}function zi(e,t){for(Jo[e]=t,e=0;e<t.length;e++)u0.add(t[e])}var Nn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$c=Object.prototype.hasOwnProperty,$w=/^[: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]*$/,Hp={},Gp={};function zw(e){return $c.call(Gp,e)?!0:$c.call(Hp,e)?!1:$w.test(e)?Gp[e]=!0:(Hp[e]=!0,!1)}function Bw(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function jw(e,t,n,r){if(t===null||typeof t>"u"||Bw(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function rt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var We={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){We[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];We[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){We[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){We[e]=new rt(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){We[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){We[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){We[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){We[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){We[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Pd=/[\-:]([a-z])/g;function Nd(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Pd,Nd);We[t]=new rt(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(Pd,Nd);We[t]=new rt(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(Pd,Nd);We[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});We.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){We[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ad(e,t,n,r){var i=We.hasOwnProperty(t)?We[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(jw(t,n,i,r)&&(n=null),r||i===null?zw(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var zn=Fw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ia=Symbol.for("react.element"),ci=Symbol.for("react.portal"),fi=Symbol.for("react.fragment"),Rd=Symbol.for("react.strict_mode"),zc=Symbol.for("react.profiler"),c0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),Od=Symbol.for("react.forward_ref"),Bc=Symbol.for("react.suspense"),jc=Symbol.for("react.suspense_list"),Md=Symbol.for("react.memo"),Vn=Symbol.for("react.lazy"),d0=Symbol.for("react.offscreen"),Yp=Symbol.iterator;function fo(e){return e===null||typeof e!="object"?null:(e=Yp&&e[Yp]||e["@@iterator"],typeof e=="function"?e:null)}var Se=Object.assign,Vu;function bo(e){if(Vu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Vu=t&&t[1]||""}return` 34`+Vu+e}var Hu=!1;function Gu(e,t){if(!e||Hu)return"";Hu=!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()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}
vendor: 15,983 bytes, lines 34-37
34catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(` 35`),o=r.stack.split(` 36`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=` 37`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{Hu=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?bo(e):""}function Uw(e){switch(e.tag){case 5:return bo(e.type);case 16:return bo("Lazy");case 13:return bo("Suspense");case 19:return bo("SuspenseList");case 0:case 2:case 15:return e=Gu(e.type,!1),e;case 11:return e=Gu(e.type.render,!1),e;case 1:return e=Gu(e.type,!0),e;default:return""}}function Uc(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case fi:return"Fragment";case ci:return"Portal";case zc:return"Profiler";case Rd:return"StrictMode";case Bc:return"Suspense";case jc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case f0:return(e.displayName||"Context")+".Consumer";case c0:return(e._context.displayName||"Context")+".Provider";case Od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Md:return t=e.displayName||null,t!==null?t:Uc(e.type)||"Memo";case Vn:t=e._payload,e=e._init;try{return Uc(e(t))}catch{}}return null}function Ww(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=t.render,e=e.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 Uc(t);case 8:return t===Rd?"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(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ur(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function h0(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vw(e){var t=h0(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oa(e){e._valueTracker||(e._valueTracker=Vw(e))}function p0(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=h0(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ya(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Wc(e,t){var n=t.checked;return Se({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Kp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ur(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function m0(e,t){t=t.checked,t!=null&&Ad(e,"checked",t,!1)}function Vc(e,t){m0(e,t);var n=ur(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hc(e,t.type,ur(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qp(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hc(e,t,n){(t!=="number"||Ya(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var To=Array.isArray;function Ti(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=""+ur(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Gc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(I(91));return Se({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qp(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(I(92));if(To(n)){if(1<n.length)throw Error(I(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:ur(n)}}function g0(e,t){var n=ur(t.value),r=ur(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Xp(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function y0(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 Yc(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?y0(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var sa,v0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(sa=sa||document.createElement("div"),sa.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=sa.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Zo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Do={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},Hw=["Webkit","ms","Moz","O"];Object.keys(Do).forEach(function(e){Hw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Do[t]=Do[e]})});function _0(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Do.hasOwnProperty(e)&&Do[e]?(""+t).trim():t+"px"}function S0(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=_0(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Gw=Se({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 Kc(e,t){if(t){if(Gw[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(I(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(I(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(I(61))}if(t.style!=null&&typeof t.style!="object")throw Error(I(62))}}function Qc(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 qc=null;function Dd(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xc=null,Ii=null,Pi=null;function Jp(e){if(e=Ms(e)){if(typeof Xc!="function")throw Error(I(280));var t=e.stateNode;t&&(t=Yl(t),Xc(e.stateNode,e.type,t))}}function w0(e){Ii?Pi?Pi.push(e):Pi=[e]:Ii=e}function C0(){if(Ii){var e=Ii,t=Pi;if(Pi=Ii=null,Jp(e),t)for(e=0;e<t.length;e++)Jp(t[e])}}function E0(e,t){return e(t)}function k0(){}var Yu=!1;function x0(e,t,n){if(Yu)return e(t,n);Yu=!0;try{return E0(e,t,n)}finally{Yu=!1,(Ii!==null||Pi!==null)&&(k0(),C0())}}function es(e,t){var n=e.stateNode;if(n===null)return null;var r=Yl(n);if(r===null)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)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(I(231,t,typeof n));return n}var Jc=!1;if(Nn)try{var ho={};Object.defineProperty(ho,"passive",{get:function(){Jc=!0}}),window.addEventListener("test",ho,ho),window.removeEventListener("test",ho,ho)}catch{Jc=!1}function Yw(e,t,n,r,i,o,s,a,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(f){this.onError(f)}}var Lo=!1,Ka=null,Qa=!1,Zc=null,Kw={onError:function(e){Lo=!0,Ka=e}};function Qw(e,t,n,r,i,o,s,a,l){Lo=!1,Ka=null,Yw.apply(Kw,arguments)}function qw(e,t,n,r,i,o,s,a,l){if(Qw.apply(this,arguments),Lo){if(Lo){var u=Ka;Lo=!1,Ka=null}else throw Error(I(198));Qa||(Qa=!0,Zc=u)}}function ei(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function b0(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Zp(e){if(ei(e)!==e)throw Error(I(188))}function Xw(e){var t=e.alternate;if(!t){if(t=ei(e),t===null)throw Error(I(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Zp(i),e;if(o===r)return Zp(i),t;o=o.sibling}throw Error(I(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(I(189))}}if(n.alternate!==r)throw Error(I(190))}if(n.tag!==3)throw Error(I(188));return n.stateNode.current===n?e:t}function T0(e){return e=Xw(e),e!==null?I0(e):null}function I0(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=I0(e);if(t!==null)return t;e=e.sibling}return null}var P0=kt.unstable_scheduleCallback,em=kt.unstable_cancelCallback,Jw=kt.unstable_shouldYield,Zw=kt.unstable_requestPaint,xe=kt.unstable_now,eC=kt.unstable_getCurrentPriorityLevel,Ld=kt.unstable_ImmediatePriority,N0=kt.unstable_UserBlockingPriority,qa=kt.unstable_NormalPriority,tC=kt.unstable_LowPriority,A0=kt.unstable_IdlePriority,Wl=null,dn=null;function nC(e){if(dn&&typeof dn.onCommitFiberRoot=="function")try{dn.onCommitFiberRoot(Wl,e,void 0,(e.current.flags&128)===128)}catch{}}var qt=Math.clz32?Math.clz32:oC,rC=Math.log,iC=Math.LN2;function oC(e){return e>>>=0,e===0?32:31-(rC(e)/iC|0)|0}var aa=64,la=4194304;function Io(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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Xa(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=Io(a):(o&=s,o!==0&&(r=Io(o)))}else s=n&~i,s!==0?r=Io(s):o!==0&&(r=Io(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-qt(t),i=1<<n,r|=e[n],t&=~i;return r}function sC(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;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function aC(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-qt(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=sC(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function ef(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function R0(){var e=aa;return aa<<=1,!(aa&4194240)&&(aa=64),e}function Ku(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Rs(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-qt(t),e[t]=n}function lC(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-qt(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var ee=0;function O0(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var M0,$d,D0,L0,F0,tf=!1,ua=[],Jn=null,Zn=null,er=null,ts=new Map,ns=new Map,Gn=[],uC="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 tm(e,t){switch(e){case"focusin":case"focusout":Jn=null;break;case"dragenter":case"dragleave":Zn=null;break;case"mouseover":case"mouseout":er=null;break;case"pointerover":case"pointerout":ts.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ns.delete(t.pointerId)}}function po(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ms(t),t!==null&&$d(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function cC(e,t,n,r,i){switch(t){case"focusin":return Jn=po(Jn,e,t,n,r,i),!0;case"dragenter":return Zn=po(Zn,e,t,n,r,i),!0;case"mouseover":return er=po(er,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return ts.set(o,po(ts.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,ns.set(o,po(ns.get(o)||null,e,t,n,r,i)),!0}return!1}function $0(e){var t=Ar(e.target);
vendor: 12,595 bytes, line 37
37if(t!==null){var n=ei(t);if(n!==null){if(t=n.tag,t===13){if(t=b0(n),t!==null){e.blockedOn=t,F0(e.priority,function(){D0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Pa(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=nf(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);qc=r,n.target.dispatchEvent(r),qc=null}else return t=Ms(n),t!==null&&$d(t),e.blockedOn=n,!1;t.shift()}return!0}function nm(e,t,n){Pa(e)&&n.delete(t)}function fC(){tf=!1,Jn!==null&&Pa(Jn)&&(Jn=null),Zn!==null&&Pa(Zn)&&(Zn=null),er!==null&&Pa(er)&&(er=null),ts.forEach(nm),ns.forEach(nm)}function mo(e,t){e.blockedOn===t&&(e.blockedOn=null,tf||(tf=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,fC)))}function rs(e){function t(i){return mo(i,e)}if(0<ua.length){mo(ua[0],e);for(var n=1;n<ua.length;n++){var r=ua[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Jn!==null&&mo(Jn,e),Zn!==null&&mo(Zn,e),er!==null&&mo(er,e),ts.forEach(t),ns.forEach(t),n=0;n<Gn.length;n++)r=Gn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Gn.length&&(n=Gn[0],n.blockedOn===null);)$0(n),n.blockedOn===null&&Gn.shift()}var Ni=zn.ReactCurrentBatchConfig,Ja=!0;function dC(e,t,n,r){var i=ee,o=Ni.transition;Ni.transition=null;try{ee=1,zd(e,t,n,r)}finally{ee=i,Ni.transition=o}}function hC(e,t,n,r){var i=ee,o=Ni.transition;Ni.transition=null;try{ee=4,zd(e,t,n,r)}finally{ee=i,Ni.transition=o}}function zd(e,t,n,r){if(Ja){var i=nf(e,t,n,r);if(i===null)ic(e,t,r,Za,n),tm(e,r);else if(cC(i,e,t,n,r))r.stopPropagation();else if(tm(e,r),t&4&&-1<uC.indexOf(e)){for(;i!==null;){var o=Ms(i);if(o!==null&&M0(o),o=nf(e,t,n,r),o===null&&ic(e,t,r,Za,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else ic(e,t,r,null,n)}}var Za=null;function nf(e,t,n,r){if(Za=null,e=Dd(r),e=Ar(e),e!==null)if(t=ei(e),t===null)e=null;else if(n=t.tag,n===13){if(e=b0(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Za=e,null}function z0(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(eC()){case Ld:return 1;case N0:return 4;case qa:case tC:return 16;case A0:return 536870912;default:return 16}default:return 16}}var Qn=null,Bd=null,Na=null;function B0(){if(Na)return Na;var e,t=Bd,n=t.length,r,i="value"in Qn?Qn.value:Qn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[o-r];r++);return Na=i.slice(e,1<r?1-r:void 0)}function Aa(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ca(){return!0}function rm(){return!1}function bt(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ca:rm,this.isPropagationStopped=rm,this}return Se(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ca)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ca)},persist:function(){},isPersistent:ca}),t}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=bt(Zi),Os=Se({},Zi,{view:0,detail:0}),pC=bt(Os),Qu,qu,go,Vl=Se({},Os,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ud,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==go&&(go&&e.type==="mousemove"?(Qu=e.screenX-go.screenX,qu=e.screenY-go.screenY):qu=Qu=0,go=e),Qu)},movementY:function(e){return"movementY"in e?e.movementY:qu}}),im=bt(Vl),mC=Se({},Vl,{dataTransfer:0}),gC=bt(mC),yC=Se({},Os,{relatedTarget:0}),Xu=bt(yC),vC=Se({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),_C=bt(vC),SC=Se({},Zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wC=bt(SC),CC=Se({},Zi,{data:0}),om=bt(CC),EC={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kC={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"},xC={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function bC(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=xC[e])?!!t[e]:!1}function Ud(){return bC}var TC=Se({},Os,{key:function(e){if(e.key){var t=EC[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Aa(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?kC[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ud,charCode:function(e){return e.type==="keypress"?Aa(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Aa(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),IC=bt(TC),PC=Se({},Vl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sm=bt(PC),NC=Se({},Os,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ud}),AC=bt(NC),RC=Se({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),OC=bt(RC),MC=Se({},Vl,{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}),DC=bt(MC),LC=[9,13,27,32],Wd=Nn&&"CompositionEvent"in window,Fo=null;Nn&&"documentMode"in document&&(Fo=document.documentMode);var FC=Nn&&"TextEvent"in window&&!Fo,j0=Nn&&(!Wd||Fo&&8<Fo&&11>=Fo),am=" ",lm=!1;function U0(e,t){switch(e){case"keyup":return LC.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function W0(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var di=!1;function $C(e,t){switch(e){case"compositionend":return W0(t);case"keypress":return t.which!==32?null:(lm=!0,am);case"textInput":return e=t.data,e===am&&lm?null:e;default:return null}}function zC(e,t){if(di)return e==="compositionend"||!Wd&&U0(e,t)?(e=B0(),Na=Bd=Qn=null,di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return j0&&t.locale!=="ko"?null:t.data;default:return null}}var BC={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 um(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!BC[e.type]:t==="textarea"}function V0(e,t,n,r){w0(r),t=el(t,"onChange"),0<t.length&&(n=new jd("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var $o=null,is=null;function jC(e){tv(e,0)}function Hl(e){var t=mi(e);if(p0(t))return e}function UC(e,t){if(e==="change")return t}var H0=!1;if(Nn){var Ju;if(Nn){var Zu="oninput"in document;if(!Zu){var cm=document.createElement("div");cm.setAttribute("oninput","return;"),Zu=typeof cm.oninput=="function"}Ju=Zu}else Ju=!1;H0=Ju&&(!document.documentMode||9<document.documentMode)}function fm(){$o&&($o.detachEvent("onpropertychange",G0),is=$o=null)}function G0(e){if(e.propertyName==="value"&&Hl(is)){var t=[];V0(t,is,e,Dd(e)),x0(jC,t)}}function WC(e,t,n){e==="focusin"?(fm(),$o=t,is=n,$o.attachEvent("onpropertychange",G0)):e==="focusout"&&fm()}function VC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hl(is)}function HC(e,t){if(e==="click")return Hl(t)}function GC(e,t){if(e==="input"||e==="change")return Hl(t)}function YC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:YC;function os(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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(!$c.call(t,i)||!Zt(e[i],t[i]))return!1}return!0}function dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hm(e,t){var n=dm(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=dm(n)}}function Y0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Y0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function K0(){for(var e=window,t=Ya();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ya(e.document)}return t}function Vd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function KC(e){var t=K0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Y0(n.ownerDocument.documentElement,n)){if(r!==null&&Vd(n)){if(t=r.start,e=r.end,e===void 0&&(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,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=hm(n,o);var s=hm(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var QC=Nn&&"documentMode"in document&&11>=document.documentMode,hi=null,rf=null,zo=null,of=!1;function pm(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;of||hi==null||hi!==Ya(r)||(r=hi,"selectionStart"in r&&Vd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focu
vendor: 4,501 bytes, line 37
37sNode:r.focusNode,focusOffset:r.focusOffset}),zo&&os(zo,r)||(zo=r,r=el(rf,"onSelect"),0<r.length&&(t=new jd("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=hi)))}function fa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var pi={animationend:fa("Animation","AnimationEnd"),animationiteration:fa("Animation","AnimationIteration"),animationstart:fa("Animation","AnimationStart"),transitionend:fa("Transition","TransitionEnd")},ec={},Q0={};Nn&&(Q0=document.createElement("div").style,"AnimationEvent"in window||(delete pi.animationend.animation,delete pi.animationiteration.animation,delete pi.animationstart.animation),"TransitionEvent"in window||delete pi.transitionend.transition);function Gl(e){if(ec[e])return ec[e];if(!pi[e])return e;var t=pi[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Q0)return ec[e]=t[n];return e}var q0=Gl("animationend"),X0=Gl("animationiteration"),J0=Gl("animationstart"),Z0=Gl("transitionend"),ev=new Map,mm="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 _r(e,t){ev.set(e,t),Zr(t,[e])}for(var tc=0;tc<mm.length;tc++){var nc=mm[tc],qC=nc.toLowerCase(),XC=nc[0].toUpperCase()+nc.slice(1);_r(qC,"on"+XC)}_r(q0,"onAnimationEnd");_r(X0,"onAnimationIteration");_r(J0,"onAnimationStart");_r("dblclick","onDoubleClick");_r("focusin","onFocus");_r("focusout","onBlur");_r(Z0,"onTransitionEnd");zi("onMouseEnter",["mouseout","mouseover"]);zi("onMouseLeave",["mouseout","mouseover"]);zi("onPointerEnter",["pointerout","pointerover"]);zi("onPointerLeave",["pointerout","pointerover"]);Zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zr("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Po="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(" "),JC=new Set("cancel close invalid load scroll toggle".split(" ").concat(Po));function gm(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,qw(r,t,void 0,e),e.currentTarget=null}function tv(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,u=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;gm(i,a,u),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,u=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;gm(i,a,u),o=l}}}if(Qa)throw e=Zc,Qa=!1,Zc=null,e}function ue(e,t){var n=t[cf];n===void 0&&(n=t[cf]=new Set);var r=e+"__bubble";n.has(r)||(nv(t,e,2,!1),n.add(r))}function rc(e,t,n){var r=0;t&&(r|=4),nv(n,e,r,t)}var da="_reactListening"+Math.random().toString(36).slice(2);function ss(e){if(!e[da]){e[da]=!0,u0.forEach(function(n){n!=="selectionchange"&&(JC.has(n)||rc(n,!1,e),rc(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[da]||(t[da]=!0,rc("selectionchange",!1,t))}}function nv(e,t,n,r){switch(z0(t)){case 1:var i=dC;break;case 4:i=hC;break;default:i=zd}n=i.bind(null,t,n,e),i=void 0,!Jc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function ic(e,t,n,r,i){var o=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;
vendor: 4,719 bytes, lines 37-38
37if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=Ar(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}x0(function(){var u=o,f=Dd(n),c=[];e:{var d=ev.get(e);if(d!==void 0){var y=jd,g=e;switch(e){case"keypress":if(Aa(n)===0)break e;case"keydown":case"keyup":y=IC;break;case"focusin":g="focus",y=Xu;break;case"focusout":g="blur",y=Xu;break;case"beforeblur":case"afterblur":y=Xu;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":y=im;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":y=gC;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":y=AC;break;case q0:case X0:case J0:y=_C;break;case Z0:y=OC;break;case"scroll":y=pC;break;case"wheel":y=DC;break;case"copy":case"cut":case"paste":y=wC;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":y=sm}var _=(t&4)!==0,C=!_&&e==="scroll",m=_?d!==null?d+"Capture":null:d;_=[];for(var p=u,v;p!==null;){v=p;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,m!==null&&(S=es(p,m),S!=null&&_.push(as(p,S,v)))),C)break;p=p.return}0<_.length&&(d=new y(d,g,null,n,f),c.push({event:d,listeners:_}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",y=e==="mouseout"||e==="pointerout",d&&n!==qc&&(g=n.relatedTarget||n.fromElement)&&(Ar(g)||g[An]))break e;if((y||d)&&(d=f.window===f?f:(d=f.ownerDocument)?d.defaultView||d.parentWindow:window,y?(g=n.relatedTarget||n.toElement,y=u,g=g?Ar(g):null,g!==null&&(C=ei(g),g!==C||g.tag!==5&&g.tag!==6)&&(g=null)):(y=null,g=u),y!==g)){if(_=im,S="onMouseLeave",m="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(_=sm,S="onPointerLeave",m="onPointerEnter",p="pointer"),C=y==null?d:mi(y),v=g==null?d:mi(g),d=new _(S,p+"leave",y,n,f),d.target=C,d.relatedTarget=v,S=null,Ar(f)===u&&(_=new _(m,p+"enter",g,n,f),_.target=v,_.relatedTarget=C,S=_),C=S,y&&g)t:{for(_=y,m=g,p=0,v=_;v;v=ri(v))p++;for(v=0,S=m;S;S=ri(S))v++;for(;0<p-v;)_=ri(_),p--;for(;0<v-p;)m=ri(m),v--;for(;p--;){if(_===m||m!==null&&_===m.alternate)break t;_=ri(_),m=ri(m)}_=null}else _=null;y!==null&&ym(c,d,y,_,!1),g!==null&&C!==null&&ym(c,C,g,_,!0)}}e:{if(d=u?mi(u):window,y=d.nodeName&&d.nodeName.toLowerCase(),y==="select"||y==="input"&&d.type==="file")var w=UC;else if(um(d))if(H0)w=GC;else{w=VC;var E=WC}else(y=d.nodeName)&&y.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(w=HC);if(w&&(w=w(e,u))){V0(c,w,n,f);break e}E&&E(e,d,u),e==="focusout"&&(E=d._wrapperState)&&E.controlled&&d.type==="number"&&Hc(d,"number",d.value)}switch(E=u?mi(u):window,e){case"focusin":(um(E)||E.contentEditable==="true")&&(hi=E,rf=u,zo=null);break;case"focusout":zo=rf=hi=null;break;case"mousedown":of=!0;break;case"contextmenu":case"mouseup":case"dragend":of=!1,pm(c,n,f);break;case"selectionchange":if(QC)break;case"keydown":case"keyup":pm(c,n,f)}var k;if(Wd)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else di?U0(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(j0&&n.locale!=="ko"&&(di||T!=="onCompositionStart"?T==="onCompositionEnd"&&di&&(k=B0()):(Qn=f,Bd="value"in Qn?Qn.value:Qn.textContent,di=!0)),E=el(u,T),0<E.length&&(T=new om(T,e,null,n,f),c.push({event:T,listeners:E}),k?T.data=k:(k=W0(n),k!==null&&(T.data=k)))),(k=FC?$C(e,n):zC(e,n))&&(u=el(u,"onBeforeInput"),0<u.length&&(f=new om("onBeforeInput","beforeinput",null,n,f),c.push({event:f,listeners:u}),f.data=k))}tv(c,t)})}function as(e,t,n){return{instance:e,listener:t,currentTarget:n}}function el(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=es(e,n),o!=null&&r.unshift(as(e,o,i)),o=es(e,t),o!=null&&r.push(as(e,o,i))),e=e.return}return r}function ri(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ym(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,u=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&u!==null&&(a=u,i?(l=es(n,o),l!=null&&s.unshift(as(n,l,a))):i||(l=es(n,o),l!=null&&s.push(as(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var ZC=/\r\n?/g,eE=/\u0000|\uFFFD/g;function vm(e){return(typeof e=="string"?e:""+e).replace(ZC,` 38`).replace(eE,"")}
vendor: 5,390 bytes, line 38
38function ha(e,t,n){if(t=vm(t),vm(e)!==t&&n)throw Error(I(425))}function tl(){}var sf=null,af=null;function lf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uf=typeof setTimeout=="function"?setTimeout:void 0,tE=typeof clearTimeout=="function"?clearTimeout:void 0,_m=typeof Promise=="function"?Promise:void 0,nE=typeof queueMicrotask=="function"?queueMicrotask:typeof _m<"u"?function(e){return _m.resolve(null).then(e).catch(rE)}:uf;function rE(e){setTimeout(function(){throw e})}function oc(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),rs(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);rs(t)}function tr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Sm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var eo=Math.random().toString(36).slice(2),ln="__reactFiber$"+eo,ls="__reactProps$"+eo,An="__reactContainer$"+eo,cf="__reactEvents$"+eo,iE="__reactListeners$"+eo,oE="__reactHandles$"+eo;function Ar(e){var t=e[ln];if(t)return t;for(var n=e.parentNode;n;){if(t=n[An]||n[ln]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sm(e);e!==null;){if(n=e[ln])return n;e=Sm(e)}return t}e=n,n=e.parentNode}return null}function Ms(e){return e=e[ln]||e[An],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function mi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(I(33))}function Yl(e){return e[ls]||null}var ff=[],gi=-1;function Sr(e){return{current:e}}function fe(e){0>gi||(e.current=ff[gi],ff[gi]=null,gi--)}function le(e,t){gi++,ff[gi]=e.current,e.current=t}var cr={},qe=Sr(cr),ut=Sr(!1),jr=cr;function Bi(e,t){var n=e.type.contextTypes;if(!n)return cr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ct(e){return e=e.childContextTypes,e!=null}function nl(){fe(ut),fe(qe)}function wm(e,t,n){if(qe.current!==cr)throw Error(I(168));le(qe,t),le(ut,n)}function rv(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(I(108,Ww(e)||"Unknown",i));return Se({},n,r)}function rl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||cr,jr=qe.current,le(qe,e),le(ut,ut.current),!0}function Cm(e,t,n){var r=e.stateNode;if(!r)throw Error(I(169));n?(e=rv(e,t,jr),r.__reactInternalMemoizedMergedChildContext=e,fe(ut),fe(qe),le(qe,e)):fe(ut),le(ut,n)}var En=null,Kl=!1,sc=!1;function iv(e){En===null?En=[e]:En.push(e)}function sE(e){Kl=!0,iv(e)}function wr(){if(!sc&&En!==null){sc=!0;var e=0,t=ee;try{var n=En;for(ee=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}En=null,Kl=!1}catch(i){throw En!==null&&(En=En.slice(e+1)),P0(Ld,wr),i}finally{ee=t,sc=!1}}return null}var yi=[],vi=0,il=null,ol=0,Ot=[],Mt=0,Ur=null,kn=1,xn="";function br(e,t){yi[vi++]=ol,yi[vi++]=il,il=e,ol=t}function ov(e,t,n){Ot[Mt++]=kn,Ot[Mt++]=xn,Ot[Mt++]=Ur,Ur=e;var r=kn;e=xn;var i=32-qt(r)-1;r&=~(1<<i),n+=1;var o=32-qt(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,kn=1<<32-qt(t)+i|n<<i|r,xn=o+e}else kn=1<<o|n<<i|r,xn=e}function Hd(e){e.return!==null&&(br(e,1),ov(e,1,0))}function Gd(e){for(;e===il;)il=yi[--vi],yi[vi]=null,ol=yi[--vi],yi[vi]=null;for(;e===Ur;)Ur=Ot[--Mt],Ot[Mt]=null,xn=Ot[--Mt],Ot[Mt]=null,kn=Ot[--Mt],Ot[Mt]=null}var vt=null,yt=null,pe=!1,Gt=null;function sv(e,t){var n=Lt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Em(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,vt=e,yt=tr(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,vt=e,yt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Ur!==null?{id:kn,overflow:xn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Lt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,vt=e,yt=null,!0):!1;default:return!1}}function df(e){return(e.mode&1)!==0&&(e.flags&128)===0}function hf(e){if(pe){var t=yt;if(t){var n=t;if(!Em(e,t)){if(df(e))throw Error(I(418));t=tr(n.nextSibling);var r=vt;t&&Em(e,t)?sv(r,n):(e.flags=e.flags&-4097|2,pe=!1,vt=e)}}else{if(df(e))throw Error(I(418));e.flags=e.flags&-4097|2,pe=!1,vt=e}}}function km(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;vt=e}function pa(e){if(e!==vt)return!1;if(!pe)return km(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!lf(e.type,e.memoizedProps)),t&&(t=yt)){if(df(e))throw av(),Error(I(418));for(;t;)sv(e,t),t=tr(t.nextSibling)}if(km(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(I(317)
vendor: 14,186 bytes, line 38
38);e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){yt=tr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}yt=null}}else yt=vt?tr(e.stateNode.nextSibling):null;return!0}function av(){for(var e=yt;e;)e=tr(e.nextSibling)}function ji(){yt=vt=null,pe=!1}function Yd(e){Gt===null?Gt=[e]:Gt.push(e)}var aE=zn.ReactCurrentBatchConfig;function yo(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(I(309));var r=n.stateNode}if(!r)throw Error(I(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(I(284));if(!n._owner)throw Error(I(290,e))}return e}function ma(e,t){throw e=Object.prototype.toString.call(t),Error(I(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xm(e){var t=e._init;return t(e._payload)}function lv(e){function t(m,p){if(e){var v=m.deletions;v===null?(m.deletions=[p],m.flags|=16):v.push(p)}}function n(m,p){if(!e)return null;for(;p!==null;)t(m,p),p=p.sibling;return null}function r(m,p){for(m=new Map;p!==null;)p.key!==null?m.set(p.key,p):m.set(p.index,p),p=p.sibling;return m}function i(m,p){return m=or(m,p),m.index=0,m.sibling=null,m}function o(m,p,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<p?(m.flags|=2,p):v):(m.flags|=2,p)):(m.flags|=1048576,p)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,p,v,S){return p===null||p.tag!==6?(p=hc(v,m.mode,S),p.return=m,p):(p=i(p,v),p.return=m,p)}function l(m,p,v,S){var w=v.type;return w===fi?f(m,p,v.props.children,S,v.key):p!==null&&(p.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vn&&xm(w)===p.type)?(S=i(p,v.props),S.ref=yo(m,p,v),S.return=m,S):(S=$a(v.type,v.key,v.props,null,m.mode,S),S.ref=yo(m,p,v),S.return=m,S)}function u(m,p,v,S){return p===null||p.tag!==4||p.stateNode.containerInfo!==v.containerInfo||p.stateNode.implementation!==v.implementation?(p=pc(v,m.mode,S),p.return=m,p):(p=i(p,v.children||[]),p.return=m,p)}function f(m,p,v,S,w){return p===null||p.tag!==7?(p=Fr(v,m.mode,S,w),p.return=m,p):(p=i(p,v),p.return=m,p)}function c(m,p,v){if(typeof p=="string"&&p!==""||typeof p=="number")return p=hc(""+p,m.mode,v),p.return=m,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case ia:return v=$a(p.type,p.key,p.props,null,m.mode,v),v.ref=yo(m,null,p),v.return=m,v;case ci:return p=pc(p,m.mode,v),p.return=m,p;case Vn:var S=p._init;return c(m,S(p._payload),v)}if(To(p)||fo(p))return p=Fr(p,m.mode,v,null),p.return=m,p;ma(m,p)}return null}function d(m,p,v,S){var w=p!==null?p.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:a(m,p,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ia:return v.key===w?l(m,p,v,S):null;case ci:return v.key===w?u(m,p,v,S):null;case Vn:return w=v._init,d(m,p,w(v._payload),S)}if(To(v)||fo(v))return w!==null?null:f(m,p,v,S,null);ma(m,v)}return null}function y(m,p,v,S,w){if(typeof S=="string"&&S!==""||typeof S=="number")return m=m.get(v)||null,a(p,m,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ia:return m=m.get(S.key===null?v:S.key)||null,l(p,m,S,w);case ci:return m=m.get(S.key===null?v:S.key)||null,u(p,m,S,w);case Vn:var E=S._init;return y(m,p,v,E(S._payload),w)}if(To(S)||fo(S))return m=m.get(v)||null,f(p,m,S,w,null);ma(p,S)}return null}function g(m,p,v,S){for(var w=null,E=null,k=p,T=p=0,D=null;k!==null&&T<v.length;T++){k.index>T?(D=k,k=null):D=k.sibling;var h=d(m,k,v[T],S);if(h===null){k===null&&(k=D);break}e&&k&&h.alternate===null&&t(m,k),p=o(h,p,T),E===null?w=h:E.sibling=h,E=h,k=D}if(T===v.length)return n(m,k),pe&&br(m,T),w;if(k===null){for(;T<v.length;T++)k=c(m,v[T],S),k!==null&&(p=o(k,p,T),E===null?w=k:E.sibling=k,E=k);return pe&&br(m,T),w}for(k=r(m,k);T<v.length;T++)D=y(k,m,T,v[T],S),D!==null&&(e&&D.alternate!==null&&k.delete(D.key===null?T:D.key),p=o(D,p,T),E===null?w=D:E.sibling=D,E=D);return e&&k.forEach(function(P){return t(m,P)}),pe&&br(m,T),w}function _(m,p,v,S){var w=fo(v);if(typeof w!="function")throw Error(I(150));if(v=w.call(v),v==null)throw Error(I(151));for(var E=w=null,k=p,T=p=0,D=null,h=v.next();k!==null&&!h.done;T++,h=v.next()){k.index>T?(D=k,k=null):D=k.sibling;var P=d(m,k,h.value,S);if(P===null){k===null&&(k=D);break}e&&k&&P.alternate===null&&t(m,k),p=o(P,p,T),E===null?w=P:E.sibling=P,E=P,k=D}if(h.done)return n(m,k),pe&&br(m,T),w;if(k===null){for(;!h.done;T++,h=v.next())h=c(m,h.value,S),h!==null&&(p=o(h,p,T),E===null?w=h:E.sibling=h,E=h);return pe&&br(m,T),w}for(k=r(m,k);!h.done;T++,h=v.next())h=y(k,m,T,h.value,S),h!==null&&(e&&h.alternate!==null&&k.delete(h.key===null?T:h.key),p=o(h,p,T),E===null?w=h:E.sibling=h,E=h);return e&&k.forEach(function(F){return t(m,F)}),pe&&br(m,T),w}function C(m,p,v,S){if(typeof v=="object"&&v!==null&&v.type===fi&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ia:e:{for(var w=v.key,E=p;E!==null;){if(E.key===w){if(w=v.type,w===fi){if(E.tag===7){n(m,E.sibling),p=i(E,v.props.children),p.return=m,m=p;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Vn&&xm(w)===E.type){n(m,E.sibling),p=i(E,v.props),p.ref=yo(m,E,v),p.return=m,m=p;break e}n(m,E);break}else t(m,E);E=E.sibling}v.type===fi?(p=Fr(v.props.children,m.mode,S,v.key),p.return=m,m=p):(S=$a(v.type,v.key,v.props,null,m.mode,S),S.ref=yo(m,p,v),S.return=m,m=S)}return s(m);case ci:e:{for(E=v.key;p!==null;){if(p.key===E)if(p.tag===4&&p.stateNode.containerInfo===v.containerInfo&&p.stateNode.implementation===v.implementation){n(m,p.sibling),p=i(p,v.children||[]),p.return=m,m=p;break e}else{n(m,p);break}else t(m,p);p=p.sibling}p=pc(v,m.mode,S),p.return=m,m=p}return s(m);case Vn:return E=v._init,C(m,p,E(v._payload),S)}if(To(v))return g(m,p,v,S);if(fo(v))return _(m,p,v,S);ma(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,p!==null&&p.tag===6?(n(m,p.sibling),p=i(p,v),p.return=m,m=p):(n(m,p),p=hc(v,m.mode,S),p.return=m,m=p),s(m)):n(m,p)}return C}var Ui=lv(!0),uv=lv(!1),sl=Sr(null),al=null,_i=null,Kd=null;function Qd(){Kd=_i=al=null}function qd(e){var t=sl.current;fe(sl),e._currentValue=t}function pf(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ai(e,t){al=e,Kd=_i=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(st=!0),e.firstContext=null)}function $t(e){var t=e._currentValue;if(Kd!==e)if(e={context:e,memoizedValue:t,next:null},_i===null){if(al===null)throw Error(I(308));_i=e,al.dependencies={lanes:0,firstContext:e}}else _i=_i.next=e;return t}var Rr=null;function Xd(e){Rr===null?Rr=[e]:Rr.push(e)}function cv(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Xd(t)):(n.next=i.next,i.next=n),t.interleaved=n,Rn(e,r)}function Rn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Hn=!1;function Jd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function fv(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 Tn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nr(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,q&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Rn(e,n)}return i=r.interleaved,i===null?(t.next=t,Xd(r)):(t.next=i.next,i.next=t),r.interleaved=t,Rn(e,n)}function Ra(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fd(e,n)}}function bm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ll(e,t,n,r){var i=e.updateQueue;Hn=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,u=l.next;l.next=null,s===null?o=u:s.next=u,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,a=f.lastBaseUpdate,a!==s&&(a===null?f.firstBaseUpdate=u:a.next=u,f.lastBaseUpdate=l))}if(o!==null){var c=i.baseState;s=0,f=u=l=null,a=o;do{var d=a.lane,y=a.eventTime;if((r&d)===d){f!==null&&(f=f.next={eventTime:y,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var g=e,_=a;switch(d=t,y=n,_.tag){case 1:if(g=_.payload,typeof g=="function"){c=g.call(y,c,d);break e}c=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=_.payload,d=typeof g=="function"?g.call(y,c,d):g,d==null)break e;c=Se({},c,d);break e;case 2:Hn=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else y={eventTime:y,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},f===null?(u=f=y,l=c):f=f.next=y,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(f===null&&(l=c),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=f,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Vr|=s,e.lanes=s,e.memoizedState=c}}function Tm(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(I(191,i));i.call(r)}}}var Ds={},hn=Sr(Ds),us=Sr(Ds),cs=Sr(Ds);function Or(e){if(e===Ds)throw Error(I(174));return e}function Zd(e,t){switch(le(cs,t),le(us,e),le(hn,Ds),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Yc(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Yc(t,e)}fe(hn),le(hn,t)}function Wi(){fe(hn),fe(us),fe(cs)}function dv(e){Or(cs.current);var t=Or(hn.current),n=Yc(t,e.type);t!==n&&(le(us,e),le(hn,n))}function eh(e){us.current===e&&(fe(hn),fe(us))}var ye=Sr(0);function ul(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ac=[];function th(){for(var e=0;e<ac.length;e++)ac[e]._workInProgressVersionPrimary=null;ac.length=0}var Oa=zn.ReactCurrentDispatcher,lc=zn.ReactCurrentBatchConfig,Wr=0,_e=null,Ne=null,Me=null,cl=!1,Bo=!1,fs=0,lE=0;function Ve(){throw Error(I(321))}function nh(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Zt(e[n],t[n]))return!1;return!0}function rh(e,t,n,r,i,o){if(Wr=o,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oa.current=e===null||e.memoizedState===null?dE:hE,e=n(r,i),Bo){o=0;do{if(Bo=!1,fs=0,25<=o)throw Error(I(301));o+=1,Me=Ne=null,t.updateQueue=null,Oa.current=pE,e=n(r,i)}while(Bo)}if(Oa.current=fl,t=Ne!==null&&Ne.next!==null,Wr=0,Me=Ne=_e=null,cl=!1,t)throw Error(I(300));return e}function ih(){var e=fs!==0;return fs=0,e}function rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Me===null?_e.memoizedState=Me=e:Me=Me.next=e,Me}function zt(){if(Ne===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Me===null?_e.memoizedState:Me.next;if(t!==null)Me=t,Ne=e;else{if(e===null)throw Error(I(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Me===null?_e.memoizedState=Me=e:Me=Me.next=e}return Me}function ds(e,t){return typeof t=="function"?t(e):t}function uc(e){var t=zt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=Ne,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,u=o;do{var f=u.lane;if((Wr&f)===f)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var c={lane:f,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(a=l=c,s=r):l=l.next=c,_e.lanes|=f,Vr|=f}u=u.next}while(u!==null&&u!==o);l===null?s=r:l.next=a,Zt(r,t.memoizedState)||(st=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,_e.lanes|=o,Vr|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function cc(e){var t=zt(),n=t.queue;if(n===null)throw Error(I(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Zt(o,t.memoizedState)||(st=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function hv(){}function pv(e,t){var n=_e,r=zt(),i=t(),o=!Zt(r.memoizedState,i);if(o&&(r.memoizedState=i,st=!0),r=r.queue,oh(yv.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||Me!==null&&Me.memoizedState.tag&1){if(n.flags|=2048,hs(9,gv.bind(null,n,r,i,t),void 0,null),Fe===null)throw Error(I(349));Wr&30||mv(n,t,i)}return i}function mv(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}
vendor: 5,029 bytes, line 38
38function gv(e,t,n,r){t.value=n,t.getSnapshot=r,vv(t)&&_v(e)}function yv(e,t,n){return n(function(){vv(t)&&_v(e)})}function vv(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Zt(e,n)}catch{return!0}}function _v(e){var t=Rn(e,1);t!==null&&Xt(t,e,1,-1)}function Im(e){var t=rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ds,lastRenderedState:e},t.queue=e,e=e.dispatch=fE.bind(null,_e,e),[t.memoizedState,e]}function hs(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=_e.updateQueue,t===null?(t={lastEffect:null,stores:null},_e.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Sv(){return zt().memoizedState}function Ma(e,t,n,r){var i=rn();_e.flags|=e,i.memoizedState=hs(1|t,n,void 0,r===void 0?null:r)}function Ql(e,t,n,r){var i=zt();r=r===void 0?null:r;var o=void 0;if(Ne!==null){var s=Ne.memoizedState;if(o=s.destroy,r!==null&&nh(r,s.deps)){i.memoizedState=hs(t,n,o,r);return}}_e.flags|=e,i.memoizedState=hs(1|t,n,o,r)}function Pm(e,t){return Ma(8390656,8,e,t)}function oh(e,t){return Ql(2048,8,e,t)}function wv(e,t){return Ql(4,2,e,t)}function Cv(e,t){return Ql(4,4,e,t)}function Ev(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kv(e,t,n){return n=n!=null?n.concat([e]):null,Ql(4,4,Ev.bind(null,t,e),n)}function sh(){}function xv(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nh(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bv(e,t){var n=zt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&nh(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Tv(e,t,n){return Wr&21?(Zt(n,t)||(n=R0(),_e.lanes|=n,Vr|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,st=!0),e.memoizedState=n)}function uE(e,t){var n=ee;ee=n!==0&&4>n?n:4,e(!0);var r=lc.transition;lc.transition={};try{e(!1),t()}finally{ee=n,lc.transition=r}}function Iv(){return zt().memoizedState}function cE(e,t,n){var r=ir(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Pv(e))Nv(t,n);else if(n=cv(e,t,n,r),n!==null){var i=tt();Xt(n,e,r,i),Av(n,t,r)}}function fE(e,t,n){var r=ir(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Pv(e))Nv(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Zt(a,s)){var l=t.interleaved;l===null?(i.next=i,Xd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=cv(e,t,i,r),n!==null&&(i=tt(),Xt(n,e,r,i),Av(n,t,r))}}function Pv(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Nv(e,t){Bo=cl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Av(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Fd(e,n)}}var fl={readContext:$t,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useInsertionEffect:Ve,useLayoutEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useMutableSource:Ve,useSyncExternalStore:Ve,useId:Ve,unstable_isNewReconciler:!1},dE={readContext:$t,useCallback:function(e,t){return rn().memoizedState=[e,t===void 0?null:t],e},useContext:$t,useEffect:Pm,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ma(4194308,4,Ev.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ma(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ma(4,2,e,t)},useMemo:function(e,t){var n=rn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rn();return t=n!==void 0?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=cE.bind(null,_e,e),[r.memoizedState,e]},useRef:function(e){var t=rn();return e={current:e},t.memoizedState=e},useState:Im,useDebugValue:sh,useDeferredValue:function(e){return rn().memoizedState=e},useTransition:function(){var e=Im(!1),t=e[0];return e=uE.bind(null,e[1]),rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=_e,i=rn();if(pe){if(n===void 0)throw Error(I(407));n=n()}else{if(n=t(),Fe===null)throw Error(I(349));Wr&30||mv(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Pm(yv.bind(null,r,o,e),[e]),r.flags|=2048,hs(9,gv.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=rn(),t=Fe.identifierPrefix;if(pe){var n=xn,r=kn;n=(r&~(1<<32-qt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fs++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=lE++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},hE={readContext:$t,useCallback:xv,useContext:$t,useEffect:oh,useImperativeHandle:kv,useInsertionEffect:wv,useLayoutEffect:Cv,useMemo:bv,useReducer:uc,useRef
vendor: 4,381 bytes, lines 38-40
38:Sv,useState:function(){return uc(ds)},useDebugValue:sh,useDeferredValue:function(e){var t=zt();return Tv(t,Ne.memoizedState,e)},useTransition:function(){var e=uc(ds)[0],t=zt().memoizedState;return[e,t]},useMutableSource:hv,useSyncExternalStore:pv,useId:Iv,unstable_isNewReconciler:!1},pE={readContext:$t,useCallback:xv,useContext:$t,useEffect:oh,useImperativeHandle:kv,useInsertionEffect:wv,useLayoutEffect:Cv,useMemo:bv,useReducer:cc,useRef:Sv,useState:function(){return cc(ds)},useDebugValue:sh,useDeferredValue:function(e){var t=zt();return Ne===null?t.memoizedState=e:Tv(t,Ne.memoizedState,e)},useTransition:function(){var e=cc(ds)[0],t=zt().memoizedState;return[e,t]},useMutableSource:hv,useSyncExternalStore:pv,useId:Iv,unstable_isNewReconciler:!1};function Vt(e,t){if(e&&e.defaultProps){t=Se({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function mf(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Se({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ql={isMounted:function(e){return(e=e._reactInternals)?ei(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tt(),i=ir(e),o=Tn(r,i);o.payload=t,n!=null&&(o.callback=n),t=nr(e,o,i),t!==null&&(Xt(t,e,i,r),Ra(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tt(),i=ir(e),o=Tn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=nr(e,o,i),t!==null&&(Xt(t,e,i,r),Ra(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tt(),r=ir(e),i=Tn(n,r);i.tag=2,t!=null&&(i.callback=t),t=nr(e,i,r),t!==null&&(Xt(t,e,r,n),Ra(t,e,r))}};function Nm(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):t.prototype&&t.prototype.isPureReactComponent?!os(n,r)||!os(i,o):!0}function Rv(e,t,n){var r=!1,i=cr,o=t.contextType;return typeof o=="object"&&o!==null?o=$t(o):(i=ct(t)?jr:qe.current,r=t.contextTypes,o=(r=r!=null)?Bi(e,i):cr),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ql,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Am(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ql.enqueueReplaceState(t,t.state,null)}function gf(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Jd(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=$t(o):(o=ct(t)?jr:qe.current,i.context=Bi(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(mf(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&ql.enqueueReplaceState(i,i.state,null),ll(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Vi(e,t){try{var n="",r=t;do n+=Uw(r),r=r.return;while(r);var i=n}catch(o){i=` 39Error generating stack: `+o.message+` 40`+o.stack}return{value:e,source:t,stack:i,digest:null}}function fc(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yf(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var mE=typeof WeakMap=="function"?WeakMap:Map;function Ov(e,t,n){n=Tn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,Tf=r),yf(e,t)},n}function Mv(e,t,n){n=Tn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){yf(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){yf(e,t),typeof r!="function"&&(rr===null?rr=new Set([this]):rr.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Rm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new mE;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=PE.bind(null,e,t,n),t.then(e,e))}
vendor: 10,208 bytes, line 40
40function Om(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Mm(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Tn(-1,1),t.tag=2,nr(n,t,1))),n.lanes|=1),e)}var gE=zn.ReactCurrentOwner,st=!1;function et(e,t,n,r){t.child=e===null?uv(t,null,n,r):Ui(t,e.child,n,r)}function Dm(e,t,n,r,i){n=n.render;var o=t.ref;return Ai(t,i),r=rh(e,t,n,r,o,i),n=ih(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,On(e,t,i)):(pe&&n&&Hd(t),t.flags|=1,et(e,t,r,i),t.child)}function Lm(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!ph(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,Dv(e,t,o,r,i)):(e=$a(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:os,n(s,r)&&e.ref===t.ref)return On(e,t,i)}return t.flags|=1,e=or(o,r),e.ref=t.ref,e.return=t,t.child=e}function Dv(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(os(o,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(st=!0);else return t.lanes=e.lanes,On(e,t,i)}return vf(e,t,n,r,i)}function Lv(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},le(wi,mt),mt|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,le(wi,mt),mt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,le(wi,mt),mt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,le(wi,mt),mt|=r;return et(e,t,i,n),t.child}function Fv(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function vf(e,t,n,r,i){var o=ct(n)?jr:qe.current;return o=Bi(t,o),Ai(t,i),n=rh(e,t,n,r,o,i),r=ih(),e!==null&&!st?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,On(e,t,i)):(pe&&r&&Hd(t),t.flags|=1,et(e,t,n,i),t.child)}function Fm(e,t,n,r,i){if(ct(n)){var o=!0;rl(t)}else o=!1;if(Ai(t,i),t.stateNode===null)Da(e,t),Rv(t,n,r),gf(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=$t(u):(u=ct(n)?jr:qe.current,u=Bi(t,u));var f=n.getDerivedStateFromProps,c=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==u)&&Am(t,s,r,u),Hn=!1;var d=t.memoizedState;s.state=d,ll(t,r,s,i),l=t.memoizedState,a!==r||d!==l||ut.current||Hn?(typeof f=="function"&&(mf(t,n,f,r),l=t.memoizedState),(a=Hn||Nm(t,n,a,r,d,l,u))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,fv(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:Vt(t.type,a),s.props=u,c=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=$t(l):(l=ct(n)?jr:qe.current,l=Bi(t,l));var y=n.getDerivedStateFromProps;(f=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==c||d!==l)&&Am(t,s,r,l),Hn=!1,d=t.memoizedState,s.state=d,ll(t,r,s,i);var g=t.memoizedState;a!==c||d!==g||ut.current||Hn?(typeof y=="function"&&(mf(t,n,y,r),g=t.memoizedState),(u=Hn||Nm(t,n,u,r,d,g,l)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=l,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return _f(e,t,n,r,o,i)}function _f(e,t,n,r,i,o){Fv(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&Cm(t,n,!1),On(e,t,o);r=t.stateNode,gE.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Ui(t,e.child,null,o),t.child=Ui(t,null,a,o)):et(e,t,a,o),t.memoizedState=r.state,i&&Cm(t,n,!0),t.child}function $v(e){var t=e.stateNode;t.pendingContext?wm(e,t.pendingContext,t.pendingContext!==t.context):t.context&&wm(e,t.context,!1),Zd(e,t.containerInfo)}function $m(e,t,n,r,i){return ji(),Yd(i),t.flags|=256,et(e,t,n,r),t.child}var Sf={dehydrated:null,treeContext:null,retryLane:0};function wf(e){return{baseLanes:e,cachePool:null,transitions:null}}function zv(e,t,n){var r=t.pendingProps,i=ye.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),le(ye,i&1),e===null)return hf(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Zl(s,r,0,null),e=Fr(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=wf(n),t.memoizedState=Sf,e):ah(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return yE(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var l={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=or(i,l),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=or(a,o):(o=Fr(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?wf(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=Sf,r}return o=e.child,e=o.sibling,r=or(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ah(e,t){return t=Zl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ga(e,t,n,r){return r!==null&&Yd(r),Ui(t,e.child,null,n),e=ah(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function yE(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=fc(Error(I(422))),ga(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Zl({mode:"visible",children:r.children},i,0,null),o=Fr(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Ui(t,e.child,null,s),t.child.memoizedState=wf(s),t.memoizedState=Sf,o);if(!(t.mode&1))return ga(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(I(419)),r=fc(o,r,void 0),ga(e,t,s,r)}if(a=(s&e.childLanes)!==0,st||a){if(r=Fe,r!==null){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}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Rn(e,i),Xt(r,e,i,-1))}return hh(),r=fc(Error(I(421))),ga(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=NE.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,yt=tr(i.nextSibling),vt=t,pe=!0,Gt=null,e!==null&&(Ot[Mt++]=kn,Ot[Mt++]=xn,Ot[Mt++]=Ur,kn=e.id,xn=e.overflow,Ur=t),t=ah(t,r.children),t.flags|=4096,t)}function zm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),pf(e.return,t,n)}function dc(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function Bv(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(et(e,t,r.children,n),r=ye.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&zm(e,n,t);else if(e.tag===19)zm(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(le(ye,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ul(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),dc(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ul(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}dc(t,!0,n,null,o);break;case"together":dc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Da(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function On(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Vr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(I(153));
vendor: 4,746 bytes, line 40
40if(t.child!==null){for(e=t.child,n=or(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=or(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function vE(e,t,n){switch(t.tag){case 3:$v(t),ji();break;case 5:dv(t);break;case 1:ct(t.type)&&rl(t);break;case 4:Zd(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;le(sl,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(le(ye,ye.current&1),t.flags|=128,null):n&t.child.childLanes?zv(e,t,n):(le(ye,ye.current&1),e=On(e,t,n),e!==null?e.sibling:null);le(ye,ye.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Bv(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),le(ye,ye.current),r)break;return null;case 22:case 23:return t.lanes=0,Lv(e,t,n)}return On(e,t,n)}var jv,Cf,Uv,Wv;jv=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Cf=function(){};Uv=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Or(hn.current);var o=null;switch(n){case"input":i=Wc(e,i),r=Wc(e,r),o=[];break;case"select":i=Se({},i,{value:void 0}),r=Se({},r,{value:void 0}),o=[];break;case"textarea":i=Gc(e,i),r=Gc(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=tl)}Kc(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Jo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var l=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&l!==a&&(l!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Jo.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&ue("scroll",e),o||a===l||(o=[])):(o=o||[]).push(u,l))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};Wv=function(e,t,n,r){n!==r&&(t.flags|=4)};function vo(e,t){if(!pe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function He(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)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 _E(e,t,n){var r=t.pendingProps;switch(Gd(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return He(t),null;case 1:return ct(t.type)&&nl(),He(t),null;case 3:return r=t.stateNode,Wi(),fe(ut),fe(qe),th(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(pa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Gt!==null&&(Nf(Gt),Gt=null))),Cf(e,t),He(t),null;case 5:eh(t);var i=Or(cs.current);if(n=t.type,e!==null&&t.stateNode!=null)Uv(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(I(166));return He(t),null}if(e=Or(hn.current),pa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ln]=t,r[ls]=o,e=(t.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<Po.length;i++)ue(Po[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Kp(r,o),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},ue("invalid",r);break;case"textarea":qp(r,o),ue("invalid",r)}Kc(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];
vendor: 28,864 bytes, line 40
40s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&ha(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&ha(r.textContent,a,e),i=["children",""+a]):Jo.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&ue("scroll",r)}switch(n){case"input":oa(r),Qp(r,o,!0);break;case"textarea":oa(r),Xp(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=tl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=y0(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ln]=t,e[ls]=r,jv(e,t,!1,!1),t.stateNode=e;e:{switch(s=Qc(n,r),n){case"dialog":ue("cancel",e),ue("close",e),i=r;break;case"iframe":case"object":case"embed":ue("load",e),i=r;break;case"video":case"audio":for(i=0;i<Po.length;i++)ue(Po[i],e);i=r;break;case"source":ue("error",e),i=r;break;case"img":case"image":case"link":ue("error",e),ue("load",e),i=r;break;case"details":ue("toggle",e),i=r;break;case"input":Kp(e,r),i=Wc(e,r),ue("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Se({},r,{value:void 0}),ue("invalid",e);break;case"textarea":qp(e,r),i=Gc(e,r),ue("invalid",e);break;default:i=r}Kc(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?S0(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&v0(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Zo(e,l):typeof l=="number"&&Zo(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Jo.hasOwnProperty(o)?l!=null&&o==="onScroll"&&ue("scroll",e):l!=null&&Ad(e,o,l,s))}switch(n){case"input":oa(e),Qp(e,r,!1);break;case"textarea":oa(e),Xp(e);break;case"option":r.value!=null&&e.setAttribute("value",""+ur(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Ti(e,!!r.multiple,o,!1):r.defaultValue!=null&&Ti(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=tl)}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)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return He(t),null;case 6:if(e&&t.stateNode!=null)Wv(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(I(166));if(n=Or(cs.current),Or(hn.current),pa(t)){if(r=t.stateNode,n=t.memoizedProps,r[ln]=t,(o=r.nodeValue!==n)&&(e=vt,e!==null))switch(e.tag){case 3:ha(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ha(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[ln]=t,t.stateNode=r}return He(t),null;case 13:if(fe(ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&yt!==null&&t.mode&1&&!(t.flags&128))av(),ji(),t.flags|=98560,o=!1;else if(o=pa(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(I(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(I(317));o[ln]=t}else ji(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;He(t),o=!1}else Gt!==null&&(Nf(Gt),Gt=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||ye.current&1?Re===0&&(Re=3):hh())),t.updateQueue!==null&&(t.flags|=4),He(t),null);case 4:return Wi(),Cf(e,t),e===null&&ss(t.stateNode.containerInfo),He(t),null;case 10:return qd(t.type._context),He(t),null;case 17:return ct(t.type)&&nl(),He(t),null;case 19:if(fe(ye),o=t.memoizedState,o===null)return He(t),null;if(r=(t.flags&128)!==0,s=o.rendering,s===null)if(r)vo(o,!1);else{if(Re!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(s=ul(e),s!==null){for(t.flags|=128,vo(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(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=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return le(ye,ye.current&1|2),t.child}e=e.sibling}o.tail!==null&&xe()>Hi&&(t.flags|=128,r=!0,vo(o,!1),t.lanes=4194304)}else{if(!r)if(e=ul(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),vo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!pe)return He(t),null}else 2*xe()-o.renderingStartTime>Hi&&n!==1073741824&&(t.flags|=128,r=!0,vo(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=xe(),t.sibling=null,n=ye.current,le(ye,r?n&1|2:n&1),t):(He(t),null);case 22:case 23:return dh(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?mt&1073741824&&(He(t),t.subtreeFlags&6&&(t.flags|=8192)):He(t),null;case 24:return null;case 25:return null}throw Error(I(156,t.tag))}function SE(e,t){switch(Gd(t),t.tag){case 1:return ct(t.type)&&nl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wi(),fe(ut),fe(qe),th(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return eh(t),null;case 13:if(fe(ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(I(340));ji()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return fe(ye),null;case 4:return Wi(),null;case 10:return qd(t.type._context),null;case 22:case 23:return dh(),null;case 24:return null;default:return null}}var ya=!1,Ye=!1,wE=typeof WeakSet=="function"?WeakSet:Set,M=null;function Si(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ee(e,t,r)}else n.current=null}function Ef(e,t,n){try{n()}catch(r){Ee(e,t,r)}}var Bm=!1;function CE(e,t){if(sf=Ja,e=K0(),Vd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,u=0,f=0,c=e,d=null;t:for(;;){for(var y;c!==n||i!==0&&c.nodeType!==3||(a=s+i),c!==o||r!==0&&c.nodeType!==3||(l=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++u===i&&(a=s),d===o&&++f===r&&(l=s),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(af={focusedElem:e,selectionRange:n},Ja=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var _=g.memoizedProps,C=g.memoizedState,m=t.stateNode,p=m.getSnapshotBeforeUpdate(t.elementType===t.type?_:Vt(t.type,_),C);m.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(I(163))}}catch(S){Ee(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=Bm,Bm=!1,g}function jo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Ef(t,n,o)}i=i.next}while(i!==r)}}function Xl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==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 kf(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Vv(e){var t=e.alternate;t!==null&&(e.alternate=null,Vv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ln],delete t[ls],delete t[cf],delete t[iE],delete t[oE])),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 Hv(e){return e.tag===5||e.tag===3||e.tag===4}function jm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function xf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=tl));else if(r!==4&&(e=e.child,e!==null))for(xf(e,t,n),e=e.sibling;e!==null;)xf(e,t,n),e=e.sibling}function bf(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(bf(e,t,n),e=e.sibling;e!==null;)bf(e,t,n),e=e.sibling}var Be=null,Ht=!1;function Un(e,t,n){for(n=n.child;n!==null;)Gv(e,t,n),n=n.sibling}function Gv(e,t,n){if(dn&&typeof dn.onCommitFiberUnmount=="function")try{dn.onCommitFiberUnmount(Wl,n)}catch{}switch(n.tag){case 5:Ye||Si(n,t);case 6:var r=Be,i=Ht;Be=null,Un(e,t,n),Be=r,Ht=i,Be!==null&&(Ht?(e=Be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Be.removeChild(n.stateNode));break;case 18:Be!==null&&(Ht?(e=Be,n=n.stateNode,e.nodeType===8?oc(e.parentNode,n):e.nodeType===1&&oc(e,n),rs(e)):oc(Be,n.stateNode));break;case 4:r=Be,i=Ht,Be=n.stateNode.containerInfo,Ht=!0,Un(e,t,n),Be=r,Ht=i;break;case 0:case 11:case 14:case 15:if(!Ye&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&Ef(n,t,s),i=i.next}while(i!==r)}Un(e,t,n);break;case 1:if(!Ye&&(Si(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Ee(n,t,a)}Un(e,t,n);break;case 21:Un(e,t,n);break;case 22:n.mode&1?(Ye=(r=Ye)||n.memoizedState!==null,Un(e,t,n),Ye=r):Un(e,t,n);break;default:Un(e,t,n)}}function Um(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new wE),t.forEach(function(r){var i=AE.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Wt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Be=a.stateNode,Ht=!1;break e;case 3:Be=a.stateNode.containerInfo,Ht=!0;break e;case 4:Be=a.stateNode.containerInfo,Ht=!0;break e}a=a.return}if(Be===null)throw Error(I(160));Gv(o,s,i),Be=null,Ht=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(u){Ee(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Yv(t,e),t=t.sibling}function Yv(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(t,e),tn(e),r&4){try{jo(3,e,e.return),Xl(3,e)}catch(_){Ee(e,e.return,_)}try{jo(5,e,e.return)}catch(_){Ee(e,e.return,_)}}break;case 1:Wt(t,e),tn(e),r&512&&n!==null&&Si(n,n.return);break;case 5:if(Wt(t,e),tn(e),r&512&&n!==null&&Si(n,n.return),e.flags&32){var i=e.stateNode;try{Zo(i,"")}catch(_){Ee(e,e.return,_)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&m0(i,o),Qc(a,s);var u=Qc(a,o);for(s=0;s<l.length;s+=2){var f=l[s],c=l[s+1];f==="style"?S0(i,c):f==="dangerouslySetInnerHTML"?v0(i,c):f==="children"?Zo(i,c):Ad(i,f,c,u)}switch(a){case"input":Vc(i,o);break;case"textarea":g0(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var y=o.value;y!=null?Ti(i,!!o.multiple,y,!1):d!==!!o.multiple&&(o.defaultValue!=null?Ti(i,!!o.multiple,o.defaultValue,!0):Ti(i,!!o.multiple,o.multiple?[]:"",!1))}i[ls]=o}catch(_){Ee(e,e.return,_)}}break;case 6:if(Wt(t,e),tn(e),r&4){if(e.stateNode===null)throw Error(I(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){Ee(e,e.return,_)}}break;case 3:if(Wt(t,e),tn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{rs(t.containerInfo)}catch(_){Ee(e,e.return,_)}break;case 4:Wt(t,e),tn(e);break;case 13:Wt(t,e),tn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ch=xe())),r&4&&Um(e);break;case 22:if(f=n!==null&&n.memoizedState!==null,e.mode&1?(Ye=(u=Ye)||f,Wt(t,e),Ye=u):Wt(t,e),tn(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!f&&e.mode&1)for(M=e,f=e.child;f!==null;){for(c=M=f;M!==null;){switch(d=M,y=d.child,d.tag){case 0:case 11:case 14:case 15:jo(4,d,d.return);break;case 1:Si(d,d.return);var g=d.stateNode;if(typeof g.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(_){Ee(r,n,_)}}break;case 5:Si(d,d.return);break;case 22:if(d.memoizedState!==null){Vm(c);continue}}y!==null?(y.return=d,M=y):Vm(c)}f=f.sibling}e:for(f=null,c=e;;){if(c.tag===5){if(f===null){f=c;try{i=c.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=c.stateNode,l=c.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=_0("display",s))}catch(_){Ee(e,e.return,_)}}}else if(c.tag===6){if(f===null)try{c.stateNode.nodeValue=u?"":c.memoizedProps}catch(_){Ee(e,e.return,_)}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===e)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===e)break e;for(;c.sibling===null;){if(c.return===null||c.return===e)break e;f===c&&(f=null),c=c.return}f===c&&(f=null),c.sibling.return=c.return,c=c.sibling}}break;case 19:Wt(t,e),tn(e),r&4&&Um(e);break;case 21:break;default:Wt(t,e),tn(e)}}function tn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Hv(n)){var r=n;break e}n=n.return}throw Error(I(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(Zo(i,""),r.flags&=-33);var o=jm(e);bf(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=jm(e);xf(e,a,s);break;default:throw Error(I(161))}}catch(l){Ee(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function EE(e,t,n){M=e,Kv(e)}function Kv(e,t,n){for(var r=(e.mode&1)!==0;M!==null;){var i=M,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||ya;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Ye;a=ya;var u=Ye;if(ya=s,(Ye=l)&&!u)for(M=i;M!==null;)s=M,l=s.child,s.tag===22&&s.memoizedState!==null?Hm(i):l!==null?(l.return=s,M=l):Hm(i);for(;o!==null;)M=o,Kv(o),o=o.sibling;M=i,ya=a,Ye=u}Wm(e)}else i.subtreeFlags&8772&&o!==null?(o.return=i,M=o):Wm(e)}}function Wm(e){for(;M!==null;){var t=M;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Ye||Xl(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!Ye)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Vt(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Tm(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Tm(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&t.flags&4){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var f=u.memoizedState;if(f!==null){var c=f.dehydrated;c!==null&&rs(c)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(I(163))}Ye||t.flags&512&&kf(t)}catch(d){Ee(t,t.return,d)}}if(t===e){M=null;break}if(n=t.sibling,n!==null){n.return=t.return,M=n;break}M=t.return}}function Vm(e){for(;M!==null;){var t=M;if(t===e){M=null;break}var n=t.sibling;if(n!==null){n.return=t.return,M=n;break}M=t.return}}function Hm(e){for(;M!==null;){var t=M;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Xl(4,t)}catch(l){Ee(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){Ee(t,i,l)}}var o=t.return;try{kf(t)}catch(l){Ee(t,o,l)}break;case 5:var s=t.return;try{kf(t)}catch(l){Ee(t,s,l)}}}catch(l){Ee(t,t.return,l)}if(t===e){M=null;break}var a=t.sibling;if(a!==null){a.return=t.return,M=a;break}M=t.return}}var kE=Math.ceil,dl=zn.ReactCurrentDispatcher,lh=zn.ReactCurrentOwner,Ft=zn.ReactCurrentBatchConfig,q=0,Fe=null,Pe=null,Ue=0,mt=0,wi=Sr(0),Re=0,ps=null,Vr=0,Jl=0,uh=0,Uo=null,ot=null,ch=0,Hi=1/0,Cn=null,hl=!1,Tf=null,rr=null,va=!1,qn=null,pl=0,Wo=0,If=null,La=-1,Fa=0;function tt(){return q&6?xe():La!==-1?La:La=xe()}function ir(e){return e.mode&1?q&2&&Ue!==0?Ue&-Ue:aE.transition!==null?(Fa===0&&(Fa=R0()),Fa):(e=ee,e!==0||(e=window.event,e=e===void 0?16:z0(e.type)),e):1}function Xt(e,t,n,r){if(50<Wo)throw Wo=0,If=null,Error(I(185));Rs(e,n,r),(!(q&2)||e!==Fe)&&(e===Fe&&(!(q&2)&&(Jl|=n),Re===4&&Yn(e,Ue)),ft(e,r),n===1&&q===0&&!(t.mode&1)&&(Hi=xe()+500,Kl&&wr()))}function ft(e,t){var n=e.callbackNode;aC(e,t);var r=Xa(e,e===Fe?Ue:0);if(r===0)n!==null&&em(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&em(n),t===1)e.tag===0?sE(Gm.bind(null,e)):iv(Gm.bind(null,e)),nE(function(){!(q&6)&&wr()}),n=null;else{switch(O0(r)){case 1:n=Ld;break;case 4:n=N0;break;case 16:n=qa;break;case 536870912:n=A0;break;default:n=qa}n=n_(n,Qv.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Qv(e,t){if(La=-1,Fa=0,q&6)throw Error(I(327));var n=e.callbackNode;if(Ri()&&e.callbackNode!==n)return null;var r=Xa(e,e===Fe?Ue:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ml(e,r);else{t=r;var i=q;q|=2;var o=Xv();(Fe!==e||Ue!==t)&&(Cn=null,Hi=xe()+500,Lr(e,t));do try{TE();break}catch(a){qv(e,a)}while(!0);Qd(),dl.current=o,q=i,Pe!==null?t=0:(Fe=null,Ue=0,t=Re)}if(t!==0){if(t===2&&(i=ef(e),i!==0&&(r=i,t=Pf(e,i))),t===1)throw n=ps,Lr(e,0),Yn(e,r),ft(e,xe()),n;if(t===6)Yn(e,r);else{if(i=e.current.alternate,!(r&30)&&!xE(i)&&(t=ml(e,r),t===2&&(o=ef(e),o!==0&&(r=o,t=Pf(e,o))),t===1))throw n=ps,Lr(e,0),Yn(e,r),ft(e,xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(I(345));case 2:Tr(e,ot,Cn);break;case 3:if(Yn(e,r),(r&130023424)===r&&(t=ch+500-xe(),10<t)){if(Xa(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=uf(Tr.bind(null,e,ot,Cn),t);break}Tr(e,ot,Cn);break;case 4:if(Yn(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-qt(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=xe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kE(r/1960))-r,10<r){e.timeoutHandle=uf(Tr.bind(null,e,ot,Cn),r);break}Tr(e,ot,Cn);break;case 5:Tr(e,ot,Cn);break;default:throw Error(I(329))}}}return ft(e,xe()),e.callbackNode===n?Qv.bind(null,e):null}function Pf(e,t){var n=Uo;return e.current.memoizedState.isDehydrated&&(Lr(e,t).flags|=256),e=ml(e,t),e!==2&&(t=ot,ot=n,t!==null&&Nf(t)),e}function Nf(e){ot===null?ot=e:ot.push.apply(ot,e)}function xE(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Zt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yn(e,t){for(t&=~uh,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-qt(t),r=1<<n;e[n]=-1,t&=~r}}function Gm(e){if(q&6)throw Error(I(327));Ri();var t=Xa(e,0);if(!(t&1))return ft(e,xe()),null;var n=ml(e,t);if(e.tag!==0&&n===2){var r=ef(e);r!==0&&(t=r,n=Pf(e,r))}if(n===1)throw n=ps,Lr(e,0),Yn(e,t),ft(e,xe()),n;if(n===6)throw Error(I(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Tr(e,ot,Cn),ft(e,xe()),null}function fh(e,t){var n=q;q|=1;try{return e(t)}finally{q=n,q===0&&(Hi=xe()+500,Kl&&wr())}}function Hr(e){qn!==null&&qn.tag===0&&!(q&6)&&Ri();var t=q;q|=1;var n=Ft.transition,r=ee;try{if(Ft.transition=null,ee=1,e)return e()}finally{ee=r,Ft.transition=n,q=t,!(q&6)&&wr()}}function dh(){mt=wi.current,fe(wi)}function Lr(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,tE(n)),Pe!==null)for(n=Pe.return;n!==null;){var r=n;switch(Gd(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&nl();break;case 3:Wi(),fe(ut),fe(qe),th();break;case 5:eh(r);break;case 4:Wi();break;case 13:fe(ye);break;case 19:fe(ye);break;case 10:qd(r.type._context);break;case 22:case 23:dh()}n=n.return}if(Fe=e,Pe=e=or(e.current,null),Ue=mt=t,Re=0,ps=null,uh=Jl=Vr=0,ot=Uo=null,Rr!==null){for(t=0;t<Rr.length;t++)if(n=Rr[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Rr=null}return e}function qv(e,t){do{var n=Pe;try{if(Qd(),Oa.current=fl,cl){for(var r=_e.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}cl=!1}if(Wr=0,Me=Ne=_e=null,Bo=!1,fs=0,lh.current=null,n===null||n.return===null){Re=1,ps=t,Pe=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Ue,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,f=a,c=f.tag;if(!(f.mode&1)&&(c===0||c===11||c===15)){var d=f.alternate;d?(f.updateQueue=d.updateQueue,f.memoizedState=d.memoizedState,f.lanes=d.lanes):(f.updateQueue=null,f.memoizedState=null)}var y=Om(s);if(y!==null){y.flags&=-257,Mm(y,s,a,o,t),y.mode&1&&Rm(o,u,t),t=y,l=u;var g=t.updateQueue;if(g===null){var _=new Set;_.add(l),t.updateQueue=_}else g.add(l);break e}else{if(!(t&1)){Rm(o,u,t),hh();break e}l=Error(I(426))}}else if(pe&&a.mode&1){var C=Om(s);if(C!==null){!(C.flags&65536)&&(C.flags|=256),Mm(C,s,a,o,t),Yd(Vi(l,a));break e}}o=l=Vi(l,a),Re!==4&&(Re=2),Uo===null?Uo=[o]:Uo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=Ov(o,l,t);bm(o,m);break e;case 1:a=l;var p=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof p.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(rr===null||!rr.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=Mv(o,a,t);bm(o,S);break e}}o=o.return}while(o!==null)}Zv(n)}catch(w){t=w,Pe===n&&n!==null&&(Pe=n=n.return);continue}break}while(!0)}function Xv(){var e=dl.current;return dl.current=fl,e===null?fl:e}function hh(){(Re===0||Re===3||Re===2)&&(Re=4),Fe===null||!(Vr&268435455)&&!(Jl&268435455)||Yn(Fe,Ue)}function ml(e,t){var n=q;q|=2;var r=Xv();(Fe!==e||Ue!==t)&&(Cn=null,Lr(e,t));do try{bE();break}catch(i){qv(e,i)}while(!0);if(Qd(),q=n,dl.current=r,Pe!==null)throw Error(I(261));return Fe=null,Ue=0,Re}function bE(){for(;Pe!==null;)Jv(Pe)}function TE(){for(;Pe!==null&&!Jw();)Jv(Pe)}function Jv(e){var t=t_(e.alternate,e,mt);e.memoizedProps=e.pendingProps,t===null?Zv(e):Pe=t,lh.current=null}function Zv(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=SE(n,t),n!==null){n.flags&=32767,Pe=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Re=6,Pe=null;return}}else if(n=_E(n,t,mt),n!==null){Pe=n;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);Re===0&&(Re=5)}function Tr(e,t,n){var r=ee,i=Ft.transition;try{Ft.transition=null,ee=1,IE(e,t,n,r)}finally{Ft.transition=i,ee=r}return null}function IE(e,t,n,r){do Ri();while(qn!==null);if(q&6)throw Error(I(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(I(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(lC(e,o),e===Fe&&(Pe=Fe=null,Ue=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||va||(va=!0,n_(qa,function(){return Ri(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=Ft.transition,Ft.transition=null;var s=ee;ee=1;var a=q;q|=4,lh.current=null,CE(e,n),Yv(n,e),KC(af),Ja=!!sf,af=sf=null,e.current=n,EE(n),Zw(),q=a,ee=s,Ft.transition=o}else e.current=n;if(va&&(va=!1,qn=e,pl=i),o=e.pendingLanes,o===0&&(rr=null),nC(n.stateNode),ft(e,xe()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(hl)throw hl=!1,e=Tf,Tf=null,e;return pl&1&&e.tag!==0&&Ri(),o=e.pendingLanes,o&1?e===If?Wo++:(Wo=0,If=e):Wo=0,wr(),null}function Ri(){if(qn!==null){var e=O0(pl),t=Ft.transition,n=ee;try{if(Ft.transition=null,ee=16>e?16:e,qn===null)var r=!1;else{if(e=qn,qn=null,pl=0,q&6)throw Error(I(331));var i=q;for(q|=4,M=e.current;M!==null;){var o=M,s=o.child;if(M.flags&16){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var u=a[l];for(M=u;M!==null;){var f=M;switch(f.tag){case 0:case 11:case 15:jo(8,f,o)}var c=f.child;if(c!==null)c.return=f,M=c;else for(;M!==null;){f=M;var d=f.sibling,y=f.return;if(Vv(f),f===u){M=null;break}if(d!==null){d.return=y,M=d;break}M=y}}}var g=o.alternate;if(g!==null){var _=g.child;if(_!==null){g.child=null;do{var C=_.sibling;_.sibling=null,_=C}while(_!==null)}}M=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,M=s;else e:for(;M!==null;){if(o=M,o.flags&2048)switch(o.tag){case 0:case 11:case 15:jo(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,M=m;break e}M=o.return}}var p=e.current;for(M=p;M!==null;){s=M;var v=s.child;if(s.subtreeFlags&2064&&v!==null)v.return=s,M=v;else e:for(s=p;M!==null;){if(a=M,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Xl(9,a)}}catch(w){Ee(a,a.return,w)}if(a===s){M=null;break e}var S=a.sibling;if(S!==null){S.return=a.return,M=S;break e}M=a.return}}if(q=i,wr(),dn&&typeof dn.onPostCommitFiberRoot=="function")try{dn.onPostCommitFiberRoot(Wl,e)}catch{}r=!0}return r}finally{ee=n,Ft.transition=t}}return!1}function Ym(e,t,n){t=Vi(n,t),t=Ov(e,t,1),e=nr(e,t,1),t=tt(),e!==null&&(Rs(e,1,t),ft(e,t))}function Ee(e,t,n){if(e.tag===3)Ym(e,e,n);else for(;t!==null;){if(t.tag===3){Ym(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(rr===null||!rr.has(r))){e=Vi(n,e),e=Mv(t,e,1),t=nr(t,e,1),e=tt(),t!==null&&(Rs(t,1,e),ft(t,e));break}}t=t.return}}function PE(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=tt(),e.pingedLanes|=e.suspendedLanes&n,Fe===e&&(Ue&n)===n&&(Re===4||Re===3&&(Ue&130023424)===Ue&&500>xe()-ch?Lr(e,0):uh|=n),ft(e,t)}function e_(e,t){t===0&&(e.mode&1?(t=la,la<<=1,!(la&130023424)&&(la=4194304)):t=1);var n=tt();e=Rn(e,t),e!==null&&(Rs(e,t,n),ft(e,n))}function NE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),e_(e,n)}function AE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(I(314))}r!==null&&r.delete(t),e_(e,n)}var t_;t_=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)st=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return st=!1,vE(e,t,n);st=!!(e.flags&131072)}else st=!1,pe&&t.flags&1048576&&ov(t,ol,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Da(e,t),e=t.pendingProps;var i=Bi(t,qe.current);Ai(t,n),i=rh(null,t,r,e,i,n);var o=ih();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ct(r)?(o=!0,rl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Jd(t),i.updater=ql,t.stateNode=i,i._reactInternals=t,gf(t,r,e,n),t=_f(null,t,r,!0,o,n)):(t.tag=0,pe&&o&&Hd(t),et(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Da(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=OE(r),e=Vt(r,e),i){case 0:t=vf(null,t,r,e,n);break e;case 1:t=Fm(null,t,r,e,n);break e;case 11:t=Dm(null,t,r,e,n);break e;case 14:t=Lm(null,t,r,Vt(r.type,e),n);break e}throw Error(I(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),vf(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),Fm(e,t,r,i,n);case 3:e:{if($v(t),e===null)throw Error(I(387));
vendor: 10,364 bytes, line 40
40r=t.pendingProps,o=t.memoizedState,i=o.element,fv(e,t),ll(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,t.flags&256){i=Vi(Error(I(423)),t),t=$m(e,t,r,n,i);break e}else if(r!==i){i=Vi(Error(I(424)),t),t=$m(e,t,r,n,i);break e}else for(yt=tr(t.stateNode.containerInfo.firstChild),vt=t,pe=!0,Gt=null,n=uv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ji(),r===i){t=On(e,t,n);break e}et(e,t,r,n)}t=t.child}return t;case 5:return dv(t),e===null&&hf(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,lf(r,i)?s=null:o!==null&&lf(r,o)&&(t.flags|=32),Fv(e,t),et(e,t,s,n),t.child;case 6:return e===null&&hf(t),null;case 13:return zv(e,t,n);case 4:return Zd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ui(t,null,r,n):et(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),Dm(e,t,r,i,n);case 7:return et(e,t,t.pendingProps,n),t.child;case 8:return et(e,t,t.pendingProps.children,n),t.child;case 12:return et(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,le(sl,r._currentValue),r._currentValue=s,o!==null)if(Zt(o.value,s)){if(o.children===i.children&&!ut.current){t=On(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Tn(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?l.next=l:(l.next=f.next,f.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),pf(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(I(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),pf(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ai(t,n),i=$t(i),r=r(i),t.flags|=1,et(e,t,r,n),t.child;case 14:return r=t.type,i=Vt(r,t.pendingProps),i=Vt(r.type,i),Lm(e,t,r,i,n);case 15:return Dv(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Vt(r,i),Da(e,t),t.tag=1,ct(r)?(e=!0,rl(t)):e=!1,Ai(t,n),Rv(t,r,i),gf(t,r,i,n),_f(null,t,r,!0,e,n);case 19:return Bv(e,t,n);case 22:return Lv(e,t,n)}throw Error(I(156,t.tag))};function n_(e,t){return P0(e,t)}function RE(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 Lt(e,t,n,r){return new RE(e,t,n,r)}function ph(e){return e=e.prototype,!(!e||!e.isReactComponent)}function OE(e){if(typeof e=="function")return ph(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Od)return 11;if(e===Md)return 14}return 2}function or(e,t){var n=e.alternate;return n===null?(n=Lt(e.tag,t,e.key,e.mode),n.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=e.flags&14680064,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=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $a(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")ph(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case fi:return Fr(n.children,i,o,t);case Rd:s=8,i|=8;break;case zc:return e=Lt(12,n,t,i|2),e.elementType=zc,e.lanes=o,e;case Bc:return e=Lt(13,n,t,i),e.elementType=Bc,e.lanes=o,e;case jc:return e=Lt(19,n,t,i),e.elementType=jc,e.lanes=o,e;case d0:return Zl(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case c0:s=10;break e;case f0:s=9;break e;case Od:s=11;break e;case Md:s=14;break e;case Vn:s=16,r=null;break e}throw Error(I(130,e==null?e:typeof e,""))}return t=Lt(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Fr(e,t,n,r){return e=Lt(7,e,r,t),e.lanes=n,e}function Zl(e,t,n,r){return e=Lt(22,e,r,t),e.elementType=d0,e.lanes=n,e.stateNode={isHidden:!1},e}function hc(e,t,n){return e=Lt(6,e,null,t),e.lanes=n,e}function pc(e,t,n){return t=Lt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ME(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=Ku(0),this.expirationTimes=Ku(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mh(e,t,n,r,i,o,s,a,l){return e=new ME(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Lt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Jd(o),e}function DE(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ci,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function r_(e){if(!e)return cr;e=e._reactInternals;e:{if(ei(e)!==e||e.tag!==1)throw Error(I(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ct(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(I(171))}if(e.tag===1){var n=e.type;if(ct(n))return rv(e,n,t)}return t}function i_(e,t,n,r,i,o,s,a,l){return e=mh(n,r,!0,e,i,o,s,a,l),e.context=r_(null),n=e.current,r=tt(),i=ir(n),o=Tn(r,i),o.callback=t??null,nr(n,o,i),e.current.lanes=i,Rs(e,i,r),ft(e,r),e}function eu(e,t,n,r){var i=t.current,o=tt(),s=ir(i);return n=r_(n),t.context===null?t.context=n:t.pendingContext=n,t=Tn(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=nr(i,t,s),e!==null&&(Xt(e,i,s,o),Ra(e,i,s)),s}function gl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Km(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function gh(e,t){Km(e,t),(e=e.alternate)&&Km(e,t)}function LE(){return null}var o_=typeof reportError=="function"?reportError:function(e){console.error(e)};function yh(e){this._internalRoot=e}tu.prototype.render=yh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(I(409));eu(e,t,null,null)};tu.prototype.unmount=yh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Hr(function(){eu(null,e,null,null)}),t[An]=null}};function tu(e){this._internalRoot=e}tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=L0();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Gn.length&&t!==0&&t<Gn[n].priority;n++);Gn.splice(n,0,e),n===0&&$0(e)}};function vh(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Qm(){}function FE(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var u=gl(s);o.call(u)}}var s=i_(t,r,e,0,null,!1,!1,"",Qm);return e._reactRootContainer=s,e[An]=s.current,ss(e.nodeType===8?e.parentNode:e),Hr(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var u=gl(l);a.call(u)}}var l=mh(e,0,!1,null,null,!1,!1,"",Qm);return e._reactRootContainer=l,e[An]=l.current,ss(e.nodeType===8?e.parentNode:e),Hr(function(){eu(t,l,n,r)}),l}function ru(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=gl(s);a.call(l)}}eu(t,s,e,i)}else s=FE(n,t,e,i,r);return gl(s)}M0=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Io(t.pendingLanes);n!==0&&(Fd(t,n|1),ft(t,xe()),!(q&6)&&(Hi=xe()+500,wr()))}break;case 13:Hr(function(){var r=Rn(e,1);if(r!==null){var i=tt();Xt(r,e,1,i)}}),gh(e,1)}};$d=function(e){if(e.tag===13){var t=Rn(e,134217728);if(t!==null){var n=tt();Xt(t,e,134217728,n)}gh(e,134217728)}};D0=function(e){if(e.tag===13){var t=ir(e),n=Rn(e,t);if(n!==null){var r=tt();Xt(n,e,t,r)}gh(e,t)}};L0=function(){return ee};F0=function(e,t){var n=ee;try{return ee=e,t()}finally{ee=n}};Xc=function(e,t,n){switch(t){case"input":if(Vc(e,n),t=n.name,n.type==="radio"&&t!=null){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=Yl(r);if(!i)throw Error(I(90));p0(r),Vc(r,i)}}}break;case"textarea":g0(e,n);break;case"select":t=n.value,t!=null&&Ti(e,!!n.multiple,t,!1)}};E0=fh;k0=Hr;var $E={usingClientEntryPoint:!1,Events:[Ms,mi,Yl,w0,C0,fh]},_o={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zE={bundleType:_o.bundleType,version:_o.version,rendererPackageName:_o.rendererPackageName,rendererConfig:_o.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:zn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=T0(e),e===null?null:e.stateNode},findFiberByHostInstance:_o.findFiberByHostInstance||LE,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};
40if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_a.isDisabled&&_a.supportsFiber)try{Wl=_a.inject(zE),dn=_a}catch{}}xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$E;xt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vh(t))throw Error(I(200));return DE(e,t,null,n)};xt.createRoot=function(e,t){if(!vh(e))throw Error(I(299));var n=!1,r="",i=o_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=mh(e,1,!1,null,null,n,!1,r,i),e[An]=t.current,ss(e.nodeType===8?e.parentNode:e),new yh(t)};xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(I(188)):(e=Object.keys(e).join(","),Error(I(268,e)));return e=T0(t),e=e===null?null:e.stateNode,e};xt.flushSync=function(e){return Hr(e)};xt.hydrate=function(e,t,n){if(!nu(t))throw Error(I(200));return ru(null,e,t,!0,n)};xt.hydrateRoot=function(e,t,n){if(!vh(e))throw Error(I(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=o_;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=i_(t,null,e,1,n??null,i,!1,o,s),e[An]=t.current,ss(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new tu(t)};xt.render=function(e,t,n){if(!nu(t))throw Error(I(200));return ru(null,e,t,!1,n)};xt.unmountComponentAtNode=function(e){if(!nu(e))throw Error(I(40));return e._reactRootContainer?(Hr(function(){ru(null,null,e,!1,function(){e._reactRootContainer=null,e[An]=null})}),!0):!1};xt.unstable_batchedUpdates=fh;xt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nu(n))throw Error(I(200));if(e==null||e._reactInternals===void 0)throw Error(I(38));return ru(e,t,n,!1,r)};xt.version="18.3.1-next-f1338f8080-20240426";function s_(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s_)}catch(e){console.error(e)}}s_(),s0.exports=xt;var BE=s0.exports,a_,qm=BE;a_=qm.createRoot,qm.hydrateRoot;const jE="/yorquant.png",UE="/arena.jpg",WE="/yorquant-blank.png",Xm=()=>{};let _h={},l_={},u_=null,c_={mark:Xm,measure:Xm};try{typeof window<"u"&&(_h=window),typeof document<"u"&&(l_=document),typeof MutationObserver<"u"&&(u_=MutationObserver),typeof performance<"u"&&(c_=performance)}catch{}const{userAgent:Jm=""}=_h.navigator||{},fr=_h,de=l_,Zm=u_,Sa=c_;fr.document;const Bn=!!de.documentElement&&!!de.head&&typeof de.addEventListener=="function"&&typeof de.createElement=="function",f_=~Jm.indexOf("MSIE")||~Jm.indexOf("Trident/");var me="classic",d_="duotone",_t="sharp",St="sharp-duotone",VE=[me,d_,_t,St],HE={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}},eg={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},GE=["kit"],YE=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,KE=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,QE={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},qE={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"}},XE={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}},JE={classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]},ZE={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}},ek={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"}
40,sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}},h_={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},tk=["solid","regular","light","thin","duotone","brands"],p_=[1,2,3,4,5,6,7,8,9,10],nk=p_.concat([11,12,13,14,15,16,17,18,19,20]),No={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},rk=[...Object.keys(JE),...tk,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",No.GROUP,No.SWAP_OPACITY,No.PRIMARY,No.SECONDARY].concat(p_.map(e=>"".concat(e,"x"))).concat(nk.map(e=>"w-".concat(e))),ik={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},ok={kit:{"fa-kit":"fak"}},sk={kit:{fak:"fa-kit"}},tg={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}};const Mn="___FONT_AWESOME___",Af=16,m_="fa",g_="svg-inline--fa",Gr="data-fa-i2svg",Rf="data-fa-pseudo-element",ak="data-fa-pseudo-element-pending",Sh="data-prefix",wh="data-icon",ng="fontawesome-i2svg",lk="async",uk=["HTML","HEAD","STYLE","SCRIPT"],y_=(()=>{try{return!0}catch{return!1}})(),v_=[me,_t,St];function Ls(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[me]}})}const __={...h_};__[me]={...h_[me],...eg.kit,...eg["kit-duotone"]};const $r=Ls(__),Of={...ek};Of[me]={...Of[me],...tg.kit,...tg["kit-duotone"]};const ms=Ls(Of),Mf={...ZE};Mf[me]={...Mf[me],...sk.kit};const zr=Ls(Mf),Df={...XE};Df[me]={...Df[me],...ok.kit};const ck=Ls(Df),fk=YE,S_="fa-layers-text",dk=KE,hk={...HE};Ls(hk);const pk=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],mc=No,Gi=new Set;Object.keys(ms[me]).map(Gi.add.bind(Gi));Object.keys(ms[_t]).map(Gi.add.bind(Gi));Object.keys(ms[St]).map(Gi.add.bind(Gi));const mk=[...GE,...rk],Vo=fr.FontAwesomeConfig||{};function gk(e){var t=de.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function yk(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}de&&typeof de.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=yk(gk(n));i!=null&&(Vo[r]=i)});const w_={styleDefault:"solid",familyDefault:"classic",cssPrefix:m_,replacementClass:g_,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Vo.familyPrefix&&(Vo.cssPrefix=Vo.familyPrefix);const Yi={...w_,...Vo};Yi.autoReplaceSvg||(Yi.observeMutations=!1);const L={};Object.keys(w_).forEach(e=>{Object.defineProperty(L,e,{enumerable:!0,set:function(t){Yi[e]=t,Ho.forEach(n=>n(L))},get:function(){return Yi[e]}})});Object.defineProperty(L,"familyPrefix",{enumerable:!0,set:function(e){Yi.cssPrefix=e,Ho.forEach(t=>t(L))},get:function(){return Yi.cssPrefix}});fr.FontAwesomeConfig=L;const Ho=[];function vk(e){return Ho.push(e),()=>{Ho.splice(Ho.indexOf(e),1)}}const Wn=Af,cn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function _k(e){if(!e||!Bn)return;const t=de.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=de.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return de.head.insertBefore(t,r),e}const Sk="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function gs(){let e=12,t="";for(;e-- >0;)t+=Sk[Math.random()*62|0];return t}function to(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ch(e){return e.classList?to(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function C_(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function wk(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(C_(e[n]),'" '),"").trim()}function iu(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Eh(e){return e.size!==cn.size||e.x!==cn.x||e.y!==cn.y||e.rotate!==cn.rotate||e.flipX||e.flipY}function Ck(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(o," ").concat(s," ").concat(a)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:u}}function Ek(e){let{transform:t,width:n=Af,height:r=Af,startCentered:i=!1}
vendor: 1,055 bytes, lines 40-51
40=e,o="";return i&&f_?o+="translate(".concat(t.x/Wn-n/2,"em, ").concat(t.y/Wn-r/2,"em) "):i?o+="translate(calc(-50% + ".concat(t.x/Wn,"em), calc(-50% + ").concat(t.y/Wn,"em)) "):o+="translate(".concat(t.x/Wn,"em, ").concat(t.y/Wn,"em) "),o+="scale(".concat(t.size/Wn*(t.flipX?-1:1),", ").concat(t.size/Wn*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var kk=`:root, :host { 41 --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free"; 42 --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free"; 43 --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro"; 44 --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro"; 45 --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; 46 --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; 47 --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; 48 --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; 49 --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; 50 --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; 51 --fa-font-sharp-duotone-solid: normal 9
vendor: 11,192 bytes, lines 51-587
5100 1em/1 "Font Awesome 6 Sharp Duotone"; 52} 53 54svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { 55 overflow: visible; 56 box-sizing: content-box; 57} 58 59.svg-inline--fa { 60 display: var(--fa-display, inline-block); 61 height: 1em; 62 overflow: visible; 63 vertical-align: -0.125em; 64} 65.svg-inline--fa.fa-2xs { 66 vertical-align: 0.1em; 67} 68.svg-inline--fa.fa-xs { 69 vertical-align: 0em; 70} 71.svg-inline--fa.fa-sm { 72 vertical-align: -0.0714285705em; 73} 74.svg-inline--fa.fa-lg { 75 vertical-align: -0.2em; 76} 77.svg-inline--fa.fa-xl { 78 vertical-align: -0.25em; 79} 80.svg-inline--fa.fa-2xl { 81 vertical-align: -0.3125em; 82} 83.svg-inline--fa.fa-pull-left { 84 margin-right: var(--fa-pull-margin, 0.3em); 85 width: auto; 86} 87.svg-inline--fa.fa-pull-right { 88 margin-left: var(--fa-pull-margin, 0.3em); 89 width: auto; 90} 91.svg-inline--fa.fa-li { 92 width: var(--fa-li-width, 2em); 93 top: 0.25em; 94} 95.svg-inline--fa.fa-fw { 96 width: var(--fa-fw-width, 1.25em); 97} 98 99.fa-layers svg.svg-inline--fa { 100 bottom: 0; 101 left: 0; 102 margin: auto; 103 position: absolute; 104 right: 0; 105 top: 0; 106} 107 108.fa-layers-counter, .fa-layers-text { 109 display: inline-block; 110 position: absolute; 111 text-align: center; 112} 113 114.fa-layers { 115 display: inline-block; 116 height: 1em; 117 position: relative; 118 text-align: center; 119 vertical-align: -0.125em; 120 width: 1em; 121} 122.fa-layers svg.svg-inline--fa { 123 transform-origin: center center; 124} 125 126.fa-layers-text { 127 left: 50%; 128 top: 50%; 129 transform: translate(-50%, -50%); 130 transform-origin: center center; 131} 132 133.fa-layers-counter { 134 background-color: var(--fa-counter-background-color, #ff253a); 135 border-radius: var(--fa-counter-border-radius, 1em); 136 box-sizing: border-box; 137 color: var(--fa-inverse, #fff); 138 line-height: var(--fa-counter-line-height, 1); 139 max-width: var(--fa-counter-max-width, 5em); 140 min-width: var(--fa-counter-min-width, 1.5em); 141 overflow: hidden; 142 padding: var(--fa-counter-padding, 0.25em 0.5em); 143 right: var(--fa-right, 0); 144 text-overflow: ellipsis; 145 top: var(--fa-top, 0); 146 transform: scale(var(--fa-counter-scale, 0.25)); 147 transform-origin: top right; 148} 149 150.fa-layers-bottom-right { 151 bottom: var(--fa-bottom, 0); 152 right: var(--fa-right, 0); 153 top: auto; 154 transform: scale(var(--fa-layers-scale, 0.25)); 155 transform-origin: bottom right; 156} 157 158.fa-layers-bottom-left { 159 bottom: var(--fa-bottom, 0); 160 left: var(--fa-left, 0); 161 right: auto; 162 top: auto; 163 transform: scale(var(--fa-layers-scale, 0.25)); 164 transform-origin: bottom left; 165} 166 167.fa-layers-top-right { 168 top: var(--fa-top, 0); 169 right: var(--fa-right, 0); 170 transform: scale(var(--fa-layers-scale, 0.25)); 171 transform-origin: top right; 172} 173 174.fa-layers-top-left { 175 left: var(--fa-left, 0); 176 right: auto; 177 top: var(--fa-top, 0); 178 transform: scale(var(--fa-layers-scale, 0.25)); 179 transform-origin: top left; 180} 181 182.fa-1x { 183 font-size: 1em; 184} 185 186.fa-2x { 187 font-size: 2em; 188} 189 190.fa-3x { 191 font-size: 3em; 192} 193 194.fa-4x { 195 font-size: 4em; 196} 197 198.fa-5x { 199 font-size: 5em; 200} 201 202.fa-6x { 203 font-size: 6em; 204} 205 206.fa-7x { 207 font-size: 7em; 208} 209 210.fa-8x { 211 font-size: 8em; 212} 213 214.fa-9x { 215 font-size: 9em; 216} 217 218.fa-10x { 219 font-size: 10em; 220} 221 222.fa-2xs { 223 font-size: 0.625em; 224 line-height: 0.1em; 225 vertical-align: 0.225em; 226} 227 228.fa-xs { 229 font-size: 0.75em; 230 line-height: 0.0833333337em; 231 vertical-align: 0.125em; 232} 233 234.fa-sm { 235 font-size: 0.875em; 236 line-height: 0.0714285718em; 237 vertical-align: 0.0535714295em; 238} 239 240.fa-lg { 241 font-size: 1.25em; 242 line-height: 0.05em; 243 vertical-align: -0.075em; 244} 245 246.fa-xl { 247 font-size: 1.5em; 248 line-height: 0.0416666682em; 249 vertical-align: -0.125em; 250} 251 252.fa-2xl { 253 font-size: 2em; 254 line-height: 0.03125em; 255 vertical-align: -0.1875em; 256} 257 258.fa-fw { 259 text-align: center; 260 width: 1.25em; 261} 262 263.fa-ul { 264 list-style-type: none; 265 margin-left: var(--fa-li-margin, 2.5em); 266 padding-left: 0; 267} 268.fa-ul > li { 269 position: relative; 270} 271 272.fa-li { 273 left: calc(-1 * var(--fa-li-width, 2em)); 274 position: absolute; 275 text-align: center; 276 width: var(--fa-li-width, 2em); 277 line-height: inherit; 278} 279 280.fa-border { 281 border-color: var(--fa-border-color, #eee); 282 border-radius: var(--fa-border-radius, 0.1em); 283 border-style: var(--fa-border-style, solid); 284 border-width: var(--fa-border-width, 0.08em); 285 padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); 286} 287 288.fa-pull-left { 289 float: left; 290 margin-right: var(--fa-pull-margin, 0.3em); 291} 292 293.fa-pull-right { 294 float: right; 295 margin-left: var(--fa-pull-margin, 0.3em); 296} 297 298.fa-beat { 299 animation-name: fa-beat; 300 animation-delay: var(--fa-animation-delay, 0s); 301 animation-direction: var(--fa-animation-direction, normal); 302 animation-duration: var(--fa-animation-duration, 1s); 303 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 304 animation-timing-function: var(--fa-animation-timing, ease-in-out); 305} 306 307.fa-bounce { 308 animation-name: fa-bounce; 309 animation-delay: var(--fa-animation-delay, 0s); 310 animation-direction: var(--fa-animation-direction, normal); 311 animation-duration: var(--fa-animation-duration, 1s); 312 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 313 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); 314} 315 316.fa-fade { 317 animation-name: fa-fade; 318 animation-delay: var(--fa-animation-delay, 0s); 319 animation-direction: var(--fa-animation-direction, normal); 320 animation-duration: var(--fa-animation-duration, 1s); 321 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 322 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 323} 324 325.fa-beat-fade { 326 animation-name: fa-beat-fade; 327 animation-delay: var(--fa-animation-delay, 0s); 328 animation-direction: var(--fa-animation-direction, normal); 329 animation-duration: var(--fa-animation-duration, 1s); 330 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 331 animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); 332} 333 334.fa-flip { 335 animation-name: fa-flip; 336 animation-delay: var(--fa-animation-delay, 0s); 337 animation-direction: var(--fa-animation-direction, normal); 338 animation-duration: var(--fa-animation-duration, 1s); 339 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 340 animation-timing-function: var(--fa-animation-timing, ease-in-out); 341} 342 343.fa-shake { 344 animation-name: fa-shake; 345 animation-delay: var(--fa-animation-delay, 0s); 346 animation-direction: var(--fa-animation-direction, normal); 347 animation-duration: var(--fa-animation-duration, 1s); 348 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 349 animation-timing-function: var(--fa-animation-timing, linear); 350} 351 352.fa-spin { 353 animation-name: fa-spin; 354 animation-delay: var(--fa-animation-delay, 0s); 355 animation-direction: var(--fa-animation-direction, normal); 356 animation-duration: var(--fa-animation-duration, 2s); 357 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 358 animation-timing-function: var(--fa-animation-timing, linear); 359} 360 361.fa-spin-reverse { 362 --fa-animation-direction: reverse; 363} 364 365.fa-pulse, 366.fa-spin-pulse { 367 animation-name: fa-spin; 368 animation-direction: var(--fa-animation-direction, normal); 369 animation-duration: var(--fa-animation-duration, 1s); 370 animation-iteration-count: var(--fa-animation-iteration-count, infinite); 371 animation-timing-function: var(--fa-animation-timing, steps(8)); 372} 373 374@media (prefers-reduced-motion: reduce) { 375 .fa-beat, 376.fa-bounce, 377.fa-fade, 378.fa-beat-fade, 379.fa-flip, 380.fa-pulse, 381.fa-shake, 382.fa-spin, 383.fa-spin-pulse { 384 animation-delay: -1ms; 385 animation-duration: 1ms; 386 animation-iteration-count: 1; 387 transition-delay: 0s; 388 transition-duration: 0s; 389 } 390} 391@keyframes fa-beat { 392 0%, 90% { 393 transform: scale(1); 394 } 395 45% { 396 transform: scale(var(--fa-beat-scale, 1.25)); 397 } 398} 399@keyframes fa-bounce { 400 0% { 401 transform: scale(1, 1) translateY(0); 402 } 403 10% { 404 transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); 405 } 406 30% { 407 transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); 408 } 409 50% { 410 transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); 411 } 412 57% { 413 transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); 414 } 415 64% { 416 transform: scale(1, 1) translateY(0); 417 } 418 100% { 419 transform: scale(1, 1) translateY(0); 420 } 421} 422@keyframes fa-fade { 423 50% { 424 opacity: var(--fa-fade-opacity, 0.4); 425 } 426} 427@keyframes fa-beat-fade { 428 0%, 100% { 429 opacity: var(--fa-beat-fade-opacity, 0.4); 430 transform: scale(1); 431 } 432 50% { 433 opacity: 1; 434 transform: scale(var(--fa-beat-fade-scale, 1.125)); 435 } 436} 437@keyframes fa-flip { 438 50% { 439 transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); 440 } 441} 442@keyframes fa-shake { 443 0% { 444 transform: rotate(-15deg); 445 } 446 4% { 447 transform: rotate(15deg); 448 } 449 8%, 24% { 450 transform: rotate(-18deg); 451 } 452 12%, 28% { 453 transform: rotate(18deg); 454 } 455 16% { 456 transform: rotate(-22deg); 457 } 458 20% { 459 transform: rotate(22deg); 460 } 461 32% { 462 transform: rotate(-12deg); 463 } 464 36% { 465 transform: rotate(12deg); 466 } 467 40%, 100% { 468 transform: rotate(0deg); 469 } 470} 471@keyframes fa-spin { 472 0% { 473 transform: rotate(0deg); 474 } 475 100% { 476 transform: rotate(360deg); 477 } 478} 479.fa-rotate-90 { 480 transform: rotate(90deg); 481} 482 483.fa-rotate-180 { 484 transform: rotate(180deg); 485} 486 487.fa-rotate-270 { 488 transform: rotate(270deg); 489} 490 491.fa-flip-horizontal { 492 transform: scale(-1, 1); 493} 494 495.fa-flip-vertical { 496 transform: scale(1, -1); 497} 498 499.fa-flip-both, 500.fa-flip-horizontal.fa-flip-vertical { 501 transform: scale(-1, -1); 502} 503 504.fa-rotate-by { 505 transform: rotate(var(--fa-rotate-angle, 0)); 506} 507 508.fa-stack { 509 display: inline-block; 510 vertical-align: middle; 511 height: 2em; 512 position: relative; 513 width: 2.5em; 514} 515 516.fa-stack-1x, 517.fa-stack-2x { 518 bottom: 0; 519 left: 0; 520 margin: auto; 521 position: absolute; 522 right: 0; 523 top: 0; 524 z-index: var(--fa-stack-z-index, auto); 525} 526 527.svg-inline--fa.fa-stack-1x { 528 height: 1em; 529 width: 1.25em; 530} 531.svg-inline--fa.fa-stack-2x { 532 height: 2em; 533 width: 2.5em; 534} 535 536.fa-inverse { 537 color: var(--fa-inverse, #fff); 538} 539 540.sr-only, 541.fa-sr-only { 542 position: absolute; 543 width: 1px; 544 height: 1px; 545 padding: 0; 546 margin: -1px; 547 overflow: hidden; 548 clip: rect(0, 0, 0, 0); 549 white-space: nowrap; 550 border-width: 0; 551} 552 553.sr-only-focusable:not(:focus), 554.fa-sr-only-focusable:not(:focus) { 555 position: absolute; 556 width: 1px; 557 height: 1px; 558 padding: 0; 559 margin: -1px; 560 overflow: hidden; 561 clip: rect(0, 0, 0, 0); 562 white-space: nowrap; 563 border-width: 0; 564} 565 566.svg-inline--fa .fa-primary { 567 fill: var(--fa-primary-color, currentColor); 568 opacity: var(--fa-primary-opacity, 1); 569} 570 571.svg-inline--fa .fa-secondary { 572 fill: var(--fa-secondary-color, currentColor); 573 opacity: var(--fa-secondary-opacity, 0.4); 574} 575 576.svg-inline--fa.fa-swap-opacity .fa-primary { 577 opacity: var(--fa-secondary-opacity, 0.4); 578} 579 580.svg-inline--fa.fa-swap-opacity .fa-secondary { 581 opacity: var(--fa-primary-opacity, 1); 582} 583 584.svg-inline--fa mask .fa-primary, 585.svg-inline--fa mask .fa-secondary { 586 fill: black; 587}
587 588 589.fad.fa-inverse, 590.fa-duotone.fa-inverse { 591 color: var(--fa-inverse, #fff); 592}`;function E_(){const e=m_,t=g_,n=L.cssPrefix,r=L.replacementClass;let i=kk;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return i}let rg=!1;function gc(){L.autoAddCss&&!rg&&(_k(E_()),rg=!0)}var xk={mixout(){return{dom:{css:E_,insertCss:gc}}},hooks(){return{beforeDOMElementCreation(){gc()},beforeI2svg(){gc()}}}};const Dn=fr||{};Dn[Mn]||(Dn[Mn]={});Dn[Mn].styles||(Dn[Mn].styles={});Dn[Mn].hooks||(Dn[Mn].hooks={});Dn[Mn].shims||(Dn[Mn].shims=[]);var fn=Dn[Mn];const k_=[],x_=function(){de.removeEventListener("DOMContentLoaded",x_),yl=1,k_.map(e=>e())};let yl=!1;Bn&&(yl=(de.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(de.readyState),yl||de.addEventListener("DOMContentLoaded",x_));function bk(e){Bn&&(yl?setTimeout(e,0):k_.push(e))}function Fs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?C_(e):"<".concat(t," ").concat(wk(n),">").concat(r.map(Fs).join(""),"</").concat(t,">")}function ig(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var yc=function(t,n,r,i){var o=Object.keys(t),s=o.length,a=n,l,u,f;for(r===void 0?(l=1,f=t[o[0]]):(l=0,f=r);l<s;l++)u=o[l],f=a(f,t[u],u,t);return f};function Tk(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((i&1023)<<10)+(o&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function Lf(e){const t=Tk(e);return t.length===1?t[0].toString(16):null}function Ik(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function og(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ff(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=og(t);typeof fn.hooks.addPack=="function"&&!r?fn.hooks.addPack(e,og(t)):fn.styles[e]={...fn.styles[e]||{},...i},e==="fas"&&Ff("fa",t)}const{styles:Nr,shims:Pk}=fn,Nk={[me]:Object.values(zr[me]),[_t]:Object.values(zr[_t]),[St]:Object.values(zr[St])};let kh=null,b_={},T_={},I_={},P_={},N_={};const Ak={[me]:Object.keys($r[me]),[_t]:Object.keys($r[_t]),[St]:Object.keys($r[St])};function Rk(e){return~mk.indexOf(e)}function Ok(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Rk(i)?i:null}const A_=()=>{const e=r=>yc(Nr,(i,o,s)=>(i[s]=yc(o,r,{}),i),{});b_=e((r,i,o)=>(i[3]&&(r[i[3]]=o),i[2]&&i[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=o}),r)),T_=e((r,i,o)=>(r[o]=o,i[2]&&i[2].filter(a=>
592typeof a=="string").forEach(a=>{r[a]=o}),r)),N_=e((r,i,o)=>{const s=i[2];return r[o]=o,s.forEach(a=>{r[a]=o}),r});const t="far"in Nr||L.autoFetchSvg,n=yc(Pk,(r,i)=>{const o=i[0];let s=i[1];const a=i[2];return s==="far"&&!t&&(s="fas"),typeof o=="string"&&(r.names[o]={prefix:s,iconName:a}),typeof o=="number"&&(r.unicodes[o.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});I_=n.names,P_=n.unicodes,kh=ou(L.styleDefault,{family:L.familyDefault})};vk(e=>{kh=ou(e.styleDefault,{family:L.familyDefault})});A_();function xh(e,t){return(b_[e]||{})[t]}function Mk(e,t){return(T_[e]||{})[t]}function Xn(e,t){return(N_[e]||{})[t]}function R_(e){return I_[e]||{prefix:null,iconName:null}}function Dk(e){const t=P_[e],n=xh("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function dr(){return kh}const bh=()=>({prefix:null,iconName:null,rest:[]});function ou(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=me}=t,r=$r[n][e],i=ms[n][e]||ms[n][r],o=e in fn.styles?e:null;return i||o||null}const Lk={[me]:Object.keys(zr[me]),[_t]:Object.keys(zr[_t]),[St]:Object.keys(zr[St])};function su(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t,r={[me]:"".concat(L.cssPrefix,"-").concat(me),[_t]:"".concat(L.cssPrefix,"-").concat(_t),[St]:"".concat(L.cssPrefix,"-").concat(St)};let i=null,o=me;const s=VE.filter(l=>l!==d_);s.forEach(l=>{(e.includes(r[l])||e.some(u=>Lk[l].includes(u)))&&(o=l)});const a=e.reduce((l,u)=>{const f=Ok(L.cssPrefix,u);if(Nr[u]?(u=Nk[o].includes(u)?ck[o][u]:u,i=u,l.prefix=u):Ak[o].indexOf(u)>-1?(i=u,l.prefix=ou(u,{family:o})):f?l.iconName=f:u!==L.replacementClass&&!s.some(c=>u===r[c])&&l.rest.push(u),!n&&l.prefix&&l.iconName){const c=i==="fa"?R_(l.iconName):{},d=Xn(l.prefix,l.iconName);c.prefix&&(i=null),l.iconName=c.iconName||d||l.iconName,l.prefix=c.prefix||l.prefix,l.prefix==="far"&&!Nr.far&&Nr.fas&&!L.autoFetchSvg&&(l.prefix="fas")}return l},bh());return(e.includes("fa-brands")||e.includes("fab"))&&(a.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(a.prefix="fad"),!a.prefix&&o===_t&&(Nr.fass||L.autoFetchSvg)&&(a.prefix="fass",a.iconName=Xn(a.prefix,a.iconName)||a.iconName),!a.prefix&&o===St&&(Nr.fasds||L.autoFetchSvg)&&(a.prefix="fasds",a.iconName=Xn(a.prefix,a.iconName)||a.iconName),(a.prefix==="fa"||i==="fa")&&(a.prefix=dr()||"fas"),a}class Fk{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});
592Object.keys(i).forEach(o=>{this.definitions[o]={...this.definitions[o]||{},...i[o]},Ff(o,i[o]);const s=zr[me][o];s&&Ff(s,i[o]),A_()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:o,iconName:s,icon:a}=r[i],l=a[2];t[o]||(t[o]={}),l.length>0&&l.forEach(u=>{typeof u=="string"&&(t[o][u]=a)}),t[o][s]=a}),t}}let sg=[],Ci={};const Oi={},$k=Object.keys(Oi);function zk(e,t){let{mixoutsTo:n}=t;return sg=e,Ci={},Object.keys(Oi).forEach(r=>{$k.indexOf(r)===-1&&delete Oi[r]}),sg.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(o=>{typeof i[o]=="function"&&(n[o]=i[o]),typeof i[o]=="object"&&Object.keys(i[o]).forEach(s=>{n[o]||(n[o]={}),n[o][s]=i[o][s]})}),r.hooks){const o=r.hooks();Object.keys(o).forEach(s=>{Ci[s]||(Ci[s]=[]),Ci[s].push(o[s])})}r.provides&&r.provides(Oi)}),n}function $f(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];return(Ci[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Yr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ci[e]||[]).forEach(o=>{o.apply(null,n)})}function hr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Oi[e]?Oi[e].apply(null,t):void 0}function zf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||dr();if(t)return t=Xn(n,t)||t,ig(O_.definitions,n,t)||ig(fn.styles,n,t)}const O_=new Fk,Bk=()=>{L.autoReplaceSvg=!1,L.observeMutations=!1,Yr("noAuto")},jk={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Bn?(Yr("beforeI2svg",e),hr("pseudoElements2svg",e),hr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;L.autoReplaceSvg===!1&&(L.autoReplaceSvg=!0),L.observeMutations=!0,bk(()=>{Wk({autoReplaceSvgRoot:t}),Yr("watch",e)})}},Uk={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Xn(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=ou(e[0]);return{prefix:n,iconName:Xn(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(L.cssPrefix,"-"))>-1||e.match(fk))){const t=su(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||dr(),iconName:Xn(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=dr();return{prefix:t,iconName:Xn(t,e)||e}}}},Tt={noAuto:Bk,config:L,dom:jk,parse:Uk,library:O_,findIconDefinition:zf,toHtml:Fs},Wk=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=de}=e;(Object.keys(fn.styles).length>0||L.autoFetchSvg)&&Bn&&L.autoReplaceSvg&&Tt.dom.i2svg({node:t})};function au(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>Fs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Bn)return;const n=de.createElement("div");return n.innerHTML=e.html,n.children}}),e}function Vk(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:s}=e;if(Eh(s)&&n.found&&!r.found){const{width:a,height:l}=n,u={x:a/l/2,y:.5};i.style=iu({...o,"transform-origin":"".concat(u.x+s.x/16,"em ").concat(u.y+s.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}function Hk(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;const s=o===!0?"".concat(t,"-").concat(L.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:s},children:r}]}]}function Th(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:s,title:a,maskId:l,titleId:u,extra:f,watchable:c=!1}=e,{width:d,height:y}=n.found?n:t,g=r==="fak",_=[L.replacementClass,i?"".concat(L.cssPrefix,"-").concat(i):""].filter(w=>f.classes.indexOf(w)===-1).filter(w=>w!==""||!!w).concat(f.classes).join(" ");let C={children:[],attributes:{...f.attributes,"data-prefix":r,"data-icon":i,class:_,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(y)}};const m=g&&!~f.classes.indexOf("fa-fw")?{width:"".concat(d/y*16*.0625,"em")}:{};c&&(C.attributes[Gr]=""),a&&(C.children.push({tag:"title",attributes:{id:C.attributes["aria-labelledby"]||"title-".concat(u||gs())},children:[a]}),delete C.attributes.title);const p={...C,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:s,styles:{...m,...f.styles}},{children:v,attributes:S}=n.found&&t.found?hr("generateAbstractMask",p)||{children:[],attributes:{}}:hr("generateAbstractIcon",p)||{children:[],attributes:{}};return p.children=v,p.attributes=S,s?Hk(p):Vk(p)}function ag(e){const{content:t,width:n,height:r,transform:i,title:o,extra:s,watchable:a=!1}=e,l={...s.attributes,...o?{title:o}:{},class:s.classes.join(" ")};a&&(l[Gr]="");const u={...s.styles};Eh(i)&&(u.transform=Ek({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const f=iu(u);f.length>0&&(l.style=f);const c=[];return c.push({tag:"span",attributes:l,children:[t]}),o&&c.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),c}function Gk(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=iu(r.styles);o.length>0&&(i.style=o);const s=[];return s.push({tag:"span",attributes:i,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:vc}=fn;function Bf(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(L.cssPrefix,"-").concat(mc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(L.cssPrefix,"-").concat(mc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(L.cssPrefix,"-").concat(mc.PRIMARY),fill:"currentColor",d:r[1]}}]}
592:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const Yk={found:!1,width:512,height:512};function Kk(e,t){!y_&&!L.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function jf(e,t){let n=t;return t==="fa"&&L.styleDefault!==null&&(t=dr()),new Promise((r,i)=>{if(n==="fa"){const o=R_(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&vc[t]&&vc[t][e]){const o=vc[t][e];return r(Bf(o))}Kk(e,t),r({...Yk,icon:L.showMissingIcons&&e?hr("missingIconAbstract")||{}:{}})})}const lg=()=>{},Uf=L.measurePerformance&&Sa&&Sa.mark&&Sa.measure?Sa:{mark:lg,measure:lg},Ao='FA "6.6.0"',Qk=e=>(Uf.mark("".concat(Ao," ").concat(e," begins")),()=>M_(e)),M_=e=>{Uf.mark("".concat(Ao," ").concat(e," ends")),Uf.measure("".concat(Ao," ").concat(e),"".concat(Ao," ").concat(e," begins"),"".concat(Ao," ").concat(e," ends"))};var Ih={begin:Qk,end:M_};const za=()=>{};function ug(e){return typeof(e.getAttribute?e.getAttribute(Gr):null)=="string"}function qk(e){const t=e.getAttribute?e.getAttribute(Sh):null,n=e.getAttribute?e.getAttribute(wh):null;return t&&n}function Xk(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(L.replacementClass)}function Jk(){return L.autoReplaceSvg===!0?Ba.replace:Ba[L.autoReplaceSvg]||Ba.replace}function Zk(e){return de.createElementNS("http://www.w3.org/2000/svg",e)}function ex(e){return de.createElement(e)}function D_(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?Zk:ex}=t;if(typeof e=="string")return de.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){r.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){r.appendChild(D_(o,{ceFn:n}))}),r}function tx(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Ba={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(D_(n),t)}),t.getAttribute(Gr)===null&&L.keepOriginalSource){let n=de.createComment(tx(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ch(t).indexOf(L.replacementClass))return Ba.replace(e);const r=new RegExp("".concat(L.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((s,a)=>(a===L.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const i=n.map(o=>Fs(o)).join(` 593`);t.setAttribute(Gr,""),t.innerHTML=i}};function cg(e){e()}function L_(e,t){const n=typeof t=="function"?t:za;if(e.length===0)n();else{let r=cg;L.mutateApproach===lk&&(r=fr.requestAnimationFrame||cg),r(()=>{const i=Jk(),o=Ih.begin("mutate");e.map(i),o(),n()})}}let Ph=!1;function F_(){Ph=!0}function Wf(){Ph=!1}let vl=null;function fg(e){if(!Zm||!L.observeMutations)return;const{treeCallback:t=za,nodeCallback:n=za,pseudoElementsCallback:r=za,observeMutationsRoot:i=de}=e;vl=new Zm(o=>{if(Ph)return;const s=dr();to(o).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!ug(a.addedNodes[0])&&(L.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&L.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&ug(a.target)&&~pk.indexOf(a.attributeName))if(a.attributeName==="class"&&qk(a.target)){const{prefix:l,iconName:u}=su(Ch(a.target));a.target.setAttribute(Sh,l||s),u&&a.target.setAttribute(wh,u)}else Xk(a.target)&&n(a.target)})}),Bn&&vl.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function nx(){vl&&vl.disconnect()}function rx(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const o=i.split(":"),s=o[0],a=o.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function ix(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=su(Ch(e));return i.prefix||(i.prefix=dr()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Mk(i.prefix,e.innerText)||xh(i.prefix,Lf(e.innerText))),!i.iconName&&L.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function ox(e){const t=to(e.attributes).reduce((i,o)=>(i.name!=="class"&&i.name!=="style"&&(i[o.name]=o.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return L.autoA11y&&(n?t["aria-labelledby"]="".concat(L.replacementClass,"-title-").concat(r||gs()):(t["aria-hidden"]="true",t.focusable="false")),t}function sx(){return{iconName:null,title:null,titleId:null,prefix:null,transform:cn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function dg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=ix(e),o=ox(e),s=$f("parseNodeAttributes",{},e);let a=t.styleParser?rx(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:cn,mask:{iconName:null,prefix:null,rest:[]}
593,maskId:null,symbol:!1,extra:{classes:i,styles:a,attributes:o},...s}}const{styles:ax}=fn;function $_(e){const t=L.autoReplaceSvg==="nest"?dg(e,{styleParser:!1}):dg(e);return~t.extra.classes.indexOf(S_)?hr("generateLayersText",e,t):hr("generateSvgReplacementMutation",e,t)}let mn=new Set;v_.map(e=>{mn.add("fa-".concat(e))});Object.keys($r[me]).map(mn.add.bind(mn));Object.keys($r[_t]).map(mn.add.bind(mn));Object.keys($r[St]).map(mn.add.bind(mn));mn=[...mn];function hg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Bn)return Promise.resolve();const n=de.documentElement.classList,r=f=>n.add("".concat(ng,"-").concat(f)),i=f=>n.remove("".concat(ng,"-").concat(f)),o=L.autoFetchSvg?mn:v_.map(f=>"fa-".concat(f)).concat(Object.keys(ax));o.includes("fa")||o.push("fa");const s=[".".concat(S_,":not([").concat(Gr,"])")].concat(o.map(f=>".".concat(f,":not([").concat(Gr,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=to(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),i("complete");else return Promise.resolve();const l=Ih.begin("onTree"),u=a.reduce((f,c)=>{try{const d=$_(c);d&&f.push(d)}catch(d){y_||d.name==="MissingIcon"&&console.error(d)}return f},[]);return new Promise((f,c)=>{Promise.all(u).then(d=>{L_(d,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),f()})}).catch(d=>{l(),c(d)})})}function lx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;$_(e).then(n=>{n&&L_([n],t)})}function ux(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:zf(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:zf(i||{})),e(r,{...n,mask:i})}}const cx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=cn,symbol:r=!1,mask:i=null,maskId:o=null,title:s=null,titleId:a=null,classes:l=[],attributes:u={},styles:f={}}=t;if(!e)return;const{prefix:c,iconName:d,icon:y}=e;return au({type:"icon",...e},()=>(Yr("beforeDOMElementCreation",{iconDefinition:e,params:t}),L.autoA11y&&(s?u["aria-labelledby"]="".concat(L.replacementClass,"-title-").concat(a||gs()):(u["aria-hidden"]="true",u.focusable="false")),Th({icons:{main:Bf(y),mask:i?Bf(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:c,iconName:d,transform:{...cn,...n},symbol:r,title:s,maskId:o,titleId:a,extra:{attributes:u,styles:f,classes:l}})))};var fx={mixout(){return{icon:ux(cx)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=hg,e.nodeCallback=lx,e}}},provides(e){e.i2svg=function(t){const{node:n=de,callback:r=()=>{}}=t;return hg(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:o,prefix:s,transform:a,symbol:l,mask:u,maskId:f,extra:c}=n;return new Promise((d,y)=>{Promise.all([jf(r,s),u.iconName?jf(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[_,C]=g;d([t,Th({icons:{main:_,mask:C},prefix:s,iconName:r,transform:a,symbol:l,maskId:f,title:i,titleId:o,extra:c,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:o,styles:s}=t;const a=iu(s);a.length>0&&(r.style=a);let l;return Eh(o)&&(l=hr("generateAbstractTransformGrouping",{main:i,transform:o,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},dx={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return au({type:"layer"},()=>{Yr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(o=>{r=r.concat(o.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(L.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},hx={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return au({type:"counter",content:e},()=>(Yr("beforeDOMElementCreation",{content:e,params:t}),Gk({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(L.cssPrefix,"-layers-counter"),...r]}})))}}}},px={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=cn,title:r=null,classes:i=[],attributes:o={},styles:s={}}=t;return au({type:"text",content:e},()=>(Yr("beforeDOMElementCreation",{content:e,params:t}),ag({content:e,transform:{...cn,...n},title:r,extra:{attributes:o,styles:s,classes:["".concat(L.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:o}=n;let s=null,a=null;if(f_){const l=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();s=u.width/l,a=u.height/l}return L.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,ag({content:t.innerHTML,width:s,height:a,transform:i,title:r,extra:o,watchable:!0})])}}};const mx=new RegExp('"',"ug"),pg=[1105920,1112319],mg={FontAwesome:{normal:"fas",400:"fas"},...qE,...QE,...ik},Vf=Object.keys(mg).reduce((e,t)=>
593(e[t.toLowerCase()]=mg[t],e),{}),gx=Object.keys(Vf).reduce((e,t)=>{const n=Vf[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function yx(e){const t=e.replace(mx,""),n=Ik(t,0),r=n>=pg[0]&&n<=pg[1],i=t.length===2?t[0]===t[1]:!1;return{value:Lf(i?t[0]:t),isSecondary:r||i}}function vx(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Vf[n]||{})[i]||gx[n]}function gg(e,t){const n="".concat(ak).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const s=to(e.children).filter(d=>d.getAttribute(Rf)===t)[0],a=fr.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),u=l.match(dk),f=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(s&&!u)return e.removeChild(s),r();if(u&&c!=="none"&&c!==""){const d=a.getPropertyValue("content");let y=vx(l,f);const{value:g,isSecondary:_}=yx(d),C=u[0].startsWith("FontAwesome");let m=xh(y,g),p=m;if(C){const v=Dk(g);v.iconName&&v.prefix&&(m=v.iconName,y=v.prefix)}if(m&&!_&&(!s||s.getAttribute(Sh)!==y||s.getAttribute(wh)!==p)){e.setAttribute(n,p),s&&e.removeChild(s);const v=sx(),{extra:S}=v;S.attributes[Rf]=t,jf(m,y).then(w=>{const E=Th({...v,icons:{main:w,mask:bh()},prefix:y,iconName:p,extra:S,watchable:!0}),k=de.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=E.map(T=>Fs(T)).join(` 594`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function _x(e){return Promise.all([gg(e,"::before"),gg(e,"::after")])}function Sx(e){return e.parentNode!==document.head&&!~uk.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Rf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function yg(e){if(Bn)return new Promise((t,n)=>{const r=to(e.querySelectorAll("*")).filter(Sx).map(_x),i=Ih.begin("searchPseudoElements");F_(),Promise.all(r).then(()=>{i(),Wf(),t()}).catch(()=>{i(),Wf(),n()})})}var wx={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=yg,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=de}=t;L.searchPseudoElements&&yg(n)}}};let vg=!1;var Cx={mixout(){return{dom:{unwatch(){F_(),vg=!0}}}},hooks(){return{bootstrap(){fg($f("mutationObserverCallbacks",{}))},noAuto(){nx()},watch(e){const{observeMutationsRoot:t}=e;vg?Wf():fg($f("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const _g=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),o=i[0];let s=i.slice(1).join("-");if(o&&s==="h")return n.flipX=!0,n;if(o&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(o){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var Ex={mixout(){return{parse:{transform:e=>_g(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=_g(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:o}=t;const s={transform:"translate(".concat(i/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),f={transform:"".concat(a," ").concat(l," ").concat(u)},c={transform:"translate(".concat(o/2*-1," -256)")},d={outer:s,inner:f,path:c};return{tag:"g",attributes:{...d.outer},children:[{tag:"g",attributes:{...d.inner},children:[{tag:n.icon.tag,children:n.icon.children,attributes:{...n.icon.attributes,...d.path}}]}]}}}};const _c={x:0,y:0,width:"100%",height:"100%"};function Sg(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function kx(e){return e.tag==="g"?e.children:[e]}var xx={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?su(n.split(" ").map(i=>i.trim())):bh();return r.prefix||(r.prefix=dr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:o,maskId:s,transform:a}=t;const{width:l,icon:u}=i,{width:f,icon:c}
594=o,d=Ck({transform:a,containerWidth:f,iconWidth:l}),y={tag:"rect",attributes:{..._c,fill:"white"}},g=u.children?{children:u.children.map(Sg)}:{},_={tag:"g",attributes:{...d.inner},children:[Sg({tag:u.tag,attributes:{...u.attributes,...d.path},...g})]},C={tag:"g",attributes:{...d.outer},children:[_]},m="mask-".concat(s||gs()),p="clip-".concat(s||gs()),v={tag:"mask",attributes:{..._c,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[y,C]},S={tag:"defs",children:[{tag:"clipPath",attributes:{id:p},children:kx(c)},v]};return n.push(S,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(p,")"),mask:"url(#".concat(m,")"),..._c}}),{children:n,attributes:r}}}},bx={provides(e){let t=!1;fr.matchMedia&&(t=fr.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:{...r,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const o={...i,attributeName:"opacity"},s={tag:"circle",attributes:{...r,cx:"256",cy:"364",r:"28"},children:[]};return t||s.children.push({tag:"animate",attributes:{...i,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),n.push(s),n.push({tag:"path",attributes:{...r,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...o,values:"1;0;0;0;0;1;"}}]}),t||n.push({tag:"path",attributes:{...r,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...o,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Tx={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},Ix=[xk,fx,dx,hx,px,wx,Cx,Ex,xx,bx,Tx];zk(Ix,{mixoutsTo:Tt});Tt.noAuto;Tt.config;Tt.library;Tt.dom;const Hf=Tt.parse;Tt.findIconDefinition;Tt.toHtml;const Px=Tt.icon;Tt.layer;Tt.text;Tt.counter;var z_={exports:{}},Nx="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Ax=Nx,Rx=Ax;function B_(){}function j_(){}j_.resetWarningCache=B_;var Ox=function(){function e(r,i,o,s,a,l){if(l!==Rx){var u=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 u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
594:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:j_,resetWarningCache:B_};return n.PropTypes=n,n};z_.exports=Ox();var Mx=z_.exports;const G=Ky(Mx);function wg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(n),!0).forEach(function(r){Ei(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wg(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _l(e){"@babel/helpers - typeof";return _l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_l(e)}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dx(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Lx(e,t){if(e==null)return{};var n=Dx(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Gf(e){return Fx(e)||$x(e)||zx(e)||Bx()}function Fx(e){if(Array.isArray(e))return Yf(e)}function $x(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zx(e,t){if(e){if(typeof e=="string")return Yf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yf(e,t)}}function Yf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bx(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 595In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jx(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,s=e.shake,a=e.flash,l=e.spin,u=e.spinPulse,f=e.spinReverse,c=e.pulse,d=e.fixedWidth,y=e.inverse,g=e.border,_=e.listItem,C=e.flip,m=e.size,p=e.rotation,v=e.pull,S=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":f,"fa-spin-pulse":u,"fa-pulse":c,"fa-fw":d,"fa-inverse":y,"fa-border":g,"fa-li":_,"fa-flip":C===!0,"fa-flip-horizontal":C==="horizontal"||C==="both","fa-flip-vertical":C==="vertical"||C==="both"},Ei(t,"fa-".concat(m),typeof m<"u"&&m!==null),Ei(t,"fa-rotate-".concat(p),typeof p<"u"&&p!==null&&p!==0),Ei(t,"fa-pull-".concat(v),typeof v<"u"&&v!==null),Ei(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(S).map(function(w){return S[w]?w:null}).filter(function(w){return w})}function Ux(e){return e=e-0,e===e}function U_(e){return Ux(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var Wx=["style"];function Vx(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Hx(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=U_(n.slice(0,r)),o=n.slice(r+1).trim();return i.startsWith("webkit")?t[Vx(i)]=o:t[i]=o,t},{})}function W_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return W_(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,u){var f=t.attributes[u];switch(u){case"class":l.attrs.className=f,delete t.attributes.class;break;case"style":l.attrs.style=Hx(f);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?l.attrs[u.toLowerCase()]=f:l.attrs[U_(u)]=f}return l},{attrs:{}}),o=n.style,s=o===void 0?{}:o,a=Lx(n,Wx);return i.attrs.style=on(on({},i.attrs.style),s),e.apply(void 0,[t.tag,on(on({},i.attrs),a)].concat(Gf(r)))}var V_=!1;try{V_=!0}catch{}function Gx(){if(!V_&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Cg(e){if(e&&_l(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Hf.icon)return Hf.icon(e);if(e===null)return null;if(e&&_l(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Sc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Ei({},e,t):{}}var Eg={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Nh=Kn.forwardRef(function(e,t){var n=on(on({},Eg),e),r=n.icon,i=n.mask,o=n.symbol,s=n.className,a=n.title,l=n.titleId,u=n.maskId,f=Cg(r),c=Sc("classes",[].concat(Gf(jx(n)),Gf((s||"").split(" ")))),d=Sc("transform",typeof n.transform=="string"?Hf.transform(n.transform):n.transform),y=Sc("mask",Cg(i)),g=Px(f,on(on(on(on({},c),d),y),{},{symbol:o,title:a,titleId:l,maskId:u}));
595if(!g)return Gx("Could not find icon",f),null;var _=g.abstract,C={ref:t};return Object.keys(n).forEach(function(m){Eg.hasOwnProperty(m)||(C[m]=n[m])}),Yx(_[0],C)});Nh.displayName="FontAwesomeIcon";Nh.propTypes={beat:G.bool,border:G.bool,beatFade:G.bool,bounce:G.bool,className:G.string,fade:G.bool,flash:G.bool,mask:G.oneOfType([G.object,G.array,G.string]),maskId:G.string,fixedWidth:G.bool,inverse:G.bool,flip:G.oneOf([!0,!1,"horizontal","vertical","both"]),icon:G.oneOfType([G.object,G.array,G.string]),listItem:G.bool,pull:G.oneOf(["right","left"]),pulse:G.bool,rotation:G.oneOf([0,90,180,270]),shake:G.bool,size:G.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:G.bool,spinPulse:G.bool,spinReverse:G.bool,symbol:G.oneOfType([G.bool,G.string]),title:G.string,titleId:G.string,transform:G.oneOfType([G.string,G.object]),swapOpacity:G.bool};var Yx=W_.bind(null,Kn.createElement);const Kx={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]},Qx=({backgroundImage:e})=>{const t=b.useRef(null),[n,r]=b.useState(!1),[i,o]=b.useState({x:0,y:0}),[s,a]=b.useState(0);b.useEffect(()=>{const _=t.current,C=_.getContext("2d");e instanceof HTMLImageElement&&(e.onload=()=>{C.drawImage(e,0,0,512,512);const m=205,p=170,v=_.width-m,S=_.height-p;C.fillStyle="rgba(0, 255, 255, 0)",C.fillRect(v,S,m,p),o({x:v,y:S})},e.complete&&e.onload())},[e,s]);const l=_=>{const{offsetX:C,offsetY:m}=c(_);if(d(C,m)){r(!0);const p=t.current.getContext("2d");p.beginPath(),p.moveTo(C,m)}},u=_=>{if(!n)return;const{offsetX:C,offsetY:m}=c(_);if(d(C,m)){const p=t.current.getContext("2d");p.lineTo(C,m),p.strokeStyle="darkgreen",p.lineWidth=3,p.stroke()}},f=()=>{n&&r(!1)},c=_=>{if(_.touches){const C=_.target.getBoundingClientRect(),m=_.touches[0];return{offsetX:m.clientX-C.left,offsetY:m.clientY-C.top}}return{offsetX:_.nativeEvent.offsetX,offsetY:_.nativeEvent.offsetY}},d=(_,C)=>{const{x:v,y:S}=i;return _>=v&&_<=v+205&&C>=S&&C<=S+170},y=()=>{const _=t.current,C=document.createElement("a");C.download="myquant.png",C.href=_.toDataURL(),C.click()},g=()=>{const _=t.current;_.getContext("2d").clearRect(0,0,_.width,_.height),a(s+1)};return A.jsxs("div",{children:[A.jsx("canvas",{ref:t,width:512,height:512,onMouseDown:l,onMouseMove:u,onMouseUp:f,onMouseLeave:f,onTouchStart:l,onTouchMove:u,onTouchEnd:f,style:{border:"1px solid #ccc",display:"block",touchAction:"none",margin:"auto"}}),A.jsx("button",{onClick:y,style:{marginTop:"10px",padding:"10px",fontSize:"16px"},children:"Download Image"}),A.jsx("button",{onClick:g,style:{marginLeft:"10px",padding:"10px",fontSize:"16px"},children:"Clear Drawing"})]})};function Kr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const In="$$material";function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sl.apply(null,arguments)}function H_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var qx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInl
595ine|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Xx=H_(function(e){return qx.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Jx=!1;function Zx(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]}function eb(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var tb=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!Jx:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(eb(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Zx(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 4,942 bytes, line 595
595,t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Ge="-ms-",wl="-moz-",X="-webkit-",G_="comm",Ah="rule",Rh="decl",nb="@import",Y_="@keyframes",rb="@layer",ib=Math.abs,lu=String.fromCharCode,ob=Object.assign;function sb(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function K_(e){return e.trim()}function ab(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,n){return e.replace(t,n)}function Kf(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function ys(e,t,n){return e.slice(t,n)}function sn(e){return e.length}function Oh(e){return e.length}function wa(e,t){return t.push(e),e}function lb(e,t){return e.map(t).join("")}var uu=1,Ki=1,Q_=0,dt=0,Ie=0,no="";function cu(e,t,n,r,i,o,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:uu,column:Ki,length:s,return:""}}function So(e,t){return ob(cu("",null,null,"",null,null,0),e,{length:-e.length},t)}function ub(){return Ie}function cb(){return Ie=dt>0?je(no,--dt):0,Ki--,Ie===10&&(Ki=1,uu--),Ie}function wt(){return Ie=dt<Q_?je(no,dt++):0,Ki++,Ie===10&&(Ki=1,uu++),Ie}function pn(){return je(no,dt)}function ja(){return dt}function $s(e,t){return ys(no,e,t)}function vs(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 q_(e){return uu=Ki=1,Q_=sn(no=e),dt=0,[]}function X_(e){return no="",e}function Ua(e){return K_($s(dt-1,Qf(e===91?e+2:e===40?e+1:e)))}function fb(e){for(;(Ie=pn())&&Ie<33;)wt();return vs(e)>2||vs(Ie)>3?"":" "}function db(e,t){for(;--t&&wt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return $s(e,ja()+(t<6&&pn()==32&&wt()==32))}function Qf(e){for(;wt();)switch(Ie){case e:return dt;case 34:case 39:e!==34&&e!==39&&Qf(Ie);break;case 40:e===41&&Qf(e);break;case 92:wt();break}return dt}function hb(e,t){for(;wt()&&e+Ie!==57;)if(e+Ie===84&&pn()===47)break;return"/*"+$s(t,dt-1)+"*"+lu(e===47?e:wt())}function pb(e){for(;!vs(pn());)wt();return $s(e,dt)}function mb(e){return X_(Wa("",null,null,null,[""],e=q_(e),0,[0],e))}function Wa(e,t,n,r,i,o,s,a,l){for(var u=0,f=0,c=s,d=0,y=0,g=0,_=1,C=1,m=1,p=0,v="",S=i,w=o,E=r,k=v;C;)switch(g=p,p=wt()){case 40:if(g!=108&&je(k,c-1)==58){Kf(k+=J(Ua(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=Ua(p);break;case 9:case 10:case 13:case 32:k+=fb(g);break;case 92:k+=db(ja()-1,7);continue;case 47:switch(pn()){case 42:case 47:wa(gb(hb(wt(),ja()),t,n),l);break;default:k+="/"}break;case 123*_:a[u++]=sn(k)*m;case 125*_:case 59:case 0:switch(p){case 0:case 125:C=0;case 59+f:m==-1&&(k=J(k,/\f/g,"")),y>0&&sn(k)-c&&wa(y>32?xg(k+";",r,n,c-1):xg(J(k," ","")+";",r,n,c-2),l);break;case 59:k+=";";default:if(wa(E=kg(k,t,n,u,f,i,a,v,S=[],w=[],c),o),p===123)if(f===0)Wa(k,t,E,E,S,o,c,a,w);else switch(d===99&&je(k,3)===110?100:d){case 100:case 108:case 109:case 115:Wa(e,E,E,r&&wa(kg(e,E,E,0,0,i,a,v,i,S=[],c),w),i,w,c,a,r?S:w);break;default:Wa(k,E,E,E,[""],w,0,a,w)}}u=f=y=0,_=m=1,v=k="",c=s;break;case 58:c=1+sn(k),y=g;default:if(_<1){if(p==123)--_;else if(p==125&&_++==0&&cb()==125)continue}switch(k+=lu(p),p*_){case 38:m=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(sn(k)-1)*m,m=1;break;case 64:pn()===45&&(k+=Ua(wt())),d=pn(),f=c=sn(v=k+=pb(ja())),p++;break;case 45:g===45&&sn(k)==2&&(_=0)}}return o}function kg(e,t,n,r,i,o,s,a,l,u,f){for(var c=i-1,d=i===0?o:[""],y=Oh(d),g=0,_=0,C=0;g<r;++g)for(var m=0,p=ys(e,c+1,c=ib(_=s[g])),v=e;m<y;++m)(v=K_(_>0?d[m]+" "+p:J(p,/&\f/g,d[m])))&&(l[C++]=v);return cu(e,t,n,i===0?Ah:a,l,u,f)}function gb(e,t,n){return cu(e,t,n,G_,lu(ub()),ys(e,2,-2),0)}function xg(e,t,n,r){return cu(e,t,n,Rh,ys(e,0,r),ys(e,r+1,-1),r)}function Mi(e,t){for(var n="",r=Oh(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function yb(e,t,n,r){switch(e.type){case rb:if(e.children.length)break;case nb:case Rh:return e.return=e.return||e.value;case G_:return"";case Y_:return e.return=e.value+"{"+Mi(e.children,r)+"}";case Ah:e.value=e.props.join(",")}return sn(n=Mi(e.children,r))?e.return=e.value+"{"+n+"}":""}function vb(e){var t=Oh(e);return function(n,r,i,o){for(var s="",a=0;a<t;a++)s+=e[a](n,r,i,o)||"";return s}}function _b(e){return function(t){t.root||(t=t.return)&&e(t)}}var Sb=function(t,n,r){for(var i=0,o=0;i=o,o=pn(),i===38&&o===12&&(n[r]=1),!vs(o);)wt();return $s(t,dt)},wb=function(t,n){var r=-1,i=44;do switch(vs(i)){case 0:i===38&&pn()===12&&(n[r]=1),t[r]+=Sb(dt-1,n,r);break;case 2:t[r]+=Ua(i);break;case 4:if(i===44){t[++r]=pn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=lu(i)}while(i=wt());return t},Cb=function(t,n){return X_(wb(q_(t),n))},bg=new WeakMap,Eb=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;
vendor: 5,630 bytes, lines 595-602
595if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!bg.get(r))&&!i){bg.set(t,!0);for(var o=[],s=Cb(n,o),a=r.props,l=0,u=0;l<s.length;l++)for(var f=0;f<a.length;f++,u++)t.props[u]=o[l]?s[l].replace(/&\f/g,a[f]):a[f]+" "+s[l]}}},kb=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function J_(e,t){switch(sb(e,t)){case 5103:return X+"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 X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+wl+e+Ge+e+e;case 6828:case 4268:return X+e+Ge+e+e;case 6165:return X+e+Ge+"flex-"+e+e;case 5187:return X+e+J(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return X+e+Ge+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return X+e+Ge+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+Ge+J(e,"shrink","negative")+e;case 5292:return X+e+Ge+J(e,"basis","preferred-size")+e;case 6060:return X+"box-"+J(e,"-grow","")+X+e+Ge+J(e,"grow","positive")+e;case 4554:return X+J(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,X+"$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(sn(e)-1-t>6)switch(je(e,t+1)){case 109:if(je(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+wl+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kf(e,"stretch")?J_(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(je(e,t+1)!==115)break;case 6444:switch(je(e,sn(e)-3-(~Kf(e,"!important")&&10))){case 107:return J(e,":",":"+X)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(je(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(je(e,t+11)){case 114:return X+e+Ge+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+Ge+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+Ge+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+Ge+e+e}return e}var xb=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Rh:t.return=J_(t.value,t.length);break;case Y_:return Mi([So(t,{value:J(t.value,"@","@"+X)})],i);case Ah:if(t.length)return lb(t.props,function(o){switch(ab(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mi([So(t,{props:[J(o,/:(read-\w+)/,":"+wl+"$1")]})],i);case"::placeholder":return Mi([So(t,{props:[J(o,/:(plac\w+)/,":"+X+"input-$1")]}),So(t,{props:[J(o,/:(plac\w+)/,":"+wl+"$1")]}),So(t,{props:[J(o,/:(plac\w+)/,Ge+"input-$1")]})],i)}return""})}},bb=[xb],Tb=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var C=_.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var i=t.stylisPlugins||bb,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var C=_.getAttribute("data-emotion").split(" "),m=1;m<C.length;m++)o[C[m]]=!0;a.push(_)});var l,u=[Eb,kb];{var f,c=[yb,_b(function(_){f.insert(_)})],d=vb(u.concat(i,c)),y=function(C){return Mi(mb(C),d)};l=function(C,m,p,v){f=p,y(C?C+"{"+m.styles+"}":m.styles),v&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new tb({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(a),g},Z_={exports:{}},te={};/** @license React v16.13.1 596 * react-is.production.min.js 597 * 598 * Copyright (c) Facebook, Inc. and its affiliates. 599 * 600 * This source code is licensed under the MIT license found in the 601 * LICENSE file in the root directory of this source tree. 602 */var $e=typeof Symbol=="function"&&Symbol.for,Mh=$e?Symbol.for("react.element"):60103,Dh=$e?Symbol.for("react.portal"):60106,fu=$e?Symbol.for("react.fragment"):60107,du=$e?Symbol.for("react.strict_mode"):60108,hu=$e?Symbol.for("react.profiler"):60114,pu=$e?Symbol.for("react.provider"):60109,mu=$e?Symbol.for("react.context"):60110,Lh=$e?Symbol.for("react.async_mode"):60111,gu=$e?Symbol.for("react.concurrent_mode"):60111,yu=$e?Symbol.for("react.forward_ref"):60112,vu=$e?Symbol.for("react.suspense"):60113,Ib=$e?Symbol.for("react.suspense_list"):60120,_u=$e?Symbol.for("react.memo"):60115,Su=$e?Symbol.for("react.lazy"):60116,Pb=$e?Symbol.for("react.block"):60121,Nb=$e?Symbol.for("react.fundamental"):60117,Ab=$e?Symbol.for("react.responder"):60118,Rb=$e?Symbol.for("react.scope"):60119;function It(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Mh:switch(e=e.type,e){case Lh:case gu:case fu:case hu:case du:case vu:return e;default:switch(e=e&&e.$$typeof,e){case mu:case yu:case Su:case _u:case pu:return e;default:return t}}case Dh:return t}}}function e1(e){return It(e)===gu}te.AsyncMode=Lh;te.ConcurrentMode=gu;te.ContextConsumer=mu;te.ContextProvider=pu;te.Element=Mh;te.ForwardRef=yu;te.Fragment=fu;te.Lazy=Su;te.Memo=_u;te.Portal=Dh;te.Profiler=hu;te.StrictMode=du;te.Suspense=vu;te.isAsyncMode=function(e){return e1(e)||It(e)===Lh};te.isConcurrentMode=e1;te.isContextConsumer=function(e){return It(e)===mu};
vendor: 3,272 bytes, line 602
602te.isContextProvider=function(e){return It(e)===pu};te.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Mh};te.isForwardRef=function(e){return It(e)===yu};te.isFragment=function(e){return It(e)===fu};te.isLazy=function(e){return It(e)===Su};te.isMemo=function(e){return It(e)===_u};te.isPortal=function(e){return It(e)===Dh};te.isProfiler=function(e){return It(e)===hu};te.isStrictMode=function(e){return It(e)===du};te.isSuspense=function(e){return It(e)===vu};te.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===fu||e===gu||e===hu||e===du||e===vu||e===Ib||typeof e=="object"&&e!==null&&(e.$$typeof===Su||e.$$typeof===_u||e.$$typeof===pu||e.$$typeof===mu||e.$$typeof===yu||e.$$typeof===Nb||e.$$typeof===Ab||e.$$typeof===Rb||e.$$typeof===Pb)};te.typeOf=It;Z_.exports=te;var Ob=Z_.exports,t1=Ob,Mb={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Db={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},n1={};n1[t1.ForwardRef]=Mb;n1[t1.Memo]=Db;var Lb=!0;function Fb(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var r1=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Lb===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},i1=function(t,n,r){r1(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function $b(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zb={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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},Bb=!1,jb=/[A-Z]|^ms/g,Ub=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o1=function(t){return t.charCodeAt(1)===45},Tg=function(t){return t!=null&&typeof t!="boolean"},wc=H_(function(e){return o1(e)?e:e.replace(jb,"-$&").toLowerCase()}),Ig=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Ub,function(r,i,o){return an={name:i,styles:o,next:an},i})}return zb[t]!==1&&!o1(t)&&typeof n=="number"&&n!==0?n+"px":n},Wb="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";
vendor: 4,142 bytes, line 602
602function _s(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return an={name:i.name,styles:i.styles,next:an},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)an={name:s.name,styles:s.styles,next:an},s=s.next;var a=o.styles+";";return a}return Vb(e,t,n)}case"function":{if(e!==void 0){var l=an,u=n(e);return an=l,_s(e,t,u)}break}}var f=n;if(t==null)return f;var c=t[f];return c!==void 0?c:f}function Vb(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=_s(e,t,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Tg(a)&&(r+=wc(o)+":"+Ig(o,a)+";")}else{if(o==="NO_COMPONENT_SELECTOR"&&Bb)throw new Error(Wb);if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)Tg(s[l])&&(r+=wc(o)+":"+Ig(o,s[l])+";");else{var u=_s(e,t,s);switch(o){case"animation":case"animationName":{r+=wc(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}}return r}var Pg=/label:\s*([^\s;{]+)\s*(;|$)/g,an;function wu(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";an=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,i+=_s(n,t,o);else{var s=o;i+=s[0]}for(var a=1;a<e.length;a++)if(i+=_s(n,t,e[a]),r){var l=o;i+=l[a]}Pg.lastIndex=0;for(var u="",f;(f=Pg.exec(i))!==null;)u+="-"+f[1];var c=$b(i)+u;return{name:c,styles:i,next:an}}var Hb=function(t){return t()},s1=Vp.useInsertionEffect?Vp.useInsertionEffect:!1,Gb=s1||Hb,Ng=s1||b.useLayoutEffect,a1=b.createContext(typeof HTMLElement<"u"?Tb({key:"css"}):null);a1.Provider;var l1=function(t){return b.forwardRef(function(n,r){var i=b.useContext(a1);return t(n,i,r)})},Cu=b.createContext({}),Yb=l1(function(e,t){var n=e.styles,r=wu([n],void 0,b.useContext(Cu)),i=b.useRef();return Ng(function(){var o=t.key+"-global",s=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return t.sheet.tags.length&&(s.before=t.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[t]),Ng(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&i1(t,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}t.insert("",r,s,!1)},[t,r.name]),null});function Kb(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return wu(t)}var Fh=function(){var t=Kb.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Qb=Xx,qb=function(t){return t!=="theme"},Ag=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Qb:qb},Rg=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Xb=!1,Jb=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return r1(n,r,i),Gb(function(){return i1(n,r,i)}),null},Zb=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Rg(t,n,r),l=a||Ag(i),u=!l("as");return function(){var f=arguments,c=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&c.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)c.push.apply(c,f);else{c.push(f[0][0]);for(var d=f.length,y=1;y<d;y++)c.push(f[y],f[0][y])}var g=l1(function(_,C,m){var p=u&&_.as||i,v="",S=[],w=_;if(_.theme==null){w={};for(var E in _)w[E]=_[E];w.theme=b.useContext(Cu)}typeof _.className=="string"?v=Fb(C.registered,S,_.className):_.className!=null&&(v=_.className+" ");var k=wu(c.concat(S),C.registered,w);v+=C.key+"-"+k.name,s!==void 0&&(v+=" "+s);var T=u&&a===void 0?Ag(p):l,D={};for(var h in _)u&&h==="as"||T(h)&&(D[h]=_[h]);return D.className=v,m&&(D.ref=m),b.createElement(b.Fragment,null,b.createElement(Jb,{cache:C,seri
602alized:k,isStringTag:typeof p=="string"}),b.createElement(p,D))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=c,g.__emotion_forwardProp=a,Object.defineProperty(g,"toString",{value:function(){return s===void 0&&Xb?"NO_COMPONENT_SELECTOR":"."+s}}),g.withComponent=function(_,C){return e(_,Sl({},n,C,{shouldForwardProp:Rg(g,C,!0)})).apply(void 0,c)},g}},e2=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],qf=Zb.bind();e2.forEach(function(e){qf[e]=qf(e)});function t2(e){return e==null||Object.keys(e).length===0}function n2(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(t2(i)?n:i):t;return A.jsx(Yb,{styles:r})}/** 603 * @mui/styled-engine v6.1.10 604 * 605 * @license MIT 606 * This source code is licensed under the MIT license found in the 607 * LICENSE file in the root directory of this source tree. 608 */function u1(e,t){return qf(e,t)}function r2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Og=[];function Mg(e){return Og[0]=e,wu(Og)}function un(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function c1(e){if(b.isValidElement(e)||!un(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=c1(e[n])}),t}function Ct(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return un(e)&&un(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])?r[i]=t[i]:un(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&un(e[i])?r[i]=Ct(e[i],t[i],n):n.clone?r[i]=un(t[i])?c1(t[i]):t[i]:r[i]=t[i]}),r}const i2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function o2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,o=i2(t),s=Object.keys(o);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,y){const g=s.indexOf(y);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:y)-r/100}${n})`}function f(d){return s.indexOf(d)+1<s.length?u(d,s[s.indexOf(d)+1]):a(d)}function c(d){const y=s.indexOf(d);return y===0?a(s[1]):y===s.length-1?l(s[y]):u(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:a,down:l,between:u,only:f,not:c,unit:n,...i}}function s2(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var s,a;const o=/min-width:\s*([0-9.]+)/;return+(((s=r.match(o))==null?void 0:s[1])||0)-+(((a=i.match(o))==null?void 0:a[1])||0)});return n.length?n.reduce((r,i)=>{const o=t[i];return delete r[i],r[i]=o,r},{...t}):t}function a2(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function l2(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(o)}function u2(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>t(e.breakpoints.up(...a),s),o.down=(...a)=>t(e.breakpoints.down(...a),s),o.between=(...a)=>t(e.breakpoints.between(...a),s),o.only=(...a)=>t(e.breakpoints.only(...a),s),o.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},i=o=>(n(r,o),r);return n(i),{...e,containerQueries:i}}const c2={borderRadius:4};function Go(e,t){return t?Ct(e,t,{clone:!1}):e}const Eu={xs:0,sm:600,md:900,lg:1200,xl:1536},Dg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Eu[e]}px)`},f2={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Eu[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ln(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Dg;return t.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Dg;return Object.keys(t).reduce((s,a)=>
608{if(a2(o.keys,a)){const l=l2(r.containerQueries?r:f2,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(o.values||Eu).includes(a)){const l=o.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function d2(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function h2(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Xe(e){if(typeof e!="string")throw new Error(Kr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ku(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Cl(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ku(e,n)||r,t&&(i=t(i,r,e)),i}function be(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=ku(l,r)||{};return Ln(s,a,c=>{let d=Cl(u,i,c);return c===d&&typeof c=="string"&&(d=Cl(u,i,`${t}${c==="default"?"":Xe(c)}`,c)),n===!1?d:{[n]:d}})};return o.propTypes={},o.filterProps=[t],o}function p2(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const m2={m:"margin",p:"padding"},g2={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lg={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},y2=p2(e=>{if(e.length>2)if(Lg[e])e=Lg[e];else return[e];const[t,n]=e.split(""),r=m2[t],i=g2[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),$h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$h,...zh];function zs(e,t,n,r){const i=ku(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?o=>typeof o=="string"?o:typeof i=="string"?`calc(${o} * ${i})`:i*o:Array.isArray(i)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),a=i[s];return o>=0?a:typeof a=="number"?-a:`-${a}`}:typeof i=="function"?i:()=>{}}function Bh(e){return zs(e,"spacing",8)}function Bs(e,t){return typeof t=="string"||t==null?t:e(t)}function v2(e,t){return n=>e.reduce((r,i)=>(r[i]=Bs(t,n),r),{})}function _2(e,t,n,r){if(!t.includes(n))return null;const i=y2(n),o=v2(i,r),s=e[n];return Ln(e,s,o)}function f1(e,t){const n=Bh(e.theme);return Object.keys(e).map(r=>_2(e,t,r,n)).reduce(Go,{})}function we(e){return f1(e,$h)}we.propTypes={};we.filterProps=$h;function Ce(e){return f1(e,zh)}Ce.propTypes={};Ce.filterProps=zh;function d1(e=8,t=Bh({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function xu(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Go(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Dt(e){return typeof e!="number"?e:`${e}px solid`}function Bt(e,t){return be({prop:e,themeKey:"borders",transform:t})}const S2=Bt("border",Dt),w2=Bt("borderTop",Dt),C2=Bt("borderRight",Dt),E2=Bt("borderBottom",Dt),k2=Bt("borderLeft",Dt),x2=Bt("borderColor"),b2=Bt("borderTopColor"),T2=Bt("borderRightColor"),I2=Bt("borderBottomColor"),P2=Bt("borderLeftColor"),N2=Bt("outline",Dt),A2=Bt("outlineColor"),bu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=zs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Bs(t,r)});return Ln(e,e.borderRadius,n)}return null};bu.propTypes={};bu.filterProps=["borderRadius"];xu(S2,w2,C2,E2,k2,x2,b2,T2,I2,P2,bu,N2,A2);const Tu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=zs(e.theme,"spacing",8),n=r=>({gap:Bs(t,r)});return Ln(e,e.gap,n)}return null};Tu.propTypes={};Tu.filterProps=["gap"];const Iu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=zs(e.theme,"spacing",8),n=r=>({columnGap:Bs(t,r)});return Ln(e,e.columnGap,n)}return null};Iu.propTypes={};Iu.filterProps=["columnGap"];const Pu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=zs(e.theme,"spacing",8),n=r=>({rowGap:Bs(t,r)});return Ln(e,e.rowGap,n)}return null};Pu.propTypes={};Pu.filterProps=["rowGap"];const R2=be({prop:"gridColumn"}),O2=be({prop:"gridRow"}),M2=be({prop:"gridAutoFlow"}),D2=be({prop:"gridAutoColumns"}),L2=be({prop:"gridAutoRows"}),F2=be({prop:"gridTemplateColumns"}),$2=be({prop:"gridTemplateRows"}),z2=be({prop:"gridTemplateAreas"}),B2=be({prop:"gridArea"});xu(Tu,Iu,Pu,R2,O2,M2,D2,L2,F2,$2,z2,B2);function Di(e,t){return t==="grey"?t:e}const j2=be({prop:"color",themeKey:"palette",transform:Di}),U2=be({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Di}),W2=be({prop:"backgroundColor",themeKey:"palette",transform:Di});xu(j2,U2,W2);function gt(e){return e<=1&&e!==0?`${e*100}%`:e}const V2=be({prop:"width",transform:gt}),jh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,o,s,a,l;const r=((s=(o=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:s[n])||Eu[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:gt(n)}};return Ln(e,e.maxWidth,t)}return null};jh.filterProps=["maxWidth"];const H2=be({prop:"minWidth",transform:gt}),G2=be({prop:"height",transform:gt}),Y2=be({prop:"maxHeight",transform:gt}),K2=be({prop:"minHeight",transform:gt});be({prop:"size",cssProperty:"width",transform:gt});be({prop:"size",cssProperty:"height",transform:gt});const Q2=be({prop:"boxSizing"});xu(V2,jh,H2,G2,Y2,K2,Q2);const js={border:{themeKey:"borders",transform:Dt},borderTop:{themeKey:"borders",transform:Dt},borderRight:{themeKey:"borders",transform:Dt},borderBottom:{themeKey:"borders",transform:Dt},borderLeft:{themeKey:"borders",transform:Dt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Dt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:bu},color:{themeKey:"palette",transform:Di},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Di},backgroundColor:{themeKey:"palette",transform:Di},p:{style:Ce},pt:{style:Ce},pr:{style:Ce},pb:{style:Ce},pl:{style:Ce},px:{style:Ce},py:{style:Ce},padding:{style:Ce},paddingTop:{style:Ce},paddingRight:{style:Ce}
608,paddingBottom:{style:Ce},paddingLeft:{style:Ce},paddingX:{style:Ce},paddingY:{style:Ce},paddingInline:{style:Ce},paddingInlineStart:{style:Ce},paddingInlineEnd:{style:Ce},paddingBlock:{style:Ce},paddingBlockStart:{style:Ce},paddingBlockEnd:{style:Ce},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tu},rowGap:{style:Pu},columnGap:{style:Iu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:gt},maxWidth:{style:jh},minWidth:{transform:gt},height:{transform:gt},maxHeight:{transform:gt},minHeight:{transform:gt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function q2(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function X2(e,t){return typeof e=="function"?e(t):e}function J2(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:f,style:c}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const d=ku(i,u)||{};return c?c(s):Ln(s,r,g=>{let _=Cl(d,f,g);return g===_&&typeof g=="string"&&(_=Cl(d,f,`${n}${g==="default"?"":Xe(g)}`,g)),l===!1?_:{[l]:_}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const o=i.unstable_sxConfig??js;function s(a){let l=a;if(typeof a=="function")l=a(i);else if(typeof a!="object")return a;
608if(!l)return null;const u=d2(i.breakpoints),f=Object.keys(u);let c=u;return Object.keys(l).forEach(d=>{const y=X2(l[d],i);if(y!=null)if(typeof y=="object")if(o[d])c=Go(c,e(d,y,i,o));else{const g=Ln({theme:i},y,_=>({[d]:_}));q2(g,y)?c[d]=t({sx:y,theme:i}):c=Go(c,g)}else c=Go(c,e(d,y,i,o))}),s2(i,h2(f,c))}return Array.isArray(r)?r.map(s):s(r)}return t}const pr=J2();pr.filterProps=["sx"];function Z2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Uh(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...s}=e,a=o2(n),l=d1(i);let u=Ct({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...c2,...o}},s);return u=u2(u),u.applyStyles=Z2,u=t.reduce((f,c)=>Ct(f,c),u),u.unstable_sxConfig={...js,...s==null?void 0:s.unstable_sxConfig},u.unstable_sx=function(c){return pr({sx:c,theme:this})},u}function eT(e){return Object.keys(e).length===0}function h1(e=null){const t=b.useContext(Cu);return!t||eT(t)?e:t}const tT=Uh();function p1(e=tT){return h1(e)}const nT=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??js;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function m1(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=nT(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return un(a)?{...r,...a}:r}:o={...r,...t},{...i,sx:o}}const Fg=e=>e,rT=()=>{let e=Fg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fg}}},g1=rT();function y1(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=y1(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ke(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=y1(e))&&(r&&(r+=" "),r+=t);return r}function iT(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,o=u1("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(pr);return b.forwardRef(function(l,u){const f=p1(n),{className:c,component:d="div",...y}=m1(l);return A.jsx(o,{as:d,ref:u,className:ke(c,i?i(r):r),theme:t&&f[t]||f,...y})})}
608const oT={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function jn(e,t,n="Mui"){const r=oT[t];return r?`${n}-${r}`:`${g1.generate(e)}-${t}`}function gn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=jn(e,i,n)}),r}function v1(e){const{variants:t,...n}=e,r={variants:t,style:Mg(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Mg(i.style))}),r}const sT=Uh();function Cc(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function aT(e){return e?(t,n)=>n[e]:null}function lT(e,t,n){e.theme=fT(e.theme)?n:e.theme[t]||e.theme}function Va(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Va(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...o}=n;r=o}return _1(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function _1(e,t,n=[]){var i;let r;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((i=e.ownerState)==null?void 0:i[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function uT(e={}){const{themeId:t,defaultTheme:n=sT,rootShouldForwardProp:r=Cc,slotShouldForwardProp:i=Cc}=e;function o(a){lT(a,t,n)}return(a,l={})=>{r2(a,w=>w.filter(E=>E!==pr));const{name:u,slot:f,skipVariantsResolver:c,skipSx:d,overridesResolver:y=aT(hT(f)),...g}=l,_=c!==void 0?c:f&&f!=="Root"&&f!=="root"||!1,C=d||!1;let m=Cc;f==="Root"||f==="root"?m=r:f?m=i:dT(a)&&(m=void 0);const p=u1(a,{shouldForwardProp:m,label:cT(),...g}),v=w=>{if(typeof w=="function"&&w.__emotion_real!==w)return function(k){return Va(k,w)};if(un(w)){const E=v1(w);return E.variants?function(T){return Va(T,E)}:E.style}return w},S=(...w)=>{const E=[],k=w.map(v),T=[];if(E.push(o),u&&y&&T.push(function(F){var ge,Te;const U=(Te=(ge=F.theme.components)==null?void 0:ge[u])==null?void 0:Te.styleOverrides;if(!U)return null;const Q={};for(const R in U)Q[R]=Va(F,U[R]);return y(F,Q)}),u&&!_&&T.push(function(F){var Q,ge;const z=F.theme,U=(ge=(Q=z==null?void 0:z.components)==null?void 0:Q[u])==null?void 0:ge.variants;return U?_1(F,U):null}),C||T.push(pr),Array.isArray(k[0])){const P=k.shift(),F=new Array(E.length).fill(""),z=new Array(T.length).fill("");let U;U=[...F,...P,...z],U.raw=[...F,...P.raw,...z],E.unshift(U)}const D=[...E,...k,...T],h=p(...D);return a.muiName&&(h.muiName=a.muiName),h};return p.withConfig&&(S.withConfig=p.withConfig),S}}function cT(e,t){return void 0}function fT(e){for(const t in e)return!1;return!0}function dT(e){return typeof e=="string"&&e.charCodeAt(0)>96}function hT(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Xf(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const o=e[i],s=t[i];if(!s)n[i]=o||{};else if(!o)n[i]=s;else{n[i]={...s};for(const a in o)if(Object.prototype.hasOwnProperty.call(o,a)){const l=a;n[i][l]=Xf(o[l],s[l])}}}else n[i]===void 0&&(n[i]=e[i])}return n}const pT=typeof window<"u"?b.useLayoutEffect:b.useEffect;function mT(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Wh(e,t=0,n=1){return mT(e,t,n)}function gT(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function mr(e){if(e.type)return e;if(e.charAt(0)==="#")return mr(gT(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Kr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Kr(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const yT=e=>{const t=mr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Ro=(e,t)=>{try{return yT(e)}catch{return e}};function Nu(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n}
608 ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function S1(e){e=mr(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),Nu({type:a,values:l})}function Jf(e){e=mr(e);let t=e.type==="hsl"||e.type==="hsla"?mr(S1(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vT(e,t){const n=Jf(e),r=Jf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ss(e,t){return e=mr(e),t=Wh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Nu(e)}function Ca(e,t,n){try{return Ss(e,t)}catch{return e}}function Vh(e,t){if(e=mr(e),t=Wh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Nu(e)}function re(e,t,n){try{return Vh(e,t)}catch{return e}}function Hh(e,t){if(e=mr(e),t=Wh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Nu(e)}function ie(e,t,n){try{return Hh(e,t)}catch{return e}}function _T(e,t=.15){return Jf(e)>.5?Vh(e,t):Hh(e,t)}function Ea(e,t,n){try{return _T(e,t)}catch{return e}}function ST(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function wT({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[o,s]=b.useState(t),a=i?e:o,l=b.useCallback(u=>{i||s(u)},[]);return[a,l]}function Ha(e){const t=b.useRef(e);return pT(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Zf(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{ST(n,t)})},e)}const $g={};function w1(e,t){const n=b.useRef($g);return n.current===$g&&(n.current=e(t)),n}const CT=[];function ET(e){b.useEffect(e,CT)}class Gh{constructor(){co(this,"currentId",null);co(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});co(this,"disposeEffect",()=>this.clear)}
608static create(){return new Gh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function kT(){const e=w1(Gh.create).current;return ET(e.disposeEffect),e}function zg(e){try{return e.matches(":focus-visible")}catch{}return!1}function Cr(e,t,n=void 0){const r={};for(const i in e){const o=e[i];let s="",a=!0;for(let l=0;l<o.length;l+=1){const u=o[l];u&&(s+=(a===!0?"":" ")+t(u),a=!1,n&&n[u]&&(s+=" "+n[u]))}r[i]=s}return r}function xT(e){return typeof e=="string"}function bT(e,t,n){return e===void 0||xT(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function TT(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Bg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IT(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const y=ke(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},_={...n,...i,...r};return y.length>0&&(_.className=y),Object.keys(g).length>0&&(_.style=g),{props:_,internalRef:void 0}}const s=TT({...i,...r}),a=Bg(r),l=Bg(i),u=t(s),f=ke(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),c={...u==null?void 0:u.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},d={...u,...n,...l,...a};return f.length>0&&(d.className=f),Object.keys(c).length>0&&(d.style=c),{props:d,internalRef:u.ref}}function PT(e,t,n){return typeof e=="function"?e(t,n):e}const C1=b.createContext(null);function Yh(){return b.useContext(C1)}const NT=typeof Symbol=="function"&&Symbol.for,AT=NT?Symbol.for("mui.nested"):"__THEME_NESTED__";function RT(e,t){return typeof t=="function"?t(e):{...e,...t}}function OT(e){const{children:t,theme:n}=e,r=Yh(),i=b.useMemo(()=>{const o=r===null?{...n}:RT(r,n);return o!=null&&(o[AT]=r!==null),o},[n,r]);return A.jsx(C1.Provider,{value:i,children:t})}const MT=b.createContext();function DT({value:e,...t}){return A.jsx(MT.Provider,{value:e??!0,...t})}const E1=b.createContext(void 0);function LT({value:e,children:t}){return A.jsx(E1.Provider,{value:e,children:t})}function FT(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Xf(i.defaultProps,r):!i.styleOverrides&&!i.variants?Xf(i,r):r}function $T({props:e,name:t}){const n=b.useContext(E1);return FT({props:e,name:t,theme:{components:n}})}const jg={};function Ug(e,t,n,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?{...t,[e]:o}:o;return r?()=>s:s}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function k1(e){const{children:t,theme:n,themeId:r}=e,i=h1(jg),o=Yh()||jg,s=Ug(r,i,n),a=Ug(r,o,n,!0),l=(r?s[r]:s).direction==="rtl";return A.jsx(OT,{theme:a,children:A.jsx(Cu.Provider,{value:s,children:A.jsx(DT,{value:l,children:A.jsx(LT,{value:r?s[r].components:s.components,children:t})})})})}const Wg={theme:void 0};function zT(e){let t,n;return function(i){let o=t;return(o===void 0||i.theme!==n)&&(Wg.theme=i.theme,o=v1(e(Wg)),t=o,n=i.theme),o}}const Kh="mode",Qh="color-scheme",BT="data-color-scheme";function jT(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:i=Kh,colorSchemeStorageKey:o=Qh,attribute:s=BT,colorSchemeNode:a="document.documentElement",nonce:l}=e||{};let u="",f=s;if(s==="class"&&(f=".%s"),s==="data"&&(f="[data-%s]"),f.startsWith(".")){const d=f.substring(1);u+=`${a}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark)); 609 ${a}.classList.add('${d}'.replace('%s', colorScheme));`}const c=f.match(/\[([^\]]+)\]/);if(c){const[d,y]=c[1].split("=");y||(u+=`${a}.removeAttribute('${d}'.replace('%s', light)); 610 ${a}.removeAttribute('${d}'.replace('%s', dark));`),u+=` 611 ${a}.setAttribute('${d}'.replace('%s', colorScheme), ${y?`${y}.replace('%s', colorScheme)`:'""'});`}else u+=`${a}.setAttribute('${f}', colorScheme);`;return A.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { 612try { 613 let colorScheme = ''; 614 const mode = localStorage.getItem('${i}') || '${t}'; 615 const dark = localStorage.getItem('${o}-dark') || '${r}'; 616 const light = localStorage.getItem('${o}-light') || '${n}'; 617 if (mode === 'system') { 618 // handle system mode 619 const mql = window.matchMedia('(prefers-color-scheme: dark)'); 620 if (mql.matches) { 621 colorScheme = dark 622 } else { 623 colorScheme = light 624 } 625 } 626 if (mode === 'light') { 627 colorScheme = light; 628 } 629 if (mode === 'dark') { 630 colorScheme = dark; 631 } 632 if (colorScheme) { 633 ${u} 634 } 635} catch(e){}})();`}},"mui-color-scheme-init")}function Vg(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
635k":"light"}function x1(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function UT(e){return x1(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function Ec(e,t){if(typeof window>"u")return;let n;try{n=localStorage.getItem(e)||void 0,n||localStorage.setItem(e,t)}catch{}return n||t}function WT(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=Kh,colorSchemeStorageKey:s=Qh,storageWindow:a=typeof window>"u"?void 0:window,noSsr:l=!1}=e,u=i.join(","),f=i.length>1,[c,d]=b.useState(()=>{const S=Ec(o,t),w=Ec(`${s}-light`,n),E=Ec(`${s}-dark`,r);return{mode:S,systemMode:Vg(S),lightColorScheme:w,darkColorScheme:E}}),[y,g]=b.useState(l||!f);b.useEffect(()=>{g(!0)},[]);const _=UT(c),C=b.useCallback(S=>{d(w=>{if(S===w.mode)return w;const E=S??t;try{localStorage.setItem(o,E)}catch{}return{...w,mode:E,systemMode:Vg(E)}})},[o,t]),m=b.useCallback(S=>{S?typeof S=="string"?S&&!u.includes(S)?console.error(`\`${S}\` does not exist in \`theme.colorSchemes\`.`):d(w=>{const E={...w};return x1(w,k=>{try{localStorage.setItem(`${s}-${k}`,S)}catch{}k==="light"&&(E.lightColorScheme=S),k==="dark"&&(E.darkColorScheme=S)}),E}):d(w=>{const E={...w},k=S.light===null?n:S.light,T=S.dark===null?r:S.dark;if(k)if(!u.includes(k))console.error(`\`${k}\` does not exist in \`theme.colorSchemes\`.`);else{E.lightColorScheme=k;try{localStorage.setItem(`${s}-light`,k)}catch{}}if(T)if(!u.includes(T))console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`);else{E.darkColorScheme=T;try{localStorage.setItem(`${s}-dark`,T)}catch{}}return E}):d(w=>{try{localStorage.setItem(`${s}-light`,n),localStorage.setItem(`${s}-dark`,r)}catch{}return{...w,lightColorScheme:n,darkColorScheme:r}})},[u,s,n,r]),p=b.useCallback(S=>{c.mode==="system"&&d(w=>{const E=S!=null&&S.matches?"dark":"light";return w.systemMode===E?w:{...w,systemMode:E}})},[c.mode]),v=b.useRef(p);return v.current=p,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!f)return;const S=(...E)=>v.current(...E),w=window.matchMedia("(prefers-color-scheme: dark)");return w.addListener(S),S(w),()=>{w.removeListener(S)}},[f]),b.useEffect(()=>{if(a&&f){const S=w=>{const E=w.newValue;typeof w.key=="string"&&w.key.startsWith(s)&&(!E||u.match(E))&&(w.key.endsWith("light")&&m({light:E}),w.key.endsWith("dark")&&m({dark:E})),w.key===o&&(!E||["light","dark","system"].includes(E))&&C(E||t)};return a.addEventListener("storage",S),()=>{a.removeEventListener("storage",S)}}},[m,C,o,s,u,t,a,f]),{...c,mode:y?c.mode:void 0,systemMode:y?c.systemMode:void 0,colorScheme:y?_:void 0,setMode:C,setColorScheme:m}}const VT="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function HT(e){const{themeId:t,theme:n={},modeStorageKey:r=Kh,colorSchemeStorageKey:i=Qh,disableTransitionOnChange:o=!1,defaultColorScheme:s,resolveTheme:a}=e,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=b.createContext(void 0),f=()=>b.useContext(u)||l,c={},d={};function y(m){var Fp,$p,zp,Bp;const{children:p,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:w=i,disableTransitionOnChange:E=o,storageWindow:k=typeof window>"u"?void 0:window,documentNode:T=typeof document>"u"?void 0:document,colorSchemeNode:D=typeof document>"u"?void 0:document.documentElement,disableNestedContext:h=!1,disableStyleSheetGeneration:P=!1,defaultMode:F="system",noSsr:z}=m,U=b.useRef(!1),Q=Yh(),ge=b.useContext(u),Te=!!ge&&!h,R=b.useMemo(()=>v||(typeof n=="function"?n():n),[v]),O=R[t],$=O||R,{colorSchemes:W=c,components:oe=d,cssVarPrefix:en}=$,Pt=Object.keys(W).filter(Ze=>!!W[Ze]).join(","),Nt=b.useMemo(()=>Pt.split(","),[Pt]),At=typeof s=="string"?s:s.light,vn=typeof s=="string"?s:s.dark,ju=W[At]&&W[vn]?F:(($p=(Fp=W[$.defaultColorScheme])==null?void 0:Fp.palette)==null?void 0:$p.mode)||((zp=$.palette)==null?void 0:zp.mode),{mode:Uu,setMode:qs,systemMode:Xs,lightColorScheme:Js,darkColorScheme:Zs,colorScheme:ao,setColorScheme:ea}
635=WT({supportedColorSchemes:Nt,defaultLightColorScheme:At,defaultDarkColorScheme:vn,modeStorageKey:S,colorSchemeStorageKey:w,defaultMode:ju,storageWindow:k,noSsr:z});let lo=Uu,ze=ao;Te&&(lo=ge.mode,ze=ge.colorScheme);const jt=b.useMemo(()=>{var uo;const Ze=ze||$.defaultColorScheme,it=((uo=$.generateThemeVars)==null?void 0:uo.call($))||$.vars,pt={...$,components:oe,colorSchemes:W,cssVarPrefix:en,vars:it};if(typeof pt.generateSpacing=="function"&&(pt.spacing=pt.generateSpacing()),Ze){const Ut=W[Ze];Ut&&typeof Ut=="object"&&Object.keys(Ut).forEach(_n=>{Ut[_n]&&typeof Ut[_n]=="object"?pt[_n]={...pt[_n],...Ut[_n]}:pt[_n]=Ut[_n]})}return a?a(pt):pt},[$,ze,oe,W,en]),xr=$.colorSchemeSelector;b.useEffect(()=>{if(ze&&D&&xr&&xr!=="media"){const Ze=xr;let it=xr;if(Ze==="class"&&(it=".%s"),Ze==="data"&&(it="[data-%s]"),Ze!=null&&Ze.startsWith("data-")&&!Ze.includes("%s")&&(it=`[${Ze}="%s"]`),it.startsWith("."))D.classList.remove(...Nt.map(pt=>it.substring(1).replace("%s",pt))),D.classList.add(it.substring(1).replace("%s",ze));else{const pt=it.replace("%s",ze).match(/\[([^\]]+)\]/);if(pt){const[uo,Ut]=pt[1].split("=");Ut||Nt.forEach(_n=>{D.removeAttribute(uo.replace(ze,_n))}),D.setAttribute(uo,Ut?Ut.replace(/"|'/g,""):"")}else D.setAttribute(it,ze)}}},[ze,xr,D,Nt]),b.useEffect(()=>{let Ze;if(E&&U.current&&T){const it=T.createElement("style");it.appendChild(T.createTextNode(VT)),T.head.appendChild(it),window.getComputedStyle(T.body),Ze=setTimeout(()=>{T.head.removeChild(it)},1)}return()=>{clearTimeout(Ze)}},[ze,E,T]),b.useEffect(()=>(U.current=!0,()=>{U.current=!1}),[]);const ta=b.useMemo(()=>({allColorSchemes:Nt,colorScheme:ze,darkColorScheme:Zs,lightColorScheme:Js,mode:lo,setColorScheme:ea,setMode:qs,systemMode:Xs}),[Nt,ze,Zs,Js,lo,ea,qs,Xs,jt.colorSchemeSelector]);let na=!0;(P||$.cssVariables===!1||Te&&(Q==null?void 0:Q.cssVarPrefix)===en)&&(na=!1);const j=A.jsxs(b.Fragment,{children:[A.jsx(k1,{themeId:O?t:void 0,theme:jt,children:p}),na&&A.jsx(n2,{styles:((Bp=jt.generateStyleSheets)==null?void 0:Bp.call(jt))||[]})]});return Te?j:A.jsx(u.Provider,{value:ta,children:j})}const g=typeof s=="string"?s:s.light,_=typeof s=="string"?s:s.dark;return{CssVarsProvider:y,useColorScheme:f,getInitColorSchemeScript:m=>jT({colorSchemeStorageKey:i,defaultLightColorScheme:g,defaultDarkColorScheme:_,modeStorageKey:r,...m})}}function GT(e=""){function t(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Hg=(e,t,n,r=[])=>{let i=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(i)?i[Number(o)]=n:i&&typeof i=="object"&&(i[o]=n):i&&typeof i=="object"&&(i[o]||(i[o]=r.includes(o)?[]:{}),i=i[o])})},YT=(e,t,n)=>{function r(i,o=[],s=[]){Object.entries(i).forEach(([a,l])=>{(!n||n&&!n([...o,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,a],Array.isArray(l)?[...s,a]:s):t([...o,a],l,s))})}r(e)},KT=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function kc(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},o={},s={};return YT(e,(a,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const f=`--${n?`${n}-`:""}${a.join("-")}`,c=KT(a,l);Object.assign(i,{[f]:c}),Hg(o,a,`var(${f})`,u),Hg(s,a,`var(${f}, ${c})`,u)}},a=>a[0]==="vars"),{css:i,vars:o,varsWithDefaults:s}}function QT(e,t={}){const{getSelector:n=C,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:o={},components:s,defaultColorScheme:a="light",...l}=e,{vars:u,css:f,varsWithDefaults:c}=kc(l,t);let d=c;const y={},{[a]:g,..._}=o;if(Object.entries(_||{}).forEach(([v,S])=>{const{vars:w,css:E,varsWithDefaults:k}=kc(S,t);d=Ct(d,k),y[v]={css:E,vars:w}}),g){const{css:v,vars:S,varsWithDefaults:w}=kc(g,t);d=Ct(d,w),y[a]={css:v,vars:S}}function C(v,S){var E,k;let w=i;if(i==="class"&&(w=".%s"),i==="data"&&(w="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(w=`[${i}="%s"]`),v){if(w==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((k=(E=o[v])==null?void 0:E.palette)==null?void 0:k.mode)||v})`]:{":root":S}};if(w)return e.defaultColorScheme===v?`:root, ${w.replace("%s",String(v))}`:w.replace("%s",String(v))}return":root"}
635return{vars:d,generateThemeVars:()=>{let v={...u};return Object.entries(y).forEach(([,{vars:S}])=>{v=Ct(v,S)}),v},generateStyleSheets:()=>{var T,D;const v=[],S=e.defaultColorScheme||"light";function w(h,P){Object.keys(P).length&&v.push(typeof h=="string"?{[h]:{...P}}:h)}w(n(void 0,{...f}),f);const{[S]:E,...k}=y;if(E){const{css:h}=E,P=(D=(T=o[S])==null?void 0:T.palette)==null?void 0:D.mode,F=!r&&P?{colorScheme:P,...h}:{...h};w(n(S,{...F}),F)}return Object.entries(k).forEach(([h,{css:P}])=>{var U,Q;const F=(Q=(U=o[h])==null?void 0:U.palette)==null?void 0:Q.mode,z=!r&&F?{colorScheme:F,...P}:{...P};w(n(h,{...z}),z)}),v}}}function qT(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const ws={black:"#000",white:"#fff"},XT={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ii={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},oi={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wo={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},si={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},ai={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},li={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function b1(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:ws.white,default:ws.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const JT=b1();function T1(){return{text:{primary:ws.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:ws.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Gg=T1();function Yg(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Hh(e.main,i):t==="dark"&&(e.dark=Vh(e.main,o)))}function ZT(e="light"){return e==="dark"?{main:si[200],light:si[50],dark:si[400]}:{main:si[700],light:si[400],dark:si[800]}}function eI(e="light"){return e==="dark"?{main:ii[200],light:ii[50],dark:ii[400]}:{main:ii[500],light:ii[300],dark:ii[700]}}function tI(e="light"){return e==="dark"?{main:oi[500],light:oi[300],dark:oi[700]}:{main:oi[700],light:oi[400],dark:oi[800]}}function nI(e="light"){return e==="dark"?{main:ai[400],light:ai[300],dark:ai[700]}:{main:ai[700],light:ai[500],dark:ai[900]}}function rI(e="light"){return e==="dark"?{main:li[400],light:li[300],dark:li[700]}:{main:li[800],light:li[500],dark:li[900]}}function iI(e="light"){return e==="dark"?{main:wo[400],light:wo[300],dark:wo[700]}:{main:"#ed6c02",light:wo[500],dark:wo[900]}}function qh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,o=e.primary||ZT(t),s=e.secondary||eI(t),a=e.error||tI(t),l=e.info||nI(t),u=e.success||rI(t),f=e.warning||iI(t);function c(_){return vT(_,Gg.text.primary)>=n?Gg.text.primary:JT.text.primary}const d=({color:_,name:C,mainShade:m=500,lightShade:p=300,darkShade:v=700})=>{if(_={..._},!_.main&&_[m]&&(_.main=_[m]),!_.hasOwnProperty("main"))throw new Error(Kr(11,C?` (${C})`:"",m));if(typeof _.main!="string")throw new Error(Kr(12,C?` (${C})`:"",JSON.stringify(_.main)));return Yg(_,"light",p,r),Yg(_,"dark",v,r),_.contrastText||(_.contrastText=c(_.main)),_};let y;return t==="light"?y=b1():t==="dark"&&(y=T1()),Ct({common:{...ws},mode:t,primary:d({color:o,name:"primary"}
635),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:f,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:XT,contrastThreshold:n,getContrastText:c,augmentColor:d,tonalOffset:r,...y},i)}function oI(e){const t={};return Object.entries(e).forEach(r=>{const[i,o]=r;typeof o=="object"&&(t[i]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function sI(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function aI(e){return Math.round(e*1e5)/1e5}const Kg={textTransform:"uppercase"},Qg='"Roboto", "Helvetica", "Arial", sans-serif';function I1(e,t){const{fontFamily:n=Qg,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:u,pxToRem:f,...c}=typeof t=="function"?t(e):t,d=r/14,y=f||(C=>`${C/l*d}rem`),g=(C,m,p,v,S)=>({fontFamily:n,fontWeight:C,fontSize:y(m),lineHeight:p,...n===Qg?{letterSpacing:`${aI(v/m)}em`}:{},...S,...u}),_={h1:g(i,96,1.167,-1.5),h2:g(i,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(s,14,1.75,.4,Kg),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,Kg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ct({htmlFontSize:l,pxToRem:y,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,..._},c,{clone:!1})}const lI=.2,uI=.14,cI=.12;function he(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${lI})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${uI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${cI})`].join(",")}const fI=["none",he(0,2,1,-1,0,1,1,0,0,1,3,0),he(0,3,1,-2,0,2,2,0,0,1,5,0),he(0,3,3,-2,0,3,4,0,0,1,8,0),he(0,2,4,-1,0,4,5,0,0,1,10,0),he(0,3,5,-1,0,5,8,0,0,1,14,0),he(0,3,5,-1,0,6,10,0,0,1,18,0),he(0,4,5,-2,0,7,10,1,0,2,16,1),he(0,5,5,-3,0,8,10,1,0,3,14,2),he(0,5,6,-3,0,9,12,1,0,3,16,2),he(0,6,6,-3,0,10,14,1,0,4,18,3),he(0,6,7,-4,0,11,15,1,0,4,20,3),he(0,7,8,-4,0,12,17,2,0,5,22,4),he(0,7,8,-4,0,13,19,2,0,5,24,4),he(0,7,9,-4,0,14,21,2,0,5,26,4),he(0,8,9,-5,0,15,22,2,0,6,28,5),he(0,8,10,-5,0,16,24,2,0,6,30,5),he(0,8,11,-5,0,17,26,2,0,6,32,5),he(0,9,11,-5,0,18,28,2,0,7,34,6),he(0,9,12,-6,0,19,29,2,0,7,36,6),he(0,10,13,-6,0,20,31,3,0,8,38,7),he(0,10,13,-6,0,21,33,3,0,8,40,7),he(0,10,14,-6,0,22,35,3,0,8,42,7),he(0,11,14,-7,0,23,36,3,0,9,44,8),he(0,11,15,-7,0,24,38,3,0,9,46,8)],dI={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},hI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function qg(e){return`${Math.round(e)}ms`}function pI(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mI(e){const t={...dI,...e.easing},n={...hI,...e.duration};return{getAutoHeightDuration:pI,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(i)?i:[i]).map(f=>`${f} ${typeof s=="string"?s:qg(s)} ${a} ${typeof l=="string"?l:qg(l)}`).join(",")},...e,easing:t,duration:n}}const gI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function yI(e){return un(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function P1(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[s,a]=i[o];!yI(a)||s.startsWith("unstable_")?delete r[s]:un(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 636 637const theme = ${JSON.stringify(t,null,2)}; 638 639theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 640theme.transitions = createTransitions(theme.transitions || {}); 641 642export default theme;`}function ed(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:s={},typography:a={},shape:l,...u}=e;if(e.vars)throw new Error(Kr(20));const f=qh(o),c=Uh(e);let d=Ct(c,{mixins:sI(c.breakpoints,r),palette:f,shadows:fI.slice(),typography:I1(f,a),transitions:mI(s),zIndex:{...gI}});return d=Ct(d,u),d=t.reduce((y,g)=>Ct(y,g),d),d.unstable_sxConfig={...js,...u==null?void 0:u.unstable_sxConfig},d.unstable_sx=function(g){return pr({sx:g,theme:this})},d.toRuntimeSource=P1,d}function td(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const vI=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=td(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function N1(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function A1(e){return e==="dark"?vI:[]}function _I(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,o=qh(t);return{palette:o,opacity:{...N1(o.mode),...n},overlays:r||A1(o.mode),...i}}function SI(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}
642const wI=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],CI=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let o=i;if(i==="class"&&(o=".%s"),i==="data"&&(o="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(o=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return wI(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function EI(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function x(e,t,n){!e[t]&&n&&(e[t]=n)}function Oo(e){return typeof e!="string"||!e.startsWith("hsl")?e:S1(e)}function Sn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Ro(Oo(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). 643To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function kI(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const nn=e=>{try{return e()}catch{}},xI=(e="mui")=>GT(e);function xc(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=_I({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:o,...s}=ed({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:o,opacity:{...N1(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||A1(i)},s}function bI(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",shouldSkipGeneratingVar:s=SI,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...u}=e,f=Object.keys(n)[0],c=r||(n.light&&f!=="light"?"light":f),d=xI(o),{[c]:y,light:g,dark:_,...C}=n,m={...C};let p=y;if((c==="dark"&&!("dark"in n)||c==="light"&&!("light"in n))&&(p=!0),!p)throw new Error(Kr(21,c));const v=xc(m,p,u,c);g&&!m.light&&xc(m,g,void 0,"light"),_&&!m.dark&&xc(m,_,void 0,"dark");let S={defaultColorScheme:c,...v,cssVarPrefix:o,colorSchemeSelector:a,rootSelector:l,getCssVar:d,colorSchemes:m,font:{...oI(v.typography),...v.font},spacing:kI(u.spacing)};Object.keys(S.colorSchemes).forEach(D=>{const h=S.colorSchemes[D].palette,P=F=>{const z=F.split("-"),U=z[1],Q=z[2];return d(F,h[U][Q])};if(h.mode==="light"&&(x(h.common,"background","#fff"),x(h.common,"onBackground","#000")),h.mode==="dark"&&(x(h.common,"background","#000"),x(h.common,"onBackground","#fff")),EI(h,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),h.mode==="light"){x(h.Alert,"errorColor",re(h.error.light,.6)),x(h.Alert,"infoColor",re(h.info.light,.6)),x(h.Alert,"successColor",re(h.success.light,.6)),x(h.Alert,"warningColor",re(h.warning.light,.6)),x(h.Alert,"errorFilledBg",P("palette-error-main")),x(h.Alert,"infoFilledBg",P("palette-info-main")),x(h.Alert,"successFilledBg",P("palette-success-main")),x(h.Alert,"warningFilledBg",P("palette-warning-main")),x(h.Alert,"errorFilledColor",nn(()=>h.getContrastText(h.error.main))),x(h.Alert,"infoFilledColor",nn(()=>h.getContrastText(h.info.main))),x(h.Alert,"successFilledColor",nn(()=>h.getContrastText(h.success.main))),x(h.Alert,"warningFilledColor",nn(()=>h.getContrastText(h.warning.main))),x(h.Alert,"errorStandardBg",ie(h.error.light,.9)),x(h.Alert,"infoStandardBg",ie(h.info.light,.9)),x(h.Alert,"successStandardBg",ie(h.success.light,.9)),x(h.Alert,"warningStandardBg",ie(h.warning.light,.9)),x(h.Alert,"errorIconColor",P("palette-error-main")),x(h.Alert,"infoIconColor",P("palette-info-main")),x(h.Alert,"successIconColor",P("palette-success-main")),x(h.Alert,"warningIconColor",P("palette-warning-main")),x(h.AppBar,"defaultBg",P("palette-grey-100")),x(h.Avatar,"defaultBg",P("palette-grey-400")),x(h.Button,"inheritContainedBg",P("palette-grey-300")),x(h.Button,"inheritContainedHoverBg",P("palette-grey-A100")),x(h.Chip,"defaultBorder",P("palette-grey-400")),x(h.Chip,"defaultAvatarColor",P("palette-grey-700")),x(h.Chip,"defaultIconColor",P("palette-grey-700")),x(h.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),x(h.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),x(h.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),x(h.LinearProgress,"primaryBg",ie(h.primary.main,.62)),x(h.LinearProgress,"secondaryBg",ie(h.secondary.main,.62)),x(h.LinearProgress,"errorBg",ie(h.error.main,.62)),x(h.LinearProgress,"infoBg",ie(h.info.main,.62)),x(h.LinearProgress,"successBg",ie(h.success.main,.62)),x(h.LinearProgress,"warningBg",ie(h.warning.main,.62)),x(h.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.11)`),x(h.Slider,"primaryTrack",ie(h.primary.main,.62)),x(h.Slider,"secondaryTrack",ie(h.secondary.main,.62)),x(h.Slider,"errorTrack",ie(h.error.main,.62)),x(h.Slider,"infoTrack",ie(h.info.main,.62)),x(h.Slider,"successTrack",ie(h.success.main,.62)),x(h.Slider,"warningTrack",ie(h.warning.main,.62));const F=Ea(h.background.default,.8);x(h.SnackbarContent,"bg",F),x(h.SnackbarContent,"color",nn(()=>h.getContrastText(F))),x(h.SpeedDialAction,"fabHoverBg",Ea(h.background.paper,.15)),x(h.StepConnector,"border",P("palette-grey-400")),x(h.StepContent,"border",P("palette-grey-400")),x(h.Switch,"defaultColor",P("palette-common-white")),x(h.Switch,"defaultDisabledColor",P("palette-grey-100")),x(h.Switch,"primaryDisabledColor",ie(h.primary.main,.62)),x(h.Switch,"secondary
643DisabledColor",ie(h.secondary.main,.62)),x(h.Switch,"errorDisabledColor",ie(h.error.main,.62)),x(h.Switch,"infoDisabledColor",ie(h.info.main,.62)),x(h.Switch,"successDisabledColor",ie(h.success.main,.62)),x(h.Switch,"warningDisabledColor",ie(h.warning.main,.62)),x(h.TableCell,"border",ie(Ca(h.divider,1),.88)),x(h.Tooltip,"bg",Ca(h.grey[700],.92))}if(h.mode==="dark"){x(h.Alert,"errorColor",ie(h.error.light,.6)),x(h.Alert,"infoColor",ie(h.info.light,.6)),x(h.Alert,"successColor",ie(h.success.light,.6)),x(h.Alert,"warningColor",ie(h.warning.light,.6)),x(h.Alert,"errorFilledBg",P("palette-error-dark")),x(h.Alert,"infoFilledBg",P("palette-info-dark")),x(h.Alert,"successFilledBg",P("palette-success-dark")),x(h.Alert,"warningFilledBg",P("palette-warning-dark")),x(h.Alert,"errorFilledColor",nn(()=>h.getContrastText(h.error.dark))),x(h.Alert,"infoFilledColor",nn(()=>h.getContrastText(h.info.dark))),x(h.Alert,"successFilledColor",nn(()=>h.getContrastText(h.success.dark))),x(h.Alert,"warningFilledColor",nn(()=>h.getContrastText(h.warning.dark))),x(h.Alert,"errorStandardBg",re(h.error.light,.9)),x(h.Alert,"infoStandardBg",re(h.info.light,.9)),x(h.Alert,"successStandardBg",re(h.success.light,.9)),x(h.Alert,"warningStandardBg",re(h.warning.light,.9)),x(h.Alert,"errorIconColor",P("palette-error-main")),x(h.Alert,"infoIconColor",P("palette-info-main")),x(h.Alert,"successIconColor",P("palette-success-main")),x(h.Alert,"warningIconColor",P("palette-warning-main")),x(h.AppBar,"defaultBg",P("palette-grey-900")),x(h.AppBar,"darkBg",P("palette-background-paper")),x(h.AppBar,"darkColor",P("palette-text-primary")),x(h.Avatar,"defaultBg",P("palette-grey-600")),x(h.Button,"inheritContainedBg",P("palette-grey-800")),x(h.Button,"inheritContainedHoverBg",P("palette-grey-700")),x(h.Chip,"defaultBorder",P("palette-grey-700")),x(h.Chip,"defaultAvatarColor",P("palette-grey-300")),x(h.Chip,"defaultIconColor",P("palette-grey-300")),x(h.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),x(h.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),x(h.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),x(h.LinearProgress,"primaryBg",re(h.primary.main,.5)),x(h.LinearProgress,"secondaryBg",re(h.secondary.main,.5)),x(h.LinearProgress,"errorBg",re(h.error.main,.5)),x(h.LinearProgress,"infoBg",re(h.info.main,.5)),x(h.LinearProgress,"successBg",re(h.success.main,.5)),x(h.LinearProgress,"warningBg",re(h.warning.main,.5)),x(h.Skeleton,"bg",`rgba(${P("palette-text-primaryChannel")} / 0.13)`),x(h.Slider,"primaryTrack",re(h.primary.main,.5)),x(h.Slider,"secondaryTrack",re(h.secondary.main,.5)),x(h.Slider,"errorTrack",re(h.error.main,.5)),x(h.Slider,"infoTrack",re(h.info.main,.5)),x(h.Slider,"successTrack",re(h.success.main,.5)),x(h.Slider,"warningTrack",re(h.warning.main,.5));const F=Ea(h.background.default,.98);x(h.SnackbarContent,"bg",F),x(h.SnackbarContent,"color",nn(()=>h.getContrastText(F))),x(h.SpeedDialAction,"fabHoverBg",Ea(h.background.paper,.15)),x(h.StepConnector,"border",P("palette-grey-600")),x(h.StepContent,"border",P("palette-grey-600")),x(h.Switch,"defaultColor",P("palette-grey-300")),x(h.Switch,"defaultDisabledColor",P("palette-grey-600")),x(h.Switch,"primaryDisabledColor",re(h.primary.main,.55)),x(h.Switch,"secondaryDisabledColor",re(h.secondary.main,.55)),x(h.Switch,"errorDisabledColor",re(h.error.main,.55)),x(h.Switch,"infoDisabledColor",re(h.info.main,.55)),x(h.Switch,"successDisabledColor",re(h.success.main,.55)),x(h.Switch,"warningDisabledColor",re(h.warning.main,.55)),x(h.TableCell,"border",re(Ca(h.divider,1),.68)),x(h.Tooltip,"bg",Ca(h.grey[700],.92))}Sn(h.background,"default"),Sn(h.background,"paper"),Sn(h.common,"background"),Sn(h.common,"onBackground"),Sn(h,"divider"),Object.keys(h).forEach(F=>{const z=h[F];F!=="tonalOffset"&&z&&typeof z=="object"&&(z.main&&x(h[F],"mainChannel",Ro(Oo(z.main))),z.light&&x(h[F],"lightChannel",Ro(Oo(z.light))),z.dark&&x(h[F],"darkChannel",Ro(Oo(z.dark))),z.contrastText&&x(h[F],"contrastTextChannel",Ro(Oo(z.contrastText))),F==="text"&&(Sn(h[F],"primary"),Sn(h[F],"secondary")),F==="action"&&(z.active&&Sn(h[F],"active"),z.selected&&Sn(h[F],"selected")))})}),S=t.reduce((D,h)=>Ct(D,h),S);const w={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:CI(S)}
643,{vars:E,generateThemeVars:k,generateStyleSheets:T}=QT(S,w);return S.vars=E,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([D,h])=>{S[D]=h}),S.generateThemeVars=k,S.generateStyleSheets=T,S.generateSpacing=function(){return d1(u.spacing,Bh(this))},S.getColorSchemeSelector=qT(a),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...js,...u==null?void 0:u.unstable_sxConfig},S.unstable_sx=function(h){return pr({sx:h,theme:this})},S.toRuntimeSource=P1,S}function Xg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qh({...n===!0?{}:n.palette,mode:t})})}function Au(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...s}=e,a=o||"light",l=i==null?void 0:i[a],u={...i,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return ed(e,...t);let f=n;"palette"in e||u[a]&&(u[a]!==!0?f=u[a].palette:a==="dark"&&(f={mode:"dark"}));const c=ed({...e,palette:f},...t);return c.defaultColorScheme=a,c.colorSchemes=u,c.palette.mode==="light"&&(c.colorSchemes.light={...u.light!==!0&&u.light,palette:c.palette},Xg(c,"dark",u.dark)),c.palette.mode==="dark"&&(c.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:c.palette},Xg(c,"light",u.light)),c}return!n&&!("light"in u)&&a==="light"&&(u.light=!0),bI({...s,colorSchemes:u,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const R1=Au();function O1(){const e=p1(R1);return e[In]||e}function TI(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Xh=e=>TI(e)&&e!=="classes",Je=uT({themeId:In,defaultTheme:R1,rootShouldForwardProp:Xh});function Jg({theme:e,...t}){const n=In in e?e[In]:void 0;return A.jsx(k1,{...t,themeId:n?In:void 0,theme:n||e})}const ka={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:II}=HT({themeId:In,theme:()=>Au({cssVariables:!0}),colorSchemeStorageKey:ka.colorSchemeStorageKey,modeStorageKey:ka.modeStorageKey,defaultColorScheme:{light:ka.defaultLightColorScheme,dark:ka.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:I1(e.palette,e.typography)};return t.unstable_sx=function(r){return pr({sx:r,theme:this})},t}}),PI=II;function NI({theme:e,...t}){return typeof e=="function"?A.jsx(Jg,{theme:e,...t}):"colorSchemes"in(In in e?e[In]:e)?A.jsx(PI,{theme:e,...t}):A.jsx(Jg,{theme:e,...t})}function AI(){return m1}const ro=zT;function Er(e){return $T(e)}function RI(e){return jn("MuiSvgIcon",e)}gn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const OI=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Xe(t)}`,`fontSize${Xe(n)}`]};return Cr(i,RI,r)},MI=Je("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Xe(n.color)}`],t[`fontSize${Xe(n.fontSize)}`]]}})(ro(({theme:e})=>{var t,n,r,i,o,s,a,l,u,f,c,d,y,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=e.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,_])=>_&&_.main).map(([_])=>{var C,m;return{props:{color:_},style:{color:(m=(C=(e.vars??e).palette)==null?void 0:C[_])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(c=(e.vars??e).palette)==null?void 0:c.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(g=(y=(e.vars??e).palette)==null?void 0:y.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),El=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:c,viewBox:d="0 0 24 24",...y}=r,g=b.isValidElement(i)&&i.type==="svg",_={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:d,hasSvgAsChild:g},C={};f||(C.viewBox=d);const m=OI(_);return A.jsxs(MI,{as:a,className:ke(m.root,o),focusable:"false",color:u,"aria-hidden":c?void 0:!0,role:c?"img":void 0,ref:n,...C,...y,...g&&i.props,ownerState:_,children:[g?i.props.children:i,c?A.jsx("title",{children:c}):null]})});El&&(El.muiName="SvgIcon");function Jh(e,t){function n(r,i){return A.jsx(El,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=El.muiName,b.memo(b.forwardRef(n))}function DI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}
vendor: 1,139 bytes, line 643
643function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},nd(e,t)}function LI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nd(e,t)}const Zg=Kn.createContext(null);function FI(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zh(e,t){var n=function(o){return t&&b.isValidElement(o)?t(o):o},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function $I(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];a[r[l][s]]=n(u)}a[l]=n(l)}for(s=0;s<i.length;s++)a[i[s]]=n(i[s]);return a}function Mr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function zI(e,t){return Zh(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Mr(n,"appear",e),enter:Mr(n,"enter",e),exit:Mr(n,"exit",e)})})}function BI(e,t,n){var r=Zh(e.children),i=$I(t,r);
643return Object.keys(i).forEach(function(o){var s=i[o];if(b.isValidElement(s)){var a=o in t,l=o in r,u=t[o],f=b.isValidElement(u)&&!u.props.in;l&&(!a||f)?i[o]=b.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Mr(s,"exit",e),enter:Mr(s,"enter",e)}):!l&&a&&!f?i[o]=b.cloneElement(s,{in:!1}):l&&a&&b.isValidElement(u)&&(i[o]=b.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:Mr(s,"exit",e),enter:Mr(s,"enter",e)}))}}),i}var jI=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},UI={component:"div",childFactory:function(t){return t}},ep=function(e){LI(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=o.handleExited.bind(FI(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var s=o.children,a=o.handleExited,l=o.firstRender;return{children:l?zI(i,a):BI(i,s,a),firstRender:!1}},n.handleExited=function(i,o){var s=Zh(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(a){var l=Sl({},a.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,s=i.childFactory,a=DI(i,["component","childFactory"]),l=this.state.contextValue,u=jI(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,o===null?Kn.createElement(Zg.Provider,{value:l},u):Kn.createElement(Zg.Provider,{value:l},Kn.createElement(o,a,u))},t}(Kn.Component);ep.propTypes={};ep.defaultProps=UI;function WI(e){return jn("MuiPaper",e)}gn("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const VI=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Cr(o,WI,i)},HI=Je("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(ro(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),M1=b.forwardRef(function(t,n){var y;const r=Er({props:t,name:"MuiPaper"}),i=O1(),{className:o,component:s="div",elevation:a=1,square:l=!1,variant:u="elevation",...f}=r,c={...r,component:s,elevation:a,square:l,variant:u},d=VI(c);return A.jsx(HI,{as:s,ownerState:c,className:ke(d.root,o),ref:n,...f,style:{...u==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[a],...i.vars&&{"--Paper-overlay":(y=i.vars.overlays)==null?void 0:y[a]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Ss("#fff",td(a))}, ${Ss("#fff",td(a))})`}},...f.style}})});function GI(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:s,...a}=t,{component:l,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...c}=o,d=u[e]||r,y=PT(f[e],i),{props:{component:g,..._},internalRef:C}=IT({className:n,...a,externalForwardedProps:void 0,externalSlotProps:y}),m=Zf(C,y==null?void 0:y.ref,t.ref),p=g,v=bT(d,{...e==="root",...!u[e]&&s,..._,...p&&{as:p},ref:m},i);return[d,v]}class kl{constructor(){co(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new kl}static use(){const t=w1(kl.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=KI(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function YI(){return kl.use()}function KI(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function QI(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:u}=e,[f,c]=b.useState(!1),d=ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},g=ke(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&c(!0),b.useEffect(()=>{if(!a&&l!=null){const _=setTimeout(l,u);return()=>{clearTimeout(_)}}},[l,a,u]),A.jsx("span",{className:d,style:y,children:A.jsx("span",{className:g})})}const Rt=gn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rd=550,qI=80,XI=Fh` 644 0% { 645 transform: scale(0); 646 opacity: 0.1; 647 } 648 649 100% { 650 transform: scale(1); 651 opacity: 0.3; 652 } 653`,JI=Fh` 654 0% { 655 opacity: 1; 656 } 657 658 100% { 659 opacity: 0; 660 } 661`,ZI=Fh` 662 0% { 663 transform: scale(1); 664 } 665 666 50% { 667 transform: scale(0.92); 668 } 669 670 100% { 671 transform: scale(1); 672 } 673`,eP=Je("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),tP=Je(QI,{name:"MuiTouchRipple",slot:"Ripple"})` 674 opacity: 0; 675 position: absolute; 676 677 &.${Rt.rippleVisible} { 678 opacity: 0.3; 679 transform: scale(1); 680 animation-name: ${XI}; 681 animation-duration: ${rd}ms; 682 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 683 } 684 685 &.${Rt.ripplePulsate} { 686 animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; 687 } 688 689 & .${Rt.child} { 690 opacity: 1; 691 display: block; 692 width: 100%; 693 height: 100%; 694 border-radius: 50%; 695 background-color: currentColor; 696 } 697 698 & .${Rt.childLeaving} { 699 opacity: 0; 700 animation-name: ${JI}; 701 animation-duration: ${rd}ms; 702 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 703 } 704 705 & .${Rt.childPulsate} { 706 position: absolute; 707 /* @noflip */ 708 left: 0px; 709 top: 0; 710 animation-name: ${ZI}; 711 animation-duration: 2500ms; 712 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 713 animation-iteration-count: infinite; 714 animation-delay: 200ms; 715 } 716`,nP=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s,...a}=r,[l,u]=b.useState([]),f=b.useRef(0),c=b.useRef(null);b.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const d=b.useRef(!1),y=kT(),g=b.useRef(null),_=b.useRef(null),C=b.useCallback(S=>{const{pulsate:w,rippleX:E,rippleY:k,rippleSize:T,cb:D}=S;u(h=>[...h,A.jsx(tP,{classes:{ripple:ke(o.ripple,Rt.ripple),rippleVisible:ke(o.rippleVisible,Rt.rippleVisible),ripplePulsate:ke(o.ripplePulsate,Rt.ripplePulsate),
716child:ke(o.child,Rt.child),childLeaving:ke(o.childLeaving,Rt.childLeaving),childPulsate:ke(o.childPulsate,Rt.childPulsate)},timeout:rd,pulsate:w,rippleX:E,rippleY:k,rippleSize:T},f.current)]),f.current+=1,c.current=D},[o]),m=b.useCallback((S={},w={},E=()=>{})=>{const{pulsate:k=!1,center:T=i||w.pulsate,fakeElement:D=!1}=w;if((S==null?void 0:S.type)==="mousedown"&&d.current){d.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(d.current=!0);const h=D?null:_.current,P=h?h.getBoundingClientRect():{width:0,height:0,left:0,top:0};let F,z,U;if(T||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)F=Math.round(P.width/2),z=Math.round(P.height/2);else{const{clientX:Q,clientY:ge}=S.touches&&S.touches.length>0?S.touches[0]:S;F=Math.round(Q-P.left),z=Math.round(ge-P.top)}if(T)U=Math.sqrt((2*P.width**2+P.height**2)/3),U%2===0&&(U+=1);else{const Q=Math.max(Math.abs((h?h.clientWidth:0)-F),F)*2+2,ge=Math.max(Math.abs((h?h.clientHeight:0)-z),z)*2+2;U=Math.sqrt(Q**2+ge**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{C({pulsate:k,rippleX:F,rippleY:z,rippleSize:U,cb:E})},y.start(qI,()=>{g.current&&(g.current(),g.current=null)})):C({pulsate:k,rippleX:F,rippleY:z,rippleSize:U,cb:E})},[i,C,y]),p=b.useCallback(()=>{m({},{pulsate:!0})},[m]),v=b.useCallback((S,w)=>{if(y.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,y.start(0,()=>{v(S,w)});return}g.current=null,u(E=>E.length>0?E.slice(1):E),c.current=w},[y]);return b.useImperativeHandle(n,()=>({pulsate:p,start:m,stop:v}),[p,m,v]),A.jsx(eP,{className:ke(Rt.root,o.root,s),ref:_,...a,children:A.jsx(ep,{component:null,exit:!0,children:l})})});function rP(e){return jn("MuiButtonBase",e)}const iP=gn("MuiButtonBase",["root","disabled","focusVisible"]),oP=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Cr({root:["root",t&&"disabled",n&&"focusVisible"]},rP,i);return n&&r&&(s.root+=` ${r}`),s},sP=Je("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iP.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),aP=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:y,LinkComponent:g="a",onBlur:_,onClick:C,onContextMenu:m,onDragLeave:p,onFocus:v,onFocusVisible:S,onKeyDown:w,onKeyUp:E,onMouseDown:k,onMouseLeave:T,onMouseUp:D,onTouchEnd:h,onTouchMove:P,onTouchStart:F,tabIndex:z=0,TouchRippleProps:U,touchRippleRef:Q,type:ge,...Te}=r,R=b.useRef(null),O=YI(),$=Zf(O.ref,Q),[W,oe]=b.useState(!1);u&&W&&oe(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{oe(!0),R.current.focus()}}),[]);const en=O.shouldMount&&!f&&!u;b.useEffect(()=>{W&&d&&!f&&O.pulsate()},[f,d,W,O]);const Pt=wn(O,"start",k,c),Nt=wn(O,"stop",m,c),At=wn(O,"stop",p,c),vn=wn(O,"stop",D,c),ju=wn(O,"stop",j=>{W&&j.preventDefault(),T&&T(j)},c),Uu=wn(O,"start",F,c),qs=wn(O,"stop",h,c),Xs=wn(O,"stop",P,c),Js=wn(O,"stop",j=>{zg(j.target)||oe(!1),_&&_(j)},!1),Zs=Ha(j=>{R.current||(R.current=j.currentTarget),zg(j.target)&&(oe(!0),S&&S(j)),v&&v(j)}),ao=()=>{const j=R.current;return l&&l!=="button"&&!(j.tagName==="A"&&j.href)},ea=Ha(j=>{d&&!j.repeat&&W&&j.key===" "&&O.stop(j,()=>{O.start(j)}),j.target===j.currentTarget&&ao()&&j.key===" "&&j.preventDefault(),w&&w(j),j.target===j.currentTarget&&ao()&&j.key==="Enter"&&!u&&(j.preventDefault(),C&&C(j))}),lo=Ha(j=>{d&&j.key===" "&&W&&!j.defaultPrevented&&O.stop(j,()=>{O.pulsate(j)}),E&&E(j),C&&j.target===j.currentTarget&&ao()&&j.key===" "&&!j.defaultPrevented&&C(j)});let ze=l;ze==="button"&&(Te.href||Te.to)&&(ze=g);const jt={};ze==="button"?(jt.type=ge===void 0?"button":ge,jt.disabled=u):(!Te.href&&!Te.to&&(jt.role="button"),u&&(jt["aria-disabled"]=u));const xr=Zf(n,R),ta={...r,centerRipple:o,component:l,disabled:u,disableRipple:f,disableTouchRipple:c,focusRipple:d,tabIndex:z,focusVisible:W},na=oP(ta);return A.jsxs(sP,{as:ze,className:ke(na.root,a),ownerState:ta,onBlur:Js,onClick:C,onContextMenu:Nt,onFocus:Zs,onKeyDown:ea,onKeyUp:lo,onMouseDown:Pt,onMouseLeave:ju,onMouseUp:vn,onDragLeave:At,onTouchEnd:qs,onTouchMove:Xs,onTouchStart:Uu,ref:xr,tabIndex:u?-1:z,type:ge,...jt,...Te,children:[s,en?A.
716jsx(nP,{ref:$,center:o,...U}):null]})});function wn(e,t,n,r=!1){return Ha(i=>(n&&n(i),r||e[t](i),!0))}function lP(e){return typeof e.main=="string"}function uP(e,t=[]){if(!lP(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function id(e=[]){return([,t])=>t&&uP(t,e)}function cP(e){return jn("MuiTypography",e)}gn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const fP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dP=AI(),hP=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Xe(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Cr(a,cP,s)},pP=Je("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Xe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(ro(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(id()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Xe(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),ey={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ki=b.forwardRef(function(t,n){const{color:r,...i}=Er({props:t,name:"MuiTypography"}),o=!fP[r],s=dP({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:u,gutterBottom:f=!1,noWrap:c=!1,paragraph:d=!1,variant:y="body1",variantMapping:g=ey,..._}=s,C={...s,align:a,color:r,className:l,component:u,gutterBottom:f,noWrap:c,paragraph:d,variant:y,variantMapping:g},m=u||(d?"p":g[y]||ey[y])||"span",p=hP(C);return A.jsx(pP,{as:m,ref:n,className:ke(p.root,l),..._,ownerState:C,style:{...a!=="inherit"&&{"--Typography-textAlign":a},..._.style}})});function D1({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const mP=b.createContext(void 0);function tp(){return b.useContext(mP)}const gP=gn("MuiBox",["root"]),yP=Au(),np=iT({themeId:In,defaultTheme:yP,defaultClassName:gP.root,generateClassName:g1.generate});function vP(e){return jn("PrivateSwitchBase",e)}gn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const _P=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Xe(i)}`],input:["input"]};return Cr(o,vP,t)},SP=Je(aP)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),wP=Je("input",{shouldForwardProp:Xh})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),CP=b.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:f=!1,icon:c,id:d,inputProps:y,inputRef:g,name:_,onBlur:C,onChange:m,onFocus:p,readOnly:v,required:S=!1,tabIndex:w,type:E,value:k,...T}=t,[D,h]=wT({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),P=tp(),F=O=>{p&&p(O),P&&P.onFocus&&P.onFocus(O)},z=O=>{C&&C(O),P&&P.onBlur&&P.onBlur(O)},U=O=>
716{if(O.nativeEvent.defaultPrevented)return;const $=O.target.checked;h($),m&&m(O,$)};let Q=l;P&&typeof Q>"u"&&(Q=P.disabled);const ge=E==="checkbox"||E==="radio",Te={...t,checked:D,disabled:Q,disableFocusRipple:u,edge:f},R=_P(Te);return A.jsxs(SP,{component:"span",className:ke(R.root,s),centerRipple:!0,focusRipple:!u,disabled:Q,tabIndex:null,role:void 0,onFocus:F,onBlur:z,ownerState:Te,ref:n,...T,children:[A.jsx(wP,{autoFocus:r,checked:i,defaultChecked:a,className:R.input,disabled:Q,id:ge?d:void 0,name:_,onChange:U,readOnly:v,ref:g,required:S,ownerState:Te,tabIndex:w,type:E,...E==="checkbox"&&k===void 0?{}:{value:k},...y}),D?o:c]})}),EP=Jh(A.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),kP=Jh(A.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),xP=Jh(A.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function bP(e){return jn("MuiCheckbox",e)}const bc=gn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),TP=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Xe(r)}`,`size${Xe(i)}`]},s=Cr(o,bP,t);return{...t,...s}},IP=Je(CP,{shouldForwardProp:e=>Xh(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Xe(n.size)}`],n.color!=="default"&&t[`color${Xe(n.color)}`]]}})(ro(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ss(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(id()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ss(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(id()).map(([t])=>({props:{color:t},style:{[`&.${bc.checked}, &.${bc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${bc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),PP=A.jsx(kP,{}),NP=A.jsx(EP,{}),AP=A.jsx(xP,{}),RP=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiCheckbox"}),{checkedIcon:i=PP,color:o="primary",icon:s=NP,indeterminate:a=!1,indeterminateIcon:l=AP,inputProps:u,size:f="medium",disableRipple:c=!1,className:d,...y}=r,g=a?l:s,_=a?l:i,C={...r,disableRipple:c,color:o,indeterminate:a,size:f},m=TP(C);return A.jsx(IP,{type:"checkbox",inputProps:{"data-indeterminate":a,...u},icon:b.cloneElement(g,{fontSize:g.props.fontSize??f}),checkedIcon:b.cloneElement(_,{fontSize:_.props.fontSize??f}),ownerState:C,ref:n,className:ke(m.root,d),disableRipple:c,...y,classes:m})});function OP(e){return jn("MuiFormControlLabel",e)}const Mo=gn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),MP=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Xe(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Cr(s,OP,t)},DP=Je("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Mo.label}`]:t.label},t.root,t[`labelPlacement${Xe(n.labelPlacement)}`]]}})(ro(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Mo.disabled}`]:{cursor:"default"},[`& .${Mo.label}`]:{[`&.${Mo.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}
716))),LP=Je("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(ro(({theme:e})=>({[`&.${Mo.error}`]:{color:(e.vars||e).palette.error.main}}))),FP=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:s={},control:a,disabled:l,disableTypography:u,inputRef:f,label:c,labelPlacement:d="end",name:y,onChange:g,required:_,slots:C={},slotProps:m={},value:p,...v}=r,S=tp(),w=l??a.props.disabled??(S==null?void 0:S.disabled),E=_??a.props.required,k={disabled:w,required:E};["checked","name","onChange","value","inputRef"].forEach(Q=>{typeof a.props[Q]>"u"&&typeof r[Q]<"u"&&(k[Q]=r[Q])});const T=D1({props:r,muiFormControl:S,states:["error"]}),D={...r,disabled:w,labelPlacement:d,required:E,error:T.error},h=MP(D),P={slots:C,slotProps:{...s,...m}},[F,z]=GI("typography",{elementType:ki,externalForwardedProps:P,ownerState:D});let U=c;return U!=null&&U.type!==ki&&!u&&(U=A.jsx(F,{component:"span",...z,className:ke(h.label,z==null?void 0:z.className),children:U})),A.jsxs(DP,{className:ke(h.root,o),ownerState:D,ref:n,...v,children:[b.cloneElement(a,k),E?A.jsxs("div",{children:[U,A.jsxs(LP,{ownerState:D,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}):U]})});function $P(e){return jn("MuiFormGroup",e)}gn("MuiFormGroup",["root","row","error"]);const zP=e=>{const{classes:t,row:n,error:r}=e;return Cr({root:["root",n&&"row",r&&"error"]},$P,t)},BP=Je("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),jP=b.forwardRef(function(t,n){const r=Er({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1,...s}=r,a=tp(),l=D1({props:r,muiFormControl:a,states:["error"]}),u={...r,row:o,error:l.error},f=zP(u);return A.jsx(BP,{className:ke(f.root,i),ownerState:u,ref:n,...s})});var ty={};/** 717 * @license 718 * Copyright 2017 Google LLC 719 * 720 * Licensed under the Apache License, Version 2.0 (the "License"); 721 * you may not use this file except in compliance with the License. 722 * You may obtain a copy of the License at 723 * 724 * http://www.apache.org/licenses/LICENSE-2.0 725 * 726 * Unless required by applicable law or agreed to in writing, software 727 * distributed under the License is distributed on an "AS IS" BASIS, 728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 729 * See the License for the specific language governing permissions and 730 * limitations under the License. 731 */const L1={NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"};/** 732 * @license 733 * Copyright 2017 Google LLC 734 * 735 * Licensed under the Apache License, Version 2.0 (the "License"); 736 * you may not use this file except in compliance with the License. 737 * You may obtain a copy of the License at 738 * 739 * http://www.apache.org/licenses/LICENSE-2.0 740 * 741 * Unless required by applicable law or agreed to in writing, software 742 * distributed under the License is distributed on an "AS IS" BASIS, 743 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 744 * See the License for the specific language governing permissions and 745 * limitations under the License. 746 */const N=function(e,t){if(!e)throw io(t)},io=function(e){return new Error("Firebase Database ("+L1.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)};/** 747 * @license 748 * Copyright 2017 Google LLC 749 * 750 * Licensed under the Apache License, Version 2.0 (the "License"); 751 * you may not use this file except in compliance with the License. 752 * You may obtain a copy of the License at 753 * 754 * http://www.apache.org/licenses/LICENSE-2.0 755 * 756 * Unless required by applicable law or agreed to in writing, software 757 * distributed under the License is distributed on an "AS IS" BASIS, 758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 759 * See the License for the specific language governing permissions and 760 * limitations under the License. 761 */const F1=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)===55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},UP=function(e){const t=[];let n=0,r=0;for(;n<e.length;){const i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=e[n++];t[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=e[n++],s=e[n++],a=e[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;t[r++]=String.fromCharCode(55296+(l>>10)),t[r++]=String.fromCharCode(56320+(l&1023))}else{const o=e[n++],s=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return t.join("")},rp={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:typeof atob=="function",encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<e.length;i+=3){const o=e[i],s=i+1<e.length,a=s?e[i+1]:0,l=i+2<e.length,u=l?e[i+2]:0,f=o>>2,c=(o&3)<<4|a>>4;let d=(a&15)<<2|u>>6,y=u&63;l||(y=64,s||(d=64)),r.push(n[f],n[c],n[d],n[y])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(F1(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):UP(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<e.length;){const o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0;++i;const u=i<e.length?n[e.charAt(i)]:64;++i;const c=i<e.length?n[e.charAt(i)]:64;if(++i,o==null||a==null||u==null||c==null)throw new WP;const d=o<<2|a>>4;if(r.push(d),u!==64){const y=a<<4&240|u>>2;if(r.push(y),c!==64){const g=u<<6&192|c;r.push(g)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};
761class WP extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const $1=function(e){const t=F1(e);return rp.encodeByteArray(t,!0)},xl=function(e){return $1(e).replace(/\./g,"")},od=function(e){try{return rp.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 762 * @license 763 * Copyright 2017 Google LLC 764 * 765 * Licensed under the Apache License, Version 2.0 (the "License"); 766 * you may not use this file except in compliance with the License. 767 * You may obtain a copy of the License at 768 * 769 * http://www.apache.org/licenses/LICENSE-2.0 770 * 771 * Unless required by applicable law or agreed to in writing, software 772 * distributed under the License is distributed on an "AS IS" BASIS, 773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 774 * See the License for the specific language governing permissions and 775 * limitations under the License. 776 */function VP(e){return z1(void 0,e)}function z1(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:const n=t;return new Date(n.getTime());case Object:e===void 0&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)!t.hasOwnProperty(n)||!HP(n)||(e[n]=z1(e[n],t[n]));return e}function HP(e){return e!=="__proto__"}/** 777 * @license 778 * Copyright 2022 Google LLC 779 * 780 * Licensed under the Apache License, Version 2.0 (the "License"); 781 * you may not use this file except in compliance with the License. 782 * You may obtain a copy of the License at 783 * 784 * http://www.apache.org/licenses/LICENSE-2.0 785 * 786 * Unless required by applicable law or agreed to in writing, software 787 * distributed under the License is distributed on an "AS IS" BASIS, 788 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 789 * See the License for the specific language governing permissions and 790 * limitations under the License. 791 */function GP(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 792 * @license 793 * Copyright 2022 Google LLC 794 * 795 * Licensed under the Apache License, Version 2.0 (the "License"); 796 * you may not use this file except in compliance with the License. 797 * You may obtain a copy of the License at 798 * 799 * http://www.apache.org/licenses/LICENSE-2.0 800 * 801 * Unless required by applicable law or agreed to in writing, software 802 * distributed under the License is distributed on an "AS IS" BASIS, 803 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 804 * See the License for the specific language governing permissions and 805 * limitations under the License. 806 */const YP=()=>GP().__FIREBASE_DEFAULTS__,KP=()=>{if(typeof process>"u"||typeof ty>"u")return;const e=ty.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},QP=()=>{if(typeof document>"u")return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=e&&od(e[1]);return t&&JSON.parse(t)},B1=()=>{try{return YP()||KP()||QP()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},qP=e=>{var t,n;return(n=(t=B1())===null||t===void 0?void 0:t.emulatorHosts)===null||n===void 0?void 0:n[e]},XP=e=>{const t=qP(e);if(!t)return;const n=t.lastIndexOf(":");if(n<=0||n+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const r=parseInt(t.substring(n+1),10);return t[0]==="["?[t.substring(1,n-1),r]:[t.substring(0,n),r]},j1=()=>{var e;return(e=B1())===null||e===void 0?void 0:e.config};/** 807 * @license 808 * Copyright 2017 Google LLC 809 * 810 * Licensed under the Apache License, Version 2.0 (the "License"); 811 * you may not use this file except in compliance with the License. 812 * You may obtain a copy of the License at 813 * 814 * http://www.apache.org/licenses/LICENSE-2.0 815 * 816 * Unless required by applicable law or agreed to in writing, software 817 * distributed under the License is distributed on an "AS IS" BASIS, 818 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 819 * See the License for the specific language governing permissions and 820 * limitations under the License. 821 */class ip{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,n)=>{this.resolve=t,this.reject=n})}wrapCallback(t){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(n):t(n,r))}}}/** 822 * @license 823 * Copyright 2021 Google LLC 824 * 825 * Licensed under the Apache License, Version 2.0 (the "License");
826 * you may not use this file except in compliance with the License. 827 * You may obtain a copy of the License at 828 * 829 * http://www.apache.org/licenses/LICENSE-2.0 830 * 831 * Unless required by applicable law or agreed to in writing, software 832 * distributed under the License is distributed on an "AS IS" BASIS, 833 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 834 * See the License for the specific language governing permissions and 835 * limitations under the License. 836 */function JP(e,t){if(e.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},r=t||"demo-project",i=e.iat||0,o=e.sub||e.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:o,user_id:o,firebase:{sign_in_provider:"custom",identities:{}}},e);return[xl(JSON.stringify(n)),xl(JSON.stringify(s)),""].join(".")}/** 837 * @license 838 * Copyright 2017 Google LLC 839 * 840 * Licensed under the Apache License, Version 2.0 (the "License"); 841 * you may not use this file except in compliance with the License. 842 * You may obtain a copy of the License at 843 * 844 * http://www.apache.org/licenses/LICENSE-2.0 845 * 846 * Unless required by applicable law or agreed to in writing, software 847 * distributed under the License is distributed on an "AS IS" BASIS, 848 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 849 * See the License for the specific language governing permissions and 850 * limitations under the License. 851 */function ZP(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function U1(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(ZP())}function eN(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function W1(){return L1.NODE_ADMIN===!0}function tN(){try{return typeof indexedDB=="object"}catch{return!1}}function nN(){return new Promise((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;t(((o=i.error)===null||o===void 0?void 0:o.message)||"")}}catch(n){t(n)}})}/** 852 * @license 853 * Copyright 2017 Google LLC 854 * 855 * Licensed under the Apache License, Version 2.0 (the "License"); 856 * you may not use this file except in compliance with the License. 857 * You may obtain a copy of the License at 858 * 859 * http://www.apache.org/licenses/LICENSE-2.0 860 * 861 * Unless required by applicable law or agreed to in writing, software 862 * distributed under the License is distributed on an "AS IS" BASIS, 863 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 864 * See the License for the specific language governing permissions and 865 * limitations under the License. 866 */const rN="FirebaseError";
866class Us extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=rN,Object.setPrototypeOf(this,Us.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,V1.prototype.create)}}class V1{constructor(t,n,r){this.service=t,this.serviceName=n,this.errors=r}create(t,...n){const r=n[0]||{},i=`${this.service}/${t}`,o=this.errors[t],s=o?iN(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new Us(i,a,r)}}function iN(e,t){return e.replace(oN,(n,r)=>{const i=t[r];return i!=null?String(i):`<${r}?>`})}const oN=/\{\$([^}]+)}/g;/** 867 * @license 868 * Copyright 2017 Google LLC 869 * 870 * Licensed under the Apache License, Version 2.0 (the "License"); 871 * you may not use this file except in compliance with the License. 872 * You may obtain a copy of the License at 873 * 874 * http://www.apache.org/licenses/LICENSE-2.0 875 * 876 * Unless required by applicable law or agreed to in writing, software 877 * distributed under the License is distributed on an "AS IS" BASIS, 878 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 879 * See the License for the specific language governing permissions and 880 * limitations under the License. 881 */function Cs(e){return JSON.parse(e)}function Le(e){return JSON.stringify(e)}/** 882 * @license 883 * Copyright 2017 Google LLC 884 * 885 * Licensed under the Apache License, Version 2.0 (the "License"); 886 * you may not use this file except in compliance with the License. 887 * You may obtain a copy of the License at 888 * 889 * http://www.apache.org/licenses/LICENSE-2.0 890 * 891 * Unless required by applicable law or agreed to in writing, software 892 * distributed under the License is distributed on an "AS IS" BASIS, 893 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 894 * See the License for the specific language governing permissions and 895 * limitations under the License. 896 */const H1=function(e){let t={},n={},r={},i="";try{const o=e.split(".");t=Cs(od(o[0])||""),n=Cs(od(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch{}return{header:t,claims:n,data:r,signature:i}},sN=function(e){const t=H1(e),n=t.claims;return!!n&&typeof n=="object"&&n.hasOwnProperty("iat")},aN=function(e){const t=H1(e).claims;return typeof t=="object"&&t.admin===!0};/** 897 * @license 898 * Copyright 2017 Google LLC 899 * 900 * Licensed under the Apache License, Version 2.0 (the "License"); 901 * you may not use this file except in compliance with the License. 902 * You may obtain a copy of the License at 903 * 904 * http://www.apache.org/licenses/LICENSE-2.0 905 * 906 * Unless required by applicable law or agreed to in writing, software 907 * distributed under the License is distributed on an "AS IS" BASIS, 908 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 909 * See the License for the specific language governing permissions and 910 * limitations under the License. 911 */function yn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qi(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]}function ny(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function bl(e,t,n){const r={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t.call(n,e[i],i,e));return r}function sd(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const o=e[i],s=t[i];if(ry(o)&&ry(s)){if(!sd(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function ry(e){return e!==null&&typeof e=="object"}/** 912 * @license 913 * Copyright 2017 Google LLC 914 * 915 * Licensed under the Apache License, Version 2.0 (the "License"); 916 * you may not use this file except in compliance with the License. 917 * You may obtain a copy of the License at 918 * 919 * http://www.apache.org/licenses/LICENSE-2.0 920 * 921 * Unless required by applicable law or agreed to in writing, software 922 * distributed under the License is distributed on an "AS IS" BASIS, 923 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 924 * See the License for the specific language governing permissions and 925 * limitations under the License. 926 */function lN(e){const t=[];for(const[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(i=>
vendor: 4,096 bytes, lines 926-960
926{t.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):t.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return t.length?"&"+t.join("&"):""}/** 927 * @license 928 * Copyright 2017 Google LLC 929 * 930 * Licensed under the Apache License, Version 2.0 (the "License"); 931 * you may not use this file except in compliance with the License. 932 * You may obtain a copy of the License at 933 * 934 * http://www.apache.org/licenses/LICENSE-2.0 935 * 936 * Unless required by applicable law or agreed to in writing, software 937 * distributed under the License is distributed on an "AS IS" BASIS, 938 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 939 * See the License for the specific language governing permissions and 940 * limitations under the License. 941 */class uN{constructor(){this.chain_=[],this.buf_=[],this.W_=[],this.pad_=[],this.inbuf_=0,this.total_=0,this.blockSize=512/8,this.pad_[0]=128;for(let t=1;t<this.blockSize;++t)this.pad_[t]=0;this.reset()}reset(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0}compress_(t,n){n||(n=0);const r=this.W_;if(typeof t=="string")for(let c=0;c<16;c++)r[c]=t.charCodeAt(n)<<24|t.charCodeAt(n+1)<<16|t.charCodeAt(n+2)<<8|t.charCodeAt(n+3),n+=4;else for(let c=0;c<16;c++)r[c]=t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3],n+=4;for(let c=16;c<80;c++){const d=r[c-3]^r[c-8]^r[c-14]^r[c-16];r[c]=(d<<1|d>>>31)&4294967295}let i=this.chain_[0],o=this.chain_[1],s=this.chain_[2],a=this.chain_[3],l=this.chain_[4],u,f;for(let c=0;c<80;c++){c<40?c<20?(u=a^o&(s^a),f=1518500249):(u=o^s^a,f=1859775393):c<60?(u=o&s|a&(o|s),f=2400959708):(u=o^s^a,f=3395469782);const d=(i<<5|i>>>27)+u+l+f+r[c]&4294967295;l=a,a=s,s=(o<<30|o>>>2)&4294967295,o=i,i=d}this.chain_[0]=this.chain_[0]+i&4294967295,this.chain_[1]=this.chain_[1]+o&4294967295,this.chain_[2]=this.chain_[2]+s&4294967295,this.chain_[3]=this.chain_[3]+a&4294967295,this.chain_[4]=this.chain_[4]+l&4294967295}update(t,n){if(t==null)return;n===void 0&&(n=t.length);const r=n-this.blockSize;let i=0;const o=this.buf_;let s=this.inbuf_;for(;i<n;){if(s===0)for(;i<=r;)this.compress_(t,i),i+=this.blockSize;if(typeof t=="string"){for(;i<n;)if(o[s]=t.charCodeAt(i),++s,++i,s===this.blockSize){this.compress_(o),s=0;break}}else for(;i<n;)if(o[s]=t[i],++s,++i,s===this.blockSize){this.compress_(o),s=0;break}}this.inbuf_=s,this.total_+=n}digest(){const t=[];let n=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(let i=this.blockSize-1;i>=56;i--)this.buf_[i]=n&255,n/=256;this.compress_(this.buf_);let r=0;for(let i=0;i<5;i++)for(let o=24;o>=0;o-=8)t[r]=this.chain_[i]>>o&255,++r;return t}}function G1(e,t){return`${e} failed: ${t} argument `}/** 942 * @license 943 * Copyright 2017 Google LLC 944 * 945 * Licensed under the Apache License, Version 2.0 (the "License"); 946 * you may not use this file except in compliance with the License. 947 * You may obtain a copy of the License at 948 * 949 * http://www.apache.org/licenses/LICENSE-2.0 950 * 951 * Unless required by applicable law or agreed to in writing, software 952 * distributed under the License is distributed on an "AS IS" BASIS, 953 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 954 * See the License for the specific language governing permissions and 955 * limitations under the License. 956 */const cN=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i>=55296&&i<=56319){const o=i-55296;r++,N(r<e.length,"Surrogate pair missing trail surrogate.");const s=e.charCodeAt(r)-56320;i=65536+(o<<10)+s}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},Ru=function(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t};/** 957 * @license 958 * Copyright 2021 Google LLC 959 * 960 * Licensed under the Apache License, Version 2.0 (the "License");
961 * you may not use this file except in compliance with the License. 962 * You may obtain a copy of the License at 963 * 964 * http://www.apache.org/licenses/LICENSE-2.0 965 * 966 * Unless required by applicable law or agreed to in writing, software 967 * distributed under the License is distributed on an "AS IS" BASIS, 968 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 969 * See the License for the specific language governing permissions and 970 * limitations under the License. 971 */function Ws(e){return e&&e._delegate?e._delegate:e}class Es{constructor(t,n,r){this.name=t,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 972 * @license 973 * Copyright 2019 Google LLC 974 * 975 * Licensed under the Apache License, Version 2.0 (the "License"); 976 * you may not use this file except in compliance with the License. 977 * You may obtain a copy of the License at 978 * 979 * http://www.apache.org/licenses/LICENSE-2.0 980 * 981 * Unless required by applicable law or agreed to in writing, software 982 * distributed under the License is distributed on an "AS IS" BASIS, 983 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 984 * See the License for the specific language governing permissions and 985 * limitations under the License. 986 */const Ir="[DEFAULT]";/** 987 * @license 988 * Copyright 2019 Google LLC 989 * 990 * Licensed under the Apache License, Version 2.0 (the "License"); 991 * you may not use this file except in compliance with the License. 992 * You may obtain a copy of the License at 993 * 994 * http://www.apache.org/licenses/LICENSE-2.0 995 * 996 * Unless required by applicable law or agreed to in writing, software 997 * distributed under the License is distributed on an "AS IS" BASIS, 998 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 999 * See the License for the specific language governing permissions and 1000 * limitations under the License. 1001 */class fN{constructor(t,n){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}get(t){const n=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(n)){const r=new ip;if(this.instancesDeferred.set(n,r),this.isInitialized(n)||this.shouldAutoInitialize())try{const i=this.getOrInitializeService({instanceIdentifier:n});i&&r.resolve(i)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(t){var n;const r=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),i=(n=t==null?void 0:t.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(r)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:r})}catch(o){if(i)return null;throw o}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(hN(t))try{this.getOrInitializeService({instanceIdentifier:Ir})}catch{}for(const[n,r]of this.instancesDeferred.entries()){const i=this.normalizeInstanceIdentifier(n);try{const o=this.getOrInitializeService({instanceIdentifier:i});r.resolve(o)}catch{}}}}clearInstance(t=Ir){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...t.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ir){return this.instances.has(t)}getOptions(t=Ir){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:n={}}=t,r=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(r))throw Error(`${this.name}(${r}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const i=this.getOrInitializeService({instanceIdentifier:r,options:n});for(const[o,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(o);r===a&&s.resolve(i)}return i}onInit(t,n){var r;const i=this.normalizeInstanceIdentifier(n),o=(r=this.onInitCallbacks.get(i))!==null&&r!==void 0?r:new Set;o.add(t),this.onInitCallbacks.set(i,o);const s=this.instances.get(i);return s&&t(s,i),()=>{o.delete(t)}}invokeOnInitCallbacks(t,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(t,n)}catch{}}getOrInitializeService({instanceIdentifier:t,options:n={}}){let r=this.instances.get(t);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:dN(t),options:n}),this.instances.set(t,r),this.instancesOptions.set(t,n),this.invokeOnInitCallbacks(r,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,r)}catch{}return r||null}normalizeInstanceIdentifier(t=Ir){return this.component?this.component.multipleInstances?t:Ir:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function dN(e){return e===Ir?void 0:e}function hN(e){return e.instantiationMode==="EAGER"}/** 1002 * @license 1003 * Copyright 2019 Google LLC 1004 * 1005 * Licensed under the Apache License, Version 2.0 (the "License");
1006 * you may not use this file except in compliance with the License. 1007 * You may obtain a copy of the License at 1008 * 1009 * http://www.apache.org/licenses/LICENSE-2.0 1010 * 1011 * Unless required by applicable law or agreed to in writing, software 1012 * distributed under the License is distributed on an "AS IS" BASIS, 1013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1014 * See the License for the specific language governing permissions and 1015 * limitations under the License. 1016 */class pN{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const n=this.getProvider(t.name);if(n.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);n.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const n=new fN(t,this);return this.providers.set(t,n),n}getProviders(){return Array.from(this.providers.values())}}/** 1017 * @license 1018 * Copyright 2017 Google LLC 1019 * 1020 * Licensed under the Apache License, Version 2.0 (the "License"); 1021 * you may not use this file except in compliance with the License. 1022 * You may obtain a copy of the License at 1023 * 1024 * http://www.apache.org/licenses/LICENSE-2.0 1025 * 1026 * Unless required by applicable law or agreed to in writing, software 1027 * distributed under the License is distributed on an "AS IS" BASIS, 1028 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1029 * See the License for the specific language governing permissions and 1030 * limitations under the License. 1031 */var se;(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"})(se||(se={}));const mN={debug:se.DEBUG,verbose:se.VERBOSE,info:se.INFO,warn:se.WARN,error:se.ERROR,silent:se.SILENT},gN=se.INFO,yN={[se.DEBUG]:"log",[se.VERBOSE]:"log",[se.INFO]:"info",[se.WARN]:"warn",[se.ERROR]:"error"},vN=(e,t,...n)=>{if(t<e.logLevel)return;const r=new Date().toISOString(),i=yN[t];if(i)console[i](`[${r}] ${e.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class Y1{constructor(t){this.name=t,this._logLevel=gN,this._logHandler=vN,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in se))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?mN[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,se.DEBUG,...t),this._logHandler(this,se.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,se.VERBOSE,...t),this._logHandler(this,se.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,se.INFO,...t),this._logHandler(this,se.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,se.WARN,...t),this._logHandler(this,se.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,se.ERROR,...t),this._logHandler(this,se.ERROR,...t)}}const _N=(e,t)=>t.some(n=>e instanceof n);let iy,oy;function SN(){return iy||(iy=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function wN(){return oy||(oy=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const K1=new WeakMap,ad=new WeakMap,Q1=new WeakMap,Tc=new WeakMap,op=new WeakMap;function CN(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(sr(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return t.then(n=>{n instanceof IDBCursor&&K1.set(n,e)}).catch(()=>{}),op.set(t,e),t}function EN(e){if(ad.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});ad.set(e,t)}let ld={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return ad.get(e);if(t==="objectStoreNames")return e.objectStoreNames||Q1.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return sr(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function kN(e){ld=e(ld)}function xN(e){return e===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...n){const r=e.call(Ic(this),t,...n);return Q1.set(r,t.sort?t.sort():[t]),sr(r)}:wN().includes(e)?function(...t){return e.apply(Ic(this),t),sr(K1.get(this))}:function(...t){return sr(e.apply(Ic(this),t))}}function bN(e){return typeof e=="function"?xN(e):(e instanceof IDBTransaction&&EN(e),_N(e,SN())?new Proxy(e,ld):e)}function sr(e){if(e instanceof IDBRequest)return CN(e);if(Tc.has(e))return Tc.get(e);const t=bN(e);return t!==e&&(Tc.set(e,t),op.set(t,e)),t}const Ic=e=>op.get(e);function TN(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=sr(s);return r&&s.addEventListener("upgradeneeded",l=>{r(sr(s.result),l.oldVersion,l.newVersion,sr(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const IN=["get","getKey","getAll","getAllKeys","count"],PN=["put","add","delete","clear"],Pc=new Map;function sy(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Pc.get(t))return Pc.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=PN.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||IN.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;
1031return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return Pc.set(t,o),o}kN(e=>({...e,get:(t,n,r)=>sy(t,n)||e.get(t,n,r),has:(t,n)=>!!sy(t,n)||e.has(t,n)}));/** 1032 * @license 1033 * Copyright 2019 Google LLC 1034 * 1035 * Licensed under the Apache License, Version 2.0 (the "License"); 1036 * you may not use this file except in compliance with the License. 1037 * You may obtain a copy of the License at 1038 * 1039 * http://www.apache.org/licenses/LICENSE-2.0 1040 * 1041 * Unless required by applicable law or agreed to in writing, software 1042 * distributed under the License is distributed on an "AS IS" BASIS, 1043 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1044 * See the License for the specific language governing permissions and 1045 * limitations under the License. 1046 */class NN{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(AN(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function AN(e){const t=e.getComponent();return(t==null?void 0:t.type)==="VERSION"}const ud="@firebase/app",ay="0.10.16";/** 1047 * @license 1048 * Copyright 2019 Google LLC 1049 * 1050 * Licensed under the Apache License, Version 2.0 (the "License"); 1051 * you may not use this file except in compliance with the License. 1052 * You may obtain a copy of the License at 1053 * 1054 * http://www.apache.org/licenses/LICENSE-2.0 1055 * 1056 * Unless required by applicable law or agreed to in writing, software 1057 * distributed under the License is distributed on an "AS IS" BASIS, 1058 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1059 * See the License for the specific language governing permissions and 1060 * limitations under the License. 1061 */const Fn=new Y1("@firebase/app"),RN="@firebase/app-compat",ON="@firebase/analytics-compat",MN="@firebase/analytics",DN="@firebase/app-check-compat",LN="@firebase/app-check",FN="@firebase/auth",$N="@firebase/auth-compat",zN="@firebase/database",BN="@firebase/data-connect",jN="@firebase/database-compat",UN="@firebase/functions",WN="@firebase/functions-compat",VN="@firebase/installations",HN="@firebase/installations-compat",GN="@firebase/messaging",YN="@firebase/messaging-compat",KN="@firebase/performance",QN="@firebase/performance-compat",qN="@firebase/remote-config",XN="@firebase/remote-config-compat",JN="@firebase/storage",ZN="@firebase/storage-compat",eA="@firebase/firestore",tA="@firebase/vertexai",nA="@firebase/firestore-compat",rA="firebase",iA="11.0.2";/** 1062 * @license 1063 * Copyright 2019 Google LLC 1064 * 1065 * Licensed under the Apache License, Version 2.0 (the "License"); 1066 * you may not use this file except in compliance with the License. 1067 * You may obtain a copy of the License at 1068 * 1069 * http://www.apache.org/licenses/LICENSE-2.0 1070 * 1071 * Unless required by applicable law or agreed to in writing, software 1072 * distributed under the License is distributed on an "AS IS" BASIS, 1073 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1074 * See the License for the specific language governing permissions and 1075 * limitations under the License. 1076 */const cd="[DEFAULT]",oA={[ud]:"fire-core",[RN]:"fire-core-compat",[MN]:"fire-analytics",[ON]:"fire-analytics-compat",[LN]:"fire-app-check",[DN]:"fire-app-check-compat",[FN]:"fire-auth",[$N]:"fire-auth-compat",[zN]:"fire-rtdb",[BN]:"fire-data-connect",[jN]:"fire-rtdb-compat",[UN]:"fire-fn",[WN]:"fire-fn-compat",[VN]:"fire-iid",[HN]:"fire-iid-compat",[GN]:"fire-fcm",[YN]:"fire-fcm-compat",[KN]:"fire-perf",[QN]:"fire-perf-compat",[qN]:"fire-rc",[XN]:"fire-rc-compat",[JN]:"fire-gcs",[ZN]:"fire-gcs-compat",[eA]:"fire-fst",[nA]:"fire-fst-compat",[tA]:"fire-vertex","fire-js":"fire-js",[rA]:"fire-js-all"};/** 1077 * @license 1078 * Copyright 2019 Google LLC 1079 * 1080 * Licensed under the Apache License, Version 2.0 (the "License"); 1081 * you may not use this file except in compliance with the License. 1082 * You may obtain a copy of the License at 1083 * 1084 * http://www.apache.org/licenses/LICENSE-2.0 1085 * 1086 * Unless required by applicable law or agreed to in writing, software 1087 * distributed under the License is distributed on an "AS IS" BASIS, 1088 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1089 * See the License for the specific language governing permissions and 1090 * limitations under the License. 1091 */const Tl=new Map,sA=new Map,fd=new Map;function ly(e,t){try{e.container.addComponent(t)}catch(n){Fn.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Il(e){const t=e.name;if(fd.has(t))return Fn.debug(`There were multiple attempts to register component ${t}.`),!1;fd.set(t,e);for(const n of Tl.values())ly(n,e);for(const n of sA.values())ly(n,e);return!0}function aA(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}/** 1092 * @license 1093 * Copyright 2019 Google LLC 1094 * 1095 * Licensed under the Apache License, Version 2.0 (the "License");
1096 * you may not use this file except in compliance with the License. 1097 * You may obtain a copy of the License at 1098 * 1099 * http://www.apache.org/licenses/LICENSE-2.0 1100 * 1101 * Unless required by applicable law or agreed to in writing, software 1102 * distributed under the License is distributed on an "AS IS" BASIS, 1103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1104 * See the License for the specific language governing permissions and 1105 * limitations under the License. 1106 */const lA={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1106d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},ar=new V1("app","Firebase",lA);/** 1107 * @license 1108 * Copyright 2019 Google LLC 1109 * 1110 * Licensed under the Apache License, Version 2.0 (the "License"); 1111 * you may not use this file except in compliance with the License. 1112 * You may obtain a copy of the License at 1113 * 1114 * http://www.apache.org/licenses/LICENSE-2.0 1115 * 1116 * Unless required by applicable law or agreed to in writing, software 1117 * distributed under the License is distributed on an "AS IS" BASIS, 1118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1119 * See the License for the specific language governing permissions and 1120 * limitations under the License. 1121 */class uA{constructor(t,n,r){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 Es("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw ar.create("app-deleted",{appName:this._name})}}/** 1122 * @license 1123 * Copyright 2019 Google LLC 1124 * 1125 * Licensed under the Apache License, Version 2.0 (the "License"); 1126 * you may not use this file except in compliance with the License. 1127 * You may obtain a copy of the License at 1128 * 1129 * http://www.apache.org/licenses/LICENSE-2.0 1130 * 1131 * Unless required by applicable law or agreed to in writing, software 1132 * distributed under the License is distributed on an "AS IS" BASIS, 1133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1134 * See the License for the specific language governing permissions and 1135 * limitations under the License. 1136 */const cA=iA;function q1(e,t={}){let n=e;typeof t!="object"&&(t={name:t});const r=Object.assign({name:cd,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!="string"||!i)throw ar.create("bad-app-name",{appName:String(i)});if(n||(n=j1()),!n)throw ar.create("no-options");const o=Tl.get(i);if(o){if(sd(n,o.options)&&sd(r,o.config))return o;throw ar.create("duplicate-app",{appName:i})}const s=new pN(i);for(const l of fd.values())s.addComponent(l);const a=new uA(n,r,s);return Tl.set(i,a),a}function fA(e=cd){const t=Tl.get(e);if(!t&&e===cd&&j1())return q1();if(!t)throw ar.create("no-app",{appName:e});return t}function Li(e,t,n){var r;let i=(r=oA[e])!==null&&r!==void 0?r:e;n&&(i+=`-${n}`);const o=i.match(/\s|\//),s=t.match(/\s|\//);if(o||s){const a=[`Unable to register library "${i}" with version "${t}":`];o&&a.push(`library name "${i}" contains illegal characters (whitespace or "/")`),o&&s&&a.push("and"),s&&a.push(`version name "${t}" contains illegal characters (whitespace or "/")`),Fn.warn(a.join(" "));return}Il(new Es(`${i}-version`,()=>({library:i,version:t}),"VERSION"))}/** 1137 * @license 1138 * Copyright 2021 Google LLC 1139 * 1140 * Licensed under the Apache License, Version 2.0 (the "License"); 1141 * you may not use this file except in compliance with the License. 1142 * You may obtain a copy of the License at 1143 * 1144 * http://www.apache.org/licenses/LICENSE-2.0 1145 * 1146 * Unless required by applicable law or agreed to in writing, softw
1146are 1147 * distributed under the License is distributed on an "AS IS" BASIS, 1148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1149 * See the License for the specific language governing permissions and 1150 * limitations under the License. 1151 */const dA="firebase-heartbeat-database",hA=1,ks="firebase-heartbeat-store";let Nc=null;function X1(){return Nc||(Nc=TN(dA,hA,{upgrade:(e,t)=>{switch(t){case 0:try{e.createObjectStore(ks)}catch(n){console.warn(n)}}}}).catch(e=>{throw ar.create("idb-open",{originalErrorMessage:e.message})})),Nc}async function pA(e){try{const n=(await X1()).transaction(ks),r=await n.objectStore(ks).get(J1(e));return await n.done,r}catch(t){if(t instanceof Us)Fn.warn(t.message);else{const n=ar.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});Fn.warn(n.message)}}}async function uy(e,t){try{const r=(await X1()).transaction(ks,"readwrite");await r.objectStore(ks).put(t,J1(e)),await r.done}catch(n){if(n instanceof Us)Fn.warn(n.message);else{const r=ar.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Fn.warn(r.message)}}}function J1(e){return`${e.name}!${e.options.appId}`}/** 1152 * @license 1153 * Copyright 2021 Google LLC 1154 * 1155 * Licensed under the Apache License, Version 2.0 (the "License"); 1156 * you may not use this file except in compliance with the License. 1157 * You may obtain a copy of the License at 1158 * 1159 * http://www.apache.org/licenses/LICENSE-2.0 1160 * 1161 * Unless required by applicable law or agreed to in writing, software 1162 * distributed under the License is distributed on an "AS IS" BASIS, 1163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1164 * See the License for the specific language governing permissions and 1165 * limitations under the License. 1166 */const mA=1024,gA=30*24*60*60*1e3;class yA{constructor(t){this.container=t,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new _A(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var t,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=cy();return((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o)?void 0:(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(s=>{const a=new Date(s.date).valueOf();return Date.now()-a<=gA}),this._storage.overwrite(this._heartbeatsCache))}catch(r){Fn.warn(r)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=cy(),{heartbeatsToSend:r,unsentEntries:i}=vA(this._heartbeatsCache.heartbeats),o=xl(JSON.stringify({version:2,heartbeats:r}));return this._heartbeatsCache.lastSentHeartbeatDate=n,i.length>0?(this._heartbeatsCache.heartbeats=i,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),o}catch(n){return Fn.warn(n),""}}}function cy(){return new Date().toISOString().substring(0,10)}function vA(e,t=mA){const n=[];let r=e.slice();for(const i of e){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),fy(n)>t){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),fy(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class _A{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return tN()?nN().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await pA(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return uy(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){var n;if(await this._canUseIndexedDBPromise){const i=await this.read();return uy(this.app,{lastSentHeartbeatDate:(n=t.lastSentHeartbeatDate)!==null&&n!==void 0?n:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...t.heartbeats]})}else return}}function fy(e){return xl(JSON.stringify({version:2,heartbeats:e})).length}/** 1167 * @license 1168 * Copyright 2019 Google LLC 1169 * 1170 * Licensed under the Apache License, Version 2.0 (the "License");
1171 * you may not use this file except in compliance with the License. 1172 * You may obtain a copy of the License at 1173 * 1174 * http://www.apache.org/licenses/LICENSE-2.0 1175 * 1176 * Unless required by applicable law or agreed to in writing, software 1177 * distributed under the License is distributed on an "AS IS" BASIS, 1178 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1179 * See the License for the specific language governing permissions and 1180 * limitations under the License. 1181 */function SA(e){Il(new Es("platform-logger",t=>new NN(t),"PRIVATE")),Il(new Es("heartbeat",t=>new yA(t),"PRIVATE")),Li(ud,ay,e),Li(ud,ay,"esm2017"),Li("fire-js","")}SA("");var wA="firebase",CA="11.0.2";/** 1182 * @license 1183 * Copyright 2020 Google LLC 1184 * 1185 * Licensed under the Apache License, Version 2.0 (the "License"); 1186 * you may not use this file except in compliance with the License. 1187 * You may obtain a copy of the License at 1188 * 1189 * http://www.apache.org/licenses/LICENSE-2.0 1190 * 1191 * Unless required by applicable law or agreed to in writing, software 1192 * distributed under the License is distributed on an "AS IS" BASIS, 1193 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1194 * See the License for the specific language governing permissions and 1195 * limitations under the License. 1196 */Li(wA,CA,"app");var dy={};const hy="@firebase/database",py="1.0.10";/** 1197 * @license 1198 * Copyright 2019 Google LLC 1199 * 1200 * Licensed under the Apache License, Version 2.0 (the "License"); 1201 * you may not use this file except in compliance with the License. 1202 * You may obtain a copy of the License at 1203 * 1204 * http://www.apache.org/licenses/LICENSE-2.0 1205 * 1206 * Unless required by applicable law or agreed to in writing, software 1207 * distributed under the License is distributed on an "AS IS" BASIS, 1208 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1209 * See the License for the specific language governing permissions and 1210 * limitations under the License. 1211 */let Z1="";function EA(e){Z1=e}/** 1212 * @license 1213 * Copyright 2017 Google LLC 1214 * 1215 * Licensed under the Apache License, Version 2.0 (the "License"); 1216 * you may not use this file except in compliance with the License. 1217 * You may obtain a copy of the License at 1218 * 1219 * http://www.apache.org/licenses/LICENSE-2.0 1220 * 1221 * Unless required by applicable law or agreed to in writing, software 1222 * distributed under the License is distributed on an "AS IS" BASIS, 1223 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1224 * See the License for the specific language governing permissions and 1225 * limitations under the License. 1226 */class kA{constructor(t){this.domStorage_=t,this.prefix_="firebase:"}set(t,n){n==null?this.domStorage_.removeItem(this.prefixedName_(t)):this.domStorage_.setItem(this.prefixedName_(t),Le(n))}get(t){const n=this.domStorage_.getItem(this.prefixedName_(t));return n==null?null:Cs(n)}remove(t){this.domStorage_.removeItem(this.prefixedName_(t))}prefixedName_(t){return this.prefix_+t}toString(){return this.domStorage_.toString()}}/** 1227 * @license 1228 * Copyright 2017 Google LLC 1229 * 1230 * Licensed under the Apache License, Version 2.0 (the "License"); 1231 * you may not use this file except in compliance with the License. 1232 * You may obtain a copy of the License at 1233 * 1234 * http://www.apache.org/licenses/LICENSE-2.0 1235 * 1236 * Unless required by applicable law or agreed to in writing, software 1237 * distributed under the License is distributed on an "AS IS" BASIS, 1238 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1239 * See the License for the specific language governing permissions and 1240 * limitations under the License. 1241 */class xA{constructor(){this.cache_={},this.isInMemoryStorage=!0}set(t,n){n==null?delete this.cache_[t]:this.cache_[t]=n}get(t){return yn(this.cache_,t)?this.cache_[t]:null}remove(t){delete this.cache_[t]}}/** 1242 * @license 1243 * Copyright 2017 Google LLC 1244 * 1245 * Licensed under the Apache License, Version 2.0 (the "License"); 1246 * you may not use this file except in compliance with the License. 1247 * You may obtain a copy of the License at 1248 * 1249 * http://www.apache.org/licenses/LICENSE-2.0 1250 * 1251 * Unless required by applicable law or agreed to in writing, softw
1251are 1252 * distributed under the License is distributed on an "AS IS" BASIS, 1253 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1254 * See the License for the specific language governing permissions and 1255 * limitations under the License. 1256 */const eS=function(e){try{if(typeof window<"u"&&typeof window[e]<"u"){const t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new kA(t)}}catch{}return new xA},Dr=eS("localStorage"),bA=eS("sessionStorage");/** 1257 * @license 1258 * Copyright 2017 Google LLC 1259 * 1260 * Licensed under the Apache License, Version 2.0 (the "License"); 1261 * you may not use this file except in compliance with the License. 1262 * You may obtain a copy of the License at 1263 * 1264 * http://www.apache.org/licenses/LICENSE-2.0 1265 * 1266 * Unless required by applicable law or agreed to in writing, software 1267 * distributed under the License is distributed on an "AS IS" BASIS, 1268 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1269 * See the License for the specific language governing permissions and 1270 * limitations under the License. 1271 */const Fi=new Y1("@firebase/database"),TA=function(){let e=1;return function(){return e++}}(),tS=function(e){const t=cN(e),n=new uN;n.update(t);const r=n.digest();return rp.encodeByteArray(r)},Vs=function(...e){let t="";for(let n=0;n<e.length;n++){const r=e[n];Array.isArray(r)||r&&typeof r=="object"&&typeof r.length=="number"?t+=Vs.apply(null,r):typeof r=="object"?t+=Le(r):t+=r,t+=" "}return t};let Yo=null,my=!0;const IA=function(e,t){N(!t,"Can't turn on custom loggers persistently."),Fi.logLevel=se.VERBOSE,Yo=Fi.log.bind(Fi)},Ke=function(...e){if(my===!0&&(my=!1,Yo===null&&bA.get("logging_enabled")===!0&&IA()),Yo){const t=Vs.apply(null,e);Yo(t)}},Hs=function(e){return function(...t){Ke(e,...t)}},dd=function(...e){const t="FIREBASE INTERNAL ERROR: "+Vs(...e);Fi.error(t)},$n=function(...e){const t=`FIREBASE FATAL ERROR: ${Vs(...e)}`;throw Fi.error(t),new Error(t)},Et=function(...e){const t="FIREBASE WARNING: "+Vs(...e);Fi.warn(t)},PA=function(){typeof window<"u"&&window.location&&window.location.protocol&&window.location.protocol.indexOf("https:")!==-1&&Et("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().")},sp=function(e){return typeof e=="number"&&(e!==e||e===Number.POSITIVE_INFINITY||e===Number.NEGATIVE_INFINITY)},NA=function(e){if(document.readyState==="complete")e();else{let t=!1;const n=function(){if(!document.body){setTimeout(n,Math.floor(10));return}t||(t=!0,e())};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",()=>{document.readyState==="complete"&&n()}),window.attachEvent("onload",n))}},Qr="[MIN_NAME]",gr="[MAX_NAME]",oo=function(e,t){if(e===t)return 0;if(e===Qr||t===gr)return-1;if(t===Qr||e===gr)return 1;{const n=gy(e),r=gy(t);return n!==null?r!==null?n-r===0?e.length-t.length:n-r:-1:r!==null?1:e<t?-1:1}},AA=function(e,t){return e===t?0:e<t?-1:1},Co=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+Le(t))},ap=function(e){if(typeof e!="object"||e===null)return Le(e);const t=[];for(const r in e)t.push(r);t.sort();let n="{";for(let r=0;r<t.length;r++)r!==0&&(n+=","),n+=Le(t[r]),n+=":",n+=ap(e[t[r]]);return n+="}",n},nS=function(e,t){const n=e.length;if(n<=t)return[e];const r=[];for(let i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r};function ht(e,t){for(const n in e)e.hasOwnProperty(n)&&t(n,e[n])}const rS=function(e){N(!sp(e),"Invalid JSON number");const t=11,n=52,r=(1<<t-1)-1;let i,o,s,a,l;e===0?(o=0,s=0,i=1/e===-1/0?1:0):(i=e<0,e=Math.abs(e),e>=Math.pow(2,1-r)?(a=Math.min(Math.floor(Math.log(e)/Math.LN2),r),o=a+r,s=Math.round(e*Math.pow(2,n-a)-Math.pow(2,n))):(o=0,s=Math.round(e/Math.pow(2,1-r-n))));const u=[];for(l=n;l;l-=1)u.push(s%2?1:0),s=Math.floor(s/2);for(l=t;l;l-=1)u.push(o%2?1:0),o=Math.floor(o/2);u.push(i?1:0),u.reverse();const f=u.join("");let c="";for(l=0;l<64;l+=8){let d=parseInt(f.substr(l,8),2).toString(16);d.length===1&&(d="0"+d),c=c+d}return c.toLowerCase()},RA=function(){return!!(typeof window=="object"&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))},OA=function(){return typeof Windows=="object"&&typeof Windows.UI=="object"};function MA(e,t){let n="Unknown Error";e==="too_big"?n="The data requested exceeds the maximum size that can be accessed with a single request.":e==="permission_denied"?n="Client doesn't have permission to access the desired data.":e==="unavailable"&&(n="The service is unavailable");const r=new Error(e+" at "+t._path.toString()+": "+n);return r.code=e.toUpperCase(),r}const DA=new RegExp("^-?(0*)\\d{1,10}$"),LA=-2147483648,FA=2147483647,gy=function(e){if(DA.test(e)){const t=Number(e);if(t>=LA&&t<=FA)return t}return null},Gs=function(e){try{e()}catch(t){setTimeout(()=>{const n=t.stack||"";throw Et("Exception was thrown by user callback.",n),t},Math.floor(0))}},$A=function(){return(typeof window=="object"&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},Ko=function(e,t){const n=setTimeout(e,t);return typeof n=="number"&&typeof Deno<"u"&&Deno.unrefTimer?Deno.unrefTimer(n):typeof n=="object"&&n.unref&&n.unref(),n};/** 1272 * @license 1273 * Copyright 2021 Google LLC 1274 * 1275 * Licensed under the Apache License, Version 2.0 (the "License");
1276 * you may not use this file except in compliance with the License. 1277 * You may obtain a copy of the License at 1278 * 1279 * http://www.apache.org/licenses/LICENSE-2.0 1280 * 1281 * Unless required by applicable law or agreed to in writing, software 1282 * distributed under the License is distributed on an "AS IS" BASIS, 1283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1284 * See the License for the specific language governing permissions and 1285 * limitations under the License. 1286 */class zA{constructor(t,n){this.appName_=t,this.appCheckProvider=n,this.appCheck=n==null?void 0:n.getImmediate({optional:!0}),this.appCheck||n==null||n.get().then(r=>this.appCheck=r)}getToken(t){return this.appCheck?this.appCheck.getToken(t):new Promise((n,r)=>{setTimeout(()=>{this.appCheck?this.getToken(t).then(n,r):n(null)},0)})}addTokenChangeListener(t){var n;(n=this.appCheckProvider)===null||n===void 0||n.get().then(r=>r.addTokenListener(t))}notifyForInvalidToken(){Et(`Provided AppCheck credentials for the app named "${this.appName_}" are invalid. This usually indicates your app was not initialized correctly.`)}}/** 1287 * @license 1288 * Copyright 2017 Google LLC 1289 * 1290 * Licensed under the Apache License, Version 2.0 (the "License"); 1291 * you may not use this file except in compliance with the License. 1292 * You may obtain a copy of the License at 1293 * 1294 * http://www.apache.org/licenses/LICENSE-2.0 1295 * 1296 * Unless required by applicable law or agreed to in writing, software 1297 * distributed under the License is distributed on an "AS IS" BASIS, 1298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1299 * See the License for the specific language governing permissions and 1300 * limitations under the License. 1301 */class BA{constructor(t,n,r){this.appName_=t,this.firebaseOptions_=n,this.authProvider_=r,this.auth_=null,this.auth_=r.getImmediate({optional:!0}),this.auth_||r.onInit(i=>this.auth_=i)}getToken(t){return this.auth_?this.auth_.getToken(t).catch(n=>n&&n.code==="auth/token-not-initialized"?(Ke("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(n)):new Promise((n,r)=>{setTimeout(()=>{this.auth_?this.getToken(t).then(n,r):n(null)},0)})}addTokenChangeListener(t){this.auth_?this.auth_.addAuthTokenListener(t):this.authProvider_.get().then(n=>n.addAuthTokenListener(t))}removeTokenChangeListener(t){this.authProvider_.get().then(n=>n.removeAuthTokenListener(t))}notifyForInvalidToken(){let t='Provided authentication credentials for the app named "'+this.appName_+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.firebaseOptions_?t+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.firebaseOptions_?t+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':t+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',Et(t)}}class Ga{constructor(t){this.accessToken=t}getToken(t){return Promise.resolve({accessToken:this.accessToken})}addTokenChangeListener(t){t(this.accessToken)}removeTokenChangeListener(t){}notifyForInvalidToken(){}}Ga.OWNER="owner";/** 1302 * @license 1303 * Copyright 2017 Google LLC 1304 * 1305 * Licensed under the Apache License, Version 2.0 (the "License"); 1306 * you may not use this file except in compliance with the License. 1307 * You may obtain a copy of the License at 1308 * 1309 * http://www.apache.org/licenses/LICENSE-2.0 1310 * 1311 * Unless required by applicable law or agreed to in writing, software 1312 * distributed under the License is distributed on an "AS IS" BASIS, 1313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1314 * See the License for the specific language governing permissions and 1315 * limitations under the License. 1316 */const lp="5",iS="v",oS="s",sS="r",aS="f",lS=/(console\.firebase|firebase-console-\w+\.corp|firebase\.corp)\.google\.com/,uS="ls",cS="p",hd="ac",fS="websocket",dS="long_polling";/** 1317 * @license 1318 * Copyright 2017 Google LLC 1319 * 1320 * Licensed under the Apache License, Version 2.0 (the "License");
1321 * you may not use this file except in compliance with the License. 1322 * You may obtain a copy of the License at 1323 * 1324 * http://www.apache.org/licenses/LICENSE-2.0 1325 * 1326 * Unless required by applicable law or agreed to in writing, software 1327 * distributed under the License is distributed on an "AS IS" BASIS, 1328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1329 * See the License for the specific language governing permissions and 1330 * limitations under the License. 1331 */class hS{constructor(t,n,r,i,o=!1,s="",a=!1,l=!1){this.secure=n,this.namespace=r,this.webSocketOnly=i,this.nodeAdmin=o,this.persistenceKey=s,this.includeNamespaceInQueryParams=a,this.isUsingEmulator=l,this._host=t.toLowerCase(),this._domain=this._host.substr(this._host.indexOf(".")+1),this.internalHost=Dr.get("host:"+t)||this._host}isCacheableHost(){return this.internalHost.substr(0,2)==="s-"}isCustomHost(){return this._domain!=="firebaseio.com"&&this._domain!=="firebaseio-demo.com"}get host(){return this._host}set host(t){t!==this.internalHost&&(this.internalHost=t,this.isCacheableHost()&&Dr.set("host:"+this._host,this.internalHost))}toString(){let t=this.toURLString();return this.persistenceKey&&(t+="<"+this.persistenceKey+">"),t}toURLString(){const t=this.secure?"https://":"http://",n=this.includeNamespaceInQueryParams?`?ns=${this.namespace}`:"";return`${t}${this.host}/${n}`}}function jA(e){return e.host!==e.internalHost||e.isCustomHost()||e.includeNamespaceInQueryParams}function pS(e,t,n){N(typeof t=="string","typeof type must == string"),N(typeof n=="object","typeof params must == object");let r;if(t===fS)r=(e.secure?"wss://":"ws://")+e.internalHost+"/.ws?";else if(t===dS)r=(e.secure?"https://":"http://")+e.internalHost+"/.lp?";else throw new Error("Unknown connection type: "+t);jA(e)&&(n.ns=e.namespace);const i=[];return ht(n,(o,s)=>{i.push(o+"="+s)}),r+i.join("&")}/** 1332 * @license 1333 * Copyright 2017 Google LLC 1334 * 1335 * Licensed under the Apache License, Version 2.0 (the "License"); 1336 * you may not use this file except in compliance with the License. 1337 * You may obtain a copy of the License at 1338 * 1339 * http://www.apache.org/licenses/LICENSE-2.0 1340 * 1341 * Unless required by applicable law or agreed to in writing, software 1342 * distributed under the License is distributed on an "AS IS" BASIS, 1343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1344 * See the License for the specific language governing permissions and 1345 * limitations under the License. 1346 */class UA{constructor(){this.counters_={}}incrementCounter(t,n=1){yn(this.counters_,t)||(this.counters_[t]=0),this.counters_[t]+=n}get(){return VP(this.counters_)}}/** 1347 * @license 1348 * Copyright 2017 Google LLC 1349 * 1350 * Licensed under the Apache License, Version 2.0 (the "License"); 1351 * you may not use this file except in compliance with the License. 1352 * You may obtain a copy of the License at 1353 * 1354 * http://www.apache.org/licenses/LICENSE-2.0 1355 * 1356 * Unless required by applicable law or agreed to in writing, software 1357 * distributed under the License is distributed on an "AS IS" BASIS, 1358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1359 * See the License for the specific language governing permissions and 1360 * limitations under the License. 1361 */const Ac={},Rc={};function up(e){const t=e.toString();return Ac[t]||(Ac[t]=new UA),Ac[t]}function WA(e,t){const n=e.toString();return Rc[n]||(Rc[n]=t()),Rc[n]}/** 1362 * @license 1363 * Copyright 2017 Google LLC 1364 * 1365 * Licensed under the Apache License, Version 2.0 (the "License"); 1366 * you may not use this file except in compliance with the License. 1367 * You may obtain a copy of the License at 1368 * 1369 * http://www.apache.org/licenses/LICENSE-2.0 1370 * 1371 * Unless required by applicable law or agreed to in writing, software 1372 * distributed under the License is distributed on an "AS IS" BASIS, 1373 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1374 * See the License for the specific language governing permissions and 1375 * limitations under the License. 1376 */class VA{constructor(t){this.onMessage_=t,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}closeAfter(t,n){this.closeAfterResponse=t,this.onClose=n,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)}handleResponse(t,n){for(this.pendingResponses[t]=n;this.pendingResponses[this.currentResponseNum];){const r=this.pendingResponses[this.currentResponseNum];delete this.pendingResponses[this.currentResponseNum];for(let i=0;i<r.length;++i)r[i]&&Gs(()=>{this.onMessage_(r[i])});if(this.currentResponseNum===this.closeAfterResponse){this.onClose&&(this.onClose(),this.onClose=null);break}this.currentResponseNum++}}}/** 1377 * @license 1378 * Copyright 2017 Google LLC 1379 * 1380 * Licensed under the Apache License, Version 2.0 (the "License");
1381 * you may not use this file except in compliance with the License. 1382 * You may obtain a copy of the License at 1383 * 1384 * http://www.apache.org/licenses/LICENSE-2.0 1385 * 1386 * Unless required by applicable law or agreed to in writing, software 1387 * distributed under the License is distributed on an "AS IS" BASIS, 1388 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1389 * See the License for the specific language governing permissions and 1390 * limitations under the License. 1391 */const yy="start",HA="close",GA="pLPCommand",YA="pRTLPCB",mS="id",gS="pw",yS="ser",KA="cb",QA="seg",qA="ts",XA="d",JA="dframe",vS=1870,_S=30,ZA=vS-_S,eR=25e3,tR=3e4;class xi{constructor(t,n,r,i,o,s,a){this.connId=t,this.repoInfo=n,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.transportSessionId=s,this.lastSessionId=a,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=Hs(t),this.stats_=up(n),this.urlFn=l=>(this.appCheckToken&&(l[hd]=this.appCheckToken),pS(n,dS,l))}open(t,n){this.curSegmentNum=0,this.onDisconnect_=n,this.myPacketOrderer=new VA(t),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(()=>{this.log_("Timed out trying to connect."),this.onClosed_(),this.connectTimeoutTimer_=null},Math.floor(tR)),NA(()=>{if(this.isClosed_)return;this.scriptTagHolder=new cp((...o)=>{const[s,a,l,u,f]=o;if(this.incrementIncomingBytes_(o),!!this.scriptTagHolder)if(this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null),this.everConnected_=!0,s===yy)this.id=a,this.password=l;else if(s===HA)a?(this.scriptTagHolder.sendNewPolls=!1,this.myPacketOrderer.closeAfter(a,()=>{this.onClosed_()})):this.onClosed_();else throw new Error("Unrecognized command received: "+s)},(...o)=>{const[s,a]=o;this.incrementIncomingBytes_(o),this.myPacketOrderer.handleResponse(s,a)},()=>{this.onClosed_()},this.urlFn);const r={};r[yy]="t",r[yS]=Math.floor(Math.random()*1e8),this.scriptTagHolder.uniqueCallbackIdentifier&&(r[KA]=this.scriptTagHolder.uniqueCallbackIdentifier),r[iS]=lp,this.transportSessionId&&(r[oS]=this.transportSessionId),this.lastSessionId&&(r[uS]=this.lastSessionId),this.applicationId&&(r[cS]=this.applicationId),this.appCheckToken&&(r[hd]=this.appCheckToken),typeof location<"u"&&location.hostname&&lS.test(location.hostname)&&(r[sS]=aS);const i=this.urlFn(r);this.log_("Connecting via long-poll to "+i),this.scriptTagHolder.addTag(i,()=>{})})}start(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)}static forceAllow(){xi.forceAllow_=!0}static forceDisallow(){xi.forceDisallow_=!0}static isAvailable(){return xi.forceAllow_?!0:!xi.forceDisallow_&&typeof document<"u"&&document.createElement!=null&&!RA()&&!OA()}markConnectionHealthy(){}shutdown_(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)}onClosed_(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))}close(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())}send(t){const n=Le(t);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=$1(n),i=nS(r,ZA);for(let o=0;o<i.length;o++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,i.length,i[o]),this.curSegmentNum++}addDisconnectPingFrame(t,n){this.myDisconnFrame=document.createElement("iframe");const r={};r[JA]="t",r[mS]=t,r[gS]=n,this.myDisconnFrame.src=this.urlFn(r),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}incrementIncomingBytes_(t){const n=Le(t).length;this.bytesReceived+=n,this.stats_.incrementCounter("bytes_received",n)}}class cp{constructor(t,n,r,i){this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new Set,this.pendingSegs=[],this.currentSerial=Math.floor(Math.random()*1e8),this.sendNewPolls=!0;{this.uniqueCallbackIdentifier=TA(),window[GA+this.uniqueCallbackIdentifier]=t,window[YA+this.uniqueCallbackIdentifier]=n,this.myIFrame=cp.createIFrame_();let o="";this.myIFrame.src&&this.myIFrame.src.substr(0,11)==="javascript:"&&(o='<script>document.domain="'+document.domain+'";<\/script>');const s="<html><body>"+o+"</body></html>";
vendor: 15,863 bytes, lines 1391-1446
1391try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(a){Ke("frame writing exception"),a.stack&&Ke(a.stack),Ke(a)}}}static createIFrame_(){const t=document.createElement("iframe");if(t.style.display="none",document.body){document.body.appendChild(t);try{t.contentWindow.document||Ke("No IE domain setting required")}catch{const r=document.domain;t.src="javascript:void((function(){document.open();document.domain='"+r+"';document.close();})())"}}else throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";return t.contentDocument?t.doc=t.contentDocument:t.contentWindow?t.doc=t.contentWindow.document:t.document&&(t.doc=t.document),t}close(){this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.textContent="",setTimeout(()=>{this.myIFrame!==null&&(document.body.removeChild(this.myIFrame),this.myIFrame=null)},Math.floor(0)));const t=this.onDisconnect;t&&(this.onDisconnect=null,t())}startLongPoll(t,n){for(this.myID=t,this.myPW=n,this.alive=!0;this.newRequest_(););}newRequest_(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.size<(this.pendingSegs.length>0?2:1)){this.currentSerial++;const t={};t[mS]=this.myID,t[gS]=this.myPW,t[yS]=this.currentSerial;let n=this.urlFn(t),r="",i=0;for(;this.pendingSegs.length>0&&this.pendingSegs[0].d.length+_S+r.length<=vS;){const s=this.pendingSegs.shift();r=r+"&"+QA+i+"="+s.seg+"&"+qA+i+"="+s.ts+"&"+XA+i+"="+s.d,i++}return n=n+r,this.addLongPollTag_(n,this.currentSerial),!0}else return!1}enqueueSegment(t,n,r){this.pendingSegs.push({seg:t,ts:n,d:r}),this.alive&&this.newRequest_()}addLongPollTag_(t,n){this.outstandingRequests.add(n);const r=()=>{this.outstandingRequests.delete(n),this.newRequest_()},i=setTimeout(r,Math.floor(eR)),o=()=>{clearTimeout(i),r()};this.addTag(t,o)}addTag(t,n){setTimeout(()=>{try{if(!this.sendNewPolls)return;const r=this.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=t,r.onload=r.onreadystatechange=function(){const i=r.readyState;(!i||i==="loaded"||i==="complete")&&(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),n())},r.onerror=()=>{Ke("Long-poll script failed to load: "+t),this.sendNewPolls=!1,this.close()},this.myIFrame.doc.body.appendChild(r)}catch{}},Math.floor(1))}}/** 1392 * @license 1393 * Copyright 2017 Google LLC 1394 * 1395 * Licensed under the Apache License, Version 2.0 (the "License"); 1396 * you may not use this file except in compliance with the License. 1397 * You may obtain a copy of the License at 1398 * 1399 * http://www.apache.org/licenses/LICENSE-2.0 1400 * 1401 * Unless required by applicable law or agreed to in writing, software 1402 * distributed under the License is distributed on an "AS IS" BASIS, 1403 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1404 * See the License for the specific language governing permissions and 1405 * limitations under the License. 1406 */const nR=16384,rR=45e3;let Pl=null;typeof MozWebSocket<"u"?Pl=MozWebSocket:typeof WebSocket<"u"&&(Pl=WebSocket);class Yt{constructor(t,n,r,i,o,s,a){this.connId=t,this.applicationId=r,this.appCheckToken=i,this.authToken=o,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=Hs(this.connId),this.stats_=up(n),this.connURL=Yt.connectionURL_(n,s,a,i,r),this.nodeAdmin=n.nodeAdmin}static connectionURL_(t,n,r,i,o){const s={};return s[iS]=lp,typeof location<"u"&&location.hostname&&lS.test(location.hostname)&&(s[sS]=aS),n&&(s[oS]=n),r&&(s[uS]=r),i&&(s[hd]=i),o&&(s[cS]=o),pS(t,fS,s)}open(t,n){this.onDisconnect=n,this.onMessage=t,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,Dr.set("previous_websocket_failure",!0);try{let r;W1(),this.mySock=new Pl(this.connURL,[],r)}catch(r){this.log_("Error instantiating WebSocket.");const i=r.message||r.data;i&&this.log_(i),this.onClosed_();return}this.mySock.onopen=()=>{this.log_("Websocket connected."),this.everConnected_=!0},this.mySock.onclose=()=>{this.log_("Websocket connection was disconnected."),this.mySock=null,this.onClosed_()},this.mySock.onmessage=r=>{this.handleIncomingFrame(r)},this.mySock.onerror=r=>{this.log_("WebSocket error. Closing connection.");const i=r.message||r.data;i&&this.log_(i),this.onClosed_()}}start(){}static forceDisallow(){Yt.forceDisallow_=!0}static isAvailable(){let t=!1;if(typeof navigator<"u"&&navigator.userAgent){const n=/Android ([0-9]{0,}\.[0-9]{0,})/,r=navigator.userAgent.match(n);r&&r.length>1&&parseFloat(r[1])<4.4&&(t=!0)}return!t&&Pl!==null&&!Yt.forceDisallow_}static previouslyFailed(){return Dr.isInMemoryStorage||Dr.get("previous_websocket_failure")===!0}markConnectionHealthy(){Dr.remove("previous_websocket_failure")}appendFrame_(t){if(this.frames.push(t),this.frames.length===this.totalFrames){const n=this.frames.join("");this.frames=null;const r=Cs(n);this.onMessage(r)}}handleNewFrameCount_(t){this.totalFrames=t,this.frames=[]}extractFrameCount_(t){if(N(this.frames===null,"We already have a frame buffer"),t.length<=6){const n=Number(t);if(!isNaN(n))return this.handleNewFrameCount_(n),null}return this.handleNewFrameCount_(1),t}handleIncomingFrame(t){if(this.mySock===null)return;const n=t.data;if(this.bytesReceived+=n.length,this.stats_.incrementCounter("bytes_received",n.length),this.resetKeepAlive(),this.frames!==null)this.appendFrame_(n);else{const r=this.extractFrameCount_(n);r!==null&&this.appendFrame_(r)}}send(t){this.resetKeepAlive();const n=Le(t);this.bytesSent+=n.length,this.stats_.incrementCounter("bytes_sent",n.length);const r=nS(n,nR);r.length>1&&this.sendString_(String(r.length));for(let i=0;i<r.length;i++)this.sendString_(r[i])}shutdown_(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)}onClosed_(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))}close(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())}resetKeepAlive(){clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(()=>{this.mySock&&this.sendString_("0"),this.resetKeepAlive()},Math.floor(rR))}sendString_(t){try{this.mySock.send(t)}catch(n){this.log_("Exception thrown from WebSocket.send():",n.message||n.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}}}Yt.responsesRequiredToBeHealthy=2;Yt.healthyTimeout=3e4;/** 1407 * @license 1408 * Copyright 2017 Google LLC 1409 * 1410 * Licensed under the Apache License, Version 2.0 (the "License"); 1411 * you may not use this file except in compliance with the License. 1412 * You may obtain a copy of the License at 1413 * 1414 * http://www.apache.org/licenses/LICENSE-2.0 1415 * 1416 * Unless required by applicable law or agreed to in writing, software 1417 * distributed under the License is distributed on an "AS IS" BASIS, 1418 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1419 * See the License for the specific language governing permissions and 1420 * limitations under the License. 1421 */class xs{static get ALL_TRANSPORTS(){return[xi,Yt]}static get IS_TRANSPORT_INITIALIZED(){return this.globalTransportInitialized_}constructor(t){this.initTransports_(t)}initTransports_(t){const n=Yt&&Yt.isAvailable();let r=n&&!Yt.previouslyFailed();if(t.webSocketOnly&&(n||Et("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[Yt];else{const i=this.transports_=[];for(const o of xs.ALL_TRANSPORTS)o&&o.isAvailable()&&i.push(o);xs.globalTransportInitialized_=!0}}initialTransport(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")}upgradeTransport(){return this.transports_.length>1?this.transports_[1]:null}}xs.globalTransportInitialized_=!1;/** 1422 * @license 1423 * Copyright 2017 Google LLC 1424 * 1425 * Licensed under the Apache License, Version 2.0 (the "License"); 1426 * you may not use this file except in compliance with the License. 1427 * You may obtain a copy of the License at 1428 * 1429 * http://www.apache.org/licenses/LICENSE-2.0 1430 * 1431 * Unless required by applicable law or agreed to in writing, software 1432 * distributed under the License is distributed on an "AS IS" BASIS, 1433 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1434 * See the License for the specific language governing permissions and 1435 * limitations under the License. 1436 */const iR=6e4,oR=5e3,sR=10*1024,aR=100*1024,Oc="t",vy="d",lR="s",_y="r",uR="e",Sy="o",wy="a",Cy="n",Ey="p",cR="h";class fR{constructor(t,n,r,i,o,s,a,l,u,f){this.id=t,this.repoInfo_=n,this.applicationId_=r,this.appCheckToken_=i,this.authToken_=o,this.onMessage_=s,this.onReady_=a,this.onDisconnect_=l,this.onKill_=u,this.lastSessionId=f,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=Hs("c:"+this.id+":"),this.transportManager_=new xs(n),this.log_("Connection created"),this.start_()}start_(){const t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,null,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(()=>{this.conn_&&this.conn_.open(n,r)},Math.floor(0));const i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=Ko(()=>{this.healthyTimeout_=null,this.isHealthy_||(this.conn_&&this.conn_.bytesReceived>aR?(this.log_("Connection exceeded healthy timeout but has received "+this.conn_.bytesReceived+" bytes. Marking connection healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()):this.conn_&&this.conn_.bytesSent>sR?this.log_("Connection exceeded healthy timeout but has sent "+this.conn_.bytesSent+" bytes. Leaving connection alive."):(this.log_("Closing unhealthy connection after timeout."),this.close()))},Math.floor(i)))}nextTransportId_(){return"c:"+this.id+":"+this.connectionCount++}disconnReceiver_(t){return n=>{t===this.conn_?this.onConnectionLost_(n):t===this.secondaryConn_?(this.log_("Secondary connection lost."),this.onSecondaryConnectionLost_()):this.log_("closing an old connection")}}connReceiver_(t){return n=>{this.state_!==2&&(t===this.rx_?this.onPrimaryMessageReceived_(n):t===this.secondaryConn_?this.onSecondaryMessageReceived_(n):this.log_("message on old connection"))}}sendRequest(t){const n={t:"d",d:t};this.sendData_(n)}tryCleanupConnection(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)}onSecondaryControl_(t){if(Oc in t){const n=t[Oc];n===wy?this.upgradeIfSecondaryHealthy_():n===_y?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),(this.tx_===this.secondaryConn_||this.rx_===this.secondaryConn_)&&this.close()):n===Sy&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}}onSecondaryMessageReceived_(t){const n=Co("t",t),r=Co("d",t);if(n==="c")this.onSecondaryControl_(r);else if(n==="d")this.pendingDataMessages.push(r);else throw new Error("Unknown protocol layer: "+n)}upgradeIfSecondaryHealthy_(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:Ey,d:{}}}))}proceedWithUpgrade_(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:wy,d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:Cy,d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()}onPrimaryMessageReceived_(t){const n=Co("t",t),r=Co("d",t);n==="c"?this.onControl_(r):n==="d"&&this.onDataMessage_(r)}onDataMessage_(t){this.onPrimaryResponse_(),this.onMessage_(t)}onPrimaryResponse_(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))}onControl_(t){const n=Co(Oc,t);if(vy in t){const r=t[vy];if(n===cR){const i=Object.assign({},r);this.repoInfo_.isUsingEmulator&&(i.h=this.repoInfo_.host),this.onHandshake_(i)}else if(n===Cy){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(let i=0;i<this.pendingDataMessages.length;++i)this.onDataMessage_(this.pendingDataMessages[i]);this.pendingDataMessages=[],this.tryCleanupConnection()}else n===lR?this.onConnectionShutdown_(r):n===_y?this.onReset_(r):n===uR?dd("Server Error: "+r):n===Sy?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):dd("Unknown control packet command: "+n)}}onHandshake_(t){const n=t.ts,r=t.v,i=t.h;this.sessionId=t.s,this.repoInfo_.host=i,this.state_===0&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,n),lp!==r&&Et("Protocol version mismatch detected"),this.tryStartUpgrade_())}tryStartUpgrade_(){const t=this.transportManager_.upgradeTransport();t&&this.startUpgrade_(t)}startUpgrade_(t){this.secondaryConn_=new t(this.nextTransportId_(),this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,this.sessionId),this.secondaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;const n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),Ko(()=>{this.secondaryConn_&&(this.log_("Timed out trying to upgrade."),this.secondaryConn_.close())},Math.floor(iR))}onReset_(t){this.log_("Reset packet received. New host: "+t),this.repoInfo_.host=t,this.state_===1?this.close():(this.closeConnections_(),this.start_())}onConnectionEstablished_(t,n){this.log_("Realtime connection established."),this.conn_=t,this.state_=1,this.onReady_&&(this.onReady_(n,this.sessionId),this.onReady_=null),this.primaryResponsesRequired_===0?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):Ko(()=>{this.sendPingOnPrimaryIfNecessary_()},Math.floor(oR))}sendPingOnPrimaryIfNecessary_(){!this.isHealthy_&&this.state_===1&&(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:Ey,d:{}}}))}onSecondaryConnectionLost_(){const t=this.secondaryConn_;this.secondaryConn_=null,(this.tx_===t||this.rx_===t)&&this.close()}onConnectionLost_(t){this.conn_=null,!t&&this.state_===0?(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(Dr.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)):this.state_===1&&this.log_("Realtime connection lost."),this.close()}onConnectionShutdown_(t){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(t),this.onKill_=null),this.onDisconnect_=null,this.close()}sendData_(t){if(this.state_!==1)throw"Connection is not connected";this.tx_.send(t)}close(){this.state_!==2&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))}closeConnections_(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)}}/** 1437 * @license 1438 * Copyright 2017 Google LLC 1439 * 1440 * Licensed under the Apache License, Version 2.0 (the "License"); 1441 * you may not use this file except in compliance with the License. 1442 * You may obtain a copy of the License at 1443 * 1444 * http://www.apache.org/licenses/LICENSE-2.0 1445 * 1446 * Unless required by applicable law or agreed to in writing, softw
1446are 1447 * distributed under the License is distributed on an "AS IS" BASIS, 1448 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1449 * See the License for the specific language governing permissions and 1450 * limitations under the License. 1451 */class SS{put(t,n,r,i){}merge(t,n,r,i){}refreshAuthToken(t){}refreshAppCheckToken(t){}onDisconnectPut(t,n,r){}onDisconnectMerge(t,n,r){}onDisconnectCancel(t,n){}reportStats(t){}}/** 1452 * @license 1453 * Copyright 2017 Google LLC 1454 * 1455 * Licensed under the Apache License, Version 2.0 (the "License"); 1456 * you may not use this file except in compliance with the License. 1457 * You may obtain a copy of the License at 1458 * 1459 * http://www.apache.org/licenses/LICENSE-2.0 1460 * 1461 * Unless required by applicable law or agreed to in writing, software 1462 * distributed under the License is distributed on an "AS IS" BASIS, 1463 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1464 * See the License for the specific language governing permissions and 1465 * limitations under the License. 1466 */class wS{constructor(t){this.allowedEvents_=t,this.listeners_={},N(Array.isArray(t)&&t.length>0,"Requires a non-empty array")}trigger(t,...n){if(Array.isArray(this.listeners_[t])){const r=[...this.listeners_[t]];for(let i=0;i<r.length;i++)r[i].callback.apply(r[i].context,n)}}on(t,n,r){this.validateEventType_(t),this.listeners_[t]=this.listeners_[t]||[],this.listeners_[t].push({callback:n,context:r});const i=this.getInitialEvent(t);i&&n.apply(r,i)}off(t,n,r){this.validateEventType_(t);const i=this.listeners_[t]||[];for(let o=0;o<i.length;o++)if(i[o].callback===n&&(!r||r===i[o].context)){i.splice(o,1);return}}validateEventType_(t){N(this.allowedEvents_.find(n=>n===t),"Unknown event: "+t)}}/** 1467 * @license 1468 * Copyright 2017 Google LLC 1469 * 1470 * Licensed under the Apache License, Version 2.0 (the "License"); 1471 * you may not use this file except in compliance with the License. 1472 * You may obtain a copy of the License at 1473 * 1474 * http://www.apache.org/licenses/LICENSE-2.0 1475 * 1476 * Unless required by applicable law or agreed to in writing, software 1477 * distributed under the License is distributed on an "AS IS" BASIS, 1478 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1479 * See the License for the specific language governing permissions and 1480 * limitations under the License. 1481 */class Nl extends wS{static getInstance(){return new Nl}constructor(){super(["online"]),this.online_=!0,typeof window<"u"&&typeof window.addEventListener<"u"&&!U1()&&(window.addEventListener("online",()=>{this.online_||(this.online_=!0,this.trigger("online",!0))},!1),window.addEventListener("offline",()=>{this.online_&&(this.online_=!1,this.trigger("online",!1))},!1))}getInitialEvent(t){return N(t==="online","Unknown event type: "+t),[this.online_]}currentlyOnline(){return this.online_}}/** 1482 * @license 1483 * Copyright 2017 Google LLC 1484 * 1485 * Licensed under the Apache License, Version 2.0 (the "License"); 1486 * you may not use this file except in compliance with the License. 1487 * You may obtain a copy of the License at 1488 * 1489 * http://www.apache.org/licenses/LICENSE-2.0 1490 * 1491 * Unless required by applicable law or agreed to in writing, software 1492 * distributed under the License is distributed on an "AS IS" BASIS, 1493 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1494 * See the License for the specific language governing permissions and 1495 * limitations under the License. 1496 */const ky=32,xy=768;class ne{constructor(t,n){if(n===void 0){this.pieces_=t.split("/");let r=0;for(let i=0;i<this.pieces_.length;i++)this.pieces_[i].length>0&&(this.pieces_[r]=this.pieces_[i],r++);this.pieces_.length=r,this.pieceNum_=0}else this.pieces_=t,this.pieceNum_=n}toString(){let t="";for(let n=this.pieceNum_;n<this.pieces_.length;n++)this.pieces_[n]!==""&&(t+="/"+this.pieces_[n]);return t||"/"}}function Z(){return new ne("")}function Y(e){return e.pieceNum_>=e.pieces_.length?null:e.pieces_[e.pieceNum_]}function yr(e){return e.pieces_.length-e.pieceNum_}function ae(e){let t=e.pieceNum_;return t<e.pieces_.length&&t++,new ne(e.pieces_,t)}function CS(e){return e.pieceNum_<e.pieces_.length?e.pieces_[e.pieces_.length-1]:null}function dR(e){let t="";for(let n=e.pieceNum_;n<e.pieces_.length;n++)e.pieces_[n]!==""&&(t+="/"+encodeURIComponent(String(e.pieces_[n])));return t||"/"}function ES(e,t=0){return e.pieces_.slice(e.pieceNum_+t)}function kS(e){if(e.pieceNum_>=e.pieces_.length)return null;const t=[];for(let n=e.pieceNum_;n<e.pieces_.length-1;n++)t.push(e.pieces_[n]);return new ne(t,0)}function Ae(e,t){const n=[];for(let r=e.pieceNum_;r<e.pieces_.length;r++)n.push(e.pieces_[r]);if(t instanceof ne)for(let r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{const r=t.split("/");for(let i=0;i<r.length;i++)r[i].length>0&&n.push(r[i])}return new ne(n,0)}function V(e){return e.pieceNum_>=e.pieces_.length}function at(e,t){const n=Y(e),r=Y(t);if(n===null)return t;if(n===r)return at(ae(e),ae(t));
vendor: 11,903 bytes, lines 1496-1527
1496throw new Error("INTERNAL ERROR: innerPath ("+t+") is not within outerPath ("+e+")")}function fp(e,t){if(yr(e)!==yr(t))return!1;for(let n=e.pieceNum_,r=t.pieceNum_;n<=e.pieces_.length;n++,r++)if(e.pieces_[n]!==t.pieces_[r])return!1;return!0}function Kt(e,t){let n=e.pieceNum_,r=t.pieceNum_;if(yr(e)>yr(t))return!1;for(;n<e.pieces_.length;){if(e.pieces_[n]!==t.pieces_[r])return!1;++n,++r}return!0}class hR{constructor(t,n){this.errorPrefix_=n,this.parts_=ES(t,0),this.byteLength_=Math.max(1,this.parts_.length);for(let r=0;r<this.parts_.length;r++)this.byteLength_+=Ru(this.parts_[r]);xS(this)}}function pR(e,t){e.parts_.length>0&&(e.byteLength_+=1),e.parts_.push(t),e.byteLength_+=Ru(t),xS(e)}function mR(e){const t=e.parts_.pop();e.byteLength_-=Ru(t),e.parts_.length>0&&(e.byteLength_-=1)}function xS(e){if(e.byteLength_>xy)throw new Error(e.errorPrefix_+"has a key path longer than "+xy+" bytes ("+e.byteLength_+").");if(e.parts_.length>ky)throw new Error(e.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+ky+") or object contains a cycle "+Pr(e))}function Pr(e){return e.parts_.length===0?"":"in property '"+e.parts_.join(".")+"'"}/** 1497 * @license 1498 * Copyright 2017 Google LLC 1499 * 1500 * Licensed under the Apache License, Version 2.0 (the "License"); 1501 * you may not use this file except in compliance with the License. 1502 * You may obtain a copy of the License at 1503 * 1504 * http://www.apache.org/licenses/LICENSE-2.0 1505 * 1506 * Unless required by applicable law or agreed to in writing, software 1507 * distributed under the License is distributed on an "AS IS" BASIS, 1508 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1509 * See the License for the specific language governing permissions and 1510 * limitations under the License. 1511 */class dp extends wS{static getInstance(){return new dp}constructor(){super(["visible"]);let t,n;typeof document<"u"&&typeof document.addEventListener<"u"&&(typeof document.hidden<"u"?(n="visibilitychange",t="hidden"):typeof document.mozHidden<"u"?(n="mozvisibilitychange",t="mozHidden"):typeof document.msHidden<"u"?(n="msvisibilitychange",t="msHidden"):typeof document.webkitHidden<"u"&&(n="webkitvisibilitychange",t="webkitHidden")),this.visible_=!0,n&&document.addEventListener(n,()=>{const r=!document[t];r!==this.visible_&&(this.visible_=r,this.trigger("visible",r))},!1)}getInitialEvent(t){return N(t==="visible","Unknown event type: "+t),[this.visible_]}}/** 1512 * @license 1513 * Copyright 2017 Google LLC 1514 * 1515 * Licensed under the Apache License, Version 2.0 (the "License"); 1516 * you may not use this file except in compliance with the License. 1517 * You may obtain a copy of the License at 1518 * 1519 * http://www.apache.org/licenses/LICENSE-2.0 1520 * 1521 * Unless required by applicable law or agreed to in writing, software 1522 * distributed under the License is distributed on an "AS IS" BASIS, 1523 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1524 * See the License for the specific language governing permissions and 1525 * limitations under the License. 1526 */const Eo=1e3,gR=60*5*1e3,by=30*1e3,yR=1.3,vR=3e4,_R="server_kill",Ty=3;class Pn extends SS{constructor(t,n,r,i,o,s,a,l){if(super(),this.repoInfo_=t,this.applicationId_=n,this.onDataUpdate_=r,this.onConnectStatus_=i,this.onServerInfoUpdate_=o,this.authTokenProvider_=s,this.appCheckTokenProvider_=a,this.authOverride_=l,this.id=Pn.nextPersistentConnectionId_++,this.log_=Hs("p:"+this.id+":"),this.interruptReasons_={},this.listens=new Map,this.outstandingPuts_=[],this.outstandingGets_=[],this.outstandingPutCount_=0,this.outstandingGetCount_=0,this.onDisconnectRequestQueue_=[],this.connected_=!1,this.reconnectDelay_=Eo,this.maxReconnectDelay_=gR,this.securityDebugCallback_=null,this.lastSessionId=null,this.establishConnectionTimer_=null,this.visible_=!1,this.requestCBHash_={},this.requestNumber_=0,this.realtime_=null,this.authToken_=null,this.appCheckToken_=null,this.forceTokenRefresh_=!1,this.invalidAuthTokenCount_=0,this.invalidAppCheckTokenCount_=0,this.firstConnection_=!0,this.lastConnectionAttemptTime_=null,this.lastConnectionEstablishedTime_=null,l&&!W1())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");dp.getInstance().on("visible",this.onVisible_,this),t.host.indexOf("fblocal")===-1&&Nl.getInstance().on("online",this.onOnline_,this)}sendRequest(t,n,r){const i=++this.requestNumber_,o={r:i,a:t,b:n};this.log_(Le(o)),N(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(o),r&&(this.requestCBHash_[i]=r)}get(t){this.initConnection_();const n=new ip,i={action:"g",request:{p:t._path.toString(),q:t._queryObject},onComplete:s=>{const a=s.d;s.s==="ok"?n.resolve(a):n.reject(a)}};this.outstandingGets_.push(i),this.outstandingGetCount_++;const o=this.outstandingGets_.length-1;return this.connected_&&this.sendGet_(o),n.promise}listen(t,n,r,i){this.initConnection_();const o=t._queryIdentifier,s=t._path.toString();this.log_("Listen called for "+s+" "+o),this.listens.has(s)||this.listens.set(s,new Map),N(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"listen() called for non-default but complete query"),N(!this.listens.get(s).has(o),"listen() called twice for same path/queryId.");const a={onComplete:i,hashFn:n,query:t,tag:r};this.listens.get(s).set(o,a),this.connected_&&this.sendListen_(a)}sendGet_(t){const n=this.outstandingGets_[t];this.sendRequest("g",n.request,r=>{delete this.outstandingGets_[t],this.outstandingGetCount_--,this.outstandingGetCount_===0&&(this.outstandingGets_=[]),n.onComplete&&n.onComplete(r)})}sendListen_(t){const n=t.query,r=n._path.toString(),i=n._queryIdentifier;this.log_("Listen on "+r+" for "+i);const o={p:r},s="q";t.tag&&(o.q=n._queryObject,o.t=t.tag),o.h=t.hashFn(),this.sendRequest(s,o,a=>{const l=a.d,u=a.s;Pn.warnOnListenWarnings_(l,n),(this.listens.get(r)&&this.listens.get(r).get(i))===t&&(this.log_("listen response",a),u!=="ok"&&this.removeListen_(r,i),t.onComplete&&t.onComplete(u,l))})}static warnOnListenWarnings_(t,n){if(t&&typeof t=="object"&&yn(t,"w")){const r=Qi(t,"w");if(Array.isArray(r)&&~r.indexOf("no_index")){const i='".indexOn": "'+n._queryParams.getIndex().toString()+'"',o=n._path.toString();Et(`Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding ${i} at ${o} to your security rules for better performance.`)}}}refreshAuthToken(t){this.authToken_=t,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},()=>{}),this.reduceReconnectDelayIfAdminCredential_(t)}reduceReconnectDelayIfAdminCredential_(t){(t&&t.length===40||aN(t))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=by)}refreshAppCheckToken(t){this.appCheckToken_=t,this.log_("App check token refreshed"),this.appCheckToken_?this.tryAppCheck():this.connected_&&this.sendRequest("unappeck",{},()=>{})}tryAuth(){if(this.connected_&&this.authToken_){const t=this.authToken_,n=sN(t)?"auth":"gauth",r={cred:t};this.authOverride_===null?r.noauth=!0:typeof this.authOverride_=="object"&&(r.authvar=this.authOverride_),this.sendRequest(n,r,i=>{const o=i.s,s=i.d||"error";this.authToken_===t&&(o==="ok"?this.invalidAuthTokenCount_=0:this.onAuthRevoked_(o,s))})}}tryAppCheck(){this.connected_&&this.appCheckToken_&&this.sendRequest("appcheck",{token:this.appCheckToken_},t=>{const n=t.s,r=t.d||"error";n==="ok"?this.invalidAppCheckTokenCount_=0:this.onAppCheckRevoked_(n,r)})}unlisten(t,n){const r=t._path.toString(),i=t._queryIdentifier;this.log_("Unlisten called for "+r+" "+i),N(t._queryParams.isDefault()||!t._queryParams.loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(r,i)&&this.connected_&&this.sendUnlisten_(r,i,t._queryObject,n)}sendUnlisten_(t,n,r,i){this.log_("Unlisten on "+t+" for "+n);const o={p:t},s="n";i&&(o.q=r,o.t=i),this.sendRequest(s,o)}onDisconnectPut(t,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("o",t,n,r):this.onDisconnectRequestQueue_.push({pathString:t,action:"o",data:n,onComplete:r})}onDisconnectMerge(t,n,r){this.initConnection_(),this.connected_?this.sendOnDisconnect_("om",t,n,r):this.onDisconnectRequestQueue_.push({pathString:t,action:"om",data:n,onComplete:r})}onDisconnectCancel(t,n){this.initConnection_(),this.connected_?this.sendOnDisconnect_("oc",t,null,n):this.onDisconnectRequestQueue_.push({pathString:t,action:"oc",data:null,onComplete:n})}sendOnDisconnect_(t,n,r,i){const o={p:n,d:r};this.log_("onDisconnect "+t,o),this.sendRequest(t,o,s=>{i&&setTimeout(()=>{i(s.s,s.d)},Math.floor(0))})}put(t,n,r,i){this.putInternal("p",t,n,r,i)}merge(t,n,r,i){this.putInternal("m",t,n,r,i)}putInternal(t,n,r,i,o){this.initConnection_();const s={p:n,d:r};o!==void 0&&(s.h=o),this.outstandingPuts_.push({action:t,request:s,onComplete:i}),this.outstandingPutCount_++;const a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+n)}sendPut_(t){const n=this.outstandingPuts_[t].action,r=this.outstandingPuts_[t].request,i=this.outstandingPuts_[t].onComplete;this.outstandingPuts_[t].queued=this.connected_,this.sendRequest(n,r,o=>{this.log_(n+" response",o),delete this.outstandingPuts_[t],this.outstandingPutCount_--,this.outstandingPutCount_===0&&(this.outstandingPuts_=[]),i&&i(o.s,o.d)})}reportStats(t){if(this.connected_){const n={c:t};this.log_("reportStats",n),this.sendRequest("s",n,r=>{if(r.s!=="ok"){const o=r.d;this.log_("reportStats","Error sending stats: "+o)}})}}onDataMessage_(t){if("r"in t){this.log_("from server: "+Le(t));const n=t.r,r=this.requestCBHash_[n];r&&(delete this.requestCBHash_[n],r(t.b))}else{if("error"in t)throw"A server-side error has occurred: "+t.error;"a"in t&&this.onDataPush_(t.a,t.b)}}onDataPush_(t,n){this.log_("handleServerMessage",t,n),t==="d"?this.onDataUpdate_(n.p,n.d,!1,n.t):t==="m"?this.onDataUpdate_(n.p,n.d,!0,n.t):t==="c"?this.onListenRevoked_(n.p,n.q):t==="ac"?this.onAuthRevoked_(n.s,n.d):t==="apc"?this.onAppCheckRevoked_(n.s,n.d):t==="sd"?this.onSecurityDebugPacket_(n):dd("Unrecognized action received from server: "+Le(t)+` 1527Are you using the latest client?`)}onReady_(t,n){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=new Date().getTime(),this.handleTimestamp_(t),this.lastSessionId=n,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)}scheduleConnect_(t){N(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(()=>{this.establishConnectionTimer_=null,this.establishConnection_()},Math.floor(t))}initConnection_(){!this.realtime_&&this.firstConnection_&&this.scheduleConnect_(0)}onVisible_(t){t&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=Eo,this.realtime_||this.scheduleConnect_(0)),this.visible_=t}onOnline_(t){t?(this.log_("Browser went online."),this.reconnectDelay_=Eo,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())}onRealtimeDisconnect_(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){this.visible_?this.lastConnectionEstablishedTime_&&(new Date().getTime()-this.lastConnectionEstablishedTime_>vR&&(this.reconnectDelay_=Eo),this.lastConnectionEstablishedTime_=null):(this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=new Date().getTime());const t=new Date().getTime()-this.lastConnectionAttemptTime_;let n=Math.max(0,this.reconnectDelay_-t);
1527n=Math.random()*n,this.log_("Trying to reconnect in "+n+"ms"),this.scheduleConnect_(n),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,this.reconnectDelay_*yR)}this.onConnectStatus_(!1)}async establishConnection_(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=new Date().getTime(),this.lastConnectionEstablishedTime_=null;const t=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+Pn.nextConnectionId_++,o=this.lastSessionId;let s=!1,a=null;const l=function(){a?a.close():(s=!0,r())},u=function(c){N(a,"sendRequest call when we're not connected not allowed."),a.sendRequest(c)};this.realtime_={close:l,sendRequest:u};const f=this.forceTokenRefresh_;this.forceTokenRefresh_=!1;try{const[c,d]=await Promise.all([this.authTokenProvider_.getToken(f),this.appCheckTokenProvider_.getToken(f)]);s?Ke("getToken() completed but was canceled"):(Ke("getToken() completed. Creating connection."),this.authToken_=c&&c.accessToken,this.appCheckToken_=d&&d.token,a=new fR(i,this.repoInfo_,this.applicationId_,this.appCheckToken_,this.authToken_,t,n,r,y=>{Et(y+" ("+this.repoInfo_.toString()+")"),this.interrupt(_R)},o))}catch(c){this.log_("Failed to get token: "+c),s||(this.repoInfo_.nodeAdmin&&Et(c),l())}}}interrupt(t){Ke("Interrupting connection for reason: "+t),this.interruptReasons_[t]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())}resume(t){Ke("Resuming connection for reason: "+t),delete this.interruptReasons_[t],ny(this.interruptReasons_)&&(this.reconnectDelay_=Eo,this.realtime_||this.scheduleConnect_(0))}handleTimestamp_(t){const n=t-new Date().getTime();this.onServerInfoUpdate_({serverTimeOffset:n})}cancelSentTransactions_(){for(let t=0;t<this.outstandingPuts_.length;t++){const n=this.outstandingPuts_[t];n&&"h"in n.request&&n.queued&&(n.onComplete&&n.onComplete("disconnect"),delete this.outstandingPuts_[t],this.outstandingPutCount_--)}this.outstandingPutCount_===0&&(this.outstandingPuts_=[])}onListenRevoked_(t,n){let r;n?r=n.map(o=>ap(o)).join("$"):r="default";const i=this.removeListen_(t,r);i&&i.onComplete&&i.onComplete("permission_denied")}removeListen_(t,n){const r=new ne(t).toString();let i;if(this.listens.has(r)){const o=this.listens.get(r);i=o.get(n),o.delete(n),o.size===0&&this.listens.delete(r)}else i=void 0;return i}onAuthRevoked_(t,n){Ke("Auth token revoked: "+t+"/"+n),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),(t==="invalid_token"||t==="permission_denied")&&(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=Ty&&(this.reconnectDelay_=by,this.authTokenProvider_.notifyForInvalidToken()))}onAppCheckRevoked_(t,n){Ke("App check token revoked: "+t+"/"+n),this.appCheckToken_=null,this.forceTokenRefresh_=!0,(t==="invalid_token"||t==="permission_denied")&&(this.invalidAppCheckTokenCount_++,this.invalidAppCheckTokenCount_>=Ty&&this.appCheckTokenProvider_.notifyForInvalidToken())}onSecurityDebugPacket_(t){this.securityDebugCallback_?this.securityDebugCallback_(t):"msg"in t&&console.log("FIREBASE: "+t.msg.replace(` 1528`,` 1529FIREBASE: `))}restoreState_(){this.tryAuth(),this.tryAppCheck();for(const t of this.listens.values())for(const n of t.values())this.sendListen_(n);for(let t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){const t=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(t.action,t.pathString,t.data,t.onComplete)}for(let t=0;t<this.outstandingGets_.length;t++)this.outstandingGets_[t]&&this.sendGet_(t)}sendConnectStats_(){const t={};let n="js";t["sdk."+n+"."+Z1.replace(/\./g,"-")]=1,U1()?t["framework.cordova"]=1:eN()&&(t["framework.reactnative"]=1),this.reportStats(t)}shouldReconnect_(){const t=Nl.getInstance().currentlyOnline();return ny(this.interruptReasons_)&&t}}Pn.nextPersistentConnectionId_=0;Pn.nextConnectionId_=0;/** 1530 * @license 1531 * Copyright 2017 Google LLC 1532 * 1533 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 11,973 bytes, lines 1534-1634
1534 * you may not use this file except in compliance with the License. 1535 * You may obtain a copy of the License at 1536 * 1537 * http://www.apache.org/licenses/LICENSE-2.0 1538 * 1539 * Unless required by applicable law or agreed to in writing, software 1540 * distributed under the License is distributed on an "AS IS" BASIS, 1541 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1542 * See the License for the specific language governing permissions and 1543 * limitations under the License. 1544 */class H{constructor(t,n){this.name=t,this.node=n}static Wrap(t,n){return new H(t,n)}}/** 1545 * @license 1546 * Copyright 2017 Google LLC 1547 * 1548 * Licensed under the Apache License, Version 2.0 (the "License"); 1549 * you may not use this file except in compliance with the License. 1550 * You may obtain a copy of the License at 1551 * 1552 * http://www.apache.org/licenses/LICENSE-2.0 1553 * 1554 * Unless required by applicable law or agreed to in writing, software 1555 * distributed under the License is distributed on an "AS IS" BASIS, 1556 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1557 * See the License for the specific language governing permissions and 1558 * limitations under the License. 1559 */class Ou{getCompare(){return this.compare.bind(this)}indexedValueChanged(t,n){const r=new H(Qr,t),i=new H(Qr,n);return this.compare(r,i)!==0}minPost(){return H.MIN}}/** 1560 * @license 1561 * Copyright 2017 Google LLC 1562 * 1563 * Licensed under the Apache License, Version 2.0 (the "License"); 1564 * you may not use this file except in compliance with the License. 1565 * You may obtain a copy of the License at 1566 * 1567 * http://www.apache.org/licenses/LICENSE-2.0 1568 * 1569 * Unless required by applicable law or agreed to in writing, software 1570 * distributed under the License is distributed on an "AS IS" BASIS, 1571 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1572 * See the License for the specific language governing permissions and 1573 * limitations under the License. 1574 */let xa;class bS extends Ou{static get __EMPTY_NODE(){return xa}static set __EMPTY_NODE(t){xa=t}compare(t,n){return oo(t.name,n.name)}isDefinedOn(t){throw io("KeyIndex.isDefinedOn not expected to be called.")}indexedValueChanged(t,n){return!1}minPost(){return H.MIN}maxPost(){return new H(gr,xa)}makePost(t,n){return N(typeof t=="string","KeyIndex indexValue must always be a string."),new H(t,xa)}toString(){return".key"}}const Br=new bS;/** 1575 * @license 1576 * Copyright 2017 Google LLC 1577 * 1578 * Licensed under the Apache License, Version 2.0 (the "License"); 1579 * you may not use this file except in compliance with the License. 1580 * You may obtain a copy of the License at 1581 * 1582 * http://www.apache.org/licenses/LICENSE-2.0 1583 * 1584 * Unless required by applicable law or agreed to in writing, software 1585 * distributed under the License is distributed on an "AS IS" BASIS, 1586 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1587 * See the License for the specific language governing permissions and 1588 * limitations under the License. 1589 */class ba{constructor(t,n,r,i,o=null){this.isReverse_=i,this.resultGenerator_=o,this.nodeStack_=[];let s=1;for(;!t.isEmpty();)if(t=t,s=n?r(t.key,n):1,i&&(s*=-1),s<0)this.isReverse_?t=t.left:t=t.right;else if(s===0){this.nodeStack_.push(t);break}else this.nodeStack_.push(t),this.isReverse_?t=t.right:t=t.left}getNext(){if(this.nodeStack_.length===0)return null;let t=this.nodeStack_.pop(),n;if(this.resultGenerator_?n=this.resultGenerator_(t.key,t.value):n={key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return n}hasNext(){return this.nodeStack_.length>0}peek(){if(this.nodeStack_.length===0)return null;const t=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value}}}class De{constructor(t,n,r,i,o){this.key=t,this.value=n,this.color=r??De.RED,this.left=i??lt.EMPTY_NODE,this.right=o??lt.EMPTY_NODE}copy(t,n,r,i,o){return new De(t??this.key,n??this.value,r??this.color,i??this.left,o??this.right)}count(){return this.left.count()+1+this.right.count()}isEmpty(){return!1}inorderTraversal(t){return this.left.inorderTraversal(t)||!!t(this.key,this.value)||this.right.inorderTraversal(t)}reverseTraversal(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)}min_(){return this.left.isEmpty()?this:this.left.min_()}minKey(){return this.min_().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(t,n,r){let i=this;const o=r(t,i.key);return o<0?i=i.copy(null,null,null,i.left.insert(t,n,r),null):o===0?i=i.copy(null,n,null,null,null):i=i.copy(null,null,null,null,i.right.insert(t,n,r)),i.fixUp_()}removeMin_(){if(this.left.isEmpty())return lt.EMPTY_NODE;let t=this;return!t.left.isRed_()&&!t.left.left.isRed_()&&(t=t.moveRedLeft_()),t=t.copy(null,null,null,t.left.removeMin_(),null),t.fixUp_()}remove(t,n){let r,i;if(r=this,n(t,r.key)<0)!r.left.isEmpty()&&!r.left.isRed_()&&!r.left.left.isRed_()&&(r=r.moveRedLeft_()),r=r.copy(null,null,null,r.left.remove(t,n),null);else{if(r.left.isRed_()&&(r=r.rotateRight_()),!r.right.isEmpty()&&!r.right.isRed_()&&!r.right.left.isRed_()&&(r=r.moveRedRight_()),n(t,r.key)===0){if(r.right.isEmpty())return lt.EMPTY_NODE;i=r.right.min_(),r=r.copy(i.key,i.value,null,null,r.right.removeMin_())}r=r.copy(null,null,null,null,r.right.remove(t,n))}return r.fixUp_()}isRed_(){return this.color}fixUp_(){let t=this;return t.right.isRed_()&&!t.left.isRed_()&&(t=t.rotateLeft_()),t.left.isRed_()&&t.left.left.isRed_()&&(t=t.rotateRight_()),t.left.isRed_()&&t.right.isRed_()&&(t=t.colorFlip_()),t}moveRedLeft_(){let t=this.colorFlip_();return t.right.left.isRed_()&&(t=t.copy(null,null,null,null,t.right.rotateRight_()),t=t.rotateLeft_(),t=t.colorFlip_()),t}moveRedRight_(){let t=this.colorFlip_();return t.left.left.isRed_()&&(t=t.rotateRight_(),t=t.colorFlip_()),t}rotateLeft_(){const t=this.copy(null,null,De.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight_(){const t=this.copy(null,null,De.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip_(){const t=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,n)}checkMaxDepth_(){const t=this.check_();return Math.pow(2,t)<=this.count()+1}check_(){if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");const t=this.left.check_();if(t!==this.right.check_())throw new Error("Black depths differ");return t+(this.isRed_()?0:1)}}De.RED=!0;De.BLACK=!1;class SR{copy(t,n,r,i,o){return this}insert(t,n,r){return new De(t,n,null)}remove(t,n){return this}count(){return 0}isEmpty(){return!0}inorderTraversal(t){return!1}reverseTraversal(t){return!1}minKey(){return null}maxKey(){return null}check_(){return 0}isRed_(){return!1}}class lt{constructor(t,n=lt.EMPTY_NODE){this.comparator_=t,this.root_=n}insert(t,n){return new lt(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,De.BLACK,null,null))}remove(t){return new lt(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,De.BLACK,null,null))}get(t){let n,r=this.root_;for(;!r.isEmpty();){if(n=this.comparator_(t,r.key),n===0)return r.value;n<0?r=r.left:n>0&&(r=r.right)}return null}getPredecessorKey(t){let n,r=this.root_,i=null;for(;!r.isEmpty();)if(n=this.comparator_(t,r.key),n===0){if(r.left.isEmpty())return i?i.key:null;for(r=r.left;!r.right.isEmpty();)r=r.right;return r.key}else n<0?r=r.left:n>0&&(i=r,r=r.right);throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")}isEmpty(){return this.root_.isEmpty()}count(){return this.root_.count()}minKey(){return this.root_.minKey()}maxKey(){return this.root_.maxKey()}inorderTraversal(t){return this.root_.inorderTraversal(t)}reverseTraversal(t){return this.root_.reverseTraversal(t)}getIterator(t){return new ba(this.root_,null,this.comparator_,!1,t)}getIteratorFrom(t,n){return new ba(this.root_,t,this.comparator_,!1,n)}getReverseIteratorFrom(t,n){return new ba(this.root_,t,this.comparator_,!0,n)}getReverseIterator(t){return new ba(this.root_,null,this.comparator_,!0,t)}}lt.EMPTY_NODE=new SR;/** 1590 * @license 1591 * Copyright 2017 Google LLC 1592 * 1593 * Licensed under the Apache License, Version 2.0 (the "License"); 1594 * you may not use this file except in compliance with the License. 1595 * You may obtain a copy of the License at 1596 * 1597 * http://www.apache.org/licenses/LICENSE-2.0 1598 * 1599 * Unless required by applicable law or agreed to in writing, software 1600 * distributed under the License is distributed on an "AS IS" BASIS, 1601 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1602 * See the License for the specific language governing permissions and 1603 * limitations under the License. 1604 */function wR(e,t){return oo(e.name,t.name)}function hp(e,t){return oo(e,t)}/** 1605 * @license 1606 * Copyright 2017 Google LLC 1607 * 1608 * Licensed under the Apache License, Version 2.0 (the "License"); 1609 * you may not use this file except in compliance with the License. 1610 * You may obtain a copy of the License at 1611 * 1612 * http://www.apache.org/licenses/LICENSE-2.0 1613 * 1614 * Unless required by applicable law or agreed to in writing, software 1615 * distributed under the License is distributed on an "AS IS" BASIS, 1616 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1617 * See the License for the specific language governing permissions and 1618 * limitations under the License. 1619 */let pd;function CR(e){pd=e}const TS=function(e){return typeof e=="number"?"number:"+rS(e):"string:"+e},IS=function(e){if(e.isLeafNode()){const t=e.val();N(typeof t=="string"||typeof t=="number"||typeof t=="object"&&yn(t,".sv"),"Priority must be a string or number.")}else N(e===pd||e.isEmpty(),"priority of unexpected type.");N(e===pd||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")};/** 1620 * @license 1621 * Copyright 2017 Google LLC 1622 * 1623 * Licensed under the Apache License, Version 2.0 (the "License"); 1624 * you may not use this file except in compliance with the License. 1625 * You may obtain a copy of the License at 1626 * 1627 * http://www.apache.org/licenses/LICENSE-2.0 1628 * 1629 * Unless required by applicable law or agreed to in writing, software 1630 * distributed under the License is distributed on an "AS IS" BASIS, 1631 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1632 * See the License for the specific language governing permissions and 1633 * limitations under the License. 1634 */let Iy;class Oe{static set __childrenNodeConstructor(t){Iy=t}static get __childrenNodeConstructor(){return Iy}constructor(t,n=Oe.__childrenNodeConstructor.EMPTY_NODE){this.value_=t,this.priorityNode_=n,this.lazyHash_=null,N(this.value_!==void 0&&this.value_!==null,"LeafNode shouldn't be created with null/undefined value."),IS(this.priorityNode_)}isLeafNode(){return!0}getPriority(){return this.priorityNode_}updatePriority(t){return new Oe(this.value_,t)}getImmediateChild(t){return t===".priority"?this.priorityNode_:Oe.__childrenNodeConstructor.EMPTY_NODE}getChild(t){return V(t)?this:Y(t)===".priority"?this.priorityNode_:Oe.__childrenNodeConstructor.EMPTY_NODE}hasChild(){return!1}getPredecessorChildName(t,n){return null}updateImmediateChild(t,n){return t===".priority"?this.updatePriority(n):n.isEmpty()&&t!==".priority"?this:Oe.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)}updateChild(t,n){const r=Y(t);return r===null?n:n.isEmpty()&&r!==".priority"?this:(N(r!==".priority"||yr(t)===1,".priority must be the last token in a path"),this.updateImmediateChild(r,Oe.__childrenNodeConstructor.EMPTY_NODE.updateChild(ae(t),n)))}isEmpty(){return!1}numChildren(){return 0}forEachChild(t,n){return!1}
1634val(t){return t&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()}hash(){if(this.lazyHash_===null){let t="";this.priorityNode_.isEmpty()||(t+="priority:"+TS(this.priorityNode_.val())+":");const n=typeof this.value_;t+=n+":",n==="number"?t+=rS(this.value_):t+=this.value_,this.lazyHash_=tS(t)}return this.lazyHash_}getValue(){return this.value_}compareTo(t){return t===Oe.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof Oe.__childrenNodeConstructor?-1:(N(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))}compareToLeafNode_(t){const n=typeof t.value_,r=typeof this.value_,i=Oe.VALUE_TYPE_ORDER.indexOf(n),o=Oe.VALUE_TYPE_ORDER.indexOf(r);return N(i>=0,"Unknown leaf type: "+n),N(o>=0,"Unknown leaf type: "+r),i===o?r==="object"?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i}withIndex(){return this}isIndexed(){return!0}equals(t){if(t===this)return!0;if(t.isLeafNode()){const n=t;return this.value_===n.value_&&this.priorityNode_.equals(n.priorityNode_)}else return!1}}Oe.VALUE_TYPE_ORDER=["object","boolean","number","string"];/** 1635 * @license 1636 * Copyright 2017 Google LLC 1637 * 1638 * Licensed under the Apache License, Version 2.0 (the "License"); 1639 * you may not use this file except in compliance with the License. 1640 * You may obtain a copy of the License at 1641 * 1642 * http://www.apache.org/licenses/LICENSE-2.0 1643 * 1644 * Unless required by applicable law or agreed to in writing, software 1645 * distributed under the License is distributed on an "AS IS" BASIS, 1646 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1647 * See the License for the specific language governing permissions and 1648 * limitations under the License. 1649 */let PS,NS;function ER(e){PS=e}function kR(e){NS=e}class xR extends Ou{compare(t,n){const r=t.node.getPriority(),i=n.node.getPriority(),o=r.compareTo(i);return o===0?oo(t.name,n.name):o}isDefinedOn(t){return!t.getPriority().isEmpty()}indexedValueChanged(t,n){return!t.getPriority().equals(n.getPriority())}minPost(){return H.MIN}maxPost(){return new H(gr,new Oe("[PRIORITY-POST]",NS))}makePost(t,n){const r=PS(t);return new H(n,new Oe("[PRIORITY-POST]",r))}toString(){return".priority"}}const ve=new xR;/** 1650 * @license 1651 * Copyright 2017 Google LLC 1652 * 1653 * Licensed under the Apache License, Version 2.0 (the "License"); 1654 * you may not use this file except in compliance with the License. 1655 * You may obtain a copy of the License at 1656 * 1657 * http://www.apache.org/licenses/LICENSE-2.0 1658 * 1659 * Unless required by applicable law or agreed to in writing, software 1660 * distributed under the License is distributed on an "AS IS" BASIS, 1661 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1662 * See the License for the specific language governing permissions and 1663 * limitations under the License. 1664 */const bR=Math.log(2);class TR{constructor(t){const n=o=>parseInt(Math.log(o)/bR,10),r=o=>parseInt(Array(o+1).join("1"),2);this.count=n(t+1),this.current_=this.count-1;const i=r(this.count);this.bits_=t+1&i}nextBitIsOne(){const t=!(this.bits_&1<<this.current_);return this.current_--,t}}const Al=function(e,t,n,r){e.sort(t);const i=function(l,u){const f=u-l;let c,d;if(f===0)return null;if(f===1)return c=e[l],d=n?n(c):c,new De(d,c.node,De.BLACK,null,null);{const y=parseInt(f/2,10)+l,g=i(l,y),_=i(y+1,u);return c=e[y],d=n?n(c):c,new De(d,c.node,De.BLACK,g,_)}},o=function(l){let u=null,f=null,c=e.length;const d=function(g,_){const C=c-g,m=c;c-=g;const p=i(C+1,m),v=e[C],S=n?n(v):v;y(new De(S,v.node,_,null,p))},y=function(g){u?(u.left=g,u=g):(f=g,u=g)};for(let g=0;g<l.count;++g){const _=l.nextBitIsOne(),C=Math.pow(2,l.count-(g+1));_?d(C,De.BLACK):(d(C,De.BLACK),d(C,De.RED))}return f},s=new TR(e.length),a=o(s);return new lt(r||t,a)};/** 1665 * @license 1666 * Copyright 2017 Google LLC 1667 * 1668 * Licensed under the Apache License, Version 2.0 (the "License"); 1669 * you may not use this file except in compliance with the License. 1670 * You may obtain a copy of the License at 1671 * 1672 * http://www.apache.org/licenses/LICENSE-2.0 1673 * 1674 * Unless required by applicable law or agreed to in writing, softw
1674are 1675 * distributed under the License is distributed on an "AS IS" BASIS, 1676 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1677 * See the License for the specific language governing permissions and 1678 * limitations under the License. 1679 */let Mc;const ui={};class bn{static get Default(){return N(ui&&ve,"ChildrenNode.ts has not been loaded"),Mc=Mc||new bn({".priority":ui},{".priority":ve}),Mc}constructor(t,n){this.indexes_=t,this.indexSet_=n}get(t){const n=Qi(this.indexes_,t);if(!n)throw new Error("No index defined for "+t);return n instanceof lt?n:null}hasIndex(t){return yn(this.indexSet_,t.toString())}addIndex(t,n){N(t!==Br,"KeyIndex always exists and isn't meant to be added to the IndexMap.");const r=[];let i=!1;const o=n.getIterator(H.Wrap);let s=o.getNext();for(;s;)i=i||t.isDefinedOn(s.node),r.push(s),s=o.getNext();let a;i?a=Al(r,t.getCompare()):a=ui;const l=t.toString(),u=Object.assign({},this.indexSet_);u[l]=t;const f=Object.assign({},this.indexes_);return f[l]=a,new bn(f,u)}addToIndexes(t,n){const r=bl(this.indexes_,(i,o)=>{const s=Qi(this.indexSet_,o);if(N(s,"Missing index implementation for "+o),i===ui)if(s.isDefinedOn(t.node)){const a=[],l=n.getIterator(H.Wrap);let u=l.getNext();for(;u;)u.name!==t.name&&a.push(u),u=l.getNext();return a.push(t),Al(a,s.getCompare())}else return ui;else{const a=n.get(t.name);let l=i;return a&&(l=l.remove(new H(t.name,a))),l.insert(t,t.node)}});return new bn(r,this.indexSet_)}removeFromIndexes(t,n){const r=bl(this.indexes_,i=>{if(i===ui)return i;{const o=n.get(t.name);return o?i.remove(new H(t.name,o)):i}});return new bn(r,this.indexSet_)}}/** 1680 * @license 1681 * Copyright 2017 Google LLC 1682 * 1683 * Licensed under the Apache License, Version 2.0 (the "License"); 1684 * you may not use this file except in compliance with the License. 1685 * You may obtain a copy of the License at 1686 * 1687 * http://www.apache.org/licenses/LICENSE-2.0 1688 * 1689 * Unless required by applicable law or agreed to in writing, software 1690 * distributed under the License is distributed on an "AS IS" BASIS, 1691 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1692 * See the License for the specific language governing permissions and 1693 * limitations under the License. 1694 */let ko;class B{static get EMPTY_NODE(){return ko||(ko=new B(new lt(hp),null,bn.Default))}constructor(t,n,r){this.children_=t,this.priorityNode_=n,this.indexMap_=r,this.lazyHash_=null,this.priorityNode_&&IS(this.priorityNode_),this.children_.isEmpty()&&N(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}isLeafNode(){return!1}getPriority(){return this.priorityNode_||ko}updatePriority(t){return this.children_.isEmpty()?this:new B(this.children_,t,this.indexMap_)}getImmediateChild(t){if(t===".priority")return this.getPriority();{const n=this.children_.get(t);return n===null?ko:n}}getChild(t){const n=Y(t);return n===null?this:this.getImmediateChild(n).getChild(ae(t))}hasChild(t){return this.children_.get(t)!==null}updateImmediateChild(t,n){if(N(n,"We should always be passing snapshot nodes"),t===".priority")return this.updatePriority(n);{const r=new H(t,n);let i,o;n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_));const s=i.isEmpty()?ko:this.priorityNode_;return new B(i,s,o)}}updateChild(t,n){const r=Y(t);if(r===null)return n;{N(Y(t)!==".priority"||yr(t)===1,".priority must be the last token in a path");const i=this.getImmediateChild(r).updateChild(ae(t),n);return this.updateImmediateChild(r,i)}}isEmpty(){return this.children_.isEmpty()}numChildren(){return this.children_.count()}val(t){if(this.isEmpty())return null;const n={};let r=0,i=0,o=!0;if(this.forEachChild(ve,(s,a)=>{n[s]=a.val(t),r++,o&&B.INTEGER_REGEXP_.test(s)?i=Math.max(i,Number(s)):o=!1}),!t&&o&&i<2*r){const s=[];for(const a in n)s[a]=n[a];return s}else return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n}hash(){if(this.lazyHash_===null){let t="";
1694this.getPriority().isEmpty()||(t+="priority:"+TS(this.getPriority().val())+":"),this.forEachChild(ve,(n,r)=>{const i=r.hash();i!==""&&(t+=":"+n+":"+i)}),this.lazyHash_=t===""?"":tS(t)}return this.lazyHash_}getPredecessorChildName(t,n,r){const i=this.resolveIndex_(r);if(i){const o=i.getPredecessorKey(new H(t,n));return o?o.name:null}else return this.children_.getPredecessorKey(t)}getFirstChildName(t){const n=this.resolveIndex_(t);if(n){const r=n.minKey();return r&&r.name}else return this.children_.minKey()}getFirstChild(t){const n=this.getFirstChildName(t);return n?new H(n,this.children_.get(n)):null}getLastChildName(t){const n=this.resolveIndex_(t);if(n){const r=n.maxKey();return r&&r.name}else return this.children_.maxKey()}getLastChild(t){const n=this.getLastChildName(t);return n?new H(n,this.children_.get(n)):null}forEachChild(t,n){const r=this.resolveIndex_(t);return r?r.inorderTraversal(i=>n(i.name,i.node)):this.children_.inorderTraversal(n)}getIterator(t){return this.getIteratorFrom(t.minPost(),t)}getIteratorFrom(t,n){const r=this.resolveIndex_(n);if(r)return r.getIteratorFrom(t,i=>i);{const i=this.children_.getIteratorFrom(t.name,H.Wrap);let o=i.peek();for(;o!=null&&n.compare(o,t)<0;)i.getNext(),o=i.peek();return i}}getReverseIterator(t){return this.getReverseIteratorFrom(t.maxPost(),t)}getReverseIteratorFrom(t,n){const r=this.resolveIndex_(n);if(r)return r.getReverseIteratorFrom(t,i=>i);{const i=this.children_.getReverseIteratorFrom(t.name,H.Wrap);let o=i.peek();for(;o!=null&&n.compare(o,t)>0;)i.getNext(),o=i.peek();return i}}compareTo(t){return this.isEmpty()?t.isEmpty()?0:-1:t.isLeafNode()||t.isEmpty()?1:t===Ys?-1:0}withIndex(t){if(t===Br||this.indexMap_.hasIndex(t))return this;{const n=this.indexMap_.addIndex(t,this.children_);return new B(this.children_,this.priorityNode_,n)}}isIndexed(t){return t===Br||this.indexMap_.hasIndex(t)}equals(t){if(t===this)return!0;if(t.isLeafNode())return!1;{const n=t;if(this.getPriority().equals(n.getPriority()))if(this.children_.count()===n.children_.count()){const r=this.getIterator(ve),i=n.getIterator(ve);let o=r.getNext(),s=i.getNext();for(;o&&s;){if(o.name!==s.name||!o.node.equals(s.node))return!1;o=r.getNext(),s=i.getNext()}return o===null&&s===null}else return!1;else return!1}}resolveIndex_(t){return t===Br?null:this.indexMap_.get(t.toString())}}B.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/;class IR extends B{constructor(){super(new lt(hp),B.EMPTY_NODE,bn.Default)}compareTo(t){return t===this?0:1}equals(t){return t===this}getPriority(){return this}getImmediateChild(t){return B.EMPTY_NODE}isEmpty(){return!1}}const Ys=new IR;Object.defineProperties(H,{MIN:{value:new H(Qr,B.EMPTY_NODE)},MAX:{value:new H(gr,Ys)}});bS.__EMPTY_NODE=B.EMPTY_NODE;Oe.__childrenNodeConstructor=B;CR(Ys);kR(Ys);/** 1695 * @license 1696 * Copyright 2017 Google LLC 1697 * 1698 * Licensed under the Apache License, Version 2.0 (the "License"); 1699 * you may not use this file except in compliance with the License. 1700 * You may obtain a copy of the License at 1701 * 1702 * http://www.apache.org/licenses/LICENSE-2.0 1703 * 1704 * Unless required by applicable law or agreed to in writing, software 1705 * distributed under the License is distributed on an "AS IS" BASIS, 1706 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1707 * See the License for the specific language governing permissions and 1708 * limitations under the License. 1709 */const PR=!0;function Qe(e,t=null){if(e===null)return B.EMPTY_NODE;if(typeof e=="object"&&".priority"in e&&(t=e[".priority"]),N(t===null||typeof t=="string"||typeof t=="number"||typeof t=="object"&&".sv"in t,"Invalid priority type found: "+typeof t),typeof e=="object"&&".value"in e&&e[".value"]!==null&&(e=e[".value"]),typeof e!="object"||".sv"in e){const n=e;return new Oe(n,Qe(t))}if(!(e instanceof Array)&&PR){const n=[];let r=!1;if(ht(e,(s,a)=>{if(s.substring(0,1)!=="."){const l=Qe(a);l.isEmpty()||(r=r||!l.getPriority().isEmpty(),n.push(new H(s,l)))}}),n.length===0)return B.EMPTY_NODE;const o=Al(n,wR,s=>s.name,hp);if(r){const s=Al(n,ve.getCompare());return new B(o,Qe(t),new bn({".priority":s},{".priority":ve}))}else return new B(o,Qe(t),bn.Default)}else{let n=B.EMPTY_NODE;return ht(e,(r,i)=>{if(yn(e,r)&&r.substring(0,1)!=="."){const o=Qe(i);(o.isLeafNode()||!o.isEmpty())&&(n=n.updateImmediateChild(r,o))}}),n.updatePriority(Qe(t))}}ER(Qe);/** 1710 * @license 1711 * Copyright 2017 Google LLC 1712 * 1713 * Licensed under the Apache License, Version 2.0 (the "License");
1714 * you may not use this file except in compliance with the License. 1715 * You may obtain a copy of the License at 1716 * 1717 * http://www.apache.org/licenses/LICENSE-2.0 1718 * 1719 * Unless required by applicable law or agreed to in writing, software 1720 * distributed under the License is distributed on an "AS IS" BASIS, 1721 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1722 * See the License for the specific language governing permissions and 1723 * limitations under the License. 1724 */class pp extends Ou{constructor(t){super(),this.indexPath_=t,N(!V(t)&&Y(t)!==".priority","Can't create PathIndex with empty path or .priority key")}extractChild(t){return t.getChild(this.indexPath_)}isDefinedOn(t){return!t.getChild(this.indexPath_).isEmpty()}compare(t,n){const r=this.extractChild(t.node),i=this.extractChild(n.node),o=r.compareTo(i);return o===0?oo(t.name,n.name):o}makePost(t,n){const r=Qe(t),i=B.EMPTY_NODE.updateChild(this.indexPath_,r);return new H(n,i)}maxPost(){const t=B.EMPTY_NODE.updateChild(this.indexPath_,Ys);return new H(gr,t)}toString(){return ES(this.indexPath_,0).join("/")}}/** 1725 * @license 1726 * Copyright 2017 Google LLC 1727 * 1728 * Licensed under the Apache License, Version 2.0 (the "License"); 1729 * you may not use this file except in compliance with the License. 1730 * You may obtain a copy of the License at 1731 * 1732 * http://www.apache.org/licenses/LICENSE-2.0 1733 * 1734 * Unless required by applicable law or agreed to in writing, software 1735 * distributed under the License is distributed on an "AS IS" BASIS, 1736 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1737 * See the License for the specific language governing permissions and 1738 * limitations under the License. 1739 */class NR extends Ou{compare(t,n){const r=t.node.compareTo(n.node);return r===0?oo(t.name,n.name):r}isDefinedOn(t){return!0}indexedValueChanged(t,n){return!t.equals(n)}
vendor: 8,497 bytes, lines 1739-1803
1739minPost(){return H.MIN}maxPost(){return H.MAX}makePost(t,n){const r=Qe(t);return new H(n,r)}toString(){return".value"}}const AS=new NR;/** 1740 * @license 1741 * Copyright 2017 Google LLC 1742 * 1743 * Licensed under the Apache License, Version 2.0 (the "License"); 1744 * you may not use this file except in compliance with the License. 1745 * You may obtain a copy of the License at 1746 * 1747 * http://www.apache.org/licenses/LICENSE-2.0 1748 * 1749 * Unless required by applicable law or agreed to in writing, software 1750 * distributed under the License is distributed on an "AS IS" BASIS, 1751 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1752 * See the License for the specific language governing permissions and 1753 * limitations under the License. 1754 */function RS(e){return{type:"value",snapshotNode:e}}function qi(e,t){return{type:"child_added",snapshotNode:t,childName:e}}function bs(e,t){return{type:"child_removed",snapshotNode:t,childName:e}}function Ts(e,t,n){return{type:"child_changed",snapshotNode:t,childName:e,oldSnap:n}}function AR(e,t){return{type:"child_moved",snapshotNode:t,childName:e}}/** 1755 * @license 1756 * Copyright 2017 Google LLC 1757 * 1758 * Licensed under the Apache License, Version 2.0 (the "License"); 1759 * you may not use this file except in compliance with the License. 1760 * You may obtain a copy of the License at 1761 * 1762 * http://www.apache.org/licenses/LICENSE-2.0 1763 * 1764 * Unless required by applicable law or agreed to in writing, software 1765 * distributed under the License is distributed on an "AS IS" BASIS, 1766 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1767 * See the License for the specific language governing permissions and 1768 * limitations under the License. 1769 */class mp{constructor(t){this.index_=t}updateChild(t,n,r,i,o,s){N(t.isIndexed(this.index_),"A node must be indexed if only a child is updated");const a=t.getImmediateChild(n);return a.getChild(i).equals(r.getChild(i))&&a.isEmpty()===r.isEmpty()||(s!=null&&(r.isEmpty()?t.hasChild(n)?s.trackChildChange(bs(n,a)):N(t.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):a.isEmpty()?s.trackChildChange(qi(n,r)):s.trackChildChange(Ts(n,r,a))),t.isLeafNode()&&r.isEmpty())?t:t.updateImmediateChild(n,r).withIndex(this.index_)}updateFullNode(t,n,r){return r!=null&&(t.isLeafNode()||t.forEachChild(ve,(i,o)=>{n.hasChild(i)||r.trackChildChange(bs(i,o))}),n.isLeafNode()||n.forEachChild(ve,(i,o)=>{if(t.hasChild(i)){const s=t.getImmediateChild(i);s.equals(o)||r.trackChildChange(Ts(i,o,s))}else r.trackChildChange(qi(i,o))})),n.withIndex(this.index_)}updatePriority(t,n){return t.isEmpty()?B.EMPTY_NODE:t.updatePriority(n)}filtersNodes(){return!1}getIndexedFilter(){return this}getIndex(){return this.index_}}/** 1770 * @license 1771 * Copyright 2017 Google LLC 1772 * 1773 * Licensed under the Apache License, Version 2.0 (the "License"); 1774 * you may not use this file except in compliance with the License. 1775 * You may obtain a copy of the License at 1776 * 1777 * http://www.apache.org/licenses/LICENSE-2.0 1778 * 1779 * Unless required by applicable law or agreed to in writing, software 1780 * distributed under the License is distributed on an "AS IS" BASIS, 1781 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1782 * See the License for the specific language governing permissions and 1783 * limitations under the License. 1784 */class Is{constructor(t){this.indexedFilter_=new mp(t.getIndex()),this.index_=t.getIndex(),this.startPost_=Is.getStartPost_(t),this.endPost_=Is.getEndPost_(t),this.startIsInclusive_=!t.startAfterSet_,this.endIsInclusive_=!t.endBeforeSet_}getStartPost(){return this.startPost_}getEndPost(){return this.endPost_}matches(t){const n=this.startIsInclusive_?this.index_.compare(this.getStartPost(),t)<=0:this.index_.compare(this.getStartPost(),t)<0,r=this.endIsInclusive_?this.index_.compare(t,this.getEndPost())<=0:this.index_.compare(t,this.getEndPost())<0;return n&&r}updateChild(t,n,r,i,o,s){return this.matches(new H(n,r))||(r=B.EMPTY_NODE),this.indexedFilter_.updateChild(t,n,r,i,o,s)}updateFullNode(t,n,r){n.isLeafNode()&&(n=B.EMPTY_NODE);let i=n.withIndex(this.index_);i=i.updatePriority(B.EMPTY_NODE);const o=this;return n.forEachChild(ve,(s,a)=>{o.matches(new H(s,a))||(i=i.updateImmediateChild(s,B.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(t,i,r)}updatePriority(t,n){return t}filtersNodes(){return!0}getIndexedFilter(){return this.indexedFilter_}getIndex(){return this.index_}static getStartPost_(t){if(t.hasStart()){const n=t.getIndexStartName();return t.getIndex().makePost(t.getIndexStartValue(),n)}else return t.getIndex().minPost()}static getEndPost_(t){if(t.hasEnd()){const n=t.getIndexEndName();return t.getIndex().makePost(t.getIndexEndValue(),n)}else return t.getIndex().maxPost()}}/** 1785 * @license 1786 * Copyright 2017 Google LLC 1787 * 1788 * Licensed under the Apache License, Version 2.0 (the "License"); 1789 * you may not use this file except in compliance with the License. 1790 * You may obtain a copy of the License at 1791 * 1792 * http://www.apache.org/licenses/LICENSE-2.0 1793 * 1794 * Unless required by applicable law or agreed to in writing, software 1795 * distributed under the License is distributed on an "AS IS" BASIS, 1796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1797 * See the License for the specific language governing permissions and 1798 * limitations under the License. 1799 */class RR{constructor(t){this.withinDirectionalStart=n=>this.reverse_?this.withinEndPost(n):this.withinStartPost(n),this.withinDirectionalEnd=n=>this.reverse_?this.withinStartPost(n):this.withinEndPost(n),this.withinStartPost=n=>{const r=this.index_.compare(this.rangedFilter_.getStartPost(),n);return this.startIsInclusive_?r<=0:r<0},this.withinEndPost=n=>{const r=this.index_.compare(n,this.rangedFilter_.getEndPost());return this.endIsInclusive_?r<=0:r<0},this.rangedFilter_=new Is(t),this.index_=t.getIndex(),this.limit_=t.getLimit(),this.reverse_=!t.isViewFromLeft(),this.startIsInclusive_=!t.startAfterSet_,this.endIsInclusive_=!t.endBeforeSet_}updateChild(t,n,r,i,o,s){return this.rangedFilter_.matches(new H(n,r))||(r=B.EMPTY_NODE),t.getImmediateChild(n).equals(r)?t:t.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(t,n,r,i,o,s):this.fullLimitUpdateChild_(t,n,r,o,s)}updateFullNode(t,n,r){let i;if(n.isLeafNode()||n.isEmpty())i=B.EMPTY_NODE.withIndex(this.index_);else if(this.limit_*2<n.numChildren()&&n.isIndexed(this.index_)){i=B.EMPTY_NODE.withIndex(this.index_);let o;this.reverse_?o=n.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):o=n.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);let s=0;for(;o.hasNext()&&s<this.limit_;){const a=o.getNext();if(this.withinDirectionalStart(a))if(this.withinDirectionalEnd(a))i=i.updateImmediateChild(a.name,a.node),s++;else break;else continue}}else{i=n.withIndex(this.index_),i=i.updatePriority(B.EMPTY_NODE);let o;this.reverse_?o=i.getReverseIterator(this.index_):o=i.getIterator(this.index_);let s=0;for(;o.hasNext();){const a=o.getNext();s<this.limit_&&this.withinDirectionalStart(a)&&this.withinDirectionalEnd(a)?s++:i=i.updateImmediateChild(a.name,B.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(t,i,r)}updatePriority(t,n){return t}filtersNodes(){return!0}getIndexedFilter(){return this.rangedFilter_.getIndexedFilter()}getIndex(){return this.index_}fullLimitUpdateChild_(t,n,r,i,o){let s;if(this.reverse_){const c=this.index_.getCompare();s=(d,y)=>c(y,d)}else s=this.index_.getCompare();const a=t;N(a.numChildren()===this.limit_,"");const l=new H(n,r),u=this.reverse_?a.getFirstChild(this.index_):a.getLastChild(this.index_),f=this.rangedFilter_.matches(l);if(a.hasChild(n)){const c=a.getImmediateChild(n);let d=i.getChildAfterChild(this.index_,u,this.reverse_);for(;d!=null&&(d.name===n||a.hasChild(d.name));)d=i.getChildAfterChild(this.index_,d,this.reverse_);const y=d==null?1:s(d,l);if(f&&!r.isEmpty()&&y>=0)return o!=null&&o.trackChildChange(Ts(n,r,c)),a.updateImmediateChild(n,r);{o!=null&&o.trackChildChange(bs(n,c));const _=a.updateImmediateChild(n,B.EMPTY_NODE);return d!=null&&this.rangedFilter_.matches(d)?(o!=null&&o.trackChildChange(qi(d.name,d.node)),_.updateImmediateChild(d.name,d.node)):_}}else return r.isEmpty()?t:f&&s(u,l)>=0?(o!=null&&(o.trackChildChange(bs(u.name,u.node)),o.trackChildChange(qi(n,r))),a.updateImmediateChild(n,r).updateImmediateChild(u.name,B.EMPTY_NODE)):t}}/** 1800 * @license 1801 * Copyright 2017 Google LLC 1802 * 1803 * Licensed under the Apache License, Version 2.0 (the "License");
1804 * you may not use this file except in compliance with the License. 1805 * You may obtain a copy of the License at 1806 * 1807 * http://www.apache.org/licenses/LICENSE-2.0 1808 * 1809 * Unless required by applicable law or agreed to in writing, software 1810 * distributed under the License is distributed on an "AS IS" BASIS, 1811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1812 * See the License for the specific language governing permissions and 1813 * limitations under the License. 1814 */class gp{constructor(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.startAfterSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.endBeforeSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=ve}hasStart(){return this.startSet_}isViewFromLeft(){return this.viewFrom_===""?this.startSet_:this.viewFrom_==="l"}getIndexStartValue(){return N(this.startSet_,"Only valid if start has been set"),this.indexStartValue_}getIndexStartName(){return N(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:Qr}hasEnd(){return this.endSet_}getIndexEndValue(){return N(this.endSet_,"Only valid if end has been set"),this.indexEndValue_}getIndexEndName(){return N(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:gr}hasLimit(){return this.limitSet_}hasAnchoredLimit(){return this.limitSet_&&this.viewFrom_!==""}getLimit(){return N(this.limitSet_,"Only valid if limit has been set"),this.limit_}getIndex(){return this.index_}loadsAllData(){return!(this.startSet_||this.endSet_||this.limitSet_)}isDefault(){return this.loadsAllData()&&this.index_===ve}copy(){const t=new gp;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.startAfterSet_=this.startAfterSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.endBeforeSet_=this.endBeforeSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t}}function OR(e){return e.loadsAllData()?new mp(e.getIndex()):e.hasLimit()?new RR(e):new Is(e)}function MR(e,t){const n=e.copy();return n.index_=t,n}function Py(e){const t={};if(e.isDefault())return t;let n;if(e.index_===ve?n="$priority":e.index_===AS?n="$value":e.index_===Br?n="$key":(N(e.index_ instanceof pp,"Unrecognized index type!"),n=e.index_.toString()),t.orderBy=Le(n),e.startSet_){const r=e.startAfterSet_?"startAfter":"startAt";t[r]=Le(e.indexStartValue_),e.startNameSet_&&(t[r]+=","+Le(e.indexStartName_))}if(e.endSet_){const r=e.endBeforeSet_?"endBefore":"endAt";t[r]=Le(e.indexEndValue_),e.endNameSet_&&(t[r]+=","+Le(e.indexEndName_))}return e.limitSet_&&(e.isViewFromLeft()?t.limitToFirst=e.limit_:t.limitToLast=e.limit_),t}function Ny(e){const t={};if(e.startSet_&&(t.sp=e.indexStartValue_,e.startNameSet_&&(t.sn=e.indexStartName_),t.sin=!e.startAfterSet_),e.endSet_&&(t.ep=e.indexEndValue_,e.endNameSet_&&(t.en=e.indexEndName_),t.ein=!e.endBeforeSet_),e.limitSet_){t.l=e.limit_;let n=e.viewFrom_;n===""&&(e.isViewFromLeft()?n="l":n="r"),t.vf=n}return e.index_!==ve&&(t.i=e.index_.toString()),t}/** 1815 * @license 1816 * Copyright 2017 Google LLC 1817 * 1818 * Licensed under the Apache License, Version 2.0 (the "License"); 1819 * you may not use this file except in compliance with the License. 1820 * You may obtain a copy of the License at 1821 * 1822 * http://www.apache.org/licenses/LICENSE-2.0 1823 * 1824 * Unless required by applicable law or agreed to in writing, software 1825 * distributed under the License is distributed on an "AS IS" BASIS, 1826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1827 * See the License for the specific language governing permissions and 1828 * limitations under the License. 1829 */class Rl extends SS{reportStats(t){throw new Error("Method not implemented.")}static getListenId_(t,n){return n!==void 0?"tag$"+n:(N(t._queryParams.isDefault(),"should have a tag if it's not a default query."),t._path.toString())}constructor(t,n,r,i){super(),this.repoInfo_=t,this.onDataUpdate_=n,this.authTokenProvider_=r,this.appCheckTokenProvider_=i,this.log_=Hs("p:rest:"),this.listens_={}}listen(t,n,r,i){const o=t._path.toString();this.log_("Listen called for "+o+" "+t._queryIdentifier);const s=Rl.getListenId_(t,r),a={};this.listens_[s]=a;const l=Py(t._queryParams);this.restRequest_(o+".json",l,(u,f)=>{let c=f;if(u===404&&(c=null,u=null),u===null&&this.onDataUpdate_(o,c,!1,r),Qi(this.listens_,s)===a){let d;u?u===401?d="permission_denied":d="rest_error:"+u:d="ok",i(d,null)}})}unlisten(t,n){const r=Rl.getListenId_(t,n);delete this.listens_[r]}get(t){const n=Py(t._queryParams),r=t._path.toString(),i=new ip;return this.restRequest_(r+".json",n,(o,s)=>{let a=s;o===404&&(a=null,o=null),o===null?(this.onDataUpdate_(r,a,!1,null),i.resolve(a)):i.reject(new Error(a))}),i.promise}refreshAuthToken(t){}restRequest_(t,n={},r){return n.format="export",Promise.all([this.authTokenProvider_.getToken(!1),this.appCheckTokenProvider_.getToken(!1)]).then(([i,o])=>{i&&i.accessToken&&(n.auth=i.accessToken),o&&o.token&&(n.ac=o.token);const s=(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host+t+"?ns="+this.repoInfo_.namespace+lN(n);this.log_("Sending REST request for "+s);const a=new XMLHttpRequest;a.onreadystatechange=()=>{if(r&&a.readyState===4){this.log_("REST Response for "+s+" received. status:",a.status,"response:",a.responseText);let l=null;if(a.status>=200&&a.status<300){try{l=Cs(a.responseText)}catch{Et("Failed to parse JSON response for "+s+": "+a.responseText)}r(null,l)}else a.status!==401&&a.status!==404&&Et("Got unsuccessful REST response for "+s+" Status: "+a.status),r(a.status);r=null}},a.open("GET",s,!0),a.send()})}}/** 1830 * @license 1831 * Copyright 2017 Google LLC 1832 * 1833 * Licensed under the Apache License, Version 2.0 (the "License");
1834 * you may not use this file except in compliance with the License. 1835 * You may obtain a copy of the License at 1836 * 1837 * http://www.apache.org/licenses/LICENSE-2.0 1838 * 1839 * Unless required by applicable law or agreed to in writing, software 1840 * distributed under the License is distributed on an "AS IS" BASIS, 1841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1842 * See the License for the specific language governing permissions and 1843 * limitations under the License. 1844 */class DR{constructor(){this.rootNode_=B.EMPTY_NODE}getNode(t){return this.rootNode_.getChild(t)}updateSnapshot(t,n){this.rootNode_=this.rootNode_.updateChild(t,n)}}/** 1845 * @license 1846 * Copyright 2017 Google LLC 1847 * 1848 * Licensed under the Apache License, Version 2.0 (the "License"); 1849 * you may not use this file except in compliance with the License. 1850 * You may obtain a copy of the License at 1851 * 1852 * http://www.apache.org/licenses/LICENSE-2.0 1853 * 1854 * Unless required by applicable law or agreed to in writing, software 1855 * distributed under the License is distributed on an "AS IS" BASIS, 1856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1857 * See the License for the specific language governing permissions and 1858 * limitations under the License. 1859 */function Ol(){return{value:null,children:new Map}}function OS(e,t,n){if(V(t))e.value=n,e.children.clear();else if(e.value!==null)e.value=e.value.updateChild(t,n);else{const r=Y(t);e.children.has(r)||e.children.set(r,Ol());const i=e.children.get(r);t=ae(t),OS(i,t,n)}}function md(e,t,n){e.value!==null?n(t,e.value):LR(e,(r,i)=>{const o=new ne(t.toString()+"/"+r);md(i,o,n)})}function LR(e,t){e.children.forEach((n,r)=>{t(r,n)})}/** 1860 * @license 1861 * Copyright 2017 Google LLC 1862 * 1863 * Licensed under the Apache License, Version 2.0 (the "License"); 1864 * you may not use this file except in compliance with the License. 1865 * You may obtain a copy of the License at 1866 * 1867 * http://www.apache.org/licenses/LICENSE-2.0 1868 * 1869 * Unless required by applicable law or agreed to in writing, software 1870 * distributed under the License is distributed on an "AS IS" BASIS, 1871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1872 * See the License for the specific language governing permissions and 1873 * limitations under the License. 1874 */class FR{constructor(t){this.collection_=t,this.last_=null}get(){const t=this.collection_.get(),n=Object.assign({},t);return this.last_&&ht(this.last_,(r,i)=>{n[r]=n[r]-i}),this.last_=t,n}}/** 1875 * @license 1876 * Copyright 2017 Google LLC 1877 * 1878 * Licensed under the Apache License, Version 2.0 (the "License"); 1879 * you may not use this file except in compliance with the License. 1880 * You may obtain a copy of the License at 1881 * 1882 * http://www.apache.org/licenses/LICENSE-2.0 1883 * 1884 * Unless required by applicable law or agreed to in writing, software 1885 * distributed under the License is distributed on an "AS IS" BASIS, 1886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1887 * See the License for the specific language governing permissions and 1888 * limitations under the License. 1889 */const Ay=10*1e3,$R=30*1e3,zR=5*60*1e3;class BR{constructor(t,n){this.server_=n,this.statsToReport_={},this.statsListener_=new FR(t);const r=Ay+($R-Ay)*Math.random();Ko(this.reportStats_.bind(this),Math.floor(r))}reportStats_(){const t=this.statsListener_.get(),n={};let r=!1;ht(t,(i,o)=>{o>0&&yn(this.statsToReport_,i)&&(n[i]=o,r=!0)}),r&&this.server_.reportStats(n),Ko(this.reportStats_.bind(this),Math.floor(Math.random()*2*zR))}}/** 1890 * @license 1891 * Copyright 2017 Google LLC 1892 * 1893 * Licensed under the Apache License, Version 2.0 (the "License"); 1894 * you may not use this file except in compliance with the License. 1895 * You may obtain a copy of the License at 1896 * 1897 * http://www.apache.org/licenses/LICENSE-2.0 1898 * 1899 * Unless required by applicable law or agreed to in writing, software 1900 * distributed under the License is distributed on an "AS IS" BASIS, 1901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1902 * See the License for the specific language governing permissions and 1903 * limitations under the License. 1904 */var Qt;(function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"})(Qt||(Qt={}));function MS(){return{fromUser:!0,fromServer:!1,queryId:null,tagged:!1}}function yp(){return{fromUser:!1,fromServer:!0,queryId:null,tagged:!1}}function vp(e){return{fromUser:!1,fromServer:!0,queryId:e,tagged:!0}}/** 1905 * @license 1906 * Copyright 2017 Google LLC 1907 * 1908 * Licensed under the Apache License, Version 2.0 (the "License");
1909 * you may not use this file except in compliance with the License. 1910 * You may obtain a copy of the License at 1911 * 1912 * http://www.apache.org/licenses/LICENSE-2.0 1913 * 1914 * Unless required by applicable law or agreed to in writing, software 1915 * distributed under the License is distributed on an "AS IS" BASIS, 1916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1917 * See the License for the specific language governing permissions and 1918 * limitations under the License. 1919 */class Ml{constructor(t,n,r){this.path=t,this.affectedTree=n,this.revert=r,this.type=Qt.ACK_USER_WRITE,this.source=MS()}operationForChild(t){if(V(this.path)){if(this.affectedTree.value!=null)return N(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;{const n=this.affectedTree.subtree(new ne(t));return new Ml(Z(),n,this.revert)}}else return N(Y(this.path)===t,"operationForChild called for unrelated child."),new Ml(ae(this.path),this.affectedTree,this.revert)}}/** 1920 * @license 1921 * Copyright 2017 Google LLC 1922 * 1923 * Licensed under the Apache License, Version 2.0 (the "License"); 1924 * you may not use this file except in compliance with the License. 1925 * You may obtain a copy of the License at 1926 * 1927 * http://www.apache.org/licenses/LICENSE-2.0 1928 * 1929 * Unless required by applicable law or agreed to in writing, software 1930 * distributed under the License is distributed on an "AS IS" BASIS, 1931 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1932 * See the License for the specific language governing permissions and 1933 * limitations under the License. 1934 */class Ps{constructor(t,n){this.source=t,this.path=n,this.type=Qt.LISTEN_COMPLETE}operationForChild(t){return V(this.path)?new Ps(this.source,Z()):new Ps(this.source,ae(this.path))}}/** 1935 * @license 1936 * Copyright 2017 Google LLC 1937 * 1938 * Licensed under the Apache License, Version 2.0 (the "License"); 1939 * you may not use this file except in compliance with the License. 1940 * You may obtain a copy of the License at 1941 * 1942 * http://www.apache.org/licenses/LICENSE-2.0 1943 * 1944 * Unless required by applicable law or agreed to in writing, software 1945 * distributed under the License is distributed on an "AS IS" BASIS, 1946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1947 * See the License for the specific language governing permissions and 1948 * limitations under the License. 1949 */class qr{constructor(t,n,r){this.source=t,this.path=n,this.snap=r,this.type=Qt.OVERWRITE}operationForChild(t){return V(this.path)?new qr(this.source,Z(),this.snap.getImmediateChild(t)):new qr(this.source,ae(this.path),this.snap)}}/** 1950 * @license 1951 * Copyright 2017 Google LLC 1952 * 1953 * Licensed under the Apache License, Version 2.0 (the "License"); 1954 * you may not use this file except in compliance with the License. 1955 * You may obtain a copy of the License at 1956 * 1957 * http://www.apache.org/licenses/LICENSE-2.0 1958 * 1959 * Unless required by applicable law or agreed to in writing, software 1960 * distributed under the License is distributed on an "AS IS" BASIS, 1961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1962 * See the License for the specific language governing permissions and 1963 * limitations under the License. 1964 */class Ns{constructor(t,n,r){this.source=t,this.path=n,this.children=r,this.type=Qt.MERGE}operationForChild(t){if(V(this.path)){const n=this.children.subtree(new ne(t));return n.isEmpty()?null:n.value?new qr(this.source,Z(),n.value):new Ns(this.source,Z(),n)}else return N(Y(this.path)===t,"Can't get a merge for a child not on the path of the operation"),new Ns(this.source,ae(this.path),this.children)}toString(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"}}/** 1965 * @license 1966 * Copyright 2017 Google LLC 1967 * 1968 * Licensed under the Apache License, Version 2.0 (the "License"); 1969 * you may not use this file except in compliance with the License. 1970 * You may obtain a copy of the License at 1971 * 1972 * http://www.apache.org/licenses/LICENSE-2.0 1973 * 1974 * Unless required by applicable law or agreed to in writing, software 1975 * distributed under the License is distributed on an "AS IS" BASIS, 1976 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1977 * See the License for the specific language governing permissions and 1978 * limitations under the License. 1979 */class Xr{constructor(t,n,r){this.node_=t,this.fullyInitialized_=n,this.filtered_=r}isFullyInitialized(){return this.fullyInitialized_}isFiltered(){return this.filtered_}isCompleteForPath(t){if(V(t))return this.isFullyInitialized()&&!this.filtered_;const n=Y(t);return this.isCompleteForChild(n)}isCompleteForChild(t){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(t)}getNode(){return this.node_}}/** 1980 * @license 1981 * Copyright 2017 Google LLC 1982 * 1983 * Licensed under the Apache License, Version 2.0 (the "License");
1984 * you may not use this file except in compliance with the License. 1985 * You may obtain a copy of the License at 1986 * 1987 * http://www.apache.org/licenses/LICENSE-2.0 1988 * 1989 * Unless required by applicable law or agreed to in writing, software 1990 * distributed under the License is distributed on an "AS IS" BASIS, 1991 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1992 * See the License for the specific language governing permissions and 1993 * limitations under the License. 1994 */class jR{constructor(t){this.query_=t,this.index_=this.query_._queryParams.getIndex()}}function UR(e,t,n,r){const i=[],o=[];return t.forEach(s=>{s.type==="child_changed"&&e.index_.indexedValueChanged(s.oldSnap,s.snapshotNode)&&o.push(AR(s.childName,s.snapshotNode))}),xo(e,i,"child_removed",t,r,n),xo(e,i,"child_added",t,r,n),xo(e,i,"child_moved",o,r,n),xo(e,i,"child_changed",t,r,n),xo(e,i,"value",t,r,n),i}function xo(e,t,n,r,i,o){const s=r.filter(a=>a.type===n);s.sort((a,l)=>VR(e,a,l)),s.forEach(a=>{const l=WR(e,a,o);i.forEach(u=>{u.respondsTo(a.type)&&t.push(u.createEvent(l,e.query_))})})}function WR(e,t,n){return t.type==="value"||t.type==="child_removed"||(t.prevName=n.getPredecessorChildName(t.childName,t.snapshotNode,e.index_)),t}function VR(e,t,n){if(t.childName==null||n.childName==null)throw io("Should only compare child_ events.");const r=new H(t.childName,t.snapshotNode),i=new H(n.childName,n.snapshotNode);return e.index_.compare(r,i)}/** 1995 * @license 1996 * Copyright 2017 Google LLC 1997 * 1998 * Licensed under the Apache License, Version 2.0 (the "License"); 1999 * you may not use this file except in compliance with the License. 2000 * You may obtain a copy of the License at 2001 * 2002 * http://www.apache.org/licenses/LICENSE-2.0 2003 * 2004 * Unless required by applicable law or agreed to in writing, software 2005 * distributed under the License is distributed on an "AS IS" BASIS, 2006 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2007 * See the License for the specific language governing permissions and 2008 * limitations under the License. 2009 */function Mu(e,t){return{eventCache:e,serverCache:t}}function Qo(e,t,n,r){return Mu(new Xr(t,n,r),e.serverCache)}function DS(e,t,n,r){return Mu(e.eventCache,new Xr(t,n,r))}function gd(e){return e.eventCache.isFullyInitialized()?e.eventCache.getNode():null}function Jr(e){return e.serverCache.isFullyInitialized()?e.serverCache.getNode():null}/** 2010 * @license 2011 * Copyright 2017 Google LLC 2012 * 2013 * Licensed under the Apache License, Version 2.0 (the "License"); 2014 * you may not use this file except in compliance with the License. 2015 * You may obtain a copy of the License at 2016 * 2017 * http://www.apache.org/licenses/LICENSE-2.0 2018 * 2019 * Unless required by applicable law or agreed to in writing, software 2020 * distributed under the License is distributed on an "AS IS" BASIS, 2021 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2022 * See the License for the specific language governing permissions and 2023 * limitations under the License. 2024 */let Dc;const HR=()=>(Dc||(Dc=new lt(AA)),Dc);class ce{static fromObject(t){let n=new ce(null);return ht(t,(r,i)=>{n=n.set(new ne(r),i)}),n}constructor(t,n=HR()){this.value=t,this.children=n}isEmpty(){return this.value===null&&this.children.isEmpty()}findRootMostMatchingPathAndValue(t,n){if(this.value!=null&&n(this.value))return{path:Z(),value:this.value};if(V(t))return null;{const r=Y(t),i=this.children.get(r);if(i!==null){const o=i.findRootMostMatchingPathAndValue(ae(t),n);return o!=null?{path:Ae(new ne(r),o.path),value:o.value}:null}else return null}}findRootMostValueAndPath(t){return this.findRootMostMatchingPathAndValue(t,()=>!0)}subtree(t){if(V(t))return this;{const n=Y(t),r=this.children.get(n);return r!==null?r.subtree(ae(t)):new ce(null)}}set(t,n){if(V(t))return new ce(n,this.children);{const r=Y(t),o=(this.children.get(r)||new ce(null)).set(ae(t),n),s=this.children.insert(r,o);return new ce(this.value,s)}}remove(t){if(V(t))return this.children.isEmpty()?new ce(null):new ce(null,this.children);{const n=Y(t),r=this.children.get(n);if(r){const i=r.remove(ae(t));let o;return i.isEmpty()?o=this.children.remove(n):o=this.children.insert(n,i),this.value===null&&o.isEmpty()?new ce(null):new ce(this.value,o)}else return this}}get(t){if(V(t))return this.value;{const n=Y(t),r=this.children.get(n);return r?r.get(ae(t)):null}}setTree(t,n){if(V(t))return n;{const r=Y(t),o=(this.children.get(r)||new ce(null)).setTree(ae(t),n);let s;return o.isEmpty()?s=this.children.remove(r):s=this.children.insert(r,o),new ce(this.value,s)}}fold(t){return this.fold_(Z(),t)}fold_(t,n){const r={};return this.children.inorderTraversal((i,o)=>{r[i]=o.fold_(Ae(t,i),n)}),n(t,this.value,r)}findOnPath(t,n){return this.findOnPath_(t,Z(),n)}findOnPath_(t,n,r){const i=this.value?r(n,this.value):!1;if(i)return i;if(V(t))return null;{const o=Y(t),s=this.children.get(o);return s?s.findOnPath_(ae(t),Ae(n,o),r):null}}foreachOnPath(t,n){return this.foreachOnPath_(t,Z(),n)}foreachOnPath_(t,n,r){if(V(t))return this;{this.value&&r(n,this.value);const i=Y(t),o=this.children.get(i);return o?o.foreachOnPath_(ae(t),Ae(n,i),r):new ce(null)}}foreach(t){this.foreach_(Z(),t)}foreach_(t,n){this.children.inorderTraversal((r,i)=>{i.foreach_(Ae(t,r),n)}),this.value&&n(t,this.value)}foreachChild(t){this.children.inorderTraversal((n,r)=>{r.value&&t(n,r.value)})}}/** 2025 * @license 2026 * Copyright 2017 Google LLC 2027 * 2028 * Licensed under the Apache License, Version 2.0 (the "License");
2029 * you may not use this file except in compliance with the License. 2030 * You may obtain a copy of the License at 2031 * 2032 * http://www.apache.org/licenses/LICENSE-2.0 2033 * 2034 * Unless required by applicable law or agreed to in writing, software 2035 * distributed under the License is distributed on an "AS IS" BASIS, 2036 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2037 * See the License for the specific language governing permissions and 2038 * limitations under the License. 2039 */class Jt{constructor(t){this.writeTree_=t}static empty(){return new Jt(new ce(null))}}function qo(e,t,n){if(V(t))return new Jt(new ce(n));{const r=e.writeTree_.findRootMostValueAndPath(t);if(r!=null){const i=r.path;let o=r.value;const s=at(i,t);return o=o.updateChild(s,n),new Jt(e.writeTree_.set(i,o))}else{const i=new ce(n),o=e.writeTree_.setTree(t,i);return new Jt(o)}}}function Ry(e,t,n){let r=e;return ht(n,(i,o)=>{r=qo(r,Ae(t,i),o)}),r}function Oy(e,t){if(V(t))return Jt.empty();{const n=e.writeTree_.setTree(t,new ce(null));return new Jt(n)}}function yd(e,t){return ti(e,t)!=null}function ti(e,t){const n=e.writeTree_.findRootMostValueAndPath(t);return n!=null?e.writeTree_.get(n.path).getChild(at(n.path,t)):null}function My(e){const t=[],n=e.writeTree_.value;return n!=null?n.isLeafNode()||n.forEachChild(ve,(r,i)=>{t.push(new H(r,i))}):e.writeTree_.children.inorderTraversal((r,i)=>{i.value!=null&&t.push(new H(r,i.value))}),t}function lr(e,t){if(V(t))return e;{const n=ti(e,t);return n!=null?new Jt(new ce(n)):new Jt(e.writeTree_.subtree(t))}}function vd(e){return e.writeTree_.isEmpty()}function Xi(e,t){return LS(Z(),e.writeTree_,t)}function LS(e,t,n){if(t.value!=null)return n.updateChild(e,t.value);{let r=null;return t.children.inorderTraversal((i,o)=>{i===".priority"?(N(o.value!==null,"Priority writes must always be leaf nodes"),r=o.value):n=LS(Ae(e,i),o,n)}),!n.getChild(e).isEmpty()&&r!==null&&(n=n.updateChild(Ae(e,".priority"),r)),n}}/** 2040 * @license 2041 * Copyright 2017 Google LLC 2042 * 2043 * Licensed under the Apache License, Version 2.0 (the "License"); 2044 * you may not use this file except in compliance with the License. 2045 * You may obtain a copy of the License at 2046 * 2047 * http://www.apache.org/licenses/LICENSE-2.0 2048 * 2049 * Unless required by applicable law or agreed to in writing, software 2050 * distributed under the License is distributed on an "AS IS" BASIS, 2051 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2052 * See the License for the specific language governing permissions and 2053 * limitations under the License. 2054 */function _p(e,t){return BS(t,e)}function GR(e,t,n,r,i){N(r>e.lastWriteId,"Stacking an older write on top of newer ones"),i===void 0&&(i=!0),e.allWrites.push({path:t,snap:n,writeId:r,visible:i}),i&&(e.visibleWrites=qo(e.visibleWrites,t,n)),e.lastWriteId=r}function YR(e,t){for(let n=0;n<e.allWrites.length;n++){const r=e.allWrites[n];if(r.writeId===t)return r}return null}function KR(e,t){const n=e.allWrites.findIndex(a=>a.writeId===t);N(n>=0,"removeWrite called with nonexistent writeId.");const r=e.allWrites[n];e.allWrites.splice(n,1);let i=r.visible,o=!1,s=e.allWrites.length-1;for(;i&&s>=0;){const a=e.allWrites[s];a.visible&&(s>=n&&QR(a,r.path)?i=!1:Kt(r.path,a.path)&&(o=!0)),s--}if(i){if(o)return qR(e),!0;if(r.snap)e.visibleWrites=Oy(e.visibleWrites,r.path);else{const a=r.children;ht(a,l=>{e.visibleWrites=Oy(e.visibleWrites,Ae(r.path,l))})}return!0}else return!1}function QR(e,t){if(e.snap)return Kt(e.path,t);for(const n in e.children)if(e.children.hasOwnProperty(n)&&Kt(Ae(e.path,n),t))return!0;return!1}function qR(e){e.visibleWrites=FS(e.allWrites,XR,Z()),e.allWrites.length>0?e.lastWriteId=e.allWrites[e.allWrites.length-1].writeId:e.lastWriteId=-1}function XR(e){return e.visible}function FS(e,t,n){let r=Jt.empty();for(let i=0;i<e.length;++i){const o=e[i];if(t(o)){const s=o.path;let a;if(o.snap)Kt(n,s)?(a=at(n,s),r=qo(r,a,o.snap)):Kt(s,n)&&(a=at(s,n),r=qo(r,Z(),o.snap.getChild(a)));else if(o.children){if(Kt(n,s))a=at(n,s),r=Ry(r,a,o.children);else if(Kt(s,n))if(a=at(s,n),V(a))r=Ry(r,Z(),o.children);else{const l=Qi(o.children,Y(a));if(l){const u=l.getChild(ae(a));r=qo(r,Z(),u)}}}else throw io("WriteRecord should have .snap or .children")}}return r}function $S(e,t,n,r,i){if(!r&&!i){const o=ti(e.visibleWrites,t);
vendor: 4,111 bytes, lines 2054-2079
2054if(o!=null)return o;{const s=lr(e.visibleWrites,t);if(vd(s))return n;if(n==null&&!yd(s,Z()))return null;{const a=n||B.EMPTY_NODE;return Xi(s,a)}}}else{const o=lr(e.visibleWrites,t);if(!i&&vd(o))return n;if(!i&&n==null&&!yd(o,Z()))return null;{const s=function(u){return(u.visible||i)&&(!r||!~r.indexOf(u.writeId))&&(Kt(u.path,t)||Kt(t,u.path))},a=FS(e.allWrites,s,t),l=n||B.EMPTY_NODE;return Xi(a,l)}}}function JR(e,t,n){let r=B.EMPTY_NODE;const i=ti(e.visibleWrites,t);if(i)return i.isLeafNode()||i.forEachChild(ve,(o,s)=>{r=r.updateImmediateChild(o,s)}),r;if(n){const o=lr(e.visibleWrites,t);return n.forEachChild(ve,(s,a)=>{const l=Xi(lr(o,new ne(s)),a);r=r.updateImmediateChild(s,l)}),My(o).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}else{const o=lr(e.visibleWrites,t);return My(o).forEach(s=>{r=r.updateImmediateChild(s.name,s.node)}),r}}function ZR(e,t,n,r,i){N(r||i,"Either existingEventSnap or existingServerSnap must exist");const o=Ae(t,n);if(yd(e.visibleWrites,o))return null;{const s=lr(e.visibleWrites,o);return vd(s)?i.getChild(n):Xi(s,i.getChild(n))}}function eO(e,t,n,r){const i=Ae(t,n),o=ti(e.visibleWrites,i);if(o!=null)return o;if(r.isCompleteForChild(n)){const s=lr(e.visibleWrites,i);return Xi(s,r.getNode().getImmediateChild(n))}else return null}function tO(e,t){return ti(e.visibleWrites,t)}function nO(e,t,n,r,i,o,s){let a;const l=lr(e.visibleWrites,t),u=ti(l,Z());if(u!=null)a=u;else if(n!=null)a=Xi(l,n);else return[];if(a=a.withIndex(s),!a.isEmpty()&&!a.isLeafNode()){const f=[],c=s.getCompare(),d=o?a.getReverseIteratorFrom(r,s):a.getIteratorFrom(r,s);let y=d.getNext();for(;y&&f.length<i;)c(y,r)!==0&&f.push(y),y=d.getNext();return f}else return[]}function rO(){return{visibleWrites:Jt.empty(),allWrites:[],lastWriteId:-1}}function Dl(e,t,n,r){return $S(e.writeTree,e.treePath,t,n,r)}function Sp(e,t){return JR(e.writeTree,e.treePath,t)}function Dy(e,t,n,r){return ZR(e.writeTree,e.treePath,t,n,r)}function Ll(e,t){return tO(e.writeTree,Ae(e.treePath,t))}function iO(e,t,n,r,i,o){return nO(e.writeTree,e.treePath,t,n,r,i,o)}function wp(e,t,n){return eO(e.writeTree,e.treePath,t,n)}function zS(e,t){return BS(Ae(e.treePath,t),e.writeTree)}function BS(e,t){return{treePath:e,writeTree:t}}/** 2055 * @license 2056 * Copyright 2017 Google LLC 2057 * 2058 * Licensed under the Apache License, Version 2.0 (the "License"); 2059 * you may not use this file except in compliance with the License. 2060 * You may obtain a copy of the License at 2061 * 2062 * http://www.apache.org/licenses/LICENSE-2.0 2063 * 2064 * Unless required by applicable law or agreed to in writing, software 2065 * distributed under the License is distributed on an "AS IS" BASIS, 2066 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2067 * See the License for the specific language governing permissions and 2068 * limitations under the License. 2069 */class oO{constructor(){this.changeMap=new Map}trackChildChange(t){const n=t.type,r=t.childName;N(n==="child_added"||n==="child_changed"||n==="child_removed","Only child changes supported for tracking"),N(r!==".priority","Only non-priority child changes can be tracked.");const i=this.changeMap.get(r);if(i){const o=i.type;if(n==="child_added"&&o==="child_removed")this.changeMap.set(r,Ts(r,t.snapshotNode,i.snapshotNode));else if(n==="child_removed"&&o==="child_added")this.changeMap.delete(r);else if(n==="child_removed"&&o==="child_changed")this.changeMap.set(r,bs(r,i.oldSnap));else if(n==="child_changed"&&o==="child_added")this.changeMap.set(r,qi(r,t.snapshotNode));else if(n==="child_changed"&&o==="child_changed")this.changeMap.set(r,Ts(r,t.snapshotNode,i.oldSnap));else throw io("Illegal combination of changes: "+t+" occurred after "+i)}else this.changeMap.set(r,t)}getChanges(){return Array.from(this.changeMap.values())}}/** 2070 * @license 2071 * Copyright 2017 Google LLC 2072 * 2073 * Licensed under the Apache License, Version 2.0 (the "License"); 2074 * you may not use this file except in compliance with the License. 2075 * You may obtain a copy of the License at 2076 * 2077 * http://www.apache.org/licenses/LICENSE-2.0 2078 * 2079 * Unless required by applicable law or agreed to in writing, softw
2079are 2080 * distributed under the License is distributed on an "AS IS" BASIS, 2081 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2082 * See the License for the specific language governing permissions and 2083 * limitations under the License. 2084 */class sO{getCompleteChild(t){return null}getChildAfterChild(t,n,r){return null}}const jS=new sO;class Cp{constructor(t,n,r=null){this.writes_=t,this.viewCache_=n,this.optCompleteServerCache_=r}getCompleteChild(t){const n=this.viewCache_.eventCache;if(n.isCompleteForChild(t))return n.getNode().getImmediateChild(t);{const r=this.optCompleteServerCache_!=null?new Xr(this.optCompleteServerCache_,!0,!1):this.viewCache_.serverCache;return wp(this.writes_,t,r)}}getChildAfterChild(t,n,r){const i=this.optCompleteServerCache_!=null?this.optCompleteServerCache_:Jr(this.viewCache_),o=iO(this.writes_,i,n,1,r,t);return o.length===0?null:o[0]}}/** 2085 * @license 2086 * Copyright 2017 Google LLC 2087 * 2088 * Licensed under the Apache License, Version 2.0 (the "License"); 2089 * you may not use this file except in compliance with the License. 2090 * You may obtain a copy of the License at 2091 * 2092 * http://www.apache.org/licenses/LICENSE-2.0 2093 * 2094 * Unless required by applicable law or agreed to in writing, software 2095 * distributed under the License is distributed on an "AS IS" BASIS, 2096 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2097 * See the License for the specific language governing permissions and 2098 * limitations under the License. 2099 */function aO(e){return{filter:e}}function lO(e,t){N(t.eventCache.getNode().isIndexed(e.filter.getIndex()),"Event snap not indexed"),N(t.serverCache.getNode().isIndexed(e.filter.getIndex()),"Server snap not indexed")}function uO(e,t,n,r,i){const o=new oO;let s,a;if(n.type===Qt.OVERWRITE){const u=n;u.source.fromUser?s=_d(e,t,u.path,u.snap,r,i,o):(N(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered()&&!V(u.path),s=Fl(e,t,u.path,u.snap,r,i,a,o))}else if(n.type===Qt.MERGE){const u=n;u.source.fromUser?s=fO(e,t,u.path,u.children,r,i,o):(N(u.source.fromServer,"Unknown source."),a=u.source.tagged||t.serverCache.isFiltered(),s=Sd(e,t,u.path,u.children,r,i,a,o))}else if(n.type===Qt.ACK_USER_WRITE){const u=n;u.revert?s=pO(e,t,u.path,r,i,o):s=dO(e,t,u.path,u.affectedTree,r,i,o)}else if(n.type===Qt.LISTEN_COMPLETE)s=hO(e,t,n.path,r,o);else throw io("Unknown operation type: "+n.type);const l=o.getChanges();return cO(t,s,l),{viewCache:s,changes:l}}function cO(e,t,n){const r=t.eventCache;if(r.isFullyInitialized()){const i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=gd(e);(n.length>0||!e.eventCache.isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(RS(gd(t)))}}function US(e,t,n,r,i,o){const s=t.eventCache;if(Ll(r,n)!=null)return t;{let a,l;if(V(n))if(N(t.serverCache.isFullyInitialized(),"If change path is empty, we must have complete server data"),t.serverCache.isFiltered()){const u=Jr(t),f=u instanceof B?u:B.EMPTY_NODE,c=Sp(r,f);a=e.filter.updateFullNode(t.eventCache.getNode(),c,o)}else{const u=Dl(r,Jr(t));a=e.filter.updateFullNode(t.eventCache.getNode(),u,o)}else{const u=Y(n);if(u===".priority"){N(yr(n)===1,"Can't have a priority with additional path components");const f=s.getNode();l=t.serverCache.getNode();const c=Dy(r,n,f,l);c!=null?a=e.filter.updatePriority(f,c):a=s.getNode()}else{const f=ae(n);let c;if(s.isCompleteForChild(u)){l=t.serverCache.getNode();const d=Dy(r,n,s.getNode(),l);d!=null?c=s.getNode().getImmediateChild(u).updateChild(f,d):c=s.getNode().getImmediateChild(u)}else c=wp(r,u,t.serverCache);c!=null?a=e.filter.updateChild(s.getNode(),u,c,f,i,o):a=s.getNode()}}return Qo(t,a,s.isFullyInitialized()||V(n),e.filter.filtersNodes())}}function Fl(e,t,n,r,i,o,s,a){const l=t.serverCache;let u;const f=s?e.filter:e.filter.getIndexedFilter();if(V(n))u=f.updateFullNode(l.getNode(),r,null);else if(f.filtersNodes()&&!l.isFiltered()){const y=l.getNode().updateChild(n,r);u=f.updateFullNode(l.getNode(),y,null)}else{const y=Y(n);if(!l.isCompleteForPath(n)&&yr(n)>1)return t;const g=ae(n),C=l.getNode().getImmediateChild(y).updateChild(g,r);y===".priority"?u=f.updatePriority(l.getNode(),C):u=f.updateChild(l.getNode(),y,C,g,jS,null)}const c=DS(t,u,l.isFullyInitialized()||V(n),f.filtersNodes()),d=new Cp(i,c,o);return US(e,c,n,i,d,a)}function _d(e,t,n,r,i,o,s){const a=t.eventCache;let l,u;const f=new Cp(i,t,o);if(V(n))u=e.filter.updateFullNode(t.eventCache.getNode(),r,s),l=Qo(t,u,!0,e.filter.filtersNodes());else{const c=Y(n);if(c===".priority")u=e.filter.updatePriority(t.eventCache.getNode(),r),l=Qo(t,u,a.isFullyInitialized(),a.isFiltered());else{const d=ae(n),y=a.getNode().getImmediateChild(c);let g;if(V(d))g=r;else{const _=f.getCompleteChild(c);_!=null?CS(d)===".priority"&&_.getChild(kS(d)).isEmpty()?g=_:g=_.updateChild(d,r):g=B.EMPTY_NODE}if(y.equals(g))l=t;else{const _=e.filter.updateChild(a.getNode(),c,g,d,f,s);l=Qo(t,_,a.isFullyInitialized(),e.filter.filtersNodes())}}}return l}function Ly(e,t){return e.eventCache.isCompleteForChild(t)}function fO(e,t,n,r,i,o,s){let a=t;return r.foreach((l,u)=>{const f=Ae(n,l);Ly(t,Y(f))&&(a=_d(e,a,f,u,i,o,s))}),r.foreach((l,u)=>{const f=Ae(n,l);Ly(t,Y(f))||(a=_d(e,a,f,u,i,o,s))}),a}function Fy(e,t,n){return n.foreach((r,i)=>{t=t.updateChild(r,i)}),t}function Sd(e,t,n,r,i,o,s,a){if(t.serverCache.getNode().isEmpty()&&!t.serverCache.isFullyInitialized())return t;let l=t,u;V(n)?u=r:u=new ce(null).setTree(n,r);const f=t.serverCache.getNode();return u.children.inorderTraversal((c,d)=>
2099{if(f.hasChild(c)){const y=t.serverCache.getNode().getImmediateChild(c),g=Fy(e,y,d);l=Fl(e,l,new ne(c),g,i,o,s,a)}}),u.children.inorderTraversal((c,d)=>{const y=!t.serverCache.isCompleteForChild(c)&&d.value===null;if(!f.hasChild(c)&&!y){const g=t.serverCache.getNode().getImmediateChild(c),_=Fy(e,g,d);l=Fl(e,l,new ne(c),_,i,o,s,a)}}),l}function dO(e,t,n,r,i,o,s){if(Ll(i,n)!=null)return t;const a=t.serverCache.isFiltered(),l=t.serverCache;if(r.value!=null){if(V(n)&&l.isFullyInitialized()||l.isCompleteForPath(n))return Fl(e,t,n,l.getNode().getChild(n),i,o,a,s);if(V(n)){let u=new ce(null);return l.getNode().forEachChild(Br,(f,c)=>{u=u.set(new ne(f),c)}),Sd(e,t,n,u,i,o,a,s)}else return t}else{let u=new ce(null);return r.foreach((f,c)=>{const d=Ae(n,f);l.isCompleteForPath(d)&&(u=u.set(f,l.getNode().getChild(d)))}),Sd(e,t,n,u,i,o,a,s)}}function hO(e,t,n,r,i){const o=t.serverCache,s=DS(t,o.getNode(),o.isFullyInitialized()||V(n),o.isFiltered());return US(e,s,n,r,jS,i)}function pO(e,t,n,r,i,o){let s;if(Ll(r,n)!=null)return t;{const a=new Cp(r,t,i),l=t.eventCache.getNode();let u;if(V(n)||Y(n)===".priority"){let f;if(t.serverCache.isFullyInitialized())f=Dl(r,Jr(t));else{const c=t.serverCache.getNode();N(c instanceof B,"serverChildren would be complete if leaf node"),f=Sp(r,c)}f=f,u=e.filter.updateFullNode(l,f,o)}else{const f=Y(n);let c=wp(r,f,t.serverCache);c==null&&t.serverCache.isCompleteForChild(f)&&(c=l.getImmediateChild(f)),c!=null?u=e.filter.updateChild(l,f,c,ae(n),a,o):t.eventCache.getNode().hasChild(f)?u=e.filter.updateChild(l,f,B.EMPTY_NODE,ae(n),a,o):u
2099=l,u.isEmpty()&&t.serverCache.isFullyInitialized()&&(s=Dl(r,Jr(t)),s.isLeafNode()&&(u=e.filter.updateFullNode(u,s,o)))}return s=t.serverCache.isFullyInitialized()||Ll(r,Z())!=null,Qo(t,u,s,e.filter.filtersNodes())}}/** 2100 * @license 2101 * Copyright 2017 Google LLC 2102 * 2103 * Licensed under the Apache License, Version 2.0 (the "License"); 2104 * you may not use this file except in compliance with the License. 2105 * You may obtain a copy of the License at 2106 * 2107 * http://www.apache.org/licenses/LICENSE-2.0 2108 * 2109 * Unless required by applicable law or agreed to in writing, software 2110 * distributed under the License is distributed on an "AS IS" BASIS, 2111 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2112 * See the License for the specific language governing permissions and 2113 * limitations under the License. 2114 */class mO{constructor(t,n){this.query_=t,this.eventRegistrations_=[];const r=this.query_._queryParams,i=new mp(r.getIndex()),o=OR(r);this.processor_=aO(o);const s=n.serverCache,a=n.eventCache,l=i.updateFullNode(B.EMPTY_NODE,s.getNode(),null),u=o.updateFullNode(B.EMPTY_NODE,a.getNode(),null),f=new Xr(l,s.isFullyInitialized(),i.filtersNodes()),c=new Xr(u,a.isFullyInitialized(),o.filtersNodes());this.viewCache_=Mu(c,f),this.eventGenerator_=new jR(this.query_)}get query(){return this.query_}}function gO(e){return e.viewCache_.serverCache.getNode()}function yO(e,t){const n=Jr(e.viewCache_);return n&&(e.query._queryParams.loadsAllData()||!V(t)&&!n.getImmediateChild(Y(t)).isEmpty())?n.getChild(t):null}function $y(e){return e.eventRegistrations_.length===0}function vO(e,t){e.eventRegistrations_.push(t)}function zy(e,t,n){const r=[];if(n){N(t==null,"A cancel should cancel all event registrations.");const i=e.query._path;e.eventRegistrations_.forEach(o=>{const s=o.createCancelEvent(n,i);s&&r.push(s)})}if(t){let i=[];for(let o=0;o<e.eventRegistrations_.length;++o){const s=e.eventRegistrations_[o];if(!s.matches(t))i.push(s);else if(t.hasAnyCallback()){i=i.concat(e.eventRegistrations_.slice(o+1));break}}e.eventRegistrations_=i}else e.eventRegistrations_=[];return r}function By(e,t,n,r){t.type===Qt.MERGE&&t.source.queryId!==null&&(N(Jr(e.viewCache_),"We should always have a full cache before handling merges"),N(gd(e.viewCache_),"Missing event cache, even though we have a server cache"));const i=e.viewCache_,o=uO(e.processor_,i,t,n,r);return lO(e.processor_,o.viewCache),N(o.viewCache.serverCache.isFullyInitialized()||!i.serverCache.isFullyInitialized(),"Once a server snap is complete, it should never go back"),e.viewCache_=o.viewCache,WS(e,o.changes,o.viewCache.eventCache.getNode(),null)}function _O(e,t){const n=e.viewCache_.eventCache,r=[];return n.getNode().isLeafNode()||n.getNode().forEachChild(ve,(o,s)=>{r.push(qi(o,s))}),n.isFullyInitialized()&&r.push(RS(n.getNode())),WS(e,r,n.getNode(),t)}function WS(e,t,n,r){const i=r?[r]:e.eventRegistrations_;return UR(e.eventGenerator_,t,n,i)}/** 2115 * @license 2116 * Copyright 2017 Google LLC 2117 * 2118 * Licensed under the Apache License, Version 2.0 (the "License"); 2119 * you may not use this file except in compliance with the License. 2120 * You may obtain a copy of the License at 2121 * 2122 * http://www.apache.org/licenses/LICENSE-2.0 2123 * 2124 * Unless required by applicable law or agreed to in writing, software 2125 * distributed under the License is distributed on an "AS IS" BASIS, 2126 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2127 * See the License for the specific language governing permissions and 2128 * limitations under the License. 2129 */let $l;class SO{constructor(){this.views=new Map}}function wO(e){N(!$l,"__referenceConstructor has already been defined"),$l=e}function CO(){return N($l,"Reference.ts has not been loaded"),$l}function EO(e){return e.views.size===0}function Ep(e,t,n,r){const i=t.source.queryId;if(i!==null){const o=e.views.get(i);return N(o!=null,"SyncTree gave us an op for an invalid query."),By(o,t,n,r)}else{let o=[];for(const s of e.views.values())o=o.concat(By(s,t,n,r));return o}}function kO(e,t,n,r,i){const o=t._queryIdentifier,s=e.views.get(o);if(!s){let a=Dl(n,i?r:null),l=!1;a?l=!0:r instanceof B?(a=Sp(n,r),l=!1):(a=B.EMPTY_NODE,l=!1);const u=Mu(new Xr(a,l,!1),new Xr(r,i,!1));return new mO(t,u)}return s}function xO(e,t,n,r,i,o){const s=kO(e,t,r,i,o);return e.views.has(t._queryIdentifier)||e.views.set(t._queryIdentifier,s),vO(s,n),_O(s,n)}function bO(e,t,n,r){const i=t._queryIdentifier,o=[];let s=[];const a=vr(e);if(i==="default")for(const[l,u]of e.views.entries())s=s.concat(zy(u,n,r)),$y(u)&&(e.views.delete(l),u.query._queryParams.loadsAllData()||o.push(u.query));else{const l=e.views.get(i);l&&(s=s.concat(zy(l,n,r)),$y(l)&&(e.views.delete(i),l.query._queryParams.loadsAllData()||o.push(l.query)))}return a&&!vr(e)&&o.push(new(CO())(t._repo,t._path)),{removed:o,events:s}}function VS(e){const t=[];for(const n of e.views.values())n.query._queryParams.loadsAllData()||t.push(n);return t}function $i(e,t){let n=null;for(const r of e.views.values())n=n||yO(r,t);return n}function HS(e,t){if(t._queryParams.loadsAllData())return Du(e);{const r=t._queryIdentifier;return e.views.get(r)}}function GS(e,t){return HS(e,t)!=null}function vr(e){return Du(e)!=null}function Du(e){for(const t of e.views.values())if(t.query._queryParams.loadsAllData())return t;return null}/** 2130 * @license 2131 * Copyright 2017 Google LLC 2132 * 2133 * Licensed under the Apache License, Version 2.0 (the "License");
2134 * you may not use this file except in compliance with the License. 2135 * You may obtain a copy of the License at 2136 * 2137 * http://www.apache.org/licenses/LICENSE-2.0 2138 * 2139 * Unless required by applicable law or agreed to in writing, software 2140 * distributed under the License is distributed on an "AS IS" BASIS, 2141 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2142 * See the License for the specific language governing permissions and 2143 * limitations under the License. 2144 */let zl;function TO(e){N(!zl,"__referenceConstructor has already been defined"),zl=e}function IO(){return N(zl,"Reference.ts has not been loaded"),zl}let PO=1;class jy{constructor(t){this.listenProvider_=t,this.syncPointTree_=new ce(null),this.pendingWriteTree_=rO(),this.tagToQueryMap=new Map,this.queryToTagMap=new Map}}function NO(e,t,n,r,i){return GR(e.pendingWriteTree_,t,n,r,i),i?Ks(e,new qr(MS(),t,n)):[]}function bi(e,t,n=!1){const r=YR(e.pendingWriteTree_,t);if(KR(e.pendingWriteTree_,t)){let o=new ce(null);return r.snap!=null?o=o.set(Z(),!0):ht(r.children,s=>{o=o.set(new ne(s),!0)}),Ks(e,new Ml(r.path,o,n))}else return[]}function Lu(e,t,n){return Ks(e,new qr(yp(),t,n))}function AO(e,t,n){const r=ce.fromObject(n);return Ks(e,new Ns(yp(),t,r))}function RO(e,t){return Ks(e,new Ps(yp(),t))}function OO(e,t,n){const r=kp(e,n);if(r){const i=xp(r),o=i.path,s=i.queryId,a=at(o,t),l=new Ps(vp(s),a);return bp(e,o,l)}else return[]}function wd(e,t,n,r,i=!1){const o=t._path,s=e.syncPointTree_.get(o);let a=[];if(s&&(t._queryIdentifier==="default"||GS(s,t))){const l=bO(s,t,n,r);EO(s)&&(e.syncPointTree_=e.syncPointTree_.remove(o));const u=l.removed;if(a=l.events,!i){const f=u.findIndex(d=>d._queryParams.loadsAllData())!==-1,c=e.syncPointTree_.findOnPath(o,(d,y)=>vr(y));if(f&&!c){const d=e.syncPointTree_.subtree(o);if(!d.isEmpty()){const y=LO(d);for(let g=0;g<y.length;++g){const _=y[g],C=_.query,m=qS(e,_);e.listenProvider_.startListening(Xo(C),Bl(e,C),m.hashFn,m.onComplete)}}}!c&&u.length>0&&!r&&(f?e.listenProvider_.stopListening(Xo(t),null):u.forEach(d=>{const y=e.queryToTagMap.get(Fu(d));e.listenProvider_.stopListening(Xo(d),y)}))}FO(e,u)}return a}function MO(e,t,n,r){const i=kp(e,r);if(i!=null){const o=xp(i),s=o.path,a=o.queryId,l=at(s,t),u=new qr(vp(a),l,n);return bp(e,s,u)}else return[]}function DO(e,t,n,r){const i=kp(e,r);if(i){const o=xp(i),s=o.path,a=o.queryId,l=at(s,t),u=ce.fromObject(n),f=new Ns(vp(a),l,u);return bp(e,s,f)}else return[]}function Uy(e,t,n,r=!1){const i=t._path;let o=null,s=!1;e.syncPointTree_.foreachOnPath(i,(d,y)=>{const g=at(d,i);o=o||$i(y,g),s=s||vr(y)});let a=e.syncPointTree_.get(i);a?(s=s||vr(a),o=o||$i(a,Z())):(a=new SO,e.syncPointTree_=e.syncPointTree_.set(i,a));let l;o!=null?l=!0:(l=!1,o=B.EMPTY_NODE,e.syncPointTree_.subtree(i).foreachChild((y,g)=>{const _=$i(g,Z());_&&(o=o.updateImmediateChild(y,_))}));const u=GS(a,t);if(!u&&!t._queryParams.loadsAllData()){const d=Fu(t);N(!e.queryToTagMap.has(d),"View does not exist, but we have a tag");const y=$O();e.queryToTagMap.set(d,y),e.tagToQueryMap.set(y,d)}const f=_p(e.pendingWriteTree_,i);let c=xO(a,t,n,f,o,l);if(!u&&!s&&!r){const d=HS(a,t);c=c.concat(zO(e,t,d))}return c}function YS(e,t,n){const i=e.pendingWriteTree_,o=e.syncPointTree_.findOnPath(t,(s,a)=>{const l=at(s,t),u=$i(a,l);if(u)return u});return $S(i,t,o,n,!0)}function Ks(e,t){return KS(t,e.syncPointTree_,null,_p(e.pendingWriteTree_,Z()))}function KS(e,t,n,r){if(V(e.path))return QS(e,t,n,r);{const i=t.get(Z());n==null&&i!=null&&(n=$i(i,Z()));let o=[];const s=Y(e.path),a=e.operationForChild(s),l=t.children.get(s);if(l&&a){const u=n?n.getImmediateChild(s):null,f=zS(r,s);o=o.concat(KS(a,l,u,f))}return i&&(o=o.concat(Ep(i,e,r,n))),o}}function QS(e,t,n,r){const i=t.get(Z());n==null&&i!=null&&(n=$i(i,Z()));let o=[];return t.children.inorderTraversal((s,a)=>{const l=n?n.getImmediateChild(s):null,u=zS(r,s),f=e.operationForChild(s);f&&(o=o.concat(QS(f,a,l,u)))}),i&&(o=o.concat(Ep(i,e,r,n))),o}function qS(e,t){const n=t.query,r=Bl(e,n);return{hashFn:()=>(gO(t)||B.EMPTY_NODE).hash(),onComplete:i=>{if(i==="ok")return r?OO(e,n._path,r):RO(e,n._path);{const o=MA(i,n);return wd(e,n,null,o)}}}}function Bl(e,t){const n=Fu(t);return e.queryToTagMap.get(n)}function Fu(e){return e._path.toString()+"$"+e._queryIdentifier}function kp(e,t){return e.tagToQueryMap.get(t)}function xp(e){const t=e.indexOf("$");return N(t!==-1&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new ne(e.substr(0,t))}}function bp(e,t,n){const r=e.syncPointTree_.get(t);N(r,"Missing sync point for query tag that we're tracking");const i=_p(e.pendingWriteTree_,t);return Ep(r,n,i,null)}function LO(e){return e.fold((t,n,r)=>{if(n&&vr(n))return[Du(n)];{let i=[];return n&&(i=VS(n)),ht(r,(o,s)=>{i=i.concat(s)}),i}})}
2144function Xo(e){return e._queryParams.loadsAllData()&&!e._queryParams.isDefault()?new(IO())(e._repo,e._path):e}function FO(e,t){for(let n=0;n<t.length;++n){const r=t[n];if(!r._queryParams.loadsAllData()){const i=Fu(r),o=e.queryToTagMap.get(i);e.queryToTagMap.delete(i),e.tagToQueryMap.delete(o)}}}function $O(){return PO++}function zO(e,t,n){const r=t._path,i=Bl(e,t),o=qS(e,n),s=e.listenProvider_.startListening(Xo(t),i,o.hashFn,o.onComplete),a=e.syncPointTree_.subtree(r);if(i)N(!vr(a.value),"If we're adding a query, it shouldn't be shadowed");else{const l=a.fold((u,f,c)=>{if(!V(u)&&f&&vr(f))return[Du(f).query];{let d=[];return f&&(d=d.concat(VS(f).map(y=>y.query))),ht(c,(y,g)=>{d=d.concat(g)}),d}});for(let u=0;u<l.length;++u){const f=l[u];e.listenProvider_.stopListening(Xo(f),Bl(e,f))}}return s}/** 2145 * @license 2146 * Copyright 2017 Google LLC 2147 * 2148 * Licensed under the Apache License, Version 2.0 (the "License"); 2149 * you may not use this file except in compliance with the License. 2150 * You may obtain a copy of the License at 2151 * 2152 * http://www.apache.org/licenses/LICENSE-2.0 2153 * 2154 * Unless required by applicable law or agreed to in writing, software 2155 * distributed under the License is distributed on an "AS IS" BASIS, 2156 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2157 * See the License for the specific language governing permissions and 2158 * limitations under the License. 2159 */class Tp{constructor(t){this.node_=t}getImmediateChild(t){const n=this.node_.getImmediateChild(t);return new Tp(n)}node(){return this.node_}}class Ip{constructor(t,n){this.syncTree_=t,this.path_=n}getImmediateChild(t){const n=Ae(this.path_,t);return new Ip(this.syncTree_,n)}node(){return YS(this.syncTree_,this.path_)}}const BO=function(e){return e=e||{},e.timestamp=e.timestamp||new Date().getTime(),e},Wy=function(e,t,n){if(!e||typeof e!="object")return e;if(N(".sv"in e,"Unexpected leaf node or priority contents"),typeof e[".sv"]=="string")return jO(e[".sv"],t,n);if(typeof e[".sv"]=="object")return UO(e[".sv"],t);N(!1,"Unexpected server value: "+JSON.stringify(e,null,2))},jO=function(e,t,n){switch(e){case"timestamp":return n.timestamp;default:N(!1,"Unexpected server value: "+e)}},UO=function(e,t,n){e.hasOwnProperty("increment")||N(!1,"Unexpected server value: "+JSON.stringify(e,null,2));const r=e.increment;typeof r!="number"&&N(!1,"Unexpected increment value: "+r);const i=t.node();if(N(i!==null&&typeof i<"u","Expected ChildrenNode.EMPTY_NODE for nulls"),!i.isLeafNode())return r;const s=i.getValue();return typeof s!="number"?r:s+r},WO=function(e,t,n,r){return Pp(t,new Ip(n,e),r)},VO=function(e,t,n){return Pp(e,new Tp(t),n)};function Pp(e,t,n){const r=e.getPriority().val(),i=Wy(r,t.getImmediateChild(".priority"),n);let o;if(e.isLeafNode()){const s=e,a=Wy(s.getValue(),t,n);return a!==s.getValue()||i!==s.getPriority().val()?new Oe(a,Qe(i)):e}else{const s=e;return o=s,i!==s.getPriority().val()&&(o=o.updatePriority(new Oe(i))),s.forEachChild(ve,(a,l)=>{const u=Pp(l,t.getImmediateChild(a),n);u!==l&&(o=o.updateImmediateChild(a,u))}),o}}/** 2160 * @license 2161 * Copyright 2017 Google LLC 2162 * 2163 * Licensed under the Apache License, Version 2.0 (the "License"); 2164 * you may not use this file except in compliance with the License. 2165 * You may obtain a copy of the License at 2166 * 2167 * http://www.apache.org/licenses/LICENSE-2.0 2168 * 2169 * Unless required by applicable law or agreed to in writing, software 2170 * distributed under the License is distributed on an "AS IS" BASIS, 2171 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2172 * See the License for the specific language governing permissions and 2173 * limitations under the License. 2174 */class Np{constructor(t="",n=null,r={children:{},childCount:0}){this.name=t,this.parent=n,this.node=r}}function Ap(e,t){let n=t instanceof ne?t:new ne(t),r=e,i=Y(n);for(;i!==null;){const o=Qi(r.node.children,i)||{children:{},childCount:0};r=new Np(i,r,o),n=ae(n),i=Y(n)}return r}function so(e){return e.node.value}function XS(e,t){e.node.value=t,Cd(e)}function JS(e){return e.node.childCount>0}function HO(e){return so(e)===void 0&&!JS(e)}function $u(e,t){ht(e.node.children,(n,r)=>{t(new Np(n,e,r))})}
vendor: 4,371 bytes, lines 2174-2208
2174function ZS(e,t,n,r){n&&!r&&t(e),$u(e,i=>{ZS(i,t,!0,r)}),n&&r&&t(e)}function GO(e,t,n){let r=e.parent;for(;r!==null;){if(t(r))return!0;r=r.parent}return!1}function Qs(e){return new ne(e.parent===null?e.name:Qs(e.parent)+"/"+e.name)}function Cd(e){e.parent!==null&&YO(e.parent,e.name,e)}function YO(e,t,n){const r=HO(n),i=yn(e.node.children,t);r&&i?(delete e.node.children[t],e.node.childCount--,Cd(e)):!r&&!i&&(e.node.children[t]=n.node,e.node.childCount++,Cd(e))}/** 2175 * @license 2176 * Copyright 2017 Google LLC 2177 * 2178 * Licensed under the Apache License, Version 2.0 (the "License"); 2179 * you may not use this file except in compliance with the License. 2180 * You may obtain a copy of the License at 2181 * 2182 * http://www.apache.org/licenses/LICENSE-2.0 2183 * 2184 * Unless required by applicable law or agreed to in writing, software 2185 * distributed under the License is distributed on an "AS IS" BASIS, 2186 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2187 * See the License for the specific language governing permissions and 2188 * limitations under the License. 2189 */const KO=/[\[\].#$\/\u0000-\u001F\u007F]/,QO=/[\[\].#$\u0000-\u001F\u007F]/,Lc=10*1024*1024,ew=function(e){return typeof e=="string"&&e.length!==0&&!KO.test(e)},tw=function(e){return typeof e=="string"&&e.length!==0&&!QO.test(e)},qO=function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),tw(e)},Vy=function(e){return e===null||typeof e=="string"||typeof e=="number"&&!sp(e)||e&&typeof e=="object"&&yn(e,".sv")},nw=function(e,t,n){const r=n instanceof ne?new hR(n,e):n;if(t===void 0)throw new Error(e+"contains undefined "+Pr(r));if(typeof t=="function")throw new Error(e+"contains a function "+Pr(r)+" with contents = "+t.toString());if(sp(t))throw new Error(e+"contains "+t.toString()+" "+Pr(r));if(typeof t=="string"&&t.length>Lc/3&&Ru(t)>Lc)throw new Error(e+"contains a string greater than "+Lc+" utf8 bytes "+Pr(r)+" ('"+t.substring(0,50)+"...')");if(t&&typeof t=="object"){let i=!1,o=!1;if(ht(t,(s,a)=>{if(s===".value")i=!0;else if(s!==".priority"&&s!==".sv"&&(o=!0,!ew(s)))throw new Error(e+" contains an invalid key ("+s+") "+Pr(r)+`. Keys must be non-empty strings and can't contain ".", "#", "$", "/", "[", or "]"`);pR(r,s),nw(e,a,r),mR(r)}),i&&o)throw new Error(e+' contains ".value" child '+Pr(r)+" in addition to actual children.")}},Rp=function(e,t,n,r){if(!tw(n))throw new Error(G1(e,t)+'was an invalid path = "'+n+`". Paths must be non-empty strings and can't contain ".", "#", "$", "[", or "]"`)},XO=function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),Rp(e,t,n)},JO=function(e,t){const n=t.path.toString();if(typeof t.repoInfo.host!="string"||t.repoInfo.host.length===0||!ew(t.repoInfo.namespace)&&t.repoInfo.host.split(":")[0]!=="localhost"||n.length!==0&&!qO(n))throw new Error(G1(e,"url")+`must be a valid firebase URL and the path can't contain ".", "#", "$", "[", or "]".`)};/** 2190 * @license 2191 * Copyright 2017 Google LLC 2192 * 2193 * Licensed under the Apache License, Version 2.0 (the "License"); 2194 * you may not use this file except in compliance with the License. 2195 * You may obtain a copy of the License at 2196 * 2197 * http://www.apache.org/licenses/LICENSE-2.0 2198 * 2199 * Unless required by applicable law or agreed to in writing, software 2200 * distributed under the License is distributed on an "AS IS" BASIS, 2201 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2202 * See the License for the specific language governing permissions and 2203 * limitations under the License. 2204 */class ZO{constructor(){this.eventLists_=[],this.recursionDepth_=0}}function rw(e,t){let n=null;for(let r=0;r<t.length;r++){const i=t[r],o=i.getPath();n!==null&&!fp(o,n.path)&&(e.eventLists_.push(n),n=null),n===null&&(n={events:[],path:o}),n.events.push(i)}n&&e.eventLists_.push(n)}function iw(e,t,n){rw(e,n),ow(e,r=>fp(r,t))}function ni(e,t,n){rw(e,n),ow(e,r=>Kt(r,t)||Kt(t,r))}function ow(e,t){e.recursionDepth_++;let n=!0;for(let r=0;r<e.eventLists_.length;r++){const i=e.eventLists_[r];if(i){const o=i.path;t(o)?(e5(e.eventLists_[r]),e.eventLists_[r]=null):n=!1}}n&&(e.eventLists_=[]),e.recursionDepth_--}function e5(e){for(let t=0;t<e.events.length;t++){const n=e.events[t];if(n!==null){e.events[t]=null;const r=n.getEventRunner();Yo&&Ke("event: "+n.toString()),Gs(r)}}}/** 2205 * @license 2206 * Copyright 2017 Google LLC 2207 * 2208 * Licensed under the Apache License, Version 2.0 (the "License");
2209 * you may not use this file except in compliance with the License. 2210 * You may obtain a copy of the License at 2211 * 2212 * http://www.apache.org/licenses/LICENSE-2.0 2213 * 2214 * Unless required by applicable law or agreed to in writing, software 2215 * distributed under the License is distributed on an "AS IS" BASIS, 2216 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2217 * See the License for the specific language governing permissions and 2218 * limitations under the License. 2219 */const t5="repo_interrupt",n5=25;class r5{constructor(t,n,r,i){this.repoInfo_=t,this.forceRestClient_=n,this.authTokenProvider_=r,this.appCheckProvider_=i,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new ZO,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=Ol(),this.transactionQueueTree_=new Np,this.persistentConnection_=null,this.key=this.repoInfo_.toURLString()}toString(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host}}function i5(e,t,n){if(e.stats_=up(e.repoInfo_),e.forceRestClient_||$A())e.server_=new Rl(e.repoInfo_,(r,i,o,s)=>{Hy(e,r,i,o,s)},e.authTokenProvider_,e.appCheckProvider_),setTimeout(()=>Gy(e,!0),0);else{if(typeof n<"u"&&n!==null){if(typeof n!="object")throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{Le(n)}catch(r){throw new Error("Invalid authOverride provided: "+r)}}e.persistentConnection_=new Pn(e.repoInfo_,t,(r,i,o,s)=>{Hy(e,r,i,o,s)},r=>{Gy(e,r)},r=>{s5(e,r)},e.authTokenProvider_,e.appCheckProvider_,n),e.server_=e.persistentConnection_}e.authTokenProvider_.addTokenChangeListener(r=>{e.server_.refreshAuthToken(r)}),e.appCheckProvider_.addTokenChangeListener(r=>{e.server_.refreshAppCheckToken(r.token)}),e.statsReporter_=WA(e.repoInfo_,()=>new BR(e.stats_,e.server_)),e.infoData_=new DR,e.infoSyncTree_=new jy({startListening:(r,i,o,s)=>{let a=[];const l=e.infoData_.getNode(r._path);return l.isEmpty()||(a=Lu(e.infoSyncTree_,r._path,l),setTimeout(()=>{s("ok")},0)),a},stopListening:()=>{}}),Op(e,"connected",!1),e.serverSyncTree_=new jy({startListening:(r,i,o,s)=>(e.server_.listen(r,o,i,(a,l)=>{const u=s(a,l);ni(e.eventQueue_,r._path,u)}),[]),stopListening:(r,i)=>{e.server_.unlisten(r,i)}})}function o5(e){const n=e.infoData_.getNode(new ne(".info/serverTimeOffset")).val()||0;return new Date().getTime()+n}function sw(e){return BO({timestamp:o5(e)})}function Hy(e,t,n,r,i){e.dataUpdateCount++;const o=new ne(t);n=e.interceptServerDataCallback_?e.interceptServerDataCallback_(t,n):n;let s=[];if(i)if(r){const l=bl(n,u=>Qe(u));s=DO(e.serverSyncTree_,o,l,i)}else{const l=Qe(n);s=MO(e.serverSyncTree_,o,l,i)}else if(r){const l=bl(n,u=>Qe(u));s=AO(e.serverSyncTree_,o,l)}else{const l=Qe(n);s=Lu(e.serverSyncTree_,o,l)}let a=o;s.length>0&&(a=Dp(e,o)),ni(e.eventQueue_,a,s)}function Gy(e,t){Op(e,"connected",t),t===!1&&l5(e)}function s5(e,t){ht(t,(n,r)=>{Op(e,n,r)})}function Op(e,t,n){const r=new ne("/.info/"+t),i=Qe(n);e.infoData_.updateSnapshot(r,i);const o=Lu(e.infoSyncTree_,r,i);ni(e.eventQueue_,r,o)}function a5(e){return e.nextWriteId_++}function l5(e){aw(e,"onDisconnectEvents");const t=sw(e),n=Ol();md(e.onDisconnect_,Z(),(i,o)=>{const s=WO(i,o,e.serverSyncTree_,t);OS(n,i,s)});let r=[];md(n,Z(),(i,o)=>{r=r.concat(Lu(e.serverSyncTree_,i,o));const s=p5(e,i);Dp(e,s)}),e.onDisconnect_=Ol(),ni(e.eventQueue_,Z(),r)}function u5(e,t,n){let r;Y(t._path)===".info"?r=Uy(e.infoSyncTree_,t,n):r=Uy(e.serverSyncTree_,t,n),iw(e.eventQueue_,t._path,r)}function c5(e,t,n){let r;Y(t._path)===".info"?r=wd(e.infoSyncTree_,t,n):r=wd(e.serverSyncTree_,t,n),iw(e.eventQueue_,t._path,r)}function f5(e){e.persistentConnection_&&e.persistentConnection_.interrupt(t5)}function aw(e,...t){let n="";e.persistentConnection_&&(n=e.persistentConnection_.id+":"),Ke(n,...t)}function lw(e,t,n){return YS(e.serverSyncTree_,t,n)||B.EMPTY_NODE}function Mp(e,t=e.transactionQueueTree_){if(t||zu(e,t),so(t)){const n=cw(e,t);N(n.length>0,"Sending zero length transaction queue"),n.every(i=>i.status===0)&&d5(e,Qs(t),n)}else JS(t)&&$u(t,n=>{Mp(e,n)})}function d5(e,t,n){const r=n.map(u=>u.currentWriteId),i=lw(e,t,r);let o=i;const s=i.hash();for(let u=0;u<n.length;u++){const f=n[u];N(f.status===0,"tryToSendTransactionQueue_: items in queue should all be run."),f.status=1,f.retryCount++;const c=at(t,f.path);o=o.updateChild(c,f.currentOutputSnapshotRaw)}const a=o.val(!0),l=t;e.server_.put(l.toString(),a,u=>{aw(e,"transaction put response",{path:l.toString(),status:u});let f=[];if(u==="ok"){const c=[];for(let d=0;d<n.length;
vendor: 5,452 bytes, lines 2219-2238
2219d++)n[d].status=2,f=f.concat(bi(e.serverSyncTree_,n[d].currentWriteId)),n[d].onComplete&&c.push(()=>n[d].onComplete(null,!0,n[d].currentOutputSnapshotResolved)),n[d].unwatcher();zu(e,Ap(e.transactionQueueTree_,t)),Mp(e,e.transactionQueueTree_),ni(e.eventQueue_,t,f);for(let d=0;d<c.length;d++)Gs(c[d])}else{if(u==="datastale")for(let c=0;c<n.length;c++)n[c].status===3?n[c].status=4:n[c].status=0;else{Et("transaction at "+l.toString()+" failed: "+u);for(let c=0;c<n.length;c++)n[c].status=4,n[c].abortReason=u}Dp(e,t)}},s)}function Dp(e,t){const n=uw(e,t),r=Qs(n),i=cw(e,n);return h5(e,i,r),r}function h5(e,t,n){if(t.length===0)return;const r=[];let i=[];const s=t.filter(a=>a.status===0).map(a=>a.currentWriteId);for(let a=0;a<t.length;a++){const l=t[a],u=at(n,l.path);let f=!1,c;if(N(u!==null,"rerunTransactionsUnderNode_: relativePath should not be null."),l.status===4)f=!0,c=l.abortReason,i=i.concat(bi(e.serverSyncTree_,l.currentWriteId,!0));else if(l.status===0)if(l.retryCount>=n5)f=!0,c="maxretry",i=i.concat(bi(e.serverSyncTree_,l.currentWriteId,!0));else{const d=lw(e,l.path,s);l.currentInputSnapshot=d;const y=t[a].update(d.val());if(y!==void 0){nw("transaction failed: Data returned ",y,l.path);let g=Qe(y);typeof y=="object"&&y!=null&&yn(y,".priority")||(g=g.updatePriority(d.getPriority()));const C=l.currentWriteId,m=sw(e),p=VO(g,d,m);l.currentOutputSnapshotRaw=g,l.currentOutputSnapshotResolved=p,l.currentWriteId=a5(e),s.splice(s.indexOf(C),1),i=i.concat(NO(e.serverSyncTree_,l.path,p,l.currentWriteId,l.applyLocally)),i=i.concat(bi(e.serverSyncTree_,C,!0))}else f=!0,c="nodata",i=i.concat(bi(e.serverSyncTree_,l.currentWriteId,!0))}ni(e.eventQueue_,n,i),i=[],f&&(t[a].status=2,function(d){setTimeout(d,Math.floor(0))}(t[a].unwatcher),t[a].onComplete&&(c==="nodata"?r.push(()=>t[a].onComplete(null,!1,t[a].currentInputSnapshot)):r.push(()=>t[a].onComplete(new Error(c),!1,null))))}zu(e,e.transactionQueueTree_);for(let a=0;a<r.length;a++)Gs(r[a]);Mp(e,e.transactionQueueTree_)}function uw(e,t){let n,r=e.transactionQueueTree_;for(n=Y(t);n!==null&&so(r)===void 0;)r=Ap(r,n),t=ae(t),n=Y(t);return r}function cw(e,t){const n=[];return fw(e,t,n),n.sort((r,i)=>r.order-i.order),n}function fw(e,t,n){const r=so(t);if(r)for(let i=0;i<r.length;i++)n.push(r[i]);$u(t,i=>{fw(e,i,n)})}function zu(e,t){const n=so(t);if(n){let r=0;for(let i=0;i<n.length;i++)n[i].status!==2&&(n[r]=n[i],r++);n.length=r,XS(t,n.length>0?n:void 0)}$u(t,r=>{zu(e,r)})}function p5(e,t){const n=Qs(uw(e,t)),r=Ap(e.transactionQueueTree_,t);return GO(r,i=>{Fc(e,i)}),Fc(e,r),ZS(r,i=>{Fc(e,i)}),n}function Fc(e,t){const n=so(t);if(n){const r=[];let i=[],o=-1;for(let s=0;s<n.length;s++)n[s].status===3||(n[s].status===1?(N(o===s-1,"All SENT items should be at beginning of queue."),o=s,n[s].status=3,n[s].abortReason="set"):(N(n[s].status===0,"Unexpected transaction status in abort"),n[s].unwatcher(),i=i.concat(bi(e.serverSyncTree_,n[s].currentWriteId,!0)),n[s].onComplete&&r.push(n[s].onComplete.bind(null,new Error("set"),!1,null))));o===-1?XS(t,void 0):n.length=o+1,ni(e.eventQueue_,Qs(t),i);for(let s=0;s<r.length;s++)Gs(r[s])}}/** 2220 * @license 2221 * Copyright 2017 Google LLC 2222 * 2223 * Licensed under the Apache License, Version 2.0 (the "License"); 2224 * you may not use this file except in compliance with the License. 2225 * You may obtain a copy of the License at 2226 * 2227 * http://www.apache.org/licenses/LICENSE-2.0 2228 * 2229 * Unless required by applicable law or agreed to in writing, software 2230 * distributed under the License is distributed on an "AS IS" BASIS, 2231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2232 * See the License for the specific language governing permissions and 2233 * limitations under the License. 2234 */function m5(e){let t="";const n=e.split("/");for(let r=0;r<n.length;r++)if(n[r].length>0){let i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch{}t+="/"+i}return t}function g5(e){const t={};e.charAt(0)==="?"&&(e=e.substring(1));for(const n of e.split("&")){if(n.length===0)continue;const r=n.split("=");r.length===2?t[decodeURIComponent(r[0])]=decodeURIComponent(r[1]):Et(`Invalid query segment '${n}' in query '${e}'`)}return t}const Yy=function(e,t){const n=y5(e),r=n.namespace;n.domain==="firebase.com"&&$n(n.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),(!r||r==="undefined")&&n.domain!=="localhost"&&$n("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),n.secure||PA();const i=n.scheme==="ws"||n.scheme==="wss";return{repoInfo:new hS(n.host,n.secure,r,i,t,"",r!==n.subdomain),path:new ne(n.pathString)}},y5=function(e){let t="",n="",r="",i="",o="",s=!0,a="https",l=443;if(typeof e=="string"){let u=e.indexOf("//");u>=0&&(a=e.substring(0,u-1),e=e.substring(u+2));let f=e.indexOf("/");f===-1&&(f=e.length);let c=e.indexOf("?");c===-1&&(c=e.length),t=e.substring(0,Math.min(f,c)),f<c&&(i=m5(e.substring(f,c)));const d=g5(e.substring(Math.min(e.length,c)));u=t.indexOf(":"),u>=0?(s=a==="https"||a==="wss",l=parseInt(t.substring(u+1),10)):u=t.length;const y=t.slice(0,u);if(y.toLowerCase()==="localhost")n="localhost";else if(y.split(".").length<=2)n=y;else{const g=t.indexOf(".");r=t.substring(0,g).toLowerCase(),n=t.substring(g+1),o=r}"ns"in d&&(o=d.ns)}return{host:t,port:l,domain:n,subdomain:r,secure:s,scheme:a,pathString:i,namespace:o}};/** 2235 * @license 2236 * Copyright 2017 Google LLC 2237 * 2238 * Licensed under the Apache License, Version 2.0 (the "License");
2239 * you may not use this file except in compliance with the License. 2240 * You may obtain a copy of the License at 2241 * 2242 * http://www.apache.org/licenses/LICENSE-2.0 2243 * 2244 * Unless required by applicable law or agreed to in writing, software 2245 * distributed under the License is distributed on an "AS IS" BASIS, 2246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2247 * See the License for the specific language governing permissions and 2248 * limitations under the License. 2249 */class v5{constructor(t,n,r,i){this.eventType=t,this.eventRegistration=n,this.snapshot=r,this.prevName=i}getPath(){const t=this.snapshot.ref;return this.eventType==="value"?t._path:t.parent._path}getEventType(){return this.eventType}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.getPath().toString()+":"+this.eventType+":"+Le(this.snapshot.exportVal())}}class _5{constructor(t,n,r){this.eventRegistration=t,this.error=n,this.path=r}getPath(){return this.path}getEventType(){return"cancel"}getEventRunner(){return this.eventRegistration.getEventRunner(this)}toString(){return this.path.toString()+":cancel"}}/** 2250 * @license 2251 * Copyright 2017 Google LLC 2252 * 2253 * Licensed under the Apache License, Version 2.0 (the "License"); 2254 * you may not use this file except in compliance with the License. 2255 * You may obtain a copy of the License at 2256 * 2257 * http://www.apache.org/licenses/LICENSE-2.0 2258 * 2259 * Unless required by applicable law or agreed to in writing, software 2260 * distributed under the License is distributed on an "AS IS" BASIS, 2261 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2262 * See the License for the specific language governing permissions and 2263 * limitations under the License. 2264 */class S5{constructor(t,n){this.snapshotCallback=t,this.cancelCallback=n}onValue(t,n){this.snapshotCallback.call(null,t,n)}onCancel(t){return N(this.hasCancelCallback,"Raising a cancel event on a listener with no cancel callback"),this.cancelCallback.call(null,t)}get hasCancelCallback(){return!!this.cancelCallback}matches(t){return this.snapshotCallback===t.snapshotCallback||this.snapshotCallback.userCallback!==void 0&&this.snapshotCallback.userCallback===t.snapshotCallback.userCallback&&this.snapshotCallback.context===t.snapshotCallback.context}}/** 2265 * @license 2266 * Copyright 2020 Google LLC 2267 * 2268 * Licensed under the Apache License, Version 2.0 (the "License"); 2269 * you may not use this file except in compliance with the License. 2270 * You may obtain a copy of the License at 2271 * 2272 * http://www.apache.org/licenses/LICENSE-2.0 2273 * 2274 * Unless required by applicable law or agreed to in writing, software 2275 * distributed under the License is distributed on an "AS IS" BASIS, 2276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2277 * See the License for the specific language governing permissions and 2278 * limitations under the License. 2279 */class Bu{constructor(t,n,r,i){this._repo=t,this._path=n,this._queryParams=r,this._orderByCalled=i}get key(){return V(this._path)?null:CS(this._path)}get ref(){return new kr(this._repo,this._path)}get _queryIdentifier(){const t=Ny(this._queryParams),n=ap(t);return n==="{}"?"default":n}get _queryObject(){return Ny(this._queryParams)}isEqual(t){if(t=Ws(t),!(t instanceof Bu))return!1;const n=this._repo===t._repo,r=fp(this._path,t._path),i=this._queryIdentifier===t._queryIdentifier;return n&&r&&i}toJSON(){return this.toString()}toString(){return this._repo.toString()+dR(this._path)}}function w5(e,t){if(e._orderByCalled===!0)throw new Error(t+": You can't combine multiple orderBy calls.")}function C5(e){let t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===Br){const r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!==Qr)throw new Error(r);if(typeof t!="string")throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!==gr)throw new Error(r);
2279if(typeof n!="string")throw new Error(i)}}else if(e.getIndex()===ve){if(t!=null&&!Vy(t)||n!=null&&!Vy(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), startAfter() endAt(), endBefore(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(N(e.getIndex()instanceof pp||e.getIndex()===AS,"unknown index type."),t!=null&&typeof t=="object"||n!=null&&typeof n=="object")throw new Error("Query: First argument passed to startAt(), startAfter(), endAt(), endBefore(), or equalTo() cannot be an object.")}class kr extends Bu{constructor(t,n){super(t,n,new gp,!1)}get parent(){const t=kS(this._path);return t===null?null:new kr(this._repo,t)}get root(){let t=this;for(;t.parent!==null;)t=t.parent;return t}}class jl{constructor(t,n,r){this._node=t,this.ref=n,this._index=r}get priority(){return this._node.getPriority().val()}get key(){return this.ref.key}get size(){return this._node.numChildren()}child(t){const n=new ne(t),r=Ed(this.ref,t);return new jl(this._node.getChild(n),r,ve)}exists(){return!this._node.isEmpty()}exportVal(){return this._node.val(!0)}forEach(t){return this._node.isLeafNode()?!1:!!this._node.forEachChild(this._index,(r,i)=>t(new jl(i,Ed(this.ref,r),ve)))}hasChild(t){const n=new ne(t);return!this._node.getChild(n).isEmpty()}hasChildren(){return this._node.isLeafNode()?!1:!this._node.isEmpty()}toJSON(){return this.exportVal()}val(){return this._node.val()}}function E5(e,t){return e=Ws(e),e._checkNotDeleted("ref"),Ed(e._root,t)}function Ed(e,t){return e=Ws(e),Y(e._path)===null?XO("child","path",t):Rp("child","path",t),new kr(e._repo,Ae(e._path,t))}class Lp{constructor(t){this.callbackContext=t}respondsTo(t){return t==="value"}createEvent(t,n){const r=n._queryParams.getIndex();return new v5("value",this,new jl(t.snapshotNode,new kr(n._repo,n._path),r))}getEventRunner(t){return t.getEventType()==="cancel"?()=>this.callbackContext.onCancel(t.error):()=>this.callbackContext.onValue(t.snapshot,null)}createCancelEvent(t,n){return this.callbackContext.hasCancelCallback?new _5(this,t,n):null}matches(t){return t instanceof Lp?!t.callbackContext||!this.callbackContext?!0:t.callbackContext.matches(this.callbackContext):!1}hasAnyCallback(){return this.callbackContext!==null}}function k5(e,t,n,r,i){const o=new S5(n,void 0),s=new Lp(o);return u5(e._repo,e,s),()=>c5(e._repo,e,s)}function x5(e,t,n,r){return k5(e,"value",t)}class b5{}class T5 extends b5{constructor(t){super(),this._path=t,this.type="orderByChild"}_apply(t){w5(t,"orderByChild");const n=new ne(this._path);if(V(n))throw new Error("orderByChild: cannot pass in empty path. Use orderByValue() instead.");const r=new pp(n),i=MR(t._queryParams,r);return C5(i),new Bu(t._repo,t._path,i,!0)}}function I5(e){return Rp("orderByChild","path",e),new T5(e)}function P5(e,...t){let n=Ws(e);for(const r of t)n=r._apply(n);return n}wO(kr);TO(kr);/** 2280 * @license 2281 * Copyright 2020 Google LLC 2282 * 2283 * Licensed under the Apache License, Version 2.0 (the "License"); 2284 * you may not use this file except in compliance with the License. 2285 * You may obtain a copy of the License at 2286 * 2287 * http://www.apache.org/licenses/LICENSE-2.0 2288 * 2289 * Unless required by applicable law or agreed to in writing, software 2290 * distributed under the License is distributed on an "AS IS" BASIS, 2291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2292 * See the License for the specific language governing permissions and 2293 * limitations under the License. 2294 */const N5="FIREBASE_DATABASE_EMULATOR_HOST",kd={};let A5=!1;function R5(e,t,n,r){e.repoInfo_=new hS(`${t}:${n}`,!1,e.repoInfo_.namespace,e.repoInfo_.webSocketOnly,e.repoInfo_.nodeAdmin,e.repoInfo_.persistenceKey,e.repoInfo_.includeNamespaceInQueryParams,!0),r&&(e.authTokenProvider_=r)}function O5(e,t,n,r,i){let o=r||e.options.databaseURL;o===void 0&&(e.options.projectId||$n("Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp()."),Ke("Using default host for project ",e.options.projectId),o=`${e.options.projectId}-default-rtdb.firebaseio.com`);let s=Yy(o,i),a=s.repoInfo,l;typeof process<"u"&&dy&&(l=dy[N5]),l?(o=`http://${l}?ns=${a.namespace}`,s=Yy(o,i),a=s.repoInfo):s.repoInfo.secure;const u=new BA(e.name,e.options,t);JO("Invalid Firebase Database URL",s),V(s.path)||$n("Database URL must point to the root of a Firebase Database (not including a child path).");const f=D5(a,e,u,new zA(e.name,n));return new L5(f,e)}function M5(e,t){const n=kd[t];(!n||n[e.key]!==e)&&$n(`Database ${t}(${e.repoInfo_}) has already been deleted.`),f5(e),delete n[e.key]}function D5(e,t,n,r){let i=kd[t.name];i||(i={},kd[t.name]=i);let o=i[e.toURLString()];return o&&$n("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),o=new r5(e,A5,n,r),i[e.toURLString()]=o,o}class L5{constructor(t,n){this._repoInternal=t,this.app=n,this.type="database",this._instanceStarted=!1}get _repo(){return this._instanceStarted||(i5(this._repoInternal,this.app.options.appId,this.app.options.databaseAuthVariableOverride),this._instanceStarted=!0),this._repoInternal}get _root(){return this._rootInternal||(this._rootInternal=new kr(this._repo,Z())),this._rootInternal}_delete(){return this._rootInternal!==null&&(M5(this._repo,this.app.name),this._repoInternal=null,this._rootInternal=null),Promise.resolve()}_checkNotDeleted(t){this._rootInternal===null&&$n("Cannot call "+t+" on a deleted database.")}}function F5(e=fA(),t){const n=aA(e,"database").getImmediate({identifier:t});if(!n._instanceStarted){const r=XP("database");r&&$5(n,...r)}return n}function $5(e,t,n,r={}){e=Ws(e),e._checkNotDeleted("useEmulator"),e._instanceStarted&&$n("Cannot call useEmulator() after instance has already been initialized.");const i=e._repoInternal;let o;if(i.repoInfo_.nodeAdmin)r.mockUserToken&&$n('mockUserToken is not supported by the Admin SDK. For client access with mock users, please use the "firebase" package instead of "firebase-admin".'),o=new Ga(Ga.OWNER);else if(r.mockUserToken){const s=typeof r.mockUserToken=="string"?r.mockUserToken:JP(r.mockUserToken,e.app.options.projectId);o=new Ga(s)}R5(i,t,n,o)}/** 2295 * @license 2296 * Copyright 2021 Google LLC 2297 * 2298 * Licensed under the Apache License, Version 2.0 (the "License");
2299 * you may not use this file except in compliance with the License. 2300 * You may obtain a copy of the License at 2301 * 2302 * http://www.apache.org/licenses/LICENSE-2.0 2303 * 2304 * Unless required by applicable law or agreed to in writing, software 2305 * distributed under the License is distributed on an "AS IS" BASIS, 2306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2307 * See the License for the specific language governing permissions and 2308 * limitations under the License. 2309 */function z5(e){EA(cA),Il(new Es("database",(t,{instanceIdentifier:n})=>{const r=t.getProvider("app").getImmediate(),i=t.getProvider("auth-internal"),o=t.getProvider("app-check-internal");return O5(r,i,o,n)},"PUBLIC").setMultipleInstances(!0)),Li(hy,py,e),Li(hy,py,"esm2017")}Pn.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)};Pn.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};z5();const B5={databaseURL:"https://yorquant-56fdf-default-rtdb.firebaseio.com/"},j5=q1(B5),U5=F5(j5),W5=Je(np)(({theme:e})=>({position:"relative",width:"900px",height:"720px",backgroundImage:"url(terminal.png)",backgroundSize:"cover",backgroundPosition:"center",margin:"auto",marginTop:e.spacing(2)})),V5=Je(M1)(({theme:e})=>({position:"absolute",top:e.spacing(5),left:e.spacing(24),padding:e.spacing(1),backgroundColor:"rgba(255, 255, 255, 0)",zIndex:10,display:"flex",gap:e.spacing(2)})),H5=Je(M1)(({theme:e,topleft:t,topright:n,bottomleft:r,bottomright:i})=>({position:"absolute",left:`${t.x}px`,top:`${t.y}px`,width:`${n.x-t.x}px`,height:`${r.y-t.y}px`,backgroundColor:"rgba(0, 0, 0, 0.7)",overflowY:"auto",overflowX:"hidden",padding:e.spacing(2),"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{backgroundColor:"rgba(255, 255, 255, 0.1)"},"&::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.3)",borderRadius:"4px"}})),G5=Je(np)(({theme:e})=>({marginBottom:e.spacing(.5),whiteSpace:"pre-wrap",wordBreak:"break-word","&:last-child":{marginBottom:0}})),Y5=({topLeft:e={x:100,y:100},topRight:t={x:500,y:100},bottomLeft:n={x:100,y:500},bottomRight:r={x:500,y:500}})=>{O1();const[i,o]=b.useState([]),[s,a]=b.useState({Twitter:!0,Arena:!0,Discord:!0,Trade:!0}),l=b.useRef(null),u={Twitter:"#29b6f6",Arena:"#ff9800",Discord:"#9c27b0",Trade:"#66bb6a"},f={Twitter:"#4fc3f7",Arena:"#ffb74d",Discord:"#ba68c8",Trade:"#81c784"};b.useEffect(()=>{const g=E5(U5,"thoughts"),_=P5(g,I5("timestamp")),C=x5(_,m=>{const p=m.val();if(p){const v=Object.values(p);o(v.sort((S,w)=>S.timestamp-w.timestamp))}});return()=>C()},[]),b.useEffect(()=>{l.current&&(l.current.scrollTop=l.current.scrollHeight)},[i,s]);const c=g=>{a(_=>({..._,[g]:!_[g]}))},d=i.filter(g=>s[g.type]),y=g=>new Date(g).toLocaleTimeString();return A.jsxs(W5,{children:[A.jsx(V5,{elevation:3,children:A.jsx(jP,{row:!0,children:Object.keys(s).map(g=>A.jsx(FP,{control:A.jsx(RP,{checked:s[g],onChange:()=>c(g),sx:{color:u[g],"&.Mui-checked":{color:u[g]}}}),label:A.jsx(ki,{variant:"body2",sx:{color:u[g],fontWeight:"medium"},children:g})},g))})}),A.jsx(H5,{ref:l,elevation:0,topleft:e,topright:t,bottomleft:n,bottomright:r,children:d.map((g,_)=>A.jsx(G5,{children:A.jsxs(np,{display:"flex",alignItems:"baseline",gap:.5,children:[A.jsxs(ki,{component:"span",variant:"caption",sx:{color:u[g.type],fontWeight:"medium"},children:[g.type,":"]}),A.jsx(ki,{component:"span",variant:"caption",sx:{color:f[g.type],flex:1,minWidth:0},children:g.content}),A.jsx(ki,{component:"span",variant:"caption",sx:{color:"rgba(255, 255, 255, 0.5)",ml:"auto",flexShrink:0},children:y(g.timestamp)})]})},_))})]})};function K5(){const e=new Image;return e.src=WE,e.width=512,e.height=512,A.jsxs(A.Fragment,{children:[A.jsx("div",{children:A.jsx("a",{href:"https://x.com/yorquantai",target:"_blank",rel:"noopener noreferrer",children:A.jsx("img",{src:jE,className:"logo",alt:"This is yorquant"})})}),A.jsx("h1",{children:"This is Yorquant."}),A.jsxs("p",{children:["Yorquant is an expert in economics and game theory. Yorquant is an AI agent on Avalanche in ",A.jsx("a",{href:"https://arena.social/?ref=YorquantAI",target:"_blank",rel:"noopener noreferrer",children:"The Arena"}),"."]}),A.jsxs("div",{children:[A.jsx("a",{href:"https://twitter.com/yorquantai",target:"_blank",rel:"noopener noreferrer",children:A.jsx(Nh,{icon:Kx,size:"2x"})}),A.jsx("a",{href:"https://arena.social/YorquantAI",target:"_blank",rel:"noopener noreferrer",children:A.jsx("img",{src:UE,alt:"The Arena",className:"icon"})})]}),A.jsx(Y5,{topLeft:{x:200,y:150},topRight:{x:528,y:150},bottomLeft:{x:200,y:400},bottomRight:{x:528,y:400}}),A.jsx("h2",{children:"Draw a picture for Yorquant"}),A.jsx(Qx,{backgroundImage:e}),A.jsx("p",{children:"Disclaimer: Yorquant is not a financial advisor. Yorquant is an AI agent created for entertainment purposes only."})]})}const Q5=Au({palette:{orange:{400:"#ff9800"},purple:{400:"#9c27b0"}}});a_(document.getElementById("root")).render(A.jsx(b.StrictMode,{children:A.jsx(NI,{theme:Q5,children:A.jsx(K5,{})})}));
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.