vendor: 10,196 bytes, lines 1-25
1var lre=Object.defineProperty;var cre=(t,e,n)=>e in t?lre(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var fi=(t,e,n)=>cre(t,typeof e!="symbol"?e+"":e,n);function ure(t,e){for(var n=0;n<e.length;n++){const r=e[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in t)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(t,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var an=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ts(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function J$(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Z$={exports:{}},Lx={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and 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 dre=Symbol.for("react.transitional.element"),fre=Symbol.for("react.fragment");function eF(t,e,n){var r=null;if(n!==void 0&&(r=""+n),e.key!==void 0&&(r=""+e.key),"key"in e){n={};for(var i in e)i!=="key"&&(n[i]=e[i])}else n=e;return e=n.ref,{$$typeof:dre,type:t,key:r,ref:e!==void 0?e:null,props:n}}Lx.Fragment=fre;Lx.jsx=eF;Lx.jsxs=eF;Z$.exports=Lx;var x=Z$.exports,tF={exports:{}},zx={},nF={exports:{}},rF={};/** 10 * @license React 11 * scheduler.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and 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 */(function(t){function e(N,z){var L=N.length;N.push(z);e:for(;0<L;){var B=L-1>>>1,j=N[B];if(0<i(j,z))N[B]=z,N[L]=j,L=B;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var z=N[0],L=N.pop();if(L!==z){N[0]=L;e:for(var B=0,j=N.length,H=j>>>1;B<H;){var q=2*(B+1)-1,Y=N[q],Z=q+1,G=N[Z];if(0>i(Y,L))Z<j&&0>i(G,Y)?(N[B]=G,N[Z]=L,B=Z):(N[B]=Y,N[q]=L,B=q);else if(Z<j&&0>i(G,L))N[B]=G,N[Z]=L,B=Z;else break e}}return z}function i(N,z){var L=N.sortIndex-z.sortIndex;return L!==0?L:N.id-z.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();t.unstable_now=function(){return s.now()-a}}var l=[],c=[],u=1,d=null,f=3,h=!1,p=!1,m=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function S(N){for(var z=n(c);z!==null;){if(z.callback===null)r(c);else if(z.startTime<=N)r(c),z.sortIndex=z.expirationTime,e(l,z);else break;z=n(c)}}function I(N){if(m=!1,S(N),!p)if(n(l)!==null)p=!0,O||(O=!0,C());else{var z=n(c);z!==null&&V(I,z.startTime-N)}}var O=!1,T=-1,A=5,R=-1;function k(){return g?!0:!(t.unstable_now()-R<A)}function P(){if(g=!1,O){var N=t.unstable_now();R=N;var z=!0;try{e:{p=!1,m&&(m=!1,b(T),T=-1),h=!0;var L=f;try{t:{for(S(N),d=n(l);d!==null&&!(d.expirationTime>N&&k());){var B=d.callback;if(typeof B=="function"){d.callback=null,f=d.priorityLevel;var j=B(d.expirationTime<=N);if(N=t.unstable_now(),typeof j=="function"){d.callback=j,S(N),z=!0;break t}d===n(l)&&r(l),S(N)}else r(l);d=n(l)}if(d!==null)z=!0;else{var H=n(c);H!==null&&V(I,H.startTime-N),z=!1}}break e}finally{d=null,f=L,h=!1}z=void 0}}finally{z?C():O=!1}}}var C;if(typeof v=="function")C=function(){v(P)};else if(typeof MessageChannel<"u"){var _=new MessageChannel,M=_.port2;_.port1.onmessage=P,C=function(){M.postMessage(null)}}else C=function(){y(P,0)};function V(N,z){T=y(function(){N(t.unstable_now())},z)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(N){N.callback=null},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(N){switch(f){case 1:case 2:case 3:var z=3;break;default:z=f}var L=f;f=z;try{return N()}finally{f=L}},t.unstable_requestPaint=function(){g=!0},t.unstable_runWithPriority=function(N,z){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var L=f;f=N;try{return z()}finally{f=L}},t.unstable_scheduleCallback=function(N,z,L){var B=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?B+L:B):L=B,N){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=L+j,N={id:u++,callback:z,priorityLevel:N,startTime:L,expirationTime:j,sortIndex:-1},L>B?(N.sortIndex=L,e(c,N),n(l)===null&&N===n(c)&&(m?(b(T),T=-1):m=!0,V(I,L-B))):(N.sortIndex=j,e(l,N),p||h||(p=!0,O||(O=!0,C()))),N},t.unstable_shouldYield=k,t.unstable_wrapCallback=function(N){var z=f;return function(){var L=f;f=z;try{return N.apply(this,arguments)}finally{f=L}}}})(rF);nF.exports=rF;var hre=nF.exports,iF={exports:{}},xt={};/** 18 * @license React 19 * react.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and 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 */var d3=Symbol.for("react.transitional.element"),pre=Symbol.for("react.portal"),mre=Symbol.for("react.fragment"),gre=Symbol.for("react.strict_mode"),yre=Symbol.for("react.profiler"),vre=Symbol.for("react.consumer"),bre=Symbol.for("react.context"),wre=Symbol.for("react.forward_ref"),Sre=Symbol.for("react.suspense"),xre=Symbol.for("react.memo"),oF=Symbol.for("react.lazy"),Ere=Symbol.for("react.activity"),r9=Symbol.iterator;function Tre(t){return t===null||typeof t!="object"?null:(t=r9&&t[r9]||t["@@iterator"],typeof t=="function"?t:null)}var sF={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},aF=Object.assign,lF={};function Ym(t,e,n){this.props=t,this.context=e,this.refs=lF,this.updater=n||sF}Ym.prototype.isReactComponent={};Ym.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ym.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function cF(){}cF.prototype=Ym.prototype;function f3(t,e,n){this.props=t,this.context=e,this.refs=lF,this.updater=n||sF}var h3=f3.prototype=new cF;h3.constructor=f3;aF(h3,Ym.prototype);h3.isPureReactComponent=!0;var i9=Array.isArray;function II(){}var Nn={H:null,A:null,T:null,S:null},uF=Object.prototype.hasOwnProperty;function p3(t,e,n){var r=n.ref;return{$$typeof:d3,type:t,key:e,ref:r!==void 0?r:null,props:n}}function Cre(t,e){return p3(t.type,e,t.props)}function m3(t){return typeof t=="object"&&t!==null&&t.$$typeof===d3}function _re(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var o9=/\/+/g;function XC(t,e){return typeof t=="object"&&t!==null&&t.key!=null?_re(""+t.key):e.toString(36)}function Are(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(II,II):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function qh(t,e,n,r,i){var o=typeof t;(o==="undefined"||o==="boolean")&&(t=null);var s=!1;if(t===null)s=!0;else switch(o){case"bigint":case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case d3:case pre:s=!0;break;case oF:return s=t._init,qh(s(t._payload),e,n,r,i)}}if(s)return i=i(t),s=r===""?"."+XC(t,0):r,i9(i)?(n="",s!=null&&(n=s.replace(o9,"$&/")+"/"),qh(i,e,n,"",function(c){return c})):i!=null&&(m3(i)&&(i=Cre(i,n+(i.key==null||t&&t.key===i.key?"":(""+i.key).replace(o9,"$&/")+"/")+s)),e.push(i)),1;s=0;var a=r===""?".":r+":";if(i9(t))for(var l=0;l<t.length;l++)r=t[l],o=a+XC(r,l),s+=qh(r,e,n,o,i);else if(l=Tre(t),typeof l=="function")for(t=l.call(t),l=0;!(r=t.next()).done;)r=r.value,o=a+XC(r,l++),s+=qh(r,e,n,o,i);else if(o==="object"){if(typeof t.then=="function")return qh(Are(t),e,n,r,i);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return s}function yb(t,e,n){if(t==null)return t;var r=[],i=0;return qh(t,r,"","",function(o){return e.call(n,o,i++)}),r}function Ire(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var s9=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Rre={map:yb,forEach:function(t,e,n){yb(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;
vendor: 18,960 bytes, lines 25-48
25return yb(t,function(){e++}),e},toArray:function(t){return yb(t,function(e){return e})||[]},only:function(t){if(!m3(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};xt.Activity=Ere;xt.Children=Rre;xt.Component=Ym;xt.Fragment=mre;xt.Profiler=yre;xt.PureComponent=f3;xt.StrictMode=gre;xt.Suspense=Sre;xt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Nn;xt.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Nn.H.useMemoCache(t)}};xt.cache=function(t){return function(){return t.apply(null,arguments)}};xt.cacheSignal=function(){return null};xt.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var r=aF({},t.props),i=t.key;if(e!=null)for(o in e.key!==void 0&&(i=""+e.key),e)!uF.call(e,o)||o==="key"||o==="__self"||o==="__source"||o==="ref"&&e.ref===void 0||(r[o]=e[o]);var o=arguments.length-2;if(o===1)r.children=n;else if(1<o){for(var s=Array(o),a=0;a<o;a++)s[a]=arguments[a+2];r.children=s}return p3(t.type,i,r)};xt.createContext=function(t){return t={$$typeof:bre,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:vre,_context:t},t};xt.createElement=function(t,e,n){var r,i={},o=null;if(e!=null)for(r in e.key!==void 0&&(o=""+e.key),e)uF.call(e,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1<s){for(var a=Array(s),l=0;l<s;l++)a[l]=arguments[l+2];i.children=a}if(t&&t.defaultProps)for(r in s=t.defaultProps,s)i[r]===void 0&&(i[r]=s[r]);return p3(t,o,i)};xt.createRef=function(){return{current:null}};xt.forwardRef=function(t){return{$$typeof:wre,render:t}};xt.isValidElement=m3;xt.lazy=function(t){return{$$typeof:oF,_payload:{_status:-1,_result:t},_init:Ire}};xt.memo=function(t,e){return{$$typeof:xre,type:t,compare:e===void 0?null:e}};xt.startTransition=function(t){var e=Nn.T,n={};Nn.T=n;try{var r=t(),i=Nn.S;i!==null&&i(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(II,s9)}catch(o){s9(o)}finally{e!==null&&n.types!==null&&(e.types=n.types),Nn.T=e}};xt.unstable_useCacheRefresh=function(){return Nn.H.useCacheRefresh()};xt.use=function(t){return Nn.H.use(t)};xt.useActionState=function(t,e,n){return Nn.H.useActionState(t,e,n)};xt.useCallback=function(t,e){return Nn.H.useCallback(t,e)};xt.useContext=function(t){return Nn.H.useContext(t)};xt.useDebugValue=function(){};xt.useDeferredValue=function(t,e){return Nn.H.useDeferredValue(t,e)};xt.useEffect=function(t,e){return Nn.H.useEffect(t,e)};xt.useEffectEvent=function(t){return Nn.H.useEffectEvent(t)};xt.useId=function(){return Nn.H.useId()};xt.useImperativeHandle=function(t,e,n){return Nn.H.useImperativeHandle(t,e,n)};xt.useInsertionEffect=function(t,e){return Nn.H.useInsertionEffect(t,e)};xt.useLayoutEffect=function(t,e){return Nn.H.useLayoutEffect(t,e)};xt.useMemo=function(t,e){return Nn.H.useMemo(t,e)};xt.useOptimistic=function(t,e){return Nn.H.useOptimistic(t,e)};xt.useReducer=function(t,e,n){return Nn.H.useReducer(t,e,n)};xt.useRef=function(t){return Nn.H.useRef(t)};xt.useState=function(t){return Nn.H.useState(t)};xt.useSyncExternalStore=function(t,e,n){return Nn.H.useSyncExternalStore(t,e,n)};xt.useTransition=function(){return Nn.H.useTransition()};xt.version="19.2.4";iF.exports=xt;var E=iF.exports;const ft=Ts(E),Ly=ure({__proto__:null,default:ft},[E]);var dF={exports:{}},Di={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and 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 Mre=E;function fF(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function xc(){}var Ii={d:{f:xc,r:function(){throw Error(fF(522))},D:xc,C:xc,L:xc,m:xc,X:xc,S:xc,M:xc},p:0,findDOMNode:null},kre=Symbol.for("react.portal");function Pre(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:kre,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}var F1=Mre.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Vx(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Di.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ii;Di.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(fF(299));return Pre(t,e,null,n)};Di.flushSync=function(t){var e=F1.T,n=Ii.p;try{if(F1.T=null,Ii.p=2,t)return t()}finally{F1.T=e,Ii.p=n,Ii.d.f()}};Di.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,Ii.d.C(t,e))};Di.prefetchDNS=function(t){typeof t=="string"&&Ii.d.D(t)};Di.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,r=Vx(n,e.crossOrigin),i=typeof e.integrity=="string"?e.integrity:void 0,o=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?Ii.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n==="script"&&Ii.d.X(t,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Di.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=Vx(e.as,e.crossOrigin);Ii.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&Ii.d.M(t)};Di.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,r=Vx(n,e.crossOrigin);Ii.d.L(t,n,{crossOrigin:r,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Di.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=Vx(e.as,e.crossOrigin);Ii.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else Ii.d.m(t)};Di.requestFormReset=function(t){Ii.d.r(t)};Di.unstable_batchedUpdates=function(t,e){return t(e)};Di.useFormState=function(t,e,n){return F1.H.useFormState(t,e,n)};Di.useFormStatus=function(){return F1.H.useHostTransitionStatus()};Di.version="19.2.4";function hF(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(hF)}catch(t){console.error(t)}}hF(),dF.exports=Di;var za=dF.exports;const p1=Ts(za);/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var Dr=hre,pF=E,Ore=za;function Se(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function mF(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function rv(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function gF(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function yF(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function a9(t){if(rv(t)!==t)throw Error(Se(188))}function Nre(t){var e=t.alternate;if(!e){if(e=rv(t),e===null)throw Error(Se(188));return e!==t?null:t}for(var n=t,r=e;;){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 a9(i),t;if(o===r)return a9(i),e;o=o.sibling}throw Error(Se(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(Se(189))}}if(n.alternate!==r)throw Error(Se(190))}if(n.tag!==3)throw Error(Se(188));return n.stateNode.current===n?t:e}function vF(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=vF(t),e!==null)return e;t=t.sibling}return null}var Ln=Object.assign,Dre=Symbol.for("react.element"),vb=Symbol.for("react.transitional.element"),m1=Symbol.for("react.portal"),np=Symbol.for("react.fragment"),bF=Symbol.for("react.strict_mode"),RI=Symbol.for("react.profiler"),wF=Symbol.for("react.consumer"),Al=Symbol.for("react.context"),g3=Symbol.for("react.forward_ref"),MI=Symbol.for("react.suspense"),kI=Symbol.for("react.suspense_list"),y3=Symbol.for("react.memo"),Pc=Symbol.for("react.lazy"),PI=Symbol.for("react.activity"),Lre=Symbol.for("react.memo_cache_sentinel"),l9=Symbol.iterator;function Og(t){return t===null||typeof t!="object"?null:(t=l9&&t[l9]||t["@@iterator"],typeof t=="function"?t:null)}var zre=Symbol.for("react.client.reference");function OI(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===zre?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case np:return"Fragment";case RI:return"Profiler";case bF:return"StrictMode";case MI:return"Suspense";case kI:return"SuspenseList";case PI:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case m1:return"Portal";case Al:return t.displayName||"Context";case wF:return(t._context.displayName||"Context")+".Consumer";case g3:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case y3:return e=t.displayName||null,e!==null?e:OI(t.type)||"Memo";case Pc:e=t._payload,t=t._init;try{return OI(t(e))}catch{}}return null}var g1=Array.isArray,pt=pF.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Qt=Ore.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rf={pending:!1,data:null,method:null,action:null},NI=[],rp=-1;function Ya(t){return{current:t}}function qr(t){0>rp||(t.current=NI[rp],NI[rp]=null,rp--)}function _n(t,e){rp++,NI[rp]=t.current,t.current=e}var Ra=Ya(null),zy=Ya(null),au=Ya(null),Pw=Ya(null);function Ow(t,e){switch(_n(au,e),_n(zy,t),_n(Ra,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?p6(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=p6(e),t=$H(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}qr(Ra),_n(Ra,t)}function Jp(){qr(Ra),qr(zy),qr(au)}function DI(t){t.memoizedState!==null&&_n(Pw,t);var e=Ra.current,n=$H(e,t.type);e!==n&&(_n(zy,t),_n(Ra,n))}function Nw(t){zy.current===t&&(qr(Ra),qr(zy)),Pw.current===t&&(qr(Pw),Ky._currentValue=rf)}var QC,c9;function Id(t){if(QC===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);QC=e&&e[1]||"",c9=-1<n.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+QC+t+c9}var JC=!1;function ZC(t,e){if(!t||JC)return"";JC=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(e){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var f=h}Reflect.construct(t,[],d)}else{try{d.call()}catch(h){f=h}t.call(d.prototype)}}else{try{throw Error()}catch(h){f=h}(d=t())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var o=r.DetermineComponentFrameRoot(),s=o[0],a=o[1];if(s&&a){var l=s.split(` 44`),c=a.split(` 45`);for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<c.length&&!c[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===c.length)for(r=l.length-1,i=c.length-1;1<=r&&0<=i&&l[r]!==c[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==c[i]){if(r!==1||i!==1)do if(r--,i--,0>i||l[r]!==c[i]){var u=` 46`+l[r].replace(" at new "," at ");return t.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",t.displayName)),u}while(1<=r&&0<=i);break}}}finally{JC=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Id(n):""}function Vre(t,e){switch(t.tag){case 26:case 27:case 5:return Id(t.type);case 16:return Id("Lazy");case 13:return t.child!==e&&e!==null?Id("Suspense Fallback"):Id("Suspense");case 19:return Id("SuspenseList");case 0:case 15:return ZC(t.type,!1);case 11:return ZC(t.type.render,!1);case 1:return ZC(t.type,!0);case 31:return Id("Activity");default:return""}}function u9(t){try{var e="",n=null;do e+=Vre(t,n),n=t,t=t.return;while(t);return e}catch(r){return` 47Error generating stack: `+r.message+` 48`+r.stack}}var LI=Object.prototype.hasOwnProperty,v3=Dr.unstable_scheduleCallback,e_=Dr.unstable_cancelCallback,Bre=Dr.unstable_shouldYield,$re=Dr.unstable_requestPaint,_o=Dr.unstable_now,Fre=Dr.unstable_getCurrentPriorityLevel,SF=Dr.unstable_ImmediatePriority,xF=Dr.unstable_UserBlockingPriority,Dw=Dr.unstable_NormalPriority,jre=Dr.unstable_LowPriority,EF=Dr.unstable_IdlePriority,Hre=Dr.log,Ure=Dr.unstable_setDisableYieldValue,iv=null,Ao=null;function Gc(t){if(typeof Hre=="function"&&Ure(t),Ao&&typeof Ao.setStrictMode=="function")try{Ao.setStrictMode(iv,t)}catch{}}var Io=Math.clz32?Math.clz32:Gre,qre=Math.log,Wre=Math.LN2;function Gre(t){return t>>>=0,t===0?32:31-(qre(t)/Wre|0)|0}var bb=256,wb=262144,Sb=4194304;function Rd(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Bx(t,e,n){var r=t.pendingLanes;if(r===0)return 0;var i=0,o=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var a=r&134217727;return a!==0?(r=a&~o,r!==0?i=Rd(r):(s&=a,s!==0?i=Rd(s):n||(n=a&~t,n!==0&&(i=Rd(n))))):(a=r&~o,a!==0?i=Rd(a):s!==0?i=Rd(s):n||(n=r&~t,n!==0&&(i=Rd(n)))),i===0?0:e!==0&&e!==i&&!(e&o)&&(o=i&-i,n=e&-e,o>=n||o===32&&(n&4194048)!==0)?e:i}function ov(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Kre(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32: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+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function TF(){var t=Sb;return Sb<<=1,!(Sb&62914560)&&(Sb=4194304),t}function t_(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function sv(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Yre(t,e,n,r,i,o){var s=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var a=t.entanglements,l=t.expirationTimes,c=t.hiddenUpdates;for(n=s&~n;0<n;){var u=31-Io(n),d=1<<u;a[u]=0,l[u]=-1;var f=c[u];if(f!==null)for(c[u]=null,u=0;u<f.length;u++){var h=f[u];h!==null&&(h.lane&=-536870913)}n&=~d}r!==0&&CF(t,r,0),o!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=o&~(s&~e))}function CF(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var r=31-Io(e);t.entangledLanes|=e,t.entanglements[r]=t.entanglements[r]|1073741824|n&261930}function _F(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Io(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}function AF(t,e){var n=e&-e;return n=n&42?1:b3(n),n&(t.suspendedLanes|e)?0:n}function b3(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function w3(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function IF(){var t=Qt.p;return t!==0?t:(t=window.event,t===void 0?32:QH(t.type))}function d9(t,e){var n=Qt.p;try{return Qt.p=t,e()}finally{Qt.p=n}}var Yu=Math.random().toString(36).slice(2),oi="__reactFiber$"+Yu,ro="__reactProps$"+Yu,Xm="__reactContainer$"+Yu,zI="__reactEvents$"+Yu,Xre="__reactListeners$"+Yu,Qre="__reactHandles$"+Yu,f9="__reactResources$"+Yu,av="__reactMarker$"+Yu;function S3(t){delete t[oi],delete t[ro],delete t[zI],delete t[Xre],delete t[Qre]}function ip(t){var e=t[oi];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Xm]||n[oi]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=b6(t);t!==null;){if(n=t[oi])return n;t=b6(t)}return e}t=n,n=t.parentNode}return null}function Qm(t){if(t=t[oi]||t[Xm]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function y1(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(Se(33))}function Tp(t){var e=t[f9];return e||(e=t[f9]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function jr(t){t[av]=!0}var RF=new Set,MF={};function ih(t,e){Zp(t,e),Zp(t+"Capture",e)}function Zp(t,e){for(MF[t]=e,t=0;t<e.length;t++)RF.add(e[t])}var Jre=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
vendor: 6,778 bytes, line 48
48037D\\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]*$"),h9={},p9={};function Zre(t){return LI.call(p9,t)?!0:LI.call(h9,t)?!1:Jre.test(t)?p9[t]=!0:(h9[t]=!0,!1)}function P2(t,e,n){if(Zre(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var r=e.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function xb(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function sl(t,e,n,r){if(r===null)t.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+r)}}function Jo(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kF(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function eie(t,e,n){var r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var i=r.get,o=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function VI(t){if(!t._valueTracker){var e=kF(t)?"checked":"value";t._valueTracker=eie(t,e,""+t[e])}}function PF(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=kF(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Lw(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var tie=/[\n"\\]/g;function rs(t){return t.replace(tie,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function BI(t,e,n,r,i,o,s,a){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Jo(e)):t.value!==""+Jo(e)&&(t.value=""+Jo(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?$I(t,s,Jo(e)):n!=null?$I(t,s,Jo(n)):r!=null&&t.removeAttribute("value"),i==null&&o!=null&&(t.defaultChecked=!!o),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"?t.name=""+Jo(a):t.removeAttribute("name")}function OF(t,e,n,r,i,o,s,a){if(o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.type=o),e!=null||n!=null){if(!(o!=="submit"&&o!=="reset"||e!=null)){VI(t);return}n=n!=null?""+Jo(n):"",e=e!=null?""+Jo(e):n,a||e===t.value||(t.value=e),t.defaultValue=e}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,t.checked=a?t.checked:!!r,t.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),VI(t)}function $I(t,e,n){e==="number"&&Lw(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Cp(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Jo(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function NF(t,e,n){if(e!=null&&(e=""+Jo(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Jo(n):""}function DF(t,e,n,r){if(e==null){if(r!=null){if(n!=null)throw Error(Se(92));if(g1(r)){if(1<r.length)throw Error(Se(93));r=r[0]}n=r}n==null&&(n=""),e=n}n=Jo(e),t.defaultValue=n,r=t.textContent,r===n&&r!==""&&r!==null&&(t.value=r),VI(t)}function em(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var nie=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function m9(t,e,n){var r=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":r?t.setProperty(e,n):typeof n!="number"||n===0||nie.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function LF(t,e,n){if(e!=null&&typeof e!="object")throw Error(Se(62));if(t=t.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||e!=null&&e.hasOwnProperty(r)||(r.indexOf("--")===0?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="");for(var i in e)r=e[i],e.hasOwnProperty(i)&&n[i]!==r&&m9(t,i,r)}else for(var o in e)e.hasOwnProperty(o)&&m9(t,o,e[o])}function x3(t){if(t.indexOf("-")===-1)return!1;switch(t){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 rie=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
48dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),iie=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function O2(t){return iie.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Il(){}var FI=null;function E3(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var op=null,_p=null;function g9(t){var e=Qm(t);if(e&&(t=e.stateNode)){var n=t[ro]||null;e:switch(t=e.stateNode,e.type){case"input":if(BI(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+rs(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=r[ro]||null;if(!i)throw Error(Se(90));BI(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)r=n[e],r.form===t.form&&PF(r)}break e;case"textarea":NF(t,n.value,n.defaultValue);break e;case"select":e=n.value,e!=null&&Cp(t,!!n.multiple,e,!1)}}}var n_=!1;function zF(t,e,n){if(n_)return t(e,n);n_=!0;try{var r=t(e);return r}finally{if(n_=!1,(op!==null||_p!==null)&&(Qx(),op&&(e=op,t=_p,_p=op=null,g9(e),t)))for(e=0;e<t.length;e++)g9(t[e])}}function Vy(t,e){var n=t.stateNode;if(n===null)return null;var r=n[ro]||null;if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(Se(231,e,typeof n));return n}var ql=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jI=!1;if(ql)try{var Ng={};Object.defineProperty(Ng,"passive",{get:function(){jI=!0}}),window.addEventListener("test",Ng,Ng),window.removeEventListener("test",Ng,Ng)}catch{jI=!1}var Kc=null,T3=null,N2=null;function VF(){if(N2)return N2;var t,e=T3,n=e.length,r,i="value"in Kc?Kc.value:Kc.textContent,o=i.length;for(t=0;t<n&&e[t]===i[t];t++);var s=n-t;for(r=1;r<=s&&e[n-r]===i[o-r];r++);return N2=i.slice(t,1<r?1-r:void 0)}function D2(t){var e=t.keyCode;
vendor: 5,515 bytes, line 48
48return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Eb(){return!0}function y9(){return!1}function ao(t){function e(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 t)t.hasOwnProperty(a)&&(n=t[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Eb:y9,this.isPropagationStopped=y9,this}return Ln(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Eb)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Eb)},persist:function(){},isPersistent:Eb}),e}var oh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$x=ao(oh),lv=Ln({},oh,{view:0,detail:0}),oie=ao(lv),r_,i_,Dg,Fx=Ln({},lv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:C3,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Dg&&(Dg&&t.type==="mousemove"?(r_=t.screenX-Dg.screenX,i_=t.screenY-Dg.screenY):i_=r_=0,Dg=t),r_)},movementY:function(t){return"movementY"in t?t.movementY:i_}}),v9=ao(Fx),sie=Ln({},Fx,{dataTransfer:0}),aie=ao(sie),lie=Ln({},lv,{relatedTarget:0}),o_=ao(lie),cie=Ln({},oh,{animationName:0,elapsedTime:0,pseudoElement:0}),uie=ao(cie),die=Ln({},oh,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fie=ao(die),hie=Ln({},oh,{data:0}),b9=ao(hie),pie={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mie={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"},gie={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yie(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=gie[t])?!!e[t]:!1}function C3(){return yie}var vie=Ln({},lv,{key:function(t){if(t.key){var e=pie[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=D2(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mie[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:C3,charCode:function(t){return t.type==="keypress"?D2(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?D2(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),bie=ao(vie),wie=Ln({},Fx,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),w9=ao(wie),Sie=Ln({},lv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:C3}),xie=ao(Sie),Eie=Ln({},oh,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tie=ao(Eie),Cie=Ln({},Fx,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),_ie=ao(Cie),Aie=Ln({},oh,{newState:0,oldState:0}),Iie=ao(Aie),Rie=[9,13,27,32],_3=ql&&"CompositionEvent"in window,j1=null;ql&&"documentMode"in document&&(j1=document.documentMode);var Mie=ql&&"TextEvent"in window&&!j1,BF=ql&&(!_3||j1&&8<j1&&11>=j1),S9=" ",x9=!1;function $F(t,e){switch(t){case"keyup":return Rie.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function FF(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var sp=!1;function kie(t,e){switch(t){case"compositionend":return FF(e);case"keypress":return e.which!==32?null:(x9=!0,S9);case"textInput":return t=e.data,t===S9&&x9?null:t;default:return null}}function Pie(t,e){if(sp)return t==="compositionend"||!_3&&$F(t,e)?(t=VF(),N2=T3=Kc=null,sp=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return BF&&e.locale!=="ko"?null:e.data;default:return null}}var Oie={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 E9(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Oie[t.type]:e==="textarea"}function jF(t,e,n,r){op?_p?_p.push(r):_p=[r]:op=r,e=eS(e,"onChange"),0<e.length&&(n=new $x("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var H1=null,By=null;function Nie(t){zH(t,0)}function jx(t){var e=y1(t);
vendor: 5,153 bytes, line 48
48if(PF(e))return t}function T9(t,e){if(t==="change")return e}var HF=!1;if(ql){var s_;if(ql){var a_="oninput"in document;if(!a_){var C9=document.createElement("div");C9.setAttribute("oninput","return;"),a_=typeof C9.oninput=="function"}s_=a_}else s_=!1;HF=s_&&(!document.documentMode||9<document.documentMode)}function _9(){H1&&(H1.detachEvent("onpropertychange",UF),By=H1=null)}function UF(t){if(t.propertyName==="value"&&jx(By)){var e=[];jF(e,By,t,E3(t)),zF(Nie,e)}}function Die(t,e,n){t==="focusin"?(_9(),H1=e,By=n,H1.attachEvent("onpropertychange",UF)):t==="focusout"&&_9()}function Lie(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return jx(By)}function zie(t,e){if(t==="click")return jx(e)}function Vie(t,e){if(t==="input"||t==="change")return jx(e)}function Bie(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Do=typeof Object.is=="function"?Object.is:Bie;function $y(t,e){if(Do(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!LI.call(e,i)||!Do(t[i],e[i]))return!1}return!0}function A9(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function I9(t,e){var n=A9(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=A9(n)}}function qF(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?qF(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function WF(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Lw(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Lw(t.document)}return e}function A3(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var $ie=ql&&"documentMode"in document&&11>=document.documentMode,ap=null,HI=null,U1=null,UI=!1;function R9(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;UI||ap==null||ap!==Lw(r)||(r=ap,"selectionStart"in r&&A3(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),U1&&$y(U1,r)||(U1=r,r=eS(HI,"onSelect"),0<r.length&&(e=new $x("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=ap)))}function xd(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var lp={animationend:xd("Animation","AnimationEnd"),animationiteration:xd("Animation","AnimationIteration"),animationstart:xd("Animation","AnimationStart"),transitionrun:xd("Transition","TransitionRun"),transitionstart:xd("Transition","TransitionStart"),transitioncancel:xd("Transition","TransitionCancel"),transitionend:xd("Transition","TransitionEnd")},l_={},GF={};ql&&(GF=document.createElement("div").style,"AnimationEvent"in window||(delete lp.animationend.animation,delete lp.animationiteration.animation,delete lp.animationstart.animation),"TransitionEvent"in window||delete lp.transitionend.transition);function sh(t){if(l_[t])return l_[t];if(!lp[t])return t;var e=lp[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in GF)return l_[t]=e[n];return t}var KF=sh("animationend"),YF=sh("animationiteration"),XF=sh("animationstart"),Fie=sh("transitionrun"),jie=sh("transitionstart"),Hie=sh("transitioncancel"),QF=sh("transitionend"),JF=new Map,qI="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");qI.push("scrollEnd");function Js(t,e){JF.set(t,e),ih(e,[t])}var zw=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ko=[],cp=0,I3=0;function Hx(){for(var t=cp,e=I3=cp=0;e<t;){var n=Ko[e];Ko[e++]=null;var r=Ko[e];Ko[e++]=null;var i=Ko[e];Ko[e++]=null;var o=Ko[e];if(Ko[e++]=null,r!==null&&i!==null){var s=r.pending;
vendor: 2,648 bytes, line 48
48s===null?i.next=i:(i.next=s.next,s.next=i),r.pending=i}o!==0&&ZF(n,i,o)}}function Ux(t,e,n,r){Ko[cp++]=t,Ko[cp++]=e,Ko[cp++]=n,Ko[cp++]=r,I3|=r,t.lanes|=r,t=t.alternate,t!==null&&(t.lanes|=r)}function R3(t,e,n,r){return Ux(t,e,n,r),Vw(t)}function ah(t,e){return Ux(t,null,null,e),Vw(t)}function ZF(t,e,n){t.lanes|=n;var r=t.alternate;r!==null&&(r.lanes|=n);for(var i=!1,o=t.return;o!==null;)o.childLanes|=n,r=o.alternate,r!==null&&(r.childLanes|=n),o.tag===22&&(t=o.stateNode,t===null||t._visibility&1||(i=!0)),t=o,o=o.return;return t.tag===3?(o=t.stateNode,i&&e!==null&&(i=31-Io(n),t=o.hiddenUpdates,r=t[i],r===null?t[i]=[e]:r.push(e),e.lane=n|536870912),o):null}function Vw(t){if(50<Z1)throw Z1=0,f5=null,Error(Se(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var up={};function Uie(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,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 vo(t,e,n,r){return new Uie(t,e,n,r)}function M3(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Vl(t,e){var n=t.alternate;return n===null?(n=vo(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function ej(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function L2(t,e,n,r,i,o){var s=0;if(r=t,typeof t=="function")M3(t)&&(s=1);else if(typeof t=="string")s=Yoe(t,n,Ra.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case PI:return t=vo(31,n,e,i),t.elementType=PI,t.lanes=o,t;
vendor: 16,763 bytes, line 48
48case np:return of(n.children,i,o,e);case bF:s=8,i|=24;break;case RI:return t=vo(12,n,e,i|2),t.elementType=RI,t.lanes=o,t;case MI:return t=vo(13,n,e,i),t.elementType=MI,t.lanes=o,t;case kI:return t=vo(19,n,e,i),t.elementType=kI,t.lanes=o,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Al:s=10;break e;case wF:s=9;break e;case g3:s=11;break e;case y3:s=14;break e;case Pc:s=16,r=null;break e}s=29,n=Error(Se(130,t===null?"null":typeof t,"")),r=null}return e=vo(s,n,e,i),e.elementType=t,e.type=r,e.lanes=o,e}function of(t,e,n,r){return t=vo(7,t,r,e),t.lanes=n,t}function c_(t,e,n){return t=vo(6,t,null,e),t.lanes=n,t}function tj(t){var e=vo(18,null,null,0);return e.stateNode=t,e}function u_(t,e,n){return e=vo(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var M9=new WeakMap;function is(t,e){if(typeof t=="object"&&t!==null){var n=M9.get(t);return n!==void 0?n:(e={value:t,source:e,stack:u9(e)},M9.set(t,e),e)}return{value:t,source:e,stack:u9(e)}}var dp=[],fp=0,Bw=null,Fy=0,Zo=[],es=0,Ou=null,xa=1,Ea="";function wl(t,e){dp[fp++]=Fy,dp[fp++]=Bw,Bw=t,Fy=e}function nj(t,e,n){Zo[es++]=xa,Zo[es++]=Ea,Zo[es++]=Ou,Ou=t;var r=xa;t=Ea;var i=32-Io(r)-1;r&=~(1<<i),n+=1;var o=32-Io(e)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,xa=1<<32-Io(e)+i|n<<i|r,Ea=o+t}else xa=1<<o|n<<i|r,Ea=t}function k3(t){t.return!==null&&(wl(t,1),nj(t,1,0))}function P3(t){for(;t===Bw;)Bw=dp[--fp],dp[fp]=null,Fy=dp[--fp],dp[fp]=null;for(;t===Ou;)Ou=Zo[--es],Zo[es]=null,Ea=Zo[--es],Zo[es]=null,xa=Zo[--es],Zo[es]=null}function rj(t,e){Zo[es++]=xa,Zo[es++]=Ea,Zo[es++]=Ou,xa=e.id,Ea=e.overflow,Ou=t}var si=null,Pn=null,$t=!1,lu=null,ss=!1,WI=Error(Se(519));function Nu(t){var e=Error(Se(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jy(is(e,t)),WI}function k9(t){var e=t.stateNode,n=t.type,r=t.memoizedProps;switch(e[oi]=t,e[ro]=r,n){case"dialog":Ot("cancel",e),Ot("close",e);break;case"iframe":case"object":case"embed":Ot("load",e);break;case"video":case"audio":for(n=0;n<Wy.length;n++)Ot(Wy[n],e);break;case"source":Ot("error",e);break;case"img":case"image":case"link":Ot("error",e),Ot("load",e);break;case"details":Ot("toggle",e);break;case"input":Ot("invalid",e),OF(e,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Ot("invalid",e);break;case"textarea":Ot("invalid",e),DF(e,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||r.suppressHydrationWarning===!0||BH(e.textContent,n)?(r.popover!=null&&(Ot("beforetoggle",e),Ot("toggle",e)),r.onScroll!=null&&Ot("scroll",e),r.onScrollEnd!=null&&Ot("scrollend",e),r.onClick!=null&&(e.onclick=Il),e=!0):e=!1,e||Nu(t,!0)}function P9(t){for(si=t.return;si;)switch(si.tag){case 5:case 31:case 13:ss=!1;return;case 27:case 3:ss=!0;return;default:si=si.return}}function Ch(t){if(t!==si)return!1;if(!$t)return P9(t),$t=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||y5(t.type,t.memoizedProps)),n=!n),n&&Pn&&Nu(t),P9(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Se(317));Pn=v6(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Se(317));Pn=v6(t)}else e===27?(e=Pn,Xu(t.type)?(t=S5,S5=null,Pn=t):Pn=e):Pn=si?ds(t.stateNode.nextSibling):null;return!0}function Tf(){Pn=si=null,$t=!1}function d_(){var t=lu;return t!==null&&(Ui===null?Ui=t:Ui.push.apply(Ui,t),lu=null),t}function jy(t){lu===null?lu=[t]:lu.push(t)}var GI=Ya(null),lh=null,Rl=null;function Lc(t,e,n){_n(GI,e._currentValue),e._currentValue=n}function Bl(t){t._currentValue=GI.current,qr(GI)}function KI(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function YI(t,e,n,r){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var o=i.dependencies;if(o!==null){var s=i.child;o=o.firstContext;e:for(;o!==null;){var a=o;o=i;for(var l=0;l<e.length;l++)if(a.context===e[l]){o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),KI(o.return,n,t),r||(s=null);break e}o=a.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(Se(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),KI(s,n,t),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function Jm(t,e,n,r){t=null;for(var i=e,o=!1;i!==null;){if(!o){if(i.flags&524288)o=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(Se(387));if(s=s.memoizedProps,s!==null){var a=i.type;Do(i.pendingProps.value,s.value)||(t!==null?t.push(a):t=[a])}}else if(i===Pw.current){if(s=i.alternate,s===null)throw Error(Se(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(Ky):t=[Ky])}i=i.return}t!==null&&YI(e,t,n,r),e.flags|=262144}function $w(t){for(t=t.firstContext;t!==null;){if(!Do(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Cf(t){lh=t,Rl=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ai(t){return ij(lh,t)}function Tb(t,e){return lh===null&&Cf(t),ij(t,e)}function ij(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Rl===null){if(t===null)throw Error(Se(308));Rl=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Rl=Rl.next=e;return n}var qie=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,r){t.push(r)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Wie=Dr.unstable_scheduleCallback,Gie=Dr.unstable_NormalPriority,Tr={$$typeof:Al,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function O3(){return{controller:new qie,data:new Map,refCount:0}}function cv(t){t.refCount--,t.refCount===0&&Wie(Gie,function(){t.controller.abort()})}var q1=null,XI=0,tm=0,Ap=null;function Kie(t,e){if(q1===null){var n=q1=[];XI=0,tm=iM(),Ap={status:"pending",value:void 0,then:function(r){n.push(r)}}}return XI++,e.then(O9,O9),e}function O9(){if(--XI===0&&q1!==null){Ap!==null&&(Ap.status="fulfilled");var t=q1;q1=null,tm=0,Ap=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Yie(t,e){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){r.status="fulfilled",r.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var N9=pt.S;pt.S=function(t,e){vH=_o(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Kie(t,e),N9!==null&&N9(t,e)};var sf=Ya(null);function N3(){var t=sf.current;return t!==null?t:En.pooledCache}function z2(t,e){e===null?_n(sf,sf.current):_n(sf,e.pool)}function oj(){var t=N3();return t===null?null:{parent:Tr._currentValue,pool:t}}var Zm=Error(Se(460)),D3=Error(Se(474)),qx=Error(Se(542)),Fw={then:function(){}};function D9(t){return t=t.status,t==="fulfilled"||t==="rejected"}function sj(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Il,Il),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,z9(t),t;default:if(typeof e.status=="string")e.then(Il,Il);else{if(t=En,t!==null&&100<t.shellSuspendCounter)throw Error(Se(482));t=e,t.status="pending",t.then(function(r){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=r}},function(r){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=r}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,z9(t),t}throw af=e,Zm}}function Md(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(af=n,Zm):n}}var af=null;function L9(){if(af===null)throw Error(Se(459));var t=af;return af=null,t}function z9(t){if(t===Zm||t===qx)throw Error(Se(483))}var Ip=null,Hy=0;function Cb(t){var e=Hy;return Hy+=1,Ip===null&&(Ip=[]),sj(Ip,t,e)}function Lg(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function _b(t,e){throw e.$$typeof===Dre?Error(Se(525)):(t=Object.prototype.toString.call(e),Error(Se(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function aj(t){function e(y,b){if(t){var v=y.deletions;v===null?(y.deletions=[b],y.flags|=16):v.push(b)}}function n(y,b){if(!t)return null;for(;b!==null;)e(y,b),b=b.sibling;return null}function r(y){for(var b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function i(y,b){return y=Vl(y,b),y.index=0,y.sibling=null,y}function o(y,b,v){return y.index=v,t?(v=y.alternate,v!==null?(v=v.index,v<b?(y.flags|=67108866,b):v):(y.flags|=67108866,b)):(y.flags|=1048576,b)}function s(y){return t&&y.alternate===null&&(y.flags|=67108866),y}function a(y,b,v,S){return b===null||b.tag!==6?(b=c_(v,y.mode,S),b.return=y,b):(b=i(b,v),b.return=y,b)}function l(y,b,v,S){var I=v.type;return I===np?u(y,b,v.props.children,S,v.key):b!==null&&(b.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Pc&&Md(I)===b.type)?(b=i(b,v.props),Lg(b,v),b.return=y,b):(b=L2(v.type,v.key,v.props,null,y.mode,S),Lg(b,v),b.return=y,b)}function c(y,b,v,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==v.containerInfo||b.stateNode.implementation!==v.implementation?(b=u_(v,y.mode,S),b.return=y,b):(b=i(b,v.children||[]),b.return=y,b)}function u(y,b,v,S,I){return b===null||b.tag!==7?(b=of(v,y.mode,S,I),b.return=y,b):(b=i(b,v),b.return=y,b)}function d(y,b,v){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=c_(""+b,y.mode,v),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case vb:return v=L2(b.type,b.key,b.props,null,y.mode,v),Lg(v,b),v.return=y,v;case m1:return b=u_(b,y.mode,v),b.return=y,b;case Pc:return b=Md(b),d(y,b,v)}if(g1(b)||Og(b))return b=of(b,y.mode,v,null),b.return=y,b;if(typeof b.then=="function")return d(y,Cb(b),v);if(b.$$typeof===Al)return d(y,Tb(y,b),v);_b(y,b)}return null}function f(y,b,v,S){var I=b!==null?b.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return I!==null?null:a(y,b,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case vb:return v.key===I?l(y,b,v,S):null;case m1:return v.key===I?c(y,b,v,S):null;case Pc:return v=Md(v),f(y,b,v,S)}if(g1(v)||Og(v))return I!==null?null:u(y,b,v,S,null);if(typeof v.then=="function")return f(y,b,Cb(v),S);if(v.$$typeof===Al)return f(y,b,Tb(y,v),S);_b(y,v)}return null}function h(y,b,v,S,I){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(v)||null,a(b,y,""+S,I);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case vb:return y=y.get(S.key===null?v:S.key)||null,l(b,y,S,I);case m1:return y=y.get(S.key===null?v:S.key)||null,c(b,y,S,I);case Pc:return S=Md(S),h(y,b,v,S,I)}if(g1(S)||Og(S))return y=y.get(v)||null,u(b,y,S,I,null);if(typeof S.then=="function")return h(y,b,v,Cb(S),I);if(S.$$typeof===Al)return h(y,b,v,Tb(b,S),I);_b(b,S)}return null}function p(y,b,v,S){for(var I=null,O=null,T=b,A=b=0,R=null;T!==null&&A<v.length;A++){T.index>A?(R=T,T=null):R=T.sibling;var k=f(y,T,v[A],S);if(k===null){T===null&&(T=R);break}t&&T&&k.alternate===null&&e(y,T),b=o(k,b,A),O===null?I=k:O.sibling=k,O=k,T=R}if(A===v.length)return n(y,T),$t&&wl(y,A),I;if(T===null){for(;A<v.length;A++)T=d(y,v[A],S),T!==null&&(b=o(T,b,A),O===null?I=T:O.sibling=T,O=T);return $t&&wl(y,A),I}for(T=r(T);A<v.length;A++)R=h(T,y,A,v[A],S),R!==null&&(t&&R.alternate!==null&&T.delete(R.key===null?A:R.key),b=o(R,b,A),O===null?I=R:O.sibling=R,O=R);return t&&T.forEach(function(P){return e(y,P)}),$t&&wl(y,A),I}function m(y,b,v,S){if(v==null)throw Error(Se(151));for(var I=null,O=null,T=b,A=b=0,R=null,k=v.next();T!==null&&!k.done;A++,k=v.next()){T.index>A?(R=T,T=null):R=T.sibling;var P=f(y,T,k.value,S);if(P===null){T===null&&(T=R);break}t&&T&&P.alternate===null&&e(y,T),b=o(P,b,A),O===null?I=P:O.sibling=P,O=P,T=R}if(k.done)return n(y,T),$t&&wl(y,A),I;if(T===null){for(;!k.done;A++,k=v.next())k=d(y,k.value,S),k!==null&&(b=o(k,b,A),O===null?I=k:O.sibling=k,O=k);return $t&&wl(y,A),I}for(T=r(T);!k.done;A++,k=v.next())k=h(T,y,A,k.value,S),k!==null&&(t&&k.alternate!==null&&T.delete(k.key===null?A:k.key),b=o(k,b,A),O===null?I=k:O.sibling=k,O=k);return t&&T.forEach(function(C){return e(y,C)}),$t&&wl(y,A),I}function g(y,b,v,S){if(typeof v=="object"&&v!==null&&v.type===np&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case vb:e:{for(var I=v.key;b!==null;){if(b.key===I){if(I=v.type,I===np){if(b.tag===7){n(y,b.sibling),S=i(b,v.props.children),S.return=y,y=S;break e}}else if(b.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===Pc&&Md(I)===b.type){n(y,b.sibling),S=i(b,v.props),Lg(S,v),S.return=y,y=S;break e}n(y,b);break}else e(y,b);b=b.sibling}v.type===np?(S=of(v.props.children,y.mode,S,v.key),S.return=y,y=S):(S=L2(v.type,v.key,v.props,null,y.mode,S),Lg(S,v),S.return=y,y=S)}return s(y);case m1:e:{for(I=v.key;b!==null;){if(b.key===I)if(b.tag===4&&b.stateNode.containerInfo===v.containerInfo&&b.stateNode.implementation===v.implementation){n(y,b.sibling),S=i(b,v.children||[]),S.return=y,y=S;break e}else{n(y,b);break}else e(y,b);b=b.sibling}S=u_(v,y.mode,S),S.return=y,y=S}return s(y);case Pc:return v=Md(v),g(y,b,v,S)}if(g1(v))return p(y,b,v,S);if(Og(v)){if(I=Og(v),typeof I!="function")throw Error(Se(150));return v=I.call(v),m(y,b,v,S)}if(typeof v.then=="function")return g(y,b,Cb(v),S);if(v.$$typeof===Al)return g(y,b,Tb(y,v),S);_b(y,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,b!==null&&b.tag===6?(n(y,b.sibling),S=i(b,v),S.return=y,y=S):(n(y,b),S=c_(v,y.mode,S),S.return=y,y=S),s(y)):n(y,b)}return function(y,b,v,S){try{Hy=0;var I=g(y,b,v,S);return Ip=null,I}catch(T){if(T===Zm||T===qx)throw T;var O=vo(29,T,null,y.mode);return O.lanes=S,O.return=y,O}finally{}}}var _f=aj(!0),lj=aj(!1),Oc=!1;function L3(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function QI(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function cu(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function uu(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Xt&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,e=Vw(t),ZF(t,null,n),e}return Ux(t,r,e,n),Vw(t)}function W1(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,_F(t,n)}}function f_(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=e:o=o.next=e}else i=o=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,callbacks:r.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var JI=!1;function G1(){if(JI){var t=Ap;if(t!==null)throw t}}function K1(t,e,n,r){JI=!1;var i=t.updateQueue;Oc=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=t.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var d=i.baseState;s=0,u=c=l=null,a=o;do{var f=a.lane&-536870913,h=f!==a.lane;if(h?(zt&f)===f:(r&f)===f){f!==0&&f===tm&&(JI=!0),u!==null&&(u=u.next={lane:0,tag:a.tag,payload:a.payload,callback:null,next:null});e:{var p=t,m=a;f=e;var g=n;switch(m.tag){case 1:if(p=m.payload,typeof p=="function"){d=p.call(g,d,f);break e}d=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=m.payload,f=typeof p=="function"?p.call(g,d,f):p,f==null)break e;d=Ln({},d,f);break e;case 2:Oc=!0}}f=a.callback,f!==null&&(t.flags|=64,h&&(t.flags|=8192),h=i.callbacks,h===null?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=d):u=u.next=h,s|=f;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;h=a,a=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,o===null&&(i.shared.lanes=0),Lu|=s,t.lanes=s,t.memoizedState=d}}function cj(t,e){if(typeof t!="function")throw Error(Se(191,t));t.call(e)}function uj(t,e){var n=t.callbacks;
vendor: 5,168 bytes, line 48
48if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)cj(n[t],e)}var nm=Ya(null),jw=Ya(0);function V9(t,e){t=Yl,_n(jw,t),_n(nm,e),Yl=t|e.baseLanes}function ZI(){_n(jw,Yl),_n(nm,nm.current)}function z3(){Yl=jw.current,qr(nm),qr(jw)}var Lo=Ya(null),us=null;function zc(t){var e=t.alternate;_n(fr,fr.current&1),_n(Lo,t),us===null&&(e===null||nm.current!==null||e.memoizedState!==null)&&(us=t)}function e5(t){_n(fr,fr.current),_n(Lo,t),us===null&&(us=t)}function dj(t){t.tag===22?(_n(fr,fr.current),_n(Lo,t),us===null&&(us=t)):Vc()}function Vc(){_n(fr,fr.current),_n(Lo,Lo.current)}function yo(t){qr(Lo),us===t&&(us=null),qr(fr)}var fr=Ya(0);function Hw(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||b5(n)||w5(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Wl=0,Tt=null,vn=null,Sr=null,Uw=!1,Rp=!1,Af=!1,qw=0,Uy=0,Mp=null,Xie=0;function Zn(){throw Error(Se(321))}function V3(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Do(t[n],e[n]))return!1;return!0}function B3(t,e,n,r,i,o){return Wl=o,Tt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,pt.H=t===null||t.memoizedState===null?jj:X3,Af=!1,o=n(r,i),Af=!1,Rp&&(o=hj(e,n,r,i)),fj(t),o}function fj(t){pt.H=qy;var e=vn!==null&&vn.next!==null;if(Wl=0,Sr=vn=Tt=null,Uw=!1,Uy=0,Mp=null,e)throw Error(Se(300));t===null||_r||(t=t.dependencies,t!==null&&$w(t)&&(_r=!0))}function hj(t,e,n,r){Tt=t;var i=0;do{if(Rp&&(Mp=null),Uy=0,Rp=!1,25<=i)throw Error(Se(301));if(i+=1,Sr=vn=null,t.updateQueue!=null){var o=t.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}pt.H=Hj,o=e(n,r)}while(Rp);return o}function Qie(){var t=pt.H,e=t.useState()[0];return e=typeof e.then=="function"?uv(e):e,t=t.useState()[0],(vn!==null?vn.memoizedState:null)!==t&&(Tt.flags|=1024),e}function $3(){var t=qw!==0;return qw=0,t}function F3(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function j3(t){if(Uw){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Uw=!1}Wl=0,Sr=vn=Tt=null,Rp=!1,Uy=qw=0,Mp=null}function _i(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sr===null?Tt.memoizedState=Sr=t:Sr=Sr.next=t,Sr}function pr(){if(vn===null){var t=Tt.alternate;t=t!==null?t.memoizedState:null}else t=vn.next;var e=Sr===null?Tt.memoizedState:Sr.next;if(e!==null)Sr=e,vn=t;else{if(t===null)throw Tt.alternate===null?Error(Se(467)):Error(Se(310));vn=t,t={memoizedState:vn.memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},Sr===null?Tt.memoizedState=Sr=t:Sr=Sr.next=t}return Sr}function Wx(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function uv(t){var e=Uy;return Uy+=1,Mp===null&&(Mp=[]),t=sj(Mp,t,e),e=Tt,(Sr===null?e.memoizedState:Sr.next)===null&&(e=e.alternate,pt.H=e===null||e.memoizedState===null?jj:X3),t}function Gx(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return uv(t);if(t.$$typeof===Al)return ai(t)}throw Error(Se(438,String(t)))}function H3(t){var e=null,n=Tt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var r=Tt.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(e={data:r.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=Wx(),Tt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),r=0;r<t;r++)n[r]=Lre;return e.index++,n}function Gl(t,e){return typeof e=="function"?e(t):e}function V2(t){var e=pr();return U3(e,vn,t)}function U3(t,e,n){var r=t.queue;if(r===null)throw Error(Se(311));r.lastRenderedReducer=n;var i=t.baseQueue,o=r.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}e.baseQueue=i=o,r.pending=null}if(o=t.baseState,i===null)t.memoizedState=o;else{e=i.next;var a=s=null,l=null,c=e,u=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(zt&d)===d:(Wl&d)===d){var f=c.revertLane;if(f===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===tm&&(u=!0);else if((Wl&f)===f){c=c.next,f===tm&&(u=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(a=l=d,s=o):l=l.next=d,Tt.lanes|=f,Lu|=f;d=c.action,Af&&n(o,d),o=c.hasEagerState?c.eagerState:n(o,d)}else f={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(a=l=f,s=o):l=l.next=f,Tt.lanes|=d,Lu|=d;c=c.next}while(c!==null&&c!==e);if(l===null?s=o:l.next=a,!Do(o,t.memoizedState)&&(_r=!0,u&&(n=Ap,n!==null)))throw n;t.memoizedState=o,t.baseState=s,t.baseQueue=l,r.lastRenderedState=o}
vendor: 14,517 bytes, line 48
48return i===null&&(r.lanes=0),[t.memoizedState,r.dispatch]}function h_(t){var e=pr(),n=e.queue;if(n===null)throw Error(Se(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,o=e.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=t(o,s.action),s=s.next;while(s!==i);Do(o,e.memoizedState)||(_r=!0),e.memoizedState=o,e.baseQueue===null&&(e.baseState=o),n.lastRenderedState=o}return[o,r]}function pj(t,e,n){var r=Tt,i=pr(),o=$t;if(o){if(n===void 0)throw Error(Se(407));n=n()}else n=e();var s=!Do((vn||i).memoizedState,n);if(s&&(i.memoizedState=n,_r=!0),i=i.queue,q3(yj.bind(null,r,i,t),[t]),i.getSnapshot!==e||s||Sr!==null&&Sr.memoizedState.tag&1){if(r.flags|=2048,rm(9,{destroy:void 0},gj.bind(null,r,i,n,e),null),En===null)throw Error(Se(349));o||Wl&127||mj(r,e,n)}return n}function mj(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=Tt.updateQueue,e===null?(e=Wx(),Tt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function gj(t,e,n,r){e.value=n,e.getSnapshot=r,vj(e)&&bj(t)}function yj(t,e,n){return n(function(){vj(e)&&bj(t)})}function vj(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Do(t,n)}catch{return!0}}function bj(t){var e=ah(t,2);e!==null&&Ji(e,t,2)}function t5(t){var e=_i();if(typeof t=="function"){var n=t;if(t=n(),Af){Gc(!0);try{n()}finally{Gc(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:t},e}function wj(t,e,n,r){return t.baseState=n,U3(t,vn,typeof r=="function"?r:Gl)}function Jie(t,e,n,r,i){if(Yx(t))throw Error(Se(485));if(t=e.action,t!==null){var o={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){o.listeners.push(s)}};pt.T!==null?n(!0):o.isTransition=!1,r(o),n=e.pending,n===null?(o.next=e.pending=o,Sj(e,o)):(o.next=n.next,e.pending=n.next=o)}}function Sj(t,e){var n=e.action,r=e.payload,i=t.state;if(e.isTransition){var o=pt.T,s={};pt.T=s;try{var a=n(i,r),l=pt.S;l!==null&&l(s,a),B9(t,e,a)}catch(c){n5(t,e,c)}finally{o!==null&&s.types!==null&&(o.types=s.types),pt.T=o}}else try{o=n(i,r),B9(t,e,o)}catch(c){n5(t,e,c)}}function B9(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){$9(t,e,r)},function(r){return n5(t,e,r)}):$9(t,e,n)}function $9(t,e,n){e.status="fulfilled",e.value=n,xj(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Sj(t,n)))}function n5(t,e,n){var r=t.pending;if(t.pending=null,r!==null){r=r.next;do e.status="rejected",e.reason=n,xj(e),e=e.next;while(e!==r)}t.action=null}function xj(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Ej(t,e){return e}function F9(t,e){if($t){var n=En.formState;if(n!==null){e:{var r=Tt;if($t){if(Pn){t:{for(var i=Pn,o=ss;i.nodeType!==8;){if(!o){i=null;break t}if(i=ds(i.nextSibling),i===null){i=null;break t}}o=i.data,i=o==="F!"||o==="F"?i:null}if(i){Pn=ds(i.nextSibling),r=i.data==="F!";break e}}Nu(r)}r=!1}r&&(e=n[0])}}return n=_i(),n.memoizedState=n.baseState=e,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ej,lastRenderedState:e},n.queue=r,n=Bj.bind(null,Tt,r),r.dispatch=n,r=t5(!1),o=Y3.bind(null,Tt,!1,r.queue),r=_i(),i={state:e,dispatch:null,action:t,pending:null},r.queue=i,n=Jie.bind(null,Tt,i,o,n),i.dispatch=n,r.memoizedState=t,[e,n,!1]}function j9(t){var e=pr();return Tj(e,vn,t)}function Tj(t,e,n){if(e=U3(t,e,Ej)[0],t=V2(Gl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var r=uv(e)}catch(s){throw s===Zm?qx:s}else r=e;e=pr();var i=e.queue,o=i.dispatch;return n!==e.memoizedState&&(Tt.flags|=2048,rm(9,{destroy:void 0},Zie.bind(null,i,n),null)),[r,o,t]}function Zie(t,e){t.action=e}function H9(t){var e=pr(),n=vn;if(n!==null)return Tj(e,n,t);pr(),e=e.memoizedState,n=pr();var r=n.queue.dispatch;return n.memoizedState=t,[e,r,!1]}function rm(t,e,n,r){return t={tag:t,create:n,deps:r,inst:e,next:null},e=Tt.updateQueue,e===null&&(e=Wx(),Tt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t),t}function Cj(){return pr().memoizedState}function B2(t,e,n,r){var i=_i();Tt.flags|=t,i.memoizedState=rm(1|e,{destroy:void 0},n,r===void 0?null:r)}function Kx(t,e,n,r){var i=pr();r=r===void 0?null:r;var o=i.memoizedState.inst;vn!==null&&r!==null&&V3(r,vn.memoizedState.deps)?i.memoizedState=rm(e,o,n,r):(Tt.flags|=t,i.memoizedState=rm(1|e,o,n,r))}function U9(t,e){B2(8390656,8,t,e)}function q3(t,e){Kx(2048,8,t,e)}function eoe(t){Tt.flags|=4;var e=Tt.updateQueue;if(e===null)e=Wx(),Tt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function _j(t){var e=pr().memoizedState;return eoe({ref:e,nextImpl:t}),function(){if(Xt&2)throw Error(Se(440));return e.impl.apply(void 0,arguments)}}function Aj(t,e){return Kx(4,2,t,e)}function Ij(t,e){return Kx(4,4,t,e)}function Rj(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Mj(t,e,n){n=n!=null?n.concat([t]):null,Kx(4,4,Rj.bind(null,e,t),n)}function W3(){}function kj(t,e){var n=pr();e=e===void 0?null:e;var r=n.memoizedState;return e!==null&&V3(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Pj(t,e){var n=pr();e=e===void 0?null:e;var r=n.memoizedState;if(e!==null&&V3(e,r[1]))return r[0];if(r=t(),Af){Gc(!0);try{t()}finally{Gc(!1)}}return n.memoizedState=[r,e],r}function G3(t,e,n){return n===void 0||Wl&1073741824&&!(zt&261930)?t.memoizedState=e:(t.memoizedState=n,t=wH(),Tt.lanes|=t,Lu|=t,n)}function Oj(t,e,n,r){return Do(n,e)?n:nm.current!==null?(t=G3(t,n,r),Do(t,e)||(_r=!0),t):!(Wl&42)||Wl&1073741824&&!(zt&261930)?(_r=!0,t.memoizedState=n):(t=wH(),Tt.lanes|=t,Lu|=t,e)}function Nj(t,e,n,r,i){var o=Qt.p;Qt.p=o!==0&&8>o?o:8;var s=pt.T,a={};pt.T=a,Y3(t,!1,e,n);try{var l=i(),c=pt.S;if(c!==null&&c(a,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=Yie(l,r);Y1(t,e,u,Ro(t))}else Y1(t,e,r,Ro(t))}catch(d){Y1(t,e,{then:function(){},status:"rejected",reason:d},Ro())}finally{Qt.p=o,s!==null&&a.types!==null&&(s.types=a.types),pt.T=s}}function toe(){}function r5(t,e,n,r){if(t.tag!==5)throw Error(Se(476));var i=Dj(t).queue;Nj(t,i,e,rf,n===null?toe:function(){return Lj(t),n(r)})}function Dj(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:rf,baseState:rf,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:rf},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gl,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Lj(t){var e=Dj(t);e.next===null&&(e=t.alternate.memoizedState),Y1(t,e.next.queue,{},Ro())}function K3(){return ai(Ky)}function zj(){return pr().memoizedState}function Vj(){return pr().memoizedState}function noe(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ro();t=cu(n);var r=uu(e,t,n);r!==null&&(Ji(r,e,n),W1(r,e,n)),e={cache:O3()},t.payload=e;return}e=e.return}}function roe(t,e,n){var r=Ro();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Yx(t)?$j(e,n):(n=R3(t,e,n,r),n!==null&&(Ji(n,t,r),Fj(n,e,r)))}function Bj(t,e,n){var r=Ro();Y1(t,e,n,r)}function Y1(t,e,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yx(t))$j(e,i);else{var o=t.alternate;if(t.lanes===0&&(o===null||o.lanes===0)&&(o=e.lastRenderedReducer,o!==null))try{var s=e.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Do(a,s))return Ux(t,e,i,0),En===null&&Hx(),!1}catch{}finally{}if(n=R3(t,e,i,r),n!==null)return Ji(n,t,r),Fj(n,e,r),!0}return!1}function Y3(t,e,n,r){if(r={lane:2,revertLane:iM(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Yx(t)){if(e)throw Error(Se(479))}else e=R3(t,n,r,2),e!==null&&Ji(e,t,2)}function Yx(t){var e=t.alternate;return t===Tt||e!==null&&e===Tt}function $j(t,e){Rp=Uw=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Fj(t,e,n){if(n&4194048){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,_F(t,n)}}var qy={readContext:ai,use:Gx,useCallback:Zn,useContext:Zn,useEffect:Zn,useImperativeHandle:Zn,useLayoutEffect:Zn,useInsertionEffect:Zn,useMemo:Zn,useReducer:Zn,useRef:Zn,useState:Zn,useDebugValue:Zn,useDeferredValue:Zn,useTransition:Zn,useSyncExternalStore:Zn,useId:Zn,useHostTransitionStatus:Zn,useFormState:Zn,useActionState:Zn,useOptimistic:Zn,useMemoCache:Zn,useCacheRefresh:Zn};qy.useEffectEvent=Zn;var jj={readContext:ai,use:Gx,useCallback:function(t,e){return _i().memoizedState=[t,e===void 0?null:e],t},useContext:ai,useEffect:U9,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,B2(4194308,4,Rj.bind(null,e,t),n)},useLayoutEffect:function(t,e){return B2(4194308,4,t,e)},useInsertionEffect:function(t,e){B2(4,2,t,e)},useMemo:function(t,e){var n=_i();e=e===void 0?null:e;var r=t();if(Af){Gc(!0);try{t()}finally{Gc(!1)}}return n.memoizedState=[r,e],r},useReducer:function(t,e,n){var r=_i();if(n!==void 0){var i=n(e);if(Af){Gc(!0);try{n(e)}finally{Gc(!1)}}}else i=e;return r.memoizedState=r.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},r.queue=t,t=t.dispatch=roe.bind(null,Tt,t),[r.memoizedState,t]},useRef:function(t){var e=_i();return t={current:t},e.memoizedState=t},useState:function(t){t=t5(t);var e=t.queue,n=Bj.bind(null,Tt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:W3,useDeferredValue:function(t,e){var n=_i();return G3(n,t,e)},useTransition:function(){var t=t5(!1);return t=Nj.bind(null,Tt,t.queue,!0,!1),_i().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var r=Tt,i=_i();if($t){if(n===void 0)throw Error(Se(407));n=n()}else{if(n=e(),En===null)throw Error(Se(349));zt&127||mj(r,e,n)}i.memoizedState=n;var o={value:n,getSnapshot:e};return i.queue=o,U9(yj.bind(null,r,o,t),[t]),r.flags|=2048,rm(9,{destroy:void 0},gj.bind(null,r,o,n,e),null),n},useId:function(){var t=_i(),e=En.identifierPrefix;if($t){var n=Ea,r=xa;n=(r&~(1<<32-Io(r)-1)).toString(32)+n,e="_"+e+"R_"+n,n=qw++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Xie++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:K3,useFormState:F9,useActionState:F9,useOptimistic:function(t){var e=_i();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Y3.bind(null,Tt,!0,n),n.dispatch=e,[t,e]},useMemoCache:H3,useCacheRefresh:function(){return _i().memoizedState=noe.bind(null,Tt)},useEffectEvent:function(t){var e=_i(),n={impl:t};return e.memoizedState=n,function(){if(Xt&2)throw Error(Se(440));return n.impl.apply(void 0,arguments)}}},X3={readContext:ai,use:Gx,useCallback:kj,useContext:ai,useEffect:q3,useImperativeHandle:Mj,useInsertionEffect:Aj,useLayoutEffect:Ij,useMemo:Pj,useReducer:V2,useRef:Cj,useState:function(){return V2(Gl)},useDebugValue:W3,useDeferredValue:function(t,e){var n=pr();return Oj(n,vn.memoizedState,t,e)},useTransition:function(){var t=V2(Gl)[0],e=pr().memoizedState;return[typeof t=="boolean"?t:uv(t),e]},useSyncExternalStore:pj,useId:zj,useHostTransitionStatus:K3,useFormState:j9,useActionState:j9,useOptimistic:function(t,e){var n=pr();return wj(n,vn,t,e)},useMemoCache:H3,useCacheRefresh:Vj};X3.useEffectEvent=_j;var Hj={readContext:ai,use:Gx,useCallback:kj,useContext:ai,useEffect:q3,useImperativeHandle:Mj,useInsertionEffect:Aj,useLayoutEffect:Ij,useMemo:Pj,useReducer:h_,useRef:Cj,useState:function(){return h_(Gl)},useDebugValue:W3,useDeferredValue:function(t,e){var n=pr();return vn===null?G3(n,t,e):Oj(n,vn.memoizedState,t,e)},useTransition:function(){var t=h_(Gl)[0],e=pr().memoizedState;return[typeof t=="boolean"?t:uv(t),e]},useSyncExternalStore:pj,useId:zj,useHostTransitionStatus:K3,useFormState:H9,useActionState:H9,useOptimistic:function(t,e){var n=pr();return vn!==null?wj(n,vn,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:H3,useCacheRefresh:Vj};Hj.useEffectEvent=_j;function p_(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:Ln({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var i5={enqueueSetState:function(t,e,n){t=t._reactInternals;var r=Ro(),i=cu(r);i.payload=e,n!=null&&(i.callback=n),e=uu(t,i,r),e!==null&&(Ji(e,t,r),W1(e,t,r))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=Ro(),i=cu(r);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=uu(t,i,r),e!==null&&(Ji(e,t,r),W1(e,t,r))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ro(),r=cu(n);r.tag=2,e!=null&&(r.callback=e),e=uu(t,r,n),e!==null&&(Ji(e,t,n),W1(e,t,n))}};function q9(t,e,n,r,i,o,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,o,s):e.prototype&&e.prototype.isPureReactComponent?!$y(n,r)||!$y(i,o):!0}function W9(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&i5.enqueueReplaceState(e,e.state,null)}function If(t,e){var n=e;if("ref"in e){n={};for(var r in e)r!=="ref"&&(n[r]=e[r])}if(t=t.defaultProps){n===e&&(n=Ln({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Uj(t){zw(t)}function qj(t){console.error(t)}function Wj(t){zw(t)}function Ww(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(r){setTimeout(function(){throw r})}}function G9(t,e,n){try{var r=t.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function o5(t,e,n){return n=cu(n),n.tag=3,n.payload={element:null},n.callback=function(){Ww(t,e)},n}function Gj(t){return t=cu(t),t.tag=3,t}function Kj(t,e,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var o=r.value;t.payload=function(){return i(o)},t.callback=function(){G9(e,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){G9(e,n,r),typeof i!="function"&&(du===null?du=new Set([this]):du.add(this));var a=r.stack;this.componentDidCatch(r.value,{componentStack:a!==null?a:""})})}function ioe(t,e,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(e=n.alternate,e!==null&&Jm(e,n,i,!0),n=Lo.current,n!==null){switch(n.tag){case 31:case 13:return us===null?Qw():n.alternate===null&&or===0&&(or=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Fw?n.flags|=16384:(e
vendor: 13,084 bytes, line 48
48=n.updateQueue,e===null?n.updateQueue=new Set([r]):e.add(r),C_(t,r,i)),!1;case 22:return n.flags|=65536,r===Fw?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([r]):n.add(r)),C_(t,r,i)),!1}throw Error(Se(435,n.tag))}return C_(t,r,i),Qw(),!1}if($t)return e=Lo.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=i,r!==WI&&(t=Error(Se(422),{cause:r}),jy(is(t,n)))):(r!==WI&&(e=Error(Se(423),{cause:r}),jy(is(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,r=is(r,n),i=o5(t.stateNode,r,i),f_(t,i),or!==4&&(or=2)),!1;var o=Error(Se(520),{cause:r});if(o=is(o,n),J1===null?J1=[o]:J1.push(o),or!==4&&(or=2),e===null)return!0;r=is(r,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=o5(n.stateNode,r,t),f_(n,t),!1;case 1:if(e=n.type,o=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||o!==null&&typeof o.componentDidCatch=="function"&&(du===null||!du.has(o))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Gj(i),Kj(i,t,n,r),f_(n,i),!1}n=n.return}while(n!==null);return!1}var Q3=Error(Se(461)),_r=!1;function ei(t,e,n,r){e.child=t===null?lj(e,null,n,r):_f(e,t.child,n,r)}function K9(t,e,n,r,i){n=n.render;var o=e.ref;if("ref"in r){var s={};for(var a in r)a!=="ref"&&(s[a]=r[a])}else s=r;return Cf(e),r=B3(t,e,n,s,o,i),a=$3(),t!==null&&!_r?(F3(t,e,i),Kl(t,e,i)):($t&&a&&k3(e),e.flags|=1,ei(t,e,r,i),e.child)}function Y9(t,e,n,r,i){if(t===null){var o=n.type;return typeof o=="function"&&!M3(o)&&o.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=o,Yj(t,e,o,r,i)):(t=L2(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(o=t.child,!J3(t,i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:$y,n(s,r)&&t.ref===e.ref)return Kl(t,e,i)}return e.flags|=1,t=Vl(o,r),t.ref=e.ref,t.return=e,e.child=t}function Yj(t,e,n,r,i){if(t!==null){var o=t.memoizedProps;if($y(o,r)&&t.ref===e.ref)if(_r=!1,e.pendingProps=r=o,J3(t,i))t.flags&131072&&(_r=!0);else return e.lanes=t.lanes,Kl(t,e,i)}return s5(t,e,n,r,i)}function Xj(t,e,n,r){var i=r.children,o=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(e.flags&128){if(o=o!==null?o.baseLanes|n:n,t!==null){for(r=e.child=t.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~o}else r=0,e.child=null;return X9(t,e,o,n,r)}if(n&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&z2(e,o!==null?o.cachePool:null),o!==null?V9(e,o):ZI(),dj(e);else return r=e.lanes=536870912,X9(t,e,o!==null?o.baseLanes|n:n,n,r)}else o!==null?(z2(e,o.cachePool),V9(e,o),Vc(),e.memoizedState=null):(t!==null&&z2(e,null),ZI(),Vc());return ei(t,e,i,n),e.child}function v1(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function X9(t,e,n,r,i){var o=N3();return o=o===null?null:{parent:Tr._currentValue,pool:o},e.memoizedState={baseLanes:n,cachePool:o},t!==null&&z2(e,null),ZI(),dj(e),t!==null&&Jm(t,e,r,!0),e.childLanes=i,null}function $2(t,e){return e=Gw({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Q9(t,e,n){return _f(e,t.child,null,n),t=$2(e,e.pendingProps),t.flags|=2,yo(e),e.memoizedState=null,t}function ooe(t,e,n){var r=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if($t){if(r.mode==="hidden")return t=$2(e,r),e.lanes=536870912,v1(null,t);if(e5(e),(t=Pn)?(t=jH(t,ss),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ou!==null?{id:xa,overflow:Ea}:null,retryLane:536870912,hydrationErrors:null},n=tj(t),n.return=e,e.child=n,si=e,Pn=null)):t=null,t===null)throw Nu(e);return e.lanes=536870912,null}return $2(e,r)}var o=t.memoizedState;if(o!==null){var s=o.dehydrated;if(e5(e),i)if(e.flags&256)e.flags&=-257,e=Q9(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(Se(558));else if(_r||Jm(t,e,n,!1),i=(n&t.childLanes)!==0,_r||i){if(r=En,r!==null&&(s=AF(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ah(t,s),Ji(r,t,s),Q3;Qw(),e=Q9(t,e,n)}else t=o.treeContext,Pn=ds(s.nextSibling),si=e,$t=!0,lu=null,ss=!1,t!==null&&rj(e,t),e=$2(e,r),e.flags|=4096;return e}return t=Vl(t.child,{mode:r.mode,children:r.children}),t.ref=e.ref,e.child=t,t.return=e,t}function F2(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(Se(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function s5(t,e,n,r,i){return Cf(e),n=B3(t,e,n,r,void 0,i),r=$3(),t!==null&&!_r?(F3(t,e,i),Kl(t,e,i)):($t&&r&&k3(e),e.flags|=1,ei(t,e,n,i),e.child)}function J9(t,e,n,r,i,o){return Cf(e),e.updateQueue=null,n=hj(e,r,n,i),fj(t),r=$3(),t!==null&&!_r?(F3(t,e,o),Kl(t,e,o)):($t&&r&&k3(e),e.flags|=1,ei(t,e,n,o),e.child)}function Z9(t,e,n,r,i){if(Cf(e),e.stateNode===null){var o=up,s=n.contextType;typeof s=="object"&&s!==null&&(o=ai(s)),o=new n(r,o),e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=i5,e.stateNode=o,o._reactInternals=e,o=e.stateNode,o.props=r,o.state=e.memoizedState,o.refs={},L3(e),s=n.contextType,o.context=typeof s=="object"&&s!==null?ai(s):up,o.state=e.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(p_(e,n,s,r),o.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(s=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),s!==o.state&&i5.enqueueReplaceState(o,o.state,null),K1(e,r,o,i),G1(),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!0}else if(t===null){o=e.stateNode;var a=e.memoizedProps,l=If(n,a);o.props=l;var c=o.context,u=n.contextType;s=up,typeof u=="object"&&u!==null&&(s=ai(u));var d=n.getDerivedStateFromProps;u=typeof d=="function"||typeof o.getSnapshotBeforeUpdate=="function",a=e.pendingProps!==a,u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(a||c!==s)&&W9(e,o,r,s),Oc=!1;var f=e.memoizedState;o.state=f,K1(e,r,o,i),G1(),c=e.memoizedState,a||f!==c||Oc?(typeof d=="function"&&(p_(e,n,d,r),c=e.memoizedState),(l=Oc||q9(e,n,l,r,f,c,s))?(u||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=c),o.props=r,o.state=c,o.context=s,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,QI(t,e),s=e.memoizedProps,u=If(n,s),o.props=u,d=e.pendingProps,f=o.context,c=n.contextType,l=up,typeof c=="object"&&c!==null&&(l=ai(c)),a=n.getDerivedStateFromProps,(c=typeof a=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||f!==l)&&W9(e,o,r,l),Oc=!1,f=e.memoizedState,o.state=f,K1(e,r,o,i),G1();var h=e.memoizedState;s!==d||f!==h||Oc||t!==null&&t.dependencies!==null&&$w(t.dependencies)?(typeof a=="function"&&(p_(e,n,a,r),h=e.memoizedState),(u=Oc||q9(e,n,u,r,f,h,l)||t!==null&&t.dependencies!==null&&$w(t.dependencies))?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,h,l),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,h,l)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=h),o.props=r,o.state=h,o.context=l,r=u):(typeof o.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),r=!1)}return o=r,F2(t,e),r=(e.flags&128)!==0,o||r?(o=e.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:o.render(),e.flags|=1,t!==null&&r?(e.child=_f(e,t.child,null,i),e.child=_f(e,null,n,i)):ei(t,e,n,i),e.memoizedState=o.state,t=e.child):t=Kl(t,e,i),t}function e6(t,e,n,r){return Tf(),e.flags|=256,ei(t,e,n,r),e.child}var m_={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function g_(t){return{baseLanes:t,cachePool:oj()}}function y_(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=To),t}function Qj(t,e,n){var r=e.pendingProps,i=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=t!==null&&t.memoizedState===null?!1:(fr.current&2)!==0),s&&(i=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if($t){if(i?zc(e):Vc(),(t=Pn)?(t=jH(t,ss),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ou!==null?{id:xa,overflow:Ea}:null,retryLane:536870912,hydrationErrors:null},n=tj(t),n.return=e,e.child=n,si=e,Pn=null)):t=null,t===null)throw Nu(e);return w5(t)?e.lanes=32:e.lanes=536870912,null}var a=r.children;return r=r.fallback,i?(Vc(),i=e.mode,a=Gw({mode:"hidden",children:a},i),r=of(r,i,n,null),a.return=e,r.return=e,a.sibling=r,e.child=a,r=e.child,r.memoizedState=g_(n),r.childLanes=y_(t,s,n),e.memoizedState=m_,v1(null,r)):(zc(e),a5(e,a))}var l=t.memoizedState;if(l!==null&&(a=l.dehydrated,a!==null)){if(o)e.flags&256?(zc(e),e.flags&=-257,e=v_(t,e,n)):e.memoizedState!==null?(Vc(),e.child=t.child,e.flags|=128,e=null):(Vc(),a=r.fallback,i=e.mode,r=Gw({mode:"visible",children:r.children},i),a=of(a,i,n,null),a.flags|=2,r.return=e,a.return=e,r.sibling=a,e.child=r,_f(e,t.child,null,n),r=e.child,r.memoizedState=g_(n),r.childLanes=y_(t,s,n),e.memoizedState=m_,e=v1(null,r));else if(zc(e),w5(a)){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;s=c,r=Error(Se(419)),r.stack="",r.digest=s,jy({value:r,source:null,stack:null}),e=v_(t,e,n)}else if(_r||Jm(t,e,n,!1),s=(n&t.childLanes)!==0,_r||s){if(s=En,s!==null&&(r=AF(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ah(t,r),Ji(s,t,r),Q3;b5(a)||Qw(),e=v_(t,e,n)}else b5(a)?(e.flags|=192,e.child=t.child,e=null):(t=l.treeContext,Pn=ds(a.nextSibling),si=e,$t=!0,lu=null,ss=!1,t!==null&&rj(e,t),e=a5(e,r.children),e.flags|=4096);return e}return i?(Vc(),a=r.fallback,i=e.mode,l=t.child,c=l.sibling,r=Vl(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?a=Vl(c,a):(a=of(a,i,n,null),a.flags|=2),a.return=e,r.return=e,r.sibling=a,e.child=r,v1(null,r),r=e.child,a=t.child.memoizedState,a===null?a=g_(n):(i=a.cachePool,i!==null?(l=Tr._currentValue,i=i.parent!==l?{parent:l,pool:l}:i):i=oj(),a={baseLanes:a.baseLanes|n,cachePool:i}),r.memoizedState=a,r.childLanes=y_(t,s,n),e.memoizedState=m_,v1(t.child,r)):(zc(e),n=t.child,t=n.sibling,n=Vl(n,{mode:"visible",children:r.children}),n.return=e,n.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=n,e.memoizedState=null,n)}function a5(t,e){return e=Gw({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Gw(t,e){return t=vo(22,t,null,e),t.lanes=0,t}function v_(t,e,n){return _f(e,t.child,null,n),t=a5(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function t6(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),KI(t.return,e,n)}function b_(t,e,n,r,i,o){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:o}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i,s.treeForkCount=o)}function Jj(t,e,n){var r=e.pendingProps,i=r.revealOrder,o=r.tail;r=r.children;var s=fr.current,a=(s&2)!==0;if(a?(s=s&1|2,e.flags|=128):s&=1,_n(fr,s),ei(t,e,r,n),r=$t?Fy:0,!a&&t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&t6(t,n,e);else if(t.tag===19)t6(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Hw(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),b_(e,!1,i,n,o,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Hw(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}b_(e,!0,n,null,o,r);break;case"together":b_(e,!1,null,null,void 0,r);break;default:e.memoizedState=null}return e.child}
vendor: 4,206 bytes, line 48
48function Kl(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Lu|=e.lanes,!(n&e.childLanes))if(t!==null){if(Jm(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(Se(153));if(e.child!==null){for(t=e.child,n=Vl(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Vl(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function J3(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&$w(t)))}function soe(t,e,n){switch(e.tag){case 3:Ow(e,e.stateNode.containerInfo),Lc(e,Tr,t.memoizedState.cache),Tf();break;case 27:case 5:DI(e);break;case 4:Ow(e,e.stateNode.containerInfo);break;case 10:Lc(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,e5(e),null;break;case 13:var r=e.memoizedState;if(r!==null)return r.dehydrated!==null?(zc(e),e.flags|=128,null):n&e.child.childLanes?Qj(t,e,n):(zc(e),t=Kl(t,e,n),t!==null?t.sibling:null);zc(e);break;case 19:var i=(t.flags&128)!==0;if(r=(n&e.childLanes)!==0,r||(Jm(t,e,n,!1),r=(n&e.childLanes)!==0),i){if(r)return Jj(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_n(fr,fr.current),r)break;return null;case 22:return e.lanes=0,Xj(t,e,n,e.pendingProps);case 24:Lc(e,Tr,t.memoizedState.cache)}return Kl(t,e,n)}function Zj(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)_r=!0;else{if(!J3(t,n)&&!(e.flags&128))return _r=!1,soe(t,e,n);_r=!!(t.flags&131072)}else _r=!1,$t&&e.flags&1048576&&nj(e,Fy,e.index);switch(e.lanes=0,e.tag){case 16:e:{var r=e.pendingProps;if(t=Md(e.elementType),e.type=t,typeof t=="function")M3(t)?(r=If(t,r),e.tag=1,e=Z9(null,e,t,r,n)):(e.tag=0,e=s5(null,e,t,r,n));else{if(t!=null){var i=t.$$typeof;if(i===g3){e.tag=11,e=K9(null,e,t,r,n);break e}else if(i===y3){e.tag=14,e=Y9(null,e,t,r,n);break e}}throw e=OI(t)||t,Error(Se(306,e,""))}}return e;case 0:return s5(t,e,e.type,e.pendingProps,n);case 1:return r=e.type,i=If(r,e.pendingProps),Z9(t,e,r,i,n);case 3:e:{if(Ow(e,e.stateNode.containerInfo),t===null)throw Error(Se(387));r=e.pendingProps;var o=e.memoizedState;i=o.element,QI(t,e),K1(e,r,null,n);var s=e.memoizedState;if(r=s.cache,Lc(e,Tr,r),r!==o.cache&&YI(e,[Tr],n,!0),G1(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=o,e.memoizedState=o,e.flags&256){e=e6(t,e,r,n);break e}else if(r!==i){i=is(Error(Se(424)),e),jy(i),e=e6(t,e,r,n);break e}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Pn=ds(t.firstChild),si=e,$t=!0,lu=null,ss=!0,n=lj(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Tf(),r===i){e=Kl(t,e,n);break e}ei(t,e,r,n)}e=e.child}return e;case 26:return F2(t,e),t===null?(n=S6(e.type,null,e.pendingProps,null))?e.memoizedState=n:$t||(n=e.type,t=e.pendingProps,r=tS(au.current).createElement(n),r[oi]=e,r[ro]=t,ci(r,n,t),jr(r),e.stateNode=r):e.memoizedState=S6(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return DI(e),t===null&&$t&&(r=e.stateNode=HH(e.type,e.pendingProps,au.current),si=e,ss=!0,i=Pn,Xu(e.type)?(S5=i,Pn=ds(r.firstChild)):Pn=i),ei(t,e,e.pendingProps.children,n),F2(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&$t&&((i=r=Pn)&&(r=Loe(r,e.type,e.pendingProps,ss),r!==null?(e.stateNode=r,si=e,Pn=ds(r.firstChild),ss=!1,i=!0):i=!1),i||Nu(e)),DI(e),i=e.type,o=e.pendingProps,s=t!==null?t.memoizedProps:null,r=o.children,y5(i,o)?r=null:s!==null&&y5(i,s)&&(e.flags|=32),e.memoizedState!==null&&(i=B3(t,e,Qie,null,null,n),Ky._currentValue=i),F2(t,e),ei(t,e,r,n),e.child;case 6:return t===null&&$t&&((t=n=Pn)&&(n=zoe(n,e.pendingProps,ss),n!==null?(e.stateNode=n,si=e,Pn=null,t=!0):t=!1),t||Nu(e)),null;case 13:return Qj(t,e,n);case 4:return Ow(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=_f(e,null,r,n):ei(t,e,r,n),e.child;case 11:return K9(t,e,e.type,e.pendingProps,n);case 7:return ei(t,e,e.pendingProps,n),e.child;case 8:return ei(t,e,e.pendingProps.children,n),e.child;case 12:return ei(t,e,e.pendingProps.children,n),e.child;case 10:return r=e.pendingProps,Lc(e,e.type,r.value),ei(t,e,r.children,n),e.child;
vendor: 7,149 bytes, line 48
48case 9:return i=e.type._context,r=e.pendingProps.children,Cf(e),i=ai(i),r=r(i),e.flags|=1,ei(t,e,r,n),e.child;case 14:return Y9(t,e,e.type,e.pendingProps,n);case 15:return Yj(t,e,e.type,e.pendingProps,n);case 19:return Jj(t,e,n);case 31:return ooe(t,e,n);case 22:return Xj(t,e,n,e.pendingProps);case 24:return Cf(e),r=ai(Tr),t===null?(i=N3(),i===null&&(i=En,o=O3(),i.pooledCache=o,o.refCount++,o!==null&&(i.pooledCacheLanes|=n),i=o),e.memoizedState={parent:r,cache:i},L3(e),Lc(e,Tr,i)):(t.lanes&n&&(QI(t,e),K1(e,null,null,n),G1()),i=t.memoizedState,o=e.memoizedState,i.parent!==r?(i={parent:r,cache:r},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),Lc(e,Tr,r)):(r=o.cache,Lc(e,Tr,r),r!==i.cache&&YI(e,[Tr],n,!0))),ei(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(Se(156,e.tag))}function al(t){t.flags|=4}function w_(t,e,n,r,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(EH())t.flags|=8192;else throw af=Fw,D3}else t.flags&=-16777217}function n6(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!WH(e))if(EH())t.flags|=8192;else throw af=Fw,D3}function Ab(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?TF():536870912,t.lanes|=e,im|=e)}function zg(t,e){if(!$t)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Mn(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function aoe(t,e,n){var r=e.pendingProps;switch(P3(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mn(e),null;case 1:return Mn(e),null;case 3:return n=e.stateNode,r=null,t!==null&&(r=t.memoizedState.cache),e.memoizedState.cache!==r&&(e.flags|=2048),Bl(Tr),Jp(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ch(e)?al(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,d_())),Mn(e),null;case 26:var i=e.type,o=e.memoizedState;return t===null?(al(e),o!==null?(Mn(e),n6(e,o)):(Mn(e),w_(e,i,null,r,n))):o?o!==t.memoizedState?(al(e),Mn(e),n6(e,o)):(Mn(e),e.flags&=-16777217):(t=t.memoizedProps,t!==r&&al(e),Mn(e),w_(e,i,t,r,n)),null;case 27:if(Nw(e),n=au.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&al(e);else{if(!r){if(e.stateNode===null)throw Error(Se(166));return Mn(e),null}t=Ra.current,Ch(e)?k9(e):(t=HH(i,r,n),e.stateNode=t,al(e))}return Mn(e),null;case 5:if(Nw(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==r&&al(e);else{if(!r){if(e.stateNode===null)throw Error(Se(166));return Mn(e),null}if(o=Ra.current,Ch(e))k9(e);else{var s=tS(au.current);switch(o){case 1:o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":o=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":o=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":o=s.createElement("div"),o.innerHTML="<script><\/script>",o=o.removeChild(o.firstChild);break;case"select":o=typeof r.is=="string"?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is=="string"?s.createElement(i,{is:r.is}):s.createElement(i)}}o[oi]=e,o[ro]=r;e:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break e;for(;s.sibling===null;){if(s.return===null||s.return===e)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=o;e:switch(ci(o,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&al(e)}}return Mn(e),w_(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==r&&al(e);else{if(typeof r!="string"&&e.stateNode===null)throw Error(Se(166));if(t=au.current,Ch(e)){if(t=e.stateNode,n=e.memoizedProps,r=null,i=si,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}t[oi]=e,t=!!(t.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||BH(t.nodeValue,n)),t||Nu(e,!0)}else t=tS(t).createTextNode(r),t[oi]=e,e.stateNode=t}return Mn(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(r=Ch(e),n!==null){if(t===null){if(!r)throw Error(Se(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(Se(557));t[oi]=e}else Tf(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Mn(e),t=!1}else n=d_(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(yo(e),e):(yo(e),null);if(e.flags&128)throw Error(Se(558))}return Mn(e),null;case 13:if(r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Ch(e),r!==null&&r.dehydrated!==null){if(t===null){if(!i)throw Error(Se(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Se(317));i[oi]=e}else Tf(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Mn(e),i=!1}else i=d_(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(yo(e),e):(yo(e),null)}return yo(e),e.flags&128?(e.lanes=n,e):(n=r!==null,t=t!==null&&t.memoizedState!==null,n&&(r=e.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Ab(e,e.updateQueue),Mn(e),null);case 4:return Jp(),t===null&&oM(e.stateNode.containerInfo),Mn(e),null;case 10:return Bl(e.type),Mn(e),null;case 19:if(qr(fr),r=e.memoizedState,r===null)return Mn(e),null;if(i=(e.flags&128)!==0,o=r.rendering,o===null)if(i)zg(r,!1);else{if(or!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Hw(t),o!==null){for(e.flags|=128,zg(r,!1),t=o.updateQueue,e.updateQueue=t,Ab(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)ej(n,t),n=n.sibling;return _n(fr,fr.current&1|2),$t&&wl(e,r.treeForkCount),e.child}t=t.sibling}r.tail!==null&&_o()>Yw&&(e.flags|=128,i=!0,zg(r,!1),e.lanes=4194304)}else{if(!i)if(t=Hw(o),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,Ab(e,t),zg(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!$t)return Mn(e),null}else 2*_o()-r.renderingStartTime>Yw&&n!==536870912&&(e.flags|=128,i=!0,zg(r,!1),e.lanes=4194304);r.isBackwards?(o.sibling=e.child,e.child=o):(t=r.last,t!==null?t.sibling=o:e.child=o,r.last=o
vendor: 24,639 bytes, line 48
48)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=_o(),t.sibling=null,n=fr.current,_n(fr,i?n&1|2:n&1),$t&&wl(e,r.treeForkCount),t):(Mn(e),null);case 22:case 23:return yo(e),z3(),r=e.memoizedState!==null,t!==null?t.memoizedState!==null!==r&&(e.flags|=8192):r&&(e.flags|=8192),r?n&536870912&&!(e.flags&128)&&(Mn(e),e.subtreeFlags&6&&(e.flags|=8192)):Mn(e),n=e.updateQueue,n!==null&&Ab(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),r=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),r!==n&&(e.flags|=2048),t!==null&&qr(sf),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Bl(Tr),Mn(e),null;case 25:return null;case 30:return null}throw Error(Se(156,e.tag))}function loe(t,e){switch(P3(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Bl(Tr),Jp(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Nw(e),null;case 31:if(e.memoizedState!==null){if(yo(e),e.alternate===null)throw Error(Se(340));Tf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(yo(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(Se(340));Tf()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return qr(fr),null;case 4:return Jp(),null;case 10:return Bl(e.type),null;case 22:case 23:return yo(e),z3(),t!==null&&qr(sf),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Bl(Tr),null;case 25:return null;default:return null}}function eH(t,e){switch(P3(e),e.tag){case 3:Bl(Tr),Jp();break;case 26:case 27:case 5:Nw(e);break;case 4:Jp();break;case 31:e.memoizedState!==null&&yo(e);break;case 13:yo(e);break;case 19:qr(fr);break;case 10:Bl(e.type);break;case 22:case 23:yo(e),z3(),t!==null&&qr(sf);break;case 24:Bl(Tr)}}function dv(t,e){try{var n=e.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&t)===t){r=void 0;var o=n.create,s=n.inst;r=o(),s.destroy=r}n=n.next}while(n!==i)}}catch(a){ln(e,e.return,a)}}function Du(t,e,n){try{var r=e.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var o=i.next;r=o;do{if((r.tag&t)===t){var s=r.inst,a=s.destroy;if(a!==void 0){s.destroy=void 0,i=e;var l=n,c=a;try{c()}catch(u){ln(i,l,u)}}}r=r.next}while(r!==o)}}catch(u){ln(e,e.return,u)}}function tH(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{uj(e,n)}catch(r){ln(t,t.return,r)}}}function nH(t,e,n){n.props=If(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(r){ln(t,e,r)}}function X1(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var r=t.stateNode;break;case 30:r=t.stateNode;break;default:r=t.stateNode}typeof n=="function"?t.refCleanup=n(r):n.current=r}}catch(i){ln(t,e,i)}}function Ta(t,e){var n=t.ref,r=t.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){ln(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){ln(t,e,i)}else n.current=null}function rH(t){var e=t.type,n=t.memoizedProps,r=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){ln(t,t.return,i)}}function S_(t,e,n){try{var r=t.stateNode;Moe(r,t.type,n,e),r[ro]=e}catch(i){ln(t,t.return,i)}}function iH(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Xu(t.type)||t.tag===4}function x_(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||iH(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Xu(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function l5(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Il));else if(r!==4&&(r===27&&Xu(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(l5(t,e,n),t=t.sibling;t!==null;)l5(t,e,n),t=t.sibling}function Kw(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(r===27&&Xu(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Kw(t,e,n),t=t.sibling;t!==null;)Kw(t,e,n),t=t.sibling}function oH(t){var e=t.stateNode,n=t.memoizedProps;try{for(var r=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);ci(e,r,n),e[oi]=t,e[ro]=n}catch(o){ln(t,t.return,o)}}var Sl=!1,xr=!1,E_=!1,r6=typeof WeakSet=="function"?WeakSet:Set,$r=null;function coe(t,e){if(t=t.containerInfo,m5=oS,t=WF(t),A3(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.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,c=0,u=0,d=t,f=null;t:for(;;){for(var h;d!==n||i!==0&&d.nodeType!==3||(a=s+i),d!==o||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===t)break t;if(f===n&&++c===i&&(a=s),f===o&&++u===r&&(l=s),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(g5={focusedElem:t,selectionRange:n},oS=!1,$r=e;$r!==null;)if(e=$r,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$r=t;else for(;$r!==null;){switch(e=$r,o=e.alternate,t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&o!==null){t=void 0,n=e,i=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var p=If(n.type,i);t=r.getSnapshotBeforeUpdate(p,o),r.__reactInternalSnapshotBeforeUpdate=t}catch(m){ln(n,n.return,m)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)v5(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":v5(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(Se(163))}if(t=e.sibling,t!==null){t.return=e.return,$r=t;break}$r=e.return}}function sH(t,e,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:cl(t,n),r&4&&dv(5,n);break;case 1:if(cl(t,n),r&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(s){ln(n,n.return,s)}else{var i=If(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){ln(n,n.return,s)}}r&64&&tH(n),r&512&&X1(n,n.return);break;case 3:if(cl(t,n),r&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{uj(t,e)}catch(s){ln(n,n.return,s)}}break;case 27:e===null&&r&4&&oH(n);case 26:case 5:cl(t,n),e===null&&r&4&&rH(n),r&512&&X1(n,n.return);break;case 12:cl(t,n);break;case 31:cl(t,n),r&4&&cH(t,n);break;case 13:cl(t,n),r&4&&uH(t,n),r&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=voe.bind(null,n),Voe(t,n))));break;case 22:if(r=n.memoizedState!==null||Sl,!r){e=e!==null&&e.memoizedState!==null||xr,i=Sl;var o=xr;Sl=r,(xr=e)&&!o?gl(t,n,(n.subtreeFlags&8772)!==0):cl(t,n),Sl=i,xr=o}break;case 30:break;default:cl(t,n)}}function aH(t){var e=t.alternate;e!==null&&(t.alternate=null,aH(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&S3(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var jn=null,Hi=!1;function ll(t,e,n){for(n=n.child;n!==null;)lH(t,e,n),n=n.sibling}function lH(t,e,n){if(Ao&&typeof Ao.onCommitFiberUnmount=="function")try{Ao.onCommitFiberUnmount(iv,n)}catch{}switch(n.tag){case 26:xr||Ta(n,e),ll(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:xr||Ta(n,e);var r=jn,i=Hi;Xu(n.type)&&(jn=n.stateNode,Hi=!1),ll(t,e,n),ey(n.stateNode),jn=r,Hi=i;break;case 5:xr||Ta(n,e);case 6:if(r=jn,i=Hi,jn=null,ll(t,e,n),jn=r,Hi=i,jn!==null)if(Hi)try{(jn.nodeType===9?jn.body:jn.nodeName==="HTML"?jn.ownerDocument.body:jn).removeChild(n.stateNode)}catch(o){ln(n,e,o)}else try{jn.removeChild(n.stateNode)}catch(o){ln(n,e,o)}break;case 18:jn!==null&&(Hi?(t=jn,g6(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),lm(t)):g6(jn,n.stateNode));break;case 4:r=jn,i=Hi,jn=n.stateNode.containerInfo,Hi=!0,ll(t,e,n),jn=r,Hi=i;break;case 0:case 11:case 14:case 15:Du(2,n,e),xr||Du(4,n,e),ll(t,e,n);break;case 1:xr||(Ta(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"&&nH(n,e,r)),ll(t,e,n);break;case 21:ll(t,e,n);break;case 22:xr=(r=xr)||n.memoizedState!==null,ll(t,e,n),xr=r;break;default:ll(t,e,n)}}function cH(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{lm(t)}catch(n){ln(e,e.return,n)}}}function uH(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{lm(t)}catch(n){ln(e,e.return,n)}}function uoe(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new r6),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new r6),e;default:throw Error(Se(435,t.tag))}}function Ib(t,e){var n=uoe(t);e.forEach(function(r){if(!n.has(r)){n.add(r);var i=boe.bind(null,t,r);r.then(i,i)}})}function $i(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],o=t,s=e,a=s;e:for(;a!==null;){switch(a.tag){case 27:if(Xu(a.type)){jn=a.stateNode,Hi=!1;break e}break;case 5:jn=a.stateNode,Hi=!1;break e;case 3:case 4:jn=a.stateNode.containerInfo,Hi=!0;break e}a=a.return}if(jn===null)throw Error(Se(160));lH(o,s,i),jn=null,Hi=!1,o=i.alternate,o!==null&&(o.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)dH(e,t),e=e.sibling}var Ps=null;function dH(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:$i(e,t),Fi(t),r&4&&(Du(3,t,t.return),dv(3,t),Du(5,t,t.return));break;case 1:$i(e,t),Fi(t),r&512&&(xr||n===null||Ta(n,n.return)),r&64&&Sl&&(t=t.updateQueue,t!==null&&(r=t.callbacks,r!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=Ps;if($i(e,t),Fi(t),r&512&&(xr||n===null||Ta(n,n.return)),r&4){var o=n!==null?n.memoizedState:null;if(r=t.memoizedState,n===null)if(r===null)if(t.stateNode===null){e:{r=t.type,n=t.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":o=i.getElementsByTagName("title")[0],(!o||o[av]||o[oi]||o.namespaceURI==="http://www.w3.org/2000/svg"||o.hasAttribute("itemprop"))&&(o=i.createElement(r),i.head.insertBefore(o,i.querySelector("head > title"))),ci(o,r,n),o[oi]=t,jr(o),r=o;break e;case"link":var s=E6("link","href",i).get(r+(n.href||""));if(s){for(var a=0;a<s.length;a++)if(o=s[a],o.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&o.getAttribute("rel")===(n.rel==null?null:n.rel)&&o.getAttribute("title")===(n.title==null?null:n.title)&&o.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(a,1);break t}}o=i.createElement(r),ci(o,r,n),i.head.appendChild(o);break;case"meta":if(s=E6("meta","content",i).get(r+(n.content||""))){for(a=0;a<s.length;a++)if(o=s[a],o.getAttribute("content")===(n.content==null?null:""+n.content)&&o.getAttribute("name")===(n.name==null?null:n.name)&&o.getAttribute("property")===(n.property==null?null:n.property)&&o.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(a,1);break t}}o=i.createElement(r),ci(o,r,n),i.head.appendChild(o);break;default:throw Error(Se(468,r))}o[oi]=t,jr(o),r=o}t.stateNode=r}else T6(i,t.type,t.stateNode);else t.stateNode=x6(i,r,t.memoizedProps);else o!==r?(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?T6(i,t.type,t.stateNode):x6(i,r,t.memoizedProps)):r===null&&t.stateNode!==null&&S_(t,t.memoizedProps,n.memoizedProps)}break;case 27:$i(e,t),Fi(t),r&512&&(xr||n===null||Ta(n,n.return)),n!==null&&r&4&&S_(t,t.memoizedProps,n.memoizedProps);break;case 5:if($i(e,t),Fi(t),r&512&&(xr||n===null||Ta(n,n.return)),t.flags&32){i=t.stateNode;try{em(i,"")}catch(p){ln(t,t.return,p)}}r&4&&t.stateNode!=null&&(i=t.memoizedProps,S_(t,i,n!==null?n.memoizedProps:i)),r&1024&&(E_=!0);break;case 6:if($i(e,t),Fi(t),r&4){if(t.stateNode===null)throw Error(Se(162));r=t.memoizedProps,n=t.stateNode;try{n.nodeValue=r}catch(p){ln(t,t.return,p)}}break;case 3:if(U2=null,i=Ps,Ps=nS(e.containerInfo),$i(e,t),Ps=i,Fi(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{lm(e.containerInfo)}catch(p){ln(t,t.return,p)}E_&&(E_=!1,fH(t));break;case 4:r=Ps,Ps=nS(t.stateNode.containerInfo),$i(e,t),Fi(t),Ps=r;break;case 12:$i(e,t),Fi(t);break;case 31:$i(e,t),Fi(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,Ib(t,r)));break;case 13:$i(e,t),Fi(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Xx=_o()),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,Ib(t,r)));break;case 22:i=t.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Sl,u=xr;if(Sl=c||i,xr=u||l,$i(e,t),xr=u,Sl=c,Fi(t),r&8192)e:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||l||Sl||xr||kd(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){l=n=e;try{if(o=l.stateNode,i)s=o.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{a=l.stateNode;var d=l.memoizedProps.style,f=d!=null&&d.hasOwnProperty("display")?d.display:null;a.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(p){ln(l,l.return,p)}}}else if(e.tag===6){if(n===null){l=e;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(p){ln(l,l.return,p)}}}else if(e.tag===18){if(n===null){l=e;try{var h=l.stateNode;i?y6(h,!0):y6(l.stateNode,!1)}catch(p){ln(l,l.return,p)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}r&4&&(r=t.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Ib(t,n))));break;case 19:$i(e,t),Fi(t),r&4&&(r=t.updateQueue,r!==null&&(t.updateQueue=null,Ib(t,r)));break;case 30:break;case 21:break;default:$i(e,t),Fi(t)}}function Fi(t){var e=t.flags;if(e&2){try{for(var n,r=t.return;r!==null;){if(iH(r)){n=r;break}r=r.return}if(n==null)throw Error(Se(160));switch(n.tag){case 27:var i=n.stateNode,o=x_(t);Kw(t,o,i);break;case 5:var s=n.stateNode;n.flags&32&&(em(s,""),n.flags&=-33);var a=x_(t);Kw(t,a,s);break;case 3:case 4:var l=n.stateNode.containerInfo,c=x_(t);l5(t,c,l);break;default:throw Error(Se(161))}}catch(u){ln(t,t.return,u)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function fH(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;fH(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function cl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)sH(t,e.alternate,e),e=e.sibling}function kd(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Du(4,e,e.return),kd(e);break;case 1:Ta(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&nH(e,e.return,n),kd(e);break;case 27:ey(e.stateNode);case 26:case 5:Ta(e,e.return),kd(e);break;case 22:e.memoizedState===null&&kd(e);break;case 30:kd(e);break;default:kd(e)}t=t.sibling}}function gl(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var r=e.alternate,i=t,o=e,s=o.flags;switch(o.tag){case 0:case 11:case 15:gl(i,o,n),dv(4,o);break;case 1:if(gl(i,o,n),r=o,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(c){ln(r,r.return,c)}if(r=o,i=r.updateQueue,i!==null){var a=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)cj(l[i],a)}catch(c){ln(r,r.return,c)}}n&&s&64&&tH(o),X1(o,o.return);break;case 27:oH(o);case 26:case 5:gl(i,o,n),n&&r===null&&s&4&&rH(o),X1(o,o.return);break;case 12:gl(i,o,n);break;case 31:gl(i,o,n),n&&s&4&&cH(i,o);break;case 13:gl(i,o,n),n&&s&4&&uH(i,o);break;case 22:o.memoizedState===null&&gl(i,o,n),X1(o,o.return);break;case 30:break;default:gl(i,o,n)}e=e.sibling}}function Z3(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&cv(n))}function eM(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&cv(t))}function Rs(t,e,n,r){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)hH(t,e,n,r),e=e.sibling}function hH(t,e,n,r){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Rs(t,e,n,r),i&2048&&dv(9,e);break;case 1:Rs(t,e,n,r);break;case 3:Rs(t,e,n,r),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&cv(t)));break;case 12:if(i&2048){Rs(t,e,n,r),t=e.stateNode;try{var o=e.memoizedProps,s=o.id,a=o.onPostCommit;typeof a=="function"&&a(s,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(l){ln(e,e.return,l)}}else Rs(t,e,n,r);break;case 31:Rs(t,e,n,r);break;case 13:Rs(t,e,n,r);break;case 23:break;case 22:o=e.stateNode,s=e.alternate,e.memoizedState!==null?o._visibility&2?Rs(t,e,n,r):Q1(t,e):o._visibility&2?Rs(t,e,n,r):(o._visibility|=2,Wh(t,e,n,r,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Z3(s,e);break;case 24:Rs(t,e,n,r),i&2048&&eM(e.alternate,e);break;default:Rs(t,e,n,r)}}function Wh(t,e,n,r,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var o=t,s=e,a=n,l=r,c=s.flags;switch(s.tag){case 0:case 11:case 15:Wh(o,s,a,l,i),dv(8,s);break;case 23:break;case 22:var u=s.stateNode;s.memoizedState!==null?u._visibility&2?Wh(o,s,a,l,i):Q1(o,s):(u._visibility|=2,Wh(o,s,a,l,i)),i&&c&2048&&Z3(s.alternate,s);break;case 24:Wh(o,s,a,l,i),i&&c&2048&&eM(s.alternate,s);break;default:Wh(o,s,a,l,i)}e=e.sibling}}function Q1(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,r=e,i=r.flags;switch(r.tag){case 22:Q1(n,r),i&2048&&Z3(r.alternate,r);break;case 24:Q1(n,r),i&2048&&eM(r.alternate,r);break;default:Q1(n,r)}e=e.sibling}}var b1=8192;function _h(t,e,n){if(t.subtreeFlags&b1)for(t=t.child;t!==null;)pH(t,e,n),t=t.sibling}function pH(t,e,n){switch(t.tag){case 26:_h(t,e,n),t.flags&b1&&t.memoizedState!==null&&Xoe(n,Ps,t.memoizedState,t.memoizedProps);break;case 5:_h(t,e,n);break;case 3:case 4:var r=Ps;Ps=nS(t.stateNode.containerInfo),_h(t,e,n),Ps=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=b1,b1=16777216,_h(t,e,n),b1=r):_h(t,e,n));break;default:_h(t,e,n)}}function mH(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Vg(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];$r=r,yH(r,t)}mH(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gH(t),t=t.sibling}function gH(t){switch(t.tag){case 0:case 11:case 15:Vg(t),t.flags&2048&&Du(9,t,t.return);break;case 3:Vg(t);break;case 12:Vg(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,j2(t)):Vg(t);break;default:Vg(t)}}function j2(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var r=e[n];$r=r,yH(r,t)}mH(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Du(8,e,e.return),j2(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,j2(e));break;default:j2(e)}t=t.sibling}}function yH(t,e){for(;$r!==null;){var n=$r;switch(n.tag){case 0:case 11:case 15:Du(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:cv(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,$r=r;else e:for(n=t;$r!==null;){r=$r;var i=r.sibling,o=r.return;if(aH(r),r===n){$r=null;break e}if(i!==null){i.return=o,$r=i;break e}$r=o}}}var doe={getCacheForType:function(t){var e=ai(Tr),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return ai(Tr).controller.signal}},foe=typeof WeakMap=="function"?WeakMap:Map,Xt=0,En=null,Nt=null,zt=0,sn=0,ho=null,Yc=!1,eg=!1,tM=!1,Yl=0,or=0,Lu=0,lf=0,nM=0,To=0,im=0,J1=null,Ui=null,c5=!1,Xx=0,vH=0,Yw=1/0,Xw=null,du=null,Or=0,fu=null,om=null,$l=0,u5=0,d5=null,bH=null,Z1=0,f5=null;function Ro(){return Xt&2&&zt!==0?zt&-zt:pt.T!==null?iM():IF()}function wH(){if(To===0)if(!(zt&536870912)||$t){var t=wb;wb<<=1,!(wb&3932160)&&(wb=262144),To=t}else To=536870912;return t=Lo.current,t!==null&&(t.flags|=32),To}function Ji(t,e,n){(t===En&&(sn===2||sn===9)||t.cancelPendingCommit!==null)&&(sm(t,0),Xc(t,zt,To,!1)),sv(t,n),(!(Xt&2)||t!==En)&&(t===En&&(!(Xt&2)&&(lf|=n),or===4&&Xc(t,zt,To,!1)),Xa(t))}function SH(t,e,n){if(Xt&6)throw Error(Se(327));var r=!n&&(e&127)===0&&(e&t.expiredLanes)===0||ov(t,e),i=r?moe(t,e):T_(t,e,!0),o=r;do{if(i===0){eg&&!r&&Xc(t,e,0,!1);break}else{if(n=t.current.alternate,o&&!hoe(n)){i=T_(t,e,!1),o=!1;continue}if(i===2){if(o=e,t.errorRecoveryDisabledLanes&o)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;e:{var a=t;i=J1;var l=a.current.memoizedState.isDehydrated;if(l&&(sm(a,s).flags|=256),s=T_(a,s,!1),s!==2){if(tM&&!l){a.errorRecoveryDisabledLanes|=o,lf|=o,i=4;break e}o=Ui,Ui=i,o!==null&&(Ui===null?Ui=o:Ui.push.apply(Ui,o))}i=s}if(o=!1,i!==2)continue}}if(i===1){sm(t,0),Xc(t,e,0,!0);break}e:{switch(r=t,o=i,o){case 0:case 1:throw Error(Se(345));case 4:if((e&4194048)!==e)break;case 6:Xc(r,e,To,!Yc);break e;case 2:Ui=null;break;case 3:case 5:break;default:throw Error(Se(329))}if((e&62914560)===e&&(i=Xx+300-_o(),10<i)){if(Xc(r,e,To,!Yc),Bx(r,0,!0)!==0)break e;$l=e,r.timeoutHandle=FH(i6.bind(null,r,n,Ui,Xw,c5,e,To,lf,im,Yc,o,"Throttled",-0,0),i);break e}i6(r,n,Ui,Xw,c5,e,To,lf,im,Yc,o,null,-0,0)}}break}while(!0);Xa(t)}function i6(t,e,n,r,i,o,s,a,l,c,u,d,f,h){if(t.timeoutHandle=-1,d=e.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Il},pH(e,o,d);var p=(o&62914560)===o?Xx-_o():(o&4194048)===o?vH-_o():0;if(p=Qoe(d,p),p!==null){$l=o,t.cancelPendingCommit=p(s6.bind(null,t,e,o,n,r,i,s,a,l,u,d,null,f,h)),Xc(t,o,s,!c);return}}s6(t,e,o,n,r,i,s,a,l)}function hoe(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,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(!Do(o(),i))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Xc(t,e,n,r){e&=~nM,e&=~lf,t.suspendedLanes|=e,t.pingedLanes&=~e,r&&(t.warmLanes|=e),r=t.expirationTimes;for(var i=e;0<i;){var o=31-Io(i),s=1<<o;r[o]=-1,i&=~s}n!==0&&CF(t,n,e)}function Qx(){return Xt&6?!0:(fv(0),!1)}function rM(){if(Nt!==null){if(sn===0)var t=Nt.return;else t=Nt,Rl=lh=null,j3(t),Ip=null,Hy=0,t=Nt;for(;t!==null;)eH(t.alternate,t),t=t.return;Nt=null}}function sm(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Ooe(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),$l=0,rM(),En=t,Nt=n=Vl(t.current,null),zt=e,sn=0,ho=null,Yc=!1,eg=ov(t,e),tM=!1,im=To=nM=lf=Lu=or=0,Ui=J1=null,c5=!1,e&8&&(e|=e&32);var r=t.entangledLanes;if(r!==0)for(t=t.entanglements,r&=e;0<r;){var i=31-Io(r),o=1<<i;e|=t[i],r&=~o}return Yl=e,Hx(),n}function xH(t,e){Tt=null,pt.H=qy,e===Zm||e===qx?(e=L9(),sn=3):e===D3?(e=L9(),sn=4):sn=e===Q3?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,ho=e,Nt===null&&(or=1,Ww(t,is(e,t.current)))}function EH(){var t=Lo.current;return t===null?!0:(zt&4194048)===zt?us===null:(zt&62914560)===zt||zt&536870912?t===us:!1}function TH(){var t=pt.H;return pt.H=qy,t===null?qy:t}function CH(){var t=pt.A;return pt.A=doe,t}
vendor: 4,863 bytes, line 48
48function Qw(){or=4,Yc||(zt&4194048)!==zt&&Lo.current!==null||(eg=!0),!(Lu&134217727)&&!(lf&134217727)||En===null||Xc(En,zt,To,!1)}function T_(t,e,n){var r=Xt;Xt|=2;var i=TH(),o=CH();(En!==t||zt!==e)&&(Xw=null,sm(t,e)),e=!1;var s=or;e:do try{if(sn!==0&&Nt!==null){var a=Nt,l=ho;switch(sn){case 8:rM(),s=6;break e;case 3:case 2:case 9:case 6:Lo.current===null&&(e=!0);var c=sn;if(sn=0,ho=null,hp(t,a,l,c),n&&eg){s=0;break e}break;default:c=sn,sn=0,ho=null,hp(t,a,l,c)}}poe(),s=or;break}catch(u){xH(t,u)}while(!0);return e&&t.shellSuspendCounter++,Rl=lh=null,Xt=r,pt.H=i,pt.A=o,Nt===null&&(En=null,zt=0,Hx()),s}function poe(){for(;Nt!==null;)_H(Nt)}function moe(t,e){var n=Xt;Xt|=2;var r=TH(),i=CH();En!==t||zt!==e?(Xw=null,Yw=_o()+500,sm(t,e)):eg=ov(t,e);e:do try{if(sn!==0&&Nt!==null){e=Nt;var o=ho;t:switch(sn){case 1:sn=0,ho=null,hp(t,e,o,1);break;case 2:case 9:if(D9(o)){sn=0,ho=null,o6(e);break}e=function(){sn!==2&&sn!==9||En!==t||(sn=7),Xa(t)},o.then(e,e);break e;case 3:sn=7;break e;case 4:sn=5;break e;case 7:D9(o)?(sn=0,ho=null,o6(e)):(sn=0,ho=null,hp(t,e,o,7));break;case 5:var s=null;switch(Nt.tag){case 26:s=Nt.memoizedState;case 5:case 27:var a=Nt;if(s?WH(s):a.stateNode.complete){sn=0,ho=null;var l=a.sibling;if(l!==null)Nt=l;else{var c=a.return;c!==null?(Nt=c,Jx(c)):Nt=null}break t}}sn=0,ho=null,hp(t,e,o,5);break;case 6:sn=0,ho=null,hp(t,e,o,6);break;case 8:rM(),or=6;break e;default:throw Error(Se(462))}}goe();break}catch(u){xH(t,u)}while(!0);return Rl=lh=null,pt.H=r,pt.A=i,Xt=n,Nt!==null?0:(En=null,zt=0,Hx(),or)}function goe(){for(;Nt!==null&&!Bre();)_H(Nt)}function _H(t){var e=Zj(t.alternate,t,Yl);t.memoizedProps=t.pendingProps,e===null?Jx(t):Nt=e}function o6(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=J9(n,e,e.pendingProps,e.type,void 0,zt);break;case 11:e=J9(n,e,e.pendingProps,e.type.render,e.ref,zt);break;case 5:j3(e);default:eH(n,e),e=Nt=ej(e,Yl),e=Zj(n,e,Yl)}t.memoizedProps=t.pendingProps,e===null?Jx(t):Nt=e}function hp(t,e,n,r){Rl=lh=null,j3(e),Ip=null,Hy=0;var i=e.return;try{if(ioe(t,i,e,n,zt)){or=1,Ww(t,is(n,t.current)),Nt=null;return}}catch(o){if(i!==null)throw Nt=i,o;or=1,Ww(t,is(n,t.current)),Nt=null;return}e.flags&32768?($t||r===1?t=!0:eg||zt&536870912?t=!1:(Yc=t=!0,(r===2||r===9||r===3||r===6)&&(r=Lo.current,r!==null&&r.tag===13&&(r.flags|=16384))),AH(e,t)):Jx(e)}function Jx(t){var e=t;do{if(e.flags&32768){AH(e,Yc);return}t=e.return;var n=aoe(e.alternate,e,Yl);if(n!==null){Nt=n;return}if(e=e.sibling,e!==null){Nt=e;return}Nt=e=t}while(e!==null);or===0&&(or=5)}function AH(t,e){do{var n=loe(t.alternate,t);if(n!==null){n.flags&=32767,Nt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){Nt=t;return}Nt=t=n}while(t!==null);or=6,Nt=null}function s6(t,e,n,r,i,o,s,a,l){t.cancelPendingCommit=null;do Zx();while(Or!==0);if(Xt&6)throw Error(Se(327));if(e!==null){if(e===t.current)throw Error(Se(177));if(o=e.lanes|e.childLanes,o|=I3,Yre(t,n,o,s,a,l),t===En&&(Nt=En=null,zt=0),om=e,fu=t,$l=n,u5=o,d5=i,bH=r,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,woe(Dw,function(){return PH(),null})):(t.callbackNode=null,t.callbackPriority=0),r=(e.flags&13878)!==0,e.subtreeFlags&13878||r){r=pt.T,pt.T=null,i=Qt.p,Qt.p=2,s=Xt,Xt|=4;try{coe(t,e,n)}finally{Xt=s,Qt.p=i,pt.T=r}}Or=1,IH(),RH(),MH()}}function IH(){if(Or===1){Or=0;var t=fu,e=om,n=(e.flags&13878)!==0;if(e.subtreeFlags&13878||n){n=pt.T,pt.T=null;var r=Qt.p;Qt.p=2;var i=Xt;Xt|=4;try{dH(e,t);var o=g5,s=WF(t.containerInfo),a=o.focusedElem,l=o.selectionRange;if(s!==a&&a&&a.ownerDocument&&qF(a.ownerDocument.documentElement,a)){if(l!==null&&A3(a)){var c=l.start,u=l.end;if(u===void 0&&(u=c),"selectionStart"in a)a.selectionStart=c,a.selectionEnd=Math.min(u,a.value.length);else{var d=a.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var h=f.getSelection(),p=a.textContent.length,m=Math.min(l.start,p),g=l.end===void 0?m:Math.min(l.end,p);!h.extend&&m>g&&(s=g,g=m,m=s);var y=I9(a,m),b=I9(a,g);if(y&&b&&(h.rangeCount!==1||h.anchorNode!==y.node||h.anchorOffset!==y.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var v=d.createRange();v.setStart(y.node,y.offset),h.removeAllRanges(),m>g?(h.addRange(v),h.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),h.addRange(v))}}}}for(d=[],h=a;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof a.focus=="function"&&a.focus(),a=0;a<d.length;a++){var S=d[a];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}oS=!!m5,g5=m5=null}finally{Xt=i,Qt.p=r,pt.T=n}}t.current=e,Or=2}}function RH(){if(Or===2){Or=0;var t=fu,e=om,n=(e.flags&8772)!==0;if(e.subtreeFlags&8772||n){n=pt.T,pt.T=null;var r=Qt.p;Qt.p=2;var i=Xt;Xt|=4;try{sH(t,e.alternate,e)}finally{Xt=i,Qt.p=r,pt.T=n}}Or=3}}function MH(){if(Or===4||Or===3){Or=0,$re();var t=fu,e=om,n=$l,r=bH;
vendor: 5,981 bytes, line 48
48e.subtreeFlags&10256||e.flags&10256?Or=5:(Or=0,om=fu=null,kH(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(du=null),w3(n),e=e.stateNode,Ao&&typeof Ao.onCommitFiberRoot=="function")try{Ao.onCommitFiberRoot(iv,e,void 0,(e.current.flags&128)===128)}catch{}if(r!==null){e=pt.T,i=Qt.p,Qt.p=2,pt.T=null;try{for(var o=t.onRecoverableError,s=0;s<r.length;s++){var a=r[s];o(a.value,{componentStack:a.stack})}}finally{pt.T=e,Qt.p=i}}$l&3&&Zx(),Xa(t),i=t.pendingLanes,n&261930&&i&42?t===f5?Z1++:(Z1=0,f5=t):Z1=0,fv(0)}}function kH(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,cv(e)))}function Zx(){return IH(),RH(),MH(),PH()}function PH(){if(Or!==5)return!1;var t=fu,e=u5;u5=0;var n=w3($l),r=pt.T,i=Qt.p;try{Qt.p=32>n?32:n,pt.T=null,n=d5,d5=null;var o=fu,s=$l;if(Or=0,om=fu=null,$l=0,Xt&6)throw Error(Se(331));var a=Xt;if(Xt|=4,gH(o.current),hH(o,o.current,s,n),Xt=a,fv(0,!1),Ao&&typeof Ao.onPostCommitFiberRoot=="function")try{Ao.onPostCommitFiberRoot(iv,o)}catch{}return!0}finally{Qt.p=i,pt.T=r,kH(t,e)}}function a6(t,e,n){e=is(n,e),e=o5(t.stateNode,e,2),t=uu(t,e,2),t!==null&&(sv(t,2),Xa(t))}function ln(t,e,n){if(t.tag===3)a6(t,t,n);else for(;e!==null;){if(e.tag===3){a6(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(du===null||!du.has(r))){t=is(n,t),n=Gj(2),r=uu(e,n,2),r!==null&&(Kj(n,r,e,t),sv(r,2),Xa(r));break}}e=e.return}}function C_(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new foe;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(tM=!0,i.add(n),t=yoe.bind(null,t,e,n),e.then(t,t))}function yoe(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,En===t&&(zt&n)===n&&(or===4||or===3&&(zt&62914560)===zt&&300>_o()-Xx?!(Xt&2)&&sm(t,0):nM|=n,im===zt&&(im=0)),Xa(t)}function OH(t,e){e===0&&(e=TF()),t=ah(t,e),t!==null&&(sv(t,e),Xa(t))}function voe(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),OH(t,n)}function boe(t,e){var n=0;switch(t.tag){case 31:case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;case 22:r=t.stateNode._retryCache;break;default:throw Error(Se(314))}r!==null&&r.delete(e),OH(t,n)}function woe(t,e){return v3(t,e)}var Jw=null,Gh=null,h5=!1,Zw=!1,__=!1,Qc=0;function Xa(t){t!==Gh&&t.next===null&&(Gh===null?Jw=Gh=t:Gh=Gh.next=t),Zw=!0,h5||(h5=!0,xoe())}function fv(t,e){if(!__&&Zw){__=!0;do for(var n=!1,r=Jw;r!==null;){if(t!==0){var i=r.pendingLanes;if(i===0)var o=0;else{var s=r.suspendedLanes,a=r.pingedLanes;o=(1<<31-Io(42|t)+1)-1,o&=i&~(s&~a),o=o&201326741?o&201326741|1:o?o|2:0}o!==0&&(n=!0,l6(r,o))}else o=zt,o=Bx(r,r===En?o:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(o&3)||ov(r,o)||(n=!0,l6(r,o));r=r.next}while(n);__=!1}}function Soe(){NH()}function NH(){Zw=h5=!1;var t=0;Qc!==0&&Poe()&&(t=Qc);for(var e=_o(),n=null,r=Jw;r!==null;){var i=r.next,o=DH(r,e);o===0?(r.next=null,n===null?Jw=i:n.next=i,i===null&&(Gh=n)):(n=r,(t!==0||o&3)&&(Zw=!0)),r=i}Or!==0&&Or!==5||fv(t),Qc!==0&&(Qc=0)}function DH(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,o=t.pendingLanes&-62914561;0<o;){var s=31-Io(o),a=1<<s,l=i[s];l===-1?(!(a&n)||a&r)&&(i[s]=Kre(a,e)):l<=e&&(t.expiredLanes|=a),o&=~a}if(e=En,n=zt,n=Bx(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r=t.callbackNode,n===0||t===e&&(sn===2||sn===9)||t.cancelPendingCommit!==null)return r!==null&&r!==null&&e_(r),t.callbackNode=null,t.callbackPriority=0;if(!(n&3)||ov(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(r!==null&&e_(r),w3(n)){case 2:case 8:n=xF;break;case 32:n=Dw;break;case 268435456:n=EF;break;default:n=Dw}return r=LH.bind(null,t),n=v3(n,r),t.callbackPriority=e,t.callbackNode=n,e}return r!==null&&r!==null&&e_(r),t.callbackPriority=2,t.callbackNode=null,2}function LH(t,e){if(Or!==0&&Or!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Zx()&&t.callbackNode!==n)return null;var r=zt;return r=Bx(t,t===En?r:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),r===0?null:(SH(t,r,e),DH(t,_o()),t.callbackNode!=null&&t.callbackNode===n?LH.bind(null,t):null)}function l6(t,e){if(Zx())return null;SH(t,e,!0)}function xoe(){Noe(function(){Xt&6?v3(SF,Soe):NH()})}function iM(){if(Qc===0){var t=tm;t===0&&(t=bb,bb<<=1,!(bb&261888)&&(bb=256)),Qc=t}return Qc}function c6(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:O2(""+t)}function u6(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Eoe(t,e,n,r,i){if(e==="submit"&&n&&n.stateNode===i){var o=c6((i[ro]||null).action),s=r.submitter;s&&(e=(e=s[ro]||null)?c6(e.formAction):s.getAttribute("formAction"),e!==null&&(o=e,s=null));var a=new $x("action","action",null,r,i);t.push({event:a,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Qc!==0){var l=s?u6(i,s):new FormData(i);r5(n,{pending:!0,data:l,method:i.method,action:o},null,l)}}else typeof o=="function"&&(a.preventDefault(),l=s?u6(i,s):new FormData(i),r5(n,{pending:!0,data:l,method:i.method,action:o},o,l))},currentTarget:i}]})}}for(var A_=0;A_<qI.length;A_++){var I_=qI[A_],Toe=I_.toLowerCase(),Coe=I_[0].toUpperCase()+I_.slice(1);Js(Toe,"on"+Coe)}Js(KF,"onAnimationEnd");Js(YF,"onAnimationIteration");Js(XF,"onAnimationStart");Js("dblclick","onDoubleClick");Js("focusin","onFocus");Js("focusout","onBlur");Js(Fie,"onTransitionRun");Js(jie,"onTransitionStart");Js(Hie,"onTransitionCancel");Js(QF,"onTransitionEnd");Zp("onMouseEnter",["mouseout","mouseover"]);Zp("onMouseLeave",["mouseout","mouseover"]);Zp("onPointerEnter",["pointerout","pointerover"]);Zp("onPointerLeave",["pointerout","pointerover"]);ih("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));
vendor: 4,834 bytes, line 48
48ih("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));ih("onBeforeInput",["compositionend","keypress","textInput","paste"]);ih("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));ih("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));ih("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Wy="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(" "),_oe=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Wy));function zH(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var o=void 0;if(e)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=c;try{o(i)}catch(u){zw(u)}i.currentTarget=null,o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;o=a,i.currentTarget=c;try{o(i)}catch(u){zw(u)}i.currentTarget=null,o=l}}}}function Ot(t,e){var n=e[zI];n===void 0&&(n=e[zI]=new Set);var r=t+"__bubble";n.has(r)||(VH(e,t,2,!1),n.add(r))}function R_(t,e,n){var r=0;e&&(r|=4),VH(n,t,r,e)}var Rb="_reactListening"+Math.random().toString(36).slice(2);function oM(t){if(!t[Rb]){t[Rb]=!0,RF.forEach(function(n){n!=="selectionchange"&&(_oe.has(n)||R_(n,!1,t),R_(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Rb]||(e[Rb]=!0,R_("selectionchange",!1,e))}}function VH(t,e,n,r){switch(QH(e)){case 2:var i=ese;break;case 8:i=tse;break;default:i=cM}n=i.bind(null,e,n,t),i=void 0,!jI||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function M_(t,e,n,r,i){var o=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;a!==null;){if(s=ip(a),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=o=s;continue e}a=a.parentNode}}r=r.return}zF(function(){var c=o,u=E3(n),d=[];e:{var f=JF.get(t);if(f!==void 0){var h=$x,p=t;switch(t){case"keypress":if(D2(n)===0)break e;case"keydown":case"keyup":h=bie;break;case"focusin":p="focus",h=o_;break;case"focusout":p="blur",h=o_;break;case"beforeblur":case"afterblur":h=o_;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":h=v9;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=aie;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=xie;break;case KF:case YF:case XF:h=uie;break;case QF:h=Tie;break;case"scroll":case"scrollend":h=oie;break;case"wheel":h=_ie;break;case"copy":case"cut":case"paste":h=fie;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=w9;break;case"toggle":case"beforetoggle":h=Iie}var m=(e&4)!==0,g=!m&&(t==="scroll"||t==="scrollend"),y=m?f!==null?f+"Capture":null:f;m=[];for(var b=c,v;b!==null;){var S=b;if(v=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||v===null||y===null||(S=Vy(b,y),S!=null&&m.push(Gy(b,S,v))),g)break;b=b.return}0<m.length&&(f=new h(f,p,null,n,u),d.push({event:f,listeners:m}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",h=t==="mouseout"||t==="pointerout",f&&n!==FI&&(p=n.relatedTarget||n.fromElement)&&(ip(p)||p[Xm]))break e;if((h||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=c,p=p?ip(p):null,p!==null&&(g=rv(p),m=p.tag,p!==g||m!==5&&m!==27&&m!==6)&&(p=null)):(h=null,p=c),h!==p)){if(m=v9,S="onMouseLeave",y="onMouseEnter",b="mouse",(t==="pointerout"||t==="pointerover")&&(m=w9,S="onPointerLeave",y="onPointerEnter",b="pointer"),g=h==null?f:y1(h),v=p==null?f:y1(p),f=new m(S,b+"leave",h,n,u),f.target=g,f.relatedTarget=v,S=null,ip(u)===c&&(m=new m(y,b+"enter",p,n,u),m.target=v,m.relatedTarget=g,S=m),g=S,h&&p)t:{for(m=Aoe,y=h,b=p,v=0,S=y;S;S=m(S))v++;S=0;for(var I=b;I;I=m(I))S++;for(;0<v-S;)y=m(y),v--;for(;0<S-v;)b=m(b),S--;for(;v--;){if(y===b||b!==null&&y===b.alternate){m=y;break t}y=m(y),b=m(b)}m=null}else m=null;h!==null&&d6(d,f,h,m,!1),p!==null&&g!==null&&d6(d,g,p,m,!0)}}
vendor: 15,650 bytes, lines 48-49
48e:{if(f=c?y1(c):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var O=T9;else if(E9(f))if(HF)O=Vie;else{O=Lie;var T=Die}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?c&&x3(c.elementType)&&(O=T9):O=zie;if(O&&(O=O(t,c))){jF(d,O,n,u);break e}T&&T(t,f,c),t==="focusout"&&c&&f.type==="number"&&c.memoizedProps.value!=null&&$I(f,"number",f.value)}switch(T=c?y1(c):window,t){case"focusin":(E9(T)||T.contentEditable==="true")&&(ap=T,HI=c,U1=null);break;case"focusout":U1=HI=ap=null;break;case"mousedown":UI=!0;break;case"contextmenu":case"mouseup":case"dragend":UI=!1,R9(d,n,u);break;case"selectionchange":if($ie)break;case"keydown":case"keyup":R9(d,n,u)}var A;if(_3)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else sp?$F(t,n)&&(R="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(BF&&n.locale!=="ko"&&(sp||R!=="onCompositionStart"?R==="onCompositionEnd"&&sp&&(A=VF()):(Kc=u,T3="value"in Kc?Kc.value:Kc.textContent,sp=!0)),T=eS(c,R),0<T.length&&(R=new b9(R,t,null,n,u),d.push({event:R,listeners:T}),A?R.data=A:(A=FF(n),A!==null&&(R.data=A)))),(A=Mie?kie(t,n):Pie(t,n))&&(R=eS(c,"onBeforeInput"),0<R.length&&(T=new b9("onBeforeInput","beforeinput",null,n,u),d.push({event:T,listeners:R}),T.data=A)),Eoe(d,t,c,n,u)}zH(d,e)})}function Gy(t,e,n){return{instance:t,listener:e,currentTarget:n}}function eS(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,o=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||o===null||(i=Vy(t,n),i!=null&&r.unshift(Gy(t,i,o)),i=Vy(t,e),i!=null&&r.push(Gy(t,i,o))),t.tag===3)return r;t=t.return}return[]}function Aoe(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function d6(t,e,n,r,i){for(var o=e._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(a=a.tag,l!==null&&l===r)break;a!==5&&a!==26&&a!==27||c===null||(l=c,i?(c=Vy(n,o),c!=null&&s.unshift(Gy(n,c,l))):i||(c=Vy(n,o),c!=null&&s.push(Gy(n,c,l)))),n=n.return}s.length!==0&&t.push({event:e,listeners:s})}var Ioe=/\r\n?/g,Roe=/\u0000|\uFFFD/g;function f6(t){return(typeof t=="string"?t:""+t).replace(Ioe,` 49`).replace(Roe,"")}function BH(t,e){return e=f6(e),f6(t)===e}function yn(t,e,n,r,i,o){switch(n){case"children":typeof r=="string"?e==="body"||e==="textarea"&&r===""||em(t,r):(typeof r=="number"||typeof r=="bigint")&&e!=="body"&&em(t,""+r);break;case"className":xb(t,"class",r);break;case"tabIndex":xb(t,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":xb(t,n,r);break;case"style":LF(t,r,o);break;case"data":if(e!=="object"){xb(t,"data",r);break}case"src":case"href":if(r===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(n);break}r=O2(""+r),t.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof o=="function"&&(n==="formAction"?(e!=="input"&&yn(t,e,"name",i.name,i,null),yn(t,e,"formEncType",i.formEncType,i,null),yn(t,e,"formMethod",i.formMethod,i,null),yn(t,e,"formTarget",i.formTarget,i,null)):(yn(t,e,"encType",i.encType,i,null),yn(t,e,"method",i.method,i,null),yn(t,e,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){t.removeAttribute(n);break}r=O2(""+r),t.setAttribute(n,r);break;case"onClick":r!=null&&(t.onclick=Il);break;case"onScroll":r!=null&&Ot("scroll",t);break;case"onScrollEnd":r!=null&&Ot("scrollend",t);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Se(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Se(60));t.innerHTML=n}}break;case"multiple":t.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":t.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){t.removeAttribute("xlink:href");break}n=O2(""+r),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,""+r):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":r===!0?t.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?t.setAttribute(n,r):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?t.setAttribute(n,r):t.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?t.removeAttribute(n):t.setAttribute(n,r);break;case"popover":Ot("beforetoggle",t),Ot("toggle",t),P2(t,"popover",r);break;case"xlinkActuate":sl(t,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":sl(t,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":sl(t,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":sl(t,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":sl(t,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":sl(t,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":sl(t,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":sl(t,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":sl(t,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":P2(t,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=rie.get(n)||n,P2(t,n,r))}}function p5(t,e,n,r,i,o){switch(n){case"style":LF(t,r,o);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Se(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Se(60));t.innerHTML=n}}break;case"children":typeof r=="string"?em(t,r):(typeof r=="number"||typeof r=="bigint")&&em(t,""+r);break;case"onScroll":r!=null&&Ot("scroll",t);break;case"onScrollEnd":r!=null&&Ot("scrollend",t);break;case"onClick":r!=null&&(t.onclick=Il);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!MF.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),o=t[ro]||null,o=o!=null?o[n]:null,typeof o=="function"&&t.removeEventListener(e,o,i),typeof r=="function")){typeof o!="function"&&o!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,r,i);break e}n in t?t[n]=r:r===!0?t.setAttribute(n,""):P2(t,n,r)}}}function ci(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ot("error",t),Ot("load",t);var r=!1,i=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Se(137,e));default:yn(t,e,o,s,n,null)}}i&&yn(t,e,"srcSet",n.srcSet,n,null),r&&yn(t,e,"src",n.src,n,null);return;case"input":Ot("invalid",t);var a=o=s=i=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case"name":i=u;break;case"type":s=u;break;case"checked":l=u;break;case"defaultChecked":c=u;break;case"value":o=u;break;case"defaultValue":a=u;break;case"children":case"dangerouslySetInnerHTML":if(u!=null)throw Error(Se(137,e));break;default:yn(t,e,r,u,n,null)}}OF(t,o,a,l,c,s,i,!1);return;case"select":Ot("invalid",t),r=s=o=null;for(i in n)if(n.hasOwnProperty(i)&&(a=n[i],a!=null))switch(i){case"value":o=a;break;case"defaultValue":s=a;break;case"multiple":r=a;default:yn(t,e,i,a,n,null)}e=o,n=s,t.multiple=!!r,e!=null?Cp(t,!!r,e,!1):n!=null&&Cp(t,!!r,n,!0);return;case"textarea":Ot("invalid",t),o=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"value":r=a;break;case"defaultValue":i=a;break;case"children":o=a;break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(Se(91));break;default:yn(t,e,s,a,n,null)}DF(t,r,i,o);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":t.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:yn(t,e,l,r,n,null)}return;case"dialog":Ot("beforetoggle",t),Ot("toggle",t),Ot("cancel",t),Ot("close",t);break;case"iframe":case"object":Ot("load",t);break;case"video":case"audio":for(r=0;r<Wy.length;r++)Ot(Wy[r],t);break;case"image":Ot("error",t),Ot("load",t);break;case"details":Ot("toggle",t);break;case"embed":case"source":case"link":Ot("error",t),Ot("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(Se(137,e));default:yn(t,e,c,r,n,null)}return;default:if(x3(e)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&p5(t,e,u,r,n,void 0));return}}for(a in n)n.hasOwnProperty(a)&&(r=n[a],r!=null&&yn(t,e,a,r,n,null))}function Moe(t,e,n,r){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,o=null,s=null,a=null,l=null,c=null,u=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=d;default:r.hasOwnProperty(h)||yn(t,e,h,null,r,d)}}for(var f in r){var h=r[f];if(d=n[f],r.hasOwnProperty(f)&&(h!=null||d!=null))switch(f){case"type":o=h;break;case"name":i=h;break;case"checked":c=h;break;case"defaultChecked":u=h;break;case"value":s=h;break;case"defaultValue":a=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Se(137,e));break;default:h!==d&&yn(t,e,f,h,r,d)}}BI(t,s,a,l,c,u,o,i);return;case"select":h=s=a=f=null;for(o in n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(o)||yn(t,e,o,null,r,l)}for(i in r)if(o=r[i],l=n[i],r.hasOwnProperty(i)&&(o!=null||l!=null))switch(i){case"value":f=o;break;case"defaultValue":a=o;break;case"multiple":s=o;default:o!==l&&yn(t,e,i,o,r,l)}e=a,n=s,r=h,f!=null?Cp(t,!!n,f,!1):!!r!=!!n&&(e!=null?Cp(t,!!n,e,!0):Cp(t,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(a in n)if(i=n[a],n.hasOwnProperty(a)&&i!=null&&!r.hasOwnProperty(a))switch(a){case"value":break;case"children":break;default:yn(t,e,a,null,r,i)}for(s in r)if(i=r[s],o=n[s],r.hasOwnProperty(s)&&(i!=null||o!=null))switch(s){case"value":f=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Se(91));break;default:i!==o&&yn(t,e,s,i,r,o)}NF(t,f,h);return;case"option":for(var p in n)if(f=n[p],n.hasOwnProperty(p)&&f!=null&&!r.hasOwnProperty(p))switch(p){case"selected":t.selected=!1;break;default:yn(t,e,p,null,r,f)}for(l in r)if(f=r[l],h=n[l],r.hasOwnProperty(l)&&f!==h&&(f!=null||h!=null))switch(l){case"selected":t.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:yn(t,e,l,f,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m)&&yn(t,e,m,null,r,f);for(c in r)if(f=r[c],h=n[c],r.hasOwnProperty(c)&&f!==h&&(f!=null||h!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(Se(137,e));break;default:yn(t,e,c,f,r,h)}return;default:if(x3(e)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&p5(t,e,g,void 0,r,f);for(u in r)f=r[u],h=n[u],!r.hasOwnProperty(u)||f===h||f===void 0&&h===void 0||p5(t,e,u,f,r,h);return}}for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!=null&&!r.hasOwnProperty(y)&&yn(t,e,y,null,r,f);for(d in r)f=r[d],h=n[d],!r.hasOwnProperty(d)||f===h||f==null&&h==null||yn(t,e,d,f,r,h)}function h6(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function koe(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],o=i.transferSize,s=i.initiatorType,a=i.duration;if(o&&a&&h6(s)){for(s=0,a=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>a)break;var u=l.transferSize,d=l.initiatorType;u&&h6(d)&&(l=l.responseEnd,s+=u*(l<a?1:(a-c)/(l-c)))}if(--r,e+=8*(o+s)/(i.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var m5=null,g5=null;function tS(t){return t.nodeType===9?t:t.ownerDocument}function p6(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function $H(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function y5(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var k_=null;function Poe(){var t=window.event;return t&&t.type==="popstate"?t===k_?!1:(k_=t,!0):(k_=null,!1)}var FH=typeof setTimeout=="function"?setTimeout:void 0,Ooe=typeof clearTimeout=="function"?clearTimeout:void 0,m6=typeof Promise=="function"?Promise:void 0,Noe=typeof queueMicrotask=="function"?queueMicrotask:typeof m6<"u"?function(t){return m6.resolve(null).then(t).catch(Doe)}:FH;function Doe(t){setTimeout(function(){throw t})}function Xu(t){return t==="head"}function g6(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(r===0){t.removeChild(i),lm(e);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")ey(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ey(n);for(var o=n.firstChild;o;){var s=o.nextSibling,a=o.nodeName;o[av]||a==="SCRIPT"||a==="STYLE"||a==="LINK"&&o.rel.toLowerCase()==="stylesheet"||n.removeChild(o),o=s}}else n==="body"&&ey(t.ownerDocument.body);n=i}while(n);lm(e)}function y6(t,e){var n=t;t=0;do{var r=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.n
vendor: 11,316 bytes, line 49
49odeType===8)if(n=r.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=r}while(n)}function v5(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":v5(n),S3(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Loe(t,e,n,r){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!r&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(r){if(!t[av])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(o=t.getAttribute("rel"),o==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(o!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(o=t.getAttribute("src"),(o!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&o&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var o=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===o)return t}else return t;if(t=ds(t.nextSibling),t===null)break}return null}function zoe(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=ds(t.nextSibling),t===null))return null;return t}function jH(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=ds(t.nextSibling),t===null))return null;return t}function b5(t){return t.data==="$?"||t.data==="$~"}function w5(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Voe(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var r=function(){e(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),t._reactRetry=r}}function ds(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var S5=null;function v6(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return ds(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function b6(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function HH(t,e,n){switch(e=tS(n),t){case"html":if(t=e.documentElement,!t)throw Error(Se(452));return t;case"head":if(t=e.head,!t)throw Error(Se(453));return t;case"body":if(t=e.body,!t)throw Error(Se(454));return t;default:throw Error(Se(451))}}function ey(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);S3(t)}var bs=new Map,w6=new Set;function nS(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var sc=Qt.d;Qt.d={f:Boe,r:$oe,D:Foe,C:joe,L:Hoe,m:Uoe,X:Woe,S:qoe,M:Goe};function Boe(){var t=sc.f(),e=Qx();return t||e}function $oe(t){var e=Qm(t);e!==null&&e.tag===5&&e.type==="form"?Lj(e):sc.r(t)}var tg=typeof document>"u"?null:document;function UH(t,e,n){var r=tg;if(r&&typeof e=="string"&&e){var i=rs(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),w6.has(i)||(w6.add(i),t={rel:t,crossOrigin:n,href:e},r.querySelector(i)===null&&(e=r.createElement("link"),ci(e,"link",t),jr(e),r.head.appendChild(e)))}}function Foe(t){sc.D(t),UH("dns-prefetch",t,null)}function joe(t,e){sc.C(t,e),UH("preconnect",t,e)}function Hoe(t,e,n){sc.L(t,e,n);var r=tg;if(r&&t&&e){var i='link[rel="preload"][as="'+rs(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+rs(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+rs(n.imageSizes)+'"]')):i+='[href="'+rs(t)+'"]';var o=i;switch(e){case"style":o=am(t);break;case"script":o=ng(t)}bs.has(o)||(t=Ln({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),bs.set(o,t),r.querySelector(i)!==null||e==="style"&&r.querySelector(hv(o))||e==="script"&&r.querySelector(pv(o))||(e=r.createElement("link"),ci(e,"link",t),jr(e),r.head.appendChild(e)))}}function Uoe(t,e){sc.m(t,e);var n=tg;if(n&&t){var r=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+rs(r)+'"][href="'+rs(t)+'"]',o=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":o=ng(t)}if(!bs.has(o)&&(t=Ln({rel:"modulepreload",href:t},e),bs.set(o,t),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(pv(o)))return}r=n.createElement("link"),ci(r,"link",t),jr(r),n.head.appendChild(r)}}}function qoe(t,e,n){sc.S(t,e,n);var r=tg;if(r&&t){var i=Tp(r).hoistableStyles,o=am(t);e=e||"default";var s=i.get(o);if(!s){var a={loading:0,preload:null};if(s=r.querySelector(hv(o)))a.loading=5;else{t=Ln({rel:"stylesheet",href:t,"data-precedence":e},n),(n=bs.get(o))&&sM(t,n);var l=s=r.createElement("link");jr(l),ci(l,"link",t),l._p=new Promise(function(c,u){l.onload=c,l.onerror=u}),l.addEventListener("load",function(){a.loading|=1}),l.addEventListener("error",function(){a.loading|=2}),a.loading|=4,H2(s,e,r)}s={type:"stylesheet",instance:s,count:1,state:a},i.set(o,s)}}}function Woe(t,e){sc.X(t,e);var n=tg;if(n&&t){var r=Tp(n).hoistableScripts,i=ng(t),o=r.get(i);o||(o=n.querySelector(pv(i)),o||(t=Ln({src:t,async:!0},e),(e=bs.get(i))&&aM(t,e),o=n.createElement("script"),jr(o),ci(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function Goe(t,e){sc.M(t,e);var n=tg;if(n&&t){var r=Tp(n).hoistableScripts,i=ng(t),o=r.get(i);o||(o=n.querySelector(pv(i)),o||(t=Ln({src:t,async:!0,type:"module"},e),(e=bs.get(i))&&aM(t,e),o=n.createElement("script"),jr(o),ci(o,"link",t),n.head.appendChild(o)),o={type:"script",instance:o,count:1,state:null},r.set(i,o))}}function S6(t,e,n,r){var i=(i=au.current)?nS(i):null;if(!i)throw Error(Se(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=am(n.href),n=Tp(i).hoistableStyles,r=n.get(e),r||(r={type:"style",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=am(n.href);var o=Tp(i).hoistableStyles,s=o.get(t);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},o.set(t,s),(o=i.querySelector(hv(t)))&&!o._p&&(s.instance=o,s.state.loading=5),bs.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},bs.set(t,n),o||Koe(i,t,n,s.state))),e&&r===null)throw Error(Se(528,""));return s}if(e&&r!==null)throw Error(Se(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ng(n),n=Tp(i).hoistableScripts,r=n.get(e),r||(r={type:"script",instance:null,count:0,state:null},n.set(e,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Se(444,t))}}function am(t){return'href="'+rs(t)+'"'}function hv(t){return'link[rel="stylesheet"]['+t+"]"}function qH(t){return Ln({},t,{"data-precedence":t.precedence,precedence:null})}function Koe(t,e,n,r){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?r.loading=1:(e=t.createElement("link"),r.preload=e,e.addEventListener("load",function(){return r.loading|=1}),e.addEventListener("error",function(){return r.loading|=2}),ci(e,"link",n),jr(e),t.head.appendChild(e))}function ng(t){return'[src="'+rs(t)+'"]'}function pv(t){return"script[async]"+t}function x6(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var r=t.querySelector('style[data-href~="'+rs(n.href)+'"]');if(r)return e.instance=r,jr(r),r;var i=Ln({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(t.ownerDocument||t).createElement("style"),jr(r),ci(r,"style",i),H2(r,n.precedence,t),e.instance=r;case"stylesheet":i=am(n.href);var o=t.querySelector(hv(i));if(o)return e.state.loading|=4,e.instance=o,jr(o),o;r=qH(n),(i=bs.get(i))&&sM(r,i),o=(t.ownerDocument||t).createElement("link"),jr(o);var s=o;return s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),ci(o,"link",r),e.state.loading|=4,H2(o,n.precedence,t),e.instance=o;case"script":return o=ng(n.src),(i=t.querySelector(pv(o)))?(e.instance=i,jr(i),i):(r=n,(i=bs.get(o))&&(r=Ln({},n),aM(r,i)),t=t.ownerDocument||t,i=t.createElement("script"),jr(i),ci(i,"link",r),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(Se(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(r=e.instance,e.state.loading|=4,H2(r,n.precedence,t));return e.instance}function H2(t,e,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,o=i,s=0;s<r.length;s++){var a=r[s];if(a.dataset.precedence===e)o=a;else if(o!==i)break}o?o.parentNode.insertBefore(t,o.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function sM(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function aM(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var U2=null;function E6(t,e,n){if(U2===null){var r=new Map,i=U2=new Map;i.set(n,r)}else i=U2,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(t))return r;for(r.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var o=n[i];if(!(o[av]||o[oi]||t==="link"&&o.getAttribute("rel")==="stylesheet")&&o.namespaceURI!=="http://www.w3.org/2000/svg"){var s=o.getAttribute(e)||"";s=t+s;var a=r.get(s);a?a.push(o):r.set(s,[o])}}return r}function T6(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Yoe(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function WH(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function Xoe(t,e,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&
vendor: 4,186 bytes, line 49
49!(n.state.loading&4)){if(n.instance===null){var i=am(r.href),o=e.querySelector(hv(i));if(o){e=o._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=rS.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=o,jr(o);return}o=e.ownerDocument||e,r=qH(r),(i=bs.get(i))&&sM(r,i),o=o.createElement("link"),jr(o);var s=o;s._p=new Promise(function(a,l){s.onload=a,s.onerror=l}),ci(o,"link",r),n.instance=o}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(t.count++,n=rS.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var P_=0;function Qoe(t,e){return t.stylesheets&&t.count===0&&q2(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var r=setTimeout(function(){if(t.stylesheets&&q2(t,t.stylesheets),t.unsuspend){var o=t.unsuspend;t.unsuspend=null,o()}},6e4+e);0<t.imgBytes&&P_===0&&(P_=62500*koe());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&q2(t,t.stylesheets),t.unsuspend)){var o=t.unsuspend;t.unsuspend=null,o()}},(t.imgBytes>P_?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rS(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)q2(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var iS=null;function q2(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,iS=new Map,e.forEach(Joe,t),iS=null,rS.call(t))}function Joe(t,e){if(!(e.state.loading&4)){var n=iS.get(t);if(n)var r=n.get(null);else{n=new Map,iS.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),o=0;o<i.length;o++){var s=i[o];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=e.instance,s=i.getAttribute("data-precedence"),o=n.get(s)||r,o===r&&n.set(null,i),n.set(s,i),this.count++,r=rS.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),o?o.parentNode.insertBefore(i,o.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var Ky={$$typeof:Al,Provider:null,Consumer:null,_currentValue:rf,_currentValue2:rf,_threadCount:0};function Zoe(t,e,n,r,i,o,s,a,l){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=t_(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=t_(0),this.hiddenUpdates=t_(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=o,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function GH(t,e,n,r,i,o,s,a,l,c,u,d){return t=new Zoe(t,e,n,s,l,c,u,d,a),e=1,o===!0&&(e|=24),o=vo(3,null,null,e),t.current=o,o.stateNode=t,e=O3(),e.refCount++,t.pooledCache=e,e.refCount++,o.memoizedState={element:r,isDehydrated:n,cache:e},L3(o),t}function KH(t){return t?(t=up,t):up}function YH(t,e,n,r,i,o){i=KH(i),r.context===null?r.context=i:r.pendingContext=i,r=cu(e),r.payload={element:n},o=o===void 0?null:o,o!==null&&(r.callback=o),n=uu(t,r,e),n!==null&&(Ji(n,t,e),W1(n,t,e))}function C6(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function lM(t,e){C6(t,e),(t=t.alternate)&&C6(t,e)}function XH(t){if(t.tag===13||t.tag===31){var e=ah(t,67108864);e!==null&&Ji(e,t,67108864),lM(t,67108864)}}function _6(t){if(t.tag===13||t.tag===31){var e=Ro();e=b3(e);var n=ah(t,e);n!==null&&Ji(n,t,e),lM(t,e)}}var oS=!0;function ese(t,e,n,r){var i=pt.T;pt.T=null;var o=Qt.p;try{Qt.p=2,cM(t,e,n,r)}finally{Qt.p=o,pt.T=i}}function tse(t,e,n,r){var i=pt.T;pt.T=null;var o=Qt.p;try{Qt.p=8,cM(t,e,n,r)}finally{Qt.p=o,pt.T=i}}function cM(t,e,n,r){if(oS){var i=x5(r);if(i===null)M_(t,e,r,sS,n),A6(t,r);else if(rse(i,t,e,n,r))r.stopPropagation();else if(A6(t,r),e&4&&-1<nse.indexOf(t)){for(;i!==null;){var o=Qm(i);
vendor: 4,204 bytes, line 49
49if(o!==null)switch(o.tag){case 3:if(o=o.stateNode,o.current.memoizedState.isDehydrated){var s=Rd(o.pendingLanes);if(s!==0){var a=o;for(a.pendingLanes|=2,a.entangledLanes|=2;s;){var l=1<<31-Io(s);a.entanglements[1]|=l,s&=~l}Xa(o),!(Xt&6)&&(Yw=_o()+500,fv(0))}}break;case 31:case 13:a=ah(o,2),a!==null&&Ji(a,o,2),Qx(),lM(o,2)}if(o=x5(r),o===null&&M_(t,e,r,sS,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else M_(t,e,r,null,n)}}function x5(t){return t=E3(t),uM(t)}var sS=null;function uM(t){if(sS=null,t=ip(t),t!==null){var e=rv(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=gF(e),t!==null)return t;t=null}else if(n===31){if(t=yF(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return sS=t,null}function QH(t){switch(t){case"beforetoggle":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"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fre()){case SF:return 2;case xF:return 8;case Dw:case jre:return 32;case EF:return 268435456;default:return 32}default:return 32}}var E5=!1,hu=null,pu=null,mu=null,Yy=new Map,Xy=new Map,Bc=[],nse="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function A6(t,e){switch(t){case"focusin":case"focusout":hu=null;break;case"dragenter":case"dragleave":pu=null;break;case"mouseover":case"mouseout":mu=null;break;case"pointerover":case"pointerout":Yy.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xy.delete(e.pointerId)}}function Bg(t,e,n,r,i,o){return t===null||t.nativeEvent!==o?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},e!==null&&(e=Qm(e),e!==null&&XH(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function rse(t,e,n,r,i){switch(e){case"focusin":return hu=Bg(hu,t,e,n,r,i),!0;case"dragenter":return pu=Bg(pu,t,e,n,r,i),!0;case"mouseover":return mu=Bg(mu,t,e,n,r,i),!0;case"pointerover":var o=i.pointerId;return Yy.set(o,Bg(Yy.get(o)||null,t,e,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Xy.set(o,Bg(Xy.get(o)||null,t,e,n,r,i)),!0}return!1}function JH(t){var e=ip(t.target);if(e!==null){var n=rv(e);if(n!==null){if(e=n.tag,e===13){if(e=gF(n),e!==null){t.blockedOn=e,d9(t.priority,function(){_6(n)});return}}else if(e===31){if(e=yF(n),e!==null){t.blockedOn=e,d9(t.priority,function(){_6(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function W2(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=x5(t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);FI=r,n.target.dispatchEvent(r),FI=null}else return e=Qm(n),e!==null&&XH(e),t.blockedOn=n,!1;e.shift()}return!0}function I6(t,e,n){W2(t)&&n.delete(e)}function ise(){E5=!1,hu!==null&&W2(hu)&&(hu=null),pu!==null&&W2(pu)&&(pu=null),mu!==null&&W2(mu)&&(mu=null),Yy.forEac
49h(I6),Xy.forEach(I6)}function Mb(t,e){t.blockedOn===e&&(t.blockedOn=null,E5||(E5=!0,Dr.unstable_scheduleCallback(Dr.unstable_NormalPriority,ise)))}var kb=null;function R6(t){kb!==t&&(kb=t,Dr.unstable_scheduleCallback(Dr.unstable_NormalPriority,function(){kb===t&&(kb=null);for(var e=0;e<t.length;e+=3){var n=t[e],r=t[e+1],i=t[e+2];if(typeof r!="function"){if(uM(r||n)===null)continue;break}var o=Qm(n);o!==null&&(t.splice(e,3),e-=3,r5(o,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function lm(t){function e(l){return Mb(l,t)}hu!==null&&Mb(hu,t),pu!==null&&Mb(pu,t),mu!==null&&Mb(mu,t),Yy.forEach(e),Xy.forEach(e);for(var n=0;n<Bc.length;n++){var r=Bc[n];r.blockedOn===t&&(r.blockedOn=null)}for(;0<Bc.length&&(n=Bc[0],n.blockedOn===null);)JH(n),n.blockedOn===null&&Bc.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],o=n[r+1],s=i[ro]||null;if(typeof o=="function")s||R6(n);else if(s){var a=null;if(o&&o.hasAttribute("formAction")){if(i=o,s=o[ro]||null)a=s.formAction;else if(uM(i)!==null)continue}else a=s.action;typeof a=="function"?n[r+1]=a:(n.splice(r,3),r-=3),R6(n)}}}function ZH(){function t(o){o.canIntercept&&o.info==="react-transition"&&o.intercept({handler:function(){return new Promise(function(s){return i=s})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var o=navigation.currentEntry;o&&o.url!=null&&navigation.navigate(o.url,{state:o.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function dM(t){this._internalRoot=t}eE.prototype.render=dM.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(Se(409));var n=e.current,r=Ro();YH(n,r,t,e,null,null)};eE.prototype.unmount=dM.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;YH(t.current,2,null,t,null,null),Qx(),e[Xm]=null}};function eE(t){this._internalRoot=t}eE.prototype.unstable_scheduleHydration=function(t){if(t){var e=IF();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Bc.length&&e!==0&&e<Bc[n].priority;n++);Bc.splice(n,0,t),n===0&&JH(t)}};var M6=pF.version;if(M6!=="19.2.4")throw Error(Se(527,M6,"19.2.4"));Qt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(Se(188)):(t=Object.keys(t).join(","),Error(Se(268,t)));return t=Nre(e),t=t!==null?vF(t):null,t=t===null?null:t.stateNode,t};var ose={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:pt,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Pb=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pb.isDisabled&&Pb.supportsFiber)try{iv=Pb.inject(ose),Ao=Pb}catch{}}zx.createRoot=function(t,e){if(!mF(t))throw Error(Se(299));var n=!1,r="",i=Uj,o=qj,s=Wj;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(o=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=GH(t,1,!1,null,null,n,r,null,i,o,s,ZH),t[Xm]=e.current,oM(t),new dM(e)};zx.hydrateRoot=function(t,e,n){if(!mF(t))throw Error(Se(299));var r=!1,i="",o=Uj,s=qj,a=Wj,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(o=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(a=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),e=GH(t,1,!0,e,n??null,r,i,l,o,s,a,ZH),e.context=KH(null),n=e.current,r=Ro(),r=b3(r),i=cu(r),i.callback=null,uu(n,i,r),n=r,e.current.lanes=n,sv(e,n),Xa(e),t[Xm]=e.current,oM(t),new eE(e)};zx.version="19.2.4";function eU(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eU)}catch(t){console.error(t)}}eU(),tF.exports=zx;var sse=tF.exports;const iWe=Ts(sse);/** 50 * @remix-run/router v1.23.2 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */function Qy(){return Qy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Qy.apply(this,arguments)}var Jc;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Jc||(Jc={}));const k6="popstate";function ase(t){t===void 0&&(t={});function e(r,i){let{pathname:o,search:s,hash:a}=r.location;return T5("",{pathname:o,search:s,hash:a},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:aS(i)}return cse(e,n,null,t)}function ar(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function fM(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function lse(){return Math.random().toString(36).substr(2,8)}function P6(t,e){return{usr:t.state,key:t.key,idx:e}}function T5(t,e,n,r){return n===void 0&&(n=null),Qy({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?rg(e):e,{state:n,key:e&&e.key||r||lse()})}function aS(t){let{pathname:e="/",search:n="",hash:r=""}=t;return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function rg(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substr(n),t=t.substr(0,n));let r=t.indexOf("?");r>=0&&(e.search=t.substr(r),t=t.substr(0,r)),t&&(e.pathname=t)}return e}function cse(t,e,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=Jc.Pop,l=null,c=u();c==null&&(c=0,s.replaceState(Qy({},s.state,{idx:c}),""));function u(){return(s.state||{idx:null}).idx}function d(){a=Jc.Pop;let g=u(),y=g==null?null:g-c;c=g,l&&l({action:a,location:m.location,delta:y})}function f(g,y){a=Jc.Push;let b=T5(m.location,g,y);c=u()+1;let v=P6(b,c),S=m.createHref(b);
vendor: 10,719 bytes, lines 58-67
58try{s.pushState(v,"",S)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(S)}o&&l&&l({action:a,location:m.location,delta:1})}function h(g,y){a=Jc.Replace;let b=T5(m.location,g,y);c=u();let v=P6(b,c),S=m.createHref(b);s.replaceState(v,"",S),o&&l&&l({action:a,location:m.location,delta:0})}function p(g){let y=i.location.origin!=="null"?i.location.origin:i.location.href,b=typeof g=="string"?g:aS(g);return b=b.replace(/ $/,"%20"),ar(y,"No window.location.(origin|href) available to create URL for href: "+b),new URL(b,y)}let m={get action(){return a},get location(){return t(i,s)},listen(g){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(k6,d),l=g,()=>{i.removeEventListener(k6,d),l=null}},createHref(g){return e(i,g)},createURL:p,encodeLocation(g){let y=p(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(g){return s.go(g)}};return m}var O6;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(O6||(O6={}));function use(t,e,n){return n===void 0&&(n="/"),dse(t,e,n)}function dse(t,e,n,r){let i=typeof e=="string"?rg(e):e,o=hM(i.pathname||"/",n);if(o==null)return null;let s=tU(t);fse(s);let a=null;for(let l=0;a==null&&l<s.length;++l){let c=iU(o);a=Sse(s[l],c)}return a}function tU(t,e,n,r){e===void 0&&(e=[]),n===void 0&&(n=[]),r===void 0&&(r="");let i=(o,s,a)=>{let l={relativePath:a===void 0?o.path||"":a,caseSensitive:o.caseSensitive===!0,childrenIndex:s,route:o};l.relativePath.startsWith("/")&&(ar(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=gu([r,l.relativePath]),u=n.concat(l);o.children&&o.children.length>0&&(ar(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),tU(o.children,e,u,c)),!(o.path==null&&!o.index)&&e.push({path:c,score:bse(c,o.index),routesMeta:u})};return t.forEach((o,s)=>{var a;if(o.path===""||!((a=o.path)!=null&&a.includes("?")))i(o,s);else for(let l of nU(o.path))i(o,s,l)}),e}function nU(t){let e=t.split("/");if(e.length===0)return[];let[n,...r]=e,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=nU(r.join("/")),a=[];return a.push(...s.map(l=>l===""?o:[o,l].join("/"))),i&&a.push(...s),a.map(l=>t.startsWith("/")&&l===""?"/":l)}function fse(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:wse(e.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const hse=/^:[\w-]+$/,pse=3,mse=2,gse=1,yse=10,vse=-2,N6=t=>t==="*";function bse(t,e){let n=t.split("/"),r=n.length;return n.some(N6)&&(r+=vse),e&&(r+=mse),n.filter(i=>!N6(i)).reduce((i,o)=>i+(hse.test(o)?pse:o===""?gse:yse),r)}function wse(t,e){return t.length===e.length&&t.slice(0,-1).every((r,i)=>r===e[i])?t[t.length-1]-e[e.length-1]:0}function Sse(t,e,n){let{routesMeta:r}=t,i={},o="/",s=[];for(let a=0;a<r.length;++a){let l=r[a],c=a===r.length-1,u=o==="/"?e:e.slice(o.length)||"/",d=rU({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},u),f=l.route;if(!d)return null;Object.assign(i,d.params),s.push({params:i,pathname:gu([o,d.pathname]),pathnameBase:Ase(gu([o,d.pathnameBase])),route:f}),d.pathnameBase!=="/"&&(o=gu([o,d.pathnameBase]))}return s}function rU(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,r]=xse(t.path,t.caseSensitive,t.end),i=e.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1);return{params:r.reduce((c,u,d)=>{let{paramName:f,isOptional:h}=u;if(f==="*"){let m=a[d]||"";s=o.slice(0,o.length-m.length).replace(/(.)\/+$/,"$1")}const p=a[d];return h&&!p?c[f]=void 0:c[f]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:o,pathnameBase:s,pattern:t}}function xse(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!0),fM(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let r=[],i="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(r.push({paramName:"*"}),i+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":t!==""&&t!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,e?void 0:"i"),r]}function iU(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return fM(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function hM(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,r=t.charAt(n);return r&&r!=="/"?null:t.slice(n)||"/"}const Ese=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Tse=t=>Ese.test(t);function Cse(t,e){e===void 0&&(e="/");let{pathname:n,search:r="",hash:i=""}=typeof t=="string"?rg(t):t,o;if(n)if(Tse(n))o=n;else{if(n.includes("//")){let s=n;n=n.replace(/\/\/+/g,"/"),fM(!1,"Pathnames cannot have embedded double slashes - normalizing "+(s+" -> "+n))}n.startsWith("/")?o=D6(n.substring(1),"/"):o=D6(n,e)}else o=e;return{pathname:o,search:Ise(r),hash:Rse(i)}}function D6(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function O_(t,e,n,r){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function _se(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function pM(t,e){let n=_se(t);return e?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function mM(t,e,n,r){r===void 0&&(r=!1);let i;typeof t=="string"?i=rg(t):(i=Qy({},t),ar(!i.pathname||!i.pathname.includes("?"),O_("?","pathname","search",i)),ar(!i.pathname||!i.pathname.includes("#"),O_("#","pathname","hash",i)),ar(!i.search||!i.search.includes("#"),O_("#","search","hash",i)));let o=t===""||i.pathname==="",s=o?"/":i.pathname,a;if(s==null)a=n;else{let d=e.length-1;if(!r&&s.startsWith("..")){let f=s.split("/");for(;f[0]==="..";)f.shift(),d-=1;i.pathname=f.join("/")}a=d>=0?e[d]:"/"}let l=Cse(i,a),c=s&&s!=="/"&&s.endsWith("/"),u=(o||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const gu=t=>t.join("/").replace(/\/\/+/g,"/"),Ase=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Ise=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Rse=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;function Mse(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}const oU=["post","put","patch","delete"];new Set(oU);const kse=["get",...oU];new Set(kse);/** 59 * React Router v6.30.3 60 * 61 * Copyright (c) Remix Software Inc. 62 * 63 * This source code is licensed under the MIT license found in the 64 * LICENSE.md file in the root directory of this source tree. 65 * 66 * @license MIT 67 */function Jy(){return Jy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Jy.apply(this,arguments)}const gM=E.createContext(null),Pse=E.createContext(null),Qu=E.createContext(null),tE=E.createContext(null),Qa=E.createContext({outlet:null,matches:[],isDataRoute:!1}),sU=E.createContext(null);function Ose(t,e){let{relative:n}=e===void 0?{}:e;ch()||ar(!1);let{basename:r,navigator:i}=E.useContext(Qu),{hash:o,pathname:s,search:a}=cU(t,{relative:n}),l=s;return r!=="/"&&(l=s==="/"?r:gu([r,s])),i.createHref({pathname:l,search:a,hash:o})}function ch(){return E.useContext(tE)!=null}function uh(){return ch()||ar(!1),E.useContext(tE).location}function oWe(t){ch()||ar(!1);let{pathname:e}=uh();return E.useMemo(()=>rU(t,iU(e)),[e,t])}function aU(t){E.useContext(Qu).static||E.useLayoutEffect(t)}function yM(){let{isDataRoute:t}=E.useContext(Qa);return t?Gse():Nse()}function Nse(){ch()||ar(!1);let t=E.useContext(gM),{basename:e,future:n,navigator:r}=E.useContext(Qu),{matches:i}=E.useContext(Qa),{pathname:o}=uh(),s=JSON.stringify(pM(i,n.v7_relativeSplatPath)),a=E.useRef(!1);return aU(()=>{a.current=!0}),E.useCallback(function(c,u){if(u===void 0&&(u={}),!a.current)return;if(typeof c=="number"){r.go(c);return}let d=mM(c,JSON.parse(s),o,u.relative==="path");t==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:gu([e,d.pathname])),(u.replace?r.replace:r.push)(d,u.state,u)},[e,r,s,o,t])}const lU=E.createContext(null);function sWe(){return E.useContext(lU)}function Dse(t){let e=E.useContext(Qa).outlet;return e&&E.createElement(lU.Provider,{value:t},e)}function aWe(){let{matches:t}=E.useContext(Qa),e=t[t.length-1];return e?e.params:{}}function cU(t,e){let{relative:n}=e===void 0?{}:e,{future:r}=E.useContext(Qu),{matches:i}=E.useContext(Qa),{pathname:o}=uh(),s=JSON.stringify(pM(i,r.v7_relativeSplatPath));return E.useMemo(()=>mM(t,JSON.parse(s),o,n==="path"),[t,s,o,n])}function Lse(t,e){return zse(t,e)}function zse(t,e,n,r){ch()||ar(!1);let{navigator:i}=E.useContext(Qu),{matches:o}=E.useContext(Qa),s=o[o.length-1],a=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let c=uh(),u;if(e){var d;let g=typeof e=="string"?rg(e):e;l==="/"||(d=g.pathname)!=null&&d.startsWith(l)||ar(!1),u=g}else u=c;let f=u.pathname||"/",h=f;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(g.length).join("/")}let p=use(t,{pathname:h}),m=jse(p&&p.map(g=>Object.assign({},g,{params:Object.assign({},a,g.params),pathname:gu([l,i.encodeLocation?i.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:gu([l,i.encodeLocation?i.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),o,n,r);return e&&m?E.createElement(tE.Provider,{value:{location:Jy({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:Jc.Pop}},m):m}function Vse(){let t=Wse(),e=Mse(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application
67Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),n?E.createElement("pre",{style:i},n):null,null)}const Bse=E.createElement(Vse,null);class $se extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?E.createElement(Qa.Provider,{value:this.props.routeContext},E.createElement(sU.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Fse(t){let{routeContext:e,match:n,children:r}=t,i=E.useContext(gM);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(Qa.Provider,{value:e},r)}function jse(t,e,n,r){var i;if(e===void 0&&(e=[]),n===void 0&&(n=null),r===void 0&&(r=null),t==null){var o;if(!n)return null;if(n.errors)t=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let s=t,a=(i=n)==null?void 0:i.errors;if(a!=null){let u=s.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);u>=0||ar(!1),s=s.slice(0,Math.min(s.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<s.length;u++){let d=s[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(c=u),d.route.id){let{loaderData:f,errors:h}=n,p=d.route.loader&&f[d.route.id]===void 0&&(!h||h[d.route.id]===void 0);if(d.route.lazy||p){l=!0,c>=0?s=s.slice(0,c+1):s=[s[0]];break}}}return s.reduceRight((u,d,f)=>{let h,p=!1,m=null,g=null;n&&(h=a&&d.route.id?a[d.route.id]:void 0,m=d.route.errorElement||Bse,l&&(c<0&&f===0?(Kse("route-fallback"),p=!0,g=null):c===f&&(p=!0,g=d.route.hydrateFallbackElement||null)));let y=e.concat(s.slice(0,f+1)),b=()=>{let v;return h?v=m:p?v=g:d.route.Component?v=E.createElement(d.route.Component,null):d.route.element?v=d.route.element:v=u,E.createElement(Fse,{match:d,routeContext:{outlet:u,matches:y,isDataRoute:n!=null},children:v})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?E.createElement($se,{location:n.location,revalidation:n.revalidation,component:m,error:h,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):b()},null)}var uU=function(t){return t.UseBlocker="useBlocker",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t}(uU||{}),dU=function(t){return t.UseBlocker="useBlocker",t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator",t.UseNavigateStable="useNavigate",t.UseRouteId="useRouteId",t}(dU||{});function Hse(t){let e=E.useContext(gM);return e||ar(!1),e}function Use(t){let e=E.useContext(Pse);return e||ar(!1),e}function qse(t){let e=E.useContext(Qa);return e||ar(!1),e}function fU(t){let e=qse(),n=e.matches[e.matches.length-1];return n.route.id||ar(!1),n.route.id}function Wse(){var t;let e=E.useContext(sU),n=Use(),r=fU();return e!==void 0?e:(t=n.errors)==null?void 0:t[r]}function Gse(){let{router:t}=Hse(uU.UseNavigateStable),e=fU(dU.UseNavigateStable),n=E.useRef(!1);return aU(()=>{n.current=!0}),E.useCallback(function(i,o){o===void 0&&(o={}),n.current&&(typeof i=="number"?t.navigate(i):t.navigate(i,Jy({fromRouteId:e},o)))},[t,e])}const L6={};function Kse(t,e,n){L6[t]||(L6[t]=!0)}function Yse(t,e){t==null||t.v7_startTransition,t==null||t.v7_relativeSplatPath}function lWe(t){let{to:e,replace:n,state:r,relative:i}=t;ch()||ar(!1);let{future:o,static:s}=E.useContext(Qu),{matches:a}=E.useContext(Qa),{pathname:l}=uh(),c=yM(),u=mM(e,pM(a,o.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return E.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function cWe(t){return Dse(t.context)}function Xse(t){ar(!1)}function Qse(t){let{basename:e="/",children:n=null,location:r,navigationType:i=Jc.Pop,navigator:o,static:s=!1,future:a}=t;ch()&&ar(!1);let l=e.replace(/^\/*/,"/"),c=E.useMemo(()=>({basename:l,navigator:o,static:s,future:Jy({v7_relativeSplatPath:!1},a)}),[l,a,o,s]);typeof r=="string"&&(r=rg(r));
67let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,m=E.useMemo(()=>{let g=hM(u,l);return g==null?null:{location:{pathname:g,search:d,hash:f,state:h,key:p},navigationType:i}},[l,u,d,f,h,p,i]);return m==null?null:E.createElement(Qu.Provider,{value:c},E.createElement(tE.Provider,{children:n,value:m}))}function uWe(t){let{children:e,location:n}=t;return Lse(C5(e),n)}new Promise(()=>{});function C5(t,e){e===void 0&&(e=[]);let n=[];return E.Children.forEach(t,(r,i)=>{if(!E.isValidElement(r))return;let o=[...e,i];if(r.type===E.Fragment){n.push.apply(n,C5(r.props.children,o));return}r.type!==Xse&&ar(!1),!r.props.index||!r.props.children||ar(!1);let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=C5(r.props.children,o)),n.push(s)}),n}/** 68 * React Router DOM v6.30.3 69 * 70 * Copyright (c) Remix Software Inc. 71 * 72 * This source code is licensed under the MIT license found in the 73 * LICENSE.md file in the root directory of this source tree. 74 * 75 * @license MIT 76 */function _5(){return _5=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_5.apply(this,arguments)}function Jse(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Zse(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function eae(t,e){return t.button===0&&(!e||e==="_self")&&!Zse(t)}function A5(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((e,n)=>{let r=t[n];return e.concat(Array.isArray(r)?r.map(i=>[n,i]):[[n,r]])},[]))}function tae(t,e){let n=A5(t);return e&&e.forEach((r,i)=>{n.has(i)||e.getAll(i).forEach(o=>{n.append(i,o)})}),n}const nae=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],rae="6";try{window.__reactRouterVersion=rae}catch{}const iae="startTransition",z6=Ly[iae];function dWe(t){let{basename:e,children:n,future:r,window:i}=t,o=E.useRef();o.current==null&&(o.current=ase({window:i,v5Compat:!0}));let s=o.current,[a,l]=E.useState({action:s.action,location:s.location}),{v7_startTransition:c}=r||{},u=E.useCallback(d=>{c&&z6?z6(()=>l(d)):l(d)},[l,c]);return E.useLayoutEffect(()=>s.listen(u),[s,u]),E.useEffect(()=>Yse(r),[r]),E.createElement(Qse,{basename:e,children:n,location:a.location,navigationType:a.action,navigator:s,future:r})}const oae=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",sae=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fWe=E.forwardRef(function(e,n){let{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,viewTransition:d}=e,f=Jse(e,nae),{basename:h}=E.useContext(Qu),p,m=!1;if(typeof c=="string"&&sae.test(c)&&(p=c,oae))try{let v=new URL(window.location.href),S=c.startsWith("//")?new URL(v.protocol+c):new URL(c),I=hM(S.pathname,h);S.origin===v.origin&&I!=null?c=I+S.search+S.hash:m=!0}catch{}let g=Ose(c,{relative:i}),y=aae(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,viewTransition:d});function b(v){r&&r(v),v.defaultPrevented||y(v)}return E.createElement("a",_5({},f,{href:p||g,onClick:m||o?r:b,ref:n,target:l}))});var V6;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(V6||(V6={}));var B6;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(B6||(B6={}));function aae(t,e){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,viewTransition:a}=e===void 0?{}:e,l=yM(),c=uh(),u=cU(t,{relative:s});return E.useCallback(d=>
76{if(eae(d,n)){d.preventDefault();let f=r!==void 0?r:aS(c)===aS(u);l(t,{replace:f,state:i,preventScrollReset:o,relative:s,viewTransition:a})}},[c,l,u,r,i,n,t,o,s,a])}function hWe(t){let e=E.useRef(A5(t)),n=E.useRef(!1),r=uh(),i=E.useMemo(()=>tae(r.search,n.current?null:e.current),[r.search]),o=yM(),s=E.useCallback((a,l)=>{const c=A5(typeof a=="function"?a(i):a);n.current=!0,o("?"+c,l)},[o,i]);return[i,s]}const lae=()=>{};var $6={};/** 77 * @license 78 * Copyright 2017 Google LLC 79 * 80 * Licensed under the Apache License, Version 2.0 (the "License"); 81 * you may not use this file except in compliance with the License. 82 * You may obtain a copy of the License at 83 * 84 * http://www.apache.org/licenses/LICENSE-2.0 85 * 86 * Unless required by applicable law or agreed to in writing, software 87 * distributed under the License is distributed on an "AS IS" BASIS, 88 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 89 * See the License for the specific language governing permissions and 90 * limitations under the License. 91 */const hU=function(t){const e=[];let n=0;for(let r=0;r<t.length;r++){let i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=i&63|128):(i&64512)===55296&&r+1<t.length&&(t.charCodeAt(r+1)&64512)===56320?(i=65536+((i&1023)<<10)+(t.charCodeAt(++r)&1023),e[n++]=i>>18|240,e[n++]=i>>12&63|128,e[n++]=i>>6&63|128,e[n++]=i&63|128):(e[n++]=i>>12|224,e[n++]=i>>6&63|128,e[n++]=i&63|128)}return e},cae=function(t){const e=[];let n=0,r=0;for(;n<t.length;){const i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){const o=t[n++];e[r++]=String.fromCharCode((i&31)<<6|o&63)}else if(i>239&&i<365){const o=t[n++],s=t[n++],a=t[n++],l=((i&7)<<18|(o&63)<<12|(s&63)<<6|a&63)-65536;e[r++]=String.fromCharCode(55296+(l>>10)),e[r++]=String.fromCharCode(56320+(l&1023))}else{const o=t[n++],s=t[n++];e[r++]=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}}return e.join("")},pU={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(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let i=0;i<t.length;i+=3){const o=t[i],s=i+1<t.length,a=s?t[i+1]:0,l=i+2<t.length,c=l?t[i+2]:0,u=o>>2,d=(o&3)<<4|a>>4;let f=(a&15)<<2|c>>6,h=c&63;l||(h=64,s||(f=64)),r.push(n[u],n[d],n[f],n[h])}return r.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(hU(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):cae(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let i=0;i<t.length;){const o=n[t.charAt(i++)],a=i<t.length?n[t.charAt(i)]:0;++i;const c=i<t.length?n[t.charAt(i)]:64;++i;const d=i<t.length?n[t.charAt(i)]:64;if(++i,o==null||a==null||c==null||d==null)throw new uae;const f=o<<2|a>>4;if(r.push(f),c!==64){const h=a<<4&240|c>>2;if(r.push(h),d!==64){const p=c<<6&192|d;r.push(p)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};class uae extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const dae=function(t){const e=hU(t);return pU.encodeByteArray(e,!0)},lS=function(t){return dae(t).replace(/\./g,"")},mU=function(t){try{return pU.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 92 * @license 93 * Copyright 2022 Google LLC 94 * 95 * Licensed under the Apache License, Version 2.0 (the "License");
96 * you may not use this file except in compliance with the License. 97 * You may obtain a copy of the License at 98 * 99 * http://www.apache.org/licenses/LICENSE-2.0 100 * 101 * Unless required by applicable law or agreed to in writing, software 102 * distributed under the License is distributed on an "AS IS" BASIS, 103 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 104 * See the License for the specific language governing permissions and 105 * limitations under the License. 106 */function gU(){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.")}/** 107 * @license 108 * Copyright 2022 Google LLC 109 * 110 * Licensed under the Apache License, Version 2.0 (the "License"); 111 * you may not use this file except in compliance with the License. 112 * You may obtain a copy of the License at 113 * 114 * http://www.apache.org/licenses/LICENSE-2.0 115 * 116 * Unless required by applicable law or agreed to in writing, software 117 * distributed under the License is distributed on an "AS IS" BASIS, 118 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 119 * See the License for the specific language governing permissions and 120 * limitations under the License. 121 */const fae=()=>gU().__FIREBASE_DEFAULTS__,hae=()=>{if(typeof process>"u"||typeof $6>"u")return;const t=$6.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},pae=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&mU(t[1]);return e&&JSON.parse(e)},nE=()=>{try{return lae()||fae()||hae()||pae()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},yU=t=>{var e,n;return(n=(e=nE())==null?void 0:e.emulatorHosts)==null?void 0:n[t]},vU=t=>{const e=yU(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const r=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),r]:[e.substring(0,n),r]},bU=()=>{var t;return(t=nE())==null?void 0:t.config},wU=t=>{var e;return(e=nE())==null?void 0:e[`_${t}`]};/** 122 * @license 123 * Copyright 2017 Google LLC 124 * 125 * Licensed under the Apache License, Version 2.0 (the "License"); 126 * you may not use this file except in compliance with the License. 127 * You may obtain a copy of the License at 128 * 129 * http://www.apache.org/licenses/LICENSE-2.0 130 * 131 * Unless required by applicable law or agreed to in writing, software 132 * distributed under the License is distributed on an "AS IS" BASIS, 133 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 134 * See the License for the specific language governing permissions and 135 * limitations under the License. 136 */class mae{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,r)=>{n?this.reject(n):this.resolve(r),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,r))}}}/** 137 * @license 138 * Copyright 2025 Google LLC 139 * 140 * Licensed under the Apache License, Version 2.0 (the "License"); 141 * you may not use this file except in compliance with the License. 142 * You may obtain a copy of the License at 143 * 144 * http://www.apache.org/licenses/LICENSE-2.0 145 * 146 * Unless required by applicable law or agreed to in writing, software 147 * distributed under the License is distributed on an "AS IS" BASIS, 148 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 149 * See the License for the specific language governing permissions and 150 * limitations under the License. 151 */function Zs(t){try{return(t.startsWith("http://")||t.startsWith("https://")?new URL(t).hostname:t).endsWith(".cloudworkstations.dev")}catch{return!1}}async function mv(t){return(await fetch(t,{credentials:"include"})).ok}/** 152 * @license 153 * Copyright 2021 Google LLC 154 * 155 * Licensed under the Apache License, Version 2.0 (the "License"); 156 * you may not use this file except in compliance with the License. 157 * You may obtain a copy of the License at 158 * 159 * http://www.apache.org/licenses/LICENSE-2.0 160 * 161 * Unless required by applicable law or agreed to in writing, softw
161are 162 * distributed under the License is distributed on an "AS IS" BASIS, 163 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 164 * See the License for the specific language governing permissions and 165 * limitations under the License. 166 */function SU(t,e){if(t.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=e||"demo-project",i=t.iat||0,o=t.sub||t.user_id;if(!o)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const s={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:{}},...t};return[lS(JSON.stringify(n)),lS(JSON.stringify(s)),""].join(".")}const ty={};function gae(){const t={prod:[],emulator:[]};for(const e of Object.keys(ty))ty[e]?t.emulator.push(e):t.prod.push(e);return t}function yae(t){let e=document.getElementById(t),n=!1;return e||(e=document.createElement("div"),e.setAttribute("id",t),n=!0),{created:n,element:e}}let F6=!1;function rE(t,e){if(typeof window>"u"||typeof document>"u"||!Zs(window.location.host)||ty[t]===e||ty[t]||F6)return;ty[t]=e;function n(f){return`__firebase__banner__${f}`}const r="__firebase__banner",o=gae().prod.length>0;function s(){const f=document.getElementById(r);f&&f.remove()}function a(f){f.style.display="flex",f.style.background="#7faaf0",f.style.position="fixed",f.style.bottom="5px",f.style.left="5px",f.style.padding=".5em",f.style.borderRadius="5px",f.style.alignItems="center"}function l(f,h){f.setAttribute("width","24"),f.setAttribute("id",h),f.setAttribute("height","24"),f.setAttribute("viewBox","0 0 24 24"),f.setAttribute("fill","none"),f.style.marginLeft="-6px"}function c(){const f=document.createElement("span");return f.style.cursor="pointer",f.style.marginLeft="16px",f.style.fontSize="24px",f.innerHTML=" ×",f.onclick=()=>{F6=!0,s()},f}function u(f,h){f.setAttribute("id",h),f.innerText="Learn more",f.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",f.setAttribute("target","__blank"),f.style.paddingLeft="5px",f.style.textDecoration="underline"}function d(){const f=yae(r),h=n("text"),p=document.getElementById(h)||document.createElement("span"),m=n("learnmore"),g=document.getElementById(m)||document.createElement("a"),y=n("preprendIcon"),b=document.getElementById(y)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(f.created){const v=f.element;a(v),u(g,m);const S=c();l(b,y),v.append(b,p,g,S),document.body.appendChild(v)}o?(p.innerText="Preview backend disconnected.",b.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 167<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 168</g> 169<defs> 170<clipPath id="clip0_6013_33858"> 171<rect width="24" height="24" fill="white"/> 172</clipPath> 173</defs>`):(b.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 174<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 175</g> 176<defs> 177<clipPath id="clip0_6083_34804"> 178<rect width="24" height="24" fill="white"/> 179</clipPath> 180</defs>`,p.innerText="Preview backend running in this workspace."),p.setAttribute("id",h)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",d):d()}/** 181 * @license 182 * Copyright 2017 Google LLC 183 * 184 * Licensed under the Apache License, Version 2.0 (the "License");
185 * you may not use this file except in compliance with the License. 186 * You may obtain a copy of the License at 187 * 188 * http://www.apache.org/licenses/LICENSE-2.0 189 * 190 * Unless required by applicable law or agreed to in writing, software 191 * distributed under the License is distributed on an "AS IS" BASIS, 192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 193 * See the License for the specific language governing permissions and 194 * limitations under the License. 195 */function Lr(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function vae(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Lr())}function xU(){var e;const t=(e=nE())==null?void 0:e.forceEnvironment;if(t==="node")return!0;if(t==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function bae(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function wae(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function Sae(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function xae(){const t=Lr();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function EU(){return!xU()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function TU(){return!xU()&&!!navigator.userAgent&&(navigator.userAgent.includes("Safari")||navigator.userAgent.includes("WebKit"))&&!navigator.userAgent.includes("Chrome")}function CU(){try{return typeof indexedDB=="object"}catch{return!1}}function Eae(){return new Promise((t,e)=>{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),t(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var o;e(((o=i.error)==null?void 0:o.message)||"")}}catch(n){e(n)}})}/** 196 * @license 197 * Copyright 2017 Google LLC 198 * 199 * Licensed under the Apache License, Version 2.0 (the "License"); 200 * you may not use this file except in compliance with the License. 201 * You may obtain a copy of the License at 202 * 203 * http://www.apache.org/licenses/LICENSE-2.0 204 * 205 * Unless required by applicable law or agreed to in writing, software 206 * distributed under the License is distributed on an "AS IS" BASIS, 207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 208 * See the License for the specific language governing permissions and 209 * limitations under the License. 210 */const Tae="FirebaseError";
vendor: 4,100 bytes, lines 210-235
210class ea extends Error{constructor(e,n,r){super(n),this.code=e,this.customData=r,this.name=Tae,Object.setPrototypeOf(this,ea.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,gv.prototype.create)}}class gv{constructor(e,n,r){this.service=e,this.serviceName=n,this.errors=r}create(e,...n){const r=n[0]||{},i=`${this.service}/${e}`,o=this.errors[e],s=o?Cae(o,r):"Error",a=`${this.serviceName}: ${s} (${i}).`;return new ea(i,a,r)}}function Cae(t,e){return t.replace(_ae,(n,r)=>{const i=e[r];return i!=null?String(i):`<${r}?>`})}const _ae=/\{\$([^}]+)}/g;function Aae(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function Va(t,e){if(t===e)return!0;const n=Object.keys(t),r=Object.keys(e);for(const i of n){if(!r.includes(i))return!1;const o=t[i],s=e[i];if(j6(o)&&j6(s)){if(!Va(o,s))return!1}else if(o!==s)return!1}for(const i of r)if(!n.includes(i))return!1;return!0}function j6(t){return t!==null&&typeof t=="object"}/** 211 * @license 212 * Copyright 2017 Google LLC 213 * 214 * Licensed under the Apache License, Version 2.0 (the "License"); 215 * you may not use this file except in compliance with the License. 216 * You may obtain a copy of the License at 217 * 218 * http://www.apache.org/licenses/LICENSE-2.0 219 * 220 * Unless required by applicable law or agreed to in writing, software 221 * distributed under the License is distributed on an "AS IS" BASIS, 222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 223 * See the License for the specific language governing permissions and 224 * limitations under the License. 225 */function ig(t){const e=[];for(const[n,r]of Object.entries(t))Array.isArray(r)?r.forEach(i=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(r));return e.length?"&"+e.join("&"):""}function w1(t){const e={};return t.replace(/^\?/,"").split("&").forEach(r=>{if(r){const[i,o]=r.split("=");e[decodeURIComponent(i)]=decodeURIComponent(o)}}),e}function S1(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function Iae(t,e){const n=new Rae(t,e);return n.subscribe.bind(n)}class Rae{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(r=>{this.error(r)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,r){let i;if(e===void 0&&n===void 0&&r===void 0)throw new Error("Missing Observer.");Mae(e,["next","error","complete"])?i=e:i={next:e,error:n,complete:r},i.next===void 0&&(i.next=N_),i.error===void 0&&(i.error=N_),i.complete===void 0&&(i.complete=N_);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),o}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(r){typeof console<"u"&&console.error&&console.error(r)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Mae(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function N_(){}/** 226 * @license 227 * Copyright 2021 Google LLC 228 * 229 * Licensed under the Apache License, Version 2.0 (the "License"); 230 * you may not use this file except in compliance with the License. 231 * You may obtain a copy of the License at 232 * 233 * http://www.apache.org/licenses/LICENSE-2.0 234 * 235 * Unless required by applicable law or agreed to in writing, softw
235are 236 * distributed under the License is distributed on an "AS IS" BASIS, 237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 238 * See the License for the specific language governing permissions and 239 * limitations under the License. 240 */function Ze(t){return t&&t._delegate?t._delegate:t}class Xl{constructor(e,n,r){this.name=e,this.instanceFactory=n,this.type=r,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 241 * @license 242 * Copyright 2019 Google LLC 243 * 244 * Licensed under the Apache License, Version 2.0 (the "License"); 245 * you may not use this file except in compliance with the License. 246 * You may obtain a copy of the License at 247 * 248 * http://www.apache.org/licenses/LICENSE-2.0 249 * 250 * Unless required by applicable law or agreed to in writing, software 251 * distributed under the License is distributed on an "AS IS" BASIS, 252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 253 * See the License for the specific language governing permissions and 254 * limitations under the License. 255 */const Pd="[DEFAULT]";/** 256 * @license 257 * Copyright 2019 Google LLC 258 * 259 * Licensed under the Apache License, Version 2.0 (the "License"); 260 * you may not use this file except in compliance with the License. 261 * You may obtain a copy of the License at 262 * 263 * http://www.apache.org/licenses/LICENSE-2.0 264 * 265 * Unless required by applicable law or agreed to in writing, software 266 * distributed under the License is distributed on an "AS IS" BASIS, 267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 268 * See the License for the specific language governing permissions and 269 * limitations under the License. 270 */let kae=class{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const r=new mae;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(e){const n=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),r=(e==null?void 0:e.optional)??!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}else{if(r)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(Oae(e))try{this.getOrInitializeService({instanceIdentifier:Pd})}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(e=Pd){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Pd){return this.instances.has(e)}getOptions(e=Pd){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,r=this.normalizeInstanceIdentifier(e.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(e,n){const r=this.normalizeInstanceIdentifier(n),i=this.onInitCallbacks.get(r)??new Set;i.add(e),this.onInitCallbacks.set(r,i);const o=this.instances.get(r);return o&&e(o,r),()=>{i.delete(e)}}invokeOnInitCallbacks(e,n){const r=this.onInitCallbacks.get(n);if(r)for(const i of r)try{i(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let r=this.instances.get(e);if(!r&&this.component&&(r=this.component.instanceFactory(this.container,{instanceIdentifier:Pae(e),options:n}),this.instances.set(e,r),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(r,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,r)}catch{}return r||null}normalizeInstanceIdentifier(e=Pd){return this.component?this.component.multipleInstances?e:Pd:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function Pae(t){return t===Pd?void 0:t}function Oae(t){return t.instantiationMode==="EAGER"}/** 271 * @license 272 * Copyright 2019 Google LLC 273 * 274 * Licensed under the Apache License, Version 2.0 (the "License");
275 * you may not use this file except in compliance with the License. 276 * You may obtain a copy of the License at 277 * 278 * http://www.apache.org/licenses/LICENSE-2.0 279 * 280 * Unless required by applicable law or agreed to in writing, software 281 * distributed under the License is distributed on an "AS IS" BASIS, 282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 283 * See the License for the specific language governing permissions and 284 * limitations under the License. 285 */class Nae{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new kae(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 286 * @license 287 * Copyright 2017 Google LLC 288 * 289 * Licensed under the Apache License, Version 2.0 (the "License"); 290 * you may not use this file except in compliance with the License. 291 * You may obtain a copy of the License at 292 * 293 * http://www.apache.org/licenses/LICENSE-2.0 294 * 295 * Unless required by applicable law or agreed to in writing, software 296 * distributed under the License is distributed on an "AS IS" BASIS, 297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 298 * See the License for the specific language governing permissions and 299 * limitations under the License. 300 */var Lt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Lt||(Lt={}));const Dae={debug:Lt.DEBUG,verbose:Lt.VERBOSE,info:Lt.INFO,warn:Lt.WARN,error:Lt.ERROR,silent:Lt.SILENT},Lae=Lt.INFO,zae={[Lt.DEBUG]:"log",[Lt.VERBOSE]:"log",[Lt.INFO]:"info",[Lt.WARN]:"warn",[Lt.ERROR]:"error"},Vae=(t,e,...n)=>{if(e<t.logLevel)return;const r=new Date().toISOString(),i=zae[e];if(i)console[i](`[${r}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class vM{constructor(e){this.name=e,this._logLevel=Lae,this._logHandler=Vae,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Lt))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?Dae[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Lt.DEBUG,...e),this._logHandler(this,Lt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Lt.VERBOSE,...e),this._logHandler(this,Lt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Lt.INFO,...e),this._logHandler(this,Lt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Lt.WARN,...e),this._logHandler(this,Lt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Lt.ERROR,...e),this._logHandler(this,Lt.ERROR,...e)}}const Bae=(t,e)=>e.some(n=>t instanceof n);let H6,U6;function $ae(){return H6||(H6=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function Fae(){return U6||(U6=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const _U=new WeakMap,I5=new WeakMap,AU=new WeakMap,D_=new WeakMap,bM=new WeakMap;function jae(t){const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("success",o),t.removeEventListener("error",s)},o=()=>{n(yu(t.result)),i()},s=()=>{r(t.error),i()};t.addEventListener("success",o),t.addEventListener("error",s)});return e.then(n=>{n instanceof IDBCursor&&_U.set(n,t)}).catch(()=>{}),bM.set(e,t),e}function Hae(t){if(I5.has(t))return;const e=new Promise((n,r)=>{const i=()=>{t.removeEventListener("complete",o),t.removeEventListener("error",s),t.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(t.error||new DOMException("AbortError","AbortError")),i()};t.addEventListener("complete",o),t.addEventListener("error",s),t.addEventListener("abort",s)});I5.set(t,e)}let R5={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return I5.get(t);if(e==="objectStoreNames")return t.objectStoreNames||AU.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return yu(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function Uae(t){R5=t(R5)}function qae(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const r=t.call(L_(this),e,...n);return AU.set(r,e.sort?e.sort():[e]),yu(r)}
vendor: 4,167 bytes, lines 300-340
300:Fae().includes(t)?function(...e){return t.apply(L_(this),e),yu(_U.get(this))}:function(...e){return yu(t.apply(L_(this),e))}}function Wae(t){return typeof t=="function"?qae(t):(t instanceof IDBTransaction&&Hae(t),Bae(t,$ae())?new Proxy(t,R5):t)}function yu(t){if(t instanceof IDBRequest)return jae(t);if(D_.has(t))return D_.get(t);const e=Wae(t);return e!==t&&(D_.set(t,e),bM.set(e,t)),e}const L_=t=>bM.get(t);function Gae(t,e,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(t,e),a=yu(s);return r&&s.addEventListener("upgradeneeded",l=>{r(yu(s.result),l.oldVersion,l.newVersion,yu(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",c=>i(c.oldVersion,c.newVersion,c))}).catch(()=>{}),a}const Kae=["get","getKey","getAll","getAllKeys","count"],Yae=["put","add","delete","clear"],z_=new Map;function q6(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(z_.get(e))return z_.get(e);const n=e.replace(/FromIndex$/,""),r=e!==n,i=Yae.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||Kae.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let c=l.store;return r&&(c=c.index(a.shift())),(await Promise.all([c[n](...a),i&&l.done]))[0]};return z_.set(e,o),o}Uae(t=>({...t,get:(e,n,r)=>q6(e,n)||t.get(e,n,r),has:(e,n)=>!!q6(e,n)||t.has(e,n)}));/** 301 * @license 302 * Copyright 2019 Google LLC 303 * 304 * Licensed under the Apache License, Version 2.0 (the "License"); 305 * you may not use this file except in compliance with the License. 306 * You may obtain a copy of the License at 307 * 308 * http://www.apache.org/licenses/LICENSE-2.0 309 * 310 * Unless required by applicable law or agreed to in writing, software 311 * distributed under the License is distributed on an "AS IS" BASIS, 312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 313 * See the License for the specific language governing permissions and 314 * limitations under the License. 315 */class Xae{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(Qae(n)){const r=n.getImmediate();return`${r.library}/${r.version}`}else return null}).filter(n=>n).join(" ")}}function Qae(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const M5="@firebase/app",W6="0.14.9";/** 316 * @license 317 * Copyright 2019 Google LLC 318 * 319 * Licensed under the Apache License, Version 2.0 (the "License"); 320 * you may not use this file except in compliance with the License. 321 * You may obtain a copy of the License at 322 * 323 * http://www.apache.org/licenses/LICENSE-2.0 324 * 325 * Unless required by applicable law or agreed to in writing, software 326 * distributed under the License is distributed on an "AS IS" BASIS, 327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 328 * See the License for the specific language governing permissions and 329 * limitations under the License. 330 */const Ql=new vM("@firebase/app"),Jae="@firebase/app-compat",Zae="@firebase/analytics-compat",ele="@firebase/analytics",tle="@firebase/app-check-compat",nle="@firebase/app-check",rle="@firebase/auth",ile="@firebase/auth-compat",ole="@firebase/database",sle="@firebase/data-connect",ale="@firebase/database-compat",lle="@firebase/functions",cle="@firebase/functions-compat",ule="@firebase/installations",dle="@firebase/installations-compat",fle="@firebase/messaging",hle="@firebase/messaging-compat",ple="@firebase/performance",mle="@firebase/performance-compat",gle="@firebase/remote-config",yle="@firebase/remote-config-compat",vle="@firebase/storage",ble="@firebase/storage-compat",wle="@firebase/firestore",Sle="@firebase/ai",xle="@firebase/firestore-compat",Ele="firebase",Tle="12.10.0";/** 331 * @license 332 * Copyright 2019 Google LLC 333 * 334 * Licensed under the Apache License, Version 2.0 (the "License"); 335 * you may not use this file except in compliance with the License. 336 * You may obtain a copy of the License at 337 * 338 * http://www.apache.org/licenses/LICENSE-2.0 339 * 340 * Unless required by applicable law or agreed to in writing, softw
340are 341 * distributed under the License is distributed on an "AS IS" BASIS, 342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 343 * See the License for the specific language governing permissions and 344 * limitations under the License. 345 */const k5="[DEFAULT]",Cle={[M5]:"fire-core",[Jae]:"fire-core-compat",[ele]:"fire-analytics",[Zae]:"fire-analytics-compat",[nle]:"fire-app-check",[tle]:"fire-app-check-compat",[rle]:"fire-auth",[ile]:"fire-auth-compat",[ole]:"fire-rtdb",[sle]:"fire-data-connect",[ale]:"fire-rtdb-compat",[lle]:"fire-fn",[cle]:"fire-fn-compat",[ule]:"fire-iid",[dle]:"fire-iid-compat",[fle]:"fire-fcm",[hle]:"fire-fcm-compat",[ple]:"fire-perf",[mle]:"fire-perf-compat",[gle]:"fire-rc",[yle]:"fire-rc-compat",[vle]:"fire-gcs",[ble]:"fire-gcs-compat",[wle]:"fire-fst",[xle]:"fire-fst-compat",[Sle]:"fire-vertex","fire-js":"fire-js",[Ele]:"fire-js-all"};/** 346 * @license 347 * Copyright 2019 Google LLC 348 * 349 * Licensed under the Apache License, Version 2.0 (the "License"); 350 * you may not use this file except in compliance with the License. 351 * You may obtain a copy of the License at 352 * 353 * http://www.apache.org/licenses/LICENSE-2.0 354 * 355 * Unless required by applicable law or agreed to in writing, software 356 * distributed under the License is distributed on an "AS IS" BASIS, 357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 358 * See the License for the specific language governing permissions and 359 * limitations under the License. 360 */const cS=new Map,_le=new Map,P5=new Map;function G6(t,e){try{t.container.addComponent(e)}catch(n){Ql.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function zu(t){const e=t.name;if(P5.has(e))return Ql.debug(`There were multiple attempts to register component ${e}.`),!1;P5.set(e,t);for(const n of cS.values())G6(n,t);for(const n of _le.values())G6(n,t);return!0}function yv(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function On(t){return t==null?!1:t.settings!==void 0}/** 361 * @license 362 * Copyright 2019 Google LLC 363 * 364 * Licensed under the Apache License, Version 2.0 (the "License"); 365 * you may not use this file except in compliance with the License. 366 * You may obtain a copy of the License at 367 * 368 * http://www.apache.org/licenses/LICENSE-2.0 369 * 370 * Unless required by applicable law or agreed to in writing, software 371 * distributed under the License is distributed on an "AS IS" BASIS, 372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 373 * See the License for the specific language governing permissions and 374 * limitations under the License. 375 */const Ale={"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
375d-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."},vu=new gv("app","Firebase",Ale);/** 376 * @license 377 * Copyright 2019 Google LLC 378 * 379 * Licensed under the Apache License, Version 2.0 (the "License"); 380 * you may not use this file except in compliance with the License. 381 * You may obtain a copy of the License at 382 * 383 * http://www.apache.org/licenses/LICENSE-2.0 384 * 385 * Unless required by applicable law or agreed to in writing, software 386 * distributed under the License is distributed on an "AS IS" BASIS, 387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 388 * See the License for the specific language governing permissions and 389 * limitations under the License. 390 */class Ile{constructor(e,n,r){this._isDeleted=!1,this._options={...e},this._config={...n},this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=r,this.container.addComponent(new Xl("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw vu.create("app-deleted",{appName:this._name})}}/** 391 * @license 392 * Copyright 2019 Google LLC 393 * 394 * Licensed under the Apache License, Version 2.0 (the "License"); 395 * you may not use this file except in compliance with the License. 396 * You may obtain a copy of the License at 397 * 398 * http://www.apache.org/licenses/LICENSE-2.0 399 * 400 * Unless required by applicable law or agreed to in writing, software 401 * distributed under the License is distributed on an "AS IS" BASIS, 402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 403 * See the License for the specific language governing permissions and 404 * limitations under the License. 405 */const dh=Tle;function Rle(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const r={name:k5,automaticDataCollectionEnabled:!0,...e},i=r.name;if(typeof i!="string"||!i)throw vu.create("bad-app-name",{appName:String(i)});if(n||(n=bU()),!n)throw vu.create("no-options");const o=cS.get(i);if(o){if(Va(n,o.options)&&Va(r,o.config))return o;throw vu.create("duplicate-app",{appName:i})}const s=new Nae(i);for(const l of P5.values())s.addComponent(l);const a=new Ile(n,r,s);return cS.set(i,a),a}function wM(t=k5){const e=cS.get(t);if(!e&&t===k5&&bU())return Rle();if(!e)throw vu.create("no-app",{appName:t});return e}function fs(t,e,n){let r=Cle[t]??t;n&&(r+=`-${n}`);const i=r.match(/\s|\//),o=e.match(/\s|\//);if(i||o){const s=[`Unable to register library "${r}" with version "${e}":`];i&&s.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&o&&s.push("and"),o&&s.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Ql.warn(s.join(" "));return}zu(new Xl(`${r}-version`,()=>({library:r,version:e}),"VERSION"))}/** 406 * @license 407 * Copyright 2021 Google LLC 408 * 409 * Licensed under the Apache License, Version 2.0 (the "License"); 410 * you may not use this file except in compliance with the License. 411 * You may obtain a copy of the License at 412 * 413 * http://www.apache.org/licenses/LICENSE-2.0 414 * 415 * Unless required by applicable law or agreed to in writing, softw
415are 416 * distributed under the License is distributed on an "AS IS" BASIS, 417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 418 * See the License for the specific language governing permissions and 419 * limitations under the License. 420 */const Mle="firebase-heartbeat-database",kle=1,Zy="firebase-heartbeat-store";let V_=null;function IU(){return V_||(V_=Gae(Mle,kle,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(Zy)}catch(n){console.warn(n)}}}}).catch(t=>{throw vu.create("idb-open",{originalErrorMessage:t.message})})),V_}async function Ple(t){try{const n=(await IU()).transaction(Zy),r=await n.objectStore(Zy).get(RU(t));return await n.done,r}catch(e){if(e instanceof ea)Ql.warn(e.message);else{const n=vu.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Ql.warn(n.message)}}}async function K6(t,e){try{const r=(await IU()).transaction(Zy,"readwrite");await r.objectStore(Zy).put(e,RU(t)),await r.done}catch(n){if(n instanceof ea)Ql.warn(n.message);else{const r=vu.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Ql.warn(r.message)}}}function RU(t){return`${t.name}!${t.options.appId}`}/** 421 * @license 422 * Copyright 2021 Google LLC 423 * 424 * Licensed under the Apache License, Version 2.0 (the "License"); 425 * you may not use this file except in compliance with the License. 426 * You may obtain a copy of the License at 427 * 428 * http://www.apache.org/licenses/LICENSE-2.0 429 * 430 * Unless required by applicable law or agreed to in writing, software 431 * distributed under the License is distributed on an "AS IS" BASIS, 432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 433 * See the License for the specific language governing permissions and 434 * limitations under the License. 435 */const Ole=1024,Nle=30;class Dle{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new zle(n),this._heartbeatsCachePromise=this._storage.read().then(r=>(this._heartbeatsCache=r,r))}async triggerHeartbeat(){var e,n;try{const i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=Y6();if(((e=this._heartbeatsCache)==null?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)==null?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(s=>s.date===o))return;if(this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats.length>Nle){const s=Vle(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(r){Ql.warn(r)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)==null?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=Y6(),{heartbeatsToSend:r,unsentEntries:i}=Lle(this._heartbeatsCache.heartbeats),o=lS(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 Ql.warn(n),""}}}function Y6(){return new Date().toISOString().substring(0,10)}function Lle(t,e=Ole){const n=[];let r=t.slice();for(const i of t){const o=n.find(s=>s.agent===i.agent);if(o){if(o.dates.push(i.date),X6(n)>e){o.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),X6(n)>e){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}class zle{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return CU()?Eae().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await Ple(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return K6(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){if(await this._canUseIndexedDBPromise){const r=await this.read();return K6(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??r.lastSentHeartbeatDate,heartbeats:[...r.heartbeats,...e.heartbeats]})}else return}}function X6(t){return lS(JSON.stringify({version:2,heartbeats:t})).length}function Vle(t){if(t.length===0)return-1;let e=0,n=t[0].date;for(let r=1;r<t.length;r++)t[r].date<n&&(n=t[r].date,e=r);return e}/** 436 * @license 437 * Copyright 2019 Google LLC 438 * 439 * Licensed under the Apache License, Version 2.0 (the "License");
440 * you may not use this file except in compliance with the License. 441 * You may obtain a copy of the License at 442 * 443 * http://www.apache.org/licenses/LICENSE-2.0 444 * 445 * Unless required by applicable law or agreed to in writing, software 446 * distributed under the License is distributed on an "AS IS" BASIS, 447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 448 * See the License for the specific language governing permissions and 449 * limitations under the License. 450 */function Ble(t){zu(new Xl("platform-logger",e=>new Xae(e),"PRIVATE")),zu(new Xl("heartbeat",e=>new Dle(e),"PRIVATE")),fs(M5,W6,t),fs(M5,W6,"esm2020"),fs("fire-js","")}Ble("");/** 451 * @license 452 * Copyright 2021 Google LLC 453 * 454 * Licensed under the Apache License, Version 2.0 (the "License"); 455 * you may not use this file except in compliance with the License. 456 * You may obtain a copy of the License at 457 * 458 * http://www.apache.org/licenses/LICENSE-2.0 459 * 460 * Unless required by applicable law or agreed to in writing, software 461 * distributed under the License is distributed on an "AS IS" BASIS, 462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 463 * See the License for the specific language governing permissions and 464 * limitations under the License. 465 */const $le={PHONE:"phone",TOTP:"totp"},Fle={FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PASSWORD:"password",PHONE:"phone",TWITTER:"twitter.com"},jle={EMAIL_LINK:"emailLink",EMAIL_PASSWORD:"password",FACEBOOK:"facebook.com",GITHUB:"github.com",GOOGLE:"google.com",PHONE:"phone",TWITTER:"twitter.com"},Hle={LINK:"link",REAUTHENTICATE:"reauthenticate",SIGN_IN:"signIn"},Ule={EMAIL_SIGNIN:"EMAIL_SIGNIN",PASSWORD_RESET:"PASSWORD_RESET",RECOVER_EMAIL:"RECOVER_EMAIL",REVERT_SECOND_FACTOR_ADDITION:"REVERT_SECOND_FACTOR_ADDITION",VERIFY_AND_CHANGE_EMAIL:"VERIFY_AND_CHANGE_EMAIL",VERIFY_EMAIL:"VERIFY_EMAIL"};/** 466 * @license 467 * Copyright 2020 Google LLC 468 * 469 * Licensed under the Apache License, Version 2.0 (the "License"); 470 * you may not use this file except in compliance with the License. 471 * You may obtain a copy of the License at 472 * 473 * http://www.apache.org/licenses/LICENSE-2.0 474 * 475 * Unless required by applicable law or agreed to in writing, software 476 * distributed under the License is distributed on an "AS IS" BASIS, 477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 478 * See the License for the specific language governing permissions and 479 * limitations under the License. 480 */function qle
vendor: 12,061 bytes, line 480
480(){return{"admin-restricted-operation":"This operation is restricted to administrators only.","argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-change-needs-verification":"Multi-factor users must always have a verified email.","email-already-in-use":"The email address is already in use by another account.","emulator-config-failed":'Auth instance has already been used to make a network call. Auth can no longer be configured to use the emulator. Try calling "connectAuthEmulator()" sooner.',"expired-action-code":"The action code has expired.","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal AuthError has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registered for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal AuthError has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure to use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-dynamic-link-domain":"The provided dynamic link domain is not configured or authorized for the current project.","invalid-email":"The email address is badly formatted.","invalid-emulator-scheme":"Emulator URL must start with a valid scheme (http:// or https://).","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is incorrect, malformed or has expired.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-multi-factor-session":"The request does not contain a valid proof of first factor successful sign-in.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-provider-id":"The specified provider ID is invalid.","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","invalid-tenant-id":"The Auth instance's tenant ID is invalid.","login-blocked":"Login blocked by user-provided method: {$originalMessage}","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal AuthError has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-or-invalid-nonce":"The request does not contain a valid nonce. This can occur if the SHA-256 hash of the provided raw nonce does not match the hashed nonce in the ID token payload.","missing-password":"A non-empty password must be provided","missing-multi-factor-info":"No second factor identifier is provided.","missing-multi-factor-session":"The request is missing proof of first factor successful sign-in.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","multi-factor-info-not-found":"The user does not have a second factor matching the identifier provided.","multi-factor-auth-required":"Proof of ownership of a second factor is required to complete sign-in.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal AuthError has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.","rejected-credential":"The request contains malformed or mismatching credentials.","second-factor-already-in-use":"The second factor is already enrolled on this account.","maximum-second-factor-count-exceeded":"The maximum allowed number of second factors on a user has been exceeded.","tenant-id-mismatch":"The provided tenant ID does not match the Auth instance's tenant ID",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-first-factor":"Enrolling a second factor or signing in with a multi-factor account requires sign-in with a supported first factor.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","unsupported-tenant-operation":"This operation is not supported in a multi-tenant context.","unverified-email":"The operation requires a verified email.","user-cancelled":"The user did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled.","already-initialized":"initializeAuth() has already been called with different options. To avoid this error, call initializeAuth() with the same options as when it was originally called, or call getAuth() to return the already initialized instance.","missing-recaptcha-token":"The reCAPTCHA token is missing when sending request to the backend.","invalid-recaptcha-token":"The reCAPTCHA token is invalid when sending request to the backend.","invalid-recaptcha-action":"The reCAPTCHA action is invalid when sending request to the backend.","recaptcha-not-enabled":"reCAPTCHA Enterprise integration is not enabled for this project.","missing-client-type":"The reCAPTCHA client type is missing when sending request to the backend.","missing-recaptcha-version":"The reCAPTCHA version is missing when sending request to the backend.","invalid-req-type":"Invalid request parameters.","invalid-recaptcha-version":"The reCAPTCHA version is invalid when sending request to the backend.","unsupported-password-policy-schema-version":"The password policy received from the backend uses a schema version that is not supported by this version of the Firebase SDK.","password-does-not-meet-requirements":"The password does not meet the requirements.","invalid-hosting-link-domain":"The provided Hosting link domain is not configured in Firebase Hosting or is not owned by the current project. This cannot be a default Hosting domain (`web.app` or `firebaseapp.com`)."}}
480function MU(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const Wle=qle,kU=MU,PU=new gv("auth","Firebase",MU()),Gle={ADMIN_ONLY_OPERATION:"auth/admin-restricted-operation",ARGUMENT_ERROR:"auth/argument-error",APP_NOT_AUTHORIZED:"auth/app-not-authorized",APP_NOT_INSTALLED:"auth/app-not-installed",CAPTCHA_CHECK_FAILED:"auth/captcha-check-failed",CODE_EXPIRED:"auth/code-expired",CORDOVA_NOT_READY:"auth/cordova-not-ready",CORS_UNSUPPORTED:"auth/cors-unsupported",CREDENTIAL_ALREADY_IN_USE:"auth/credential-already-in-use",CREDENTIAL_MISMATCH:"auth/custom-token-mismatch",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"auth/requires-recent-login",DEPENDENT_SDK_INIT_BEFORE_AUTH:"auth/dependent-sdk-initialized-before-auth",DYNAMIC_LINK_NOT_ACTIVATED:"auth/dynamic-link-not-activated",EMAIL_CHANGE_NEEDS_VERIFICATION:"auth/email-change-needs-verification",EMAIL_EXISTS:"auth/email-already-in-use",EMULATOR_CONFIG_FAILED:"auth/emulator-config-failed",EXPIRED_OOB_CODE:"auth/expired-action-code",EXPIRED_POPUP_REQUEST:"auth/cancelled-popup-request",INTERNAL_ERROR:"auth/internal-error",INVALID_API_KEY:"auth/invalid-api-key",INVALID_APP_CREDENTIAL:"auth/invalid-app-credential",INVALID_APP_ID:"auth/invalid-app-id",INVALID_AUTH:"auth/invalid-user-token",INVALID_AUTH_EVENT:"auth/invalid-auth-event",INVALID_CERT_HASH:"auth/invalid-cert-hash",INVALID_CODE:"auth/invalid-verification-code",INVALID_CONTINUE_URI:"auth/invalid-continue-uri",INVALID_CORDOVA_CONFIGURATION:"auth/invalid-cordova-configuration",INVALID_CUSTOM_TOKEN:"auth/invalid-custom-token",INVALID_DYNAMIC_LINK_DOMAIN:"auth/invalid-dynamic-link-domain",INVALID_EMAIL:"auth/invalid-email",INVALID_EMULATOR_SCHEME:"auth/invalid-emulator-scheme",INVALID_IDP_RESPONSE:"auth/invalid-credential",INVALID_LOGIN_CREDENTIALS:"auth/invalid-credential",INVALID_MESSAGE_PAYLOAD:"auth/invalid-message-payload",INVALID_MFA_SESSION:"auth/invalid-multi-factor-session",INVALID_OAUTH_CLIENT_ID:"auth/invalid-oauth-client-id",INVALID_OAUTH_PROVIDER:"auth/invalid-oauth-provider",INVALID_OOB_CODE:"auth/invalid-action-code",INVALID_ORIGIN:"auth/unauthorized-domain",INVALID_PASSWORD:"auth/wrong-password",INVALID_PERSISTENCE:"auth/invalid-persistence-type",INVALID_PHONE_NUMBER:"auth/invalid-phone-number",INVALID_PROVIDER_ID:"auth/invalid-provider-id",INVALID_RECIPIENT_EMAIL:"auth/invalid-recipient-email",INVALID_SENDER:"auth/invalid-sender",INVALID_SESSION_INFO:"auth/invalid-verification-id",INVALID_TENANT_ID:"auth/invalid-tenant-id",MFA_INFO_NOT_FOUND:"auth/multi-factor-info-not-found",MFA_REQUIRED:"auth/multi-factor-auth-required",MISSING_ANDROID_PACKAGE_NAME:"auth/missing-android-pkg-name",MISSING_APP_CREDENTIAL:"auth/missing-app-credential",MISSING_AUTH_DOMAIN:"auth/auth-domain-config-required",MISSING_CODE:"auth/missing-verification-code",MISSING_CONTINUE_URI:"auth/missing-continue-uri",MISSING_IFRAME_START:"auth/missing-iframe-start",MISSING_IOS_BUNDLE_ID:"auth/missing-ios-bundle-id",MISSING_OR_INVALID_
vendor: 4,827 bytes, lines 480-514
480NONCE:"auth/missing-or-invalid-nonce",MISSING_MFA_INFO:"auth/missing-multi-factor-info",MISSING_MFA_SESSION:"auth/missing-multi-factor-session",MISSING_PHONE_NUMBER:"auth/missing-phone-number",MISSING_PASSWORD:"auth/missing-password",MISSING_SESSION_INFO:"auth/missing-verification-id",MODULE_DESTROYED:"auth/app-deleted",NEED_CONFIRMATION:"auth/account-exists-with-different-credential",NETWORK_REQUEST_FAILED:"auth/network-request-failed",NULL_USER:"auth/null-user",NO_AUTH_EVENT:"auth/no-auth-event",NO_SUCH_PROVIDER:"auth/no-such-provider",OPERATION_NOT_ALLOWED:"auth/operation-not-allowed",OPERATION_NOT_SUPPORTED:"auth/operation-not-supported-in-this-environment",POPUP_BLOCKED:"auth/popup-blocked",POPUP_CLOSED_BY_USER:"auth/popup-closed-by-user",PROVIDER_ALREADY_LINKED:"auth/provider-already-linked",QUOTA_EXCEEDED:"auth/quota-exceeded",REDIRECT_CANCELLED_BY_USER:"auth/redirect-cancelled-by-user",REDIRECT_OPERATION_PENDING:"auth/redirect-operation-pending",REJECTED_CREDENTIAL:"auth/rejected-credential",SECOND_FACTOR_ALREADY_ENROLLED:"auth/second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"auth/maximum-second-factor-count-exceeded",TENANT_ID_MISMATCH:"auth/tenant-id-mismatch",TIMEOUT:"auth/timeout",TOKEN_EXPIRED:"auth/user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"auth/too-many-requests",UNAUTHORIZED_DOMAIN:"auth/unauthorized-continue-uri",UNSUPPORTED_FIRST_FACTOR:"auth/unsupported-first-factor",UNSUPPORTED_PERSISTENCE:"auth/unsupported-persistence-type",UNSUPPORTED_TENANT_OPERATION:"auth/unsupported-tenant-operation",UNVERIFIED_EMAIL:"auth/unverified-email",USER_CANCELLED:"auth/user-cancelled",USER_DELETED:"auth/user-not-found",USER_DISABLED:"auth/user-disabled",USER_MISMATCH:"auth/user-mismatch",USER_SIGNED_OUT:"auth/user-signed-out",WEAK_PASSWORD:"auth/weak-password",WEB_STORAGE_UNSUPPORTED:"auth/web-storage-unsupported",ALREADY_INITIALIZED:"auth/already-initialized",RECAPTCHA_NOT_ENABLED:"auth/recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"auth/missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"auth/invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"auth/invalid-recaptcha-action",MISSING_CLIENT_TYPE:"auth/missing-client-type",MISSING_RECAPTCHA_VERSION:"auth/missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"auth/invalid-recaptcha-version",INVALID_REQ_TYPE:"auth/invalid-req-type",INVALID_HOSTING_LINK_DOMAIN:"auth/invalid-hosting-link-domain"};/** 481 * @license 482 * Copyright 2020 Google LLC 483 * 484 * Licensed under the Apache License, Version 2.0 (the "License"); 485 * you may not use this file except in compliance with the License. 486 * You may obtain a copy of the License at 487 * 488 * http://www.apache.org/licenses/LICENSE-2.0 489 * 490 * Unless required by applicable law or agreed to in writing, software 491 * distributed under the License is distributed on an "AS IS" BASIS, 492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 493 * See the License for the specific language governing permissions and 494 * limitations under the License. 495 */const uS=new vM("@firebase/auth");function Kle(t,...e){uS.logLevel<=Lt.WARN&&uS.warn(`Auth (${dh}): ${t}`,...e)}function G2(t,...e){uS.logLevel<=Lt.ERROR&&uS.error(`Auth (${dh}): ${t}`,...e)}/** 496 * @license 497 * Copyright 2020 Google LLC 498 * 499 * Licensed under the Apache License, Version 2.0 (the "License"); 500 * you may not use this file except in compliance with the License. 501 * You may obtain a copy of the License at 502 * 503 * http://www.apache.org/licenses/LICENSE-2.0 504 * 505 * Unless required by applicable law or agreed to in writing, software 506 * distributed under the License is distributed on an "AS IS" BASIS, 507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 508 * See the License for the specific language governing permissions and 509 * limitations under the License. 510 */function io(t,...e){throw xM(t,...e)}function Pi(t,...e){return xM(t,...e)}function SM(t,e,n){const r={...kU(),[e]:n};return new gv("auth","Firebase",r).create(e,{appName:t.name})}function Wr(t){return SM(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function og(t,e,n){const r=n;if(!(e instanceof r))throw r.name!==e.constructor.name&&io(t,"argument-error"),SM(t,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function xM(t,...e){if(typeof t!="string"){const n=e[0],r=[...e.slice(1)];return r[0]&&(r[0].appName=t.name),t._errorFactory.create(n,...r)}return PU.create(t,...e)}function Ve(t,e,...n){if(!t)throw xM(e,...n)}function Ca(t){const e="INTERNAL ASSERTION FAILED: "+t;throw G2(e),new Error(e)}function Jl(t,e){t||Ca(e)}/** 511 * @license 512 * Copyright 2020 Google LLC 513 * 514 * Licensed under the Apache License, Version 2.0 (the "License");
515 * you may not use this file except in compliance with the License. 516 * You may obtain a copy of the License at 517 * 518 * http://www.apache.org/licenses/LICENSE-2.0 519 * 520 * Unless required by applicable law or agreed to in writing, software 521 * distributed under the License is distributed on an "AS IS" BASIS, 522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 523 * See the License for the specific language governing permissions and 524 * limitations under the License. 525 */function e0(){var t;return typeof self<"u"&&((t=self.location)==null?void 0:t.href)||""}function EM(){return Q6()==="http:"||Q6()==="https:"}function Q6(){var t;return typeof self<"u"&&((t=self.location)==null?void 0:t.protocol)||null}/** 526 * @license 527 * Copyright 2020 Google LLC 528 * 529 * Licensed under the Apache License, Version 2.0 (the "License"); 530 * you may not use this file except in compliance with the License. 531 * You may obtain a copy of the License at 532 * 533 * http://www.apache.org/licenses/LICENSE-2.0 534 * 535 * Unless required by applicable law or agreed to in writing, software 536 * distributed under the License is distributed on an "AS IS" BASIS, 537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 538 * See the License for the specific language governing permissions and 539 * limitations under the License. 540 */function Yle(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(EM()||wae()||"connection"in navigator)?navigator.onLine:!0}function Xle(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 541 * @license 542 * Copyright 2020 Google LLC 543 * 544 * Licensed under the Apache License, Version 2.0 (the "License"); 545 * you may not use this file except in compliance with the License. 546 * You may obtain a copy of the License at 547 * 548 * http://www.apache.org/licenses/LICENSE-2.0 549 * 550 * Unless required by applicable law or agreed to in writing, software 551 * distributed under the License is distributed on an "AS IS" BASIS, 552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 553 * See the License for the specific language governing permissions and 554 * limitations under the License. 555 */class vv{constructor(e,n){this.shortDelay=e,this.longDelay=n,Jl(n>e,"Short delay should be less than long delay!"),this.isMobile=vae()||Sae()}get(){return Yle()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 556 * @license 557 * Copyright 2020 Google LLC 558 * 559 * Licensed under the Apache License, Version 2.0 (the "License"); 560 * you may not use this file except in compliance with the License. 561 * You may obtain a copy of the License at 562 * 563 * http://www.apache.org/licenses/LICENSE-2.0 564 * 565 * Unless required by applicable law or agreed to in writing, software 566 * distributed under the License is distributed on an "AS IS" BASIS, 567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 568 * See the License for the specific language governing permissions and 569 * limitations under the License. 570 */function TM(t,e){Jl(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** 571 * @license 572 * Copyright 2020 Google LLC 573 * 574 * Licensed under the Apache License, Version 2.0 (the "License"); 575 * you may not use this file except in compliance with the License. 576 * You may obtain a copy of the License at 577 * 578 * http://www.apache.org/licenses/LICENSE-2.0 579 * 580 * Unless required by applicable law or agreed to in writing, software 581 * distributed under the License is distributed on an "AS IS" BASIS, 582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 583 * See the License for the specific language governing permissions and 584 * limitations under the License. 585 */class OU{static initialize(e,n,r){this.fetchImpl=e,n&&(this.headersImpl=n),r&&(this.responseImpl=r)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Ca("Could not find fetch implementation, make sure you call FetchProvi
585der.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Ca("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Ca("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 586 * @license 587 * Copyright 2020 Google LLC 588 * 589 * Licensed under the Apache License, Version 2.0 (the "License"); 590 * you may not use this file except in compliance with the License. 591 * You may obtain a copy of the License at 592 * 593 * http://www.apache.org/licenses/LICENSE-2.0 594 * 595 * Unless required by applicable law or agreed to in writing, software 596 * distributed under the License is distributed on an "AS IS" BASIS, 597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 598 * See the License for the specific language governing permissions and 599 * limitations under the License. 600 */const Qle={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 601 * @license 602 * Copyright 2020 Google LLC 603 * 604 * Licensed under the Apache License, Version 2.0 (the "License"); 605 * you may not use this file except in compliance with the License. 606 * You may obtain a copy of the License at 607 * 608 * http://www.apache.org/licenses/LICENSE-2.0 609 * 610 * Unless required by applicable law or agreed to in writing, software 611 * distributed under the License is distributed on an "AS IS" BASIS, 612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 613 * See the License for the specific language governing permissions and 614 * limitations under the License. 615 */const Jle=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],Zle=new vv(3e4,6e4);function zn(t,e){return t.tenantId&&!e.tenantId?{...e,tenantId:t.tenantId}:e}async function Vn(t,e,n,r,i={}){return NU(t,i,async()=>{let o={},s={};r&&(e==="GET"?s=r:o={body:JSON.stringify(r)});const a=ig({key:t.config.apiKey,...s}).slice(1),l=await t._getAdditionalHeaders();l["Content-Type"]="application/json",t.languageCode&&(l["X-Firebase-Locale"]=t.languageCode);const c={method:e,headers:l,...o};return bae()||(c.referrerPolicy="no-referrer"),t.emulatorConfig&&Zs(t.emulatorConfig.host)&&(c.credentials="include"),OU.fetch()(await DU(t,t.config.apiHost,n,a),c)})}async function NU(t,e,n){t._canInitEmulator=!1;const r={...Qle,...e};try{const i=new tce(t),o=await Promise.race([n(),i.promise]);i.clearNetworkTimeout();const s=await o.json();if("needConfirmation"in s)throw x1(t,"account-exists-with-different-credential",s);if(o.ok&&!("errorMessage"in s))return s;{const a=o.ok?s.errorMessage:s.error.message,[l,c]=a.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw x1(t,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw x1(t,"email-already-in-use",s);if(l==="USER_DISABLED")throw x1(t,"user-disabled",s);const u=r[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw SM(t,u,c);io(t,u)}}catch(i){if(i instanceof ea)throw i;io(t,"network-request-failed",{message:String(i)})}}async function ac(t,e,n,r,i={}){const o=await Vn(t,e,n,r,i);return"mfaPendingCredential"in o&&io(t,"multi-factor-auth-required",{_serverResponse:o}),o}async function DU(t,e,n,r){const i=`${e}${n}?${r}`,o=t,s=o.config.emulator?TM(t.config,i):`${t.config.apiScheme}://${i}`;return Jle.includes(n)&&(await o._persistenceManagerAvailable,o._getPersistenceType()==="COOKIE")?o._getPersistence()._getFinalTarget(s).toString():s}function ece(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class tce{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,r)=>{this.timer=setTimeout(()=>r(Pi(this.auth,"network-request-failed")),Zle.get())})}}function x1(t,e,n){const r={appName:t.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);const i=Pi(t,e,r);return i.customData._tokenResponse=n,i}/** 616 * @license 617 * Copyright 2020 Google LLC 618 * 619 * Licensed under the Apache License, Version 2.0 (the "License");
620 * you may not use this file except in compliance with the License. 621 * You may obtain a copy of the License at 622 * 623 * http://www.apache.org/licenses/LICENSE-2.0 624 * 625 * Unless required by applicable law or agreed to in writing, software 626 * distributed under the License is distributed on an "AS IS" BASIS, 627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 628 * See the License for the specific language governing permissions and 629 * limitations under the License. 630 */function J6(t){return t!==void 0&&t.getResponse!==void 0}function Z6(t){return t!==void 0&&t.enterprise!==void 0}class LU{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===e)return ece(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}/** 631 * @license 632 * Copyright 2020 Google LLC 633 * 634 * Licensed under the Apache License, Version 2.0 (the "License"); 635 * you may not use this file except in compliance with the License. 636 * You may obtain a copy of the License at 637 * 638 * http://www.apache.org/licenses/LICENSE-2.0 639 * 640 * Unless required by applicable law or agreed to in writing, software 641 * distributed under the License is distributed on an "AS IS" BASIS, 642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 643 * See the License for the specific language governing permissions and 644 * limitations under the License. 645 */async function nce(t){return(await Vn(t,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""}async function zU(t,e){return Vn(t,"GET","/v2/recaptchaConfig",zn(t,e))}/** 646 * @license 647 * Copyright 2020 Google LLC 648 * 649 * Licensed under the Apache License, Version 2.0 (the "License"); 650 * you may not use this file except in compliance with the License. 651 * You may obtain a copy of the License at 652 * 653 * http://www.apache.org/licenses/LICENSE-2.0 654 * 655 * Unless required by applicable law or agreed to in writing, software 656 * distributed under the License is distributed on an "AS IS" BASIS, 657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 658 * See the License for the specific language governing permissions and 659 * limitations under the License. 660 */async function rce(t,e){return Vn(t,"POST","/v1/accounts:delete",e)}async function ice(t,e){return Vn(t,"POST","/v1/accounts:update",e)}async function dS(t,e){return Vn(t,"POST","/v1/accounts:lookup",e)}/** 661 * @license 662 * Copyright 2020 Google LLC 663 * 664 * Licensed under the Apache License, Version 2.0 (the "License"); 665 * you may not use this file except in compliance with the License. 666 * You may obtain a copy of the License at 667 * 668 * http://www.apache.org/licenses/LICENSE-2.0 669 * 670 * Unless required by applicable law or agreed to in writing, software 671 * distributed under the License is distributed on an "AS IS" BASIS, 672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 673 * See the License for the specific language governing permissions and 674 * limitations under the License. 675 */function ny(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}/** 676 * @license 677 * Copyright 2020 Google LLC 678 * 679 * Licensed under the Apache License, Version 2.0 (the "License"); 680 * you may not use this file except in compliance with the License. 681 * You may obtain a copy of the License at 682 * 683 * http://www.apache.org/licenses/LICENSE-2.0 684 * 685 * Unless required by applicable law or agreed to in writing, software 686 * distributed under the License is distributed on an "AS IS" BASIS, 687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 688 * See the License for the specific language governing permissions and 689 * limitations under the License. 690 */function oce(t,e=!1){return Ze(t).getIdToken(e)}async function VU(t,e=!1){const n=Ze(t),r=await n.getIdToken(e),i=iE(r);Ve(i&&i.exp&&i.auth_time&&i.iat,n.auth,"internal-error");const o=typeof i.firebase=="object"?i.firebase:void 0,s=o==null?void 0:o.sign_in_provider;return{claims:i,token:r,authTime:ny(B_(i.auth_time)),issuedAtTime:ny(B_(i.iat)),expirationTime:ny(B_(i.exp)),signInProvider:s||null,signInSecondFactor:(o==null?void 0:o.sign_in_second_factor)||null}}function B_(t){return Number(t)*1e3}function iE(t){const[e,n,r]=t.split(".");if(e===void 0||n===void 0||r===void 0)return G2("JWT malformed, contained fewer than 3 sections"),null;try{const i=mU(n);return i?JSON.parse(i):(G2("Failed to decode base64 JWT payload"),null)}catch(i){return G2("Caught error parsing JWT payload as JSON",i==null?void 0:i.toString()),null}}function eD(t){const e=iE(t);return Ve(e,"internal-error"),Ve(typeof e.exp<"u","internal-error"),Ve(typeof e.iat
690<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 691 * @license 692 * Copyright 2020 Google LLC 693 * 694 * Licensed under the Apache License, Version 2.0 (the "License"); 695 * you may not use this file except in compliance with the License. 696 * You may obtain a copy of the License at 697 * 698 * http://www.apache.org/licenses/LICENSE-2.0 699 * 700 * Unless required by applicable law or agreed to in writing, software 701 * distributed under the License is distributed on an "AS IS" BASIS, 702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 703 * See the License for the specific language governing permissions and 704 * limitations under the License. 705 */async function Zl(t,e,n=!1){if(n)return e;try{return await e}catch(r){throw r instanceof ea&&sce(r)&&t.auth.currentUser===t&&await t.auth.signOut(),r}}function sce({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 706 * @license 707 * Copyright 2020 Google LLC 708 * 709 * Licensed under the Apache License, Version 2.0 (the "License"); 710 * you may not use this file except in compliance with the License. 711 * You may obtain a copy of the License at 712 * 713 * http://www.apache.org/licenses/LICENSE-2.0 714 * 715 * Unless required by applicable law or agreed to in writing, software 716 * distributed under the License is distributed on an "AS IS" BASIS, 717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 718 * See the License for the specific language governing permissions and 719 * limitations under the License. 720 */class ace{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){const n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;const r=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,r)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 721 * @license 722 * Copyright 2020 Google LLC 723 * 724 * Licensed under the Apache License, Version 2.0 (the "License"); 725 * you may not use this file except in compliance with the License. 726 * You may obtain a copy of the License at 727 * 728 * http://www.apache.org/licenses/LICENSE-2.0 729 * 730 * Unless required by applicable law or agreed to in writing, software 731 * distributed under the License is distributed on an "AS IS" BASIS, 732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 733 * See the License for the specific language governing permissions and 734 * limitations under the License. 735 */class O5{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=ny(this.lastLoginAt),this.creationTime=ny(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 736 * @license 737 * Copyright 2019 Google LLC 738 * 739 * Licensed under the Apache License, Version 2.0 (the "License"); 740 * you may not use this file except in compliance with the License. 741 * You may obtain a copy of the License at 742 * 743 * http://www.apache.org/licenses/LICENSE-2.0 744 * 745 * Unless required by applicable law or agreed to in writing, software 746 * distributed under the License is distributed on an "AS IS" BASIS, 747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 748 * See the License for the specific language governing permissions and 749 * limitations under the License. 750 */async function t0(t){var d;const e=t.auth,n=await t.getIdToken(),r=await Zl(t,dS(e,{idToken:n}));Ve(r==null?void 0:r.users.length,e,"internal-error");const i=r.users[0];t._notifyReloadListener(i);const o=(d=i.providerUserInfo)!=null&&d.length?$U(i.providerUserInfo):[],s=lce(t.providerData,o),a=t.isAnonymous,l=!(t.email&&i.passwordHash)&&!(s!=null&&s.length),c=a?l:!1,u={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:s,metadata:new O5(i.createdAt,i.lastLoginAt),isAnonymous:c};Object.assign(t,u)}async function BU(t){const e=Ze(t);await t0(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function lce(t,e){return[...t.filter(r=>!e.some(i=>i.providerId===r.providerId)),...e]}function $U(t){return t.map(({providerId:e,...n})=>
750({providerId:e,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}))}/** 751 * @license 752 * Copyright 2020 Google LLC 753 * 754 * Licensed under the Apache License, Version 2.0 (the "License"); 755 * you may not use this file except in compliance with the License. 756 * You may obtain a copy of the License at 757 * 758 * http://www.apache.org/licenses/LICENSE-2.0 759 * 760 * Unless required by applicable law or agreed to in writing, software 761 * distributed under the License is distributed on an "AS IS" BASIS, 762 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 763 * See the License for the specific language governing permissions and 764 * limitations under the License. 765 */async function cce(t,e){const n=await NU(t,{},async()=>{const r=ig({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:o}=t.config,s=await DU(t,i,"/v1/token",`key=${o}`),a=await t._getAdditionalHeaders();a["Content-Type"]="application/x-www-form-urlencoded";const l={method:"POST",headers:a,body:r};return t.emulatorConfig&&Zs(t.emulatorConfig.host)&&(l.credentials="include"),OU.fetch()(s,l)});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function uce(t,e){return Vn(t,"POST","/v2/accounts:revokeToken",zn(t,e))}/** 766 * @license 767 * Copyright 2020 Google LLC 768 * 769 * Licensed under the Apache License, Version 2.0 (the "License"); 770 * you may not use this file except in compliance with the License. 771 * You may obtain a copy of the License at 772 * 773 * http://www.apache.org/licenses/LICENSE-2.0 774 * 775 * Unless required by applicable law or agreed to in writing, software 776 * distributed under the License is distributed on an "AS IS" BASIS, 777 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 778 * See the License for the specific language governing permissions and 779 * limitations under the License. 780 */class kp{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ve(e.idToken,"internal-error"),Ve(typeof e.idToken<"u","internal-error"),Ve(typeof e.refreshToken<"u","internal-error");const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):eD(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){Ve(e.length!==0,"internal-error");const n=eD(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(Ve(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:r,refreshToken:i,expiresIn:o}=await cce(e,n);this.updateTokensAndExpiration(r,i,Number(o))}updateTokensAndExpiration(e,n,r){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+r*1e3}static fromJSON(e,n){const{refreshToken:r,accessToken:i,expirationTime:o}=n,s=new kp;return r&&(Ve(typeof r=="string","internal-error",{appName:e}),s.refreshToken=r),i&&(Ve(typeof i=="string","internal-error",{appName:e}),s.accessToken=i),o&&(Ve(typeof o=="number","internal-error",{appName:e}),s.expirationTime=o),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new kp,this.toJSON())}_performRefresh(){return Ca("not implemented")}}/** 781 * @license 782 * Copyright 2020 Google LLC 783 * 784 * Licensed under the Apache License, Version 2.0 (the "License"); 785 * you may not use this file except in compliance with the License. 786 * You may obtain a copy of the License at 787 * 788 * http://www.apache.org/licenses/LICENSE-2.0 789 * 790 * Unless required by applicable law or agreed to in writing, software 791 * distributed under the License is distributed on an "AS IS" BASIS, 792 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 793 * See the License for the specific language governing permissions and 794 * limitations under the License. 795 */function Ec(t,e){Ve(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Vs{constructor({uid:e,auth:n,stsTokenManager:r,...i}){this.providerId="firebase",this.proactiveRefresh=new ace(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=e,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new O5(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){const n=await Zl(this,this.stsTokenManager.getToken(this.auth,e));return Ve(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return VU(this,e)}reload(){return BU(this)}_assign(e){this!==e&&(Ve(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.ph
795otoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>({...n})),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Vs({...this,auth:e,stsTokenManager:this.stsTokenManager._clone()});return n.metadata._copy(this.metadata),n}_onReload(e){Ve(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let r=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),r=!0),n&&await t0(this),await this.auth._persistUserIfCurrent(this),r&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(On(this.auth.app))return Promise.reject(Wr(this.auth));const e=await this.getIdToken();return await Zl(this,rce(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return{uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>({...e})),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId,...this.metadata.toJSON(),apiKey:this.auth.config.apiKey,appName:this.auth.name}}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){const r=n.displayName??void 0,i=n.email??void 0,o=n.phoneNumber??void 0,s=n.photoURL??void 0,a=n.tenantId??void 0,l=n._redirectEventId??void 0,c=n.createdAt??void 0,u=n.lastLoginAt??void 0,{uid:d,emailVerified:f,isAnonymous:h,providerData:p,stsTokenManager:m}=n;Ve(d&&m,e,"internal-error");const g=kp.fromJSON(this.name,m);Ve(typeof d=="string",e,"internal-error"),Ec(r,e.name),Ec(i,e.name),Ve(typeof f=="boolean",e,"internal-error"),Ve(typeof h=="boolean",e,"internal-error"),Ec(o,e.name),Ec(s,e.name),Ec(a,e.name),Ec(l,e.name),Ec(c,e.name),Ec(u,e.name);const y=new Vs({uid:d,auth:e,email:i,emailVerified:f,displayName:r,isAnonymous:h,photoURL:s,phoneNumber:o,tenantId:a,stsTokenManager:g,createdAt:c,lastLoginAt:u});return p&&Array.isArray(p)&&(y.providerData=p.map(b=>({...b}))),l&&(y._redirectEventId=l),y}static async _fromIdTokenResponse(e,n,r=!1){const i=new kp;i.updateFromServerResponse(n);const o=new Vs({uid:n.localId,auth:e,stsTokenManager:i,isAnonymous:r});return await t0(o),o}static async _fromGetAccountInfoResponse(e,n,r){const i=n.users[0];Ve(i.localId!==void 0,"internal-error");const o=i.providerUserInfo!==void 0?$U(i.providerUserInfo):[],s=!(i.email&&i.passwordHash)&&!(o!=null&&o.length),a=new kp;a.updateFromIdToken(r);const l=new Vs({uid:i.localId,auth:e,stsTokenManager:a,isAnonymous:s}),c={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:o,metadata:new O5(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!(o!=null&&o.length)};return Object.assign(l,c),l}}/** 796 * @license 797 * Copyright 2020 Google LLC 798 * 799 * Licensed under the Apache License, Version 2.0 (the "License"); 800 * you may not use this file except in compliance with the License. 801 * You may obtain a copy of the License at 802 * 803 * http://www.apache.org/licenses/LICENSE-2.0 804 * 805 * Unless required by applicable law or agreed to in writing, software 806 * distributed under the License is distributed on an "AS IS" BASIS, 807 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 808 * See the License for the specific language governing permissions and 809 * limitations under the License. 810 */const tD=new Map;function Ml(t){Jl(t instanceof Function,"Expected a class definition");let e=tD.get(t);return e?(Jl(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,tD.set(t,e),e)}/** 811 * @license 812 * Copyright 2019 Google LLC 813 * 814 * Licensed under the Apache License, Version 2.0 (the "License");
815 * you may not use this file except in compliance with the License. 816 * You may obtain a copy of the License at 817 * 818 * http://www.apache.org/licenses/LICENSE-2.0 819 * 820 * Unless required by applicable law or agreed to in writing, software 821 * distributed under the License is distributed on an "AS IS" BASIS, 822 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 823 * See the License for the specific language governing permissions and 824 * limitations under the License. 825 */class FU{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}FU.type="NONE";const N5=FU;/** 826 * @license 827 * Copyright 2019 Google LLC 828 * 829 * Licensed under the Apache License, Version 2.0 (the "License"); 830 * you may not use this file except in compliance with the License. 831 * You may obtain a copy of the License at 832 * 833 * http://www.apache.org/licenses/LICENSE-2.0 834 * 835 * Unless required by applicable law or agreed to in writing, software 836 * distributed under the License is distributed on an "AS IS" BASIS, 837 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 838 * See the License for the specific language governing permissions and 839 * limitations under the License. 840 */function K2(t,e,n){return`firebase:${t}:${e}:${n}`}class Pp{constructor(e,n,r){this.persistence=e,this.auth=n,this.userKey=r;const{config:i,name:o}=this.auth;this.fullUserKey=K2(this.userKey,i.apiKey,o),this.fullPersistenceKey=K2("persistence",i.apiKey,o),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){const n=await dS(this.auth,{idToken:e}).catch(()=>{});return n?Vs._fromGetAccountInfoResponse(this.auth,n,e):null}return Vs._fromJSON(this.auth,e)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,r="authUser"){if(!n.length)return new Pp(Ml(N5),e,r);const i=(await Promise.all(n.map(async c=>{if(await c._isAvailable())return c}))).filter(c=>c);let o=i[0]||Ml(N5);const s=K2(r,e.config.apiKey,e.name);let a=null;for(const c of n)try{const u=await c._get(s);if(u){let d;if(typeof u=="string"){const f=await dS(e,{idToken:u}).catch(()=>{});if(!f)break;d=await Vs._fromGetAccountInfoResponse(e,f,u)}else d=Vs._fromJSON(e,u);c!==o&&(a=d),o=c;break}}catch{}const l=i.filter(c=>c._shouldAllowMigration);return!o._shouldAllowMigration||!l.length?new Pp(o,e,r):(o=l[0],a&&await o._set(s,a.toJSON()),await Promise.all(n.map(async c=>{if(c!==o)try{await c._remove(s)}catch{}})),new Pp(o,e,r))}}/** 841 * @license 842 * Copyright 2020 Google LLC 843 * 844 * Licensed under the Apache License, Version 2.0 (the "License"); 845 * you may not use this file except in compliance with the License. 846 * You may obtain a copy of the License at 847 * 848 * http://www.apache.org/licenses/LICENSE-2.0 849 * 850 * Unless required by applicable law or agreed to in writing, software 851 * distributed under the License is distributed on an "AS IS" BASIS, 852 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 853 * See the License for the specific language governing permissions and 854 * limitations under the License. 855 */function nD(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(qU(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(jU(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(GU(e))return"Blackberry";if(KU(e))return"Webos";if(HU(e))return"Safari";if((e.includes("chrome/")||UU(e))&&!e.includes("edge/"))return"Chrome";if(WU(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,r=t.match(n);if((r==null?void 0:r.length)===2)return r[1]}return"Other"}function jU(t=Lr()){return/firefox\//i.test(t)}function HU(t=Lr()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function UU(t=Lr()){return/crios\//i.test(t)}function qU(t=Lr()){return/iemobile/i.test(t)}function WU(t=Lr()){return/android/i.test(t)}function GU(t=Lr()){return/blackberry/i.test(t)}function KU(t=Lr()){return/webos/i.test(t)}function CM(t=Lr()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function dce(t=Lr()){var e;return CM(t)&&!!((e=window.navigator)!=null&&e.standalone)}function fce(){return xae()&&document.documentMode===10}function YU(t=Lr()){return CM(t)||WU(t)||KU(t)||GU(t)||/windows phone/i.test(t)||qU(t)}/** 856 * @license 857 * Copyright 2020 Google LLC 858 * 859 * Licensed under the Apache License, Version 2.0 (the "License");
860 * you may not use this file except in compliance with the License. 861 * You may obtain a copy of the License at 862 * 863 * http://www.apache.org/licenses/LICENSE-2.0 864 * 865 * Unless required by applicable law or agreed to in writing, software 866 * distributed under the License is distributed on an "AS IS" BASIS, 867 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 868 * See the License for the specific language governing permissions and 869 * limitations under the License. 870 */function XU(t,e=[]){let n;switch(t){case"Browser":n=nD(Lr());break;case"Worker":n=`${nD(Lr())}-${t}`;break;default:n=t}const r=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${dh}/${r}`}/** 871 * @license 872 * Copyright 2022 Google LLC 873 * 874 * Licensed under the Apache License, Version 2.0 (the "License"); 875 * you may not use this file except in compliance with the License. 876 * You may obtain a copy of the License at 877 * 878 * http://www.apache.org/licenses/LICENSE-2.0 879 * 880 * Unless required by applicable law or agreed to in writing, software 881 * distributed under the License is distributed on an "AS IS" BASIS, 882 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 883 * See the License for the specific language governing permissions and 884 * limitations under the License. 885 */class hce{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const r=o=>new Promise((s,a)=>{try{const l=e(o);s(l)}catch(l){a(l)}});r.onAbort=n,this.queue.push(r);const i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const r of this.queue)await r(e),r.onAbort&&n.push(r.onAbort)}catch(r){n.reverse();for(const i of n)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:r==null?void 0:r.message})}}}/** 886 * @license 887 * Copyright 2023 Google LLC 888 * 889 * Licensed under the Apache License, Version 2.0 (the "License"); 890 * you may not use this file except in compliance with the License. 891 * You may obtain a copy of the License at 892 * 893 * http://www.apache.org/licenses/LICENSE-2.0 894 * 895 * Unless required by applicable law or agreed to in writing, software 896 * distributed under the License is distributed on an "AS IS" BASIS, 897 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 898 * See the License for the specific language governing permissions and 899 * limitations under the License. 900 */async function pce(t,e={}){return Vn(t,"GET","/v2/passwordPolicy",zn(t,e))}/** 901 * @license 902 * Copyright 2023 Google LLC 903 * 904 * Licensed under the Apache License, Version 2.0 (the "License"); 905 * you may not use this file except in compliance with the License. 906 * You may obtain a copy of the License at 907 * 908 * http://www.apache.org/licenses/LICENSE-2.0 909 * 910 * Unless required by applicable law or agreed to in writing, software 911 * distributed under the License is distributed on an "AS IS" BASIS, 912 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 913 * See the License for the specific language governing permissions and 914 * limitations under the License. 915 */const mce=6;class gce{constructor(e){var r;const n=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=n.minPasswordLength??mce,n.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=n.maxPasswordLength),n.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=n.containsLowercaseCharacter),n.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=n.containsUppercaseCharacter),n.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=n.containsNumericCharacter),n.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=n.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=((r=e.allowedNonAlphanumericCharacters)==null?void 0:r.join(""))??"",this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){const n={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,n),this.validatePasswordCharacterOptions(e,n),n.isValid&&
915(n.isValid=n.meetsMinPasswordLength??!0),n.isValid&&(n.isValid=n.meetsMaxPasswordLength??!0),n.isValid&&(n.isValid=n.containsLowercaseLetter??!0),n.isValid&&(n.isValid=n.containsUppercaseLetter??!0),n.isValid&&(n.isValid=n.containsNumericCharacter??!0),n.isValid&&(n.isValid=n.containsNonAlphanumericCharacter??!0),n}validatePasswordLengthOptions(e,n){const r=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;r&&(n.meetsMinPasswordLength=e.length>=r),i&&(n.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let r;for(let i=0;i<e.length;i++)r=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(n,r>="a"&&r<="z",r>="A"&&r<="Z",r>="0"&&r<="9",this.allowedNonAlphanumericCharacters.includes(r))}updatePasswordCharacterOptionsStatuses(e,n,r,i,o){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=r)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=o))}}/** 916 * @license 917 * Copyright 2020 Google LLC 918 * 919 * Licensed under the Apache License, Version 2.0 (the "License"); 920 * you may not use this file except in compliance with the License. 921 * You may obtain a copy of the License at 922 * 923 * http://www.apache.org/licenses/LICENSE-2.0 924 * 925 * Unless required by applicable law or agreed to in writing, software 926 * distributed under the License is distributed on an "AS IS" BASIS, 927 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 928 * See the License for the specific language governing permissions and 929 * limitations under the License. 930 */class yce{constructor(e,n,r,i){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=r,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new rD(this),this.idTokenSubscription=new rD(this),this.beforeStateQueue=new hce(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=PU,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(o=>this._resolvePersistenceManagerAvailable=o)}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=Ml(n)),this._initializationPromise=this.queue(async()=>{var r,i,o;if(!this._deleted&&(this.persistenceManager=await Pp.create(this,e),(r=this._resolvePersistenceManagerAvailable)==null||r.call(this),!this._deleted)){if((i=this._popupRedirectResolver)!=null&&i._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((o=this.currentUser)==null?void 0:o.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await dS(this,{idToken:e}),r=await Vs._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(r)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var o;if(On(this.app)){const s=this.app.settings.authIdToken;return s?new Promise(a=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(a,a))}):this.directlySetCurrentUser(null)}const n=await this.assertedPersistence.getCurrentUser();let r=n,i=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const s=(o=this.redirectUser)==null?void 0:o._redirectEventId,a=r==null?void 0:r._redirectEventId,l=await this.tryRedirectSignIn(e);(!s||s===a)&&(l!=null&&l.user)&&(r=l.user,i=!0)}if(!r)return this.directlySetCurrentUser(null);
930if(!r._redirectEventId){if(i)try{await this.beforeStateQueue.runMiddleware(r)}catch(s){r=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return r?this.reloadAndSetCurrentUserOrClear(r):this.directlySetCurrentUser(null)}return Ve(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===r._redirectEventId?this.directlySetCurrentUser(r):this.reloadAndSetCurrentUserOrClear(r)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await t0(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=Xle()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(On(this.app))return Promise.reject(Wr(this));const n=e?Ze(e):null;return n&&Ve(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&Ve(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return On(this.app)?Promise.reject(Wr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return On(this.app)?Promise.reject(Wr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(Ml(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await pce(this),n=new gce(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new gv("auth","Firebase",e())}onAuthStateChanged(e,n,r){return this.registerStateListener(this.authStateSubscription,e,n,r)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,r){return this.registerStateListener(this.idTokenSubscription,e,n,r)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const r=this.onAuthStateChanged(()=>{r(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),r={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(r.tenantId=this.tenantId),await uce(this,r)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)==null?void 0:e.toJSON()}}async _setRedirectUser(e,n){const r=await this.getOrInitRedirectPersistenceManager(n);return e===null?r.removeCurrentUser():r.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&Ml(e)||this._popupRedirectResolver;Ve(n,this,"argument-error"),this.redirectPersistenceManager=await Pp.create(this,[Ml(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,r;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)==null?void 0:n._redirectEventId)===e?this._currentUser:((r=this.redirectUser)==null?void 0:r._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const e=((n=this.currentUser)==null?void 0:n.uid)??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,r,i){if(this._deleted)return()=>{};const o=typeof n=="function"?n:n.next.bind(n);let s=!1;const a=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ve(a,this,"internal-error"),a.then(()=>{s||o(this.currentUser)}),typeof n=="function"){const l=e.addObserver(n,r,i);return()=>{s=!0,l()}}else{const l=e.addObserver(n);return()=>{s=!0,l()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ve(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=XU(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var i;const e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e["X-Firebase-gmpid"]=this.app.options.appId);const n=await((i=this.heartbeatServiceProvider.getImmediate({optional:!0}))==null?void 0:i.getHeartbeatsHeader());n&&(e["X-Firebase-Client"]=n);const r=await this._getAppCheckToken();return r&&(e["X-Firebase-AppCheck"]=r),e}async _getAppCheckToken(){var n;if(On(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=await((n=this.appCheckServiceProvider.getImmediate({optional:!0}))==null?void 0:n.getToken());return e!=null&&e.error&&Kle(`Error while retrieving App Check token: ${e.error}`),e==null?void 0:e.token}}function cr(t){return Ze(t)}class rD{constructor(e){this.auth=e,this.observer=null,this.addObserver=Iae(n=>this.observer=n)}get next(){return Ve(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 931 * @license 932 * Copyright 2020 Google LLC 933 * 934 * Licensed under the Apache License, Version 2.0 (the "License");
935 * you may not use this file except in compliance with the License. 936 * You may obtain a copy of the License at 937 * 938 * http://www.apache.org/licenses/LICENSE-2.0 939 * 940 * Unless required by applicable law or agreed to in writing, software 941 * distributed under the License is distributed on an "AS IS" BASIS, 942 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 943 * See the License for the specific language governing permissions and 944 * limitations under the License. 945 */let bv={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function vce(t){bv=t}function _M(t){return bv.loadJS(t)}function bce(){return bv.recaptchaV2Script}function wce(){return bv.recaptchaEnterpriseScript}function Sce(){return bv.gapiScript}function QU(t){return`__${t}${Math.floor(Math.random()*1e6)}`}/** 946 * @license 947 * Copyright 2020 Google LLC 948 * 949 * Licensed under the Apache License, Version 2.0 (the "License"); 950 * you may not use this file except in compliance with the License. 951 * You may obtain a copy of the License at 952 * 953 * http://www.apache.org/licenses/LICENSE-2.0 954 * 955 * Unless required by applicable law or agreed to in writing, software 956 * distributed under the License is distributed on an "AS IS" BASIS, 957 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 958 * See the License for the specific language governing permissions and 959 * limitations under the License. 960 */const xce=500,Ece=6e4,Ob=1e12;class Tce{constructor(e){this.auth=e,this.counter=Ob,this._widgets=new Map}render(e,n){const r=this.counter;return this._widgets.set(r,new Ace(e,this.auth.name,n||{})),this.counter++,r}reset(e){var r;const n=e||Ob;(r=this._widgets.get(n))==null||r.delete(),this._widgets.delete(n)}getResponse(e){var r;const n=e||Ob;return((r=this._widgets.get(n))==null?void 0:r.getResponse())||""}async execute(e){var r;const n=e||Ob;return(r=this._widgets.get(n))==null||r.execute(),""}}class Cce{constructor(){this.enterprise=new _ce}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class _ce{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class Ace{constructor(e,n,r){this.params=r,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};const i=typeof e=="string"?document.getElementById(e):e;Ve(i,"argument-error",{appName:n}),this.container=i,this.isVisible=this.params.size!=="invisible",this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=Ice(50);const{callback:e,"expired-callback":n}=this.params;if(e)try{e(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,n)try{n()}catch{}this.isVisible&&this.execute()},Ece)},xce))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}}function Ice(t){const e=[],n="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let r=0;r<t;r++)e.push(n.charAt(Math.floor(Math.random()*n.length)));return e.join("")}const Rce="recaptcha-enterprise",ry="NO_RECAPTCHA";class JU{constructor(e){this.type=Rce,this.auth=cr(e)}async verify(e="verify",n=!1){async function r(o){if(!n){if(o.tenantId==null&&o._agentRecaptchaConfig!=null)return o._agentRecaptchaConfig.siteKey;if(o.tenantId!=null&&o._tenantRecaptchaConfigs[o.tenantId]!==void 0)return o._tenantRecaptchaConfigs[o.tenantId].siteKey}return new Promise(async(s,a)=>{zU(o,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)a(new Error("recaptcha Enterprise site key undefined"));else{const c=new LU(l);return o.tenantId==null?o._agentRecaptchaConfig=c:o._tenantRecaptchaConfigs[o.tenantId]=c,s(c.siteKey)}}).catch(l=>{a(l)})})}function i(o,s,a){const l=window.grecaptcha;Z6(l)?l.enterprise.ready(()=>{l.enterprise.execute(o,{action:e}).then(c=>{s(c)}).catch(()=>{s(ry)})}):a(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new Cce().execute("siteKey",{action:"verify"}):new Promise((o,s)=>{r(this.auth).then(a=>{if(!n&&Z6(window.grecaptcha))i(a,o,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let l=wce();l.length!==0&&(l+=a),_M(l).then(()=>{i(a,o,s)}).catch(c=>{s(c)})}}).catch(a=>{s(a)})})}}async function $g(t,e,n,r=!1,i=!1){const o=new JU(t);let s;if(i)s=ry;else try{s=await o.verify(n)}
960catch{s=await o.verify(n,!0)}const a={...e};if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in a){const l=a.phoneEnrollmentInfo.phoneNumber,c=a.phoneEnrollmentInfo.recaptchaToken;Object.assign(a,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:c,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in a){const l=a.phoneSignInInfo.recaptchaToken;Object.assign(a,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return a}return r?Object.assign(a,{captchaResp:s}):Object.assign(a,{captchaResponse:s}),Object.assign(a,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(a,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),a}async function bu(t,e,n,r,i){var o,s;if(i==="EMAIL_PASSWORD_PROVIDER")if((o=t._getRecaptchaConfig())!=null&&o.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const a=await $g(t,e,n,n==="getOobCode");return r(t,a)}else return r(t,e).catch(async a=>{if(a.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const l=await $g(t,e,n,n==="getOobCode");return r(t,l)}else return Promise.reject(a)});else if(i==="PHONE_PROVIDER")if((s=t._getRecaptchaConfig())!=null&&s.isProviderEnabled("PHONE_PROVIDER")){const a=await $g(t,e,n);return r(t,a).catch(async l=>{var c;if(((c=t._getRecaptchaConfig())==null?void 0:c.getProviderEnforcementState("PHONE_PROVIDER"))==="AUDIT"&&(l.code==="auth/missing-recaptcha-token"||l.code==="auth/invalid-app-credential")){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${n} flow.`);const u=await $g(t,e,n,!1,!0);return r(t,u)}return Promise.reject(l)})}else{const a=await $g(t,e,n,!1,!0);return r(t,a)}else return Promise.reject(i+" provider is not supported.")}async function ZU(t){const e=cr(t),n=await zU(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),r=new LU(n);e.tenantId==null?e._agentRecaptchaConfig=r:e._tenantRecaptchaConfigs[e.tenantId]=r,r.isAnyProviderEnabled()&&new JU(e).verify()}/** 961 * @license 962 * Copyright 2020 Google LLC 963 * 964 * Licensed under the Apache License, Version 2.0 (the "License"); 965 * you may not use this file except in compliance with the License. 966 * You may obtain a copy of the License at 967 * 968 * http://www.apache.org/licenses/LICENSE-2.0 969 * 970 * Unless required by applicable law or agreed to in writing, software 971 * distributed under the License is distributed on an "AS IS" BASIS, 972 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 973 * See the License for the specific language governing permissions and 974 * limitations under the License. 975 */function eq(t,e){const n=yv(t,"auth");if(n.isInitialized()){const i=n.getImmediate(),o=n.getOptions();if(Va(o,e??{}))return i;io(i,"already-initialized")}return n.initialize({options:e})}function Mce(t,e){const n=(e==null?void 0:e.persistence)||[],r=(Array.isArray(n)?n:[n]).map(Ml);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(r,e==null?void 0:e.popupRedirectResolver)}function tq(t,e,n){const r=cr(t);
975Ve(/^https?:\/\//.test(e),r,"invalid-emulator-scheme");const i=!!(n!=null&&n.disableWarnings),o=nq(e),{host:s,port:a}=kce(e),l=a===null?"":`:${a}`,c={url:`${o}//${s}${l}/`},u=Object.freeze({host:s,port:a,protocol:o.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!r._canInitEmulator){Ve(r.config.emulator&&r.emulatorConfig,r,"emulator-config-failed"),Ve(Va(c,r.config.emulator)&&Va(u,r.emulatorConfig),r,"emulator-config-failed");return}r.config.emulator=c,r.emulatorConfig=u,r.settings.appVerificationDisabledForTesting=!0,Zs(s)?(mv(`${o}//${s}${l}`),rE("Auth",!0)):i||Pce()}function nq(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function kce(t){const e=nq(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const r=n[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){const o=i[1];return{host:o,port:iD(r.substr(o.length+1))}}else{const[o,s]=r.split(":");return{host:o,port:iD(s)}}}function iD(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function Pce(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 976 * @license 977 * Copyright 2020 Google LLC 978 * 979 * Licensed under the Apache License, Version 2.0 (the "License"); 980 * you may not use this file except in compliance with the License. 981 * You may obtain a copy of the License at 982 * 983 * http://www.apache.org/licenses/LICENSE-2.0 984 * 985 * Unless required by applicable law or agreed to in writing, software 986 * distributed under the License is distributed on an "AS IS" BASIS, 987 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 988 * See the License for the specific language governing permissions and 989 * limitations under the License. 990 */class sg{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Ca("not implemented")}_getIdTokenResponse(e){return Ca("not implemented")}_linkToIdToken(e,n){return Ca("not implemented")}_getReauthenticationResolver(e){return Ca("not implemented")}}/** 991 * @license 992 * Copyright 2020 Google LLC 993 * 994 * Licensed under the Apache License, Version 2.0 (the "License"); 995 * you may not use this file except in compliance with the License. 996 * You may obtain a copy of the License at 997 * 998 * http://www.apache.org/licenses/LICENSE-2.0 999 * 1000 * Unless required by applicable law or agreed to in writing, software 1001 * distributed under the License is distributed on an "AS IS" BASIS, 1002 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1003 * See the License for the specific language governing permissions and 1004 * limitations under the License. 1005 */async function rq(t,e){return Vn(t,"POST","/v1/accounts:resetPassword",zn(t,e))}async function Oce(t,e){return Vn(t,"POST","/v1/accounts:update",e)}async function Nce(t,e){return Vn(t,"POST","/v1/accounts:signUp",e)}async function Dce(t,e){return Vn(t,"POST","/v1/accounts:update",zn(t,e))}/** 1006 * @license 1007 * Copyright 2020 Google LLC 1008 * 1009 * Licensed under the Apache License, Version 2.0 (the "License"); 1010 * you may not use this file except in compliance with the License. 1011 * You may obtain a copy of the License at 1012 * 1013 * http://www.apache.org/licenses/LICENSE-2.0 1014 * 1015 * Unless required by applicable law or agreed to in writing, software 1016 * distributed under the License is distributed on an "AS IS" BASIS, 1017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1018 * See the License for the specific language governing permissions and 1019 * limitations under the License. 1020 */async function Lce(t,e){return ac(t,"POST","/v1/accounts:signInWithPassword",zn(t,e))}async function oE(t,e){return Vn(t,"POST","/v1/accounts:sendOobCode",zn(t,e))}async function zce(t,e){return oE(t,e)}async function Vce(t,e){return oE(t,e)}async function Bce(t,e){return oE(t,e)}async function $ce(t,e){return oE(t,e)}/** 1021 * @license 1022 * Copyright 2020 Google LLC 1023 * 1024 * Licensed under the Apache License, Version 2.0 (the "License");
1025 * you may not use this file except in compliance with the License. 1026 * You may obtain a copy of the License at 1027 * 1028 * http://www.apache.org/licenses/LICENSE-2.0 1029 * 1030 * Unless required by applicable law or agreed to in writing, software 1031 * distributed under the License is distributed on an "AS IS" BASIS, 1032 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1033 * See the License for the specific language governing permissions and 1034 * limitations under the License. 1035 */async function Fce(t,e){return ac(t,"POST","/v1/accounts:signInWithEmailLink",zn(t,e))}async function jce(t,e){return ac(t,"POST","/v1/accounts:signInWithEmailLink",zn(t,e))}/** 1036 * @license 1037 * Copyright 2020 Google LLC 1038 * 1039 * Licensed under the Apache License, Version 2.0 (the "License"); 1040 * you may not use this file except in compliance with the License. 1041 * You may obtain a copy of the License at 1042 * 1043 * http://www.apache.org/licenses/LICENSE-2.0 1044 * 1045 * Unless required by applicable law or agreed to in writing, software 1046 * distributed under the License is distributed on an "AS IS" BASIS, 1047 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1048 * See the License for the specific language governing permissions and 1049 * limitations under the License. 1050 */class cm extends sg{constructor(e,n,r,i=null){super("password",r),this._email=e,this._password=n,this._tenantId=i}static _fromEmailAndPassword(e,n){return new cm(e,n,"password")}static _fromEmailAndCode(e,n,r=null){return new cm(e,n,"emailLink",r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return bu(e,n,"signInWithPassword",Lce,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return Fce(e,{email:this._email,oobCode:this._password});default:io(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const r={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return bu(e,r,"signUpPassword",Nce,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return jce(e,{idToken:n,email:this._email,oobCode:this._password});default:io(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/** 1051 * @license 1052 * Copyright 2020 Google LLC 1053 * 1054 * Licensed under the Apache License, Version 2.0 (the "License"); 1055 * you may not use this file except in compliance with the License. 1056 * You may obtain a copy of the License at 1057 * 1058 * http://www.apache.org/licenses/LICENSE-2.0 1059 * 1060 * Unless required by applicable law or agreed to in writing, software 1061 * distributed under the License is distributed on an "AS IS" BASIS, 1062 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1063 * See the License for the specific language governing permissions and 1064 * limitations under the License. 1065 */async function Fl(t,e){return ac(t,"POST","/v1/accounts:signInWithIdp",zn(t,e))}/** 1066 * @license 1067 * Copyright 2020 Google LLC 1068 * 1069 * Licensed under the Apache License, Version 2.0 (the "License"); 1070 * you may not use this file except in compliance with the License. 1071 * You may obtain a copy of the License at 1072 * 1073 * http://www.apache.org/licenses/LICENSE-2.0 1074 * 1075 * Unless required by applicable law or agreed to in writing, software 1076 * distributed under the License is distributed on an "AS IS" BASIS, 1077 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1078 * See the License for the specific language governing permissions and 1079 * limitations under the License. 1080 */const Hce="http://localhost";class Ba extends sg{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new Ba(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
vendor: 4,348 bytes, lines 1080-1114
1080(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):io("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i,...o}=n;if(!r||!i)return null;const s=new Ba(r,i);return s.idToken=o.idToken||void 0,s.accessToken=o.accessToken||void 0,s.secret=o.secret,s.nonce=o.nonce,s.pendingToken=o.pendingToken||null,s}_getIdTokenResponse(e){const n=this.buildRequest();return Fl(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Fl(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Fl(e,n)}buildRequest(){const e={requestUri:Hce,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=ig(n)}return e}}/** 1081 * @license 1082 * Copyright 2020 Google LLC 1083 * 1084 * Licensed under the Apache License, Version 2.0 (the "License"); 1085 * you may not use this file except in compliance with the License. 1086 * You may obtain a copy of the License at 1087 * 1088 * http://www.apache.org/licenses/LICENSE-2.0 1089 * 1090 * Unless required by applicable law or agreed to in writing, software 1091 * distributed under the License is distributed on an "AS IS" BASIS, 1092 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1093 * See the License for the specific language governing permissions and 1094 * limitations under the License. 1095 */async function oD(t,e){return Vn(t,"POST","/v1/accounts:sendVerificationCode",zn(t,e))}async function Uce(t,e){return ac(t,"POST","/v1/accounts:signInWithPhoneNumber",zn(t,e))}async function qce(t,e){const n=await ac(t,"POST","/v1/accounts:signInWithPhoneNumber",zn(t,e));if(n.temporaryProof)throw x1(t,"account-exists-with-different-credential",n);return n}const Wce={USER_NOT_FOUND:"user-not-found"};async function Gce(t,e){const n={...e,operation:"REAUTH"};return ac(t,"POST","/v1/accounts:signInWithPhoneNumber",zn(t,n),Wce)}/** 1096 * @license 1097 * Copyright 2020 Google LLC 1098 * 1099 * Licensed under the Apache License, Version 2.0 (the "License"); 1100 * you may not use this file except in compliance with the License. 1101 * You may obtain a copy of the License at 1102 * 1103 * http://www.apache.org/licenses/LICENSE-2.0 1104 * 1105 * Unless required by applicable law or agreed to in writing, software 1106 * distributed under the License is distributed on an "AS IS" BASIS, 1107 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1108 * See the License for the specific language governing permissions and 1109 * limitations under the License. 1110 */class wu extends sg{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,n){return new wu({verificationId:e,verificationCode:n})}static _fromTokenResponse(e,n){return new wu({phoneNumber:e,temporaryProof:n})}_getIdTokenResponse(e){return Uce(e,this._makeVerificationRequest())}_linkToIdToken(e,n){return qce(e,{idToken:n,...this._makeVerificationRequest()})}_getReauthenticationResolver(e){return Gce(e,this._makeVerificationRequest())}_makeVerificationRequest(){const{temporaryProof:e,phoneNumber:n,verificationId:r,verificationCode:i}=this.params;return e&&n?{temporaryProof:e,phoneNumber:n}:{sessionInfo:r,code:i}}toJSON(){const e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){typeof e=="string"&&(e=JSON.parse(e));const{verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:o}=e;return!r&&!n&&!i&&!o?null:new wu({verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:o})}}/** 1111 * @license 1112 * Copyright 2020 Google LLC 1113 * 1114 * Licensed under the Apache License, Version 2.0 (the "License");
1115 * you may not use this file except in compliance with the License. 1116 * You may obtain a copy of the License at 1117 * 1118 * http://www.apache.org/licenses/LICENSE-2.0 1119 * 1120 * Unless required by applicable law or agreed to in writing, software 1121 * distributed under the License is distributed on an "AS IS" BASIS, 1122 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1123 * See the License for the specific language governing permissions and 1124 * limitations under the License. 1125 */function Kce(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Yce(t){const e=w1(S1(t)).link,n=e?w1(S1(e)).deep_link_id:null,r=w1(S1(t)).deep_link_id;return(r?w1(S1(r)).link:null)||r||n||e||t}class ag{constructor(e){const n=w1(S1(e)),r=n.apiKey??null,i=n.oobCode??null,o=Kce(n.mode??null);Ve(r&&i&&o,"argument-error"),this.apiKey=r,this.operation=o,this.code=i,this.continueUrl=n.continueUrl??null,this.languageCode=n.lang??null,this.tenantId=n.tenantId??null}static parseLink(e){const n=Yce(e);try{return new ag(n)}catch{return null}}}function Xce(t){return ag.parseLink(t)}/** 1126 * @license 1127 * Copyright 2020 Google LLC 1128 * 1129 * Licensed under the Apache License, Version 2.0 (the "License"); 1130 * you may not use this file except in compliance with the License. 1131 * You may obtain a copy of the License at 1132 * 1133 * http://www.apache.org/licenses/LICENSE-2.0 1134 * 1135 * Unless required by applicable law or agreed to in writing, software 1136 * distributed under the License is distributed on an "AS IS" BASIS, 1137 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1138 * See the License for the specific language governing permissions and 1139 * limitations under the License. 1140 */class Ju{constructor(){this.providerId=Ju.PROVIDER_ID}static credential(e,n){return cm._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const r=ag.parseLink(n);return Ve(r,"argument-error"),cm._fromEmailAndCode(e,r.code,r.tenantId)}}Ju.PROVIDER_ID="password";Ju.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Ju.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 1141 * @license 1142 * Copyright 2020 Google LLC 1143 * 1144 * Licensed under the Apache License, Version 2.0 (the "License"); 1145 * you may not use this file except in compliance with the License. 1146 * You may obtain a copy of the License at 1147 * 1148 * http://www.apache.org/licenses/LICENSE-2.0 1149 * 1150 * Unless required by applicable law or agreed to in writing, software 1151 * distributed under the License is distributed on an "AS IS" BASIS, 1152 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1153 * See the License for the specific language governing permissions and 1154 * limitations under the License. 1155 */class lc{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 1156 * @license 1157 * Copyright 2019 Google LLC 1158 * 1159 * Licensed under the Apache License, Version 2.0 (the "License"); 1160 * you may not use this file except in compliance with the License. 1161 * You may obtain a copy of the License at 1162 * 1163 * http://www.apache.org/licenses/LICENSE-2.0 1164 * 1165 * Unless required by applicable law or agreed to in writing, software 1166 * distributed under the License is distributed on an "AS IS" BASIS, 1167 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1168 * See the License for the specific language governing permissions and 1169 * limitations under the License. 1170 */class lg extends lc{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}class iy extends lg{static credentialFromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;return Ve("providerId"in n&&"signInMethod"in n,"argument-error"),Ba._fromParams(n)}credential(e){return this._credential({...e,nonce:e.rawNonce})}_credential(e){return Ve(e.idToken||e.accessToken,"argument-error"),Ba._fromParams({...e,providerId:this.providerId,sign
vendor: 4,093 bytes, lines 1170-1215
1170InMethod:this.providerId})}static credentialFromResult(e){return iy.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return iy.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:o,nonce:s,providerId:a}=e;if(!r&&!i&&!n&&!o||!a)return null;try{return new iy(a)._credential({idToken:n,accessToken:r,nonce:s,pendingToken:o})}catch{return null}}}/** 1171 * @license 1172 * Copyright 2020 Google LLC 1173 * 1174 * Licensed under the Apache License, Version 2.0 (the "License"); 1175 * you may not use this file except in compliance with the License. 1176 * You may obtain a copy of the License at 1177 * 1178 * http://www.apache.org/licenses/LICENSE-2.0 1179 * 1180 * Unless required by applicable law or agreed to in writing, software 1181 * distributed under the License is distributed on an "AS IS" BASIS, 1182 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1183 * See the License for the specific language governing permissions and 1184 * limitations under the License. 1185 */class xl extends lg{constructor(){super("facebook.com")}static credential(e){return Ba._fromParams({providerId:xl.PROVIDER_ID,signInMethod:xl.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return xl.credentialFromTaggedObject(e)}static credentialFromError(e){return xl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return xl.credential(e.oauthAccessToken)}catch{return null}}}xl.FACEBOOK_SIGN_IN_METHOD="facebook.com";xl.PROVIDER_ID="facebook.com";/** 1186 * @license 1187 * Copyright 2020 Google LLC 1188 * 1189 * Licensed under the Apache License, Version 2.0 (the "License"); 1190 * you may not use this file except in compliance with the License. 1191 * You may obtain a copy of the License at 1192 * 1193 * http://www.apache.org/licenses/LICENSE-2.0 1194 * 1195 * Unless required by applicable law or agreed to in writing, software 1196 * distributed under the License is distributed on an "AS IS" BASIS, 1197 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1198 * See the License for the specific language governing permissions and 1199 * limitations under the License. 1200 */class El extends lg{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return Ba._fromParams({providerId:El.PROVIDER_ID,signInMethod:El.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return El.credentialFromTaggedObject(e)}static credentialFromError(e){return El.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:r}=e;if(!n&&!r)return null;try{return El.credential(n,r)}catch{return null}}}El.GOOGLE_SIGN_IN_METHOD="google.com";El.PROVIDER_ID="google.com";/** 1201 * @license 1202 * Copyright 2020 Google LLC 1203 * 1204 * Licensed under the Apache License, Version 2.0 (the "License"); 1205 * you may not use this file except in compliance with the License. 1206 * You may obtain a copy of the License at 1207 * 1208 * http://www.apache.org/licenses/LICENSE-2.0 1209 * 1210 * Unless required by applicable law or agreed to in writing, software 1211 * distributed under the License is distributed on an "AS IS" BASIS, 1212 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1213 * See the License for the specific language governing permissions and 1214 * limitations under the License. 1215 */class Tl extends lg{constructor(){super("github.com")}static credential(e){return Ba._fromParams({providerId:Tl.PROVIDER_ID,signInMethod:Tl.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Tl.credentialFromTaggedObject(e)}static credentialFromError(e){return Tl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Tl.credential(e.oauthAccessToken)}catch{return null}}}Tl.GITHUB_SIGN_IN_METHOD="github.com";
1215Tl.PROVIDER_ID="github.com";/** 1216 * @license 1217 * Copyright 2020 Google LLC 1218 * 1219 * Licensed under the Apache License, Version 2.0 (the "License"); 1220 * you may not use this file except in compliance with the License. 1221 * You may obtain a copy of the License at 1222 * 1223 * http://www.apache.org/licenses/LICENSE-2.0 1224 * 1225 * Unless required by applicable law or agreed to in writing, software 1226 * distributed under the License is distributed on an "AS IS" BASIS, 1227 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1228 * See the License for the specific language governing permissions and 1229 * limitations under the License. 1230 */const Qce="http://localhost";class n0 extends sg{constructor(e,n){super(e,e),this.pendingToken=n}_getIdTokenResponse(e){const n=this.buildRequest();return Fl(e,n)}_linkToIdToken(e,n){const r=this.buildRequest();return r.idToken=n,Fl(e,r)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,Fl(e,n)}toJSON(){return{signInMethod:this.signInMethod,providerId:this.providerId,pendingToken:this.pendingToken}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:r,signInMethod:i,pendingToken:o}=n;return!r||!i||!o||r!==i?null:new n0(r,o)}static _create(e,n){return new n0(e,n)}buildRequest(){return{requestUri:Qce,returnSecureToken:!0,pendingToken:this.pendingToken}}}/** 1231 * @license 1232 * Copyright 2020 Google LLC 1233 * 1234 * Licensed under the Apache License, Version 2.0 (the "License"); 1235 * you may not use this file except in compliance with the License. 1236 * You may obtain a copy of the License at 1237 * 1238 * http://www.apache.org/licenses/LICENSE-2.0 1239 * 1240 * Unless required by applicable law or agreed to in writing, software 1241 * distributed under the License is distributed on an "AS IS" BASIS, 1242 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1243 * See the License for the specific language governing permissions and 1244 * limitations under the License. 1245 */const Jce="saml.";class fS extends lc{constructor(e){Ve(e.startsWith(Jce),"argument-error"),super(e)}static credentialFromResult(e){return fS.samlCredentialFromTaggedObject(e)}static credentialFromError(e){return fS.samlCredentialFromTaggedObject(e.customData||{})}static credentialFromJSON(e){const n=n0.fromJSON(e);return Ve(n,"argument-error"),n}static samlCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{pendingToken:n,providerId:r}=e;if(!n||!r)return null;try{return n0._create(r,n)}catch{return null}}}/** 1246 * @license 1247 * Copyright 2020 Google LLC 1248 * 1249 * Licensed under the Apache License, Version 2.0 (the "License"); 1250 * you may not use this file except in compliance with the License. 1251 * You may obtain a copy of the License at 1252 * 1253 * http://www.apache.org/licenses/LICENSE-2.0 1254 * 1255 * Unless required by applicable law or agreed to in writing, software 1256 * distributed under the License is distributed on an "AS IS" BASIS, 1257 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1258 * See the License for the specific language governing permissions and 1259 * limitations under the License. 1260 */class Cl extends lg{constructor(){super("twitter.com")}static credential(e,n){return Ba._fromParams({providerId:Cl.PROVIDER_ID,signInMethod:Cl.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return Cl.credentialFromTaggedObject(e)}static credentialFromError(e){return Cl.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:r}=e;if(!n||!r)return null;try{return Cl.credential(n,r)}catch{return null}}}Cl.TWITTER_SIGN_IN_METHOD="twitter.com";Cl.PROVIDER_ID="twitter.com";/** 1261 * @license 1262 * Copyright 2020 Google LLC 1263 * 1264 * Licensed under the Apache License, Version 2.0 (the "License"); 1265 * you may not use this file except in compliance with the License. 1266 * You may obtain a copy of the License at 1267 * 1268 * http://www.apache.org/licenses/LICENSE-2.0 1269 * 1270 * Unless required by applicable law or agreed to in writing, software 1271 * distributed under the License is distributed on an "AS IS" BASIS, 1272 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1273 * See the License for the specific language governing permissions and 1274 * limitations under the License. 1275 */async function iq(t,e){return ac(t,"POST","/v1/accounts:signUp",zn(t,e))}/** 1276 * @license 1277 * Copyright 2020 Google LLC 1278 * 1279 * Licensed under the Apache License, Version 2.0 (the "License");
1280 * you may not use this file except in compliance with the License. 1281 * You may obtain a copy of the License at 1282 * 1283 * http://www.apache.org/licenses/LICENSE-2.0 1284 * 1285 * Unless required by applicable law or agreed to in writing, software 1286 * distributed under the License is distributed on an "AS IS" BASIS, 1287 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1288 * See the License for the specific language governing permissions and 1289 * limitations under the License. 1290 */class ws{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,r,i=!1){const o=await Vs._fromIdTokenResponse(e,r,i),s=sD(r);return new ws({user:o,providerId:s,_tokenResponse:r,operationType:n})}static async _forOperation(e,n,r){await e._updateTokensIfNecessary(r,!0);const i=sD(r);return new ws({user:e,providerId:i,_tokenResponse:r,operationType:n})}}function sD(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 1291 * @license 1292 * Copyright 2020 Google LLC 1293 * 1294 * Licensed under the Apache License, Version 2.0 (the "License"); 1295 * you may not use this file except in compliance with the License. 1296 * You may obtain a copy of the License at 1297 * 1298 * http://www.apache.org/licenses/LICENSE-2.0 1299 * 1300 * Unless required by applicable law or agreed to in writing, software 1301 * distributed under the License is distributed on an "AS IS" BASIS, 1302 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1303 * See the License for the specific language governing permissions and 1304 * limitations under the License. 1305 */async function Zce(t){var i;if(On(t.app))return Promise.reject(Wr(t));const e=cr(t);if(await e._initializationPromise,(i=e.currentUser)!=null&&i.isAnonymous)return new ws({user:e.currentUser,providerId:null,operationType:"signIn"});const n=await iq(e,{returnSecureToken:!0}),r=await ws._fromIdTokenResponse(e,"signIn",n,!0);return await e._updateCurrentUser(r.user),r}/** 1306 * @license 1307 * Copyright 2020 Google LLC 1308 * 1309 * Licensed under the Apache License, Version 2.0 (the "License"); 1310 * you may not use this file except in compliance with the License. 1311 * You may obtain a copy of the License at 1312 * 1313 * http://www.apache.org/licenses/LICENSE-2.0 1314 * 1315 * Unless required by applicable law or agreed to in writing, software 1316 * distributed under the License is distributed on an "AS IS" BASIS, 1317 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1318 * See the License for the specific language governing permissions and 1319 * limitations under the License. 1320 */class hS extends ea{constructor(e,n,r,i){super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,hS.prototype),this.customData={appName:e.name,tenantId:e.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(e,n,r,i){return new hS(e,n,r,i)}}function oq(t,e,n,r){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(o=>{throw o.code==="auth/multi-factor-auth-required"?hS._fromErrorAndOperation(t,o,e,r):o})}/** 1321 * @license 1322 * Copyright 2020 Google LLC 1323 * 1324 * Licensed under the Apache License, Version 2.0 (the "License"); 1325 * you may not use this file except in compliance with the License. 1326 * You may obtain a copy of the License at 1327 * 1328 * http://www.apache.org/licenses/LICENSE-2.0 1329 * 1330 * Unless required by applicable law or agreed to in writing, software 1331 * distributed under the License is distributed on an "AS IS" BASIS, 1332 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1333 * See the License for the specific language governing permissions and 1334 * limitations under the License. 1335 */function sq(t){return new Set(t.map(({providerId:e})=>e).filter(e=>!!e))}/** 1336 * @license 1337 * Copyright 2019 Google LLC 1338 * 1339 * Licensed under the Apache License, Version 2.0 (the "License"); 1340 * you may not use this file except in compliance with the License. 1341 * You may obtain a copy of the License at 1342 * 1343 * http://www.apache.org/licenses/LICENSE-2.0 1344 * 1345 * Unless required by applicable law or agreed to in writing, softw
1345are 1346 * distributed under the License is distributed on an "AS IS" BASIS, 1347 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1348 * See the License for the specific language governing permissions and 1349 * limitations under the License. 1350 */async function eue(t,e){const n=Ze(t);await sE(!0,n,e);const{providerUserInfo:r}=await ice(n.auth,{idToken:await n.getIdToken(),deleteProvider:[e]}),i=sq(r||[]);return n.providerData=n.providerData.filter(o=>i.has(o.providerId)),i.has("phone")||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function AM(t,e,n=!1){const r=await Zl(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return ws._forOperation(t,"link",r)}async function sE(t,e,n){await t0(e);const r=sq(e.providerData),i=t===!1?"provider-already-linked":"no-such-provider";Ve(r.has(n)===t,e.auth,i)}/** 1351 * @license 1352 * Copyright 2019 Google LLC 1353 * 1354 * Licensed under the Apache License, Version 2.0 (the "License"); 1355 * you may not use this file except in compliance with the License. 1356 * You may obtain a copy of the License at 1357 * 1358 * http://www.apache.org/licenses/LICENSE-2.0 1359 * 1360 * Unless required by applicable law or agreed to in writing, software 1361 * distributed under the License is distributed on an "AS IS" BASIS, 1362 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1363 * See the License for the specific language governing permissions and 1364 * limitations under the License. 1365 */async function aq(t,e,n=!1){const{auth:r}=t;if(On(r.app))return Promise.reject(Wr(r));const i="reauthenticate";try{const o=await Zl(t,oq(r,i,e,t),n);Ve(o.idToken,r,"internal-error");const s=iE(o.idToken);Ve(s,r,"internal-error");const{sub:a}=s;return Ve(t.uid===a,r,"user-mismatch"),ws._forOperation(t,i,o)}catch(o){throw(o==null?void 0:o.code)==="auth/user-not-found"&&io(r,"user-mismatch"),o}}/** 1366 * @license 1367 * Copyright 2020 Google LLC 1368 * 1369 * Licensed under the Apache License, Version 2.0 (the "License"); 1370 * you may not use this file except in compliance with the License. 1371 * You may obtain a copy of the License at 1372 * 1373 * http://www.apache.org/licenses/LICENSE-2.0 1374 * 1375 * Unless required by applicable law or agreed to in writing, software 1376 * distributed under the License is distributed on an "AS IS" BASIS, 1377 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1378 * See the License for the specific language governing permissions and 1379 * limitations under the License. 1380 */async function lq(t,e,n=!1){if(On(t.app))return Promise.reject(Wr(t));const r="signIn",i=await oq(t,r,e),o=await ws._fromIdTokenResponse(t,r,i);return n||await t._updateCurrentUser(o.user),o}async function aE(t,e){return lq(cr(t),e)}async function cq(t,e){const n=Ze(t);return await sE(!1,n,e.providerId),AM(n,e)}async function uq(t,e){return aq(Ze(t),e)}/** 1381 * @license 1382 * Copyright 2020 Google LLC 1383 * 1384 * Licensed under the Apache License, Version 2.0 (the "License"); 1385 * you may not use this file except in compliance with the License. 1386 * You may obtain a copy of the License at 1387 * 1388 * http://www.apache.org/licenses/LICENSE-2.0 1389 * 1390 * Unless required by applicable law or agreed to in writing, software 1391 * distributed under the License is distributed on an "AS IS" BASIS, 1392 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1393 * See the License for the specific language governing permissions and 1394 * limitations under the License. 1395 */async function tue(t,e){return ac(t,"POST","/v1/accounts:signInWithCustomToken",zn(t,e))}/** 1396 * @license 1397 * Copyright 2020 Google LLC 1398 * 1399 * Licensed under the Apache License, Version 2.0 (the "License"); 1400 * you may not use this file except in compliance with the License. 1401 * You may obtain a copy of the License at 1402 * 1403 * http://www.apache.org/licenses/LICENSE-2.0 1404 * 1405 * Unless required by applicable law or agreed to in writing, software 1406 * distributed under the License is distributed on an "AS IS" BASIS, 1407 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1408 * See the License for the specific language governing permissions and 1409 * limitations under the License. 1410 */async function nue(t,e){if(On(t.app))return Promise.reject(Wr(t));const n=cr(t),r=await tue(n,{token:e,returnSecureToken:!0}),i=await ws._fromIdTokenResponse(n,"signIn",r);return await n._updateCurrentUser(i.user),i}/** 1411 * @license 1412 * Copyright 2020 Google LLC 1413 * 1414 * Licensed under the Apache License, Version 2.0 (the "License");
1415 * you may not use this file except in compliance with the License. 1416 * You may obtain a copy of the License at 1417 * 1418 * http://www.apache.org/licenses/LICENSE-2.0 1419 * 1420 * Unless required by applicable law or agreed to in writing, software 1421 * distributed under the License is distributed on an "AS IS" BASIS, 1422 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1423 * See the License for the specific language governing permissions and 1424 * limitations under the License. 1425 */class wv{constructor(e,n){this.factorId=e,this.uid=n.mfaEnrollmentId,this.enrollmentTime=new Date(n.enrolledAt).toUTCString(),this.displayName=n.displayName}static _fromServerResponse(e,n){return"phoneInfo"in n?IM._fromServerResponse(e,n):"totpInfo"in n?RM._fromServerResponse(e,n):io(e,"internal-error")}}class IM extends wv{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,n){return new IM(n)}}class RM extends wv{constructor(e){super("totp",e)}static _fromServerResponse(e,n){return new RM(n)}}/** 1426 * @license 1427 * Copyright 2020 Google LLC 1428 * 1429 * Licensed under the Apache License, Version 2.0 (the "License"); 1430 * you may not use this file except in compliance with the License. 1431 * You may obtain a copy of the License at 1432 * 1433 * http://www.apache.org/licenses/LICENSE-2.0 1434 * 1435 * Unless required by applicable law or agreed to in writing, software 1436 * distributed under the License is distributed on an "AS IS" BASIS, 1437 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1438 * See the License for the specific language governing permissions and 1439 * limitations under the License. 1440 */function lE(t,e,n){var r;Ve(((r=n.url)==null?void 0:r.length)>0,t,"invalid-continue-uri"),Ve(typeof n.dynamicLinkDomain>"u"||n.dynamicLinkDomain.length>0,t,"invalid-dynamic-link-domain"),Ve(typeof n.linkDomain>"u"||n.linkDomain.length>0,t,"invalid-hosting-link-domain"),e.continueUrl=n.url,e.dynamicLinkDomain=n.dynamicLinkDomain,e.linkDomain=n.linkDomain,e.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(Ve(n.iOS.bundleId.length>0,t,"missing-ios-bundle-id"),e.iOSBundleId=n.iOS.bundleId),n.android&&(Ve(n.android.packageName.length>0,t,"missing-android-pkg-name"),e.androidInstallApp=n.android.installApp,e.androidMinimumVersionCode=n.android.minimumVersion,e.androidPackageName=n.android.packageName)}/** 1441 * @license 1442 * Copyright 2020 Google LLC 1443 * 1444 * Licensed under the Apache License, Version 2.0 (the "License"); 1445 * you may not use this file except in compliance with the License. 1446 * You may obtain a copy of the License at 1447 * 1448 * http://www.apache.org/licenses/LICENSE-2.0 1449 * 1450 * Unless required by applicable law or agreed to in writing, software 1451 * distributed under the License is distributed on an "AS IS" BASIS, 1452 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1453 * See the License for the specific language governing permissions and 1454 * limitations under the License. 1455 */async function MM(t){const e=cr(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}async function rue(t,e,n){const r=cr(t),i={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};n&&lE(r,i,n),await bu(r,i,"getOobCode",Vce,"EMAIL_PASSWORD_PROVIDER")}async function iue(t,e,n){await rq(Ze(t),{oobCode:e,newPassword:n}).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&MM(t),r})}async function oue(t,e){await Dce(Ze(t),{oobCode:e})}async function dq(t,e){const n=Ze(t),r=await rq(n,{oobCode:e}),i=r.requestType;switch(Ve(i,n,"internal-error"),i){case"EMAIL_SIGNIN":break;case"VERIFY_AND_CHANGE_EMAIL":Ve(r.newEmail,n,"internal-error");break;case"REVERT_SECOND_FACTOR_ADDITION":Ve(r.mfaInfo,n,"internal-error");default:Ve(r.email,n,"internal-error")}let o=null;return r.mfaInfo&&(o=wv._fromServerResponse(cr(n),r.mfaInfo)),{data:{email:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.newEmail:r.email)||null,previousEmail:(r.requestType==="VERIFY_AND_CHANGE_EMAIL"?r.email:r.newEmail)||null,multiFactorInfo:o},operation:i}}async function sue(t,e){const{data:n}=await dq(Ze(t),e);return n.email}async function aue(t,e,n){if(On(t.app))return Promise.reject(Wr(t));const r=cr(t),s=await bu(r,{returnSecureToken:!0,email:e,password:n,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",iq,"EMAIL_PASSWORD_PROVIDER").catch(l=>{throw l.code==="auth/password-does-not-meet-requirements"&&MM(t),l}),a=await ws._fromIdTokenResponse(r,"signIn",s);return await r._updateCurrentUser(a.user),a}function lue(t,e,n){return On(t.app)?Promise.reject(Wr(t)):aE(Ze(t),Ju.credential(e,n)).catch(async r=>{throw r.code==="auth/password-does-not-meet-requirements"&&MM(t),r})}/** 1456 * @license 1457 * Copyright 2020 Google LLC 1458 * 1459 * Licensed under the Apache License, Version 2.0 (the "License");
1460 * you may not use this file except in compliance with the License. 1461 * You may obtain a copy of the License at 1462 * 1463 * http://www.apache.org/licenses/LICENSE-2.0 1464 * 1465 * Unless required by applicable law or agreed to in writing, software 1466 * distributed under the License is distributed on an "AS IS" BASIS, 1467 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1468 * See the License for the specific language governing permissions and 1469 * limitations under the License. 1470 */async function cue(t,e,n){const r=cr(t),i={requestType:"EMAIL_SIGNIN",email:e,clientType:"CLIENT_TYPE_WEB"};function o(s,a){Ve(a.handleCodeInApp,r,"argument-error"),a&&lE(r,s,a)}o(i,n),await bu(r,i,"getOobCode",Bce,"EMAIL_PASSWORD_PROVIDER")}function uue(t,e){const n=ag.parseLink(e);return(n==null?void 0:n.operation)==="EMAIL_SIGNIN"}async function due(t,e,n){if(On(t.app))return Promise.reject(Wr(t));const r=Ze(t),i=Ju.credentialWithLink(e,n||e0());return Ve(i._tenantId===(r.tenantId||null),r,"tenant-id-mismatch"),aE(r,i)}/** 1471 * @license 1472 * Copyright 2020 Google LLC 1473 * 1474 * Licensed under the Apache License, Version 2.0 (the "License"); 1475 * you may not use this file except in compliance with the License. 1476 * You may obtain a copy of the License at 1477 * 1478 * http://www.apache.org/licenses/LICENSE-2.0 1479 * 1480 * Unless required by applicable law or agreed to in writing, software 1481 * distributed under the License is distributed on an "AS IS" BASIS, 1482 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1483 * See the License for the specific language governing permissions and 1484 * limitations under the License. 1485 */async function fue(t,e){return Vn(t,"POST","/v1/accounts:createAuthUri",zn(t,e))}/** 1486 * @license 1487 * Copyright 2020 Google LLC 1488 * 1489 * Licensed under the Apache License, Version 2.0 (the "License"); 1490 * you may not use this file except in compliance with the License. 1491 * You may obtain a copy of the License at 1492 * 1493 * http://www.apache.org/licenses/LICENSE-2.0 1494 * 1495 * Unless required by applicable law or agreed to in writing, software 1496 * distributed under the License is distributed on an "AS IS" BASIS, 1497 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1498 * See the License for the specific language governing permissions and 1499 * limitations under the License. 1500 */async function hue(t,e){const n=EM()?e0():"http://localhost",r={identifier:e,continueUri:n},{signinMethods:i}=await fue(Ze(t),r);return i||[]}async function pue(t,e){const n=Ze(t),i={requestType:"VERIFY_EMAIL",idToken:await t.getIdToken()};e&&lE(n.auth,i,e);const{email:o}=await zce(n.auth,i);o!==t.email&&await t.reload()}async function mue(t,e,n){const r=Ze(t),o={requestType:"VERIFY_AND_CHANGE_EMAIL",idToken:await t.getIdToken(),newEmail:e};n&&lE(r.auth,o,n);const{email:s}=await $ce(r.auth,o);s!==t.email&&await t.reload()}/** 1501 * @license 1502 * Copyright 2020 Google LLC 1503 * 1504 * Licensed under the Apache License, Version 2.0 (the "License"); 1505 * you may not use this file except in compliance with the License. 1506 * You may obtain a copy of the License at 1507 * 1508 * http://www.apache.org/licenses/LICENSE-2.0 1509 * 1510 * Unless required by applicable law or agreed to in writing, software 1511 * distributed under the License is distributed on an "AS IS" BASIS, 1512 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1513 * See the License for the specific language governing permissions and 1514 * limitations under the License. 1515 */async function gue(t,e){return Vn(t,"POST","/v1/accounts:update",e)}/** 1516 * @license 1517 * Copyright 2020 Google LLC 1518 * 1519 * Licensed under the Apache License, Version 2.0 (the "License"); 1520 * you may not use this file except in compliance with the License. 1521 * You may obtain a copy of the License at 1522 * 1523 * http://www.apache.org/licenses/LICENSE-2.0 1524 * 1525 * Unless required by applicable law or agreed to in writing, software 1526 * distributed under the License is distributed on an "AS IS" BASIS, 1527 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1528 * See the License for the specific language governing permissions and 1529 * limitations under the License. 1530 */async function yue(t,{displayName:e,photoURL:n}){if(e===void 0&&n===void 0)return;const r=Ze(t),o={idToken:await r.getIdToken(),displayName:e,photoUrl:n,returnSecureToken:!0},s=await Zl(r,gue(r.auth,o));r.displayName=s.displayName||null,r.photoURL=s.photoUrl||null;const a=r.providerData.find(({providerId:l})=>l==="password");a&&(a.displayName=r.displayName,a.photoURL=r.photoURL),await r._updateTokensIfNecessary(s)}function vue(t,e){const n=Ze(t);return On(n.auth.app)?Promise.reject(Wr(n.auth)):fq(n,e,null)}function bue(t,e){return fq(Ze(t),null,e)}async function fq(t,e,n){const{auth:r}=t,o={idToken:await t.getIdToken(),returnSecureToken:!0};e&&(o.email=e),n&&(o.password=n);const s=await Zl(t,Oce(r,o));await t._updateTokensIfNecessary(s,!0)}/** 1531 * @license 1532 * Copyright 2019 Google LLC 1533 * 1534 * Licensed under the Apache License, Version 2.0 (the "License");
1535 * you may not use this file except in compliance with the License. 1536 * You may obtain a copy of the License at 1537 * 1538 * http://www.apache.org/licenses/LICENSE-2.0 1539 * 1540 * Unless required by applicable law or agreed to in writing, software 1541 * distributed under the License is distributed on an "AS IS" BASIS, 1542 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1543 * See the License for the specific language governing permissions and 1544 * limitations under the License. 1545 */function wue(t){var i,o;if(!t)return null;const{providerId:e}=t,n=t.rawUserInfo?JSON.parse(t.rawUserInfo):{},r=t.isNewUser||t.kind==="identitytoolkit#SignupNewUserResponse";if(!e&&(t!=null&&t.idToken)){const s=(o=(i=iE(t.idToken))==null?void 0:i.firebase)==null?void 0:o.sign_in_provider;if(s){const a=s!=="anonymous"&&s!=="custom"?s:null;return new Op(r,a)}}if(!e)return null;switch(e){case"facebook.com":return new Sue(r,n);case"github.com":return new xue(r,n);case"google.com":return new Eue(r,n);case"twitter.com":return new Tue(r,n,t.screenName||null);case"custom":case"anonymous":return new Op(r,null);default:return new Op(r,e,n)}}class Op{constructor(e,n,r={}){this.isNewUser=e,this.providerId=n,this.profile=r}}class hq extends Op{constructor(e,n,r,i){super(e,n,r),this.username=i}}class Sue extends Op{constructor(e,n){super(e,"facebook.com",n)}}class xue extends hq{constructor(e,n){super(e,"github.com",n,typeof(n==null?void 0:n.login)=="string"?n==null?void 0:n.login:null)}}class Eue extends Op{constructor(e,n){super(e,"google.com",n)}}class Tue extends hq{constructor(e,n,r){super(e,"twitter.com",n,r)}}function Cue(t){const{user:e,_tokenResponse:n}=t;return e.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:wue(n)}/** 1546 * @license 1547 * Copyright 2020 Google LLC 1548 * 1549 * Licensed under the Apache License, Version 2.0 (the "License"); 1550 * you may not use this file except in compliance with the License. 1551 * You may obtain a copy of the License at 1552 * 1553 * http://www.apache.org/licenses/LICENSE-2.0 1554 * 1555 * Unless required by applicable law or agreed to in writing, software 1556 * distributed under the License is distributed on an "AS IS" BASIS, 1557 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1558 * See the License for the specific language governing permissions and 1559 * limitations under the License. 1560 */function _ue(t,e){return Ze(t).setPersistence(e)}function Aue(t){return ZU(t)}async function Iue(t,e){return cr(t).validatePassword(e)}function pq(t,e,n,r){return Ze(t).onIdTokenChanged(e,n,r)}function mq(t,e,n){return Ze(t).beforeAuthStateChanged(e,n)}function Rue(t,e,n,r){return Ze(t).onAuthStateChanged(e,n,r)}function Mue(t){Ze(t).useDeviceLanguage()}function kue(t,e){return Ze(t).updateCurrentUser(e)}function Pue(t){return Ze(t).signOut()}function Oue(t,e){return cr(t).revokeAccessToken(e)}async function Nue(t){return Ze(t).delete()}/** 1561 * @license 1562 * Copyright 2020 Google LLC 1563 * 1564 * Licensed under the Apache License, Version 2.0 (the "License"); 1565 * you may not use this file except in compliance with the License. 1566 * You may obtain a copy of the License at 1567 * 1568 * http://www.apache.org/licenses/LICENSE-2.0 1569 * 1570 * Unless required by applicable law or agreed to in writing, software 1571 * distributed under the License is distributed on an "AS IS" BASIS, 1572 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1573 * See the License for the specific language governing permissions and 1574 * limitations under the License. 1575 */class Wd{constructor(e,n,r){this.type=e,this.credential=n,this.user=r}static _fromIdtoken(e,n){return new Wd("enroll",e,n)}static _fromMfaPendingCredential(e){return new Wd("signin",e)}toJSON(){return{multiFactorSession:{[this.type==="enroll"?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(e){var n,r;if(e!=null&&e.multiFactorSession){if((n=e.multiFactorSession)!=null&&n.pendingCredential)return Wd._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if((r=e.multiFactorSession)!=null&&r.idToken)return Wd._fromIdtoken(e.multiFactorSession.idToken)}return null}}/** 1576 * @license 1577 * Copyright 2020 Google LLC 1578 * 1579 * Licensed under the Apache License, Version 2.0 (the "License");
1580 * you may not use this file except in compliance with the License. 1581 * You may obtain a copy of the License at 1582 * 1583 * http://www.apache.org/licenses/LICENSE-2.0 1584 * 1585 * Unless required by applicable law or agreed to in writing, software 1586 * distributed under the License is distributed on an "AS IS" BASIS, 1587 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1588 * See the License for the specific language governing permissions and 1589 * limitations under the License. 1590 */class kM{constructor(e,n,r){this.session=e,this.hints=n,this.signInResolver=r}static _fromError(e,n){const r=cr(e),i=n.customData._serverResponse,o=(i.mfaInfo||[]).map(a=>wv._fromServerResponse(r,a));Ve(i.mfaPendingCredential,r,"internal-error");const s=Wd._fromMfaPendingCredential(i.mfaPendingCredential);return new kM(s,o,async a=>{const l=await a._process(r,s);delete i.mfaInfo,delete i.mfaPendingCredential;const c={...i,idToken:l.idToken,refreshToken:l.refreshToken};switch(n.operationType){case"signIn":const u=await ws._fromIdTokenResponse(r,n.operationType,c);return await r._updateCurrentUser(u.user),u;case"reauthenticate":return Ve(n.user,r,"internal-error"),ws._forOperation(n.user,n.operationType,c);default:io(r,"internal-error")}})}async resolveSignIn(e){const n=e;return this.signInResolver(n)}}function Due(t,e){var i;const n=Ze(t),r=e;return Ve(e.customData.operationType,n,"argument-error"),Ve((i=r.customData._serverResponse)==null?void 0:i.mfaPendingCredential,n,"argument-error"),kM._fromError(n,r)}/** 1591 * @license 1592 * Copyright 2020 Google LLC 1593 * 1594 * Licensed under the Apache License, Version 2.0 (the "License"); 1595 * you may not use this file except in compliance with the License. 1596 * You may obtain a copy of the License at 1597 * 1598 * http://www.apache.org/licenses/LICENSE-2.0 1599 * 1600 * Unless required by applicable law or agreed to in writing, software 1601 * distributed under the License is distributed on an "AS IS" BASIS, 1602 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1603 * See the License for the specific language governing permissions and 1604 * limitations under the License. 1605 */function aD(t,e){return Vn(t,"POST","/v2/accounts/mfaEnrollment:start",zn(t,e))}function Lue(t,e){return Vn(t,"POST","/v2/accounts/mfaEnrollment:finalize",zn(t,e))}function zue(t,e){return Vn(t,"POST","/v2/accounts/mfaEnrollment:start",zn(t,e))}function Vue(t,e){return Vn(t,"POST","/v2/accounts/mfaEnrollment:finalize",zn(t,e))}function Bue(t,e){return Vn(t,"POST","/v2/accounts/mfaEnrollment:withdraw",zn(t,e))}class PM{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(n=>{n.mfaInfo&&(this.enrolledFactors=n.mfaInfo.map(r=>wv._fromServerResponse(e.auth,r)))})}static _fromUser(e){return new PM(e)}async getSession(){return Wd._fromIdtoken(await this.user.getIdToken(),this.user)}
1605async enroll(e,n){const r=e,i=await this.getSession(),o=await Zl(this.user,r._process(this.user.auth,i,n));return await this.user._updateTokensIfNecessary(o),this.user.reload()}async unenroll(e){const n=typeof e=="string"?e:e.uid,r=await this.user.getIdToken();try{const i=await Zl(this.user,Bue(this.user.auth,{idToken:r,mfaEnrollmentId:n}));this.enrolledFactors=this.enrolledFactors.filter(({uid:o})=>o!==n),await this.user._updateTokensIfNecessary(i),await this.user.reload()}catch(i){throw i}}}const $_=new WeakMap;function $ue(t){const e=Ze(t);return $_.has(e)||$_.set(e,PM._fromUser(e)),$_.get(e)}const pS="__sak";/** 1606 * @license 1607 * Copyright 2019 Google LLC 1608 * 1609 * Licensed under the Apache License, Version 2.0 (the "License"); 1610 * you may not use this file except in compliance with the License. 1611 * You may obtain a copy of the License at 1612 * 1613 * http://www.apache.org/licenses/LICENSE-2.0 1614 * 1615 * Unless required by applicable law or agreed to in writing, software 1616 * distributed under the License is distributed on an "AS IS" BASIS, 1617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1618 * See the License for the specific language governing permissions and 1619 * limitations under the License. 1620 */class gq{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(pS,"1"),this.storage.removeItem(pS),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1621 * @license 1622 * Copyright 2020 Google LLC 1623 * 1624 * Licensed under the Apache License, Version 2.0 (the "License"); 1625 * you may not use this file except in compliance with the License. 1626 * You may obtain a copy of the License at 1627 * 1628 * http://www.apache.org/licenses/LICENSE-2.0 1629 * 1630 * Unless required by applicable law or agreed to in writing, software 1631 * distributed under the License is distributed on an "AS IS" BASIS, 1632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1633 * See the License for the specific language governing permissions and 1634 * limitations under the License. 1635 */const Fue=1e3,jue=10;class yq extends gq{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=YU(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const r=this.storage.getItem(n),i=this.localCache[n];r!==i&&e(n,i,r)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((s,a,l)=>{this.notifyListeners(s,l)});return}const r=e.key;n?this.detachListener():this.stopPolling();const i=()=>{const s=this.storage.getItem(r);!n&&this.localCache[r]===s||this.notifyListeners(r,s)},o=this.storage.getItem(r);fce()&&o!==e.newValue&&e.newValue!==e.oldValue?setTimeout(i,jue):i()}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,r)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:r}),!0)})},Fue)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1635ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}yq.type="LOCAL";const vq=yq;/** 1636 * @license 1637 * Copyright 2025 Google LLC 1638 * 1639 * Licensed under the Apache License, Version 2.0 (the "License"); 1640 * you may not use this file except in compliance with the License. 1641 * You may obtain a copy of the License at 1642 * 1643 * http://www.apache.org/licenses/LICENSE-2.0 1644 * 1645 * Unless required by applicable law or agreed to in writing, software 1646 * distributed under the License is distributed on an "AS IS" BASIS, 1647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1648 * See the License for the specific language governing permissions and 1649 * limitations under the License. 1650 */const Hue=1e3;function F_(t){var r;const e=t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),n=RegExp(`${e}=([^;]+)`);return((r=document.cookie.match(n))==null?void 0:r[1])??null}function j_(t){return`${window.location.protocol==="http:"?"__dev_":"__HOST-"}FIREBASE_${t.split(":")[3]}`}class bq{constructor(){this.type="COOKIE",this.listenerUnsubscribes=new Map}_getFinalTarget(e){if(typeof window===void 0)return e;const n=new URL(`${window.location.origin}/__cookies__`);return n.searchParams.set("finalTarget",e),n}async _isAvailable(){return typeof isSecureContext=="boolean"&&!isSecureContext||typeof navigator>"u"||typeof document>"u"?!1:navigator.cookieEnabled??!0}async _set(e,n){}async _get(e){if(!this._isAvailable())return null;const n=j_(e);if(window.cookieStore){const r=await window.cookieStore.get(n);return r==null?void 0:r.value}return F_(n)}async _remove(e){if(!this._isAvailable()||!await this._get(e))return;const r=j_(e);document.cookie=`${r}=;Max-Age=34560000;Partitioned;Secure;SameSite=Strict;Path=/;Priority=High`,await fetch("/__cookies__",{method:"DELETE"}).catch(()=>{})}_addListener(e,n){if(!this._isAvailable())return;const r=j_(e);if(window.cookieStore){const a=c=>{const u=c.changed.find(f=>f.name===r);u&&n(u.value),c.deleted.find(f=>f.name===r)&&n(null)},l=()=>window.cookieStore.removeEventListener("change",a);return this.listenerUnsubscribes.set(n,l),window.cookieStore.addEventListener("change",a)}let i=F_(r);const o=setInterval(()=>{const a=F_(r);a!==i&&(n(a),i=a)},Hue),s=()=>clearInterval(o);this.listenerUnsubscribes.set(n,s)}_removeListener(e,n){const r=this.listenerUnsubscribes.get(n);r&&(r(),this.listenerUnsubscribes.delete(n))}}bq.type="COOKIE";const Uue=bq;/** 1651 * @license 1652 * Copyright 2020 Google LLC 1653 * 1654 * Licensed under the Apache License, Version 2.0 (the "License"); 1655 * you may not use this file except in compliance with the License. 1656 * You may obtain a copy of the License at 1657 * 1658 * http://www.apache.org/licenses/LICENSE-2.0 1659 * 1660 * Unless required by applicable law or agreed to in writing, software 1661 * distributed under the License is distributed on an "AS IS" BASIS, 1662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1663 * See the License for the specific language governing permissions and 1664 * limitations under the License. 1665 */class wq extends gq{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}wq.type="SESSION";const OM=wq;/** 1666 * @license 1667 * Copyright 2019 Google LLC 1668 * 1669 * Licensed under the Apache License, Version 2.0 (the "License"); 1670 * you may not use this file except in compliance with the License. 1671 * You may obtain a copy of the License at 1672 * 1673 * http://www.apache.org/licenses/LICENSE-2.0 1674 * 1675 * Unless required by applicable law or agreed to in writing, software 1676 * distributed under the License is distributed on an "AS IS" BASIS, 1677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1678 * See the License for the specific language governing permissions and 1679 * limitations under the License. 1680 */function que(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 1681 * @license 1682 * Copyright 2019 Google LLC 1683 * 1684 * Licensed under the Apache License, Version 2.0 (the "License");
1685 * you may not use this file except in compliance with the License. 1686 * You may obtain a copy of the License at 1687 * 1688 * http://www.apache.org/licenses/LICENSE-2.0 1689 * 1690 * Unless required by applicable law or agreed to in writing, software 1691 * distributed under the License is distributed on an "AS IS" BASIS, 1692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1693 * See the License for the specific language governing permissions and 1694 * limitations under the License. 1695 */class cE{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(i=>i.isListeningto(e));if(n)return n;const r=new cE(e);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:r,eventType:i,data:o}=n.data,s=this.handlersMap[i];if(!(s!=null&&s.size))return;n.ports[0].postMessage({status:"ack",eventId:r,eventType:i});const a=Array.from(s).map(async c=>c(n.origin,o)),l=await que(a);n.ports[0].postMessage({status:"done",eventId:r,eventType:i,response:l})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}cE.receivers=[];/** 1696 * @license 1697 * Copyright 2020 Google LLC 1698 * 1699 * Licensed under the Apache License, Version 2.0 (the "License"); 1700 * you may not use this file except in compliance with the License. 1701 * You may obtain a copy of the License at 1702 * 1703 * http://www.apache.org/licenses/LICENSE-2.0 1704 * 1705 * Unless required by applicable law or agreed to in writing, software 1706 * distributed under the License is distributed on an "AS IS" BASIS, 1707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1708 * See the License for the specific language governing permissions and 1709 * limitations under the License. 1710 */function uE(t="",e=10){let n="";for(let r=0;r<e;r++)n+=Math.floor(Math.random()*10);return t+n}/** 1711 * @license 1712 * Copyright 2019 Google LLC 1713 * 1714 * Licensed under the Apache License, Version 2.0 (the "License"); 1715 * you may not use this file except in compliance with the License. 1716 * You may obtain a copy of the License at 1717 * 1718 * http://www.apache.org/licenses/LICENSE-2.0 1719 * 1720 * Unless required by applicable law or agreed to in writing, software 1721 * distributed under the License is distributed on an "AS IS" BASIS, 1722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1723 * See the License for the specific language governing permissions and 1724 * limitations under the License. 1725 */class Wue{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,r=50){const i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let o,s;return new Promise((a,l)=>{const c=uE("",20);i.port1.start();const u=setTimeout(()=>{l(new Error("unsupported_event"))},r);s={messageChannel:i,onMessage(d){const f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),o=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(o),a(f.data.response);break;default:clearTimeout(u),clearTimeout(o),l(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:c,data:n},[i.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})}}/** 1726 * @license 1727 * Copyright 2020 Google LLC 1728 * 1729 * Licensed under the Apache License, Version 2.0 (the "License"); 1730 * you may not use this file except in compliance with the License. 1731 * You may obtain a copy of the License at 1732 * 1733 * http://www.apache.org/licenses/LICENSE-2.0 1734 * 1735 * Unless required by applicable law or agreed to in writing, softw
1735are 1736 * distributed under the License is distributed on an "AS IS" BASIS, 1737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1738 * See the License for the specific language governing permissions and 1739 * limitations under the License. 1740 */function wr(){return window}function Gue(t){wr().location.href=t}/** 1741 * @license 1742 * Copyright 2020 Google LLC. 1743 * 1744 * Licensed under the Apache License, Version 2.0 (the "License"); 1745 * you may not use this file except in compliance with the License. 1746 * You may obtain a copy of the License at 1747 * 1748 * http://www.apache.org/licenses/LICENSE-2.0 1749 * 1750 * Unless required by applicable law or agreed to in writing, software 1751 * distributed under the License is distributed on an "AS IS" BASIS, 1752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1753 * See the License for the specific language governing permissions and 1754 * limitations under the License. 1755 */function NM(){return typeof wr().WorkerGlobalScope<"u"&&typeof wr().importScripts=="function"}async function Kue(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function Yue(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)==null?void 0:t.controller)||null}function Xue(){return NM()?self:null}/** 1756 * @license 1757 * Copyright 2019 Google LLC 1758 * 1759 * Licensed under the Apache License, Version 2.0 (the "License"); 1760 * you may not use this file except in compliance with the License. 1761 * You may obtain a copy of the License at 1762 * 1763 * http://www.apache.org/licenses/LICENSE-2.0 1764 * 1765 * Unless required by applicable law or agreed to in writing, software 1766 * distributed under the License is distributed on an "AS IS" BASIS, 1767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1768 * See the License for the specific language governing permissions and 1769 * limitations under the License. 1770 */const Sq="firebaseLocalStorageDb",Que=1,mS="firebaseLocalStorage",xq="fbase_key";class Sv{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function dE(t,e){return t.transaction([mS],e?"readwrite":"readonly").objectStore(mS)}function Jue(){const t=indexedDB.deleteDatabase(Sq);return new Sv(t).toPromise()}function D5(){const t=indexedDB.open(Sq,Que);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const r=t.result;try{r.createObjectStore(mS,{keyPath:xq})}catch(i){n(i)}}),t.addEventListener("success",async()=>{const r=t.result;r.objectStoreNames.contains(mS)?e(r):(r.close(),await Jue(),e(await D5()))})})}async function lD(t,e,n){const r=dE(t,!0).put({[xq]:e,value:n});return new Sv(r).toPromise()}async function Zue(t,e){const n=dE(t,!1).get(e),r=await new Sv(n).toPromise();return r===void 0?null:r.value}function cD(t,e){const n=dE(t,!0).delete(e);return new Sv(n).toPromise()}const ede=800,tde=3;
1770class Eq{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await D5(),this.db)}async _withRetries(e){let n=0;for(;;)try{const r=await this._openDb();return await e(r)}catch(r){if(n++>tde)throw r;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return NM()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=cE._getInstance(Xue()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)})),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var n,r;if(this.activeServiceWorker=await Kue(),!this.activeServiceWorker)return;this.sender=new Wue(this.activeServiceWorker);const e=await this.sender._send("ping",{},800);e&&(n=e[0])!=null&&n.fulfilled&&(r=e[0])!=null&&r.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||Yue()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await D5();return await lD(e,pS,"1"),await cD(e,pS),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(r=>lD(r,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(r=>Zue(r,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>cD(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(i=>{const o=dE(i,!1).getAll();return new Sv(o).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],r=new Set;if(e.length!==0)for(const{fbase_key:i,value:o}of e)r.add(i),JSON.stringify(this.localCache[i])!==JSON.stringify(o)&&(this.notifyListeners(i,o),n.push(i));for(const i of Object.keys(this.localCache))this.localCache[i]&&!r.has(i)&&(this.notifyListeners(i,null),n.push(i));return n}notifyListeners(e,n){this.localCache[e]=n;const r=this.listeners[e];if(r)for(const i of Array.from(r))i(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),ede)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
1770ject.keys(this.listeners).length===0&&this.stopPolling()}}Eq.type="LOCAL";const Tq=Eq;/** 1771 * @license 1772 * Copyright 2020 Google LLC 1773 * 1774 * Licensed under the Apache License, Version 2.0 (the "License"); 1775 * you may not use this file except in compliance with the License. 1776 * You may obtain a copy of the License at 1777 * 1778 * http://www.apache.org/licenses/LICENSE-2.0 1779 * 1780 * Unless required by applicable law or agreed to in writing, software 1781 * distributed under the License is distributed on an "AS IS" BASIS, 1782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1783 * See the License for the specific language governing permissions and 1784 * limitations under the License. 1785 */function uD(t,e){return Vn(t,"POST","/v2/accounts/mfaSignIn:start",zn(t,e))}function nde(t,e){return Vn(t,"POST","/v2/accounts/mfaSignIn:finalize",zn(t,e))}function rde(t,e){return Vn(t,"POST","/v2/accounts/mfaSignIn:finalize",zn(t,e))}/** 1786 * @license 1787 * Copyright 2020 Google LLC 1788 * 1789 * Licensed under the Apache License, Version 2.0 (the "License"); 1790 * you may not use this file except in compliance with the License. 1791 * You may obtain a copy of the License at 1792 * 1793 * http://www.apache.org/licenses/LICENSE-2.0 1794 * 1795 * Unless required by applicable law or agreed to in writing, software 1796 * distributed under the License is distributed on an "AS IS" BASIS, 1797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1798 * See the License for the specific language governing permissions and 1799 * limitations under the License. 1800 */const H_=QU("rcb"),ide=new vv(3e4,6e4);class ode{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!((e=wr().grecaptcha)!=null&&e.render)}load(e,n=""){return Ve(sde(n),e,"argument-error"),this.shouldResolveImmediately(n)&&J6(wr().grecaptcha)?Promise.resolve(wr().grecaptcha):new Promise((r,i)=>{const o=wr().setTimeout(()=>{i(Pi(e,"network-request-failed"))},ide.get());wr()[H_]=()=>{wr().clearTimeout(o),delete wr()[H_];const a=wr().grecaptcha;if(!a||!J6(a)){i(Pi(e,"internal-error"));return}const l=a.render;a.render=(c,u)=>{const d=l(c,u);return this.counter++,d},this.hostLanguage=n,r(a)};const s=`${bce()}?${ig({onload:H_,render:"explicit",hl:n})}`;_M(s).catch(()=>{clearTimeout(o),i(Pi(e,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var n;return!!((n=wr().grecaptcha)!=null&&n.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}}function sde(t){return t.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(t)}class ade{async load(e){return new Tce(e)}clearedOneInstance(){}}/** 1801 * @license 1802 * Copyright 2020 Google LLC 1803 * 1804 * Licensed under the Apache License, Version 2.0 (the "License"); 1805 * you may not use this file except in compliance with the License. 1806 * You may obtain a copy of the License at 1807 * 1808 * http://www.apache.org/licenses/LICENSE-2.0 1809 * 1810 * Unless required by applicable law or agreed to in writing, software 1811 * distributed under the License is distributed on an "AS IS" BASIS, 1812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1813 * See the License for the specific language governing permissions and 1814 * limitations under the License. 1815 */const oy="recaptcha",lde={theme:"light",type:"image"};class cde{constructor(e,n,r={...lde}){this.parameters=r,this.type=oy,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=cr(e),this.isInvisible=this.parameters.size==="invisible",Ve(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");const i=typeof n=="string"?document.getElementById(n):n;Ve(i,this.auth,"argument-error"),this.container=i,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new ade:new ode,this.validateStartingState()}async verify(){this.assertNotDestroyed();const e=await this.render(),n=this.getAssertedRecaptcha(),r=n.getResponse(e);return r||new Promise(i=>{const o=s=>{s&&(this.tokenChangeListeners.delete(o),i(s))};this.tokenChangeListeners.add(o),this.isInvisible&&n.execute(e)})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise?this.renderPromise:(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e}),this.renderPromise)}_reset(){this.assertNotDestroyed(),this.widgetId!==null&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
1815h(e=>{this.container.removeChild(e)})}validateStartingState(){Ve(!this.parameters.sitekey,this.auth,"argument-error"),Ve(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Ve(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return n=>{if(this.tokenChangeListeners.forEach(r=>r(n)),typeof e=="function")e(n);else if(typeof e=="string"){const r=wr()[e];typeof r=="function"&&r(n)}}}assertNotDestroyed(){Ve(!this.destroyed,this.auth,"internal-error")}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){const n=document.createElement("div");e.appendChild(n),e=n}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){Ve(EM()&&!NM(),this.auth,"internal-error"),await ude(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);const e=await nce(this.auth);Ve(e,this.auth,"internal-error"),this.parameters.sitekey=e}getAssertedRecaptcha(){return Ve(this.recaptcha,this.auth,"internal-error"),this.recaptcha}}function ude(){let t=null;return new Promise(e=>{if(document.readyState==="complete"){e();return}t=()=>e(),window.addEventListener("load",t)}).catch(e=>{throw t&&window.removeEventListener("load",t),e})}/** 1816 * @license 1817 * Copyright 2020 Google LLC 1818 * 1819 * Licensed under the Apache License, Version 2.0 (the "License"); 1820 * you may not use this file except in compliance with the License. 1821 * You may obtain a copy of the License at 1822 * 1823 * http://www.apache.org/licenses/LICENSE-2.0 1824 * 1825 * Unless required by applicable law or agreed to in writing, software 1826 * distributed under the License is distributed on an "AS IS" BASIS, 1827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1828 * See the License for the specific language governing permissions and 1829 * limitations under the License. 1830 */class DM{constructor(e,n){this.verificationId=e,this.onConfirmation=n}confirm(e){const n=wu._fromVerification(this.verificationId,e);return this.onConfirmation(n)}}async function dde(t,e,n){if(On(t.app))return Promise.reject(Wr(t));const r=cr(t),i=await fE(r,e,Ze(n));return new DM(i,o=>aE(r,o))}async function fde(t,e,n){const r=Ze(t);await sE(!1,r,"phone");const i=await fE(r.auth,e,Ze(n));return new DM(i,o=>cq(r,o))}async function hde(t,e,n){const r=Ze(t);if(On(r.auth.app))return Promise.reject(Wr(r.auth));const i=await fE(r.auth,e,Ze(n));return new DM(i,o=>uq(r,o))}async function fE(t,e,n){var r;if(!t._getRecaptchaConfig())try{await ZU(t)}catch{console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(typeof e=="string"?i={phoneNumber:e}:i=e,"session"in i){const o=i.session;if("phoneNumber"in i){Ve(o.type==="enroll",t,"internal-error");const s={idToken:o.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}};return(await bu(t,s,"mfaSmsEnrollment",async(u,d)=>{if(d.phoneEnrollmentInfo.captchaResponse===ry){Ve((n==null?void 0:n.type)===oy,u,"argument-error");const f=await U_(u,d,n);return aD(u,f)}return aD(u,d)},"PHONE_PROVIDER").catch(u=>Promise.reject(u))).phoneSessionInfo.sessionInfo}else{Ve(o.type==="signin",t,"internal-error");const s=((r=i.multiFactorHint)==null?void 0:r.uid)||i.multiFactorUid;Ve(s,t,"missing-multi-factor-info");const a={mfaPendingCredential:o.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}};return(await bu(t,a,"mfaSmsSignIn",async(d,f)=>{if(f.phoneSignInInfo.captchaResponse===ry){Ve((n==null?void 0:n.type)===oy,d,"argument-error");const h=await U_(d,f,n);return uD(d,h)}return uD(d,f)},"PHONE_PROVIDER").catch(d=>Promise.reject(d))).phoneResponseInfo.sessionInfo}}else{const o={phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"};return(await bu(t,o,"sendVerificationCode",async(c,u)=>{if(u.captchaResponse===ry){Ve((n==null?void 0:n.type)===oy,c,"argument-error");const d=await U_(c,u,n);return oD(c,d)}return oD(c,u)},"PHONE_PROVIDER").catch(c=>Promise.reject(c))).sessionInfo}}finally{n==null||n._reset()}}async function pde(t,e){const n=Ze(t);if(On(n.auth.app))return Promise.reject(Wr(n.auth));await AM(n,e)}async function U_(t,e,n){Ve(n.type===oy,t,"argument-error");const r=await n.verify();Ve(typeof r=="string",t,"argument-error");const i={...e};if("phoneEnrollmentInfo"in i){const o=i.phoneEnrollmentInfo.phoneNumber,s=i.phoneEnrollmentInfo.captchaResponse,a=i.phoneEnrollmentInfo.clientType,l=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:o,recaptchaToken:r,captchaResponse:s,clientType:a,recaptchaVersion:l}}),i}else if("phoneSignInInfo"in i){const o=i.phoneSignInInfo.captchaResponse,s=i.phoneSignInInfo.clientType,a=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:r,captchaResponse:o,clientType:s,recaptchaVersion:a}}),i}else return Object.assign(i,{recaptchaToken:r}),i}/** 1831 * @license 1832 * Copyright 2020 Google LLC 1833 * 1834 * Licensed under the Apache License, Version 2.0 (the "License");
1835 * you may not use this file except in compliance with the License. 1836 * You may obtain a copy of the License at 1837 * 1838 * http://www.apache.org/licenses/LICENSE-2.0 1839 * 1840 * Unless required by applicable law or agreed to in writing, software 1841 * distributed under the License is distributed on an "AS IS" BASIS, 1842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1843 * See the License for the specific language governing permissions and 1844 * limitations under the License. 1845 */class cf{constructor(e){this.providerId=cf.PROVIDER_ID,this.auth=cr(e)}verifyPhoneNumber(e,n){return fE(this.auth,e,Ze(n))}static credential(e,n){return wu._fromVerification(e,n)}static credentialFromResult(e){const n=e;return cf.credentialFromTaggedObject(n)}static credentialFromError(e){return cf.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{phoneNumber:n,temporaryProof:r}=e;return n&&r?wu._fromTokenResponse(n,r):null}}cf.PROVIDER_ID="phone";cf.PHONE_SIGN_IN_METHOD="phone";/** 1846 * @license 1847 * Copyright 2021 Google LLC 1848 * 1849 * Licensed under the Apache License, Version 2.0 (the "License"); 1850 * you may not use this file except in compliance with the License. 1851 * You may obtain a copy of the License at 1852 * 1853 * http://www.apache.org/licenses/LICENSE-2.0 1854 * 1855 * Unless required by applicable law or agreed to in writing, software 1856 * distributed under the License is distributed on an "AS IS" BASIS, 1857 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1858 * See the License for the specific language governing permissions and 1859 * limitations under the License. 1860 */function fh(t,e){return e?Ml(e):(Ve(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 1861 * @license 1862 * Copyright 2019 Google LLC 1863 * 1864 * Licensed under the Apache License, Version 2.0 (the "License"); 1865 * you may not use this file except in compliance with the License. 1866 * You may obtain a copy of the License at 1867 * 1868 * http://www.apache.org/licenses/LICENSE-2.0 1869 * 1870 * Unless required by applicable law or agreed to in writing, software 1871 * distributed under the License is distributed on an "AS IS" BASIS, 1872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1873 * See the License for the specific language governing permissions and 1874 * limitations under the License. 1875 */class LM extends sg{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return Fl(e,this._buildIdpRequest())}_linkToIdToken(e,n){return Fl(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return Fl(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function mde(t){return lq(t.auth,new LM(t),t.bypassAuthState)}function gde(t){const{auth:e,user:n}=t;return Ve(n,e,"internal-error"),aq(n,new LM(t),t.bypassAuthState)}async function yde(t){const{auth:e,user:n}=t;return Ve(n,e,"internal-error"),AM(n,new LM(t),t.bypassAuthState)}/** 1876 * @license 1877 * Copyright 2020 Google LLC 1878 * 1879 * Licensed under the Apache License, Version 2.0 (the "License"); 1880 * you may not use this file except in compliance with the License. 1881 * You may obtain a copy of the License at 1882 * 1883 * http://www.apache.org/licenses/LICENSE-2.0 1884 * 1885 * Unless required by applicable law or agreed to in writing, software 1886 * distributed under the License is distributed on an "AS IS" BASIS, 1887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1888 * See the License for the specific language governing permissions and 1889 * limitations under the License. 1890 */class Cq{constructor(e,n,r,i,o=!1){this.auth=e,this.resolver=r,this.user=i,this.bypassAuthState=o,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(r){this.reject(r)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:r,postBody:i,tenantId:o,error:s,type:a}=e;if(s){this.reject(s);return}const l={auth:this.auth,requestUri:n,sessionId:r,tenantId:o||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(a)(l))}catch(c){this.reject(c)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return mde;case"linkViaPopup":case"linkViaRedirect":return yde;case"reauthViaPopup":case"reauthViaRedirect":return gde;default:io(this.auth,"internal-error")}}resolve(e){Jl(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Jl(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1891 * @license 1892 * Copyright 2020 Google LLC 1893 * 1894 * Licensed under the Apache License, Version 2.0 (the "License");
1895 * you may not use this file except in compliance with the License. 1896 * You may obtain a copy of the License at 1897 * 1898 * http://www.apache.org/licenses/LICENSE-2.0 1899 * 1900 * Unless required by applicable law or agreed to in writing, software 1901 * distributed under the License is distributed on an "AS IS" BASIS, 1902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1903 * See the License for the specific language governing permissions and 1904 * limitations under the License. 1905 */const vde=new vv(2e3,1e4);async function bde(t,e,n){if(On(t.app))return Promise.reject(Pi(t,"operation-not-supported-in-this-environment"));const r=cr(t);og(t,e,lc);const i=fh(r,n);return new kl(r,"signInViaPopup",e,i).executeNotNull()}async function wde(t,e,n){const r=Ze(t);if(On(r.auth.app))return Promise.reject(Pi(r.auth,"operation-not-supported-in-this-environment"));og(r.auth,e,lc);const i=fh(r.auth,n);return new kl(r.auth,"reauthViaPopup",e,i,r).executeNotNull()}async function Sde(t,e,n){const r=Ze(t);og(r.auth,e,lc);const i=fh(r.auth,n);return new kl(r.auth,"linkViaPopup",e,i,r).executeNotNull()}class kl extends Cq{constructor(e,n,r,i,o){super(e,n,i,o),this.provider=r,this.authWindow=null,this.pollId=null,kl.currentPopupAction&&kl.currentPopupAction.cancel(),kl.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return Ve(e,this.auth,"internal-error"),e}async onExecution(){Jl(this.filter.length===1,"Popup operations only handle one event");const e=uE();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Pi(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)==null?void 0:e.associatedEvent)||null}cancel(){this.reject(Pi(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,kl.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,r;if((r=(n=this.authWindow)==null?void 0:n.window)!=null&&r.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Pi(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,vde.get())};e()}}kl.currentPopupAction=null;/** 1906 * @license 1907 * Copyright 2020 Google LLC 1908 * 1909 * Licensed under the Apache License, Version 2.0 (the "License"); 1910 * you may not use this file except in compliance with the License. 1911 * You may obtain a copy of the License at 1912 * 1913 * http://www.apache.org/licenses/LICENSE-2.0 1914 * 1915 * Unless required by applicable law or agreed to in writing, software 1916 * distributed under the License is distributed on an "AS IS" BASIS, 1917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1918 * See the License for the specific language governing permissions and 1919 * limitations under the License. 1920 */const xde="pendingRedirect",Y2=new Map;class Ede extends Cq{constructor(e,n,r=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,r),this.eventId=null}async execute(){let e=Y2.get(this.auth._key());if(!e){try{const r=await Tde(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(r)}catch(n){e=()=>Promise.reject(n)}Y2.set(this.auth._key(),e)}return this.bypassAuthState||Y2.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function Tde(t,e){const n=Aq(e),r=_q(t);if(!await r._isAvailable())return!1;const i=await r._get(n)==="true";return await r._remove(n),i}async function zM(t,e){return _q(t)._set(Aq(e),"true")}function Cde(t,e){Y2.set(t._key(),e)}function _q(t){return Ml(t._redirectPersistence)}function Aq(t){return K2(xde,t.config.apiKey,t.name)}
vendor: 4,278 bytes, lines 1920-1954
1920/** 1921 * @license 1922 * Copyright 2020 Google LLC 1923 * 1924 * Licensed under the Apache License, Version 2.0 (the "License"); 1925 * you may not use this file except in compliance with the License. 1926 * You may obtain a copy of the License at 1927 * 1928 * http://www.apache.org/licenses/LICENSE-2.0 1929 * 1930 * Unless required by applicable law or agreed to in writing, software 1931 * distributed under the License is distributed on an "AS IS" BASIS, 1932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1933 * See the License for the specific language governing permissions and 1934 * limitations under the License. 1935 */function _de(t,e,n){return Ade(t,e,n)}async function Ade(t,e,n){if(On(t.app))return Promise.reject(Wr(t));const r=cr(t);og(t,e,lc),await r._initializationPromise;const i=fh(r,n);return await zM(i,r),i._openRedirect(r,e,"signInViaRedirect")}function Ide(t,e,n){return Rde(t,e,n)}async function Rde(t,e,n){const r=Ze(t);if(og(r.auth,e,lc),On(r.auth.app))return Promise.reject(Wr(r.auth));await r.auth._initializationPromise;const i=fh(r.auth,n);await zM(i,r.auth);const o=await Rq(r);return i._openRedirect(r.auth,e,"reauthViaRedirect",o)}function Mde(t,e,n){return kde(t,e,n)}async function kde(t,e,n){const r=Ze(t);og(r.auth,e,lc),await r.auth._initializationPromise;const i=fh(r.auth,n);await sE(!1,r,e.providerId),await zM(i,r.auth);const o=await Rq(r);return i._openRedirect(r.auth,e,"linkViaRedirect",o)}async function Pde(t,e){return await cr(t)._initializationPromise,Iq(t,e,!1)}async function Iq(t,e,n=!1){if(On(t.app))return Promise.reject(Wr(t));const r=cr(t),i=fh(r,e),s=await new Ede(r,i,n).execute();return s&&!n&&(delete s.user._redirectEventId,await r._persistUserIfCurrent(s.user),await r._setRedirectUser(null,e)),s}async function Rq(t){const e=uE(`${t.uid}:::`);return t._redirectEventId=e,await t.auth._setRedirectUser(t),await t.auth._persistUserIfCurrent(t),e}/** 1936 * @license 1937 * Copyright 2020 Google LLC 1938 * 1939 * Licensed under the Apache License, Version 2.0 (the "License"); 1940 * you may not use this file except in compliance with the License. 1941 * You may obtain a copy of the License at 1942 * 1943 * http://www.apache.org/licenses/LICENSE-2.0 1944 * 1945 * Unless required by applicable law or agreed to in writing, software 1946 * distributed under the License is distributed on an "AS IS" BASIS, 1947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1948 * See the License for the specific language governing permissions and 1949 * limitations under the License. 1950 */const Ode=10*60*1e3;class Nde{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(r=>{this.isEventForConsumer(e,r)&&(n=!0,this.sendToConsumer(e,r),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!Dde(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var r;if(e.error&&!Mq(e)){const i=((r=e.error.code)==null?void 0:r.split("auth/")[1])||"internal-error";n.onError(Pi(this.auth,i))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const r=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&r}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Ode&&this.cachedEventUids.clear(),this.cachedEventUids.has(dD(e))}saveEventToCache(e){this.cachedEventUids.add(dD(e)),this.lastProcessedEventTime=Date.now()}}function dD(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function Mq({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function Dde(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Mq(t);default:return!1}}/** 1951 * @license 1952 * Copyright 2020 Google LLC 1953 * 1954 * Licensed under the Apache License, Version 2.0 (the "License");
1955 * you may not use this file except in compliance with the License. 1956 * You may obtain a copy of the License at 1957 * 1958 * http://www.apache.org/licenses/LICENSE-2.0 1959 * 1960 * Unless required by applicable law or agreed to in writing, software 1961 * distributed under the License is distributed on an "AS IS" BASIS, 1962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1963 * See the License for the specific language governing permissions and 1964 * limitations under the License. 1965 */async function Lde(t,e={}){return Vn(t,"GET","/v1/projects",e)}/** 1966 * @license 1967 * Copyright 2020 Google LLC 1968 * 1969 * Licensed under the Apache License, Version 2.0 (the "License"); 1970 * you may not use this file except in compliance with the License. 1971 * You may obtain a copy of the License at 1972 * 1973 * http://www.apache.org/licenses/LICENSE-2.0 1974 * 1975 * Unless required by applicable law or agreed to in writing, software 1976 * distributed under the License is distributed on an "AS IS" BASIS, 1977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1978 * See the License for the specific language governing permissions and 1979 * limitations under the License. 1980 */const zde=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Vde=/^https?/;async function Bde(t){if(t.config.emulator)return;const{authorizedDomains:e}=await Lde(t);for(const n of e)try{if($de(n))return}catch{}io(t,"unauthorized-domain")}function $de(t){const e=e0(),{protocol:n,hostname:r}=new URL(e);if(t.startsWith("chrome-extension://")){const s=new URL(t);return s.hostname===""&&r===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&s.hostname===r}if(!Vde.test(n))return!1;if(zde.test(t))return r===t;const i=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(r)}/** 1981 * @license 1982 * Copyright 2020 Google LLC. 1983 * 1984 * Licensed under the Apache License, Version 2.0 (the "License"); 1985 * you may not use this file except in compliance with the License. 1986 * You may obtain a copy of the License at 1987 * 1988 * http://www.apache.org/licenses/LICENSE-2.0 1989 * 1990 * Unless required by applicable law or agreed to in writing, software 1991 * distributed under the License is distributed on an "AS IS" BASIS, 1992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1993 * See the License for the specific language governing permissions and 1994 * limitations under the License. 1995 */const Fde=new vv(3e4,6e4);function fD(){const t=wr().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function jde(t){return new Promise((e,n)=>{var i,o,s;function r(){fD(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{fD(),n(Pi(t,"network-request-failed"))},timeout:Fde.get()})}if((o=(i=wr().gapi)==null?void 0:i.iframes)!=null&&o.Iframe)e(gapi.iframes.getContext());else if((s=wr().gapi)!=null&&s.load)r();else{const a=QU("iframefcb");return wr()[a]=()=>{gapi.load?r():n(Pi(t,"network-request-failed"))},_M(`${Sce()}?onload=${a}`).catch(l=>n(l))}}).catch(e=>{throw X2=null,e})}let X2=null;function Hde(t){return X2=X2||jde(t),X2}/** 1996 * @license 1997 * Copyright 2020 Google LLC. 1998 * 1999 * Licensed under the Apache License, Version 2.0 (the "License"); 2000 * you may not use this file except in compliance with the License. 2001 * You may obtain a copy of the License at 2002 * 2003 * http://www.apache.org/licenses/LICENSE-2.0 2004 * 2005 * Unless required by applicable law or agreed to in writing, software 2006 * distributed under the License is distributed on an "AS IS" BASIS, 2007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2008 * See the License for the specific language governing permissions and 2009 * limitations under the License. 2010 */const Ude=new vv(5e3,15e3),qde="__/auth/iframe",Wde="emulator/auth/iframe",Gde={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},Kde=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function Yde(t){const e=t.config;Ve(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?TM(e,Wde):`https://${t.config.authDomain}/${qde}`,r={apiKey:e.apiKey,appName:t.name,v:dh},i=Kde.get(t.config.apiHost);i&&(r.eid=i);const o=t._getFrameworks();return o.length&&(r.fw=o.join(",")),`${n}?${ig(r).slice(1)}`}async function Xde(t){const e=await Hde(t),n=wr().gapi;return Ve(n,t,"internal-error"),e.open({where:document.body,url:Yde(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Gde,dontclear:!0},r=>new Promise(async(i,o)=>{await r.restyle({setHideOnLeave:!1});const s=Pi(t,"network-request-failed"),a=wr().setTimeout(()=>{o(s)},Ude.get());function l(){wr().clearTimeout(a),i(r)}r.ping(l).then(l,()=>{o(s)})}))}/** 2011 * @license 2012 * Copyright 2020 Google LLC. 2013 * 2014 * Licensed under the Apache License, Version 2.0 (the "License");
2015 * you may not use this file except in compliance with the License. 2016 * You may obtain a copy of the License at 2017 * 2018 * http://www.apache.org/licenses/LICENSE-2.0 2019 * 2020 * Unless required by applicable law or agreed to in writing, software 2021 * distributed under the License is distributed on an "AS IS" BASIS, 2022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2023 * See the License for the specific language governing permissions and 2024 * limitations under the License. 2025 */const Qde={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},Jde=500,Zde=600,efe="_blank",tfe="http://localhost";class hD{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function nfe(t,e,n,r=Jde,i=Zde){const o=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWidth-r)/2,0).toString();let a="";const l={...Qde,width:r.toString(),height:i.toString(),top:o,left:s},c=Lr().toLowerCase();n&&(a=UU(c)?efe:n),jU(c)&&(e=e||tfe,l.scrollbars="yes");const u=Object.entries(l).reduce((f,[h,p])=>`${f}${h}=${p},`,"");if(dce(c)&&a!=="_self")return rfe(e||"",a),new hD(null);const d=window.open(e||"",a,u);Ve(d,t,"popup-blocked");try{d.focus()}catch{}return new hD(d)}function rfe(t,e){const n=document.createElement("a");n.href=t,n.target=e;const r=document.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}/** 2026 * @license 2027 * Copyright 2021 Google LLC 2028 * 2029 * Licensed under the Apache License, Version 2.0 (the "License"); 2030 * you may not use this file except in compliance with the License. 2031 * You may obtain a copy of the License at 2032 * 2033 * http://www.apache.org/licenses/LICENSE-2.0 2034 * 2035 * Unless required by applicable law or agreed to in writing, software 2036 * distributed under the License is distributed on an "AS IS" BASIS, 2037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2038 * See the License for the specific language governing permissions and 2039 * limitations under the License. 2040 */const ife="__/auth/handler",ofe="emulator/auth/handler",sfe=encodeURIComponent("fac");async function pD(t,e,n,r,i,o){Ve(t.config.authDomain,t,"auth-domain-config-required"),Ve(t.config.apiKey,t,"invalid-api-key");const s={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:r,v:dh,eventId:i};if(e instanceof lc){e.setDefaultLanguage(t.languageCode),s.providerId=e.providerId||"",Aae(e.getCustomParameters())||(s.customParameters=JSON.stringify(e.getCustomParameters()));for(const[u,d]of Object.entries({}))s[u]=d}if(e instanceof lg){const u=e.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}t.tenantId&&(s.tid=t.tenantId);const a=s;for(const u of Object.keys(a))a[u]===void 0&&delete a[u];const l=await t._getAppCheckToken(),c=l?`#${sfe}=${encodeURIComponent(l)}`:"";return`${afe(t)}?${ig(a).slice(1)}${c}`}function afe({config:t}){return t.emulator?TM(t,ofe):`https://${t.authDomain}/${ife}`}/** 2041 * @license 2042 * Copyright 2020 Google LLC 2043 * 2044 * Licensed under the Apache License, Version 2.0 (the "License"); 2045 * you may not use this file except in compliance with the License. 2046 * You may obtain a copy of the License at 2047 * 2048 * http://www.apache.org/licenses/LICENSE-2.0 2049 * 2050 * Unless required by applicable law or agreed to in writing, software 2051 * distributed under the License is distributed on an "AS IS" BASIS, 2052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2053 * See the License for the specific language governing permissions and 2054 * limitations under the License. 2055 */const q_="webStorageSupport";class lfe{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=OM,this._completeRedirectFn=Iq,this._overrideRedirectResult=Cde}async _openPopup(e,n,r,i){var s;Jl((s=this.eventManagers[e._key()])==null?void 0:s.manager,"_initialize() not called before _openPopup()");const o=await pD(e,n,r,e0(),i);return nfe(e,o,uE())}async _openRedirect(e,n,r,i){await this._originValidation(e);const o=await pD(e,n,r,e0(),i);return Gue(o),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:i,promise:o}=this.eventManagers[n];return i?Promise.resolve(i):(Jl(o,"If manager is not set, promise should be"),o)}const r=this.initAndGetManager(e);return this.eventManagers[n]={promise:r},r.catch(()=>{delete this.eventManagers[n]}),r}async initAndGetManager(e){const n=await Xde(e),r=new Nde(e);return n.register("authEvent",i=>
2055(Ve(i==null?void 0:i.authEvent,e,"invalid-auth-event"),{status:r.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:r},this.iframes[e._key()]=n,r}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(q_,{type:q_},i=>{var s;const o=(s=i==null?void 0:i[0])==null?void 0:s[q_];o!==void 0&&n(!!o),io(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=Bde(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return YU()||HU()||CM()}}const kq=lfe;class Pq{constructor(e){this.factorId=e}_process(e,n,r){switch(n.type){case"enroll":return this._finalizeEnroll(e,n.credential,r);case"signin":return this._finalizeSignIn(e,n.credential);default:return Ca("unexpected MultiFactorSessionType")}}}class VM extends Pq{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new VM(e)}_finalizeEnroll(e,n,r){return Lue(e,{idToken:n,displayName:r,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,n){return nde(e,{mfaPendingCredential:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}}class Oq{constructor(){}static assertion(e){return VM._fromCredential(e)}}Oq.FACTOR_ID="phone";class Nq{static assertionForEnrollment(e,n){return r0._fromSecret(e,n)}static assertionForSignIn(e,n){return r0._fromEnrollmentId(e,n)}static async generateSecret(e){var i;const n=e;Ve(typeof((i=n.user)==null?void 0:i.auth)<"u","internal-error");const r=await zue(n.user.auth,{idToken:n.credential,totpEnrollmentInfo:{}});return hE._fromStartTotpMfaEnrollmentResponse(r,n.user.auth)}}Nq.FACTOR_ID="totp";class r0 extends Pq{constructor(e,n,r){super("totp"),this.otp=e,this.enrollmentId=n,this.secret=r}static _fromSecret(e,n){return new r0(n,void 0,e)}static _fromEnrollmentId(e,n){return new r0(n,e)}async _finalizeEnroll(e,n,r){return Ve(typeof this.secret<"u",e,"argument-error"),Vue(e,{idToken:n,displayName:r,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})}async _finalizeSignIn(e,n){Ve(this.enrollmentId!==void 0&&this.otp!==void 0,e,"argument-error");const r={verificationCode:this.otp};return rde(e,{mfaPendingCredential:n,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:r})}}class hE{constructor(e,n,r,i,o,s,a){this.sessionInfo=s,this.auth=a,this.secretKey=e,this.hashingAlgorithm=n,this.codeLength=r,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=o}static _fromStartTotpMfaEnrollmentResponse(e,n){return new hE(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,n)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,n){var i;let r=!1;return(Nb(e)||Nb(n))&&(r=!0),r&&(Nb(e)&&(e=((i=this.auth.currentUser)==null?void 0:i.email)||"unknownuser"),Nb(n)&&(n=this.auth.name)),`otpauth://totp/${n}:${e}?secret=${this.secretKey}&issuer=${n}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}}function Nb(t){return typeof t>"u"||(t==null?void 0:t.length)===0}var mD="@firebase/auth",gD="1.12.1";/** 2056 * @license 2057 * Copyright 2020 Google LLC 2058 * 2059 * Licensed under the Apache License, Version 2.0 (the "License"); 2060 * you may not use this file except in compliance with the License. 2061 * You may obtain a copy of the License at 2062 * 2063 * http://www.apache.org/licenses/LICENSE-2.0 2064 * 2065 * Unless required by applicable law or agreed to in writing, software 2066 * distributed under the License is distributed on an "AS IS" BASIS, 2067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2068 * See the License for the specific language governing permissions and 2069 * limitations under the License. 2070 */class cfe{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)==null?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(r=>{e((r==null?void 0:r.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){Ve(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 2071 * @license 2072 * Copyright 2020 Google LLC 2073 * 2074 * Licensed under the Apache License, Version 2.0 (the "License");
2075 * you may not use this file except in compliance with the License. 2076 * You may obtain a copy of the License at 2077 * 2078 * http://www.apache.org/licenses/LICENSE-2.0 2079 * 2080 * Unless required by applicable law or agreed to in writing, software 2081 * distributed under the License is distributed on an "AS IS" BASIS, 2082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2083 * See the License for the specific language governing permissions and 2084 * limitations under the License. 2085 */function ufe(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function dfe(t){zu(new Xl("auth",(e,{options:n})=>{const r=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),o=e.getProvider("app-check-internal"),{apiKey:s,authDomain:a}=r.options;Ve(s&&!s.includes(":"),"invalid-api-key",{appName:r.name});const l={apiKey:s,authDomain:a,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:XU(t)},c=new yce(r,i,o,l);return Mce(c,n),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,r)=>{e.getProvider("auth-internal").initialize()})),zu(new Xl("auth-internal",e=>{const n=cr(e.getProvider("auth").getImmediate());return(r=>new cfe(r))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),fs(mD,gD,ufe(t)),fs(mD,gD,"esm2020")}/** 2086 * @license 2087 * Copyright 2021 Google LLC 2088 * 2089 * Licensed under the Apache License, Version 2.0 (the "License"); 2090 * you may not use this file except in compliance with the License. 2091 * You may obtain a copy of the License at 2092 * 2093 * http://www.apache.org/licenses/LICENSE-2.0 2094 * 2095 * Unless required by applicable law or agreed to in writing, software 2096 * distributed under the License is distributed on an "AS IS" BASIS, 2097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2098 * See the License for the specific language governing permissions and 2099 * limitations under the License. 2100 */const ffe=5*60,hfe=wU("authIdTokenMaxAge")||ffe;let yD=null;const pfe=t=>async e=>{const n=e&&await e.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>hfe)return;const i=n==null?void 0:n.token;yD!==i&&(yD=i,await fetch(t,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))};function mfe(t=wM()){const e=yv(t,"auth");if(e.isInitialized())return e.getImmediate();const n=eq(t,{popupRedirectResolver:kq,persistence:[Tq,vq,OM]}),r=wU("authTokenSyncURL");if(r&&typeof isSecureContext=="boolean"&&isSecureContext){const o=new URL(r,location.origin);if(location.origin===o.origin){const s=pfe(o.toString());
2100mq(n,s,()=>s(n.currentUser)),pq(n,a=>s(a))}}const i=yU("auth");return i&&tq(n,`http://${i}`),n}function gfe(){var t;return((t=document.getElementsByTagName("head"))==null?void 0:t[0])??document}vce({loadJS(t){return new Promise((e,n)=>{const r=document.createElement("script");r.setAttribute("src",t),r.onload=e,r.onerror=i=>{const o=Pi("internal-error");o.customData=i,n(o)},r.type="text/javascript",r.charset="UTF-8",gfe().appendChild(r)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});dfe("Browser");const mWe=Object.freeze(Object.defineProperty({__proto__:null,ActionCodeOperation:Ule,ActionCodeURL:ag,AuthCredential:sg,AuthErrorCodes:Gle,EmailAuthCredential:cm,EmailAuthProvider:Ju,FacebookAuthProvider:xl,FactorId:$le,GithubAuthProvider:Tl,GoogleAuthProvider:El,OAuthCredential:Ba,OAuthProvider:iy,OperationType:Hle,PhoneAuthCredential:wu,PhoneAuthProvider:cf,PhoneMultiFactorGenerator:Oq,ProviderId:Fle,RecaptchaVerifier:cde,SAMLAuthProvider:fS,SignInMethod:jle,TotpMultiFactorGenerator:Nq,TotpSecret:hE,TwitterAuthProvider:Cl,applyActionCode:oue,beforeAuthStateChanged:mq,browserCookiePersistence:Uue,browserLocalPersistence:vq,browserPopupRedirectResolver:kq,browserSessionPersistence:OM,checkActionCode:dq,confirmPasswordReset:iue,connectAuthEmulator:tq,createUserWithEmailAndPassword:aue,debugErrorMap:Wle,deleteUser:Nue,fetchSignInMethodsForEmail:hue,getAdditionalUserInfo:Cue,getAuth:mfe,getIdToken:oce,getIdTokenResult:VU,getMultiFactorResolver:Due,getRedirectResult:Pde,inMemoryPersistence:N5,indexedDBLocalPersistence:Tq,initializeAuth:eq,initializeRecaptchaConfig:Aue,isSignInWithEmailLink:uue,linkWithCredential:cq,linkWithPhoneNumber:fde,linkWithPopup:Sde,linkWithRedirect:Mde,multiFactor:$ue,onAuthStateChanged:Rue,onIdTokenChanged:pq,parseActionCodeURL:Xce,prodErrorMap:kU,reauthenticateWithCredential:uq,reauthenticateWithPhoneNumber:hde,reauthenticateWithPopup:wde,reauthenticateWithRedirect:Ide,reload:BU,revokeAccessToken:Oue,sendEmailVerification:pue,sendPasswordResetEmail:rue,sendSignInLinkToEmail:cue,setPersistence:_ue,signInAnonymously:Zce,signInWithCredential:aE,signInWithCustomToken:nue,signInWithEmailAndPassword:lue,signInWithEmailLink:due,signInWithPhoneNumber:dde,signInWithPopup:bde,signInWithRedirect:_de,signOut:Pue,unlink:eue,updateCurrentUser:kue,updateEmail:vue,updatePassword:bue,updatePhoneNumber:pde,updateProfile:yue,useDeviceLanguage:Mue,validatePassword:Iue,verifyBeforeUpdateEmail:mue,verifyPasswordResetCode:sue},Symbol.toStringTag,{value:"Module"}));var vD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 2101Copyright The Closure Library Authors. 2102SPDX-License-Identifier: Apache-2.0 2103*/var Su,Dq;(function(){var t;/** @license 2104 2105 Copyright The Closure Library Authors. 2106 SPDX-License-Identifier: Apache-2.0 2107*/function e(T,A){function R(){}R.prototype=A.prototype,T.F=A.prototype,T.prototype=new R,T.prototype.constructor=T,T.D=function(k,P,C){for(var _=Array(arguments.length-2),M=2;M<arguments.length;M++)_[M-2]=arguments[M];return A.prototype[P].apply(k,_)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}e(r,n),r.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(T,A,R){R||(R=0);const k=Array(16);if(typeof A=="string")for(var P=0;P<16;++P)k[P]=A.charCodeAt(R++)|A.charCodeAt(R++)<<8|A.charCodeAt(R++)<<16|A.charCodeAt(R++)<<24;else for(P=0;P<16;++P)k[P]=A[R++]|A[R++]<<8|A[R++]<<16|A[R++]<<24;A=T.g[0],R=T.g[1],P=T.g[2];let C=T.g[3],_;_=A+(C^R&(P^C))+k[0]+3614090360&4294967295,A=R+(_<<7&4294967295|_>>>25),_=C+(P^A&(R^P))+k[1]+3905402710&4294967295,C=A+(_<<12&4294967295|_>>>20),_=P+(R^C&(A^R))+k[2]+606105819&4294967295,P=C+(_<<17&4294967295|_>>>15),_=R+(A^P&(C^A))+k[3]+3250441966&4294967295,R=P+(_<<22&4294967295|_>>>10),_=A+(C^R&(P^C))+k[4]+4118548399&4294967295,A=R+(_<<7&4294967295|_>>>25),_=C+(P^A&(R^P))+k[5]+1200080426&4294967295,C=A+(_<<12&4294967295|_>>>20),_=P+(R^C&(A^R))+k[6]+2821735955&4294967295,P=C+(_<<17&4294967295|_>>>15),_=R+(A^P&(C^A))+k[7]+4249261313&4294967295,R=P+(_<<22&4294967295|_>>>10),_=A+(C^R&(P^C))+k[8]+1770035416&4294967295,A=R+(_<<7&4294967295|_>>>25),_=C+(P^A&(R^P))+k[9]+2336552879&4294967295,C=A+(_<<12&4294967295|_>>>20),_=P+(R^C&(A^R))+k[10]+4294925233&4294967295,P=C+(_<<17&4294967295|_>>>15),_=R+(A^P&(C^A))+k[11]+2304563134&4294967295,R=P+(_<<22&4294967295|_>>>10),_=A+(C^R&(P^C))+k[12]+1804603682&4294967295,A=R+(_<<7&4294967295|_>>>25),_=C+(P^A&(R^P))+k[13]+4254626195&4294967295,C=A+(_<<12&4294967295|_>>>20),_=P+(R^C&(A^R))+k[14]+2792965006&4294967295,P=C+(_<<17&4294967295|_>>>15),_=R+(A^P&(C^A))+k[15]+1236535329&4294967295,R=P+(_<<22&4294967295|_>>>10),_=A+(P^C&(R^P))+k[1]+4129170786&4294967295,A=R+(_<<5&4294967295|_>>>27),_=C+(R^P&(A^R))+k[6]+3225465664&4294967295,C=A+(_<<9&4294967295|_>>>23),_=P+(A^R&(C^A))+k[11]+643717713&4294967295,P=C+(_<<14&4294967295|_>>>18),_=R+(C^A&(P^C))+k[0]+3921069994&4294967295,R=P+(_<<20&4294967295|_>>>12),_=A+(P^C&(R^P))+k[5]+3593408605&4294967295,A=R+(_<<5&4294967295|_>>>27),_=C+(R^P&(A^R))+k[10]+38016083&4294967295,C=A+(_<<9&4294967295|_>>>23),_=P+(A^R&(C^A))+k[15]+3634488961&4294967295,P=C+(_<<14&4294967295|_>>>18),_=R+(C^A&(P^C))+k[4]+3889429448&4294967295,R=P+(_<<20&4294967295|_>>>12),_=A+(P^C&(R^P))+k[9]+568446438&4294967295,A=R+(_<<5&4294967295|_>>>27),_=C+(R^P&(A^R))+k[14]+3275163606&4294967295,C=A+(_<<9&4294967295|_>>>23),_=P+(A^R&(C^A))+k[3]+4107603335&4294967295,P=C+(_<<14&4294967295|_>>>18),_=R+(C^A&(P^C))+k[8]+1163531501&4294967295,R=P+(_<<20&4294967295|_>>>12),_=A+(P^C&(R^P))+k[13]+2850285829&4294967295,A=R+(_<<5&4294967295|_>>>27),_=C+(R^P&(A^R))+k[2]+4243563512&4294967295,C=A+(_<<9&4294967295|_>>>23),_=P+(A^R&(C^A))+k[7]+1735328473&4294967295,P=C+(_<<14&4294967295|_>>>18),_=R+(C^A&(P^C))+k[12]+2368359562&4294967295,R=P+(_<<20&4294967295|_>>>12),_=A+(R^P^C)+k[5]+4294588738&4294967295,A=R+(_<<4&4294967295|_>>>28),_=C+(A^R^P)+k[8]+2272392833&4294967295,C=A+(_<<11&4294967295|_>>>21),_=P+(C^A^R)+k[11]+1839030562&4294967295,P=C+(_<<16&4294967295|_>>>16),_=R+(P^C^A)+k[14]+4259657740&4294967295,R=P+(_<<23&4294967295|_>>>9),_=A+(R^P^C)+k[1]+2763975236&4294967295,A=R+(_<<4&4294967295|_>>>28),_=C+(A^R^P)+k[4]+1272893353&4294967295,C=A+(_<<11&4294967295|_>>>21),_=P+(C^A^R)+k[7]+4139469664&4294967295,P=C+(_<<16&4294967295|_>>>16),_=R+(P^C^A)+k[10]+3200236656&4294967295,R=P+(_<<23&4294967295|_>>>9),_=A+(R^P^C)+k[13]+681279174&4294967295,A=R+(_<<4&4294967295|_>>>28),_=C+(A^R^P)+k[0]+3936430074&4294967295,C=A+(_<<11&4294967295|_>>>21),_=P+(C^A^R)+k[3]+3572445317&4294967295,P=C+(_<<16&4294967295|_>>>16),_=R+(P^C^A)+k[6]+76029189&4294967295,R=P+(_<<23&4294967295|_>>>9),_=A+(R^P^C)+k[9]+3654602809&4294967295,A=R+(_<<4&4294967295|_>>>28),_=C+(A^R^P)+k[12]+3873151461&4294967295,C=A+(_<<11&4294967295|_>>>21),_=P+(C^A^R)+k[15]+530742520&4294967295,P=C+(_<<16&4294967295|_>>>16),_=R+(P^C^A)+k[2]+3299628645&4294967295,R=P+(_<<23&4294967295|_>>>9),_=A+(P^(R|~C))+k[0]+4096336452&4294967295,A=R+(_<<6&4294967295|_>>>26),_=C+(R^(A|~P))+k[7]+1126891415&4294967295,C=A+(_<<10&4294967295|_>>>22),_=P+(A^(C|~R))+k[14]+2878612391&4294967295,P=C+(_<<15&4294967295|_>>>17),_=R+(C^(P|~A))+k[5]+4237533241&4294967295,R=P+(_<<21&4294967295|_>>>11),_=A+(P^(R|~C))+k[12]+1700485571&4294967295,A=R+(_<<6&4294967295|_>>>26),_=C+(R^(A|~P))+k[3]+2399980690&4294967295,C=A+(_<<10&4294967295|_>>>22),_=P+(A^(C|~R))+k[10]+4293915773&4294967295,P=C+(_<<15&4294967295|_>>>17),_=R+(C^(P|~A))+k[1]+2240044497&4294967295,R=P+(_<<21&4294967295|_>>>11),_=A+(P^(R|~C))+k[8]+1873313359&4294967295,A=R+(_<<6&4294967295|_>>>26),_=C+(R^(A|~P))+k[15]+4264355552&4294967295,C=A+(_<<10&4294967295|_>>>22),_=P+(A^(C|~R))+k[6]+2734768916&4294967295,P=C+(_<<15&4294967295|_>>>17),_=R+(C^(P|~A))+k[13]+1309151649&4294967295,R=P+(_<<21&4294967295|_>>>11),_=A+(P^(R|~C))+k[4]+4149444226&4294967295,A=R+(_<<6&4294967295|_>>>26),_=C+(R^(A|~P))+k[11]+3174756917&4294967295,C=A+(_<<10&4294967295|_>>>22),_=P+(A^(C|~R))+k[2]+718787259&4294967295,P=C+(_<<15&4294967295|_>>>17),_=R+(C^(P|~A))+k[9]+3951481745&4294967295,T.g[0]=T.g[0]+A&4294967295,T.g[1]=T.g[1]+(P+(_<<21&4294967295|_>>>11))&4294967295,T.g[2]=T.g[2]+P&4294967295,T.g[3]=T.g[3]+C&4294967295}r.prototype.v=function(T,A){A===void 0&&(A=T.length);const R=A-this.blockSize,k=this.C;let P=this.h,C=0;for(;C<A;){if(P==0)for(;C<=R;)i(this,T,C),C+=this.blockSize;if(typeof T=="string"){for(;C<A;)if(k[P++]=T.charCodeAt(C++),P==this.blockSize){i(this,k),P=0;break}}else for(;C<A;)if(k[P++]=T[C++],P==this.blockSize){i(this,k),P=0;break}}this.h=P,this.o+=A},r.prototype.A=function(){var T=Array((this.h<56?this.blockSize:this.blockSize*2)-this.h);T[0]=128;for(var A=1;A<T.length-8;++A)T[A]=0;A=this.o*8;for(var R=T.length-8;R<T.length;++R)T[R]=A&255,A/=256;for(this.v(T),T=Array(16),A=0,R=0;R<4;++R)for(let k=0;k<32;
2107k+=8)T[A++]=this.g[R]>>>k&255;return T};function o(T,A){var R=a;return Object.prototype.hasOwnProperty.call(R,T)?R[T]:R[T]=A(T)}function s(T,A){this.h=A;const R=[];let k=!0;for(let P=T.length-1;P>=0;P--){const C=T[P]|0;k&&C==A||(R[P]=C,k=!1)}this.g=R}var a={};function l(T){return-128<=T&&T<128?o(T,function(A){return new s([A|0],A<0?-1:0)}):new s([T|0],T<0?-1:0)}function c(T){if(isNaN(T)||!isFinite(T))return d;if(T<0)return g(c(-T));const A=[];let R=1;for(let k=0;T>=R;k++)A[k]=T/R|0,R*=4294967296;return new s(A,0)}function u(T,A){if(T.length==0)throw Error("number format error: empty string");if(A=A||10,A<2||36<A)throw Error("radix out of range: "+A);if(T.charAt(0)=="-")return g(u(T.substring(1),A));if(T.indexOf("-")>=0)throw Error('number format error: interior "-" character');const R=c(Math.pow(A,8));let k=d;for(let C=0;C<T.length;C+=8){var P=Math.min(8,T.length-C);const _=parseInt(T.substring(C,C+P),A);P<8?(P=c(Math.pow(A,P)),k=k.j(P).add(c(_))):(k=k.j(R),k=k.add(c(_)))}return k}var d=l(0),f=l(1),h=l(16777216);t=s.prototype,t.m=function(){if(m(this))return-g(this).m();let T=0,A=1;for(let R=0;R<this.g.length;R++){const k=this.i(R);T+=(k>=0?k:4294967296+k)*A,A*=4294967296}return T},t.toString=function(T){if(T=T||10,T<2||36<T)throw Error("radix out of range: "+T);if(p(this))return"0";if(m(this))return"-"+g(this).toString(T);const A=c(Math.pow(T,6));var R=this;let k="";for(;;){const P=S(R,A).g;R=y(R,P.j(A));let C=((R.g.length>0?R.g[0]:R.h)>>>0).toString(T);if(R=P,p(R))return C+k;for(;C.length<6;)C="0"+C;k=C+k}},t.i=function(T){return T<0?0:T<this.g.length?this.g[T]:this.h};function p(T){if(T.h!=0)return!1;for(let A=0;A<T.g.length;A++)if(T.g[A]!=0)return!1;return!0}function m(T){return T.h==-1}t.l=function(T){return T=y(this,T),m(T)?-1:p(T)?0:1};function g(T){const A=T.g.length,R=[];for(let k=0;k<A;k++)R[k]=~T.g[k];return new s(R,~T.h).add(f)}t.abs=function(){return m(this)?g(this):this},t.add=function(T){const A=Math.max(this.g.length,T.g.length),R=[];let k=0;for(let P=0;P<=A;P++){let C=k+(this.i(P)&65535)+(T.i(P)&65535),_=(C>>>16)+(this.i(P)>>>16)+(T.i(P)>>>16);k=_>>>16,C&=65535,_&=65535,R[P]=_<<16|C}return new s(R,R[R.length-1]&-2147483648?-1:0)};function y(T,A){return T.add(g(A))}t.j=function(T){if(p(this)||p(T))return d;if(m(this))return m(T)?g(this).j(g(T)):g(g(this).j(T));if(m(T))return g(this.j(g(T)));if(this.l(h)<0&&T.l(h)<0)return c(this.m()*T.m());const A=this.g.length+T.g.length,R=[];for(var k=0;k<2*A;k++)R[k]=0;for(k=0;k<this.g.length;k++)for(let P=0;P<T.g.length;P++){const C=this.i(k)>>>16,_=this.i(k)&65535,M=T.i(P)>>>16,V=T.i(P)&65535;R[2*k+2*P]+=_*V,b(R,2*k+2*P),R[2*k+2*P+1]+=C*V,b(R,2*k+2*P+1),R[2*k+2*P+1]+=_*M,b(R,2*k+2*P+1),R[2*k+2*P+2]+=C*M,b(R,2*k+2*P+2)}for(T=0;T<A;T++)R[T]=R[2*T+1]<<16|R[2*T];for(T=A;T<2*A;T++)R[T]=0;return new s(R,0)};function b(T,A){for(;(T[A]&65535)!=T[A];)T[A+1]+=T[A]>>>16,T[A]&=65535,A++}function v(T,A){this.g=T,this.h=A}function S(T,A){if(p(A))throw Error("division by zero");if(p(T))return new v(d,d);if(m(T))return A=S(g(T),A),new v(g(A.g),g(A.h));if(m(A))return A=S(T,g(A)),new v(g(A.g),A.h);if(T.g.length>30){if(m(T)||m(A))throw Error("slowDivide_ only works with positive integers.");for(var R=f,k=A;k.l(T)<=0;)R=I(R),k=I(k);var P=O(R,1),C=O(k,1);for(k=O(k,2),R=O(R,2);!p(k);){var _=C.add(k);_.l(T)<=0&&(P=P.add(R),C=_),k=O(k,1),R=O(R,1)}return A=y(T,P.j(A)),new v(P,A)}for(P=d;T.l(A)>=0;){for(R=Math.max(1,Math.floor(T.m()/A.m())),k=Math.ceil(Math.log(R)/Math.LN2),k=k<=48?1:Math.pow(2,k-48),C=c(R),_=C.j(A);m(_)||_.l(T)>0;)R-=k,C=c(R),_=C.j(A);p(C)&&(C=f),P=P.add(C),T=y(T,_)}return new v(P,T)}t.B=function(T){return S(this,T).h},t.and=function(T){const A=Math.max(this.g.length,T.g.length),R=[];for(let k=0;k<A;k++)R[k]=this.i(k)&T.i(k);return new s(R,this.h&T.h)},t.or=function(T){const A=Math.max(this.g.length,T.g.length),R=[];for(let k=0;k<A;k++)R[k]=this.i(k)|T.i(k);return new s(R,this.h|T.h)},t.xor=function(T){const A=Math.max(this.g.length,T.g.length),R=[];for(let k=0;k<A;k++)R[k]=this.i(k)^T.i(k);return new s(R,this.h^T.h)};function I(T){const A=T.g.length+1,R=[];for(let k=0;k<A;k++)R[k]=T.i(k)<<1|T.i(k-1)>>>31;return new s(R,T.h)}function O(T,A){const R=A>>5;A%=32;const k=T.g.length-R,P=[];for(let C=0;C<k;C++)P[C]=A>0?T.i(C+R)>>>A|T.i(C+R+1)<<32-A:T.i(C+R);return new s(P,T.h)}r.prototype.digest=r.prototype.A,r.prototype.reset=r.prototype.u,r.prototype.update=r.prototype.v,Dq=r,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.B,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=c,s.fromString=u,Su=s}).apply(typeof vD<"u"?vD:typeof self<"u"?self:typeof window<"u"?window:{});var Db=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 2108Copyright The Closure Library Authors. 2109SPDX-License-Identifier: Apache-2.0 2110*/var Lq,E1,zq,Q2,L5,Vq,Bq,$q;(function(){var t,e=Object.defineProperty;function n(w){w=[typeof globalThis=="object"&&globalThis,w,typeof window=="object"&&window,typeof self=="object"&&self,typeof Db=="object"&&Db];for(var D=0;D<w.length;++D){var $=w[D];if($&&$.Math==Math)return $}throw Error("Cannot find global object")}var r=n(this);function i(w,D){if(D)e:{var $=r;w=w.split(".");for(var U=0;U<w.length-1;U++){var re=w[U];if(!(re in $))break e;$=$[re]}w=w[w.length-1],U=$[w],D=D(U),D!=U&&D!=null&&e($,w,{configurable:!0,writable:!0,value:D})}}i("Symbol.dispose",function(w){return w||Symbol("Symbol.dispose")}),i("Array.prototype.values",function(w){return w||function(){return this[Symbol.iterator]()}}),i("Object.entries",function(w){return w||function(D){var $=[],U;
vendor: 4,523 bytes, lines 2110-2114
2110for(U in D)Object.prototype.hasOwnProperty.call(D,U)&&$.push([U,D[U]]);return $}});/** @license 2111 2112 Copyright The Closure Library Authors. 2113 SPDX-License-Identifier: Apache-2.0 2114*/var o=o||{},s=this||self;function a(w){var D=typeof w;return D=="object"&&w!=null||D=="function"}function l(w,D,$){return w.call.apply(w.bind,arguments)}function c(w,D,$){return c=l,c.apply(null,arguments)}function u(w,D){var $=Array.prototype.slice.call(arguments,1);return function(){var U=$.slice();return U.push.apply(U,arguments),w.apply(this,U)}}function d(w,D){function $(){}$.prototype=D.prototype,w.Z=D.prototype,w.prototype=new $,w.prototype.constructor=w,w.Ob=function(U,re,fe){for(var je=Array(arguments.length-2),_t=2;_t<arguments.length;_t++)je[_t-2]=arguments[_t];return D.prototype[re].apply(U,je)}}var f=typeof AsyncContext<"u"&&typeof AsyncContext.Snapshot=="function"?w=>w&&AsyncContext.Snapshot.wrap(w):w=>w;function h(w){const D=w.length;if(D>0){const $=Array(D);for(let U=0;U<D;U++)$[U]=w[U];return $}return[]}function p(w,D){for(let U=1;U<arguments.length;U++){const re=arguments[U];var $=typeof re;if($=$!="object"?$:re?Array.isArray(re)?"array":$:"null",$=="array"||$=="object"&&typeof re.length=="number"){$=w.length||0;const fe=re.length||0;w.length=$+fe;for(let je=0;je<fe;je++)w[$+je]=re[je]}else w.push(re)}}class m{constructor(D,$){this.i=D,this.j=$,this.h=0,this.g=null}get(){let D;return this.h>0?(this.h--,D=this.g,this.g=D.next,D.next=null):D=this.i(),D}}function g(w){s.setTimeout(()=>{throw w},0)}function y(){var w=T;let D=null;return w.g&&(D=w.g,w.g=w.g.next,w.g||(w.h=null),D.next=null),D}class b{constructor(){this.h=this.g=null}add(D,$){const U=v.get();U.set(D,$),this.h?this.h.next=U:this.g=U,this.h=U}}var v=new m(()=>new S,w=>w.reset());class S{constructor(){this.next=this.g=this.h=null}set(D,$){this.h=D,this.g=$,this.next=null}reset(){this.next=this.g=this.h=null}}let I,O=!1,T=new b,A=()=>{const w=Promise.resolve(void 0);I=()=>{w.then(R)}};function R(){for(var w;w=y();){try{w.h.call(w.g)}catch($){g($)}var D=v;D.j(w),D.h<100&&(D.h++,w.next=D.g,D.g=w)}O=!1}function k(){this.u=this.u,this.C=this.C}k.prototype.u=!1,k.prototype.dispose=function(){this.u||(this.u=!0,this.N())},k.prototype[Symbol.dispose]=function(){this.dispose()},k.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function P(w,D){this.type=w,this.g=this.target=D,this.defaultPrevented=!1}P.prototype.h=function(){this.defaultPrevented=!0};var C=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var w=!1,D=Object.defineProperty({},"passive",{get:function(){w=!0}});try{const $=()=>{};s.addEventListener("test",$,D),s.removeEventListener("test",$,D)}catch{}return w}();function _(w){return/^[\s\xa0]*$/.test(w)}function M(w,D){P.call(this,w?w.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,w&&this.init(w,D)}d(M,P),M.prototype.init=function(w,D){const $=this.type=w.type,U=w.changedTouches&&w.changedTouches.length?w.changedTouches[0]:null;this.target=w.target||w.srcElement,this.g=D,D=w.relatedTarget,D||($=="mouseover"?D=w.fromElement:$=="mouseout"&&(D=w.toElement)),this.relatedTarget=D,U?(this.clientX=U.clientX!==void 0?U.clientX:U.pageX,this.clientY=U.clientY!==void 0?U.clientY:U.pageY,this.screenX=U.screenX||0,this.screenY=U.screenY||0):(this.clientX=w.clientX!==void 0?w.clientX:w.pageX,this.clientY=w.clientY!==void 0?w.clientY:w.pageY,this.screenX=w.screenX||0,this.screenY=w.screenY||0),this.button=w.button,this.key=w.key||"",this.ctrlKey=w.ctrlKey,this.altKey=w.altKey,this.shiftKey=w.shiftKey,this.metaKey=w.metaKey,this.pointerId=w.pointerId||0,this.pointerType=w.pointerType,this.state=w.state,this.i=w,w.defaultPrevented&&M.Z.h.call(this)},M.prototype.h=function(){M.Z.h.call(this);const w=this.i;w.preventDefault?w.preventDefault():w.returnValue=!1};var V="closure_listenable_"+(Math.random()*1e6|0),N=0;function z(w,D,$,U,re){this.listener=w,this.proxy=null,this.src=D,this.type=$,this.capture=!!U,this.ha=re,this.key=++N,this.da=this.fa=!1}function L(w){w.da=!0,w.listener=null,w.proxy=null,w.src=null,w.ha=null}function B(w,D,$){for(const U in w)D.call($,w[U],U,w)}function j(w,D){for(const $ in w)D.call(void 0,w[$],$,w)}function H(w){const D={};for(const $ in w)D[$]=w[$];return D}const q="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
2114ing toString valueOf".split(" ");function Y(w,D){let $,U;for(let re=1;re<arguments.length;re++){U=arguments[re];for($ in U)w[$]=U[$];for(let fe=0;fe<q.length;fe++)$=q[fe],Object.prototype.hasOwnProperty.call(U,$)&&(w[$]=U[$])}}function Z(w){this.src=w,this.g={},this.h=0}Z.prototype.add=function(w,D,$,U,re){const fe=w.toString();w=this.g[fe],w||(w=this.g[fe]=[],this.h++);const je=X(w,D,U,re);return je>-1?(D=w[je],$||(D.fa=!1)):(D=new z(D,this.src,fe,!!U,re),D.fa=$,w.push(D)),D};function G(w,D){const $=D.type;if($ in w.g){var U=w.g[$],re=Array.prototype.indexOf.call(U,D,void 0),fe;(fe=re>=0)&&Array.prototype.splice.call(U,re,1),fe&&(L(D),w.g[$].length==0&&(delete w.g[$],w.h--))}}function X(w,D,$,U){for(let re=0;re<w.length;++re){const fe=w[re];if(!fe.da&&fe.listener==D&&fe.capture==!!$&&fe.ha==U)return re}return-1}var K="closure_lm_"+(Math.random()*1e6|0),J={};function te(w,D,$,U,re){if(Array.isArray(D)){for(let fe=0;fe<D.length;fe++)te(w,D[fe],$,U,re);return null}return $=ae($),w&&w[V]?w.J(D,$,a(U)?!!U.capture:!1,re):ne(w,D,$,!1,U,re)}function ne(w,D,$,U,re,fe){if(!D)throw Error("Invalid event type");const je=a(re)?!!re.capture:!!re;let _t=ve(w);if(_t||(w[K]=_t=new Z(w)),$=_t.add(D,$,U,je,fe),$.proxy)return $;if(U=ce(),$.proxy=U,U.src=w,U.listener=$,w.addEventListener)C||(re=je),re===void 0&&(re=!1),w.addEventListener(D.toString(),U,re);else if(w.attachEvent)w.attachEvent(ue(D.toString()),U);else if(w.addListener&&w.removeListener)w.addListener(U);else throw Error("addEventListener and attachEvent are unavailable.");return $}function ce(){function w($){return D.call(w.src,w.listener,$)}const D=pe;return w}function ie(w,D,$,U,re){if(Array.isArray(D))for(var fe=0;fe<D.length;fe++)ie(w,D[fe],$,U,re);else U=a(U)?!!U.capture:!!U,$=ae($),w&&w[V]?(w=w.i,fe=String(D).toString(),fe in w.g&&(D=w.g[fe],$=X(D,$,U,re),$>-1&&(L(D[$]),Array.prototype.splice.call(D,$,1),D.length==0&&(delete w.g[fe],w.h--)))):w&&(w=ve(w))&&(D=w.g[D.toString()],w=-1,D&&(w=X(D,$,U,re)),($=w>-1?D[w]:null)&&oe($))}function oe(w){if(typeof w!="number"&&w&&!w.da){var D=w.src;if(D&&D[V])G(D.i,w);else{var $=w.type,U=w.proxy;D.removeEventListener?D.removeEventListener($,U,w.capture):D.detachEvent?D.detachEvent(ue($),U):D.addListener&&D.removeListener&&D.removeListener(U),($=ve(D))?(G($,w),$.h==0&&($.src=null,D[K]=null)):L(w)}}}function ue(w){return w in J?J[w]:J[w]="on"+w}function pe(w,D){if(w.da)w=!0;else{D=new M(D,this);const $=w.listener,U=w.ha||w.src;w.fa&&oe(w),w=$.call(U,D)}return w}function ve(w){return w=w[K],w instanceof Z?w:null}var se="__closure_events_fn_"+(Math.random()*1e9>>>0);function ae(w){return typeof w=="function"?w:(w[se]||(w[se]=function(D){return w.handleEvent(D)}),w[se])}function ke(){k.call(this),this.i=new Z(this),this.M=this,this.G=null}d(ke,k),ke.prototype[V]=!0,ke.prototype.removeEventListener=function(w,D,$,U){ie(this,w,D,$,U)};function Ee(w,D){var $,U=w.G;if(U)for($=[];U;U=U.G)$.push(U);
vendor: 9,445 bytes, lines 2114-2119
2114if(w=w.M,U=D.type||D,typeof D=="string")D=new P(D,w);else if(D instanceof P)D.target=D.target||w;else{var re=D;D=new P(U,w),Y(D,re)}re=!0;let fe,je;if($)for(je=$.length-1;je>=0;je--)fe=D.g=$[je],re=_e(fe,U,!0,D)&&re;if(fe=D.g=w,re=_e(fe,U,!0,D)&&re,re=_e(fe,U,!1,D)&&re,$)for(je=0;je<$.length;je++)fe=D.g=$[je],re=_e(fe,U,!1,D)&&re}ke.prototype.N=function(){if(ke.Z.N.call(this),this.i){var w=this.i;for(const D in w.g){const $=w.g[D];for(let U=0;U<$.length;U++)L($[U]);delete w.g[D],w.h--}}this.G=null},ke.prototype.J=function(w,D,$,U){return this.i.add(String(w),D,!1,$,U)},ke.prototype.K=function(w,D,$,U){return this.i.add(String(w),D,!0,$,U)};function _e(w,D,$,U){if(D=w.i.g[String(D)],!D)return!0;D=D.concat();let re=!0;for(let fe=0;fe<D.length;++fe){const je=D[fe];if(je&&!je.da&&je.capture==$){const _t=je.listener,Pr=je.ha||je.src;je.fa&&G(w.i,je),re=_t.call(Pr,U)!==!1&&re}}return re&&!U.defaultPrevented}function we(w,D){if(typeof w!="function")if(w&&typeof w.handleEvent=="function")w=c(w.handleEvent,w);else throw Error("Invalid listener argument");return Number(D)>2147483647?-1:s.setTimeout(w,D||0)}function et(w){w.g=we(()=>{w.g=null,w.i&&(w.i=!1,et(w))},w.l);const D=w.h;w.h=null,w.m.apply(null,D)}class rt extends k{constructor(D,$){super(),this.m=D,this.l=$,this.h=null,this.i=!1,this.g=null}j(D){this.h=arguments,this.g?this.i=!0:et(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function he(w){k.call(this),this.h=w,this.g={}}d(he,k);var be=[];function De(w){B(w.g,function(D,$){this.g.hasOwnProperty($)&&oe(D)},w),w.g={}}he.prototype.N=function(){he.Z.N.call(this),De(this)},he.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Be=s.JSON.stringify,Xe=s.JSON.parse,Me=class{stringify(w){return s.JSON.stringify(w,void 0)}parse(w){return s.JSON.parse(w,void 0)}};function xe(){}function Ge(){}var Ke={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function nt(){P.call(this,"d")}d(nt,P);function en(){P.call(this,"c")}d(en,P);var Wt={},Jt=null;function pn(){return Jt=Jt||new ke}Wt.Ia="serverreachability";function Cn(w){P.call(this,Wt.Ia,w)}d(Cn,P);function tn(w){const D=pn();Ee(D,new Cn(D))}Wt.STAT_EVENT="statevent";function Ue(w,D){P.call(this,Wt.STAT_EVENT,w),this.stat=D}d(Ue,P);function Fe(w){const D=pn();Ee(D,new Ue(D,w))}Wt.Ja="timingevent";function ct(w,D){P.call(this,Wt.Ja,w),this.size=D}d(ct,P);function Dt(w,D){if(typeof w!="function")throw Error("Fn must not be null and must be a function");return s.setTimeout(function(){w()},D)}function Gt(){this.g=!0}Gt.prototype.ua=function(){this.g=!1};function mn(w,D,$,U,re,fe){w.info(function(){if(w.g)if(fe){var je="",_t=fe.split("&");for(let wn=0;wn<_t.length;wn++){var Pr=_t[wn].split("=");if(Pr.length>1){const Vr=Pr[0];Pr=Pr[1];const ua=Vr.split("_");je=ua.length>=2&&ua[1]=="type"?je+(Vr+"="+Pr+"&"):je+(Vr+"=redacted&")}}}else je=null;else je=fe;return"XMLHTTP REQ ("+U+") [attempt "+re+"]: "+D+` 2115`+$+` 2116`+je})}function st(w,D,$,U,re,fe,je){w.info(function(){return"XMLHTTP RESP ("+U+") [ attempt "+re+"]: "+D+` 2117`+$+` 2118`+fe+" "+je})}function Ct(w,D,$,U){w.info(function(){return"XMLHTTP TEXT ("+D+"): "+Je(w,$)+(U?" "+U:"")})}function $e(w,D){w.info(function(){return"TIMEOUT: "+D})}Gt.prototype.info=function(){};function Je(w,D){if(!w.g)return D;if(!D)return null;try{const fe=JSON.parse(D);if(fe){for(w=0;w<fe.length;w++)if(Array.isArray(fe[w])){var $=fe[w];if(!($.length<2)){var U=$[1];if(Array.isArray(U)&&!(U.length<1)){var re=U[0];if(re!="noop"&&re!="stop"&&re!="close")for(let je=1;je<U.length;je++)U[je]=""}}}}return Be(fe)}catch{return D}}var ht={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},bt={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"},qt;function vr(){}d(vr,xe),vr.prototype.g=function(){return new XMLHttpRequest},qt=new vr;function kr(w){return encodeURIComponent(String(w))}function co(w){var D=1;w=w.split(":");const $=[];for(;D>0&&w.length;)$.push(w.shift()),D--;return w.length&&$.push(w.join(":")),$}function Jr(w,D,$,U){this.j=w,this.i=D,this.l=$,this.S=U||1,this.V=new he(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new Vi}function Vi(){this.i=null,this.g="",this.h=!1}var Bn={},$n={};function xi(w,D,$){w.M=1,w.A=Sh(qo(D)),w.u=$,w.R=!0,nl(w,null)}function nl(w,D){w.F=Date.now(),me(w),w.B=qo(w.A);var $=w.B,U=w.S;Array.isArray(U)||(U=[String(U)]),DN($.i,"t",U),w.C=0,$=w.j.L,w.h=new Vi,w.g=ZN(w.j,$?D:null,!w.u),w.P>0&&(w.O=new rt(c(w.Y,w,w.g),w.P)),D=w.V,$=w.g,U=w.ba;var re="readystatechange";Array.isArray(re)||(re&&(be[0]=re.toString()),re=be);for(let fe=0;fe<re.length;fe++){const je=te($,re[fe],U||D.handleEvent,!1,D.h||D);if(!je)break;D.g[je.key]=je}D=w.J?H(w.J):{},w.u?(w.v||(w.v="POST"),D["Content-Type"]="application/x-www-form-urlencoded",w.g.ea(w.B,w.v,w.u,D)):(w.v="GET",w.g.ea(w.B,w.v,null,D)),tn(),mn(w.i,w.v,w.B,w.l,w.S,w.u)}Jr.prototype.ba=function(w){w=w.target;const D=this.O;D&&bc(w)==3?D.j():this.Y(w)},Jr.prototype.Y=function(w){try{if(w==this.g)e:{const _t=bc(this.g),Pr=this.g.ya(),wn=this.g.ca();if(!(_t<3)&&(_t!=3||this.g&&(this.h.h||this.g.la()||jN(this.g)))){this.K||_t!=4||Pr==7||(Pr==8||wn<=0?tn(3):tn(2)),at(this);var D=this.g.ca();this.X=D;var $=sa(this);if(this.o=D==200,st(this.i,this.v,this.B,this.l,this.S,_t,D),this.o){if(this.U&&!this.L){t:{if(this.g){var U,re=this.g;if((U=re.g?re.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!_(U)){var fe=U;break t}}fe=null}if(w=fe)Ct(this.i,this.l,w,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,bn(this,w);else{this.o=!1,this.m=3,Fe(12),nn(this),dt(this);break e}}if(this.R){w=!0;let Vr;for(;!this.K&&this.C<$.length;)if(Vr=ge(this,$),Vr==$n){_t==4&&(this.m=4,Fe(14),w=!1),Ct(this.i,this.l,null,"[Incomplete Response]");break}else if(Vr==Bn){this.m=4,Fe(15),Ct(this.i,this.l,$,"[Invalid Chunk]"),w=!1;break}else Ct(this.i,this.l,Vr,null),bn(this,Vr);if(rl(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),_t!=4||$.length!=0||this.h.h||(this.m=1,Fe(16),w=!1),this.o=this.o&&w,!w)Ct(this.i,this.l,$,"[Invalid Chunked Response]"),nn(this),dt(this);else if($.length>0&&!this.W){this.W=!0;var je=this.j;je.g==this&&je.aa&&!je.P&&(je.j.info("Great, no buffering proxy detected. Bytes received: "+$.length),KC(je),je.P=!0,Fe(11))}}else Ct(this.i,this.l,$,null),bn(this,$);_t==4&&nn(this),this.o&&!this.K&&(_t==4?YN(this.j,this):(this.o=!1,me(this)))}else sre(this.g),D==400&&$.indexOf("Unknown SID")>0?(this.m=3,Fe(12)):(this.m=0,Fe(13)),nn(this),dt(this)}}}catch{}finally{}};function sa(w){if(!rl(w))return w.g.la();const D=jN(w.g);if(D==="")return"";let $="";const U=D.length,re=bc(w.g)==4;if(!w.h.i){if(typeof TextDecoder>"u")return nn(w),dt(w),"";w.h.i=new s.TextDecoder}for(let fe=0;fe<U;fe++)w.h.h=!0,$+=w.h.i.decode(D[fe],{stream:!(re&&fe==U-1)});return D.length=0,w.h.g+=$,w.C=0,w.h.g}function rl(w){return w.g?w.v=="GET"&&w.M!=2&&w.j.Aa:!1}function ge(w,D){var $=w.C,U=D.indexOf(` 2119`,$);return U==-1?$n:($=Number(D.substring($,U)),isNaN($)?Bn:(U+=1,U+$>D.length?$n:(D=D.slice(U,U+$),w.C=U+$,D)))}Jr.prototype.cancel=function(){this.K=!0,nn(this)};function me(w){w.T=Date.now()+w.H,qe(w,w.H)}function qe(w,D){if(w.D!=null)throw Error("WatchDog timer not null");w.D=Dt(c(w.aa,w),D)}function at(w){w.D&&(s.clearTimeout(w.D),w.D=null)}Jr.prototype.aa=function(){this.D=null;const w=Date.now();w-this.T>=0?($e(this.i,this.B),this.M!=2&&(tn(),Fe(17)),nn(this),this.m=2,dt(this)):qe(this,this.T-w)};function dt(w){w.j.I==0||w.K||YN(w.j,w)}function nn(w){at(w);var D=w.O;D&&typeof D.dispose=="function"&&D.dispose(),w.O=null,De(w.V),w.g&&(D=w.g,w.g=null,D.abort(),D.dispose())}function bn(w,D){try{var $=w.j;if($.I!=0&&($.g==w||aa($.h,w))){if(!w.L&&aa($.h,w)&&$.I==3){try{var U=$.Ba.g.parse(D)}catch{U=null}if(Array.isArray(U)&&U.length==3){var re=U;if(re[0]==0){e:if(!$.v){if($.g)if($.g.F+3e3<w.F)pb($),fb($);else break e;GC($),Fe(18)}}else $.xa=re[1],0<$.xa-$.K&&re[2]<37500&&$.F&&$.A==0&&!$.C&&($.C=Dt(c($.Va,$),6e3));ol($.h)<=1&&$.ta&&($.ta=void 0)}else wd($,11)}else if((w.L||$.g==w)&&pb($),!_(D))for(re=$.Ba.g.parse(D),D=0;D<re.length;D++){let wn=re[D];const Vr=wn[0];if(!(Vr<=$.K))if($.K=Vr,wn=wn[1],$.I==2)if(wn[0]=="c"){$.M=wn[1],$.ba=wn[2];const ua=wn[3];ua!=null&&($.ka=ua,$.j.info("VER="+$.ka));const Sd=wn[4];Sd!=null&&($.za=Sd,$.j.info("SVER="+$.za));const wc=wn[5];wc!=null&&typeof wc=="number"&&wc>0&&(U=1.5*wc,$.O=U,$.j.info("backChannelRequestTimeoutMs_="+U)),U=$;const Sc=w.g;if(Sc){const gb=Sc.g?Sc.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(gb){var fe=U.h;fe.g||gb.indexOf("spdy")==-1&&gb.indexOf("quic")==-1&&gb.indexOf("h2")==-1||(fe.j=fe.l,fe.g=new Set,fe.h&&(Rt(fe,fe.h),fe.h=null))}if(U.G){const YC=Sc.g?Sc.g.getResponseHeader("X-HTTP-Session-Id"):null;YC&&(U.wa=YC,Zt(U.J,U.G,YC))}}$.I=3,$.l&&$.l.ra(),$.aa&&($.T=Date.now()-w.F,$.j.info("Handshake RTT: "+$.T+"ms")),U=$;var je=w;if(U.na=JN(U,U.L?U.ba:null,U.W),je.L){Bi(U.h,je);var _t=je,Pr=U.O;Pr&&(_t.H=Pr),_t.D&&(at(_t),me(_t)),U.g=je}else GN(U);$.i.length>0&&hb($)}else wn[0]!="stop"&&wn[0]!="close"||wd($,7);else $.I==3&&(wn[0]=="stop"||wn[0]=="close"?wn[0]=="stop"?wd($,7):WC($):wn[0]!="noop"&&$.l&&$.l.qa(wn),$.A=0)}}tn(4)}
2119catch{}}var Ei=class{constructor(w,D){this.g=w,this.map=D}};function il(w){this.l=w||10,s.PerformanceNavigationTiming?(w=s.performance.getEntriesByType("navigation"),w=w.length>0&&(w[0].nextHopProtocol=="hq"||w[0].nextHopProtocol=="h2")):w=!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=w?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function md(w){return w.h?!0:w.g?w.g.size>=w.j:!1}function ol(w){return w.h?1:w.g?w.g.size:0}function aa(w,D){return w.h?w.h==D:w.g?w.g.has(D):!1}function Rt(w,D){w.g?w.g.add(D):w.h=D}function Bi(w,D){w.h&&w.h==D?w.h=null:w.g&&w.g.has(D)&&w.g.delete(D)}il.prototype.cancel=function(){if(this.i=uo(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const w of this.g.values())w.cancel();this.g.clear()}};function uo(w){if(w.h!=null)return w.i.concat(w.h.G);if(w.g!=null&&w.g.size!==0){let D=w.i;for(const $ of w.g.values())D=D.concat($.G);return D}return h(w.i)}var la=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function $C(w,D){if(w){w=w.split("&");for(let $=0;$<w.length;$++){const U=w[$].indexOf("=");let re,fe=null;U>=0?(re=w[$].substring(0,U),fe=w[$].substring(U+1)):re=w[$],D(re,fe?decodeURIComponent(fe.replace(/\+/g," ")):"")}}}function ca(w){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let D;w instanceof ca?(this.l=w.l,gd(this,w.j),this.o=w.o,this.g=w.g,yd(this,w.u),this.h=w.h,Ag(this,LN(w.i)),this.m=w.m):w&&(D=String(w).match(la))?(this.l=!1,gd(this,D[1]||"",!0),this.o=yc(D[2]||""),this.g=yc(D[3]||"",!0),yd(this,D[4]),this.h=yc(D[5]||"",!0),Ag(this,D[6]||"",!0),this.m=yc(D[7]||"")):(this.l=!1,this.i=new Ig(null,this.l))}ca.prototype.toString=function(){const w=[];var D=this.j;D&&w.push(vd(D,xh,!0),":");var $=this.g;return($||D=="file")&&(w.push("//"),(D=this.o)&&w.push(vd(D,xh,!0),"@"),w.push(kr($).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),$=this.u,$!=null&&w.push(":",String($))),($=this.h)&&(this.g&&$.charAt(0)!="/"&&w.push("/"),w.push(vd($,$.charAt(0)=="/"?HC:jC,!0))),($=this.i.toString())&&w.push("?",$),($=this.m)&&w.push("#",vd($,Zne)),w.join("")},ca.prototype.resolve=function(w){const D=qo(this);let $=!!w.j;$?gd(D,w.j):$=!!w.o,$?D.o=w.o:$=!!w.g,$?D.g=w.g:$=w.u!=null;var U=w.h;if($)yd(D,w.u);else if($=!!w.h){if(U.charAt(0)!="/")if(this.g&&!this.h)U="/"+U;else{var re=D.h.lastIndexOf("/");re!=-1&&(U=D.h.slice(0,re+1)+U)}if(re=U,re==".."||re==".")U="";else if(re.indexOf("./")!=-1||re.indexOf("/.")!=-1){U=re.lastIndexOf("/",0)==0,re=re.split("/");const fe=[];for(let je=0;je<re.length;){const _t=re[je++];_t=="."?U&&je==re.length&&fe.push(""):_t==".."?((fe.length>1||fe.length==1&&fe[0]!="")&&fe.pop(),U&&je==re.length&&fe.push("")):(fe.push(_t),U=!0)}U=fe.join("/")}else U=re}return $?D.h=U:$=w.i.toString()!=="",$?Ag(D,LN(w.i)):$=!!w.m,$&&(D.m=w.m),D};function qo(w){return new ca(w)}function gd(w,D,$){w.j=$?yc(D,!0):D,w.j&&(w.j=w.j.replace(/:$/,""))}function yd(w,D){if(D){if(D=Number(D),isNaN(D)||D<0)throw Error("Bad port number "+D);w.u=D}else w.u=null}function Ag(w,D,$){D instanceof Ig?(w.i=D,ere(w.i,w.l)):($||(D=vd(D,cb)),w.i=new Ig(D,w.l))}function Zt(w,D,$){w.i.set(D,$)}function Sh(w){return Zt(w,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),w}function yc(w,D){return w?D?decodeURI(w.replace(/%25/g,"%2525")):decodeURIComponent(w):""}function vd(w,D,$){return typeof w=="string"?(w=encodeURI(w).replace(D,FC),$&&(w=w.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w):null}function FC(w){return w=w.charCodeAt(0),"%"+(w>>4&15).toString(16)+(w&15).toString(16)}var xh=/[#\/\?@]/g,jC=/[#\?:]/g,HC=/[#\?]/g,cb=/[#\?@]/g,Zne=/#/g;function Ig(w,D){this.h=this.g=null,this.i=w||null,this.j=!!D}function bd(w){w.g||(w.g=new Map,w.h=0,w.i&&$C(w.i,function(D,$){w.add(decodeURIComponent(D.replace(/\+/g," ")),$)}))}t=Ig.prototype,t.add=function(w,D){bd(this),this.i=null,w=Eh(this,w);let $=this.g.get(w);return $||this.g.set(w,$=[]),$.push(D),this.h+=1,this};function PN(w,D){bd(w),D=Eh(w,D),w.g.has(D)&&(w.i=null,w.h-=w.g.get(
vendor: 7,077 bytes, lines 2119-2121
2119D).length,w.g.delete(D))}function ON(w,D){return bd(w),D=Eh(w,D),w.g.has(D)}t.forEach=function(w,D){bd(this),this.g.forEach(function($,U){$.forEach(function(re){w.call(D,re,U,this)},this)},this)};function NN(w,D){bd(w);let $=[];if(typeof D=="string")ON(w,D)&&($=$.concat(w.g.get(Eh(w,D))));else for(w=Array.from(w.g.values()),D=0;D<w.length;D++)$=$.concat(w[D]);return $}t.set=function(w,D){return bd(this),this.i=null,w=Eh(this,w),ON(this,w)&&(this.h-=this.g.get(w).length),this.g.set(w,[D]),this.h+=1,this},t.get=function(w,D){return w?(w=NN(this,w),w.length>0?String(w[0]):D):D};function DN(w,D,$){PN(w,D),$.length>0&&(w.i=null,w.g.set(Eh(w,D),h($)),w.h+=$.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const w=[],D=Array.from(this.g.keys());for(let U=0;U<D.length;U++){var $=D[U];const re=kr($);$=NN(this,$);for(let fe=0;fe<$.length;fe++){let je=re;$[fe]!==""&&(je+="="+kr($[fe])),w.push(je)}}return this.i=w.join("&")};function LN(w){const D=new Ig;return D.i=w.i,w.g&&(D.g=new Map(w.g),D.h=w.h),D}function Eh(w,D){return D=String(D),w.j&&(D=D.toLowerCase()),D}function ere(w,D){D&&!w.j&&(bd(w),w.i=null,w.g.forEach(function($,U){const re=U.toLowerCase();U!=re&&(PN(this,U),DN(this,re,$))},w)),w.j=D}function tre(w,D){const $=new Gt;if(s.Image){const U=new Image;U.onload=u(vc,$,"TestLoadImage: loaded",!0,D,U),U.onerror=u(vc,$,"TestLoadImage: error",!1,D,U),U.onabort=u(vc,$,"TestLoadImage: abort",!1,D,U),U.ontimeout=u(vc,$,"TestLoadImage: timeout",!1,D,U),s.setTimeout(function(){U.ontimeout&&U.ontimeout()},1e4),U.src=w}else D(!1)}function nre(w,D){const $=new Gt,U=new AbortController,re=setTimeout(()=>{U.abort(),vc($,"TestPingServer: timeout",!1,D)},1e4);fetch(w,{signal:U.signal}).then(fe=>{clearTimeout(re),fe.ok?vc($,"TestPingServer: ok",!0,D):vc($,"TestPingServer: server error",!1,D)}).catch(()=>{clearTimeout(re),vc($,"TestPingServer: error",!1,D)})}function vc(w,D,$,U,re){try{re&&(re.onload=null,re.onerror=null,re.onabort=null,re.ontimeout=null),U($)}catch{}}function rre(){this.g=new Me}function UC(w){this.i=w.Sb||null,this.h=w.ab||!1}d(UC,xe),UC.prototype.g=function(){return new ub(this.i,this.h)};function ub(w,D){ke.call(this),this.H=w,this.o=D,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}d(ub,ke),t=ub.prototype,t.open=function(w,D){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.F=w,this.D=D,this.readyState=1,Mg(this)},t.send=function(w){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const D={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};w&&(D.body=w),(this.H||s).fetch(new Request(this.D,D)).then(this.Pa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,Rg(this)),this.readyState=0},t.Pa=function(w){if(this.g&&(this.l=w,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=w.headers,this.readyState=2,Mg(this)),this.g&&(this.readyState=3,Mg(this),this.g)))if(this.responseType==="arraybuffer")w.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof s.ReadableStream<"u"&&"body"in w){if(this.j=w.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;zN(this)}else w.text().then(this.Oa.bind(this),this.ga.bind(this))};function zN(w){w.j.read().then(w.Ma.bind(w)).catch(w.ga.bind(w))}t.Ma=function(w){if(this.g){if(this.o&&w.value)this.response.push(w.value);else if(!this.o){var D=w.value?w.value:new Uint8Array(0);(D=this.B.decode(D,{stream:!w.done}))&&(this.response=this.responseText+=D)}w.done?Rg(this):Mg(this),this.readyState==3&&zN(this)}},t.Oa=function(w){this.g&&(this.response=this.responseText=w,Rg(this))},t.Na=function(w){this.g&&(this.response=w,Rg(this))},t.ga=function(){this.g&&Rg(this)};function Rg(w){w.readyState=4,w.l=null,w.j=null,w.B=null,Mg(w)}t.setRequestHeader=function(w,D){this.A.append(w,D)},t.getResponseHeader=function(w){return this.h&&this.h.get(w.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const w=[],D=this.h.entries();for(var $=D.next();!$.done;)$=$.value,w.push($[0]+": "+$[1]),$=D.next();return w.join(`\r 2120`)};function Mg(w){w.onreadystatechange&&w.onreadystatechange.call(w)}Object.defineProperty(ub.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(w){this.m=w?"include":"same-origin"}});function VN(w){let D="";return B(w,function($,U){D+=U,D+=":",D+=$,D+=`\r 2121`}),D}function qC(w,D,$){e:{for(U in $){var U=!1;break e}U=!0}U||($=VN($),typeof w=="string"?$!=null&&kr($):Zt(w,D,$))}function Jn(w){ke.call(this),this.headers=new Map,this.L=w||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}d(Jn,ke);var ire=/^https?$/i,ore=["POST","PUT"];t=Jn.prototype,t.Fa=function(w){this.H=w},t.ea=function(w,D,$,U){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+w);D=D?D.toUpperCase():"GET",this.D=w,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():qt.g(),this.g.onreadystatechange=f(c(this.Ca,this));try{this.B=!0,this.g.open(D,String(w),!0),this.B=!1}catch(fe){BN(this,fe);return}if(w=$||"",$=new Map(this.headers),U)if(Object.getPrototypeOf(U)===Object.prototype)for(var re in U)$.set(re,U[re]);else if(typeof U.keys=="function"&&typeof U.get=="function")for(const fe of U.keys())$.set(fe,U.get(fe));else throw Error("Unknown input type for opt_headers: "+String(U));U=Array.from($.keys()).find(fe=>fe.toLowerCase()=="content-type"),re=s.FormData&&w instanceof s.FormData,!(Array.prototype.indexOf.call(ore,D,void 0)>=0)||U||re||$.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[fe,je]of $)this.g.setRequestHeader(fe,je);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(w),this.v=!1}catch(fe){BN(this,fe)}};function BN(w,D){w.h=!1,w.g&&(w.j=!0,w.g.abort(),w.j=!1),w.l=D,w.o=5,$N(w),db(w)}function $N(w){w.A||(w.A=!0,Ee(w,"complete"),Ee(w,"error"))}t.abort=function(w){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=w||7,Ee(this,"complete"),Ee(this,"abort"),db(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),db(this,!0)),Jn.Z.N.call(this)},t.Ca=function(){this.u||(this.B||this.v||this.j?FN(this):this.Xa())},t.Xa=function(){FN(this)};
vendor: 5,508 bytes, lines 2121-2122
2121function FN(w){if(w.h&&typeof o<"u"){if(w.v&&bc(w)==4)setTimeout(w.Ca.bind(w),0);else if(Ee(w,"readystatechange"),bc(w)==4){w.h=!1;try{const fe=w.ca();e:switch(fe){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var D=!0;break e;default:D=!1}var $;if(!($=D)){var U;if(U=fe===0){let je=String(w.D).match(la)[1]||null;!je&&s.self&&s.self.location&&(je=s.self.location.protocol.slice(0,-1)),U=!ire.test(je?je.toLowerCase():"")}$=U}if($)Ee(w,"complete"),Ee(w,"success");else{w.o=6;try{var re=bc(w)>2?w.g.statusText:""}catch{re=""}w.l=re+" ["+w.ca()+"]",$N(w)}}finally{db(w)}}}}function db(w,D){if(w.g){w.m&&(clearTimeout(w.m),w.m=null);const $=w.g;w.g=null,D||Ee(w,"ready");try{$.onreadystatechange=null}catch{}}}t.isActive=function(){return!!this.g};function bc(w){return w.g?w.g.readyState:0}t.ca=function(){try{return bc(this)>2?this.g.status:-1}catch{return-1}},t.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.La=function(w){if(this.g){var D=this.g.responseText;return w&&D.indexOf(w)==0&&(D=D.substring(w.length)),Xe(D)}};function jN(w){try{if(!w.g)return null;if("response"in w.g)return w.g.response;switch(w.F){case"":case"text":return w.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in w.g)return w.g.mozResponseArrayBuffer}return null}catch{return null}}function sre(w){const D={};w=(w.g&&bc(w)>=2&&w.g.getAllResponseHeaders()||"").split(`\r 2122`);for(let U=0;U<w.length;U++){if(_(w[U]))continue;var $=co(w[U]);const re=$[0];if($=$[1],typeof $!="string")continue;$=$.trim();const fe=D[re]||[];D[re]=fe,fe.push($)}j(D,function(U){return U.join(", ")})}t.ya=function(){return this.o},t.Ha=function(){return typeof this.l=="string"?this.l:String(this.l)};function kg(w,D,$){return $&&$.internalChannelParams&&$.internalChannelParams[w]||D}function HN(w){this.za=0,this.i=[],this.j=new Gt,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=kg("failFast",!1,w),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=kg("baseRetryDelayMs",5e3,w),this.Za=kg("retryDelaySeedMs",1e4,w),this.Ta=kg("forwardChannelMaxRetries",2,w),this.va=kg("forwardChannelRequestTimeoutMs",2e4,w),this.ma=w&&w.xmlHttpFactory||void 0,this.Ua=w&&w.Rb||void 0,this.Aa=w&&w.useFetchStreams||!1,this.O=void 0,this.L=w&&w.supportsCrossDomainXhr||!1,this.M="",this.h=new il(w&&w.concurrentRequestLimit),this.Ba=new rre,this.S=w&&w.fastHandshake||!1,this.R=w&&w.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=w&&w.Pb||!1,w&&w.ua&&this.j.ua(),w&&w.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&w&&w.detectBufferingProxy||!1,this.ia=void 0,w&&w.longPollingTimeout&&w.longPollingTimeout>0&&(this.ia=w.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}t=HN.prototype,t.ka=8,t.I=1,t.connect=function(w,D,$,U){Fe(0),this.W=w,this.H=D||{},$&&U!==void 0&&(this.H.OSID=$,this.H.OAID=U),this.F=this.X,this.J=JN(this,null,this.W),hb(this)};function WC(w){if(UN(w),w.I==3){var D=w.V++,$=qo(w.J);if(Zt($,"SID",w.M),Zt($,"RID",D),Zt($,"TYPE","terminate"),Pg(w,$),D=new Jr(w,w.j,D),D.M=2,D.A=Sh(qo($)),$=!1,s.navigator&&s.navigator.sendBeacon)try{$=s.navigator.sendBeacon(D.A.toString(),"")}catch{}!$&&s.Image&&(new Image().src=D.A,$=!0),$||(D.g=ZN(D.j,null),D.g.ea(D.A)),D.F=Date.now(),me(D)}QN(w)}function fb(w){w.g&&(KC(w),w.g.cancel(),w.g=null)}function UN(w){fb(w),w.v&&(s.clearTimeout(w.v),w.v=null),pb(w),w.h.cancel(),w.m&&(typeof w.m=="number"&&s.clearTimeout(w.m),w.m=null)}function hb(w){if(!md(w.h)&&!w.m){w.m=!0;var D=w.Ea;I||A(),O||(I(),O=!0),T.add(D,w),w.D=0}}function are(w,D){return ol(w.h)>=w.h.j-(w.m?1:0)?!1:w.m?(w.i=D.G.concat(w.i),!0):w.I==1||w.I==2||w.D>=(w.Sa?0:w.Ta)?!1:(w.m=Dt(c(w.Ea,w,D),XN(w,w.D)),w.D++,!0)}t.Ea=function(w){if(this.m)if(this.m=null,this.I==1){if(!w){this.V=Math.floor(Math.random()*1e5),w=this.V++;const re=new Jr(this,this.j,w);let fe=this.o;if(this.U&&(fe?(fe=H(fe),Y(fe,this.U)):fe=this.U),this.u!==null||this.R||(re.J=fe,fe=null),this.S)e:{for(var D=0,$=0;$<this.i.length;$++){t:{var U=this.i[$];if("__data__"in U.map&&(U=U.map.__data__,typeof U=="string")){U=U.length;break t}U=void 0}if(U===void 0)break;if(D+=U,D>4096){D=$;break e}if(D===4096||$===this.i.length-1){D=$+1;break e}}D=1e3}else D=1e3;D=WN(this,re,D),$=qo(this.J),Zt($,"RID",w),Zt($,"CVER",22),this.G&&Zt($,"X-HTTP-Session-Id",this.G),Pg(this,$),fe&&(this.R?D="headers="+kr(VN(fe))+"&"+D:this.u&&qC($,this.u,fe)),Rt(this.h,re),this.Ra&&Zt($,"TYPE","init"),this.S?(Zt($,"$req",D),Zt($,"SID","null"),re.U=!0,xi(re,$,null)):xi(re,$,D),this.I=2}}else this.I==3&&(w?qN(this,w):this.i.length==0||md(this.h)||qN(this))};function qN(w,D){var $;D?$=D.l:$=w.V++;const U=qo(w.J);Zt(U,"SID",w.M),Zt(U,"RID",$),Zt(U,"AID",w.K),Pg(w,U),w.u&&w.o&&qC(U,w.u,w.o),$=new Jr(w,w.j,$,w.D+1),w.u===null&&($.J=w.o),D&&(w.i=D.G.concat(w.i)),D=WN(w,$,1e3),$.H=Math.round(w.va*.5)+Math.round(w.va*.5*Math.random()),Rt(w.h,$),xi($,U,D)}function Pg(w,D){w.H&&B(w.H,function($,U){Zt(D,U,$)}),w.l&&B({},function($,U){Zt(D,U,$)})}function WN(w,D,$){$=Math.min(w.i.length,$);const U=w.l?c(w.l.Ka,w.l,w):null;e:{var re=w.i;let _t=-1;for(;;){const Pr=["count="+$];_t==-1?$>0?(_t=re[0].g,Pr.push("ofs="+_t)):_t=0:Pr.push("ofs="+_t);let wn=!0;for(let Vr=0;Vr<$;Vr++){var fe=re[Vr].g;const ua=re[Vr].map;if(fe-=_t,fe<0)_t=Math.max(0,re[Vr].g-100),wn=!1;else try{fe="req"+fe+"_"||"";try{var je=ua instanceof Map?ua:Object.entries(ua);for(const[Sd,wc]of je){let Sc=wc;
vendor: 4,664 bytes, line 2122
2122a(wc)&&(Sc=Be(wc)),Pr.push(fe+Sd+"="+encodeURIComponent(Sc))}}catch(Sd){throw Pr.push(fe+"type="+encodeURIComponent("_badmap")),Sd}}catch{U&&U(ua)}}if(wn){je=Pr.join("&");break e}}je=void 0}return w=w.i.splice(0,$),D.G=w,je}function GN(w){if(!w.g&&!w.v){w.Y=1;var D=w.Da;I||A(),O||(I(),O=!0),T.add(D,w),w.A=0}}function GC(w){return w.g||w.v||w.A>=3?!1:(w.Y++,w.v=Dt(c(w.Da,w),XN(w,w.A)),w.A++,!0)}t.Da=function(){if(this.v=null,KN(this),this.aa&&!(this.P||this.g==null||this.T<=0)){var w=4*this.T;this.j.info("BP detection timer enabled: "+w),this.B=Dt(c(this.Wa,this),w)}},t.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,Fe(10),fb(this),KN(this))};function KC(w){w.B!=null&&(s.clearTimeout(w.B),w.B=null)}function KN(w){w.g=new Jr(w,w.j,"rpc",w.Y),w.u===null&&(w.g.J=w.o),w.g.P=0;var D=qo(w.na);Zt(D,"RID","rpc"),Zt(D,"SID",w.M),Zt(D,"AID",w.K),Zt(D,"CI",w.F?"0":"1"),!w.F&&w.ia&&Zt(D,"TO",w.ia),Zt(D,"TYPE","xmlhttp"),Pg(w,D),w.u&&w.o&&qC(D,w.u,w.o),w.O&&(w.g.H=w.O);var $=w.g;w=w.ba,$.M=1,$.A=Sh(qo(D)),$.u=null,$.R=!0,nl($,w)}t.Va=function(){this.C!=null&&(this.C=null,fb(this),GC(this),Fe(19))};function pb(w){w.C!=null&&(s.clearTimeout(w.C),w.C=null)}function YN(w,D){var $=null;if(w.g==D){pb(w),KC(w),w.g=null;var U=2}else if(aa(w.h,D))$=D.G,Bi(w.h,D),U=1;else return;if(w.I!=0){if(D.o)if(U==1){$=D.u?D.u.length:0,D=Date.now()-D.F;var re=w.D;U=pn(),Ee(U,new ct(U,$)),hb(w)}else GN(w);else if(re=D.m,re==3||re==0&&D.X>0||!(U==1&&are(w,D)||U==2&&GC(w)))switch($&&$.length>0&&(D=w.h,D.i=D.i.concat($)),re){case 1:wd(w,5);break;case 4:wd(w,10);break;case 3:wd(w,6);break;default:wd(w,2)}}}function XN(w,D){let $=w.Qa+Math.floor(Math.random()*w.Za);return w.isActive()||($*=2),$*D}function wd(w,D){if(w.j.info("Error code "+D),D==2){var $=c(w.bb,w),U=w.Ua;const re=!U;U=new ca(U||"//www.google.com/images/cleardot.gif"),s.location&&s.location.protocol=="http"||gd(U,"https"),Sh(U),re?tre(U.toString(),$):nre(U.toString(),$)}else Fe(2);w.I=0,w.l&&w.l.pa(D),QN(w),UN(w)}t.bb=function(w){w?(this.j.info("Successfully pinged google.com"),Fe(2)):(this.j.info("Failed to ping google.com"),Fe(1))};function QN(w){if(w.I=0,w.ja=[],w.l){const D=uo(w.h);(D.length!=0||w.i.length!=0)&&(p(w.ja,D),p(w.ja,w.i),w.h.i.length=0,h(w.i),w.i.length=0),w.l.oa()}}function JN(w,D,$){var U=$ instanceof ca?qo($):new ca($);if(U.g!="")D&&(U.g=D+"."+U.g),yd(U,U.u);else{var re=s.location;U=re.protocol,D=D?D+"."+re.hostname:re.hostname,re=+re.port;const fe=new ca(null);U&&gd(fe,U),D&&(fe.g=D),re&&yd(fe,re),$&&(fe.h=$),U=fe}return $=w.G,D=w.wa,$&&D&&Zt(U,$,D),Zt(U,"VER",w.ka),Pg(w,U),U}function ZN(w,D,$){if(D&&!w.L)throw Error("Can't create secondary domain capable XhrIo object.");return D=w.Aa&&!w.ma?new Jn(new UC({ab:$})):new Jn(w.ma),D.Fa(w.L),D}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function e9(){}t=e9.prototype,t.ra=function(){},t.qa=function(){},t.pa=function(){},t.oa=function(){},t.isActive=function(){return!0},t.Ka=function(){};function mb(){}mb.prototype.g=function(w,D){return new fo(w,D)};function fo(w,D){ke.call(this),this.g=new HN(D),this.l=w,this.h=D&&D.messageUrlParams||null,w=D&&D.messageHeaders||null,D&&D.clientProtocolHeaderRequired&&(w?w["X-Client-Protocol"]="webchannel":w={"X-Client-Protocol":"webchannel"}),this.g.o=w,w=D&&D.initMessageHeaders||null,D&&D.messageContentType&&(w?w["X-WebChannel-Content-Type"]=D.messageContentType:w={"X-WebChannel-Content-Type":D.messageContentType}),D&&D.sa&&(w?w["X-WebChannel-Client-Profile"]=D.sa:w={"X-WebChannel-Client-Profile":D.sa}),this.g.U=w,(w=D&&D.Qb)&&!_(w)&&(this.g.u=w),this.A=D&&D.supportsCrossDomainXhr||!1,this.v=D&&D.sendRawJson||!1,(D=D&&D.httpSessionIdParam)&&!_(D)&&(this.g.G=D,w=this.h,w!==null&&D in w&&(w=this.h,D in w&&delete w[D])),this.j=new Th(this)}d(fo,ke),fo.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},fo.prototype.close=function(){WC(this.g)},fo.prototype.o=function(w){var D=this.g;if(typeof w=="string"){var $={};$.__data__=w,w=$}else this.v&&($={},$.__data__=Be(w),w=$);D.i.push(new Ei(D.Ya++,w)),D.I==3&&hb(D)},fo.prototype.N=function(){this.g.l=null,delete this.j,WC(this.g),delete this.g,fo.Z.N.call(this)};function t9(w){nt.call(this),w.__headers__&&(this.headers=w.__headers__,this.statusCode=w.__status__,delete w.__headers__,delete w.__status__);var D=w.__sm__;if(D){e:{for(const $ in D){w=$;break e}w=void 0}(this.i=w)&&(w=this.i,D=D!==null&&w in D?D[w]:void 0),this.data=D}else this.data=w}d(t9,nt);function n9(){en.call(this),this.status=1}d(n9,en);function Th(w){this.g=w}
2122d(Th,e9),Th.prototype.ra=function(){Ee(this.g,"a")},Th.prototype.qa=function(w){Ee(this.g,new t9(w))},Th.prototype.pa=function(w){Ee(this.g,new n9)},Th.prototype.oa=function(){Ee(this.g,"b")},mb.prototype.createWebChannel=mb.prototype.g,fo.prototype.send=fo.prototype.o,fo.prototype.open=fo.prototype.m,fo.prototype.close=fo.prototype.close,$q=function(){return new mb},Bq=function(){return pn()},Vq=Wt,L5={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},ht.NO_ERROR=0,ht.TIMEOUT=8,ht.HTTP_ERROR=6,Q2=ht,bt.COMPLETE="complete",zq=bt,Ge.EventType=Ke,Ke.OPEN="a",Ke.CLOSE="b",Ke.ERROR="c",Ke.MESSAGE="d",ke.prototype.listen=ke.prototype.J,E1=Ge,Jn.prototype.listenOnce=Jn.prototype.K,Jn.prototype.getLastError=Jn.prototype.Ha,Jn.prototype.getLastErrorCode=Jn.prototype.ya,Jn.prototype.getStatus=Jn.prototype.ca,Jn.prototype.getResponseJson=Jn.prototype.La,Jn.prototype.getResponseText=Jn.prototype.la,Jn.prototype.send=Jn.prototype.ea,Jn.prototype.setWithCredentials=Jn.prototype.Fa,Lq=Jn}).apply(typeof Db<"u"?Db:typeof self<"u"?self:typeof window<"u"?window:{});/** 2123 * @license 2124 * Copyright 2017 Google LLC 2125 * 2126 * Licensed under the Apache License, Version 2.0 (the "License"); 2127 * you may not use this file except in compliance with the License. 2128 * You may obtain a copy of the License at 2129 * 2130 * http://www.apache.org/licenses/LICENSE-2.0 2131 * 2132 * Unless required by applicable law or agreed to in writing, software 2133 * distributed under the License is distributed on an "AS IS" BASIS, 2134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2135 * See the License for the specific language governing permissions and 2136 * limitations under the License. 2137 */class Fr{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}Fr.UNAUTHENTICATED=new Fr(null),Fr.GOOGLE_CREDENTIALS=new Fr("google-credentials-uid"),Fr.FIRST_PARTY=new Fr("first-party-uid"),Fr.MOCK_USER=new Fr("mock-user");/** 2138 * @license 2139 * Copyright 2017 Google LLC 2140 * 2141 * Licensed under the Apache License, Version 2.0 (the "License"); 2142 * you may not use this file except in compliance with the License. 2143 * You may obtain a copy of the License at 2144 * 2145 * http://www.apache.org/licenses/LICENSE-2.0 2146 * 2147 * Unless required by applicable law or agreed to in writing, software 2148 * distributed under the License is distributed on an "AS IS" BASIS, 2149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2150 * See the License for the specific language governing permissions and 2151 * limitations under the License. 2152 */let cg="12.10.0";function yfe(t){cg=t}/** 2153 * @license 2154 * Copyright 2020 Google LLC 2155 * 2156 * Licensed under the Apache License, Version 2.0 (the "License"); 2157 * you may not use this file except in compliance with the License. 2158 * You may obtain a copy of the License at 2159 * 2160 * http://www.apache.org/licenses/LICENSE-2.0 2161 * 2162 * Unless required by applicable law or agreed to in writing, software 2163 * distributed under the License is distributed on an "AS IS" BASIS, 2164 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2165 * See the License for the specific language governing permissions and 2166 * limitations under the License. 2167 *//** 2168 * @license 2169 * Copyright 2017 Google LLC 2170 * 2171 * Licensed under the Apache License, Version 2.0 (the "License"); 2172 * you may not use this file except in compliance with the License. 2173 * You may obtain a copy of the License at 2174 * 2175 * http://www.apache.org/licenses/LICENSE-2.0 2176 * 2177 * Unless required by applicable law or agreed to in writing, software 2178 * distributed under the License is distributed on an "AS IS" BASIS, 2179 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2180 * See the License for the specific language governing permissions and 2181 * limitations under the License. 2182 */const Rf=new vM("@firebase/firestore");function Kh(){return Rf.logLevel}function Re(t,...e){if(Rf.logLevel<=Lt.DEBUG){const n=e.map(BM);Rf.debug(`Firestore (${cg}): ${t}`,...n)}}function hr(t,...e){if(Rf.logLevel<=Lt.ERROR){const n=e.map(BM);Rf.error(`Firestore (${cg}): ${t}`,...n)}}function Mf(t,...e){if(Rf.logLevel<=Lt.WARN){const n=e.map(BM);Rf.warn(`Firestore (${cg}): ${t}`,...n)}}function BM(t){if(typeof t=="string")return t;try{return function(n){return JSON.stringify(n)}(t)}catch{return t}}/** 2183 * @license 2184 * Copyright 2017 Google LLC 2185 * 2186 * Licensed under the Apache License, Version 2.0 (the "License");
2187 * you may not use this file except in compliance with the License. 2188 * You may obtain a copy of the License at 2189 * 2190 * http://www.apache.org/licenses/LICENSE-2.0 2191 * 2192 * Unless required by applicable law or agreed to in writing, software 2193 * distributed under the License is distributed on an "AS IS" BASIS, 2194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2195 * See the License for the specific language governing permissions and 2196 * limitations under the License. 2197 */function Ye(t,e,n){let r="Unexpected state";typeof e=="string"?r=e:n=e,Fq(t,r,n)}function Fq(t,e,n){let r=`FIRESTORE (${cg}) INTERNAL ASSERTION FAILED: ${e} (ID: ${t.toString(16)})`;if(n!==void 0)try{r+=" CONTEXT: "+JSON.stringify(n)}catch{r+=" CONTEXT: "+n}throw hr(r),new Error(r)}function tt(t,e,n,r){let i="Unexpected state";typeof n=="string"?i=n:r=n,t||Fq(e,i,r)}function Qe(t,e){return t}/** 2198 * @license 2199 * Copyright 2017 Google LLC 2200 * 2201 * Licensed under the Apache License, Version 2.0 (the "License"); 2202 * you may not use this file except in compliance with the License. 2203 * You may obtain a copy of the License at 2204 * 2205 * http://www.apache.org/licenses/LICENSE-2.0 2206 * 2207 * Unless required by applicable law or agreed to in writing, software 2208 * distributed under the License is distributed on an "AS IS" BASIS, 2209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2210 * See the License for the specific language governing permissions and 2211 * limitations under the License. 2212 */const le={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ae extends ea{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 2213 * @license 2214 * Copyright 2017 Google LLC 2215 * 2216 * Licensed under the Apache License, Version 2.0 (the "License"); 2217 * you may not use this file except in compliance with the License. 2218 * You may obtain a copy of the License at 2219 * 2220 * http://www.apache.org/licenses/LICENSE-2.0 2221 * 2222 * Unless required by applicable law or agreed to in writing, software 2223 * distributed under the License is distributed on an "AS IS" BASIS, 2224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2225 * See the License for the specific language governing permissions and 2226 * limitations under the License. 2227 */class Mo{constructor(){this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}}/** 2228 * @license 2229 * Copyright 2017 Google LLC 2230 * 2231 * Licensed under the Apache License, Version 2.0 (the "License"); 2232 * you may not use this file except in compliance with the License. 2233 * You may obtain a copy of the License at 2234 * 2235 * http://www.apache.org/licenses/LICENSE-2.0 2236 * 2237 * Unless required by applicable law or agreed to in writing, software 2238 * distributed under the License is distributed on an "AS IS" BASIS, 2239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2240 * See the License for the specific language governing permissions and 2241 * limitations under the License. 2242 */class jq{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class vfe{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable(()=>n(Fr.UNAUTHENTICATED))}shutdown(){}}class bfe{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable(()=>n(this.token.user))}shutdown(){this.changeListener=null}}class wfe{constructor(e){this.t=e,this.currentUser=Fr.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){tt(this.o===void 0,42304);let r=this.i;const i=l=>this.i!==r?(r=this.i,n(l)):Promise.resolve();let o=new Mo;this.o=()=>{this.i++,this.currentUser=this.u(),o.resolve(),o=new Mo,e.enqueueRetryable(()=>i(this.currentUser))};const s=()=>{const l=o;e.enqueueRetryable(async()=>{await l.promise,await i(this.currentUser)})},a=l=>{Re("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit(l=>a(l)),setTimeout(()=>{if(!this.auth){const l=this.t.getImmediate({optional:!0});l?a(l):(Re("FirebaseAuthCredentialsProvider","Auth not yet detected"),o.resolve(),o=new Mo)}},0),s()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then(r=>this.i!==e?(Re("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):r?(tt(typeof r.accessToken=="string",31837,{l:r}),new jq(r.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return tt(e===null||typeof e=="string",2055,{h:e}),new Fr(e)}}class Sfe{constructor(e,n,r){this.P=e,this.T=n,this.I=r,this.type="FirstParty",this.user=Fr.FIRST_PARTY,this.R=new Map}A(){return this.I?this.I():null}get headers(){this.R.set("X-Goog-AuthUser",this.P);const e=this.A();return e&&this.R.set("Authorization",e),this.T&&this.R.set("X-Goog-Iam-Authorization-Token",this.T),this.R}}class xfe{constructor(e,n,r){this.P=e,this.T=n,this.I=r}getToken(){return Promise.resolve(new Sfe(this.P,this.T,this.I))}start(e,n){e.enqueueRetryable(()=>n(Fr.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class bD{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class Efe{constructor(e,n){this.V=n,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,On(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,n){tt(this.o===void 0,3512);const r=o=>{o.error!=null&&Re("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${o.error.message}`);const s=o.token!==this.m;return this.m=o.token,Re("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?n(o.token):Promise.resolve()};this.o=o=>{e.enqueueRetryable(()=>r(o))};const i=o=>{Re("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=o,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(o=>i(o)),setTimeout(()=>{if(!this.appCheck){const o=this.V.getImmediate({optional:!0});o?i(o):Re("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new bD(this.p));const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(n=>n?(tt(typeof n.token=="string",44558,{tokenResult:n}),this.m=n.token,new bD(n.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/** 2243 * @license 2244 * Copyright 2020 Google LLC 2245 * 2246 * Licensed under the Apache License, Version 2.0 (the "License");
2247 * you may not use this file except in compliance with the License. 2248 * You may obtain a copy of the License at 2249 * 2250 * http://www.apache.org/licenses/LICENSE-2.0 2251 * 2252 * Unless required by applicable law or agreed to in writing, software 2253 * distributed under the License is distributed on an "AS IS" BASIS, 2254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2255 * See the License for the specific language governing permissions and 2256 * limitations under the License. 2257 */function Tfe(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}/** 2258 * @license 2259 * Copyright 2017 Google LLC 2260 * 2261 * Licensed under the Apache License, Version 2.0 (the "License"); 2262 * you may not use this file except in compliance with the License. 2263 * You may obtain a copy of the License at 2264 * 2265 * http://www.apache.org/licenses/LICENSE-2.0 2266 * 2267 * Unless required by applicable law or agreed to in writing, software 2268 * distributed under the License is distributed on an "AS IS" BASIS, 2269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2270 * See the License for the specific language governing permissions and 2271 * limitations under the License. 2272 */class $M{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=62*Math.floor(4.129032258064516);let r="";for(;r.length<20;){const i=Tfe(40);for(let o=0;o<i.length;++o)r.length<20&&i[o]<n&&(r+=e.charAt(i[o]%62))}return r}}function gt(t,e){return t<e?-1:t>e?1:0}function z5(t,e){const n=Math.min(t.length,e.length);for(let r=0;r<n;r++){const i=t.charAt(r),o=e.charAt(r);if(i!==o)return W_(i)===W_(o)?gt(i,o):W_(i)?1:-1}return gt(t.length,e.length)}const Cfe=55296,_fe=57343;function W_(t){const e=t.charCodeAt(0);return e>=Cfe&&e<=_fe}function um(t,e,n){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}function Hq(t){return t+"\0"}/** 2273 * @license 2274 * Copyright 2017 Google LLC 2275 * 2276 * Licensed under the Apache License, Version 2.0 (the "License"); 2277 * you may not use this file except in compliance with the License. 2278 * You may obtain a copy of the License at 2279 * 2280 * http://www.apache.org/licenses/LICENSE-2.0 2281 * 2282 * Unless required by applicable law or agreed to in writing, software 2283 * distributed under the License is distributed on an "AS IS" BASIS, 2284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2285 * See the License for the specific language governing permissions and 2286 * limitations under the License. 2287 */const V5="__name__";class ha{constructor(e,n,r){n===void 0?n=0:n>e.length&&Ye(637,{offset:n,range:e.length}),r===void 0?r=e.length-n:r>e.length-n&&Ye(1746,{length:r,range:e.length-n}),this.segments=e,this.offset=n,this.len=r}get length(){return this.len}isEqual(e){return ha.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof ha?e.forEach(r=>{n.push(r)}):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,r=this.limit();n<r;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const r=Math.min(e.length,n.length);for(let i=0;i<r;i++){const o=ha.compareSegments(e.get(i),n.get(i));if(o!==0)return o}return gt(e.length,n.length)}static compareSegments(e,n){const r=ha.isNumericId(e),i=ha.isNumericId(n);return r&&!i?-1:!r&&i?1:r&&i?ha.extractNumericId(e).compare(ha.extractNumericId(n)):z5(e,n)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Su.fromString(e.substring(4,e.length-2))}}class Ft extends ha{construct(e,n,r){return new Ft(e,n,r)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}
vendor: 5,160 bytes, lines 2287-2321
2287toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const r of e){if(r.indexOf("//")>=0)throw new Ae(le.INVALID_ARGUMENT,`Invalid segment (${r}). Paths must not contain // in them.`);n.push(...r.split("/").filter(i=>i.length>0))}return new Ft(n)}static emptyPath(){return new Ft([])}}const Afe=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class Qn extends ha{construct(e,n,r){return new Qn(e,n,r)}static isValidIdentifier(e){return Afe.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),Qn.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===V5}static keyField(){return new Qn([V5])}static fromServerFormat(e){const n=[];let r="",i=0;const o=()=>{if(r.length===0)throw new Ae(le.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=""};let s=!1;for(;i<e.length;){const a=e[i];if(a==="\\"){if(i+1===e.length)throw new Ae(le.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const l=e[i+1];if(l!=="\\"&&l!=="."&&l!=="`")throw new Ae(le.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=l,i+=2}else a==="`"?(s=!s,i++):a!=="."||s?(r+=a,i++):(o(),i++)}if(o(),s)throw new Ae(le.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new Qn(n)}static emptyPath(){return new Qn([])}}/** 2288 * @license 2289 * Copyright 2017 Google LLC 2290 * 2291 * Licensed under the Apache License, Version 2.0 (the "License"); 2292 * you may not use this file except in compliance with the License. 2293 * You may obtain a copy of the License at 2294 * 2295 * http://www.apache.org/licenses/LICENSE-2.0 2296 * 2297 * Unless required by applicable law or agreed to in writing, software 2298 * distributed under the License is distributed on an "AS IS" BASIS, 2299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2300 * See the License for the specific language governing permissions and 2301 * limitations under the License. 2302 */class He{constructor(e){this.path=e}static fromPath(e){return new He(Ft.fromString(e))}static fromName(e){return new He(Ft.fromString(e).popFirst(5))}static empty(){return new He(Ft.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&Ft.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return Ft.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new He(new Ft(e.slice()))}}/** 2303 * @license 2304 * Copyright 2017 Google LLC 2305 * 2306 * Licensed under the Apache License, Version 2.0 (the "License"); 2307 * you may not use this file except in compliance with the License. 2308 * You may obtain a copy of the License at 2309 * 2310 * http://www.apache.org/licenses/LICENSE-2.0 2311 * 2312 * Unless required by applicable law or agreed to in writing, software 2313 * distributed under the License is distributed on an "AS IS" BASIS, 2314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2315 * See the License for the specific language governing permissions and 2316 * limitations under the License. 2317 */function FM(t,e,n){if(!n)throw new Ae(le.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function Ife(t,e,n,r){if(e===!0&&r===!0)throw new Ae(le.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function wD(t){if(!He.isDocumentKey(t))throw new Ae(le.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function SD(t){if(He.isDocumentKey(t))throw new Ae(le.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Uq(t){return typeof t=="object"&&t!==null&&(Object.getPrototypeOf(t)===Object.prototype||Object.getPrototypeOf(t)===null)}function pE(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=function(r){return r.constructor?r.constructor.name:null}(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":Ye(12329,{type:typeof t})}function Rr(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Ae(le.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=pE(t);throw new Ae(le.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}function Rfe(t,e){if(e<=0)throw new Ae(le.INVALID_ARGUMENT,`Function ${t}() requires a positive number, but it was: ${e}.`)}/** 2318 * @license 2319 * Copyright 2025 Google LLC 2320 * 2321 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 4,239 bytes, lines 2322-2366
2322 * you may not use this file except in compliance with the License. 2323 * You may obtain a copy of the License at 2324 * 2325 * http://www.apache.org/licenses/LICENSE-2.0 2326 * 2327 * Unless required by applicable law or agreed to in writing, software 2328 * distributed under the License is distributed on an "AS IS" BASIS, 2329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2330 * See the License for the specific language governing permissions and 2331 * limitations under the License. 2332 */function Ar(t,e){const n={typeString:t};return e&&(n.value=e),n}function xv(t,e){if(!Uq(t))throw new Ae(le.INVALID_ARGUMENT,"JSON must be an object");let n;for(const r in e)if(e[r]){const i=e[r].typeString,o="value"in e[r]?{value:e[r].value}:void 0;if(!(r in t)){n=`JSON missing required field: '${r}'`;break}const s=t[r];if(i&&typeof s!==i){n=`JSON field '${r}' must be a ${i}.`;break}if(o!==void 0&&s!==o.value){n=`Expected '${r}' field to equal '${o.value}'`;break}}if(n)throw new Ae(le.INVALID_ARGUMENT,n);return!0}/** 2333 * @license 2334 * Copyright 2017 Google LLC 2335 * 2336 * Licensed under the Apache License, Version 2.0 (the "License"); 2337 * you may not use this file except in compliance with the License. 2338 * You may obtain a copy of the License at 2339 * 2340 * http://www.apache.org/licenses/LICENSE-2.0 2341 * 2342 * Unless required by applicable law or agreed to in writing, software 2343 * distributed under the License is distributed on an "AS IS" BASIS, 2344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2345 * See the License for the specific language governing permissions and 2346 * limitations under the License. 2347 */const xD=-62135596800,ED=1e6;class cn{static now(){return cn.fromMillis(Date.now())}static fromDate(e){return cn.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),r=Math.floor((e-1e3*n)*ED);return new cn(n,r)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new Ae(le.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new Ae(le.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<xD)throw new Ae(le.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Ae(le.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/ED}_compareTo(e){return this.seconds===e.seconds?gt(this.nanoseconds,e.nanoseconds):gt(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:cn._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(xv(e,cn._jsonSchema))return new cn(e.seconds,e.nanoseconds)}valueOf(){const e=this.seconds-xD;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}cn._jsonSchemaVersion="firestore/timestamp/1.0",cn._jsonSchema={type:Ar("string",cn._jsonSchemaVersion),seconds:Ar("number"),nanoseconds:Ar("number")};/** 2348 * @license 2349 * Copyright 2017 Google LLC 2350 * 2351 * Licensed under the Apache License, Version 2.0 (the "License"); 2352 * you may not use this file except in compliance with the License. 2353 * You may obtain a copy of the License at 2354 * 2355 * http://www.apache.org/licenses/LICENSE-2.0 2356 * 2357 * Unless required by applicable law or agreed to in writing, software 2358 * distributed under the License is distributed on an "AS IS" BASIS, 2359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2360 * See the License for the specific language governing permissions and 2361 * limitations under the License. 2362 */class it{static fromTimestamp(e){return new it(e)}static min(){return new it(new cn(0,0))}static max(){return new it(new cn(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 2363 * @license 2364 * Copyright 2021 Google LLC 2365 * 2366 * Licensed under the Apache License, Version 2.0 (the "License");
2367 * you may not use this file except in compliance with the License. 2368 * You may obtain a copy of the License at 2369 * 2370 * http://www.apache.org/licenses/LICENSE-2.0 2371 * 2372 * Unless required by applicable law or agreed to in writing, software 2373 * distributed under the License is distributed on an "AS IS" BASIS, 2374 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2375 * See the License for the specific language governing permissions and 2376 * limitations under the License. 2377 */const dm=-1;class gS{constructor(e,n,r,i){this.indexId=e,this.collectionGroup=n,this.fields=r,this.indexState=i}}function B5(t){return t.fields.find(e=>e.kind===2)}function Od(t){return t.fields.filter(e=>e.kind!==2)}gS.UNKNOWN_ID=-1;class J2{constructor(e,n){this.fieldPath=e,this.kind=n}}class i0{constructor(e,n){this.sequenceNumber=e,this.offset=n}static empty(){return new i0(0,zo.min())}}function qq(t,e){const n=t.toTimestamp().seconds,r=t.toTimestamp().nanoseconds+1,i=it.fromTimestamp(r===1e9?new cn(n+1,0):new cn(n,r));return new zo(i,He.empty(),e)}function Wq(t){return new zo(t.readTime,t.key,dm)}class zo{constructor(e,n,r){this.readTime=e,this.documentKey=n,this.largestBatchId=r}static min(){return new zo(it.min(),He.empty(),dm)}static max(){return new zo(it.max(),He.empty(),dm)}}function jM(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=He.comparator(t.documentKey,e.documentKey),n!==0?n:gt(t.largestBatchId,e.largestBatchId))}/** 2378 * @license 2379 * Copyright 2020 Google LLC 2380 * 2381 * Licensed under the Apache License, Version 2.0 (the "License"); 2382 * you may not use this file except in compliance with the License. 2383 * You may obtain a copy of the License at 2384 * 2385 * http://www.apache.org/licenses/LICENSE-2.0 2386 * 2387 * Unless required by applicable law or agreed to in writing, software 2388 * distributed under the License is distributed on an "AS IS" BASIS, 2389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2390 * See the License for the specific language governing permissions and 2391 * limitations under the License. 2392 */const Gq="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class Kq{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}}/** 2393 * @license 2394 * Copyright 2017 Google LLC 2395 * 2396 * Licensed under the Apache License, Version 2.0 (the "License"); 2397 * you may not use this file except in compliance with the License. 2398 * You may obtain a copy of the License at 2399 * 2400 * http://www.apache.org/licenses/LICENSE-2.0 2401 * 2402 * Unless required by applicable law or agreed to in writing, software 2403 * distributed under the License is distributed on an "AS IS" BASIS, 2404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2405 * See the License for the specific language governing permissions and 2406 * limitations under the License. 2407 */async function Zu(t){if(t.code!==le.FAILED_PRECONDITION||t.message!==Gq)throw t;Re("LocalStore","Unexpectedly lost primary lease")}/** 2408 * @license 2409 * Copyright 2017 Google LLC 2410 * 2411 * Licensed under the Apache License, Version 2.0 (the "License"); 2412 * you may not use this file except in compliance with the License. 2413 * You may obtain a copy of the License at 2414 * 2415 * http://www.apache.org/licenses/LICENSE-2.0 2416 * 2417 * Unless required by applicable law or agreed to in writing, software 2418 * distributed under the License is distributed on an "AS IS" BASIS, 2419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2420 * See the License for the specific language governing permissions and 2421 * limitations under the License. 2422 */class ee{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)},n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)})}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&Ye(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new ee((r,i)=>{this.nextCallback=o=>{this.wrapSuccess(e,o).next(r,i)},this.catchCallback=o=>{this.wrapFailure(n,o).next(r,i)}})}
vendor: 4,509 bytes, lines 2422-2437
2422toPromise(){return new Promise((e,n)=>{this.next(e,n)})}wrapUserFunction(e){try{const n=e();return n instanceof ee?n:ee.resolve(n)}catch(n){return ee.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction(()=>e(n)):ee.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction(()=>e(n)):ee.reject(n)}static resolve(e){return new ee((n,r)=>{n(e)})}static reject(e){return new ee((n,r)=>{r(e)})}static waitFor(e){return new ee((n,r)=>{let i=0,o=0,s=!1;e.forEach(a=>{++i,a.next(()=>{++o,s&&o===i&&n()},l=>r(l))}),s=!0,o===i&&n()})}static or(e){let n=ee.resolve(!1);for(const r of e)n=n.next(i=>i?ee.resolve(i):r());return n}static forEach(e,n){const r=[];return e.forEach((i,o)=>{r.push(n.call(this,i,o))}),this.waitFor(r)}static mapArray(e,n){return new ee((r,i)=>{const o=e.length,s=new Array(o);let a=0;for(let l=0;l<o;l++){const c=l;n(e[c]).next(u=>{s[c]=u,++a,a===o&&r(s)},u=>i(u))}})}static doWhile(e,n){return new ee((r,i)=>{const o=()=>{e()===!0?n().next(()=>{o()},i):r()};o()})}}/** 2423 * @license 2424 * Copyright 2017 Google LLC 2425 * 2426 * Licensed under the Apache License, Version 2.0 (the "License"); 2427 * you may not use this file except in compliance with the License. 2428 * You may obtain a copy of the License at 2429 * 2430 * http://www.apache.org/licenses/LICENSE-2.0 2431 * 2432 * Unless required by applicable law or agreed to in writing, software 2433 * distributed under the License is distributed on an "AS IS" BASIS, 2434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2435 * See the License for the specific language governing permissions and 2436 * limitations under the License. 2437 */const po="SimpleDb";class mE{static open(e,n,r,i){try{return new mE(n,e.transaction(i,r))}catch(o){throw new sy(n,o)}}constructor(e,n){this.action=e,this.transaction=n,this.aborted=!1,this.S=new Mo,this.transaction.oncomplete=()=>{this.S.resolve()},this.transaction.onabort=()=>{n.error?this.S.reject(new sy(e,n.error)):this.S.resolve()},this.transaction.onerror=r=>{const i=HM(r.target.error);this.S.reject(new sy(e,i))}}get D(){return this.S.promise}abort(e){e&&this.S.reject(e),this.aborted||(Re(po,"Aborting transaction:",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())}C(){const e=this.transaction;this.aborted||typeof e.commit!="function"||e.commit()}store(e){const n=this.transaction.objectStore(e);return new kfe(n)}}class Ma{static delete(e){return Re(po,"Removing database:",e),Vd(gU().indexedDB.deleteDatabase(e)).toPromise()}static v(){if(!CU())return!1;if(Ma.F())return!0;const e=Lr(),n=Ma.M(e),r=0<n&&n<10,i=Yq(e),o=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||o)}static F(){var e;return typeof process<"u"&&((e=process.__PRIVATE_env)==null?void 0:e.__PRIVATE_USE_MOCK_PERSISTENCE)==="YES"}static O(e,n){return e.store(n)}static M(e){const n=e.match(/i(?:phone|pad|pod) os ([\d_]+)/i),r=n?n[1].split("_").slice(0,2).join("."):"-1";return Number(r)}constructor(e,n,r){this.name=e,this.version=n,this.N=r,this.B=null,Ma.M(Lr())===12.2&&hr("Firestore persistence suffers from a bug in iOS 12.2 Safari that may cause your app to stop working. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.")}async L(e){return this.db||(Re(po,"Opening database:",this.name),this.db=await new Promise((n,r)=>{const i=indexedDB.open(this.name,this.version);i.onsuccess=o=>{const s=o.target.result;n(s)},i.onblocked=()=>{r(new sy(e,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=o=>{const s=o.target.error;s.name==="VersionError"?r(new Ae(le.FAILED_PRECONDITION,"A newer version of the Firestore SDK was previously used and so the persisted data is not compatible with the version of the SDK you are now using. The SDK will operate with persistence disabled. If you need persistence, please re-upgrade to a newer version of the SDK or else clear the persisted IndexedDB data for your app to start fresh.")):s.name==="InvalidStateError"?r(new Ae(le.FAILED_PRECONDITION,"Unable to open an IndexedDB connection. This could be due to running in a private browsing session on a browser whose private browsing sessions do not support IndexedDB: "+s)):r(new sy(e,s))},i.onupgradeneeded=o=>{Re(po,'Database "'+this.name+'" requires upgrade from version:',o.oldVersion);const s=o.target.result;this.N.k(s,i.transaction,o.oldVersion,this.version).next(()=>{Re(po,"Database upgrade to version "+this.version+" complete")}
2437)}})),this.K&&(this.db.onversionchange=n=>this.K(n)),this.db}q(e){this.K=e,this.db&&(this.db.onversionchange=n=>e(n))}async runTransaction(e,n,r,i){const o=n==="readonly";let s=0;for(;;){++s;try{this.db=await this.L(e);const a=mE.open(this.db,e,o?"readonly":"readwrite",r),l=i(a).next(c=>(a.C(),c)).catch(c=>(a.abort(c),ee.reject(c))).toPromise();return l.catch(()=>{}),await a.D,l}catch(a){const l=a,c=l.name!=="FirebaseError"&&s<3;if(Re(po,"Transaction failed with error:",l.message,"Retrying:",c),this.close(),!c)return Promise.reject(l)}}}close(){this.db&&this.db.close(),this.db=void 0}}function Yq(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}class Mfe{constructor(e){this.U=e,this.$=!1,this.W=null}get isDone(){return this.$}get G(){return this.W}set cursor(e){this.U=e}done(){this.$=!0}j(e){this.W=e}delete(){return Vd(this.U.delete())}}class sy extends Ae{constructor(e,n){super(le.UNAVAILABLE,`IndexedDB transaction '${e}' failed: ${n}`),this.name="IndexedDbTransactionError"}}function ed(t){return t.name==="IndexedDbTransactionError"}class kfe{constructor(e){this.store=e}put(e,n){let r;return n!==void 0?(Re(po,"PUT",this.store.name,e,n),r=this.store.put(n,e)):(Re(po,"PUT",this.store.name,"<auto-key>",e),r=this.store.put(e)),Vd(r)}add(e){return Re(po,"ADD",this.store.name,e,e),Vd(this.store.add(e))}get(e){return Vd(this.store.get(e)).next(n=>(n===void 0&&(n=null),Re(po,"GET",this.store.name,e,n),n))}delete(e){return Re(po,"DELETE",this.store.name,e),Vd(this.store.delete(e))}count(){return Re(po,"COUNT",this.store.name),Vd(this.store.count())}H(e,n){const r=this.options(e,n),i=r.index?this.store.index(r.index):this.store;if(typeof i.getAll=="function"){const o=i.getAll(r.range);return new ee((s,a)=>{o.onerror=l=>{a(l.target.error)},o.onsuccess=l=>{s(l.target.result)}})}{const o=this.cursor(r),s=[];return this.J(o,(a,l)=>{s.push(l)}).next(()=>s)}}Z(e,n){const r=this.store.getAll(e,n===null?void 0:n);return new ee((i,o)=>{r.onerror=s=>{o(s.target.error)},r.onsuccess=s=>{i(s.target.result)}})}X(e,n){Re(po,"DELETE ALL",this.store.name);const r=this.options(e,n);r.Y=!1;const i=this.cursor(r);return this.J(i,(o,s,a)=>a.delete())}ee(e,n){let r;n?r=e:(r={},n=e);const i=this.cursor(r);return this.J(i,n)}te(e){const n=this.cursor({});return new ee((r,i)=>{n.onerror=o=>{const s=HM(o.target.error);i(s)},n.onsuccess=o=>{const s=o.target.result;s?e(s.primaryKey,s.value).next(a=>{a?s.continue():r()}):r()}})}J(e,n){const r=[];return new ee((i,o)=>{e.onerror=s=>{o(s.target.error)},e.onsuccess=s=>{const a=s.target.result;if(!a)return void i();const l=new Mfe(a),c=n(a.primaryKey,a.value,l);if(c instanceof ee){const u=c.catch(d=>(l.done(),ee.reject(d)));r.push(u)}l.isDone?i():l.G===null?a.continue():a.continue(l.G)}}).next(()=>ee.waitFor(r))}options(e,n){let r;return e!==void 0&&(typeof e=="string"?r=e:n=e),{index:r,range:n}}cursor(e){let n="next";if(e.reverse&&(n="prev"),e.index){const r=this.store.index(e.index);return e.Y?r.openKeyCursor(e.range,n):r.openCursor(e.range,n)}return this.store.openCursor(e.range,n)}}function Vd(t){return new ee((e,n)=>{t.onsuccess=r=>{const i=r.target.result;e(i)},t.onerror=r=>{const i=HM(r.target.error);n(i)}})}let TD=!1;function HM(t){const e=Ma.M(Lr());if(e>=12.2&&e<13){const n="An internal error was encountered in the Indexed Database server";if(t.message.indexOf(n)>=0){const r=new Ae("internal",`IOS_INDEXEDDB_BUG1: IndexedDb has thrown '${n}'. This is likely due to an unavoidable bug in iOS. See https://stackoverflow.com/q/56496296/110915 for details and a potential workaround.`);return TD||(TD=!0,setTimeout(()=>{throw r},0)),r}}return t}const ay="IndexBackfiller";class Pfe{constructor(e,n){this.asyncQueue=e,this.ne=n,this.task=null}start(){this.re(15e3)}stop(){this.task&&(this.task.cancel(),this.task=null)}get started(){return this.task!==null}re(e){Re(ay,`Scheduled in ${e}ms`),this.task=this.asyncQueue.enqueueAfterDelay("index_backfill",e,async()=>{this.task=null;try{const n=await this.ne.ie();Re(ay,`Documents written: ${n}`)}catch(n){ed(n)?Re(ay,"Ignoring IndexedDB error during index backfill: ",n):await Zu(n)}await this.re(6e4)})}}class Ofe{constructor(e,n){this.localStore=e,this.persistence=n}async ie(e=50){return this.persistence.runTransaction("Backfill Indexes","readwrite-primary",n=>this.se(n,e))}se(e,n){const r=new Set;let i=n,o=!0;return ee.doWhile(()=>o===!0&&i>0,()=>this.localStore.indexManager.getNextCollectionGroupToUpdate(e).next(s=>{if(s!==null&&!r.has(s))return Re(ay,`Processing collection: ${s}`),this.oe(e,s,i).next(a=>{i-=a,r.add(s)});o=!1})).next(()=>n-i)}oe(e,n,r){return this.localStore.indexManager.getMinOffsetFromCollectionGroup(e,n).next(i=>this.localStore.localDocuments.getNextDocuments(e,n,i,r).next(o=>{const s=o.changes;return this.localStore.indexManager.updateIndexEntries(e,s).next(()=>this._e(i,o)).next(a=>(Re(ay,`Updating offset: ${a}`),this.localStore.indexManager.updateCollectionGroup(e,n,a))).next(()=>s.size)}))}_e(e,n){let r=e;
vendor: 4,105 bytes, lines 2437-2501
2437return n.changes.forEach((i,o)=>{const s=Wq(o);jM(s,r)>0&&(r=s)}),new zo(r.readTime,r.documentKey,Math.max(n.batchId,e.largestBatchId))}}/** 2438 * @license 2439 * Copyright 2018 Google LLC 2440 * 2441 * Licensed under the Apache License, Version 2.0 (the "License"); 2442 * you may not use this file except in compliance with the License. 2443 * You may obtain a copy of the License at 2444 * 2445 * http://www.apache.org/licenses/LICENSE-2.0 2446 * 2447 * Unless required by applicable law or agreed to in writing, software 2448 * distributed under the License is distributed on an "AS IS" BASIS, 2449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2450 * See the License for the specific language governing permissions and 2451 * limitations under the License. 2452 */class Ki{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=r=>this.ae(r),this.ue=r=>n.writeSequenceNumber(r))}ae(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.ue&&this.ue(e),e}}Ki.ce=-1;/** 2453 * @license 2454 * Copyright 2017 Google LLC 2455 * 2456 * Licensed under the Apache License, Version 2.0 (the "License"); 2457 * you may not use this file except in compliance with the License. 2458 * You may obtain a copy of the License at 2459 * 2460 * http://www.apache.org/licenses/LICENSE-2.0 2461 * 2462 * Unless required by applicable law or agreed to in writing, software 2463 * distributed under the License is distributed on an "AS IS" BASIS, 2464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2465 * See the License for the specific language governing permissions and 2466 * limitations under the License. 2467 */const uf=-1;function Ev(t){return t==null}function o0(t){return t===0&&1/t==-1/0}function Xq(t){return typeof t=="number"&&Number.isInteger(t)&&!o0(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 2468 * @license 2469 * Copyright 2017 Google LLC 2470 * 2471 * Licensed under the Apache License, Version 2.0 (the "License"); 2472 * you may not use this file except in compliance with the License. 2473 * You may obtain a copy of the License at 2474 * 2475 * http://www.apache.org/licenses/LICENSE-2.0 2476 * 2477 * Unless required by applicable law or agreed to in writing, software 2478 * distributed under the License is distributed on an "AS IS" BASIS, 2479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2480 * See the License for the specific language governing permissions and 2481 * limitations under the License. 2482 */const yS="�";function vi(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=CD(e)),e=Nfe(t.get(n),e);return CD(e)}function Nfe(t,e){let n=e;const r=t.length;for(let i=0;i<r;i++){const o=t.charAt(i);switch(o){case"\0":n+="��";break;case yS:n+="��";break;default:n+=o}}return n}function CD(t){return t+yS+"�"}function _a(t){const e=t.length;if(tt(e>=2,64408,{path:t}),e===2)return tt(t.charAt(0)===yS&&t.charAt(1)==="�",56145,{path:t}),Ft.emptyPath();const n=e-2,r=[];let i="";for(let o=0;o<e;){const s=t.indexOf(yS,o);switch((s<0||s>n)&&Ye(50515,{path:t}),t.charAt(s+1)){case"�":const a=t.substring(o,s);let l;i.length===0?l=a:(i+=a,l=i,i=""),r.push(l);break;case"�":i+=t.substring(o,s),i+="\0";break;case"�":i+=t.substring(o,s+1);break;default:Ye(61167,{path:t})}o=s+2}return new Ft(r)}/** 2483 * @license 2484 * Copyright 2022 Google LLC 2485 * 2486 * Licensed under the Apache License, Version 2.0 (the "License"); 2487 * you may not use this file except in compliance with the License. 2488 * You may obtain a copy of the License at 2489 * 2490 * http://www.apache.org/licenses/LICENSE-2.0 2491 * 2492 * Unless required by applicable law or agreed to in writing, software 2493 * distributed under the License is distributed on an "AS IS" BASIS, 2494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2495 * See the License for the specific language governing permissions and 2496 * limitations under the License. 2497 */const Nd="remoteDocuments",Tv="owner",Ah="owner",s0="mutationQueues",Dfe="userId",Os="mutations",_D="batchId",Gd="userMutationsIndex",AD=["userId","batchId"];/** 2498 * @license 2499 * Copyright 2022 Google LLC 2500 * 2501 * Licensed under the Apache License, Version 2.0 (the "License");
2502 * you may not use this file except in compliance with the License. 2503 * You may obtain a copy of the License at 2504 * 2505 * http://www.apache.org/licenses/LICENSE-2.0 2506 * 2507 * Unless required by applicable law or agreed to in writing, software 2508 * distributed under the License is distributed on an "AS IS" BASIS, 2509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2510 * See the License for the specific language governing permissions and 2511 * limitations under the License. 2512 */function Z2(t,e){return[t,vi(e)]}function Qq(t,e,n){return[t,vi(e),n]}const Lfe={},fm="documentMutations",vS="remoteDocumentsV14",zfe=["prefixPath","collectionGroup","readTime","documentId"],ew="documentKeyIndex",Vfe=["prefixPath","collectionGroup","documentId"],Jq="collectionGroupIndex",Bfe=["collectionGroup","readTime","prefixPath","documentId"],a0="remoteDocumentGlobal",$5="remoteDocumentGlobalKey",hm="targets",Zq="queryTargetsIndex",$fe=["canonicalId","targetId"],pm="targetDocuments",Ffe=["targetId","path"],UM="documentTargetsIndex",jfe=["path","targetId"],bS="targetGlobalKey",df="targetGlobal",l0="collectionParents",Hfe=["collectionId","parent"],mm="clientMetadata",Ufe="clientId",gE="bundles",qfe="bundleId",yE="namedQueries",Wfe="name",qM="indexConfiguration",Gfe="indexId",F5="collectionGroupIndex",Kfe="collectionGroup",ly="indexState",Yfe=["indexId","uid"],eW="sequenceNumberIndex",Xfe=["uid","sequenceNumber"],cy="indexEntries",Qfe=["indexId","uid","arrayValue","directionalValue","orderedDocumentKey","documentKey"],tW="documentKeyIndex",Jfe=["indexId","uid","orderedDocumentKey"],vE="documentOverlays",Zfe=["userId","collectionPath","documentId"],j5="collectionPathOverlayIndex",ehe=["userId","collectionPath","largestBatchId"],nW="collectionGroupOverlayIndex",the=["userId","collectionGroup","largestBatchId"],WM="globals",nhe="name",rW=[s0,Os,fm,Nd,hm,Tv,df,pm,mm,a0,l0,gE,yE],rhe=[...rW,vE],iW=[s0,Os,fm,vS,hm,Tv,df,pm,mm,a0,l0,gE,yE,vE],oW=iW,GM=[...oW,qM,ly,cy],ihe=GM,sW=[...GM,WM],ohe=sW;/** 2513 * @license 2514 * Copyright 2020 Google LLC 2515 * 2516 * Licensed under the Apache License, Version 2.0 (the "License"); 2517 * you may not use this file except in compliance with the License. 2518 * You may obtain a copy of the License at 2519 * 2520 * http://www.apache.org/licenses/LICENSE-2.0 2521 * 2522 * Unless required by applicable law or agreed to in writing, software 2523 * distributed under the License is distributed on an "AS IS" BASIS, 2524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2525 * See the License for the specific language governing permissions and 2526 * limitations under the License. 2527 */class H5 extends Kq{constructor(e,n){super(),this.le=e,this.currentSequenceNumber=n}}function zr(t,e){const n=Qe(t);return Ma.O(n.le,e)}/** 2528 * @license 2529 * Copyright 2017 Google LLC 2530 * 2531 * Licensed under the Apache License, Version 2.0 (the "License"); 2532 * you may not use this file except in compliance with the License. 2533 * You may obtain a copy of the License at 2534 * 2535 * http://www.apache.org/licenses/LICENSE-2.0 2536 * 2537 * Unless required by applicable law or agreed to in writing, software 2538 * distributed under the License is distributed on an "AS IS" BASIS, 2539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2540 * See the License for the specific language governing permissions and 2541 * limitations under the License. 2542 */function ID(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function td(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function she(t,e){const n=[];for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.push(e(t[r],r,t));return n}function aW(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 2543 * @license 2544 * Copyright 2017 Google LLC 2545 * 2546 * Licensed under the Apache License, Version 2.0 (the "License"); 2547 * you may not use this file except in compliance with the License. 2548 * You may obtain a copy of the License at 2549 * 2550 * http://www.apache.org/licenses/LICENSE-2.0 2551 * 2552 * Unless required by applicable law or agreed to in writing, software 2553 * distributed under the License is distributed on an "AS IS" BASIS, 2554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2555 * See the License for the specific language governing permissions and 2556 * limitations under the License. 2557 */class Rn{constructor(e,n){this.comparator=e,this.root=n||ti.EMPTY}insert(e,n){return new Rn(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,ti.BLACK,null,
vendor: 8,819 bytes, lines 2557-2601
2557null))}remove(e){return new Rn(this.comparator,this.root.remove(e,this.comparator).copy(null,null,ti.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const r=this.comparator(e,n.key);if(r===0)return n.value;r<0?n=n.left:r>0&&(n=n.right)}return null}indexOf(e){let n=0,r=this.root;for(;!r.isEmpty();){const i=this.comparator(e,r.key);if(i===0)return n+r.left.size;i<0?r=r.left:(n+=r.left.size+1,r=r.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((n,r)=>(e(n,r),!1))}toString(){const e=[];return this.inorderTraversal((n,r)=>(e.push(`${n}:${r}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Lb(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Lb(this.root,e,this.comparator,!1)}getReverseIterator(){return new Lb(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Lb(this.root,e,this.comparator,!0)}}class Lb{constructor(e,n,r,i){this.isReverse=i,this.nodeStack=[];let o=1;for(;!e.isEmpty();)if(o=n?r(e.key,n):1,n&&i&&(o*=-1),o<0)e=this.isReverse?e.left:e.right;else{if(o===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class ti{constructor(e,n,r,i,o){this.key=e,this.value=n,this.color=r??ti.RED,this.left=i??ti.EMPTY,this.right=o??ti.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,r,i,o){return new ti(e??this.key,n??this.value,r??this.color,i??this.left,o??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,r){let i=this;const o=r(e,i.key);return i=o<0?i.copy(null,null,null,i.left.insert(e,n,r),null):o===0?i.copy(null,n,null,null,null):i.copy(null,null,null,null,i.right.insert(e,n,r)),i.fixUp()}removeMin(){if(this.left.isEmpty())return ti.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),n(e,i.key)===0){if(i.right.isEmpty())return ti.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,ti.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,ti.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw Ye(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Ye(14113,{key:this.key,value:this.value});const e=this.left.check();if(e!==this.right.check())throw Ye(27949);return e+(this.isRed()?0:1)}}ti.EMPTY=null,ti.RED=!0,ti.BLACK=!1;ti.EMPTY=new class{constructor(){this.size=0}get key(){throw Ye(57766)}get value(){throw Ye(16141)}get color(){throw Ye(16727)}get left(){throw Ye(29726)}get right(){throw Ye(36894)}copy(e,n,r,i,o){return this}insert(e,n,r){return new ti(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 2558 * @license 2559 * Copyright 2017 Google LLC 2560 * 2561 * Licensed under the Apache License, Version 2.0 (the "License"); 2562 * you may not use this file except in compliance with the License. 2563 * You may obtain a copy of the License at 2564 * 2565 * http://www.apache.org/licenses/LICENSE-2.0 2566 * 2567 * Unless required by applicable law or agreed to in writing, software 2568 * distributed under the License is distributed on an "AS IS" BASIS, 2569 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2570 * See the License for the specific language governing permissions and 2571 * limitations under the License. 2572 */class dn{constructor(e){this.comparator=e,this.data=new Rn(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((n,r)=>(e(n),!1))}forEachInRange(e,n){const r=this.data.getIteratorFrom(e[0]);for(;r.hasNext();){const i=r.getNext();if(this.comparator(i.key,e[1])>=0)return;n(i.key)}}forEachWhile(e,n){let r;for(r=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();r.hasNext();)if(!e(r.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new RD(this.data.getIterator())}getIteratorFrom(e){return new RD(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach(r=>{n=n.add(r)}),n}isEqual(e){if(!(e instanceof dn)||this.size!==e.size)return!1;const n=this.data.getIterator(),r=e.data.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(this.comparator(i,o)!==0)return!1}return!0}toArray(){const e=[];return this.forEach(n=>{e.push(n)}),e}toString(){const e=[];return this.forEach(n=>e.push(n)),"SortedSet("+e.toString()+")"}copy(e){const n=new dn(this.comparator);return n.data=e,n}}class RD{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}function Ih(t){return t.hasNext()?t.getNext():void 0}/** 2573 * @license 2574 * Copyright 2020 Google LLC 2575 * 2576 * Licensed under the Apache License, Version 2.0 (the "License"); 2577 * you may not use this file except in compliance with the License. 2578 * You may obtain a copy of the License at 2579 * 2580 * http://www.apache.org/licenses/LICENSE-2.0 2581 * 2582 * Unless required by applicable law or agreed to in writing, software 2583 * distributed under the License is distributed on an "AS IS" BASIS, 2584 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2585 * See the License for the specific language governing permissions and 2586 * limitations under the License. 2587 */class Yi{constructor(e){this.fields=e,e.sort(Qn.comparator)}static empty(){return new Yi([])}unionWith(e){let n=new dn(Qn.comparator);for(const r of this.fields)n=n.add(r);for(const r of e)n=n.add(r);return new Yi(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return um(this.fields,e.fields,(n,r)=>n.isEqual(r))}}/** 2588 * @license 2589 * Copyright 2023 Google LLC 2590 * 2591 * Licensed under the Apache License, Version 2.0 (the "License"); 2592 * you may not use this file except in compliance with the License. 2593 * You may obtain a copy of the License at 2594 * 2595 * http://www.apache.org/licenses/LICENSE-2.0 2596 * 2597 * Unless required by applicable law or agreed to in writing, software 2598 * distributed under the License is distributed on an "AS IS" BASIS, 2599 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2600 * See the License for the specific language governing permissions and 2601 * limitations under the License.
2602 */class lW extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 2603 * @license 2604 * Copyright 2020 Google LLC 2605 * 2606 * Licensed under the Apache License, Version 2.0 (the "License"); 2607 * you may not use this file except in compliance with the License. 2608 * You may obtain a copy of the License at 2609 * 2610 * http://www.apache.org/licenses/LICENSE-2.0 2611 * 2612 * Unless required by applicable law or agreed to in writing, software 2613 * distributed under the License is distributed on an "AS IS" BASIS, 2614 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2615 * See the License for the specific language governing permissions and 2616 * limitations under the License. 2617 */class mr{constructor(e){this.binaryString=e}static fromBase64String(e){const n=function(i){try{return atob(i)}catch(o){throw typeof DOMException<"u"&&o instanceof DOMException?new lW("Invalid base64 string: "+o):o}}(e);return new mr(n)}static fromUint8Array(e){const n=function(i){let o="";for(let s=0;s<i.length;++s)o+=String.fromCharCode(i[s]);return o}(e);return new mr(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(n){return btoa(n)}(this.binaryString)}toUint8Array(){return function(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return gt(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}mr.EMPTY_BYTE_STRING=new mr("");const ahe=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function ec(t){if(tt(!!t,39018),typeof t=="string"){let e=0;const n=ahe.exec(t);if(tt(!!n,46558,{timestamp:t}),n[1]){let i=n[1];i=(i+"000000000").substr(0,9),e=Number(i)}const r=new Date(t);return{seconds:Math.floor(r.getTime()/1e3),nanos:e}}return{seconds:Un(t.seconds),nanos:Un(t.nanos)}}function Un(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function tc(t){return typeof t=="string"?mr.fromBase64String(t):mr.fromUint8Array(t)}/** 2618 * @license 2619 * Copyright 2020 Google LLC 2620 * 2621 * Licensed under the Apache License, Version 2.0 (the "License"); 2622 * you may not use this file except in compliance with the License. 2623 * You may obtain a copy of the License at 2624 * 2625 * http://www.apache.org/licenses/LICENSE-2.0 2626 * 2627 * Unless required by applicable law or agreed to in writing, software 2628 * distributed under the License is distributed on an "AS IS" BASIS, 2629 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2630 * See the License for the specific language governing permissions and 2631 * limitations under the License. 2632 */const cW="server_timestamp",uW="__type__",dW="__previous_value__",fW="__local_write_time__";function bE(t){var n,r;return((r=(((n=t==null?void 0:t.mapValue)==null?void 0:n.fields)||{})[uW])==null?void 0:r.stringValue)===cW}function wE(t){const e=t.mapValue.fields[dW];return bE(e)?wE(e):e}function c0(t){const e=ec(t.mapValue.fields[fW].timestampValue);return new cn(e.seconds,e.nanos)}/** 2633 * @license 2634 * Copyright 2017 Google LLC 2635 * 2636 * Licensed under the Apache License, Version 2.0 (the "License"); 2637 * you may not use this file except in compliance with the License. 2638 * You may obtain a copy of the License at 2639 * 2640 * http://www.apache.org/licenses/LICENSE-2.0 2641 * 2642 * Unless required by applicable law or agreed to in writing, software 2643 * distributed under the License is distributed on an "AS IS" BASIS, 2644 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2645 * See the License for the specific language governing permissions and 2646 * limitations under the License. 2647 */class lhe{constructor(e,n,r,i,o,s,a,l,c,u,d){this.databaseId=e,this.appId=n,this.persistenceKey=r,this.host=i,this.ssl=o,this.forceLongPolling=s,this.autoDetectLongPolling=a,this.longPollingOptions=l,this.useFetchStreams=c,this.isUsingEmulator=u,this.apiKey=d}}const wS="(default)";class kf{constructor(e,n){this.projectId=e,this.database=n||wS}static empty(){return new kf("","")}get isDefaultDatabase(){return this.database===wS}isEqual(e){return e instanceof kf&&e.projectId===this.projectId&&e.database===this.database}}function che(t,e){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Ae(le.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new kf(t.options.projectId,e)}/** 2648 * @license 2649 * Copyright 2020 Google LLC 2650 * 2651 * Licensed under the Apache License, Version 2.0 (the "License");
2652 * you may not use this file except in compliance with the License. 2653 * You may obtain a copy of the License at 2654 * 2655 * http://www.apache.org/licenses/LICENSE-2.0 2656 * 2657 * Unless required by applicable law or agreed to in writing, software 2658 * distributed under the License is distributed on an "AS IS" BASIS, 2659 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2660 * See the License for the specific language governing permissions and 2661 * limitations under the License. 2662 */const KM="__type__",hW="__max__",Zc={mapValue:{fields:{__type__:{stringValue:hW}}}},YM="__vector__",gm="value",tw={nullValue:"NULL_VALUE"};function Vu(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?bE(t)?4:pW(t)?9007199254740991:SE(t)?10:11:Ye(28295,{value:t})}function $a(t,e){if(t===e)return!0;const n=Vu(t);if(n!==Vu(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return c0(t).isEqual(c0(e));case 3:return function(i,o){if(typeof i.timestampValue=="string"&&typeof o.timestampValue=="string"&&i.timestampValue.length===o.timestampValue.length)return i.timestampValue===o.timestampValue;const s=ec(i.timestampValue),a=ec(o.timestampValue);return s.seconds===a.seconds&&s.nanos===a.nanos}(t,e);case 5:return t.stringValue===e.stringValue;case 6:return function(i,o){return tc(i.bytesValue).isEqual(tc(o.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(i,o){return Un(i.geoPointValue.latitude)===Un(o.geoPointValue.latitude)&&Un(i.geoPointValue.longitude)===Un(o.geoPointValue.longitude)}(t,e);case 2:return function(i,o){if("integerValue"in i&&"integerValue"in o)return Un(i.integerValue)===Un(o.integerValue);if("doubleValue"in i&&"doubleValue"in o){const s=Un(i.doubleValue),a=Un(o.doubleValue);return s===a?o0(s)===o0(a):isNaN(s)&&isNaN(a)}return!1}(t,e);case 9:return um(t.arrayValue.values||[],e.arrayValue.values||[],$a);case 10:case 11:return function(i,o){const s=i.mapValue.fields||{},a=o.mapValue.fields||{};if(ID(s)!==ID(a))return!1;for(const l in s)if(s.hasOwnProperty(l)&&(a[l]===void 0||!$a(s[l],a[l])))return!1;return!0}(t,e);default:return Ye(52216,{left:t})}}function u0(t,e){return(t.values||[]).find(n=>$a(n,e))!==void 0}function Bu(t,e){if(t===e)return 0;const n=Vu(t),r=Vu(e);if(n!==r)return gt(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return gt(t.booleanValue,e.booleanValue);case 2:return function(o,s){const a=Un(o.integerValue||o.doubleValue),l=Un(s.integerValue||s.doubleValue);return a<l?-1:a>l?1:a===l?0:isNaN(a)?isNaN(l)?0:-1:1}(t,e);case 3:return MD(t.timestampValue,e.timestampValue);case 4:return MD(c0(t),c0(e));case 5:return z5(t.stringValue,e.stringValue);case 6:return function(o,s){const a=tc(o),l=tc(s);return a.compareTo(l)}(t.bytesValue,e.bytesValue);case 7:return function(o,s){const a=o.split("/"),l=s.split("/");for(let c=0;c<a.length&&c<l.length;c++){const u=gt(a[c],l[c]);if(u!==0)return u}return gt(a.length,l.length)}(t.referenceValue,e.referenceValue);case 8:return function(o,s){const a=gt(Un(o.latitude),Un(s.latitude));return a!==0?a:gt(Un(o.longitude),Un(s.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return kD(t.arrayValue,e.arrayValue);case 10:return function(o,s){var f,h,p,m;const a=o.fields||{},l=s.fields||{},c=(f=a[gm])==null?void 0:f.arrayValue,u=(h=l[gm])==null?void 0:h.arrayValue,d=gt(((p=c==null?void 0:c.values)==null?void 0:p.length)||0,((m=u==null?void 0:u.values)==null?void 0:m.length)||0);return d!==0?d:kD(c,u)}(t.mapValue,e.mapValue);case 11:return function(o,s){if(o===Zc.mapValue&&s===Zc.mapValue)return 0;if(o===Zc.mapValue)return 1;if(s===Zc.mapValue)return-1;const a=o.fields||{},l=Object.keys(a),c=s.fields||{},u=Object.keys(c);l.sort(),u.sort();for(let d=0;d<l.length&&d<u.length;++d){const f=z5(l[d],u[d]);if(f!==0)return f;const h=Bu(a[l[d]],c[u[d]]);if(h!==0)return h}return gt(l.length,u.length)}(t.mapValue,e.mapValue);default:throw Ye(23264,{he:n})}}function MD(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return gt(t,e);const n=ec(t),r=ec(e),i=gt(n.seconds,r.seconds);return i!==0?i:gt(n.nanos,r.nanos)}function kD(t,e){const n=t.values||[],r=e.values||[];for(let i=0;i<n.length&&i<r.length;++i){const o=Bu(n[i],r[i]);if(o)return o}return gt(n.length,r.length)}function ym(t){return U5(t)}function U5(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?function(n){const r=ec(n);return`time(${r.seconds},${r.nanos})`}(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?function(n){return tc(n).toBase64()}(t.bytesValue):"referenceValue"in t?function(n){return He.fromName(n).toString()}(t.referenceValue):"geoPointValue"in t?function(n){return`geo(${n.latitude},${n.longitude})`}(t.geoPointValue):"arrayValue"in t?function(n){let r="[",i=!0;for(const o of n.values||[])i?i=!1:r+=",",r+=U5(o);return r+"]"}(t.arrayValue):"mapValue"in t?function(n){const r=Object.keys(n.fields||{}).sort();let i="{",o=!0;for(const s of r)o?o=!1:i+=",",i+=`${s}:${U5(n.fields[s])}`;return i+"}"}(t.mapValue):Ye(61005,{value:t})}function nw(t){switch(Vu(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=wE(t);return e?16+nw(e):16;case 5:return 2*t.stringValue.length;case 6:return tc(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return function(r){return(r.values||[]).reduce((i,o)=>i+nw(o),0)}(t.arrayValue);case 10:case 11:return function(r){let i=0;return td(r.fields,(o,s)=>{i+=o.length+nw(s)}),i}(t.mapValue);default:throw Ye(13486,{value:t})}}function Pf(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function q5(t){return!!t&&"integerValue"in t}function d0(t){return!!t&&"arrayValue"in t}function PD(t){return!!t&&"nullValue"in t}function OD(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function rw(t){return!!t&&"mapValue"in t}function SE(t){var n,r;return((r=(((n=t==null?void 0:t.mapValue)==null?void 0:n.fields)||{})[KM])==null?void 0:r.stringValue)===YM}function uy(t){if(t.geoPointValue)return{geoPointValue:{...t.geoPointValue}};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:{...t.timestampValue}};if(t.mapValue){const e={mapValue:{fields:{}}};return td(t.mapValue.fields,(n,r)=>e.mapValue.fields[n]=uy(r)),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=uy(t.arrayValue.values[n]);return e}return{...t}}function pW(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue===hW}const mW={mapValue:{fields:{[KM]:{stringValue:YM},[gm]:{arrayValue:{}}}}};function uhe(t){return"nullValue"in t?tw:"booleanValue"in t?{booleanValue:!1}:"integerValue"in t||"doubleValue"in t?{doubleValue:NaN}:"timestampValue"in t?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"stringValue"in t?{stringValue:""}
vendor: 1,966 bytes, lines 2662-2677
2662:"bytesValue"in t?{bytesValue:""}:"referenceValue"in t?Pf(kf.empty(),He.empty()):"geoPointValue"in t?{geoPointValue:{latitude:-90,longitude:-180}}:"arrayValue"in t?{arrayValue:{}}:"mapValue"in t?SE(t)?mW:{mapValue:{}}:Ye(35942,{value:t})}function dhe(t){return"nullValue"in t?{booleanValue:!1}:"booleanValue"in t?{doubleValue:NaN}:"integerValue"in t||"doubleValue"in t?{timestampValue:{seconds:Number.MIN_SAFE_INTEGER}}:"timestampValue"in t?{stringValue:""}:"stringValue"in t?{bytesValue:""}:"bytesValue"in t?Pf(kf.empty(),He.empty()):"referenceValue"in t?{geoPointValue:{latitude:-90,longitude:-180}}:"geoPointValue"in t?{arrayValue:{}}:"arrayValue"in t?mW:"mapValue"in t?SE(t)?{mapValue:{}}:Zc:Ye(61959,{value:t})}function ND(t,e){const n=Bu(t.value,e.value);return n!==0?n:t.inclusive&&!e.inclusive?-1:!t.inclusive&&e.inclusive?1:0}function DD(t,e){const n=Bu(t.value,e.value);return n!==0?n:t.inclusive&&!e.inclusive?1:!t.inclusive&&e.inclusive?-1:0}/** 2663 * @license 2664 * Copyright 2017 Google LLC 2665 * 2666 * Licensed under the Apache License, Version 2.0 (the "License"); 2667 * you may not use this file except in compliance with the License. 2668 * You may obtain a copy of the License at 2669 * 2670 * http://www.apache.org/licenses/LICENSE-2.0 2671 * 2672 * Unless required by applicable law or agreed to in writing, software 2673 * distributed under the License is distributed on an "AS IS" BASIS, 2674 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2675 * See the License for the specific language governing permissions and 2676 * limitations under the License. 2677 */class Ur{constructor(e){this.value=e}static empty(){return new Ur({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let r=0;r<e.length-1;++r)if(n=(n.mapValue.fields||{})[e.get(r)],!rw(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=uy(n)}setAll(e){let n=Qn.emptyPath(),r={},i=[];e.forEach((s,a)=>
vendor: 4,787 bytes, lines 2677-2711
2677{if(!n.isImmediateParentOf(a)){const l=this.getFieldsMap(n);this.applyChanges(l,r,i),r={},i=[],n=a.popLast()}s?r[a.lastSegment()]=uy(s):i.push(a.lastSegment())});const o=this.getFieldsMap(n);this.applyChanges(o,r,i)}delete(e){const n=this.field(e.popLast());rw(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return $a(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let r=0;r<e.length;++r){let i=n.mapValue.fields[e.get(r)];rw(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},n.mapValue.fields[e.get(r)]=i),n=i}return n.mapValue.fields}applyChanges(e,n,r){td(n,(i,o)=>e[i]=o);for(const i of r)delete e[i]}clone(){return new Ur(uy(this.value))}}function gW(t){const e=[];return td(t.fields,(n,r)=>{const i=new Qn([n]);if(rw(r)){const o=gW(r.mapValue).fields;if(o.length===0)e.push(i);else for(const s of o)e.push(i.child(s))}else e.push(i)}),new Yi(e)}/** 2678 * @license 2679 * Copyright 2017 Google LLC 2680 * 2681 * Licensed under the Apache License, Version 2.0 (the "License"); 2682 * you may not use this file except in compliance with the License. 2683 * You may obtain a copy of the License at 2684 * 2685 * http://www.apache.org/licenses/LICENSE-2.0 2686 * 2687 * Unless required by applicable law or agreed to in writing, software 2688 * distributed under the License is distributed on an "AS IS" BASIS, 2689 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2690 * See the License for the specific language governing permissions and 2691 * limitations under the License. 2692 */class qn{constructor(e,n,r,i,o,s,a){this.key=e,this.documentType=n,this.version=r,this.readTime=i,this.createTime=o,this.data=s,this.documentState=a}static newInvalidDocument(e){return new qn(e,0,it.min(),it.min(),it.min(),Ur.empty(),0)}static newFoundDocument(e,n,r,i){return new qn(e,1,n,it.min(),r,i,0)}static newNoDocument(e,n){return new qn(e,2,n,it.min(),it.min(),Ur.empty(),0)}static newUnknownDocument(e,n){return new qn(e,3,n,it.min(),it.min(),Ur.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(it.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Ur.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Ur.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=it.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof qn&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new qn(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 2693 * @license 2694 * Copyright 2022 Google LLC 2695 * 2696 * Licensed under the Apache License, Version 2.0 (the "License"); 2697 * you may not use this file except in compliance with the License. 2698 * You may obtain a copy of the License at 2699 * 2700 * http://www.apache.org/licenses/LICENSE-2.0 2701 * 2702 * Unless required by applicable law or agreed to in writing, software 2703 * distributed under the License is distributed on an "AS IS" BASIS, 2704 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2705 * See the License for the specific language governing permissions and 2706 * limitations under the License. 2707 */class $u{constructor(e,n){this.position=e,this.inclusive=n}}function LD(t,e,n){let r=0;for(let i=0;i<t.position.length;i++){const o=e[i],s=t.position[i];if(o.field.isKeyField()?r=He.comparator(He.fromName(s.referenceValue),n.key):r=Bu(s,n.data.field(o.field)),o.dir==="desc"&&(r*=-1),r!==0)break}return r}function zD(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!$a(t.position[n],e.position[n]))return!1;return!0}/** 2708 * @license 2709 * Copyright 2022 Google LLC 2710 * 2711 * Licensed under the Apache License, Version 2.0 (the "License");
2712 * you may not use this file except in compliance with the License. 2713 * You may obtain a copy of the License at 2714 * 2715 * http://www.apache.org/licenses/LICENSE-2.0 2716 * 2717 * Unless required by applicable law or agreed to in writing, software 2718 * distributed under the License is distributed on an "AS IS" BASIS, 2719 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2720 * See the License for the specific language governing permissions and 2721 * limitations under the License. 2722 */class f0{constructor(e,n="asc"){this.field=e,this.dir=n}}function fhe(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 2723 * @license 2724 * Copyright 2022 Google LLC 2725 * 2726 * Licensed under the Apache License, Version 2.0 (the "License"); 2727 * you may not use this file except in compliance with the License. 2728 * You may obtain a copy of the License at 2729 * 2730 * http://www.apache.org/licenses/LICENSE-2.0 2731 * 2732 * Unless required by applicable law or agreed to in writing, software 2733 * distributed under the License is distributed on an "AS IS" BASIS, 2734 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2735 * See the License for the specific language governing permissions and 2736 * limitations under the License. 2737 */class yW{}class Vt extends yW{constructor(e,n,r){super(),this.field=e,this.op=n,this.value=r}static create(e,n,r){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,r):new hhe(e,n,r):n==="array-contains"?new ghe(e,r):n==="in"?new EW(e,r):n==="not-in"?new yhe(e,r):n==="array-contains-any"?new vhe(e,r):new Vt(e,n,r)}static createKeyFieldInFilter(e,n,r){return n==="in"?new phe(e,r):new mhe(e,r)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&n.nullValue===void 0&&this.matchesComparison(Bu(n,this.value)):n!==null&&Vu(this.value)===Vu(n)&&this.matchesComparison(Bu(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return Ye(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class un extends yW{constructor(e,n){super(),this.filters=e,this.op=n,this.Pe=null}static create(e,n){return new un(e,n)}matches(e){return vm(this)?this.filters.find(n=>!n.matches(e))===void 0:this.filters.find(n=>n.matches(e))!==void 0}getFlattenedFilters(){return this.Pe!==null||(this.Pe=this.filters.reduce((e,n)=>e.concat(n.getFlattenedFilters()),[])),this.Pe}getFilters(){return Object.assign([],this.filters)}}function vm(t){return t.op==="and"}function W5(t){return t.op==="or"}function XM(t){return vW(t)&&vm(t)}function vW(t){for(const e of t.filters)if(e instanceof un)return!1;return!0}function G5(t){if(t instanceof Vt)return t.field.canonicalString()+t.op.toString()+ym(t.value);if(XM(t))return t.filters.map(e=>G5(e)).join(",");{const e=t.filters.map(n=>G5(n)).join(",");return`${t.op}(${e})`}}function bW(t,e){return t instanceof Vt?function(r,i){return i instanceof Vt&&r.op===i.op&&r.field.isEqual(i.field)&&$a(r.value,i.value)}(t,e):t instanceof un?function(r,i){return i instanceof un&&r.op===i.op&&r.filters.length===i.filters.length?r.filters.reduce((o,s,a)=>o&&bW(s,i.filters[a]),!0):!1}(t,e):void Ye(19439)}function wW(t,e){const n=t.filters.concat(e);return un.create(n,t.op)}function SW(t){return t instanceof Vt?function(n){return`${n.field.canonicalString()} ${n.op} ${ym(n.value)}`}(t):t instanceof un?function(n){return n.op.toString()+" {"+n.getFilters().map(SW).join(" ,")+"}"}(t):"Filter"}class hhe extends Vt{constructor(e,n,r){super(e,n,r),this.key=He.fromName(r.referenceValue)}matches(e){const n=He.comparator(e.key,this.key);return this.matchesComparison(n)}}class phe extends Vt{constructor(e,n){super(e,"in",n),this.keys=xW("in",n)}matches(e){return this.keys.some(n=>n.isEqual(e.key))}}class mhe extends Vt{constructor(e,n){super(e,"not-in",n),this.keys=xW("not-in",n)}matches(e){return!this.keys.some(n=>n.isEqual(e.key))}}function xW(t,e){var n;return(((n=e.arrayValue)==null?void 0:n.values)||[]).map(r=>He.fromName(r.referenceValue))}class ghe extends Vt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return d0(n)&&u0(n.arrayValue,this.value)}}class EW extends Vt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&u0(this.value.arrayValue,n)}}class yhe extends Vt{constructor(e,n){super(e,"not-in",n)}matches(e){if(u0(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&n.nullValue===void 0&&!u0(this.value.arrayValue,n)}}class vhe extends Vt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);
vendor: 9,536 bytes, lines 2737-2786
2737return!(!d0(n)||!n.arrayValue.values)&&n.arrayValue.values.some(r=>u0(this.value.arrayValue,r))}}/** 2738 * @license 2739 * Copyright 2019 Google LLC 2740 * 2741 * Licensed under the Apache License, Version 2.0 (the "License"); 2742 * you may not use this file except in compliance with the License. 2743 * You may obtain a copy of the License at 2744 * 2745 * http://www.apache.org/licenses/LICENSE-2.0 2746 * 2747 * Unless required by applicable law or agreed to in writing, software 2748 * distributed under the License is distributed on an "AS IS" BASIS, 2749 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2750 * See the License for the specific language governing permissions and 2751 * limitations under the License. 2752 */class bhe{constructor(e,n=null,r=[],i=[],o=null,s=null,a=null){this.path=e,this.collectionGroup=n,this.orderBy=r,this.filters=i,this.limit=o,this.startAt=s,this.endAt=a,this.Te=null}}function K5(t,e=null,n=[],r=[],i=null,o=null,s=null){return new bhe(t,e,n,r,i,o,s)}function Of(t){const e=Qe(t);if(e.Te===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map(r=>G5(r)).join(","),n+="|ob:",n+=e.orderBy.map(r=>function(o){return o.field.canonicalString()+o.dir}(r)).join(","),Ev(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map(r=>ym(r)).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map(r=>ym(r)).join(",")),e.Te=n}return e.Te}function Cv(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!fhe(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!bW(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!zD(t.startAt,e.startAt)&&zD(t.endAt,e.endAt)}function SS(t){return He.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}function xS(t,e){return t.filters.filter(n=>n instanceof Vt&&n.field.isEqual(e))}function VD(t,e,n){let r=tw,i=!0;for(const o of xS(t,e)){let s=tw,a=!0;switch(o.op){case"<":case"<=":s=uhe(o.value);break;case"==":case"in":case">=":s=o.value;break;case">":s=o.value,a=!1;break;case"!=":case"not-in":s=tw}ND({value:r,inclusive:i},{value:s,inclusive:a})<0&&(r=s,i=a)}if(n!==null){for(let o=0;o<t.orderBy.length;++o)if(t.orderBy[o].field.isEqual(e)){const s=n.position[o];ND({value:r,inclusive:i},{value:s,inclusive:n.inclusive})<0&&(r=s,i=n.inclusive);break}}return{value:r,inclusive:i}}function BD(t,e,n){let r=Zc,i=!0;for(const o of xS(t,e)){let s=Zc,a=!0;switch(o.op){case">=":case">":s=dhe(o.value),a=!1;break;case"==":case"in":case"<=":s=o.value;break;case"<":s=o.value,a=!1;break;case"!=":case"not-in":s=Zc}DD({value:r,inclusive:i},{value:s,inclusive:a})>0&&(r=s,i=a)}if(n!==null){for(let o=0;o<t.orderBy.length;++o)if(t.orderBy[o].field.isEqual(e)){const s=n.position[o];DD({value:r,inclusive:i},{value:s,inclusive:n.inclusive})>0&&(r=s,i=n.inclusive);break}}return{value:r,inclusive:i}}/** 2753 * @license 2754 * Copyright 2017 Google LLC 2755 * 2756 * Licensed under the Apache License, Version 2.0 (the "License"); 2757 * you may not use this file except in compliance with the License. 2758 * You may obtain a copy of the License at 2759 * 2760 * http://www.apache.org/licenses/LICENSE-2.0 2761 * 2762 * Unless required by applicable law or agreed to in writing, software 2763 * distributed under the License is distributed on an "AS IS" BASIS, 2764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2765 * See the License for the specific language governing permissions and 2766 * limitations under the License. 2767 */class nd{constructor(e,n=null,r=[],i=[],o=null,s="F",a=null,l=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=r,this.filters=i,this.limit=o,this.limitType=s,this.startAt=a,this.endAt=l,this.Ie=null,this.Ee=null,this.Re=null,this.startAt,this.endAt}}function TW(t,e,n,r,i,o,s,a){return new nd(t,e,n,r,i,o,s,a)}function _v(t){return new nd(t)}function $D(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function whe(t){return He.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}function QM(t){return t.collectionGroup!==null}function Np(t){const e=Qe(t);if(e.Ie===null){e.Ie=[];const n=new Set;for(const o of e.explicitOrderBy)e.Ie.push(o),n.add(o.field.canonicalString());const r=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(s){let a=new dn(Qn.comparator);return s.filters.forEach(l=>{l.getFlattenedFilters().forEach(c=>{c.isInequality()&&(a=a.add(c.field))})}),a})(e).forEach(o=>{n.has(o.canonicalString())||o.isKeyField()||e.Ie.push(new f0(o,r))}),n.has(Qn.keyField().canonicalString())||e.Ie.push(new f0(Qn.keyField(),r))}return e.Ie}function ko(t){const e=Qe(t);return e.Ee||(e.Ee=CW(e,Np(t))),e.Ee}function She(t){const e=Qe(t);return e.Re||(e.Re=CW(e,t.explicitOrderBy)),e.Re}function CW(t,e){if(t.limitType==="F")return K5(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map(i=>{const o=i.dir==="desc"?"asc":"desc";return new f0(i.field,o)});const n=t.endAt?new $u(t.endAt.position,t.endAt.inclusive):null,r=t.startAt?new $u(t.startAt.position,t.startAt.inclusive):null;return K5(t.path,t.collectionGroup,e,t.filters,t.limit,n,r)}}function Y5(t,e){const n=t.filters.concat([e]);return new nd(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function xhe(t,e){const n=t.explicitOrderBy.concat([e]);return new nd(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}function ES(t,e,n){return new nd(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Ehe(t,e){return new nd(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}function xE(t,e){return Cv(ko(t),ko(e))&&t.limitType===e.limitType}function _W(t){return`${Of(ko(t))}|lt:${t.limitType}`}function Yh(t){return`Query(target=${function(n){let r=n.path.canonicalString();return n.collectionGroup!==null&&(r+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(r+=`, filters: [${n.filters.map(i=>SW(i)).join(", ")}]`),Ev(n.limit)||(r+=", limit: "+n.limit),n.orderBy.length>0&&(r+=`, orderBy: [${n.orderBy.map(i=>function(s){return`${s.field.canonicalString()} (${s.dir})`}(i)).join(", ")}]`),n.startAt&&(r+=", startAt: ",r+=n.startAt.inclusive?"b:":"a:",r+=n.startAt.position.map(i=>ym(i)).join(",")),n.endAt&&(r+=", endAt: ",r+=n.endAt.inclusive?"a:":"b:",r+=n.endAt.position.map(i=>ym(i)).join(",")),`Target(${r})`}(ko(t))}; limitType=${t.limitType})`}function Av(t,e){return e.isFoundDocument()&&function(r,i){const o=i.key.path;return r.collectionGroup!==null?i.key.hasCollectionId(r.collectionGroup)&&r.path.isPrefixOf(o):He.isDocumentKey(r.path)?r.path.isEqual(o):r.path.isImmediateParentOf(o)}(t,e)&&function(r,i){for(const o of Np(r))if(!o.field.isKeyField()&&i.data.field(o.field)===null)return!1;return!0}(t,e)&&function(r,i){for(const o of r.filters)if(!o.matches(i))return!1;return!0}(t,e)&&function(r,i){return!(r.startAt&&!function(s,a,l){const c=LD(s,a,l);return s.inclusive?c<=0:c<0}(r.startAt,Np(r),i)||r.endAt&&!function(s,a,l){const c=LD(s,a,l);return s.inclusive?c>=0:c>0}(r.endAt,Np(r),i))}(t,e)}function AW(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function IW(t){return(e,n)=>{let r=!1;for(const i of Np(t)){const o=The(i,e,n);if(o!==0)return o;r=r||i.field.isKeyField()}return 0}}function The(t,e,n){const r=t.field.isKeyField()?He.comparator(e.key,n.key):function(o,s,a){const l=s.data.field(o),c=a.data.field(o);return l!==null&&c!==null?Bu(l,c):Ye(42886)}(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Ye(19790,{direction:t.dir})}}/** 2768 * @license 2769 * Copyright 2017 Google LLC 2770 * 2771 * Licensed under the Apache License, Version 2.0 (the "License"); 2772 * you may not use this file except in compliance with the License. 2773 * You may obtain a copy of the License at 2774 * 2775 * http://www.apache.org/licenses/LICENSE-2.0 2776 * 2777 * Unless required by applicable law or agreed to in writing, software 2778 * distributed under the License is distributed on an "AS IS" BASIS, 2779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2780 * See the License for the specific language governing permissions and 2781 * limitations under the License. 2782 */class cc{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r!==void 0){for(const[i,o]of r)if(this.equalsFn(i,e))return o}}has(e){return this.get(e)!==void 0}set(e,n){const r=this.mapKeyFn(e),i=this.inner[r];if(i===void 0)return this.inner[r]=[[e,n]],void this.innerSize++;for(let o=0;o<i.length;o++)if(this.equalsFn(i[o][0],e))return void(i[o]=[e,n]);i.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return!1;for(let i=0;i<r.length;i++)if(this.equalsFn(r[i][0],e))return r.length===1?delete this.inner[n]:r.splice(i,1),this.innerSize--,!0;return!1}forEach(e){td(this.inner,(n,r)=>{for(const[i,o]of r)e(i,o)})}isEmpty(){return aW(this.inner)}size(){return this.innerSize}}/** 2783 * @license 2784 * Copyright 2017 Google LLC 2785 * 2786 * Licensed under the Apache License, Version 2.0 (the "License");
2787 * you may not use this file except in compliance with the License. 2788 * You may obtain a copy of the License at 2789 * 2790 * http://www.apache.org/licenses/LICENSE-2.0 2791 * 2792 * Unless required by applicable law or agreed to in writing, software 2793 * distributed under the License is distributed on an "AS IS" BASIS, 2794 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2795 * See the License for the specific language governing permissions and 2796 * limitations under the License. 2797 */const Che=new Rn(He.comparator);function Co(){return Che}const RW=new Rn(He.comparator);function T1(...t){let e=RW;for(const n of t)e=e.insert(n.key,n);return e}function MW(t){let e=RW;return t.forEach((n,r)=>e=e.insert(n,r.overlayedDocument)),e}function Aa(){return dy()}function kW(){return dy()}function dy(){return new cc(t=>t.toString(),(t,e)=>t.isEqual(e))}const _he=new Rn(He.comparator),Ahe=new dn(He.comparator);function It(...t){let e=Ahe;for(const n of t)e=e.add(n);return e}const Ihe=new dn(gt);function JM(){return Ihe}/** 2798 * @license 2799 * Copyright 2020 Google LLC 2800 * 2801 * Licensed under the Apache License, Version 2.0 (the "License"); 2802 * you may not use this file except in compliance with the License. 2803 * You may obtain a copy of the License at 2804 * 2805 * http://www.apache.org/licenses/LICENSE-2.0 2806 * 2807 * Unless required by applicable law or agreed to in writing, software 2808 * distributed under the License is distributed on an "AS IS" BASIS, 2809 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2810 * See the License for the specific language governing permissions and 2811 * limitations under the License. 2812 */function ZM(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:o0(e)?"-0":e}}function PW(t){return{integerValue:""+t}}function OW(t,e){return Xq(e)?PW(e):ZM(t,e)}/** 2813 * @license 2814 * Copyright 2018 Google LLC 2815 * 2816 * Licensed under the Apache License, Version 2.0 (the "License"); 2817 * you may not use this file except in compliance with the License. 2818 * You may obtain a copy of the License at 2819 * 2820 * http://www.apache.org/licenses/LICENSE-2.0 2821 * 2822 * Unless required by applicable law or agreed to in writing, software 2823 * distributed under the License is distributed on an "AS IS" BASIS, 2824 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2825 * See the License for the specific language governing permissions and 2826 * limitations under the License. 2827 */class EE{constructor(){this._=void 0}}function Rhe(t,e,n){return t instanceof bm?function(i,o){const s={fields:{[uW]:{stringValue:cW},[fW]:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return o&&bE(o)&&(o=wE(o)),o&&(s.fields[dW]=o),{mapValue:s}}(n,e):t instanceof Nf?DW(t,e):t instanceof Df?LW(t,e):function(i,o){const s=NW(i,o),a=FD(s)+FD(i.Ae);return q5(s)&&q5(i.Ae)?PW(a):ZM(i.serializer,a)}(t,e)}function Mhe(t,e,n){return t instanceof Nf?DW(t,e):t instanceof Df?LW(t,e):n}function NW(t,e){return t instanceof wm?function(r){return q5(r)||function(o){return!!o&&"doubleValue"in o}(r)}(e)?e:{integerValue:0}:null}class bm extends EE{}class Nf extends EE{constructor(e){super(),this.elements=e}}function DW(t,e){const n=zW(e);for(const r of t.elements)n.some(i=>$a(i,r))||n.push(r);return{arrayValue:{values:n}}}class Df extends EE{constructor(e){super(),this.elements=e}}function LW(t,e){let n=zW(e);for(const r of t.elements)n=n.filter(i=>!$a(i,r));return{arrayValue:{values:n}}}class wm extends EE{constructor(e,n){super(),this.serializer=e,this.Ae=n}}function FD(t){return Un(t.integerValue||t.doubleValue)}function zW(t){return d0(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}/** 2828 * @license 2829 * Copyright 2017 Google LLC 2830 * 2831 * Licensed under the Apache License, Version 2.0 (the "License"); 2832 * you may not use this file except in compliance with the License. 2833 * You may obtain a copy of the License at 2834 * 2835 * http://www.apache.org/licenses/LICENSE-2.0 2836 * 2837 * Unless required by applicable law or agreed to in writing, software 2838 * distributed under the License is distributed on an "AS IS" BASIS, 2839 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2840 * See the License for the specific language governing permissions and 2841 * limitations under the License. 2842 */class Iv{constructor(e,n){this.field=e,this.transform=n}}function khe(t,e){return t.field.isEqual(e.field)&&function(r,i){return r instanceof Nf&&i instanceof Nf||r instanceof Df&&i instanceof Df?um(r.elements,i.elements,$a):r instanceof wm&&i instanceof wm?$a(r.Ae,i.Ae):r instanceof bm&&i instanceof bm}(t.transform,e.transform)}class Phe{constructor(e,n){this.version=e,this.transformResults=n}}
2842class Wn{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new Wn}static exists(e){return new Wn(void 0,e)}static updateTime(e){return new Wn(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function iw(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class TE{}function VW(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new dg(t.key,Wn.none()):new ug(t.key,t.data,Wn.none());{const n=t.data,r=Ur.empty();let i=new dn(Qn.comparator);for(let o of e.fields)if(!i.has(o)){let s=n.field(o);s===null&&o.length>1&&(o=o.popLast(),s=n.field(o)),s===null?r.delete(o):r.set(o,s),i=i.add(o)}return new uc(t.key,r,new Yi(i.toArray()),Wn.none())}}function Ohe(t,e,n){t instanceof ug?function(i,o,s){const a=i.value.clone(),l=HD(i.fieldTransforms,o,s.transformResults);a.setAll(l),o.convertToFoundDocument(s.version,a).setHasCommittedMutations()}(t,e,n):t instanceof uc?function(i,o,s){if(!iw(i.precondition,o))return void o.convertToUnknownDocument(s.version);const a=HD(i.fieldTransforms,o,s.transformResults),l=o.data;l.setAll(BW(i)),l.setAll(a),o.convertToFoundDocument(s.version,l).setHasCommittedMutations()}(t,e,n):function(i,o,s){o.convertToNoDocument(s.version).setHasCommittedMutations()}(0,e,n)}function fy(t,e,n,r){return t instanceof ug?function(o,s,a,l){if(!iw(o.precondition,s))return a;const c=o.value.clone(),u=UD(o.fieldTransforms,l,s);return c.setAll(u),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),null}(t,e,n,r):t instanceof uc?function(o,s,a,l){if(!iw(o.precondition,s))return a;const c=UD(o.fieldTransforms,l,s),u=s.data;return u.setAll(BW(o)),u.setAll(c),s.convertToFoundDocument(s.version,u).setHasLocalMutations(),a===null?null:a.unionWith(o.fieldMask.fields).unionWith(o.fieldTransforms.map(d=>d.field))}(t,e,n,r):function(o,s,a){return iw(o.precondition,s)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):a}(t,e,n)}function Nhe(t,e){let n=null;for(const r of t.fieldTransforms){const i=e.data.field(r.field),o=NW(r.transform,i||null);o!=null&&(n===null&&(n=Ur.empty()),n.set(r.field,o))}return n||null}function jD(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(r,i){return r===void 0&&i===void 0||!(!r||!i)&&um(r,i,(o,s)=>khe(o,s))}(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class ug extends TE{constructor(e,n,r,i=[]){super(),this.key=e,this.value=n,this.precondition=r,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}}class uc extends TE{constructor(e,n,r,i,o=[]){super(),this.key=e,this.data=n,this.fieldMask=r,this.precondition=i,this.fieldTransforms=o,this.type=1}getFieldMask(){return this.fieldMask}}function BW(t){const e=new Map;return t.fieldMask.fields.forEach(n=>{if(!n.isEmpty()){const r=t.data.field(n);e.set(n,r)}}),e}function HD(t,e,n){const r=new Map;tt(t.length===n.length,32656,{Ve:n.length,de:t.length});for(let i=0;i<n.length;i++){const o=t[i],s=o.transform,a=e.data.field(o.field);r.set(o.field,Mhe(s,a,n[i]))}return r}function UD(t,e,n){const r=new Map;for(const i of t){const o=i.transform,s=n.data.field(i.field);r.set(i.field,Rhe(o,s,e))}return r}class dg extends TE{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class ek extends TE{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 2843 * @license 2844 * Copyright 2017 Google LLC 2845 * 2846 * Licensed under the Apache License, Version 2.0 (the "License"); 2847 * you may not use this file except in compliance with the License. 2848 * You may obtain a copy of the License at 2849 * 2850 * http://www.apache.org/licenses/LICENSE-2.0 2851 * 2852 * Unless required by applicable law or agreed to in writing, softw
2852are 2853 * distributed under the License is distributed on an "AS IS" BASIS, 2854 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2855 * See the License for the specific language governing permissions and 2856 * limitations under the License. 2857 */class tk{constructor(e,n,r,i){this.batchId=e,this.localWriteTime=n,this.baseMutations=r,this.mutations=i}applyToRemoteDocument(e,n){const r=n.mutationResults;for(let i=0;i<this.mutations.length;i++){const o=this.mutations[i];o.key.isEqual(e.key)&&Ohe(o,e,r[i])}}applyToLocalView(e,n){for(const r of this.baseMutations)r.key.isEqual(e.key)&&(n=fy(r,e,n,this.localWriteTime));for(const r of this.mutations)r.key.isEqual(e.key)&&(n=fy(r,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const r=kW();return this.mutations.forEach(i=>{const o=e.get(i.key),s=o.overlayedDocument;let a=this.applyToLocalView(s,o.mutatedFields);a=n.has(i.key)?null:a;const l=VW(s,a);l!==null&&r.set(i.key,l),s.isValidDocument()||s.convertToNoDocument(it.min())}),r}keys(){return this.mutations.reduce((e,n)=>e.add(n.key),It())}isEqual(e){return this.batchId===e.batchId&&um(this.mutations,e.mutations,(n,r)=>jD(n,r))&&um(this.baseMutations,e.baseMutations,(n,r)=>jD(n,r))}}class nk{constructor(e,n,r,i){this.batch=e,this.commitVersion=n,this.mutationResults=r,this.docVersions=i}static from(e,n,r){tt(e.mutations.length===r.length,58842,{me:e.mutations.length,fe:r.length});let i=function(){return _he}();const o=e.mutations;for(let s=0;s<o.length;s++)i=i.insert(o[s].key,r[s].version);return new nk(e,n,r,i)}}/** 2858 * @license 2859 * Copyright 2022 Google LLC 2860 * 2861 * Licensed under the Apache License, Version 2.0 (the "License"); 2862 * you may not use this file except in compliance with the License. 2863 * You may obtain a copy of the License at 2864 * 2865 * http://www.apache.org/licenses/LICENSE-2.0 2866 * 2867 * Unless required by applicable law or agreed to in writing, software 2868 * distributed under the License is distributed on an "AS IS" BASIS, 2869 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2870 * See the License for the specific language governing permissions and 2871 * limitations under the License. 2872 */class rk{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 2873 largestBatchId: ${this.largestBatchId}, 2874 mutation: ${this.mutation.toString()} 2875 }`}}/** 2876 * @license 2877 * Copyright 2023 Google LLC 2878 * 2879 * Licensed under the Apache License, Version 2.0 (the "License"); 2880 * you may not use this file except in compliance with the License. 2881 * You may obtain a copy of the License at 2882 * 2883 * http://www.apache.org/licenses/LICENSE-2.0 2884 * 2885 * Unless required by applicable law or agreed to in writing, software 2886 * distributed under the License is distributed on an "AS IS" BASIS, 2887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2888 * See the License for the specific language governing permissions and 2889 * limitations under the License. 2890 */class Dhe{constructor(e,n,r){this.alias=e,this.aggregateType=n,this.fieldPath=r}}/** 2891 * @license 2892 * Copyright 2017 Google LLC 2893 * 2894 * Licensed under the Apache License, Version 2.0 (the "License"); 2895 * you may not use this file except in compliance with the License. 2896 * You may obtain a copy of the License at 2897 * 2898 * http://www.apache.org/licenses/LICENSE-2.0 2899 * 2900 * Unless required by applicable law or agreed to in writing, software 2901 * distributed under the License is distributed on an "AS IS" BASIS, 2902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2903 * See the License for the specific language governing permissions and 2904 * limitations under the License. 2905 */class Lhe{constructor(e,n){this.count=e,this.unchangedNames=n}}/** 2906 * @license 2907 * Copyright 2017 Google LLC 2908 * 2909 * Licensed under the Apache License, Version 2.0 (the "License"); 2910 * you may not use this file except in compliance with the License. 2911 * You may obtain a copy of the License at 2912 * 2913 * http://www.apache.org/licenses/LICENSE-2.0 2914 * 2915 * Unless required by applicable law or agreed to in writing, softw
2915are 2916 * distributed under the License is distributed on an "AS IS" BASIS, 2917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2918 * See the License for the specific language governing permissions and 2919 * limitations under the License. 2920 */var br,Ht;function $W(t){switch(t){case le.OK:return Ye(64938);case le.CANCELLED:case le.UNKNOWN:case le.DEADLINE_EXCEEDED:case le.RESOURCE_EXHAUSTED:case le.INTERNAL:case le.UNAVAILABLE:case le.UNAUTHENTICATED:return!1;case le.INVALID_ARGUMENT:case le.NOT_FOUND:case le.ALREADY_EXISTS:case le.PERMISSION_DENIED:case le.FAILED_PRECONDITION:case le.ABORTED:case le.OUT_OF_RANGE:case le.UNIMPLEMENTED:case le.DATA_LOSS:return!0;default:return Ye(15467,{code:t})}}function FW(t){if(t===void 0)return hr("GRPC error has no .code"),le.UNKNOWN;switch(t){case br.OK:return le.OK;case br.CANCELLED:return le.CANCELLED;case br.UNKNOWN:return le.UNKNOWN;case br.DEADLINE_EXCEEDED:return le.DEADLINE_EXCEEDED;case br.RESOURCE_EXHAUSTED:return le.RESOURCE_EXHAUSTED;case br.INTERNAL:return le.INTERNAL;case br.UNAVAILABLE:return le.UNAVAILABLE;case br.UNAUTHENTICATED:return le.UNAUTHENTICATED;case br.INVALID_ARGUMENT:return le.INVALID_ARGUMENT;case br.NOT_FOUND:return le.NOT_FOUND;case br.ALREADY_EXISTS:return le.ALREADY_EXISTS;case br.PERMISSION_DENIED:return le.PERMISSION_DENIED;case br.FAILED_PRECONDITION:return le.FAILED_PRECONDITION;case br.ABORTED:return le.ABORTED;case br.OUT_OF_RANGE:return le.OUT_OF_RANGE;case br.UNIMPLEMENTED:return le.UNIMPLEMENTED;case br.DATA_LOSS:return le.DATA_LOSS;default:return Ye(39323,{code:t})}}(Ht=br||(br={}))[Ht.OK=0]="OK",Ht[Ht.CANCELLED=1]="CANCELLED",Ht[Ht.UNKNOWN=2]="UNKNOWN",Ht[Ht.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ht[Ht.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ht[Ht.NOT_FOUND=5]="NOT_FOUND",Ht[Ht.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ht[Ht.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ht[Ht.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ht[Ht.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ht[Ht.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ht[Ht.ABORTED=10]="ABORTED",Ht[Ht.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ht[Ht.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ht[Ht.INTERNAL=13]="INTERNAL",Ht[Ht.UNAVAILABLE=14]="UNAVAILABLE",Ht[Ht.DATA_LOSS=15]="DATA_LOSS";/** 2921 * @license 2922 * Copyright 2023 Google LLC 2923 * 2924 * Licensed under the Apache License, Version 2.0 (the "License"); 2925 * you may not use this file except in compliance with the License. 2926 * You may obtain a copy of the License at 2927 * 2928 * http://www.apache.org/licenses/LICENSE-2.0 2929 * 2930 * Unless required by applicable law or agreed to in writing, software 2931 * distributed under the License is distributed on an "AS IS" BASIS, 2932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2933 * See the License for the specific language governing permissions and 2934 * limitations under the License. 2935 */function zhe(){return new TextEncoder}/** 2936 * @license 2937 * Copyright 2022 Google LLC 2938 * 2939 * Licensed under the Apache License, Version 2.0 (the "License"); 2940 * you may not use this file except in compliance with the License. 2941 * You may obtain a copy of the License at 2942 * 2943 * http://www.apache.org/licenses/LICENSE-2.0 2944 * 2945 * Unless required by applicable law or agreed to in writing, software 2946 * distributed under the License is distributed on an "AS IS" BASIS, 2947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2948 * See the License for the specific language governing permissions and 2949 * limitations under the License. 2950 */const Vhe=new Su([4294967295,4294967295],0);function qD(t){const e=zhe().encode(t),n=new Dq;return n.update(e),new Uint8Array(n.digest())}function WD(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),r=e.getUint32(4,!0),i=e.getUint32(8,!0),o=e.getUint32(12,!0);return[new Su([n,r],0),new Su([i,o],0)]}class ik{constructor(e,n,r){if(this.bitmap=e,this.padding=n,this.hashCount=r,n<0||n>=8)throw new C1(`Invalid padding: ${n}`);if(r<0)throw new C1(`Invalid hash count: ${r}`);if(e.length>0&&this.hashCount===0)throw new C1(`Invalid hash count: ${r}`);if(e.length===0&&n!==0)throw new C1(`Invalid padding when bitmap length is 0: ${n}`);this.ge=8*e.length-n,this.pe=Su.fromNumber(this.ge)}ye(e,n,r){let i=e.add(n.multiply(Su.fromNumber(r)));return i.compare(Vhe)===1&&(i=new Su([i.getBits(0),i.getBits(1)],0)),i.modulo(this.pe).toNumber()}we(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.ge===0)return!1;const n=qD(e),[r,i]=WD(n);for(let o=0;o<this.hashCount;o++){const s=this.ye(r,i,o);if(!this.we(s))return!1}return!0}static create(e,n,r){const i=e%8==0?0:8-e%8,o=new Uint8Array(Math.ceil(e/8)),s=new ik(o,i,n);return r.forEach(a=>s.insert(a)),s}insert(e){if(this.ge===0)return;const n=qD(e),[r,i]=WD(n);for(let o=0;o<this.hashCount;o++){const s=this.ye(r,i,o);this.be(s)}}be(e){const n=Math.floor(e/8),r=e%8;this.bitmap[n]|=1<<r}}
vendor: 9,784 bytes, lines 2950-2980
2950class C1 extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 2951 * @license 2952 * Copyright 2017 Google LLC 2953 * 2954 * Licensed under the Apache License, Version 2.0 (the "License"); 2955 * you may not use this file except in compliance with the License. 2956 * You may obtain a copy of the License at 2957 * 2958 * http://www.apache.org/licenses/LICENSE-2.0 2959 * 2960 * Unless required by applicable law or agreed to in writing, software 2961 * distributed under the License is distributed on an "AS IS" BASIS, 2962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2963 * See the License for the specific language governing permissions and 2964 * limitations under the License. 2965 */class Rv{constructor(e,n,r,i,o){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=r,this.documentUpdates=i,this.resolvedLimboDocuments=o}static createSynthesizedRemoteEventForCurrentChange(e,n,r){const i=new Map;return i.set(e,Mv.createSynthesizedTargetChangeForCurrentChange(e,n,r)),new Rv(it.min(),i,new Rn(gt),Co(),It())}}class Mv{constructor(e,n,r,i,o){this.resumeToken=e,this.current=n,this.addedDocuments=r,this.modifiedDocuments=i,this.removedDocuments=o}static createSynthesizedTargetChangeForCurrentChange(e,n,r){return new Mv(r,n,It(),It(),It())}}/** 2966 * @license 2967 * Copyright 2017 Google LLC 2968 * 2969 * Licensed under the Apache License, Version 2.0 (the "License"); 2970 * you may not use this file except in compliance with the License. 2971 * You may obtain a copy of the License at 2972 * 2973 * http://www.apache.org/licenses/LICENSE-2.0 2974 * 2975 * Unless required by applicable law or agreed to in writing, software 2976 * distributed under the License is distributed on an "AS IS" BASIS, 2977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2978 * See the License for the specific language governing permissions and 2979 * limitations under the License. 2980 */class ow{constructor(e,n,r,i){this.Se=e,this.removedTargetIds=n,this.key=r,this.De=i}}class jW{constructor(e,n){this.targetId=e,this.Ce=n}}class HW{constructor(e,n,r=mr.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=n,this.resumeToken=r,this.cause=i}}class GD{constructor(){this.ve=0,this.Fe=KD(),this.Me=mr.EMPTY_BYTE_STRING,this.xe=!1,this.Oe=!0}get current(){return this.xe}get resumeToken(){return this.Me}get Ne(){return this.ve!==0}get Be(){return this.Oe}Le(e){e.approximateByteSize()>0&&(this.Oe=!0,this.Me=e)}ke(){let e=It(),n=It(),r=It();return this.Fe.forEach((i,o)=>{switch(o){case 0:e=e.add(i);break;case 2:n=n.add(i);break;case 1:r=r.add(i);break;default:Ye(38017,{changeType:o})}}),new Mv(this.Me,this.xe,e,n,r)}Ke(){this.Oe=!1,this.Fe=KD()}qe(e,n){this.Oe=!0,this.Fe=this.Fe.insert(e,n)}Ue(e){this.Oe=!0,this.Fe=this.Fe.remove(e)}$e(){this.ve+=1}We(){this.ve-=1,tt(this.ve>=0,3241,{ve:this.ve})}Qe(){this.Oe=!0,this.xe=!0}}class Bhe{constructor(e){this.Ge=e,this.ze=new Map,this.je=Co(),this.He=zb(),this.Je=zb(),this.Ze=new Rn(gt)}Xe(e){for(const n of e.Se)e.De&&e.De.isFoundDocument()?this.Ye(n,e.De):this.et(n,e.key,e.De);for(const n of e.removedTargetIds)this.et(n,e.key,e.De)}tt(e){this.forEachTarget(e,n=>{const r=this.nt(n);switch(e.state){case 0:this.rt(n)&&r.Le(e.resumeToken);break;case 1:r.We(),r.Ne||r.Ke(),r.Le(e.resumeToken);break;case 2:r.We(),r.Ne||this.removeTarget(n);break;case 3:this.rt(n)&&(r.Qe(),r.Le(e.resumeToken));break;case 4:this.rt(n)&&(this.it(n),r.Le(e.resumeToken));break;default:Ye(56790,{state:e.state})}})}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.ze.forEach((r,i)=>{this.rt(i)&&n(i)})}st(e){const n=e.targetId,r=e.Ce.count,i=this.ot(n);if(i){const o=i.target;if(SS(o))if(r===0){const s=new He(o.path);this.et(n,s,qn.newNoDocument(s,it.min()))}else tt(r===1,20013,{expectedCount:r});else{const s=this._t(n);if(s!==r){const a=this.ut(e),l=a?this.ct(a,e,s):1;if(l!==0){this.it(n);const c=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ze=this.Ze.insert(n,c)}}}}}ut(e){const n=e.Ce.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:r="",padding:i=0},hashCount:o=0}=n;let s,a;try{s=tc(r).toUint8Array()}catch(l){if(l instanceof lW)return Mf("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{a=new ik(s,i,o)}catch(l){return Mf(l instanceof C1?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return a.ge===0?null:a}ct(e,n,r){return n.Ce.count===r-this.Pt(e,n.targetId)?0:2}Pt(e,n){const r=this.Ge.getRemoteKeysForTarget(n);let i=0;return r.forEach(o=>{const s=this.Ge.ht(),a=`projects/${s.projectId}/databases/${s.database}/documents/${o.path.canonicalString()}`;e.mightContain(a)||(this.et(n,o,null),i++)}),i}Tt(e){const n=new Map;this.ze.forEach((o,s)=>{const a=this.ot(s);if(a){if(o.current&&SS(a.target)){const l=new He(a.target.path);this.It(l).has(s)||this.Et(s,l)||this.et(s,l,qn.newNoDocument(l,e))}o.Be&&(n.set(s,o.ke()),o.Ke())}});let r=It();this.Je.forEach((o,s)=>{let a=!0;s.forEachWhile(l=>{const c=this.ot(l);return!c||c.purpose==="TargetPurposeLimboResolution"||(a=!1,!1)}),a&&(r=r.add(o))}),this.je.forEach((o,s)=>s.setReadTime(e));const i=new Rv(e,n,this.Ze,this.je,r);return this.je=Co(),this.He=zb(),this.Je=zb(),this.Ze=new Rn(gt),i}Ye(e,n){if(!this.rt(e))return;const r=this.Et(e,n.key)?2:0;this.nt(e).qe(n.key,r),this.je=this.je.insert(n.key,n),this.He=this.He.insert(n.key,this.It(n.key).add(e)),this.Je=this.Je.insert(n.key,this.Rt(n.key).add(e))}et(e,n,r){if(!this.rt(e))return;const i=this.nt(e);this.Et(e,n)?i.qe(n,1):i.Ue(n),this.Je=this.Je.insert(n,this.Rt(n).delete(e)),this.Je=this.Je.insert(n,this.Rt(n).add(e)),r&&(this.je=this.je.insert(n,r))}removeTarget(e){this.ze.delete(e)}_t(e){const n=this.nt(e).ke();return this.Ge.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}$e(e){this.nt(e).$e()}nt(e){let n=this.ze.get(e);return n||(n=new GD,this.ze.set(e,n)),n}Rt(e){let n=this.Je.get(e);return n||(n=new dn(gt),this.Je=this.Je.insert(e,n)),n}It(e){let n=this.He.get(e);return n||(n=new dn(gt),this.He=this.He.insert(e,n)),n}rt(e){const n=this.ot(e)!==null;return n||Re("WatchChangeAggregator","Detected inactive target",e),n}ot(e){const n=this.ze.get(e);return n&&n.Ne?null:this.Ge.At(e)}it(e){this.ze.set(e,new GD),this.Ge.getRemoteKeysForTarget(e).forEach(n=>{this.et(e,n,null)})}Et(e,n){return this.Ge.getRemoteKeysForTarget(e).has(n)}}function zb(){return new Rn(He.comparator)}function KD(){return new Rn(He.comparator)}const $he={asc:"ASCENDING",desc:"DESCENDING"},Fhe={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},jhe={and:"AND",or:"OR"};class Hhe{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function X5(t,e){return t.useProto3Json||Ev(e)?e:{value:e}}function Sm(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function UW(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function Uhe(t,e){return Sm(t,e.toTimestamp())}function Gr(t){return tt(!!t,49232),it.fromTimestamp(function(n){const r=ec(n);return new cn(r.seconds,r.nanos)}(t))}function ok(t,e){return Q5(t,e).canonicalString()}function Q5(t,e){const n=function(i){return new Ft(["projects",i.projectId,"databases",i.database])}(t).child("documents");return e===void 0?n:n.child(e)}function qW(t){const e=Ft.fromString(t);return tt(ZW(e),10190,{key:e.toString()}),e}function h0(t,e){return ok(t.databaseId,e.path)}function jl(t,e){const n=qW(e);if(n.get(1)!==t.databaseId.projectId)throw new Ae(le.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new Ae(le.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new He(KW(n))}function WW(t,e){return ok(t.databaseId,e)}function GW(t){const e=qW(t);return e.length===4?Ft.emptyPath():KW(e)}function J5(t){return new Ft(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function KW(t){return tt(t.length>4&&t.get(4)==="documents",29091,{key:t.toString()}),t.popFirst(5)}function YD(t,e,n){return{name:h0(t,e),fields:n.value.mapValue.fields}}function qhe(t,e,n){const r=jl(t,e.name),i=Gr(e.updateTime),o=e.createTime?Gr(e.createTime):it.min(),s=new Ur({mapValue:{fields:e.fields}}),a=qn.newFoundDocument(r,i,o,s);return n&&a.setHasCommittedMutations(),n?a.setHasCommittedMutations():a}function Whe(t,e){return"found"in e?function(r,i){tt(!!i.found,43571),i.found.name,i.found.updateTime;const o=jl(r,i.found.name),s=Gr(i.found.updateTime),a=i.found.createTime?Gr(i.found.createTime):it.min(),l=new Ur({mapValue:{fields:i.found.fields}});return qn.newFoundDocument(o,s,a,l)}(t,e):"missing"in e?function(r,i){tt(!!i.missing,3894),tt(!!i.readTime,22933);const o=jl(r,i.missing),s=Gr(i.readTime);return qn.newNoDocument(o,s)}(t,e):Ye(7234,{result:e})}function Ghe(t,e){let n;if("targetChange"in e){e.targetChange;const r=function(c){return c==="NO_CHANGE"?0:c==="ADD"?1:c==="REMOVE"?2:c==="CURRENT"?3:c==="RESET"?4:Ye(39313,{state:c})}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=function(c,u){return c.useProto3Json?(tt(u===void 0||typeof u=="string",58123),mr.fromBase64String(u||"")):(tt(u===void 0||u instanceof Buffer||u instanceof Uint8Array,16193),mr.fromUint8Array(u||new Uint8Array))}(t,e.targetChange.resumeToken),s=e.targetChange.cause,a=s&&function(c){const u=c.code===void 0?le.UNKNOWN:FW(c.co
vendor: 4,228 bytes, line 2980
2980de);return new Ae(u,c.message||"")}(s);n=new HW(r,i,o,a||null)}else if("documentChange"in e){e.documentChange;const r=e.documentChange;r.document,r.document.name,r.document.updateTime;const i=jl(t,r.document.name),o=Gr(r.document.updateTime),s=r.document.createTime?Gr(r.document.createTime):it.min(),a=new Ur({mapValue:{fields:r.document.fields}}),l=qn.newFoundDocument(i,o,s,a),c=r.targetIds||[],u=r.removedTargetIds||[];n=new ow(c,u,l.key,l)}else if("documentDelete"in e){e.documentDelete;const r=e.documentDelete;r.document;const i=jl(t,r.document),o=r.readTime?Gr(r.readTime):it.min(),s=qn.newNoDocument(i,o),a=r.removedTargetIds||[];n=new ow([],a,s.key,s)}else if("documentRemove"in e){e.documentRemove;const r=e.documentRemove;r.document;const i=jl(t,r.document),o=r.removedTargetIds||[];n=new ow([],o,i,null)}else{if(!("filter"in e))return Ye(11601,{Vt:e});{e.filter;const r=e.filter;r.targetId;const{count:i=0,unchangedNames:o}=r,s=new Lhe(i,o),a=r.targetId;n=new jW(a,s)}}return n}function p0(t,e){let n;if(e instanceof ug)n={update:YD(t,e.key,e.value)};else if(e instanceof dg)n={delete:h0(t,e.key)};else if(e instanceof uc)n={update:YD(t,e.key,e.data),updateMask:epe(e.fieldMask)};else{if(!(e instanceof ek))return Ye(16599,{dt:e.type});n={verify:h0(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map(r=>function(o,s){const a=s.transform;if(a instanceof bm)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(a instanceof Nf)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:a.elements}};if(a instanceof Df)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:a.elements}};if(a instanceof wm)return{fieldPath:s.field.canonicalString(),increment:a.Ae};throw Ye(20930,{transform:s.transform})}(0,r))),e.precondition.isNone||(n.currentDocument=function(i,o){return o.updateTime!==void 0?{updateTime:Uhe(i,o.updateTime)}:o.exists!==void 0?{exists:o.exists}:Ye(27497)}(t,e.precondition)),n}function Z5(t,e){const n=e.currentDocument?function(o){return o.updateTime!==void 0?Wn.updateTime(Gr(o.updateTime)):o.exists!==void 0?Wn.exists(o.exists):Wn.none()}(e.currentDocument):Wn.none(),r=e.updateTransforms?e.updateTransforms.map(i=>function(s,a){let l=null;if("setToServerValue"in a)tt(a.setToServerValue==="REQUEST_TIME",16630,{proto:a}),l=new bm;else if("appendMissingElements"in a){const u=a.appendMissingElements.values||[];l=new Nf(u)}else if("removeAllFromArray"in a){const u=a.removeAllFromArray.values||[];l=new Df(u)}else"increment"in a?l=new wm(s,a.increment):Ye(16584,{proto:a});const c=Qn.fromServerFormat(a.fieldPath);return new Iv(c,l)}(t,i)):[];if(e.update){e.update.name;const i=jl(t,e.update.name),o=new Ur({mapValue:{fields:e.update.fields}});if(e.updateMask){const s=function(l){const c=l.fieldPaths||[];return new Yi(c.map(u=>Qn.fromServerFormat(u)))}(e.updateMask);return new uc(i,o,s,n,r)}return new ug(i,o,n,r)}if(e.delete){const i=jl(t,e.delete);return new dg(i,n)}if(e.verify){const i=jl(t,e.verify);return new ek(i,n)}return Ye(1463,{proto:e})}function Khe(t,e){return t&&t.length>0?(tt(e!==void 0,14353),t.map(n=>function(i,o){let s=i.updateTime?Gr(i.updateTime):Gr(o);return s.isEqual(it.min())&&(s=Gr(o)),new Phe(s,i.transformResults||[])}(n,e))):[]}function YW(t,e){return{documents:[WW(t,e.path)]}}function sk(t,e){const n={structuredQuery:{}},r=e.path;let i;e.collectionGroup!==null?(i=r,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]),n.parent=WW(t,i);const o=function(c){if(c.length!==0)return JW(un.create(c,"and"))}(e.filters);o&&(n.structuredQuery.where=o);const s=function(c){if(c.length!==0)return c.map(u=>function(f){return{field:$c(f.field),direction:Qhe(f.dir)}}(u))}(e.orderBy);s&&(n.structuredQuery.orderBy=s);const a=X5(t,e.limit);return a!==null&&(n.structuredQuery.limit=a),e.startAt&&(n.structuredQuery.startAt=function(c){return{before:c.inclusive,values:c.position}}(e.startAt)),e.endAt&&(n.structuredQuery.endAt=function(c){return{before:!c.inclusive,values:c.position}}(e.endAt)),{ft:n,parent:i}}function Yhe(t,e,n,r){const{ft:i,parent:o}=sk(t,e),s={},a=[];let l=0;
2980return n.forEach(c=>{const u="aggregate_"+l++;s[u]=c.alias,c.aggregateType==="count"?a.push({alias:u,count:{}}):c.aggregateType==="avg"?a.push({alias:u,avg:{field:$c(c.fieldPath)}}):c.aggregateType==="sum"&&a.push({alias:u,sum:{field:$c(c.fieldPath)}})}),{request:{structuredAggregationQuery:{aggregations:a,structuredQuery:i.structuredQuery},parent:i.parent},gt:s,parent:o}}function XW(t){let e=GW(t.parent);const n=t.structuredQuery,r=n.from?n.from.length:0;let i=null;if(r>0){tt(r===1,65062);const u=n.from[0];u.allDescendants?i=u.collectionId:e=e.child(u.collectionId)}let o=[];n.where&&(o=function(d){const f=QW(d);return f instanceof un&&XM(f)?f.getFilters():[f]}(n.where));let s=[];n.orderBy&&(s=function(d){return d.map(f=>function(p){return new f0(Xh(p.field),function(g){switch(g){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(p.direction))}(f))}(n.orderBy));let a=null;n.limit&&(a=function(d){let f;return f=typeof d=="object"?d.value:d,Ev(f)?null:f}(n.limit));let l=null;n.startAt&&(l=function(d){const f=!!d.before,h=d.values||[];return new $u(h,f)}(n.startAt));let c=null;return n.endAt&&(c=function(d){const f=!d.before,h=d.values||[];return new $u(h,f)}(n.endAt)),TW(e,i,s,o,a,"F",l,c)}function Xhe(t,e){const n=function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Ye(28987,{purpose:i})}}(e.purpose);return n==null?null:{"goog-listen-tags":n}}function QW(t){return t.unaryFilter!==void 0?function(n){switch(n.unaryFilter.op){case"IS_NAN":const r=Xh(n.unaryFilter.field);return Vt.create(r,"==",{doubleValue:NaN});case"IS_NULL":const i=Xh(n.unaryFilter.field);return Vt.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const o=Xh(n.unaryFilter.field);return Vt.create(o,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const s=Xh(n.unaryFilter.field);return Vt.create(s,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return Ye(61313);default:return Ye(60726)}}(t):t.fieldFilter!==void 0?function(n){return Vt.create(Xh(n.fieldFilter.field),function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return Ye(58110);default:return Ye(50506)}}(n.fieldFilter.op),n.fieldFilter.value)}(t):t.compositeFilter!==void 0?function(n){return un.create(n.compositeFilter.filters.map(r=>QW(r)),function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return Ye(1026)}}(n.compositeFilter.op))}(t):Ye(30097,{filter:t})}function Qhe(t){return $he[t]}function Jhe(t){return Fhe[t]}function Zhe(t){return jhe[t]}function $c(t){return{fieldPath:t.canonicalString()}}function Xh(t){return Qn.fromServerFormat(t.fieldPath)}function JW(t){return t instanceof Vt?function(n){if(n.op==="=="){if(OD(n.value))return{unaryFilter:{field:$c(n.field),op:"IS_NAN"}};if(PD(n.value))return{unaryFilter:{field:$c(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(OD(n.value))return{unaryFilter:{field:$c(n.field),op:"IS_NOT_NAN"}};if(PD(n.value))return{unaryFilter:{field:$c(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:$c(n.field),op:Jhe(n.op),value:n.value}}}(t):t instanceof un?function(n){const r=n.getFilters().map(i=>JW(i));return r.length===1?r[0]:{compositeFilter:{op:Zhe(n.op),filters:r}}}(t):Ye(54877,{filter:t})}function epe(t){const e=[];return t.fields.forEach(n=>e.push(n.canonicalString())),{fieldPaths:e}}function ZW(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}function eG(t){return!!t&&typeof t._toProto=="function"&&t._protoValueType==="ProtoValue"}/** 2981 * @license 2982 * Copyright 2017 Google LLC 2983 * 2984 * Licensed under the Apache License, Version 2.0 (the "License");
2985 * you may not use this file except in compliance with the License. 2986 * You may obtain a copy of the License at 2987 * 2988 * http://www.apache.org/licenses/LICENSE-2.0 2989 * 2990 * Unless required by applicable law or agreed to in writing, software 2991 * distributed under the License is distributed on an "AS IS" BASIS, 2992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2993 * See the License for the specific language governing permissions and 2994 * limitations under the License. 2995 */class Pl{constructor(e,n,r,i,o=it.min(),s=it.min(),a=mr.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=n,this.purpose=r,this.sequenceNumber=i,this.snapshotVersion=o,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=a,this.expectedCount=l}withSequenceNumber(e){return new Pl(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Pl(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Pl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Pl(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** 2996 * @license 2997 * Copyright 2017 Google LLC 2998 * 2999 * Licensed under the Apache License, Version 2.0 (the "License"); 3000 * you may not use this file except in compliance with the License. 3001 * You may obtain a copy of the License at 3002 * 3003 * http://www.apache.org/licenses/LICENSE-2.0 3004 * 3005 * Unless required by applicable law or agreed to in writing, software 3006 * distributed under the License is distributed on an "AS IS" BASIS, 3007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3008 * See the License for the specific language governing permissions and 3009 * limitations under the License. 3010 */class tG{constructor(e){this.yt=e}}function tpe(t,e){let n;if(e.document)n=qhe(t.yt,e.document,!!e.hasCommittedMutations);else if(e.noDocument){const r=He.fromSegments(e.noDocument.path),i=zf(e.noDocument.readTime);n=qn.newNoDocument(r,i),e.hasCommittedMutations&&n.setHasCommittedMutations()}else{if(!e.unknownDocument)return Ye(56709);{const r=He.fromSegments(e.unknownDocument.path),i=zf(e.unknownDocument.version);n=qn.newUnknownDocument(r,i)}}return e.readTime&&n.setReadTime(function(i){const o=new cn(i[0],i[1]);return it.fromTimestamp(o)}(e.readTime)),n}function XD(t,e){const n=e.key,r={prefixPath:n.getCollectionPath().popLast().toArray(),collectionGroup:n.collectionGroup,documentId:n.path.lastSegment(),readTime:TS(e.readTime),hasCommittedMutations:e.hasCommittedMutations};if(e.isFoundDocument())r.document=function(o,s){return{name:h0(o,s.key),fields:s.data.value.mapValue.fields,updateTime:Sm(o,s.version.toTimestamp()),createTime:Sm(o,s.createTime.toTimestamp())}}(t.yt,e);else if(e.isNoDocument())r.noDocument={path:n.path.toArray(),readTime:Lf(e.version)};else{if(!e.isUnknownDocument())return Ye(57904,{document:e});r.unknownDocument={path:n.path.toArray(),version:Lf(e.version)}}return r}function TS(t){const e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function Lf(t){const e=t.toTimestamp();return{seconds:e.seconds,nanoseconds:e.nanoseconds}}function zf(t){const e=new cn(t.seconds,t.nanoseconds);return it.fromTimestamp(e)}function Bd(t,e){const n=(e.baseMutations||[]).map(o=>Z5(t.yt,o));for(let o=0;o<e.mutations.length-1;++o){const s=e.mutations[o];if(o+1<e.mutations.length&&e.mutations[o+1].transform!==void 0){const a=e.mutations[o+1];s.updateTransforms=a.transform.fieldTransforms,e.mutations.splice(o+1,1),++o}}const r=e.mutations.map(o=>Z5(t.yt,o)),i=cn.fromMillis(e.localWriteTimeMs);return new tk(e.batchId,i,n,r)}function _1(t){const e=zf(t.readTime),n=t.lastLimboFreeSnapshotVersion!==void 0?zf(t.lastLimboFreeSnapshotVersion):it.min();let r;return r=function(o){return o.documents!==void 0}(t.query)?function(o){const s=o.documents.length;return tt(s===1,1966,{count:s}),ko(_v(GW(o.documents[0])))}(t.query):function(o){return ko(XW(o))}(t.query),new Pl(r,t.targetId,"TargetPurposeListen",t.lastListenSequenceNumber,e,n,mr.fromBase64String(t.resumeToken))}function nG(t,e){const n=Lf(e.snapshotVersion),r=Lf(e.lastLimboFreeSnapshotVersion);let i;i=SS(e.target)?YW(t.yt,e.target):sk(t.yt,e.target).ft;const o=e.resumeToken.toBase64();return{targetId:e.targetId,canonicalId:Of(e.target),readTime:n,resumeToken:o,lastListenSequenceNumber:e.sequenceNumber,lastLimboFreeSnapshotVersion:r,query:i}}function rG(t){const e=XW({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?ES(e,e.limit,"L"):e}function G_(t,e){return new rk(e.largestBatchId,Z5(t.yt,e.overlayMutation))}function QD(t,e){const n=e.path.lastSegment();return[t,vi(e.path.popLast()),n]}function JD(t,e,n,r){return{indexId:t,uid:e,sequenceNumber:n,readTime:Lf(r.readTime),documentKey:vi(r.documentKey.path),largestBatchId:r.largestBatchId}}/** 3011 * @license 3012 * Copyright 2020 Google LLC 3013 * 3014 * Licensed under the Apache License, Version 2.0 (the "License");
3015 * you may not use this file except in compliance with the License. 3016 * You may obtain a copy of the License at 3017 * 3018 * http://www.apache.org/licenses/LICENSE-2.0 3019 * 3020 * Unless required by applicable law or agreed to in writing, software 3021 * distributed under the License is distributed on an "AS IS" BASIS, 3022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3023 * See the License for the specific language governing permissions and 3024 * limitations under the License. 3025 */class npe{getBundleMetadata(e,n){return ZD(e).get(n).next(r=>{if(r)return function(o){return{id:o.bundleId,createTime:zf(o.createTime),version:o.version}}(r)})}saveBundleMetadata(e,n){return ZD(e).put(function(i){return{bundleId:i.id,createTime:Lf(Gr(i.createTime)),version:i.version}}(n))}getNamedQuery(e,n){return e8(e).get(n).next(r=>{if(r)return function(o){return{name:o.name,query:rG(o.bundledQuery),readTime:zf(o.readTime)}}(r)})}saveNamedQuery(e,n){return e8(e).put(function(i){return{name:i.name,readTime:Lf(Gr(i.readTime)),bundledQuery:i.bundledQuery}}(n))}}function ZD(t){return zr(t,gE)}function e8(t){return zr(t,yE)}/** 3026 * @license 3027 * Copyright 2022 Google LLC 3028 * 3029 * Licensed under the Apache License, Version 2.0 (the "License"); 3030 * you may not use this file except in compliance with the License. 3031 * You may obtain a copy of the License at 3032 * 3033 * http://www.apache.org/licenses/LICENSE-2.0 3034 * 3035 * Unless required by applicable law or agreed to in writing, software 3036 * distributed under the License is distributed on an "AS IS" BASIS, 3037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3038 * See the License for the specific language governing permissions and 3039 * limitations under the License. 3040 */class CE{constructor(e,n){this.serializer=e,this.userId=n}static wt(e,n){const r=n.uid||"";return new CE(e,r)}getOverlay(e,n){return Fg(e).get(QD(this.userId,n)).next(r=>r?G_(this.serializer,r):null)}getOverlays(e,n){const r=Aa();return ee.forEach(n,i=>this.getOverlay(e,i).next(o=>{o!==null&&r.set(i,o)})).next(()=>r)}saveOverlays(e,n,r){const i=[];return r.forEach((o,s)=>{const a=new rk(n,s);i.push(this.bt(e,a))}),ee.waitFor(i)}removeOverlaysForBatchId(e,n,r){const i=new Set;n.forEach(s=>i.add(vi(s.getCollectionPath())));const o=[];return i.forEach(s=>{const a=IDBKeyRange.bound([this.userId,s,r],[this.userId,s,r+1],!1,!0);o.push(Fg(e).X(j5,a))}),ee.waitFor(o)}getOverlaysForCollection(e,n,r){const i=Aa(),o=vi(n),s=IDBKeyRange.bound([this.userId,o,r],[this.userId,o,Number.POSITIVE_INFINITY],!0);return Fg(e).H(j5,s).next(a=>{for(const l of a){const c=G_(this.serializer,l);i.set(c.getKey(),c)}return i})}getOverlaysForCollectionGroup(e,n,r,i){const o=Aa();let s;const a=IDBKeyRange.bound([this.userId,n,r],[this.userId,n,Number.POSITIVE_INFINITY],!0);return Fg(e).ee({index:nW,range:a},(l,c,u)=>{const d=G_(this.serializer,c);o.size()<i||d.largestBatchId===s?(o.set(d.getKey(),d),s=d.largestBatchId):u.done()}).next(()=>o)}bt(e,n){return Fg(e).put(function(i,o,s){const[a,l,c]=QD(o,s.mutation.key);return{userId:o,collectionPath:l,documentId:c,collectionGroup:s.mutation.key.getCollectionGroup(),largestBatchId:s.largestBatchId,overlayMutation:p0(i.yt,s.mutation)}}(this.serializer,this.userId,n))}}function Fg(t){return zr(t,vE)}/** 3041 * @license 3042 * Copyright 2024 Google LLC 3043 * 3044 * Licensed under the Apache License, Version 2.0 (the "License"); 3045 * you may not use this file except in compliance with the License. 3046 * You may obtain a copy of the License at 3047 * 3048 * http://www.apache.org/licenses/LICENSE-2.0 3049 * 3050 * Unless required by applicable law or agreed to in writing, software 3051 * distributed under the License is distributed on an "AS IS" BASIS, 3052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3053 * See the License for the specific language governing permissions and 3054 * limitations under the License. 3055 */class rpe{St(e){return zr(e,WM)}getSessionToken(e){return this.St(e).get("sessionToken").next(n=>{const r=n==null?void 0:n.value;return r?mr.fromUint8Array(r):mr.EMPTY_BYTE_STRING})}setSessionToken(e,n){return this.St(e).put({name:"sessionToken",value:n.toUint8Array()})}}/** 3056 * @license 3057 * Copyright 2021 Google LLC 3058 * 3059 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 4,642 bytes, lines 3060-3085
3060 * you may not use this file except in compliance with the License. 3061 * You may obtain a copy of the License at 3062 * 3063 * http://www.apache.org/licenses/LICENSE-2.0 3064 * 3065 * Unless required by applicable law or agreed to in writing, software 3066 * distributed under the License is distributed on an "AS IS" BASIS, 3067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3068 * See the License for the specific language governing permissions and 3069 * limitations under the License. 3070 */class $d{constructor(){}Dt(e,n){this.Ct(e,n),n.vt()}Ct(e,n){if("nullValue"in e)this.Ft(n,5);else if("booleanValue"in e)this.Ft(n,10),n.Mt(e.booleanValue?1:0);else if("integerValue"in e)this.Ft(n,15),n.Mt(Un(e.integerValue));else if("doubleValue"in e){const r=Un(e.doubleValue);isNaN(r)?this.Ft(n,13):(this.Ft(n,15),o0(r)?n.Mt(0):n.Mt(r))}else if("timestampValue"in e){let r=e.timestampValue;this.Ft(n,20),typeof r=="string"&&(r=ec(r)),n.xt(`${r.seconds||""}`),n.Mt(r.nanos||0)}else if("stringValue"in e)this.Ot(e.stringValue,n),this.Nt(n);else if("bytesValue"in e)this.Ft(n,30),n.Bt(tc(e.bytesValue)),this.Nt(n);else if("referenceValue"in e)this.Lt(e.referenceValue,n);else if("geoPointValue"in e){const r=e.geoPointValue;this.Ft(n,45),n.Mt(r.latitude||0),n.Mt(r.longitude||0)}else"mapValue"in e?pW(e)?this.Ft(n,Number.MAX_SAFE_INTEGER):SE(e)?this.kt(e.mapValue,n):(this.Kt(e.mapValue,n),this.Nt(n)):"arrayValue"in e?(this.qt(e.arrayValue,n),this.Nt(n)):Ye(19022,{Ut:e})}Ot(e,n){this.Ft(n,25),this.$t(e,n)}$t(e,n){n.xt(e)}Kt(e,n){const r=e.fields||{};this.Ft(n,55);for(const i of Object.keys(r))this.Ot(i,n),this.Ct(r[i],n)}kt(e,n){var s,a;const r=e.fields||{};this.Ft(n,53);const i=gm,o=((a=(s=r[i].arrayValue)==null?void 0:s.values)==null?void 0:a.length)||0;this.Ft(n,15),n.Mt(Un(o)),this.Ot(i,n),this.Ct(r[i],n)}qt(e,n){const r=e.values||[];this.Ft(n,50);for(const i of r)this.Ct(i,n)}Lt(e,n){this.Ft(n,37),He.fromName(e).path.forEach(r=>{this.Ft(n,60),this.$t(r,n)})}Ft(e,n){e.Mt(n)}Nt(e){e.Mt(2)}}$d.Wt=new $d;/** 3071 * @license 3072 * Copyright 2021 Google LLC 3073 * 3074 * Licensed under the Apache License, Version 2.0 (the "License"); 3075 * you may not use this file except in compliance with the License. 3076 * You may obtain a copy of the License at 3077 * 3078 * http://www.apache.org/licenses/LICENSE-2.0 3079 * 3080 * Unless required by applicable law | agreed to in writing, software 3081 * distributed under the License is distributed on an "AS IS" BASIS, 3082 * WITHOUT WARRANTIES | CONDITIONS OF ANY KIND, either express | implied. 3083 * See the License for the specific language governing permissions and 3084 * limitations under the License. 3085 */const Rh=255;function ipe(t){if(t===0)return 8;let e=0;return t>>4||(e+=4,t<<=4),t>>6||(e+=2,t<<=2),t>>7||(e+=1),e}function t8(t){const e=64-function(r){let i=0;for(let o=0;o<8;++o){const s=ipe(255&r[o]);if(i+=s,s!==8)break}return i}(t);return Math.ceil(e/8)}class ope{constructor(){this.buffer=new Uint8Array(1024),this.position=0}Qt(e){const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)this.Gt(r.value),r=n.next();this.zt()}jt(e){const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)this.Ht(r.value),r=n.next();this.Jt()}Zt(e){for(const n of e){const r=n.charCodeAt(0);if(r<128)this.Gt(r);else if(r<2048)this.Gt(960|r>>>6),this.Gt(128|63&r);else if(n<"\uD800"||"\uDBFF"<n)this.Gt(480|r>>>12),this.Gt(128|63&r>>>6),this.Gt(128|63&r);else{const i=n.codePointAt(0);this.Gt(240|i>>>18),this.Gt(128|63&i>>>12),this.Gt(128|63&i>>>6),this.Gt(128|63&i)}}this.zt()}Xt(e){for(const n of e){const r=n.charCodeAt(0);if(r<128)this.Ht(r);else if(r<2048)this.Ht(960|r>>>6),this.Ht(128|63&r);else if(n<"\uD800"||"\uDBFF"<n)this.Ht(480|r>>>12),this.Ht(128|63&r>>>6),this.Ht(128|63&r);else{const i=n.codePointAt(0);this.Ht(240|i>>>18),this.Ht(128|63&i>>>12),this.Ht(128|63&i>>>6),this.Ht(128|63&i)}}this.Jt()}Yt(e){const n=this.en(e),r=t8(n);this.tn(1+r),this.buffer[this.position++]=255&r;for(let i=n.length-r;i<n.length;++i)this.buffer[this.position++]=255&n[i]}nn(e){const n=this.en(e),r=t8(n);this.tn(1+r),this.buffer[this.position++]=~(255&r);for(let i=n.length-r;i<n.length;++i)this.buffer[this.position++]=~(255&n[i])}rn(){this.sn(Rh),this.sn(255)}_n(){this.an(Rh),this.an(255)}reset(){this.position=0}seed(e){this.tn(e.length),this.buffer.set(e,this.position),this.position+=e.length}un(){return this.buffer.slice(0,this.position)}en(e){const n=function(o){const s=new DataView(new ArrayBuffer(8));return s.setFloat64(0,o,!1),new Uint8Array(s.buffer)}(e),r=!!(128&n[0]);n[0]^=r?255:128;for(let i=1;i<n.length;++i)n[i]^=r?255:0;return n}Gt(e){const n=255&e;n===0?(this.sn(0),this.sn(255)):n===Rh?(this.sn(Rh),this.sn(0)):this.sn(n)}
vendor: 4,225 bytes, lines 3085-3104
3085Ht(e){const n=255&e;n===0?(this.an(0),this.an(255)):n===Rh?(this.an(Rh),this.an(0)):this.an(e)}zt(){this.sn(0),this.sn(1)}Jt(){this.an(0),this.an(1)}sn(e){this.tn(1),this.buffer[this.position++]=e}an(e){this.tn(1),this.buffer[this.position++]=~e}tn(e){const n=e+this.position;if(n<=this.buffer.length)return;let r=2*this.buffer.length;r<n&&(r=n);const i=new Uint8Array(r);i.set(this.buffer),this.buffer=i}}class spe{constructor(e){this.cn=e}Bt(e){this.cn.Qt(e)}xt(e){this.cn.Zt(e)}Mt(e){this.cn.Yt(e)}vt(){this.cn.rn()}}class ape{constructor(e){this.cn=e}Bt(e){this.cn.jt(e)}xt(e){this.cn.Xt(e)}Mt(e){this.cn.nn(e)}vt(){this.cn._n()}}class jg{constructor(){this.cn=new ope,this.ascending=new spe(this.cn),this.descending=new ape(this.cn)}seed(e){this.cn.seed(e)}ln(e){return e===0?this.ascending:this.descending}un(){return this.cn.un()}reset(){this.cn.reset()}}/** 3086 * @license 3087 * Copyright 2022 Google LLC 3088 * 3089 * Licensed under the Apache License, Version 2.0 (the "License"); 3090 * you may not use this file except in compliance with the License. 3091 * You may obtain a copy of the License at 3092 * 3093 * http://www.apache.org/licenses/LICENSE-2.0 3094 * 3095 * Unless required by applicable law or agreed to in writing, software 3096 * distributed under the License is distributed on an "AS IS" BASIS, 3097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3098 * See the License for the specific language governing permissions and 3099 * limitations under the License. 3100 */class Fd{constructor(e,n,r,i){this.hn=e,this.Pn=n,this.Tn=r,this.In=i}En(){const e=this.In.length,n=e===0||this.In[e-1]===255?e+1:e,r=new Uint8Array(n);return r.set(this.In,0),n!==e?r.set([0],this.In.length):++r[r.length-1],new Fd(this.hn,this.Pn,this.Tn,r)}Rn(e,n,r){return{indexId:this.hn,uid:e,arrayValue:sw(this.Tn),directionalValue:sw(this.In),orderedDocumentKey:sw(n),documentKey:r.path.toArray()}}An(e,n,r){const i=this.Rn(e,n,r);return[i.indexId,i.uid,i.arrayValue,i.directionalValue,i.orderedDocumentKey,i.documentKey]}}function Tc(t,e){let n=t.hn-e.hn;return n!==0?n:(n=n8(t.Tn,e.Tn),n!==0?n:(n=n8(t.In,e.In),n!==0?n:He.comparator(t.Pn,e.Pn)))}function n8(t,e){for(let n=0;n<t.length&&n<e.length;++n){const r=t[n]-e[n];if(r!==0)return r}return t.length-e.length}function sw(t){return TU()?function(n){let r="";for(let i=0;i<n.length;i++)r+=String.fromCharCode(n[i]);return r}(t):t}function r8(t){return typeof t!="string"?t:function(n){const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}(t)}class i8{constructor(e){this.Vn=new dn((n,r)=>Qn.comparator(n.field,r.field)),this.collectionId=e.collectionGroup!=null?e.collectionGroup:e.path.lastSegment(),this.dn=e.orderBy,this.mn=[];for(const n of e.filters){const r=n;r.isInequality()?this.Vn=this.Vn.add(r):this.mn.push(r)}}get fn(){return this.Vn.size>1}gn(e){if(tt(e.collectionGroup===this.collectionId,49279),this.fn)return!1;const n=B5(e);if(n!==void 0&&!this.pn(n))return!1;const r=Od(e);let i=new Set,o=0,s=0;for(;o<r.length&&this.pn(r[o]);++o)i=i.add(r[o].fieldPath.canonicalString());if(o===r.length)return!0;if(this.Vn.size>0){const a=this.Vn.getIterator().getNext();if(!i.has(a.field.canonicalString())){const l=r[o];if(!this.yn(a,l)||!this.wn(this.dn[s++],l))return!1}++o}for(;o<r.length;++o){const a=r[o];if(s>=this.dn.length||!this.wn(this.dn[s++],a))return!1}return!0}bn(){if(this.fn)return null;let e=new dn(Qn.comparator);const n=[];for(const r of this.mn)if(!r.field.isKeyField())if(r.op==="array-contains"||r.op==="array-contains-any")n.push(new J2(r.field,2));else{if(e.has(r.field))continue;e=e.add(r.field),n.push(new J2(r.field,0))}for(const r of this.dn)r.field.isKeyField()||e.has(r.field)||(e=e.add(r.field),n.push(new J2(r.field,r.dir==="asc"?0:1)));return new gS(gS.UNKNOWN_ID,this.collectionId,n,i0.empty())}pn(e){for(const n of this.mn)if(this.yn(n,e))return!0;return!1}yn(e,n){if(e===void 0||!e.field.isEqual(n.fieldPath))return!1;const r=e.op==="array-contains"||e.op==="array-contains-any";return n.kind===2===r}wn(e,n){return!!e.field.isEqual(n.fieldPath)&&(n.kind===0&&e.dir==="asc"||n.kind===1&&e.dir==="desc")}}/** 3101 * @license 3102 * Copyright 2022 Google LLC 3103 * 3104 * Licensed under the Apache License, Version 2.0 (the "License");
3105 * you may not use this file except in compliance with the License. 3106 * You may obtain a copy of the License at 3107 * 3108 * http://www.apache.org/licenses/LICENSE-2.0 3109 * 3110 * Unless required by applicable law or agreed to in writing, software 3111 * distributed under the License is distributed on an "AS IS" BASIS, 3112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3113 * See the License for the specific language governing permissions and 3114 * limitations under the License. 3115 */function iG(t){var n,r;if(tt(t instanceof Vt||t instanceof un,20012),t instanceof Vt){if(t instanceof EW){const i=((r=(n=t.value.arrayValue)==null?void 0:n.values)==null?void 0:r.map(o=>Vt.create(t.field,"==",o)))||[];return un.create(i,"or")}return t}const e=t.filters.map(i=>iG(i));return un.create(e,t.op)}function lpe(t){if(t.getFilters().length===0)return[];const e=nR(iG(t));return tt(oG(e),7391),eR(e)||tR(e)?[e]:e.getFilters()}function eR(t){return t instanceof Vt}function tR(t){return t instanceof un&&XM(t)}function oG(t){return eR(t)||tR(t)||function(n){if(n instanceof un&&W5(n)){for(const r of n.getFilters())if(!eR(r)&&!tR(r))return!1;return!0}return!1}(t)}function nR(t){if(tt(t instanceof Vt||t instanceof un,34018),t instanceof Vt)return t;if(t.filters.length===1)return nR(t.filters[0]);const e=t.filters.map(r=>nR(r));let n=un.create(e,t.op);return n=CS(n),oG(n)?n:(tt(n instanceof un,64498),tt(vm(n),40251),tt(n.filters.length>1,57927),n.filters.reduce((r,i)=>ak(r,i)))}function ak(t,e){let n;return tt(t instanceof Vt||t instanceof un,38388),tt(e instanceof Vt||e instanceof un,25473),n=t instanceof Vt?e instanceof Vt?function(i,o){return un.create([i,o],"and")}(t,e):o8(t,e):e instanceof Vt?o8(e,t):function(i,o){if(tt(i.filters.length>0&&o.filters.length>0,48005),vm(i)&&vm(o))return wW(i,o.getFilters());const s=W5(i)?i:o,a=W5(i)?o:i,l=s.filters.map(c=>ak(c,a));return un.create(l,"or")}(t,e),CS(n)}function o8(t,e){if(vm(e))return wW(e,t.getFilters());{const n=e.filters.map(r=>ak(t,r));return un.create(n,"or")}}function CS(t){if(tt(t instanceof Vt||t instanceof un,11850),t instanceof Vt)return t;const e=t.getFilters();if(e.length===1)return CS(e[0]);if(vW(t))return t;const n=e.map(i=>CS(i)),r=[];return n.forEach(i=>{i instanceof Vt?r.push(i):i instanceof un&&(i.op===t.op?r.push(...i.filters):r.push(i))}),r.length===1?r[0]:un.create(r,t.op)}/** 3116 * @license 3117 * Copyright 2019 Google LLC 3118 * 3119 * Licensed under the Apache License, Version 2.0 (the "License"); 3120 * you may not use this file except in compliance with the License. 3121 * You may obtain a copy of the License at 3122 * 3123 * http://www.apache.org/licenses/LICENSE-2.0 3124 * 3125 * Unless required by applicable law or agreed to in writing, software 3126 * distributed under the License is distributed on an "AS IS" BASIS, 3127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3128 * See the License for the specific language governing permissions and 3129 * limitations under the License. 3130 */class cpe{constructor(){this.Sn=new lk}addToCollectionParentIndex(e,n){return this.Sn.add(n),ee.resolve()}getCollectionParents(e,n){return ee.resolve(this.Sn.getEntries(n))}addFieldIndex(e,n){return ee.resolve()}deleteFieldIndex(e,n){return ee.resolve()}deleteAllFieldIndexes(e){return ee.resolve()}createTargetIndexes(e,n){return ee.resolve()}getDocumentsMatchingTarget(e,n){return ee.resolve(null)}getIndexType(e,n){return ee.resolve(0)}getFieldIndexes(e,n){return ee.resolve([])}getNextCollectionGroupToUpdate(e){return ee.resolve(null)}getMinOffset(e,n){return ee.resolve(zo.min())}getMinOffsetFromCollectionGroup(e,n){return ee.resolve(zo.min())}updateCollectionGroup(e,n,r){return ee.resolve()}updateIndexEntries(e,n){return ee.resolve()}}class lk{constructor(){this.index={}}add(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n]||new dn(Ft.comparator),o=!i.has(r);return this.index[n]=i.add(r),o}has(e){const n=e.lastSegment(),r=e.popLast(),i=this.index[n];return i&&i.has(r)}getEntries(e){return(this.index[e]||new dn(Ft.comparator)).toArray()}}/** 3131 * @license 3132 * Copyright 2019 Google LLC 3133 * 3134 * Licensed under the Apache License, Version 2.0 (the "License");
3135 * you may not use this file except in compliance with the License. 3136 * You may obtain a copy of the License at 3137 * 3138 * http://www.apache.org/licenses/LICENSE-2.0 3139 * 3140 * Unless required by applicable law or agreed to in writing, software 3141 * distributed under the License is distributed on an "AS IS" BASIS, 3142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3143 * See the License for the specific language governing permissions and 3144 * limitations under the License. 3145 */const s8="IndexedDbIndexManager",Vb=new Uint8Array(0);class upe{constructor(e,n){this.databaseId=n,this.Dn=new lk,this.Cn=new cc(r=>Of(r),(r,i)=>Cv(r,i)),this.uid=e.uid||""}addToCollectionParentIndex(e,n){if(!this.Dn.has(n)){const r=n.lastSegment(),i=n.popLast();e.addOnCommittedListener(()=>{this.Dn.add(n)});const o={collectionId:r,parent:vi(i)};return a8(e).put(o)}return ee.resolve()}getCollectionParents(e,n){const r=[],i=IDBKeyRange.bound([n,""],[Hq(n),""],!1,!0);return a8(e).H(i).next(o=>{for(const s of o){if(s.collectionId!==n)break;r.push(_a(s.parent))}return r})}addFieldIndex(e,n){const r=Hg(e),i=function(a){return{indexId:a.indexId,collectionGroup:a.collectionGroup,fields:a.fields.map(l=>[l.fieldPath.canonicalString(),l.kind])}}(n);delete i.indexId;const o=r.add(i);if(n.indexState){const s=kh(e);return o.next(a=>{s.put(JD(a,this.uid,n.indexState.sequenceNumber,n.indexState.offset))})}return o.next()}deleteFieldIndex(e,n){const r=Hg(e),i=kh(e),o=Mh(e);return r.delete(n.indexId).next(()=>i.delete(IDBKeyRange.bound([n.indexId],[n.indexId+1],!1,!0))).next(()=>o.delete(IDBKeyRange.bound([n.indexId],[n.indexId+1],!1,!0)))}deleteAllFieldIndexes(e){const n=Hg(e),r=Mh(e),i=kh(e);return n.X().next(()=>r.X()).next(()=>i.X())}createTargetIndexes(e,n){return ee.forEach(this.vn(n),r=>this.getIndexType(e,r).next(i=>{if(i===0||i===1){const o=new i8(r).bn();if(o!=null)return this.addFieldIndex(e,o)}}))}getDocumentsMatchingTarget(e,n){const r=Mh(e);let i=!0;const o=new Map;return ee.forEach(this.vn(n),s=>this.Fn(e,s).next(a=>{i&&(i=!!a),o.set(s,a)})).next(()=>{if(i){let s=It();const a=[];return ee.forEach(o,(l,c)=>{Re(s8,`Using index ${function(v){return`id=${v.indexId}|cg=${v.collectionGroup}|f=${v.fields.map(S=>`${S.fieldPath}:${S.kind}`).join(",")}`}(l)} to execute ${Of(n)}`);const u=function(v,S){const I=B5(S);if(I===void 0)return null;for(const O of xS(v,I.fieldPath))switch(O.op){case"array-contains-any":return O.value.arrayValue.values||[];case"array-contains":return[O.value]}return null}(c,l),d=function(v,S){const I=new Map;for(const O of Od(S))for(const T of xS(v,O.fieldPath))switch(T.op){case"==":case"in":I.set(O.fieldPath.canonicalString(),T.value);break;case"not-in":case"!=":return I.set(O.fieldPath.canonicalString(),T.value),Array.from(I.values())}return null}(c,l),f=function(v,S){const I=[];let O=!0;for(const T of Od(S)){const A=T.kind===0?VD(v,T.fieldPath,v.startAt):BD(v,T.fieldPath,v.startAt);I.push(A.value),O&&(O=A.inclusive)}return new $u(I,O)}(c,l),h=function(v,S){const I=[];let O=!0;for(const T of Od(S)){const A=T.kind===0?BD(v,T.fieldPath,v.endAt):VD(v,T.fieldPath,v.endAt);I.push(A.value),O&&(O=A.inclusive)}return new $u(I,O)}(c,l),p=this.Mn(l,c,f),m=this.Mn(l,c,h),g=this.xn(l,c,d),y=this.On(l.indexId,u,p,f.inclusive,m,h.inclusive,g);return ee.forEach(y,b=>r.Z(b,n.limit).next(v=>{v.forEach(S=>{const I=He.fromSegments(S.documentKey);s.has(I)||(s=s.add(I),a.push(I))})}))}).next(()=>a)}return ee.resolve(null)})}vn(e){let n=this.Cn.get(e);return n||(e.filters.length===0?n=[e]:n=lpe(un.create(e.filters,"and")).map(r=>K5(e.path,e.collectionGroup,e.orderBy,r.getFilters(),e.limit,e.startAt,e.endAt)),this.Cn.set(e,n),n)}On(e,n,r,i,o,s,a){const l=(n!=null?n.length:1)*Math.max(r.length,o.length),c=l/(n!=null?n.length:1),u=[];for(let d=0;d<l;++d){const f=n?this.Nn(n[d/c]):Vb,h=this.Bn(e,f,r[d%c],i),p=this.Ln(e,f,o[d%c],s),m=a.map(g=>this.Bn(e,f,g,!0));u.push(...this.createRange(h,p,m))}return u}Bn(e,n,r,i){const o=new Fd(e,He.empty(),n,r);return i?o:o.En()}Ln(e,n,r,i){const o=new Fd(e,He.empty(),n,r);return i?o.En():o}Fn(e,n){const r=new i8(n),i=n.collectionGroup!=null?n.collectionGroup:n.path.lastSegment();return this.getFieldIndexes(e,i).next(o=>{let s=null;for(const a of o)r.gn(a)&&(!s||a.fields.length>s.fields.length)&&(s=a);return s})}getIndexType(e,n){let r=2;const i=this.vn(n);return ee.forEach(i,o=>this.Fn(e,o).next(s=>{s?r!==0&&s.fields.length<function(l){let c=new dn(Qn.comparator),u=!1;for(const d of l.filters)for(const f of d.getFlattenedFilters())f.field.isKeyField()||(f.op==="array-contains"||f.op==="array-contains-any"?u=!0:c=c.add(f.field));for(const d of l.orderBy)d.field.isKeyField()||(c=c.add(d.field));return c.size+(u?1:0)}(o)&&(r=1):r=0})).next(()=>function(s){return s.limit!==null}(n)&&i.length>1&&r===2?1:r)}kn(e,n){const r=new jg;for(const i of Od(e)){const o=n.data.field(i.fieldPath);if(o==null)return null;const s=r.ln(i.kind);$d.Wt.Dt(o,s)}return r.un()}Nn(e){const n=new jg;return $d.Wt.Dt(e,n.ln(0)),n.un()}Kn(e,n){const r=new jg;return $d.Wt.Dt(Pf(this.databaseId,n),r.ln(function(o){const s=Od(o);return s.length===0?0:s[s.length-1].kind}(e))),r.un()}xn(e,n,r){if(r===null)return[];let i=[];i.push(new jg);let o=0;for(const s of Od(e)){const a=r[o++];for(const l of i)if(this.qn(n,s.fieldPath)&&d0(a))i=this.Un(i,s,a);else{const c=l.ln(s.kind);$d.Wt.Dt(a,c)}}return this.$n(i)}Mn(e,n,r){return this.xn(e,n,r.position)}$n(e){const n=[];for(let r=0;r<e.length;++r)n[r]=e[r].un();return n}Un(e,n,r){const i=[...e],o=[];for(const s of r.arrayValue.values||[])for(const a of i){const l=new jg;l.seed(a.un()),$d.Wt.Dt(s,l.ln(n.kind)),o.push(l)}return o}qn(e,n){return!!e.filters.find(r=>r instanceof Vt&&r.field.isEqual(n)&&(r.op==="in"||r.op==="not-in"))}getFieldIndexes(e,n){const r=Hg(e),i=kh(e);return(n?r.H(F5,IDBKeyRange.bound(n,n)):r.H()).next(o=>{const s=[];return ee.forEach(o,a=>i.get([a.indexId,this.uid]).next(l=>{s.push(function(u,d){const f=d?new i0(d.sequenceNumber,new zo(zf(d.readTime),new He(_a(d.documentKey)),d.largestBatchId)):i0.empty(),h=u.f
vendor: 4,126 bytes, lines 3145-3164
3145ields.map(([p,m])=>new J2(Qn.fromServerFormat(p),m));return new gS(u.indexId,u.collectionGroup,h,f)}(a,l))})).next(()=>s)})}getNextCollectionGroupToUpdate(e){return this.getFieldIndexes(e).next(n=>n.length===0?null:(n.sort((r,i)=>{const o=r.indexState.sequenceNumber-i.indexState.sequenceNumber;return o!==0?o:gt(r.collectionGroup,i.collectionGroup)}),n[0].collectionGroup))}updateCollectionGroup(e,n,r){const i=Hg(e),o=kh(e);return this.Wn(e).next(s=>i.H(F5,IDBKeyRange.bound(n,n)).next(a=>ee.forEach(a,l=>o.put(JD(l.indexId,this.uid,s,r)))))}updateIndexEntries(e,n){const r=new Map;return ee.forEach(n,(i,o)=>{const s=r.get(i.collectionGroup);return(s?ee.resolve(s):this.getFieldIndexes(e,i.collectionGroup)).next(a=>(r.set(i.collectionGroup,a),ee.forEach(a,l=>this.Qn(e,i,l).next(c=>{const u=this.Gn(o,l);return c.isEqual(u)?ee.resolve():this.zn(e,o,l,c,u)}))))})}jn(e,n,r,i){return Mh(e).put(i.Rn(this.uid,this.Kn(r,n.key),n.key))}Hn(e,n,r,i){return Mh(e).delete(i.An(this.uid,this.Kn(r,n.key),n.key))}Qn(e,n,r){const i=Mh(e);let o=new dn(Tc);return i.ee({index:tW,range:IDBKeyRange.only([r.indexId,this.uid,sw(this.Kn(r,n))])},(s,a)=>{o=o.add(new Fd(r.indexId,n,r8(a.arrayValue),r8(a.directionalValue)))}).next(()=>o)}Gn(e,n){let r=new dn(Tc);const i=this.kn(n,e);if(i==null)return r;const o=B5(n);if(o!=null){const s=e.data.field(o.fieldPath);if(d0(s))for(const a of s.arrayValue.values||[])r=r.add(new Fd(n.indexId,e.key,this.Nn(a),i))}else r=r.add(new Fd(n.indexId,e.key,Vb,i));return r}zn(e,n,r,i,o){Re(s8,"Updating index entries for document '%s'",n.key);const s=[];return function(l,c,u,d,f){const h=l.getIterator(),p=c.getIterator();let m=Ih(h),g=Ih(p);for(;m||g;){let y=!1,b=!1;if(m&&g){const v=u(m,g);v<0?b=!0:v>0&&(y=!0)}else m!=null?b=!0:y=!0;y?(d(g),g=Ih(p)):b?(f(m),m=Ih(h)):(m=Ih(h),g=Ih(p))}}(i,o,Tc,a=>{s.push(this.jn(e,n,r,a))},a=>{s.push(this.Hn(e,n,r,a))}),ee.waitFor(s)}Wn(e){let n=1;return kh(e).ee({index:eW,reverse:!0,range:IDBKeyRange.upperBound([this.uid,Number.MAX_SAFE_INTEGER])},(r,i,o)=>{o.done(),n=i.sequenceNumber+1}).next(()=>n)}createRange(e,n,r){r=r.sort((s,a)=>Tc(s,a)).filter((s,a,l)=>!a||Tc(s,l[a-1])!==0);const i=[];i.push(e);for(const s of r){const a=Tc(s,e),l=Tc(s,n);if(a===0)i[0]=e.En();else if(a>0&&l<0)i.push(s),i.push(s.En());else if(l>0)break}i.push(n);const o=[];for(let s=0;s<i.length;s+=2){if(this.Jn(i[s],i[s+1]))return[];const a=i[s].An(this.uid,Vb,He.empty()),l=i[s+1].An(this.uid,Vb,He.empty());o.push(IDBKeyRange.bound(a,l))}return o}Jn(e,n){return Tc(e,n)>0}getMinOffsetFromCollectionGroup(e,n){return this.getFieldIndexes(e,n).next(l8)}getMinOffset(e,n){return ee.mapArray(this.vn(n),r=>this.Fn(e,r).next(i=>i||Ye(44426))).next(l8)}}function a8(t){return zr(t,l0)}function Mh(t){return zr(t,cy)}function Hg(t){return zr(t,qM)}function kh(t){return zr(t,ly)}function l8(t){tt(t.length!==0,28825);let e=t[0].indexState.offset,n=e.largestBatchId;for(let r=1;r<t.length;r++){const i=t[r].indexState.offset;jM(i,e)<0&&(e=i),n<i.largestBatchId&&(n=i.largestBatchId)}return new zo(e.readTime,e.documentKey,n)}/** 3146 * @license 3147 * Copyright 2018 Google LLC 3148 * 3149 * Licensed under the Apache License, Version 2.0 (the "License"); 3150 * you may not use this file except in compliance with the License. 3151 * You may obtain a copy of the License at 3152 * 3153 * http://www.apache.org/licenses/LICENSE-2.0 3154 * 3155 * Unless required by applicable law or agreed to in writing, software 3156 * distributed under the License is distributed on an "AS IS" BASIS, 3157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3158 * See the License for the specific language governing permissions and 3159 * limitations under the License. 3160 */const c8={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},sG=41943040;class gi{static withCacheSize(e){return new gi(e,gi.DEFAULT_COLLECTION_PERCENTILE,gi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,r){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=r}}/** 3161 * @license 3162 * Copyright 2020 Google LLC 3163 * 3164 * Licensed under the Apache License, Version 2.0 (the "License");
3165 * you may not use this file except in compliance with the License. 3166 * You may obtain a copy of the License at 3167 * 3168 * http://www.apache.org/licenses/LICENSE-2.0 3169 * 3170 * Unless required by applicable law or agreed to in writing, software 3171 * distributed under the License is distributed on an "AS IS" BASIS, 3172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3173 * See the License for the specific language governing permissions and 3174 * limitations under the License. 3175 */function aG(t,e,n){const r=t.store(Os),i=t.store(fm),o=[],s=IDBKeyRange.only(n.batchId);let a=0;const l=r.ee({range:s},(u,d,f)=>(a++,f.delete()));o.push(l.next(()=>{tt(a===1,47070,{batchId:n.batchId})}));const c=[];for(const u of n.mutations){const d=Qq(e,u.key.path,n.batchId);o.push(i.delete(d)),c.push(u.key)}return ee.waitFor(o).next(()=>c)}function _S(t){if(!t)return 0;let e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw Ye(14731);e=t.noDocument}return JSON.stringify(e).length}/** 3176 * @license 3177 * Copyright 2017 Google LLC 3178 * 3179 * Licensed under the Apache License, Version 2.0 (the "License"); 3180 * you may not use this file except in compliance with the License. 3181 * You may obtain a copy of the License at 3182 * 3183 * http://www.apache.org/licenses/LICENSE-2.0 3184 * 3185 * Unless required by applicable law or agreed to in writing, software 3186 * distributed under the License is distributed on an "AS IS" BASIS, 3187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3188 * See the License for the specific language governing permissions and 3189 * limitations under the License. 3190 */gi.DEFAULT_COLLECTION_PERCENTILE=10,gi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,gi.DEFAULT=new gi(sG,gi.DEFAULT_COLLECTION_PERCENTILE,gi.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),gi.DISABLED=new gi(-1,0,0);class _E{constructor(e,n,r,i){this.userId=e,this.serializer=n,this.indexManager=r,this.referenceDelegate=i,this.Zn={}}static wt(e,n,r,i){tt(e.uid!=="",64387);const o=e.isAuthenticated()?e.uid:"";return new _E(o,n,r,i)}checkEmpty(e){let n=!0;const r=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return Cc(e).ee({index:Gd,range:r},(i,o,s)=>{n=!1,s.done()}).next(()=>n)}addMutationBatch(e,n,r,i){const o=Qh(e),s=Cc(e);return s.add({}).next(a=>{tt(typeof a=="number",49019);const l=new tk(a,n,r,i),c=function(h,p,m){const g=m.baseMutations.map(b=>p0(h.yt,b)),y=m.mutations.map(b=>p0(h.yt,b));return{userId:p,batchId:m.batchId,localWriteTimeMs:m.localWriteTime.toMillis(),baseMutations:g,mutations:y}}(this.serializer,this.userId,l),u=[];let d=new dn((f,h)=>gt(f.canonicalString(),h.canonicalString()));for(const f of i){const h=Qq(this.userId,f.key.path,a);d=d.add(f.key.path.popLast()),u.push(s.put(c)),u.push(o.put(h,Lfe))}return d.forEach(f=>{u.push(this.indexManager.addToCollectionParentIndex(e,f))}),e.addOnCommittedListener(()=>{this.Zn[a]=l.keys()}),ee.waitFor(u).next(()=>l)})}lookupMutationBatch(e,n){return Cc(e).get(n).next(r=>r?(tt(r.userId===this.userId,48,"Unexpected user for mutation batch",{userId:r.userId,batchId:n}),Bd(this.serializer,r)):null)}Xn(e,n){return this.Zn[n]?ee.resolve(this.Zn[n]):this.lookupMutationBatch(e,n).next(r=>{if(r){const i=r.keys();return this.Zn[n]=i,i}return null})}getNextMutationBatchAfterBatchId(e,n){const r=n+1,i=IDBKeyRange.lowerBound([this.userId,r]);let o=null;return Cc(e).ee({index:Gd,range:i},(s,a,l)=>{a.userId===this.userId&&(tt(a.batchId>=r,47524,{Yn:r}),o=Bd(this.serializer,a)),l.done()}).next(()=>o)}getHighestUnacknowledgedBatchId(e){const n=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]);let r=uf;return Cc(e).ee({index:Gd,range:n,reverse:!0},(i,o,s)=>{r=o.batchId,s.done()}).next(()=>r)}getAllMutationBatches(e){const n=IDBKeyRange.bound([this.userId,uf],[this.userId,Number.POSITIVE_INFINITY]);return Cc(e).H(Gd,n).next(r=>r.map(i=>Bd(this.serializer,i)))}getAllMutationBatchesAffectingDocumentKey(e,n){const r=Z2(this.userId,n.path),i=IDBKeyRange.lowerBound(r),o=[];return Qh(e).ee({range:i},(s,a,l)=>{const[c,u,d]=s,f=_a(u);if(c===this.userId&&n.path.isEqual(f))return Cc(e).get(d).next(h=>
vendor: 9,797 bytes, lines 3190-3244
3190{if(!h)throw Ye(61480,{er:s,batchId:d});tt(h.userId===this.userId,10503,"Unexpected user for mutation batch",{userId:h.userId,batchId:d}),o.push(Bd(this.serializer,h))});l.done()}).next(()=>o)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new dn(gt);const i=[];return n.forEach(o=>{const s=Z2(this.userId,o.path),a=IDBKeyRange.lowerBound(s),l=Qh(e).ee({range:a},(c,u,d)=>{const[f,h,p]=c,m=_a(h);f===this.userId&&o.path.isEqual(m)?r=r.add(p):d.done()});i.push(l)}),ee.waitFor(i).next(()=>this.tr(e,r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,i=r.length+1,o=Z2(this.userId,r),s=IDBKeyRange.lowerBound(o);let a=new dn(gt);return Qh(e).ee({range:s},(l,c,u)=>{const[d,f,h]=l,p=_a(f);d===this.userId&&r.isPrefixOf(p)?p.length===i&&(a=a.add(h)):u.done()}).next(()=>this.tr(e,a))}tr(e,n){const r=[],i=[];return n.forEach(o=>{i.push(Cc(e).get(o).next(s=>{if(s===null)throw Ye(35274,{batchId:o});tt(s.userId===this.userId,9748,"Unexpected user for mutation batch",{userId:s.userId,batchId:o}),r.push(Bd(this.serializer,s))}))}),ee.waitFor(i).next(()=>r)}removeMutationBatch(e,n){return aG(e.le,this.userId,n).next(r=>(e.addOnCommittedListener(()=>{this.nr(n.batchId)}),ee.forEach(r,i=>this.referenceDelegate.markPotentiallyOrphaned(e,i))))}nr(e){delete this.Zn[e]}performConsistencyCheck(e){return this.checkEmpty(e).next(n=>{if(!n)return ee.resolve();const r=IDBKeyRange.lowerBound(function(s){return[s]}(this.userId)),i=[];return Qh(e).ee({range:r},(o,s,a)=>{if(o[0]===this.userId){const l=_a(o[1]);i.push(l)}else a.done()}).next(()=>{tt(i.length===0,56720,{rr:i.map(o=>o.canonicalString())})})})}containsKey(e,n){return lG(e,this.userId,n)}ir(e){return cG(e).get(this.userId).next(n=>n||{userId:this.userId,lastAcknowledgedBatchId:uf,lastStreamToken:""})}}function lG(t,e,n){const r=Z2(e,n.path),i=r[1],o=IDBKeyRange.lowerBound(r);let s=!1;return Qh(t).ee({range:o,Y:!0},(a,l,c)=>{const[u,d,f]=a;u===e&&d===i&&(s=!0),c.done()}).next(()=>s)}function Cc(t){return zr(t,Os)}function Qh(t){return zr(t,fm)}function cG(t){return zr(t,s0)}/** 3191 * @license 3192 * Copyright 2017 Google LLC 3193 * 3194 * Licensed under the Apache License, Version 2.0 (the "License"); 3195 * you may not use this file except in compliance with the License. 3196 * You may obtain a copy of the License at 3197 * 3198 * http://www.apache.org/licenses/LICENSE-2.0 3199 * 3200 * Unless required by applicable law or agreed to in writing, software 3201 * distributed under the License is distributed on an "AS IS" BASIS, 3202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3203 * See the License for the specific language governing permissions and 3204 * limitations under the License. 3205 */class Vf{constructor(e){this.sr=e}next(){return this.sr+=2,this.sr}static _r(){return new Vf(0)}static ar(){return new Vf(-1)}}/** 3206 * @license 3207 * Copyright 2017 Google LLC 3208 * 3209 * Licensed under the Apache License, Version 2.0 (the "License"); 3210 * you may not use this file except in compliance with the License. 3211 * You may obtain a copy of the License at 3212 * 3213 * http://www.apache.org/licenses/LICENSE-2.0 3214 * 3215 * Unless required by applicable law or agreed to in writing, software 3216 * distributed under the License is distributed on an "AS IS" BASIS, 3217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3218 * See the License for the specific language governing permissions and 3219 * limitations under the License. 3220 */class dpe{constructor(e,n){this.referenceDelegate=e,this.serializer=n}allocateTargetId(e){return this.ur(e).next(n=>{const r=new Vf(n.highestTargetId);return n.highestTargetId=r.next(),this.cr(e,n).next(()=>n.highestTargetId)})}getLastRemoteSnapshotVersion(e){return this.ur(e).next(n=>it.fromTimestamp(new cn(n.lastRemoteSnapshotVersion.seconds,n.lastRemoteSnapshotVersion.nanoseconds)))}getHighestSequenceNumber(e){return this.ur(e).next(n=>n.highestListenSequenceNumber)}setTargetsMetadata(e,n,r){return this.ur(e).next(i=>(i.highestListenSequenceNumber=n,r&&(i.lastRemoteSnapshotVersion=r.toTimestamp()),n>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=n),this.cr(e,i)))}addTargetData(e,n){return this.lr(e,n).next(()=>this.ur(e).next(r=>(r.targetCount+=1,this.hr(n,r),this.cr(e,r))))}updateTargetData(e,n){return this.lr(e,n)}removeTargetData(e,n){return this.removeMatchingKeysForTargetId(e,n.targetId).next(()=>Ph(e).delete(n.targetId)).next(()=>this.ur(e)).next(r=>(tt(r.targetCount>0,8065),r.targetCount-=1,this.cr(e,r)))}removeTargets(e,n,r){let i=0;const o=[];return Ph(e).ee((s,a)=>{const l=_1(a);l.sequenceNumber<=n&&r.get(l.targetId)===null&&(i++,o.push(this.removeTargetData(e,l)))}).next(()=>ee.waitFor(o)).next(()=>i)}forEachTarget(e,n){return Ph(e).ee((r,i)=>{const o=_1(i);n(o)})}ur(e){return u8(e).get(bS).next(n=>(tt(n!==null,2888),n))}cr(e,n){return u8(e).put(bS,n)}lr(e,n){return Ph(e).put(nG(this.serializer,n))}hr(e,n){let r=!1;return e.targetId>n.highestTargetId&&(n.highestTargetId=e.targetId,r=!0),e.sequenceNumber>n.highestListenSequenceNumber&&(n.highestListenSequenceNumber=e.sequenceNumber,r=!0),r}getTargetCount(e){return this.ur(e).next(n=>n.targetCount)}getTargetData(e,n){const r=Of(n),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]);let o=null;return Ph(e).ee({range:i,index:Zq},(s,a,l)=>{const c=_1(a);Cv(n,c.target)&&(o=c,l.done())}).next(()=>o)}addMatchingKeys(e,n,r){const i=[],o=Fc(e);return n.forEach(s=>{const a=vi(s.path);i.push(o.put({targetId:r,path:a})),i.push(this.referenceDelegate.addReference(e,r,s))}),ee.waitFor(i)}removeMatchingKeys(e,n,r){const i=Fc(e);return ee.forEach(n,o=>{const s=vi(o.path);return ee.waitFor([i.delete([r,s]),this.referenceDelegate.removeReference(e,r,o)])})}removeMatchingKeysForTargetId(e,n){const r=Fc(e),i=IDBKeyRange.bound([n],[n+1],!1,!0);return r.delete(i)}getMatchingKeysForTargetId(e,n){const r=IDBKeyRange.bound([n],[n+1],!1,!0),i=Fc(e);let o=It();return i.ee({range:r,Y:!0},(s,a,l)=>{const c=_a(s[1]),u=new He(c);o=o.add(u)}).next(()=>o)}containsKey(e,n){const r=vi(n.path),i=IDBKeyRange.bound([r],[Hq(r)],!1,!0);let o=0;return Fc(e).ee({index:UM,Y:!0,range:i},([s,a],l,c)=>{s!==0&&(o++,c.done())}).next(()=>o>0)}At(e,n){return Ph(e).get(n).next(r=>r?_1(r):null)}}function Ph(t){return zr(t,hm)}function u8(t){return zr(t,df)}function Fc(t){return zr(t,pm)}/** 3221 * @license 3222 * Copyright 2020 Google LLC 3223 * 3224 * Licensed under the Apache License, Version 2.0 (the "License"); 3225 * you may not use this file except in compliance with the License. 3226 * You may obtain a copy of the License at 3227 * 3228 * http://www.apache.org/licenses/LICENSE-2.0 3229 * 3230 * Unless required by applicable law or agreed to in writing, software 3231 * distributed under the License is distributed on an "AS IS" BASIS, 3232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3233 * See the License for the specific language governing permissions and 3234 * limitations under the License. 3235 */const d8="LruGarbageCollector",uG=1048576;function f8([t,e],[n,r]){const i=gt(t,n);return i===0?gt(e,r):i}class fpe{constructor(e){this.Pr=e,this.buffer=new dn(f8),this.Tr=0}Ir(){return++this.Tr}Er(e){const n=[e,this.Ir()];if(this.buffer.size<this.Pr)this.buffer=this.buffer.add(n);else{const r=this.buffer.last();f8(n,r)<0&&(this.buffer=this.buffer.delete(r).add(n))}}get maxValue(){return this.buffer.last()[0]}}class dG{constructor(e,n,r){this.garbageCollector=e,this.asyncQueue=n,this.localStore=r,this.Rr=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Ar(6e4)}stop(){this.Rr&&(this.Rr.cancel(),this.Rr=null)}get started(){return this.Rr!==null}Ar(e){Re(d8,`Garbage collection scheduled in ${e}ms`),this.Rr=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,async()=>{this.Rr=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){ed(n)?Re(d8,"Ignoring IndexedDB error during garbage collection: ",n):await Zu(n)}await this.Ar(3e5)})}}class hpe{constructor(e,n){this.Vr=e,this.params=n}calculateTargetCount(e,n){return this.Vr.dr(e).next(r=>Math.floor(n/100*r))}nthSequenceNumber(e,n){if(n===0)return ee.resolve(Ki.ce);const r=new fpe(n);return this.Vr.forEachTarget(e,i=>r.Er(i.sequenceNumber)).next(()=>this.Vr.mr(e,i=>r.Er(i))).next(()=>r.maxValue)}removeTargets(e,n,r){return this.Vr.removeTargets(e,n,r)}removeOrphanedDocuments(e,n){return this.Vr.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(Re("LruGarbageCollector","Garbage collection skipped; disabled"),ee.resolve(c8)):this.getCacheSize(e).next(r=>r<this.params.cacheSizeCollectionThreshold?(Re("LruGarbageCollector",`Garbage collection skipped; Cache size ${r} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),c8):this.gr(e,n))}getCacheSize(e){return this.Vr.getCacheSize(e)}gr(e,n){let r,i,o,s,a,l,c;const u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(d=>(d>this.params.maximumSequenceNumbersToCollect?(Re("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${d}`),i=this.params.maximumSequenceNumbersToCollect):i=d,s=Date.now(),this.nthSequenceNumber(e,i))).next(d=>(r=d,a=Date.now(),this.removeTargets(e,r,n))).next(d=>(o=d,l=Date.now(),this.removeOrphanedDocuments(e,r))).next(d=>(c=Date.now(),Kh()<=Lt.DEBUG&&Re("LruGarbageCollector",`LRU Garbage Collection 3236 Counted targets in ${s-u}ms 3237 Determined least recently used ${i} in `+(a-s)+`ms 3238 Removed ${o} targets in `+(l-a)+`ms 3239 Removed ${d} documents in `+(c-l)+`ms 3240Total Duration: ${c-u}ms`),ee.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:o,documentsRemoved:d})))}}function fG(t,e){return new hpe(t,e)}/** 3241 * @license 3242 * Copyright 2020 Google LLC 3243 * 3244 * Licensed under the Apache License, Version 2.0 (the "License");
3245 * you may not use this file except in compliance with the License. 3246 * You may obtain a copy of the License at 3247 * 3248 * http://www.apache.org/licenses/LICENSE-2.0 3249 * 3250 * Unless required by applicable law or agreed to in writing, software 3251 * distributed under the License is distributed on an "AS IS" BASIS, 3252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3253 * See the License for the specific language governing permissions and 3254 * limitations under the License. 3255 */class ppe{constructor(e,n){this.db=e,this.garbageCollector=fG(this,n)}dr(e){const n=this.pr(e);return this.db.getTargetCache().getTargetCount(e).next(r=>n.next(i=>r+i))}pr(e){let n=0;return this.mr(e,r=>{n++}).next(()=>n)}forEachTarget(e,n){return this.db.getTargetCache().forEachTarget(e,n)}mr(e,n){return this.yr(e,(r,i)=>n(i))}addReference(e,n,r){return Bb(e,r)}removeReference(e,n,r){return Bb(e,r)}removeTargets(e,n,r){return this.db.getTargetCache().removeTargets(e,n,r)}markPotentiallyOrphaned(e,n){return Bb(e,n)}wr(e,n){return function(i,o){let s=!1;return cG(i).te(a=>lG(i,a,o).next(l=>(l&&(s=!0),ee.resolve(!l)))).next(()=>s)}(e,n)}removeOrphanedDocuments(e,n){const r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[];let o=0;return this.yr(e,(s,a)=>{if(a<=n){const l=this.wr(e,s).next(c=>{if(!c)return o++,r.getEntry(e,s).next(()=>(r.removeEntry(s,it.min()),Fc(e).delete(function(d){return[0,vi(d.path)]}(s))))});i.push(l)}}).next(()=>ee.waitFor(i)).next(()=>r.apply(e)).next(()=>o)}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(e,r)}updateLimboDocument(e,n){return Bb(e,n)}yr(e,n){const r=Fc(e);let i,o=Ki.ce;return r.ee({index:UM},([s,a],{path:l,sequenceNumber:c})=>{s===0?(o!==Ki.ce&&n(new He(_a(i)),o),o=c,i=l):o=Ki.ce}).next(()=>{o!==Ki.ce&&n(new He(_a(i)),o)})}getCacheSize(e){return this.db.getRemoteDocumentCache().getSize(e)}}function Bb(t,e){return Fc(t).put(function(r,i){return{targetId:0,path:vi(r.path),sequenceNumber:i}}(e,t.currentSequenceNumber))}/** 3256 * @license 3257 * Copyright 2017 Google LLC 3258 * 3259 * Licensed under the Apache License, Version 2.0 (the "License"); 3260 * you may not use this file except in compliance with the License. 3261 * You may obtain a copy of the License at 3262 * 3263 * http://www.apache.org/licenses/LICENSE-2.0 3264 * 3265 * Unless required by applicable law or agreed to in writing, software 3266 * distributed under the License is distributed on an "AS IS" BASIS, 3267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3268 * See the License for the specific language governing permissions and 3269 * limitations under the License. 3270 */class hG{constructor(){this.changes=new cc(e=>e.toString(),(e,n)=>e.isEqual(n)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,qn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const r=this.changes.get(n);return r!==void 0?ee.resolve(r):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}}/** 3271 * @license 3272 * Copyright 2017 Google LLC 3273 * 3274 * Licensed under the Apache License, Version 2.0 (the "License"); 3275 * you may not use this file except in compliance with the License. 3276 * You may obtain a copy of the License at 3277 * 3278 * http://www.apache.org/licenses/LICENSE-2.0 3279 * 3280 * Unless required by applicable law or agreed to in writing, software 3281 * distributed under the License is distributed on an "AS IS" BASIS, 3282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3283 * See the License for the specific language governing permissions and 3284 * limitations under the License. 3285 */class mpe{constructor(e){this.serializer=e}setIndexManager(e){this.indexManager=e}addEntry(e,n,r){return Ed(e).put(r)}removeEntry(e,n,r){return Ed(e).delete(function(o,s){const a=o.path.toArray();return[a.slice(0,a.length-2),a[a.length-2],TS(s),a[a.length-1]]}(n,r))}updateMetadata(e,n){return this.getMetadata(e).next(r=>(r.byteSize+=n,this.br(e,r)))}getEntry(e,n){let r=qn.newInvalidDocument(n);return Ed(e).ee({index:ew,range:IDBKeyRange.only(Ug(n))},(i,o)=>{r=this.Sr(n,o)}).next(()=>r)}Dr(e,n){let r={size:0,document:qn.newInvalidDocument(n)};return Ed(e).ee({index:ew,range:IDBKeyRange.only(Ug(n))},(i,o)=>{r={document:this.Sr(n,o),size:_S(o)}}).next(()=>r)}getEntries(e,n){let r=Co();return this.Cr(e,n,(i,o)=>{const s=this.Sr(i,o);r=r.insert(i,s)}).next(()=>r)}vr(e,n){let r=Co(),i=new Rn(He.comparator);return this.Cr(e,n,(o,s)=>{const a=this.Sr(o,s);r=r.insert(o,a),i=i.insert(o,_S(s))}).next(()=>({documents:r,Fr:i}))}Cr(e,n,r){if(n.isEmpty())return ee.resolve();let i=new dn(m8);
vendor: 10,218 bytes, lines 3285-3349
3285n.forEach(l=>i=i.add(l));const o=IDBKeyRange.bound(Ug(i.first()),Ug(i.last())),s=i.getIterator();let a=s.getNext();return Ed(e).ee({index:ew,range:o},(l,c,u)=>{const d=He.fromSegments([...c.prefixPath,c.collectionGroup,c.documentId]);for(;a&&m8(a,d)<0;)r(a,null),a=s.getNext();a&&a.isEqual(d)&&(r(a,c),a=s.hasNext()?s.getNext():null),a?u.j(Ug(a)):u.done()}).next(()=>{for(;a;)r(a,null),a=s.hasNext()?s.getNext():null})}getDocumentsMatchingQuery(e,n,r,i,o){const s=n.path,a=[s.popLast().toArray(),s.lastSegment(),TS(r.readTime),r.documentKey.path.isEmpty()?"":r.documentKey.path.lastSegment()],l=[s.popLast().toArray(),s.lastSegment(),[Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],""];return Ed(e).H(IDBKeyRange.bound(a,l,!0)).next(c=>{o==null||o.incrementDocumentReadCount(c.length);let u=Co();for(const d of c){const f=this.Sr(He.fromSegments(d.prefixPath.concat(d.collectionGroup,d.documentId)),d);f.isFoundDocument()&&(Av(n,f)||i.has(f.key))&&(u=u.insert(f.key,f))}return u})}getAllFromCollectionGroup(e,n,r,i){let o=Co();const s=p8(n,r),a=p8(n,zo.max());return Ed(e).ee({index:Jq,range:IDBKeyRange.bound(s,a,!0)},(l,c,u)=>{const d=this.Sr(He.fromSegments(c.prefixPath.concat(c.collectionGroup,c.documentId)),c);o=o.insert(d.key,d),o.size===i&&u.done()}).next(()=>o)}newChangeBuffer(e){return new gpe(this,!!e&&e.trackRemovals)}getSize(e){return this.getMetadata(e).next(n=>n.byteSize)}getMetadata(e){return h8(e).get($5).next(n=>(tt(!!n,20021),n))}br(e,n){return h8(e).put($5,n)}Sr(e,n){if(n){const r=tpe(this.serializer,n);if(!(r.isNoDocument()&&r.version.isEqual(it.min())))return r}return qn.newInvalidDocument(e)}}function pG(t){return new mpe(t)}class gpe extends hG{constructor(e,n){super(),this.Mr=e,this.trackRemovals=n,this.Or=new cc(r=>r.toString(),(r,i)=>r.isEqual(i))}applyChanges(e){const n=[];let r=0,i=new dn((o,s)=>gt(o.canonicalString(),s.canonicalString()));return this.changes.forEach((o,s)=>{const a=this.Or.get(o);if(n.push(this.Mr.removeEntry(e,o,a.readTime)),s.isValidDocument()){const l=XD(this.Mr.serializer,s);i=i.add(o.path.popLast());const c=_S(l);r+=c-a.size,n.push(this.Mr.addEntry(e,o,l))}else if(r-=a.size,this.trackRemovals){const l=XD(this.Mr.serializer,s.convertToNoDocument(it.min()));n.push(this.Mr.addEntry(e,o,l))}}),i.forEach(o=>{n.push(this.Mr.indexManager.addToCollectionParentIndex(e,o))}),n.push(this.Mr.updateMetadata(e,r)),ee.waitFor(n)}getFromCache(e,n){return this.Mr.Dr(e,n).next(r=>(this.Or.set(n,{size:r.size,readTime:r.document.readTime}),r.document))}getAllFromCache(e,n){return this.Mr.vr(e,n).next(({documents:r,Fr:i})=>(i.forEach((o,s)=>{this.Or.set(o,{size:s,readTime:r.get(o).readTime})}),r))}}function h8(t){return zr(t,a0)}function Ed(t){return zr(t,vS)}function Ug(t){const e=t.path.toArray();return[e.slice(0,e.length-2),e[e.length-2],e[e.length-1]]}function p8(t,e){const n=e.documentKey.path.toArray();return[t,TS(e.readTime),n.slice(0,n.length-2),n.length>0?n[n.length-1]:""]}function m8(t,e){const n=t.path.toArray(),r=e.path.toArray();let i=0;for(let o=0;o<n.length-2&&o<r.length-2;++o)if(i=gt(n[o],r[o]),i)return i;return i=gt(n.length,r.length),i||(i=gt(n[n.length-2],r[r.length-2]),i||gt(n[n.length-1],r[r.length-1]))}/** 3286 * @license 3287 * Copyright 2017 Google LLC 3288 * 3289 * Licensed under the Apache License, Version 2.0 (the "License"); 3290 * you may not use this file except in compliance with the License. 3291 * You may obtain a copy of the License at 3292 * 3293 * http://www.apache.org/licenses/LICENSE-2.0 3294 * 3295 * Unless required by applicable law or agreed to in writing, software 3296 * distributed under the License is distributed on an "AS IS" BASIS, 3297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3298 * See the License for the specific language governing permissions and 3299 * limitations under the License. 3300 *//** 3301 * @license 3302 * Copyright 2022 Google LLC 3303 * 3304 * Licensed under the Apache License, Version 2.0 (the "License"); 3305 * you may not use this file except in compliance with the License. 3306 * You may obtain a copy of the License at 3307 * 3308 * http://www.apache.org/licenses/LICENSE-2.0 3309 * 3310 * Unless required by applicable law or agreed to in writing, software 3311 * distributed under the License is distributed on an "AS IS" BASIS, 3312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3313 * See the License for the specific language governing permissions and 3314 * limitations under the License. 3315 */class ype{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 3316 * @license 3317 * Copyright 2017 Google LLC 3318 * 3319 * Licensed under the Apache License, Version 2.0 (the "License"); 3320 * you may not use this file except in compliance with the License. 3321 * You may obtain a copy of the License at 3322 * 3323 * http://www.apache.org/licenses/LICENSE-2.0 3324 * 3325 * Unless required by applicable law or agreed to in writing, software 3326 * distributed under the License is distributed on an "AS IS" BASIS, 3327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3328 * See the License for the specific language governing permissions and 3329 * limitations under the License. 3330 */class mG{constructor(e,n,r,i){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=r,this.indexManager=i}getDocument(e,n){let r=null;return this.documentOverlayCache.getOverlay(e,n).next(i=>(r=i,this.remoteDocumentCache.getEntry(e,n))).next(i=>(r!==null&&fy(r.mutation,i,Yi.empty(),cn.now()),i))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.getLocalViewOfDocuments(e,r,It()).next(()=>r))}getLocalViewOfDocuments(e,n,r=It()){const i=Aa();return this.populateOverlays(e,i,n).next(()=>this.computeViews(e,n,i,r).next(o=>{let s=T1();return o.forEach((a,l)=>{s=s.insert(a,l.overlayedDocument)}),s}))}getOverlayedDocuments(e,n){const r=Aa();return this.populateOverlays(e,r,n).next(()=>this.computeViews(e,n,r,It()))}populateOverlays(e,n,r){const i=[];return r.forEach(o=>{n.has(o)||i.push(o)}),this.documentOverlayCache.getOverlays(e,i).next(o=>{o.forEach((s,a)=>{n.set(s,a)})})}computeViews(e,n,r,i){let o=Co();const s=dy(),a=function(){return dy()}();return n.forEach((l,c)=>{const u=r.get(c.key);i.has(c.key)&&(u===void 0||u.mutation instanceof uc)?o=o.insert(c.key,c):u!==void 0?(s.set(c.key,u.mutation.getFieldMask()),fy(u.mutation,c,u.mutation.getFieldMask(),cn.now())):s.set(c.key,Yi.empty())}),this.recalculateAndSaveOverlays(e,o).next(l=>(l.forEach((c,u)=>s.set(c,u)),n.forEach((c,u)=>a.set(c,new ype(u,s.get(c)??null))),a))}recalculateAndSaveOverlays(e,n){const r=dy();let i=new Rn((s,a)=>s-a),o=It();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next(s=>{for(const a of s)a.keys().forEach(l=>{const c=n.get(l);if(c===null)return;let u=r.get(l)||Yi.empty();u=a.applyToLocalView(c,u),r.set(l,u);const d=(i.get(a.batchId)||It()).add(l);i=i.insert(a.batchId,d)})}).next(()=>{const s=[],a=i.getReverseIterator();for(;a.hasNext();){const l=a.getNext(),c=l.key,u=l.value,d=kW();u.forEach(f=>{if(!o.has(f)){const h=VW(n.get(f),r.get(f));h!==null&&d.set(f,h),o=o.add(f)}}),s.push(this.documentOverlayCache.saveOverlays(e,c,d))}return ee.waitFor(s)}).next(()=>r)}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next(r=>this.recalculateAndSaveOverlays(e,r))}getDocumentsMatchingQuery(e,n,r,i){return whe(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):QM(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,r,i):this.getDocumentsMatchingCollectionQuery(e,n,r,i)}getNextDocuments(e,n,r,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,r,i).next(o=>{const s=i-o.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,r.largestBatchId,i-o.size):ee.resolve(Aa());let a=dm,l=o;return s.next(c=>ee.forEach(c,(u,d)=>(a<d.largestBatchId&&(a=d.largestBatchId),o.get(u)?ee.resolve():this.remoteDocumentCache.getEntry(e,u).next(f=>{l=l.insert(u,f)}))).next(()=>this.populateOverlays(e,c,o)).next(()=>this.computeViews(e,l,c,It())).next(u=>({batchId:a,changes:MW(u)})))})}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new He(n)).next(r=>{let i=T1();return r.isFoundDocument()&&(i=i.insert(r.key,r)),i})}getDocumentsMatchingCollectionGroupQuery(e,n,r,i){const o=n.collectionGroup;let s=T1();return this.indexManager.getCollectionParents(e,o).next(a=>ee.forEach(a,l=>{const c=function(d,f){return new nd(f,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt)}(n,l.child(o));return this.getDocumentsMatchingCollectionQuery(e,c,r,i).next(u=>{u.forEach((d,f)=>{s=s.insert(d,f)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,n,r,i){let o;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,r.largestBatchId).next(s=>(o=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,r,o,i))).next(s=>{o.forEach((l,c)=>{const u=c.getKey();s.get(u)===null&&(s=s.insert(u,qn.newInvalidDocument(u)))});let a=T1();return s.forEach((l,c)=>{const u=o.get(l);u!==void 0&&fy(u.mutation,c,Yi.empty(),cn.now()),Av(n,c)&&(a=a.insert(l,c))}),a})}}/** 3331 * @license 3332 * Copyright 2020 Google LLC 3333 * 3334 * Licensed under the Apache License, Version 2.0 (the "License"); 3335 * you may not use this file except in compliance with the License. 3336 * You may obtain a copy of the License at 3337 * 3338 * http://www.apache.org/licenses/LICENSE-2.0 3339 * 3340 * Unless required by applicable law or agreed to in writing, software 3341 * distributed under the License is distributed on an "AS IS" BASIS, 3342 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3343 * See the License for the specific language governing permissions and 3344 * limitations under the License. 3345 */class vpe{constructor(e){this.serializer=e,this.Nr=new Map,this.Br=new Map}getBundleMetadata(e,n){return ee.resolve(this.Nr.get(n))}saveBundleMetadata(e,n){return this.Nr.set(n.id,function(i){return{id:i.id,version:i.version,createTime:Gr(i.createTime)}}(n)),ee.resolve()}getNamedQuery(e,n){return ee.resolve(this.Br.get(n))}saveNamedQuery(e,n){return this.Br.set(n.name,function(i){return{name:i.name,query:rG(i.bundledQuery),readTime:Gr(i.readTime)}}(n)),ee.resolve()}}/** 3346 * @license 3347 * Copyright 2022 Google LLC 3348 * 3349 * Licensed under the Apache License, Version 2.0 (the "License");
3350 * you may not use this file except in compliance with the License. 3351 * You may obtain a copy of the License at 3352 * 3353 * http://www.apache.org/licenses/LICENSE-2.0 3354 * 3355 * Unless required by applicable law or agreed to in writing, software 3356 * distributed under the License is distributed on an "AS IS" BASIS, 3357 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3358 * See the License for the specific language governing permissions and 3359 * limitations under the License. 3360 */class bpe{constructor(){this.overlays=new Rn(He.comparator),this.Lr=new Map}getOverlay(e,n){return ee.resolve(this.overlays.get(n))}getOverlays(e,n){const r=Aa();return ee.forEach(n,i=>this.getOverlay(e,i).next(o=>{o!==null&&r.set(i,o)})).next(()=>r)}saveOverlays(e,n,r){return r.forEach((i,o)=>{this.bt(e,n,o)}),ee.resolve()}removeOverlaysForBatchId(e,n,r){const i=this.Lr.get(r);return i!==void 0&&(i.forEach(o=>this.overlays=this.overlays.remove(o)),this.Lr.delete(r)),ee.resolve()}getOverlaysForCollection(e,n,r){const i=Aa(),o=n.length+1,s=new He(n.child("")),a=this.overlays.getIteratorFrom(s);for(;a.hasNext();){const l=a.getNext().value,c=l.getKey();if(!n.isPrefixOf(c.path))break;c.path.length===o&&l.largestBatchId>r&&i.set(l.getKey(),l)}return ee.resolve(i)}getOverlaysForCollectionGroup(e,n,r,i){let o=new Rn((c,u)=>c-u);const s=this.overlays.getIterator();for(;s.hasNext();){const c=s.getNext().value;if(c.getKey().getCollectionGroup()===n&&c.largestBatchId>r){let u=o.get(c.largestBatchId);u===null&&(u=Aa(),o=o.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}const a=Aa(),l=o.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>a.set(c,u)),!(a.size()>=i)););return ee.resolve(a)}bt(e,n,r){const i=this.overlays.get(r.key);if(i!==null){const s=this.Lr.get(i.largestBatchId).delete(r.key);this.Lr.set(i.largestBatchId,s)}this.overlays=this.overlays.insert(r.key,new rk(n,r));let o=this.Lr.get(n);o===void 0&&(o=It(),this.Lr.set(n,o)),this.Lr.set(n,o.add(r.key))}}/** 3361 * @license 3362 * Copyright 2024 Google LLC 3363 * 3364 * Licensed under the Apache License, Version 2.0 (the "License"); 3365 * you may not use this file except in compliance with the License. 3366 * You may obtain a copy of the License at 3367 * 3368 * http://www.apache.org/licenses/LICENSE-2.0 3369 * 3370 * Unless required by applicable law or agreed to in writing, software 3371 * distributed under the License is distributed on an "AS IS" BASIS, 3372 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3373 * See the License for the specific language governing permissions and 3374 * limitations under the License. 3375 */class wpe{constructor(){this.sessionToken=mr.EMPTY_BYTE_STRING}getSessionToken(e){return ee.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,ee.resolve()}}/** 3376 * @license 3377 * Copyright 2017 Google LLC 3378 * 3379 * Licensed under the Apache License, Version 2.0 (the "License"); 3380 * you may not use this file except in compliance with the License. 3381 * You may obtain a copy of the License at 3382 * 3383 * http://www.apache.org/licenses/LICENSE-2.0 3384 * 3385 * Unless required by applicable law or agreed to in writing, software 3386 * distributed under the License is distributed on an "AS IS" BASIS, 3387 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3388 * See the License for the specific language governing permissions and 3389 * limitations under the License. 3390 */class ck{constructor(){this.kr=new dn(Br.Kr),this.qr=new dn(Br.Ur)}isEmpty(){return this.kr.isEmpty()}addReference(e,n){const r=new Br(e,n);this.kr=this.kr.add(r),this.qr=this.qr.add(r)}$r(e,n){e.forEach(r=>this.addReference(r,n))}removeReference(e,n){this.Wr(new Br(e,n))}Qr(e,n){e.forEach(r=>this.removeReference(r,n))}Gr(e){const n=new He(new Ft([])),r=new Br(n,e),i=new Br(n,e+1),o=[];return this.qr.forEachInRange([r,i],s=>{this.Wr(s),o.push(s.key)}),o}zr(){this.kr.forEach(e=>this.Wr(e))}Wr(e){this.kr=this.kr.delete(e),this.qr=this.qr.delete(e)}jr(e){const n=new He(new Ft([])),r=new Br(n,e),i=new Br(n,e+1);let o=It();return this.qr.forEachInRange([r,i],s=>{o=o.add(s.key)}),o}containsKey(e){const n=new Br(e,0),r=this.kr.firstAfterOrEqual(n);return r!==null&&e.isEqual(r.key)}}class Br{constructor(e,n){this.key=e,this.Hr=n}static Kr(e,n){return He.comparator(e.key,n.key)||gt(e.Hr,n.Hr)}static Ur(e,n){return gt(e.Hr,n.Hr)||He.comparator(e.key,n.key)}}/** 3391 * @license 3392 * Copyright 2017 Google LLC 3393 * 3394 * Licensed under the Apache License, Version 2.0 (the "License");
3395 * you may not use this file except in compliance with the License. 3396 * You may obtain a copy of the License at 3397 * 3398 * http://www.apache.org/licenses/LICENSE-2.0 3399 * 3400 * Unless required by applicable law or agreed to in writing, software 3401 * distributed under the License is distributed on an "AS IS" BASIS, 3402 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3403 * See the License for the specific language governing permissions and 3404 * limitations under the License. 3405 */class Spe{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Yn=1,this.Jr=new dn(Br.Kr)}checkEmpty(e){return ee.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,r,i){const o=this.Yn;this.Yn++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const s=new tk(o,n,r,i);this.mutationQueue.push(s);for(const a of i)this.Jr=this.Jr.add(new Br(a.key,o)),this.indexManager.addToCollectionParentIndex(e,a.key.path.popLast());return ee.resolve(s)}lookupMutationBatch(e,n){return ee.resolve(this.Zr(n))}getNextMutationBatchAfterBatchId(e,n){const r=n+1,i=this.Xr(r),o=i<0?0:i;return ee.resolve(this.mutationQueue.length>o?this.mutationQueue[o]:null)}getHighestUnacknowledgedBatchId(){return ee.resolve(this.mutationQueue.length===0?uf:this.Yn-1)}getAllMutationBatches(e){return ee.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const r=new Br(n,0),i=new Br(n,Number.POSITIVE_INFINITY),o=[];return this.Jr.forEachInRange([r,i],s=>{const a=this.Zr(s.Hr);o.push(a)}),ee.resolve(o)}getAllMutationBatchesAffectingDocumentKeys(e,n){let r=new dn(gt);return n.forEach(i=>{const o=new Br(i,0),s=new Br(i,Number.POSITIVE_INFINITY);this.Jr.forEachInRange([o,s],a=>{r=r.add(a.Hr)})}),ee.resolve(this.Yr(r))}getAllMutationBatchesAffectingQuery(e,n){const r=n.path,i=r.length+1;let o=r;He.isDocumentKey(o)||(o=o.child(""));const s=new Br(new He(o),0);let a=new dn(gt);return this.Jr.forEachWhile(l=>{const c=l.key.path;return!!r.isPrefixOf(c)&&(c.length===i&&(a=a.add(l.Hr)),!0)},s),ee.resolve(this.Yr(a))}Yr(e){const n=[];return e.forEach(r=>{const i=this.Zr(r);i!==null&&n.push(i)}),n}removeMutationBatch(e,n){tt(this.ei(n.batchId,"removed")===0,55003),this.mutationQueue.shift();let r=this.Jr;return ee.forEach(n.mutations,i=>{const o=new Br(i.key,n.batchId);return r=r.delete(o),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.Jr=r})}nr(e){}containsKey(e,n){const r=new Br(n,0),i=this.Jr.firstAfterOrEqual(r);return ee.resolve(n.isEqual(i&&i.key))}performConsistencyCheck(e){return this.mutationQueue.length,ee.resolve()}ei(e,n){return this.Xr(e)}Xr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Zr(e){const n=this.Xr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 3406 * @license 3407 * Copyright 2017 Google LLC 3408 * 3409 * Licensed under the Apache License, Version 2.0 (the "License"); 3410 * you may not use this file except in compliance with the License. 3411 * You may obtain a copy of the License at 3412 * 3413 * http://www.apache.org/licenses/LICENSE-2.0 3414 * 3415 * Unless required by applicable law or agreed to in writing, software 3416 * distributed under the License is distributed on an "AS IS" BASIS, 3417 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3418 * See the License for the specific language governing permissions and 3419 * limitations under the License. 3420 */class xpe{constructor(e){this.ti=e,this.docs=function(){return new Rn(He.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const r=n.key,i=this.docs.get(r),o=i?i.size:0,s=this.ti(n);return this.docs=this.docs.insert(r,{document:n.mutableCopy(),size:s}),this.size+=s-o,this.indexManager.addToCollectionParentIndex(e,r.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const r=this.docs.get(n);return ee.resolve(r?r.document.mutableCopy():qn.newInvalidDocument(n))}getEntries(e,n){let r=Co();return n.forEach(i=>{const o=this.docs.get(i);r=r.insert(i,o?o.document.mutableCopy():qn.newInvalidDocument(i))}),ee.resolve(r)}getDocumentsMatchingQuery(e,n,r,i){let o=Co();const s=n.path,a=new He(s.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(a);for(;l.hasNext();){const{key:c,value:{document:u}}=l.getNext();if(!s.isPrefixOf(c.path))break;c.path.length>s.length+1||jM(Wq(u),r)<=0||(i.has(u.key)||Av(n,u))&&(o=o.insert(u.key,u.mutableCopy()))}return ee.resolve(o)}getAllFromCollectionGroup(e,n,r,i){Ye(9500)}ni(e,n){return ee.forEach(this.docs,r=>n(r))}newChangeBuffer(e){return new Epe(this)}getSize(e){return ee.resolve(this.size)}}class Epe extends hG{constructor(e){super(),this.Mr=e}applyChanges(e){const n=[];
vendor: 26,851 bytes, lines 3420-3525
3420return this.changes.forEach((r,i)=>{i.isValidDocument()?n.push(this.Mr.addEntry(e,i)):this.Mr.removeEntry(r)}),ee.waitFor(n)}getFromCache(e,n){return this.Mr.getEntry(e,n)}getAllFromCache(e,n){return this.Mr.getEntries(e,n)}}/** 3421 * @license 3422 * Copyright 2017 Google LLC 3423 * 3424 * Licensed under the Apache License, Version 2.0 (the "License"); 3425 * you may not use this file except in compliance with the License. 3426 * You may obtain a copy of the License at 3427 * 3428 * http://www.apache.org/licenses/LICENSE-2.0 3429 * 3430 * Unless required by applicable law or agreed to in writing, software 3431 * distributed under the License is distributed on an "AS IS" BASIS, 3432 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3433 * See the License for the specific language governing permissions and 3434 * limitations under the License. 3435 */class Tpe{constructor(e){this.persistence=e,this.ri=new cc(n=>Of(n),Cv),this.lastRemoteSnapshotVersion=it.min(),this.highestTargetId=0,this.ii=0,this.si=new ck,this.targetCount=0,this.oi=Vf._r()}forEachTarget(e,n){return this.ri.forEach((r,i)=>n(i)),ee.resolve()}getLastRemoteSnapshotVersion(e){return ee.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return ee.resolve(this.ii)}allocateTargetId(e){return this.highestTargetId=this.oi.next(),ee.resolve(this.highestTargetId)}setTargetsMetadata(e,n,r){return r&&(this.lastRemoteSnapshotVersion=r),n>this.ii&&(this.ii=n),ee.resolve()}lr(e){this.ri.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.oi=new Vf(n),this.highestTargetId=n),e.sequenceNumber>this.ii&&(this.ii=e.sequenceNumber)}addTargetData(e,n){return this.lr(n),this.targetCount+=1,ee.resolve()}updateTargetData(e,n){return this.lr(n),ee.resolve()}removeTargetData(e,n){return this.ri.delete(n.target),this.si.Gr(n.targetId),this.targetCount-=1,ee.resolve()}removeTargets(e,n,r){let i=0;const o=[];return this.ri.forEach((s,a)=>{a.sequenceNumber<=n&&r.get(a.targetId)===null&&(this.ri.delete(s),o.push(this.removeMatchingKeysForTargetId(e,a.targetId)),i++)}),ee.waitFor(o).next(()=>i)}getTargetCount(e){return ee.resolve(this.targetCount)}getTargetData(e,n){const r=this.ri.get(n)||null;return ee.resolve(r)}addMatchingKeys(e,n,r){return this.si.$r(n,r),ee.resolve()}removeMatchingKeys(e,n,r){this.si.Qr(n,r);const i=this.persistence.referenceDelegate,o=[];return i&&n.forEach(s=>{o.push(i.markPotentiallyOrphaned(e,s))}),ee.waitFor(o)}removeMatchingKeysForTargetId(e,n){return this.si.Gr(n),ee.resolve()}getMatchingKeysForTargetId(e,n){const r=this.si.jr(n);return ee.resolve(r)}containsKey(e,n){return ee.resolve(this.si.containsKey(n))}}/** 3436 * @license 3437 * Copyright 2017 Google LLC 3438 * 3439 * Licensed under the Apache License, Version 2.0 (the "License"); 3440 * you may not use this file except in compliance with the License. 3441 * You may obtain a copy of the License at 3442 * 3443 * http://www.apache.org/licenses/LICENSE-2.0 3444 * 3445 * Unless required by applicable law or agreed to in writing, software 3446 * distributed under the License is distributed on an "AS IS" BASIS, 3447 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3448 * See the License for the specific language governing permissions and 3449 * limitations under the License. 3450 */class uk{constructor(e,n){this._i={},this.overlays={},this.ai=new Ki(0),this.ui=!1,this.ui=!0,this.ci=new wpe,this.referenceDelegate=e(this),this.li=new Tpe(this),this.indexManager=new cpe,this.remoteDocumentCache=function(i){return new xpe(i)}(r=>this.referenceDelegate.hi(r)),this.serializer=new tG(n),this.Pi=new vpe(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ui=!1,Promise.resolve()}get started(){return this.ui}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new bpe,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let r=this._i[e.toKey()];return r||(r=new Spe(n,this.referenceDelegate),this._i[e.toKey()]=r),r}getGlobalsCache(){return this.ci}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Pi}runTransaction(e,n,r){Re("MemoryPersistence","Starting transaction:",e);const i=new Cpe(this.ai.next());return this.referenceDelegate.Ti(),r(i).next(o=>this.referenceDelegate.Ii(i).next(()=>o)).toPromise().then(o=>(i.raiseOnCommittedEvent(),o))}Ei(e,n){return ee.or(Object.values(this._i).map(r=>()=>r.containsKey(e,n)))}}class Cpe extends Kq{constructor(e){super(),this.currentSequenceNumber=e}}class AE{constructor(e){this.persistence=e,this.Ri=new ck,this.Ai=null}static Vi(e){return new AE(e)}get di(){if(this.Ai)return this.Ai;throw Ye(60996)}addReference(e,n,r){return this.Ri.addReference(r,n),this.di.delete(r.toString()),ee.resolve()}removeReference(e,n,r){return this.Ri.removeReference(r,n),this.di.add(r.toString()),ee.resolve()}markPotentiallyOrphaned(e,n){return this.di.add(n.toString()),ee.resolve()}removeTarget(e,n){this.Ri.Gr(n.targetId).forEach(i=>this.di.add(i.toString()));const r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(e,n.targetId).next(i=>{i.forEach(o=>this.di.add(o.toString()))}).next(()=>r.removeTargetData(e,n))}Ti(){this.Ai=new Set}Ii(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ee.forEach(this.di,r=>{const i=He.fromPath(r);return this.mi(e,i).next(o=>{o||n.removeEntry(i,it.min())})}).next(()=>(this.Ai=null,n.apply(e)))}updateLimboDocument(e,n){return this.mi(e,n).next(r=>{r?this.di.delete(n.toString()):this.di.add(n.toString())})}hi(e){return 0}mi(e,n){return ee.or([()=>ee.resolve(this.Ri.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Ei(e,n)])}}class AS{constructor(e,n){this.persistence=e,this.fi=new cc(r=>vi(r.path),(r,i)=>r.isEqual(i)),this.garbageCollector=fG(this,n)}static Vi(e,n){return new AS(e,n)}Ti(){}Ii(e){return ee.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}dr(e){const n=this.pr(e);return this.persistence.getTargetCache().getTargetCount(e).next(r=>n.next(i=>r+i))}pr(e){let n=0;return this.mr(e,r=>{n++}).next(()=>n)}mr(e,n){return ee.forEach(this.fi,(r,i)=>this.wr(e,r,i).next(o=>o?ee.resolve():n(i)))}removeTargets(e,n,r){return this.persistence.getTargetCache().removeTargets(e,n,r)}removeOrphanedDocuments(e,n){let r=0;const i=this.persistence.getRemoteDocumentCache(),o=i.newChangeBuffer();return i.ni(e,s=>this.wr(e,s,n).next(a=>{a||(r++,o.removeEntry(s,it.min()))})).next(()=>o.apply(e)).next(()=>r)}markPotentiallyOrphaned(e,n){return this.fi.set(n,e.currentSequenceNumber),ee.resolve()}removeTarget(e,n){const r=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,r)}addReference(e,n,r){return this.fi.set(r,e.currentSequenceNumber),ee.resolve()}removeReference(e,n,r){return this.fi.set(r,e.currentSequenceNumber),ee.resolve()}updateLimboDocument(e,n){return this.fi.set(n,e.currentSequenceNumber),ee.resolve()}hi(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=nw(e.data.value)),n}wr(e,n,r){return ee.or([()=>this.persistence.Ei(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const i=this.fi.get(n);return ee.resolve(i!==void 0&&i>r)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/** 3451 * @license 3452 * Copyright 2020 Google LLC 3453 * 3454 * Licensed under the Apache License, Version 2.0 (the "License"); 3455 * you may not use this file except in compliance with the License. 3456 * You may obtain a copy of the License at 3457 * 3458 * http://www.apache.org/licenses/LICENSE-2.0 3459 * 3460 * Unless required by applicable law or agreed to in writing, software 3461 * distributed under the License is distributed on an "AS IS" BASIS, 3462 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3463 * See the License for the specific language governing permissions and 3464 * limitations under the License. 3465 */class _pe{constructor(e){this.serializer=e}k(e,n,r,i){const o=new mE("createOrUpgrade",n);r<1&&i>=1&&(function(l){l.createObjectStore(Tv)}(e),function(l){l.createObjectStore(s0,{keyPath:Dfe}),l.createObjectStore(Os,{keyPath:_D,autoIncrement:!0}).createIndex(Gd,AD,{unique:!0}),l.createObjectStore(fm)}(e),g8(e),function(l){l.createObjectStore(Nd)}(e));let s=ee.resolve();return r<3&&i>=3&&(r!==0&&(function(l){l.deleteObjectStore(pm),l.deleteObjectStore(hm),l.deleteObjectStore(df)}(e),g8(e)),s=s.next(()=>function(l){const c=l.store(df),u={highestTargetId:0,highestListenSequenceNumber:0,lastRemoteSnapshotVersion:it.min().toTimestamp(),targetCount:0};return c.put(bS,u)}(o))),r<4&&i>=4&&(r!==0&&(s=s.next(()=>function(l,c){return c.store(Os).H().next(d=>{l.deleteObjectStore(Os),l.createObjectStore(Os,{keyPath:_D,autoIncrement:!0}).createIndex(Gd,AD,{unique:!0});const f=c.store(Os),h=d.map(p=>f.put(p));return ee.waitFor(h)})}(e,o))),s=s.next(()=>{(function(l){l.createObjectStore(mm,{keyPath:Ufe})})(e)})),r<5&&i>=5&&(s=s.next(()=>this.gi(o))),r<6&&i>=6&&(s=s.next(()=>(function(l){l.createObjectStore(a0)}(e),this.pi(o)))),r<7&&i>=7&&(s=s.next(()=>this.yi(o))),r<8&&i>=8&&(s=s.next(()=>this.wi(e,o))),r<9&&i>=9&&(s=s.next(()=>{(function(l){l.objectStoreNames.contains("remoteDocumentChanges")&&l.deleteObjectStore("remoteDocumentChanges")})(e)})),r<10&&i>=10&&(s=s.next(()=>this.bi(o))),r<11&&i>=11&&(s=s.next(()=>{(function(l){l.createObjectStore(gE,{keyPath:qfe})})(e),function(l){l.createObjectStore(yE,{keyPath:Wfe})}(e)})),r<12&&i>=12&&(s=s.next(()=>{(function(l){const c=l.createObjectStore(vE,{keyPath:Zfe});c.createIndex(j5,ehe,{unique:!1}),c.createIndex(nW,the,{unique:!1})})(e)})),r<13&&i>=13&&(s=s.next(()=>function(l){const c=l.createObjectStore(vS,{keyPath:zfe});c.createIndex(ew,Vfe),c.createIndex(Jq,Bfe)}(e)).next(()=>this.Si(e,o)).next(()=>e.deleteObjectStore(Nd))),r<14&&i>=14&&(s=s.next(()=>this.Di(e,o))),r<15&&i>=15&&(s=s.next(()=>function(l){l.createObjectStore(qM,{keyPath:Gfe,autoIncrement:!0}).createIndex(F5,Kfe,{unique:!1}),l.createObjectStore(ly,{keyPath:Yfe}).createIndex(eW,Xfe,{unique:!1}),l.createObjectStore(cy,{keyPath:Qfe}).createIndex(tW,Jfe,{unique:!1})}(e))),r<16&&i>=16&&(s=s.next(()=>{n.objectStore(ly).clear()}).next(()=>{n.objectStore(cy).clear()})),r<17&&i>=17&&(s=s.next(()=>{(function(l){l.createObjectStore(WM,{keyPath:nhe})})(e)})),r<18&&i>=18&&TU()&&(s=s.next(()=>{n.objectStore(ly).clear()}).next(()=>{n.objectStore(cy).clear()})),s}pi(e){let n=0;return e.store(Nd).ee((r,i)=>{n+=_S(i)}).next(()=>{const r={byteSize:n};return e.store(a0).put($5,r)})}gi(e){const n=e.store(s0),r=e.store(Os);return n.H().next(i=>ee.forEach(i,o=>{const s=IDBKeyRange.bound([o.userId,uf],[o.userId,o.lastAcknowledgedBatchId]);return r.H(Gd,s).next(a=>ee.forEach(a,l=>{tt(l.userId===o.userId,18650,"Cannot process batch from unexpected user",{batchId:l.batchId});const c=Bd(this.serializer,l);return aG(e,o.userId,c).next(()=>{})}))}))}yi(e){const n=e.store(pm),r=e.store(Nd);return e.store(df).get(bS).next(i=>{const o=[];return r.ee((s,a)=>{const l=new Ft(s),c=function(d){return[0,vi(d)]}(l);o.push(n.get(c).next(u=>u?ee.resolve():(d=>n.put({targetId:0,path:vi(d),sequenceNumber:i.highestListenSequenceNumber}))(l)))}).next(()=>ee.waitFor(o))})}wi(e,n){e.createObjectStore(l0,{keyPath:Hfe});const r=n.store(l0),i=new lk,o=s=>{if(i.add(s)){const a=s.lastSegment(),l=s.popLast();return r.put({collectionId:a,parent:vi(l)})}};return n.store(Nd).ee({Y:!0},(s,a)=>{const l=new Ft(s);return o(l.popLast())}).next(()=>n.store(fm).ee({Y:!0},([s,a,l],c)=>{const u=_a(a);return o(u.popLast())}))}bi(e){const n=e.store(hm);return n.ee((r,i)=>{const o=_1(i),s=nG(this.serializer,o);return n.put(s)})}Si(e,n){const r=n.store(Nd),i=[];return r.ee((o,s)=>{const a=n.store(vS),l=function(d){return d.document?new He(Ft.fromString(d.document.name).popFirst(5)):d.noDocument?He.fromSegments(d.noDocument.path):d.unknownDocument?He.fromSegments(d.unknownDocument.path):Ye(36783)}(s).path.toArray(),c={prefixPath:l.slice(0,l.length-2),collectionGroup:l[l.length-2],documentId:l[l.length-1],readTime:s.readTime||[0,0],unknownDocument:s.unknownDocument,noDocument:s.noDocument,document:s.document,hasCommittedMutations:!!s.hasCommittedMutations};i.push(a.put(c))}).next(()=>ee.waitFor(i))}Di(e,n){const r=n.store(Os),i=pG(this.serializer),o=new uk(AE.Vi,this.serializer.yt);return r.H().next(s=>{const a=new Map;return s.forEach(l=>{let c=a.get(l.userId)??It();Bd(this.serializer,l).keys().forEach(u=>c=c.add(u)),a.set(l.userId,c)}),ee.forEach(a,(l,c)=>{const u=new Fr(c),d=CE.wt(this.serializer,u),f=o.getIndexManager(u),h=_E.wt(u,this.serializer,f,o.referenceDelegate);return new mG(i,h,d,f).recalculateAndSaveOverlaysForDocumentKeys(new H5(n,Ki.ce),l).next()})})}}function g8(t){t.createObjectStore(pm,{keyPath:Ffe}).createIndex(UM,jfe,{unique:!0}),t.createObjectStore(hm,{keyPath:"targetId"}).createIndex(Zq,$fe,{unique:!0}),t.createObjectStore(df)}const _c="IndexedDbPersistence",K_=18e5,Y_=5e3,X_="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",gG="main";class dk{constructor(e,n,r,i,o,s,a,l,c,u,d=18){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Ci=o,this.window=s,this.document=a,this.Fi=c,this.Mi=u,this.xi=d,this.ai=null,this.ui=!1,this.isPrimary=!1,this.networkEnabled=!0,this.Oi=null,this.inForeground=!1,this.Ni=null,this.Bi=null,this.Li=Number.NEGATIVE_INFINITY,this.ki=f=>Promise.resolve(),!dk.v())throw new Ae(le.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new ppe(this,i),this.Ki=n+gG,this.serializer=new tG(l),this.qi=new Ma(this.Ki,this.xi,new _pe(this.serializer)),this.ci=new rpe,this.li=new dpe(this.referenceDelegate,this.serializer),this.remoteDocumentCache=pG(this.serializer),this.Pi=new npe,this.window&&this.window.localStorage?this.Ui=this.window.localStorage:(this.Ui=null,u===!1&&hr(_c,"LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}start(){return this.$i().then(()=>{if(!this.isPrimary&&!this.allowTabSynchronization)throw new Ae(le.FAILED_PRECONDITION,X_);return this.Wi(),this.Qi(),this.Gi(),this.runTransaction("getHighestListenSequenceNumber","readonly",e=>this.li.getHighestSequenceNumber(e))}).then(e=>{this.ai=new Ki(e,this.Fi)}).then(()=>{this.ui=!0}).catch(e=>(this.qi&&this.qi.close(),Promise.reject(e)))}zi(e){return this.ki=async n=>{if(this.started)return e(n)},e(this.isPrimary)}setDatabaseDeletedListener(e){this.qi.q(async n=>{n.newVersion===null&&await e()})}setNetworkEnabled(e){this.networkEnabled!==e&&(this.networkEnabled=e,this.Ci.enqueueAndForget(async()=>{this.started&&await this.$i()}))}$i(){return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",e=>$b(e).put({clientId:this.clientId,updateTimeMs:Date.now(),networkEnabled:this.networkEnabled,inForeground:this.inForeground}).next(()=>{if(this.isPrimary)return this.ji(e).next(n=>{n||(this.isPrimary=!1,this.Ci.enqueueRetryable(()=>this.ki(!1)))})}).next(()=>this.Hi(e)).next(n=>this.isPrimary&&!n?this.Ji(e).next(()=>!1):!!n&&this.Zi(e).next(()=>!0))).catch(e=>{if(ed(e))return Re(_c,"Failed to extend owner lease: ",e),this.isPrimary;if(!this.allowTabSynchronization)throw e;return Re(_c,"Releasing owner lease after error during lease refresh",e),!1}).then(e=>{this.isPrimary!==e&&this.Ci.enqueueRetryable(()=>this.ki(e)),this.isPrimary=e})}ji(e){return qg(e).get(Ah).next(n=>ee.resolve(this.Xi(n)))}Yi(e){return $b(e).delete(this.clientId)}async es(){if(this.isPrimary&&!this.ts(this.Li,K_)){this.Li=Date.now();const e=await this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",n=>{const r=zr(n,mm);return r.H().next(i=>{const o=this.ns(i,K_),s=i.filter(a=>o.indexOf(a)===-1);return ee.forEach(s,a=>r.delete(a.clientId)).next(()=>s)})}).catch(()=>[]);if(this.Ui)for(const n of e)this.Ui.removeItem(this.rs(n.clientId))}}Gi(){this.Bi=this.Ci.enqueueAfterDelay("client_metadata_refresh",4e3,()=>this.$i().then(()=>this.es()).then(()=>this.Gi()))}Xi(e){return!!e&&e.ownerId===this.clientId}Hi(e){return this.Mi?ee.resolve(!0):qg(e).get(Ah).next(n=>{if(n!==null&&this.ts(n.leaseTimestampMs,Y_)&&!this.ss(n.ownerId)){if(this.Xi(n)&&this.networkEnabled)return!0;if(!this.Xi(n)){if(!n.allowTabSynchronization)throw new Ae(le.FAILED_PRECONDITION,X_);return!1}}return!(!this.networkEnabled||!this.inForeground)||$b(e).H().next(r=>this.ns(r,Y_).find(i=>{if(this.clientId!==i.clientId){const o=!this.networkEnabled&&i.networkEnabled,s=!this.inForeground&&i.inForeground,a=this.networkEnabled===i.networkEnabled;if(o||s&&a)return!0}return!1})===void 0)}).next(n=>(this.isPrimary!==n&&Re(_c,`Client ${n?"is":"is not"} eligible for a primary lease.`),n))}async shutdown(){this.ui=!1,this._s(),this.Bi&&(this.Bi.cancel(),this.Bi=null),this.us(),this.cs(),await this.qi.runTransaction("shutdown","readwrite",[Tv,mm],e=>{const n=new H5(e,Ki.ce);return this.Ji(n).next(()=>this.Yi(n))}),this.qi.close(),this.ls()}ns(e,n){return e.filter(r=>this.ts(r.updateTimeMs,n)&&!this.ss(r.clientId))}hs(){return this.runTransaction("getActiveClients","readonly",e=>$b(e).H().next(n=>this.ns(n,K_).map(r=>r.clientId)))}get started(){return this.ui}getGlobalsCache(){return this.ci}getMutationQueue(e,n){return _E.wt(e,this.serializer,n,this.referenceDelegate)}getTargetCache(){return this.li}getRemoteDocumentCache(){return this.remoteDocumentCache}getIndexManager(e){return new upe(e,this.serializer.yt.databaseId)}getDocumentOverlayCache(e){return CE.wt(this.serializer,e)}getBundleCache(){return this.Pi}runTransaction(e,n,r){Re(_c,"Starting transaction:",e);const i=n==="readonly"?"readonly":"readwrite",o=function(l){return l===18?ohe:l===17?sW:l===16?ihe:l===15?GM:l===14?oW:l===13?iW:l===12?rhe:l===11?rW:void Ye(60245)}(this.xi);let s;return this.qi.runTransaction(e,i,o,a=>(s=new H5(a,this.ai?this.ai.next():Ki.ce),n==="readwrite-primary"?this.ji(s).next(l=>!!l||this.Hi(s)).next(l=>{if(!l)throw hr(`Failed to obtain primary lease for action '${e}'.`),this.isPrimary=!1,this.Ci.enqueueRetryable(()=>this.ki(!1)),new Ae(le.FAILED_PRECONDITION,Gq);return r(s)}).next(l=>this.Zi(s).next(()=>l)):this.Ps(s).next(()=>r(s)))).then(a=>(s.raiseOnCommittedEvent(),a))}Ps(e){return qg(e).get(Ah).next(n=>{if(n!==null&&this.ts(n.leaseTimestampMs,Y_)&&!this.ss(n.ownerId)&&!this.Xi(n)&&!(this.Mi||this.allowTabSynchronization&&n.allowTabSynchronization))throw new Ae(le.FAILED_PRECONDITION,X_)})}Zi(e){const n={ownerId:this.clientId,allowTabSynchronization:this.allowTabSynchronization,leaseTimestampMs:Date.now()};return qg(e).put(Ah,n)}static v(){return Ma.v()}Ji(e){const n=qg(e);return n.get(Ah).next(r=>this.Xi(r)?(Re(_c,"Releasing primary lease."),n.delete(Ah)):ee.resolve())}ts(e,n){const r=Date.now();return!(e<r-n)&&(!(e>r)||(hr(`Detected an update time that is in the future: ${e} > ${r}`),!1))}Wi(){this.document!==null&&typeof this.document.addEventListener=="function"&&(this.Ni=()=>{this.Ci.enqueueAndForget(()=>(this.inForeground=this.document.visibilityState==="visible",this.$i()))},this.document.addEventListener("visibilitychange",this.Ni),this.inForeground=this.document.visibilityState==="visible")}us(){this.Ni&&(this.document.removeEventListener("visibilitychange",this.Ni),this.Ni=null)}Qi(){var e;typeof((e=this.window)==null?void 0:e.addEventListener)=="function"&&(this.Oi=()=>{this._s();const n=/(?:Version|Mobile)\/1[456]/;EU()&&(navigator.appVersion.match(n)||navigator.userAgent.match(n))&&this.Ci.enterRestrictedMode(!0),this.Ci.enqueueAndForget(()=>this.shutdown())},this.window.addEventListener("pagehide",this.Oi))}cs(){this.Oi&&(this.window.removeEventListener("pagehide",this.Oi),this.Oi=null)}ss(e){var n;try{const r=((n=this.Ui)==null?void 0:n.getItem(this.rs(e)))!==null;return Re(_c,`Client '${e}' ${r?"is":"is not"} zombied in LocalStorage`),r}catch(r){return hr(_c,"Failed to get zombied client id.",r),!1}}_s(){if(this.Ui)try{this.Ui.setItem(this.rs(this.clientId),String(Date.now()))}catch(e){hr("Failed to set zombie client id.",e)}}ls(){if(this.Ui)try{this.Ui.removeItem(this.rs(this.clientId))}catch{}}rs(e){return`firestore_zombie_${this.persistenceKey}_${e}`}}function qg(t){return zr(t,Tv)}function $b(t){return zr(t,mm)}function fk(t,e){let n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}/** 3466 * @license 3467 * Copyright 2017 Google LLC 3468 * 3469 * Licensed under the Apache License, Version 2.0 (the "License"); 3470 * you may not use this file except in compliance with the License. 3471 * You may obtain a copy of the License at 3472 * 3473 * http://www.apache.org/licenses/LICENSE-2.0 3474 * 3475 * Unless required by applicable law or agreed to in writing, software 3476 * distributed under the License is distributed on an "AS IS" BASIS, 3477 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3478 * See the License for the specific language governing permissions and 3479 * limitations under the License. 3480 */class hk{constructor(e,n,r,i){this.targetId=e,this.fromCache=n,this.Ts=r,this.Is=i}static Es(e,n){let r=It(),i=It();for(const o of n.docChanges)switch(o.type){case 0:r=r.add(o.doc.key);break;case 1:i=i.add(o.doc.key)}return new hk(e,n.fromCache,r,i)}}/** 3481 * @license 3482 * Copyright 2023 Google LLC 3483 * 3484 * Licensed under the Apache License, Version 2.0 (the "License"); 3485 * you may not use this file except in compliance with the License. 3486 * You may obtain a copy of the License at 3487 * 3488 * http://www.apache.org/licenses/LICENSE-2.0 3489 * 3490 * Unless required by applicable law or agreed to in writing, software 3491 * distributed under the License is distributed on an "AS IS" BASIS, 3492 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3493 * See the License for the specific language governing permissions and 3494 * limitations under the License. 3495 */class Ape{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 3496 * @license 3497 * Copyright 2019 Google LLC 3498 * 3499 * Licensed under the Apache License, Version 2.0 (the "License"); 3500 * you may not use this file except in compliance with the License. 3501 * You may obtain a copy of the License at 3502 * 3503 * http://www.apache.org/licenses/LICENSE-2.0 3504 * 3505 * Unless required by applicable law or agreed to in writing, software 3506 * distributed under the License is distributed on an "AS IS" BASIS, 3507 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3508 * See the License for the specific language governing permissions and 3509 * limitations under the License. 3510 */class yG{constructor(){this.Rs=!1,this.As=!1,this.Vs=100,this.ds=function(){return EU()?8:Yq(Lr())>0?6:4}()}initialize(e,n){this.fs=e,this.indexManager=n,this.Rs=!0}getDocumentsMatchingQuery(e,n,r,i){const o={result:null};return this.gs(e,n).next(s=>{o.result=s}).next(()=>{if(!o.result)return this.ps(e,n,i,r).next(s=>{o.result=s})}).next(()=>{if(o.result)return;const s=new Ape;return this.ys(e,n,s).next(a=>{if(o.result=a,this.As)return this.ws(e,n,s,a.size)})}).next(()=>o.result)}ws(e,n,r,i){return r.documentReadCount<this.Vs?(Kh()<=Lt.DEBUG&&Re("QueryEngine","SDK will not create cache indexes for query:",Yh(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Vs,"documents"),ee.resolve()):(Kh()<=Lt.DEBUG&&Re("QueryEngine","Query:",Yh(n),"scans",r.documentReadCount,"local documents and returns",i,"documents as results."),r.documentReadCount>this.ds*i?(Kh()<=Lt.DEBUG&&Re("QueryEngine","The SDK decides to create cache indexes for query:",Yh(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,ko(n))):ee.resolve())}gs(e,n){if($D(n))return ee.resolve(null);let r=ko(n);return this.indexManager.getIndexType(e,r).next(i=>i===0?null:(n.limit!==null&&i===1&&(n=ES(n,null,"F"),r=ko(n)),this.indexManager.getDocumentsMatchingTarget(e,r).next(o=>{const s=It(...o);return this.fs.getDocuments(e,s).next(a=>this.indexManager.getMinOffset(e,r).next(l=>{const c=this.bs(n,a);return this.Ss(n,c,s,l.readTime)?this.gs(e,ES(n,null,"F")):this.Ds(e,c,n,l)}))})))}ps(e,n,r,i){return $D(n)||i.isEqual(it.min())?ee.resolve(null):this.fs.getDocuments(e,r).next(o=>{const s=this.bs(n,o);return this.Ss(n,s,r,i)?ee.resolve(null):(Kh()<=Lt.DEBUG&&Re("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),Yh(n)),this.Ds(e,s,n,qq(i,dm)).next(a=>a))})}bs(e,n){let r=new dn(IW(e));return n.forEach((i,o)=>{Av(e,o)&&(r=r.add(o))}),r}Ss(e,n,r,i){if(e.limit===null)return!1;if(r.size!==n.size)return!0;const o=e.limitType==="F"?n.last():n.first();return!!o&&(o.hasPendingWrites||o.version.compareTo(i)>0)}ys(e,n,r){return Kh()<=Lt.DEBUG&&Re("QueryEngine","Using full collection scan to execute query:",Yh(n)),this.fs.getDocumentsMatchingQuery(e,n,zo.min(),r)}Ds(e,n,r,i){return this.fs.getDocumentsMatchingQuery(e,r,i).next(o=>(n.forEach(s=>{o=o.insert(s.key,s)}),o))}}/** 3511 * @license 3512 * Copyright 2020 Google LLC 3513 * 3514 * Licensed under the Apache License, Version 2.0 (the "License"); 3515 * you may not use this file except in compliance with the License. 3516 * You may obtain a copy of the License at 3517 * 3518 * http://www.apache.org/licenses/LICENSE-2.0 3519 * 3520 * Unless required by applicable law or agreed to in writing, software 3521 * distributed under the License is distributed on an "AS IS" BASIS, 3522 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3523 * See the License for the specific language governing permissions and 3524 * limitations under the License. 3525 */const pk="LocalStore",Ipe=3e8;class Rpe{constructor(e,n,r,i){this.persistence=e,this.Cs=n,this.serializer=i,this.vs=new Rn(gt),this.Fs=new cc(o=>Of(o),Cv),this.Ms=new Map,this.xs=e.getRemoteDocumentCache(),this.li=e.getTargetCache(),this.Pi=e.getBundleCache(),this.Os(r)}Os(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new mG(this.xs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.xs.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",n=>e.collect(n,this.vs))}}function vG(t,e,n,r){return new Rpe(t,e,n,r)}async function bG(t,e){const n=Qe(t);return await n.persistence.runTransaction("Handle user change","readonly",r=>{let i;
3525return n.mutationQueue.getAllMutationBatches(r).next(o=>(i=o,n.Os(e),n.mutationQueue.getAllMutationBatches(r))).next(o=>{const s=[],a=[];let l=It();for(const c of i){s.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}for(const c of o){a.push(c.batchId);for(const u of c.mutations)l=l.add(u.key)}return n.localDocuments.getDocuments(r,l).next(c=>({Ns:c,removedBatchIds:s,addedBatchIds:a}))})})}function Mpe(t,e){const n=Qe(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",r=>{const i=e.batch.keys(),o=n.xs.newChangeBuffer({trackRemovals:!0});return function(a,l,c,u){const d=c.batch,f=d.keys();let h=ee.resolve();return f.forEach(p=>{h=h.next(()=>u.getEntry(l,p)).next(m=>{const g=c.docVersions.get(p);tt(g!==null,48541),m.version.compareTo(g)<0&&(d.applyToRemoteDocument(m,c),m.isValidDocument()&&(m.setReadTime(c.commitVersion),u.addEntry(m)))})}),h.next(()=>a.mutationQueue.removeMutationBatch(l,d))}(n,r,e,o).next(()=>o.apply(r)).next(()=>n.mutationQueue.performConsistencyCheck(r)).next(()=>n.documentOverlayCache.removeOverlaysForBatchId(r,i,e.batch.batchId)).next(()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(r,function(a){let l=It();for(let c=0;c<a.mutationResults.length;++c)a.mutationResults[c].transformResults.length>0&&(l=l.add(a.batch.mutations[c].key));return l}(e))).next(()=>n.localDocuments.getDocuments(r,i))})}function wG(t){const e=Qe(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",n=>e.li.getLastRemoteSnapshotVersion(n))}function kpe(t,e){const n=Qe(t),r=e.snapshotVersion;let i=n.vs;return n.persistence.runTransaction("Apply remote event","readwrite-primary",o=>{const s=n.xs.newChangeBuffer({trackRemovals:!0});i=n.vs;const a=[];
vendor: 4,100 bytes, lines 3525-3535
3525e.targetChanges.forEach((u,d)=>{const f=i.get(d);if(!f)return;a.push(n.li.removeMatchingKeys(o,u.removedDocuments,d).next(()=>n.li.addMatchingKeys(o,u.addedDocuments,d)));let h=f.withSequenceNumber(o.currentSequenceNumber);e.targetMismatches.get(d)!==null?h=h.withResumeToken(mr.EMPTY_BYTE_STRING,it.min()).withLastLimboFreeSnapshotVersion(it.min()):u.resumeToken.approximateByteSize()>0&&(h=h.withResumeToken(u.resumeToken,r)),i=i.insert(d,h),function(m,g,y){return m.resumeToken.approximateByteSize()===0||g.snapshotVersion.toMicroseconds()-m.snapshotVersion.toMicroseconds()>=Ipe?!0:y.addedDocuments.size+y.modifiedDocuments.size+y.removedDocuments.size>0}(f,h,u)&&a.push(n.li.updateTargetData(o,h))});let l=Co(),c=It();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&a.push(n.persistence.referenceDelegate.updateLimboDocument(o,u))}),a.push(Ppe(o,s,e.documentUpdates).next(u=>{l=u.Bs,c=u.Ls})),!r.isEqual(it.min())){const u=n.li.getLastRemoteSnapshotVersion(o).next(d=>n.li.setTargetsMetadata(o,o.currentSequenceNumber,r));a.push(u)}return ee.waitFor(a).next(()=>s.apply(o)).next(()=>n.localDocuments.getLocalViewOfDocuments(o,l,c)).next(()=>l)}).then(o=>(n.vs=i,o))}function Ppe(t,e,n){let r=It(),i=It();return n.forEach(o=>r=r.add(o)),e.getEntries(t,r).next(o=>{let s=Co();return n.forEach((a,l)=>{const c=o.get(a);l.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(a)),l.isNoDocument()&&l.version.isEqual(it.min())?(e.removeEntry(a,l.readTime),s=s.insert(a,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||l.version.compareTo(c.version)===0&&c.hasPendingWrites?(e.addEntry(l),s=s.insert(a,l)):Re(pk,"Ignoring outdated watch update for ",a,". Current version:",c.version," Watch version:",l.version)}),{Bs:s,Ls:i}})}function Ope(t,e){const n=Qe(t);return n.persistence.runTransaction("Get next mutation batch","readonly",r=>(e===void 0&&(e=uf),n.mutationQueue.getNextMutationBatchAfterBatchId(r,e)))}function IS(t,e){const n=Qe(t);return n.persistence.runTransaction("Allocate target","readwrite",r=>{let i;return n.li.getTargetData(r,e).next(o=>o?(i=o,ee.resolve(i)):n.li.allocateTargetId(r).next(s=>(i=new Pl(e,s,"TargetPurposeListen",r.currentSequenceNumber),n.li.addTargetData(r,i).next(()=>i))))}).then(r=>{const i=n.vs.get(r.targetId);return(i===null||r.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(n.vs=n.vs.insert(r.targetId,r),n.Fs.set(e,r.targetId)),r})}async function xm(t,e,n){const r=Qe(t),i=r.vs.get(e),o=n?"readwrite":"readwrite-primary";try{n||await r.persistence.runTransaction("Release target",o,s=>r.persistence.referenceDelegate.removeTarget(s,i))}catch(s){if(!ed(s))throw s;Re(pk,`Failed to update sequence numbers for target ${e}: ${s}`)}r.vs=r.vs.remove(e),r.Fs.delete(i.target)}function rR(t,e,n){const r=Qe(t);let i=it.min(),o=It();return r.persistence.runTransaction("Execute query","readwrite",s=>function(l,c,u){const d=Qe(l),f=d.Fs.get(u);return f!==void 0?ee.resolve(d.vs.get(f)):d.li.getTargetData(c,u)}(r,s,ko(e)).next(a=>{if(a)return i=a.lastLimboFreeSnapshotVersion,r.li.getMatchingKeysForTargetId(s,a.targetId).next(l=>{o=l})}).next(()=>r.Cs.getDocumentsMatchingQuery(s,e,n?i:it.min(),n?o:It())).next(a=>(EG(r,AW(e),a),{documents:a,ks:o})))}function SG(t,e){const n=Qe(t),r=Qe(n.li),i=n.vs.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",o=>r.At(o,e).next(s=>s?s.target:null))}function xG(t,e){const n=Qe(t),r=n.Ms.get(e)||it.min();return n.persistence.runTransaction("Get new document changes","readonly",i=>n.xs.getAllFromCollectionGroup(i,e,qq(r,dm),Number.MAX_SAFE_INTEGER)).then(i=>(EG(n,e,i),i))}function EG(t,e,n){let r=t.Ms.get(e)||it.min();n.forEach((i,o)=>{o.readTime.compareTo(r)>0&&(r=o.readTime)}),t.Ms.set(e,r)}/** 3526 * @license 3527 * Copyright 2019 Google LLC 3528 * 3529 * Licensed under the Apache License, Version 2.0 (the "License"); 3530 * you may not use this file except in compliance with the License. 3531 * You may obtain a copy of the License at 3532 * 3533 * http://www.apache.org/licenses/LICENSE-2.0 3534 * 3535 * Unless required by applicable law or agreed to in writing, softw
3535are 3536 * distributed under the License is distributed on an "AS IS" BASIS, 3537 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3538 * See the License for the specific language governing permissions and 3539 * limitations under the License. 3540 */const TG="firestore_clients";function y8(t,e){return`${TG}_${t}_${e}`}const CG="firestore_mutations";function v8(t,e,n){let r=`${CG}_${t}_${n}`;return e.isAuthenticated()&&(r+=`_${e.uid}`),r}const _G="firestore_targets";function Q_(t,e){return`${_G}_${t}_${e}`}/** 3541 * @license 3542 * Copyright 2018 Google LLC 3543 * 3544 * Licensed under the Apache License, Version 2.0 (the "License"); 3545 * you may not use this file except in compliance with the License. 3546 * You may obtain a copy of the License at 3547 * 3548 * http://www.apache.org/licenses/LICENSE-2.0 3549 * 3550 * Unless required by applicable law or agreed to in writing, software 3551 * distributed under the License is distributed on an "AS IS" BASIS, 3552 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3553 * See the License for the specific language governing permissions and 3554 * limitations under the License. 3555 */const ma="SharedClientState";class RS{constructor(e,n,r,i){this.user=e,this.batchId=n,this.state=r,this.error=i}static $s(e,n,r){const i=JSON.parse(r);let o,s=typeof i=="object"&&["pending","acknowledged","rejected"].indexOf(i.state)!==-1&&(i.error===void 0||typeof i.error=="object");return s&&i.error&&(s=typeof i.error.message=="string"&&typeof i.error.code=="string",s&&(o=new Ae(i.error.code,i.error.message))),s?new RS(e,n,i.state,o):(hr(ma,`Failed to parse mutation state for ID '${n}': ${r}`),null)}Ws(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class hy{constructor(e,n,r){this.targetId=e,this.state=n,this.error=r}static $s(e,n){const r=JSON.parse(n);let i,o=typeof r=="object"&&["not-current","current","rejected"].indexOf(r.state)!==-1&&(r.error===void 0||typeof r.error=="object");return o&&r.error&&(o=typeof r.error.message=="string"&&typeof r.error.code=="string",o&&(i=new Ae(r.error.code,r.error.message))),o?new hy(e,r.state,i):(hr(ma,`Failed to parse target state for ID '${e}': ${n}`),null)}Ws(){const e={state:this.state,updateTimeMs:Date.now()};return this.error&&(e.error={code:this.error.code,message:this.error.message}),JSON.stringify(e)}}class MS{constructor(e,n){this.clientId=e,this.activeTargetIds=n}static $s(e,n){const r=JSON.parse(n);let i=typeof r=="object"&&r.activeTargetIds instanceof Array,o=JM();for(let s=0;i&&s<r.activeTargetIds.length;++s)i=Xq(r.activeTargetIds[s]),o=o.add(r.activeTargetIds[s]);return i?new MS(e,o):(hr(ma,`Failed to parse client data for instance '${e}': ${n}`),null)}}class mk{constructor(e,n){this.clientId=e,this.onlineState=n}static $s(e){const n=JSON.parse(e);return typeof n=="object"&&["Unknown","Online","Offline"].indexOf(n.onlineState)!==-1&&typeof n.clientId=="string"?new mk(n.clientId,n.onlineState):(hr(ma,`Failed to parse online state: ${e}`),null)}}class iR{constructor(){this.activeTargetIds=JM()}Qs(e){this.activeTargetIds=this.activeTargetIds.add(e)}Gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class J_{constructor(e,n,r,i,o){this.window=e,this.Ci=n,this.persistenceKey=r,this.zs=i,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.js=this.Hs.bind(this),this.Js=new Rn(gt),this.started=!1,this.Zs=[];const s=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=o,this.Xs=y8(this.persistenceKey,this.zs),this.Ys=function(l){return`firestore_sequence_number_${l}`}(this.persistenceKey),this.Js=this.Js.insert(this.zs,new iR),this.eo=new RegExp(`^${TG}_${s}_([^_]*)$`),this.no=new RegExp(`^${CG}_${s}_(\\d+)(?:_(.*))?$`),this.ro=new RegExp(`^${_G}_${s}_(\\d+)$`),this.io=function(l){return`firestore_online_state_${l}`}(this.persistenceKey),this.so=function(l){return`firestore_bundle_loaded_v2_${l}`}(this.persistenceKey),this.window.addEventListener("storage",this.js)}static v(e){return!(!e||!e.localStorage)}async start(){const e=await this.syncEngine.hs();for(const r of e){if(r===this.zs)continue;const i=this.getItem(y8(this.persistenceKey,r));if(i){const o=MS.$s(r,i);o&&(this.Js=this.Js.insert(o.clientId,o))}}this.oo();const n=this.storage.getItem(this.io);if(n){const r=this._o(n);r&&this.ao(r)}for(const r of this.Zs)this.Hs(r);this.Zs=[],this.window.addEventListener("pagehide",()=>this.shutdown()),this.started=!0}writeSequenceNumber(e){this.setItem(this.Ys,JSON.stringify(e))}getAllActiveQueryTargets(){return this.uo(this.Js)}isActiveQueryTarget(e){let n=!1;
vendor: 4,451 bytes, lines 3555-3559
3555return this.Js.forEach((r,i)=>{i.activeTargetIds.has(e)&&(n=!0)}),n}addPendingMutation(e){this.co(e,"pending")}updateMutationState(e,n,r){this.co(e,n,r),this.lo(e)}addLocalQueryTarget(e,n=!0){let r="not-current";if(this.isActiveQueryTarget(e)){const i=this.storage.getItem(Q_(this.persistenceKey,e));if(i){const o=hy.$s(e,i);o&&(r=o.state)}}return n&&this.ho.Qs(e),this.oo(),r}removeLocalQueryTarget(e){this.ho.Gs(e),this.oo()}isLocalQueryTarget(e){return this.ho.activeTargetIds.has(e)}clearQueryState(e){this.removeItem(Q_(this.persistenceKey,e))}updateQueryState(e,n,r){this.Po(e,n,r)}handleUserChange(e,n,r){n.forEach(i=>{this.lo(i)}),this.currentUser=e,r.forEach(i=>{this.addPendingMutation(i)})}setOnlineState(e){this.To(e)}notifyBundleLoaded(e){this.Io(e)}shutdown(){this.started&&(this.window.removeEventListener("storage",this.js),this.removeItem(this.Xs),this.started=!1)}getItem(e){const n=this.storage.getItem(e);return Re(ma,"READ",e,n),n}setItem(e,n){Re(ma,"SET",e,n),this.storage.setItem(e,n)}removeItem(e){Re(ma,"REMOVE",e),this.storage.removeItem(e)}Hs(e){const n=e;if(n.storageArea===this.storage){if(Re(ma,"EVENT",n.key,n.newValue),n.key===this.Xs)return void hr("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Ci.enqueueRetryable(async()=>{if(this.started){if(n.key!==null){if(this.eo.test(n.key)){if(n.newValue==null){const r=this.Eo(n.key);return this.Ro(r,null)}{const r=this.Ao(n.key,n.newValue);if(r)return this.Ro(r.clientId,r)}}else if(this.no.test(n.key)){if(n.newValue!==null){const r=this.Vo(n.key,n.newValue);if(r)return this.mo(r)}}else if(this.ro.test(n.key)){if(n.newValue!==null){const r=this.fo(n.key,n.newValue);if(r)return this.po(r)}}else if(n.key===this.io){if(n.newValue!==null){const r=this._o(n.newValue);if(r)return this.ao(r)}}else if(n.key===this.Ys){const r=function(o){let s=Ki.ce;if(o!=null)try{const a=JSON.parse(o);tt(typeof a=="number",30636,{yo:o}),s=a}catch(a){hr(ma,"Failed to read sequence number from WebStorage",a)}return s}(n.newValue);r!==Ki.ce&&this.sequenceNumberHandler(r)}else if(n.key===this.so){const r=this.wo(n.newValue);await Promise.all(r.map(i=>this.syncEngine.bo(i)))}}}else this.Zs.push(n)})}}get ho(){return this.Js.get(this.zs)}oo(){this.setItem(this.Xs,this.ho.Ws())}co(e,n,r){const i=new RS(this.currentUser,e,n,r),o=v8(this.persistenceKey,this.currentUser,e);this.setItem(o,i.Ws())}lo(e){const n=v8(this.persistenceKey,this.currentUser,e);this.removeItem(n)}To(e){const n={clientId:this.zs,onlineState:e};this.storage.setItem(this.io,JSON.stringify(n))}Po(e,n,r){const i=Q_(this.persistenceKey,e),o=new hy(e,n,r);this.setItem(i,o.Ws())}Io(e){const n=JSON.stringify(Array.from(e));this.setItem(this.so,n)}Eo(e){const n=this.eo.exec(e);return n?n[1]:null}Ao(e,n){const r=this.Eo(e);return MS.$s(r,n)}Vo(e,n){const r=this.no.exec(e),i=Number(r[1]),o=r[2]!==void 0?r[2]:null;return RS.$s(new Fr(o),i,n)}fo(e,n){const r=this.ro.exec(e),i=Number(r[1]);return hy.$s(i,n)}_o(e){return mk.$s(e)}wo(e){return JSON.parse(e)}async mo(e){if(e.user.uid===this.currentUser.uid)return this.syncEngine.So(e.batchId,e.state,e.error);Re(ma,`Ignoring mutation for non-active user ${e.user.uid}`)}po(e){return this.syncEngine.Do(e.targetId,e.state,e.error)}Ro(e,n){const r=n?this.Js.insert(e,n):this.Js.remove(e),i=this.uo(this.Js),o=this.uo(r),s=[],a=[];return o.forEach(l=>{i.has(l)||s.push(l)}),i.forEach(l=>{o.has(l)||a.push(l)}),this.syncEngine.Co(s,a).then(()=>{this.Js=r})}ao(e){this.Js.get(e.clientId)&&this.onlineStateHandler(e.onlineState)}uo(e){let n=JM();return e.forEach((r,i)=>{n=n.unionWith(i.activeTargetIds)}),n}}class AG{constructor(){this.vo=new iR,this.Fo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,r){}addLocalQueryTarget(e,n=!0){return n&&this.vo.Qs(e),this.Fo[e]||"not-current"}updateQueryState(e,n,r){this.Fo[e]=n}removeLocalQueryTarget(e){this.vo.Gs(e)}isLocalQueryTarget(e){return this.vo.activeTargetIds.has(e)}clearQueryState(e){delete this.Fo[e]}getAllActiveQueryTargets(){return this.vo.activeTargetIds}isActiveQueryTarget(e){return this.vo.activeTargetIds.has(e)}start(){return this.vo=new iR,Promise.resolve()}handleUserChange(e,n,r){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 3556 * @license 3557 * Copyright 2019 Google LLC 3558 * 3559 * Licensed under the Apache License, Version 2.0 (the "License");
3560 * you may not use this file except in compliance with the License. 3561 * You may obtain a copy of the License at 3562 * 3563 * http://www.apache.org/licenses/LICENSE-2.0 3564 * 3565 * Unless required by applicable law or agreed to in writing, software 3566 * distributed under the License is distributed on an "AS IS" BASIS, 3567 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3568 * See the License for the specific language governing permissions and 3569 * limitations under the License. 3570 */class Npe{Mo(e){}shutdown(){}}/** 3571 * @license 3572 * Copyright 2019 Google LLC 3573 * 3574 * Licensed under the Apache License, Version 2.0 (the "License"); 3575 * you may not use this file except in compliance with the License. 3576 * You may obtain a copy of the License at 3577 * 3578 * http://www.apache.org/licenses/LICENSE-2.0 3579 * 3580 * Unless required by applicable law or agreed to in writing, software 3581 * distributed under the License is distributed on an "AS IS" BASIS, 3582 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3583 * See the License for the specific language governing permissions and 3584 * limitations under the License. 3585 */const b8="ConnectivityMonitor";class w8{constructor(){this.xo=()=>this.Oo(),this.No=()=>this.Bo(),this.Lo=[],this.ko()}Mo(e){this.Lo.push(e)}shutdown(){window.removeEventListener("online",this.xo),window.removeEventListener("offline",this.No)}ko(){window.addEventListener("online",this.xo),window.addEventListener("offline",this.No)}Oo(){Re(b8,"Network connectivity changed: AVAILABLE");for(const e of this.Lo)e(0)}Bo(){Re(b8,"Network connectivity changed: UNAVAILABLE");for(const e of this.Lo)e(1)}static v(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 3586 * @license 3587 * Copyright 2023 Google LLC 3588 * 3589 * Licensed under the Apache License, Version 2.0 (the "License"); 3590 * you may not use this file except in compliance with the License. 3591 * You may obtain a copy of the License at 3592 * 3593 * http://www.apache.org/licenses/LICENSE-2.0 3594 * 3595 * Unless required by applicable law or agreed to in writing, software 3596 * distributed under the License is distributed on an "AS IS" BASIS, 3597 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3598 * See the License for the specific language governing permissions and 3599 * limitations under the License. 3600 */let Fb=null;function oR(){return Fb===null?Fb=function(){return 268435456+Math.round(2147483648*Math.random())}():Fb++,"0x"+Fb.toString(16)}/** 3601 * @license 3602 * Copyright 2020 Google LLC 3603 * 3604 * Licensed under the Apache License, Version 2.0 (the "License"); 3605 * you may not use this file except in compliance with the License. 3606 * You may obtain a copy of the License at 3607 * 3608 * http://www.apache.org/licenses/LICENSE-2.0 3609 * 3610 * Unless required by applicable law or agreed to in writing, software 3611 * distributed under the License is distributed on an "AS IS" BASIS, 3612 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3613 * See the License for the specific language governing permissions and 3614 * limitations under the License. 3615 */const Z_="RestConnection",Dpe={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class Lpe{get Ko(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;const n=e.ssl?"https":"http",r=encodeURIComponent(this.databaseId.projectId),i=encodeURIComponent(this.databaseId.database);this.qo=n+"://"+e.host,this.Uo=`projects/${r}/databases/${i}`,this.$o=this.databaseId.database===wS?`project_id=${r}`:`project_id=${r}&database_id=${i}`}Wo(e,n,r,i,o){const s=oR(),a=this.Qo(e,n.toUriEncodedString());Re(Z_,`Sending RPC '${e}' ${s}:`,a,r);const l={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.$o};this.Go(l,i,o);const{host:c}=new URL(a),u=Zs(c);return this.zo(e,a,l,r,u).then(d=>(Re(Z_,`Received RPC '${e}' ${s}: `,d),d),d=>{throw Mf(Z_,`RPC '${e}' ${s} failed with error: `,d,"url: ",a,"request:",r),d})}jo(e,n,r,i,o,s){return this.Wo(e,n,r,i,o)}Go(e,n,r){e["X-Goog-Api-Client"]=function(){return"gl-js/ fire/"+cg}(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),n&&n.headers.forEac
vendor: 4,570 bytes, lines 3615-3645
3615h((i,o)=>e[o]=i),r&&r.headers.forEach((i,o)=>e[o]=i)}Qo(e,n){const r=Dpe[e];let i=`${this.qo}/v1/${n}:${r}`;return this.databaseInfo.apiKey&&(i=`${i}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),i}terminate(){}}/** 3616 * @license 3617 * Copyright 2017 Google LLC 3618 * 3619 * Licensed under the Apache License, Version 2.0 (the "License"); 3620 * you may not use this file except in compliance with the License. 3621 * You may obtain a copy of the License at 3622 * 3623 * http://www.apache.org/licenses/LICENSE-2.0 3624 * 3625 * Unless required by applicable law or agreed to in writing, software 3626 * distributed under the License is distributed on an "AS IS" BASIS, 3627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3628 * See the License for the specific language governing permissions and 3629 * limitations under the License. 3630 */class zpe{constructor(e){this.Ho=e.Ho,this.Jo=e.Jo}Zo(e){this.Xo=e}Yo(e){this.e_=e}t_(e){this.n_=e}onMessage(e){this.r_=e}close(){this.Jo()}send(e){this.Ho(e)}i_(){this.Xo()}s_(){this.e_()}o_(e){this.n_(e)}__(e){this.r_(e)}}/** 3631 * @license 3632 * Copyright 2017 Google LLC 3633 * 3634 * Licensed under the Apache License, Version 2.0 (the "License"); 3635 * you may not use this file except in compliance with the License. 3636 * You may obtain a copy of the License at 3637 * 3638 * http://www.apache.org/licenses/LICENSE-2.0 3639 * 3640 * Unless required by applicable law or agreed to in writing, software 3641 * distributed under the License is distributed on an "AS IS" BASIS, 3642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3643 * See the License for the specific language governing permissions and 3644 * limitations under the License. 3645 */const hi="WebChannelConnection",Wg=(t,e,n)=>{t.listen(e,r=>{try{n(r)}catch(i){setTimeout(()=>{throw i},0)}})};class Dp extends Lpe{constructor(e){super(e),this.a_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}static u_(){if(!Dp.c_){const e=Bq();Wg(e,Vq.STAT_EVENT,n=>{n.stat===L5.PROXY?Re(hi,"STAT_EVENT: detected buffering proxy"):n.stat===L5.NOPROXY&&Re(hi,"STAT_EVENT: detected no buffering proxy")}),Dp.c_=!0}}zo(e,n,r,i,o){const s=oR();return new Promise((a,l)=>{const c=new Lq;c.setWithCredentials(!0),c.listenOnce(zq.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case Q2.NO_ERROR:const d=c.getResponseJson();Re(hi,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(d)),a(d);break;case Q2.TIMEOUT:Re(hi,`RPC '${e}' ${s} timed out`),l(new Ae(le.DEADLINE_EXCEEDED,"Request time out"));break;case Q2.HTTP_ERROR:const f=c.getStatus();if(Re(hi,`RPC '${e}' ${s} failed with status:`,f,"response text:",c.getResponseText()),f>0){let h=c.getResponseJson();Array.isArray(h)&&(h=h[0]);const p=h==null?void 0:h.error;if(p&&p.status&&p.message){const m=function(y){const b=y.toLowerCase().replace(/_/g,"-");return Object.values(le).indexOf(b)>=0?b:le.UNKNOWN}(p.status);l(new Ae(m,p.message))}else l(new Ae(le.UNKNOWN,"Server responded with status "+c.getStatus()))}else l(new Ae(le.UNAVAILABLE,"Connection failed."));break;default:Ye(9055,{l_:e,streamId:s,h_:c.getLastErrorCode(),P_:c.getLastError()})}}finally{Re(hi,`RPC '${e}' ${s} completed.`)}});const u=JSON.stringify(i);Re(hi,`RPC '${e}' ${s} sending request:`,i),c.send(n,"POST",u,r,15)})}T_(e,n,r){const i=oR(),o=[this.qo,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=this.createWebChannelTransport(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},l=this.longPollingOptions.timeoutSeconds;l!==void 0&&(a.longPollingTimeout=Math.round(1e3*l)),this.useFetchStreams&&(a.useFetchStreams=!0),this.Go(a.initMessageHeaders,n,r),a.encodeInitMessageHeaders=!0;const c=o.join("");Re(hi,`Creating RPC '${e}' stream ${i}: ${c}`,a);const u=s.createWebChannel(c,a);this.I_(u);let d=!1,f=!1;const h=new zpe({Ho:p=>{f?Re(hi,`Not sending because RPC '${e}' stream ${i} is closed:`,p):(d||(Re(hi,`Opening RPC '${e}' stream ${i} transport.`),u.open(),d=!0),Re(hi,`RPC '${e}' stream ${i} sending:`,p),u.send(p))},Jo:()=>u.close()});return Wg(u,E1.EventType.OPEN,()=>{f||(Re(hi,`RPC '${e}' stream ${i} transport opened.`),h.i_())}),Wg(u,E1.EventType.CLOSE,()=>{f||(f=!0,Re(hi,`RPC '${e}' stream ${i} transport closed`),h.o_(),this.E_(u))}
3645),Wg(u,E1.EventType.ERROR,p=>{f||(f=!0,Mf(hi,`RPC '${e}' stream ${i} transport errored. Name:`,p.name,"Message:",p.message),h.o_(new Ae(le.UNAVAILABLE,"The operation could not be completed")))}),Wg(u,E1.EventType.MESSAGE,p=>{var m;if(!f){const g=p.data[0];tt(!!g,16349);const y=g,b=(y==null?void 0:y.error)||((m=y[0])==null?void 0:m.error);if(b){Re(hi,`RPC '${e}' stream ${i} received error:`,b);const v=b.status;let S=function(T){const A=br[T];if(A!==void 0)return FW(A)}(v),I=b.message;v==="NOT_FOUND"&&I.includes("database")&&I.includes("does not exist")&&I.includes(this.databaseId.database)&&Mf(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),S===void 0&&(S=le.INTERNAL,I="Unknown error status: "+v+" with message "+b.message),f=!0,h.o_(new Ae(S,I)),u.close()}else Re(hi,`RPC '${e}' stream ${i} received:`,g),h.__(g)}}),Dp.u_(),setTimeout(()=>{h.s_()},0),h}terminate(){this.a_.forEach(e=>e.close()),this.a_=[]}I_(e){this.a_.push(e)}E_(e){this.a_=this.a_.filter(n=>n===e)}Go(e,n,r){super.Go(e,n,r),this.databaseInfo.apiKey&&(e["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return $q()}}/** 3646 * @license 3647 * Copyright 2020 Google LLC 3648 * 3649 * Licensed under the Apache License, Version 2.0 (the "License"); 3650 * you may not use this file except in compliance with the License. 3651 * You may obtain a copy of the License at 3652 * 3653 * http://www.apache.org/licenses/LICENSE-2.0 3654 * 3655 * Unless required by applicable law or agreed to in writing, software 3656 * distributed under the License is distributed on an "AS IS" BASIS, 3657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3658 * See the License for the specific language governing permissions and 3659 * limitations under the License. 3660 */function Vpe(t){return new Dp(t)}/** 3661 * @license 3662 * Copyright 2020 Google LLC 3663 * 3664 * Licensed under the Apache License, Version 2.0 (the "License"); 3665 * you may not use this file except in compliance with the License. 3666 * You may obtain a copy of the License at 3667 * 3668 * http://www.apache.org/licenses/LICENSE-2.0 3669 * 3670 * Unless required by applicable law or agreed to in writing, software 3671 * distributed under the License is distributed on an "AS IS" BASIS, 3672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3673 * See the License for the specific language governing permissions and 3674 * limitations under the License. 3675 */function IG(){return typeof window<"u"?window:null}function aw(){return typeof document<"u"?document:null}/** 3676 * @license 3677 * Copyright 2020 Google LLC 3678 * 3679 * Licensed under the Apache License, Version 2.0 (the "License"); 3680 * you may not use this file except in compliance with the License. 3681 * You may obtain a copy of the License at 3682 * 3683 * http://www.apache.org/licenses/LICENSE-2.0 3684 * 3685 * Unless required by applicable law or agreed to in writing, software 3686 * distributed under the License is distributed on an "AS IS" BASIS, 3687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3688 * See the License for the specific language governing permissions and 3689 * limitations under the License. 3690 */function IE(t){return new Hhe(t,!0)}/** 3691 * @license 3692 * Copyright 2017 Google LLC 3693 * 3694 * Licensed under the Apache License, Version 2.0 (the "License"); 3695 * you may not use this file except in compliance with the License. 3696 * You may obtain a copy of the License at 3697 * 3698 * http://www.apache.org/licenses/LICENSE-2.0 3699 * 3700 * Unless required by applicable law or agreed to in writing, software 3701 * distributed under the License is distributed on an "AS IS" BASIS, 3702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3703 * See the License for the specific language governing permissions and 3704 * limitations under the License. 3705 */Dp.c_=!1;class gk{constructor(e,n,r=1e3,i=1.5,o=6e4){this.Ci=e,this.timerId=n,this.R_=r,this.A_=i,this.V_=o,this.d_=0,this.m_=null,this.f_=Date.now(),this.reset()}reset(){this.d_=0}g_(){this.d_=this.V_}p_(e){this.cancel();const n=Math.floor(this.d_+this.y_()),r=Math.max(0,Date.now()-this.f_),i=Math.max(0,n-r);i>0&&Re("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.d_}
3705 ms, delay with jitter: ${n} ms, last attempt: ${r} ms ago)`),this.m_=this.Ci.enqueueAfterDelay(this.timerId,i,()=>(this.f_=Date.now(),e())),this.d_*=this.A_,this.d_<this.R_&&(this.d_=this.R_),this.d_>this.V_&&(this.d_=this.V_)}w_(){this.m_!==null&&(this.m_.skipDelay(),this.m_=null)}cancel(){this.m_!==null&&(this.m_.cancel(),this.m_=null)}y_(){return(Math.random()-.5)*this.d_}}/** 3706 * @license 3707 * Copyright 2017 Google LLC 3708 * 3709 * Licensed under the Apache License, Version 2.0 (the "License"); 3710 * you may not use this file except in compliance with the License. 3711 * You may obtain a copy of the License at 3712 * 3713 * http://www.apache.org/licenses/LICENSE-2.0 3714 * 3715 * Unless required by applicable law or agreed to in writing, software 3716 * distributed under the License is distributed on an "AS IS" BASIS, 3717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3718 * See the License for the specific language governing permissions and 3719 * limitations under the License. 3720 */const S8="PersistentStream";class RG{constructor(e,n,r,i,o,s,a,l){this.Ci=e,this.b_=r,this.S_=i,this.connection=o,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=a,this.listener=l,this.state=0,this.D_=0,this.C_=null,this.v_=null,this.stream=null,this.F_=0,this.M_=new gk(e,n)}x_(){return this.state===1||this.state===5||this.O_()}O_(){return this.state===2||this.state===3}start(){this.F_=0,this.state!==4?this.auth():this.N_()}async stop(){this.x_()&&await this.close(0)}B_(){this.state=0,this.M_.reset()}L_(){this.O_()&&this.C_===null&&(this.C_=this.Ci.enqueueAfterDelay(this.b_,6e4,()=>this.k_()))}K_(e){this.q_(),this.stream.send(e)}async k_(){if(this.O_())return this.close(0)}q_(){this.C_&&(this.C_.cancel(),this.C_=null)}U_(){this.v_&&(this.v_.cancel(),this.v_=null)}async close(e,n){this.q_(),this.U_(),this.M_.cancel(),this.D_++,e!==4?this.M_.reset():n&&n.code===le.RESOURCE_EXHAUSTED?(hr(n.toString()),hr("Using maximum backoff delay to prevent overloading the backend."),this.M_.g_()):n&&n.code===le.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.W_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.t_(n)}W_(){}auth(){this.state=1;const e=this.Q_(this.D_),n=this.D_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([r,i])=>{this.D_===n&&this.G_(r,i)},r=>{e(()=>{const i=new Ae(le.UNKNOWN,"Fetching auth token failed: "+r.message);return this.z_(i)})})}G_(e,n){const r=this.Q_(this.D_);this.stream=this.j_(e,n),this.stream.Zo(()=>{r(()=>this.listener.Zo())}),this.stream.Yo(()=>{r(()=>(this.state=2,this.v_=this.Ci.enqueueAfterDelay(this.S_,1e4,()=>(this.O_()&&(this.state=3),Promise.resolve())),this.listener.Yo()))}),this.stream.t_(i=>{r(()=>this.z_(i))}),this.stream.onMessage(i=>{r(()=>++this.F_==1?this.H_(i):this.onNext(i))})}N_(){this.state=5,this.M_.p_(async()=>{this.state=0,this.start()})}z_(e){return Re(S8,`close with error: ${e}`),this.stream=null,this.close(4,e)}Q_(e){return n=>{this.Ci.enqueueAndForget(()=>this.D_===e?n():(Re(S8,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class Bpe extends RG{constructor(e,n,r,i,o,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,r,i,s),this.serializer=o}j_(e,n){return this.connection.T_("Listen",e,n)}H_(e){return this.onNext(e)}onNext(e){this.M_.reset();const n=Ghe(this.serializer,e),r=function(o){if(!("targetChange"in o))return it.min();const s=o.targetChange;return s.targetIds&&s.targetIds.length?it.min():s.readTime?Gr(s.readTime):it.min()}(e);return this.listener.J_(n,r)}Z_(e){const n={};n.database=J5(this.serializer),n.addTarget=function(o,s){let a;const l=s.target;if(a=SS(l)?{documents:YW(o,l)}:{query:sk(o,l).ft},a.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){a.resumeToken=UW(o,s.resumeToken);const c=X5(o,s.expectedCount);c!==null&&(a.expectedCount=c)}else if(s.snapshotVersion.compareTo(it.min())>0){a.readTime=Sm(o,s.snapshotVersion.toTimestamp());const c=X5(o,s.expectedCount);c!==null&&(a.expectedCount=c)}return a}(this.serializer,e);const r=Xhe(this.serializer,e);r&&(n.labels=r),this.K_(n)}X_(e){const n={};n.database=J5(this.serializer),n.removeTarget=e,this.K_(n)}}class $pe extends RG{constructor(e,n,r,i,o,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,r,i,s),this.serializer
vendor: 4,130 bytes, lines 3720-3751
3720=o}get Y_(){return this.F_>0}start(){this.lastStreamToken=void 0,super.start()}W_(){this.Y_&&this.ea([])}j_(e,n){return this.connection.T_("Write",e,n)}H_(e){return tt(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,tt(!e.writeResults||e.writeResults.length===0,55816),this.listener.ta()}onNext(e){tt(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.M_.reset();const n=Khe(e.writeResults,e.commitTime),r=Gr(e.commitTime);return this.listener.na(r,n)}ra(){const e={};e.database=J5(this.serializer),this.K_(e)}ea(e){const n={streamToken:this.lastStreamToken,writes:e.map(r=>p0(this.serializer,r))};this.K_(n)}}/** 3721 * @license 3722 * Copyright 2017 Google LLC 3723 * 3724 * Licensed under the Apache License, Version 2.0 (the "License"); 3725 * you may not use this file except in compliance with the License. 3726 * You may obtain a copy of the License at 3727 * 3728 * http://www.apache.org/licenses/LICENSE-2.0 3729 * 3730 * Unless required by applicable law or agreed to in writing, software 3731 * distributed under the License is distributed on an "AS IS" BASIS, 3732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3733 * See the License for the specific language governing permissions and 3734 * limitations under the License. 3735 */class Fpe{}class jpe extends Fpe{constructor(e,n,r,i){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=r,this.serializer=i,this.ia=!1}sa(){if(this.ia)throw new Ae(le.FAILED_PRECONDITION,"The client has already been terminated.")}Wo(e,n,r,i){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([o,s])=>this.connection.Wo(e,Q5(n,r),i,o,s)).catch(o=>{throw o.name==="FirebaseError"?(o.code===le.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),o):new Ae(le.UNKNOWN,o.toString())})}jo(e,n,r,i,o){return this.sa(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,a])=>this.connection.jo(e,Q5(n,r),i,s,a,o)).catch(s=>{throw s.name==="FirebaseError"?(s.code===le.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Ae(le.UNKNOWN,s.toString())})}terminate(){this.ia=!0,this.connection.terminate()}}function Hpe(t,e,n,r){return new jpe(t,e,n,r)}class Upe{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.oa=0,this._a=null,this.aa=!0}ua(){this.oa===0&&(this.ca("Unknown"),this._a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this._a=null,this.la("Backend didn't respond within 10 seconds."),this.ca("Offline"),Promise.resolve())))}ha(e){this.state==="Online"?this.ca("Unknown"):(this.oa++,this.oa>=1&&(this.Pa(),this.la(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ca("Offline")))}set(e){this.Pa(),this.oa=0,e==="Online"&&(this.aa=!1),this.ca(e)}ca(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}la(e){const n=`Could not reach Cloud Firestore backend. ${e} 3736This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.aa?(hr(n),this.aa=!1):Re("OnlineStateTracker",n)}Pa(){this._a!==null&&(this._a.cancel(),this._a=null)}}/** 3737 * @license 3738 * Copyright 2017 Google LLC 3739 * 3740 * Licensed under the Apache License, Version 2.0 (the "License"); 3741 * you may not use this file except in compliance with the License. 3742 * You may obtain a copy of the License at 3743 * 3744 * http://www.apache.org/licenses/LICENSE-2.0 3745 * 3746 * Unless required by applicable law or agreed to in writing, software 3747 * distributed under the License is distributed on an "AS IS" BASIS, 3748 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3749 * See the License for the specific language governing permissions and 3750 * limitations under the License. 3751 */const Bf="RemoteStore";class qpe{constructor(e,n,r,i,o){this.localStore=e,this.datastore=n,this.asyncQueue=r,this.remoteSyncer={},this.Ta=[],this.Ia=new Map,this.Ea=new Set,this.Ra=[],this.Aa=o,this.Aa.Mo(s=>
3751{r.enqueueAndForget(async()=>{hh(this)&&(Re(Bf,"Restarting streams for network reachability change."),await async function(l){const c=Qe(l);c.Ea.add(4),await kv(c),c.Va.set("Unknown"),c.Ea.delete(4),await RE(c)}(this))})}),this.Va=new Upe(r,i)}}async function RE(t){if(hh(t))for(const e of t.Ra)await e(!0)}async function kv(t){for(const e of t.Ra)await e(!1)}function ME(t,e){const n=Qe(t);n.Ia.has(e.targetId)||(n.Ia.set(e.targetId,e),bk(n)?vk(n):hg(n).O_()&&yk(n,e))}function Em(t,e){const n=Qe(t),r=hg(n);n.Ia.delete(e),r.O_()&&MG(n,e),n.Ia.size===0&&(r.O_()?r.L_():hh(n)&&n.Va.set("Unknown"))}function yk(t,e){if(t.da.$e(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(it.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}hg(t).Z_(e)}function MG(t,e){t.da.$e(e),hg(t).X_(e)}function vk(t){t.da=new Bhe({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),At:e=>t.Ia.get(e)||null,ht:()=>t.datastore.serializer.databaseId}),hg(t).start(),t.Va.ua()}function bk(t){return hh(t)&&!hg(t).x_()&&t.Ia.size>0}function hh(t){return Qe(t).Ea.size===0}function kG(t){t.da=void 0}async function Wpe(t){t.Va.set("Online")}async function Gpe(t){t.Ia.forEach((e,n)=>{yk(t,e)})}async function Kpe(t,e){kG(t),bk(t)?(t.Va.ha(e),vk(t)):t.Va.set("Unknown")}async function Ype(t,e,n){if(t.Va.set("Online"),e instanceof HW&&e.state===2&&e.cause)try{await async function(i,o){const s=o.cause;for(const a of o.targetIds)i.Ia.has(a)&&(await i.remoteSyncer.rejectListen(a,s),i.Ia.delete(a),i.da.removeTarget(a))}(t,e)}catch(r){Re(Bf,"Failed to remove targets %s: %s ",e.targetIds.join(","),r),await kS(t,r)}else if(e instanceof ow?t.da.Xe(e):e instanceof jW?t.da.st(e):t.da.tt(e),!n.isEqual(it.min()))try{const r=await wG(t.localStore);n.compareTo(r)>=0&&await function(o,s){const a=o.da.Tt(s);
vendor: 4,612 bytes, lines 3751-3770
3751return a.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){const u=o.Ia.get(c);u&&o.Ia.set(c,u.withResumeToken(l.resumeToken,s))}}),a.targetMismatches.forEach((l,c)=>{const u=o.Ia.get(l);if(!u)return;o.Ia.set(l,u.withResumeToken(mr.EMPTY_BYTE_STRING,u.snapshotVersion)),MG(o,l);const d=new Pl(u.target,l,c,u.sequenceNumber);yk(o,d)}),o.remoteSyncer.applyRemoteEvent(a)}(t,n)}catch(r){Re(Bf,"Failed to raise snapshot:",r),await kS(t,r)}}async function kS(t,e,n){if(!ed(e))throw e;t.Ea.add(1),await kv(t),t.Va.set("Offline"),n||(n=()=>wG(t.localStore)),t.asyncQueue.enqueueRetryable(async()=>{Re(Bf,"Retrying IndexedDB access"),await n(),t.Ea.delete(1),await RE(t)})}function PG(t,e){return e().catch(n=>kS(t,n,e))}async function fg(t){const e=Qe(t),n=Fu(e);let r=e.Ta.length>0?e.Ta[e.Ta.length-1].batchId:uf;for(;Xpe(e);)try{const i=await Ope(e.localStore,r);if(i===null){e.Ta.length===0&&n.L_();break}r=i.batchId,Qpe(e,i)}catch(i){await kS(e,i)}OG(e)&&NG(e)}function Xpe(t){return hh(t)&&t.Ta.length<10}function Qpe(t,e){t.Ta.push(e);const n=Fu(t);n.O_()&&n.Y_&&n.ea(e.mutations)}function OG(t){return hh(t)&&!Fu(t).x_()&&t.Ta.length>0}function NG(t){Fu(t).start()}async function Jpe(t){Fu(t).ra()}async function Zpe(t){const e=Fu(t);for(const n of t.Ta)e.ea(n.mutations)}async function eme(t,e,n){const r=t.Ta.shift(),i=nk.from(r,e,n);await PG(t,()=>t.remoteSyncer.applySuccessfulWrite(i)),await fg(t)}async function tme(t,e){e&&Fu(t).Y_&&await async function(r,i){if(function(s){return $W(s)&&s!==le.ABORTED}(i.code)){const o=r.Ta.shift();Fu(r).B_(),await PG(r,()=>r.remoteSyncer.rejectFailedWrite(o.batchId,i)),await fg(r)}}(t,e),OG(t)&&NG(t)}async function x8(t,e){const n=Qe(t);n.asyncQueue.verifyOperationInProgress(),Re(Bf,"RemoteStore received new credentials");const r=hh(n);n.Ea.add(3),await kv(n),r&&n.Va.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.Ea.delete(3),await RE(n)}async function sR(t,e){const n=Qe(t);e?(n.Ea.delete(2),await RE(n)):e||(n.Ea.add(2),await kv(n),n.Va.set("Unknown"))}function hg(t){return t.ma||(t.ma=function(n,r,i){const o=Qe(n);return o.sa(),new Bpe(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Zo:Wpe.bind(null,t),Yo:Gpe.bind(null,t),t_:Kpe.bind(null,t),J_:Ype.bind(null,t)}),t.Ra.push(async e=>{e?(t.ma.B_(),bk(t)?vk(t):t.Va.set("Unknown")):(await t.ma.stop(),kG(t))})),t.ma}function Fu(t){return t.fa||(t.fa=function(n,r,i){const o=Qe(n);return o.sa(),new $pe(r,o.connection,o.authCredentials,o.appCheckCredentials,o.serializer,i)}(t.datastore,t.asyncQueue,{Zo:()=>Promise.resolve(),Yo:Jpe.bind(null,t),t_:tme.bind(null,t),ta:Zpe.bind(null,t),na:eme.bind(null,t)}),t.Ra.push(async e=>{e?(t.fa.B_(),await fg(t)):(await t.fa.stop(),t.Ta.length>0&&(Re(Bf,`Stopping write stream with ${t.Ta.length} pending writes`),t.Ta=[]))})),t.fa}/** 3752 * @license 3753 * Copyright 2017 Google LLC 3754 * 3755 * Licensed under the Apache License, Version 2.0 (the "License"); 3756 * you may not use this file except in compliance with the License. 3757 * You may obtain a copy of the License at 3758 * 3759 * http://www.apache.org/licenses/LICENSE-2.0 3760 * 3761 * Unless required by applicable law or agreed to in writing, software 3762 * distributed under the License is distributed on an "AS IS" BASIS, 3763 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3764 * See the License for the specific language governing permissions and 3765 * limitations under the License. 3766 */class wk{constructor(e,n,r,i,o){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=r,this.op=i,this.removalCallback=o,this.deferred=new Mo,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,n,r,i,o){const s=Date.now()+r,a=new wk(e,n,s,i,o);return a.start(r),a}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new Ae(le.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Sk(t,e){if(hr("AsyncQueue",`${e}: ${t}`),ed(t))return new Ae(le.UNAVAILABLE,`${e}: ${t}`);throw t}/** 3767 * @license 3768 * Copyright 2017 Google LLC 3769 * 3770 * Licensed under the Apache License, Version 2.0 (the "License");
3771 * you may not use this file except in compliance with the License. 3772 * You may obtain a copy of the License at 3773 * 3774 * http://www.apache.org/licenses/LICENSE-2.0 3775 * 3776 * Unless required by applicable law or agreed to in writing, software 3777 * distributed under the License is distributed on an "AS IS" BASIS, 3778 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3779 * See the License for the specific language governing permissions and 3780 * limitations under the License. 3781 */class Lp{static emptySet(e){return new Lp(e.comparator)}constructor(e){this.comparator=e?(n,r)=>e(n,r)||He.comparator(n.key,r.key):(n,r)=>He.comparator(n.key,r.key),this.keyedMap=T1(),this.sortedSet=new Rn(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((n,r)=>(e(n),!1))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof Lp)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();for(;n.hasNext();){const i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0}toString(){const e=[];return this.forEach(n=>{e.push(n.toString())}),e.length===0?"DocumentSet ()":`DocumentSet ( 3782 `+e.join(` 3783`)+` 3784)`}copy(e,n){const r=new Lp;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r}}/** 3785 * @license 3786 * Copyright 2017 Google LLC 3787 * 3788 * Licensed under the Apache License, Version 2.0 (the "License"); 3789 * you may not use this file except in compliance with the License. 3790 * You may obtain a copy of the License at 3791 * 3792 * http://www.apache.org/licenses/LICENSE-2.0 3793 * 3794 * Unless required by applicable law or agreed to in writing, software 3795 * distributed under the License is distributed on an "AS IS" BASIS, 3796 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3797 * See the License for the specific language governing permissions and 3798 * limitations under the License. 3799 */class E8{constructor(){this.ga=new Rn(He.comparator)}track(e){const n=e.doc.key,r=this.ga.get(n);r?e.type!==0&&r.type===3?this.ga=this.ga.insert(n,e):e.type===3&&r.type!==1?this.ga=this.ga.insert(n,{type:r.type,doc:e.doc}):e.type===2&&r.type===2?this.ga=this.ga.insert(n,{type:2,doc:e.doc}):e.type===2&&r.type===0?this.ga=this.ga.insert(n,{type:0,doc:e.doc}):e.type===1&&r.type===0?this.ga=this.ga.remove(n):e.type===1&&r.type===2?this.ga=this.ga.insert(n,{type:1,doc:r.doc}):e.type===0&&r.type===1?this.ga=this.ga.insert(n,{type:2,doc:e.doc}):Ye(63341,{Vt:e,pa:r}):this.ga=this.ga.insert(n,e)}ya(){const e=[];return this.ga.inorderTraversal((n,r)=>{e.push(r)}),e}}class Tm{constructor(e,n,r,i,o,s,a,l,c){this.query=e,this.docs=n,this.oldDocs=r,this.docChanges=i,this.mutatedKeys=o,this.fromCache=s,this.syncStateChanged=a,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,n,r,i,o){const s=[];return n.forEach(a=>{s.push({type:0,doc:a})}),new Tm(e,n,Lp.emptySet(n),s,r,i,!0,!1,o)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&xE(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,r=e.docChanges;if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(n[i].type!==r[i].type||!n[i].doc.isEqual(r[i].doc))return!1;return!0}}/** 3800 * @license 3801 * Copyright 2017 Google LLC 3802 * 3803 * Licensed under the Apache License, Version 2.0 (the "License"); 3804 * you may not use this file except in compliance with the License. 3805 * You may obtain a copy of the License at 3806 * 3807 * http://www.apache.org/licenses/LICENSE-2.0 3808 * 3809 * Unless required by applicable law or agreed to in writing, softw
3809are 3810 * distributed under the License is distributed on an "AS IS" BASIS, 3811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3812 * See the License for the specific language governing permissions and 3813 * limitations under the License. 3814 */class nme{constructor(){this.wa=void 0,this.ba=[]}Sa(){return this.ba.some(e=>e.Da())}}class rme{constructor(){this.queries=T8(),this.onlineState="Unknown",this.Ca=new Set}terminate(){(function(n,r){const i=Qe(n),o=i.queries;i.queries=T8(),o.forEach((s,a)=>{for(const l of a.ba)l.onError(r)})})(this,new Ae(le.ABORTED,"Firestore shutting down"))}}function T8(){return new cc(t=>_W(t),xE)}async function xk(t,e){const n=Qe(t);let r=3;const i=e.query;let o=n.queries.get(i);o?!o.Sa()&&e.Da()&&(r=2):(o=new nme,r=e.Da()?0:1);try{switch(r){case 0:o.wa=await n.onListen(i,!0);break;case 1:o.wa=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(s){const a=Sk(s,`Initialization of query '${Yh(e.query)}' failed`);return void e.onError(a)}n.queries.set(i,o),o.ba.push(e),e.va(n.onlineState),o.wa&&e.Fa(o.wa)&&Tk(n)}async function Ek(t,e){const n=Qe(t),r=e.query;let i=3;const o=n.queries.get(r);if(o){const s=o.ba.indexOf(e);s>=0&&(o.ba.splice(s,1),o.ba.length===0?i=e.Da()?0:1:!o.Sa()&&e.Da()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function ime(t,e){const n=Qe(t);let r=!1;for(const i of e){const o=i.query,s=n.queries.get(o);if(s){for(const a of s.ba)a.Fa(i)&&(r=!0);s.wa=i}}r&&Tk(n)}function ome(t,e,n){const r=Qe(t),i=r.queries.get(e);if(i)for(const o of i.ba)o.onError(n);r.queries.delete(e)}function Tk(t){t.Ca.forEach(e=>{e.next()})}var aR,C8;(C8=aR||(aR={})).Ma="default",C8.Cache="cache";class Ck{constructor(e,n,r){this.query=e,this.xa=n,this.Oa=!1,this.Na=null,this.onlineState="Unknown",this.options=r||{}}Fa(e){if(!this.options.includeMetadataChanges){const r=[];for(const i of e.docChanges)i.type!==3&&r.push(i);e=new Tm(e.query,e.docs,e.oldDocs,r,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.Oa?this.Ba(e)&&(this.xa.next(e),n=!0):this.La(e,this.onlineState)&&(this.ka(e),n=!0),this.Na=e,n}onError(e){this.xa.error(e)}va(e){this.onlineState=e;let n=!1;return this.Na&&!this.Oa&&this.La(this.Na,e)&&(this.ka(this.Na),n=!0),n}La(e,n){if(!e.fromCache||!this.Da())return!0;const r=n!=="Offline";return(!this.options.Ka||!r)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}Ba(e){if(e.docChanges.length>0)return!0;const n=this.Na&&this.Na.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}ka(e){e=Tm.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.Oa=!0,this.xa.next(e)}Da(){return this.options.source!==aR.Cache}}/** 3815 * @license 3816 * Copyright 2017 Google LLC 3817 * 3818 * Licensed under the Apache License, Version 2.0 (the "License"); 3819 * you may not use this file except in compliance with the License. 3820 * You may obtain a copy of the License at 3821 * 3822 * http://www.apache.org/licenses/LICENSE-2.0 3823 * 3824 * Unless required by applicable law or agreed to in writing, software 3825 * distributed under the License is distributed on an "AS IS" BASIS, 3826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3827 * See the License for the specific language governing permissions and 3828 * limitations under the License. 3829 */class DG{constructor(e){this.key=e}}class LG{constructor(e){this.key=e}}class sme{constructor(e,n){this.query=e,this.Za=n,this.Xa=null,this.hasCachedResults=!1,this.current=!1,this.Ya=It(),this.mutatedKeys=It(),this.eu=IW(e),this.tu=new Lp(this.eu)}get nu(){return this.Za}ru(e,n){const r=n?n.iu:new E8,i=n?n.tu:this.tu;let o=n?n.mutatedKeys:this.mutatedKeys,s=i,a=!1;const l=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,c=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((u,d)=>{const f=i.get(u),h=Av(this.query,d)?d:null,p=!!f&&this.mutatedKeys.has(f.key),m=!!h&&(h.hasLocalMutations||this.mutatedKeys.has(h.key)&&h.hasCommittedMutations);let g=!1;f&&h?f.data.isEqual(h.data)?p!==m&&(r.track({type:3,doc:h}),g=!0):this.su(f,h)||(r.track({type:2,doc:h}),g=!0,(l&&this.eu(h,l)>
vendor: 3,834 bytes, line 3829
38290||c&&this.eu(h,c)<0)&&(a=!0)):!f&&h?(r.track({type:0,doc:h}),g=!0):f&&!h&&(r.track({type:1,doc:f}),g=!0,(l||c)&&(a=!0)),g&&(h?(s=s.add(h),o=m?o.add(u):o.delete(u)):(s=s.delete(u),o=o.delete(u)))}),this.query.limit!==null)for(;s.size>this.query.limit;){const u=this.query.limitType==="F"?s.last():s.first();s=s.delete(u.key),o=o.delete(u.key),r.track({type:1,doc:u})}return{tu:s,iu:r,Ss:a,mutatedKeys:o}}su(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,r,i){const o=this.tu;this.tu=e.tu,this.mutatedKeys=e.mutatedKeys;const s=e.iu.ya();s.sort((u,d)=>function(h,p){const m=g=>{switch(g){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Ye(20277,{Vt:g})}};return m(h)-m(p)}(u.type,d.type)||this.eu(u.doc,d.doc)),this.ou(r),i=i??!1;const a=n&&!i?this._u():[],l=this.Ya.size===0&&this.current&&!i?1:0,c=l!==this.Xa;return this.Xa=l,s.length!==0||c?{snapshot:new Tm(this.query,e.tu,o,s,e.mutatedKeys,l===0,c,!1,!!r&&r.resumeToken.approximateByteSize()>0),au:a}:{au:a}}va(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({tu:this.tu,iu:new E8,mutatedKeys:this.mutatedKeys,Ss:!1},!1)):{au:[]}}uu(e){return!this.Za.has(e)&&!!this.tu.has(e)&&!this.tu.get(e).hasLocalMutations}ou(e){e&&(e.addedDocuments.forEach(n=>this.Za=this.Za.add(n)),e.modifiedDocuments.forEach(n=>{}),e.removedDocuments.forEach(n=>this.Za=this.Za.delete(n)),this.current=e.current)}_u(){if(!this.current)return[];const e=this.Ya;this.Ya=It(),this.tu.forEach(r=>{this.uu(r.key)&&(this.Ya=this.Ya.add(r.key))});const n=[];return e.forEach(r=>{this.Ya.has(r)||n.push(new LG(r))}),this.Ya.forEach(r=>{e.has(r)||n.push(new DG(r))}),n}cu(e){this.Za=e.ks,this.Ya=It();const n=this.ru(e.documents);return this.applyChanges(n,!0)}lu(){return Tm.fromInitialDocuments(this.query,this.tu,this.mutatedKeys,this.Xa===0,this.hasCachedResults)}}const pg="SyncEngine";class ame{constructor(e,n,r){this.query=e,this.targetId=n,this.view=r}}class lme{constructor(e){this.key=e,this.hu=!1}}class cme{constructor(e,n,r,i,o,s){this.localStore=e,this.remoteStore=n,this.eventManager=r,this.sharedClientState=i,this.currentUser=o,this.maxConcurrentLimboResolutions=s,this.Pu={},this.Tu=new cc(a=>_W(a),xE),this.Iu=new Map,this.Eu=new Set,this.Ru=new Rn(He.comparator),this.Au=new Map,this.Vu=new ck,this.du={},this.mu=new Map,this.fu=Vf.ar(),this.onlineState="Unknown",this.gu=void 0}get isPrimaryClient(){return this.gu===!0}}async function ume(t,e,n=!0){const r=kE(t);let i;const o=r.Tu.get(e);return o?(r.sharedClientState.addLocalQueryTarget(o.targetId),i=o.view.lu()):i=await zG(r,e,n,!0),i}async function dme(t,e){const n=kE(t);await zG(n,e,!0,!1)}async function zG(t,e,n,r){const i=await IS(t.localStore,ko(e)),o=i.targetId,s=t.sharedClientState.addLocalQueryTarget(o,n);let a;return r&&(a=await _k(t,e,o,s==="current",i.resumeToken)),t.isPrimaryClient&&n&&ME(t.remoteStore,i),a}async function _k(t,e,n,r,i){t.pu=(d,f,h)=>async function(m,g,y,b){let v=g.view.ru(y);v.Ss&&(v=await rR(m.localStore,g.query,!1).then(({documents:T})=>g.view.ru(T,v)));const S=b&&b.targetChanges.get(g.targetId),I=b&&b.targetMismatches.get(g.targetId)!=null,O=g.view.applyChanges(v,m.isPrimaryClient,S,I);return lR(m,g.targetId,O.au),O.snapshot}(t,d,f,h);const o=await rR(t.localStore,e,!0),s=new sme(e,o.ks),a=s.ru(o.documents),l=Mv.createSynthesizedTargetChangeForCurrentChange(n,r&&t.onlineState!=="Offline",i),c=s.applyChanges(a,t.isPrimaryClient,l);lR(t,n,c.au);const u=new ame(e,n,s);return t.Tu.set(e,u),t.Iu.has(n)?t.Iu.get(n).push(e):t.Iu.set(n,[e]),c.snapshot}async function fme(t,e,n){const r=Qe(t),i=r.Tu.get(e),o=r.Iu.get(i.targetId);if(o.length>1)return r.Iu.set(i.targetId,o.filter(s=>!xE(s,e))),void r.Tu.delete(e);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
3829ientState.isActiveQueryTarget(i.targetId)||await xm(r.localStore,i.targetId,!1).then(()=>{r.sharedClientState.clearQueryState(i.targetId),n&&Em(r.remoteStore,i.targetId),Cm(r,i.targetId)}).catch(Zu)):(Cm(r,i.targetId),await xm(r.localStore,i.targetId,!0))}async function hme(t,e){const n=Qe(t),r=n.Tu.get(e),i=n.Iu.get(r.targetId);n.isPrimaryClient&&i.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),Em(n.remoteStore,r.targetId))}async function pme(t,e,n){const r=Mk(t);try{const i=await function(s,a){const l=Qe(s),c=cn.now(),u=a.reduce((h,p)=>h.add(p.key),It());let d,f;return l.persistence.runTransaction("Locally write mutations","readwrite",h=>{let p=Co(),m=It();return l.xs.getEntries(h,u).next(g=>{p=g,p.forEach((y,b)=>{b.isValidDocument()||(m=m.add(y))})}).next(()=>l.localDocuments.getOverlayedDocuments(h,p)).next(g=>{d=g;const y=[];for(const b of a){const v=Nhe(b,d.get(b.key).overlayedDocument);v!=null&&y.push(new uc(b.key,v,gW(v.value.mapValue),Wn.exists(!0)))}return l.mutationQueue.addMutationBatch(h,c,y,a)}).next(g=>{f=g;const y=g.applyToLocalDocumentSet(d,m);return l.documentOverlayCache.saveOverlays(h,g.batchId,y)})}).then(()=>({batchId:f.batchId,changes:MW(d)}))}(r.localStore,e);r.sharedClientState.addPendingMutation(i.batchId),function(s,a,l){let c=s.du[s.currentUser.toKey()];c||(c=new Rn(gt)),c=c.insert(a,l),s.du[s.currentUser.toKey()]=c}(r,i.batchId,n),await rd(r,i.changes),await fg(r.remoteStore)}catch(i){const o=Sk(i,"Failed to persist write");n.reject(o)}}async function VG(t,e){const n=Qe(t);try{const r=await kpe(n.localStore,e);
3829e.targetChanges.forEach((i,o)=>{const s=n.Au.get(o);s&&(tt(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1,22616),i.addedDocuments.size>0?s.hu=!0:i.modifiedDocuments.size>0?tt(s.hu,14607):i.removedDocuments.size>0&&(tt(s.hu,42227),s.hu=!1))}),await rd(n,r,e)}catch(r){await Zu(r)}}function _8(t,e,n){const r=Qe(t);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){const i=[];r.Tu.forEach((o,s)=>{const a=s.view.va(e);a.snapshot&&i.push(a.snapshot)}),function(s,a){const l=Qe(s);l.onlineState=a;let c=!1;l.queries.forEach((u,d)=>{for(const f of d.ba)f.va(a)&&(c=!0)}),c&&Tk(l)}(r.eventManager,e),i.length&&r.Pu.J_(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}async function mme(t,e,n){const r=Qe(t);r.sharedClientState.updateQueryState(e,"rejected",n);const i=r.Au.get(e),o=i&&i.key;if(o){let s=new Rn(He.comparator);s=s.insert(o,qn.newNoDocument(o,it.min()));const a=It().add(o),l=new Rv(it.min(),new Map,new Rn(gt),s,a);await VG(r,l),r.Ru=r.Ru.remove(o),r.Au.delete(e),Rk(r)}else await xm(r.localStore,e,!1).then(()=>Cm(r,e,n)).catch(Zu)}async function gme(t,e){const n=Qe(t),r=e.batch.batchId;try{const i=await Mpe(n.localStore,e);Ik(n,r,null),Ak(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),await rd(n,i)}catch(i){await Zu(i)}}async function yme(t,e,n){const r=Qe(t);try{const i=await function(s,a){const l=Qe(s);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,a).next(d=>(tt(d!==null,37113),u=d.keys(),l.mutationQueue.removeMutationBatch(c,d))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,a)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})}(r.localStore,e);Ik(r,e,n),Ak(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),await rd(r,i)}catch(i){await Zu(i)}}function Ak(t,e){(t.mu.get(e)||[]).forEach(n=>{n.resolve()}),t.mu.delete(e)}function Ik(t,e,n){const r=Qe(t);let i=r.du[r.currentUser.toKey()];if(i){const o=i.get(e);o&&(n?o.reject(n):o.resolve(),i=i.remove(e)),r.du[r.currentUser.toKey()]=i}}
vendor: 1,294 bytes, line 3829
3829function Cm(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const r of t.Iu.get(e))t.Tu.delete(r),n&&t.Pu.yu(r,n);t.Iu.delete(e),t.isPrimaryClient&&t.Vu.Gr(e).forEach(r=>{t.Vu.containsKey(r)||BG(t,r)})}function BG(t,e){t.Eu.delete(e.path.canonicalString());const n=t.Ru.get(e);n!==null&&(Em(t.remoteStore,n),t.Ru=t.Ru.remove(e),t.Au.delete(n),Rk(t))}function lR(t,e,n){for(const r of n)r instanceof DG?(t.Vu.addReference(r.key,e),vme(t,r)):r instanceof LG?(Re(pg,"Document no longer in limbo: "+r.key),t.Vu.removeReference(r.key,e),t.Vu.containsKey(r.key)||BG(t,r.key)):Ye(19791,{wu:r})}function vme(t,e){const n=e.key,r=n.path.canonicalString();t.Ru.get(n)||t.Eu.has(r)||(Re(pg,"New document in limbo: "+n),t.Eu.add(r),Rk(t))}function Rk(t){for(;t.Eu.size>0&&t.Ru.size<t.maxConcurrentLimboResolutions;){const e=t.Eu.values().next().value;t.Eu.delete(e);const n=new He(Ft.fromString(e)),r=t.fu.next();t.Au.set(r,new lme(n)),t.Ru=t.Ru.insert(n,r),ME(t.remoteStore,new Pl(ko(_v(n.path)),r,"TargetPurposeLimboResolution",Ki.ce))}}async function rd(t,e,n){const r=Qe(t),i=[],o=[],s=[];r.Tu.isEmpty()||(r.Tu.forEach((a,l)=>{s.push(r.pu(l,e,n).then(c=>{var u;if((c||n)&&r.isPrimaryClient){const d=c?!c.fromCache:(u=n==null?void 0:n.targetChanges.get(l.targetId))==null?void 0:u.current;
3829r.sharedClientState.updateQueryState(l.targetId,d?"current":"not-current")}if(c){i.push(c);const d=hk.Es(l.targetId,c);o.push(d)}}))}),await Promise.all(s),r.Pu.J_(i),await async function(l,c){const u=Qe(l);try{await u.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>ee.forEach(c,f=>ee.forEach(f.Ts,h=>u.persistence.referenceDelegate.addReference(d,f.targetId,h)).next(()=>ee.forEach(f.Is,h=>u.persistence.referenceDelegate.removeReference(d,f.targetId,h)))))}catch(d){if(!ed(d))throw d;Re(pk,"Failed to update sequence numbers: "+d)}for(const d of c){const f=d.targetId;if(!d.fromCache){const h=u.vs.get(f),p=h.snapshotVersion,m=h.withLastLimboFreeSnapshotVersion(p);u.vs=u.vs.insert(f,m)}}}(r.localStore,o))}async function bme(t,e){const n=Qe(t);if(!n.currentUser.isEqual(e)){Re(pg,"User change. New user:",e.toKey());const r=await bG(n.localStore,e);n.currentUser=e,function(o,s){o.mu.forEach(a=>{a.forEach(l=>{l.reject(new Ae(le.CANCELLED,s))})}),o.mu.clear()}(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),await rd(n,r.Ns)}}function wme(t,e){const n=Qe(t),r=n.Au.get(e);if(r&&r.hu)return It().add(r.key);{let i=It();const o=n.Iu.get(e);if(!o)return i;for(const s of o){const a=n.Tu.get(s);i=i.unionWith(a.view.nu)}return i}}async function Sme(t,e){const n=Qe(t),r=await rR(n.localStore,e.query,!0),i=e.view.cu(r);return n.isPrimaryClient&&lR(n,e.targetId,i.au),i}async function xme(t,e){const n=Qe(t);return xG(n.localStore,e).then(r=>rd(n,r))}async function Eme(t,e,n,r){const i=Qe(t),o=await function(a,l){const c=Qe(a),u=Qe(c.mutationQueue);return c.persistence.runTransaction("Lookup mutation documents","readonly",d=>u.Xn(d,l).next(f=>f?c.localDocuments.getDocuments(d,f):ee.resolve(null)))}(i.localStore,e);o!==null?(n==="pending"?await fg(i.remoteStore):n==="acknowledged"||n==="rejected"?(Ik(i,e,r||null),Ak(i,e),function(a,l){Qe(Qe(a).mutationQueue).nr(l)}(i.localStore,e)):Ye(6720,"Unknown batchState",{bu:n}),await rd(i,o)):Re(pg,"Cannot apply mutation batch with id: "+e)}async function Tme(t,e){const n=Qe(t);if(kE(n),Mk(n),e===!0&&n.gu!==!0){const r=n.sharedClientState.getAllActiveQueryTargets(),i=await A8(n,r.toArray());n.gu=!0,await sR(n.remoteStore,!0);for(const o of i)ME(n.remoteStore,o)}else if(e===!1&&n.gu!==!1){const r=[];let i=Promise.resolve();n.Iu.forEach((o,s)=>{n.sharedClientState.isLocalQueryTarget(s)?r.push(s):i=i.then(()=>(Cm(n,s),xm(n.localStore,s,!0))),Em(n.remoteStore,s)}),await i,await A8(n,r),function(s){const a=Qe(s);a.Au.forEach((l,c)=>{Em(a.remoteStore,c)}),a.Vu.zr(),a.Au=new Map,a.Ru=new Rn(He.comparator)}(n),n.gu=!1,await sR(n.remoteStore,!1)}}async function A8(t,e,n){const r=Qe(t),i=[],o=[];for(const s of e){let a;const l=r.Iu.get(s);if(l&&l.length!==0){a=await IS(r.localStore,ko(l[0]));for(const c of l){const u=r.Tu.get(c),d=await Sme(r,u);d.snapshot&&o.push(d.snapshot)}}else{const c=await SG(r.localStore,s);a=await IS(r.localStore,c),await _k(r,$G(c),s,!1,a.resumeToken)}i.push(a)}return r.Pu.J_(o),i}function $G(t){return TW(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function Cme(t){return function(n){return Qe(Qe(n).persistence).hs()}(Qe(t).localStore)}async function _me(t,e,n,r){const i=Qe(t);if(i.gu)return void Re(pg,"Ignoring unexpected query state notification.");const o=i.Iu.get(e);if(o&&o.length>0)switch(n){case"current":case"not-current":{const s=await xG(i.localStore,AW(o[0])),a=Rv.createSynthesizedRemoteEventForCurrentChange(e,n==="current",mr.EMPTY_BYTE_STRING);await rd(i,s,a);break}case"rejected":await xm(i.localStore,e,!0),Cm(i,e,r);break;default:Ye(64155,n)}}async function Ame(t,e,n){const r=kE(t);if(r.gu){for(const i of e){if(r.Iu.has(i)&&r.sharedClientState.isActiveQueryTarget(i)){Re(pg,"Adding an already active target "+i);continue}const o=await SG(r.localStore,i),s=await IS(r.localStore,o);await _k(r,$G(o),s.targetId,!1,s.resumeToken),ME(r.remoteStore,s)}for(const i of n)r.Iu.has(i)&&await xm(r.localStore,i,!1).then(()=>{Em(r.remoteStore,i),Cm(r,i)}).catch(Zu)}}function kE(t){const e=Qe(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=VG.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=wme.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=mme.bind(null,e),e.Pu.J_=ime.bind(null,e.eventManager),e.Pu.yu=ome.bind(null,e.eventManager),e}function Mk(t){const e=Qe(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=gme.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=yme.bind(null,e),e}class m0{constructor(){this.kind="memory",this.synchronizeTabs=!1}
vendor: 9,222 bytes, lines 3829-3878
3829async initialize(e){this.serializer=IE(e.databaseInfo.databaseId),this.sharedClientState=this.Du(e),this.persistence=this.Cu(e),await this.persistence.start(),this.localStore=this.vu(e),this.gcScheduler=this.Fu(e,this.localStore),this.indexBackfillerScheduler=this.Mu(e,this.localStore)}Fu(e,n){return null}Mu(e,n){return null}vu(e){return vG(this.persistence,new yG,e.initialUser,this.serializer)}Cu(e){return new uk(AE.Vi,this.serializer)}Du(e){return new AG}async terminate(){var e,n;(e=this.gcScheduler)==null||e.stop(),(n=this.indexBackfillerScheduler)==null||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}m0.provider={build:()=>new m0};class Ime extends m0{constructor(e){super(),this.cacheSizeBytes=e}Fu(e,n){tt(this.persistence.referenceDelegate instanceof AS,46915);const r=this.persistence.referenceDelegate.garbageCollector;return new dG(r,e.asyncQueue,n)}Cu(e){const n=this.cacheSizeBytes!==void 0?gi.withCacheSize(this.cacheSizeBytes):gi.DEFAULT;return new uk(r=>AS.Vi(r,n),this.serializer)}}class FG extends m0{constructor(e,n,r){super(),this.xu=e,this.cacheSizeBytes=n,this.forceOwnership=r,this.kind="persistent",this.synchronizeTabs=!1}async initialize(e){await super.initialize(e),await this.xu.initialize(this,e),await Mk(this.xu.syncEngine),await fg(this.xu.remoteStore),await this.persistence.zi(()=>(this.gcScheduler&&!this.gcScheduler.started&&this.gcScheduler.start(),this.indexBackfillerScheduler&&!this.indexBackfillerScheduler.started&&this.indexBackfillerScheduler.start(),Promise.resolve()))}vu(e){return vG(this.persistence,new yG,e.initialUser,this.serializer)}Fu(e,n){const r=this.persistence.referenceDelegate.garbageCollector;return new dG(r,e.asyncQueue,n)}Mu(e,n){const r=new Ofe(n,this.persistence);return new Pfe(e.asyncQueue,r)}Cu(e){const n=fk(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey),r=this.cacheSizeBytes!==void 0?gi.withCacheSize(this.cacheSizeBytes):gi.DEFAULT;return new dk(this.synchronizeTabs,n,e.clientId,r,e.asyncQueue,IG(),aw(),this.serializer,this.sharedClientState,!!this.forceOwnership)}Du(e){return new AG}}class Rme extends FG{constructor(e,n){super(e,n,!1),this.xu=e,this.cacheSizeBytes=n,this.synchronizeTabs=!0}async initialize(e){await super.initialize(e);const n=this.xu.syncEngine;this.sharedClientState instanceof J_&&(this.sharedClientState.syncEngine={So:Eme.bind(null,n),Do:_me.bind(null,n),Co:Ame.bind(null,n),hs:Cme.bind(null,n),bo:xme.bind(null,n)},await this.sharedClientState.start()),await this.persistence.zi(async r=>{await Tme(this.xu.syncEngine,r),this.gcScheduler&&(r&&!this.gcScheduler.started?this.gcScheduler.start():r||this.gcScheduler.stop()),this.indexBackfillerScheduler&&(r&&!this.indexBackfillerScheduler.started?this.indexBackfillerScheduler.start():r||this.indexBackfillerScheduler.stop())})}Du(e){const n=IG();if(!J_.v(n))throw new Ae(le.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");const r=fk(e.databaseInfo.databaseId,e.databaseInfo.persistenceKey);return new J_(n,e.asyncQueue,r,e.clientId,e.initialUser)}}class g0{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=r=>_8(this.syncEngine,r,1),this.remoteStore.remoteSyncer.handleCredentialChange=bme.bind(null,this.syncEngine),await sR(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new rme}()}createDatastore(e){const n=IE(e.databaseInfo.databaseId),r=Vpe(e.databaseInfo);return Hpe(e.authCredentials,e.appCheckCredentials,r,n)}createRemoteStore(e){return function(r,i,o,s,a){return new qpe(r,i,o,s,a)}(this.localStore,this.datastore,e.asyncQueue,n=>_8(this.syncEngine,n,0),function(){return w8.v()?new w8:new Npe}())}createSyncEngine(e,n){return function(i,o,s,a,l,c,u){const d=new cme(i,o,s,a,l,c);return u&&(d.gu=!0),d}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await async function(i){const o=Qe(i);Re(Bf,"RemoteStore shutting down."),o.Ea.add(5),await kv(o),o.Aa.shutdown(),o.Va.set("Unknown")}(this.remoteStore),(e=this.datastore)==null||e.terminate(),(n=this.eventManager)==null||n.terminate()}}g0.provider={build:()=>new g0};/** 3830 * @license 3831 * Copyright 2020 Google LLC 3832 * 3833 * Licensed under the Apache License, Version 2.0 (the "License"); 3834 * you may not use this file except in compliance with the License. 3835 * You may obtain a copy of the License at 3836 * 3837 * http://www.apache.org/licenses/LICENSE-2.0 3838 * 3839 * Unless required by applicable law or agreed to in writing, software 3840 * distributed under the License is distributed on an "AS IS" BASIS, 3841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3842 * See the License for the specific language governing permissions and 3843 * limitations under the License. 3844 *//** 3845 * @license 3846 * Copyright 2017 Google LLC 3847 * 3848 * Licensed under the Apache License, Version 2.0 (the "License"); 3849 * you may not use this file except in compliance with the License. 3850 * You may obtain a copy of the License at 3851 * 3852 * http://www.apache.org/licenses/LICENSE-2.0 3853 * 3854 * Unless required by applicable law or agreed to in writing, software 3855 * distributed under the License is distributed on an "AS IS" BASIS, 3856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3857 * See the License for the specific language governing permissions and 3858 * limitations under the License. 3859 */class kk{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ou(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ou(this.observer.error,e):hr("Uncaught Error in snapshot listener:",e.toString()))}Nu(){this.muted=!0}Ou(e,n){setTimeout(()=>{this.muted||e(n)},0)}}/** 3860 * @license 3861 * Copyright 2017 Google LLC 3862 * 3863 * Licensed under the Apache License, Version 2.0 (the "License"); 3864 * you may not use this file except in compliance with the License. 3865 * You may obtain a copy of the License at 3866 * 3867 * http://www.apache.org/licenses/LICENSE-2.0 3868 * 3869 * Unless required by applicable law or agreed to in writing, software 3870 * distributed under the License is distributed on an "AS IS" BASIS, 3871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3872 * See the License for the specific language governing permissions and 3873 * limitations under the License. 3874 */let Mme=class{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}async lookup(e){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw this.lastTransactionError=new Ae(le.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),this.lastTransactionError;const n=await async function(i,o){const s=Qe(i),a={documents:o.map(d=>h0(s.serializer,d))},l=await s.jo("BatchGetDocuments",s.serializer.databaseId,Ft.emptyPath(),a,o.length),c=new Map;l.forEach(d=>{const f=Whe(s.serializer,d);c.set(f.key.toString(),f)});const u=[];return o.forEach(d=>{const f=c.get(d.toString());tt(!!f,55234,{key:d}),u.push(f)}),u}(this.datastore,e);return n.forEach(r=>this.recordVersion(r)),n}set(e,n){this.write(n.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,n){try{this.write(n.toMutation(e,this.preconditionForUpdate(e)))}catch(r){this.lastTransactionError=r}this.writtenDocs.add(e.toString())}delete(e){this.write(new dg(e,this.precondition(e))),this.writtenDocs.add(e.toString())}async commit(){if(this.ensureCommitNotCalled(),this.lastTransactionError)throw this.lastTransactionError;const e=this.readVersions;this.mutations.forEach(n=>{e.delete(n.key.toString())}),e.forEach((n,r)=>{const i=He.fromPath(r);this.mutations.push(new ek(i,this.precondition(i)))}),await async function(r,i){const o=Qe(r),s={writes:i.map(a=>p0(o.serializer,a))};await o.Wo("Commit",o.serializer.databaseId,Ft.emptyPath(),s)}(this.datastore,this.mutations),this.committed=!0}recordVersion(e){let n;if(e.isFoundDocument())n=e.version;else{if(!e.isNoDocument())throw Ye(50498,{Gu:e.constructor.name});n=it.min()}const r=this.readVersions.get(e.key.toString());if(r){if(!n.isEqual(r))throw new Ae(le.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),n)}precondition(e){const n=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&n?n.isEqual(it.min())?Wn.exists(!1):Wn.updateTime(n):Wn.none()}preconditionForUpdate(e){const n=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&n){if(n.isEqual(it.min()))throw new Ae(le.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Wn.updateTime(n)}return Wn.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}};/** 3875 * @license 3876 * Copyright 2019 Google LLC 3877 * 3878 * Licensed under the Apache License, Version 2.0 (the "License");
3879 * you may not use this file except in compliance with the License. 3880 * You may obtain a copy of the License at 3881 * 3882 * http://www.apache.org/licenses/LICENSE-2.0 3883 * 3884 * Unless required by applicable law or agreed to in writing, software 3885 * distributed under the License is distributed on an "AS IS" BASIS, 3886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3887 * See the License for the specific language governing permissions and 3888 * limitations under the License. 3889 */class kme{constructor(e,n,r,i,o){this.asyncQueue=e,this.datastore=n,this.options=r,this.updateFunction=i,this.deferred=o,this.zu=r.maxAttempts,this.M_=new gk(this.asyncQueue,"transaction_retry")}ju(){this.zu-=1,this.Hu()}Hu(){this.M_.p_(async()=>{const e=new Mme(this.datastore),n=this.Ju(e);n&&n.then(r=>{this.asyncQueue.enqueueAndForget(()=>e.commit().then(()=>{this.deferred.resolve(r)}).catch(i=>{this.Zu(i)}))}).catch(r=>{this.Zu(r)})})}Ju(e){try{const n=this.updateFunction(e);return!Ev(n)&&n.catch&&n.then?n:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(n){return this.deferred.reject(n),null}}Zu(e){this.zu>0&&this.Xu(e)?(this.zu-=1,this.asyncQueue.enqueueAndForget(()=>(this.Hu(),Promise.resolve()))):this.deferred.reject(e)}Xu(e){if((e==null?void 0:e.name)==="FirebaseError"){const n=e.code;return n==="aborted"||n==="failed-precondition"||n==="already-exists"||!$W(n)}return!1}}/** 3890 * @license 3891 * Copyright 2017 Google LLC 3892 * 3893 * Licensed under the Apache License, Version 2.0 (the "License"); 3894 * you may not use this file except in compliance with the License. 3895 * You may obtain a copy of the License at 3896 * 3897 * http://www.apache.org/licenses/LICENSE-2.0 3898 * 3899 * Unless required by applicable law or agreed to in writing, software 3900 * distributed under the License is distributed on an "AS IS" BASIS, 3901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3902 * See the License for the specific language governing permissions and 3903 * limitations under the License. 3904 */const ju="FirestoreClient";class Pme{constructor(e,n,r,i,o){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=r,this._databaseInfo=i,this.user=Fr.UNAUTHENTICATED,this.clientId=$M.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=o,this.authCredentials.start(r,async s=>{Re(ju,"Received user=",s.uid),await this.authCredentialListener(s),this.user=s}),this.appCheckCredentials.start(r,s=>(Re(ju,"Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this._databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Mo;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const r=Sk(n,"Failed to shutdown persistence");e.reject(r)}}),e.promise}}async function eA(t,e){t.asyncQueue.verifyOperationInProgress(),Re(ju,"Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let r=n.initialUser;t.setCredentialChangeListener(async i=>{r.isEqual(i)||(await bG(e.localStore,i),r=i)}),e.persistence.setDatabaseDeletedListener(()=>t.terminate()),t._offlineComponents=e}async function I8(t,e){t.asyncQueue.verifyOperationInProgress();const n=await Ome(t);Re(ju,"Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener(r=>x8(e.remoteStore,r)),t.setAppCheckTokenChangeListener((r,i)=>x8(e.remoteStore,i)),t._onlineComponents=e}async function Ome(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){Re(ju,"Using user provided OfflineComponentProvider");try{await eA(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!function(i){return i.name==="FirebaseError"?i.code===le.FAILED_PRECONDITION||i.code===le.UNIMPLEMENT
3904ED:!(typeof DOMException<"u"&&i instanceof DOMException)||i.code===22||i.code===20||i.code===11}(n))throw n;Mf("Error using user provided cache. Falling back to memory cache: "+n),await eA(t,new m0)}}else Re(ju,"Using default OfflineComponentProvider"),await eA(t,new Ime(void 0));return t._offlineComponents}async function Pk(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(Re(ju,"Using user provided OnlineComponentProvider"),await I8(t,t._uninitializedComponentsProvider._online)):(Re(ju,"Using default OnlineComponentProvider"),await I8(t,new g0))),t._onlineComponents}function Nme(t){return Pk(t).then(e=>e.syncEngine)}function jG(t){return Pk(t).then(e=>e.datastore)}async function PS(t){const e=await Pk(t),n=e.eventManager;return n.onListen=ume.bind(null,e.syncEngine),n.onUnlisten=fme.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=dme.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=hme.bind(null,e.syncEngine),n}function Dme(t,e,n,r){const i=new kk(r),o=new Ck(e,i,n);return t.asyncQueue.enqueueAndForget(async()=>xk(await PS(t),o)),()=>{i.Nu(),t.asyncQueue.enqueueAndForget(async()=>Ek(await PS(t),o))}}function HG(t,e,n={}){const r=new Mo;return t.asyncQueue.enqueueAndForget(async()=>function(o,s,a,l,c){const u=new kk({next:f=>{u.Nu(),s.enqueueAndForget(()=>Ek(o,d));const h=f.docs.has(a);!h&&f.fromCache?c.reject(new Ae(le.UNAVAILABLE,"Failed to get document because the client is offline.")):h&&f.fromCache&&l&&l.source==="server"?c.reject(new Ae(le.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new Ck(_v(a.path),u,{includeMetadataChanges:!0,Ka:!0});return xk(o,d)}(await PS(t),t.asyncQueue,e,n,r)),r.promise}function Lme(t,e,n={}){const r=new Mo;return t.asyncQueue.enqueueAndForget(async()=>function(o,s,a,l,c){const u=new kk({next:f=>{u.Nu(),s.enqueueAndForget(()=>Ek(o,d)),f.fromCache&&l.source==="server"?c.reject(new Ae(le.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new Ck(a,u,{includeMetadataChanges:!0,Ka:!0});return xk(o,d)}(await PS(t),t.asyncQueue,e,n,r)),r.promise}function zme(t,e,n){const r=new Mo;return t.asyncQueue.enqueueAndForget(async()=>{try{const i=await jG(t);r.resolve(async function(s,a,l){var m;const c=Qe(s),{request:u,gt:d,parent:f}=Yhe(c.serializer,She(a),l);c.connection.Ko||delete u.parent;const h=(await c.jo("RunAggregationQuery",c.serializer.databaseId,f,u,1)).filter(g=>!!g.result);tt(h.length===1,64727);const p=(m=h[0].result)==null?void 0:m.aggregateFields;return Object.keys(p).reduce((g,y)=>(g[d[y]]=p[y],g),{})}(i,e,n))}catch(i){r.reject(i)}}),r.promise}function Vme(t,e){const n=new Mo;return t.asyncQueue.enqueueAndForget(async()=>pme(await Nme(t),e,n)),n.promise}function Bme(t,e,n){const r=new Mo;return t.asyncQueue.enqueueAndForget(async()=>{const i=await jG(t);new kme(t.asyncQueue,i,n,e,r).ju()}),r.promise}/** 3905 * @license 3906 * Copyright 2023 Google LLC 3907 * 3908 * Licensed under the Apache License, Version 2.0 (the "License"); 3909 * you may not use this file except in compliance with the License. 3910 * You may obtain a copy of the License at 3911 * 3912 * http://www.apache.org/licenses/LICENSE-2.0 3913 * 3914 * Unless required by applicable law or agreed to in writing, software 3915 * distributed under the License is distributed on an "AS IS" BASIS, 3916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3917 * See the License for the specific language governing permissions and 3918 * limitations under the License. 3919 */function UG(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 3920 * @license 3921 * Copyright 2020 Google LLC 3922 * 3923 * Licensed under the Apache License, Version 2.0 (the "License"); 3924 * you may not use this file except in compliance with the License. 3925 * You may obtain a copy of the License at 3926 * 3927 * http://www.apache.org/licenses/LICENSE-2.0 3928 * 3929 * Unless required by applicable law or agreed to in writing, softw
3929are 3930 * distributed under the License is distributed on an "AS IS" BASIS, 3931 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3932 * See the License for the specific language governing permissions and 3933 * limitations under the License. 3934 */const $me="ComponentProvider",R8=new Map;function Fme(t,e,n,r,i){return new lhe(t,e,n,i.host,i.ssl,i.experimentalForceLongPolling,i.experimentalAutoDetectLongPolling,UG(i.experimentalLongPollingOptions),i.useFetchStreams,i.isUsingEmulator,r)}/** 3935 * @license 3936 * Copyright 2020 Google LLC 3937 * 3938 * Licensed under the Apache License, Version 2.0 (the "License"); 3939 * you may not use this file except in compliance with the License. 3940 * You may obtain a copy of the License at 3941 * 3942 * http://www.apache.org/licenses/LICENSE-2.0 3943 * 3944 * Unless required by applicable law or agreed to in writing, software 3945 * distributed under the License is distributed on an "AS IS" BASIS, 3946 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3947 * See the License for the specific language governing permissions and 3948 * limitations under the License. 3949 */const qG="firestore.googleapis.com",M8=!0;class k8{constructor(e){if(e.host===void 0){if(e.ssl!==void 0)throw new Ae(le.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=qG,this.ssl=M8}else this.host=e.host,this.ssl=e.ssl??M8;if(this.isUsingEmulator=e.emulatorOptions!==void 0,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=sG;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<uG)throw new Ae(le.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}Ife("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=UG(e.experimentalLongPollingOptions??{}),function(r){if(r.timeoutSeconds!==void 0){if(isNaN(r.timeoutSeconds))throw new Ae(le.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (must not be NaN)`);if(r.timeoutSeconds<5)throw new Ae(le.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (minimum allowed value is 5)`);if(r.timeoutSeconds>30)throw new Ae(le.INVALID_ARGUMENT,`invalid long polling timeout: ${r.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(r,i){return r.timeoutSeconds===i.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Pv{constructor(e,n,r,i){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=r,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new k8({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Ae(le.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new Ae(le.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new k8(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=function(r){if(!r)return new vfe;switch(r.type){case"firstParty":return new xfe(r.sessionIndex||"0",r.iamToken||null,r.authTokenFactory||null);case"provider":return r.client;default:throw new Ae(le.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invali
3949d credential type")}}(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(n){const r=R8.get(n);r&&(Re($me,"Removing Datastore"),R8.delete(n),r.terminate())}(this),Promise.resolve()}}function vWe(t,e,n,r={}){var c;t=Rr(t,Pv);const i=Zs(e),o=t._getSettings(),s={...o,emulatorOptions:t._getEmulatorOptions()},a=`${e}:${n}`;i&&(mv(`https://${a}`),rE("Firestore",!0)),o.host!==qG&&o.host!==a&&Mf("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const l={...o,host:a,ssl:i,emulatorOptions:r};if(!Va(l,s)&&(t._setSettings(l),r.mockUserToken)){let u,d;if(typeof r.mockUserToken=="string")u=r.mockUserToken,d=Fr.MOCK_USER;else{u=SU(r.mockUserToken,(c=t._app)==null?void 0:c.options.projectId);const f=r.mockUserToken.sub||r.mockUserToken.user_id;if(!f)throw new Ae(le.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");d=new Fr(f)}t._authCredentials=new bfe(new jq(u,d))}}/** 3950 * @license 3951 * Copyright 2020 Google LLC 3952 * 3953 * Licensed under the Apache License, Version 2.0 (the "License"); 3954 * you may not use this file except in compliance with the License. 3955 * You may obtain a copy of the License at 3956 * 3957 * http://www.apache.org/licenses/LICENSE-2.0 3958 * 3959 * Unless required by applicable law or agreed to in writing, software 3960 * distributed under the License is distributed on an "AS IS" BASIS, 3961 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3962 * See the License for the specific language governing permissions and 3963 * limitations under the License. 3964 */class ta{constructor(e,n,r){this.converter=n,this._query=r,this.type="query",this.firestore=e}withConverter(e){return new ta(this.firestore,e,this._query)}}class Gn{constructor(e,n,r){this.converter=n,this._key=r,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new xu(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new Gn(this.firestore,e,this._key)}toJSON(){return{type:Gn._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,n,r){if(xv(n,Gn._jsonSchema))return new Gn(e,r||null,new He(Ft.fromString(n.referencePath)))}}Gn._jsonSchemaVersion="firestore/documentReference/1.0",Gn._jsonSchema={type:Ar("string",Gn._jsonSchemaVersion),referencePath:Ar("string")};class xu extends ta{constructor(e,n,r){super(e,n,_v(r)),this._path=r,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new Gn(this.firestore,null,new He(e))}withConverter(e){return new xu(this.firestore,e,this._path)}}function bWe(t,e,...n){if(t=Ze(t),FM("collection","path",e),t instanceof Pv){const r=Ft.fromString(e,...n);return SD(r),new xu(t,null,r)}{if(!(t instanceof Gn||t instanceof xu))throw new Ae(le.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Ft.fromString(e,...n));return SD(r),new xu(t.firestore,null,r)}}function wWe(t,e){if(t=Rr(t,Pv),FM("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new Ae(le.INVALID_ARGUMENT,`Invalid collection ID '${e}' passed to function collectionGroup(). Collection IDs must not contain '/'.`);return new ta(t,null,function(r){return new nd(Ft.emptyPath(),r)}(e))}function jme(t,e,...n){if(t=Ze(t),arguments.length===1&&(e=$M.newId()),FM("doc","path",e),t instanceof Pv){const r=Ft.fromString(e,...n);return wD(r),new Gn(t,null,new He(r))}{if(!(t instanceof Gn||t instanceof xu))throw new Ae(le.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const r=t._path.child(Ft.fromString(e,...n));return wD(r),new Gn(t.firestore,t instanceof xu?t.converter:null,new He(r))}}/** 3965 * @license 3966 * Copyright 2020 Google LLC 3967 * 3968 * Licensed under the Apache License, Version 2.0 (the "License");
3969 * you may not use this file except in compliance with the License. 3970 * You may obtain a copy of the License at 3971 * 3972 * http://www.apache.org/licenses/LICENSE-2.0 3973 * 3974 * Unless required by applicable law or agreed to in writing, software 3975 * distributed under the License is distributed on an "AS IS" BASIS, 3976 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3977 * See the License for the specific language governing permissions and 3978 * limitations under the License. 3979 */const P8="AsyncQueue";class O8{constructor(e=Promise.resolve()){this.Yu=[],this.ec=!1,this.tc=[],this.nc=null,this.rc=!1,this.sc=!1,this.oc=[],this.M_=new gk(this,"async_queue_retry"),this._c=()=>{const r=aw();r&&Re(P8,"Visibility state changed to "+r.visibilityState),this.M_.w_()},this.ac=e;const n=aw();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this._c)}get isShuttingDown(){return this.ec}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.uc(),this.cc(e)}enterRestrictedMode(e){if(!this.ec){this.ec=!0,this.sc=e||!1;const n=aw();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this._c)}}enqueue(e){if(this.uc(),this.ec)return new Promise(()=>{});const n=new Mo;return this.cc(()=>this.ec&&this.sc?Promise.resolve():(e().then(n.resolve,n.reject),n.promise)).then(()=>n.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Yu.push(e),this.lc()))}async lc(){if(this.Yu.length!==0){try{await this.Yu[0](),this.Yu.shift(),this.M_.reset()}catch(e){if(!ed(e))throw e;Re(P8,"Operation failed with retryable error: "+e)}this.Yu.length>0&&this.M_.p_(()=>this.lc())}}cc(e){const n=this.ac.then(()=>(this.rc=!0,e().catch(r=>{throw this.nc=r,this.rc=!1,hr("INTERNAL UNHANDLED ERROR: ",N8(r)),r}).then(r=>(this.rc=!1,r))));return this.ac=n,n}enqueueAfterDelay(e,n,r){this.uc(),this.oc.indexOf(e)>-1&&(n=0);const i=wk.createAndSchedule(this,e,n,r,o=>this.hc(o));return this.tc.push(i),i}uc(){this.nc&&Ye(47125,{Pc:N8(this.nc)})}verifyOperationInProgress(){}async Tc(){let e;do e=this.ac,await e;while(e!==this.ac)}Ic(e){for(const n of this.tc)if(n.timerId===e)return!0;return!1}Ec(e){return this.Tc().then(()=>{this.tc.sort((n,r)=>n.targetTimeMs-r.targetTimeMs);for(const n of this.tc)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.Tc()})}Rc(e){this.oc.push(e)}hc(e){const n=this.tc.indexOf(e);this.tc.splice(n,1)}}function N8(t){let e=t.message||"";return t.stack&&(e=t.stack.includes(t.message)?t.stack:t.message+` 3980`+t.stack),e}class Vo extends Pv{constructor(e,n,r,i){super(e,n,r,i),this.type="firestore",this._queue=new O8,this._persistenceKey=(i==null?void 0:i.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new O8(e),this._firestoreClient=void 0,await e}}}function SWe(t,e,n){n||(n=wS);const r=yv(t,"firestore");if(r.isInitialized(n)){const i=r.getImmediate({identifier:n}),o=r.getOptions(n);if(Va(o,e))return i;throw new Ae(le.FAILED_PRECONDITION,"initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.")}if(e.cacheSizeBytes!==void 0&&e.localCache!==void 0)throw new Ae(le.INVALID_ARGUMENT,"cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");if(e.cacheSizeBytes!==void 0&&e.cacheSizeBytes!==-1&&e.cacheSizeBytes<uG)throw new Ae(le.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");return e.host&&Zs(e.host)&&mv(e.host),r.initialize({options:e,instanceIdentifier:n})}function id(t){if(t._terminated)throw new Ae(le.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||Hme(t),t._firestoreClient}function Hme(t){var r,i,o,s;const e=t._freezeSettings(),n=Fme(t._databaseId,((r=t._app)==null?void 0:r.options.appId)||"",t._persistenceKey,(i=t._app)==null?void 0:i.options.apiKey,e);t._componentsProvider||(o=e.localCache)!=null&&o._offlineComponentProvider&&((s=e.localCache)!=null&&s._onlineComponentProvider)&&(t._componentsProvider={_offline:e.localCache._offlineComponentProvider,_online:e.localCache._onlineComponentProvider}),t._firestoreClient=new Pme(t._authCredentials,t._appCheckCredentials,t._queue,n,t._componentsProvider&&function(l){const c=l==null?void 0:l._online.build();return{_offline:l==null?void 0:l._offline.build(c),_online:c}}(t._componentsProvider))}function xWe(t){if(t._initialized&&!t._terminated)throw new Ae(le.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");const e=new Mo;return t._queue.enqueueAndForgetEvenWhileRestricted(async()=>{try{await async function(r){if(!Ma.v())return Promise.resolve();const i=r+gG;await Ma.delete(i)}(fk(t._databaseId,t._persistenceKey)),e.resolve()}catch(n){e.reject(n)}}),e.promise}/** 3981 * @license 3982 * Copyright 2020 Google LLC 3983 * 3984 * Licensed under the Apache License, Version 2.0 (the "License");
3985 * you may not use this file except in compliance with the License. 3986 * You may obtain a copy of the License at 3987 * 3988 * http://www.apache.org/licenses/LICENSE-2.0 3989 * 3990 * Unless required by applicable law or agreed to in writing, software 3991 * distributed under the License is distributed on an "AS IS" BASIS, 3992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3993 * See the License for the specific language governing permissions and 3994 * limitations under the License. 3995 */class bo{constructor(e){this._byteString=e}static fromBase64String(e){try{return new bo(mr.fromBase64String(e))}catch(n){throw new Ae(le.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new bo(mr.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:bo._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(xv(e,bo._jsonSchema))return bo.fromBase64String(e.bytes)}}bo._jsonSchemaVersion="firestore/bytes/1.0",bo._jsonSchema={type:Ar("string",bo._jsonSchemaVersion),bytes:Ar("string")};/** 3996 * @license 3997 * Copyright 2020 Google LLC 3998 * 3999 * Licensed under the Apache License, Version 2.0 (the "License"); 4000 * you may not use this file except in compliance with the License. 4001 * You may obtain a copy of the License at 4002 * 4003 * http://www.apache.org/licenses/LICENSE-2.0 4004 * 4005 * Unless required by applicable law or agreed to in writing, software 4006 * distributed under the License is distributed on an "AS IS" BASIS, 4007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4008 * See the License for the specific language governing permissions and 4009 * limitations under the License. 4010 */class mg{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new Ae(le.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new Qn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}function EWe(){return new mg(V5)}/** 4011 * @license 4012 * Copyright 2020 Google LLC 4013 * 4014 * Licensed under the Apache License, Version 2.0 (the "License"); 4015 * you may not use this file except in compliance with the License. 4016 * You may obtain a copy of the License at 4017 * 4018 * http://www.apache.org/licenses/LICENSE-2.0 4019 * 4020 * Unless required by applicable law or agreed to in writing, software 4021 * distributed under the License is distributed on an "AS IS" BASIS, 4022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4023 * See the License for the specific language governing permissions and 4024 * limitations under the License. 4025 */class ph{constructor(e){this._methodName=e}}/** 4026 * @license 4027 * Copyright 2017 Google LLC 4028 * 4029 * Licensed under the Apache License, Version 2.0 (the "License"); 4030 * you may not use this file except in compliance with the License. 4031 * You may obtain a copy of the License at 4032 * 4033 * http://www.apache.org/licenses/LICENSE-2.0 4034 * 4035 * Unless required by applicable law or agreed to in writing, software 4036 * distributed under the License is distributed on an "AS IS" BASIS, 4037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4038 * See the License for the specific language governing permissions and 4039 * limitations under the License. 4040 */class ka{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new Ae(le.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new Ae(le.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return gt(this._lat,e._lat)||gt(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:ka._jsonSchemaVersion}}static fromJSON(e){if(xv(e,ka._jsonSchema))return new ka(e.latitude,e.longitude)}}ka._jsonSchemaVersion="firestore/geoPoint/1.0",ka._jsonSchema={type:Ar("string",ka._jsonSchemaVersion),latitude:Ar("number"),longitude:Ar("number")};/** 4041 * @license 4042 * Copyright 2024 Google LLC 4043 * 4044 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 7,108 bytes, lines 4045-4070
4045 * you may not use this file except in compliance with the License. 4046 * You may obtain a copy of the License at 4047 * 4048 * http://www.apache.org/licenses/LICENSE-2.0 4049 * 4050 * Unless required by applicable law or agreed to in writing, software 4051 * distributed under the License is distributed on an "AS IS" BASIS, 4052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4053 * See the License for the specific language governing permissions and 4054 * limitations under the License. 4055 */class qs{constructor(e){this._values=(e||[]).map(n=>n)}toArray(){return this._values.map(e=>e)}isEqual(e){return function(r,i){if(r.length!==i.length)return!1;for(let o=0;o<r.length;++o)if(r[o]!==i[o])return!1;return!0}(this._values,e._values)}toJSON(){return{type:qs._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(xv(e,qs._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(n=>typeof n=="number"))return new qs(e.vectorValues);throw new Ae(le.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}qs._jsonSchemaVersion="firestore/vectorValue/1.0",qs._jsonSchema={type:Ar("string",qs._jsonSchemaVersion),vectorValues:Ar("object")};/** 4056 * @license 4057 * Copyright 2017 Google LLC 4058 * 4059 * Licensed under the Apache License, Version 2.0 (the "License"); 4060 * you may not use this file except in compliance with the License. 4061 * You may obtain a copy of the License at 4062 * 4063 * http://www.apache.org/licenses/LICENSE-2.0 4064 * 4065 * Unless required by applicable law or agreed to in writing, software 4066 * distributed under the License is distributed on an "AS IS" BASIS, 4067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4068 * See the License for the specific language governing permissions and 4069 * limitations under the License. 4070 */const Ume=/^__.*__$/;class qme{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return this.fieldMask!==null?new uc(e,this.data,this.fieldMask,n,this.fieldTransforms):new ug(e,this.data,n,this.fieldTransforms)}}class WG{constructor(e,n,r){this.data=e,this.fieldMask=n,this.fieldTransforms=r}toMutation(e,n){return new uc(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function GG(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Ye(40011,{dataSource:t})}}class PE{constructor(e,n,r,i,o,s){this.settings=e,this.databaseId=n,this.serializer=r,this.ignoreUndefinedProperties=i,o===void 0&&this.validatePath(),this.fieldTransforms=o||[],this.fieldMask=s||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}contextWith(e){return new PE({...this.settings,...e},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}childContextForField(e){var i;const n=(i=this.path)==null?void 0:i.child(e),r=this.contextWith({path:n,arrayElement:!1});return r.validatePathSegment(e),r}childContextForFieldPath(e){var i;const n=(i=this.path)==null?void 0:i.child(e),r=this.contextWith({path:n,arrayElement:!1});return r.validatePath(),r}childContextForArray(e){return this.contextWith({path:void 0,arrayElement:!0})}createError(e){return OS(e,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(e){return this.fieldMask.find(n=>e.isPrefixOf(n))!==void 0||this.fieldTransforms.find(n=>e.isPrefixOf(n.field))!==void 0}validatePath(){if(this.path)for(let e=0;e<this.path.length;e++)this.validatePathSegment(this.path.get(e))}validatePathSegment(e){if(e.length===0)throw this.createError("Document fields must not be empty");if(GG(this.dataSource)&&Ume.test(e))throw this.createError('Document fields cannot begin and end with "__"')}}class Wme{constructor(e,n,r){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer=r||IE(e)}createContext(e,n,r,i=!1){return new PE({dataSource:e,methodName:n,targetDoc:r,path:Qn.emptyPath(),arrayElement:!1,hasConverter:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function mh(t){const e=t._freezeSettings(),n=IE(t._databaseId);return new Wme(t._databaseId,!!e.ignoreUndefinedProperties,n)}function OE(t,e,n,r,i,o={}){const s=t.createContext(o.merge||o.mergeFields?2:0,e,n,i);Bk("Data must be an object, but it was:",s,r);const a=XG(r,s);let l,c;if(o.merge)l=new Yi(s.fieldMask),c=s.fieldTransforms;else if(o.mergeFields){const u=[];for(const d of o.mergeFields){const f=Hu(e,d,n);if(!s.contains(f))throw new Ae(le.INVALID_ARGUMENT,`Field '${f}' is specified in your field mask but missing from your input data.`);ZG(u,f)||u.push(f)}l=new Yi(u),c=s.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=s.fieldTransforms;return new qme(new Ur(a),l,c)}class Ov extends ph{_toFieldTransform(e){if(e.dataSource!==2)throw e.dataSource===1?e.createError(`${this._methodName}() can only appear at the top level of your update data`):e.createError(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Ov}}function KG(t,e,n){return new PE({dataSource:3,targetDoc:e.settings.targetDoc,methodName:t._methodName,arrayElement:n},e.databaseId,e.serializer,e.ignoreUndefinedProperties)}class Ok extends ph{_toFieldTransform(e){return new Iv(e.path,new bm)}isEqual(e){return e instanceof Ok}}class Nk extends ph{constructor(e,n){super(e),this.Ac=n}_toFieldTransform(e){const n=KG(this,e,!0),r=this.Ac.map(o=>gh(o,n)),i=new Nf(r);return new Iv(e.path,i)}isEqual(e){return e instanceof Nk&&Va(this.Ac,e.Ac)}}class Dk extends ph{constructor(e,n){super(e),this.Ac=n}_toFieldTransform(e){const n=KG(this,e,!0),r=this.Ac.map(o=>gh(o,n)),i=new Df(r);return new Iv(e.path,i)}isEqual(e){return e instanceof Dk&&Va(this.Ac,e.Ac)}}class Lk extends ph{constructor(e,n){super(e),this.Vc=n}_toFieldTransform(e){const n=new wm(e.serializer,OW(e.serializer,this.Vc));return new Iv(e.path,n)}isEqual(e){return e instanceof Lk&&this.Vc===e.Vc}}function zk(t,e,n,r){const i=t.createContext(1,e,n);Bk("Data must be an object, but it was:",i,r);const o=[],s=Ur.empty();td(r,(l,c)=>{const u=JG(e,l,n);c=Ze(c);const d=i.childContextForFieldPath(u);if(c instanceof Ov)o.push(u);else{const f=gh(c,d);f!=null&&(o.push(u),s.set(u,f))}});const a=new Yi(o);return new WG(s,a,i.fieldTransforms)}function Vk(t,e,n,r,i,o){const s=t.createContext(1,e,n),a=[Hu(e,r,n)],l=[i];if(o.length%2!=0)throw new Ae(le.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f<o.length;f+=2)a.push(Hu(e,o[f])),l.push(o[f+1]);const c=[],u=Ur.empty();for(let f=a.length-1;f>=0;--f)if(!ZG(c,a[f])){const h=a[f];let p=l[f];p=Ze(p);const m=s.childContextForFieldPath(h);if(p instanceof Ov)c.push(h);else{const g=gh(p,m);g!=null&&(c.push(h),u.set(h,g))}}const d=new Yi(c);return new WG(u,d,s.fieldTransforms)}function YG(t,e,n,r=!1){return gh(n,t.createContext(r?4:3,e))}function gh(t,e){if(QG(t=Ze(t)))return Bk("Unsupported field value:",e,t),XG(t,e);if(t instanceof ph)return function(r,i){if(!GG(i.dataSource))throw i.createError(`${r._methodName}
4070() can only be used with update() and set()`);if(!i.path)throw i.createError(`${r._methodName}() is not currently supported inside arrays`);const o=r._toFieldTransform(i);o&&i.fieldTransforms.push(o)}(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.arrayElement&&e.dataSource!==4)throw e.createError("Nested arrays are not supported");return function(r,i){const o=[];let s=0;for(const a of r){let l=gh(a,i.childContextForArray(s));l==null&&(l={nullValue:"NULL_VALUE"}),o.push(l),s++}return{arrayValue:{values:o}}}(t,e)}return function(r,i){if((r=Ze(r))===null)return{nullValue:"NULL_VALUE"};if(typeof r=="number")return OW(i.serializer,r);if(typeof r=="boolean")return{booleanValue:r};if(typeof r=="string")return{stringValue:r};if(r instanceof Date){const o=cn.fromDate(r);return{timestampValue:Sm(i.serializer,o)}}if(r instanceof cn){const o=new cn(r.seconds,1e3*Math.floor(r.nanoseconds/1e3));return{timestampValue:Sm(i.serializer,o)}}if(r instanceof ka)return{geoPointValue:{latitude:r.latitude,longitude:r.longitude}};if(r instanceof bo)return{bytesValue:UW(i.serializer,r._byteString)};if(r instanceof Gn){const o=i.databaseId,s=r.firestore._databaseId;if(!s.isEqual(o))throw i.createError(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${o.projectId}/${o.database}`);return{referenceValue:ok(r.firestore._databaseId||i.databaseId,r._key.path)}}if(r instanceof qs)return function(s,a){const l=s instanceof qs?s.toArray():s;return{mapValue:{fields:{[KM]:{stringValue:YM},[gm]:{arrayValue:{values:l.map(u=>{if(typeof u!="number")throw a.createError("VectorValues must only contain numeric values.");return ZM(a.serializer,u)})}}}}}}(r,i);if(eG(r))return r._toProto(i.serializer);throw i.createError(`Unsupported field value: ${pE(r)}`)}(t,e)}function XG(t,e){const n={};return aW(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):td(t,(r,i)=>{const o=gh(i,e.childContextForField(r));o!=null&&(n[r]=o)}),{mapValue:{fields:n}}}function QG(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof cn||t instanceof ka||t instanceof bo||t instanceof Gn||t instanceof ph||t instanceof qs||eG(t))}function Bk(t,e,n){if(!QG(n)||!Uq(n)){const r=pE(n);throw r==="an object"?e.createError(t+" a custom object"):e.createError(t+" "+r)}}function Hu(t,e,n){if((e=Ze(e))instanceof mg)return e._internalPath;if(typeof e=="string")return JG(t,e);throw OS("Field path arguments must be of type string or ",t,!1,void 0,n)}const Gme=new RegExp("[~\\*/\\[\\]]");function JG(t,e,n){if(e.search(Gme)>=0)throw OS(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new mg(...e.split("."))._internalPath}catch{throw OS(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function OS(t,e,n,r,i){const o=r&&!r.isEmpty(),s=i!==void 0;let a=`Function ${e}() called with invalid data`;n&&(a+=" (via `toFirestore()`)"),a+=". ";let l="";return(o||s)&&(l+=" (found",o&&(l+=` in field ${r}`),s&&(l+=` in document ${i}`),l+=")"),new Ae(le.INVALID_ARGUMENT,a+t+l)}function ZG(t,e){return t.some(n=>n.isEqual(e))}/** 4071 * @license 4072 * Copyright 2020 Google LLC 4073 * 4074 * Licensed under the Apache License, Version 2.0 (the "License"); 4075 * you may not use this file except in compliance with the License. 4076 * You may obtain a copy of the License at 4077 * 4078 * http://www.apache.org/licenses/LICENSE-2.0 4079 * 4080 * Unless required by applicable law or agreed to in writing, software 4081 * distributed under the License is distributed on an "AS IS" BASIS, 4082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4083 * See the License for the specific language governing permissions and 4084 * limitations under the License. 4085 */class eK{convertValue(e,n="none"){switch(Vu(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Un(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(tc(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 11:return this.convertObject(e.mapValue,n);case 10:return this.convertVectorValue(e.mapValue);default:throw Ye(62114,{value:e})}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const r={};return td(e,(i,o)=>{r[i]=this.convertValue(o,n)}),r}convertVectorValue(e){var r,i,o;const n=(o=(i=(r=e.fields)==null?void 0:r[gm].arrayValue)==null?void 0:i.values)==null?void 0:o.map(s=>Un(s.doubleValue));return new qs(n)}convertGeoPoint(e){return new ka(Un(e.latitude),Un(e.longitude))}convertArray(e,n){return(e.values||[]).map(r=>this.convertValue(r,n))}convertServerTimestamp(e,n){switch(n){case"previous":const r=wE(e);return r==null?null:this.convertValue(r,n);case"estimate":return this.convertTimestamp(c0(e));default:return null}}convertTimestamp(e){const n=ec(e);return new cn(n.seconds,n.nanos)}convertDocumentKey(e,n){const r=Ft.fromString(e);tt(ZW(r),9688,{name:e});const i=new kf(r.get(1),r.get(3)),o=new He(r.popFirst(5));return i.isEqual(n)||hr(`Document ${o} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),o}}/** 4086 * @license 4087 * Copyright 2024 Google LLC 4088 * 4089 * Licensed under the Apache License, Version 2.0 (the "License");
4090 * you may not use this file except in compliance with the License. 4091 * You may obtain a copy of the License at 4092 * 4093 * http://www.apache.org/licenses/LICENSE-2.0 4094 * 4095 * Unless required by applicable law or agreed to in writing, software 4096 * distributed under the License is distributed on an "AS IS" BASIS, 4097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4098 * See the License for the specific language governing permissions and 4099 * limitations under the License. 4100 */class Nv extends eK{constructor(e){super(),this.firestore=e}convertBytes(e){return new bo(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new Gn(this.firestore,null,n)}}/** 4101 * @license 4102 * Copyright 2020 Google LLC 4103 * 4104 * Licensed under the Apache License, Version 2.0 (the "License"); 4105 * you may not use this file except in compliance with the License. 4106 * You may obtain a copy of the License at 4107 * 4108 * http://www.apache.org/licenses/LICENSE-2.0 4109 * 4110 * Unless required by applicable law or agreed to in writing, software 4111 * distributed under the License is distributed on an "AS IS" BASIS, 4112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4113 * See the License for the specific language governing permissions and 4114 * limitations under the License. 4115 */function TWe(){return new Ov("deleteField")}function CWe(){return new Ok("serverTimestamp")}function _We(...t){return new Nk("arrayUnion",t)}function AWe(...t){return new Dk("arrayRemove",t)}function IWe(t){return new Lk("increment",t)}const D8="@firebase/firestore",L8="4.12.0";/** 4116 * @license 4117 * Copyright 2017 Google LLC 4118 * 4119 * Licensed under the Apache License, Version 2.0 (the "License"); 4120 * you may not use this file except in compliance with the License. 4121 * You may obtain a copy of the License at 4122 * 4123 * http://www.apache.org/licenses/LICENSE-2.0 4124 * 4125 * Unless required by applicable law or agreed to in writing, software 4126 * distributed under the License is distributed on an "AS IS" BASIS, 4127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4128 * See the License for the specific language governing permissions and 4129 * limitations under the License. 4130 */function z8(t){return function(n,r){if(typeof n!="object"||n===null)return!1;const i=n;for(const o of r)if(o in i&&typeof i[o]=="function")return!0;return!1}(t,["next","error","complete"])}/** 4131 * @license 4132 * Copyright 2022 Google LLC 4133 * 4134 * Licensed under the Apache License, Version 2.0 (the "License"); 4135 * you may not use this file except in compliance with the License. 4136 * You may obtain a copy of the License at 4137 * 4138 * http://www.apache.org/licenses/LICENSE-2.0 4139 * 4140 * Unless required by applicable law or agreed to in writing, software 4141 * distributed under the License is distributed on an "AS IS" BASIS, 4142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4143 * See the License for the specific language governing permissions and 4144 * limitations under the License. 4145 */class tK{constructor(e="count",n){this._internalFieldPath=n,this.type="AggregateField",this.aggregateType=e}}class Kme{constructor(e,n,r){this._userDataWriter=n,this._data=r,this.type="AggregateQuerySnapshot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}_fieldsProto(){return new Ur({mapValue:{fields:this._data}}).clone().value.mapValue.fields}}/** 4146 * @license 4147 * Copyright 2020 Google LLC 4148 * 4149 * Licensed under the Apache License, Version 2.0 (the "License"); 4150 * you may not use this file except in compliance with the License. 4151 * You may obtain a copy of the License at 4152 * 4153 * http://www.apache.org/licenses/LICENSE-2.0 4154 * 4155 * Unless required by applicable law or agreed to in writing, software 4156 * distributed under the License is distributed on an "AS IS" BASIS, 4157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4158 * See the License for the specific language governing permissions and 4159 * limitations under the License. 4160 */class y0{constructor(e,n,r,i,o){this._firestore=e,this._userDataWriter=n,this._key=r,this._document=i,this._converter=o}get id(){return this._key.path.lastSegment()}get ref(){return new Gn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new Yme(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){var e;return((e=this._document)==null?void 0:e.data.clone().value.mapValue.fields)??void 0}get(e){if(this._document){const n=this._document.data.field(Hu("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class Yme extends y0{data(){return super.data()}}/** 4161 * @license 4162 * Copyright 2020 Google LLC 4163 * 4164 * Licensed under the Apache License, Version 2.0 (the "License");
4165 * you may not use this file except in compliance with the License. 4166 * You may obtain a copy of the License at 4167 * 4168 * http://www.apache.org/licenses/LICENSE-2.0 4169 * 4170 * Unless required by applicable law or agreed to in writing, software 4171 * distributed under the License is distributed on an "AS IS" BASIS, 4172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4173 * See the License for the specific language governing permissions and 4174 * limitations under the License. 4175 */function nK(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new Ae(le.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class $k{}class NE extends $k{}function RWe(t,e,...n){let r=[];e instanceof $k&&r.push(e),r=r.concat(n),function(o){const s=o.filter(l=>l instanceof Fk).length,a=o.filter(l=>l instanceof DE).length;if(s>1||s>0&&a>0)throw new Ae(le.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")}(r);for(const i of r)t=i._apply(t);return t}class DE extends NE{constructor(e,n,r){super(),this._field=e,this._op=n,this._value=r,this.type="where"}static _create(e,n,r){return new DE(e,n,r)}_apply(e){const n=this._parse(e);return rK(e._query,n),new ta(e.firestore,e.converter,Y5(e._query,n))}_parse(e){const n=mh(e.firestore);return function(o,s,a,l,c,u,d){let f;if(c.isKeyField()){if(u==="array-contains"||u==="array-contains-any")throw new Ae(le.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if(u==="in"||u==="not-in"){B8(d,u);const p=[];for(const m of d)p.push(V8(l,o,m));f={arrayValue:{values:p}}}else f=V8(l,o,d)}else u!=="in"&&u!=="not-in"&&u!=="array-contains-any"||B8(d,u),f=YG(a,s,d,u==="in"||u==="not-in");return Vt.create(c,u,f)}(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function MWe(t,e,n){const r=e,i=Hu("where",t);return DE._create(i,r,n)}class Fk extends $k{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Fk(e,n)}_parse(e){const n=this._queryConstraints.map(r=>r._parse(e)).filter(r=>r.getFilters().length>0);return n.length===1?n[0]:un.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:(function(i,o){let s=i;const a=o.getFlattenedFilters();for(const l of a)rK(s,l),s=Y5(s,l)}(e._query,n),new ta(e.firestore,e.converter,Y5(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class jk extends NE{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new jk(e,n)}_apply(e){const n=function(i,o,s){if(i.startAt!==null)throw new Ae(le.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(i.endAt!==null)throw new Ae(le.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new f0(o,s)}(e._query,this._field,this._direction);return new ta(e.firestore,e.converter,xhe(e._query,n))}}function kWe(t,e="asc"){const n=e,r=Hu("orderBy",t);return jk._create(r,n)}class Hk extends NE{constructor(e,n,r){super(),this.type=e,this._limit=n,this._limitType=r}static _create(e,n,r){return new Hk(e,n,r)}_apply(e){return new ta(e.firestore,e.converter,ES(e._query,this._limit,this._limitType))}}function PWe(t){return Rfe("limit",t),Hk._create("limit",t,"F")}class Uk extends NE{constructor(e,n,r){super(),this.type=e,this._docOrFields=n,this._inclusive=r}static _create(e,n,r){return new Uk(e,n,r)}_apply(e){const n=Xme(e,this.type,this._docOrFields,this._inclusive);return new ta(e.firestore,e.converter,Ehe(e._query,n))}}function OWe(...t){return Uk._create("startAfter",t,!1)}function Xme(t,e,n,r){if(n[0]=Ze(n[0]),n[0]instanceof y0)return function(o,s,a,l,c){if(!l)throw new Ae(le.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${a}().`);const u=[];for(const d of Np(o))if(d.field.isKeyField())u.push(Pf(s,l.key));else{const f=l.data.field(d.field);if(bE(f))throw new Ae(le.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+d.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(f===null){const h=d.field.canonicalString();throw new Ae(le.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${h}' (used as the orderBy) does not exist.`)}u.push(f)}return new $u(u,c)}(t._query,t.firestore._databaseId,e,n[0]._document,r);{const i=mh(t.firestore);return function(s,a,l,c,u,d){const f=s.explicitOrderBy;if(u.length>f.length)throw new Ae(le.INVALID_ARGUMENT,`Too many arguments provided to ${c}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);const h=[];for(let p=0;p<u.length;p++){const m=u[p];
vendor: 12,129 bytes, lines 4175-4239
4175if(f[p].field.isKeyField()){if(typeof m!="string")throw new Ae(le.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${c}(), but got a ${typeof m}`);if(!QM(s)&&m.indexOf("/")!==-1)throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${c}() must be a plain document ID, but '${m}' contains a slash.`);const g=s.path.child(Ft.fromString(m));if(!He.isDocumentKey(g))throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${c}() must result in a valid document path, but '${g}' is not because it contains an odd number of segments.`);const y=new He(g);h.push(Pf(a,y))}else{const g=YG(l,c,m);h.push(g)}}return new $u(h,d)}(t._query,t.firestore._databaseId,i,e,n,r)}}function V8(t,e,n){if(typeof(n=Ze(n))=="string"){if(n==="")throw new Ae(le.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!QM(e)&&n.indexOf("/")!==-1)throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const r=e.path.child(Ft.fromString(n));if(!He.isDocumentKey(r))throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${r}' is not because it has an odd number of segments (${r.length}).`);return Pf(t,new He(r))}if(n instanceof Gn)return Pf(t,n._key);throw new Ae(le.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${pE(n)}.`)}function B8(t,e){if(!Array.isArray(t)||t.length===0)throw new Ae(le.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function rK(t,e){const n=function(i,o){for(const s of i)for(const a of s.getFlattenedFilters())if(o.indexOf(a.op)>=0)return a.op;return null}(t.filters,function(i){switch(i){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(n!==null)throw n===e.op?new Ae(le.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new Ae(le.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}function LE(t,e,n){let r;return r=t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e,r}class Qme extends eK{constructor(e){super(),this.firestore=e}convertBytes(e){return new bo(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new Gn(this.firestore,null,n)}}/** 4176 * @license 4177 * Copyright 2022 Google LLC 4178 * 4179 * Licensed under the Apache License, Version 2.0 (the "License"); 4180 * you may not use this file except in compliance with the License. 4181 * You may obtain a copy of the License at 4182 * 4183 * http://www.apache.org/licenses/LICENSE-2.0 4184 * 4185 * Unless required by applicable law or agreed to in writing, software 4186 * distributed under the License is distributed on an "AS IS" BASIS, 4187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4188 * See the License for the specific language governing permissions and 4189 * limitations under the License. 4190 */function NWe(t){return new tK("sum",Hu("sum",t))}function Jme(){return new tK("count")}/** 4191 * @license 4192 * Copyright 2022 Google LLC 4193 * 4194 * Licensed under the Apache License, Version 2.0 (the "License"); 4195 * you may not use this file except in compliance with the License. 4196 * You may obtain a copy of the License at 4197 * 4198 * http://www.apache.org/licenses/LICENSE-2.0 4199 * 4200 * Unless required by applicable law or agreed to in writing, software 4201 * distributed under the License is distributed on an "AS IS" BASIS, 4202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4203 * See the License for the specific language governing permissions and 4204 * limitations under the License. 4205 */function DWe(t){return Zme(t,{count:Jme()})}function Zme(t,e){const n=Rr(t.firestore,Vo),r=id(n),i=she(e,(o,s)=>new Dhe(s,o.aggregateType,o._internalFieldPath));return zme(r,t._query,i).then(o=>function(a,l,c){const u=new Nv(a);return new Kme(l,u,c)}(n,t,o))}class ege{constructor(e){let n;this.kind="persistent",e!=null&&e.tabManager?(e.tabManager._initialize(e),n=e.tabManager):(n=rge(void 0),n._initialize(e)),this._onlineComponentProvider=n._onlineComponentProvider,this._offlineComponentProvider=n._offlineComponentProvider}toJSON(){return{kind:this.kind}}}function LWe(t){return new ege(t)}class tge{constructor(e){this.forceOwnership=e,this.kind="persistentSingleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=g0.provider,this._offlineComponentProvider={build:n=>new FG(n,e==null?void 0:e.cacheSizeBytes,this.forceOwnership)}}}class nge{constructor(){this.kind="PersistentMultipleTab"}toJSON(){return{kind:this.kind}}_initialize(e){this._onlineComponentProvider=g0.provider,this._offlineComponentProvider={build:n=>new Rme(n,e==null?void 0:e.cacheSizeBytes)}}}function rge(t){return new tge(t==null?void 0:t.forceOwnership)}function zWe(){return new nge}class pp{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class Eu extends y0{constructor(e,n,r,i,o,s){super(e,n,r,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=o}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new lw(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const r=this._document.data.field(Hu("DocumentSnapshot.get",e));if(r!==null)return this._userDataWriter.convertValue(r,n.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Ae(le.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e=this._document,n={};return n.type=Eu._jsonSchemaVersion,n.bundle="",n.bundleSource="DocumentSnapshot",n.bundleName=this._key.toString(),!e||!e.isValidDocument()||!e.isFoundDocument()?n:(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),n.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),n)}}Eu._jsonSchemaVersion="firestore/documentSnapshot/1.0",Eu._jsonSchema={type:Ar("string",Eu._jsonSchemaVersion),bundleSource:Ar("string","DocumentSnapshot"),bundleName:Ar("string"),bundle:Ar("string")};class lw extends Eu{data(e={}){return super.data(e)}}class ff{constructor(e,n,r,i){this._firestore=e,this._userDataWriter=n,this._snapshot=i,this.metadata=new pp(i.hasPendingWrites,i.fromCache),this.query=r}get docs(){const e=[];return this.forEach(n=>e.push(n)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach(r=>{e.call(n,new lw(this._firestore,this._userDataWriter,r.key,r,new pp(this._snapshot.mutatedKeys.has(r.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new Ae(le.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=function(i,o){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(a=>{const l=new lw(i._firestore,i._userDataWriter,a.doc.key,a.doc,new pp(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);return a.doc,{type:"added",doc:l,oldIndex:-1,newIndex:s++}})}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(a=>o||a.type!==3).map(a=>{const l=new lw(i._firestore,i._userDataWriter,a.doc.key,a.doc,new pp(i._snapshot.mutatedKeys.has(a.doc.key),i._snapshot.fromCache),i.query.converter);let c=-1,u=-1;return a.type!==0&&(c=s.indexOf(a.doc.key),s=s.delete(a.doc.key)),a.type!==1&&(s=s.add(a.doc),u=s.indexOf(a.doc.key)),{type:ige(a.type),doc:l,oldIndex:c,newIndex:u}})}}(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Ae(le.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const e={};e.type=ff._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=$M.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const n=[],r=[],i=[];return this.docs.forEach(o=>{o._document!==null&&(n.push(o._document),r.push(this._userDataWriter.convertObjectMap(o._document.data.value.mapValue.fields,"previous")),i.push(o.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}}function ige(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Ye(61501,{type:t})}}/** 4206 * @license 4207 * Copyright 2022 Google LLC 4208 * 4209 * Licensed under the Apache License, Version 2.0 (the "License"); 4210 * you may not use this file except in compliance with the License. 4211 * You may obtain a copy of the License at 4212 * 4213 * http://www.apache.org/licenses/LICENSE-2.0 4214 * 4215 * Unless required by applicable law or agreed to in writing, software 4216 * distributed under the License is distributed on an "AS IS" BASIS, 4217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4218 * See the License for the specific language governing permissions and 4219 * limitations under the License. 4220 */ff._jsonSchemaVersion="firestore/querySnapshot/1.0",ff._jsonSchema={type:Ar("string",ff._jsonSchemaVersion),bundleSource:Ar("string","QuerySnapshot"),bundleName:Ar("string"),bundle:Ar("string")};const oge={maxAttempts:5};/** 4221 * @license 4222 * Copyright 2020 Google LLC 4223 * 4224 * Licensed under the Apache License, Version 2.0 (the "License"); 4225 * you may not use this file except in compliance with the License. 4226 * You may obtain a copy of the License at 4227 * 4228 * http://www.apache.org/licenses/LICENSE-2.0 4229 * 4230 * Unless required by applicable law or agreed to in writing, software 4231 * distributed under the License is distributed on an "AS IS" BASIS, 4232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4233 * See the License for the specific language governing permissions and 4234 * limitations under the License. 4235 */class sge{constructor(e,n){this._firestore=e,this._commitHandler=n,this._mutations=[],this._committed=!1,this._dataReader=mh(e)}set(e,n,r){this._verifyNotCommitted();const i=eu(e,this._firestore),o=LE(i.converter,n,r),s=OE(this._dataReader,"WriteBatch.set",i._key,o,i.converter!==null,r);return this._mutations.push(s.toMutation(i._key,Wn.none())),this}update(e,n,r,...i){this._verifyNotCommitted();const o=eu(e,this._firestore);let s;return s=typeof(n=Ze(n))=="string"||n instanceof mg?Vk(this._dataReader,"WriteBatch.update",o._key,n,r,i):zk(this._dataReader,"WriteBatch.update",o._key,n),this._mutations.push(s.toMutation(o._key,Wn.exists(!0))),this}delete(e){this._verifyNotCommitted();const n=eu(e,this._firestore);return this._mutations=this._mutations.concat(new dg(n._key,Wn.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new Ae(le.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}}function eu(t,e){if((t=Ze(t)).firestore!==e)throw new Ae(le.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}/** 4236 * @license 4237 * Copyright 2020 Google LLC 4238 * 4239 * Licensed under the Apache License, Version 2.0 (the "License");
4240 * you may not use this file except in compliance with the License. 4241 * You may obtain a copy of the License at 4242 * 4243 * http://www.apache.org/licenses/LICENSE-2.0 4244 * 4245 * Unless required by applicable law or agreed to in writing, software 4246 * distributed under the License is distributed on an "AS IS" BASIS, 4247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4248 * See the License for the specific language governing permissions and 4249 * limitations under the License. 4250 */class age{constructor(e,n){this._firestore=e,this._transaction=n,this._dataReader=mh(e)}get(e){const n=eu(e,this._firestore),r=new Qme(this._firestore);return this._transaction.lookup([n._key]).then(i=>{if(!i||i.length!==1)return Ye(24041);const o=i[0];if(o.isFoundDocument())return new y0(this._firestore,r,o.key,o,n.converter);if(o.isNoDocument())return new y0(this._firestore,r,n._key,null,n.converter);throw Ye(18433,{doc:o})})}set(e,n,r){const i=eu(e,this._firestore),o=LE(i.converter,n,r),s=OE(this._dataReader,"Transaction.set",i._key,o,i.converter!==null,r);return this._transaction.set(i._key,s),this}update(e,n,r,...i){const o=eu(e,this._firestore);let s;return s=typeof(n=Ze(n))=="string"||n instanceof mg?Vk(this._dataReader,"Transaction.update",o._key,n,r,i):zk(this._dataReader,"Transaction.update",o._key,n),this._transaction.update(o._key,s),this}delete(e){const n=eu(e,this._firestore);return this._transaction.delete(n._key),this}}/** 4251 * @license 4252 * Copyright 2020 Google LLC 4253 * 4254 * Licensed under the Apache License, Version 2.0 (the "License"); 4255 * you may not use this file except in compliance with the License. 4256 * You may obtain a copy of the License at 4257 * 4258 * http://www.apache.org/licenses/LICENSE-2.0 4259 * 4260 * Unless required by applicable law or agreed to in writing, software 4261 * distributed under the License is distributed on an "AS IS" BASIS, 4262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4263 * See the License for the specific language governing permissions and 4264 * limitations under the License. 4265 */let lge=class extends age{constructor(e,n){super(e,n),this._firestore=e}get(e){const n=eu(e,this._firestore),r=new Nv(this._firestore);return super.get(e).then(i=>new Eu(this._firestore,r,n._key,i._document,new pp(!1,!1),n.converter))}};function BWe(t,e,n){t=Rr(t,Vo);const r={...oge,...n};(function(s){if(s.maxAttempts<1)throw new Ae(le.INVALID_ARGUMENT,"Max attempts must be at least 1")})(r);const i=id(t);return Bme(i,o=>e(new lge(t,o)),r)}/** 4266 * @license 4267 * Copyright 2020 Google LLC 4268 * 4269 * Licensed under the Apache License, Version 2.0 (the "License"); 4270 * you may not use this file except in compliance with the License. 4271 * You may obtain a copy of the License at 4272 * 4273 * http://www.apache.org/licenses/LICENSE-2.0 4274 * 4275 * Unless required by applicable law or agreed to in writing, software 4276 * distributed under the License is distributed on an "AS IS" BASIS, 4277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4278 * See the License for the specific language governing permissions and 4279 * limitations under the License. 4280 */function $We(t){t=Rr(t,Gn);const e=Rr(t.firestore,Vo),n=id(e);return HG(n,t._key).then(r=>qk(e,t,r))}function FWe(t){t=Rr(t,Gn);const e=Rr(t.firestore,Vo),n=id(e);return HG(n,t._key,{source:"server"}).then(r=>qk(e,t,r))}function jWe(t){t=Rr(t,ta);const e=Rr(t.firestore,Vo),n=id(e),r=new Nv(e);return nK(t._query),Lme(n,t._query).then(i=>new ff(e,r,t,i))}function HWe(t,e,n){t=Rr(t,Gn);const r=Rr(t.firestore,Vo),i=LE(t.converter,e,n),o=mh(r);return Dv(r,[OE(o,"setDoc",t._key,i,t.converter!==null,n).toMutation(t._key,Wn.none())])}function UWe(t,e,n,...r){t=Rr(t,Gn);const i=Rr(t.firestore,Vo),o=mh(i);let s;return s=typeof(e=Ze(e))=="string"||e instanceof mg?Vk(o,"updateDoc",t._key,e,n,r):zk(o,"updateDoc",t._key,e),Dv(i,[s.toMutation(t._key,Wn.exists(!0))])}function qWe(t){return Dv(Rr(t.firestore,Vo),[new dg(t._key,Wn.none())])}function WWe(t,e){const n=Rr(t.firestore,Vo),r=jme(t),i=LE(t.converter,e),o=mh(t.firestore);return Dv(n,[OE(o,"addDoc",r._key,i,t.converter!==null,{}).toMutation(r._key,Wn.exists(!1))]).then(()=>r)}function GWe(t,...e){var c,u,d;t=Ze(t);let n={includeMetadataChanges:!1,source:"default"},r=0;typeof e[r]!="object"||z8(e[r])||(n=e[r++]);const i={includeMetadataChanges:n.includeMetadataChanges,source:n.source};if(z8(e[r])){const f=e[r];e[r]=(c=f.next)==null?void 0:c.bind(f),e[r+1]=(u=f.error)==null?void 0:u.bind(f),e[r+2]=(d=f.complete)==null?void 0:d.bind(f)}let o,s,a;if(t instanceof Gn)s=Rr(t.firestore,Vo),a=_v(t._key.path),o={next:f=>{e[r]&&e[r](qk(s,t,f))},error:e[r+1],complete:e[r+2]};else{const f=Rr(t,ta);s=Rr(f.firestore,Vo),a=f._query;const h=new Nv(s);o={next:p=>{e[r]&&e[r](new ff(s,h,f,p))},error:e[r+1],complete:e[r+2]},nK(t._query)}const l=id(s);return Dme(l,a,i,o)}function Dv(t,e){const n=id(t);return Vme(n,e)}function qk(t,e,n){const r=n.docs.get(e._key),i=new Nv(t);return new Eu(t,i,e._key,r,new pp(n.hasPendingWrites,n.fromCache),e.converter)}function KWe(t){return t=Rr(t,Vo),id(t),new sge(t,e=>Dv(t,e))}(function(e,n=!0){yfe(dh),zu(new Xl("firestore",(r,{instanceIdentifier:i,options:o})=>{const s=r.getProvider("app").getImmediate(),a=new Vo(new wfe(r.getProvider("auth-internal")),new Efe(s,r.getProvider("app-check-internal")),che(s,i),s);return o={useFetchStreams:n,...o},a._setSettings(o),a},"PUBLIC").setMultipleInstances(!0)),fs(D8,L8,e),fs(D8,L8,"esm2020")})();var cge="firebase",uge="12.10.0";/** 4281 * @license 4282 * Copyright 2020 Google LLC 4283 * 4284 * Licensed under the Apache License, Version 2.0 (the "License");
4285 * you may not use this file except in compliance with the License. 4286 * You may obtain a copy of the License at 4287 * 4288 * http://www.apache.org/licenses/LICENSE-2.0 4289 * 4290 * Unless required by applicable law or agreed to in writing, software 4291 * distributed under the License is distributed on an "AS IS" BASIS, 4292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4293 * See the License for the specific language governing permissions and 4294 * limitations under the License. 4295 */fs(cge,uge,"app");const v0={black:"#000",white:"#fff"},Oh={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"},YWe={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f"},Nh={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"},XWe={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Dh={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"},Lh={200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",800:"#0277bd",900:"#01579b"},QWe={50:"#e0f7fa",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7"},JWe={200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",700:"#00796b",800:"#00695c"},zh={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"},ZWe={400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38"},eGe={500:"#cddc39",700:"#afb42b",800:"#9e9d24"},tGe={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},nGe={300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00"},Gg={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"},rGe={200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c"},iGe={300:"#a1887f",700:"#5d4037",800:"#4e342e"},dge={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"},oGe={100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"};function nc(t,...e){const n=new URL(`https://mui.com/production-error/?code=${t}`);return e.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${t}; visit ${n} for the full message.`}const hs="$$material";function Er(){return Er=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},Er.apply(null,arguments)}function fge(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function hge(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var iK=function(){function t(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?!0: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 e=t.prototype;return e.hydrate=function(r){r.forEach(this._insertTag)},e.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(hge(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=fge(i);try{o.insertRule(r,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++}
vendor: 13,178 bytes, lines 4295-4302
4295,e.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},t}(),pi="-ms-",NS="-moz-",Kt="-webkit-",oK="comm",Wk="rule",Gk="decl",pge="@import",sK="@keyframes",mge="@layer",gge=Math.abs,zE=String.fromCharCode,yge=Object.assign;function vge(t,e){return ni(t,0)^45?(((e<<2^ni(t,0))<<2^ni(t,1))<<2^ni(t,2))<<2^ni(t,3):0}function aK(t){return t.trim()}function bge(t,e){return(t=e.exec(t))?t[0]:t}function Yt(t,e,n){return t.replace(e,n)}function cR(t,e){return t.indexOf(e)}function ni(t,e){return t.charCodeAt(e)|0}function b0(t,e,n){return t.slice(e,n)}function ga(t){return t.length}function Kk(t){return t.length}function jb(t,e){return e.push(t),t}function wge(t,e){return t.map(e).join("")}var VE=1,_m=1,lK=0,oo=0,Cr=0,gg="";function BE(t,e,n,r,i,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:VE,column:_m,length:s,return:""}}function Kg(t,e){return yge(BE("",null,null,"",null,null,0),t,{length:-t.length},e)}function Sge(){return Cr}function xge(){return Cr=oo>0?ni(gg,--oo):0,_m--,Cr===10&&(_m=1,VE--),Cr}function Po(){return Cr=oo<lK?ni(gg,oo++):0,_m++,Cr===10&&(_m=1,VE++),Cr}function Pa(){return ni(gg,oo)}function cw(){return oo}function Lv(t,e){return b0(gg,t,e)}function w0(t){switch(t){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 cK(t){return VE=_m=1,lK=ga(gg=t),oo=0,[]}function uK(t){return gg="",t}function uw(t){return aK(Lv(oo-1,uR(t===91?t+2:t===40?t+1:t)))}function Ege(t){for(;(Cr=Pa())&&Cr<33;)Po();return w0(t)>2||w0(Cr)>3?"":" "}function Tge(t,e){for(;--e&&Po()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return Lv(t,cw()+(e<6&&Pa()==32&&Po()==32))}function uR(t){for(;Po();)switch(Cr){case t:return oo;case 34:case 39:t!==34&&t!==39&&uR(Cr);break;case 40:t===41&&uR(t);break;case 92:Po();break}return oo}function Cge(t,e){for(;Po()&&t+Cr!==57;)if(t+Cr===84&&Pa()===47)break;return"/*"+Lv(e,oo-1)+"*"+zE(t===47?t:Po())}function _ge(t){for(;!w0(Pa());)Po();return Lv(t,oo)}function Age(t){return uK(dw("",null,null,null,[""],t=cK(t),0,[0],t))}function dw(t,e,n,r,i,o,s,a,l){for(var c=0,u=0,d=s,f=0,h=0,p=0,m=1,g=1,y=1,b=0,v="",S=i,I=o,O=r,T=v;g;)switch(p=b,b=Po()){case 40:if(p!=108&&ni(T,d-1)==58){cR(T+=Yt(uw(b),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=uw(b);break;case 9:case 10:case 13:case 32:T+=Ege(p);break;case 92:T+=Tge(cw()-1,7);continue;case 47:switch(Pa()){case 42:case 47:jb(Ige(Cge(Po(),cw()),e,n),l);break;default:T+="/"}break;case 123*m:a[c++]=ga(T)*y;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:y==-1&&(T=Yt(T,/\f/g,"")),h>0&&ga(T)-d&&jb(h>32?F8(T+";",r,n,d-1):F8(Yt(T," ","")+";",r,n,d-2),l);break;case 59:T+=";";default:if(jb(O=$8(T,e,n,c,u,i,a,v,S=[],I=[],d),o),b===123)if(u===0)dw(T,e,O,O,S,o,d,a,I);else switch(f===99&&ni(T,3)===110?100:f){case 100:case 108:case 109:case 115:dw(t,O,O,r&&jb($8(t,O,O,0,0,i,a,v,i,S=[],d),I),i,I,d,a,r?S:I);break;default:dw(T,O,O,O,[""],I,0,a,I)}}c=u=h=0,m=y=1,v=T="",d=s;break;case 58:d=1+ga(T),h=p;default:if(m<1){if(b==123)--m;else if(b==125&&m++==0&&xge()==125)continue}switch(T+=zE(b),b*m){case 38:y=u>0?1:(T+="\f",-1);break;case 44:a[c++]=(ga(T)-1)*y,y=1;break;case 64:Pa()===45&&(T+=uw(Po())),f=Pa(),u=d=ga(v=T+=_ge(cw())),b++;break;case 45:p===45&&ga(T)==2&&(m=0)}}return o}function $8(t,e,n,r,i,o,s,a,l,c,u){for(var d=i-1,f=i===0?o:[""],h=Kk(f),p=0,m=0,g=0;p<r;++p)for(var y=0,b=b0(t,d+1,d=gge(m=s[p])),v=t;y<h;++y)(v=aK(m>0?f[y]+" "+b:Yt(b,/&\f/g,f[y])))&&(l[g++]=v);return BE(t,e,n,i===0?Wk:a,l,c,u)}function Ige(t,e,n){return BE(t,e,n,oK,zE(Sge()),b0(t,2,-2),0)}function F8(t,e,n,r){return BE(t,e,n,Gk,b0(t,0,r),b0(t,r+1,-1),r)}function zp(t,e){for(var n="",r=Kk(t),i=0;i<r;i++)n+=e(t[i],i,t,e)||"";return n}function Rge(t,e,n,r){switch(t.type){case mge:if(t.children.length)break;case pge:case Gk:return t.return=t.return||t.value;case oK:return"";case sK:return t.return=t.value+"{"+zp(t.children,r)+"}";case Wk:t.value=t.props.join(",")}return ga(n=zp(t.children,r))?t.return=t.value+"{"+n+"}":""}function Mge(t){var e=Kk(t);return function(n,r,i,o){for(var s="",a=0;a<e;a++)s+=t[a](n,r,i,o)||"";return s}}function kge(t){return function(e){e.root||(e=e.return)&&t(e)}}function dK(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Pge=function(e,n,r){for(var i=0,o=0;i=o,o=Pa(),i===38&&o===12&&(n[r]=1),!w0(o);)Po();return Lv(e,oo)},Oge=function(e,n){var r=-1,i=44;do switch(w0(i)){case 0:i===38&&Pa()===12&&(n[r]=1),e[r]+=Pge(oo-1,n,r);break;case 2:e[r]+=uw(i);break;case 4:if(i===44){e[++r]=Pa()===58?"&\f":"",n[r]=e[r].length;break}default:e[r]+=zE(i)}while(i=Po());return e},Nge=function(e,n){return uK(Oge(cK(e),n))},j8=new WeakMap,Dge=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,r=e.parent,i=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!j8.get(r))&&!i){j8.set(e,!0);for(var o=[],s=Nge(n,o),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},Lge=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function fK(t,e){switch(vge(t,e)){case 5103:return Kt+"print-"+t+t;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 Kt+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Kt+t+NS+t+pi+t+t;case 6828:case 4268:return Kt+t+pi+t+t;case 6165:return Kt+t+pi+"flex-"+t+t;case 5187:return Kt+t+Yt(t,/(\w+).+(:[^]+)/,Kt+"box-$1$2"+pi+"flex-$1$2")+t;case 5443:return Kt+t+pi+"flex-item-"+Yt(t,/flex-|-self/,"")+t;case 4675:return Kt+t+pi+"flex-line-pack"+Yt(t,/align-content|flex-|-self/,"")+t;case 5548:return Kt+t+pi+Yt(t,"shrink","negative")+t;case 5292:return Kt+t+pi+Yt(t,"basis","preferred-size")+t;case 6060:return Kt+"box-"+Yt(t,"-grow","")+Kt+t+pi+Yt(t,"grow","positive")+t;case 4554:return Kt+Yt(t,/([^-])(transform)/g,"$1"+Kt+"$2")+t;case 6187:return Yt(Yt(Yt(t,/(zoom-|grab)/,Kt+"$1"),/(image-set)/,Kt+"$1"),t,"")+t;case 5495:case 3959:return Yt(t,/(image-set\([^]*)/,Kt+"$1$`$1");case 4968:return Yt(Yt(t,/(.+:)(flex-)?(.*)/,Kt+"box-pack:$3"+pi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Kt+t+t;case 4095:case 3583:case 4068:case 2532:return Yt(t,/(.+)-inline(.+)/,Kt+"$1$2")+t;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(ga(t)-1-e>6)switch(ni(t,e+1)){case 109:if(ni(t,e+4)!==45)break;case 102:return Yt(t,/(.+:)(.+)-([^]+)/,"$1"+Kt+"$2-$3$1"+NS+(ni(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~cR(t,"stretch")?fK(Yt(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(ni(t,e+1)!==115)break;case 6444:switch(ni(t,ga(t)-3-(~cR(t,"!important")&&10))){case 107:return Yt(t,":",":"+Kt)+t;case 101:return Yt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Kt+(ni(t,14)===45?"inline-":"")+"box$3$1"+Kt+"$2$3$1"+pi+"$2box$3")+t}break;case 5936:switch(ni(t,e+11)){case 114:return Kt+t+pi+Yt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Kt+t+pi+Yt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Kt+t+pi+Yt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Kt+t+pi+t+t}return t}var zge=function(e,n,r,i){if(e.length>-1&&!e.return)switch(e.type){case Gk:e.return=fK(e.value,e.length);break;case sK:return zp([Kg(e,{value:Yt(e.value,"@","@"+Kt)})],i);case Wk:if(e.length)return wge(e.props,function(o){switch(bge(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return zp([Kg(e,{props:[Yt(o,/:(read-\w+)/,":"+NS+"$1")]})],i);case"::placeholder":return zp([Kg(e,{props:[Yt(o,/:(plac\w+)/,":"+Kt+"input-$1")]}),Kg(e,{props:[Yt(o,/:(plac\w+)/,":"+NS+"$1")]}),Kg(e,{props:[Yt(o,/:(plac\w+)/,pi+"input-$1")]})],i)}return""})}},Vge=[zge],Yk=function(e){var n=e.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=e.stylisPlugins||Vge,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)o[g[y]]=!0;a.push(m)});var l,c=[Dge,Lge];{var u,d=[Rge,kge(function(m){u.insert(m)})],f=Mge(c.concat(i,d)),h=function(g){return zp(Age(g),f)};l=function(g,y,b,v){u=b,h(g?g+"{"+y.styles+"}":y.styles),v&&(p.inserted[y.name]=!0)}}var p={key:n,sheet:new iK({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return p.sheet.hydrate(a),p},hK={exports:{}},hn={};/** @license React v16.13.1 4296 * react-is.production.min.js 4297 * 4298 * Copyright (c) Facebook, Inc. and its affiliates. 4299 * 4300 * This source code is licensed under the MIT license found in the 4301 * LICENSE file in the root directory of this source tree. 4302 */var Qr=typeof Symbol=="function"&&Symbol.for,Xk=Qr?Symbol.for("react.element"):60103,Qk=Qr?Symbol.for("react.portal"):60106,$E=Qr?Symbol.for("react.fragment"):60107,FE=Qr?Symbol.for("react.strict_mode"):60108,jE=Qr?Symbol.for("react.profiler"):60114,HE=Qr?Symbol.for("react.provider"):60109,UE=Qr?Symbol.for("react.context"):60110,Jk=Qr?Symbol.for("react.async_mode"):60111,qE=Qr?Symbol.for("react.concurrent_mode"):60111,WE=Qr?Symbol.for("react.forward_ref"):60112,GE=Qr?Symbol.for("react.suspense"):60113,Bge=Qr?Symbol.for("react.suspense_list"):60120,KE=Qr?Symbol.for("react.memo"):60115,YE=Qr?Symbol.for("react.lazy"):60116,$ge=Qr?Symbol.for("react.block"):60121,Fge=Qr?Symbol.for("react.fundamental"):60117,jge=Qr?Symbol.for("react.responder"):60118,Hge=Qr?Symbol.for("react.scope"):60119;function jo(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case Xk:switch(t=t.type,t){case Jk:case qE:case $E:case jE:case FE:case GE:return t;default:switch(t=t&&t.$$typeof,t){case UE:case WE:case YE:case KE:case HE:return t;default:return e}}case Qk:return e}}}function pK(t){return jo(t)===qE}hn.AsyncMode=Jk;hn.ConcurrentMode=qE;hn.ContextConsumer=UE;hn.ContextProvider=HE;hn.Element=Xk;hn.ForwardRef=WE;hn.Fragment=$E;hn.Lazy=YE;hn.Memo=KE;hn.Portal=Qk;hn.Profiler=jE;hn.StrictMode=FE;hn.Suspense=GE;hn.isAsyncMode=function(t){return pK(t)||jo(t)===Jk};hn.isConcurrentMode=pK;hn.isContextConsumer=function(t){return jo(t)===UE};hn.isContextProvider=function(t){return jo(t)===HE};hn.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===Xk};hn.isForwardRef=function(t){return jo(t)===WE};hn.isFragment=function(t){return jo(t)===$E};hn.isLazy=function(t){return jo(t)===YE};hn.isMemo=function(t){return jo(t)===KE};hn.isPortal=function(t){return jo(t)===Qk};hn.isProfiler=function(t){return jo(t)===jE};hn.isStrictMode=function(t){return jo(t)===FE};hn.isSuspense=function(t){return jo(t)===GE};hn.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===$E||t===qE||t===jE||t===FE||t===GE||t===Bge||typeof t=="object"&&t!==null&&(t.$$typeof===YE||t.$$typeof===KE||t.$$typeof===HE||t.$$typeof===UE||t.$$typeof===WE||t.$$typeof===Fge||t.$$typeof===jge||t.$$typeof===Hge||t.$$typeof===$ge)};hn.typeOf=jo;hK.exports=hn;var Uge=hK.exports,mK=Uge,qge={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Wge={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},gK={};gK[mK.ForwardRef]=qge;gK[mK.Memo]=Wge;var Gge=!0;function XE(t,e,n){var r="";return n.split(" ").forEach(function(i){t[i]!==void 0?e.push(t[i]+";"):i&&(r+=i+" ")}),r}var Zk=function(e,n,r){var i=e.key+"-"+n.name;(r===!1||Gge===!1)&&e.registered[i]===void 0&&(e.registered[i]=n.styles)},QE=function(e,n,r){Zk(e,n,r);var i=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+i:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Kge(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var Yge={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,msGr
vendor: 9,952 bytes, line 4302
4302idRow: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},Xge=/[A-Z]|^ms/g,Qge=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yK=function(e){return e.charCodeAt(1)===45},H8=function(e){return e!=null&&typeof e!="boolean"},tA=dK(function(t){return yK(t)?t:t.replace(Xge,"-$&").toLowerCase()}),U8=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Qge,function(r,i,o){return ya={name:i,styles:o,next:ya},i})}return Yge[e]!==1&&!yK(e)&&typeof n=="number"&&n!==0?n+"px":n};function S0(t,e,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 ya={name:i.name,styles:i.styles,next:ya},i.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ya={name:s.name,styles:s.styles,next:ya},s=s.next;var a=o.styles+";";return a}return Jge(t,e,n)}case"function":{if(t!==void 0){var l=ya,c=n(t);return ya=l,S0(t,e,c)}break}}var u=n;if(e==null)return u;var d=e[u];return d!==void 0?d:u}function Jge(t,e,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=S0(t,e,n[i])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?r+=o+"{"+e[a]+"}":H8(a)&&(r+=tA(o)+":"+U8(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)H8(s[l])&&(r+=tA(o)+":"+U8(o,s[l])+";");else{var c=S0(t,e,s);switch(o){case"animation":case"animationName":{r+=tA(o)+":"+c+";";break}default:r+=o+"{"+c+"}"}}}return r}var q8=/label:\s*([^\s;{]+)\s*(;|$)/g,ya;function Tu(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var r=!0,i="";ya=void 0;var o=t[0];if(o==null||o.raw===void 0)r=!1,i+=S0(n,e,o);else{var s=o;i+=s[0]}for(var a=1;a<t.length;a++)if(i+=S0(n,e,t[a]),r){var l=o;i+=l[a]}q8.lastIndex=0;for(var c="",u;(u=q8.exec(i))!==null;)c+="-"+u[1];var d=Kge(i)+c;return{name:d,styles:i,next:ya}}var Zge=function(e){return e()},vK=Ly.useInsertionEffect?Ly.useInsertionEffect:!1,bK=vK||Zge,W8=vK||E.useLayoutEffect,wK=E.createContext(typeof HTMLElement<"u"?Yk({key:"css"}):null),e1e=wK.Provider,eP=function(e){return E.forwardRef(function(n,r){var i=E.useContext(wK);return e(n,i,r)})},yg=E.createContext({}),sGe=function(){return E.useContext(yg)},tP={}.hasOwnProperty,dR="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",t1e=function(e,n){var r={};for(var i in n)tP.call(n,i)&&(r[i]=n[i]);return r[dR]=e,r},n1e=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Zk(n,r,i),bK(function(){return QE(n,r,i)}),null},r1e=eP(function(t,e,n){var r=t.css;typeof r=="string"&&e.registered[r]!==void 0&&(r=e.registered[r]);var i=t[dR],o=[r],s="";typeof t.className=="string"?s=XE(e.registered,o,t.className):t.className!=null&&(s=t.className+" ");var a=Tu(o,void 0,E.useContext(yg));s+=e.key+"-"+a.name;var l={};for(var c in t)tP.call(t,c)&&c!=="css"&&c!==dR&&(l[c]=t[c]);return l.className=s,n&&(l.ref=n),E.createElement(E.Fragment,null,E.createElement(n1e,{cache:e,serialized:a,isStringTag:typeof i=="string"}),E.createElement(i,l))}),i1e=r1e,G8=function(e,n){var r=arguments;if(n==null||!tP.call(n,"css"))return E.createElement.apply(void 0,r);var i=r.length,o=new Array(i);o[0]=i1e,o[1]=t1e(e,n);for(var s=2;s<i;s++)o[s]=r[s];return E.createElement.apply(null,o)};(function(t){var e;e||(e=t.JSX||(t.JSX={}))})(G8||(G8={}));var o1e=eP(function(t,e){var n=t.styles,r=Tu([n],void 0,E.useContext(yg)),i=E.useRef();return W8(function(){var o=e.key+"-global",s=new e.sheet.constructor({key:o,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),a=!1,l=document.querySelector('style[data-emotion="'+o+" "+r.name+'"]');return e.sheet.tags.length&&(s.before=e.sheet.tags[0]),l!==null&&(a=!0,l.setAttribute("data-emotion",o),s.hydrate([l])),i.current=[s,a],function(){s.flush()}},[e]),W8(function(){var o=i.current,s=o[0],a=o[1];if(a){o[1]=!1;return}if(r.next!==void 0&&QE(e,r.next,!0),s.tags.length){var l=s.tags[s.tags.length-1].nextElementSibling;s.before=l,s.flush()}e.insert("",r,s,!1)},[e,r.name]),null});function od(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Tu(e)}function Ja(){var t=od.apply(void 0,arguments),e="animation-"+t.name;return{name:e,styles:"@keyframes "+e+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var s1e=/^((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|playsInline|popover|popoverTarget|popoverTargetAction|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)-.*))$/,a1e=dK(function(t){return s1e.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),l1e=a1e,c1e=function(e){return e!=="theme"},K8=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?l1e:c1e},Y8=function(e,n,r){var i;if(n){var o=n.shouldForwardProp;i=e.__emotion_forwardProp&&o?function(s){return e.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=e.__emotion_forwardProp),i},u1e=function(e){var n=e.cache,r=e.serialized,i=e.isStringTag;return Zk(n,r,i),bK(function(){return QE(n,r,i)}),null},d1e=function t(e,n){var r=e.__emotion_real===e,i=r&&e.__emotion_base||e,o,s;n!==void 0&&(o=n.label,s=n.target);var a=Y8(e,n,r),l=a||K8(i),c=!l("as");return function(){var u=arguments,d=r&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var h=u.length,p=1;p<h;p++)d.push(u[p],f[p])}var m=eP(function(g,y,b){var v=c&&g.as||i,S="",I=[],O=g;if(g.theme==null){O={};for(var T in g)O[T]=g[T];O.theme=E.useContext(yg)}typeof g.className=="string"?S=XE(y.registered,I,g.className):g.className!=null&&(S=g.className+" ");
4302var A=Tu(d.concat(I),y.registered,O);S+=y.key+"-"+A.name,s!==void 0&&(S+=" "+s);var R=c&&a===void 0?K8(v):l,k={};for(var P in g)c&&P==="as"||R(P)&&(k[P]=g[P]);return k.className=S,b&&(k.ref=b),E.createElement(E.Fragment,null,E.createElement(u1e,{cache:y,serialized:A,isStringTag:typeof v=="string"}),E.createElement(v,k))});return m.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",m.defaultProps=e.defaultProps,m.__emotion_real=m,m.__emotion_base=i,m.__emotion_styles=d,m.__emotion_forwardProp=a,Object.defineProperty(m,"toString",{value:function(){return"."+s}}),m.withComponent=function(g,y){var b=t(g,Er({},n,y,{shouldForwardProp:Y8(m,y,!0)}));return b.apply(void 0,d)},m}},f1e=["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"],fR=d1e.bind(null);f1e.forEach(function(t){fR[t]=fR(t)});var SK={exports:{}},h1e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",p1e=h1e,m1e=p1e;function xK(){}function EK(){}EK.resetWarningCache=xK;var g1e=function(){function t(r,i,o,s,a,l){if(l!==m1e){var c=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 c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:EK,resetWarningCache:xK};return n.PropTypes=n,n};SK.exports=g1e();var TK=SK.exports;const Sn=Ts(TK),nA=new Map,y1e=(t,e)=>{const n=Yk(t);return n.sheet=new e({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n};let Nc;if(typeof document=="object"&&(Nc=document.querySelector('[name="emotion-insertion-point"]'),!Nc)){Nc=document.createElement("meta"),Nc.setAttribute("name","emotion-insertion-point"),Nc.setAttribute("content","");const t=document.querySelector("head");t&&t.prepend(Nc)}
4302function v1e(t,e){if(t||e){class n extends iK{insert(o,s){return this.key&&this.key.endsWith("global")&&(this.before=Nc),super.insert(o,s)}}const r=y1e({key:"css",insertionPoint:t?Nc:void 0},n);if(e){const i=r.insert;r.insert=(...o)=>(o[1].styles.match(/^@layer\s+[^{]*$/)||(o[1].styles=`@layer mui {${o[1].styles}}`),i(...o))}return r}}function aGe(t){const{injectFirst:e,enableCssLayer:n,children:r}=t,i=E.useMemo(()=>{const o=`${e}-${n}`;if(typeof document=="object"&&nA.has(o))return nA.get(o);const s=v1e(e,n);return nA.set(o,s),s},[e,n]);return i?x.jsx(e1e,{value:i,children:r}):r}function b1e(t){return t==null||Object.keys(t).length===0}function CK(t){const{styles:e,defaultTheme:n={}}=t,r=typeof e=="function"?i=>e(b1e(i)?n:i):e;return x.jsx(o1e,{styles:r})}function _K(t,e){return fR(t,e)}function w1e(t,e){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}const X8=[];function Cu(t){return X8[0]=t,Tu(X8)}var AK={exports:{}},Tn={};/** 4303 * @license React 4304 * react-is.production.js 4305 * 4306 * Copyright (c) Meta Platforms, Inc. and affiliates. 4307 * 4308 * This source code is licensed under the MIT license found in the 4309 * LICENSE file in the root directory of this source tree. 4310 */var nP=Symbol.for("react.transitional.element"),rP=Symbol.for("react.portal"),JE=Symbol.for("react.fragment"),ZE=Symbol.for("react.strict_mode"),eT=Symbol.for("react.profiler"),tT=Symbol.for("react.consumer"),nT=Symbol.for("react.context"),rT=Symbol.for("react.forward_ref"),iT=Symbol.for("react.suspense"),oT=Symbol.for("react.suspense_list"),sT=Symbol.for("react.memo"),aT=Symbol.for("react.lazy"),S1e=Symbol.for("react.view_transition"),x1e=Symbol.for("react.client.reference");function Cs(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case nP:switch(t=t.type,t){case JE:case eT:case ZE:case iT:case oT:case S1e:return t;default:switch(t=t&&t.$$typeof,t){case nT:case rT:case aT:case sT:return t;case tT:return t;default:return e}}case rP:return e}}}Tn.ContextConsumer=tT;Tn.ContextProvider=nT;Tn.Element=nP;Tn.ForwardRef=rT;Tn.Fragment=JE;Tn.Lazy=aT;Tn.Memo=sT;Tn.Portal=rP;Tn.Profiler=eT;Tn.StrictMode=ZE;Tn.Suspense=iT;Tn.SuspenseList=oT;Tn.isContextConsumer=function(t){return Cs(t)===tT};Tn.isContextProvider=function(t){return Cs(t)===nT};Tn.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===nP};Tn.isForwardRef=function(t){return Cs(t)===rT};Tn.isFragment=function(t){return Cs(t)===JE};Tn.isLazy=function(t){return Cs(t)===aT};Tn.isMemo=function(t){return Cs(t)===sT};Tn.isPortal=function(t){return Cs(t)===rP};Tn.isProfiler=function(t){return Cs(t)===eT};Tn.isStrictMode=function(t){return Cs(t)===ZE};Tn.isSuspense=function(t){return Cs(t)===iT};Tn.isSuspenseList=function(t){return Cs(t)===oT};Tn.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===JE||t===eT||t===ZE||t===iT||t===oT||typeof t=="object"&&t!==null&&(t.$$typeof===aT||t.$$typeof===sT||t.$$typeof===nT||t.$$typeof===tT||t.$$typeof===rT||t.$$typeof===x1e||t.getModuleId!==void 0)};Tn.typeOf=Cs;AK.exports=Tn;var IK=AK.exports;function wa(t){if(typeof t!="object"||t===null)return!1;const e=Object.getPrototypeOf(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function RK(t){if(E.isValidElement(t)||IK.isValidElementType(t)||!wa(t))return t;const e={};return Object.keys(t).forEach(n=>{e[n]=RK(t[n])}),e}function Kr(t,e,n={clone:!0}){const r=n.clone?{...t}:t;return wa(t)&&wa(e)&&Object.keys(e).forEach(i=>{E.isValidElement(e[i])||IK.isValidElementType(e[i])?r[i]=e[i]:wa(e[i])&&Object.prototype.hasOwnProperty.call(t,i)&&wa(t[i])?r[i]=Kr(t[i],e[i],n):n.clone?r[i]=wa(e[i])?RK(e[i]):e[i]:r[i]=e[i]}),r}const E1e=t=>{const e=Object.keys(t).map(n=>({key:n,val:t[n]}))||[];return e.sort((n,r)=>n.val-r.val),e.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function T1e(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=t,o=E1e(e),s=Object.keys(o);function a(f){return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof e[f]=="number"?e[f]:f)-r/100}${n})`}function c(f,h){const p=s.indexOf(h);return`@media (min-width:${typeof e[f]=="number"?e[f]:f}${n}) and (max-width:${(p!==-1&&typeof e[s[p]]=="number"?e[s[p]]:h)-r/100}${n})`}function u(f){return s.indexOf(f)+1<s.length?c(f,s[s.indexOf(f)+1]):a(f)}function d(f){const h=s.indexOf(f);return h===0?a(s[1]):h===s.length-1?l(s[h]):c(f,s[s.indexOf(f)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:a,down:l,between:c,only:u,not:d,unit:n,...i}}function Q8(t,e){if(!t.containerQueries)return e;const n=Object.keys(e).filter(r=>r.startsWith("@container")).sort((r,i)=>{var s,a;const o=/min-width:\s*([0-9.]+)/;
4310return+(((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=e[i];return delete r[i],r[i]=o,r},{...e}):e}function C1e(t,e){return e==="@"||e.startsWith("@")&&(t.some(n=>e.startsWith(`@${n}`))||!!e.match(/^@\d/))}function _1e(t,e){const n=e.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,o=Number.isNaN(+r)?r||0:+r;return t.containerQueries(i).up(o)}function A1e(t){const e=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...a)=>e(t.breakpoints.up(...a),s),o.down=(...a)=>e(t.breakpoints.down(...a),s),o.between=(...a)=>e(t.breakpoints.between(...a),s),o.only=(...a)=>e(t.breakpoints.only(...a),s),o.not=(...a)=>{const l=e(t.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),{...t,containerQueries:i}}const I1e={borderRadius:4};function py(t,e){return e?Kr(t,e,{clone:!1}):t}const lT={xs:0,sm:600,md:900,lg:1200,xl:1536},J8={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${lT[t]}px)`},R1e={containerQueries:t=>({up:e=>{let n=typeof e=="number"?e:lT[e]||e;return typeof n=="number"&&(n=`${n}px`),t?`@container ${t} (min-width:${n})`:`@container (min-width:${n})`}})};function Ks(t,e,n){const r=t.theme||{};if(Array.isArray(e)){const o=r.breakpoints||J8;return e.reduce((s,a,l)=>(s[o.up(o.keys[l])]=n(e[l]),s),{})}if(typeof e=="object"){const o=r.breakpoints||J8;return Object.keys(e).reduce((s,a)=>{if(C1e(o.keys,a)){const l=_1e(r.containerQueries?r:R1e,a);l&&(s[l]=n(e[a],a))}else if(Object.keys(o.values||lT).includes(a)){const l=o.up(a);s[l]=n(e[a],a)}else{const l=a;s[l]=e[l]}return s},{})}return n(e)}function MK(t={}){var n;return((n=t.keys)==null?void 0:n.reduce((r,i)=>{const o=t.up(i);return r[o]={},r},{}))||{}}function hR(t,e){return t.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},e)}function M1e(t,...e){const n=MK(t),r=[n,...e].reduce((i,o)=>Kr(i,o),{});return hR(Object.keys(n),r)}function k1e(t,e){if(typeof t!="object")return{};const n={},r=Object.keys(e);return Array.isArray(t)?r.forEach((i,o)=>{o<t.length&&(n[i]=!0)}):r.forEach(i=>{t[i]!=null&&(n[i]=!0)}),n}function rA({values:t,breakpoints:e,base:n}){const r=n||k1e(t,e),i=Object.keys(r);if(i.length===0)return t;let o;return i.reduce((s,a,l)=>(Array.isArray(t)?(s[a]=t[l]!=null?t[l]:t[o],o=l):typeof t=="object"?(s[a]=t[a]!=null?t[a]:t[o],o=a):s[a]=t,s),{})}function Q(t){if(typeof t!="string")throw new Error(nc(7));return t.charAt(0).toUpperCase()+t.slice(1)}function va(t,e,n=!0){if(!e||typeof e!="string")return null;if(t&&t.vars&&n){const r=`vars.${e}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,t);if(r!=null)return r}return e.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,t)}function DS(t,e,n,r=n){let i;return typeof t=="function"?i=t(n):Array.isArray(t)?i=t[n]||r:i=va(t,n)||r,e&&(i=e(i,r,t)),i}function gr(t){const{prop:e,cssProperty:n=t.prop,themeKey:r,transform:i}=t,o=s=>{if(s[e]==null)return null;const a=s[e],l=s.theme,c=va(l,r)||{};return Ks(s,a,d=>{let f=DS(c,i,d);return d===f&&typeof d=="string"&&(f=DS(c,i,`${e}${d==="default"?"":Q(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes={},o.filterProps=[e],o}function P1e(t){const e={};return n=>(e[n]===void 0&&(e[n]=t(n)),e[n])}const O1e={m:"margin",p:"padding"},N1e={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Z8={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},D1e=P1e(t=>{if(t.length>2)if(Z8[t])t=Z8[t];else return[t];const[e,n]=t.split(""),r=O1e[e],i=N1e[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),iP=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],oP=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...iP,...oP];function zv(t,e,n,r){const i=va(t,e,!0)??n;return typeof i=="number"||typeof i=="string"?o=>
4310typeof o=="string"?o:typeof i=="string"?i.startsWith("var(")&&o===0?0:i.startsWith("var(")&&o===1?i:`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:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof i=="function"?i:()=>{}}function cT(t){return zv(t,"spacing",8)}function $f(t,e){return typeof e=="string"||e==null?e:t(e)}function L1e(t,e){return n=>t.reduce((r,i)=>(r[i]=$f(e,n),r),{})}function z1e(t,e,n,r){if(!e.includes(n))return null;const i=D1e(n),o=L1e(i,r),s=t[n];return Ks(t,s,o)}function kK(t,e){const n=cT(t.theme);return Object.keys(t).map(r=>z1e(t,e,r,n)).reduce(py,{})}function tr(t){return kK(t,iP)}tr.propTypes={};tr.filterProps=iP;function nr(t){return kK(t,oP)}nr.propTypes={};nr.filterProps=oP;function PK(t=8,e=cT({spacing:t})){if(t.mui)return t;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=e(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function uT(...t){const e=t.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>e[o]?py(i,e[o](r)):i,{});return n.propTypes={},n.filterProps=t.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ts(t){return typeof t!="number"?t:`${t}px solid`}function _s(t,e){return gr({prop:t,themeKey:"borders",transform:e})}const V1e=_s("border",ts),B1e=_s("borderTop",ts),$1e=_s("borderRight",ts),F1e=_s("borderBottom",ts),j1e=_s("borderLeft",ts),H1e=_s("borderColor"),U1e=_s("borderTopColor"),q1e=_s("borderRightColor"),W1e=_s("borderBottomColor"),G1e=_s("borderLeftColor"),K1e=_s("outline",ts),Y1e=_s("outlineColor"),dT=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const e=zv(t.theme,"shape.borderRadius",4),n=r=>({borderRadius:$f(e,r)});return Ks(t,t.borderRadius,n)}return null};dT.propTypes={};dT.filterProps=["borderRadius"];uT(V1e,B1e,$1e,F1e,j1e,H1e,U1e,q1e,W1e,G1e,dT,K1e,Y1e);const fT=t=>{if(t.gap!==void 0&&t.gap!==null){const e=zv(t.theme,"spacing",8),n=r=>({gap:$f(e,r)});return Ks(t,t.gap,n)}return null};fT.propTypes={};fT.filterProps=["gap"];const hT=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const e=zv(t.theme,"spacing",8),n=r=>({columnGap:$f(e,r)});return Ks(t,t.columnGap,n)}return null};hT.propTypes={};hT.filterProps=["columnGap"];const pT=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const e=zv(t.theme,"spacing",8),n=r=>({rowGap:$f(e,r)});return Ks(t,t.rowGap,n)}return null};pT.propTypes={};pT.filterProps=["rowGap"];const X1e=gr({prop:"gridColumn"}),Q1e=gr({prop:"gridRow"}),J1e=gr({prop:"gridAutoFlow"}),Z1e=gr({prop:"gridAutoColumns"}),eye=gr({prop:"gridAutoRows"}),tye=gr({prop:"gridTemplateColumns"}),nye=gr({prop:"gridTemplateRows"}),rye=gr({prop:"gridTemplateAreas"}),iye=gr({prop:"gridArea"});uT(fT,hT,pT,X1e,Q1e,J1e,Z1e,eye,tye,nye,rye,iye);function Vp(t,e){return e==="grey"?e:t}const oye=gr({prop:"color",themeKey:"palette",transform:Vp}),sye=gr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vp}),aye=gr({prop:"backgroundColor",themeKey:"palette",transform:Vp});uT(oye,sye,aye);function wo(t){return t<=1&&t!==0?`${t*100}%`:t}const lye=gr({prop:"width",transform:wo}),sP=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const e=n=>{var i,o,s,a,l;const r=((s=(o=(i=t.theme)==null?void 0:i.breakpoints)==null?void 0:o.values)==null?void 0:s[n])||lT[n];return r?((l=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${t.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:wo(n)}};return Ks(t,t.maxWidth,e)}return null};sP.filterProps=["maxWidth"];const cye=gr({prop:"minWidth",transform:wo}),uye=gr({prop:"height",transform:wo}),dye=gr({prop:"maxHeight",transform:wo}),fye=gr({prop:"minHeight",transform:wo});gr({prop:"size",cssProperty:"width",transform:wo});gr({prop:"size",cssProperty:"height",transform:wo});const hye=gr({prop:"boxSizing"});uT(lye,sP,cye,uye,dye,fye,hye);const Vv={border:{themeKey:"borders",transform:ts},borderTop:{themeKey:"borders",transform:ts},borderRight:{themeKey:"borders",transform:ts},borderBottom:{themeKey:"borders",transform:ts},borderLeft:{themeKey:"borders",transform:ts},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ts},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:dT},color:{themeKey:"palette",transform:Vp},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vp},backgroundColor:{themeKey:"palette",transform:Vp},p:{style:nr},pt:{style:nr},pr:{style:nr},pb:{style:nr},pl:{style:nr},px:{style:nr},py:{style:nr},padding:{style:nr},paddingTop:{style:nr},paddingRight:{style:nr}
4310,paddingBottom:{style:nr},paddingLeft:{style:nr},paddingX:{style:nr},paddingY:{style:nr},paddingInline:{style:nr},paddingInlineStart:{style:nr},paddingInlineEnd:{style:nr},paddingBlock:{style:nr},paddingBlockStart:{style:nr},paddingBlockEnd:{style:nr},m:{style:tr},mt:{style:tr},mr:{style:tr},mb:{style:tr},ml:{style:tr},mx:{style:tr},my:{style:tr},margin:{style:tr},marginTop:{style:tr},marginRight:{style:tr},marginBottom:{style:tr},marginLeft:{style:tr},marginX:{style:tr},marginY:{style:tr},marginInline:{style:tr},marginInlineStart:{style:tr},marginInlineEnd:{style:tr},marginBlock:{style:tr},marginBlockStart:{style:tr},marginBlockEnd:{style:tr},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:fT},rowGap:{style:pT},columnGap:{style:hT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wo},maxWidth:{style:sP},minWidth:{transform:wo},height:{transform:wo},maxHeight:{transform:wo},minHeight:{transform:wo},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 pye(...t){const e=t.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(e);return t.every(r=>n.size===Object.keys(r).length)}function mye(t,e){return typeof t=="function"?t(e):t}function gye(){function t(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:d}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const f=va(i,c)||{};return d?d(s):Ks(s,r,p=>{let m=DS(f,u,p);return p===m&&typeof p=="string"&&(m=DS(f,u,`${n}${p==="default"?"":Q(p)}`,p)),l===!1?m:{[l]:m}})}function e(n){const{sx:r,theme:i={},nested:o}=n||{};if(!r)return null;const s=i.unstable_sxConfig??Vv;function a(l){let c=l;if(typeof l=="function")c=l(i);else if(typeof l!="object")return l;if(!c)return null;const u=MK(i.breakpoints),d=Object.keys(u);let f=u;return Object.keys(c).forEach(h=>{const p=mye(c[h],i);if(p!=null)if(typeof p=="object")if(s[h])f=py(f,t(h,p,i,s));else{const m=Ks({theme:i},p,g=>({[h]:g}));pye(m,p)?f[h]=e({sx:p,theme:i,nested:!0}):f=py(f,m)}else f=py(f,t(h,p,i,s))}),!o&&i.modularCssLayers?{"@layer sx":Q8(i,hR(d,f))}:Q8(i,hR(d,f))}return Array.isArray(r)?r.map(a):a(r)}return e}const Uu=gye();Uu.filterProps=["sx"];function yye(t,e){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[t])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(t);return i==="&"?e:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:e})}return n.palette.mode===t?e:{}}function vg(t={},...e){const{breakpoints:n={},palette:r={},spacing:i,shape:o={},...s}=t,a=T1e(n),l=PK(i);let c=Kr({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...I1e,...o}},s);return c=A1e(c),c.applyStyles=yye,c=e.reduce((u,d)=>Kr(u,d),c),c.unstable_sxConfig={...Vv,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(d){return Uu({sx:d,theme:this})},c}function vye(t){return Object.keys(t).length===0}function mT(t=null){const e=E.useContext(yg);return!e||vye(e)?t:e}const bye=vg();function Bv(t=bye){return mT(t)}function iA(t){const e=Cu(t);return t!==e&&e.styles?(e.styles.match(/^@layer\s+[^{]*$/)||(e.styles=`@layer global{${e.styles}}`),e):t}function OK({styles:t,themeId:e,defaultTheme:n={}}){const r=Bv(n),i=e&&r[e]||r;let o=typeof t=="function"?t(i):t;return i.modularCssLayers&&(Array.isArray(o)?o=o.map(s=>iA(typeof s=="function"?s(i):s)):o=iA(o)),x.jsx(CK,{styles:o})}const wye=t=>{var r;const e={systemProps:{},otherProps:{}},n=((r=t==null?void 0:t.theme)==null?void 0:r.unstable_sxConfig)??Vv;return Object.keys(t).forEach(i=>
4310{n[i]?e.systemProps[i]=t[i]:e.otherProps[i]=t[i]}),e};function gT(t){const{sx:e,...n}=t,{systemProps:r,otherProps:i}=wye(n);let o;return Array.isArray(e)?o=[r,...e]:typeof e=="function"?o=(...s)=>{const a=e(...s);return wa(a)?{...r,...a}:r}:o={...r,...e},{...i,sx:o}}const eL=t=>t,Sye=()=>{let t=eL;return{configure(e){t=e},generate(e){return t(e)},reset(){t=eL}}},NK=Sye();function DK(t){var e,n,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=DK(t[e]))&&(r&&(r+=" "),r+=n)}else for(n in t)t[n]&&(r&&(r+=" "),r+=n);return r}function de(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=DK(t))&&(r&&(r+=" "),r+=e);return r}function xye(t={}){const{themeId:e,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=t,o=_K("div",{shouldForwardProp:a=>a!=="theme"&&a!=="sx"&&a!=="as"})(Uu);return E.forwardRef(function(l,c){const u=Bv(n),{className:d,component:f="div",...h}=gT(l);return x.jsx(o,{as:f,ref:c,className:de(d,i?i(r):r),theme:e&&u[e]||u,...h})})}const Eye={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 Pe(t,e,n="Mui"){const r=Eye[e];return r?`${n}-${r}`:`${NK.generate(t)}-${e}`}function Le(t,e,n="Mui"){const r={};return e.forEach(i=>{r[i]=Pe(t,i,n)}),r}function LK(t){const{variants:e,...n}=t,r={variants:e,style:Cu(n),isProcessed:!0};return r.style===n||e&&e.forEach(i=>{typeof i.style!="function"&&(i.style=Cu(i.style))}),r}const Tye=vg();function oA(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Kd(t,e){return e&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${e}{${String(t.styles)}}`),t}function Cye(t){return t?(e,n)=>n[t]:null}function _ye(t,e,n){t.theme=Iye(t.theme)?n:t.theme[e]||t.theme}function fw(t,e,n){const r=typeof e=="function"?e(t):e;if(Array.isArray(r))return r.flatMap(i=>fw(t,i,n));
4310if(Array.isArray(r==null?void 0:r.variants)){let i;if(r.isProcessed)i=n?Kd(r.style,n):r.style;else{const{variants:o,...s}=r;i=n?Kd(Cu(s),n):s}return zK(t,r.variants,[i],n)}return r!=null&&r.isProcessed?n?Kd(Cu(r.style),n):r.style:n?Kd(Cu(r),n):r}function zK(t,e,n=[],r=void 0){var o;let i;e:for(let s=0;s<e.length;s+=1){const a=e[s];if(typeof a.props=="function"){if(i??(i={...t,...t.ownerState,ownerState:t.ownerState}),!a.props(i))continue}else for(const l in a.props)if(t[l]!==a.props[l]&&((o=t.ownerState)==null?void 0:o[l])!==a.props[l])continue e;typeof a.style=="function"?(i??(i={...t,...t.ownerState,ownerState:t.ownerState}),n.push(r?Kd(Cu(a.style(i)),r):a.style(i))):n.push(r?Kd(Cu(a.style),r):a.style)}return n}function VK(t={}){const{themeId:e,defaultTheme:n=Tye,rootShouldForwardProp:r=oA,slotShouldForwardProp:i=oA}=t;function o(a){_ye(a,e,n)}return(a,l={})=>{w1e(a,O=>O.filter(T=>T!==Uu));const{name:c,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:h=Cye(Mye(u)),...p}=l,m=c&&c.startsWith("Mui")||u?"components":"custom",g=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,y=f||!1;let b=oA;u==="Root"||u==="root"?b=r:u?b=i:Rye(a)&&(b=void 0);const v=_K(a,{shouldForwardProp:b,label:Aye(),...p}),S=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(A){return fw(A,O,A.theme.modularCssLayers?m:void 0)};if(wa(O)){const T=LK(O);return function(R){return T.variants?fw(R,T,R.theme.modularCssLayers?m:void 0):R.theme.modularCssLayers?Kd(T.style,m):T.style}}return O},I=(...O)=>{const T=[],A=O.map(S),R=[];if(T.push(o),c&&h&&R.push(function(_){var z,L;const V=(L=(z=_.theme.components)==null?void 0:z[c])==null?void 0:L.styleOverrides;if(!V)return null;const N={};for(const B in V)N[B]=fw(_,V[B],_.theme.modularCssLayers?"theme":void 0);return h(_,N)}),c&&!g&&R.push(function(_){var N,z;const M=_.theme,V=(z=(N=M==null?void 0:M.components)==null?void 0:N[c])==null?void 0:z.variants;return V?zK(_,V,[],_.theme.modularCssLayers?"theme":void 0):null}),y||R.push(Uu),Array.isArray(A[0])){const C=A.shift(),_=new Array(T.length).fill(""),M=new Array(R.length).fill("");let V;V=[..._,...C,...M],V.raw=[..._,...C.raw,...M],T.unshift(V)}const k=[...T,...A,...R],P=v(...k);return a.muiName&&(P.muiName=a.muiName),P};return v.withConfig&&(I.withConfig=v.withConfig),I}}function Aye(t,e){return void 0}function Iye(t){for(const e in t)return!1;return!0}function Rye(t){return typeof t=="string"&&t.charCodeAt(0)>96}function Mye(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const aP=VK();function Am(t,e,n=!1){const r={...e};for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const o=i;if(o==="components"||o==="slots")r[o]={...t[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=t[o],a=e[o];if(!a)r[o]=s||{};else if(!s)r[o]=a;else{r[o]={...a};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const c=l;r[o][c]=Am(s[c],a[c],n)}}}else o==="className"&&n&&e.className?r.className=de(t==null?void 0:t.className,e==null?void 0:e.className):o==="style"&&n&&e.style?r.style={...t==null?void 0:t.style,...e==null?void 0:e.style}:r[o]===void 0&&(r[o]=t[o])}return r}function BK(t){const{theme:e,name:n,props:r}=t;return!e||!e.components||!e.components[n]||!e.components[n].defaultProps?r:Am(e.components[n].defaultProps,r)}function yT({props:t,name:e,defaultTheme:n,themeId:r}){let i=Bv(n);return r&&(i=i[r]||i),BK({theme:i,name:e,props:t})}const An=typeof window<"u"?E.useLayoutEffect:E.useEffect;function kye(t,e,n,r,i){const[o,s]=E.useState(()=>i&&n?n(t).matches:r?r(t).matches:e);return An(()=>{if(!n)return;const a=n(t),l=()=>{s(a.matches)};return l(),a.addEventListener("change",l),()=>{a.removeEventListener("change",l)}},[t,n]),o}const Pye={...Ly},$K=Pye.useSyncExternalStore;function Oye(t,e,n,r,i){const o=E.useCallback(()=>e,[e]),s=E.useMemo(()=>{if(i&&n)return()=>n(t).matches;if(r!==null){const{matches:u}=r(t);return()=>u}return o},[o,t,r,i,n]),[a,l]=E.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const u=n(t);return[()=>u.matches,d=>(u.addEventListener("change",d),()=>{u.removeEventListener("change",d)})]},[o,n,t]);return $K(l,a,s)}function FK(t={}){const{themeId:e}=t;return function(r,i={}){let o=mT();o&&e&&(o=o[e]||o);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:a=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:c=null,noSsr:u=!1}=BK({name:"MuiUseMediaQuery",props:i,theme:o});let d=typeof r=="function"?r(o):r;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` 4311`)),($K!==void 0?Oye:kye)(d,a,l,c,u)}}FK();
4311function jd(t,e=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(e,Math.min(t,n))}function lP(t,e=0,n=1){return jd(t,e,n)}function Nye(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);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 qu(t){if(t.type)return t;if(t.charAt(0)==="#")return qu(Nye(t));const e=t.indexOf("("),n=t.substring(0,e);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(nc(9,t));let r=t.substring(e+1,t.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(nc(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}const Dye=t=>{const e=qu(t);return e.values.slice(0,3).map((n,r)=>e.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},A1=(t,e)=>{try{return Dye(t)}catch{return t}};function vT(t){const{type:e,colorSpace:n}=t;let{values:r}=t;return e.includes("rgb")?r=r.map((i,o)=>o<3?parseInt(i,10):i):e.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),e.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${e}(${r})`}function jK(t){t=qu(t);const{values:e}
4311=t,n=e[0],r=e[1]/100,i=e[2]/100,o=r*Math.min(i,1-i),s=(c,u=(c+n/30)%12)=>i-o*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return t.type==="hsla"&&(a+="a",l.push(e[3])),vT({type:a,values:l})}function pR(t){t=qu(t);let e=t.type==="hsl"||t.type==="hsla"?qu(jK(t)).values:t.values;return e=e.map(n=>(t.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function Lye(t,e){const n=pR(t),r=pR(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function x0(t,e){return t=qu(t),e=lP(e),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${e}`:t.values[3]=e,vT(t)}function Td(t,e,n){try{return x0(t,e)}catch{return t}}function bT(t,e){if(t=qu(t),e=lP(e),t.type.includes("hsl"))t.values[2]*=1-e;else if(t.type.includes("rgb")||t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return vT(t)}function rn(t,e,n){try{return bT(t,e)}catch{return t}}function wT(t,e){if(t=qu(t),e=lP(e),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*e;else if(t.type.includes("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(t.type.includes("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return vT(t)}function on(t,e,n){try{return wT(t,e)}catch{return t}}function mR(t,e=.15){return pR(t)>.5?bT(t,e):wT(t,e)}function Hb(t,e,n){try{return mR(t,e)}catch{return t}}const HK=E.createContext(null);function cP(){return E.useContext(HK)}const zye=typeof Symbol=="function"&&Symbol.for,Vye=zye?Symbol.for("mui.nested"):"__THEME_NESTED__";function Bye(t,e){return typeof e=="function"?e(t):{...t,...e}}function $ye(t){const{children:e,theme:n}=t,r=cP(),i=E.useMemo(()=>{const o=r===null?{...n}:Bye(r,n);return o!=null&&(o[Vye]=r!==null),o},[n,r]);return x.jsx(HK.Provider,{value:i,children:e})}const UK=E.createContext();function Fye({value:t,...e}){return x.jsx(UK.Provider,{value:t??!0,...e})}const Za=()=>E.useContext(UK)??!1,qK=E.createContext(void 0);function jye({value:t,children:e}){return x.jsx(qK.Provider,{value:t,children:e})}function Hye(t){const{theme:e,name:n,props:r}=t;if(!e||!e.components||!e.components[n])return r;const i=e.components[n];return i.defaultProps?Am(i.defaultProps,r,e.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Am(i,r,e.components.mergeClassNameAndStyle):r}function Uye({props:t,name:e}){const n=E.useContext(qK);return Hye({props:t,name:e,theme:{components:n}})}let tL=0;function qye(t){const[e,n]=E.useState(t),r=t||e;return E.useEffect(()=>{e==null&&(tL+=1,n(`mui-${tL}`))},[e]),r}const Wye={...Ly},nL=Wye.useId;function Bo(t){if(nL!==void 0){const e=nL();return t??e}return qye(t)}function Gye(t){const e=mT(),n=Bo()||"",{modularCssLayers:r}=t;let i="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!r||e!==null?i="":typeof r=="string"?i=r.replace(/mui(?!\.)/g,i):i=`@layer ${i};`,An(()=>{var a,l;const o=document.querySelector("head");if(!o)return;const s=o.firstChild;if(i){if(s&&((a=s.hasAttribute)!=null&&a.call(s,"data-mui-layer-order"))&&s.getAttribute("data-mui-layer-order")===n)return;const c=document.createElement("style");c.setAttribute("data-mui-layer-order",n),c.textContent=i,o.prepend(c)}else(l=o.querySelector(`style[data-mui-layer-order="${n}"]`))==null||l.remove()},[i,n]),i?x.jsx(OK,{styles:i}):null}const rL={};function iL(t,e,n,r=!1){return E.useMemo(()=>{const i=t&&e[t]||e;if(typeof n=="function"){const o=n(i),s=t?{...e,[t]:o}:o;return r?()=>s:s}return t?{...e,[t]:n}:{...e,...n}},[t,e,n,r])}function WK(t){const{children:e,theme:n,themeId:r}=t,i=mT(rL),o=cP()||rL,s=iL(r,i,n),a=iL(r,o,n,!0),l=(r?s[r]:s).direction==="rtl",c=Gye(s);return x.jsx($ye,{theme:a,children:x.jsx(yg.Provider,{value:s,children:x.jsx(Fye,{value:l,children:x.jsxs(jye,{value:r?s[r].components:s.components,children:[c,e]})})})})}const oL={theme:void 0};function Kye(t){let e,n;return function(i){let o=e;return(o===void 0||i.theme!==n)&&(oL.theme=i.theme,o=LK(t(oL)),e=o,n=i.theme),o}}const uP="mode",dP="color-scheme",Yye="data-color-scheme";function Xye(t){const{defaultMode:e="system",defaultLightColorScheme:n="light",defaultDar
4311kColorScheme:r="dark",modeStorageKey:i=uP,colorSchemeStorageKey:o=dP,attribute:s=Yye,colorSchemeNode:a="document.documentElement",nonce:l}=t||{};let c="",u=s;if(s==="class"&&(u=".%s"),s==="data"&&(u="[data-%s]"),u.startsWith(".")){const f=u.substring(1);c+=`${a}.classList.remove('${f}'.replace('%s', light), '${f}'.replace('%s', dark)); 4312 ${a}.classList.add('${f}'.replace('%s', colorScheme));`}const d=u.match(/\[([^[\]]+)\]/);if(d){const[f,h]=d[1].split("=");h||(c+=`${a}.removeAttribute('${f}'.replace('%s', light)); 4313 ${a}.removeAttribute('${f}'.replace('%s', dark));`),c+=` 4314 ${a}.setAttribute('${f}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else u!==".%s"&&(c+=`${a}.setAttribute('${u}', colorScheme);`);return x.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(function() { 4315try { 4316 let colorScheme = ''; 4317 const mode = localStorage.getItem('${i}') || '${e}'; 4318 const dark = localStorage.getItem('${o}-dark') || '${r}'; 4319 const light = localStorage.getItem('${o}-light') || '${n}'; 4320 if (mode === 'system') { 4321 // handle system mode 4322 const mql = window.matchMedia('(prefers-color-scheme: dark)'); 4323 if (mql.matches) { 4324 colorScheme = dark 4325 } else { 4326 colorScheme = light 4327 } 4328 } 4329 if (mode === 'light') { 4330 colorScheme = light; 4331 } 4332 if (mode === 'dark') { 4333 colorScheme = dark; 4334 } 4335 if (colorScheme) { 4336 ${c} 4337 } 4338} catch(e){}})();`}},"mui-color-scheme-init")}function Qye(){}const Jye=({key:t,storageWindow:e})=>(!e&&typeof window<"u"&&(e=window),{get(n){if(typeof window>"u")return;if(!e)return n;let r;try{r=e.localStorage.getItem(t)}catch{}return r||n},set:n=>{if(e)try{e.localStorage.setItem(t,n)}catch{}},subscribe:n=>{if(!e)return Qye;const r=i=>{const o=i.newValue;i.key===t&&n(o)};return e.addEventListener("storage",r),()=>{e.removeEventListener("storage",r)}}});function sA(){}function sL(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function GK(t,e){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return e("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return e("dark")}function Zye(t){return GK(t,e=>{if(e==="light")return t.lightColorScheme;if(e==="dark")return t.darkColorScheme})}function e0e(t){const{defaultMode:e="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:o=uP,colorSchemeStorageKey:s=dP,storageWindow:a=typeof window>"u"?void 0:window,storageManager:l=Jye,noSsr:c=!1}=t,u=i.join(","),d=i.length>1,f=E.useMemo(()=>l==null?void 0:l({key:o,storageWindow:a}),[l,o,a]),h=E.useMemo(()=>l==null?void 0:l({key:`${s}-light`,storageWindow:a}),[l,s,a]),p=E.useMemo(()=>l==null?void 0:l({key:`${s}-dark`,storageWindow:a}),[l,s,a]),[m,g]=E.useState(()=>{const A=(f==null?void 0:f.get(e))||e,R=(h==null?void 0:h.get(n))||n,k=(p==null?void 0:p.get(r))||r;return{mode:A,systemMode:sL(A),lightColorScheme:R,darkColorScheme:k}}),[y,b]=E.useState(c||!d);E.useEffect(()=>{b(!0)},[]);const v=Zye(m),S=E.useCallback(A=>{g(R=>{if(A===R.mode)return R;const k=A??e;return f==null||f.set(k),{...R,mode:k,systemMode:sL(k)}})},[f,e]),I=E.useCallback(A=>{A?typeof A=="string"?A&&!u.includes(A)?console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`):g(R=>{const k={...R};return GK(R,P=>{P==="light"&&(h==null||h.set(A),k.lightColorScheme=A),P==="dark"&&(p==null||p.set(A),k.darkColorScheme=A)}),k}):g(R=>{const k={...R},P=A.light===null?n:A.light,C=A.dark===null?r:A.dark;return P&&(u.includes(P)?(k.lightColorScheme=P,h==null||h.set(P)):console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`)),C&&(u.includes(C)?(k.darkColorScheme=C,p==null||p.set(C)):console.error(`\`${C}\` does not exist in \`theme.colorSchemes\`.`)),k}):g(R=>(h==null||h.set(n),p==null||p.set(r),{...R,lightColorScheme:n,darkColorScheme:r}))},[u,h,p,n,r]),O=E.useCallback(A=>{m.mode==="system"&&g(R=>{const k=A!=null&&A.matches?"dark":"light";return R.systemMode===k?R:{...R,systemMode:k}})},[m.mode]),T=E.useRef(O);return T.current=O,E.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const A=(...k)=>T.current(...k),R=window.matchMedia("(prefers-color-scheme: dark)");return R.addListener(A),A(R),()=>{R.removeListener(A)}},[d]),E.useEffect(()=>{if(d){const A=(f==null?void 0:f.subscribe(P=>{(!P||["light","dark","system"].includes(P))&&S(P||e)}))||sA,R=(h==null?void 0:h.subscribe(P=>{(!P||u.match(P))&&I({light:P})}))||sA,k=(p==null?void 0:p.subscribe(P=>{(!P||u.match(P))&&I({dark:P})}))||sA;return()=>{A(),R(),k()}}},[I,S,u,e,a,d,f,h,p]),{...m,mode:y?m.mode:void 0,systemMode:y?m.systemMode:void 0,colorScheme:y?v:void 0,setMode:S,setColorScheme:I}}const t0e="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function n0e(t){const{themeId:e,theme:n={},modeStorageKey:r=uP,colorSchemeStorageKey:i=dP,disableTransitionOnChange:o=!1,defaultColorScheme:s,resolveTheme:a}=t,l={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},c=E.createContext(void 0),u=()=>E.useContext(c)||l,d={},f={};function h(y){var be,De,Be,Xe;const{children:b,theme:v,modeStorageKey:S=r,colorSchemeStorageKey:I=i,disableTransitionOnChange:O=o,storageManager:T,storageWindow:A=typeof window>"u"?void 0:window,documentNode:R=typeof document>"u"?void 0:document,colorSchemeNode:k=typeof document>"u"?void 0:document.documentElement,disableNestedContext:P=!1,disableStyleSheetGeneration:C=!1,defaultMode:_="system",forceThemeRerender:M=!1,noSsr:V}=y,N=E.useRef(!1),z=cP(),L=E.useContext(c),B=!!L&&!P,j=E.useMemo(()=>v||(typeof n=="function"?n():n),[v]),H=j[e],q=H||j,{colorSchemes:Y=d,components:Z=f,cssVarPrefix:G}=q,X=Object.keys(Y).filter(Me=>!!Y[Me]).join(","),K=E.useMemo(()=>X.split(","),[X]),J=typeof s=="string"?s:s.light,te=typeof s=="string"?s:s.dark,ne=Y[J]&&Y[te]?_:((De=(be=Y[q.defaultColorScheme])==null?void 0:be.palette)==null?void 0:De.mode)||((Be=q.palette)==null?void 0:Be.mode),{mode:ce,setMode:ie,systemMode:oe,lightColorScheme:ue,darkColorScheme:pe,colorScheme:ve,setColorScheme:se}=e0e({supportedColorSchemes:K,defaultLightColorScheme:J,defaultDar
4338kColorScheme:te,modeStorageKey:S,colorSchemeStorageKey:I,defaultMode:ne,storageManager:T,storageWindow:A,noSsr:V});let ae=ce,ke=ve;B&&(ae=L.mode,ke=L.colorScheme);let Ee=ke||q.defaultColorScheme;q.vars&&!M&&(Ee=q.defaultColorScheme);const _e=E.useMemo(()=>{var Ge;const Me=((Ge=q.generateThemeVars)==null?void 0:Ge.call(q))||q.vars,xe={...q,components:Z,colorSchemes:Y,cssVarPrefix:G,vars:Me};if(typeof xe.generateSpacing=="function"&&(xe.spacing=xe.generateSpacing()),Ee){const Ke=Y[Ee];Ke&&typeof Ke=="object"&&Object.keys(Ke).forEach(nt=>{Ke[nt]&&typeof Ke[nt]=="object"?xe[nt]={...xe[nt],...Ke[nt]}:xe[nt]=Ke[nt]})}return a?a(xe):xe},[q,Ee,Z,Y,G]),we=q.colorSchemeSelector;An(()=>{if(ke&&k&&we&&we!=="media"){const Me=we;let xe=we;if(Me==="class"&&(xe=".%s"),Me==="data"&&(xe="[data-%s]"),Me!=null&&Me.startsWith("data-")&&!Me.includes("%s")&&(xe=`[${Me}="%s"]`),xe.startsWith("."))k.classList.remove(...K.map(Ge=>xe.substring(1).replace("%s",Ge))),k.classList.add(xe.substring(1).replace("%s",ke));else{const Ge=xe.replace("%s",ke).match(/\[([^\]]+)\]/);if(Ge){const[Ke,nt]=Ge[1].split("=");nt||K.forEach(en=>{k.removeAttribute(Ke.replace(ke,en))}),k.setAttribute(Ke,nt?nt.replace(/"|'/g,""):"")}else k.setAttribute(xe,ke)}}},[ke,we,k,K]),E.useEffect(()=>{let Me;if(O&&N.current&&R){const xe=R.createElement("style");xe.appendChild(R.createTextNode(t0e)),R.head.appendChild(xe),window.getComputedStyle(R.body),Me=setTimeout(()=>{R.head.removeChild(xe)},1)}return()=>{clearTimeout(Me)}},[ke,O,R]),E.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const et=E.useMemo(()=>({allColorSchemes:K,colorScheme:ke,darkColorScheme:pe,lightColorScheme:ue,mode:ae,setColorScheme:se,setMode:ie,systemMode:oe}),[K,ke,pe,ue,ae,se,ie,oe,_e.colorSchemeSelector]);let rt=!0;(C||q.cssVariables===!1||B&&(z==null?void 0:z.cssVarPrefix)===G)&&(rt=!1);const he=x.jsxs(E.Fragment,{children:[x.jsx(WK,{themeId:H?e:void 0,theme:_e,children:b}),rt&&x.jsx(CK,{styles:((Xe=_e.generateStyleSheets)==null?void 0:Xe.call(_e))||[]})]});return B?he:x.jsx(c.Provider,{value:et,children:he})}const p=typeof s=="string"?s:s.light,m=typeof s=="string"?s:s.dark;return{CssVarsProvider:h,useColorScheme:u,getInitColorSchemeScript:y=>Xye({colorSchemeStorageKey:i,defaultLightColorScheme:p,defaultDarkColorScheme:m,modeStorageKey:r,...y})}}function r0e(t=""){function e(...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(--${t?`${t}-`:""}${i}${e(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${t?`${t}-`:""}${r}${e(...i)})`}const aL=(t,e,n,r=[])=>{let i=t;e.forEach((o,s)=>{s===e.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])})},i0e=(t,e,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):e([...o,a],l,s))})}r(t)},o0e=(t,e)=>typeof e=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>t.includes(r))||t[t.length-1].toLowerCase().includes("opacity")?e:`${e}px`:e;function aA(t,e){const{prefix:n,shouldSkipGeneratingVar:r}=e||{},i={},o={},s={};return i0e(t,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,d=o0e(a,l);Object.assign(i,{[u]:d}),aL(o,a,`var(${u})`,c),aL(s,a,`var(${u}, ${d})`,c)}},a=>
4338a[0]==="vars"),{css:i,vars:o,varsWithDefaults:s}}function s0e(t,e={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:o}=e,{colorSchemes:s={},components:a,defaultColorScheme:l="light",...c}=t,{vars:u,css:d,varsWithDefaults:f}=aA(c,e);let h=f;const p={},{[l]:m,...g}=s;if(Object.entries(g||{}).forEach(([S,I])=>{const{vars:O,css:T,varsWithDefaults:A}=aA(I,e);h=Kr(h,A),p[S]={css:T,vars:O}}),m){const{css:S,vars:I,varsWithDefaults:O}=aA(m,e);h=Kr(h,O),p[l]={css:S,vars:I}}function y(S,I){var T,A;let O=i;if(i==="class"&&(O=".%s"),i==="data"&&(O="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(O=`[${i}="%s"]`),S){if(O==="media")return t.defaultColorScheme===S?":root":{[`@media (prefers-color-scheme: ${((A=(T=s[S])==null?void 0:T.palette)==null?void 0:A.mode)||S})`]:{":root":I}};if(O)return t.defaultColorScheme===S?`:root, ${O.replace("%s",String(S))}`:O.replace("%s",String(S))}return":root"}return{vars:h,generateThemeVars:()=>{let S={...u};return Object.entries(p).forEach(([,{vars:I}])=>{S=Kr(S,I)}),S},generateStyleSheets:()=>{var R,k;const S=[],I=t.defaultColorScheme||"light";function O(P,C){Object.keys(C).length&&S.push(typeof P=="string"?{[P]:{...C}}:P)}O(n(void 0,{...d}),d);const{[I]:T,...A}=p;if(T){const{css:P}=T,C=(k=(R=s[I])==null?void 0:R.palette)==null?void 0:k.mode,_=!r&&C?{colorScheme:C,...P}:{...P};O(n(I,{..._}),_)}return Object.entries(A).forEach(([P,{css:C}])=>{var V,N;const _=(N=(V=s[P])==null?void 0:V.palette)==null?void 0:N.mode,M=!r&&_?{colorScheme:_,...C}:{...C};O(n(P,{...M}),M)}),o&&S.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),S}}}function a0e(t){return function(n){return t==="media"?`@media (prefers-color-scheme: ${n})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${n}"] &`:t==="class"?`.${n} &`:t==="data"?`[data-${n}] &`:`${t.replace("%s",n)} &`:"&"}}function Oe(t,e,n=void 0){const r={};for(const i in t){const o=t[i];let s="",a=!0;for(let l=0;l<o.length;l+=1){const c=o[l];c&&(s+=(a===!0?"":" ")+e(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[i]=s}return r}const l0e=vg(),c0e=aP("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),u0e=t=>yT({props:t,name:"MuiContainer",defaultTheme:l0e}),d0e=(t,e)=>{const n=l=>Pe(e,l),{classes:r,fixed:i,disableGutters:o,maxWidth:s}=t,a={root:["root",s&&`maxWidth${Q(String(s))}`,i&&"fixed",o&&"disableGutters"]};return Oe(a,n,r)};function f0e(t={}){const{createStyledComponent:e=c0e,useThemeProps:n=u0e,componentName:r="MuiContainer"}=t,i=e(({theme:s,ownerState:a})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!a.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}}),({theme:s,ownerState:a})=>a.fixed&&Object.keys(s.breakpoints.values).reduce((l,c)=>{const u=c,d=s.breakpoints.values[u];return d!==0&&(l[s.breakpoints.up(u)]={maxWidth:`${d}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:a})=>({...a.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},...a.maxWidth&&a.maxWidth!=="xs"&&{[s.breakpoints.up(a.maxWidth)]:{maxWidth:`${s.breakpoints.values[a.maxWidth]}${s.breakpoints.unit}`}}}));return E.forwardRef(function(a,l){const c=n(a),{className:u,component:d="div",disableGutters:f=!1,fixed:h=!1,maxWidth:p="lg",classes:m,...g}=c,y={...c,component:d,disableGutters:f,fixed:h,maxWidth:p},b=d0e(y,r);return x.jsx(i,{as:d,ownerState:y,className:de(b.root,u),ref:l,...g})})}function my(t,e){var n,r,i;return E.isValidElement(t)&&e.indexOf(t.type.muiName??((i=(r=(n=t.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}const h0e=(t,e)=>t.filter(n=>e.includes(n)),bg=(t,e,n)=>{const r=t.keys[0];Array.isArray(e)?e.forEach((i,o)=>{n((s,a)=>{o<=t.keys.length-1&&(o===0?Object.assign(s,a):s[t.up(t.keys[o])]=a)},i)}):e&&typeof e=="object"?(Object.keys(e).length>
vendor: 9,075 bytes, line 4338
4338t.keys.length?t.keys:h0e(t.keys,Object.keys(e))).forEach(o=>{if(t.keys.includes(o)){const s=e[o];s!==void 0&&n((a,l)=>{r===o?Object.assign(a,l):a[t.up(o)]=l},s)}}):(typeof e=="number"||typeof e=="string")&&n((i,o)=>{Object.assign(i,o)},e)};function LS(t){return`--Grid-${t}Spacing`}function ST(t){return`--Grid-parent-${t}Spacing`}const lL="--Grid-columns",Bp="--Grid-parent-columns",p0e=({theme:t,ownerState:e})=>{const n={};return bg(t.breakpoints,e.size,(r,i)=>{let o={};i==="grow"&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),i==="auto"&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof i=="number"&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / var(${Bp}) - (var(${Bp}) - ${i}) * (var(${ST("column")}) / var(${Bp})))`}),r(n,o)}),n},m0e=({theme:t,ownerState:e})=>{const n={};return bg(t.breakpoints,e.offset,(r,i)=>{let o={};i==="auto"&&(o={marginLeft:"auto"}),typeof i=="number"&&(o={marginLeft:i===0?"0px":`calc(100% * ${i} / var(${Bp}) + var(${ST("column")}) * ${i} / var(${Bp}))`}),r(n,o)}),n},g0e=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={[lL]:12};return bg(t.breakpoints,e.columns,(r,i)=>{const o=i??12;r(n,{[lL]:o,"> *":{[Bp]:o}})}),n},y0e=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return bg(t.breakpoints,e.rowSpacing,(r,i)=>{var s;const o=typeof i=="string"?i:(s=t.spacing)==null?void 0:s.call(t,i);r(n,{[LS("row")]:o,"> *":{[ST("row")]:o}})}),n},v0e=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return bg(t.breakpoints,e.columnSpacing,(r,i)=>{var s;const o=typeof i=="string"?i:(s=t.spacing)==null?void 0:s.call(t,i);r(n,{[LS("column")]:o,"> *":{[ST("column")]:o}})}),n},b0e=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return bg(t.breakpoints,e.direction,(r,i)=>{r(n,{flexDirection:i})}),n},w0e=({ownerState:t})=>({minWidth:0,boxSizing:"border-box",...t.container&&{display:"flex",flexWrap:"wrap",...t.wrap&&t.wrap!=="wrap"&&{flexWrap:t.wrap},gap:`var(${LS("row")}) var(${LS("column")})`}}),S0e=t=>{const e=[];return Object.entries(t).forEach(([n,r])=>{r!==!1&&r!==void 0&&e.push(`grid-${n}-${String(r)}`)}),e},x0e=(t,e="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(t))return[`spacing-${e}-${String(t)}`];if(typeof t=="object"&&!Array.isArray(t)){const r=[];return Object.entries(t).forEach(([i,o])=>{n(o)&&r.push(`spacing-${i}-${String(o)}`)}),r}return[]},E0e=t=>t===void 0?[]:typeof t=="object"?Object.entries(t).map(([e,n])=>`direction-${e}-${n}`):[`direction-xs-${String(t)}`];function T0e(t,e){t.item!==void 0&&delete t.item,t.zeroMinWidth!==void 0&&delete t.zeroMinWidth,e.keys.forEach(n=>{t[n]!==void 0&&delete t[n]})}const C0e=vg(),_0e=aP("div",{name:"MuiGrid",slot:"Root"});function A0e(t){return yT({props:t,name:"MuiGrid",defaultTheme:C0e})}function I0e(t={}){const{createStyledComponent:e=_0e,useThemeProps:n=A0e,useTheme:r=Bv,componentName:i="MuiGrid"}=t,o=(c,u)=>{const{container:d,direction:f,spacing:h,wrap:p,size:m}=c,g={root:["root",d&&"container",p!=="wrap"&&`wrap-xs-${String(p)}`,...E0e(f),...S0e(m),...d?x0e(h,u.breakpoints.keys[0]):[]]};return Oe(g,y=>Pe(i,y),{})};function s(c,u,d=()=>!0){const f={};return c===null||(Array.isArray(c)?c.forEach((h,p)=>{h!==null&&d(h)&&u.keys[p]&&(f[u.keys[p]]=h)}):typeof c=="object"?Object.keys(c).forEach(h=>{const p=c[h];p!=null&&d(p)&&(f[h]=p)}):f[u.keys[0]]=c),f}const a=e(g0e,v0e,y0e,p0e,b0e,w0e,m0e),l=E.forwardRef(function(u,d){const f=r(),h=n(u),p=gT(h);T0e(p,f.breakpoints);const{className:m,children:g,columns:y=12,container:b=!1,component:v="div",direction:S="row",wrap:I="wrap",size:O={},offset:T={},spacing:A=0,rowSpacing:R=A,columnSpacing:k=A,unstable_level:P=0,...C}=p,_=s(O,f.breakpoints,H=>H!==!1),M=s(T,f.breakpoints),V=u.columns??(P?void 0:y),N=u.spacing??(P?void 0:A),z=u.rowSpacing??u.spacing??(P?void 0:R),L=u.columnSpacing??u.spacing??(P?void 0:k),B={...p,level:P,columns:V,container:b,direction:S,wrap:I,spacing:N,rowSpacing:z,columnSpacing:L,size:_,offset:M},j=o(B,f);return x.jsx(a,{ref:d,as:v,ownerState:B,className:de(j.root,m),...C,children:E.Children.map(g,H=>{var q;return E.isValidElement(H)&&my(H,["Grid"])&&b&&H.props.container?E.cloneElement(H,{unstable_level:((q=H.props)==null?void 0:q.unstable_level)??P+1}):H})})});return l.muiName="Grid",l}const R0e=vg(),M0e=aP("div",{name:"MuiStack",slot:"Root"});function k0e(t){return yT({props:t,name:"MuiStack",defaultTheme:R0e})}function P0e(t,e){const n=E.Children.toArray(t).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o<n.length-1&&r.push(E.cloneElement(e,{key:`separator-${o}`})),r),[])}const O0e=t=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],N0e=({ownerState:t,theme:e})=>{let n={display:"flex",flexDirection:"column",...Ks({theme:e},rA({values:t.direction,breakpoints:e.breakpoints.values}),r=>({flexDirection:r}))};if(t.spacing){const r=cT(e),i=Object.keys(e.breakpoints.values).reduce((l,c)=>((typeof t.spacing=="object"&&t.spacing[c]!=null||typeof t.direction=="object"&&t.direction[c]!=null)&&(l[c]=!0),l),{}),o=rA({values:t.direction,base:i}),s=rA({values:t.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,u)=>{if(!o[l]){const f=c>0?o[u[c-1]]:"column";o[l]=f}}),n=Kr(n,Ks({theme:e},s,(l,c)=>t.useFlexGap?{gap:$f(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${O0e(c?o[c]:t.direction)}`]:$f(r,l)}}))}return n=M1e(e.breakpoints,n),n};function D0e(t={}){const{createStyledComponent:e=M0e,useThemeProps:n=k0e,componentName:r="MuiStack"}=t,i=()=>Oe({root:["root"]},l=>Pe(r,l),{}),o=e(N0e);return E.forwardRef(function(l,c){const u=n(l),d=gT(u),{component:f="div",direction:h="column",spacing:p=0,divider:m,children:g,className:y,useFlexGap:b=!1,...v}=d,S={direction:h,spacing:p,useFlexGap:b},I=i();return x.jsx(o,{as:f,ownerState:S,ref:c,className:de(I.root,y),...v,children:m?P0e(g,m):g})})}function KK(){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:v0.white,default:v0.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 YK=KK();function XK(){return{text:{primary:v0.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:v0.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 gR=XK();function cL(t,e,n,r){const i=r.light||r,o=r.dark||r*1.5;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:e==="light"?t.light=wT(t.main,i):e==="dark"&&(t.dark=bT(t.main,o)))}function uL(t,e,n,r,i){const o=i.light||i,s=i.dark||i*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=`color-mix(in ${t}, ${e.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(e.dark=`color-mix(in ${t}, ${e.main}, #000 ${(s*100).toFixed(0)}%)`))}function L0e(t="light"){return t==="dark"?{main:Dh[200],light:Dh[50],dark:Dh[400]}:{main:Dh[700],light:Dh[400],dark:Dh[800]}}function z0e(t="light"){return t==="dark"?{main:Nh[200],light:Nh[50],dark:Nh[400]}:{main:Nh[500],light:Nh[300],dark:Nh[700]}}function V0e(t="light"){return t==="dark"?{main:Oh[500],light:Oh[300],dark:Oh[700]}:{main:Oh[700],light:Oh[400],dark:Oh[800]}}function B0e(t="light"){return t==="dark"?{main:Lh[400],light:Lh[300],dark:Lh[700]}:{main:Lh[700],light:Lh[500],dark:Lh[900]}}function $0e(t="light"){return t==="dark"?{main:zh[400],light:zh[300],dark:zh[700]}:{main:zh[800],light:zh[500],dark:zh[900]}}function F0e(t="light"){return t==="dark"?{main:Gg[400],light:Gg[300],dark:Gg[700]}:{main:"#ed6c02",light:Gg[500],dark:Gg[900]}}function j0e(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function fP(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...o}=t,s=t.primary||L0e(e),a=t.secondary||z0e(e),l=t.error||V0e(e),c=t.info||B0e(e),u=t.success||$0e(e),d=t.warning||F0e(e);function f(g){return i?j0e(g):Lye(g,gR.text.primary)>=n?gR.text.primary:YK.text.primary}const h=({color:g,name:y,mainShade:b=500,lightShade:v=300,darkShade:S=700})=>{if(g={...g},!g.main&&g[b]&&(g.main=g[b]),!g.hasOwnProperty("main"))throw new Error(nc(11,y?` (${y})`:"",b));if(typeof g.main!="string")throw new Error(nc(12,y?` (${y})`:"",JSON.stringify(g.main)));return i?(uL(i,g,"light",v,r),uL(i,g,"dark",S,r)):(cL(g,"light",v,r),cL(g,"dark",S,r)),g.contrastText||(g.contrastText=f(g.main)),g};let p;return e==="light"?p=KK():e==="dark"&&(p=XK()),Kr({common:{...v0},mode:e,primary:h({color:s,name:"primary"}
4338),secondary:h({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:d,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:dge,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r,...p},o)}function H0e(t){const e={};return Object.entries(t).forEach(r=>{const[i,o]=r;typeof o=="object"&&(e[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||""}`)}),e}function U0e(t,e){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...e}}function q0e(t){return Math.round(t*1e5)/1e5}const dL={textTransform:"uppercase"},fL='"Roboto", "Helvetica", "Arial", sans-serif';function QK(t,e){const{fontFamily:n=fL,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...d}=typeof e=="function"?e(t):e,f=r/14,h=u||(g=>`${g/l*f}rem`),p=(g,y,b,v,S)=>({fontFamily:n,fontWeight:g,fontSize:h(y),lineHeight:b,...n===fL?{letterSpacing:`${q0e(v/y)}em`}:{},...S,...c}),m={h1:p(i,96,1.167,-1.5),h2:p(i,60,1.2,-.5),h3:p(o,48,1.167,0),h4:p(o,34,1.235,.25),h5:p(o,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(o,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(o,16,1.5,.15),body2:p(o,14,1.43,.15),button:p(s,14,1.75,.4,dL),caption:p(o,12,1.66,.4),overline:p(o,12,2.66,1,dL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Kr({htmlFontSize:l,pxToRem:h,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:a,...m},d,{clone:!1})}const W0e=.2,G0e=.14,K0e=.12;function Fn(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${W0e})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${G0e})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${K0e})`].join(",")}const Y0e=["none",Fn(0,2,1,-1,0,1,1,0,0,1,3,0),Fn(0,3,1,-2,0,2,2,0,0,1,5,0),Fn(0,3,3,-2,0,3,4,0,0,1,8,0),Fn(0,2,4,-1,0,4,5,0,0,1,10,0),Fn(0,3,5,-1,0,5,8,0,0,1,14,0),Fn(0,3,5,-1,0,6,10,0,0,1,18,0),Fn(0,4,5,-2,0,7,10,1,0,2,16,1),Fn(0,5,5,-3,0,8,10,1,0,3,14,2),Fn(0,5,6,-3,0,9,12,1,0,3,16,2),Fn(0,6,6,-3,0,10,14,1,0,4,18,3),Fn(0,6,7,-4,0,11,15,1,0,4,20,3),Fn(0,7,8,-4,0,12,17,2,0,5,22,4),Fn(0,7,8,-4,0,13,19,2,0,5,24,4),Fn(0,7,9,-4,0,14,21,2,0,5,26,4),Fn(0,8,9,-5,0,15,22,2,0,6,28,5),Fn(0,8,10,-5,0,16,24,2,0,6,30,5),Fn(0,8,11,-5,0,17,26,2,0,6,32,5),Fn(0,9,11,-5,0,18,28,2,0,7,34,6),Fn(0,9,12,-6,0,19,29,2,0,7,36,6),Fn(0,10,13,-6,0,20,31,3,0,8,38,7),Fn(0,10,13,-6,0,21,33,3,0,8,40,7),Fn(0,10,14,-6,0,22,35,3,0,8,42,7),Fn(0,11,14,-7,0,23,36,3,0,9,44,8),Fn(0,11,15,-7,0,24,38,3,0,9,46,8)],X0e={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)"},JK={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hL(t){return`${Math.round(t)}ms`}function Q0e(t){if(!t)return 0;const e=t/36;return Math.min(Math.round((4+15*e**.25+e/5)*10),3e3)}function J0e(t){const e={...X0e,...t.easing},n={...JK,...t.duration};return{getAutoHeightDuration:Q0e,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=e.easeInOut,delay:l=0,...c}=o;return(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:hL(s)} ${a} ${typeof l=="string"?l:hL(l)}`).join(",")},...t,easing:e,duration:n}}const Z0e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function eve(t){return wa(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function ZK(t={}){const e={...t};function n(r){const i=Object.entries(r);for(let o=0;o<i.length;o++){const[s,a]=i[o];!eve(a)||s.startsWith("unstable_")?delete r[s]:wa(a)&&(r[s]={...a},n(r[s]))}}return n(e),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 4339 4340const theme = ${JSON.stringify(e,null,2)}; 4341 4342theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 4343theme.transitions = createTransitions(theme.transitions || {}); 4344 4345export default theme;`}function pL(t){return typeof t=="number"?`${(t*100).toFixed(0)}%`:`calc((${t}) * 100%)`}const tve=t=>{if(!Number.isNaN(+t))return+t;const e=t.match(/\d*\.?\d+/g);if(!e)return 0;let n=0;for(let r=0;r<e.length;r+=1)n+=+e[r];return n};function nve(t){Object.assign(t,{alpha(e,n){const r=this||t;return r.colorSpace?`oklch(from ${e} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${e.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:x0(e,tve(n))},lighten(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #fff ${pL(n)})`:wT(e,n)},darken(e,n){const r=this||t;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${e}, #000 ${pL(n)})`:bT(e,n)}})}function yR(t={},...e){const{breakpoints:n,mixins:r={},spacing:i,palette:o={},transitions:s={},typography:a={},shape:l,colorSpace:c,...u}=t;
vendor: 8,037 bytes, line 4345
4345if(t.vars&&t.generateThemeVars===void 0)throw new Error(nc(20));const d=fP({...o,colorSpace:c}),f=vg(t);let h=Kr(f,{mixins:U0e(f.breakpoints,r),palette:d,shadows:Y0e.slice(),typography:QK(d,a),transitions:J0e(s),zIndex:{...Z0e}});return h=Kr(h,u),h=e.reduce((p,m)=>Kr(p,m),h),h.unstable_sxConfig={...Vv,...u==null?void 0:u.unstable_sxConfig},h.unstable_sx=function(m){return Uu({sx:m,theme:this})},h.toRuntimeSource=ZK,nve(h),h}function vR(t){let e;return t<1?e=5.11916*t**2:e=4.5*Math.log(t+1)+2,Math.round(e*10)/1e3}const rve=[...Array(25)].map((t,e)=>{if(e===0)return"none";const n=vR(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function eY(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function tY(t){return t==="dark"?rve:[]}function ive(t){const{palette:e={mode:"light"},opacity:n,overlays:r,colorSpace:i,...o}=t,s=fP({...e,colorSpace:i});return{palette:s,opacity:{...eY(s.mode),...n},overlays:r||tY(s.mode),...o}}function ove(t){var e;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((e=t[1])!=null&&e.match(/(mode|contrastThreshold|tonalOffset)/))}const sve=t=>[...[...Array(25)].map((e,n)=>`--${t?`${t}-`:""}overlays-${n}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],ave=t=>(e,n)=>{const r=t.rootSelector||":root",i=t.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"]`),t.defaultColorScheme===e){if(e==="dark"){const s={};return sve(t.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",e)]:s,[`${r}, ${o.replace("%s",e)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(e))}`}else if(e){if(o==="media")return{[`@media (prefers-color-scheme: ${String(e)})`]:{[r]:n}};if(o)return o.replace("%s",String(e))}return r};function lve(t,e){e.forEach(n=>{t[n]||(t[n]={})})}function ye(t,e,n){!t[e]&&n&&(t[e]=n)}function I1(t){return typeof t!="string"||!t.startsWith("hsl")?t:jK(t)}function ul(t,e){`${e}Channel`in t||(t[`${e}Channel`]=A1(I1(t[e])))}function cve(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const da=t=>{try{return t()}catch{}},uve=(t="mui")=>r0e(t);function lA(t,e,n,r,i){if(!n)return;n=n===!0?{}:n;const o=i==="dark"?"dark":"light";if(!r){e[i]=ive({...n,palette:{mode:o,...n==null?void 0:n.palette},colorSpace:t});return}const{palette:s,...a}=yR({...r,palette:{mode:o,...n==null?void 0:n.palette},colorSpace:t});return e[i]={...n,palette:s,opacity:{...eY(o),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||tY(o)},a}function dve(t={},...e){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:a=ove,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:c=":root",...u}=t,d=Object.keys(n)[0],f=r||(n.light&&d!=="light"?"light":d),h=uve(o),{[f]:p,light:m,dark:g,...y}=n,b={...y};let v=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(v=!0),!v)throw new Error(nc(21,f));let S;s&&(S="oklch");const I=lA(S,b,v,u,f);m&&!b.light&&lA(S,b,m,void 0,"light"),g&&!b.dark&&lA(S,b,g,void 0,"dark");let O={defaultColorScheme:f,...I,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:c,getCssVar:h,colorSchemes:b,font:{...H0e(I.typography),...I.font},spacing:cve(u.spacing)};Object.keys(O.colorSchemes).forEach(P=>{const C=O.colorSchemes[P].palette,_=V=>{const N=V.split("-"),z=N[1],L=N[2];return h(V,C[z][L])};C.mode==="light"&&(ye(C.common,"background","#fff"),ye(C.common,"onBackground","#000")),C.mode==="dark"&&(ye(C.common,"background","#000"),ye(C.common,"onBackground","#fff"));function M(V,N,z){if(S){let L;return V===Td&&(L=`transparent ${((1-z)*100).toFixed(0)}%`),V===rn&&(L=`#000 ${(z*100).toFixed(0)}%`),V===on&&(L=`#fff ${(z*100).toFixed(0)}%`),`color-mix(in ${S}, ${N}, ${L})`}return V(N,z)}if(lve(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ye(C.Alert,"errorColor",M(rn,s?h("palette-error-light"):C.error.light,.6)),ye(C.Alert,"infoColor",M(rn,s?h("palette-info-light"):C.info.light,.6)),ye(C.Alert,"successColor",M(rn,s?h("palette-success-light"):C.success.light,.6)),ye(C.Alert,"warningColor",M(rn,s?h("palette-warning-light"):C.warning.light,.6)),ye(C.Alert,"errorFilledBg",_("palette-error-main")),ye(C.Alert,"infoFilledBg",_("palette-info-main")),ye(C.Alert,"successFilledBg",_("palette-success-main")),ye(C.Alert,"warningFilledBg",_("palette-warning-main")),ye(C.Alert,"errorFilledColor",da(()=>C.getContrastText(C.error.main))),ye(C.Alert,"infoFilledColor",da(()=>C.getContrastText(C.info.main))),ye(C.Alert,"successFilledColor",da(()=>C.getContrastText(C.success.main))),ye(C.Alert,"warningFilledColor",da(()=>C.getContrastText(C.warning.main))),ye(C.Alert,"errorStandardBg",M(on,s?h("palette-error-light"):C.error.light,.9)),ye(C.Alert,"infoStandardBg",M(on,s?h("palette-info-light"):C.info.light,.9)),ye(C.Alert,"successStandardBg",M(on,s?h("palette-success-light"):C.success.light,.9)),ye(C.Alert,"warningStandardBg",M(on,s?h("palette-warning-light"):C.warning.light,.9)),ye(C.Alert,"errorIconColor",_("palette-error-main")),ye(C.Alert,"infoIconColor",_("palette-info-main")),ye(C.Alert,"successIconColor",_("palette-success-main")),ye(C.Alert,"warningIconColor",_("palette-warning-main")),ye(C.AppBar,"defaultBg",_("palette-grey-100")),ye(C.Avatar,"defaultBg",_("palette-grey-400")),ye(C.Button,"inheritContainedBg",_("palette-grey-300")),ye(C.Button,"inheritContainedHoverBg",_("palette-grey-A100")),ye(C.Chip,"defaultBorder",_("palette-grey-400")),ye(C.Chip,"defaultAvatarColor",_("palette-grey-700")),ye(C.Chip,"defaultIconColor",_("palette-grey-700")),ye(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ye(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ye(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ye(C.LinearProgress,"primaryBg",M(on,s?h("palette-primary-main"):C.primary.main,.62)),ye(C.LinearProgress,"secondaryBg",M(on,s?h("palette-secondary-main"):C.secondary.main,.62)),ye(C.LinearProgress,"errorBg",M(on,s?h("palette-error-main"):C.error.main,.62)),ye(C.LinearProgress,"infoBg",M(on,s?h("palette-info-main"):C.info.main,.62)),ye(C.LinearProgress,"successBg",M(on,s?h("palette-success-main"):C.success.main,.62)),ye(C.LinearProgress,"warningBg",M(on,s?h("palette-warning-light"):C.warning.main,.62)),ye(C.Skeleton,"bg",S?M(Td,s?h("palette-text-primary"):C.text.primary,.11):`rgba(${_("palette-text-primaryChannel")} / 0.11)`),ye(C.Slider,"primaryTrack",M(on,s?h("palette-primary-main"):C.primary.main,.62)),ye(C.Slider,"secondaryTrack",M(on,s?h("palette-secondary-main"):C.secondary.main,.62)),ye(C.Slider,"errorTrack",M(on,s?h("palette-error-main"):C.error.main,.62)),ye(C.Slider,"infoTrack",M(on,s?h("palette-info-main"):C.info.main,.62)),ye(C.Slider,"successTrack",M(on,s?h("palette-success-main"):C.success.main,.62)),ye(C.Slider,"warningTrack",M(on,s?h("palette-warning-main"):C.warning.main,.62));const V=S?M(rn,s?h("palette-background-default"):C.background.default,.6825):Hb(C.background.default,.8);ye(C.SnackbarContent,"bg",V),ye(C.SnackbarContent,"color",da(()=>S?gR.text.primary:C.getContrastText(V))),ye(C.SpeedDialAction,"fabHoverBg",Hb(C.background.paper,.15)),ye(C.StepConnector,"border",_("palette-grey-400")),ye(C.StepContent,"border",_("palette-grey-400")),ye(C.Switch,"defaultColor",_("palette-common-white")),ye(C.Switch,"defaultDisabledColor",_("palette-grey-100")),ye(C.Switch,"primaryDisabledColor",M(on,s?h("palette-primary-main"):C.primary.main,.62)),ye(C.Switch,"secondary
4345DisabledColor",M(on,s?h("palette-secondary-main"):C.secondary.main,.62)),ye(C.Switch,"errorDisabledColor",M(on,s?h("palette-error-main"):C.error.main,.62)),ye(C.Switch,"infoDisabledColor",M(on,s?h("palette-info-main"):C.info.main,.62)),ye(C.Switch,"successDisabledColor",M(on,s?h("palette-success-main"):C.success.main,.62)),ye(C.Switch,"warningDisabledColor",M(on,s?h("palette-warning-main"):C.warning.main,.62)),ye(C.TableCell,"border",M(on,Td(s?h("palette-divider"):C.divider,1),.88)),ye(C.Tooltip,"bg",M(Td,s?h("palette-grey-700"):C.grey[700],.92))}if(C.mode==="dark"){ye(C.Alert,"errorColor",M(on,s?h("palette-error-light"):C.error.light,.6)),ye(C.Alert,"infoColor",M(on,s?h("palette-info-light"):C.info.light,.6)),ye(C.Alert,"successColor",M(on,s?h("palette-success-light"):C.success.light,.6)),ye(C.Alert,"warningColor",M(on,s?h("palette-warning-light"):C.warning.light,.6)),ye(C.Alert,"errorFilledBg",_("palette-error-dark")),ye(C.Alert,"infoFilledBg",_("palette-info-dark")),ye(C.Alert,"successFilledBg",_("palette-success-dark")),ye(C.Alert,"warningFilledBg",_("palette-warning-dark")),ye(C.Alert,"errorFilledColor",da(()=>C.getContrastText(C.error.dark))),ye(C.Alert,"infoFilledColor",da(()=>C.getContrastText(C.info.dark))),ye(C.Alert,"successFilledColor",da(()=>C.getContrastText(C.success.dark))),ye(C.Alert,"warningFilledColor",da(()=>C.getContrastText(C.warning.dark))),ye(C.Alert,"errorStandardBg",M(rn,s?h("palette-error-light"):C.error.light,.9)),ye(C.Alert,"infoStandardBg",M(rn,s?h("palette-info-light"):C.info.light,.9)),ye(C.Alert,"successStandardBg",M(rn,s?h("palette-success-light"):C.success.light,.9)),ye(C.Alert,"warningStandardBg",M(rn,s?h("palette-warning-light"):C.warning.light,.9)),ye(C.Alert,"errorIconColor",_("palette-error-main")),ye(C.Alert,"infoIconColor",_("palette-info-main")),ye(C.Alert,"successIconColor",_("palette-success-main")),ye(C.Alert,"warningIconColor",_("palette-warning-main")),ye(C.AppBar,"defaultBg",_("palette-grey-900")),ye(C.AppBar,"darkBg",_("palette-background-paper")),ye(C.AppBar,"darkColor",_("palette-text-primary")),ye(C.Avatar,"defaultBg",_("palette-grey-600")),ye(C.Button,"inheritContainedBg",_("palette-grey-800")),ye(C.Button,"inheritContainedHoverBg",_("palette-grey-700")),ye(C.Chip,"defaultBorder",_("palette-grey-700")),ye(C.Chip,"defaultAvatarColor",_("palette-grey-300")),ye(C.Chip,"defaultIconColor",_("palette-grey-300")),ye(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ye(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ye(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ye(C.LinearProgress,"primaryBg",M(rn,s?h("palette-primary-main"):C.primary.main,.5)),ye(C.LinearProgress,"secondaryBg",M(rn,s?h("palette-secondary-main"):C.secondary.main,.5)),ye(C.LinearProgress,"errorBg",M(rn,s?h("palette-error-main"):C.error.main,.5)),ye(C.LinearProgress,"infoBg",M(rn,s?h("palette-info-main"):C.info.main,.5)),ye(C.LinearProgress,"successBg",M(rn,s?h("palette-success-main"):C.success.main,.5)),ye(C.LinearProgress,"warningBg",M(rn,s?h("palette-warning-main"):C.warning.main,.5)),ye(C.Skeleton,"bg",S?M(Td,s?h("palette-text-primary"):C.text.primary,.13):`rgba(${_("palette-text-primaryChannel")} / 0.13)`),ye(C.Slider,"primaryTrack",M(rn,s?h("palette-primary-main"):C.primary.main,.5)),ye(C.Slider,"secondaryTrack",M(rn,s?h("palette-secondary-main"):C.secondary.main,.5)),ye(C.Slider,"errorTrack",M(rn,s?h("palette-error-main"):C.error.main,.5)),ye(C.Slider,"infoTrack",M(rn,s?h("palette-info-main"):C.info.main,.5)),ye(C.Slider,"successTrack",M(rn,s?h("palette-success-main"):C.success.main,.5)),ye(C.Slider,"warningTrack",M(rn,s?h("palette-warning-light"):C.warning.main,.5));const V=S?M(on,s?h("palette-background-default"):C.background.default,.985):Hb(C.background.default,.98);ye(C.SnackbarContent,"bg",V),ye(C.SnackbarContent,"color",da(()=>S?YK.text.primary:C.getContrastText(V))),ye(C.SpeedDialAction,"fabHoverBg",Hb(C.background.paper,.15)),ye(C.StepConnector,"border",_("palette-grey-600")),ye(C.StepContent,"border",_("palette-grey-600")),ye(C.Switch,"defaultColor",_("palette-grey-300")),ye(C.Switch,"defaultDisabledColor",_("palette-grey-600")),ye(C.Switch,"primaryDisabledColor",M(rn,s?h("palette-primary-main"):C.primary.main,.55)),ye(C.Switch,"secondary
4345DisabledColor",M(rn,s?h("palette-secondary-main"):C.secondary.main,.55)),ye(C.Switch,"errorDisabledColor",M(rn,s?h("palette-error-main"):C.error.main,.55)),ye(C.Switch,"infoDisabledColor",M(rn,s?h("palette-info-main"):C.info.main,.55)),ye(C.Switch,"successDisabledColor",M(rn,s?h("palette-success-main"):C.success.main,.55)),ye(C.Switch,"warningDisabledColor",M(rn,s?h("palette-warning-light"):C.warning.main,.55)),ye(C.TableCell,"border",M(rn,Td(s?h("palette-divider"):C.divider,1),.68)),ye(C.Tooltip,"bg",M(Td,s?h("palette-grey-700"):C.grey[700],.92))}ul(C.background,"default"),ul(C.background,"paper"),ul(C.common,"background"),ul(C.common,"onBackground"),ul(C,"divider"),Object.keys(C).forEach(V=>{const N=C[V];V!=="tonalOffset"&&N&&typeof N=="object"&&(N.main&&ye(C[V],"mainChannel",A1(I1(N.main))),N.light&&ye(C[V],"lightChannel",A1(I1(N.light))),N.dark&&ye(C[V],"darkChannel",A1(I1(N.dark))),N.contrastText&&ye(C[V],"contrastTextChannel",A1(I1(N.contrastText))),V==="text"&&(ul(C[V],"primary"),ul(C[V],"secondary")),V==="action"&&(N.active&&ul(C[V],"active"),N.selected&&ul(C[V],"selected")))})}),O=e.reduce((P,C)=>Kr(P,C),O);const T={prefix:o,disableCssColorScheme:i,shouldSkipGeneratingVar:a,getSelector:ave(O),enableContrastVars:s},{vars:A,generateThemeVars:R,generateStyleSheets:k}=s0e(O,T);return O.vars=A,Object.entries(O.colorSchemes[O.defaultColorScheme]).forEach(([P,C])=>{O[P]=C}),O.generateThemeVars=R,O.generateStyleSheets=k,O.generateSpacing=function(){return PK(u.spacing,cT(this))},O.getColorSchemeSelector=a0e(l),O.spacing=O.generateSpacing(),O.shouldSkipGeneratingVar=a,O.unstable_sxConfig={...Vv,...u==null?void 0:u.unstable_sxConfig},O.unstable_sx=function(C){return Uu({sx:C,theme:this})},O.toRuntimeSource=ZK,O}function mL(t,e,n){t.colorSchemes&&n&&(t.colorSchemes[e]={...n!==!0&&n,palette:fP({...n===!0?{}:n.palette,mode:e})})}function hP(t={},...e){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:o=n==null?void 0:n.mode,...s}=t,a=o||"light",l=i==null?void 0:i[a],c={...i,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in t))return yR(t,...e);let u=n;"palette"in t||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const d=yR({...t,palette:u},...e);return d.defaultColorScheme=a,d.colorSchemes=c,d.palette.mode==="light"&&(d.colorSchemes.light={...c.light!==!0&&c.light,palette:d.palette},mL(d,"dark",c.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:d.palette},mL(d,"light",c.light)),d}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),dve({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...e)}function fve(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function hve(t){return parseFloat(t)}const xT=hP();function Ho(){const t=Bv(xT);return t[hs]||t}function lGe({props:t,name:e}){return yT({props:t,name:e,defaultTheme:xT,themeId:hs})}function $v(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const yr=t=>$v(t)&&t!=="classes",W=VK({themeId:hs,defaultTheme:xT,rootShouldForwardProp:yr});function pve({theme:t,...e}){const n=hs in t?t[hs]:void 0;return x.jsx(WK,{...e,themeId:n?hs:void 0,theme:n||t})}const Ub={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:mve}=n0e({themeId:hs,theme:()=>hP({cssVariables:!0}),colorSchemeStorageKey:Ub.colorSchemeStorageKey,modeStorageKey:Ub.modeStorageKey,defaultColorScheme:{light:Ub.defaultLightColorScheme,dark:Ub.defaultDarkColorScheme},resolveTheme:t=>{const e={...t,typography:QK(t.palette,t.typography)};return e.unstable_sx=function(r){return Uu({sx:r,theme:this})},e}}),gve=mve;function cGe({theme:t,...e}){const n=E.useMemo(()=>{if(typeof t=="function")return t;const r=hs in t?t[hs]:t;return"colorSchemes"in r?null:"vars"in r?t:{...t,vars:null}},[t]);return n?x.jsx(pve,{theme:n,...e}):x.jsx(gve,{theme:t,...e})}function bR(...t){return t.reduce((e,n)=>n==null?e:function(...i){e.apply(this,i),n.apply(this,i)},()=>{})}function yve(t){return x.jsx(OK,{...t,defaultTheme:xT,themeId:hs})}function pP(t){return function(n){return x.jsx(yve,{styles:typeof t=="function"?r=>t({theme:r,...n}):t})}}function vve(){return gT}const Te=Kye;function Ne(t){return Uye(t)}function bve(t){return Pe("MuiSvgIcon",t)}Le("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wve=t=>{const{color:e,fontSize:n,classes:r}=t,i={root:["root",e!=="inherit"&&`color${Q(e)}`,`fontSize${Q(n)}`]};return Oe(i,bve,r)},Sve=W("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="inherit"&&e[`color${Q(n.color)}`],e[`fontSize${Q(n.fontSize)}`]]}})(Te(({theme:t})=>{var e,n,r,i,o,s,a,l,c,u,d,f,h,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(e=t.transitions)==null?void 0:e.create)==null?void 0:i.call(e,"fill",{duration:(r=(n=(t.vars??t).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:m=>!m.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(o=t.typography)==null?void 0:o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=t.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=t.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,m])=>m&&m.main).map(([m])=>{var g,y;return{props:{color:m},style:{color:(y=(g=(t.vars??t).palette)==null?void 0:g[m])==null?void 0:y.main}}}),{props:{color:"action"},style:{color:(f=(d=(t.vars??t).palette)==null?void 0:d.action)==null?void 0:f.active}},{props:{color:"disabled"},style:{color:(p=(h=(t.vars??t).palette)==null?void 0:h.action)==null?void 0:p.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),zS=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:d,viewB
4345ox:f="0 0 24 24",...h}=r,p=E.isValidElement(i)&&i.type==="svg",m={...r,color:s,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:f,hasSvgAsChild:p},g={};u||(g.viewBox=f);const y=wve(m);return x.jsxs(Sve,{as:a,className:de(y.root,o),focusable:"false",color:c,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...g,...h,...p&&i.props,ownerState:m,children:[p?i.props.children:i,d?x.jsx("title",{children:d}):null]})});zS.muiName="SvgIcon";function F(t,e){function n(r,i){return x.jsx(zS,{"data-testid":void 0,ref:i,...r,children:t})}return n.muiName=zS.muiName,E.memo(E.forwardRef(n))}function Fv(t,e=166){let n;function r(...i){const o=()=>{t.apply(this,i)};clearTimeout(n),n=setTimeout(o,e)}return r.clear=()=>{clearTimeout(n)},r}function In(t){return t&&t.ownerDocument||document}function ui(t){return In(t).defaultView||window}function wR(t,e){typeof t=="function"?t(e):t&&(t.current=e)}function Ws(t){const{controlled:e,default:n,name:r,state:i="value"}=t,{current:o}=E.useRef(e!==void 0),[s,a]=E.useState(n),l=o?e:s,c=E.useCallback(u=>{o||a(u)},[]);return[l,c]}function jt(t){const e=E.useRef(t);return An(()=>{e.current=t}),E.useRef((...n)=>(0,e.current)(...n)).current}function fn(...t){const e=E.useRef(void 0),n=E.useCallback(r=>{const i=t.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return o.current=r,()=>{o.current=null}});return()=>{i.forEach(o=>o==null?void 0:o())}},t);return E.useMemo(()=>t.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=n(r))},t)}function xve(t,e){const n=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&n>=65&&n<=90&&typeof e=="function"}function E0(t,e){if(!t)return e;function n(s,a){const l={};return Object.keys(a).forEach(c=>{xve(c,a[c])&&typeof s[c]=="function"&&(l[c]=(...u)=>{s[c](...u),a[c](...u)})}),l}if(typeof t=="function"||typeof e=="function")return s=>{const a=typeof e=="function"?e(s):e,l=typeof t=="function"?t({...s,...a}):t,c=de(s==null?void 0:s.className,a==null?void 0:a.className,l==null?void 0:l.className),u=n(l,a);return{...a,...l,...u,...!!c&&{className:c},...(a==null?void 0:a.style)&&(l==null?void 0:l.style)&&{style:{...a.style,...l.style}},...(a==null?void 0:a.sx)&&(l==null?void 0:l.sx)&&{sx:[...Array.isArray(a.sx)?a.sx:[a.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=e,i=n(t,r),o=de(r==null?void 0:r.className,t==null?void 0:t.className);return{...e,...t,...i,...!!o&&{className:o},...(r==null?void 0:r.style)&&(t==null?void 0:t.style)&&{style:{...r.style,...t.style}},...(r==null?void 0:r.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function mP(t,e){if(t==null)return{};var n={};for(var r in t)if({}.hasOwnProperty.call(t,r)){if(e.indexOf(r)!==-1)continue;n[r]=t[r]}return n}function SR(t,e){return SR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},SR(t,e)}function gP(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,SR(t,e)}function Eve(t,e){return t.classList?!!e&&t.classList.contains(e):(" "+(t.className.baseVal||t.className)+" ").indexOf(" "+e+" ")!==-1}function Tve(t,e){t.classList?t.classList.add(e):Eve(t,e)||(typeof t.className=="string"?t.className=t.className+" "+e:t.setAttribute("class",(t.className&&t.className.baseVal||"")+" "+e))}function gL(t,e){return t.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Cve(t,e){t.classList?t.classList.remove(e):typeof t.className=="string"?t.className=gL(t.className,e):t.setAttribute("class",gL(t.className&&t.className.baseVal||"",e))}const yL={disabled:!1},VS=ft.createContext(null);var nY=function(e){return e.scrollTop},R1="unmounted",Dd="exited",Ld="entering",Jh="entered",xR="exiting",Uo=function(t){gP(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?a?(l=Dd,o.appearStatus=Ld):l=Jh:r.unmountOnExit||r.mountOnEnter?l=R1:l=Dd,o.state={status:l},o.nextCallback=null,o}e.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===R1?{status:Dd}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Ld&&s!==Jh&&(o=Ld):(s===Ld||s===Jh)&&(o=xR)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Ld){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:p1.findDOMNode(this);s&&nY(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Dd&&this.setState({status:R1})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.
vendor: 4,311 bytes, line 4345
4345isMounting:i,l=this.props.nodeRef?[a]:[p1.findDOMNode(this),a],c=l[0],u=l[1],d=this.getTimeouts(),f=a?d.appear:d.enter;if(!i&&!s||yL.disabled){this.safeSetState({status:Jh},function(){o.props.onEntered(c)});return}this.props.onEnter(c,u),this.safeSetState({status:Ld},function(){o.props.onEntering(c,u),o.onTransitionEnd(f,function(){o.safeSetState({status:Jh},function(){o.props.onEntered(c,u)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:p1.findDOMNode(this);if(!o||yL.disabled){this.safeSetState({status:Dd},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:xR},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Dd},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:p1.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],c=l[0],u=l[1];this.props.addEndListener(c,u)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===R1)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=mP(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ft.createElement(VS.Provider,{value:null},typeof s=="function"?s(i,a):ft.cloneElement(ft.Children.only(s),a))},e}(ft.Component);Uo.contextType=VS;Uo.propTypes={};function Vh(){}Uo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Vh,onEntering:Vh,onEntered:Vh,onExit:Vh,onExiting:Vh,onExited:Vh};Uo.UNMOUNTED=R1;Uo.EXITED=Dd;Uo.ENTERING=Ld;Uo.ENTERED=Jh;Uo.EXITING=xR;var _ve=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Tve(e,r)})},cA=function(e,n){return e&&n&&n.split(" ").forEach(function(r){return Cve(e,r)})},rY=function(t){gP(e,t);function e(){for(var r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return r=t.call.apply(t,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1];r.removeClasses(u,"exit"),r.addClass(u,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(a,l)},r.onEntering=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";r.addClass(u,f,"active"),r.props.onEntering&&r.props.onEntering(a,l)},r.onEntered=function(a,l){var c=r.resolveArguments(a,l),u=c[0],d=c[1],f=d?"appear":"enter";r.removeClasses(u,f),r.addClass(u,f,"done"),r.props.onEntered&&r.props.onEntered(a,l)},r.onExit=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(a)},r.onExiting=function(a){var l=r.resolveArguments(a),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(a)},r.onExited=function(a){var l=r.resolveArguments(a),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(a)},r.resolveArguments=function(a,l){return r.props.nodeRef?[r.props.nodeRef.current,a]:[a,l]},r.getClassNames=function(a){var l=r.props.classNames,c=typeof l=="string",u=c&&l?l+"-":"",d=c?""+u+a:l[a],f=c?d+"-active":l[a+"Active"],h=c?d+"-done":l[a+"Done"];return{baseClassName:d,activeClassName:f,doneClassName:h}},r}var n=e.prototype;return n.addClass=function(i,o,s){var a=this.getClassNames(o)[s+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;o==="appear"&&s==="done"&&c&&(a+=" "+c),s==="active"&&i&&nY(i),a&&(this.appliedClasse
vendor: 1,389 bytes, line 4345
4345s[o][s]=a,_ve(i,a))},n.removeClasses=function(i,o){var s=this.appliedClasses[o],a=s.base,l=s.active,c=s.done;this.appliedClasses[o]={},a&&cA(i,a),l&&cA(i,l),c&&cA(i,c)},n.render=function(){var i=this.props;i.classNames;var o=mP(i,["classNames"]);return ft.createElement(Uo,Er({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},e}(ft.Component);rY.defaultProps={classNames:""};rY.propTypes={};function Ave(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yP(t,e){var n=function(o){return e&&E.isValidElement(o)?e(o):o},r=Object.create(null);return t&&E.Children.map(t,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Ive(t,e){t=t||{},e=e||{};function n(u){return u in e?e[u]:t[u]}var r=Object.create(null),i=[];for(var o in t)o in e?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var l in e){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<i.length;s++)a[i[s]]=n(i[s]);return a}function Yd(t,e,n){return n[e]!=null?n[e]:t.props[e]}function Rve(t,e){return yP(t.children,function(n){return E.cloneElement(n,{onExited:e.bind(null,n),in:!0,appear:Yd(n,"appear",t),enter:Yd(n,"enter",t),exit:Yd(n,"exit",t)})})}function Mve(t,e,n){var r=yP(t.children),i=Ive(e,r);
vendor: 1,997 bytes, line 4345
4345return Object.keys(i).forEach(function(o){var s=i[o];if(E.isValidElement(s)){var a=o in e,l=o in r,c=e[o],u=E.isValidElement(c)&&!c.props.in;l&&(!a||u)?i[o]=E.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Yd(s,"exit",t),enter:Yd(s,"enter",t)}):!l&&a&&!u?i[o]=E.cloneElement(s,{in:!1}):l&&a&&E.isValidElement(c)&&(i[o]=E.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:Yd(s,"exit",t),enter:Yd(s,"enter",t)}))}}),i}var kve=Object.values||function(t){return Object.keys(t).map(function(e){return t[e]})},Pve={component:"div",childFactory:function(e){return e}},vP=function(t){gP(e,t);function e(r,i){var o;o=t.call(this,r,i)||this;var s=o.handleExited.bind(Ave(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=e.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},e.getDerivedStateFromProps=function(i,o){var s=o.children,a=o.handleExited,l=o.firstRender;return{children:l?Rve(i,a):Mve(i,s,a),firstRender:!1}},n.handleExited=function(i,o){var s=yP(this.props.children);i.key in s||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(a){var l=Er({},a.children);return delete l[i.key],{children:l}}))},n.render=function(){var i=this.props,o=i.component,s=i.childFactory,a=mP(i,["component","childFactory"]),l=this.state.contextValue,c=kve(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,o===null?ft.createElement(VS.Provider,{value:l},c):ft.createElement(VS.Provider,{value:l},ft.createElement(o,a,c))},e}(ft.Component);vP.propTypes={};vP.defaultProps=Pve;const vL={};function wg(t,e){const n=E.useRef(vL);return n.current===vL&&(n.current=t(e)),n}const Ove=[];function iY(t){E.useEffect(t,Ove)}class ET{constructor(){fi(this,"currentId",null);fi(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fi(this,"disposeEffect",()=>this.clear)}
vendor: 24,167 bytes, lines 4345-4445
4345static create(){return new ET}start(e,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},e)}}function Ol(){const t=wg(ET.create).current;return iY(t.disposeEffect),t}const bP=t=>t.scrollTop;function rc(t,e){const{timeout:n,easing:r,style:i={}}=t;return{duration:i.transitionDuration??(typeof n=="number"?n:n[e.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[e.mode]:r),delay:i.transitionDelay}}function Oa(t){return typeof t=="string"}function oY(t,e,n){return t===void 0||Oa(t)?e:{...e,ownerState:{...e.ownerState,...n}}}function sY(t,e,n){return typeof t=="function"?t(e,n):t}function hf(t,e=[]){if(t===void 0)return{};const n={};return Object.keys(t).filter(r=>r.match(/^on[A-Z]/)&&typeof t[r]=="function"&&!e.includes(r)).forEach(r=>{n[r]=t[r]}),n}function bL(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(n=>!(n.match(/^on[A-Z]/)&&typeof t[n]=="function")).forEach(n=>{e[n]=t[n]}),e}function aY(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=t;if(!e){const h=de(n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),p={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},m={...n,...i,...r};return h.length>0&&(m.className=h),Object.keys(p).length>0&&(m.style=p),{props:m,internalRef:void 0}}const s=hf({...i,...r}),a=bL(r),l=bL(i),c=e(s),u=de(c==null?void 0:c.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),d={...c==null?void 0:c.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},f={...c,...n,...l,...a};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:c.ref}}function Ie(t,e){const{className:n,elementType:r,ownerState:i,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=e,{component:c,slots:u={[t]:void 0},slotProps:d={[t]:void 0},...f}=o,h=u[t]||r,p=sY(d[t],i),{props:{component:m,...g},internalRef:y}=aY({className:n,...l,externalForwardedProps:t==="root"?f:void 0,externalSlotProps:p}),b=fn(y,p==null?void 0:p.ref,e.ref),v=t==="root"?m||c:m,S=oY(h,{...t==="root"&&!c&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...g,...v&&!a&&{as:v},...v&&a&&{component:v},ref:b},i);return[h,S]}function Nve(t){return Pe("MuiCollapse",t)}Le("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Dve=t=>{const{orientation:e,classes:n}=t;return Oe({root:["root",e],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",e],wrapperInner:["wrapperInner",e]},Nve,n)},Lve=W("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.state==="entered"&&e.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&e.hidden]}})(Te(({theme:t})=>({height:0,overflow:"hidden",transition:t.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:t.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:e})=>e.state==="exited"&&!e.in&&e.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),zve=W("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Vve=W("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ER=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:l,easing:c,in:u,onEnter:d,onEntered:f,onEntering:h,onExit:p,onExited:m,onExiting:g,orientation:y="vertical",slots:b={},slotProps:v={},style:S,timeout:I=JK.standard,TransitionComponent:O=Uo,...T}=r,A={...r,orientation:y,collapsedSize:a},R=Dve(A),k=Ho(),P=Ol(),C=E.useRef(null),_=E.useRef(),M=typeof a=="number"?`${a}px`:a,V=y==="horizontal",N=V?"width":"height",z=E.useRef(null),L=fn(n,z),B=pe=>ve=>{if(pe){const se=z.current;ve===void 0?pe(se):pe(se,ve)}},j=()=>C.current?C.current[V?"clientWidth":"clientHeight"]:0,H=B((pe,ve)=>{C.current&&V&&(C.current.style.position="absolute"),pe.style[N]=M,d&&d(pe,ve)}),q=B((pe,ve)=>{const se=j();C.current&&V&&(C.current.style.position="");const{duration:ae,easing:ke}=rc({style:S,timeout:I,easing:c},{mode:"enter"});if(I==="auto"){const Ee=k.transitions.getAutoHeightDuration(se);pe.style.transitionDuration=`${Ee}ms`,_.current=Ee}else pe.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;pe.style[N]=`${se}px`,pe.style.transitionTimingFunction=ke,h&&h(pe,ve)}),Y=B((pe,ve)=>{pe.style[N]="auto",f&&f(pe,ve)}),Z=B(pe=>{pe.style[N]=`${j()}px`,p&&p(pe)}),G=B(m),X=B(pe=>{const ve=j(),{duration:se,easing:ae}=rc({style:S,timeout:I,easing:c},{mode:"exit"});if(I==="auto"){const ke=k.transitions.getAutoHeightDuration(ve);pe.style.transitionDuration=`${ke}ms`,_.current=ke}else pe.style.transitionDuration=typeof se=="string"?se:`${se}ms`;pe.style[N]=M,pe.style.transitionTimingFunction=ae,g&&g(pe)}),K=pe=>{I==="auto"&&P.start(_.current||0,pe),i&&i(z.current,pe)},J={slots:b,slotProps:v,component:l},[te,ne]=Ie("root",{ref:L,className:de(R.root,s),elementType:Lve,externalForwardedProps:J,ownerState:A,additionalProps:{style:{[V?"minWidth":"minHeight"]:M,...S}}}),[ce,ie]=Ie("wrapper",{ref:C,className:R.wrapper,elementType:zve,externalForwardedProps:J,ownerState:A}),[oe,ue]=Ie("wrapperInner",{className:R.wrapperInner,elementType:Vve,externalForwardedProps:J,ownerState:A});return x.jsx(O,{in:u,onEnter:H,onEntered:Y,onEntering:q,onExit:Z,onExited:G,onExiting:X,addEndListener:K,nodeRef:z,timeout:I==="auto"?null:I,...T,children:(pe,{ownerState:ve,...se})=>{const ae={...A,state:pe};return x.jsx(te,{...ne,className:de(ne.className,{entered:R.entered,exited:!u&&M==="0px"&&R.hidden}[pe]),ownerState:ae,...se,children:x.jsx(ce,{...ie,ownerState:ae,children:x.jsx(oe,{...ue,ownerState:ae,children:o})})})}})});ER&&(ER.muiSupportAuto=!0);function Bve(t){return Pe("MuiPaper",t)}Le("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 $ve=t=>{const{square:e,elevation:n,variant:r,classes:i}=t,o={root:["root",r,!e&&"rounded",r==="elevation"&&`elevation${n}`]};return Oe(o,Bve,i)},Fve=W("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,n.variant==="elevation"&&e[`elevation${n.elevation}`]]}})(Te(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),na=E.forwardRef(function(e,n){var h;const r=Ne({props:e,name:"MuiPaper"}),i=Ho(),{className:o,component:s="div",elevation:a=1,square:l=!1,variant:c="elevation",...u}=r,d={...r,component:s,elevation:a,square:l,variant:c},f=$ve(d);return x.jsx(Fve,{as:s,ownerState:d,className:de(f.root,o),ref:n,...u,style:{...c==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[a],...i.vars&&{"--Paper-overlay":(h=i.vars.overlays)==null?void 0:h[a]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${x0("#fff",vR(a))}, ${x0("#fff",vR(a))})`}},...u.style}})}),lY=E.createContext({});function jve(t){return Pe("MuiAccordion",t)}const qb=Le("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Hve=t=>{const{classes:e,square:n,expanded:r,disabled:i,disableGutters:o}=t;return Oe({root:["root",!n&&"rounded",r&&"expanded",i&&"disabled",!o&&"gutters"],heading:["heading"],region:["region"]},jve,e)},Uve=W(na,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${qb.region}`]:e.region},e.root,!n.square&&e.rounded,!n.disableGutters&&e.gutters]}})(Te(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],e),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${qb.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${qb.disabled}`]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}}),Te(({theme:t})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${qb.expanded}`]:{margin:"16px 0"}}}]}))),qve=W("h3",{name:"MuiAccordion",slot:"Heading"})({all:"unset"}),Wve=W("div",{name:"MuiAccordion",slot:"Region"})({}),uGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:s=!1,disabled:a=!1,disableGutters:l=!1,expanded:c,onChange:u,slots:d={},slotProps:f={},TransitionComponent:h,TransitionProps:p,...m}=r,[g,y]=Ws({controlled:c,default:s,name:"Accordion",state:"expanded"}),b=E.useCallback(B=>{y(!g),u&&u(B,!g)},[g,u,y]),[v,...S]=E.Children.toArray(i),I=E.useMemo(()=>({expanded:g,disabled:a,disableGutters:l,toggle:b}),[g,a,l,b]),O={...r,disabled:a,disableGutters:l,expanded:g},T=Hve(O),A={transition:h,...d},R={transition:p,...f},k={slots:A,slotProps:R},[P,C]=Ie("root",{elementType:Uve,externalForwardedProps:{...k,...m},className:de(T.root,o),shouldForwardComponentProp:!0,ownerState:O,ref:n}),[_,M]=Ie("heading",{elementType:qve,externalForwardedProps:k,className:T.heading,ownerState:O}),[V,N]=Ie("transition",{elementType:ER,externalForwardedProps:k,ownerState:O}),[z,L]=Ie("region",{elementType:Wve,externalForwardedProps:k,ownerState:O,className:T.region,additionalProps:{"aria-labelledby":v.props.id,id:v.props["aria-controls"],role:"region"}});return x.jsxs(P,{...C,children:[x.jsx(_,{...M,children:x.jsx(lY.Provider,{value:I,children:v})}),x.jsx(V,{in:g,timeout:"auto",...N,children:x.jsx(z,{...L,children:S})})]})});function Gve(t){return Pe("MuiAccordionDetails",t)}Le("MuiAccordionDetails",["root"]);const Kve=t=>{const{classes:e}=t;return Oe({root:["root"]},Gve,e)},Yve=W("div",{name:"MuiAccordionDetails",slot:"Root"})(Te(({theme:t})=>({padding:t.spacing(1,2,2)}))),dGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAccordionDetails"}),{className:i,...o}=r,s=r,a=Kve(s);return x.jsx(Yve,{className:de(a.root,i),ref:n,ownerState:s,...o})}),fGe=Sn.oneOfType([Sn.func,Sn.object]);function Fa(t){try{return t.matches(":focus-visible")}catch{}return!1}class BS{constructor(){fi(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 BS}static use(){const e=wg(BS.create).current,[n,r]=E.useState(!1);return e.shouldMount=n,e.setShouldMount=r,E.useEffect(e.mountEffect,[n]),e}mount(){return this.mounted||(this.mounted=Qve(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...e)})}stop(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...e)})}pulsate(...e){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...e)})}}function Xve(){return BS.use()}function Qve(){let t,e;const n=new Promise((r,i)=>{t=r,e=i});return n.resolve=t,n.reject=e,n}function Jve(t){const{className:e,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:l,timeout:c}=t,[u,d]=E.useState(!1),f=de(e,n.ripple,n.rippleVisible,r&&n.ripplePulsate),h={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},p=de(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&d(!0),E.useEffect(()=>{if(!a&&l!=null){const m=setTimeout(l,c);return()=>{clearTimeout(m)}}},[l,a,c]),x.jsx("span",{className:f,style:h,children:x.jsx("span",{className:p})})}const Xo=Le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),TR=550,Zve=80,ebe=Ja` 4346 0% { 4347 transform: scale(0); 4348 opacity: 0.1; 4349 } 4350 4351 100% { 4352 transform: scale(1); 4353 opacity: 0.3; 4354 } 4355`,tbe=Ja` 4356 0% { 4357 opacity: 1; 4358 } 4359 4360 100% { 4361 opacity: 0; 4362 } 4363`,nbe=Ja` 4364 0% { 4365 transform: scale(1); 4366 } 4367 4368 50% { 4369 transform: scale(0.92); 4370 } 4371 4372 100% { 4373 transform: scale(1); 4374 } 4375`,rbe=W("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),ibe=W(Jve,{name:"MuiTouchRipple",slot:"Ripple"})` 4376 opacity: 0; 4377 position: absolute; 4378 4379 &.${Xo.rippleVisible} { 4380 opacity: 0.3; 4381 transform: scale(1); 4382 animation-name: ${ebe}; 4383 animation-duration: ${TR}ms; 4384 animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 4385 } 4386 4387 &.${Xo.ripplePulsate} { 4388 animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; 4389 } 4390 4391 & .${Xo.child} { 4392 opacity: 1; 4393 display: block; 4394 width: 100%; 4395 height: 100%; 4396 border-radius: 50%; 4397 background-color: currentColor; 4398 } 4399 4400 & .${Xo.childLeaving} { 4401 opacity: 0; 4402 animation-name: ${tbe}; 4403 animation-duration: ${TR}ms; 4404 animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 4405 } 4406 4407 & .${Xo.childPulsate} { 4408 position: absolute; 4409 /* @noflip */ 4410 left: 0px; 4411 top: 0; 4412 animation-name: ${nbe}; 4413 animation-duration: 2500ms; 4414 animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; 4415 animation-iteration-count: infinite; 4416 animation-delay: 200ms; 4417 } 4418`,obe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s,...a}=r,[l,c]=E.useState([]),u=E.useRef(0),d=E.useRef(null);E.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const f=E.useRef(!1),h=Ol(),p=E.useRef(null),m=E.useRef(null),g=E.useCallback(S=>{const{pulsate:I,rippleX:O,rippleY:T,rippleSize:A,cb:R}=S;c(k=>[...k,x.jsx(ibe,{classes:{ripple:de(o.ripple,Xo.ripple),rippleVisible:de(o.rippleVisible,Xo.rippleVisible),ripplePulsate:de(o.ripplePulsate,Xo.ripplePulsate),child:de(o.child,Xo.child),childLeaving:de(o.childLeaving,Xo.childLeaving),childPulsate:de(o.childPulsate,Xo.childPulsate)},timeout:TR,pulsate:I,rippleX:O,rippleY:T,rippleSize:A},u.current)]),u.current+=1,d.current=R},[o]),y=E.useCallback((S={},I={},O=()=>{})=>{const{pulsate:T=!1,center:A=i||I.pulsate,fakeElement:R=!1}=I;if((S==null?void 0:S.type)==="mousedown"&&f.current){f.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(f.current=!0);const k=R?null:m.current,P=k?k.getBoundingClientRect():{width:0,height:0,left:0,top:0};let C,_,M;if(A||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)C=Math.round(P.width/2),_=Math.round(P.height/2);else{const{clientX:V,clientY:N}=S.touches&&S.touches.length>0?S.touches[0]:S;C=Math.round(V-P.left),_=Math.round(N-P.top)}if(A)M=Math.sqrt((2*P.width**2+P.height**2)/3),M%2===0&&(M+=1);else{const V=Math.max(Math.abs((k?k.clientWidth:0)-C),C)*2+2,N=Math.max(Math.abs((k?k.clientHeight:0)-_),_)*2+2;M=Math.sqrt(V**2+N**2)}S!=null&&S.touches?p.current===null&&(p.current=()=>{g({pulsate:T,rippleX:C,rippleY:_,rippleSize:M,cb:O})},h.start(Zve,()=>{p.current&&(p.current(),p.current=null)})):g({pulsate:T,rippleX:C,rippleY:_,rippleSize:M,cb:O})},[i,g,h]),b=E.useCallback(()=>{y({},{pulsate:!0})},[y]),v=E.useCallback((S,I)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&p.current){p.current(),p.current=null,h.start(0,()=>{v(S,I)});return}p.current=null,c(O=>O.length>0?O.slice(1):O),d.current=I},[h]);return E.useImperativeHandle(n,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),x.jsx(rbe,{className:de(Xo.root,o.root,s),ref:m,...a,children:x.jsx(vP,{component:null,exit:!0,children:l})})});function sbe(t){return Pe("MuiButtonBase",t)}const abe=Le("MuiButtonBase",["root","disabled","focusVisible"]),lbe=t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:r,classes:i}=t,s=Oe({root:["root",e&&"disabled",n&&"focusVisible"]},sbe,i);return n&&r&&(s.root+=` ${r}`),s},cbe=W("button",{name:"MuiButtonBase",slot:"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"},[`&.${abe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),so=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:d=!1,focusRipple:f=!1,focusVisibleClassName:h,LinkComponent:p="a",onBlur:m,onClick:g,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:S,onKeyDown:I,onKeyUp:O,onMouseDown:T,onMouseLeave:A,onMouseUp:R,onTouchEnd:k,onTouchMove:P,onTouchStart:C,tabIndex:_=0,TouchRippleProps:M,touchRippleRef:V,type:N,...z}=r,L=E.useRef(null),B=Xve(),j=fn(B.ref,V),[H,q]=E.useState(!1);c&&H&&q(!1),E.useImperativeHandle(i,()=>({focusVisible:()=>{q(!0),L.current.focus()}}),[]);const Y=B.shouldMount&&!u&&!c;E.useEffect(()=>{H&&f&&!u&&B.pulsate()},[u,f,H,B]);const Z=dl(B,"start",T,d),G=dl(B,"stop",y,d),X=dl(B,"stop",b,d),K=dl(B,"stop",R,d),J=dl(B,"stop",we=>{H&&we.preventDefault(),A&&A(we)},d),te=dl(B,"start",C,d),ne=dl(B,"stop",k,d),ce=dl(B,"stop",P,d),ie=dl(B,"stop",we=>{Fa(we.target)||q(!1),m&&m(we)},!1),oe=jt(we=>{L.current||(L.current=we.currentTarget),Fa(we.target)&&(q(!0),S&&S(we)),v&&v(we)}),ue=()=>{const we=L.current;return l&&l!=="button"&&!(we.tagName==="A"&&we.href)},pe=jt(we=>{f&&!we.repeat&&H&&we.key===" "&&B.stop(we,()=>{B.start(we)}),we.target===we.currentTarget&&ue()&&we.key===" "&&we.preventDefault(),I&&I(we),we.target===we.currentTarget&&ue()&&we.key==="Enter"&&!c&&(we.preventDefault(),g&&g(we))}),ve=jt(we=>{f&&we.key===" "&&H&&!we.defaultPrevented&&B.stop(we,()=>{B.pulsate(we)}),O&&O(we),g&&we.target===we.currentTarget&&ue()&&we.key===" "&&!we.defaultPrevented&&g(we)});let se=l;se==="button"&&(z.href||z.to)&&(se=p);const ae={};if(se==="button"){const we=!!z.formAction;ae.type=N===void 0&&!we?"button":N,ae.disabled=c}else!z.href&&!z.to&&(ae.role="button"),c&&(ae["aria-disabled"]=c);const ke=fn(n,L),Ee={...r,centerRipple:o,component:l,disabled:c,disableRipple:u,disableTouchRipple:d,focusRipple:f,tabIndex:_,focusVisible:H},_e=lbe(Ee);return x.jsxs(cbe,{as:se,className:de(_e.root,a),ownerState:Ee,onBlur:ie,onClick:g,onContextMenu:G,onFocus:oe,onKeyDown:pe,onKeyUp:ve,onMouseDown:Z,onMouseLeave:J,onMouseUp:K,onDragLeave:X,onTouchEnd:ne,onTouchMove:ce,onTouchStart:te,ref:ke,tabIndex:c?-1:_,type:N,...ae,...z,children:[s,Y?x.jsx(obe,{ref:j,center:o,...M}):null]})});function dl(t,e,n,r=!1){return jt(i=>(n&&n(i),r||t[e](i),!0))}function ube(t){return Pe("MuiAccordionSummary",t)}const mp=Le("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),dbe=t=>{const{classes:e,expanded:n,disabled:r,disableGutters:i}=t;return Oe({root:["root",n&&"expanded",r&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]},ube,e)},fbe=W(so,{name:"MuiAccordionSummary",slot:"Root"})(Te(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],e),[`&.${mp.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${mp.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${mp.disabled})`]:{cursor:"pointer"},variants:[{props:n=>!n.disableGutters,style:{[`&.${mp.expanded}`]:{minHeight:64}}}]}})),hbe=W("span",{name:"MuiAccordionSummary",slot:"Content"})(Te(({theme:t})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:e=>!e.disableGutters,style:{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),[`&.${mp.expanded}`]:{margin:"20px 0"}}}]}))),pbe=W("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper"})(Te(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),[`&.${mp.expanded}`]:{transform:"rotate(180deg)"}}))),hGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:s,focusVisibleClassName:a,onClick:l,slots:c,slotProps:u,...d}=r,{disabled:f=!1,disableGutters:h,expanded:p,toggle:m}=E.useContext(lY),g=k=>{m&&m(k),l&&l(k)},y={...r,expanded:p,disabled:f,disableGutters:h},b=dbe(y),v={slots:c,slotProps:u},[S,I]=Ie("root",{ref:n,shouldForwardComponentProp:!0,className:de(b.root,o),elementType:fbe,externalForwardedProps:{...v,...d},ownerState:y,additionalProps:{focusRipple:!1,disableRipple:!0,disabled:f,"aria-expanded":p,focusVisibleClassName:de(b.focusVisible,a)},getSlotProps:k=>({...k,onClick:P=>{var C;(C=k.onClick)==null||C.call(k,P),g(P)}})}),[O,T]=Ie("content",{className:b.content,elementType:hbe,externalForwardedProps:v,ownerState:y}),[A,R]=Ie("expandIconWrapper",{className:b.expandIconWrapper,elementType:pbe,externalForwardedProps:v,ownerState:y});return x.jsxs(S,{...I,children:[x.jsx(O,{...T,children:i}),s&&x.jsx(A,{...R,children:s})]})});function mbe(t){return typeof t.main=="string"}function gbe(t,e=[]){if(!mbe(t))return!1;for(const n of e)if(!t.hasOwnProperty(n)||typeof t[n]!="string")return!1;return!0}function Bt(t=[]){return([,e])=>e&&gbe(e,t)}function ybe(t){return Pe("MuiAlert",t)}const wL=Le("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function vbe(t){return Pe("MuiCircularProgress",t)}Le("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ms=44,CR=Ja` 4419 0% { 4420 transform: rotate(0deg); 4421 } 4422 4423 100% { 4424 transform: rotate(360deg); 4425 } 4426`,_R=Ja` 4427 0% { 4428 stroke-dasharray: 1px, 200px; 4429 stroke-dashoffset: 0; 4430 } 4431 4432 50% { 4433 stroke-dasharray: 100px, 200px; 4434 stroke-dashoffset: -15px; 4435 } 4436 4437 100% { 4438 stroke-dasharray: 1px, 200px; 4439 stroke-dashoffset: -126px; 4440 } 4441`,bbe=typeof CR!="string"?od` 4442 animation: ${CR} 1.4s linear infinite; 4443 `:null,wbe=typeof _R!="string"?od` 4444 animation: ${_R} 1.4s ease-in-out infinite; 4445 `:null,Sbe=t=>{const{classes:e,variant:n,color:r,disableShrink:i}=t,o={root:["root",n,`color${Q(r)}
4445`],svg:["svg"],track:["track"],circle:["circle",`circle${Q(n)}`,i&&"circleDisableShrink"]};return Oe(o,vbe,e)},xbe=W("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`color${Q(n.color)}`]]}})(Te(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:bbe||{animation:`${CR} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}))]}))),Ebe=W("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Tbe=W("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e[`circle${Q(n.variant)}`],n.disableShrink&&e.circleDisableShrink]}})(Te(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink,style:wbe||{animation:`${_R} 1.4s ease-in-out infinite`}}]}))),Cbe=W("circle",{name:"MuiCircularProgress",slot:"Track"})(Te(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),cY=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,enableTrackSlot:a=!1,size:l=40,style:c,thickness:u=3.6,value:d=0,variant:f="indeterminate",...h}=r,p={...r,color:o,disableShrink:s,size:l,thickness:u,value:d,variant:f,enableTrackSlot:a},m=Sbe(p),g={},y={},b={};if(f==="determinate"){const v=2*Math.PI*((Ms-u)/2);g.strokeDasharray=v.toFixed(3),b["aria-valuenow"]=Math.round(d),g.strokeDashoffset=`${((100-d)/100*v).toFixed(3)}px`,y.transform="rotate(-90deg)"}return x.jsx(xbe,{className:de(m.root,i),style:{width:l,height:l,...y,...c},ownerState:p,ref:n,role:"progressbar",...b,...h,children:x.jsxs(Ebe,{className:m.svg,ownerState:p,viewBox:`${Ms/2} ${Ms/2} ${Ms} ${Ms}`,children:[a?x.jsx(Cbe,{className:m.track,ownerState:p,cx:Ms,cy:Ms,r:(Ms-u)/2,fill:"none",strokeWidth:u,"aria-hidden":"true"}):null,x.jsx(Tbe,{className:m.circle,style:g,ownerState:p,cx:Ms,cy:Ms,r:(Ms-u)/2,fill:"none",strokeWidth:u})]})})});function _be(t){return Pe("MuiIconButton",t)}const SL=Le("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Abe=t=>{const{classes:e,disabled:n,color:r,edge:i,size:o,loading:s}=t,a={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Q(r)}`,i&&`edge${Q(i)}`,`size${Q(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Oe(a,_be,e)},Ibe=W(so,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.loading&&e.loading,n.color!=="default"&&e[`color${Q(n.color)}`],n.edge&&e[`edge${Q(n.edge)}`],e[`size${Q(n.size)}`]]}})(Te(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Te(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}}
vendor: 23,955 bytes, line 4445
4445)),...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${SL.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${SL.loading}`]:{color:"transparent"}}))),Rbe=W("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Xd=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:l=!1,disableFocusRipple:c=!1,size:u="medium",id:d,loading:f=null,loadingIndicator:h,...p}=r,m=Bo(d),g=h??x.jsx(cY,{"aria-labelledby":m,color:"inherit",size:16}),y={...r,edge:i,color:a,disabled:l,disableFocusRipple:c,loading:f,loadingIndicator:g,size:u},b=Abe(y);return x.jsxs(Ibe,{id:f?m:d,className:de(b.root,s),centerRipple:!0,focusRipple:!c,disabled:l||f,ref:n,...p,ownerState:y,children:[typeof f=="boolean"&&x.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:x.jsx(Rbe,{className:b.loadingIndicator,ownerState:y,children:f&&g})}),o]})}),Mbe=F(x.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),kbe=F(x.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),Pbe=F(x.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Obe=F(x.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),uY=F(x.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),Nbe=t=>{const{variant:e,color:n,severity:r,classes:i}=t,o={root:["root",`color${Q(n||r)}`,`${e}${Q(n||r)}`,`${e}`],icon:["icon"],message:["message"],action:["action"]};return Oe(o,ybe,i)},Dbe=W(na,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Q(n.color||n.severity)}`]]}})(Te(({theme:t})=>{const e=t.palette.mode==="light"?t.darken:t.lighten,n=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${r}StandardBg`]:n(t.palette[r].light,.9),[`& .${wL.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Bt(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${r}Color`]:e(t.palette[r].light,.6),border:`1px solid ${(t.vars||t).palette[r].light}`,[`& .${wL.icon}`]:t.vars?{color:t.vars.palette.Alert[`${r}IconColor`]}:{color:t.palette[r].main}}})),...Object.entries(t.palette).filter(Bt(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${r}FilledColor`],backgroundColor:t.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[r].dark:t.palette[r].main,color:t.palette.getContrastText(t.palette[r].main)}}}))]}})),Lbe=W("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),zbe=W("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),Vbe=W("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),xL={success:x.jsx(Mbe,{fontSize:"inherit"}),warning:x.jsx(kbe,{fontSize:"inherit"}),error:x.jsx(Pbe,{fontSize:"inherit"}),info:x.jsx(Obe,{fontSize:"inherit"})},pGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAlert"}),{action:i,children:o,className:s,closeText:a="Close",color:l,components:c={},componentsProps:u={},icon:d,iconMapping:f=xL,onClose:h,role:p="alert",severity:m="success",slotProps:g={},slots:y={},variant:b="standard",...v}=r,S={...r,color:l,severity:m,variant:b,colorSeverity:l||m},I=Nbe(S),O={slots:{closeButton:c.CloseButton,closeIcon:c.CloseIcon,...y},slotProps:{...u,...g}},[T,A]=Ie("root",{ref:n,shouldForwardComponentProp:!0,className:de(I.root,s),elementType:Dbe,externalForwardedProps:{...O,...v},ownerState:S,additionalProps:{role:p,elevation:0}}),[R,k]=Ie("icon",{className:I.icon,elementType:Lbe,externalForwardedProps:O,ownerState:S}),[P,C]=Ie("message",{className:I.message,elementType:zbe,externalForwardedProps:O,ownerState:S}),[_,M]=Ie("action",{className:I.action,elementType:Vbe,externalForwardedProps:O,ownerState:S}),[V,N]=Ie("closeButton",{elementType:Xd,externalForwardedProps:O,ownerState:S}),[z,L]=Ie("closeIcon",{elementType:uY,externalForwardedProps:O,ownerState:S});return x.jsxs(T,{...A,children:[d!==!1?x.jsx(R,{...k,children:d||f[m]||xL[m]}):null,x.jsx(P,{...C,children:o}),i!=null?x.jsx(_,{...M,children:i}):null,i==null&&h?x.jsx(_,{...M,children:x.jsx(V,{size:"small","aria-label":a,title:a,color:"inherit",onClick:h,...N,children:x.jsx(z,{fontSize:"small",...L})})}):null]})});function Bbe(t){return Pe("MuiTypography",t)}const $S=Le("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),$be={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Fbe=vve(),jbe=t=>{const{align:e,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=t,a={root:["root",o,t.align!=="inherit"&&`align${Q(e)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Oe(a,Bbe,s)},Hbe=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],n.align!=="inherit"&&e[`align${Q(n.align)}`],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(Te(({theme:t})=>{var e;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(t.palette).filter(Bt()).map(([n])=>({props:{color:n},style:{color:(t.vars||t).palette[n].main}})),...Object.entries(((e=t.palette)==null?void 0:e.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Q(n)}`},style:{color:(t.vars||t).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}}]}})),EL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ri=E.forwardRef(function(e,n){const{color:r,...i}=Ne({props:e,name:"MuiTypography"}),o=!$be[r],s=Fbe({...i,...o&&{color:r}}),{align:a="inherit",className:l,component:c,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:h="body1",variantMapping:p=EL,...m}=s,g={...s,align:a,color:r,className:l,component:c,gutterBottom:u,noWrap:d,paragraph:f,variant:h,variantMapping:p},y=c||(f?"p":p[h]||EL[h])||"span",b=jbe(g);return x.jsx(Hbe,{as:y,ref:n,className:de(b.root,l),...m,ownerState:g,style:{...a!=="inherit"&&{"--Typography-textAlign":a},...m.style}})});function Ube(t){return Pe("MuiAlertTitle",t)}Le("MuiAlertTitle",["root"]);const qbe=t=>{const{classes:e}=t;return Oe({root:["root"]},Ube,e)},Wbe=W(Ri,{name:"MuiAlertTitle",slot:"Root"})(Te(({theme:t})=>({fontWeight:t.typography.fontWeightMedium,marginTop:-2}))),mGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAlertTitle"}),{className:i,...o}=r,s=r,a=qbe(s);return x.jsx(Wbe,{gutterBottom:!0,component:"div",ownerState:s,ref:n,className:de(a.root,i),...o})});function Gbe(t){return Pe("MuiAppBar",t)}Le("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const Kbe=t=>{const{color:e,position:n,classes:r}=t,i={root:["root",`color${Q(e)}`,`position${Q(n)}`]};return Oe(i,Gbe,r)},TL=(t,e)=>t?`${t.replace(")","")}, ${e})`:e,Ybe=W(na,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Q(n.position)}`],e[`color${Q(n.color)}`]]}})(Te(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Bt(["contrastText"])).map(([e])=>({props:{color:e},style:{"--AppBar-background":(t.vars??t).palette[e].main,"--AppBar-color":(t.vars??t).palette[e].contrastText}})),{props:e=>e.enableColorOnDark===!0&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:e=>e.enableColorOnDark===!1&&!["inherit","transparent"].includes(e.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?TL(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?TL(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),gGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed",...l}=r,c={...r,color:o,position:a,enableColorOnDark:s},u=Kbe(c);return x.jsx(Ybe,{square:!0,component:"header",ownerState:c,elevation:4,className:de(u.root,i,a==="fixed"&&"mui-fixed"),ref:n,...l})});function wP(t){const e=E.useRef({});return E.useEffect(()=>{e.current=t}),e.current}function CL({array1:t,array2:e,parser:n=r=>r}){return t&&e&&t.length===e.length&&t.every((r,i)=>n(r)===n(e[i]))}function _L(t){return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function Xbe(t={}){const{ignoreAccents:e=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:o,trim:s=!1}=t;return(a,{inputValue:l,getOptionLabel:c})=>{let u=s?l.trim():l;n&&(u=u.toLowerCase()),e&&(u=_L(u));const d=u?a.filter(f=>{let h=(o||c)(f);return n&&(h=h.toLowerCase()),e&&(h=_L(h)),i==="start"?h.startsWith(u):h.includes(u)}):a;return typeof r=="number"?d.slice(0,r):d}}const Qbe=Xbe(),AL=5,Jbe=t=>{var e;return t.current!==null&&((e=t.current.parentElement)==null?void 0:e.contains(document.activeElement))},Zbe=[];function IL(t,e,n,r){if(e||t==null||r)return"";const i=n(t);return typeof i=="string"?i:""}function e2e(t){const{unstable_isActiveElementInListbox:e=Jbe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:a=!t.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:u=t.multiple?Zbe:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:h,disabledItemsFocusable:p=!1,disableListWrap:m=!1,filterOptions:g=Qbe,filterSelectedOptions:y=!1,freeSolo:b=!1,getOptionDisabled:v,getOptionKey:S,getOptionLabel:I=ge=>ge.label??ge,groupBy:O,handleHomeEndKeys:T=!t.freeSolo,id:A,includeInputInList:R=!1,inputValue:k,isOptionEqualToValue:P=(ge,me)=>ge===me,multiple:C=!1,onChange:_,onClose:M,onHighlightChange:V,onInputChange:N,onOpen:z,open:L,openOnFocus:B=!1,options:j,readOnly:H=!1,renderValue:q,selectOnFocus:Y=!t.freeSolo,value:Z}=t,G=Bo(A);let X=I;X=ge=>{const me=I(ge);return typeof me!="string"?String(me):me};const K=E.useRef(!1),J=E.useRef(!0),te=E.useRef(null),ne=E.useRef(null),[ce,ie]=E.useState(null),[oe,ue]=E.useState(-1),pe=i?0:-1,ve=E.useRef(pe),se=E.useRef(IL(u??Z,C,X)).current,[ae,ke]=Ws({controlled:Z,default:u,name:c}),[Ee,_e]=Ws({controlled:k,default:se,name:c,state:"inputValue"}),[we,et]=E.useState(!1),rt=E.useCallback((ge,me,qe)=>{if(!(C?ae.length<me.length:me!==null)&&!a)return;const dt=IL(me,C,X,q);Ee!==dt&&(_e(dt),N&&N(ge,dt,qe))},[X,Ee,C,N,_e,a,ae,q]),[he,be]=Ws({controlled:L,default:!1,name:c,state:"open"}),[De,Be]=E.useState(!0),Xe=!C&&ae!=null&&Ee===X(ae),Me=he&&!H,xe=Me?g(j.filter(ge=>!(y&&(C?ae:[ae]).some(me=>me!==null&&P(ge,me)))),{inputValue:Xe&&De?"":Ee,getOptionLabel:X}):[],Ge=wP({filteredOptions:xe,value:ae,inputValue:Ee});E.useEffect(()=>{const ge=ae!==Ge.value;we&&!ge||b&&!ge||rt(null,ae,"reset")},[ae,rt,we,Ge.value,b]);const Ke=he&&xe.length>0&&!H,nt=jt(ge=>{if(ge===-1)te.current.focus();else{const me=q?"data-item-index":"data-tag-index";ce.querySelector(`[${me}="${ge}"]`).focus()}});E.useEffect(()=>{C&&oe>ae.length-1&&(ue(-1),nt(-1))},[ae,C,oe,nt]);function en(ge,me){if(!ne.current||ge<0||ge>=xe.length)return-1;let qe=ge;for(;;){const at=ne.current.querySelector(`[data-option-index="${qe}"]`),dt=p?!1:!at||at.disabled||at.getAttribute("aria-disabled")==="true";if(at&&at.hasAttribute("tabindex")&&!dt)return qe;if(me==="next"?qe=(qe+1)%xe.length:qe=(qe-1+xe.length)%xe.length,qe===ge)return-1}}const Wt=jt(({event:ge,index:me,reason:qe})=>{if(ve.current=me,me===-1?te.current.removeAttribute("aria-activedescendant"):te.current.setAttribute("aria-activedescendant",`${G}-option-${me}`),V&&["mouse","keyboard","touch"].includes(qe)&&V(ge,me===-1?null:xe[me],qe),!ne.current)return;const at=ne.current.querySelector(`[role="option"].${n}-focused`);at&&(at.classList.remove(`${n}-focused`),at.classList.remove(`${n}-focusVisible`));let dt=ne.current;if(ne.current.getAttribute("role")!=="listbox"&&(dt=ne.current.parentElement.querySelector('[role="listbox"]')),!dt)return;if(me===-1){dt.scrollTop=0;return}const nn=ne.current.querySelector(`[data-option-index="${me}"]`);if(nn&&(nn.classList.add(`${n}-focused`),qe==="keyboard"&&nn.classList.add(`${n}-focusVisible`),dt.scrollHeight>dt.clientHeight&&qe!=="mouse"&&qe!=="touch")){const bn=nn,Ei=dt.clientHeight+dt.scrollTop,il=bn.offsetTop+bn.offsetHeight;il>Ei?dt.scrollTop=il-dt.clientHeight:bn.offsetTop-bn.offsetHeight*(O?1.3:0)<dt.scrollTop&&(dt.scrollTop=bn.offsetTop-bn.offsetHeight*(O?1.3:0))}}),Jt=jt(({event:ge,diff:me,direction:qe="next",reason:at})=>{if(!Me)return;const nn=en((()=>{const bn=xe.length-1;if(me==="reset")return pe;if(me==="start")return 0;if(me==="end")return bn;const Ei=ve.current+me;return Ei<0?Ei===-1&&R?-1:m&&ve.current!==-1||Math.abs(me)>1?0:bn:Ei>bn?Ei===bn+1&&R?-1:m||Math.abs(me)>1?bn:0:Ei})(),qe);if(Wt({index:nn,reason:at,event:ge}),r&&me!=="reset")if(nn===-1)te.current.value=Ee;else{const bn=X(xe[nn]);te.current.value=bn,bn.toLowerCase().indexOf(Ee.toLowerCase())===0&&Ee.length>0&&te.current.setSelectionRange(Ee.length,bn.length)}}),pn=!CL({array1:Ge.filteredOptions,array2:xe,parser:X}),Cn=()=>{const ge=(me,qe)=>{const at=me?X(me):"",dt=qe?X(qe):"";return at===dt};if(ve.current!==-1&&!CL({array1:Ge.filteredOptions,array2:xe,parser:X})&&Ge.inputValue===Ee&&(C?ae.length===Ge.value.length&&Ge.value.every((me,qe)=>X(ae[qe])===X(me)):ge(Ge.value,ae))){const me=Ge.filteredOptions[ve.current];if(me)return xe.findIndex(qe=>X(qe)===X(me))}return-1},tn=E.useCallback(()=>{if(!Me)return;const ge=Cn();if(ge!==-1){ve.current=ge;return}const me=C?ae[0]:ae;if(xe.length===0||me==null){Jt({diff:"reset"});return}if(ne.current){if(me!=null){const qe=xe[ve.current];if(C&&qe&&ae.findIndex(dt=>P(qe,dt))!==-1)return;const at=xe.findIndex(dt=>P(dt,me));at===-1?Jt({diff:"reset"}):Wt({index:at});return}if(ve.current>=xe.length-1){Wt({index:xe.length-1});return}Wt({index:ve.current})}},[xe.length,C?!1:ae,Jt,Wt,Me,Ee,C]),Ue=jt(ge=>{wR(ne,ge),ge&&tn()});E.useEffect(()=>{(pn||Me&&!f)&&tn()},[tn,pn,Me,f]);const Fe=ge=>{he||(be(!0),Be(!0),z&&z(ge))},ct=(ge,me)=>{he&&(be(!1),M&&M(ge,me))},Dt=(ge,me,qe,at)=>{if(C){if(ae.length===me.length&&ae.every((dt,nn)=>dt===me[nn]))return}else if(ae===me)return;_&&_(ge,me,qe,at),ke(me)},Gt=E.useRef(!1),mn=(ge,me,qe="selectOption",at="options")=>{let dt=qe,nn=me;if(C){nn=Array.isArray(ae)?ae.slice():[];const bn=nn.findIndex(Ei=>P(me,Ei));bn===-1?nn.push(me):at!=="freeSolo"&&(nn.splice(bn,1),dt="removeOption")}rt(ge,nn,dt),Dt(ge,nn,dt,{option:me}),!f&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&ct(ge,dt),(s===!0||s==="touch"&&Gt.current||s==="mouse"&&!Gt.current)&&te.current.blur()};function st(ge,me){if(ge===-1)return-1;let qe=ge;for(;;){if(me==="next"&&qe===ae.length||me==="previous"&&qe===-1)return-1;const at=q?"data-item-index":"data-tag-index",dt=ce.querySelector(`[${at}="${qe}"]`);if(!dt||!dt.hasAttribute("tabindex")||dt.disabled||dt.getAttribute("aria-disabled")==="true")qe+=me==="next"?1:-1;else return qe}}const Ct=(ge,me)=>{if(!C)return;Ee===""&&ct(ge,"toggleInput");let qe=oe;oe===-1&&me==="previous"?(qe=ae.length-1,b&&Ee!==""&&(_e(""),N&&N(ge,"","reset"))):(qe+=me==="next"?1:-1,qe<0&&(qe=0),qe===ae.length&&(qe=-1)),qe=st(qe,me),ue(qe),nt(qe)},$e=ge=>{K.current=!0,_e(""),N&&N(ge,"","clear"),Dt(ge,C?[]:null,"clear")},Je=ge=>me=>{if(ge.onKeyDown&&ge.onKeyDown(me),!me.defaultMuiPrevented&&(oe!==-1&&!["ArrowLeft","ArrowRight"].includes(me.key)&&(ue(-1),nt(-1)),me.which!==229))switch(me.key){case"Home":Me&&T&&(me.preventDefault(),Jt({diff:"start",direction:"next",reason:"keyboard",event:me}));break;case"End":Me&&T&&(me.preventDefault(),Jt({diff:"end",direction:"previous",reason:"keyboard",event:me}));break;case"PageUp":me.preventDefault(),Jt({diff:-AL,direction:"previous",reason:"keyboard",event:me}),Fe(me);break;case"PageDown":me.preventDefault(),Jt({diff:AL,direction:"next",reason:"keyboard",event:me}),Fe(me);break;case"ArrowDown":me.preventDefault(),Jt({diff:1,direction:"next",reason:"keyboard",event:me}),Fe(me);break;case"ArrowUp":me.preventDefault(),Jt({diff:-1,direction:"previous",reason:"keyboard",event:me}),Fe(me);break;case"ArrowLeft":{const qe=te.current;if(!(qe&&qe.selectionStart===0&&qe.selectionEnd===0))return;!C&&q&&ae!=null?(b&&Ee!==""&&(_e(""),N&&N(me,"","reset")),ue(0),nt(0)):Ct(me,"previous");break}case"ArrowRight":!C&&q?(ue(-1),nt(-1)):Ct(me,"next");break;case"Enter":if(ve.current!==-1&&Me){const qe=xe[ve.current],at=v?v(qe):!1;if(me.preventDefault(),at)return;mn(me,qe,"selectOption"),r&&te.current.setSelectionRange(te.current.value.length,te.current.value.length)}else b&&Ee!==""&&Xe===!1&&(C&&me.preventDefault(),mn(me,Ee,"createOption","freeSolo"));break;case"Escape":Me?(me.preventDefault(),me.stopPropagation(),ct(me,"escape")):l&&(Ee!==""||C&&ae.length>0||q)&&(me.preventDefault(),me.stopPropagation(),$e(me));break;case"Backspace":if(C&&!H&&Ee===""&&ae.length>0){const qe=oe===-1?ae.length-1:oe,at=ae.slice();at.splice(qe,1),Dt(me,at,"removeOption",{option:ae[qe]})}!C&&q&&!H&&Ee===""&&Dt(me,null,"removeOption",{option:ae});break;case"Delete":if(C&&!H&&Ee===""&&ae.length>0&&oe!==-1){const qe=oe,at=ae.slice();at.splice(qe,1),Dt(me,at,"removeOption",{option:ae[qe]})}!C&&q&&!H&&Ee===""&&Dt(me,null,"removeOption",{option:ae});break}},ht=ge=>{et(!0),oe!==-1&&(ue(-1),nt(-1)),B&&!K.current&&Fe(ge)},bt=ge=>{if(e(ne)){te.current.focus();return}et(!1),J.current=!0,K.current=!1,o&&ve.current!==-1&&Me?mn(ge,xe[ve.current],"blur"):o&&b&&Ee!==""?mn(ge,Ee,"blur","freeSolo"):a&&rt(ge,ae,"blur"),ct(ge,"blur")},qt=ge=>{const me=ge.target.value;Ee!==me&&(_e(me),Be(!1),N&&N(ge,me,"input")),me===""?!d&&!C&&!q&&Dt(ge,null,"clear"):Fe(ge)},vr=ge=>{const me=Number(ge.currentTarget.getAttribute("data-option-index"));ve.current!==me&&Wt({event:ge,index:me,reason:"mouse"})},kr=ge=>{Wt({event:ge,index:Number(ge.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Gt.current=!0},co=ge=>{const me=Number(ge.currentTarget.getAttribute("data-option-index"));mn(ge,xe[me],"selectOption"),Gt.current=!1},Jr=ge=>me=>{const qe=ae.slice();qe.splice(ge,1),Dt(me,qe,"removeOption",{option:ae[ge]})},Vi=ge=>{Dt(ge,null,"removeOption",{option:ae})},Bn=ge=>{he?ct(ge,"toggleInput"):Fe(ge)},$n=ge=>{ge.currentTarget.contains(ge.target)&&ge.target.getAttribute("id")!==G&&ge.preventDefault()},xi=ge=>{ge.currentTarget.contains(ge.target)&&(te.current.focus(),Y&&J.current&&te.current.selectionEnd-te.current.selectionStart===0&&te.current.select(),J.current=!1)},nl=ge=>{!h&&(Ee===""||!he)&&Bn(ge)};let sa=b&&Ee.length>0;sa=sa||(C?ae.length>0:ae!==null);let rl=xe;return O&&(rl=xe.reduce((ge,me,qe)=>{const at=O(me);return ge.length>0&&ge[ge.length-1].group===at?ge[ge.length-1].options.push(me):ge.push({key:qe,index:qe,group:at,options:[me]}),ge},[])),h&&we&&bt(),{getRootProps:(ge={})=>({...ge,onKeyDown:Je(ge),onMouseDown:$n,onClick:xi}),getInputLabelProps:()=>({id:`${G}-label`,htmlFor:G}),getInputProps:()=>({id:G,value:Ee,onBlur:bt,onFocus:ht,onChange:qt,onMouseDown:nl,"aria-activedescendant":Me?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${G}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:te,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:$e}),getItemProps:({index:ge=0}={})=>({...C&&{key:ge},...q?{"data-item-index":ge}:{"data-tag-index":ge},tabIndex:-1,...!H&&{onDelete:C?Jr(ge):Vi}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Bn}),getTagProps:({index:ge})=>({key:ge,"data-tag-index":ge,tabIndex:-1,...!H&&{onDelete:Jr(ge)}}),getListboxProps:()=>({role:"listbox",id:`${G}-listbox`,"aria-labelledby":`${G}-label`,"aria-multiselectable":C||void 0,ref:Ue,onMouseDown:ge=>{ge.preventDefault()}}),getOptionProps:({index:ge,option:me})=>{const qe=(C?ae:[ae]).some(dt=>dt!=null&&P(me,dt)),at=v?v(me):!1;return{key:(S==null?void 0:S(me))??X(me),tabIndex:-1,role:"option",id:`${G}-option-${ge}`,onMouseMove:vr,onClick:co,onTouchStart:kr,"data-option-index":ge,"aria-disabled":at,"aria-selected":qe}},id:G,inputValue:Ee,value:ae,dirty:sa,expanded:Me&&ce,popupOpen:Me,focused:we||oe!==-1,anchorEl:ce,setAnchorEl:ie,focusedItem:oe,focusedTag:oe,groupedOptions:rl}}var Zi="top",Ss="bottom",xs="right",eo="left",SP="auto",jv=[Zi,Ss,xs,eo],Im
vendor: 19,506 bytes, line 4445
4445="start",T0="end",t2e="clippingParents",dY="viewport",Yg="popper",n2e="reference",RL=jv.reduce(function(t,e){return t.concat([e+"-"+Im,e+"-"+T0])},[]),fY=[].concat(jv,[SP]).reduce(function(t,e){return t.concat([e,e+"-"+Im,e+"-"+T0])},[]),r2e="beforeRead",i2e="read",o2e="afterRead",s2e="beforeMain",a2e="main",l2e="afterMain",c2e="beforeWrite",u2e="write",d2e="afterWrite",f2e=[r2e,i2e,o2e,s2e,a2e,l2e,c2e,u2e,d2e];function ja(t){return t?(t.nodeName||"").toLowerCase():null}function $o(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Ff(t){var e=$o(t).Element;return t instanceof e||t instanceof Element}function ps(t){var e=$o(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function xP(t){if(typeof ShadowRoot>"u")return!1;var e=$o(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function h2e(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!ps(o)||!ja(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function p2e(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!ps(i)||!ja(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const m2e={name:"applyStyles",enabled:!0,phase:"write",fn:h2e,effect:p2e,requires:["computeStyles"]};function Na(t){return t.split("-")[0]}var pf=Math.max,FS=Math.min,Rm=Math.round;function AR(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function hY(){return!/^((?!chrome|android).)*safari/i.test(AR())}function Mm(t,e,n){e===void 0&&(e=!1),n===void 0&&(n=!1);var r=t.getBoundingClientRect(),i=1,o=1;e&&ps(t)&&(i=t.offsetWidth>0&&Rm(r.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Rm(r.height)/t.offsetHeight||1);var s=Ff(t)?$o(t):window,a=s.visualViewport,l=!hY()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,d=r.width/i,f=r.height/o;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function EP(t){var e=Mm(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function pY(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&xP(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ic(t){return $o(t).getComputedStyle(t)}function g2e(t){return["table","td","th"].indexOf(ja(t))>=0}function sd(t){return((Ff(t)?t.ownerDocument:t.document)||window.document).documentElement}function TT(t){return ja(t)==="html"?t:t.assignedSlot||t.parentNode||(xP(t)?t.host:null)||sd(t)}function ML(t){return!ps(t)||ic(t).position==="fixed"?null:t.offsetParent}function y2e(t){var e=/firefox/i.test(AR()),n=/Trident/i.test(AR());if(n&&ps(t)){var r=ic(t);if(r.position==="fixed")return null}var i=TT(t);for(xP(i)&&(i=i.host);ps(i)&&["html","body"].indexOf(ja(i))<0;){var o=ic(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Hv(t){for(var e=$o(t),n=ML(t);n&&g2e(n)&&ic(n).position==="static";)n=ML(n);return n&&(ja(n)==="html"||ja(n)==="body"&&ic(n).position==="static")?e:n||y2e(t)||e}function TP(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function gy(t,e,n){return pf(t,FS(e,n))}function v2e(t,e,n){var r=gy(t,e,n);return r>n?n:r}function mY(){return{top:0,right:0,bottom:0,left:0}}function gY(t){return Object.assign({},mY(),t)}function yY(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var b2e=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,gY(typeof e!="number"?e:yY(e,jv))};function w2e(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=Na(n.placement),l=TP(a),c=[eo,xs].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var d=b2e(i.padding,n),f=EP(o),h=l==="y"?Zi:eo,p=l==="y"?Ss:xs,m=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],y=Hv(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,v=m/2-g/2,S=d[h],I=b-f[u]-d[p],O=b/2-f[u]/2+v,T=gy(S,O,I),A=l;n.modifiersData[r]=(e={},e[A]=T,e.centerOffset=T-O,e)}}function S2e(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||pY(e.elements.popper,i)&&(e.elements.arrow=i))}const x2e={name:"arrow",enabled:!0,phase:"main",fn:w2e,effect:S2e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function km(t){return t.split("-")[1]}var E2e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T2e(t,e){var n=t.x,r=t.y,i=e.devicePixelRatio||1;return{x:Rm(n*i)/i||0,y:Rm(r*i)/i||0}}function kL(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,s=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,f=s.x,h=f===void 0?0:f,p=s.y,m=p===void 0?0:p,g=typeof u=="function"?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var y=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),v=eo,S=Zi,I=window;if(c){var O=Hv(n),T="clientHeight",A="clientWidth";if(O===$o(n)&&(O=sd(n),ic(O).position!=="static"&&a==="absolute"&&(T="scrollHeight",A="scrollWidth")),O=O,i===Zi||(i===eo||i===xs)&&o===T0){S=Ss;var R=d&&O===I&&I.visualViewport?I.visualViewport.height:O[T];m-=R-r.height,m*=l?1:-1}if(i===eo||(i===Zi||i===Ss)&&o===T0){v=xs;var k=d&&O===I&&I.visualViewport?I.visualViewport.width:O[A];h-=k-r.width,h*=l?1:-1}}var P=Object.assign({position:a},c&&E2e),C=u===!0?T2e({x:h,y:m},$o(n)):{x:h,y:m};if(h=C.x,m=C.y,l){var _;return Object.assign({},P,(_={},_[S]=b?"0":"",_[v]=y?"0":"",_.transform=(I.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",_))}return Object.assign({},P,(e={},e[S]=b?m+"px":"",e[v]=y?h+"px":"",e.transform="",e))}function C2e(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Na(e.placement),variation:km(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,kL(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,kL(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const _2e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:C2e,data:{}};var Wb={passive:!0};function A2e(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=$o(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",n.update,Wb)}),a&&l.addEventListener("resize",n.update,Wb),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Wb)}),a&&l.removeEventListener("resize",n.update,Wb)}}const I2e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:A2e,data:{}};var R2e={left:"right",right:"left",bottom:"top",top:"bottom"};function hw(t){return t.replace(/left|right|bottom|top/g,function(e){return R2e[e]})}var M2e={start:"end",end:"start"};function PL(t){return t.replace(/start|end/g,function(e){return M2e[e]})}function CP(t){var e=$o(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function _P(t){return Mm(sd(t)).left+CP(t).scrollLeft}function k2e(t,e){var n=$o(t),r=sd(t),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=hY();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+_P(t),y:l}}function P2e(t){var e,n=sd(t),r=CP(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=pf(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=pf(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+_P(t),l=-r.scrollTop;return ic(i||n).direction==="rtl"&&(a+=pf(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function AP(t){var e=ic(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function vY(t){return["html","body","#document"].indexOf(ja(t))>=0?t.ownerDocument.body:ps(t)&&AP(t)?t:vY(TT(t))}function yy(t,e){var n;e===void 0&&(e=[]);var r=vY(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=$o(r),s=i?[o].concat(o.visualViewport||[],AP(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(yy(TT(s)))}function IR(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function O2e(t,e){var n=Mm(t,!1,e==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function OL(t,e,n){return e===dY?IR(k2e(t,n)):Ff(e)?O2e(e,n):IR(P2e(sd(t)))}function N2e(t){var e=yy(TT(t)),n=["absolute","fixed"].indexOf(ic(t).position)>=0,r=n&&ps(t)?Hv(t):t;return Ff(r)?e.filter(function(i){return Ff(i)&&pY(i,r)&&ja(i)!=="body"}):[]}function D2e(t,e,n,r){var i=e==="clippingParents"?N2e(t):[].concat(e),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(l,c){var u=OL(t,c,r);return l.top=pf(u.top,l.top),l.right=FS(u.right,l.right),l.bottom=FS(u.bottom,l.bottom),l.left=pf(u.left,l.left),l},OL(t,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function bY(t){var e=t.reference,n=t.element,r=t.placement,i=r?Na(r):null,o=r?km(r):null,s=e.x+e.width/2-n.width/2,a=e.y+e.height/2-n.height/2,l;switch(i){case Zi:l={x:s,y:e.y-n.height};break;case Ss:l={x:s,y:e.y+e.height};break;case xs:l={x:e.x+e.width,y:a};break;case eo:l={x:e.x-n.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?TP(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Im:l[c]=l[c]-(e[u]/2-n[u]/2);break;case T0:l[c]=l[c]+(e[u]/2-n[u]/2);break}}return l}function C0(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.strategy,s=o===void 0?t.strategy:o,a=n.boundary,l=a===void 0?t2e:a,c=n.rootBoundary,u=c===void 0?dY:c,d=n.elementContext,f=d===void 0?Yg:d,h=n.altBoundary,p=h===void 0?!1:h,m=n.padding,g=m===void 0?0:m,y=gY(typeof g!="number"?g:yY(g,jv)),b=f===Yg?n2e:Yg,v=t.rects.popper,S=t.elements[p?b:f],I=D2e(Ff(S)?S:S.contextElement||sd(t.elements.popper),l,u,s),O=Mm(t.elements.reference),T=bY({reference:O,element:v,placement:i}),A=IR(Object.assign({},v,T)),R=f===Yg?A:O,k={top:I.top-R.top+y.top,bottom:R.bottom-I.bottom+y.bottom,left:I.left-R.left+y.left,right:R.right-I.right+y.right},P=t.modifiersData.offset;if(f===Yg&&P){var C=P[i];Object.keys(k).forEach(function(_){var M=[xs,Ss].indexOf(_)>=0?1:-1,V=[Zi,Ss].indexOf(_)>=0?"y":"x";k[_]+=C[V]*M})}return k}function L2e(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?fY:l,u=km(r),d=u?a?RL:RL.filter(function(p){return km(p)===u}):jv,f=d.filter(function(p){return c.indexOf(p)>=0});f.length===0&&(f=d);var h=f.reduce(function(p,m){return p[m]=C0(t,{placement:m,boundary:i,rootBoundary:o,padding:s})[Na(m)],p},{});return Object.keys(h).sort(function(p,m){return h[p]-h[m]})}function z2e(t){if(Na(t)===SP)return[];var e=hw(t);return[PL(t),e,PL(e)]}function V2e(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,h=n.flipVariations,p=h===void 0?!0:h,m=n.allowedAutoPlacements,g=e.options.placement,y=Na(g),b=y===g,v=l||(b||!p?[hw(g)]:z2e(g)),S=[g].concat(v).reduce(function(Z,G){return Z.concat(Na(G)===SP?L2e(e,{placement:G,boundary:u,rootBoundary:d,padding:c,flipVariations:p,allowedAutoPlacements:m}):G)},[]),I=e.rects.reference,O=e.rects.popper,T=new Map,A=!0,R=S[0],k=0;k<S.length;k++){var P=S[k],C=Na(P),_=km(P)===Im,M=[Zi,Ss].indexOf(C)>=0,V=M?"width":"height",N=C0(e,{placement:P,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),z=M?_?xs:eo:_?Ss:Zi;I[V]>O[V]&&(z=hw(z));var L=hw(z),B=[];if(o&&B.push(N[C]<=0),a&&B.push(N[z]<=0,N[L]<=0),B.every(function(Z){return Z})){R=P,A=!1;break}T.set(P,B)}if(A)for(var j=p?3:1,H=function(G){var X=S.find(function(K){var J=T.get(K);if(J)return J.slice(0,G).every(function(te){return te})});if(X)return R=X,"break"},q=j;q>0;q--){var Y=H(q);if(Y==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const B2e={name:"flip",enabled:!0,phase:"main",fn:V2e,requiresIfExists:["offset"],data:{_skip:!1}};function NL(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function DL(t){return[Zi,xs,Ss,eo].some(function(e){return t[e]>=0})}function $2e(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=C0(e,{elementContext:"reference"}),a=C0(e,{altBoundary:!0}),l=NL(s,r),c=NL(a,i,o),u=DL(l),d=DL(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const F2e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:$2e};function j2e(t,e,n){var r=Na(t),i=[eo,Zi].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[eo,xs].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function H2e(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,s=fY.reduce(function(u,d){return u[d]=j2e(d,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const U2e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:H2e};function q2e(t){var e=t.state,n=t.name;e.modifiersData[n]=bY({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const W2e={name:"popperOffsets",enabled:!0,phase:"read",fn:q2e,data:{}};function G2e(t){return t==="x"?"y":"x"}function K2e(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,h=f===void 0?!0:f,p=n.tetherOffset,m=p===void 0?0:p,g=C0(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),y=Na(e.placement),b=km(e.placement),v=!b,S=TP(y),I=G2e(S),O=e.modifiersData.popperOffsets,T=e.rects.reference,A=e.rects.popper,R=typeof m=="function"?m(Object.assign({},e.rects,{placement:e.placement})):m,k=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),P=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(O){if(o){var _,M=S==="y"?Zi:eo,V=S==="y"?Ss:xs,N=S==="y"?"height":"width",z=O[S],L=z+g[M],B=z-g[V],j=h?-A[N]/2:0,H=b===Im?T[N]:A[N],q=b===Im?-A[N]:-T[N],Y=e.elements.arrow,Z=h&&Y?EP(Y):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:mY(),X=G[M],K=G[V],J=gy(0,T[N],Z[N]),te=v?T[N]/2-j-J-X-k.mainAxis:H-J-X-k.mainAxis,ne=v?-T[N]/2+j+J+K+k.mainAxis:q+J+K+k.mainAxis,ce=e.elements.arrow&&Hv(e.elements.arrow),ie=ce?S==="y"?ce.clientTop||0:ce.clientLeft||0:0,oe=(_=P==null?void 0:P[S])!=null?_:0,ue=z+te-oe-ie,pe=z+ne-oe,ve=gy(h?FS(L,ue):L,z,h?pf(B,pe):B);O[S]=ve,C[S]=ve-z}if(a){var se,ae=S==="x"?Zi:eo,ke=S==="x"?Ss:xs,Ee=O[I],_e=I==="y"?"height":"width",we=Ee+g[ae],et=Ee-g[ke],rt=[Zi,eo].indexOf(y)!==-1,he=(se=P==null?void 0:P[I])!=null?se:0,be=rt?we:Ee-T[_e]-A[_e]-he+k.altAxis,De=rt?Ee+T[_e]+A[_e]-he-k.altAxis:et,Be=h&&rt?v2e(be,Ee,De):gy(h?be:we,Ee,h?De:et);O[I]=Be,C[I]=Be-Ee}e.modifiersData[r]=C}}const Y2e={name:"preventOverflow",enabled:!0,phase:"main",fn:K2e,requiresIfExists:["offset"]};function X2e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Q2e(t){return t===$o(t)||!ps(t)?CP(t):X2e(t)}function J2e(t){var e=t.getBoundingClientRect(),n=Rm(e.width)/t.offsetWidth||1,r=Rm(e.height)/t.offsetHeight||1;return n!==1||r!==1}function Z2e(t,e,n){n===void 0&&(n=!1);var r=ps(e),i=ps(e)&&J2e(e),o=sd(e),s=Mm(t,i,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((ja(e)!=="body"||AP(o))&&(a=Q2e(e)),ps(e)?(l=Mm(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=_P(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function ewe(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function twe(t){var e=ewe(t);return f2e.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function nwe(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function rwe(t){var e=t.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(e).map(function(n){return e[n]})}var LL={placement:"bottom",modifiers:[],strategy:"absolute"};function zL(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function iwe(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?LL:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},LL,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},d=[],f=!1,h={state:u,setOptions:function(y){var b=typeof y=="function"?y(u.options):y;m(),u.options=Object.assign({},o,u.options,b),u.scrollParents={reference:Ff(a)?yy(a):a.contextElement?yy(a.contextElement):[],popper:yy(l)};var v=twe(rwe([].concat(r,u.options.modifiers)));return u.orderedModifiers=v.filter(function(S){return S.enabled}),p(),h.update()},forceUpdate:function(){if(!f){var y=u.elements,b=y.reference,v=y.popper;if(zL(b,v)){u.rects={reference:Z2e(b,Hv(v),u.options.strategy==="fixed"),popper:EP(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(k){return u.modifiersData[k.name]=Object.assign({},k.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}
vendor: 3,590 bytes, line 4445
4445var I=u.orderedModifiers[S],O=I.fn,T=I.options,A=T===void 0?{}:T,R=I.name;typeof O=="function"&&(u=O({state:u,options:A,name:R,instance:h})||u)}}}},update:nwe(function(){return new Promise(function(g){h.forceUpdate(),g(u)})}),destroy:function(){m(),f=!0}};if(!zL(a,l))return h;h.setOptions(c).then(function(g){!f&&c.onFirstUpdate&&c.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var y=g.name,b=g.options,v=b===void 0?{}:b,S=g.effect;if(typeof S=="function"){var I=S({state:u,name:y,instance:h,options:v}),O=function(){};d.push(I||O)}})}function m(){d.forEach(function(g){return g()}),d=[]}return h}}var owe=[I2e,W2e,_2e,m2e,U2e,B2e,Y2e,x2e,F2e],swe=iwe({defaultModifiers:owe});function qi(t){var d;const{elementType:e,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...o}=t,s=i?{}:sY(n,r),{props:a,internalRef:l}=aY({...o,externalSlotProps:s}),c=fn(l,s==null?void 0:s.ref,(d=t.additionalProps)==null?void 0:d.ref);return oY(e,{...a,ref:c},r)}function ad(t){var e;return parseInt(E.version,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function awe(t){return typeof t=="function"?t():t}const wY=E.forwardRef(function(e,n){const{children:r,container:i,disablePortal:o=!1}=e,[s,a]=E.useState(null),l=fn(E.isValidElement(r)?ad(r):null,n);if(An(()=>{o||a(awe(i)||document.body)},[i,o]),An(()=>{if(s&&!o)return wR(n,s),()=>{wR(n,null)}},[n,s,o]),o){if(E.isValidElement(r)){const c={ref:l};return E.cloneElement(r,c)}return r}return s&&za.createPortal(r,s)});function lwe(t){return Pe("MuiPopper",t)}Le("MuiPopper",["root"]);function cwe(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function RR(t){return typeof t=="function"?t():t}function uwe(t){return t.nodeType!==void 0}const dwe=t=>{const{classes:e}=t;return Oe({root:["root"]},lwe,e)},fwe={},hwe=E.forwardRef(function(e,n){const{anchorEl:r,children:i,direction:o,disablePortal:s,modifiers:a,open:l,placement:c,popperOptions:u,popperRef:d,slotProps:f={},slots:h={},TransitionProps:p,ownerState:m,...g}=e,y=E.useRef(null),b=fn(y,n),v=E.useRef(null),S=fn(v,d),I=E.useRef(S);An(()=>{I.current=S},[S]),E.useImperativeHandle(d,()=>v.current,[]);const O=cwe(c,o),[T,A]=E.useState(O),[R,k]=E.useState(RR(r));E.useEffect(()=>{v.current&&v.current.forceUpdate()}),E.useEffect(()=>{r&&k(RR(r))},[r]),An(()=>{if(!R||!l)return;const V=L=>{A(L.placement)};let N=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{V(L)}}];a!=null&&(N=N.concat(a)),u&&u.modifiers!=null&&(N=N.concat(u.modifiers));const z=swe(R,y.current,{placement:O,...u,modifiers:N});return I.current(z),()=>{z.destroy(),I.current(null)}},[R,s,a,l,u,O]);const P={placement:T};p!==null&&(P.TransitionProps=p);const C=dwe(e),_=h.root??"div",M=qi({elementType:_,externalSlotProps:f.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:C.root});return x.jsx(_,{...M,children:typeof i=="function"?i(P):i})}),pwe=E.forwardRef(function(e,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:c,open:u,placement:d="bottom",popperOptions:f=fwe,popperRef:h,style:p,transition:m=!1,slotProps:g={},slots:y={},...b}=e,[v,S]=E.useState(!0),I=()=>{S(!1)},O=()=>{S(!0)};if(!l&&!u&&(!m||v))return null;let T;if(o)T=o;else if(r){const k=RR(r);T=k&&uwe(k)?In(k).body:In(null).body}
4445const A=!u&&l&&(!m||v)?"none":void 0,R=m?{in:u,onEnter:I,onExited:O}:void 0;return x.jsx(wY,{disablePortal:a,container:T,children:x.jsx(hwe,{anchorEl:r,direction:s,disablePortal:a,modifiers:c,ref:n,open:m?!v:u,placement:d,popperOptions:f,popperRef:h,slotProps:g,slots:y,...b,style:{position:"fixed",top:0,left:0,display:A,...p},TransitionProps:R,children:i})})}),mwe=W(pwe,{name:"MuiPopper",slot:"Root"})({}),CT=E.forwardRef(function(e,n){const r=Za(),i=Ne({props:e,name:"MuiPopper"}),{anchorEl:o,component:s,components:a,componentsProps:l,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:p,popperOptions:m,popperRef:g,transition:y,slots:b,slotProps:v,...S}=i,I=(b==null?void 0:b.root)??(a==null?void 0:a.Root),O={anchorEl:o,container:c,disablePortal:u,keepMounted:d,modifiers:f,open:h,placement:p,popperOptions:m,popperRef:g,transition:y,...S};return x.jsx(mwe,{as:s,direction:r?"rtl":"ltr",slots:{root:I},slotProps:v??l,...O,ref:n})});function gwe(t){return Pe("MuiListSubheader",t)}Le("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const ywe=t=>{const{classes:e,color:n,disableGutters:r,inset:i,disableSticky:o}=t,s={root:["root",n!=="default"&&`color${Q(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return Oe(s,gwe,e)},vwe=W("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color!=="default"&&e[`color${Q(n.color)}`],!n.disableGutters&&e.gutters,n.inset&&e.inset,!n.disableSticky&&e.sticky]}})(Te(({theme:t})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(t.vars||t).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}}]}))),MR=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:l=!1,inset:c=!1,...u}=r,d={...r,color:o,component:s,disableGutters:a,disableSticky:l,inset:c},f=ywe(d);return x.jsx(vwe,{as:s,className:de(f.root,i),ref:n,ownerState:d,...u})});MR&&(MR.muiSkipListHighlight=!0);const bwe=F(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function wwe(t){return Pe("MuiChip",t)}const Mt=Le("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Swe=t=>{const{classes:e,disabled:n,size:r,color:i,iconColor:o,onDelete:s,clickable:a,variant:l}=t,c={root:["root",l,n&&"disabled",`size${Q(r)}`,`color${Q(i)}`,a&&"clickable",a&&`clickableColor${Q(i)}`,s&&"deletable",s&&`deletableColor${Q(i)}`,`${l}${Q(i)}`],label:["label",`label${Q(r)}`],avatar:["avatar",`avatar${Q(r)}`,`avatarColor${Q(i)}`],icon:["icon",`icon${Q(r)}`,`iconColor${Q(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Q(r)}`,`deleteIconColor${Q(i)}`,`deleteIcon${Q(l)}Color${Q(i)}`]};return Oe(c,wwe,e)},xwe=W("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}
vendor: 14,311 bytes, lines 4445-4447
4445=t,{color:r,iconColor:i,clickable:o,onDelete:s,size:a,variant:l}=n;return[{[`& .${Mt.avatar}`]:e.avatar},{[`& .${Mt.avatar}`]:e[`avatar${Q(a)}`]},{[`& .${Mt.avatar}`]:e[`avatarColor${Q(r)}`]},{[`& .${Mt.icon}`]:e.icon},{[`& .${Mt.icon}`]:e[`icon${Q(a)}`]},{[`& .${Mt.icon}`]:e[`iconColor${Q(i)}`]},{[`& .${Mt.deleteIcon}`]:e.deleteIcon},{[`& .${Mt.deleteIcon}`]:e[`deleteIcon${Q(a)}`]},{[`& .${Mt.deleteIcon}`]:e[`deleteIconColor${Q(r)}`]},{[`& .${Mt.deleteIcon}`]:e[`deleteIcon${Q(l)}Color${Q(r)}`]},e.root,e[`size${Q(a)}`],e[`color${Q(r)}`],o&&e.clickable,o&&r!=="default"&&e[`clickableColor${Q(r)}`],s&&e.deletable,s&&r!=="default"&&e[`deletableColor${Q(r)}`],e[l],e[`${l}${Q(r)}`]]}})(Te(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Mt.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Mt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:e,fontSize:t.typography.pxToRem(12)},[`& .${Mt.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Mt.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Mt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Mt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Mt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Mt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Mt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Bt(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(t.vars||t).palette[n].main,color:(t.vars||t).palette[n].contrastText,[`& .${Mt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Mt.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:e}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Mt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Bt(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Mt.focusVisible}`]:{background:(t.vars||t).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${Mt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Bt(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Mt.focusVisible}`]:{backgroundColor:(t.vars||t).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Mt.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Mt.avatar}`]:{marginLeft:4},[`& .${Mt.avatarSmall}`]:{marginLeft:2},[`& .${Mt.icon}`]:{marginLeft:4},[`& .${Mt.iconSmall}`]:{marginLeft:2},[`& .${Mt.deleteIcon}`]:{marginRight:5},[`& .${Mt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Bt()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(t.vars||t).palette[n].main,border:`1px solid ${t.alpha((t.vars||t).palette[n].main,.7)}`,[`&.${Mt.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${Mt.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[n].main,(t.vars||t).palette.action.focusOpacity)},[`& .${Mt.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[n].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[n].main}}}}))]}})),Ewe=W("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:r}=n;return[e.label,e[`label${Q(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function VL(t){return t.key==="Backspace"||t.key==="Delete"}const Twe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiChip"}),{avatar:i,className:o,clickable:s,color:a="default",component:l,deleteIcon:c,disabled:u=!1,icon:d,label:f,onClick:h,onDelete:p,onKeyDown:m,onKeyUp:g,size:y="medium",variant:b="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,slots:I={},slotProps:O={},...T}=r,A=E.useRef(null),R=fn(A,n),k=X=>{X.stopPropagation(),p(X)},P=X=>{X.currentTarget===X.target&&VL(X)&&X.preventDefault(),m&&m(X)},C=X=>{X.currentTarget===X.target&&p&&VL(X)&&p(X),g&&g(X)},_=s!==!1&&h?!0:s,M=_||p?so:l||"div",V={...r,component:M,disabled:u,size:y,color:a,iconColor:E.isValidElement(d)&&d.props.color||a,onDelete:!!p,clickable:_,variant:b},N=Swe(V),z=M===so?{component:l||"div",focusVisibleClassName:N.focusVisible,...p&&{disableRipple:!0}}:{};let L=null;p&&(L=c&&E.isValidElement(c)?E.cloneElement(c,{className:de(c.props.className,N.deleteIcon),onClick:k}):x.jsx(bwe,{className:N.deleteIcon,onClick:k}));let B=null;i&&E.isValidElement(i)&&(B=E.cloneElement(i,{className:de(N.avatar,i.props.className)}));let j=null;d&&E.isValidElement(d)&&(j=E.cloneElement(d,{className:de(N.icon,d.props.className)}));const H={slots:I,slotProps:O},[q,Y]=Ie("root",{elementType:xwe,externalForwardedProps:{...H,...T},ownerState:V,shouldForwardComponentProp:!0,ref:R,className:de(N.root,o),additionalProps:{disabled:_&&u?!0:void 0,tabIndex:S&&u?-1:v,...z},getSlotProps:X=>({...X,onClick:K=>{var J;(J=X.onClick)==null||J.call(X,K),h==null||h(K)},onKeyDown:K=>{var J;(J=X.onKeyDown)==null||J.call(X,K),P(K)},onKeyUp:K=>{var J;(J=X.onKeyUp)==null||J.call(X,K),C(K)}})}),[Z,G]=Ie("label",{elementType:Ewe,externalForwardedProps:H,ownerState:V,className:N.label});return x.jsxs(q,{as:M,...Y,children:[B||j,x.jsx(Z,{...G,children:f}),L]})});function Gb(t){return parseInt(t,10)||0}const Cwe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _we(t){for(const e in t)return!1;return!0}function BL(t){return _we(t)||t.outerHeightStyle===0&&!t.overflowing}const Awe=E.forwardRef(function(e,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a,...l}=e,{current:c}=E.useRef(a!=null),u=E.useRef(null),d=fn(n,u),f=E.useRef(null),h=E.useRef(null),p=E.useCallback(()=>{const v=u.current,S=h.current;if(!v||!S)return;const O=ui(v).getComputedStyle(v);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=O.width,S.value=v.value||e.placeholder||"x",S.value.slice(-1)===` 4446`&&(S.value+=" ");const T=O.boxSizing,A=Gb(O.paddingBottom)+Gb(O.paddingTop),R=Gb(O.borderBottomWidth)+Gb(O.borderTopWidth),k=S.scrollHeight;S.value="x";const P=S.scrollHeight;let C=k;o&&(C=Math.max(Number(o)*P,C)),i&&(C=Math.min(Number(i)*P,C)),C=Math.max(C,P);const _=C+(T==="border-box"?A+R:0),M=Math.abs(C-k)<=1;return{outerHeightStyle:_,overflowing:M}},[i,o,e.placeholder]),m=jt(()=>{const v=u.current,S=p();if(!v||!S||BL(S))return!1;const I=S.outerHeightStyle;return f.current!=null&&f.current!==I}),g=E.useCallback(()=>{const v=u.current,S=p();if(!v||!S||BL(S))return;const I=S.outerHeightStyle;f.current!==I&&(f.current=I,v.style.height=`${I}px`),v.style.overflow=S.overflowing?"hidden":""},[p]),y=E.useRef(-1);An(()=>{const v=Fv(g),S=u==null?void 0:u.current;if(!S)return;const I=ui(S);I.addEventListener("resize",v);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{m()&&(O.unobserve(S),cancelAnimationFrame(y.current),g(),y.current=requestAnimationFrame(()=>{O.observe(S)}))}),O.observe(S)),()=>{v.clear(),cancelAnimationFrame(y.current),I.removeEventListener("resize",v),O&&O.disconnect()}},[p,g,m]),An(()=>{g()});const b=v=>{c||g();const S=v.target,I=S.value.length,O=S.value.endsWith(` 4447`),T=S.selectionStart===I;O&&T&&S.setSelectionRange(I,I),r&&r(v)};return x.jsxs(E.Fragment,{children:[x.jsx("textarea",{value:a,onChange:b,ref:d,rows:o,style:s,...l}),x.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:h,tabIndex:-1,style:{...Cwe.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function ld({props:t,states:e,muiFormControl:n}){return e.reduce((r,i)=>(r[i]=t[i],n&&typeof t[i]>"u"&&(r[i]=n[i]),r),{})}const _T=E.createContext(void 0);function ra(){return E.useContext(_T)}function $L(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function jS(t,e=!1){return t&&($L(t.value)&&t.value!==""||e&&$L(t.defaultValue)&&t.defaultValue!=="")}function Iwe(t){return t.startAdornment}function Rwe(t){return Pe("MuiInputBase",t)}const mo=Le("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var FL;const AT=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,n.size==="small"&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e[`color${Q(n.color)}`],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},IT=(t,e)=>{const{ownerState:n}=t;return[e.input,n.size==="small"&&e.inputSizeSmall,n.multiline&&e.inputMultiline,n.type==="search"&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},Mwe=t=>{const{classes:e,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:f,startAdornment:h,type:p}=t,m={root:["root",`color${Q(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",a&&"formControl",f&&f!=="medium"&&`size${Q(f)}`,u&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",p==="search"&&"inputTypeSearch",u&&"inputMultiline",f==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Oe(m,Rwe,e)},RT=W("div",{name:"MuiInputBase",slot:"Root",overridesResolver:AT})(Te(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${mo.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:n})=>e.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),MT=W("input",{name:"MuiInputBase",slot:"Input",overridesResolver:IT})(Te(({theme:t})=>{const e=t.palette.mode==="light",n={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},r={opacity:"0 !important"},i=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:e?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${mo.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${mo.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),jL=pP({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),kT=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:o,autoFocus:s,className:a,color:l,components:c={},componentsProps:u={},defaultValue:d,disabled:f,disableInjectingGlobalStyles:h,endAdornment:p,error:m,fullWidth:g=!1,id:y,inputComponent:b="input",inputProps:v={},inputRef:S,margin:I,maxRows:O,minRows:T,multiline:A=!1,name:R,onBlur:k,onChange:P,onClick:C,onFocus:_,onKeyDown:M,onKeyUp:V,placeholder:N,readOnly:z,render
4447Suffix:L,rows:B,size:j,slotProps:H={},slots:q={},startAdornment:Y,type:Z="text",value:G,...X}=r,K=v.value!=null?v.value:G,{current:J}=E.useRef(K!=null),te=E.useRef(),ne=E.useCallback(xe=>{},[]),ce=fn(te,S,v.ref,ne),[ie,oe]=E.useState(!1),ue=ra(),pe=ld({props:r,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ue?ue.focused:ie,E.useEffect(()=>{!ue&&f&&ie&&(oe(!1),k&&k())},[ue,f,ie,k]);const ve=ue&&ue.onFilled,se=ue&&ue.onEmpty,ae=E.useCallback(xe=>{jS(xe)?ve&&ve():se&&se()},[ve,se]);An(()=>{J&&ae({value:K})},[K,ae,J]);const ke=xe=>{_&&_(xe),v.onFocus&&v.onFocus(xe),ue&&ue.onFocus?ue.onFocus(xe):oe(!0)},Ee=xe=>{k&&k(xe),v.onBlur&&v.onBlur(xe),ue&&ue.onBlur?ue.onBlur(xe):oe(!1)},_e=(xe,...Ge)=>{if(!J){const Ke=xe.target||te.current;if(Ke==null)throw new Error(nc(1));ae({value:Ke.value})}v.onChange&&v.onChange(xe,...Ge),P&&P(xe,...Ge)};E.useEffect(()=>{ae(te.current)},[]);const we=xe=>{te.current&&xe.currentTarget===xe.target&&te.current.focus(),C&&C(xe)};let et=b,rt=v;A&&et==="input"&&(B?rt={type:void 0,minRows:B,maxRows:B,...rt}:rt={type:void 0,maxRows:O,minRows:T,...rt},et=Awe);const he=xe=>{ae(xe.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};E.useEffect(()=>{ue&&ue.setAdornedStart(!!Y)},[ue,Y]);const be={...r,color:pe.color||"primary",disabled:pe.disabled,endAdornment:p,error:pe.error,focused:pe.focused,formControl:ue,fullWidth:g,hiddenLabel:pe.hiddenLabel,multiline:A,size:pe.size,startAdornment:Y,type:Z},De=Mwe(be),Be=q.root||c.Root||RT,Xe=H.root||u.root||{},Me=q.input||c.Input||MT;return rt={...rt,...H.input??u.input},x.jsxs(E.Fragment,{children:[!h&&typeof jL=="function"&&(FL||(FL=x.jsx(jL,{}))),x.jsxs(Be,{...Xe,ref:n,onClick:we,...X,...!Oa(Be)&&{ownerState:{...be,...Xe.ownerState}},className:de(De.root,Xe.className,a,z&&"MuiInputBase-readOnly"),children:[Y,x.jsx(_T.Provider,{value:null,children:x.jsx(Me,{"aria-invalid":pe.error,"aria-describedby":i,autoComplete:o,autoFocus:s,defaultValue:d,disabled:pe.disabled,id:y,onAnimationStart:he,name:R,placeholder:N,readOnly:z,required:pe.required,rows:B,value:K,onKeyDown:M,onKeyUp:V,type:Z,...rt,...!Oa(Me)&&{as:et,ownerState:{...be,...rt.ownerState}},ref:ce,className:de(De.input,rt.className,z&&"MuiInputBase-readOnly"),onBlur:Ee,onChange:_e,onFocus:ke})}),p,L?L({...pe,startAdornment:Y}):null]})]})});function kwe(t){return Pe("MuiInput",t)}const jc={...mo,...Le("MuiInput",["root","underline","input"])};function Pwe(t){return Pe("MuiOutlinedInput",t)}const Go={...mo,...Le("MuiOutlinedInput",["root","notchedOutline","input"])};function Owe(t){return Pe("MuiFilledInput",t)}const go={...mo,...Le("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},SY=F(x.jsx("path",{d:"M7 10l5 5 5-5z"}));function Nwe(t){return Pe("MuiAutocomplete",t)}const At=Le("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","
4447input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var HL,UL;const Dwe=t=>{const{classes:e,disablePortal:n,expanded:r,focused:i,fullWidth:o,hasClearIcon:s,hasPopupIcon:a,inputFocused:l,popupOpen:c,size:u}=t,d={root:["root",r&&"expanded",i&&"focused",o&&"fullWidth",s&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Q(u)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Oe(d,Nwe,e)},Lwe=W("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{fullWidth:r,hasClearIcon:i,hasPopupIcon:o,inputFocused:s,size:a}=n;return[{[`& .${At.tag}`]:e.tag},{[`& .${At.tag}`]:e[`tagSize${Q(a)}`]},{[`& .${At.inputRoot}`]:e.inputRoot},{[`& .${At.input}`]:e.input},{[`& .${At.input}`]:s&&e.inputFocused},e.root,r&&e.fullWidth,o&&e.hasPopupIcon,i&&e.hasClearIcon]}})({[`&.${At.focused} .${At.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${At.clearIndicator}`]:{visibility:"visible"}},[`& .${At.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${At.inputRoot}`]:{[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:30},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:56},[`& .${At.input}`]:{width:0,minWidth:30}},[`& .${jc.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${jc.root}.${mo.sizeSmall}`]:{[`& .${jc.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Go.root}`]:{padding:9,[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:39},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:65},[`& .${At.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${At.endAdornment}`]:{right:9}},[`& .${Go.root}.${mo.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${At.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${go.root}`]:{paddingTop:19,paddingLeft:8,[`.${At.hasPopupIcon}&, .${At.hasClearIcon}&`]:{paddingRight:39},[`.${At.hasPopupIcon}.${At.hasClearIcon}&`]:{paddingRight:65},[`& .${go.input}`]:{padding:"7px 4px"},[`& .${At.endAdornment}`]:{right:9}},[`& .${go.root}.${mo.sizeSmall}`]:{paddingBottom:1,[`& .${go.input}`]:{padding:"2.5px 4px"}},[`& .${mo.hiddenLabel}`]:{paddingTop:8},[`& .${go.root}.${mo.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${At.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${go.root}.${mo.hiddenLabel}.${mo.sizeSmall}`]:{[`& .${At.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${At.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0}
vendor: 4,326 bytes, line 4447
4447,variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${At.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${At.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${At.inputRoot}`]:{flexWrap:"wrap"}}}]}),zwe=W("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),Vwe=W(Xd,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),Bwe=W(Xd,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popupIndicator,n.popupOpen&&e.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),$we=W(CT,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${At.option}`]:e.option},e.popper,n.disablePortal&&e.popperDisablePortal]}})(Te(({theme:t})=>({zIndex:(t.vars||t).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),Fwe=W(na,{name:"MuiAutocomplete",slot:"Paper"})(Te(({theme:t})=>({...t.typography.body1,overflow:"auto"}))),jwe=W("div",{name:"MuiAutocomplete",slot:"Loading"})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),Hwe=W("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"}))),Uwe=W("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Te(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${At.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${At.focused}`]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${At.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${At.focused}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},[`&.${At.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}}}))),qwe=W(MR,{name:"MuiAutocomplete",slot:"GroupLabel"})(Te(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8}))),Wwe=W("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${At.option}`]:{paddingLeft:24}}),yGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAutocomplete"}),{autoComplete:i=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:a=!1,ChipProps:l,className:c,clearIcon:u=HL||(HL=x.jsx(uY,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:f=!1,clearText:h="Clear",closeText:p="Close",componentsProps:m,defaultValue:g=r.multiple?[]:null,disableClearable:y=!1,disableCloseOnSelect:b=!1,disabled:v=!1,disabledItemsFocusable:S=!1,disableListWrap:I=!1,disablePortal:O=!1,filterOptions:T,filterSelectedOptions:A=!1,forcePopupIcon:R="auto",freeSolo:k=!1,fullWidth:P=!1,getLimitTagsText:C=Rt=>`+${Rt}`,getOptionDisabled:_,getOptionKey:M,getOptionLabel:V,isOptionEqualToValue:N,groupBy:z,handleHomeEndKeys:L=!r.freeSolo,id:B,includeInputInList:j=!1,inputValue:H,limitTags:q=-1,ListboxComponent:Y,ListboxProps:Z,loading:G=!1,loadingText:X="Loading…",multiple:K=!1,noOptionsText:J="No options",onChange:te,onClose:ne,onHighlightChange:ce,onInputChange:ie,onOpen:oe,open:ue,openOnFocus:pe=!1,openText:ve="Open",options:se,PaperComponent:ae,PopperComponent:ke,popupIcon:Ee=UL||(UL=x.jsx(SY,{})),readOnly:_e=!1,renderGroup:we,renderInput:et,renderOption:rt,renderTags:he,renderValue:be,selectOnFocus:De=!r.freeSolo,size:Be="medium",slots:Xe={},slotProps:Me={},value:xe,...Ge}
4447=r,{getRootProps:Ke,getInputProps:nt,getInputLabelProps:en,getPopupIndicatorProps:Wt,getClearProps:Jt,getItemProps:pn,getListboxProps:Cn,getOptionProps:tn,value:Ue,dirty:Fe,expanded:ct,id:Dt,popupOpen:Gt,focused:mn,focusedItem:st,anchorEl:Ct,setAnchorEl:$e,inputValue:Je,groupedOptions:ht}=e2e({...r,componentName:"Autocomplete"}),bt=!y&&!v&&Fe&&!_e,qt=(!k||R===!0)&&R!==!1,{onMouseDown:vr}=nt(),{ref:kr,...co}=Cn(),Vi=V||(Rt=>Rt.label??Rt),Bn={...r,disablePortal:O,expanded:ct,focused:mn,fullWidth:P,getOptionLabel:Vi,hasClearIcon:bt,hasPopupIcon:qt,inputFocused:st===-1,popupOpen:Gt,size:Be},$n=Dwe(Bn),xi={slots:{paper:ae,popper:ke,...Xe},slotProps:{chip:l,listbox:Z,...m,...Me}},[nl,sa]=Ie("listbox",{elementType:Uwe,externalForwardedProps:xi,ownerState:Bn,className:$n.listbox,additionalProps:co,ref:kr}),[rl,ge]=Ie("paper",{elementType:na,externalForwardedProps:xi,ownerState:Bn,className:$n.paper}),[me,qe]=Ie("popper",{elementType:CT,externalForwardedProps:xi,ownerState:Bn,className:$n.popper,additionalProps:{disablePortal:O,style:{width:Ct?Ct.clientWidth:null},role:"presentation",anchorEl:Ct,open:Gt}});let at;const dt=Rt=>({className:$n.tag,disabled:v,...pn(Rt)});if(K?Ue.length>0&&(he?at=he(Ue,dt,Bn):be?at=be(Ue,dt,Bn):at=Ue.map((Rt,Bi)=>{const{key:uo,...la}=dt({index:Bi});return x.jsx(Twe,{label:Vi(Rt),size:Be,...la,...xi.slotProps.chip},uo)})):be&&Ue!=null&&(at=be(Ue,dt,Bn)),q>-1&&Array.isArray(at)){const Rt=at.length-q;!mn&&Rt>0&&(at=at.splice(0,q),at.push(x.jsx("span",{className:$n.tag,children:C(Rt)},at.length)))}const bn=we||(Rt=>x.jsxs("li",{children:[x.jsx(qwe,{className:$n.groupLabel,ownerState:Bn,component:"div",children:Rt.group}),x.jsx(Wwe,{className:$n.groupUl,ownerState:Bn,children:Rt.children})]},Rt.key)),il=rt||((Rt,Bi)=>{const{key:uo,...la}=Rt;return x.jsx("li",{...la,children:Vi(Bi)},uo)}),md=(Rt,Bi)=>{const uo=tn({option:Rt,index:Bi});return il({...uo,className:$n.option},Rt,{selected:uo["aria-selected"],index:Bi,inputValue:Je},Bn)},ol=xi.slotProps.clearIndicator,aa=xi.slotProps.popupIndicator;return x.jsxs(E.Fragment,{children:[x.jsx(Lwe,{ref:n,className:de($n.root,c),ownerState:Bn,...Ke(Ge),children:et({id:Dt,disabled:v,fullWidth:r.fullWidth??!0,size:Be==="small"?"small":void 0,InputLabelProps:en(),InputProps:{ref:$e,className:$n.inputRoot,startAdornment:at,onMouseDown:Rt=>{Rt.target===Rt.currentTarget&&vr(Rt)},...(bt||qt)&&{endAdornment:x.jsxs(zwe,{className:$n.endAdornment,ownerState:Bn,children:[bt?x.jsx(Vwe,{...Jt(),"aria-label":h,title:h,ownerState:Bn,...ol,className:de($n.clearIndicator,ol==null?void 0:ol.className),children:u}):null,qt?x.jsx(Bwe,{...Wt(),disabled:v,"aria-label":Gt?p:ve,title:Gt?p:ve,ownerState:Bn,...aa,className:de($n.popupIndicator,aa==null?void 0:aa.className),children:Ee}):null]})}},inputProps:{className:$n.input,disabled:v,readOnly:_e,...nt()}})}),Ct?x.jsx($we,{as:me,...qe,children:x.jsxs(Fwe,{as:rl,...ge,children:[G&&ht.length===0?x.jsx(jwe,{className:$n.loading,ownerState:Bn,children:X}):null,ht.length===0&&!k&&!G?x.jsx(Hwe,{className:$n.noOptions,ownerState:Bn,role:"presentation",onMouseDown:Rt=>{Rt.preventDefault()},children:J}):null,ht.length>0?x.jsx(nl,{as:Y,...sa,children:ht.map((Rt,Bi)=>z?bn({key:Rt.key,group:Rt.group,children:Rt.options.map((uo,la)=>md(uo,Rt.index+la))}):md(Rt,Bi))}):null]})}):null]})}),Gwe=F(x.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function Kwe(t){return Pe("MuiAvatar",t)}Le("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Ywe=t=>{const{classes:e,variant:n,colorDefault:r}=t;return Oe({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Kwe,e)},Xwe=W("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.colorDefault&&e.colorDefault]}})(Te(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(t.vars||t).palette.background.default,...t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:t.palette.grey[400],...t.applyStyles("dark",{backgroundColor:t.palette.grey[600]})}}}]}))),Qwe=W("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Jwe=W(Gwe,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function Zwe({crossOrigin:t,referrerPolicy:e,src:n,srcSet:r}){const[i,o]=E.useState(!1);return E.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=t,a.referrerPolicy=e,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[t,e,n,r]),i}const vGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",slots:l={},slotProps:c={},imgProps:u,sizes:d,src:f,srcSet:h,variant:p="circular",...m}=r;let g=null;const y={...r,component:a,variant:p},b=Zwe({...u,...typeof c.img=="function"?c.img(y):c.img,src:f,srcSet:h}),v=f||h,S=v&&b!=="error";y.colorDefault=!S,delete y.ownerState;const I=Ywe(y),[O,T]=Ie("root",{ref:n,className:de(I.root,s),elementType:Xwe,externalForwardedProps:{slots:l,slotProps:c,component:a,...m},ownerState:y}),[A,R]=Ie("img",{className:I.img,elementType:Qwe,externalForwardedProps:{slots:l,slotProps:{img:{...u,...c.img}}},additionalProps:{alt:i,src:f,srcSet:h,sizes:d},ownerState:y}),[k,P]=Ie("fallback",{className:I.fallback,elementType:Jwe,externalForwardedProps:{slots:l,slotProps:c},shouldForwardComponentProp:!0,ownerState:y});return S?g=x.jsx(A,{...R}):o||o===0?g=o:v&&i?g=i[0]:g=x.jsx(k,{...P}),x.jsx(O,{...T,children:g})}),eSe={entering:{opacity:1},entered:{opacity:1}},kR=E.forwardRef(function(e,n){const r=Ho(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:l,in:c,onEnter:u,onEntered:d,onEntering:f,onExit:h,onExited:p,onExiting:m,style:g,timeout:y=i,TransitionComponent:b=Uo,...v}=e,S=E.useRef(null),I=fn(S,ad(a),n),O=M=>V=>
4447{if(M){const N=S.current;V===void 0?M(N):M(N,V)}},T=O(f),A=O((M,V)=>{bP(M);const N=rc({style:g,timeout:y,easing:l},{mode:"enter"});M.style.webkitTransition=r.transitions.create("opacity",N),M.style.transition=r.transitions.create("opacity",N),u&&u(M,V)}),R=O(d),k=O(m),P=O(M=>{const V=rc({style:g,timeout:y,easing:l},{mode:"exit"});M.style.webkitTransition=r.transitions.create("opacity",V),M.style.transition=r.transitions.create("opacity",V),h&&h(M)}),C=O(p),_=M=>{o&&o(S.current,M)};return x.jsx(b,{appear:s,in:c,nodeRef:S,onEnter:A,onEntered:R,onEntering:T,onExit:P,onExited:C,onExiting:k,addEndListener:_,timeout:y,...v,children:(M,{ownerState:V,...N})=>E.cloneElement(a,{style:{opacity:0,visibility:M==="exited"&&!c?"hidden":void 0,...eSe[M],...g,...a.props.style},ref:I,...N})})});function tSe(t){return Pe("MuiBackdrop",t)}Le("MuiBackdrop",["root","invisible"]);const nSe=t=>{const{classes:e,invisible:n}=t;return Oe({root:["root",n&&"invisible"]},tSe,e)},rSe=W("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),xY=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiBackdrop"}),{children:i,className:o,component:s="div",invisible:a=!1,open:l,components:c={},componentsProps:u={},slotProps:d={},slots:f={},TransitionComponent:h,transitionDuration:p,...m}
vendor: 14,078 bytes, line 4447
4447=r,g={...r,component:s,invisible:a},y=nSe(g),b={transition:h,root:c.Root,...f},v={...u,...d},S={component:s,slots:b,slotProps:v},[I,O]=Ie("root",{elementType:rSe,externalForwardedProps:S,className:de(y.root,o),ownerState:g}),[T,A]=Ie("transition",{elementType:kR,externalForwardedProps:S,ownerState:g});return x.jsx(T,{in:l,timeout:p,...m,...A,children:x.jsx(I,{"aria-hidden":!0,...O,ref:n,children:i})})});function iSe(t){const{badgeContent:e,invisible:n=!1,max:r=99,showZero:i=!1}=t,o=wP({badgeContent:e,max:r});let s=n;n===!1&&e===0&&!i&&(s=!0);const{badgeContent:a,max:l=r}=s?o:t,c=a&&Number(a)>l?`${l}+`:a;return{badgeContent:a,invisible:s,max:l,displayValue:c}}function oSe(t){return Pe("MuiBadge",t)}const sSe=Le("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),uA=10,dA=4,aSe=t=>{const{color:e,anchorOrigin:n,invisible:r,overlap:i,variant:o,classes:s={}}=t,a={root:["root"],badge:["badge",o,r&&"invisible",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`,`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}${Q(i)}`,`overlap${Q(i)}`,e!=="default"&&`color${Q(e)}`]};return Oe(a,oSe,s)},lSe=W("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),cSe=W("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}${Q(n.overlap)}`],n.color!=="default"&&e[`color${Q(n.color)}`],n.invisible&&e.invisible]}})(Te(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:uA*2,lineHeight:1,padding:"0 6px",height:uA*2,borderRadius:uA,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen}),variants:[...Object.entries(t.palette).filter(Bt(["contrastText"])).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main,color:(t.vars||t).palette[e].contrastText}})),{props:{variant:"dot"},style:{borderRadius:dA,height:dA*2,minWidth:dA*2,padding:0}},{props:{invisible:!0},style:{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:n,horizontal:r}=e.anchorOrigin,i=e.overlap==="circular"?"14%":0;return{"--Badge-translateX":r==="right"?"50%":"-50%","--Badge-translateY":n==="top"?"-50%":"50%",top:n==="top"?i:"initial",bottom:n==="bottom"?i:"initial",right:r==="right"?i:"initial",left:r==="left"?i:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${r==="right"?"100%":"0%"} ${n==="top"?"0%":"100%"}`,[`&.${sSe.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function qL(t){return{vertical:(t==null?void 0:t.vertical)??"top",horizontal:(t==null?void 0:t.horizontal)??"right"}}const bGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiBadge"}),{anchorOrigin:i,className:o,classes:s,component:a,components:l={},componentsProps:c={},children:u,overlap:d="rectangular",color:f="default",invisible:h=!1,max:p=99,badgeContent:m,slots:g,slotProps:y,showZero:b=!1,variant:v="standard",...S}=r,{badgeContent:I,invisible:O,max:T,displayValue:A}=iSe({max:p,invisible:h,badgeContent:m,showZero:b}),R=wP({anchorOrigin:qL(i),color:f,overlap:d,variant:v,badgeContent:m}),k=O||I==null&&v!=="dot",{color:P=f,overlap:C=d,anchorOrigin:_,variant:M=v}=k?R:r,V=qL(_),N=M!=="dot"?A:void 0,z={...r,badgeContent:I,invisible:k,max:T,displayValue:N,showZero:b,anchorOrigin:V,color:P,overlap:C,variant:M},L=aSe(z),B={slots:{root:(g==null?void 0:g.root)??l.Root,badge:(g==null?void 0:g.badge)??l.Badge},slotProps:{root:(y==null?void 0:y.root)??c.root,badge:(y==null?void 0:y.badge)??c.badge}},[j,H]=Ie("root",{elementType:lSe,externalForwardedProps:{...B,...S},ownerState:z,className:de(L.root,o),ref:n,additionalProps:{as:a}}),[q,Y]=Ie("badge",{elementType:cSe,externalForwardedProps:B,ownerState:z,className:L.badge});return x.jsxs(j,{...H,children:[u,x.jsx(q,{...Y,children:N})]})}),uSe=Le("MuiBox",["root"]),dSe=hP(),wGe=xye({themeId:hs,defaultTheme:dSe,defaultClassName:uSe.root,generateClassName:NK.generate});function fSe(t){return Pe("MuiButton",t)}const Cd=Le("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),EY=E.createContext({}),TY=E.createContext(void 0),hSe=t=>{const{color:e,disableElevation:n,fullWidth:r,size:i,variant:o,loading:s,loadingPosition:a,classes:l}=t,c={root:["root",s&&"loading",o,`${o}${Q(e)}`,`size${Q(i)}`,`${o}Size${Q(i)}`,`color${Q(e)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Q(a)}`],startIcon:["icon","startIcon",`iconSize${Q(i)}`],endIcon:["icon","endIcon",`iconSize${Q(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},u=Oe(c,fSe,l);return{...l,...u}},CY=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],pSe=W(so,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Q(n.color)}`],e[`size${Q(n.size)}`],e[`${n.variant}Size${Q(n.size)}`],n.color==="inherit"&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,n.loading&&e.loading]}})(Te(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],n=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Cd.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Cd.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Cd.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Cd.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Bt()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(t.vars||t).palette[r].main,"--variant-outlinedColor":(t.vars||t).palette[r].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[r].main,.5),"--variant-containedColor":(t.vars||t).palette[r].contrastText,"--variant-containedBg":(t.vars||t).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[r].dark,"--variant-textBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[r].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:e,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Cd.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Cd.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Cd.loading}`]:{color:"transparent"}}}]}})),mSe=W("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,n.loading&&e.startIconLoadingStart,e[`iconSize${Q(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...CY]})),gSe=W("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,n.loading&&e.endIconLoadingEnd,e[`iconSize${Q(n.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...CY]})),ySe=W("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),WL=W("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),SGe=E.forwardRef(function(e,n){const r=E.useContext(EY),i=E.useContext(TY),o=Am(r,e),s=Ne({props:o,name:"MuiButton"}),{children:a,color:l="primary",component:c="button",className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:h=!1,endIcon:p,focusVisibleClassName:m,fullWidth:g=!1,id:y,loading:b=null,loadingIndicator:v,loadingPosition:S="center",size:I="medium",startIcon:O,type:T,variant:A="text",...R}=s,k=Bo(y),P=v??x.jsx(cY,{"aria-labelledby":k,color:"inherit",size:16}),C={...s,color:l,component:c,disabled:d,disableElevation:f,disableFocusRipple:h,fullWidth:g,loading:b,loadingIndicator:P,loadingPosition:S,size:I,type:T,variant:A},_=hSe(C),M=(O||b&&S==="start")&&x.jsx(mSe,{className:_.startIcon,ownerState:C,children:O||x.jsx(WL,{className:_.loadingIconPlaceholder,ownerState:C})}),V=(p||b&&S==="end")&&x.jsx(gSe,{className:_.endIcon,ownerState:C,children:p||x.jsx(WL,{className:_.loadingIconPlaceholder,ownerState:C})}),N=i||"",z=typeof b=="boolean"?x.jsx("span",{className:_.loadingWrapper,style:{display:"contents"},children:b&&x.jsx(ySe,{className:_.loadingIndicator,ownerState:C,children:P})}):null;return x.jsxs(pSe,{ownerState:C,className:de(r.className,_.root,u,N),component:c,disabled:d||b,focusRipple:!h,focusVisibleClassName:de(_.focu
4447sVisible,m),ref:n,type:T,id:b?k:y,...R,classes:_,children:[M,S!=="end"&&z,a,S==="end"&&z,V]})});function _Y(t){return E.Children.toArray(t).filter(e=>E.isValidElement(e))}function vSe(t){return Pe("MuiButtonGroup",t)}const Et=Le("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]),bSe=(t,e)=>{const{ownerState:n}=t;return[{[`& .${Et.grouped}`]:e.grouped},{[`& .${Et.grouped}`]:e[`grouped${Q(n.orientation)}`]},{[`& .${Et.grouped}`]:e[`grouped${Q(n.variant)}`]},{[`& .${Et.grouped}`]:e[`grouped${Q(n.variant)}${Q(n.orientation)}`]},{[`& .${Et.grouped}`]:e[`grouped${Q(n.variant)}${Q(n.color)}`]},{[`& .${Et.firstButton}`]:e.firstButton},{[`& .${Et.lastButton}`]:e.lastButton},{[`& .${Et.middleButton}`]:e.middleButton},e.root,e[n.variant],n.disableElevation===!0&&e.disableElevation,n.fullWidth&&e.fullWidth,n.orientation==="vertical"&&e.vertical]},wSe=t=>{const{classes:e,color:n,disabled:r,disableElevation:i,fullWidth:o,orientation:s,variant:a}=t,l={root:["root",a,s,o&&"fullWidth",i&&"disableElevation",`color${Q(n)}`],grouped:["grouped",`grouped${Q(s)}`,`grouped${Q(a)}`,`grouped${Q(a)}${Q(s)}`,`grouped${Q(a)}${Q(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Oe(l,vSe,e)},SSe=W("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:bSe})(Te(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(t.vars||t).shadows[2],[`& .${Et.grouped}`]:{boxShadow:"none","&:hover":{boxShadow:"none"}}}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${Et.lastButton},& .${Et.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Et.lastButton},& .${Et.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderRight:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Et.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderBottom:t.vars?`1px solid ${t.alpha(t.vars.palette.common.onBackground,.23)}`:`1px solid ${t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Et.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},...Object.entries(t.palette).filter(Bt()).flatMap(([e])=>[{props:{variant:"text",color:e},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderColor:t.alpha((t.vars||t).palette[e].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${Et.lastButton},& .${Et.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${Et.lastButton},& .${Et.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderRight:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Et.disabled}`]:{borderRight:`1px solid ${(t.vars||t).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderBottom:`1px solid ${(t.vars||t).palette.grey[400]}`,[`&.${Et.disabled}`]:{borderBottom:`1px solid ${(t.vars||t).palette.action.disabled}`}}}}
4447,...Object.entries(t.palette).filter(Bt(["dark"])).map(([e])=>({props:{variant:"contained",color:e},style:{[`& .${Et.firstButton},& .${Et.middleButton}`]:{borderColor:(t.vars||t).palette[e].dark}}}))],[`& .${Et.grouped}`]:{minWidth:40}}))),xGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiButtonGroup"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,disableElevation:c=!1,disableFocusRipple:u=!1,disableRipple:d=!1,fullWidth:f=!1,orientation:h="horizontal",size:p="medium",variant:m="outlined",...g}=r,y={...r,color:s,component:a,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,orientation:h,size:p,variant:m},b=wSe(y),v=E.useMemo(()=>({className:b.grouped,color:s,disabled:l,disableElevation:c,disableFocusRipple:u,disableRipple:d,fullWidth:f,size:p,variant:m}),[s,l,c,u,d,f,p,m,b.grouped]),S=_Y(i),I=S.length,O=T=>{const A=T===0,R=T===I-1;return A&&R?"":A?b.firstButton:R?b.lastButton:b.middleButton};return x.jsx(SSe,{as:a,role:"group",className:de(b.root,o),ref:n,ownerState:y,...g,children:x.jsx(EY.Provider,{value:v,children:S.map((T,A)=>x.jsx(TY.Provider,{value:O(A),children:T},A))})})});function xSe(t){return Pe("MuiCard",t)}Le("MuiCard",["root"]);const ESe=t=>{const{classes:e}=t;return Oe({root:["root"]},xSe,e)},TSe=W(na,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),EGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCard"}),{className:i,raised:o=!1,...s}=r,a={...r,raised:o},l=ESe(a);return x.jsx(TSe,{className:de(l.root,i),elevation:o?8:void 0,ref:n,ownerState:a,...s})});function CSe(t){return Pe("MuiCardActionArea",t)}const fA=Le("MuiCardActionArea",["root","focusVisible","focusHighlight"]),_Se=t=>{const{classes:e}=t;return Oe({root:["root"],focusHighlight:["focusHighlight"]},CSe,e)},ASe=W(so,{name:"MuiCardActionArea",slot:"Root"})(Te(({theme:t})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${fA.focusHighlight}`]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${fA.focusVisible} .${fA.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}}))),ISe=W("span",{name:"MuiCardActionArea",slot:"FocusHighlight"})(Te(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}))),TGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:s,slots:a={},slotProps:l={},...c}=r,u=r,d=_Se(u),f={slots:a,slotProps:l},[h,p]=Ie("root",{elementType:ASe,externalForwardedProps:{...f,...c},shouldForwardComponentProp:!0,ownerState:u,ref:n,className:de(d.root,o),additionalProps:{focusVisibleClassName:de(s,d.focusVisible)}}),[m,g]=Ie("focusHighlight",{elementType:ISe,externalForwardedProps:f,ownerState:u,className:d.focusHighlight});return x.jsxs(h,{...p,children:[i,x.jsx(m,{...g})]})});function RSe(t){return Pe("MuiCardActions",t)}Le("MuiCardActions",["root","spacing"]);const MSe=t=>{const{classes:e,disableSpacing:n}=t;return Oe({root:["root",!n&&"spacing"]},RSe,e)},kSe=W("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,variants:[{props:{disableSpacing:!1},style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),CGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCardActions"}),{disableSpacing:i=!1,className:o,...s}=r,a={...r,disableSpacing:i},l=MSe(a);return x.jsx(kSe,{className:de(l.root,o),ownerState:a,ref:n,...s})});function PSe(t){return Pe("MuiCardContent",t)}Le("MuiCardContent",["root"]);const OSe=t=>{const{classes:e}=t;return Oe({root:["root"]},PSe,e)},NSe=W("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),_Ge=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCardContent"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=OSe(a);return x.jsx(NSe,{as:o,className:de(l.root,i),ownerState:a,ref:n,...s})});function DSe(t){return Pe("MuiCardHeader",t)}const HS=Le("MuiCardHeader",["root","avatar","action","content","title","subheader"]),LSe=t=>{const{classes:e}=t;return Oe({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},DSe,e)},zSe=W("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(t,e)=>[{[`& .${HS.title}`]:e.title},{[`& .${HS.subheader}`]:e.subheader},e.root]}
4447)({display:"flex",alignItems:"center",padding:16}),VSe=W("div",{name:"MuiCardHeader",slot:"Avatar"})({display:"flex",flex:"0 0 auto",marginRight:16}),BSe=W("div",{name:"MuiCardHeader",slot:"Action"})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),$Se=W("div",{name:"MuiCardHeader",slot:"Content"})({flex:"1 1 auto",[`.${$S.root}:where(& .${HS.title}), .${$S.root}:where(& .${HS.subheader})`]:{display:"block"}}),AGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCardHeader"}),{action:i,avatar:o,component:s="div",disableTypography:a=!1,subheader:l,subheaderTypographyProps:c,title:u,titleTypographyProps:d,slots:f={},slotProps:h={},...p}=r,m={...r,component:s,disableTypography:a},g=LSe(m),y={slots:f,slotProps:{title:d,subheader:c,...h}};let b=u;const[v,S]=Ie("title",{className:g.title,elementType:Ri,externalForwardedProps:y,ownerState:m,additionalProps:{variant:o?"body2":"h5",component:"span"}});b!=null&&b.type!==Ri&&!a&&(b=x.jsx(v,{...S,children:b}));let I=l;const[O,T]=Ie("subheader",{className:g.subheader,elementType:Ri,externalForwardedProps:y,ownerState:m,additionalProps:{variant:o?"body2":"body1",color:"textSecondary",component:"span"}});I!=null&&I.type!==Ri&&!a&&(I=x.jsx(O,{...T,children:I}));const[A,R]=Ie("root",{ref:n,className:g.root,elementType:zSe,externalForwardedProps:{...y,...p,component:s},ownerState:m}),[k,P]=Ie("avatar",{className:g.avatar,elementType:VSe,externalForwardedProps:y,ownerState:m}),[C,_]=Ie("content",{className:g.content,elementType:$Se,externalForwardedProps:y,ownerState:m}),[M,V]=Ie("action",{className:g.action,elementType:BSe,externalForwardedProps:y,ownerState:m});return x.jsxs(A,{...R,children:[o&&x.jsx(k,{...P,children:o}),x.jsxs(C,{..._,children:[b,I]}),i&&x.jsx(M,{...V,children:i})]})});function FSe(t){return Pe("MuiCardMedia",t)}Le("MuiCardMedia",["root","media","img"]);const jSe=t=>{const{classes:e,isMediaComponent:n,isImageComponent:r}=t;return Oe({root:["root",n&&"media",r&&"img"]},FSe,e)},HSe=W("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{isMediaComponent:r,isImageComponent:i}=n;return[e.root,r&&e.media,i&&e.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),USe=["video","audio","picture","iframe","img"],qSe=["picture","img"],IGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCardMedia"}),{children:i,className:o,component:s="div",image:a,src:l,style:c,...u}=r,d=USe.includes(s),f=!d&&a?{backgroundImage:`url("${a}")`,...c}:c,h={...r,component:s,isMediaComponent:d,isImageComponent:qSe.includes(s)},p=jSe(h);return x.jsx(HSe,{className:de(p.root,o),as:s,role:!d&&a?"img":void 0,ref:n,style:f,ownerState:h,src:d?a||l:void 0,...u,children:i})});function WSe(t){return Pe("PrivateSwitchBase",t)}Le("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const GSe=t=>{const{classes:e,checked:n,disabled:r,edge:i}=t,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Q(i)}`],input:["input"]};return Oe(o,WSe,e)},KSe=W(so,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:t,ownerState:e})=>t==="start"&&e.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:t,ownerState:e})=>t==="end"&&e.size!=="small",style:{marginRight:-12}}]}),YSe=W("input",{name:"MuiSwitchBase",shouldForwardProp:yr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),IP=E.forwardRef(function(e,n){const{autoFocus:r,checked:i,checkedIcon:o,defaultChecked:s,disabled:a,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:f,inputRef:h,name:p,onBlur:m,onChange:g,onFocus:y,readOnly:b,required:v=!1,tabIndex:S,type:I,value:O,slots:T={},slotProps:A={},...R}=e,[k,P]=Ws({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),C=ra(),_=G=>{y&&y(G),C&&C.onFocus&&C.onFocus(G)},M=G=>{m&&m(G),C&&C.onBlur&&C.onBlur(G)},V=G=>{if(G.nativeEvent.defaultPrevented||b)return;const X=G.target.checked;P(X),g&&g(G,X)};let N=a;C&&typeof N>"u"&&(N=C.disabled);const z=I==="checkbox"||I==="radio",L={...e,checked:k,disabled:N,disableFocusRipple:l,edge:c},B=GSe(L),j={slots:T,slotProps:{input:f,...A}},[H,q]=Ie("root",{ref:n,elementType:KSe,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...R},getSlotProps:G=>({...G,onFocus:X=>{var K;(K=G.onFocus)==null||K.call(G,X),_(X)},onBlur:X=>{var K;(K=G.onBlur)==null||K.call(G,X),M(X)}}),ownerState:L,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[Y,Z]=Ie("input",{ref:h,elementType:YSe,className:B.input,externalForwardedProps:j,getSlotProps:G=>({...G,onChange:X=>{var K;(K=G.onChange)==null||K.call(G,X),V(X)}}),ownerState:L,additionalProps:{autoFocus:r,checked:i,defaultChecked:s,disabled:N,id:z?d:void 0,name:p,readOnly:b,required:v,tabIndex:S,type:I,...I==="checkbox"&&O===void 0?{}:{value:O}}});return x.jsxs(H,{...q,children:[x.jsx(Y,{...Z}),k?o:u]})}),XSe=F(x.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"})),QSe=F(x.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"})),JSe=F(x.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"}));function ZSe(t){return Pe("MuiCheckbox",t)}const hA=Le("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),exe=t=>{const{classes:e,indeterminate:n,color:r,size:i}=t,o={root:["root",n&&"indeterminate",`color${Q(r)}`,`size${Q(i)}`]},s=Oe(o,ZSe,e);return{...e,...s}},txe=W(IP,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,e[`size${Q(n.size)}`],n.color!=="default"&&e[`color${Q(n.color)}`]]}})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}}
4447,...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{[`&.${hA.checked}, &.${hA.indeterminate}`]:{color:(t.vars||t).palette[e].main},[`&.${hA.disabled}`]:{color:(t.vars||t).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),nxe=x.jsx(QSe,{}),rxe=x.jsx(XSe,{}),ixe=x.jsx(JSe,{}),RGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiCheckbox"}),{checkedIcon:i=nxe,color:o="primary",icon:s=rxe,indeterminate:a=!1,indeterminateIcon:l=ixe,inputProps:c,size:u="medium",disableRipple:d=!1,className:f,slots:h={},slotProps:p={},...m}=r,g=a?l:s,y=a?l:i,b={...r,disableRipple:d,color:o,indeterminate:a,size:u},v=exe(b),S=p.input??c,[I,O]=Ie("root",{ref:n,elementType:txe,className:de(v.root,f),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:p,...m},ownerState:b,additionalProps:{type:"checkbox",icon:E.cloneElement(g,{fontSize:g.props.fontSize??u}),checkedIcon:E.cloneElement(y,{fontSize:y.props.fontSize??u}),disableRipple:d,slots:h,slotProps:{input:E0(typeof S=="function"?S(b):S,{"data-indeterminate":a})}}});return x.jsx(I,{...O,classes:v})});function GL(t){return t.substring(2).toLowerCase()}function oxe(t,e){return e.documentElement.clientWidth<t.clientX||e.documentElement.clientHeight<t.clientY}function sxe(t){const{children:e,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:i,touchEvent:o="onTouchEnd"}=t,s=E.useRef(!1),a=E.useRef(null),l=E.useRef(!1),c=E.useRef(!1);E.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const u=fn(ad(e),a),d=jt(p=>{const m=c.current;c.current=!1;const g=In(a.current);if(!l.current||!a.current||"clientX"in p&&oxe(p,g))return;if(s.current){s.current=!1;return}let y;p.composedPath?y=p.composedPath().includes(a.current):y=!g.documentElement.contains(p.target)||a.current.contains(p.target),!y&&(n||!m)&&i(p)}),f=p=>m=>{c.current=!0;const g=e.props[p];g&&g(m)},h={ref:u};return o!==!1&&(h[o]=f(o)),E.useEffect(()=>{if(o!==!1){const p=GL(o),m=In(a.current),g=()=>{s.current=!0};return m.addEventListener(p,d),m.addEventListener("touchmove",g),()=>{m.removeEventListener(p,d),m.removeEventListener("touchmove",g)}}},[d,o]),r!==!1&&(h[r]=f(r)),E.useEffect(()=>{if(r!==!1){const p=GL(r),m=In(a.current);return m.addEventListener(p,d),()=>{m.removeEventListener(p,d)}}},[d,r]),E.cloneElement(e,h)}const MGe=f0e({createStyledComponent:W("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`maxWidth${Q(String(n.maxWidth))}`],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),useThemeProps:t=>Ne({props:t,name:"MuiContainer"})}),PR=typeof pP({})=="function",axe=(t,e)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...e&&!t.vars&&{colorScheme:t.palette.mode}}),lxe=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),AY=(t,e=!1)=>{var o,s;const n={};e&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([a,l])=>{var u,d;const c=t.getColorSchemeSelector(a);c.startsWith("@")?n[c]={":root":{colorScheme:(u=l.palette)==null?void 0:u.mode}}:n[c.replace(/\s*&/,"")]={colorScheme:(d=l.palette)==null?void 0:d.mode}});let r={html:axe(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...lxe(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...n};const i=(s=(o=t.components)==null?void 0:o.MuiCssBaseline)==null?void 0:s.styleOverrides;return i&&(r=[r,i]),r},pw="mui-ecs",cxe=t=>{const e=AY(t,!1),n=Array.isArray(e)?e[0]:e;return!t.vars&&n&&(n.html[`:root:has(${pw})`]={colorScheme:t.palette.mode}
4447),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([r,i])=>{var s,a;const o=t.getColorSchemeSelector(r);o.startsWith("@")?n[o]={[`:root:not(:has(.${pw}))`]:{colorScheme:(s=i.palette)==null?void 0:s.mode}}:n[o.replace(/\s*&/,"")]={[`&:not(:has(.${pw}))`]:{colorScheme:(a=i.palette)==null?void 0:a.mode}}}),e},uxe=pP(PR?({theme:t,enableColorScheme:e})=>AY(t,e):({theme:t})=>cxe(t));function kGe(t){const e=Ne({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=e;return x.jsxs(E.Fragment,{children:[PR&&x.jsx(uxe,{enableColorScheme:r}),!PR&&!r&&x.jsx("span",{className:pw,style:{display:"none"}}),n]})}const dxe={track:"#2b2b2b",thumb:"#6b6b6b",active:"#959595"};function PGe(t=dxe){return{scrollbarColor:`${t.thumb} ${t.track}`,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:t.track},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t.thumb,minHeight:24,border:`3px solid ${t.track}`},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:t.active},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:t.active},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:t.active},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:t.track}}}function IY(t=window){const e=t.document.documentElement.clientWidth;return t.innerWidth-e}function fxe(t){const e=In(t);return e.body===t?ui(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function vy(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function KL(t){return parseFloat(ui(t).getComputedStyle(t).paddingRight)||0}function hxe(t){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),r=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return n||r}function YL(t,e,n,r,i){const o=[e,n,...r];[].forEach.call(t.children,s=>{const a=!o.includes(s),l=!hxe(s);a&&l&&vy(s,i)})}function pA(t,e){let n=-1;return t.some((r,i)=>e(r)?(n=i,!0):!1),n}function pxe(t,e){const n=[],r=t.container;if(!e.disableScrollLock){if(fxe(r)){const s=IY(ui(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${KL(r)+s}px`;const a=In(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${KL(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=In(r).body;else{const s=r.parentElement,a=ui(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function mxe(t){const e=[];return[].forEach.call(t.children,n=>{n.getAttribute("aria-hidden")==="true"&&e.push(n)}),e}class gxe{constructor(){this.modals=[],this.containers=[]}add(e,n){let r=this.modals.indexOf(e);if(r!==-1)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&vy(e.modalRef,!1);const i=mxe(n);YL(n,e.mount,e.modalRef,i,!0);const o=pA(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:n,restore:null,hiddenSiblings:i}),r)}mount(e,n){const r=pA(this.containers,o=>o.modals.includes(e)),i=this.containers[r];i.restore||(i.restore=pxe(i,n))}remove(e,n=!0){const r=this.modals.indexOf(e);if(r===-1)return r;const i=pA(this.containers,s=>s.modals.includes(e)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),e.modalRef&&vy(e.modalRef,n),YL(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&vy(s.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}function gp(t){var n;let e=t.activeElement;for(;((n=e==null?void 0:e.shadowRoot)==null?void 0:n.activeElement)!=null;)e=e.shadowRoot.activeElement;return e}const yxe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function vxe(t){const e=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(e)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:e}function bxe(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const e=r=>t.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}function wxe(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||bxe(t))}function Sxe(t){const e=[],n=[];
vendor: 1,156 bytes, line 4447
4447return Array.from(t.querySelectorAll(yxe)).forEach((r,i)=>{const o=vxe(r);o===-1||!wxe(r)||(o===0?e.push(r):n.push({documentOrder:i,tabIndex:o,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(e)}function xxe(){return!0}function Exe(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Sxe,isEnabled:s=xxe,open:a}=t,l=E.useRef(!1),c=E.useRef(null),u=E.useRef(null),d=E.useRef(null),f=E.useRef(null),h=E.useRef(!1),p=E.useRef(null),m=fn(ad(e),p),g=E.useRef(null);E.useEffect(()=>{!a||!p.current||(h.current=!n)},[n,a]),E.useEffect(()=>{if(!a||!p.current)return;const v=In(p.current),S=gp(v);return p.current.contains(S)||(p.current.hasAttribute("tabIndex")||p.current.setAttribute("tabIndex","-1"),h.current&&p.current.focus()),()=>{i||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[a]),E.useEffect(()=>{if(!a||!p.current)return;const v=In(p.current),S=T=>{if(g.current=T,r||!s()||T.key!=="Tab")return;gp(v)===p.current&&T.shiftKey&&(l.current=!0,u.current&&u.current.focus())},I=()=>{var k,P;
4447const T=p.current;if(T===null)return;const A=gp(v);if(!v.hasFocus()||!s()||l.current){l.current=!1;return}if(T.contains(A)||r&&A!==c.current&&A!==u.current)return;if(A!==f.current)f.current=null;else if(f.current!==null)return;if(!h.current)return;let R=[];if((A===c.current||A===u.current)&&(R=o(p.current)),R.length>0){const C=!!((k=g.current)!=null&&k.shiftKey&&((P=g.current)==null?void 0:P.key)==="Tab"),_=R[0],M=R[R.length-1];typeof _!="string"&&typeof M!="string"&&(C?M.focus():_.focus())}else T.focus()};v.addEventListener("focusin",I),v.addEventListener("keydown",S,!0);const O=setInterval(()=>{const T=gp(v);T&&T.tagName==="BODY"&&I()},50);return()=>{clearInterval(O),v.removeEventListener("focusin",I),v.removeEventListener("keydown",S,!0)}},[n,r,i,s,a,o]);const y=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0,f.current=v.target;const S=e.props.onFocus;S&&S(v)},b=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0};return x.jsxs(E.Fragment,{children:[x.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),E.cloneElement(e,{ref:m,onFocus:y}),x.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}function Txe(t){return typeof t=="function"?t():t}function Cxe(t){return t?t.props.hasOwnProperty("in"):!1}const XL=()=>{},Kb=new gxe;function _xe(t){const{container:e,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:o,onTransitionExited:s,children:a,onClose:l,open:c,rootRef:u}=t,d=E.useRef({}),f=E.useRef(null),h=E.useRef(null),p=fn(h,u),[m,g]=E.useState(!c),y=Cxe(a);let b=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(b=!1);const v=()=>In(f.current),S=()=>(d.current.modalRef=h.current,d.current.mount=f.current,d.current),I=()=>{Kb.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},O=jt(()=>{const V=Txe(e)||v().body;Kb.add(S(),V),h.current&&I()}),T=()=>Kb.isTopModal(S()),A=jt(V=>{f.current=V,V&&(c&&T()?I():h.current&&vy(h.current,b))}),R=E.useCallback(()=>{Kb.remove(S(),b)},[b]);E.useEffect(()=>()=>{R()},[R]),E.useEffect(()=>{c?O():(!y||!i)&&R()},[c,R,y,i,O]);const k=V=>N=>{var z;(z=V.onKeyDown)==null||z.call(V,N),!(N.key!=="Escape"||N.which===229||!T())&&(n||(N.stopPropagation(),l&&l(N,"escapeKeyDown")))},P=V=>
4447N=>{var z;(z=V.onClick)==null||z.call(V,N),N.target===N.currentTarget&&l&&l(N,"backdropClick")};return{getRootProps:(V={})=>{const N=hf(t);delete N.onTransitionEnter,delete N.onTransitionExited;const z={...N,...V};return{role:"presentation",...z,onKeyDown:k(z),ref:p}},getBackdropProps:(V={})=>{const N=V;return{"aria-hidden":!0,...N,onClick:P(N),open:c}},getTransitionProps:()=>{const V=()=>{g(!1),o&&o()},N=()=>{g(!0),s&&s(),i&&R()};return{onEnter:bR(V,(a==null?void 0:a.props.onEnter)??XL),onExited:bR(N,(a==null?void 0:a.props.onExited)??XL)}},rootRef:p,portalRef:A,isTopModal:T,exited:m,hasTransition:y}}function Axe(t){return Pe("MuiModal",t)}Le("MuiModal",["root","hidden","backdrop"]);const Ixe=t=>{const{open:e,exited:n,classes:r}=t;return Oe({root:["root",!e&&n&&"hidden"],backdrop:["backdrop"]},Axe,r)},Rxe=W("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(Te(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),Mxe=W(xY,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),RP=E.forwardRef(function(e,n){const r=Ne({name:"MuiModal",props:e}),{BackdropComponent:i=Mxe,BackdropProps:o,classes:s,className:a,closeAfterTransition:l=!1,children:c,container:u,component:d,components:f={},componentsProps:h={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:g=!1,disablePortal:y=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:I=!1,onClose:O,onTransitionEnter:T,onTransitionExited:A,open:R,slotProps:k={},slots:P={},theme:C,..._}=r,M={...r,closeAfterTransition:l,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:g,disablePortal:y,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:S,keepMounted:I},{getRootProps:V,getBackdropProps:N,getTransitionProps:z,portalRef:L,isTopModal:B,exited:j,hasTransition:H}=_xe({...M,rootRef:n}),q={...M,exited:j},Y=Ixe(q),Z={};if(c.props.tabIndex===void 0&&(Z.tabIndex="-1"),H){const{onEnter:ne,onExited:ce}=z();Z.onEnter=ne,Z.onExited=ce}const G={slots:{root:f.Root,backdrop:f.Backdrop,...P},slotProps:{...h,...k}},[X,K]=Ie("root",{ref:n,elementType:Rxe,externalForwardedProps:{...G,..._,component:d},getSlotProps:V,ownerState:q,className:de(a,Y==null?void 0:Y.root,!q.open&&q.exited&&(Y==null?void 0:Y.hidden))}),[J,te]=Ie("backdrop",{ref:o==null?void 0:o.ref,elementType:i,externalForwardedProps:G,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:ne=>N({...ne,onClick:ce=>{ne!=null&&ne.onClick&&ne.onClick(ce)}}),className:de(o==null?void 0:o.className,Y==null?void 0:Y.backdrop),ownerState:q});return!I&&!R&&(!H||j)?null:x.jsx(wY,{ref:L,container:u,disablePortal:y,children:x.jsxs(X,{...K,children:[!S&&i?x.jsx(J,{...te}):null,x.jsx(Exe,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:b,isEnabled:B,open:R,children:E.cloneElement(c,Z)})]})})});function kxe(t){return Pe("MuiDialog",t)}const mA=Le("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),RY=E.createContext({}),Pxe=W(xY,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),Oxe=t=>{const{classes:e,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=t,s={root:["root"],backdrop:["backdrop"],container:["container",`scroll${Q(n)}`],paper:["paper",`paperScroll${Q(n)}`,`paperWidth${Q(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return Oe(s,kxe,e)},Nxe=W(RP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),Dxe=W("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e[`scroll${Q(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',dis
vendor: 28,694 bytes, line 4447
4447play:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Lxe=W(na,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`scrollPaper${Q(n.scroll)}`],e[`paperWidth${Q(String(n.maxWidth))}`],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(Te(({theme:t})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:t.breakpoints.unit==="px"?Math.max(t.breakpoints.values.xs,444):`max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,[`&.${mA.paperScrollBody}`]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(t.breakpoints.values).filter(e=>e!=="xs").map(e=>({props:{maxWidth:e},style:{maxWidth:`${t.breakpoints.values[e]}${t.breakpoints.unit}`,[`&.${mA.paperScrollBody}`]:{[t.breakpoints.down(t.breakpoints.values[e]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${mA.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),OGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDialog"}),i=Ho(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,"aria-modal":l=!0,BackdropComponent:c,BackdropProps:u,children:d,className:f,disableEscapeKeyDown:h=!1,fullScreen:p=!1,fullWidth:m=!1,maxWidth:g="sm",onClick:y,onClose:b,open:v,PaperComponent:S=na,PaperProps:I={},scroll:O="paper",slots:T={},slotProps:A={},TransitionComponent:R=kR,transitionDuration:k=o,TransitionProps:P,...C}=r,_={...r,disableEscapeKeyDown:h,fullScreen:p,fullWidth:m,maxWidth:g,scroll:O},M=Oxe(_),V=E.useRef(),N=oe=>{V.current=oe.target===oe.currentTarget},z=oe=>{y&&y(oe),V.current&&(V.current=null,b&&b(oe,"backdropClick"))},L=Bo(a),B=E.useMemo(()=>({titleId:L}),[L]),j={transition:R,...T},H={transition:P,paper:I,backdrop:u,...A},q={slots:j,slotProps:H},[Y,Z]=Ie("root",{elementType:Nxe,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:_,className:de(M.root,f),ref:n}),[G,X]=Ie("backdrop",{elementType:Pxe,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:_,className:M.backdrop}),[K,J]=Ie("paper",{elementType:Lxe,shouldForwardComponentProp:!0,externalForwardedProps:q,ownerState:_,className:de(M.paper,I.className)}),[te,ne]=Ie("container",{elementType:Dxe,externalForwardedProps:q,ownerState:_,className:M.container}),[ce,ie]=Ie("transition",{elementType:kR,externalForwardedProps:q,ownerState:_,additionalProps:{appear:!0,in:v,timeout:k,role:"presentation"}});return x.jsx(Y,{closeAfterTransition:!0,slots:{backdrop:G},slotProps:{backdrop:{transitionDuration:k,as:c,...X}},disableEscapeKeyDown:h,onClose:b,open:v,onClick:z,...Z,...C,children:x.jsx(ce,{...ie,children:x.jsx(te,{onMouseDown:N,...ne,children:x.jsx(K,{as:S,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":L,"aria-modal":l,...J,children:x.jsx(RY.Provider,{value:B,children:d})})})})})});function zxe(t){return Pe("MuiDialogActions",t)}Le("MuiDialogActions",["root","spacing"]);const Vxe=t=>{const{classes:e,disableSpacing:n}=t;return Oe({root:["root",!n&&"spacing"]},zxe,e)},Bxe=W("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:t})=>!t.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),NGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDialogActions"}),{className:i,disableSpacing:o=!1,...s}=r,a={...r,disableSpacing:o},l=Vxe(a);return x.jsx(Bxe,{className:de(l.root,i),ownerState:a,ref:n,...s})});function $xe(t){return Pe("MuiDialogContent",t)}Le("MuiDialogContent",["root","dividers"]);function Fxe(t){return Pe("MuiDialogTitle",t)}const jxe=Le("MuiDialogTitle",["root"]),Hxe=t=>{const{classes:e,dividers:n}=t;return Oe({root:["root",n&&"dividers"]},$xe,e)},Uxe=W("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(Te(({theme:t})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(t.vars||t).palette.divider}`,borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${jxe.root} + &`]:{paddingTop:0}}}]}))),DGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDialogContent"}),{className:i,dividers:o=!1,...s}=r,a={...r,dividers:o},l=Hxe(a);return x.jsx(Uxe,{className:de(l.root,i),ownerState:a,ref:n,...s})});function qxe(t){return Pe("MuiDialogContentText",t)}Le("MuiDialogContentText",["root"]);const Wxe=t=>{const{classes:e}=t,r=Oe({root:["root"]},qxe,e);return{...e,...r}},Gxe=W(Ri,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiDialogContentText",slot:"Root"})({}),LGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDialogContentText"}),{children:i,className:o,...s}=r,a=Wxe(s);return x.jsx(Gxe,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:de(a.root,o),...r,classes:a})}),Kxe=t=>{const{classes:e}=t;return Oe({root:["root"]},Fxe,e)},Yxe=W(Ri,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),zGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDialogTitle"}),{className:i,id:o,...s}=r,a=r,l=Kxe(a),{titleId:c=o}=E.useContext(RY);return x.jsx(Yxe,{component:"h2",className:de(l.root,i),ownerState:a,ref:n,variant:"h6",id:o??c,...s})});function Xxe(t){return Pe("MuiDivider",t)}const QL=Le("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Qxe=t=>{const{absolute:e,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:l}=t;return Oe({root:["root",e&&"absolute",l,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},Xxe,r)},Jxe=W("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,n.orientation==="vertical"&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&n.orientation==="vertical"&&e.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&e.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&e.textAlignLeft]}})(Te(({theme:t})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:t.alpha((t.vars||t).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:t.spacing(2),marginRight:t.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:t.spacing(1),marginBottom:t.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&e.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(t.vars||t).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>e.orientation==="vertical"&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(t.vars||t).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>e.textAlign==="right"&&e.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>e.textAlign==="left"&&e.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Zxe=W("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,n.orientation==="vertical"&&e.wrapperVertical]}})(Te(({theme:t})=>({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`}}]}))),JL=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,orientation:a="horizontal",component:l=o||a==="vertical"?"div":"hr",flexItem:c=!1,light:u=!1,role:d=l!=="hr"?"separator":void 0,textAlign:f="center",variant:h="fullWidth",...p}=r,m={...r,absolute:i,component:l,flexItem:c,light:u,orientation:a,role:d,textAlign:f,variant:h},g=Qxe(m);return x.jsx(Jxe,{as:l,className:de(g.root,s),role:d,ref:n,ownerState:m,"aria-orientation":d==="separator"&&(l!=="hr"||a==="vertical")?a:void 0,...p,children:o?x.jsx(Zxe,{className:g.wrapper,ownerState:m,children:o}):null})});JL&&(JL.muiSkipListHighlight=!0);function eEe(t,e,n){const r=e.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),o=ui(e);let s;if(e.fakeTransform)s=e.fakeTransform;else{const c=o.getComputedStyle(e);s=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let a=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const c=s.split("(")[1].split(")")[0].split(",");a=parseInt(c[4],10),l=parseInt(c[5],10)}return t==="left"?i?`translateX(${i.right+a-r.left}px)`:`translateX(${o.innerWidth+a-r.left}px)`:t==="right"?i?`translateX(-${r.right-i.left-a}px)`:`translateX(-${r.left+r.width-a}px)`:t==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${o.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function tEe(t){return typeof t=="function"?t():t}function Yb(t,e,n){const r=tEe(n),i=eEe(t,e,r);i&&(e.style.webkitTransform=i,e.style.transform=i)}const nEe=E.forwardRef(function(e,n){const r=Ho(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:a=!0,children:l,container:c,direction:u="down",easing:d=i,in:f,onEnter:h,onEntered:p,onEntering:m,onExit:g,onExited:y,onExiting:b,style:v,timeout:S=o,TransitionComponent:I=Uo,...O}=e,T=E.useRef(null),A=fn(ad(l),T,n),R=L=>B=>{L&&(B===void 0?L(T.current):L(T.current,B))},k=R((L,B)=>{Yb(u,L,c),bP(L),h&&h(L,B)}),P=R((L,B)=>{const j=rc({timeout:S,style:v,easing:d},{mode:"enter"});L.style.webkitTransition=r.transitions.create("-webkit-transform",{...j}),L.style.transition=r.transitions.create("transform",{...j}),L.style.webkitTransform="none",L.style.transform="none",m&&m(L,B)}),C=R(p),_=R(b),M=R(L=>{const B=rc({timeout:S,style:v,easing:d},{mode:"exit"});L.style.webkitTransition=r.transitions.create("-webkit-transform",B),L.style.transition=r.transitions.create("transform",B),Yb(u,L,c),g&&g(L)}),V=R(L=>{L.style.webkitTransition="",L.style.transition="",y&&y(L)}),N=L=>{s&&s(T.current,L)},z=E.useCallback(()=>{T.current&&Yb(u,T.current,c)},[u,c]);return E.useEffect(()=>{if(f||u==="down"||u==="right")return;const L=Fv(()=>{T.current&&Yb(u,T.current,c)}),B=ui(T.current);return B.addEventListener("resize",L),()=>{L.clear(),B.removeEventListener("resize",L)}},[u,f,c]),E.useEffect(()=>{f||z()},[f,z]),x.jsx(I,{nodeRef:T,onEnter:k,onEntered:C,onEntering:P,onExit:M,onExited:V,onExiting:_,addEndListener:N,appear:a,in:f,timeout:S,...O,children:(L,{ownerState:B,...j})=>E.cloneElement(l,{ref:A,style:{visibility:L==="exited"&&!f?"hidden":void 0,...v,...l.props.style},...j})})});function rEe(t){return Pe("MuiDrawer",t)}Le("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const MY=(t,e)=>{const{ownerState:n}=t;return[e.root,(n.variant==="permanent"||n.variant==="persistent")&&e.docked,n.variant==="temporary"&&e.modal]},iEe=t=>{const{classes:e,anchor:n,variant:r}=t,i={root:["root",`anchor${Q(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Q(n)}`,r!=="temporary"&&`paperAnchorDocked${Q(n)}`]};return Oe(i,rEe,e)},oEe=W(RP,{name:"MuiDrawer",slot:"Root",overridesResolver:MY})(Te(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer}))),sEe=W("div",{shouldForwardProp:yr,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:MY})({flex:"0 0 auto"}),aEe=W(na,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e[`paperAnchor${Q(n.anchor)}`],n.variant!=="temporary"&&e[`paperAnchorDocked${Q(n.anchor)}`]]}})(Te(({theme:t})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>e.anchor==="left"&&e.variant!=="temporary",style:{borderRight:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>e.anchor==="top"&&e.variant!=="temporary",style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>e.anchor==="right"&&e.variant!=="temporary",style:{borderLeft:`1px solid ${(t.vars||t).palette.divider}`}},{props:({ownerState:e})=>e.anchor==="bottom"&&e.variant!=="temporary",style:{borderTop:`1px solid ${(t.vars||t).palette.divider}`}}]}))),kY={left:"right",right:"left",top:"down",bottom:"up"};function Hd(t){return["left","right"].includes(t)}function M1({direction:t},e){return t==="rtl"&&Hd(e)?kY[e]:e}const lEe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiDrawer"}),i=Ho(),o=Za(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:l,children:c,className:u,elevation:d=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h,...p}={},onClose:m,open:g=!1,PaperProps:y={},SlideProps:b,TransitionComponent:v,transitionDuration:S=s,variant:I="temporary",slots:O={},slotProps:T={},...A}=r,R=E.useRef(!1);E.useEffect(()=>{R.current=!0},[]);const k=M1({direction:o?"rtl":"ltr"},a),C={...r,anchor:a,elevation:d,open:g,variant:I,...A},_=iEe(C),M={slots:{transition:v,...O},slotProps:{paper:y,transition:b,...T,backdrop:E0(T.backdrop||{...l,...h},{transitionDuration:S})}},[V,N]=Ie("root",{ref:n,elementType:oEe,className:de(_.root,_.modal,u),shouldForwardComponentProp:!0,ownerState:C,externalForwardedProps:{...M,...A,...p},additionalProps:{open:g,onClose:m,hideBackdrop:f,slots:{backdrop:M.slots.backdrop},slotProps:{backdrop:M.slotProps.backdrop}}}),[z,L]=Ie("paper",{elementType:aEe,shouldForwardComponentProp:!0,className:de(_.paper,y.className),ownerState:C,externalForwardedProps:M,additionalProps:{elevation:I==="temporary"?d:0,square:!0,...I==="temporary"&&{role:"dialog","aria-modal":"true"}}}),[B,j]=Ie("docked",{elementType:sEe,ref:n,className:de(_.root,_.docked,u),ownerState:C,externalForwardedProps:M,additionalProps:A}),[H,q]=Ie("transition",{elementType:nEe,ownerState:C,externalForwardedProps:M,additionalProps:{in:g,direction:kY[k],timeout:S,appear:R.current}}),Y=x.jsx(z,{...L,children:c});if(I==="permanent")return x.jsx(B,{...j,children:Y});const Z=x.jsx(H,{...q,children:Y});return I==="persistent"?x.jsx(B,{...j,children:Z}):x.jsx(V,{...N,children:Z})});function cEe(t){return Pe("MuiFab",t)}const ZL=Le("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]),uEe=t=>{const{color:e,variant:n,classes:r,size:i}=t,o={root:["root",n,`size${Q(i)}`,e==="inherit"?"colorInherit":e]},s=Oe(o,cEe,r);return{...r,...s}},dEe=W(so,{name:"MuiFab",slot:"Root",shouldForwardProp:t=>yr(t)||t==="classes",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${Q(n.size)}`],n.color==="inherit"&&e.colorInherit,e[Q(n.size)],e[n.color]]}})(Te(({theme:t})=>{var e,n;return{...t.typography.button,minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.grey[900]:(n=(e=t.palette).getContrastText)==null?void 0:n.call(e,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${ZL.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),Te(({theme:t})=>({variants:[...Object.entries(t.palette).filter(Bt(["dark","contrastText"])).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].contrastText,backgroundColor:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:(t.vars||t).palette[e].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e].main}}}}))]})),Te(({theme:t})=>({[`&.${ZL.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}))),VGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFab"}),{children:i,className:o,color:s="default",component:a="button",disabled:l=!1,disableFocusRipple:c=!1,focusVisibleClassName:u,size:d="large",variant:f="circular",...h}=r,p={...r,color:s,component:a,disabled:l,disableFocusRipple:c,size:d,variant:f},m=uEe(p);return x.jsx(dEe,{className:de(m.root,o),component:a,disabled:l,focusRipple:!c,focusVisibleClassName:de(m.focusVisible,u),ownerState:p,ref:n,...h,classes:m,children:i})}),fEe=t=>{const{classes:e,disableUnderline:n,startAdornment:r,endAdornment:i,size:o,hiddenLabel:s,multiline:a}=t,l={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",o==="small"&&`size${Q(o)}`,s&&"hiddenLabel",a&&"multiline"],input:["input"]},c=Oe(l,Owe,e);return{...e,...c}},hEe=W(RT,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...AT(t,e),!n.disableUnderline&&e.underline]}})(Te(({theme:t})=>{const e=t.palette.mode==="light",n=e?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=e?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=e?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=e?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r}},[`&.${go.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:r},[`&.${go.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${go.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${go.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${go.disabled}, .${go.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${go.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Bt()).map(([s])=>{var a;return{props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(a=(t.vars||t).palette[s])==null?void 0:a.main}`}}}}),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:a})=>s.multiline&&a==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),pEe=W(MT,{name:"MuiFilledInput",slot:"Input",overridesResolver:IT})(Te(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),MP=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:a=!1,hiddenLabel:l,inputComponent:c="input",multiline:u=!1,slotProps:d,slots:f={},type:h="text",...p}=r,m={...r,disableUnderline:i,fullWidth:a,inputComponent:c,multiline:u,type:h},g=fEe(r),y={root:{ownerState:m},input:{ownerState:m}},b=d??s?Kr(y,d??s):y,v=f.root??o.Root??hEe,S=f.input??o.Input??pEe;return x.jsx(kT,{slots:{root:v,input:S},slotProps:b,fullWidth:a,inputComponent:c,multiline:u,ref:n,type:h,...p,classes:g})});MP.muiName="Input";function mEe(t){return Pe("MuiFormControl",t)}Le("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const gEe=t=>{const{classes:e,margin:n,fullWidth:r}=t,i={root:["root",n!=="none"&&`margin${Q(n)}`,r&&"fullWidth"]};return Oe(i,mEe,e)},yEe=W("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`margin${Q(n.margin)}`],n.fullWidth&&e.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),vEe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:l=!1,error:c=!1,focused:u,fullWidth:d=!1,hiddenLabel:f=!1,margin:h="none",required:p=!1,size:m="medium",variant:g="outlined",...y}=r,b={...r,color:s,component:a,disabled:l,error:c,fullWidth:d,hiddenLabel:f,margin:h,required:p,size:m,variant:g},v=gEe(b),[S,I]=E.useState(()=>{let V=!1;return i&&E.Children.forEach(i,N=>{if(!my(N,["Input","Select"]))return;const z=my(N,["Select"])?N.props.input:N;z&&Iwe(z.props)&&(V=!0)}),V}),[O,T]=E.useState(()=>{let V=!1;return i&&E.Children.forEach(i,N=>{my(N,["Input","Select"])&&(jS(N.props,!0)||jS(N.props.inputProps,!0))&&(V=!0)}),V}),[A,R]=E.useState(!1);l&&A&&R(!1);const k=u!==void 0&&!l?u:A;let P;E.useRef(!1);const C=E.useCallback(()=>{T(!0)},[]),_=E.useCallback(()=>{T(!1)},[]),M=E.useMemo(()=>({adornedStart:S,setAdornedStart:I,color:s,disabled:l,error:c,filled:O,focused:k,fullWidth:d,hiddenLabel:f,size:m,onBlur:()=>{R(!1)},onFocus:()=>{R(!0)},onEmpty:_,onFilled:C,registerEffect:P,required:p,variant:g}),[S,s,l,c,O,k,d,f,P,_,C,p,m,g]);return x.jsx(_T.Provider,{value:M,children:x.jsx(yEe,{as:a,ownerState:b,className:de(v.root,o),ref:n,...y,children:i})})});function bEe(t){return Pe("MuiFormControlLabel",t)}const k1=Le("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),wEe=t=>{const{classes:e,disabled:n,labelPlacement:r,error:i,required:o}=t,s={root:["root",n&&"disabled",`labelPlacement${Q(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Oe(s,bEe,e)},SEe=W("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${k1.label}`]:e.label},e.root,e[`labelPlacement${Q(n.labelPlacement)}`]]}})(Te(({theme:t})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${k1.disabled}`]:{cursor:"default"},[`& .${k1.label}`]:{[`&.${k1.disabled}`]:{color:(t.vars||t).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:e})=>e==="start"||e==="top"||e==="bottom",style:{marginLeft:16}}]}))),xEe=W("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Te(({theme:t})=>({[`&.${k1.error}`]:{color:(t.vars||t).palette.error.main}}))),BGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFormControlLabel"}),{checked:i,className:o,componentsProps:s={},control:a,disabled:l,disableTypography:c,inputRef:u,label:d,labelPlacement:f="end",name:h,onChange:p,required:m,slots:g={},slotProps:y={},value:b,...v}=r,S=ra(),I=l??a.props.disabled??(S==null?void 0:S.disabled),O=m??a.props.required,T={disabled:I,required:O};["checked","name","onChange","value","inputRef"].forEach(V=>{typeof a.props[V]>"u"&&typeof r[V]<"u"&&(T[V]=r[V])});const A=ld({props:r,muiFormControl:S,states:["error"]}),R={...r,disabled:I,labelPlacement:f,required:O,error:A.error},k=wEe(R),P={slots:g,slotProps:{...s,...y}},[C,_]=Ie("typography",{elementType:Ri,externalForwardedProps:P,ownerState:R});let M=d;return M!=null&&M.type!==Ri&&!c&&(M=x.jsx(C,{component:"span",..._,className:de(k.label,_==null?void 0:_.className),children:M})),x.jsxs(SEe,{className:de(k.root,o),ownerState:R,ref:n,...v,children:[E.cloneElement(a,T),O?x.jsxs("div",{children:[M,x.jsxs(xEe,{ownerState:R,"aria-hidden":!0,
4447className:k.asterisk,children:[" ","*"]})]}):M]})});function EEe(t){return Pe("MuiFormGroup",t)}Le("MuiFormGroup",["root","row","error"]);const TEe=t=>{const{classes:e,row:n,error:r}=t;return Oe({root:["root",n&&"row",r&&"error"]},EEe,e)},CEe=W("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.row&&e.row]}})({display:"flex",flexDirection:"column",flexWrap:"wrap",variants:[{props:{row:!0},style:{flexDirection:"row"}}]}),_Ee=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFormGroup"}),{className:i,row:o=!1,...s}=r,a=ra(),l=ld({props:r,muiFormControl:a,states:["error"]}),c={...r,row:o,error:l.error},u=TEe(c);return x.jsx(CEe,{className:de(u.root,i),ownerState:c,ref:n,...s})});function AEe(t){return Pe("MuiFormHelperText",t)}const e7=Le("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var t7;const IEe=t=>{const{classes:e,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:l}=t,c={root:["root",i&&"disabled",o&&"error",r&&`size${Q(r)}`,n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Oe(c,AEe,e)},REe=W("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e[`size${Q(n.size)}`],n.contained&&e.contained,n.filled&&e.filled]}})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${e7.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${e7.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),MEe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p",disabled:a,error:l,filled:c,focused:u,margin:d,required:f,variant:h,...p}=r,m=ra(),g=ld({props:r,muiFormControl:m,states:["variant","size","disabled","error","filled","focused","required"]}),y={...r,component:s,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete y.ownerState;const b=IEe(y);return x.jsx(REe,{as:s,className:de(b.root,o),ref:n,...p,ownerState:y,children:i===" "?t7||(t7=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):i})});function kEe(t){return Pe("MuiFormLabel",t)}
4447const by=Le("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),PEe=t=>{const{classes:e,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=t,l={root:["root",`color${Q(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return Oe(l,kEe,e)},OEe=W("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.color==="secondary"&&e.colorSecondary,n.filled&&e.filled]}})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{[`&.${by.focused}`]:{color:(t.vars||t).palette[e].main}}})),{props:{},style:{[`&.${by.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${by.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),NEe=W("span",{name:"MuiFormLabel",slot:"Asterisk"})(Te(({theme:t})=>({[`&.${by.error}`]:{color:(t.vars||t).palette.error.main}}))),DEe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiFormLabel"}),{children:i,className:o,color:s,component:a="label",disabled:l,error:c,filled:u,focused:d,required:f,...h}=r,p=ra(),m=ld({props:r,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:m.color||"primary",component:a,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required},y=PEe(g);return x.jsxs(OEe,{as:a,ownerState:g,className:de(y.root,o),ref:n,...h,children:[i,m.required&&x.jsxs(NEe,{ownerState:g,"aria-hidden":!0,className:y.asterisk,children:[" ","*"]})]})}),$Ge=I0e({createStyledComponent:W("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.container&&e.container]}}),componentName:"MuiGrid",useThemeProps:t=>Ne({props:t,name:"MuiGrid"}),useTheme:Ho});function OR(t){return`scale(${t}, ${t**2})`}const LEe={entering:{opacity:1,transform:OR(1)},entered:{opacity:1,transform:"none"}},gA=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),_0=E.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:l,onEntered:c,onEntering:u,onExit:d,onExited:f,onExiting:h,style:p,timeout:m="auto",TransitionComponent:g=Uo,...y}=e,b=Ol(),v=E.useRef(),S=Ho(),I=E.useRef(null),O=fn(I,ad(o),n),T=V=>N=>{if(V){const z=I.current;N===void 0?V(z):V(z,N)}},A=T(u),R=T((V,N)=>{bP(V);const{duration:z,delay:L,easing:B}=rc({style:p,timeout:m,easing:s},{mode:"enter"});let j;m==="auto"?(j=S.transitions.getAutoHeightDuration(V.clientHeight),v.current=j):j=z,V.style.transition=[S.transitions.create("opacity",{duration:j,delay:L}),S.transitions.create("transform",{duration:gA?j:j*.666,delay:L,easing:B})].join(","),l&&l(V,N)}),k=T(c),P=T(h),C=T(V=>{const{duration:N,delay:z,easing:L}=rc({style:p,timeout:m,easing:s},{mode:"exit"});let B;m==="auto"?(B=S.transitions.getAutoHeightDuration(V.clientHeight),v.current=B):B=N,V.style.transition=[S.transitions.create("opacity",{duration:B,delay:z}),S.transitions.create("transform",{duration:gA?B:B*.666,delay:gA?z:z||B*.333,easing:L})].join(","),V.style.opacity=0,V.style.transform=OR(.75),d&&d(V)}),_=T(f),M=V=>{m==="auto"&&b.start(v.current||0,V),r&&r(I.current,V)};return x.jsx(g,{appear:i,in:a,nodeRef:I,onEnter:R,onEntered:k,onEntering:A,onExit:C,onExited:_,onExiting:P,addEndListener:M,timeout:m==="auto"?null:m,...y,children:(V,{ownerState:N,...z})=>E.cloneElement(o,{style:{opacity:0,transform:OR(.75),visibility:V==="exited"&&!a?"hidden":void 0,...LEe[V],...p,...o.props.style},ref:O,...z})})});_0&&(_0.muiSupportAuto=!0);const zEe=t=>{const{classes:e,disableUnderline:n}=t,i=Oe({root:["root",!n&&"underline"],input:["input"]},kwe,e);return{...e,...i}},VEe=W(RT,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...AT(t,e),!n.disableUnderline&&e.underline]}})(Te(({theme:t})=>{let n=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";
vendor: 5,379 bytes, line 4447
4447return t.vars&&(n=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${jc.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${jc.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${jc.disabled}, .${jc.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${jc.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Bt()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[r].main}`}}}))]}})),BEe=W(MT,{name:"MuiInput",slot:"Input",overridesResolver:IT})({}),kP=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiInput"}),{disableUnderline:i=!1,components:o={},componentsProps:s,fullWidth:a=!1,inputComponent:l="input",multiline:c=!1,slotProps:u,slots:d={},type:f="text",...h}=r,p=zEe(r),g={root:{ownerState:{disableUnderline:i}}},y=u??s?Kr(u??s,g):g,b=d.root??o.Root??VEe,v=d.input??o.Input??BEe;return x.jsx(kT,{slots:{root:b,input:v},slotProps:y,fullWidth:a,inputComponent:l,multiline:c,ref:n,type:f,...h,classes:p})});kP.muiName="Input";function $Ee(t){return Pe("MuiInputAdornment",t)}const n7=Le("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var r7;const FEe=(t,e)=>{const{ownerState:n}=t;return[e.root,e[`position${Q(n.position)}`],n.disablePointerEvents===!0&&e.disablePointerEvents,e[n.variant]]},jEe=t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:r,position:i,size:o,variant:s}=t,a={root:["root",n&&"disablePointerEvents",i&&`position${Q(i)}`,s,r&&"hiddenLabel",o&&`size${Q(o)}`]};return Oe(a,$Ee,e)},HEe=W("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:FEe})(Te(({theme:t})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${n7.positionStart}&:not(.${n7.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),FGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiInputAdornment"}),{children:i,className:o,component:s="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:c,variant:u,...d}=r,f=ra()||{};let h=u;u&&f.variant,f&&!h&&(h=f.variant);const p={...r,hiddenLabel:f.hiddenLabel,size:f.size,disablePointerEvents:a,position:c,variant:h},m=jEe(p);return x.jsx(_T.Provider,{value:null,children:x.jsx(HEe,{as:s,ownerState:p,className:de(m.root,o),ref:n,...d,children:typeof i=="string"&&!l?x.jsx(Ri,{color:"textSecondary",children:i}):x.jsxs(E.Fragment,{children:[c==="start"?r7||(r7=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,i]})})})});function UEe(t){return Pe("MuiInputLabel",t)}Le("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const qEe=t=>{const{classes:e,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=t,l={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="medium"&&`size${Q(r)}`,s],asterisk:[a&&"asterisk"]},c=Oe(l,UEe,e);return{...e,...c}},WEe=W(DEe,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${by.asterisk}`]:e.asterisk},e.root,n.formControl&&e.formControl,n.size==="small"&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,n.focused&&e.focused,e[n.variant]]}})(Te(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:e})=>e.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:e})=>e.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7
4447px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:e,ownerState:n,size:r})=>e==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:e,ownerState:n})=>e==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),GEe=E.forwardRef(function(e,n){const r=Ne({name:"MuiInputLabel",props:e}),{disableAnimation:i=!1,margin:o,shrink:s,variant:a,className:l,...c}=r,u=ra();let d=s;typeof d>"u"&&u&&(d=u.filled||u.focused||u.adornedStart);const f=ld({props:r,muiFormControl:u,states:["size","variant","required","focused"]}),h={...r,disableAnimation:i,formControl:u,shrink:d,size:f.size,variant:f.variant,required:f.required,focused:f.focused},p=qEe(h);return x.jsx(WEe,{"data-shrink":d,ref:n,className:de(p.root,l),...c,ownerState:h,classes:p})});function KEe(t){return Pe("MuiLinearProgress",t)}Le("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const NR=4,DR=Ja` 4448 0% { 4449 left: -35%; 4450 right: 100%; 4451 } 4452 4453 60% { 4454 left: 100%; 4455 right: -90%; 4456 } 4457 4458 100% { 4459 left: 100%; 4460 right: -90%; 4461 } 4462`,YEe=typeof DR!="string"?od` 4463 animation: ${DR} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; 4464 `:null,LR=Ja` 4465 0% { 4466 left: -200%; 4467 right: 100%; 4468 } 4469 4470 60% { 4471 left: 107%; 4472 right: -8%; 4473 } 4474 4475 100% { 4476 left: 107%; 4477 right: -8%; 4478 } 4479`,XEe=typeof LR!="string"?od` 4480 animation: ${LR} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; 4481 `:null,zR=Ja` 4482 0% { 4483 opacity: 1; 4484 background-position: 0 -23px; 4485 } 4486 4487 60% { 4488 opacity: 0; 4489 background-position: 0 -23px; 4490 } 4491 4492 100% { 4493 opacity: 1; 4494 background-position: -200px -23px; 4495 } 4496`,QEe=typeof zR!="string"?od` 4497 animation: ${zR} 3s infinite linear; 4498 `:null,JEe=t=>{const{classes:e,variant:n,color:r}=t,i={root:["root",`color${Q(r)}`,n],dashed:["dashed",`dashedColor${Q(r)}`],bar1:["bar","bar1",`barColor${Q(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Q(r)}`,n==="buffer"&&`color${Q(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return Oe(i,KEe,e)},PP=(t,e)=>t.vars?t.vars.palette.LinearProgress[`${e}Bg`]:t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.5),ZEe=W("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`color${Q(n.color)}`],e[n.variant]]}})(Te(({theme:t})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{backgroundColor:PP(t,e)}})),{props:({ownerState:e})=>e.color==="inherit"&&e.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),eTe=W("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.dashed,e[`dashedColor${Q(n.color)}`]]}})(Te(({theme:t})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}}
4498,...Object.entries(t.palette).filter(Bt()).map(([e])=>{const n=PP(t,e);return{props:{color:e},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),QEe||{animation:`${zR} 3s infinite linear`}),tTe=W("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e.bar1,e[`barColor${Q(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar1Indeterminate,n.variant==="determinate"&&e.bar1Determinate,n.variant==="buffer"&&e.bar1Buffer]}})(Te(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{backgroundColor:(t.vars||t).palette[e].main}})),{props:{variant:"determinate"},style:{transition:`transform .${NR}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${NR}s linear`}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:YEe||{animation:`${DR} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),nTe=W("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e.bar2,e[`barColor${Q(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&e.bar2Indeterminate,n.variant==="buffer"&&e.bar2Buffer]}})(Te(({theme:t})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{"--LinearProgressBar2-barColor":(t.vars||t).palette[e].main}})),{props:({ownerState:e})=>e.variant!=="buffer"&&e.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:e})=>e.variant!=="buffer"&&e.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e,variant:"buffer"},style:{backgroundColor:PP(t,e),transition:`transform .${NR}s linear`}})),{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:{width:"auto"}},{props:({ownerState:e})=>e.variant==="indeterminate"||e.variant==="query",style:XEe||{animation:`${LR} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),jGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:l="indeterminate",...c}=r,u={...r,color:o,variant:l},d=JEe(u),f=Za(),h={},p={bar1:{},bar2:{}};if((l==="determinate"||l==="buffer")&&s!==void 0){h["aria-valuenow"]=Math.round(s),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let m=s-100;f&&(m=-m),p.bar1.transform=`translateX(${m}%)`}if(l==="buffer"&&a!==void 0){let m=(a||0)-100;f&&(m=-m),p.bar2.transform=`translateX(${m}%)`}return x.jsxs(ZEe,{className:de(d.root,i),ownerState:u,role:"progressbar",...h,ref:n,...c,children:[l==="buffer"?x.jsx(eTe,{className:d.dashed,ownerState:u}):null,x.jsx(tTe,{className:d.bar1,ownerState:u,style:p.bar1}),l==="determinate"?null:x.jsx(nTe,{className:d.bar2,ownerState:u,style:p.bar2})]})});function rTe(t){return Pe("MuiLink",t)}const iTe=Le("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),oTe=({theme:t,ownerState:e})=>{const n=e.color;if("colorSpace"in t&&t.colorSpace){const o=va(t,`palette.${n}.main`)||va(t,`palette.${n}`)||e.color;return t.alpha(o,.4)}const r=va(t,`palette.${n}.main`,!1)||va(t,`palette.${n}`,!1)||e.color,i=va(t,`palette.${n}.mainChannel`)||va(t,`palette.${n}Channel`);return"vars"in t&&i?`rgba(${i} / 0.4)`:x0(r,.4)},i7={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sTe=t=>{const{classes:e,component:n,focusVisible:r,underline:i}=t,o={root:["root",`underline${Q(i)}`,n==="button"&&"button",r&&"focusVisible"]};return Oe(o,rTe,e)},aTe=W(Ri,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`underline${Q(n.underline)}`],n.component==="button"&&e.button]}})(Te(({theme:t})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:n})=>e==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},{props:({underline:e,ownerState:n})=>e==="always"&&n.color==="inherit",style:t.colorSpace?{textDecorationColor:t.alpha("currentColor",.4)}:null}
vendor: 32,723 bytes, line 4498
4498,...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{underline:"always",color:e},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette[e].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":t.alpha((t.vars||t).palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(t.vars||t).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${iTe.focusVisible}`]:{outline:"auto"}}}]}))),HGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiLink"}),i=Ho(),{className:o,color:s="primary",component:a="a",onBlur:l,onFocus:c,TypographyClasses:u,underline:d="always",variant:f="inherit",sx:h,...p}=r,[m,g]=E.useState(!1),y=I=>{Fa(I.target)||g(!1),l&&l(I)},b=I=>{Fa(I.target)&&g(!0),c&&c(I)},v={...r,color:s,component:a,focusVisible:m,underline:d,variant:f},S=sTe(v);return x.jsx(aTe,{color:s,className:de(S.root,o),classes:u,component:a,onBlur:y,onFocus:b,ref:n,ownerState:v,variant:f,...p,sx:[...i7[s]===void 0?[{color:s}]:[],...Array.isArray(h)?h:[h]],style:{...p.style,...d==="always"&&s!=="inherit"&&!i7[s]&&{"--Link-underlineColor":oTe({theme:i,ownerState:v})}}})}),ms=E.createContext({});function lTe(t){return Pe("MuiList",t)}Le("MuiList",["root","padding","dense","subheader"]);const cTe=t=>{const{classes:e,disablePadding:n,dense:r,subheader:i}=t;return Oe({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},lTe,e)},uTe=W("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),dTe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:l=!1,subheader:c,...u}=r,d=E.useMemo(()=>({dense:a}),[a]),f={...r,component:s,dense:a,disablePadding:l},h=cTe(f);return x.jsx(ms.Provider,{value:d,children:x.jsxs(uTe,{as:s,className:de(h.root,o),ref:n,ownerState:f,...u,children:[c,i]})})});function fTe(t){return Pe("MuiListItem",t)}Le("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function hTe(t){return Pe("MuiListItemButton",t)}const Zh=Le("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),pTe=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]},mTe=t=>{const{alignItems:e,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=t,c=Oe({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",e==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},hTe,n);return{...n,...c}},gTe=W(so,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:pTe})(Te(({theme:t})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Zh.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Zh.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${Zh.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${Zh.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Zh.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),UGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:l=!1,disableGutters:c=!1,divider:u=!1,focusVisibleClassName:d,selected:f=!1,className:h,...p}=r,m=E.useContext(ms),g=E.useMemo(()=>({dense:l||m.dense||!1,alignItems:i,disableGutters:c}),[i,m.dense,l,c]),y=E.useRef(null);An(()=>{o&&y.current&&y.current.focus()},[o]);const b={...r,alignItems:i,dense:g.dense,disableGutters:c,divider:u,selected:f},v=mTe(b),S=fn(y,n);return x.jsx(ms.Provider,{value:g,children:x.jsx(gTe,{ref:S,href:p.href||p.to,component:(p.href||p.to)&&s==="div"?"button":s,focusVisibleClassName:de(v.focusVisible,d),ownerState:b,className:de(v.root,h),...p,classes:v,children:a})})});function yTe(t){return Pe("MuiListItemSecondaryAction",t)}Le("MuiListItemSecondaryAction",["root","disableGutters"]);const vTe=t=>{const{disableGutters:e,classes:n}=t;return Oe({root:["root",e&&"disableGutters"]},yTe,n)},bTe=W("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:t})=>t.disableGutters,style:{right:0}}]}),PY=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItemSecondaryAction"}),{className:i,...o}=r,s=E.useContext(ms),a={...r,disableGutters:s.disableGutters},l=vTe(a);return x.jsx(bTe,{className:de(l.root,i),ownerState:a,ref:n,...o})});PY.muiName="ListItemSecondaryAction";const wTe=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.alignItems==="flex-start"&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.hasSecondaryAction&&e.secondaryAction]},STe=t=>{const{alignItems:e,classes:n,dense:r,disableGutters:i,disablePadding:o,divider:s,hasSecondaryAction:a}=t;return Oe({root:["root",r&&"dense",!i&&"gutters",!o&&"padding",s&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},fTe,n)},xTe=W("div",{name:"MuiListItem",slot:"Root",overridesResolver:wTe})(Te(({theme:t})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${Zh.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),ETe=W("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),qGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItem"}),{alignItems:i="center",children:o,className:s,component:a,components:l={},componentsProps:c={},ContainerComponent:u="li",ContainerProps:{className:d,...f}={},dense:h=!1,disableGutters:p=!1,disablePadding:m=!1,divider:g=!1,secondaryAction:y,slotProps:b={},slots:v={},...S}=r,I=E.useContext(ms),O=E.useMemo(()=>({dense:h||I.dense||!1,alignItems:i,disableGutters:p}),[i,I.dense,h,p]),T=E.useRef(null),A=E.Children.toArray(o),R=A.length&&my(A[A.length-1],["ListItemSecondaryAction"]),k={...r,alignItems:i,dense:O.dense,disableGutters:p,disablePadding:m,divider:g,hasSecondaryAction:R},P=STe(k),C=fn(T,n),_={slots:v,slotProps:b},[M,V]=Ie("secondaryAction",{elementType:PY,externalForwardedProps:_,ownerState:k,className:P.secondaryAction}),N=v.root||l.Root||xTe,z=b.root||c.root||{},L={className:de(P.root,z.className,s),...S};let B=a||"li";return R?(B=!L.component&&!a?"div":B,u==="li"&&(B==="li"?B="div":L.component==="li"&&(L.component="div")),x.jsx(ms.Provider,{value:O,children:x.jsxs(ETe,{as:u,className:de(P.container,d),ref:C,ownerState:k,...f,children:[x.jsx(N,{...z,...!Oa(N)&&{as:B,ownerState:{...k,...z.ownerState}},...L,children:A}),A.pop()]})})):x.jsx(ms.Provider,{value:O,children:x.jsxs(N,{...z,as:B,ref:C,...!Oa(N)&&{ownerState:{...k,...z.ownerState}},...L,children:[A,y&&x.jsx(M,{...V,children:y})]})})});function TTe(t){return Pe("MuiListItemAvatar",t)}Le("MuiListItemAvatar",["root","alignItemsFlexStart"]);const CTe=t=>{const{alignItems:e,classes:n}=t;return Oe({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},TTe,n)},_Te=W("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})({minWidth:56,flexShrink:0,variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}),WGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItemAvatar"}),{className:i,...o}=r,s=E.useContext(ms),a={...r,alignItems:s.alignItems},l=CTe(a);return x.jsx(_Te,{className:de(l.root,i),ownerState:a,ref:n,...o})});function ATe(t){return Pe("MuiListItemIcon",t)}const o7=Le("MuiListItemIcon",["root","alignItemsFlexStart"]),ITe=t=>{const{alignItems:e,classes:n}=t;return Oe({root:["root",e==="flex-start"&&"alignItemsFlexStart"]},ATe,n)},RTe=W("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.alignItems==="flex-start"&&e.alignItemsFlexStart]}})(Te(({theme:t})=>({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),GGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItemIcon"}),{className:i,...o}=r,s=E.useContext(ms),a={...r,alignItems:s.alignItems},l=ITe(a);return x.jsx(RTe,{className:de(l.root,i),ownerState:a,ref:n,...o})});function MTe(t){return Pe("MuiListItemText",t)}const yp=Le("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),kTe=t=>{const{classes:e,inset:n,primary:r,secondary:i,dense:o}=t;return Oe({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},MTe,e)},PTe=W("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${yp.primary}`]:e.primary},{[`& .${yp.secondary}`]:e.secondary},e.root,n.inset&&e.inset,n.primary&&n.secondary&&e.multiline,n.dense&&e.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${$S.root}:where(& .${yp.primary}), .${$S.root}:where(& .${yp.secondary})`]:{display:"block"},variants:[{props:({ownerState:t})=>t.primary&&t.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:56}}]}),KGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:l,primaryTypographyProps:c,secondary:u,secondaryTypographyProps:d,slots:f={},slotProps:h={},...p}=r,{dense:m}=E.useContext(ms);let g=l??i,y=u;const b={...r,disableTypography:s,inset:a,primary:!!g,secondary:!!y,dense:m},v=kTe(b),S={slots:f,slotProps:{primary:c,secondary:d,...h}},[I,O]=Ie("root",{className:de(v.root,o),elementType:PTe,externalForwardedProps:{...S,...p},ownerState:b,ref:n}),[T,A]=Ie("primary",{className:v.primary,elementType:Ri,externalForwardedProps:S,ownerState:b}),[R,k]=Ie("secondary",{className:v.secondary,elementType:Ri,externalForwardedProps:S,ownerState:b});return g!=null&&g.type!==Ri&&!s&&(g=x.jsx(T,{variant:m?"body2":"body1",component:A!=null&&A.variant?void 0:"span",...A,children:g})),y!=null&&y.type!==Ri&&!s&&(y=x.jsx(R,{variant:"body2",color:"textSecondary",...k,children:y})),x.jsxs(I,{...O,children:[g,y]})});function yA(t,e,n){return t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:n?null:t.firstChild}function s7(t,e,n){return t===e?n?t.firstChild:t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:n?null:t.lastChild}function OY(t,e){if(e===void 0)return!0;let n=t.innerText;return n===void 0&&(n=t.textContent),n=n.trim().toLowerCase(),n.length===0?!1:e.repeating?n[0]===e.keys[0]:n.startsWith(e.keys.join(""))}function Xg(t,e,n,r,i,o){let s=!1,a=i(t,e,e?n:!1);for(;a;){if(a===t.firstChild){if(s)return!1;s=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!OY(a,o)||l)a=i(t,a,n);else return a.focus(),!0}return!1}const OTe=E.forwardRef(function(e,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:u,variant:d="selectedMenu",...f}=e,h=E.useRef(null),p=E.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});An(()=>{i&&h.current.focus()},[i]),E.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(v,{direction:S})=>{const I=!h.current.style.width;if(v.clientHeight<h.current.clientHeight&&I){const O=`${IY(ui(v))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=O,h.current.style.width=`calc(100% + ${O})`}return h.current}}),[]);const m=v=>{const S=h.current,I=v.key;if(v.ctrlKey||v.metaKey||v.altKey){u&&u(v);return}const T=gp(In(S));if(I==="ArrowDown")v.preventDefault(),Xg(S,T,c,l,yA);else if(I==="ArrowUp")v.preventDefault(),Xg(S,T,c,l,s7);else if(I==="Home")v.preventDefault(),Xg(S,null,c,l,yA);else if(I==="End")v.preventDefault(),Xg(S,null,c,l,s7);else if(I.length===1){const A=p.current,R=I.toLowerCase(),k=performance.now();A.keys.length>0&&(k-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&R!==A.keys[0]&&(A.repeating=!1)),A.lastTime=k,A.keys.push(R);const P=T&&!A.repeating&&OY(T,A);A.previousKeyMatched&&(P||Xg(S,T,!1,l,yA,A))?v.preventDefault():A.previousKeyMatched=!1}u&&u(v)},g=fn(h,n);let y=-1;E.Children.forEach(s,(v,S)=>{if(!E.isValidElement(v)){y===S&&(y+=1,y>=s.length&&(y=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||y===-1)&&(y=S),y===S&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(y+=1,y>=s.length&&(y=-1))});const b=E.Children.map(s,(v,S)=>{if(S===y){const I={};return o&&(I.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(I.tabIndex=0),E.cloneElement(v,I)}return v});return x.jsx(dTe,{role:"menu",ref:g,className:a,onKeyDown:m,tabIndex:i?0:-1,...f,children:b})});function NTe(t){return Pe("MuiPopover",t)}Le("MuiPopover",["root","paper"]);function a7(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.height/2:e==="bottom"&&(n=t.height),n}function l7(t,e){let n=0;return typeof e=="number"?n=e:e==="center"?n=t.width/2:e==="right"&&(n=t.width),n}function c7(t){return[t.horizontal,t.vertical].map(e=>typeof e=="number"?`${e}px`:e).join(" ")}function Xb(t){return typeof t=="function"?t():t}const DTe=t=>{const{classes:e}=t;return Oe({root:["root"],paper:["paper"]},NTe,e)},LTe=W(RP,{name:"MuiPopover",slot:"Root"})({}),NY=W(na,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zTe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiPopover"}),{action:i,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:c,className:u,container:d,elevation:f=8,marginThreshold:h=16,open:p,PaperProps:m={},slots:g={},slotProps:y={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:S="auto",TransitionProps:I={},disableScrollLock:O=!1,...T}=r,A=E.useRef(),R={...r,anchorOrigin:s,anchorReference:l,elevation:f,marginThreshold:h,transformOrigin:b,TransitionComponent:v,transitionDuration:S,TransitionProps:I},k=DTe(R),P=E.useCallback(()=>{if(l==="anchorPosition")return a;const ne=Xb(o),ie=(ne&&ne.nodeType===1?ne:In(A.current).body).getBoundingClientRect();return{top:ie.top+a7(ie,s.vertical),left:ie.left+l7(ie,s.horizontal)}},[o,s.horizontal,s.vertical,a,l]),C=E.useCallback(ne=>({vertical:a7(ne,b.vertical),horizontal:l7(ne,b.horizontal)}),[b.horizontal,b.vertical]),_=E.useCallback(ne=>{const ce={width:ne.offsetWidth,height:ne.offsetHeight},ie=C(ce);if(l==="none")return{top:null,left:null,transformOrigin:c7(ie)};const oe=P();let ue=oe.top-ie.vertical,pe=oe.left-ie.horizontal;const ve=ue+ce.height,se=pe+ce.width,ae=ui(Xb(o)),ke=ae.innerHeight-h,Ee=ae.innerWidth-h;if(h!==null&&ue<h){const _e=ue-h;ue-=_e,ie.vertical+=_e}else if(h!==null&&ve>ke){const _e=ve-ke;ue-=_e,ie.vertical+=_e}if(h!==null&&pe<h){const _e=pe-h;pe-=_e,ie.horizontal+=_e}else if(se>Ee){const _e=se-Ee;pe-=_e,ie.horizontal+=_e}return{top:`${Math.round(ue)}px`,left:`${Math.round(pe)}px`,transformOrigin:c7(ie)}},[o,l,P,C,h]),[M,V]=E.useState(p),N=E.useCallback(()=>{const ne=A.current;if(!ne)return;const ce=_(ne);ce.top!==null&&ne.style.setProperty("top",ce.top),ce.left!==null&&(ne.style.left=ce.left),ne.style.transformOrigin=ce.transformOrigin,V(!0)},[_]);E.useEffect(()=>(O&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[o,O,N]);const z=()=>{N()},L=()=>{V(!1)};E.useEffect(()=>{p&&N()}),E.useImperativeHandle(i,()=>p?{updatePosition:()=>{N()}}:null,[p,N]),E.useEffect(()=>{if(!p)return;const ne=Fv(()=>{N()}),ce=ui(Xb(o));return ce.addEventListener("resize",ne),()=>{ne.clear(),ce.removeEventListener("resize",ne)}},[o,p,N]);let B=S;const j={slots:{transition:v,...g},slotProps:{transition:I,paper:m,...y}},[H,q]=Ie("transition",{elementType:_0,externalForwardedProps:j,ownerState:R,getSlotProps:ne=>({...ne,onEntering:(ce,ie)=>{var oe;(oe=ne.onEntering)==null||oe.call(ne,ce,ie),z()},onExited:ce=>{var ie;(ie=ne.onExited)==null||ie.call(ne,ce),L()}}),additionalProps:{appear:!0,in:p}});S==="auto"&&!H.muiSupportAuto&&(B=void 0);const Y=d||(o?In(Xb(o)).body:void 0),[Z,{slots:G,slotProps:X,...K}]=Ie("root",{ref:n,elementType:LTe,externalForwardedProps:{...j,...T},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:E0(typeof y.backdrop=="function"?y.backdrop(R):y.backdrop,{invisible:!0})},container:Y,open:p},ownerState:R,className:de(k.root,u)}),[J,te]=Ie("paper",{ref:A,className:k.paper,elementType:NY,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:M?void 0:{opacity:0}},ownerState:R});return x.jsx(Z,{...K,...!Oa(Z)&&{slots:G,slotProps:X,disableScrollLock:O},children:x.jsx(H,{...q,timeout:B,children:x.jsx(J,{...te,children:c})})})});function VTe(t){return Pe("MuiMenu",t)}Le("MuiMenu",["root","paper","list"]);const BTe={vertical:"top",horizontal:"right"},$Te={vertical:"top",horizontal:"left"},FTe=t=>{const{classes:e}=t;return Oe({root:["root"],paper:["paper"],list:["list"]},VTe,e)},jTe=W(zTe,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),HTe=W(NY,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),UTe=W(OTe,{name:"MuiMenu",slot:"List"})({outline:0}),qTe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:o,className:s,disableAutoFocusItem:a=!1,MenuListProps:l={},onClose:c,open:u,PaperProps:d={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:p,...m}={},variant:g="selectedMenu",slots:y={},slotProps:b={},...v}=r,S=Za(),I={...r,autoFocus:i,disableAutoFocusItem:a,MenuListProps:l,onEntering:p,PaperProps:d,transitionDuration:h,TransitionProps:m,variant:g},O=FTe(I),T=i&&!a&&u,A=E.useRef(null),R=(B,j)=>{A.current&&A.current.adjustStyleForScrollbar(B,{direction:S?"rtl":"ltr"}),p&&p(B,j)},k=B=>{B.key==="Tab"&&(B.preventDefault(),c&&c(B,"tabKeyDown"))};let P=-1;E.Children.map(o,(B,j)=>{E.isValidElement(B)&&(B.props.disabled||(g==="selectedMenu"&&B.props.selected||P===-1)&&(P=j))});const C={slots:y,slotProps:{list:l,transition:m,paper:d,...b}},_=qi({elementType:y.root,externalSlotProps:b.root,ownerState:I,className:[O.root,s]}),[M,V]=Ie("paper",{className:O.paper,elementType:HTe,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:I}),[N,z]=Ie("list",{className:de(O.list,l.className),elementType:UTe,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:B=>({...B,onKeyDown:j=>{var H;k(j),(H=B.onKeyDown)==null||H.call(B,j)}}),ownerState:I}),L=typeof C.slotProps.transition=="function"?C.slotProps.transition(I):C.slotProps.transition;return x.jsx(jTe,{onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?BTe:$Te,slots:{root:y.root,paper:M,backdrop:y.backdrop,...y.transition&&{transition:y.transition}},slotProps:{root:_,paper:V,backdrop:typeof b.backdrop=="function"?b.backdrop(I):b.backdrop,transition:{...L,onEntering:(...B)=>{var j;R(...B),(j=L==null?void 0:L.onEntering)==null||j.call(L,...B)}}},open:u,ref:n,transitionDuration:h,ownerState:I,...v,classes:f,children:x.jsx(N,{actions:A,autoFocus:i&&(P===-1||a),autoFocusItem:T,variant:g,...z,children:o})})});function WTe(t){return Pe("MuiMenuItem",t)}const Qg=Le("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),GTe=(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]},KTe=t=>{const{disabled:e,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=t,l=Oe({root:["root",n&&"dense",e&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},WTe,s);return{...s,...l}},YTe=W(so,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:GTe})(Te(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qg.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),[`&.${Qg.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}},[`&.${Qg.selected}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity)}},[`&.${Qg.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${Qg.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${QL.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${QL.inset}`]:{marginLeft:52},[`& .${yp.root}`]:{marginTop:0,marginBottom:0},[`& .${yp.inset}`]:{paddingLeft:36},[`& .${o7.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${o7.root} svg`]:{fontSize:"1.25rem"}}}]}))),XTe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:c,role:u="menuitem",tabIndex:d,className:f,...h}=r,p=E.useContext(ms),m=E.useMemo(()=>({dense:s||p.dense||!1,disableGutters:l}),[p.dense,s,l]),g=E.useRef(null);An(()=>{i&&g.current&&g.current.focus()},[i]);const y={...r,dense:m.dense,divider:a,disableGutters:l},b=KTe(r),v=fn(g,n);let S;return r.disabled||(S=d!==void 0?d:-1),x.jsx(ms.Provider,{value:m,children:x.jsx(YTe,{ref:v,role:u,tabIndex:S,component:o,focusVisibleClassName:de(b.focusVisible,c),className:de(b.root,f),...h,ownerState:y,classes:b})})});function QTe(t){return Pe("MuiNativeSelect",t)}const OP=Le("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),JTe=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:o,error:s}=t,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,o&&"iconOpen",r&&"disabled"]};return Oe(a,QTe,e)},DY=W("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${OP.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:e})=>e.variant!=="filled"&&e.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ZTe=W(DY,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:yr,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],n.error&&e.error,{[`&.${OP.multiple}`]:e.multiple}]}})({}),LY=W("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${OP.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),eCe=W(LY,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Q(n.variant)}`],n.open&&e.iconOpen]}})({}),tCe=E.forwardRef(function(e,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:l="standard",...c}=e,u={...e,disabled:i,variant:l,error:o},d=JTe(u);return x.jsxs(E.Fragment,{children:[x.jsx(ZTe,{ownerState:u,className:de(d.select,r),disabled:i,ref:a||n,...c}),e.multiple?null:x.jsx(eCe,{as:s,ownerState:u,className:d.icon})]})});function nCe(t){const{children:e,defer:n=!1,fallback:r=null}=t,[i,o]=E.useState(!1);return An(()=>{n||o(!0)},[n]),E.useEffect(()=>{n&&o(!0)},[n]),i?e:r}var u7;const rCe=W("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:yr})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),iCe=W("legend",{name:"MuiNotchedOutlined",shouldForwardProp:yr})(Te(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function oCe(t){const{children:e,classes:n,className:r,label:i,notched:o,...s}=t,a=i!=null&&i!=="",l={...t,notched:o,withLabel:a};return x.jsx(rCe,{"aria-hidden":!0,className:r,ownerState:l,...s,children:x.jsx(iCe,{ownerState:l,children:a?x.jsx("span",{children:i}):u7||(u7=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const sCe=t=>{const{classes:e}=t,r=Oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Pwe,e);return{...e,...r}},aCe=W(RT,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:AT})(Te(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${Go.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${Go.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}},[`&.${Go.focused} .${Go.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Bt()).map(([n])=>({props:{color:n},style:{[`&.${Go.focused} .${Go.notchedOutline}`]:{borderColor:(t.vars||t).palette[n].main}}})),{props:{},style:{[`&.${Go.error} .${Go.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${Go.disabled} .${Go.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),lCe=W(oCe,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Te(({theme:t})=>{const e=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):e}})),cCe=W(MT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:IT})(Te(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),NP=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiOutlinedInput"}),{components:i={},fullWidth:o=!1,inputComponent:s="input",label:a,multiline:l=!1,notched:c,slots:u={},slotProps:d={},type:f="text",...h}=r,p=sCe(r),m=ra(),g=ld({props:r,muiFormControl:m,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:m,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:f},b=u.root??i.Root??aCe,v=u.input??i.Input??cCe,[S,I]=Ie("notchedOutline",{elementType:lCe,className:p.notchedOutline,shouldForwardComponentProp:!0,ownerState:y,externalForwardedProps:{slots:u,slotProps:d},additionalProps:{label:a!=null&&a!==""&&g.required?x.jsxs(E.Fragment,{children:[a," ","*"]}):a}});return x.jsx(kT,{slots:{root:b,input:v},slotProps:d,renderSuffix:O=>x.jsx(S,{...I,notched:typeof c<"u"?c:!!(O.startAdornment||O.filled||O.focused)}
4498),fullWidth:o,inputComponent:s,multiline:l,ref:n,type:f,...h,classes:{...p,notchedOutline:null}})});NP.muiName="Input";const uCe=F(x.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),dCe=F(x.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),fCe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),hCe=F(x.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"})),pCe=W("span",{name:"MuiRadioButtonIcon",shouldForwardProp:yr})({position:"relative",display:"flex"}),mCe=W(fCe,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),gCe=W(hCe,{name:"MuiRadioButtonIcon"})(Te(({theme:t})=>({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}}]})));function zY(t){const{checked:e=!1,classes:n={},fontSize:r}=t,i={...t,checked:e};return x.jsxs(pCe,{className:n.root,ownerState:i,children:[x.jsx(mCe,{fontSize:r,className:n.background,ownerState:i}),x.jsx(gCe,{fontSize:r,className:n.dot,ownerState:i})]})}const VY=E.createContext(void 0);function yCe(){return E.useContext(VY)}function vCe(t){return Pe("MuiRadio",t)}const d7=Le("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),bCe=t=>{const{classes:e,color:n,size:r}=t,i={root:["root",`color${Q(n)}`,r!=="medium"&&`size${Q(r)}`]};return{...e,...Oe(i,vCe,e)}},wCe=W(IP,{shouldForwardProp:t=>yr(t)||t==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size!=="medium"&&e[`size${Q(n.size)}`],e[`color${Q(n.color)}`]]}})(Te(({theme:t})=>({color:(t.vars||t).palette.text.secondary,[`&.${d7.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity)}}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity)}}})),...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e,disabled:!1},style:{[`&.${d7.checked}`]:{color:(t.vars||t).palette[e].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function SCe(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}const xCe=x.jsx(zY,{checked:!0}),ECe=x.jsx(zY,{}),YGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:o=xCe,color:s="primary",icon:a=ECe,name:l,onChange:c,size:u="medium",className:d,disabled:f,disableRipple:h=!1,slots:p={},slotProps:m={},inputProps:g,...y}=r,b=ra();let v=f;b&&typeof v>"u"&&(v=b.disabled),v??(v=!1);const S={...r,disabled:v,disableRipple:h,color:s,size:u},I=bCe(S),O=yCe();let T=i;const A=bR(c,O&&O.onChange);let R=l;O&&(typeof T>"u"&&(T=SCe(O.value,r.value)),typeof R>"u"&&(R=O.name));const k=m.input??g,[P,C]=Ie("root",{ref:n,elementType:wCe,className:de(I.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...y},getSlotProps:_=>({..._,onChange:(M,...V)=>{var N;(N=_.onChange)==null||N.call(_,M,...V),A(M,...V)}}),ownerState:S,additionalProps:{type:"radio",icon:E.cloneElement(a,{fontSize:a.props.fontSize??u}),checkedIcon:E.cloneElement(o,{fontSize:o.props.fontSize??u}),disabled:v,name:R,checked:T,slots:p,slotProps:{input:typeof k=="function"?k(S):k}}});return x.jsx(P,{...C,classes:I})});function TCe(t){return Pe("MuiRadioGroup",t)}Le("MuiRadioGroup",["root","row","error"]);const CCe=t=>{const{classes:e,row:n,error:r}=t;return Oe({root:["root",n&&"row",r&&"error"]},TCe,e)},XGe=E.forwardRef(function(e,n){const{actions:r,children:i,className:o,defaultValue:s,name:a,onChange:l,value:c,...u}=e,d=E.useRef(null),f=CCe(e),[h,p]=Ws({controlled:c,default:s,name:"RadioGroup"});E.useImperativeHandle(r,()=>({focus:()=>{let b=d.current.querySelector("input:not(:disabled):checked");b||(b=d.current.querySelector("input:not(:disabled)")),b&&b.focu
4498s()}}),[]);const m=fn(n,d),g=Bo(a),y=E.useMemo(()=>({name:g,onChange(b){p(b.target.value),l&&l(b,b.target.value)},value:h}),[g,l,p,h]);return x.jsx(VY.Provider,{value:y,children:x.jsx(_Ee,{role:"radiogroup",ref:m,className:de(f.root,o),...u,children:i})})}),BY={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},_Ce=F(x.jsx("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),ACe=F(x.jsx("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}));function ICe(t){return Pe("MuiRating",t)}const Jg=Le("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);function RCe(t){const e=t.toString().split(".")[1];return e?e.length:0}function vA(t,e){if(t==null)return t;const n=Math.round(t/e)*e;return Number(n.toFixed(RCe(e)))}const MCe=t=>{const{classes:e,size:n,readOnly:r,disabled:i,emptyValueFocused:o,focusVisible:s}=t,a={root:["root",`size${Q(n)}`,i&&"disabled",s&&"focusVisible",r&&"readOnly"],label:["label","pristine"],labelEmptyValue:[o&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return Oe(a,ICe,e)},kCe=W("span",{name:"MuiRating",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${Jg.visuallyHidden}`]:e.visuallyHidden},e.root,e[`size${Q(n.size)}`],n.readOnly&&e.readOnly]}})(Te(({theme:t})=>({display:"inline-flex",position:"relative",fontSize:t.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",width:"min-content",WebkitTapHighlightColor:"transparent",[`&.${Jg.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${Jg.focusVisible} .${Jg.iconActive}`]:{outline:"1px solid #999"},[`& .${Jg.visuallyHidden}`]:BY,variants:[{props:{size:"small"},style:{fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:t.typography.pxToRem(30)}},{props:({ownerState:e})=>e.readOnly,style:{pointerEvents:"none"}}]}))),$Y=W("label",{name:"MuiRating",slot:"Label",overridesResolver:({ownerState:t},e)=>[e.label,t.emptyValueFocused&&e.labelEmptyValueActive]})({cursor:"inherit",variants:[{props:({ownerState:t})=>t.emptyValueFocused,style:{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"}}]}),PCe=W("span",{name:"MuiRating",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.iconEmpty&&e.iconEmpty,n.iconFilled&&e.iconFilled,n.iconHover&&e.iconHover,n.iconFocus&&e.iconFocus,n.iconActive&&e.iconActive]}})(Te(({theme:t})=>({display:"flex",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),pointerEvents:"none",variants:[{props:({ownerState:e})=>e.iconActive,style:{transform:"scale(1.2)"}},{props:({ownerState:e})=>e.iconEmpty,style:{color:(t.vars||t).palette.action.disabled}}]}))),OCe=W("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:t=>$v(t)&&t!=="iconActive",overridesResolver:(t,e)=>{const{iconActive:n}=t;return[e.decimal,n&&e.iconActive]}})({position:"relative",variants:[{props:({iconActive:t})=>t,style:{transform:"scale(1.2)"}}]});function NCe(t){const{value:e,...n}=t;return x.jsx("span",{...n})}function f7(t){const{classes:e,disabled:n,emptyIcon:r,focus:i,getLabelText:o,highlightSelectedOnly:s,hover:a,icon:l,IconContainerComponent:c,isActive:u,itemValue:d,labelProps:f,name:h,onBlur:p,onChange:m,onClick:g,onFocus:y,readOnly:b,ownerState:v,ratingValue:S,ratingValueRounded:I,slots:O={},slotProps:T={}}=t,A=s?d===S:d<=S,R=d<=a,k=d<=i,P=d===I,C=`${h}-${Bo()}`,_={slots:O,slotProps:T},[M,V]=Ie("icon",{elementType:PCe,className:de(e.icon,A?e.iconFilled:e.iconEmpty,R&&e.iconHover,k&&e.iconFocus,u&&e.iconActive),externalForwardedProps:_,ownerState:{...v,iconEmpty:!A,iconFilled:A,iconHover:R,iconFocus:k,iconActive:u},additionalProps:{value:d},internalForwardedProps:{as:c}}),[N,z]=Ie("label",{elementType:$Y,externalForwardedProps:_,ownerState:{...v,emptyValueFocused:void 0},additionalProps:{style:f==null?void 0:f.style,htmlFor:C}}),L=x.jsx(M,{...V,children:r&&!A?r:l});return b?x.jsx("span",{...f,children:L}):x.jsxs(E.Fragment,{children:[x.jsxs(N,{...z,children:[L,x.jsx("span",{className:e.visuallyHidden,children:o(d)})]}),x.jsx("input",{className:e.visuallyHidden,onFocus:y,onBlur:p,onChange:m,onClick:g,disabled:n,value:d,id:C,type:"radio",name:h,checked:P})]})}const DCe=x.jsx(_Ce,{fontSize:"inherit"}),LCe=x.jsx(ACe,{fontSize:"inherit"});function zCe(t){return`${t||"0"} Star${t!==1?"s":""}`}const QGe=E.forwardRef(function(e,n){const r=Ne({name:"MuiRating",props:e}),{component:i="span",className:o,defaultValue:s=null,disabled:a=!1,emptyIcon:l=LCe,emptyLabelText:c="Empty",getLabelText:u=zCe,highlightSelectedOnly:d=!1,icon:f=DCe,IconContainerComponent:h=NCe,max:p=5,name:m,onChange:g,onChangeActive:y,onMouseLeave:b,onMouseMove:v,precision:S=1,readOnly:I=!1,size:O="medium",value:T,slots:A={},slotProps:R={},...k}=r,P=Bo(m),[C,_]=Ws({controlled:T,default:s,name:"Rating"}),M=vA(C,S),V=Za(),[{hover:N,focus:z},L]=E.useState({hover:-1,focus:-1});let B=M;N!==-1&&(B=N),z!==-1&&(B=z);const[j,H]=E.useState(!1),q=E.useRef(),Y=fn(q,n),Z=_e=>{v&&v(_e);const we=q.current,{right:et,left:rt,width:he}=we.getBoundingClientRect();let be;V?be=(et-_e.clientX)/he:be=(_e.clientX-rt)/he;let De=vA(p*be+S/2,S);De=jd(De,S,p),L(Be=>Be.hover===De&&Be.focus===De?Be:{hover:De,focus:De}),H(!1),y&&N!==De&&y(_e,De)},G=_e=>{b&&b(_e);const we=-1;L({hover:we,focus:we}),y&&N!==we&&y(_e,we)},X=_e=>{let we=_e.target.value===""?null:parseFloat(_e.target.value);N!==-1&&(we=N),_(we),g&&g(_e,we)},K=_e=>{_e.clientX===0&&_e.clientY===0||(L({hover:-1,focus:-1}),_(null),g&&parseFloat(_e.target.value)===M&&g(_e,null))},J=_e=>{Fa(_e.target)&&H(!0);const we=parseFloat(_e.target.value);L(et=>({hover:et.hover,focus:we}))},te=_e=>
4498{if(N!==-1)return;Fa(_e.target)||H(!1);const we=-1;L(et=>({hover:et.hover,focus:we}))},[ne,ce]=E.useState(!1),ie={...r,component:i,defaultValue:s,disabled:a,emptyIcon:l,emptyLabelText:c,emptyValueFocused:ne,focusVisible:j,getLabelText:u,icon:f,IconContainerComponent:h,max:p,precision:S,readOnly:I,size:O},oe=MCe(ie),ue={slots:A,slotProps:R},[pe,ve]=Ie("root",{ref:Y,className:de(oe.root,o),elementType:kCe,externalForwardedProps:{...ue,...k,component:i},getSlotProps:_e=>({..._e,onMouseMove:we=>{var et;Z(we),(et=_e.onMouseMove)==null||et.call(_e,we)},onMouseLeave:we=>{var et;G(we),(et=_e.onMouseLeave)==null||et.call(_e,we)}}),ownerState:ie,additionalProps:{role:I?"img":null,"aria-label":I?u(B):null}}),[se,ae]=Ie("label",{className:de(oe.label,oe.labelEmptyValue),elementType:$Y,externalForwardedProps:ue,ownerState:ie}),[ke,Ee]=Ie("decimal",{className:oe.decimal,elementType:OCe,externalForwardedProps:ue,ownerState:ie});return x.jsxs(pe,{...ve,children:[Array.from(new Array(p)).map((_e,we)=>{const et=we+1,rt={classes:oe,disabled:a,emptyIcon:l,focus:z,getLabelText:u,highlightSelectedOnly:d,hover:N,icon:f,IconContainerComponent:h,name:P,onBlur:te,onChange:X,onClick:K,onFocus:J,ratingValue:B,ratingValueRounded:M,readOnly:I,ownerState:ie,slots:A,slotProps:R},he=et===Math.ceil(B)&&(N!==-1||z!==-1);if(S<1){const be=Array.from(new Array(1/S));return E.createElement(ke,{...Ee,key:et,className:de(Ee.className,he&&oe.iconActive),iconActive:he},be.map((De,Be)=>{const Xe=vA(et-1+(Be+1)*S,S);return x.jsx(f7,{...rt,isActive:!1,itemValue:Xe,labelProps:{style:be.length-1===Be?{}:{width:Xe===B?`${(Be+1)*S*100}%`:"0%",overflow:"hidden",position:"absolute"}}},Xe)}))}return x.jsx(f7,{...rt,isActive:he,itemValue:et},et)}
4498),!I&&!a&&x.jsxs(se,{...ae,children:[x.jsx("input",{className:oe.visuallyHidden,value:"",id:`${P}-empty`,type:"radio",name:P,checked:M==null,onFocus:()=>ce(!0),onBlur:()=>ce(!1),onChange:X}),x.jsx("span",{className:oe.visuallyHidden,children:c})]})]})});function FY(t){return Pe("MuiSelect",t)}const Zg=Le("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var h7;const VCe=W(DY,{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`&.${Zg.select}`]:e.select},{[`&.${Zg.select}`]:e[n.variant]},{[`&.${Zg.error}`]:e.error},{[`&.${Zg.multiple}`]:e.multiple}]}})({[`&.${Zg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),BCe=W(LY,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e[`icon${Q(n.variant)}`],n.open&&e.iconOpen]}})({}),$Ce=W("input",{shouldForwardProp:t=>$v(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function p7(t,e){return typeof e=="object"&&e!==null?t===e:String(t)===String(e)}function FCe(t){return t==null||typeof t=="string"&&!t.trim()}const jCe=t=>{const{classes:e,variant:n,disabled:r,multiple:i,open:o,error:s}=t,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Q(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Oe(a,FY,e)},HCe=E.forwardRef(function(e,n){var Jt,pn,Cn,tn;const{"aria-describedby":r,"aria-label":i,autoFocus:o,autoWidth:s,children:a,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:f,error:h=!1,IconComponent:p,inputRef:m,labelId:g,MenuProps:y={},multiple:b,name:v,onBlur:S,onChange:I,onClose:O,onFocus:T,onKeyDown:A,onMouseDown:R,onOpen:k,open:P,readOnly:C,renderValue:_,required:M,SelectDisplayProps:V={},tabIndex:N,type:z,value:L,variant:B="standard",...j}=e,[H,q]=Ws({controlled:L,default:u,name:"Select"}),[Y,Z]=Ws({controlled:P,default:c,name:"Select"}),G=E.useRef(null),X=E.useRef(null),[K,J]=E.useState(null),{current:te}=E.useRef(P!=null),[ne,ce]=E.useState(),ie=fn(n,m),oe=E.useCallback(Ue=>{X.current=Ue,Ue&&J(Ue)},[]),ue=K==null?void 0:K.parentNode;E.useImperativeHandle(ie,()=>({focus:()=>{X.current.focus()},node:G.current,value:H}),[H]);const pe=K!==null&&Y;E.useEffect(()=>{if(!pe||!ue||s||typeof ResizeObserver>"u")return;const Ue=new ResizeObserver(()=>{ce(ue.clientWidth)});return Ue.observe(ue),()=>{Ue.disconnect()}},[pe,ue,s]),E.useEffect(()=>{c&&Y&&K&&!te&&(ce(s?null:ue.clientWidth),X.current.focus())},[K,s]),E.useEffect(()=>{o&&X.current.focus()},[o]),E.useEffect(()=>{if(!g)return;const Ue=In(X.current).getElementById(g);if(Ue){const Fe=()=>{getSelection().isCollapsed&&X.current.focus()};return Ue.addEventListener("click",Fe),()=>{Ue.removeEventListener("click",Fe)}}},[g]);const ve=(Ue,Fe)=>{Ue?k&&k(Fe):O&&O(Fe),te||(ce(s?null:ue.clientWidth),Z(Ue))},se=Ue=>{R==null||R(Ue),Ue.button===0&&(Ue.preventDefault(),X.current.focus(),ve(!0,Ue))},ae=Ue=>{ve(!1,Ue)},ke=E.Children.toArray(a),Ee=Ue=>{const Fe=ke.find(ct=>ct.props.value===Ue.target.value);Fe!==void 0&&(q(Fe.props.value),I&&I(Ue,Fe))},_e=Ue=>Fe=>{let ct;if(Fe.currentTarget.hasAttribute("tabindex")){if(b){ct=Array.isArray(H)?H.slice():[];const Dt=H.indexOf(Ue.props.value);Dt===-1?ct.push(Ue.props.value):ct.splice(Dt,1)}else ct=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(Fe),H!==ct&&(q(ct),I)){const Dt=Fe.nativeEvent||Fe,Gt=new Dt.constructor(Dt.type,Dt);Object.defineProperty(Gt,"target",{writable:!0,value:{value:ct,name:v}}),I(Gt,Ue)}b||ve(!1,Fe)}},we=Ue=>{C||([" ","ArrowUp","ArrowDown","Enter"].includes(Ue.key)&&(Ue.preventDefault(),ve(!0,Ue)),A==null||A(Ue))},et=Ue=>{!pe&&S&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:H,name:v}}),S(Ue))};delete j["aria-invalid"];let rt,he;const be=[];let De=!1;(jS({value:H})||f)&&(_?rt=_(H):De=!0);const Be=ke.map(Ue=>{if(!E.isValidElement(Ue))return null;let Fe;if(b){if(!Array.isArray(H))throw new Error(nc(2));Fe=H.some(ct=>p7(ct,Ue.props.value)),Fe&&De&&be.push(Ue.props.children)}else Fe=p7(H,Ue.props.value),Fe&&De&&(he=Ue.props.children);return E.cloneElement(Ue,{"aria-selected":Fe?"true":"false",onClick:_e(Ue),onKeyUp:ct=>{ct.key===" "&&ct.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(ct)},role:"option",selected:Fe,value:void 0,"data-value":Ue.props.value})});De&&(b?be.length===0?rt=null:rt=be.reduce((Ue,Fe,ct)=>(Ue.push(Fe),ct<be.length-1&&Ue.push(", "),Ue),[]):rt=he);let Xe=ne;!s&&te&&K&&(Xe=ue.clientWidth);let Me;typeof N<"u"?Me=N:Me=d?null:0;const xe=V.id||(v?`mui-component-select-${v}`:void 0),Ge={...e,variant:B,value:H,open:pe,error:h},Ke=jCe(Ge),nt={...y.PaperProps,...typeof((Jt=y.slotProps)==null?void 0:Jt.paper)=="function"?y.slotProps.paper(Ge):(pn=y.slotProps)==null?void 0:pn.paper},en={...y.MenuListProps,...typeof((Cn=y.slotProps)==null?void 0:Cn.list)=="function"?y.slotProps.list(Ge):(tn=y.slotProps)==null?void 0:tn.list},Wt=Bo();return x.jsxs(E.Fragment,{children:[x.jsx(VCe,{as:"div",ref:oe,tabIndex:Me,role:"combobox","aria-controls":pe?Wt:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":pe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[g,xe].filter(
vendor: 3,030 bytes, lines 4498-4524
4498Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":M?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:we,onMouseDown:d||C?null:se,onBlur:et,onFocus:T,...V,ownerState:Ge,className:de(V.className,Ke.select,l),id:xe,children:FCe(rt)?h7||(h7=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):rt}),x.jsx($Ce,{"aria-invalid":h,value:Array.isArray(H)?H.join(","):H,name:v,ref:G,"aria-hidden":!0,onChange:Ee,tabIndex:-1,disabled:d,className:Ke.nativeInput,autoFocus:o,required:M,...j,ownerState:Ge}),x.jsx(BCe,{as:p,className:Ke.icon,ownerState:Ge}),x.jsx(qTe,{id:`menu-${v||""}`,anchorEl:ue,open:pe,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...y,slotProps:{...y.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:Wt,...en},paper:{...nt,style:{minWidth:Xe,...nt!=null?nt.style:null}}},children:Be})]})}),UCe=t=>{const{classes:e}=t,r=Oe({root:["root"]},FY,e);return{...e,...r}},DP={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>yr(t)&&t!=="variant"},qCe=W(kP,DP)(""),WCe=W(NP,DP)(""),GCe=W(MP,DP)(""),LP=E.forwardRef(function(e,n){const r=Ne({name:"MuiSelect",props:e}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:u=SY,id:d,input:f,inputProps:h,label:p,labelId:m,MenuProps:g,multiple:y=!1,native:b=!1,onClose:v,onOpen:S,open:I,renderValue:O,SelectDisplayProps:T,variant:A="outlined",...R}=r,k=b?tCe:HCe,P=ra(),C=ld({props:r,muiFormControl:P,states:["variant","error"]}),_=C.variant||A,M={...r,variant:_,classes:s},V=UCe(M),{root:N,...z}=V,L=f||{standard:x.jsx(qCe,{ownerState:M}),outlined:x.jsx(WCe,{label:p,ownerState:M}),filled:x.jsx(GCe,{ownerState:M})}[_],B=fn(n,ad(L));return x.jsx(E.Fragment,{children:E.cloneElement(L,{inputComponent:k,inputProps:{children:o,error:C.error,IconComponent:u,variant:_,type:void 0,multiple:y,...b?{id:d}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:m,MenuProps:g,onClose:v,onOpen:S,open:I,renderValue:O,SelectDisplayProps:{id:d,...T}},...h,classes:h?Kr(z,h.classes):z,...f?f.props.inputProps:{}},...(y&&b||c)&&_==="outlined"?{notched:!0}:{},ref:B,className:de(L.props.className,a,V.root),...!f&&{variant:_},...R})})});LP.muiName="Select";function KCe(t){return Pe("MuiSkeleton",t)}Le("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const YCe=t=>{const{classes:e,variant:n,animation:r,hasChildren:i,width:o,height:s}=t;return Oe({root:["root",n,r,i&&"withChildren",i&&!o&&"fitContent",i&&!s&&"heightAuto"]},KCe,e)},VR=Ja` 4499 0% { 4500 opacity: 1; 4501 } 4502 4503 50% { 4504 opacity: 0.4; 4505 } 4506 4507 100% { 4508 opacity: 1; 4509 } 4510`,BR=Ja` 4511 0% { 4512 transform: translateX(-100%); 4513 } 4514 4515 50% { 4516 /* +0.5s of delay between each loop */ 4517 transform: translateX(100%); 4518 } 4519 4520 100% { 4521 transform: translateX(100%); 4522 } 4523`,XCe=typeof VR!="string"?od` 4524 animation: ${VR} 2s ease-in-out 0.5s infinite;
4525 `:null,QCe=typeof BR!="string"?od` 4526 &::after { 4527 animation: ${BR} 2s linear 0.5s infinite; 4528 } 4529 `:null,JCe=W("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],n.animation!==!1&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(Te(({theme:t})=>{const e=fve(t.shape.borderRadius)||"px",n=hve(t.shape.borderRadius);return{display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:t.alpha(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${e}/${Math.round(n/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(t.vars||t).shape.borderRadius}},{props:({ownerState:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:XCe||{animation:`${VR} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 4530 90deg, 4531 transparent, 4532 ${(t.vars||t).palette.action.hover}, 4533 transparent 4534 )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:QCe||{"&::after":{animation:`${BR} 2s linear 0.5s infinite`}}}]}})),JGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:s="span",height:a,style:l,variant:c="text",width:u,...d}=r,f={...r,animation:i,component:s,variant:c,hasChildren:!!d.children},h=YCe(f);return x.jsx(JCe,{as:s,ref:n,className:de(h.root,o),ownerState:f,...d,style:{width:u,height:a,...l}})});function ZCe(t,e,n=(r,i)=>r===i){return t.length===e.length&&t.every((r,i)=>n(r,e[i]))}const e_e=2;function Bh(t,e,n,r,i){return n===1?Math.min(t+e,i):Math.max(t-e,r)}function jY(t,e){return t-e}function m7(t,e){const{index:n}=t.reduce((r,i,o)=>{const s=Math.abs(e-i);return r===null||s<r.distance||s===r.distance?{distance:s,index:o}:r},null)??{};return n}function Qb(t,e){if(e.current!==void 0&&t.changedTouches){const n=t;for(let r=0;r<n.changedTouches.length;r+=1){const i=n.changedTouches[r];if(i.identifier===e.current)return{x:i.clientX,y:i.clientY}}return!1}return{x:t.clientX,y:t.clientY}}function US(t,e,n){return(t-e)*100/(n-e)}function t_e(t,e,n){return(n-e)*t+e}function n_e(t){if(Math.abs(t)<1){const n=t.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const e=t.toString().split(".")[1];return e?e.length:0}function r_e(t,e,n){const r=Math.round((t-n)/e)*e+n;return Number(r.toFixed(n_e(e)))}function g7({values:t,newValue:e,index:n}){const r=t.slice();return r[n]=e,r.sort(jY)}function Jb({sliderRef:t,activeIndex:e,setActive:n}){var i,o,s;const r=In(t.current);(!((i=t.current)!=null&&i.contains(r.activeElement))||Number((o=r==null?void 0:r.activeElement)==null?void 0:o.getAttribute("data-index"))!==e)&&((s=t.current)==null||s.querySelector(`[type="range"][data-index="${e}"]`).focus()),n&&n(e)}function Zb(t,e){return typeof t=="number"&&typeof e=="number"?t===e:typeof t=="object"&&typeof e=="object"?ZCe(t,e):!1}const i_e={horizontal:{offset:t=>({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},o_e=t=>t;let e2;function y7(){return e2===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?e2=CSS.supports("touch-action","none"):e2=!0),e2}function s_e(t){const{"aria-labelledby":e,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:l=0,name:c,onChange:u,onChangeCommitted:d,orientation:f="horizontal",rootRef:h,scale:p=o_e,step:m=1,shiftStep:g=10,tabIndex:y,value:b}=t,v=E.useRef(void 0),[S,I]=E.useState(-1),[O,T]=E.useState(-1),[A,R]=E.useState(!1),k=E.useRef(0),P=E.useRef(null),[C,_]=Ws({controlled:b,default:n??l,name:"Slider"}),M=u&&((he,be,De)=>{const Be=he.nativeEvent||he,Xe=new Be.constructor(Be.type,Be);Object.defineProperty(Xe,"target",{writable:!0,value:{value:be,name:c}}),P.current=be,u(Xe,be,De)}),V=Array.isArray(C);let N=V?C.slice().sort(jY):[C];N=N.map(he=>he==null?l:jd(he,l,a));const z=s===!0&&m!==null?[...Array(Math.floor((a-l)/m)+1)].map((he,be)=>({value:l+m*be})):s||[],L=z.map(he=>he.value),[B,j]=E.useState(-1),H=E.useRef(null),q=fn(h,H),Y=he=>be=>{var Be;const De=Number(be.currentTarget.getAttribute("data-index"));Fa(be.target)&&j(De),T(De),(Be=he==null?void 0:he.onFocus)==null||Be.call(he,be)},Z=he=>be=>{var De;Fa(be.target)||j(-1),T(-1),(De=he==null?void 0:he.onBlur)==null||De.call(he,be)},G=(he,be)=>{const De=Number(he.currentTarget.getAttribute("data-index")),Be=N[De],Xe=L.indexOf(Be);let Me=be;if(z&&m==null){const xe=L[L.length-1];Me>=xe?Me=xe:Me<=L[0]?Me=L[0]:Me=Me<Be?L[Xe-1]:L[Xe+1]}if(Me=jd(Me,l,a),V){i&&(Me=jd(Me,N[De-1]||-1/0,N[De+1]||1/0));const xe=Me;Me=g7({values:N,newValue:Me,index:De});let Ge=De;i||(Ge=Me.indexOf(xe)),Jb({sliderRef:H,activeIndex:Ge})}_(Me),j(De),M&&!Zb(Me,C)&&M(he,Me,De),d&&d(he,P.current??Me)},X=he=>be=>{var De;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(be.key)){be.preventDefault();const Be=Number(be.currentTarget.getAttribute("data-index")),Xe=N[Be];let Me=null;if(m!=null){const xe=be.shiftKey?g:m;switch(be.key){case"ArrowUp":Me=Bh(Xe,xe,1,l,a);break;case"ArrowRight":Me=Bh(Xe,xe,o?-1:1,l,a);break;case"ArrowDown":Me=Bh(Xe,xe,-1,l,a);break;case"ArrowLeft":Me=Bh(Xe,xe,o?1:-1,l,a);break;case"PageUp":Me=Bh(Xe,g,1,l,a);break;case"PageDown":Me=Bh(Xe,g,-1,l,a);break;case"Home":Me=l;break;case"End":Me=a;break}}else if(z){const xe=L[L.length-1],Ge=L.indexOf(Xe),Ke=[o?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],nt=[o?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];Ke.includes(be.key)?Ge===0?Me=L[0]:Me=L[Ge-1]:nt.includes(be.key)&&(Ge===L.length-1?Me=xe:Me=L[Ge+1])}Me!=null&&G(be,Me)}(De=he==null?void 0:he.onKeyDown)==null||De.call(he,be)};An(()=>{var he;r&&H.current.contains(document.activeElement)&&((he=document.activeElement)==null||he.blur())},[r]),r&&S!==-1&&I(-1),r&&B!==-1&&j(-1);const K=he=>be=>{var De;(De=he.onChange)==null||De.call(he,be),G(be,be.target.valueAsNumber)},J=E.useRef(void 0);let te=f;o&&f==="horizontal"&&(te+="-reverse");const ne=({finger:he,move:be=!1})=>{const{current:De}=H,{width:Be,height:Xe,bottom:Me,left:xe}=De.getBoundingClientRect();let Ge;te.startsWith("vertical")?Ge=(Me-he.y)/Xe:Ge=(he.x-xe)/Be,te.includes("-reverse")&&(Ge=1-Ge);let Ke;if(Ke=t_e(Ge,l,a),m)Ke=r_e(Ke,m,l);else{const en=m7(L,Ke);Ke=L[en]}Ke=jd(Ke,l,a);let nt=0;
4534if(V){be?nt=J.current:nt=m7(N,Ke),i&&(Ke=jd(Ke,N[nt-1]||-1/0,N[nt+1]||1/0));const en=Ke;Ke=g7({values:N,newValue:Ke,index:nt}),i&&be||(nt=Ke.indexOf(en),J.current=nt)}return{newValue:Ke,activeIndex:nt}},ce=jt(he=>{const be=Qb(he,v);if(!be)return;if(k.current+=1,he.type==="mousemove"&&he.buttons===0){ie(he);return}const{newValue:De,activeIndex:Be}=ne({finger:be,move:!0});Jb({sliderRef:H,activeIndex:Be,setActive:I}),_(De),!A&&k.current>e_e&&R(!0),M&&!Zb(De,C)&&M(he,De,Be)}),ie=jt(he=>{const be=Qb(he,v);if(R(!1),!be)return;const{newValue:De}=ne({finger:be,move:!0});I(-1),he.type==="touchend"&&T(-1),d&&d(he,P.current??De),v.current=void 0,ue()}),oe=jt(he=>{if(r)return;y7()||he.preventDefault();const be=he.changedTouches[0];be!=null&&(v.current=be.identifier);const De=Qb(he,v);if(De!==!1){const{newValue:Xe,activeIndex:Me}=ne({finger:De});Jb({sliderRef:H,activeIndex:Me,setActive:I}),_(Xe),M&&!Zb(Xe,C)&&M(he,Xe,Me)}k.current=0;const Be=In(H.current);Be.addEventListener("touchmove",ce,{passive:!0}),Be.addEventListener("touchend",ie,{passive:!0})}),ue=E.useCallback(()=>{const he=In(H.current);he.removeEventListener("mousemove",ce),he.removeEventListener("mouseup",ie),he.removeEventListener("touchmove",ce),he.removeEventListener("touchend",ie)},[ie,ce]);E.useEffect(()=>{const{current:he}=H;return he.addEventListener("touchstart",oe,{passive:y7()}),()=>{he.removeEventListener("touchstart",oe),ue()}},[ue,oe]),E.useEffect(()=>{r&&ue()},[r,ue]);const pe=he=>be=>{var Xe;if((Xe=he.onMouseDown)==null||Xe.call(he,be),r||be.defaultPrevented||be.button!==0)return;be.preventDefault();const De=Qb(be,v);if(De!==!1){const{newValue:Me,activeIndex:xe}=ne({finger:De});Jb({sliderRef:H,activeIndex:xe,setActive:I}),_(Me),M&&!Zb(Me,C)&&M(be,Me,xe)}k.current=0;const Be=In(H.current);Be.addEventListener("mousemove",ce,{passive:!0}),Be.addEventListener("mouseup",ie)},ve=US(V?N[0]:l,l,a),se=US(N[N.length-1],l,a)-ve,ae=(he={})=>{const be=hf(he),De={onMouseDown:pe(be||{})},Be={...be,...De};return{...he,ref:q,...Be}},ke=he=>be=>{var Be;(Be=he.onMouseOver)==null||Be.call(he,be);const De=Number(be.currentTarget.getAttribute("data-index"));T(De)},Ee=he=>be=>{var De;(De=he.onMouseLeave)==null||De.call(he,be),T(-1)},_e=(he={})=>{const be=hf(he),De={onMouseOver:ke(be||{}),onMouseLeave:Ee(be||{})};return{...he,...be,...De}},we=he=>({pointerEvents:S!==-1&&S!==he?"none":void 0});let et;return f==="vertical"&&(et=o?"vertical-rl":"vertical-lr"),{active:S,axis:te,axisProps:i_e,dragging:A,focusedThumbIndex:B,getHiddenInputProps:(he={})=>{const be=hf(he),De={onChange:K(be||{}),onFocus:Y(be||{}),onBlur:Z(be||{}),onKeyDown:X(be||{})},Be={...be,...De};return{tabIndex:y,"aria-labelledby":e,"aria-orientation":f,"aria-valuemax":p(a),"aria-valuemin":p(l),name:c,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:r,...he,...Be,style:{...BY,direction:o?"rtl":"ltr",width:"100%",height:"100%",writingMode:et}}},getRootProps:ae,getThumbProps:_e,marks:z,open:O,range:V,rootRef:q,trackLeap:se,trackOffset:ve,values:N,getThumbStyle:we}}const a_e=t=>!t||!Oa(t);function l_e(t){return Pe("MuiSlider",t)}const cs=Le("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),c_e=t=>{const{open:e}=t;return{offset:de(e&&cs.valueLabelOpen),circle:cs.valueLabelCircle,label:cs.valueLabelLabel}};function u_e(t){const{children:e,className:n,value:r}=t,i=c_e(t);return e?E.cloneElement(e,{className:e.props.className},x.jsxs(E.Fragment,{children:[e.props.children,x.jsx("span",{className:de(i.offset,n),"aria-hidden":!0,children:x.jsx("span",{className:i.circle,children:x.jsx("span",{className:i.label,children:r})})})]})):null}function v7(t){return t}const d_e=W("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`color${Q(n.color)}`],n.size!=="medium"&&e[`size${Q(n.size)}`],n.marked&&e.marked,n.orientation==="vertical"&&e.vertical,n.track==="inverted"&&e.trackInverted,n.track===!1&&e.trackFalse]}})(Te(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",curs
vendor: 26,604 bytes, line 4534
4534or:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${cs.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${cs.dragging}`]:{[`& .${cs.thumb}, & .${cs.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{color:(t.vars||t).palette[e].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),f_e=W("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),h_e=W("span",{name:"MuiSlider",slot:"Track"})(Te(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${e}Track`],borderColor:t.vars.palette.Slider[`${e}Track`]}:{backgroundColor:t.lighten(t.palette[e].main,.62),borderColor:t.lighten(t.palette[e].main,.62),...t.applyStyles("dark",{backgroundColor:t.darken(t.palette[e].main,.5)}),...t.applyStyles("dark",{borderColor:t.darken(t.palette[e].main,.5)})}}}))]}))),p_e=W("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.thumb,e[`thumbColor${Q(n.color)}`],n.size!=="medium"&&e[`thumbSize${Q(n.size)}`]]}})(Te(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${cs.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{[`&:hover, &.${cs.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${t.alpha((t.vars||t).palette[e].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${cs.active}`]:{boxShadow:`0px 0px 0px 14px ${t.alpha((t.vars||t).palette[e].main,.16)}`}}}))]}))),m_e=W(u_e,{name:"MuiSlider",slot:"ValueLabel"})(Te(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${cs.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${cs.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),g_e=W("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>$v(t)&&t!=="markActive",overridesResolver:(t,e)=>{const{markActive:n}=t;return[e.mark,n&&e.markActive]}})(Te(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),y_e=W("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>$v(t)&&t!=="markLabelActive"})(Te(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),v_e=t=>{const{disabled:e,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:l}=t,c={root:["root",e&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${Q(a)}`,l&&`size${Q(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled",l&&`thumbSize${Q(l)}`,a&&`thumbColor${Q(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Oe(c,l_e,s)},b_e=({children:t})=>t,ZGe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSlider"}),i=Za(),{"aria-label":o,"aria-valuetext":s,"aria-labelledby":a,component:l="span",components:c={},componentsProps:u={},color:d="primary",classes:f,className:h,disableSwap:p=!1,disabled:m=!1,getAriaLabel:g,getAriaValueText:y,marks:b=!1,max:v=100,min:S=0,name:I,onChange:O,onChangeCommitted:T,orientation:A="horizontal",shiftStep:R=10,size:k="medium",step:P=1,scale:C=v7,slotProps:_,slots:M,tabIndex:V,track:N="normal",value:z,valueLabelDisplay:L="off",valueLabelFormat:B=v7,...j}=r,H={...r,isRtl:i,max:v,min:S,classes:f,disabled:m,disableSwap:p,orientation:A,marks:b,color:d,size:k,step:P,shiftStep:R,scale:C,track:N,valueLabelDisplay:L,valueLabelFormat:B},{axisProps:q,getRootProps:Y,getHiddenInputProps:Z,getThumbProps:G,open:X,active:K,axis:J,focusedThumbIndex:te,range:ne,dragging:ce,marks:ie,values:oe,trackOffset:ue,trackLeap:pe,getThumbStyle:ve}=s_e({...H,rootRef:n});H.marked=ie.length>0&&ie.some(Fe=>Fe.label),H.dragging=ce,H.focusedThumbIndex=te;const se=v_e(H),ae=(M==null?void 0:M.root)??c.Root??d_e,ke=(M==null?void 0:M.rail)??c.Rail??f_e,Ee=(M==null?void 0:M.track)??c.Track??h_e,_e=(M==null?void 0:M.thumb)??c.Thumb??p_e,we=(M==null?void 0:M.valueLabel)??c.ValueLabel??m_e,et=(M==null?void 0:M.mark)??c.Mark??g_e,rt=(M==null?void 0:M.markLabel)??c.MarkLabel??y_e,he=(M==null?void 0:M.input)??c.Input??"input",be=(_==null?void 0:_.root)??u.root,De=(_==null?void 0:_.rail)??u.rail,Be=(_==null?void 0:_.track)??u.track,Xe=(_==null?void 0:_.thumb)??u.thumb,Me=(_==null?void 0:_.valueLabel)??u.valueLabel,xe=(_==null?void 0:_.mark)??u.mark,Ge=(_==null?void 0:_.markLabel)??u.markLabel,Ke=(_==null?void 0:_.input)??u.input,nt=qi({elementType:ae,getSlotProps:Y,externalSlotProps:be,externalForwardedProps:j,additionalProps:{...a_e(ae)&&{as:l}},ownerState:{...H,...be==null?void 0:be.ownerState},className:[se.root,h]}),en=qi({elementType:ke,externalSlotProps:De,ownerState:H,className:se.rail}),Wt=qi({elementType:Ee,externalSlotProps:Be,additionalProps:{style:{...q[J].offset(ue),...q[J].leap(pe)}},ownerState:{...H,...Be==null?void 0:Be.ownerState},className:se.track}),Jt=qi({elementType:_e,getSlotProps:G,externalSlotProps:Xe,ownerState:{...H,...Xe==null?void 0:Xe.ownerState},className:se.thumb}),pn=qi({elementType:we,externalSlotProps:Me,ownerState:{...H,...Me==null?void 0:Me.ownerState},className:se.valueLabel}),Cn=qi({elementType:et,externalSlotProps:xe,ownerState:H,className:se.mark}),tn=qi({elementType:rt,externalSlotProps:Ge,ownerState:H,className:se.markLabel}),Ue=qi({elementType:he,getSlotProps:Z,externalSlotProps:Ke,ownerState:H});return x.jsxs(ae,{...nt,children:[x.jsx(ke,{...en}),x.jsx(Ee,{...Wt}),ie.filter(Fe=>Fe.value>=S&&Fe.value<=v).map((Fe,ct)=>{const Dt=US(Fe.value,S,v),Gt=q[J].offset(Dt);let mn;return N===!1?mn=oe.includes(Fe.value):mn=N==="normal"&&(ne?Fe.value>=oe[0]&&Fe.value<=oe[oe.length-1]:Fe.value<=oe[0])||N==="inverted"&&(ne?Fe.value<=oe[0]||Fe.value>=oe[oe.length-1]:Fe.value>=oe[0]),x.jsxs(E.Fragment,{children:[x.jsx(et,{"data-index":ct,...Cn,...!Oa(et)&&{markActive:mn},style:{...Gt,...Cn.style},className:de(Cn.className,mn&&se.markActive)}),Fe.label!=null?x.jsx(rt,{"aria-hidden":!0,"data-index":ct,...tn,...!Oa(rt)&&{markLabelActive:mn},style:{...Gt,...tn.style},className:de(se.markLabel,tn.className,mn&&se.markLabelActive),children:Fe.label}):null]},ct)}),oe.map((Fe,ct)=>{const Dt=US(Fe,S,v),Gt=q[J].offset(Dt),mn=L==="off"?b_e:we;return x.jsx(mn,{...!Oa(mn)&&{valueLabelFormat:B,valueLabelDisplay:L,value:typeof B=="function"?B(C(Fe),ct):B,index:ct,open:X===ct||K===ct||L==="on",disabled:m},...pn,children:x.jsx(_e,{"data-index":ct,...Jt,className:de(se.thumb,Jt.className,K===ct&&se.active,te===ct&&se.focusVisible),style:{...Gt,...ve(ct),...Jt.style},children:x.jsx(he,{"data-index":ct,"aria-label":g?g(ct):o,"aria-valuenow":C(Fe),"aria-labelledby":a,"aria-valuetext":y?y(C(Fe),ct):s,value:oe[ct],...Ue})})},ct)})]})});function w_e(t={}){const{autoHideDuration:e=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=t,s=Ol();E.useEffect(()=>{if(!i)return;function y(b){b.defaultPrevented||b.key==="Escape"&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y)}},[i,r]);const a=jt((y,b)=>{r==null||r(y,b)}),l=jt(y=>{!r||y==null||s.start(y,()=>{a(null,"timeout")})});E.useEffect(()=>(i&&l(e),s.clear),[i,e,l,s]);const c=y=>{r==null||r(y,"clickaway")},u=s.clear,d=E.useCallback(()=>{e!=null&&l(o??e*.5)},[e,o,l]),f=y=>b=>{const v=y.onBlur;v==null||v(b),d()},h=y=>b=>{const v=y.onFocus;v==null||v(b),u()},p=y=>b=>{const v=y.onMouseEnter;v==null||v(b),u()},m=y=>b=>{const v=y.onMouseLeave;v==null||v(b),d()};return E.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",d),window.addEventListener("blur",u),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",u)}},[n,i,d,u]),{getRootProps:(y={})=>{const b={...hf(t),...hf(y)};return{role:"presentation",...y,...b,onBlur:f(b),onFocus:h(b),onMouseEnter:p(b),onMouseLeave:m(b)}},onClickAway:c}}function S_e(t){return Pe("MuiSnackbarContent",t)}Le("MuiSnackbarContent",["root","message","action"]);const x_e=t=>{const{classes:e}=t;return Oe({root:["root"],action:["action"],message:["message"]},S_e,e)},E_e=W(na,{name:"MuiSnackbarContent",slot:"Root"})(Te(({theme:t})=>{const e=t.palette.mode==="light"?.8:.98;return{...t.typography.body2,color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(mR(t.palette.background.default,e)),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:mR(t.palette.background.default,e),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),T_e=W("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),C_e=W("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),__e=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert",...l}=r,c=r,u=x_e(c);return x.jsxs(E_e,{role:a,elevation:6,className:de(u.root,o),ownerState:c,ref:n,...l,children:[x.jsx(T_e,{className:u.message,ownerState:c,children:s}),i?x.jsx(C_e,{className:u.action,ownerState:c,children:i}):null]})});function A_e(t){return Pe("MuiSnackbar",t)}Le("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const I_e=t=>{const{classes:e,anchorOrigin:n}=t,r={root:["root",`anchorOrigin${Q(n.vertical)}${Q(n.horizontal)}`]};return Oe(r,A_e,e)},R_e=W("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`anchorOrigin${Q(n.anchorOrigin.vertical)}${Q(n.anchorOrigin.horizontal)}`]]}})(Te(({theme:t})=>({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical==="top",style:{top:8,[t.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!=="top",style:{bottom:8,[t.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[t.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[t.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal==="center",style:{[t.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),eKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSnackbar"}),i=Ho(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:c=null,children:u,className:d,ClickAwayListenerProps:f,ContentProps:h,disableWindowBlurListener:p=!1,message:m,onBlur:g,onClose:y,onFocus:b,onMouseEnter:v,onMouseLeave:S,open:I,resumeHideDuration:O,slots:T={},slotProps:A={},TransitionComponent:R,transitionDuration:k=o,TransitionProps:{onEnter:P,onExited:C,..._}={},...M}=r,V={...r,anchorOrigin:{vertical:a,horizontal:l},autoHideDuration:c,disableWindowBlurListener:p,TransitionComponent:R,transitionDuration:k},N=I_e(V),{getRootProps:z,onClickAway:L}=w_e(V),[B,j]=E.useState(!0),H=oe=>{j(!0),C&&C(oe)},q=(oe,ue)=>{j(!1),P&&P(oe,ue)},Y={slots:{transition:R,...T},slotProps:{content:h,clickAwayListener:f,transition:_,...A}},[Z,G]=Ie("root",{ref:n,className:[N.root,d],elementType:R_e,getSlotProps:z,externalForwardedProps:{...Y,...M},ownerState:V}),[X,{ownerState:K,...J}]=Ie("clickAwayListener",{elementType:sxe,externalForwardedProps:Y,getSlotProps:oe=>({onClickAway:(...ue)=>{var ve;const pe=ue[0];(ve=oe.onClickAway)==null||ve.call(oe,...ue),!(pe!=null&&pe.defaultMuiPrevented)&&L(...ue)}}),ownerState:V}),[te,ne]=Ie("content",{elementType:__e,shouldForwardComponentProp:!0,externalForwardedProps:Y,additionalProps:{message:m,action:s},ownerState:V}),[ce,ie]=Ie("transition",{elementType:_0,externalForwardedProps:Y,getSlotProps:oe=>({onEnter:(...ue)=>{var pe;(pe=oe.onEnter)==null||pe.call(oe,...ue),q(...ue)},onExited:(...ue)=>{var pe;(pe=oe.onExited)==null||pe.call(oe,...ue),H(...ue)}}),additionalProps:{appear:!0,in:I,timeout:k,direction:a==="top"?"down":"up"},ownerState:V});return!I&&B?null:x.jsx(X,{...J,...T.clickAwayListener&&{ownerState:K},children:x.jsx(Z,{...G,children:x.jsx(ce,{...ie,children:u||x.jsx(te,{...ne})})})})});function M_e(t){return Pe("MuiTooltip",t)}const rr=Le("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function k_e(t){return Math.round(t*1e5)/1e5}const P_e=t=>{const{classes:e,disableInteractive:n,arrow:r,touch:i,placement:o}=t,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Q(o.split("-")[0])}`],arrow:["arrow"]};return Oe(s,M_e,e)},O_e=W(CT,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(Te(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${rr.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rr.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${rr.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${rr.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${rr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${rr.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${rr.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),N_e=W("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e[`tooltipPlacement${Q(n.placement.split("-")[0])}`]]}})(Te(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${rr.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${rr.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${rr.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${k_e(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${rr.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${rr.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${rr.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${rr.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),D_e=W("span",{name:"MuiTooltip",slot:"Arrow"})(Te(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let t2=!1;const b7=new ET;let e1={x:0,y:0};function n2(t,e){return(n,...r)=>{e&&e(n,...r),t(n,...r)}}const tKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTooltip"}),{arrow:i=!1,children:o,classes:s,components:a={},componentsProps:l={},describeChild:c=!1,disableFocusListener:u=!1,disableHoverListener:d=!1,disableInteractive:f=!1,disableTouchListener:h=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:g=700,followCursor:y=!1,id:b,leaveDelay:v=0,leaveTouchDelay:S=1500,onClose:I,onOpen:O,open:T,placement:A="bottom",PopperComponent:R,PopperProps:k={},slotProps:P={},slots:C={},title:_,TransitionComponent:M,TransitionProps:V,...N}=r,z=E.isValidElement(o)?o:x.jsx("span",{children:o}),L=Ho(),B=Za(),[j,H]=E.useState(),[q,Y]=E.useState(null),Z=E.useRef(!1),G=f||y,X=Ol(),K=Ol(),J=Ol(),te=Ol(),[ne,ce]=Ws({controlled:T,default:!1,name:"Tooltip",state:"open"});let ie=ne;const oe=Bo(b),ue=E.useRef(),pe=jt(()=>{ue.current!==void 0&&(document.body.style.WebkitUserSelect=ue.current,ue.current=void 0),te.clear()});E.useEffect(()=>pe,[pe]);const ve=st=>{b7.clear(),t2=!0,ce(!0),O&&!ie&&O(st)},se=jt(st=>{b7.start(800+v,()=>{t2=!1}),ce(!1),I&&ie&&I(st),X.start(L.transitions.duration.shortest,()=>{Z.current=!1})}),ae=st=>{Z.current&&st.type!=="touchstart"||(j&&j.removeAttribute("title"),K.clear(),J.clear(),p||t2&&m?K.start(t2?m:p,()=>{ve(st)}):ve(st))},ke=st=>{K.clear(),J.start(v,()=>{se(st)})},[,Ee]=E.useState(!1),_e=st=>{const Ct=(st==null?void 0:st.target)??j;if(!Ct||!Fa(Ct)){Ee(!1);const $e=st??new Event("blur");!st&&Ct&&(Object.defineProperty($e,"target",{value:Ct}),Object.defineProperty($e,"currentTarget",{value:Ct})),ke($e)}},we=st=>{j||H(st.currentTarget),Fa(st.target)&&(Ee(!0),ae(st))},et=st=>{Z.current=!0;const Ct=z.props;Ct.onTouchStart&&Ct.onTouchStart(st)},rt=st=>{et(st),J.clear(),X.clear(),pe(),ue.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",te.start(g,()=>{document.body.style.WebkitUserSelect=ue.current,ae(st)})},he=st=>{z.props.onTouchEnd&&z.props.onTouchEnd(st),pe(),J.start(S,()=>{se(st)})};E.useEffect(()=>{if(!ie)return;function st(Ct){Ct.key==="Escape"&&se(Ct)}return document.addEventListener("keydown",st),()=>{document.removeEventListener("keydown",st)}},[se,ie]);const be=fn(ad(z),H,n);!_&&_!==0&&(ie=!1);const De=E.useRef(),Be=st=>{const Ct=z.props;Ct.onMouseMove&&Ct.onMouseMove(st),e1={x:st.clientX,y:st.clientY},De.current&&De.current.update()},Xe={},Me=typeof _=="string";c?(Xe.title=!ie&&Me&&!d?_:null,Xe["aria-describedby"]=ie?oe:null):(Xe["aria-label"]=Me?_:null,Xe["aria-labelledby"]=ie&&!Me?oe:null);const xe={...Xe,...N,...z.props,className:de(N.className,z.props.className),onTouchStart:et,ref:be,...y?{onMouseMove:Be}:{}},Ge={};h||(xe.onTouchStart=rt,xe.onTouchEnd=he),d||(xe.onMouseOver=n2(ae,xe.onMouseOver),xe.onMouseLeave=n2(ke,xe.onMouseLeave),G||(Ge.onMouseOver=ae,Ge.onMouseLeave=ke)),u||(xe.onFocus=n2(we,xe.onFocus),xe.onBlur=n2(_e,xe.onBlur),G||(Ge.onFocus=we,Ge.onBlur=_e));const Ke={...r,isRtl:B,arrow:i,disableInteractive:G,placement:A,PopperComponentProp:R,touch:Z.current},nt=typeof P.popper=="function"?P.popper(Ke):P.popper,en=E.useMemo(()=>{var Ct,$e;let st=[{name:"arrow",enabled:!!q,options:{element:q,padding:4}}];return(Ct=k.popperOptions)!=null&&Ct.modifiers&&(st=st.concat(k.popperOptions.modifiers)),($e=nt==null?void 0:nt.popperOptions)!=null&&$e.modifiers&&(st=st.concat(nt.popperOptions.modifiers)),{...k.popperOptions,...nt==null?void 0:nt.popperOptions,modifiers:st}},[q,k.popperOptions,nt==null?void 0:nt.popperOptions]),Wt=P_e(Ke),Jt=typeof P.transition=="function"?P.transition(Ke):P.transition,pn={slots:{popper:a.Popper,transition:a.Transition??M,tooltip:a.Tooltip,arrow:a.Arrow,...C},slotProps:{arrow:P.arrow??l.arrow,popper:{...k,...nt??l.popper},tooltip:P.tooltip??l.tooltip,transition:{...V,...Jt??l.transition}}},[Cn,tn]=Ie("popper",{elementType:O_e,externalForwardedProps:pn,ownerState:Ke,className:de(Wt.popper,k==null?void 0:k.className)}),[Ue,Fe]=Ie("transition",{elementType:_0,externalForwardedProps:pn,ownerState:Ke}),[ct,Dt]=Ie("tooltip",{elementType:N_e,className:Wt.tooltip,externalForwardedProps:pn,ownerState:Ke}),[Gt,mn]=Ie("arrow",{elementType:D_e,className:Wt.arrow,externalForwardedProps:pn,ownerState:Ke,ref:Y});return x.jsxs(E.Fragment,{children:[E.cloneElement(z,xe),x.jsx(Cn,{as:R??CT,placement:A,anchorEl:y?{getBoundingClientRect:()=>({top:e1.y,left:e1.x,right:e1.x,bottom:e1.y,width:0,height:0})}:j,popperRef:De,open:j?ie:!1,id:oe,transition:!0,...Ge,...tn,popperOptions:en,children:({TransitionProps:st})=>x.jsx(Ue,{timeout:L.transitions.duration.shorter,...st,...Fe,children:x.jsxs(ct,{...Dt,children:[_,i?x.jsx(Gt,{...mn}):null]})})})]})}),nKe=D0e({createStyledComponent:W("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>Ne({props:t,name:"MuiStack"})}),PT=E.createContext({}),zP=E.createContext({});function L_e(t){return Pe("MuiStep",t)}Le("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const z_e=t=>{const{classes:e,orientation:n,alternativeLabel:r,completed:i}=t;return Oe({root:["root",n,r&&"alternativeLabel",i&&"completed"]},L_e,e)},V_e=W("div",{name:"MuiStep",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})({variants:[{props:{orientation:"horizontal"},style:{paddingLeft:8,paddingRight:8}},{props:{alternativeLabel:!0},style:{flex:1,position:"relative"}}
4534]}),rKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiStep"}),{active:i,children:o,className:s,component:a="div",completed:l,disabled:c,expanded:u=!1,index:d,last:f,...h}=r,{activeStep:p,connector:m,alternativeLabel:g,orientation:y,nonLinear:b}=E.useContext(PT);let[v=!1,S=!1,I=!1]=[i,l,c];p===d?v=i!==void 0?i:!0:!b&&p>d?S=l!==void 0?l:!0:!b&&p<d&&(I=c!==void 0?c:!0);const O=E.useMemo(()=>({index:d,last:f,expanded:u,icon:d+1,active:v,completed:S,disabled:I}),[d,f,u,v,S,I]),T={...r,active:v,orientation:y,alternativeLabel:g,completed:S,disabled:I,expanded:u,component:a},A=z_e(T),R=x.jsxs(V_e,{as:a,className:de(A.root,s),ref:n,ownerState:T,...h,children:[m&&g&&d!==0?m:null,o]});return x.jsx(zP.Provider,{value:O,children:m&&!g&&d!==0?x.jsxs(E.Fragment,{children:[m,R]}):R})}),B_e=F(x.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"})),$_e=F(x.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}));function F_e(t){return Pe("MuiStepIcon",t)}const bA=Le("MuiStepIcon",["root","active","completed","error","text"]);var w7;const j_e=t=>{const{classes:e,active:n,completed:r,error:i}=t;return Oe({root:["root",n&&"active",r&&"completed",i&&"error"],text:["text"]},F_e,e)},wA=W(zS,{name:"MuiStepIcon",slot:"Root"})(Te(({theme:t})=>({display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,[`&.${bA.completed}, &.${bA.active}`]:{color:(t.vars||t).palette.primary.main},[`&.${bA.error}`]:{color:(t.vars||t).palette.error.main}}))),H_e=W("text",{name:"MuiStepIcon",slot:"Text"})(Te(({theme:t})=>({fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}))),U_e=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiStepIcon"}),{active:i=!1,className:o,completed:s=!1,error:a=!1,icon:l,...c}=r,u={...r,active:i,completed:s,error:a},d=j_e(u);if(typeof l=="number"||typeof l=="string"){const f=de(o,d.root);return a?x.jsx(wA,{as:$_e,className:f,ref:n,ownerState:u,...c}):s?x.jsx(wA,{as:B_e,className:f,ref:n,ownerState:u,...c}):x.jsxs(wA,{className:f,ref:n,ownerState:u,...c,children:[w7||(w7=x.jsx("circle",{cx:"12",cy:"12",r:"12"})),x.jsx(H_e,{className:d.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:u,children:l})]})}return l});function q_e(t){return Pe("MuiStepLabel",t)}const tu=Le("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),W_e=t=>{const{classes:e,orientation:n,active:r,completed:i,error:o,disabled:s,alternativeLabel:a}=t;return Oe({root:["root",n,o&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",r&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",r&&"active",i&&"completed",o&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer",a&&"alternativeLabel"]},q_e,e)},G_e=W("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation]]}})({display:"flex",alignItems:"center",[`&.${tu.alternativeLabel}`]:{flexDirection:"column"},[`&.${tu.disabled}`]:{cursor:"default"},variants:[{props:{orientation:"vertical"},style:{textAlign:"left",padding:"8px 0"}}]}),K_e=W("span",{name:"MuiStepLabel",slot:"Label"})(Te(({theme:t})=>({...t.typography.body2,display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),[`&.${tu.active}, &.${tu.completed}`]:{color:(t.vars||t).palette.text.primary,fontWeight:500},[`&.${tu.alternativeLabel}`]:{marginTop:16},[`&.${tu.error}`]:{color:(t.vars||t).palette.error.main}}))),Y_e=W("span",{name:"MuiStepLabel",slot:"IconContainer"})({flexShrink:0,display:"flex",paddingRight:8,[`&.${tu.alternativeLabel}`]:{paddingRight:0}}),X_e=W("span",{name:"MuiStepLabel",slot:"LabelContainer"})(Te(({theme:t})=>({width:"100%",color:(t.vars||t).palette.text.secondary,[`&.${tu.alternativeLabel}`]:{textAlign:"center"}}))),Q_e=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiStepLabel"}),{children:i,className:o,componentsProps:s={},error:a=!1,icon:l,optional:c,slots:u={},slotProps:d={},StepIconComponent:f,StepIconProps:h,...p}=r,{alternativeLabel:m,orientation:g}=E.useContext(PT),{active:y,disabled:b,completed:v,icon:S}=E.useContext(zP),I=l||S;let O=f;I&&!O&&(O=U_e);const T={...r,active:y,alternativeLabel:m,completed:v,disabled:b,error:a,orientation:g},A=W_e(T),R={slots:u,slotProps:{stepIcon:h,...s,...d}},[k,P]=Ie("root",{elementType:G_e,externalForwardedProps:{...R,...p},ownerState:T,ref:n,className:de(A.root,o)}),[C,_]=Ie("label",{elementType:K_e,externalForwardedProps:R,ownerState:T}),[M,V]=Ie("stepIcon",{elementType:O,externalForwardedProps:R,ownerState:T});return x.jsxs(k,{...P,children:[I||M?x.jsx(Y_e,{className:A.iconContainer,ownerState:T,children:x.jsx(M,{completed:v,active:y,error:a,icon:I,...V})}):null,x.jsxs(X_e,{className:A.labelContainer,ownerState:T,children:[i?x.jsx(C,{..._,className:de(A.label,_==null?void 0:_.className),children:i}):null,c]})]})});Q_e.muiName="StepLabel";function J_e(t){return Pe("MuiStepConnector",t)}Le("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Z_e=t=>{const{classes:e,orientation:n,alternativeLabel:r,active:i,completed:o,disabled:s}=t,a={root:["root",n,r&&"alternativeLabel",i&&"active",o&&"completed",s&&"disabled"],line:["line",`line${Q(n)}`]};return Oe(a,J_e,e)},eAe=W("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})({flex:"1 1 auto",variants:[{props:{orientation:"vertical"},style:{marginLeft:12}},{props:{alternativeLabel:!0},style:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}}]}),tAe=W("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.line,e[`line${Q(n.orientation)}`]]}})(Te(({theme:t})=>{const e=t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[600];return{display:"block",borderColor:t.vars?t.vars.palette.StepConnector.border:e,variants:[{props:{orientation:"horizontal"},style:{borderTopStyle:"solid",borderTopWidth:1}},{props:{orientation:"vertical"},style:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}]}})),nAe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiStepConnector"}),{className:i,...o}=r,{alternativeLabel:s,orientation:a="horizontal"}
4534=E.useContext(PT),{active:l,disabled:c,completed:u}=E.useContext(zP),d={...r,alternativeLabel:s,orientation:a,active:l,completed:u,disabled:c},f=Z_e(d);return x.jsx(eAe,{className:de(f.root,i),ref:n,ownerState:d,...o,children:x.jsx(tAe,{className:f.line,ownerState:d})})});function rAe(t){return Pe("MuiStepper",t)}Le("MuiStepper",["root","horizontal","vertical","nonLinear","alternativeLabel"]);const iAe=t=>{const{orientation:e,nonLinear:n,alternativeLabel:r,classes:i}=t;return Oe({root:["root",e,n&&"nonLinear",r&&"alternativeLabel"]},rAe,i)},oAe=W("div",{name:"MuiStepper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.nonLinear&&e.nonLinear]}})({display:"flex",variants:[{props:{orientation:"horizontal"},style:{flexDirection:"row",alignItems:"center"}},{props:{orientation:"vertical"},style:{flexDirection:"column"}},{props:{alternativeLabel:!0},style:{alignItems:"flex-start"}}]}),sAe=x.jsx(nAe,{}),iKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:o=!1,children:s,className:a,component:l="div",connector:c=sAe,nonLinear:u=!1,orientation:d="horizontal",...f}=r,h={...r,nonLinear:u,alternativeLabel:o,orientation:d,component:l},p=iAe(h),m=E.Children.toArray(s).filter(Boolean),g=m.map((b,v)=>E.cloneElement(b,{index:v,last:v+1===m.length,...b.props})),y=E.useMemo(()=>({activeStep:i,alternativeLabel:o,connector:c,nonLinear:u,orientation:d}),[i,o,c,u,d]);return x.jsx(PT.Provider,{value:y,children:x.jsx(oAe,{as:l,ownerState:h,className:de(p.root,a),ref:n,...f,children:g})})}),aAe=W("div",{name:"MuiSwipeArea",shouldForwardProp:yr})(Te(({theme:t})=>({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1,variants:[{props:{anchor:"left"},style:{right:"auto"}},{props:{anchor:"right"},style:{left:"auto",right:0}},{props:{anchor:"top"},style:{bottom:"auto",right:0}},{props:{anchor:"bottom"},style:{top:"auto",bottom:0,right:0}}]}))),lAe=E.forwardRef(function(e,n){const{anchor:r,classes:i={},className:o,width:s,style:a,...l}=e,c=e;return x.jsx(aAe,{className:de("PrivateSwipeArea-root",i.root,i[`anchor${Q(r)}`],o),ref:n,style:{[Hd(r)?"width":"height"]:s,...a},ownerState:c,...l})}),r2=3,SA=20;let fl=null;function xA(t,e,n){return t==="right"?n.body.offsetWidth-e[0].pageX:e[0].pageX}function EA(t,e,n){return t==="bottom"?n.innerHeight-e[0].clientY:e[0].clientY}function t1(t,e){return t?e.clientWidth:e.clientHeight}function S7(t,e,n,r){return Math.min(Math.max(n?e-t:r+e-t,0),r)}function cAe(t,e){const n=[];for(;t&&t!==e.parentElement;){const r=ui(e).getComputedStyle(t);r.getPropertyValue("position")==="absolute"||r.getPropertyValue("overflow-x")==="hidden"||(t.clientWidth>0&&t.scrollWidth>t.clientWidth||t.clientHeight>0&&t.scrollHeight>t.clientHeight)&&n.push(t),t=t.parentElement}return n}function uAe({domTreeShapes:t,start:e,current:n,anchor:r}){const i={scrollPosition:{x:"scrollLeft",y:"scrollTop"},scrollLength:{x:"scrollWidth",y:"scrollHeight"},clientLength:{x:"clientWidth",y:"clientHeight"}};return t.some(o=>{let s=n>=e;(r==="top"||r==="left")&&(s=!s);const a=r==="left"||r==="right"?"x":"y",l=Math.round(o[i.scrollPosition[a]]),c=l>0,u=l+o[i.clientLength[a]]<o[i.scrollLength[a]];return!!(s&&u||!s&&c)})}const dAe=typeof navigator<"u"&&/iPad|iPhone|iPod/.test(navigator.userAgent),oKe=E.forwardRef(function(e,n){const r=Ne({name:"MuiSwipeableDrawer",props:e}),i=Ho(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",disableBackdropTransition:a=!1,disableDiscovery:l=!1,disableSwipeToOpen:c=dAe,hideBackdrop:u,hysteresis:d=.52,allowSwipeInChildren:f=!1,minFlingVelocity:h=450,ModalProps:{BackdropProps:p,...m}={},onClose:g,onOpen:y,open:b=!1,PaperProps:v={},SwipeAreaProps:S,swipeAreaWidth:I=20,transitionDuration:O=o,variant:T="temporary",slots:A={},slotProps:R={},...k}=r,[P,C]=E.useState(!1),_=E.useRef({isSwiping:null}),M=E.useRef(),V=E.useRef(),N=E.useRef(),z=fn(v.ref,N),L=E.useRef(!1),B=E.useRef();An(()=>{B.current=null},[b]);const j=E.useCallback((K,J={})=>{const{mode:te=null,changeTransition:ne=!0}=J,ce=M1(i,s),ie=["right","bottom"].includes(ce)?1:-1,oe=Hd(s),ue=oe?`translate(${ie*K}px, 0)`:`translate(0, ${ie*K}px)`,pe=N.current.style;pe.webkitTransform=ue,pe.transform=ue;let ve="";if(te&&(ve=i.transitions.create("all",rc({easing:void 0,style:void 0,timeout:O},{mode:te}))),ne&&(pe.webkitTransition=ve,pe.transition=ve),!a&&!u){const se=V.current.style;se.opacity=1-K/t1(oe,N.current),ne&&(se.webkitTransition=ve,se.transition=ve)}},[s,a,u,i,O]),H=jt(K=>{if(!L.current)return;if(fl=null,L.current=!1,za.flushSync(()=>{C(!1)}),!_.current.isSwiping){_.current.isSwiping=null;return}_.current.isSwiping=null;const J=M1(i,s),te=Hd(s);let ne;te?ne=xA(J,K.changedTouches,In(K.currentTarget)):ne=EA(J,K.changedTouches,ui(K.
vendor: 2,207 bytes, line 4534
4534currentTarget));const ce=te?_.current.startX:_.current.startY,ie=t1(te,N.current),oe=S7(ne,ce,b,ie),ue=oe/ie;if(Math.abs(_.current.velocity)>h&&(B.current=Math.abs((ie-oe)/_.current.velocity)*1e3),b){_.current.velocity>h||ue>d?g():j(0,{mode:"exit"});return}_.current.velocity<-h||1-ue>d?y():j(t1(te,N.current),{mode:"enter"})}),q=(K=!1)=>{if(!P){(K||!(l&&f))&&za.flushSync(()=>{C(!0)});const J=Hd(s);!b&&N.current&&j(t1(J,N.current)+(l?15:-SA),{changeTransition:!1}),_.current.velocity=0,_.current.lastTime=null,_.current.lastTranslate=null,_.current.paperHit=!1,L.current=!0}},Y=jt(K=>{if(!N.current||!L.current||fl!==null&&fl!==_.current)return;q(!0);const J=M1(i,s),te=Hd(s),ne=xA(J,K.touches,In(K.currentTarget)),ce=EA(J,K.touches,ui(K.currentTarget));if(b&&N.current.contains(K.target)&&fl===null){const ve=cAe(K.target,N.current);if(uAe({domTreeShapes:ve,start:te?_.current.startX:_.current.startY,current:te?ne:ce,anchor:s})){fl=!0;return}fl=_.current}if(_.current.isSwiping==null){const ve=Math.abs(ne-_.current.startX),se=Math.abs(ce-_.current.startY),ae=te?ve>se&&ve>r2:se>ve&&se>r2;if(ae&&K.cancelable&&K.preventDefault(),ae===!0||(te?se>r2:ve>r2)){if(_.current.isSwiping=ae,!ae){H(K);return}_.current.startX=ne,_.current.startY=ce,!l&&!b&&(te?_.current.startX-=SA:_.current.startY-=SA)}}if(!_.current.isSwiping)return;const ie=t1(te,N.current);let oe=te?_.current.startX:_.current.startY;b&&!_.current.paperHit&&(oe=Math.min(oe,ie));const ue=S7(te?ne:ce,oe,b,ie);if(b)if(_.current.paperHit)ue===0&&(_.current.startX=ne,_.current.startY=ce);else if(te?ne<ie:ce<ie)_.current.paperHit=!0,_.current.startX=ne,_.current.startY=ce;else return;_.current.lastTranslate===null&&(_.current.lastTranslate=ue,_.current.lastTime=performance.now()+1);const pe=(ue-_.current.lastTranslate)/(performance.now()-_.current.lastTime)*1e3;_.current.velocity=_.current.velocity*.4+pe*.6,_.current.lastTranslate=ue,_.current.lastTime=performance.now(),K.cancelable&&K.preventDefault(),j(ue)}),Z=jt(K=>{var ie;if(K.defaultPrevented||K.defaultMuiPrevented||b&&(u||!V.current.contains(K.target))&&!N.current.contains(K.target))return;const J=M1(i,s),te=Hd(s),ne=xA(J,K.touches,In(K.currentTarget)),ce=EA(J,K.touches,ui(K.
4534currentTarget));if(!b){if(c||!(K.target===M.current||(ie=N.current)!=null&&ie.contains(K.target)&&(typeof f=="function"?f(K,M.current,N.current):f)))return;if(te){if(ne>I)return}else if(ce>I)return}K.defaultMuiPrevented=!0,fl=null,_.current.startX=ne,_.current.startY=ce,q()});E.useEffect(()=>{if(T==="temporary"){const K=In(N.current);return K.addEventListener("touchstart",Z),K.addEventListener("touchmove",Y,{passive:!b}),K.addEventListener("touchend",H),()=>{K.removeEventListener("touchstart",Z),K.removeEventListener("touchmove",Y,{passive:!b}),K.removeEventListener("touchend",H)}}},[T,b,Z,Y,H]),E.useEffect(()=>()=>{fl===_.current&&(fl=null)},[]),E.useEffect(()=>{b||C(!1)},[b]);const[G,X]=Ie("swipeArea",{ref:M,elementType:lAe,ownerState:r,externalForwardedProps:{slots:A,slotProps:{swipeArea:S,...R}},additionalProps:{width:I,anchor:s}});return x.jsxs(E.Fragment,{children:[x.jsx(lEe,{open:T==="temporary"&&P?!0:b,variant:T,ModalProps:{BackdropProps:{...p,ref:V},...T==="temporary"&&{keepMounted:!0},...m},hideBackdrop:u,anchor:s,transitionDuration:B.current||O,onClose:g,ref:n,slots:A,slotProps:{...R,backdrop:E0(R.backdrop??p,{ref:V}),paper:E0(R.paper??v,{style:{pointerEvents:T==="temporary"&&!b&&!f?"none":""},ref:z})},...k}),!c&&T==="temporary"&&x.jsx(nCe,{children:x.jsx(G,{...X})})]})});function fAe(t){return Pe("MuiSwitch",t)}const Ci=Le("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),hAe=t=>{const{classes:e,edge:n,size:r,color:i,checked:o,disabled:s}=t,a={root:["root",n&&`edge${Q(n)}`,`size${Q(r)}`],switchBase:["switchBase",`color${Q(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Oe(a,fAe,e);return{...e,...l}},pAe=W("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${Q(n.edge)}`],e[`size${Q(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Ci.thumb}`]:{width:16,height:16},[`& .${Ci.switchBase}`]:{padding:4,[`&.${Ci.checked}`]:{transform:"translateX(16px)"}}}}]}),mAe=W(IP,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Ci.input}`]:e.input},n.color!=="default"&&e[`color${Q(n.color)}`]]}})(Te(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Ci.checked}`]:{transform:"translateX(20px)"},[`&.${Ci.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Ci.checked} + .${Ci.track}`]:{opacity:.5},[`&.${Ci.disabled} + .${Ci.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Ci.input}`]:{left:"-100%",width:"300%"}})),Te(({theme:t})=>({"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(t.palette).filter(Bt(["light"])).map(([e])=>({props:{color:e},style:{[`&.${Ci.checked}`]:{color:(t.vars||t).palette[e].main,"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ci.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e}DisabledColor`]:`${t.palette.mode==="light"?t.lighten(t.palette[e].main,.62):t.darken(t.palette[e].main,.55)}`}},[`&.${Ci.checked} + .${Ci.track}`]:{backgroundColor:(t.vars||t).palette[e].main}}}))]}))),gAe=W("span",{name:"MuiSwitch",slot:"Track"})(Te(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}
4534),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`}))),yAe=W("span",{name:"MuiSwitch",slot:"Thumb"})(Te(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),sKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:l,slots:c={},slotProps:u={},...d}=r,f={...r,color:o,edge:s,size:a},h=hAe(f),p={slots:c,slotProps:u},[m,g]=Ie("root",{className:de(h.root,i),elementType:pAe,externalForwardedProps:p,ownerState:f,additionalProps:{sx:l}}),[y,b]=Ie("thumb",{className:h.thumb,elementType:yAe,externalForwardedProps:p,ownerState:f}),v=x.jsx(y,{...b}),[S,I]=Ie("track",{className:h.track,elementType:gAe,externalForwardedProps:p,ownerState:f});return x.jsxs(m,{...g,children:[x.jsx(mAe,{type:"checkbox",icon:v,checkedIcon:v,ref:n,ownerState:f,...d,classes:{...h,root:h.switchBase},slots:{...c.switchBase&&{root:c.switchBase},...c.input&&{input:c.input}},slotProps:{...u.switchBase&&{root:typeof u.switchBase=="function"?u.switchBase(f):u.switchBase},input:{role:"switch"},...u.input&&{input:typeof u.input=="function"?u.input(f):u.input}}}),x.jsx(S,{...I})]})});function vAe(t){return Pe("MuiTab",t)}const Wo=Le("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),bAe=t=>{const{classes:e,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:l}=t,c={root:["root",o&&s&&"labelIcon",`textColor${Q(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],icon:["iconWrapper","icon"]};return Oe(c,vAe,e)},wAe=W(so,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.label&&n.icon&&e.labelIcon,e[`textColor${Q(n.textColor)}`],n.fullWidth&&e.fullWidth,n.wrapped&&e.wrapped,{[`& .${Wo.iconWrapper}`]:e.iconWrapper},{[`& .${Wo.icon}`]:e.icon}]}})(Te(({theme:t})=>({...t.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition==="top"||e.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:e})=>e.label&&e.iconPosition!=="top"&&e.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:n})=>e.icon&&e.label&&n==="top",style:{[`& > .${Wo.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:n})=>e.icon&&e.label&&n==="bottom",style:{[`& > .${Wo.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:n})=>e.icon&&e.label&&n==="start",style:{[`& > .${Wo.icon}`]:{marginRight:t.spacing(1)}}},{props:({ownerState:e,iconPosition:n})=>e.icon&&e.label&&n==="end",style:{[`& > .${Wo.icon}`]:{marginLeft:t.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Wo.selected}`]:{opacity:1},[`&.${Wo.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Wo.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${Wo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(t.vars||t).palette.text.secondary,[`&.${Wo.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${Wo.disabled}`]:{color:(t.vars||t).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:t.typography.pxToRem(12)}}]}))),aKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:l,iconPosition:c="top",indicator:u,label:d,onChange:f,onClick:h,onFocus:p,selected:m,selectionFollowsFocus:g,textColor:y="inherit",value:b,wrapped:v=!1,...S}=r,I={...r,disabled:o,disableFocusRipple:s,selected:m,icon:!!l,iconPosition:c,label:!!d,fullWidth:a,textColor:y,wrapped:v},O=bAe(I),T=l&&d&&E.isValidElement(l)?E.cloneElement(l,{className:de(O.icon,l.props.className)}):l,A=k=>{!m&&f&&f(k,b),h&&h(k)},R=k=>{g&&!m&&f&&f(k,b),p&&p(k)};return x.jsxs(wAe,{focusRipple:!s,className:de(O.root,i),ref:n,role:"tab","aria-selected":m,disabled:o,onClick:A,onFocus:R,ownerState:I,tabIndex:m?0:-1,...S,children:[c==="top"||c==="start"?x.jsxs(E.Fragment,{children:[T,d]}):x.jsxs(E.Fragment,{children:[d,T]}),u]})}),HY=E.createContext();function SAe(t){return Pe("MuiTable",t)}Le("MuiTable",["root","stickyHeader"]);const xAe=t=>{const{classes:e,stickyHeader:n}=t;return Oe({root:["root",n&&"stickyHeader"]},SAe,e)},EAe=W("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(Te(({theme:t})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...t.typography.body2,padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:"separate"}}]}))),x7="table",lKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTable"}),{className:i,component:o=x7,padding:s="normal",size:a="medium",stickyHeader:l=!1,...c}=r,u={...r,component:o,padding:s,size:a,stickyHeader:l},d=xAe(u),f=E.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return x.jsx(HY.Provider,{value:f,children:x.jsx(EAe,{as:o,role:o===x7?null:"table",ref:n,className:de(d.root,i),ownerState:u,...c})})}),OT=E.createContext();function TAe(t){return Pe("MuiTableBody",t)}Le("MuiTableBody",["root"]);const CAe=t=>{const{classes:e}=t;return Oe({root:["root"]},TAe,e)},_Ae=W("tbody",{name:"MuiTableBody",slot:"Root"})({display:"table-row-group"}),AAe={variant:"body"},E7="tbody",cKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableBody"}),{className:i,component:o=E7,...s}=r,a={...r,component:o},l=CAe(a);return x.jsx(OT.Provider,{value:AAe,children:x.jsx(_Ae,{className:de(l.root,i),as:o,ref:n,role:o===E7?null:"rowgroup",ownerState:a,...s})})});function IAe(t){return Pe("MuiTableCell",t)}const RAe=Le("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),MAe=t=>{const{classes:e,variant:n,align:r,padding:i,size:o,stickyHeader:s}
4534=t,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${Q(r)}`,i!=="normal"&&`padding${Q(i)}`,`size${Q(o)}`]};return Oe(a,IAe,e)},kAe=W("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`size${Q(n.size)}`],n.padding!=="normal"&&e[`padding${Q(n.padding)}`],n.align!=="inherit"&&e[`align${Q(n.align)}`],n.stickyHeader&&e.stickyHeader]}})(Te(({theme:t})=>({...t.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid 4535 ${t.palette.mode==="light"?t.lighten(t.alpha(t.palette.divider,1),.88):t.darken(t.alpha(t.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(t.vars||t).palette.text.primary}},{props:{variant:"footer"},style:{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${RAe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:e})=>e.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default}}]}))),$R=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableCell"}),{align:i="inherit",className:o,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:d,...f}=r,h=E.useContext(HY),p=E.useContext(OT),m=p&&p.variant==="head";let g;s?g=s:g=m?"th":"td";let y=l;g==="td"?y=void 0:!y&&m&&(y="col");const b=d||p&&p.variant,v={...r,align:i,component:g,padding:a||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:u,stickyHeader:b==="head"&&h&&h.stickyHeader,variant:b},S=MAe(v);let I=null;return u&&(I=u==="asc"?"ascending":"descending"),x.jsx(kAe,{as:g,ref:n,className:de(S.root,o),"aria-sort":I,scope:y,ownerState:v,...f})});function PAe(t){return Pe("MuiTableContainer",t)}Le("MuiTableContainer",["root"]);const OAe=t=>{const{classes:e}=t;return Oe({root:["root"]},PAe,e)},NAe=W("div",{name:"MuiTableContainer",slot:"Root"})({width:"100%",overflowX:"auto"}),uKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableContainer"}),{className:i,component:o="div",...s}=r,a={...r,component:o},l=OAe(a);return x.jsx(NAe,{ref:n,as:o,className:de(l.root,i),ownerState:a,...s})});function DAe(t){return Pe("MuiTableHead",t)}Le("MuiTableHead",["root"]);const LAe=t=>{const{classes:e}=t;return Oe({root:["root"]},DAe,e)},zAe=W("thead",{name:"MuiTableHead",slot:"Root"})({display:"table-header-group"}),VAe={variant:"head"},T7="thead",dKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableHead"}),{className:i,component:o=T7,...s}=r,a={...r,component:o},l=LAe(a);return x.jsx(OT.Provider,{value:VAe,children:x.jsx(zAe,{as:o,className:de(l.root,i),ref:n,role:o===T7?null:"rowgroup",ownerState:a,...s})})});function BAe(t){return Pe("MuiToolbar",t)}Le("MuiToolbar",["root","gutters","regular","dense"]);const $Ae=t=>{const{classes:e,disableGutters:n,variant:r}=t;return Oe({root:["root",!n&&"gutters",r]},BAe,e)},FAe=W("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})(Te(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),jAe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular",...l}=r,c={...r,component:o,disableGutters:s,variant:a},u=$Ae(c);return x.jsx(FAe,{as:o,className:de(u.root,i),ref:n,ownerState:c,...l})}),UY=F(x.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),qY=F(x.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function HAe(t){return Pe("MuiTablePaginationActions",t)}Le("MuiTablePaginationActions",["root"]);const UAe=t=>{const{classes:e}=t;return Oe({root:["root"]},HAe,e)},qAe=W("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),WAe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTablePaginationActions"}),{backIconButtonProps:i,className:o,count:s,disabled:a=!1,getItemAriaLabel:l,nextIconButtonProps:c,onPageChange:u,page:d,rowsPerPage:f,showFirstButton:h,showLastButton:p,slots:m={},slotProps:g={},...y}=r,b=Za(),S=UAe(r),I=G=>{u(G,0)},O=G=>{u(G,d-1)},T=G=>{u(G,d+1)},A=G=>{u(G,Math.max(0,Math.ceil(s/f)-1))},R=m.firstButton??Xd,k=m.lastButton??Xd,P=m.nextButton??Xd,C=m.previousButton??Xd,_=m.firstButtonIcon??uCe,M=m.lastButtonIcon??dCe,V=m.nextButtonIcon??qY,N=m.previousButtonIcon??UY,z=b?k:R,L=b?P:C,B=b?C:P,j=b?R:k,H=b?g.lastButton:g.firstButton,q=b?g.nextButton:g.previousButton,Y=b?g.previousButton:g.nextButton,Z=b?g.firstButton:g.lastButton;return x.jsxs(qAe,{ref:n,className:de(S.root,o),...y,children:[h&&x.jsx(z,{onClick:I,disabled:a||d===0,"aria-label":l("first",d),title:l("first",d),...H,
4535children:b?x.jsx(M,{...g.lastButtonIcon}):x.jsx(_,{...g.firstButtonIcon})}),x.jsx(L,{onClick:O,disabled:a||d===0,color:"inherit","aria-label":l("previous",d),title:l("previous",d),...q??i,children:b?x.jsx(V,{...g.nextButtonIcon}):x.jsx(N,{...g.previousButtonIcon})}),x.jsx(B,{onClick:T,disabled:a||(s!==-1?d>=Math.ceil(s/f)-1:!1),color:"inherit","aria-label":l("next",d),title:l("next",d),...Y??c,children:b?x.jsx(N,{...g.previousButtonIcon}):x.jsx(V,{...g.nextButtonIcon})}),p&&x.jsx(j,{onClick:A,disabled:a||d>=Math.ceil(s/f)-1,"aria-label":l("last",d),title:l("last",d),...Z,children:b?x.jsx(_,{...g.firstButtonIcon}):x.jsx(M,{...g.lastButtonIcon})})]})});function GAe(t){return Pe("MuiTablePagination",t)}const wy=Le("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var C7;const KAe=W($R,{name:"MuiTablePagination",slot:"Root"})(Te(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}}))),YAe=W(jAe,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>({[`& .${wy.actions}`]:e.actions,...e.toolbar})})(Te(({theme:t})=>({minHeight:52,paddingRight:2,[`${t.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${wy.actions}`]:{flexShrink:0,marginLeft:20}}))),XAe=W("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),QAe=W("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Te(({theme:t})=>({...t.typography.body2,flexShrink:0}))),JAe=W(LP,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>({[`& .${wy.selectIcon}`]:e.selectIcon,[`& .${wy.select}`]:e.select,...e.input,...e.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${wy.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),ZAe=W(XTe,{name:"MuiTablePagination",slot:"MenuItem"})({}),eIe=W("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Te(({theme:t})=>({...t.typography.body2,flexShrink:0})));function tIe({from:t,to:e,count:n}){return`${t}–${e} of ${n!==-1?n:`more than ${e}`}`}function nIe(t){return`Go to ${t} page`}const rIe=t=>{const{classes:e}=t;return Oe({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},GAe,e)},fKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTablePagination"}),{ActionsComponent:i=WAe,backIconButtonProps:o,colSpan:s,component:a=$R,count:l,disabled:c=!1,getItemAriaLabel:u=nIe,labelDisplayedRows:d=tIe,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:h,onPageChange:p,onRowsPerPageChange:m,page:g,rowsPerPage:y,rowsPerPageOptions:b=[10,25,50,100],SelectProps:v={},showFirstButton:S=!1,showLastButton:I=!1,slotProps:O={},slots:T={},...A}=r,R=r,k=rIe(R),P=(O==null?void 0:O.select)??v,C=P.native?"option":ZAe;let _;(a===$R||a==="td")&&(_=s||1e3);const M=Bo(P.id),V=Bo(P.labelId),N=()=>l===-1?(g+1)*y:y===-1?l:Math.min(l,(g+1)*y),z={slots:T,slotProps:O},[L,B]=Ie("root",{ref:n,className:k.root,elementType:KAe,externalForwardedProps:{...z,component:a,...A},ownerState:R,additionalProps:{colSpan:_}}),[j,H]=Ie("toolbar",{className:k.toolbar,elementType:YAe,externalForwardedProps:z,ownerState:R}),[q,Y]=Ie("spacer",{className:k.spacer,elementType:XAe,externalForwardedProps:z,ownerState:R}),[Z,G]=Ie("selectLabel",{className:k.selectLabel,elementType:QAe,externalForwardedProps:z,ownerState:R,additionalProps:{id:V}}),[X,K]=Ie("select",{className:k.select,elementType:JAe,externalForwardedProps:z,ownerState:R}),[J,te]=Ie("menuItem",{className:k.menuItem,elementType:C,externalForwardedProps:z,ownerState:R}),[ne,ce]=Ie("displayedRows",{className:k.displayedRows,elementType:eIe,externalForwardedProps:z,ownerState:R});return x.jsx(L,{...B,children:x.jsxs(j,{...H,children:[x.jsx(q,{...Y}),b.length>1&&x.jsx(Z,{...G,children:f}),b.length>1&&x.jsx(X,{variant:"standard",...!P.variant&&{input:C7||(C7=x.jsx(kT,{}))},value:y,onChange:m,id:M,labelId:V,...P,classes:{...P.classes,root:de(k.input,k.selectRoot,(P.classes||{}).root),select:de(k.select,(P.classes||{}).select),icon:de(k.selectIcon,(P.classes||{}).icon)},disabled:c,...K,children:b.map(ie=>E.createElement(J,{...te,key:ie.label?ie.label:ie,value:ie.value?ie.value:ie},ie.label?ie.label:ie))}),x.jsx(ne,{...ce,children:d({from:l===0?0:g*y+1,to:N(),count:l===-1?-1:l,page:g})}),x.jsx(i,{className:k.actions,backIconButtonProps:o,count:l,nextIconButtonProps:h,onPageChange:p,page:g,rowsPerPage:y,show
4535FirstButton:S,showLastButton:I,slotProps:O.actions,slots:T.actions,getItemAriaLabel:u,disabled:c})]})})});function iIe(t){return Pe("MuiTableRow",t)}const _7=Le("MuiTableRow",["root","selected","hover","head","footer"]),oIe=t=>{const{classes:e,selected:n,hover:r,head:i,footer:o}=t;return Oe({root:["root",n&&"selected",r&&"hover",i&&"head",o&&"footer"]},iIe,e)},sIe=W("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(Te(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${_7.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${_7.selected}`]:{backgroundColor:t.alpha((t.vars||t).palette.primary.main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.primary.main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)}}}))),A7="tr",hKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableRow"}),{className:i,component:o=A7,hover:s=!1,selected:a=!1,...l}=r,c=E.useContext(OT),u={...r,component:o,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},d=oIe(u);return x.jsx(sIe,{as:o,ref:n,className:de(d.root,i),role:o===A7?null:"row",ownerState:u,...l})}),aIe=F(x.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}));function lIe(t){return Pe("MuiTableSortLabel",t)}const TA=Le("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),cIe=t=>{const{classes:e,direction:n,active:r}=t,i={root:["root",r&&"active",`direction${Q(n)}`],icon:["icon",`iconDirection${Q(n)}`]};return Oe(i,lIe,e)},uIe=W(so,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.active&&e.active]}})(Te(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,[`& .${TA.icon}`]:{opacity:.5}},[`&.${TA.active}`]:{color:(t.vars||t).palette.text.primary,[`& .${TA.icon}`]:{opacity:1,color:(t.vars||t).palette.text.secondary}}}))),dIe=W("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,e[`iconDirection${Q(n.direction)}`]]}})(Te(({theme:t})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),pKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTableSortLabel"}),{active:i=!1,children:o,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=aIe,slots:u={},slotProps:d={},...f}=r,h={...r,active:i,direction:a,hideSortIcon:l,IconComponent:c},p=cIe(h),m={slots:u,slotProps:d},[g,y]=Ie("root",{elementType:uIe,externalForwardedProps:m,ownerState:h,className:de(p.root,s),ref:n}),[b,v]=Ie("icon",{elementType:dIe,externalForwardedProps:m,ownerState:h,className:p.icon});return x.jsxs(g,{disableRipple:!0,component:"span",...y,...f,children:[o,l&&!i?null:x.jsx(b,{as:c,...v})]})});function fIe(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function hIe(t,e,n,r={},i=()=>{}){const{ease:o=fIe,duration:s=300}=r;let a=null;const l=e[t];let c=!1;const u=()=>{c=!0},d=f=>{if(c){i(new Error("Animation cancelled"));return}a===null&&(a=f);const h=Math.min(1,(f-a)/s);if(e[t]=o(h)*(n-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(d)};return l===n?(i(new Error("Element already at target position")),u):(requestAnimationFrame(d),u)}const pIe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function mIe(t){const{onChange:e,...n}=t,r=E.useRef(),i=E.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return An(()=>{const s=Fv(()=>{const l=r.current;o(),l!==r.current&&e(r.current)}),a=ui(i.current);
4535return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[e]),E.useEffect(()=>{o(),e(r.current)},[e]),x.jsx("div",{style:pIe,...n,ref:i})}function gIe(t){return Pe("MuiTabScrollButton",t)}const yIe=Le("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),vIe=t=>{const{classes:e,orientation:n,disabled:r}=t;return Oe({root:["root",n,r&&"disabled"]},gIe,e)},bIe=W(so,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.orientation&&e[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${yIe.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),wIe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTabScrollButton"}),{className:i,slots:o={},slotProps:s={},direction:a,orientation:l,disabled:c,...u}=r,d=Za(),f={isRtl:d,...r},h=vIe(f),p=o.StartScrollButtonIcon??UY,m=o.EndScrollButtonIcon??qY,g=qi({elementType:p,externalSlotProps:s.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f}),y=qi({elementType:m,externalSlotProps:s.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:f});return x.jsx(bIe,{component:"div",className:de(h.root,i),ref:n,role:null,ownerState:f,tabIndex:null,...u,style:{...u.style,...l==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:a==="left"?x.jsx(p,{...g}):x.jsx(m,{...y})})});function SIe(t){return Pe("MuiTabs",t)}const CA=Le("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","
4535indicator"]),I7=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,R7=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,i2=(t,e,n)=>{let r=!1,i=n(t,e);for(;i;){if(i===t.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(t,i);else{i.focus();return}}},xIe=t=>{const{vertical:e,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:l}=t;return Oe({root:["root",e&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],list:["list","flexContainer",e&&"flexContainerVertical",e&&"vertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},SIe,l)},EIe=W("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${CA.scrollButtons}`]:e.scrollButtons},{[`& .${CA.scrollButtons}`]:n.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,n.vertical&&e.vertical]}})(Te(({theme:t})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${CA.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}}]}))),TIe=W("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.scroller,n.fixed&&e.fixed,n.hideScrollbar&&e.hideScrollbar,n.scrollableX&&e.scrollableX,n.scrollableY&&e.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:t})=>t.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:t})=>t.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:t})=>t.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:t})=>t.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),CIe=W("div",{name:"MuiTabs",slot:"List",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.list,e.flexContainer,n.vertical&&e.flexContainerVertical,n.centered&&e.centered]}})({display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.centered,style:{justifyContent:"center"}}]}),_Ie=W("span",{name:"MuiTabs",slot:"Indicator"})(Te(({theme:t})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(t.vars||t).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(t.vars||t).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:"100%",width:2,right:0}}]}))),AIe=W(mIe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),M7={},mKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTabs"}),i=Ho(),o=Za(),{"aria-label":s,"aria-labelledby":a,action:l,centered:c=!1,children:u,className:d,component:f="div",allowScrollButtonsMobile:h=!1,indicatorColor:p="primary",onChange:m,orientation:g="horizontal",ScrollButtonComponent:y,scrollButtons:b="auto",selectionFollowsFocus:v,slots:S={},slotProps:I={},TabIndicatorProps:O={},TabScrollButtonProps:T={},textColor:A="primary",value:R,variant:k="standard",visibleScrollbar:P=!1,...C}=r,_=k==="scrollable",M=g==="vertical",V=M?"scrollTop":"scrollLeft",N=M?"top":"left",z=M?"bottom":"right",L=M?"clientHeight":"clientWidth",B=M?"height":"width",j={...r,component:f,allowScrollButtonsMobile:h,indicatorColor:p,orientation:g,vertical:M,scrollButtons:b,textColor:A,variant:k,visibleScrollbar:P,fixed:!_,hideScrollbar:_&&!P,scrollableX:_&&!M,scrollableY:_&&M,centered:c&&!_,scrollButtonsHideMobile:!h},H=xIe(j),q=qi({elementType:S.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:j}),Y=qi({elementType:S.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:j}),[Z,G]=E.useState(!1),[X,K]=E.useState(M7),[J,te]=E.useState(!1),[ne,ce]=E.useState(!1),[ie,oe]=E.useState(!1),[ue,pe]=E.useState({overflow:"hidden",scrollbarWidth:0}),ve=new Map,se=E.useRef(null),ae=E.useRef(null),ke={slots:S,slotProps:{indicator:O,scrollButtons:T,...I}},Ee=()=>{const $e=se.current;let Je;if($e){const bt=$e.getBoundingClientRect();Je={clientWidth:$e.clientWidth,scrollLeft:$e.scrollLeft,scrollTop:$e.scrollTop,scrollWidth:$e.scrollWidth,top:bt.top,bottom:bt.bottom,left:bt.left,right:bt.right}}let ht;if($e&&R!==!1){const bt=ae.current.children;if(bt.length>0){const qt=bt[ve.get(R)];ht=qt?qt.getBoundingClientRect():null}}return{tabsMeta:Je,tabMeta:ht}},_e=jt(()=>{const{tabsMeta:$e,tabMeta:Je}=Ee();let ht=0,bt;M?(bt="top",Je&&$e&&(ht=Je.top-$e.top+$e.scrollTop)):(bt=o?"right":"left",Je&&$e&&(ht=(o?-1:1)*(Je[bt]-$e[bt]+$e.scrollLeft)));
4535const qt={[bt]:ht,[B]:Je?Je[B]:0};if(typeof X[bt]!="number"||typeof X[B]!="number")K(qt);else{const vr=Math.abs(X[bt]-qt[bt]),kr=Math.abs(X[B]-qt[B]);(vr>=1||kr>=1)&&K(qt)}}),we=($e,{animation:Je=!0}={})=>{Je?hIe(V,se.current,$e,{duration:i.transitions.duration.standard}):se.current[V]=$e},et=$e=>{let Je=se.current[V];M?Je+=$e:Je+=$e*(o?-1:1),we(Je)},rt=()=>{const $e=se.current[L];let Je=0;const ht=Array.from(ae.current.children);for(let bt=0;bt<ht.length;bt+=1){const qt=ht[bt];if(Je+qt[L]>$e){bt===0&&(Je=$e);break}Je+=qt[L]}return Je},he=()=>{et(-1*rt())},be=()=>{et(rt())},[De,{onChange:Be,...Xe}]=Ie("scrollbar",{className:de(H.scrollableX,H.hideScrollbar),elementType:AIe,shouldForwardComponentProp:!0,externalForwardedProps:ke,ownerState:j}),Me=E.useCallback($e=>{Be==null||Be($e),pe({overflow:null,scrollbarWidth:$e})},[Be]),[xe,Ge]=Ie("scrollButtons",{className:de(H.scrollButtons,T.className),elementType:wIe,externalForwardedProps:ke,ownerState:j,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:S.startScrollButtonIcon||S.StartScrollButtonIcon,EndScrollButtonIcon:S.endScrollButtonIcon||S.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:q,endScrollButtonIcon:Y}}}),Ke=()=>{const $e={};$e.scrollbarSizeListener=_?x.jsx(De,{...Xe,onChange:Me}):null;const ht=_&&(b==="auto"&&(J||ne)||b===!0);return $e.scrollButtonStart=ht?x.jsx(xe,{direction:o?"right":"left",onClick:he,disabled:!J,...Ge}):null,$e.scrollButtonEnd=ht?x.jsx(xe,{direction:o?"left":"right",onClick:be,disabled:!ne,...Ge}):null,$e},nt=jt($e=>{const{tabsMeta:Je,tabMeta:ht}=Ee();if(!(!ht||!Je)){if(ht[N]<Je[N]){const bt=Je[V]+(ht[N]-Je[N]);we(bt,{animation:$e})}else if(ht[z]>Je[z]){const bt=Je[V]+(ht[z]-Je[z]);we(bt,{animation:$e})}}}),en=jt(()=>{_&&b!==!1&&oe(!ie)});E.useEffect(()=>{const $e=Fv(()=>{se.current&&_e()});let Je;const ht=vr=>{vr.forEach(kr=>{kr.removedNodes.forEach(co=>{Je==null||Je.unobserve(co)}),kr.addedNodes.forEach(co=>{Je==null||Je.observe(co)})}),$e(),en()},bt=ui(se.current);bt.addEventListener("resize",$e);let qt;return typeof ResizeObserver<"u"&&(Je=new ResizeObserver($e),Array.from(ae.current.children).forEach(vr=>{Je.observe(vr)})),typeof MutationObserver<"u"&&(qt=new MutationObserver(ht),qt.observe(ae.current,{childList:!0})),()=>{$e.clear(),bt.removeEventListener("resize",$e),qt==null||qt.disconnect(),Je==null||Je.disconnect()}},[_e,en]),E.useEffect(()=>{const $e=Array.from(ae.current.children),Je=$e.length;if(typeof IntersectionObserver<"u"&&Je>0&&_&&b!==!1){const ht=$e[0],bt=$e[Je-1],qt={root:se.current,threshold:.99},vr=Vi=>{te(!Vi[0].isIntersecting)},kr=new IntersectionObserver(vr,qt);kr.observe(ht);const co=Vi=>{ce(!Vi[0].isIntersecting)},Jr=new IntersectionObserver(co,qt);return Jr.observe(bt),()=>{kr.disconnect(),Jr.disconnect()}}},[_,b,ie,u==null?void 0:u.length]),E.useEffect(()=>{G(!0)},[]),E.useEffect(()=>{_e()}),E.useEffect(()=>{nt(M7!==X)},[nt,X]),E.useImperativeHandle(l,()=>({updateIndicator:_e,updateScrollButtons:en}),[_e,en]);const[Wt,Jt]=Ie("indicator",{className:de(H.indicator,O.className),elementType:_Ie,externalForwardedProps:ke,ownerState:j,additionalProps:{style:X}}),pn=x.jsx(Wt,{...Jt});let Cn=0;const tn=E.Children.map(u,$e=>{if(!E.isValidElement($e))return null;const Je=$e.props.value===void 0?Cn:$e.props.value;ve.set(Je,Cn);const ht=Je===R;return Cn+=1,E.cloneElement($e,{fullWidth:k==="fullWidth",indicator:ht&&!Z&&pn,selected:ht,selectionFollowsFocus:v,onChange:m,textColor:A,value:Je,...Cn===1&&R===!1&&!$e.props.tabIndex?{tabIndex:0}:{}})}),Ue=$e=>{if($e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey)return;const Je=ae.current,ht=gp(In(Je));if((ht==null?void 0:ht.getAttribute("role"))!=="tab")return;let qt=g==="horizontal"?"ArrowLeft":"ArrowUp",vr=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&o&&(qt="ArrowRight",vr="ArrowLeft"),$e.key){case qt:$e.preventDefault(),i2(Je,ht,R7);break;case vr:$e.preventDefault(),i2(Je,ht,I7);break;case"Home":$e.preventDefault(),i2(Je,null,I7);break;case"End":$e.preventDefault(),i2(Je,null,R7);break}},Fe=Ke(),[ct,Dt]=Ie("root",{ref:n,className:de(H.root,d),elementType:EIe,externalForwardedProps:{...ke,...C,component:f},ownerState:j}),[Gt,mn]=Ie("scroller",{ref:se,className:H.scroller,elementType:TIe,externalForwardedProps:ke,ownerState:j,additionalProps:{style:{overflow:ue.overflow,[M?`margin${o?"Left":"Right"}`:"marginBottom"]:P?void 0:-ue.scrollbarWidth}}}),[st,Ct]=Ie("list",{ref:ae,className:de(H.list,H.flexContainer),elementType:CIe,externalForwardedProps:ke,ownerState:j,getSlotProps:$e=>({...$e,onKeyDown:Je=>{var ht;Ue(Je),(ht=$e.onKeyDown)==null||ht.call($e,Je)}})});return x.jsxs(ct,{...Dt,children:[Fe.scrollButtonStart,Fe.scrollbarSizeListener,x.jsxs(Gt,{...mn,children:[x.jsx(st,{"aria-label":s,"aria-labelledby":a,"aria-orientation":g==="vertical"?"vertical":null,role:"tablist",...Ct,children:tn}),Z&&pn]}),Fe.scrollButtonEnd]})});function IIe(t){return Pe("MuiTextField",t)}Le("MuiTextField",["root"]);const RIe={standard:kP,filled:MP,outlined:NP},MIe=t=>{const{classes:e}=t;return Oe({root:["root"]},IIe,e)}
4535,kIe=W(vEe,{name:"MuiTextField",slot:"Root"})({}),gKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:l="primary",defaultValue:c,disabled:u=!1,error:d=!1,FormHelperTextProps:f,fullWidth:h=!1,helperText:p,id:m,InputLabelProps:g,inputProps:y,InputProps:b,inputRef:v,label:S,maxRows:I,minRows:O,multiline:T=!1,name:A,onBlur:R,onChange:k,onFocus:P,placeholder:C,required:_=!1,rows:M,select:V=!1,SelectProps:N,slots:z={},slotProps:L={},type:B,value:j,variant:H="outlined",...q}=r,Y={...r,autoFocus:o,color:l,disabled:u,error:d,fullWidth:h,multiline:T,required:_,select:V,variant:H},Z=MIe(Y),G=Bo(m),X=p&&G?`${G}-helper-text`:void 0,K=S&&G?`${G}-label`:void 0,J=RIe[H],te={slots:z,slotProps:{input:b,inputLabel:g,htmlInput:y,formHelperText:f,select:N,...L}},ne={},ce=te.slotProps.inputLabel;H==="outlined"&&(ce&&typeof ce.shrink<"u"&&(ne.notched=ce.shrink),ne.label=S),V&&((!N||!N.native)&&(ne.id=void 0),ne["aria-describedby"]=void 0);const[ie,oe]=Ie("root",{elementType:kIe,shouldForwardComponentProp:!0,externalForwardedProps:{...te,...q},ownerState:Y,className:de(Z.root,a),ref:n,additionalProps:{disabled:u,error:d,fullWidth:h,required:_,color:l,variant:H}}),[ue,pe]=Ie("input",{elementType:J,externalForwardedProps:te,additionalProps:ne,ownerState:Y}),[ve,se]=Ie("inputLabel",{elementType:GEe,externalForwardedProps:te,ownerState:Y}),[ae,ke]=Ie("htmlInput",{elementType:"input",externalForwardedProps:te,ownerState:Y}),[Ee,_e]=Ie("formHelperText",{elementType:MEe,externalForwardedProps:te,ownerState:Y}),[we,et]=Ie("select",{elementType:LP,externalForwardedProps:te,ownerState:Y}),rt=x.jsx(ue,{"aria-describedby":X,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:T,name:A,rows:M,maxRows:I,minRows:O,type:B,value:j,id:G,inputRef:v,onBlur:R,onChange:k,onFocus:P,placeholder:C,inputProps:ke,slots:{input:z.htmlInput?ae:void 0},...pe});return x.jsxs(ie,{...oe,children:[S!=null&&S!==""&&x.jsx(ve,{htmlFor:G,id:K,...se,children:S}),V?x.jsx(we,{"aria-describedby":X,id:G,labelId:K,value:j,input:rt,...et,children:s}):rt,p&&x.jsx(Ee,{id:X,..._e,children:p})]})});function PIe(t){return Pe("MuiToggleButton",t)}const Qd=Le("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),WY=E.createContext({}),GY=E.createContext(void 0);function OIe(t,e){return e===void 0||t===void 0?!1:Array.isArray(e)?e.includes(t):t===e}const NIe=t=>{const{classes:e,fullWidth:n,selected:r,disabled:i,size:o,color:s}=t,a={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${Q(o)}`,s]};return Oe(a,PIe,e)},DIe=W(so,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`size${Q(n.size)}`]]}})(Te(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${Qd.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${Qd.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Bt()).map(([e])=>({props:{color:e},style:{[`&.${Qd.selected}`]:{color:(t.vars||t).palette[e].main,backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[e].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[e].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),yKe=E.forwardRef(function(e,n){const{value:r,...i}=E.useContext(WY),o=E.useContext(GY),s=Am({...i,selected:OIe(e.value,r)},e),a=Ne({props:s,name:"MuiToggleButton"}),{children:l,className:c,color:u="standard",disabled:d=!1,disableFocusRipple:f=!1,fullWidth:h=!1,onChange:p,onClick:m,selected:g,size:y="medium",value:b,...v}=a,S={...a,color:u,disabled:d,disableFocusRipple:f,fullWidth:h,size:y}
4535,I=NIe(S),O=A=>{m&&(m(A,b),A.defaultPrevented)||p&&p(A,b)},T=o||"";return x.jsx(DIe,{className:de(i.className,I.root,c,T),disabled:d,focusRipple:!f,ref:n,onClick:O,onChange:p,value:b,ownerState:S,"aria-pressed":g,...v,children:l})});function LIe(t){return Pe("MuiToggleButtonGroup",t)}const kn=Le("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),zIe=t=>{const{classes:e,orientation:n,fullWidth:r,disabled:i}=t,o={root:["root",n,r&&"fullWidth"],grouped:["grouped",`grouped${Q(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Oe(o,LIe,e)},VIe=W("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{[`& .${kn.grouped}`]:e.grouped},{[`& .${kn.grouped}`]:e[`grouped${Q(n.orientation)}`]},{[`& .${kn.firstButton}`]:e.firstButton},{[`& .${kn.lastButton}`]:e.lastButton},{[`& .${kn.middleButton}`]:e.middleButton},e.root,n.orientation==="vertical"&&e.vertical,n.fullWidth&&e.fullWidth]}})(Te(({theme:t})=>({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius,variants:[{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${kn.grouped}`]:{[`&.${kn.selected} + .${kn.grouped}.${kn.selected}`]:{borderTop:0,marginTop:0}},[`& .${kn.firstButton},& .${kn.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${kn.lastButton},& .${kn.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},[`& .${kn.lastButton}.${Qd.disabled},& .${kn.middleButton}.${Qd.disabled}`]:{borderTop:"1px solid transparent"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"horizontal"},style:{[`& .${kn.grouped}`]:{[`&.${kn.selected} + .${kn.grouped}.${kn.selected}`]:{borderLeft:0,marginLeft:0}},[`& .${kn.firstButton},& .${kn.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${kn.lastButton},& .${kn.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},[`& .${kn.lastButton}.${Qd.disabled},& .${kn.middleButton}.${Qd.disabled}`]:{borderLeft:"1px solid transparent"}}}]}))),vKe=E.forwardRef(function(e,n){const r=Ne({props:e,name:"MuiToggleButtonGroup"}),{children:i,className:o,color:s="standard",disabled:a=!1,exclusive:l=!1,fullWidth:c=!1,onChange:u,orientation:d="horizontal",size:f="medium",value:h,...p}=r,m={...r,disabled:a,fullWidth:c,orientation:d,size:f},g=zIe(m),y=E.useCallback((T,A)=>{if(!u)return;const R=h&&h.indexOf(A);let k;h&&R>=0?(k=h.slice(),k.splice(R,1)):k=h?h.concat(A):[A],u(T,k)},[u,h]),b=E.useCallback((T,A)=>{u&&u(T,h===A?null:A)},[u,h]),v=E.useMemo(()=>({className:g.grouped,onChange:l?b:y,value:h,size:f,fullWidth:c,color:s,disabled:a}),[g.grouped,l,b,y,h,f,c,s,a]),S=_Y(i),I=S.length,O=T=>{const A=T===0,R=T===I-1;return A&&R?"":A?g.firstButton:R?g.lastButton:g.middleButton};return x.jsx(VIe,{role:"group",className:de(g.root,o),ref:n,ownerState:m,...p,children:x.jsx(WY.Provider,{value:v,children:S.map((T,A)=>x.jsx(GY.Provider,{value:O(A),children:T},A))})})}),bKe=FK({themeId:hs}),wKe=7,SKe=F(x.jsx("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"})),xKe=F([x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"0"),x.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")]),EKe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m-.22-13h-.06c-.4 0-.72.32-.72.72v4.72c0 .35.18.68.49.86l4.15 2.49c.34.2.78.1.98-.24.21-.34.1-.79-.25-.99l-3.87-2.3V7.72c0-.4-.32-.72-.72-.72"})),TKe=F(x.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-2m-7 3c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m7 13H5v-.23
4535c0-.62.28-1.2.76-1.58C7.47 15.82 9.64 15 12 15s4.53.82 6.24 2.19c.48.38.76.97.76 1.58z"})),CKe=F(x.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3z"})),_Ke=F(x.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3zM7 9H4V5h3zm10 6h3v4h-3zm0-10h3v4h-3z"})),AKe=F(x.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),IKe=F([x.jsx("path",{d:"M3 8c0 .55.45 1 1 1s1-.45 1-1V6h2c.55 0 1-.45 1-1s-.45-1-1-1H5V2c0-.55-.45-1-1-1s-1 .45-1 1v2H1c-.55 0-1 .45-1 1s.45 1 1 1h2z"},"0"),x.jsx("circle",{cx:"13",cy:"14",r:"3"},"1"),x.jsx("path",{d:"M21 6h-3.17l-1.24-1.35c-.37-.41-.91-.65-1.47-.65h-6.4c.17.3.28.63.28 1 0 1.1-.9 2-2 2H6v1c0 1.1-.9 2-2 2-.37 0-.7-.11-1-.28V20c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m-8 13c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"2")]),RKe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m5 11h-4v4h-2v-4H7v-2h4V7h2v4h4z"})),MKe=F(x.jsx("path",{d:"M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),kKe=F(x.jsx("path",{d:"M22 4c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zm-2 13.17L18.83 16H4V4h16zM13 5h-2v4H7v2h4v4h2v-4h4V9h-4z"})),PKe=F(x.jsx("path",{d:"M13.22 22.61c-.4.15-.8.29-1.22.39-5.16-1.26-9-6.45-9-12V5l9-4 9 4v6c0 .9-.11 1.78-.3 2.65-.81-.41-1.73-.65-2.7-.65-3.31 0-6 2.69-6 6 0 1.36.46 2.61 1.22 3.61M19 20v2.99s-1.99.01-2 0V20h-3v-2h3v-3h2v3h3v2z"})),OKe=F(x.jsx("path",{d:"M18 9V7h-2V2.84C14.77 2.3 13.42 2 11.99 2 6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12c0-1.05-.17-2.05-.47-3zm-2.5-1c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m-7 0c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8m3.5 9.5c-2.33 0-4.31-1.46-5.11-3.5h10.22c-.8 2.04-2.78 3.5-5.11 3.5M22 3h2v2h-2v2h-2V5h-2V3h2V1h2z"})),NKe=F(x.jsx("path",{d:"M22 5.18 10.59 16.6l-4.24-4.24 1.41-1.41 2.83 2.83 10-10zM12 20c-4.41 0-8-3.59-8-8s3.59-8 8-8c1.57 0 3.04.46 4.28 1.25l1.45-1.45C16.1 2.67 14.13 2 12 2 6.48 2 2 6.48 2 12s4.48 10 10 10c1.73 0 3.36-.44 4.78-1.22l-1.5-1.5c-1 .46-2.11.72-3.28.72m7-5h-3v2h3v3h2v-3h3v-2h-3v-3h-2z"})),DKe=F([x.jsx("path",{d:"M17 11c.34 0 .67.04 1 .09V6.27L10.5 3 3 6.27v4.91c0 4.54 3.2 8.79 7.5 9.82.55-.13 1.08-.32 1.6-.55-.69-.98-1.1-2.17-1.1-3.45 0-3.31 2.69-6 6-6"},"0"),x.jsx("path",{d:"M17 13c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 1.38c.62 0 1.12.51 1.12 1.12s-.51 1.12-1.12 1.12-1.12-.51-1.12-1.12.5-1.12 1.12-1.12m0 5.37c-.93 0-1.74-.46-2.24-1.17.05-.72 1.51-1.08 2.24-1.08s2.19.36 2.24 1.08c-.5.71-1.31 1.17-2.24 1.17"},"1")]),LKe=F(x.jsx("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12.5 8H11v6l4.75 2.85.75-1.23-4-2.37zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7"})),zKe=F(x.jsx("path",{d:"m22 5.72-4.6-3.86-1.29 1.53 4.6 3.86zM7.88 3.39 6.6 1.86 2 5.71l1.29 1.53zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9m0 16c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7m-1.46-5.47L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06z"})),VKe=F(x.jsx("path",{d:"M22 11h-5V6h-3v5h-4V3H7v8H1.84v2H7v8h3v-8h4v5h3v-5h5z"})),BKe=F(x.jsx("path",{d:"m20.54 5.23-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27M12 17.5 6.5 12H10v-2h4v2h3.5zM5.12 5l.81-1h12l.94 1z"})),$Ke=F(x.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),FKe=F(x.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"})),jKe=F(x.jsx("path",{d:"m7 10 5 5 5-5z"})),HKe=F(x.jsx("path",{d:"m7 14 5-5 5 5z"})),UKe=F(x.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"})),qKe=F(x.jsx("path",{d:"m14 7-5 5 5 5z"})),WKe=F(x.jsx("path",{d:"m10 17 5-5-5-5z"})),GKe=F(x.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"})),KKe=F(x.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-2m-5 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"}
4535)),YKe=F(x.jsx("path",{d:"M19 12h-2v3h-3v2h5zM7 9h3V7H5v5h2zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16.01H3V4.99h18z"})),XKe=F(x.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-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z"})),QKe=F(x.jsx("path",{d:"M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 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-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m2 14H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"})),JKe=F(x.jsx("path",{d:"M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4"})),ZKe=F(x.jsx("path",{d:"m19 9 1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25z"})),eYe=F(x.jsx("path",{d:"M7.5 5.6 10 7 8.6 4.5 10 2 7.5 3.4 5 2l1.4 2.5L5 7zm12 9.8L17 14l1.4 2.5L17 19l2.5-1.4L22 19l-1.4-2.5L22 14zM22 2l-2.5 1.4L17 2l1.4 2.5L17 7l2.5-1.4L22 7l-1.4-2.5zm-7.63 5.29a.996.996 0 0 0-1.41 0L1.29 18.96c-.39.39-.39 1.02 0 1.41l2.34 2.34c.39.39 1.02.39 1.41 0L16.7 11.05c.39-.39.39-1.02 0-1.41zm-1.03 5.49-2.12-2.12 2.44-2.44 2.12 2.12z"})),tYe=F(x.jsx("path",{d:"m20 7 .94-2.06L23 4l-2.06-.94L20 1l-.94 2.06L17 4l2.06.94zM8.5 7l.94-2.06L11.5 4l-2.06-.94L8.5 1l-.94 2.06L5.5 4l2.06.94zM20 12.5l-.94 2.06-2.06.94 2.06.94.94 2.06.94-2.06L23 15.5l-2.06-.94zm-2.29-3.38-2.83-2.83c-.2-.19-.45-.29-.71-.29s-.51.1-.71.29L2.29 17.46c-.39.39-.39 1.02 0 1.41l2.83 2.83c.2.2.45.3.71.3s.51-.1.71-.29l11.17-11.17c.39-.39.39-1.03 0-1.42m-3.54-.7 1.41 1.41L14.41 11 13 9.59zM5.83 19.59l-1.41-1.41L11.59 11 13 12.41z"})),nYe=F(x.jsx("path",{d:"M14.06 9.94 12 9l2.06-.94L15 6l.94 2.06L18 9l-2.06.94L15 12zM4 14l.94-2.06L7 11l-2.06-.94L4 8l-.94 2.06L1 11l2.06.94zm4.5-5 1.09-2.41L12 5.5 9.59 4.41 8.5 2 7.41 4.41 5 5.5l2.41 1.09zm-4 11.5 6-6.01 4 4L23 8.93l-1.41-1.41-7.09 7.97-4-4L3 19z"})),rYe=F(x.jsx("path",{d:"m19 1-5 5v11l5-4.5zM1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5V6c-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6m22 13.5V6c-.6-.45-1.25-.75-2-1v13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5v2c1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5z"}));F(x.jsx("path",{d:"m18.15 1.35-4 4q-.15.15-.15.36v8.17c0 .43.51.66.83.37l4-3.6c.11-.09.17-.23.17-.37V1.71c0-.45-.54-.67-.85-.36m4.32 3.85c-.47-.24-.96-.44-1.47-.61v12.03c-1.14-.41-2.31-.62-3.5-.62-1.9 0-3.78.54-5.5 1.58V5.48C10.38 4.55 8.51 4 6.5 4c-1.79 0-3.48.44-4.97 1.2-.33.16-.53.51-.53.88v12.08c0 .76.81 1.23 1.48.87C3.69 18.4 5.05 18 6.5 18c2.07 0 3.98.82 5.5 2 1.52-1.18 3.43-2 5.5-2 1.45 0 2.81.4 4.02 1.04.67.36 1.48-.11 1.48-.87V6.08c0-.37-.2-.72-.53-.88"}));const iYe=F(x.jsx("path",{d:"M13 7.5h5v2h-5zm0 7h5v2h-5zM19 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-2m0 16H5V5h14zM11 6H6v5h5zm-1 4H7V7h3zm1 3H6v5h5zm-1 4H7v-3h3z"})),oYe=F(x.jsx("path",{d:"M4 9h4v11H4zm12 4h4v7h-4zm-6-9h4v16h-4z"})),sYe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),aYe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),lYe=F(x.jsx("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66s.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"})),cYe=F(x.jsx("path",{d:"M22 24H2v-4h20zM13.06 5.19l3.75 3.75L7.75 18H4v-3.75zm4.82 2.68-3.75-3.75 1.83-1.83c.39-.39 1.02-.39 1.41 0l2.34 2.34c.39.39.39 1.02 0 1.41z"})),uYe=F(x.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z"})),dYe=F(x.jsx("path",{fillRule:"evenodd",d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4.9 13.49-1.4 1.4c-.2.2-.51.2-.71 0l-3.41-3.41c-1.22.43-2.64.17-3.62-.81-1.11-1.11-1.3-2.79-.59-4.1l2.35 2.35 1.41-1.41-2.35-2.34c1.32-.71 2.99-.52 4.1.59.98.98 1.24 2.4.81 3.62l3.41 3.41c.19.19.19.51 0 .7"})),fYe=F(x.jsx("path",{d:"m19 8-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97.25 2.8.7l1.46-1.46C15.03 4.46 13.57 4 12 4c-4.42 0-8 3.58-8 8H1l4 4 4-4z"})),hYe=F(x.jsx("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z"})),pYe=F([x.jsx("circle",{cx:"12",cy:"12",r:"3.2"},"0"),x.jsx("path",{d:"M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5"},"1")]),mYe=F(x.jsx("path",{d:"M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m11 15H4v-2h16zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20z"})),gYe=F(x.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-2M7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18m0-9C6.67 9 6 8.33 6 7.5S6.67 6 7.5 6 9 6.67 9 7.5 8.33 9 7.5 9m4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5 4.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m0-9c-.83 0-1.5-.67-1.5-1.5S15.67 6 16.5 6s1.5.67 1.5 1.5S17.33 9 16.5 9"})),yYe=F(x.jsx("path",{d:"M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m-7 7H3v4c0 1.1.9 2 2 2h4v-2H5zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2m0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2z"})),vYe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.06 17v-2.01H12c-1.28 0-2.56-.49-3.54-1.46-1.71-1.71-1.92-4.35-.64-6.29l1.1 1.1c-.71 1.33-.53 3.01.59 4.13.7.7 1.62 1.03 2.54 1.01v-2.14l2.83 2.83zm4.11-4.24-1.1-1.1c.71-1.33.53-3.01-.59-4.13C13.79 8.84 12.9 8.5 12 8.5h-.06v2.15L9.11 7.83 11.94 5v2.02c1.3-.02 2.61.45 3.6 1.45 1.7 1.7 1.91 4.35.63 6.29"})),bYe=F(x.jsx("path",{d:"M12 7.77 18.39 18H5.61zM12 4 2 20h20z"})),wYe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M6 9h12v2H6zm8 5H6v-2h8zm4-6H6V6h12z"})),SYe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H6l-2 2V4h16z"})),xYe=F(x.jsx("path",{d:"M4 4h16v12H5.17L4 17.17zm0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm2 10h8v2H6zm0-3h12v2H6zm0-3h12v2H6z"})),EYe=F(x.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),TYe=F(x.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-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),CYe=F(x.jsx("path",{d:"M19 5v14H5V5zm0-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-2"})),_Ye=F(x.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-2m-8.29 13.29c-.39.39-1.02.39-1.41 0L5.71 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41z"})),AYe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),IYe=F(x.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),RYe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"})),MYe=F(x.jsx("path",{d:"M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"})),kYe=F(x.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),PYe=F(x.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),OYe=F(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2"})),NYe=F(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),DYe=F(x.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),LYe=F(x.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"})),zYe=F(x.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),VYe=F(x.jsx("path",{d:"M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),BYe=F(x.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"})),$Ye=F(x.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"})),FYe=F(x.jsx("path",{d:"M18 2H9c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h9c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H9V4h9zM3 15v-2h2v2zm0-5.5h2v2H3zM10 20h2v2h-2zm-7-1.5v-2h2v2zM5 22c-1.1 0-2-.9-2-2h2zm3.5 0h-2v-2h2zm5 0v-2h2c0 1.1-.9 2-2 2M5 6v2H3c0-1.1.9-2 2-2"})),jYe=F(x.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM17 15.74 15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12z"})),HYe=F(x.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),UYe=F(x.jsx("path",{d:"M3 13h8V3H3zm0 8h8v-6H3zm10 0h8V11h-8zm0-18v6h8V3z"})),qYe=F(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),WYe=F(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),GYe=F(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),KYe=F(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1m6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1z"})),YYe=F(x.jsx("path",{d:"M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3zM14 5h-3l-1-1H6L5 5H2v2h12z"})),XYe=F(x.jsx("path",{d:"M3 3h18v2H3zm0 16h18v2H3z"})),QYe=F(x.jsx("path",{d:"M3 3h18v2H3zm0 16h18v2H3zm0-8h18v2H3z"})),JYe=F(x.jsx("path",{d:"M3 2h18v2H3zm0 18h18v2H3zm0-6h18v2H3zm0-6h18v2H3z"})),ZYe=F(x.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm2 16H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5 9z"})),eXe=F(x.jsx("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"})),tXe=F(x.jsx("path",{d:"M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m-3.6 13.9 1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1l-5.2 2.2v4.7h2v-3.4l1.8-.7-1.6 8.1-4.9-1-.4 2z"})),nXe=F(x.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2M4 12c0-4.4 3.6-8 8-8 1.8 0 3.5.6 4.9 1.7L5.7 16.9C4.6 15.5 4 13.8 4 12m8 8c-1.8 0-3.5-.6-4.9-1.7L18.3 7.1C19.4 8.5 20 10.2 20 12c0 4.4-3.6 8-8 8"})),rXe=F(x.jsx("path",{d:"M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z"})),iXe=F(x.jsx("path",{d:"M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"})),oXe=F(x.jsx("path",{d:"m18 7-1.41-1.41-6.34 6.34 1.41 1.41zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12zM.41 13.41 6 19l1.41-1.41L1.83 12z"})),sXe=F(x.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),aXe=F(x.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"})),lXe=F(x.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),cXe=F(x.jsx("path",{d:"m18.85 10.39 1.06-1.06c.78-.78.78-2.05 0-2.83L18.5 5.09c-.78-.78-2.05-.78-2.83 0l-1.06 1.06zm-5.66-2.83L4 16.76V21h4.24l9.19-9.19zM19 17.5c0 2.19-2.54 3.5-5 3.5-.55 0-1-.45-1-1s.45-1 1-1c1.54 0 3-.73 3-1.5 0-.47-.48-.87-1.23-1.2l1.48-1.48c1.07.63 1.75 1.47 1.75 2.68M4.58 13.35C3.61 12.79 3 12.06 3 11c0-1.8 1.89-2.63 3.56-3.36C7.59 7.18 9 6.56 9 6c0-.41-.78-1-2-1-1.26 0-1.8.61-1.83.64-.35.41-.98.46-1.4.12-.41-.34-.49-.95-.15-1.38C3.73 4.24 4.76 3 7 3s4 1.32 4 3c0 1.87-1.93 2.72-3.64 3.47C6.42 9.88 5 10.5 5 11c0 .31.43.6 1.07.86z"})),uXe=F([x.jsx("path",{d:"M8 8H6v7c0 1.1.9 2 2 2h9v-2H8z"},"0"),x.jsx("path",{d:"M20 3h-8c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 8h-8V7h8zM4 12H2v7c0 1.1.9 2 2 2h9v-2H4z"},"1")]),dXe=F(x.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),fXe=F(x.jsx("path",{d:"M14 19.88V22h2.12l5.17-5.17-2.12-2.12zM20 8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H12v-2.95l8-8zm-7 1V3.5L18.5 9zm9.71 5-.71-.71a.996.996 0 0 0-1.41 0l-.71.71L22 16.12l.71-.71c.39-.39.39-1.02 0-1.41"})),hXe=F(x.jsx("path",{d:"M3 10h11v2H3zm0-2h11V6H3zm0 8h7v-2H3zm15.01-3.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.3 5.3V21h2.12l5.3-5.3z"})),pXe=F(x.jsx("path",{d:"M14 11c0 .55-.45 1-1 1H4c-.55 0-1-.45-1-1s.45-1 1-1h9c.55 0 1 .45 1 1M3 7c0 .55.45 1 1 1h9c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1m7 8c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1h5c.55 0 1-.45 1-1m8.01-2.13.71-.71c.39-.39 1.02-.39 1.41 0l.71.71c.39.39.39 1.02 0 1.41l-.71.71zm-.71.71-5.16 5.16c-.09.09-.14.21-.14.35v1.41c0 .28.22.5.5.5h1.41c.13 0 .26-.05.35-.15l5.16-5.16z"})),mXe=F(x.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),gXe=F(x.jsx("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"})),yXe=F(x.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 4-8 5-8-5V6l8 5 8-5z"})),vXe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1
4535.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5"})),bXe=F(x.jsx("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"})),wXe=F(x.jsx("path",{d:"M19 5h-2V3H7v2H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H7v2h10v-2h-4v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m7 6c-1.65 0-3-1.35-3-3V5h6v6c0 1.65-1.35 3-3 3m7-6c0 1.3-.84 2.4-2 2.82V7h2z"})),SXe=F(x.jsx("path",{d:"M19 5h-2V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H5c-1.1 0-2 .9-2 2v1c0 2.55 1.92 4.63 4.39 4.94.63 1.5 1.98 2.63 3.61 2.96V19H8c-.55 0-1 .45-1 1s.45 1 1 1h8c.55 0 1-.45 1-1s-.45-1-1-1h-3v-3.1c1.63-.33 2.98-1.46 3.61-2.96C19.08 12.63 21 10.55 21 8V7c0-1.1-.9-2-2-2M5 8V7h2v3.82C5.84 10.4 5 9.3 5 8m14 0c0 1.3-.84 2.4-2 2.82V7h2z"})),xXe=F(x.jsx("path",{d:"M12 3c-.46 0-.93.04-1.4.14-2.76.53-4.96 2.76-5.48 5.52-.48 2.61.48 5.01 2.22 6.56.43.38.66.91.66 1.47V19c0 1.1.9 2 2 2h.28c.35.6.98 1 1.72 1s1.38-.4 1.72-1H14c1.1 0 2-.9 2-2v-2.31c0-.55.22-1.09.64-1.46C18.09 13.95 19 12.08 19 10c0-3.87-3.13-7-7-7m2 16h-4v-1h4zm0-2h-4v-1h4zm-1.5-5.59V14h-1v-2.59L9.67 9.59l.71-.71L12 10.5l1.62-1.62.71.71z"})),EXe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"})),TXe=F(x.jsx("path",{d:"M17 12h-5v5h5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1zm3 18H5V8h14z"})),CXe=F(x.jsx("path",{d:"M17 10H7v2h10zm2-7h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 16H5V8h14zm-5-5H7v2h7z"})),_Xe=F(x.jsx("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"})),AXe=F(x.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),IXe=F(x.jsx("path",{d:"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0"})),RXe=F(x.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),MXe=F(x.jsx("path",{d:"M5 3h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2m13 2h-2.5A3.5 3.5 0 0 0 12 8.5V11h-2v3h2v7h3v-7h3v-3h-3V9a1 1 0 0 1 1-1h2V5z"})),kXe=F(x.jsx("path",{fillRule:"evenodd",d:"M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M10 17H5v-2h5zm0-4H5v-2h5zm0-4H5V7h5zm4.82 6L12 12.16l1.41-1.41 1.41 1.42L17.99 9l1.42 1.42z"})),PXe=F(x.jsx("path",{d:"m12 21.35-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54z"})),OXe=F(x.jsx("path",{d:"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05"})),NXe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H5.17l-.59.59-.58.58V4h16zm-9-4h2v2h-2zm0-6h2v4h-2z"})),DXe=F(x.jsx("path",{d:"M14.4 6 14 4H5v17h2v-7h5.6l.4 2h7V6z"})),LXe=F(x.jsx("path",{d:"M7 11H1v2h6zm2.17-3.24L7.05 5.64 5.64 7.05l2.12 2.12zM13 1h-2v6h2zm5.36 6.05-1.41-1.41-2.12 2.12 1.41 1.41zM17 11v2h6v-2zm-5-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3m2.83 7.24 2.12 2.12 1.41-1.41-2.12-2.12zm-9.19.71 1.41 1.41 2.12-2.12-1.41-1.41zM11 23h2v-6h-2z"})),zXe=F(x.jsx("path",{d:"M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),VXe=F(x.jsx("path",{d:"M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z"})),BXe=F(x.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),$Xe=F(x.jsx("path",{d:"M7 15v2h10v-2zm-4 6h18v-2H3zm0-8h18v-2H3zm4-6v2h10V7zM3 3v2h18V3z"})),FXe=F(x.jsx("path",{d:"M3 21h18v-2H3zm0-4h18v-2H3zm0-4h18v-2H3zm0-4h18V7H3zm0-6v2h18V3z"})),jXe=F(x.jsx("path",{d:"M15 15H3v2h12zm0-8H3v2h12zM3 13h18v-2H3zm0 8h18v-2H3zM3 3v2h18V3z"})),HXe=F(x.jsx("path",{d:"M3 21h18v-2H3zm6-4h12v-2H9zm-6-4h18v-2H3zm6-4h12V7H9zM3 3v2h18V3z"})),UXe=F(x.jsx("path",{d:"M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42M10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5"})),qXe=F(x.jsx("path",{d:"M2 20h20v4H2zm3.49-3h2.42l1.27-3.58h5.65L16.09 17h2.42L13.25 3h-2.5zm4.42-5.61 2.03-5.79h.12l2.03 5.79z"})),WXe=F(x.jsx("path",{d:"M3 21h18v-2H3zM3 8v8l4-4zm8 9h10v-2H11zM3 3v2h18V3zm8 6h10V7H11zm0 4h10v-2H11z"})),GXe=F(x.jsx("path",{d:"M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"})),KXe=F(x.jsx("path",{d:"M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6zm4-2v2h12V5zm0 14h12v-2H10zm0-6h12v-2H10z"})),YXe=F(x.jsx("path",{d:"M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5m0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5m0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5M7 19h14v-2H7zm0-6h14v-2H7zm0-8v2h14V5z"})),XXe=F(x.jsx("path",{d:"M2 17h2v.5H3v1h1v.5H2v1h3v-4H2zm1-9h1V4H2v1h1zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2zm5-6v2h14V5zm0 14h14v-2H7zm0-6h14v-2H7z"}
4535)),QXe=F(x.jsx("path",{d:"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6m-7 2v2h14v-2z"})),JXe=F(x.jsx("path",{d:"M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1m-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1"})),ZXe=F(x.jsx("path",{d:"M19 12h3L12 3 2 12h3v3H3v2h2v3h2v-3h4v3h2v-3h4v3h2v-3h2v-2h-2zM7 15v-4.81l4-3.6V15zm6 0V6.59l4 3.6V15z"})),eQe=F(x.jsx("path",{d:"M12 2 4 5v6.09c0 5.05 3.41 9.76 8 10.91 4.59-1.15 8-5.86 8-10.91V5zm3.5 12.09-1.41 1.41L12 13.42 9.91 15.5 8.5 14.09 10.59 12 8.5 9.91 9.91 8.5 12 10.59l2.09-2.09 1.41 1.41L13.42 12z"})),tQe=F(x.jsx("path",{d:"m18.7 4.51-6-2.25c-.45-.17-.95-.17-1.4 0l-6 2.25C4.52 4.81 4 5.55 4 6.39v4.7c0 4.94 3.27 9.57 7.71 10.83.19.05.39.05.57 0C16.73 20.66 20 16.03 20 11.09v-4.7c0-.84-.52-1.58-1.3-1.88m-3.9 10.28c-.39.39-1.02.39-1.41.01L12 13.42l-1.39 1.38c-.39.39-1.02.39-1.41 0a.996.996 0 0 1 0-1.41L10.59 12 9.2 10.61a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L12 10.59l1.39-1.39c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41L13.42 12l1.38 1.38c.39.39.39 1.02 0 1.41"})),nQe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M8 20H4v-4h4zm0-6H4v-4h4zm0-6H4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4zm6 12h-4v-4h4zm0-6h-4v-4h4zm0-6h-4V4h4z"})),rQe=F(x.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),iQe=F(x.jsx("path",{d:"M15 8c0-1.42-.5-2.73-1.33-3.76.42-.14.86-.24 1.33-.24 2.21 0 4 1.79 4 4s-1.79 4-4 4h-.18l-.77-.77c.6-.94.95-2.05.95-3.23m7.83 12H23v-3c0-2.18-3.58-3.47-6.34-3.87 1.1.75 1.95 1.71 2.23 2.94zM7.24 4.41C7.77 4.15 8.37 4 9 4c2.21 0 4 1.79 4 4 0 .63-.15 1.23-.41 1.76zM9.17 12H9c-2.21 0-4-1.79-4-4v-.17L.69 3.51 2.1 2.1l19.8 19.8-1.41 1.41L17 19.83V20H1v-3c0-2.66 5.33-4 8-4 .37 0 .8.03 1.25.08z"})),oQe=F(x.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V18H6v-1.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),sQe=F(x.jsx("path",{d:"M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H24zm-7.76-2.78c-1.17-.52-2.61-.9-4.24-.9s-3.07.39-4.24.9C6.68 14.13 6 15.21 6 16.39V18h12v-1.61c0-1.18-.68-2.26-1.76-2.74M8.07 16c.09-.23.13-.39.91-.69.97-.38 1.99-.56 3.02-.56s2.05.18 3.02.56c.77.3.81.46.91.69zM12 8c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m0-2c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),aQe=F(x.jsx("path",{d:"M12 12.75c1.63 0 3.07.39 4.24.9 1.08.48 1.76 1.56 1.76 2.73V17c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-.61c0-1.18.68-2.26 1.76-2.73 1.17-.52 2.61-.91 4.24-.91M4 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m1.13 1.1c-.37-.06-.74-.1-1.13-.1-.99 0-1.93.21-2.78.58C.48 14.9 0 15.62 0 16.43V17c0 .55.45 1 1 1h3.5v-1.61c0-.83.23-1.61.63-2.29M20 13c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 3.43c0-.81-.48-1.53-1.22-1.85-.85-.37-1.79-.58-2.78-.58-.39 0-.76.04-1.13.1.4.68.63 1.46.63 2.29V18H23c.55 0 1-.45 1-1zM12 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3"})),lQe=F([x.jsx("path",{d:"m21.67 18.17-5.3-5.3h-.99l-2.54 2.54v.99l5.3 5.3c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41"},"0"),x.jsx("path",{d:"m17.34 10.19 1.41-1.41 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-3.54-3.54-1.41 1.41V1.71l-.7-.71-3.54 3.54.71.71h2.83l-1.41 1.41 1.06 1.06-2.89 2.89-4.13-4.13V5.06L4.83 2.04 2 4.87 5.03 7.9h1.41l4.13 4.13-.85.85H7.6l-5.3 5.3c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l5.3-5.3v-2.12l5.15-5.15z"},"1")]),cQe=F([x.jsx("path",{d:"m21.67 18.17-4.72-4.72c-.48-.48-.99-.59-1.58-.59l-2.54 2.54c0 .59.11 1.11.59 1.58l4.72 4.72c.39.39 1.02.39 1.41 0l2.12-2.12c.39-.38.39-1.02 0-1.41"},"0"),x.jsx("path",{d:"M16.63 9.49c.39.39 1.02.39 1.41 0l.71-.71 2.12 2.12c1.17-1.17 1.17-3.07 0-4.24l-2.83-2.83a.996.996 0 0 0-1.41 0l-.71.71V2c0-.62-.76-.95-1.21-.5l-2.54 2.54c-.45.45-.12 1.21.5 1.21h2.54l-.71.71c-.39.39-.39 1.02 0 1.41l.35.35-2.89 2.89-4.11-4.13v-1c0-.27-.11-.52-.29-.71L5.54 2.74a.996.996 0 0 0-1.41 0L2.71 4.16c-.39.39-.39 1.02 0 1.41L4.73 7.6c.19.19.44.29.71.29h1l4.13 4.13-.85.85h-1.3c-.53 0-1.04.21-1.41.59l-4.72 4.72c-.39.39-.39 1.02 0 1.41l2.12 2.12c.39.39 1.02.39 1.41 0l4.72-4.72c.38-.38.59-.88.59-1.41v-1.29l5.15-5.15z"},"1")]),uQe=F(x.jsx("path",{d:"m18 3-3 3V3H9C6.24 3 4 5.24 4 8h5v3h6V8l3 3h2V3zM9 13v7c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-7z"})),dQe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59
4535-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"})),fQe=F(x.jsx("path",{d:"M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4"})),hQe=F(x.jsx("path",{d:"M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m4 5.28c-1.23-.37-2.22-1.17-2.8-2.18l-1-1.6c-.41-.65-1.11-1-1.84-1-.78 0-1.59.5-1.78 1.44S7 23 7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3c1 1.15 2.41 2.01 4 2.34V23H19V9h-1.5zM7.43 13.13l-2.12-.41c-.54-.11-.9-.63-.79-1.17l.76-3.93c.21-1.08 1.26-1.79 2.34-1.58l1.16.23z"})),pQe=F(x.jsx("path",{d:"M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2M8.5 13.5l2.5 3.01L14.5 12l4.5 6H5z"})),mQe=F(x.jsx("path",{d:"m21.9 21.9-8.49-8.49-9.82-9.82L2.1 2.1.69 3.51 3 5.83V19c0 1.1.9 2 2 2h13.17l2.31 2.31zM5 18l3.5-4.5 2.5 3.01L12.17 15l3 3zm16 .17L5.83 3H19c1.1 0 2 .9 2 2z"})),gQe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z"})),yQe=F(x.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"})),vQe=F(x.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"})),bQe=F(x.jsx("path",{d:"M4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2v-3H4zM20 8l-6-6H6c-1.1 0-1.99.9-1.99 2v7H20zm-7 1V3.5L18.5 9zm-4 4h6v2H9zm8 0h6v2h-6zM1 13h6v2H1z"})),wQe=F(x.jsx("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})),SQe=F(x.jsx("path",{d:"m16 5-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4zm4 5v11c0 1.1-.9 2-2 2H6c-1.11 0-2-.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2"})),xQe=F(x.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),EQe=F(x.jsx("path",{d:"M20 5H4c-1.1 0-1.99.9-1.99 2L2 17c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m-9 3h2v2h-2zm0 3h2v2h-2zM8 8h2v2H8zm0 3h2v2H8zm-1 2H5v-2h2zm0-3H5V8h2zm9 7H8v-2h8zm0-4h-2v-2h2zm0-3h-2V8h2zm3 3h-2v-2h2zm0-3h-2V8h2z"})),TQe=F(x.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"})),CQe=F(x.jsx("path",{d:"M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z"})),_Qe=F(x.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z"})),AQe=F(x.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"})),IQe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z"})),RQe=F(x.jsx("path",{d:"M7.5 21H2V9h5.5zm7.25-18h-5.5v18h5.5zM22 11h-5.5v10H22z"})),MQe=F(x.jsx("path",{d:"M4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-1 9H9V9h10zm-4 4H9v-2h6zm4-8H9V5h10z"})),kQe=F(x.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"})),PQe=F(x.jsx("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"})),OQe=F(x.jsx("path",{d:"M17 7h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c1.65 0 3 1.35 3 3s-1.35 3-3 3h-3c-.55 0-1 .45-1 1s.45 1 1 1h3c2.76 0 5-2.24 5-5s-2.24-5-5-5m-9 5c0 .55.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1H9c-.55 0-1 .45-1 1m2 3H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h3c.55 0 1-.45 1-1s-.45-1-1-1H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h3c.55 0 1-.45 1-1s-.45-1-1-1"})),NQe=F(x.jsx("path",{d:"M19 5v14H5V5zm1.1-2H3.9c-.5 0-.9.4-.9.9v16.2c0 .4.4.9.9.9h16.2c.4 0 .9-.5.9-.9V3.9c0-.5-.5-.9-.9-.9M11 7h6v2h-6zm0 4h6v2h-6zm0 4h6v2h-6zM7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7z"})),DQe=F(x.jsx("path",{d:"M12 9h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1m0 4h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1m0 4h4c.55 0 1-.45 1-1s-.45-1-1-1h-4c-.55 0-1 .45-1 1s.45 1 1 1M7 7h2v2H7zm0 4h2v2H7zm0 4h2v2H7zM20 3H4c-.55 0-1 .45-1 1v16c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1m-1 16H5V5h14z"})),LQe=F([x.jsx("path",{d:"m12 12.9-2.13 2.09c-.56.56-.87 1.29-.87 2.07C9 18.68 10.35 20 12 20s3-1.32 3-2.94c0-.78-.31-1.52-.87-2.07z"},"0"),x.jsx("path",{d:"m16 6-.44.55C14.38 8.02 12 7.19 12 5.3V2S4 6 4 13c0 2.92 1.56 5.47 3.89 6.86-.56-.79-.89-1.76-.89-2.8 0-1.32.52-2.56 1.47-3.5L12 10.1l3.53 3.47c.95.93 1.47 2.17 1.47 3.5 0 1.02-.31 1.96-.85 2.75 1.89-1.15 3.29-3.06 3.71-5.3.66-3.55-1.07-6.9-3.86-8.52"},"1")]),zQe=F(x.jsx("path",{d:"M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4z"})),VQe=F(x.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59
4535-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"})),BQe=F([x.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),x.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),$Qe=F(x.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7m0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5"})),FQe=F([x.jsx("path",{d:"M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7M7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9"},"0"),x.jsx("circle",{cx:"12",cy:"9",r:"2.5"},"1")]),jQe=F(x.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),HQe=F(x.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2M9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9zm9 14H6V10h12zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2"})),UQe=F(x.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l4 4 4-4H6c0-3.86 3.14-7 7-7s7 3.14 7 7-3.14 7-7 7c-1.9 0-3.62-.76-4.88-1.99L6.7 18.42C8.32 20.01 10.55 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m2 8v-1c0-1.1-.9-2-2-2s-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1m-1 0h-2v-1c0-.55.45-1 1-1s1 .45 1 1z"})),qQe=F(x.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),WQe=F(x.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),GQe=F([x.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),x.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1"),x.jsx("path",{d:"M8.9 12.55c0 .57.23 1.07.6 1.45l3.5 3.5 3.5-3.5c.37-.37.6-.89.6-1.45 0-1.13-.92-2.05-2.05-2.05-.57 0-1.08.23-1.45.6l-.6.6-.6-.59c-.37-.38-.89-.61-1.45-.61-1.13 0-2.05.92-2.05 2.05"},"2")]),KQe=F([x.jsx("path",{d:"M19.98 17.15C20.63 15.91 21 14.5 21 13c-1.5 0-2.91.37-4.15 1.02zM3 13c0 4.97 4.03 9 9 9 0-4.97-4.03-9-9-9m9-7.5c1.38 0 2.5 1.12 2.5 2.5 0 .99-.58 1.84-1.42 2.25l2.48 2.48c.11.02.23.03.35.03 1.38 0 2.5-1.12 2.5-2.5 0-1-.59-1.85-1.43-2.25.84-.4 1.43-1.25 1.43-2.25 0-1.38-1.12-2.5-2.5-2.5-.53 0-1.01.16-1.42.44l.01-.2C14.5 2.12 13.38 1 12 1S9.5 2.12 9.5 3.5l.02.19c-.4-.28-.89-.44-1.42-.44-.57 0-1.09.2-1.51.52l3.16 3.16c.41-.85 1.26-1.43 2.25-1.43"},"0"),x.jsx("path",{d:"M2.81 2.81 1.39 4.22l4.64 4.64c-.27.4-.43.87-.43 1.39 0 1.38 1.12 2.5 2.5 2.5.52 0 .99-.16 1.4-.43l.02.02-.02.16c0 1.38 1.12 2.5 2.5 2.5.05 0 .1-.01.16-.02l1.64 1.64C12.67 18.12 12 19.98 12 22c2.02 0 3.88-.67 5.38-1.8l2.4 2.4 1.41-1.41z"},"1")]),YQe=F(x.jsx("path",{d:"m20.5 3-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5M15 19l-6-2.11V5l6 2.11z"})),XQe=F(x.jsx("path",{d:"M18.83 7h-2.6L10.5 4 4 7.4V17c-1.1 0-2-.9-2-2V7.17c0-.53.32-1.09.8-1.34L10.5 2l7.54 3.83c.43.23.73.7.79 1.17M20 8H7c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2m0 3.67L13.5 15 7 11.67V10l6.5 3.33L20 10z"})),QQe=F(x.jsx("path",{d:"M12 19c0-3.87 3.13-7 7-7 1.08 0 2.09.25 3 .68V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h8.08c-.05-.33-.08-.66-.08-1M4 6l8 5 8-5v2l-8 5-8-5zm13.34 16-3.54-3.54 1.41-1.41 2.12 2.12 4.24-4.24L23 16.34z"})),JQe=F(x.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),ZQe=F([x.jsx("path",{d:"M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z"},"0"),x.jsx("path",{d:"M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24"},"1")]);F([x.jsx("path",{d:"M17.5 4.5c-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5-1.45 0-2.99.22-4.28.79C1.49 5.62 1 6.33 1 7.14v11.28c0 1.3 1.22 2.26 2.48 1.94.98-.25 2.02-.36 3.02-.36 1.56 0 3.22.26 4.56.92.6.3 1.28.3 1.87 0 1.34-.67 3-.92 4.56-.92 1 0 2.04.11 3.02.36 1.26.33 2.48-.63 2.48-1.94V7.14c0-.81-.49-1.52-1.22-1.85-1.28-.57-2.82-.79-4.27-.79M21 17.23c0 .63-.58 1.09-1.2.98-.75-.14-1.53-.2-2.3-.2-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5.92 0 1.83.09 2.7.28.46.1.8.51.8.98z"}
4535,"0"),x.jsx("path",{d:"M13.98 11.01c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.54-.5 3.53-.66 5.36-.45.41.05.71.42.66.83s-.42.71-.83.66c-1.62-.19-3.39-.04-4.73.39-.08.01-.16.03-.23.03m0 2.66c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.53-.5 3.53-.66 5.36-.45.41.05.71.42.66.83s-.42.71-.83.66c-1.62-.19-3.39-.04-4.73.39-.08.02-.16.03-.23.03m0 2.66c-.32 0-.61-.2-.71-.52-.13-.39.09-.82.48-.94 1.53-.5 3.53-.66 5.36-.45.41.05.71.42.66.83s-.42.7-.83.66c-1.62-.19-3.39-.04-4.73.39-.08.02-.16.03-.23.03"},"1")]);const eJe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-2 12H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z"})),tJe=F(x.jsx("path",{d:"M17 10.43V2H7v8.43c0 .35.18.68.49.86l4.18 2.51-.99 2.34-3.41.29 2.59 2.24L9.07 22 12 20.23 14.93 22l-.78-3.33 2.59-2.24-3.41-.29-.99-2.34 4.18-2.51c.3-.18.48-.5.48-.86m-4 1.8-1 .6-1-.6V3h2z"})),nJe=F([x.jsx("path",{d:"M5 8h2v8H5zm7 0H9c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 6h-1v-4h1zm7-6h-3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h3c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1m-1 6h-1v-4h1z"},"0"),x.jsx("path",{d:"M2 4v16h20V4zm2 14V6h16v12z"},"1")]),rJe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"})),iJe=F(x.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),oJe=F(x.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})),sJe=F(x.jsx("path",{d:"M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3z"})),aJe=F(x.jsx("path",{d:"m23 12-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68zm-10 5h-2v-2h2zm0-4h-2V7h2z"})),lJe=F(x.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z"})),cJe=F(x.jsx("path",{d:"M7.58 4.08 6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42m12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18q.15-.36.15-.78h-4c.01 1.1.9 2 2.01 2"})),uJe=F(x.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),dJe=F(x.jsx("path",{d:"M20 18.69 7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72zM12 22c1.11 0 2-.89 2-2h-4c0 1.11.89 2 2 2m6-7.32V11c0-3.08-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68c-.15.03-.29.08-.42.12-.1.03-.2.07-.3.11h-.01c-.01 0-.01 0-.02.01-.23.09-.46.2-.68.31 0 0-.01 0-.01.01z"})),fJe=F(x.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-2m-8.5 12H9v-4.5H7.5V9h3zm7 0h-1.75L14 12.75V15h-1.5V9H14v2.25L15.75 9h1.75l-2.25 3z"})),hJe=F(x.jsx("path",{d:"M10 10.5h1.5v3H10zM19 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-2M7.5 15H6v-4.5H4.5V9h3zm5.5-1c0 .55-.45 1-1 1H9.5c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1H12c.55 0 1 .45 1 1zm6.5 1h-1.75L16 12.75V15h-1.5V9H16v2.25L17.75 9h1.75l-2.25 3z"})),pJe=F(x.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"})),mJe=F(x.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),gJe=F(x.jsx("path",{d:"M10 9h4V6h3l-5-5-5 5h3zm-1 1H6V7l-5 5 5 5v-3h3zm14 2-5-5v3h-3v4h3v3zm-9 3h-4v3H7l5 5 5-5h-3z"}
4535)),yJe=F(x.jsx("path",{d:"M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10c1.38 0 2.5-1.12 2.5-2.5 0-.61-.23-1.2-.64-1.67-.08-.1-.13-.21-.13-.33 0-.28.22-.5.5-.5H16c3.31 0 6-2.69 6-6 0-4.96-4.49-9-10-9m5.5 11c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m-3-4c-.83 0-1.5-.67-1.5-1.5S13.67 6 14.5 6s1.5.67 1.5 1.5S15.33 9 14.5 9M5 11.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5S7.33 13 6.5 13 5 12.33 5 11.5m6-4c0 .83-.67 1.5-1.5 1.5S8 8.33 8 7.5 8.67 6 9.5 6s1.5.67 1.5 1.5"})),vJe=F(x.jsx("path",{d:"M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2M8.5 12.5l2.5 3.01L14.5 11l4.5 6H5z"})),bJe=F(x.jsx("path",{d:"M2 17h20v2H2zm1.15-4.05L4 11.47l.85 1.48 1.3-.75-.85-1.48H7v-1.5H5.3l.85-1.47L4.85 7 4 8.47 3.15 7l-1.3.75.85 1.47H1v1.5h1.7l-.85 1.48zm6.7-.75 1.3.75.85-1.48.85 1.48 1.3-.75-.85-1.48H15v-1.5h-1.7l.85-1.47-1.3-.75L12 8.47 11.15 7l-1.3.75.85 1.47H9v1.5h1.7zM23 9.22h-1.7l.85-1.47-1.3-.75L20 8.47 19.15 7l-1.3.75.85 1.47H17v1.5h1.7l-.85 1.48 1.3.75.85-1.48.85 1.48 1.3-.75-.85-1.48H23z"})),wJe=F(x.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"})),SJe=F(x.jsx("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5s-3 1.34-3 3 1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"})),xJe=F(x.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),EJe=F(x.jsx("path",{d:"M18.39 14.56C16.71 13.7 14.53 13 12 13s-4.71.7-6.39 1.56C4.61 15.07 4 16.1 4 17.22V20h16v-2.78c0-1.12-.61-2.15-1.61-2.66M9.78 12h4.44c1.21 0 2.14-1.06 1.98-2.26l-.32-2.45C15.57 5.39 13.92 4 12 4S8.43 5.39 8.12 7.29L7.8 9.74c-.16 1.2.77 2.26 1.98 2.26"})),TJe=F(x.jsx("path",{d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m-9-2V7H4v3H1v2h3v3h2v-3h3v-2zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),CJe=F(x.jsx("path",{d:"M12 6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0 10c2.7 0 5.8 1.29 6 2H6c.23-.72 3.31-2 6-2m0-12C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 10c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"})),_Je=F(x.jsx("path",{d:"M14 8c0-2.21-1.79-4-4-4S6 5.79 6 8s1.79 4 4 4 4-1.79 4-4M2 18v1c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-1c0-2.66-5.33-4-8-4s-8 1.34-8 4m16-8h4c.55 0 1 .45 1 1s-.45 1-1 1h-4c-.55 0-1-.45-1-1s.45-1 1-1"})),AJe=F([x.jsx("circle",{cx:"4.5",cy:"9.5",r:"2.5"},"0"),x.jsx("circle",{cx:"9",cy:"5.5",r:"2.5"},"1"),x.jsx("circle",{cx:"15",cy:"5.5",r:"2.5"},"2"),x.jsx("circle",{cx:"19.5",cy:"9.5",r:"2.5"},"3"),x.jsx("path",{d:"M17.34 14.86c-.87-1.02-1.6-1.89-2.48-2.91-.46-.54-1.05-1.08-1.75-1.32q-.165-.06-.33-.09c-.25-.04-.52-.04-.78-.04s-.53 0-.79.05q-.165.03-.33.09c-.7.24-1.28.78-1.75 1.32-.87 1.02-1.6 1.89-2.48 2.91-1.31 1.31-2.92 2.76-2.62 4.79.29 1.02 1.02 2.03 2.33 2.32.73.15 3.06-.44 5.54-.44h.18c2.48 0 4.81.58 5.54.44 1.31-.29 2.04-1.31 2.33-2.32.31-2.04-1.3-3.49-2.61-4.8"},"4")]),IJe=F(x.jsx("path",{d:"M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3m-2 20h-4v-1h4zm3.25-3H6.75V4h10.5z"})),RJe=F(x.jsx("path",{d:"M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2m-11-4 2.03 2.71L16 11l4 5H8zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6z"})),MJe=F(x.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5zm4-3H19v1h1.5V11H19v2h-1.5V7h3zM9 9.5h1v-1H9zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm10 5.5h1v-3h-1z"})),kJe=F(x.jsx("path",{d:"M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10m2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99m0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99z"})),PJe=F(x.jsx("path",{d:"M8 5v14l11-7z"})),OJe=F([x.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),x.jsx("path",{d:"M13 3C9.25 3 6.2 5.94 6.02 9.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v3h7v-4.68c2.36-1.12 4-3.53 4-6.32 0-3.87-3.13-7-7-7m3 7c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),NJe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39"})),DJe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93C7.06 19.43 4 16.07 4 12m13.89 5.4c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4"})),LJe=F(x.jsx("path",{d:"M5 4v2h14V4zm0 10h4v6h6v-6h4l-7-7z"})),zJe=F(x.jsx("path",{d:"m17.66 9.53-7.07 7.07-4.24-4.24 1.41-1.41 2.83 2.83 5.66-5.66zM4 12c0-2.33 1.02-4.42 2.62-5.88L9 8.5v-6H3l2.2 2.2C3.24 6.52 2 9.11 2 12c0 5.19 3.95 9.45 9 9.95v-2.02c-3.94-.49-7-3.86-7-7.93m18 0c0-5.19-3.95-9.45-9-9.95v2.02c3.94.49 7 3.86 7 7.93 0 2.33-1.02 4.42-2.62 5.88L15 15.5v6h6l-2.2-2.2c1.96-1.82 3.2-4.41 3.2-7.3"})),VJe=F(x.jsx("path",{d:"M15 21h-2v-2h2zm-2-7h-2v5h2zm8-2h-2v4h2zm-2-2h-2v2h2zM7 12H5v2h2zm-2-2H3v2h2zm7-5h2V3h-2zm-7.5-.5v3h3v-3zM9 9H3V3h6zm-4.5 7.5v3h3v-3zM9 21H3v-6h6zm7.5-16.5v3h3v-3zM21 9h-6V3h6zm-2 10v-3h-4v2h2v3h4v-2zm-2-7h-4v2h4zm-4-2H7v2h2v2h2v-2h2zm1-1V7h-2V5h-2v4zM6.75 5.25h-1.5v1.5h1.5zm0 12h-1.5v1.5h1.5zm12-12h-1.5v1.5h1.5z"})),BJe=F(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),$Je=F(x.jsx("path",{d:"M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2m-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1M9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m11 15H4v-2h16zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20z"})),FJe=F(x.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"})),jJe=F(x.jsx("path",{d:"M7 7h10v3l4-4-4-4v3H5v6h2zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2z"})),HJe=F(x.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8"})),UJe=F(x.jsx("path",{d:"M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11"})),qJe=F(x.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM12 17.3c-.72 0-1.3-.58-1.3-1.3s.58-1.3 1.3-1.3 1.3.58 1.3 1.3-.58 1.3-1.3 1.3m1-4.3h-2V7h2z"})),WJe=F([x.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),x.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")]),GJe=F(x.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),KJe=F(x.jsx("path",{d:"M12 5V2L8 6l4 4V7c3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93 0-4.42-3.58-8-8-8m-6 8c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91"})),YJe=F(x.jsx("path",{d:"M6 13c0-1.65.67-3.15 1.76-4.24L6.34 7.34C4.9 8.79 4 10.79 4 13c0 4.08 3.05 7.44 7 7.93v-2.02c-2.83-.48-5-2.94-5-5.91m14 0c0-4.42-3.58-8-8-8-.06 0-.12.01-.18.01l1.09-1.09L11.5 2.5 8 6l3.5 3.5 1.41-1.41-1.08-1.08c.06 0 .12-.01.17-.01 3.31 0 6 2.69 6 6 0 2.97-2.17 5.43-5 5.91v2.02c3.95-.49 7-3.85 7-7.93"})),XJe=F(x.jsx("path",{d:"M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10.69l4.05-4.05c.47-.47 1.15-.68 1.81-.55zM11.17 17s3.74-1.55 5.89-3.7c5.4-5.4 4.5-9.62 4.21-10.57-.95-.3-5.17-1.19-10.57 4.21C8.55 9.09 7 12.83 7 12.83zm6.48-2.19c-2.29 2.04-5.58 3.44-5.89 3.57L13.31 22l4.05-4.05c.47-.47.68-1.15.55-1.81zM9 18c0 .83-.34 1.58-.88 2.12C6.94 21.3 2 22 2 22s.7-4.94 1.88-6.12C4.42 15.34 5.17 15 6 15c1.66 0 3 1.34 3 3m4-9c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2"})),QJe=F(x.jsx("path",{d:"M16.54 11 13 7.46l1.41-1.41 2.12 2.12 4.24-4.24 1.41 1.41zM11 7H2v2h9zm10 6.41L19.59 12 17 14.59 14.41 12 13 13.41 15.59
453516 13 18.59 14.41 20 17 17.41 19.59 20 21 18.59 18.41 16zM11 15H2v2h9z"})),JJe=F(x.jsx("path",{d:"M5 13.18v4L12 21l7-3.82v-4L12 17zM12 3 1 9l11 6 9-4.91V17h2V9z"})),ZJe=F(x.jsx("path",{d:"M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59.59-.59 1.54 0 2.12l12.02 12.02c.59.59 1.54.59 2.12 0l6.36-6.36c.59-.59.59-1.54 0-2.12zm4.6 19.44L2.81 9.17l6.36-6.36 12.02 12.02zm-7.31.29C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81z"})),eZe=F(x.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),tZe=F(x.jsx("path",{d:"m11.19 1.36-7 3.11C3.47 4.79 3 5.51 3 6.3V11c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V6.3c0-.79-.47-1.51-1.19-1.83l-7-3.11c-.51-.23-1.11-.23-1.62 0M12 11.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11z"})),nZe=F(x.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"})),rZe=F([x.jsx("path",{d:"M9 15.5h6v1H9z"},"0"),x.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"1"),x.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"2"),x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"},"3")]),iZe=F([x.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),x.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),x.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"2"),x.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"3"),x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-2.5c2.33 0 4.32-1.45 5.12-3.5h-1.67c-.69 1.19-1.97 2-3.45 2s-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5"},"4")]),oZe=F([x.jsx("circle",{cx:"15.5",cy:"9.5",r:"1.5"},"0"),x.jsx("circle",{cx:"8.5",cy:"9.5",r:"1.5"},"1"),x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m0-6c-2.33 0-4.32 1.45-5.12 3.5h1.67c.69-1.19 1.97-2 3.45-2s2.75.81 3.45 2h1.67c-.8-2.05-2.79-3.5-5.12-3.5"},"2")]),sZe=F(x.jsx("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6"})),aZe=F(x.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),lZe=F(x.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z"})),cZe=F(x.jsx("path",{d:"m3.5 18.49 6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"})),uZe=F(x.jsx("path",{d:"M22 9v6c0 1.1-.9 2-2 2h-1v-2h1V9H4v6h6v2H4c-1.1 0-2-.9-2-2V9c0-1.1.9-2 2-2h16c1.1 0 2 .9 2 2m-7.5 10 1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09zm2.5-5 .62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62zm-2.5 5 1.09-2.41L18 15.5l-2.41-1.09L14.5 12l-1.09 2.41L11 15.5l2.41 1.09zm2.5-5 .62-1.38L19 12l-1.38-.62L17 10l-.62 1.38L15 12l1.38.62z"})),dZe=F(x.jsx("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2M9 11H7V9h2zm4 0h-2V9h2zm4 0h-2V9h2z"})),fZe=F(x.jsx("path",{d:"m20.38 8.57-1.23 1.85a8 8 0 0 1-.22 7.58H5.07A8 8 0 0 1 15.58 6.85l1.85-1.23A10 10 0 0 0 3.35 19a2 2 0 0 0 1.72 1h13.85a2 2 0 0 0 1.74-1 10 10 0 0 0-.27-10.44zm-9.79 6.84a2 2 0 0 0 2.83 0l5.66-8.49-8.49 5.66a2 2 0 0 0 0 2.83"})),hZe=F(x.jsx("path",{d:"M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h
45355.64zm-6.02-5L8.5 5.48 10.57 11zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13z"})),pZe=F(x.jsx("path",{d:"M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64zm-6.02-5L8.5 5.48 10.57 11zm15.16.59-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13z"})),mZe=F(x.jsx("path",{d:"M11 6H9V4h2zm4-2h-2v2h2zM9 14h2v-2H9zm10-4V8h-2v2zm0 4v-2h-2v2zm-6 0h2v-2h-2zm6-10h-2v2h2zm-6 4V6h-2v2zm-6 2V8h2V6H7V4H5v16h2v-8h2v-2zm8 2h2v-2h-2zm-4-2v2h2v-2zM9 8v2h2V8zm4 2h2V8h-2zm2-4v2h2V6z"})),gZe=F(x.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-2m-1 5h-2.42v3.33H13v3.33h-2.58V18H6v-2h2.42v-3.33H11V9.33h2.58V6H18z"})),yZe=F(x.jsx("path",{d:"M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"})),vZe=F(x.jsx("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"})),bZe=F(x.jsx("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"})),wZe=F(x.jsx("path",{d:"m22 9.24-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28z"})),SZe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),xZe=F(x.jsx("path",{d:"M14.59 7.41 18.17 11H6v2h12.17l-3.59 3.59L16 18l6-6-6-6zM2 6v12h2V6z"})),EZe=F(x.jsx("path",{d:"M19 5v9h-5v5H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10l6-6V5c0-1.1-.9-2-2-2m-7 11H7v-2h5zm5-4H7V8h10z"})),TZe=F(x.jsx("path",{d:"m21.9 8.89-1.05-4.37c-.22-.9-1-1.52-1.91-1.52H5.05c-.9 0-1.69.63-1.9 1.52L2.1 8.89c-.24 1.02-.02 2.06.62 2.88.08.11.19.19.28.29V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6.94c.09-.09.2-.18.28-.28.64-.82.87-1.87.62-2.89m-2.99-3.9 1.05 4.37c.1.42.01.84-.25 1.17-.14.18-.44.47-.94.47-.61 0-1.14-.49-1.21-1.14L16.98 5zM13 5h1.96l.54 4.52c.05.39-.07.78-.33 1.07-.22.26-.54.41-.95.41-.67 0-1.22-.59-1.22-1.31zM8.49 9.52 9.04 5H11v4.69c0 .72-.55 1.31-1.29 1.31-.34 0-.65-.15-.89-.41-.25-.29-.37-.68-.33-1.07m-4.45-.16L5.05 5h1.97l-.58 4.86c-.08.65-.6 1.14-1.21 1.14-.49 0-.8-.29-.93-.47-.27-.32-.36-.75-.26-1.17M5 19v-6.03c.08.01.15.03.23.03.87 0 1.66-.36 2.24-.95.6.6 1.4.95 2.31.95.87 0 1.65-.36 2.23-.93.59.57 1.39.93 2.29.93.84 0 1.64-.35 2.24-.95.58.59 1.37.95 2.24.95.08 0 .15-.02.23-.03V19z"})),CZe=F(x.jsx("path",{d:"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85-.29-.86-1.2-1.28-2.25-1.28-1.86 0-2.34 1.02-2.34 1.7 0 .48.25.88.74 1.21.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92M21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97 0 1-.81 1.67-2.28 1.67-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58.81 2.29 3.29 3.3 5.67 3.3 2.27 0 5.3-.89 5.3-4.05 0-.3-.01-1.16-.48-1.94H21z"})),_Ze=F(x.jsx("path",{d:"M6.99 11 3 15l3.99 4v-3H14v-2H6.99zM21 9l-3.99-4v3H10v2h7.01v3z"})),AZe=F(x.jsx("path",{d:"M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12m8 5h2v-2h-2zM21 4h-6v6l2.24-2.24C18.32 8.85 19 10.34 19 12c0 2.61-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74 0-2.21-.91-4.2-2.36-5.64zm-10 9h2V7h-2z"})),IZe=F(x.jsx("path",{d:"M10 10.02h5V21h-5zM17 21h3c1.1 0 2-.9 2-2v-9h-5zm3-18H5c-1.1 0-2 .9-2 2v3h19V5c0-1.1-.9-2-2-2M3 19c0 1.1.9 2 2 2h3V10H3z"})),RZe=F(x.jsx("path",{d:"M21 8H3V4h18zm0 2H3v4h18zm0 6H3v4h18z"})),MZe=F(x.jsx("path",{d:"M20 10V8h-4V4h-2v4h-4V4H8v4H4v2h4v4H4v2h4v4h2v-4h4v4h2v-4h4v-2h-4v-4zm-6 4h-4v-4h4z"})),kZe=F(x.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8m3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 14 8.67 14 9.5s.67 1.5 1.5 1.5m-7 0c.83 0 1.5-.67 1.5-1.5S9.33 8 8.5 8 7 8.67 7 9.5 7.67 11 8.5 11m3.5 6.5c2.33 0 4.31-1.46 5.11-3.5H6.89c.8 2.04 2.78 3.5 5.11 3.5"})),PZe=F(x.jsx("path",{d:"M.99 19h2.42l1.27-3.58h5.65L11.59 19h2.42L8.75 5h-2.5zm4.42-5.61L7.44 7.6h.12l2.03 5.79zM23 11v2h-8v-2z"})),OZe=F(x.jsx("path",{d:"M2.5 4v3h5v12h3V7h5V4zm19 5h-9v3h3v7h3v-7h3z"})),NZe=F(x.jsx("path",{d:"M.99 19h2.42l1.27-3.58h5.65L11.59 19h2.42L8.75 5h-2.5zm4.42-5.61L7.44 7.6h.12l2.03 5.79zM20 11h3v2h-3v3h-2v-3h-3v-2h3V8h2z"})),DZe=F(x.jsx("path",{d:"M1 21h4V9H1zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73z"}
4535)),LZe=F(x.jsx("path",{d:"m13.11 5.72-.57 2.89c-.12.59.04 1.2.42 1.66s.94.73 1.54.73H20v1.08L17.43 18H9.34c-.18 0-.34-.16-.34-.34V9.82zM14 2 7.59 8.41C7.21 8.79 7 9.3 7 9.83v7.83C7 18.95 8.05 20 9.34 20h8.1c.71 0 1.36-.37 1.72-.97l2.67-6.15c.11-.25.17-.52.17-.8V11c0-1.1-.9-2-2-2h-5.5l.92-4.65c.05-.22.02-.46-.08-.66-.23-.45-.52-.86-.88-1.22zM4 9H2v11h2c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1"})),zZe=F(x.jsx("path",{d:"M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2"})),VZe=F(x.jsx("path",{d:"M9 1h6v2H9zm10.03 6.39 1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61M13 14h-2V8h2z"})),BZe=F(x.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"})),$Ze=F(x.jsx("path",{d:"M5 4v3h5.5v12h3V7H19V4z"})),FZe=F(x.jsx("path",{d:"m19.07 4.93-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 9.9 16 10.9 16 12c0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2h-1C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10c0-2.76-1.12-5.26-2.93-7.07"})),jZe=F(x.jsx("path",{d:"M18.32 5.68c-.36.36-.39.92-.07 1.32 1.45 1.82 2.21 4.31 1.53 6.92-.79 3.05-3.18 5.33-6.21 5.94C8.47 20.87 4 16.93 4 12c0-4.08 3.05-7.44 7-7.93v2.02c-3.13.53-5.43 3.46-4.93 6.83.39 2.61 2.56 4.71 5.18 5.03C14.89 18.4 18 15.56 18 12c0-1.25-.38-2.4-1.03-3.36-.34-.5-1.07-.53-1.5-.11l-.01.01c-.34.34-.37.87-.11 1.27.6.92.84 2.1.49 3.32-.39 1.37-1.54 2.46-2.94 2.77-2.6.57-4.9-1.39-4.9-3.9 0-1.86 1.28-3.41 3-3.86v2.14c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V2.71c0-.39-.32-.71-.71-.71-5.36-.2-9.98 4.06-10.27 9.4-.36 6.55 5.41 11.82 12.01 10.4 3.88-.83 6.88-3.8 7.75-7.67.71-3.16-.2-6.16-1.97-8.37-.37-.47-1.07-.5-1.49-.08"})),HZe=F(x.jsx("path",{d:"m16 6 2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"})),UZe=F(x.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),qZe=F(x.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),WZe=F(x.jsx("path",{d:"M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"})),GZe=F(x.jsx("path",{d:"M21.19 21.19 2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27zm-10.6-4.59-4.24-4.24 1.41-1.41 2.83 2.83.18-.18 1.41 1.41zm3-5.84-7.1-7.1C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51L15 12.17l2.65-2.65-1.41-1.41z"})),KZe=F(x.jsx("path",{d:"M18.5 11.5c.92 0 1.75.26 2.49.69V5c0-1.1-.89-2-1.99-2H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h8.55c-.02-.17-.05-.33-.05-.5 0-2.76 2.24-5 5-5m-5.61-1.45c-.56.28-1.23.28-1.79 0l-5.61-2.8c-.3-.15-.49-.46-.49-.8 0-.66.7-1.1 1.29-.8L12 8.5l5.71-2.85c.59-.3 1.29.13 1.29.8 0 .34-.19.65-.49.8zM18.5 13c-1.93 0-3.5 1.57-3.5 3.5s1.57 3.5 3.5 3.5 3.5-1.57 3.5-3.5-1.57-3.5-3.5-3.5m2 3.5c0 .28-.22.5-.5.5h-3c-.28 0-.5-.22-.5-.5s.22-.5.5-.5h3c.28 0 .5.22.5.5"})),YZe=F(x.jsx("path",{d:"M5 20h14v-2H5zm0-10h4v6h6v-6h4l-7-7z"})),XZe=F(x.jsx("path",{d:"m23 12-2.44-2.79.34-3.69-3.61-.82-1.89-3.2L12 2.96 8.6 1.5 6.71 4.69 3.1 5.5l.34 3.7L1 12l2.44 2.79-.34 3.7 3.61.82L8.6 22.5l3.4-1.47 3.4 1.46 1.89-3.19 3.61-.82-.34-3.69zm-12.91 4.72-3.8-3.81 1.48-1.48 2.32 2.33 5.85-5.87 1.48 1.48z"}
4535)),QZe=F(x.jsx("path",{d:"M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5zm-2 16-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z"})),JZe=F(x.jsx("path",{d:"M16 13h-3V3h-2v10H8l4 4zM4 19v2h16v-2z"})),ZZe=F(x.jsx("path",{d:"M8 19h3v4h2v-4h3l-4-4zm8-14h-3V1h-2v4H8l4 4zM4 11v2h16v-2z"})),eet=F(x.jsx("path",{d:"M8 11h3v10h2V11h3l-4-4zM4 3v2h16V3z"})),tet=F(x.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),net=F(x.jsx("path",{d:"M3 5v14h18V5zm5.33 12H5V7h3.33zm5.34 0h-3.33V7h3.33zM19 17h-3.33V7H19z"})),ret=F([x.jsx("path",{d:"M6 15h6v2H6zm6-8h6v2h-6zm-3 4h6v2H9z"},"0"),x.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-2m0 16H5V5h14z"},"1")]),iet=F(x.jsx("path",{d:"M5.33 20H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h1.33c1.1 0 2 .9 2 2v12c0 1.1-.89 2-2 2M22 18V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2H20c1.11 0 2-.9 2-2m-7.33 0V6c0-1.1-.9-2-2-2h-1.33c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h1.33c1.1 0 2-.9 2-2"})),oet=F(x.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"})),set=F(x.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"})),aet=F(x.jsx("path",{d:"M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M5 9v6h4l5 5V4L9 9z"})),cet=F(x.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"})),uet=F(x.jsx("path",{d:"M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1m13.5 2c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 4.45v.2c0 .38.25.71.6.85C17.18 6.53 19 9.06 19 12s-1.82 5.47-4.4 6.5c-.36.14-.6.47-.6.85v.2c0 .63.63 1.07 1.21.85C18.6 19.11 21 15.84 21 12s-2.4-7.11-5.79-8.4c-.58-.23-1.21.22-1.21.85"})),det=F(x.jsx("path",{d:"M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z"})),fet=F([x.jsx("path",{d:"M12 5.99 19.53 19H4.47zM12 2 1 21h22z"},"0"),x.jsx("path",{d:"M13 16h-2v2h2zm0-6h-2v5h2z"},"1")]),het=F(x.jsx("path",{d:"M4.47 21h15.06c1.54 0 2.5-1.67 1.73-3L13.73 4.99c-.77-1.33-2.69-1.33-3.46 0L2.74 18c-.77 1.33.19 3 1.73 3M12 14c-.55 0-1-.45-1-1v-2c0-.55.45-1 1-1s1 .45 1 1v2c0 .55-.45 1-1 1m1 4h-2v-2h2z"})),pet=F(x.jsx("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2m4.2 14.2L11 13V7h1.5v5.2l4.5 2.7z"})),met=F(x.jsx("path",{d:"m3.55 18.54 1.41 1.41 1.79-1.8-1.41-1.41zM11 22.45h2V19.5h-2zM4 10.5H1v2h3zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.22-1.21-4.15-3-5.19m5 4.19v2h3v-2zm-2.76 7.66 1.79 1.8 1.41-1.41-1.8-1.79z"})),get=F(x.jsx("path",{d:"m3.55 19.09 1.41 1.41 1.79-1.8-1.41-1.41zM11 20h2v3h-2zM1 11h3v2H1zm12-6.95v3.96l1 .58c1.24.72 2 2.04 2 3.46 0 2.21-1.79 4-4 4s-4-1.79-4-4c0-1.42.77-2.74 2-3.46l1-.58V4.05zm2-2H9v4.81C7.21 7.9 6 9.83 6 12.05c0 3.31 2.69 6 6 6s6-2.69 6-6c0-2.22-1.21-4.15-3-5.19zM20 11h3v2h-3zm-2.76 7.71 1.79 1.8 1.41-1.41-1.8-1.79z"})),yet=F(x.jsx("path",{d:"M22.99 9C19.15 5.16 13.8 3.76 8.84 4.78l2.52 2.52c3.47-.17 6.99 1.05 9.63 3.7zm-4 4c-1.29-1.29-2.84-2.13-4.49-2.56l3.53 3.53zM2 3.05 5.07 6.1C3.6 6.82 2.22 7.78 1 9l1.99 2c1.24-1.24 2.67-2.16 4.2-2.77l2.24 2.24C7.81 10.89 6.27 11.73 5 13v.01L6.99 15c1.36-1.36 3.14-2.04 4.92-2.06L18.98 20l1.27-1.26L3.29 1.79zM9 17l3 3 3-3c-1.65-1.66-4.34-1.66-6 0"})),vet=F(x.jsx("path",{d:"M9.68 13.69 12 11.93l2.31 1.76-.88-2.85L15.75 9h-2.84L12 6.19 11.09 9H8.25l2.31 1.84zM20 10c0-4.42-3.58-8-8-8s-8 3.58-8 8c0 2.03.76 3.87 2 5.28V23l6-2 6 2v-7.72c1.24-1.41 2-3.25 2-5.28m-8-6c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6 2.69-6 6-6"})),bet=F(x.jsx("path",{d:"M6 13c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4m6-10C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4m6 10c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4"}));var VP=qv(),St=t=>Uv(t,VP),BP=qv();St.write=t=>Uv(t,BP);var NT=qv();St.onStart=t=>Uv(t,NT);var $P=qv();St.onFrame=t=>Uv(t,$P);var FP=qv();St.onFinish=t=>Uv(t,FP);var $p=[];St.setTimeout=(t,e)=>{const n=St.now()+e,r=()=>{const o=$p.findIndex(s=>s.cancel==r);~o&&$p.splice(o,1),ru-=~o?1:0},i={time:n,handler:t,cancel:r};return $p.splice(KY(n),0,i),ru+=1,YY(),i};var KY=t=>~(~$p.findIndex(e=>e.time>t)||~$p.length);St.cancel=t=>{NT.delete(t),$P.delete(t),FP.delete(t),VP.delete(t),BP.delete(t)};St.sync=t=>{FR=!0,St.batchedUpdates(t),FR=!1};St.throttle=t=>{let e;function n(){try{t(...e)}finally{e=null}}function r(...i){e=i,St.onStart(n)}return r.handler=t,r.cancel=()=>{NT.delete(n),e=null},r};var jP=typeof window<"u"?window.requestAnimationFrame:()=>{};St.use=t=>jP=t;St.now=typeof performance<"u"?()=>performance.now():Date.now;St.batchedUpdates=t=>t();St.catch=console.error;St.frameLoop="always";St.advance=()=>{St.frameLoop!=="demand"?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):QY()};var nu=-1,ru=0,FR=!1;function Uv(t,e){FR?(e.delete(t),t(0)):(e.add(t),YY())}
4535function YY(){nu<0&&(nu=0,St.frameLoop!=="demand"&&jP(XY))}function BIe(){nu=-1}function XY(){~nu&&(jP(XY),St.batchedUpdates(QY))}function QY(){const t=nu;nu=St.now();const e=KY(nu);if(e&&(JY($p.splice(0,e),n=>n.handler()),ru-=e),!ru){BIe();return}NT.flush(),VP.flush(t?Math.min(64,nu-t):16.667),$P.flush(),BP.flush(),FP.flush()}function qv(){let t=new Set,e=t;return{add(n){ru+=e==t&&!t.has(n)?1:0,t.add(n)},delete(n){return ru-=e==t&&t.has(n)?1:0,t.delete(n)},flush(n){e.size&&(t=new Set,ru-=e.size,JY(e,r=>r(n)&&t.add(r)),ru+=t.size,e=t)}}}function JY(t,e){t.forEach(n=>{try{e(n)}catch(r){St.catch(r)}})}var $Ie=Object.defineProperty,FIe=(t,e)=>{for(var n in e)$Ie(t,n,{get:e[n],enumerable:!0})},Ys={};FIe(Ys,{assign:()=>HIe,colors:()=>_u,createStringInterpolator:()=>UP,skipAnimation:()=>eX,to:()=>ZY,willAdvance:()=>qP});function jR(){}var jIe=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),ze={arr:Array.isArray,obj:t=>!!t&&t.constructor.name==="Object",fun:t=>typeof t=="function",str:t=>typeof t=="string",num:t=>typeof t=="number",und:t=>t===void 0};function vl(t,e){if(ze.arr(t)){if(!ze.arr(e)||t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}return t===e}var yt=(t,e)=>t.forEach(e);function Ha(t,e,n){if(ze.arr(t)){for(let r=0;r<t.length;r++)e.call(n,t[r],`${r}`);return}for(const r in t)t.hasOwnProperty(r)&&e.call(n,t[r],r)}var Mi=t=>ze.und(t)?[]:ze.arr(t)?t:[t];function Sy(t,e){if(t.size){const n=Array.from(t);t.clear(),yt(n,e)}}var P1=(t,...e)=>Sy(t,n=>n(...e)),HP=()=>typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),UP,ZY,_u=null,eX=!1,qP=jR,HIe=t=>{t.to&&(ZY=t.to),t.now&&(St.now=t.now),t.colors!==void 0&&(_u=t.colors),t.skipAnimation!=null&&(eX=t.skipAnimation),t.createStringInterpolator&&(UP=t.createStringInterpolator),t.requestAnimationFrame&&St.use(t.requestAnimationFrame),t.batchedUpdates&&(St.batchedUpdates=t.batchedUpdates),t.willAdvance&&(qP=t.willAdvance),t.frameLoop&&(St.frameLoop=t.frameLoop)},xy=new Set,as=[],_A=[],qS=0,DT={get idle(){return!xy.size&&!as.length},start(t){qS>t.priority?(xy.add(t),St.onStart(UIe)):(tX(t),St(HR))},advance:HR,sort(t){if(qS)St.onFrame(()=>DT.sort(t));else{const e=as.indexOf(t);~e&&(as.splice(e,1),nX(t))}},clear(){as=[],xy.clear()}};function UIe(){xy.forEach(tX),xy.clear(),St(HR)}function tX(t){as.includes(t)||nX(t)}function nX(t){as.splice(qIe(as,e=>e.priority>t.priority),0,t)}function HR(t){const e=_A;for(let n=0;n<as.length;n++){const r=as[n];qS=r.priority,r.idle||(qP(r),r.advance(t),r.idle||e.push(r))}return qS=0,_A=as,_A.length=0,as=e,as.length>0}function qIe(t,e){const n=t.findIndex(e);return n<0?t.length:n}var WIe={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},Bs="[-+]?\\d*\\.?\\d+",WS=Bs+"%";function LT(...t){return"\\(\\s*("+t.join(")\\s*,\\s*(")+")\\s*\\)"}var GIe=new RegExp("rgb"+LT(Bs,Bs,Bs)),KIe=new RegExp("rgba"+LT(Bs,Bs,Bs,Bs)),YIe=new RegExp("hsl"+LT(Bs,WS,WS)),XIe=new RegExp("hsla"
4535+LT(Bs,WS,WS,Bs)),QIe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,JIe=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ZIe=/^#([0-9a-fA-F]{6})$/,e5e=/^#([0-9a-fA-F]{8})$/;function t5e(t){let e;return typeof t=="number"?t>>>0===t&&t>=0&&t<=4294967295?t:null:(e=ZIe.exec(t))?parseInt(e[1]+"ff",16)>>>0:_u&&_u[t]!==void 0?_u[t]:(e=GIe.exec(t))?($h(e[1])<<24|$h(e[2])<<16|$h(e[3])<<8|255)>>>0:(e=KIe.exec(t))?($h(e[1])<<24|$h(e[2])<<16|$h(e[3])<<8|O7(e[4]))>>>0:(e=QIe.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+"ff",16)>>>0:(e=e5e.exec(t))?parseInt(e[1],16)>>>0:(e=JIe.exec(t))?parseInt(e[1]+e[1]+e[2]+e[2]+e[3]+e[3]+e[4]+e[4],16)>>>0:(e=YIe.exec(t))?(k7(P7(e[1]),o2(e[2]),o2(e[3]))|255)>>>0:(e=XIe.exec(t))?(k7(P7(e[1]),o2(e[2]),o2(e[3]))|O7(e[4]))>>>0:null}function AA(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function k7(t,e,n){const r=n<.5?n*(1+e):n+e-n*e,i=2*n-r,o=AA(i,r,t+1/3),s=AA(i,r,t),a=AA(i,r,t-1/3);return Math.round(o*255)<<24|Math.round(s*255)<<16|Math.round(a*255)<<8}function $h(t){const e=parseInt(t,10);return e<0?0:e>255?255:e}function P7(t){return(parseFloat(t)%360+360)%360/360}function O7(t){const e=parseFloat(t);return e<0?0:e>1?255:Math.round(e*255)}function o2(t){const e=parseFloat(t);return e<0?0:e>100?1:e/100}function N7(t){let e=t5e(t);if(e===null)return t;e=e||0;const n=(e&4278190080)>>>24,r=(e&16711680)>>>16,i=(e&65280)>>>8,o=(e&255)/255;return`rgba(${n}, ${r}, ${i}, ${o})`}var A0=(t,e,n)=>{if(ze.fun(t))return t;if(ze.arr(t))return A0({range:t,output:e,extrapolate:n});if(ze.str(t.output[0]))return UP(t);const r=t,i=r.output,o=r.range||[0,1],s=r.extrapolateLeft||r.extrapolate||"extend",a=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(c=>c);return c=>{const u=r5e(c,o);return n5e(c,o[u],o[u+1],i[u],i[u+1],l,s,a,r.map)}};function n5e(t,e,n,r,i,o,s,a,l){let c=l?l(t):t;if(c<e){if(s==="identity")return c;s==="clamp"&&(c=e)}if(c>n){if(a==="identity")return c;a==="clamp"&&(c=n)}return r===i?r:e===n?t<=e?r:i:(e===-1/0?c=-c:n===1/0?c=c-e:c=(c-e)/(n-e),c=o(c),r===-1/0?c=-c:i===1/0?c=c+r:c=c*(i-r)+r,c)}function r5e(t,e){for(var n=1;n<e.length-1&&!(e[n]>=t);++n);return n-1}var i5e={linear:t=>t},I0=Symbol.for("FluidValue.get"),Pm=Symbol.for("FluidValue.observers"),ns=t=>!!(t&&t[I0]),Wi=t=>t&&t[I0]?t[I0]():t,D7=t=>t[Pm]||null;function o5e(t,e){t.eventObserved?t.eventObserved(e):t(e)}function R0(t,e){const n=t[Pm];n&&n.forEach(r=>{o5e(r,e)})}var rX=class{constructor(t){if(!t&&!(t=this.get))throw Error("Unknown getter");s5e(this,t)}},s5e=(t,e)=>iX(t,I0,e);function Sg(t,e){if(t[I0]){let n=t[Pm];n||iX(t,Pm,n=new Set),n.has(e)||(n.add(e),t.observerAdded&&t.observerAdded(n.size,e))}return e}function M0(t,e){const n=t[Pm];if(n&&n.has(e)){const r=n.size-1;r?n.delete(e):t[Pm]=null,t.observerRemoved&&t.observerRemoved(r,e)}}var iX=(t,e,n)=>Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0}),mw=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,a5e=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,L7=new RegExp(`(${mw.source})(%|[a-z]+)`,"i"),l5e=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,zT=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,oX=t=>{const[e,n]=c5e(t);if(!e||HP())return t;const r=window.getComputedStyle(document.documentElement).getPropertyValue(e);if(r)return r.trim();if(n&&n.startsWith("--")){const i=window.getComputedStyle(document.documentElement).getPropertyValue(n);return i||t}else{if(n&&zT.test(n))return oX(n);if(n)return n}return t},c5e=t=>{const e=zT.exec(t);if(!e)return[,];const[,n,r]=e;return[n,r]},IA,u5e=(t,e,n,r,i)=>`rgba(${Math.round(e)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,sX=t=>{IA||(IA=_u?new RegExp(`(${Object.keys(_u).join("|")})(?!\\w)`,"g"):/^\b$/);const e=t.output.map(o=>Wi(o).replace(zT,oX).replace(a5e,N7).replace(IA,N7)),n=e.map(o=>o.match(mw).map(Number)),i=n[0].map((o,s)=>n.map(a=>{if(!(s in a))throw Error('The arity of each "output" value must be equal');return a[s]})).map(o=>A0({...t,output:o}));return o=>{var l;const s=!L7.test(e[0])&&((l=e.find(c=>L7.test(c)))==null?void 0:l.replace(mw,""));let a=0;return e[0].replace(mw,()=>`${i[a++](o)}${s||""}`).replace(l5e,u5e)}},WP="react-spring: ",aX=t=>{const e=t;let n=!1;if(typeof e!="function")throw new TypeError(`${WP}once requires a function parameter`);return(...r)=>{n||(e(...r),n=!0)}},d5e=aX(console.warn);function f5e(){d5e(`${WP}
4535The "interpolate" function is deprecated in v9 (use "to" instead)`)}var h5e=aX(console.warn);function p5e(){h5e(`${WP}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function VT(t){return ze.str(t)&&(t[0]=="#"||/\d/.test(t)||!HP()&&zT.test(t)||t in(_u||{}))}var Jd=HP()?E.useEffect:E.useLayoutEffect,m5e=()=>{const t=E.useRef(!1);return Jd(()=>(t.current=!0,()=>{t.current=!1}),[]),t};function GP(){const t=E.useState()[1],e=m5e();return()=>{e.current&&t(Math.random())}}var KP=t=>E.useEffect(t,g5e),g5e=[];function UR(t){const e=E.useRef(void 0);return E.useEffect(()=>{e.current=t}),e.current}var k0=Symbol.for("Animated:node"),y5e=t=>!!t&&t[k0]===t,pa=t=>t&&t[k0],YP=(t,e)=>jIe(t,k0,e),BT=t=>t&&t[k0]&&t[k0].getPayload(),lX=class{constructor(){YP(this,this)}getPayload(){return this.payload||[]}},$T=class cX extends lX{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,ze.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new cX(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,n){return ze.num(e)&&(this.lastPosition=e,n&&(e=Math.round(e/n)*n,this.done&&(this.lastPosition=e))),this._value===e?!1:(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,ze.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},GS=class uX extends $T{constructor(e){super(0),this._string=null,this._toString=A0({output:[e,e]})}static create(e){return new uX(e)}getValue(){const e=this._string;return e??(this._string=this._toString(this._value))}setValue(e){if(ze.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=A0({output:[this.getValue(),e]})),this._value=0,super.reset()}},KS={dependencies:null},FT=class extends lX{constructor(t){super(),this.source=t,this.setValue(t)}getValue(t){const e={};return Ha(this.source,(n,r)=>{y5e(n)?e[r]=n.getValue(t):ns(n)?e[r]=Wi(n):t||(e[r]=n)}),e}setValue(t){this.source=t,this.payload=this._makePayload(t)}reset(){this.payload&&yt(this.payload,t=>t.reset())}_makePayload(t){if(t){const e=new Set;return Ha(t,this._addToPayload,e),Array.from(e)}}_addToPayload(t){KS.dependencies&&ns(t)&&KS.dependencies.add(t);const e=BT(t);e&&yt(e,n=>this.add(n))}},v5e=class dX extends FT{constructor(e){super(e)}static create(e){return new dX(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){const n=this.getPayload();return e.length==n.length?n.map((r,i)=>r.setValue(e[i])).some(Boolean):(super.setValue(e.map(b5e)),!0)}};function b5e(t){return(VT(t)?GS:$T).create(t)}function qR(t){const e=pa(t);return e?e.constructor:ze.arr(t)?v5e:VT(t)?GS:$T}var z7=(t,e)=>{const n=!ze.fun(t)||t.prototype&&t.prototype.isReactComponent;return E.forwardRef((r,i)=>{const o=E.useRef(null),s=n&&E.useCallback(p=>{o.current=x5e(i,p)},[i]),[a,l]=S5e(r,e),c=GP(),u=()=>{const p=o.current;if(n&&!p)return;(p?e.applyAnimatedValues(p,a.getValue(!0)):!1)===!1&&c()},d=new w5e(u,l),f=E.useRef(void 0);Jd(()=>(f.current=d,yt(l,p=>Sg(p,d)),()=>{f.current&&(yt(f.current.deps,p=>M0(p,f.current)),St.cancel(f.current.update))})),E.useEffect(u,[]),KP(()=>()=>{const p=f.current;yt(p.deps,m=>M0(m,p))});const h=e.getComponentProps(a.getValue());return E.createElement(t,{...h,ref:s})})},w5e=class{constructor(t,e){this.update=t,this.deps=e}eventObserved(t){t.type=="change"&&St.write(this.update)}};function S5e(t,e){const n=new Set;return KS.dependencies=n,t.style&&(t={...t,style:e.createAnimatedStyle(t.style)}),t=new FT(t),KS.dependencies=null,[t,n]}function x5e(t,e){return t&&(ze.fun(t)?t(e):t.current=e),e}var V7=Symbol.for("AnimatedComponent"),E5e=(t,{applyAnimatedValues:e=()=>!1,createAnimatedStyle:n=i=>new FT(i),getComponentProps:r=i=>i}={})=>{const i={applyAnimatedValues:e,createAnimatedStyle:n,getComponentProps:r},o=s=>{const a=B7(s)||"Anonymous";return ze.str(s)?s=o[s]||(o[s]=z7(s,i)):s=s[V7]||(s[V7]=z7(s,i)),s.displayName=`Animated(${a})`,s};return Ha(t,(s,a)=>{ze.arr(t)&&(a=B7(s)),o[a]=o(s)}),{animated:o}},B7=t=>ze.str(t)?t:t&&ze.str(t.displayName)?t.displayName:ze.fun(t)&&t.name||null;function Gi(t,...e){return ze.fun(t)?t(...e):t}var Ey=(t,e)=>t===!0||!!(e&&t&&(ze.fun(t)?t(e):Mi(t).includes(e))),fX=(t,e)=>ze.obj(t)?e&&t[e]:t,hX=(t,e)=>t.default===!0?t[e]:t.default?t.default[e]:void 0,T5e=t=>t,jT=(t,e=T5e)=>{let n=C5e;t.default&&t.default!==!0&&(t=t.default,n=Object.keys(t));const r={};for(const i of n){const o=e(t[i],i);ze.und(o)||(r[i]=o)}return r},C5e=["config","onProps","onStart","onChange","onPause","onResume","onRest"],_5e={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function A5e(t){const e={};let n=0;if(Ha(t,(r,i)=>{_5e[i]||(e[i]=r,n++)}),n)return e}function XP(t){const e=A5e(t);if(e){const n={to:e};return Ha(t,(r,i)=>i in e||(n[i]=r)),n}return{...t}}function P0(t){return t=Wi(t),ze.arr(t)?t.map(P0):VT(t)?Ys.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function pX(t){for(const e in t)return!0;return!1}function WR(t){return ze.fun(t)||ze.arr(t)&&ze.obj(t[0])}function GR(t,e){var n;(n=t.ref)==null||n.delete(t),e==null||e.delete(t)}function mX(t,e){var n;e&&t.ref!==e&&((n=t.ref)==null||n.delete(t),e.add(t),t.ref=e)}var I5e={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},KR={...I5e.default,mass:1,damping:1,easing:i5e.linear,clamp:!1},R5e=class{constructor(){this.velocity=0,Object.assign(this,KR)}};function M5e(t,e,n){n&&(n={...n},$7(n,e),e={...n,...e}),$7(t,e),Object.assign(t,e);for(const s in KR)t[s]==null&&(t[s]=KR[s]);let{frequency:r,damping:i}=t;const{mass:o}=t;return ze.und(r)||(r<.01&&(r=.01),i<0&&(i=0),t.tension=Math.pow(2*Math.PI/r,2)*o,t.friction=4*Math.PI*i*o/r),t}function $7(t,e){if(!ze.und(e.decay))t.duration=void 0;else{const n=!ze.und(e.tension)||!ze.und(e.friction);
4535(n||!ze.und(e.frequency)||!ze.und(e.damping)||!ze.und(e.mass))&&(t.duration=void 0,t.decay=void 0),n&&(t.frequency=void 0)}}var F7=[],k5e=class{constructor(){this.changed=!1,this.values=F7,this.toValues=null,this.fromValues=F7,this.config=new R5e,this.immediate=!1}};function gX(t,{key:e,props:n,defaultProps:r,state:i,actions:o}){return new Promise((s,a)=>{let l,c,u=Ey(n.cancel??(r==null?void 0:r.cancel),e);if(u)h();else{ze.und(n.pause)||(i.paused=Ey(n.pause,e));let p=r==null?void 0:r.pause;p!==!0&&(p=i.paused||Ey(p,e)),l=Gi(n.delay||0,e),p?(i.resumeQueue.add(f),o.pause()):(o.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(c),c.cancel(),l=c.time-St.now()}function f(){l>0&&!Ys.skipAnimation?(i.delayed=!0,c=St.setTimeout(h,l),i.pauseQueue.add(d),i.timeouts.add(c)):h()}function h(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(c),t<=(i.cancelId||0)&&(u=!0);try{o.start({...n,callId:t,cancel:u},s)}catch(p){a(p)}}})}var QP=(t,e)=>e.length==1?e[0]:e.some(n=>n.cancelled)?Fp(t.get()):e.every(n=>n.noop)?yX(t.get()):Ls(t.get(),e.every(n=>n.finished)),yX=t=>({value:t,noop:!0,finished:!0,cancelled:!1}),Ls=(t,e,n=!1)=>({value:t,finished:e,cancelled:n}),Fp=t=>({value:t,cancelled:!0,finished:!1});function vX(t,e,n,r){const{callId:i,parentId:o,onRest:s}=e,{asyncTo:a,promise:l}=n;return!o&&t===a&&!e.reset?l:n.promise=(async()=>{n.asyncId=i,n.asyncTo=t;const c=jT(e,(g,y)=>y==="onRest"?void 0:g);let u,d;const f=new Promise((g,y)=>(u=g,d=y)),h=g=>{const y=i<=(n.cancelId||0)&&Fp(r)||i!==n.asyncId&&Ls(r,!1);if(y)throw g.result=y,d(g),g},p=(g,y)=>{const b=new j7,v=new H7;return(async()=>{if(Ys.skipAnimation)throw O0(n),v.result=Ls(r,!1),d(v),v;h(b);const S=ze.obj(g)?{...g}:{...y,to:g};S.parentId=i,Ha(c,(O,T)=>{ze.und(S[T])&&(S[T]=O)});const I=await r.start(S);return h(b),n.paused&&await new Promise(O=>{n.resumeQueue.add(O)}),I})()};let m;if(Ys.skipAnimation)return O0(n),Ls(r,!1);try{let g;ze.arr(t)?g=(async y=>{for(const b of y)await p(b)})(t):g=Promise.resolve(t(p,r.stop.bind(r))),await Promise.all([g.then(u),f]),m=Ls(r.get(),!0,!1)}catch(g){if(g instanceof j7)m=g.result;else if(g instanceof H7)m=g.result;else throw g}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?a:void 0,n.promise=o?l:void 0)}return ze.fun(s)&&St.batchedUpdates(()=>{s(m,r,r.item)}),m})()}function O0(t,e){Sy(t.timeouts,n=>n.cancel()),t.pauseQueue.clear(),t.resumeQueue.clear(),t.asyncId=t.asyncTo=t.promise=void 0,e&&(t.cancelId=e)}var j7=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},H7=class extends Error{constructor(){super("SkipAnimationSignal")}},YR=t=>t instanceof JP,P5e=1,JP=class extends rX{constructor(){super(...arguments),this.id=P5e++,this._priority=0}get priority(){return this._priority}set priority(t){this._priority!=t&&(this._priority=t,this._onPriorityChange(t))}get(){const t=pa(this);return t&&t.getValue()}to(...t){return Ys.to(this,t)}interpolate(...t){return f5e(),Ys.to(this,t)}toJSON(){return this.get()}observerAdded(t){t==1&&this._attach()}observerRemoved(t){t==0&&this._detach()}_attach(){}_detach(){}_onChange(t,e=!1){R0(this,{type:"change",parent:this,value:t,idle:e})}_onPriorityChange(t){this.idle||DT.sort(this),R0(this,{type:"priority",parent:this,priority:t})}},jf=Symbol.for("SpringPhase"),bX=1,XR=2,QR=4,RA=t=>(t[jf]&bX)>0,Ac=t=>(t[jf]&XR)>0,n1=t=>(t[jf]&QR)>0,U7=(t,e)=>e?t[jf]|=XR|bX:t[jf]&=~XR,q7=(t,e)=>e?t[jf]|=QR:t[jf]&=~QR,O5e=class extends JP{constructor(t,e){if(super(),this.animation=new k5e,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!ze.und(t)||!ze.und(e)){const n=ze.obj(t)?{...t}:{...e,from:t};ze.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Ac(this)||this._state.asyncTo)||n1(this)}get goal(){return Wi(this.animation.to)}get velocity(){const t=pa(this);return t instanceof $T?t.lastVelocity||0:t.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return RA(this)}get isAnimating(){return Ac(this)}get isPaused(){return n1(this)}get isDelayed(){return this._state.delayed}advance(t){let e=!0,n=!1;const r=this.animation;let{toValues:i}=r;const{config:o}=r,s=BT(r.to);
4535!s&&ns(r.to)&&(i=Mi(Wi(r.to))),r.values.forEach((c,u)=>{if(c.done)return;const d=c.constructor==GS?1:s?s[u].lastPosition:i[u];let f=r.immediate,h=d;if(!f){if(h=c.lastPosition,o.tension<=0){c.done=!0;return}let p=c.elapsedTime+=t;const m=r.fromValues[u],g=c.v0!=null?c.v0:c.v0=ze.arr(o.velocity)?o.velocity[u]:o.velocity;let y;const b=o.precision||(m==d?.005:Math.min(1,Math.abs(d-m)*.001));if(ze.und(o.duration))if(o.decay){const v=o.decay===!0?.998:o.decay,S=Math.exp(-(1-v)*p);h=m+g/(1-v)*(1-S),f=Math.abs(c.lastPosition-h)<=b,y=g*S}else{y=c.lastVelocity==null?g:c.lastVelocity;const v=o.restVelocity||b/10,S=o.clamp?0:o.bounce,I=!ze.und(S),O=m==d?c.v0>0:m<d;let T,A=!1;const R=1,k=Math.ceil(t/R);for(let P=0;P<k&&(T=Math.abs(y)>v,!(!T&&(f=Math.abs(d-h)<=b,f)));++P){I&&(A=h==d||h>d==O,A&&(y=-y*S,h=d));const C=-o.tension*1e-6*(h-d),_=-o.friction*.001*y,M=(C+_)/o.mass;y=y+M*R,h=h+y*R}}else{let v=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,c.durationProgress>0&&(c.elapsedTime=o.duration*c.durationProgress,p=c.elapsedTime+=t)),v=(o.progress||0)+p/this._memoizedDuration,v=v>1?1:v<0?0:v,c.durationProgress=v),h=m+o.easing(v)*(d-m),y=(h-c.lastPosition)/t,f=v==1}c.lastVelocity=y,Number.isNaN(h)&&(console.warn("Got NaN while animating:",this),f=!0)}s&&!s[u].done&&(f=!1),f?c.done=!0:e=!1,c.setValue(h,o.round)&&(n=!0)});const a=pa(this),l=a.getValue();if(e){const c=Wi(r.to);(l!==c||n)&&!o.decay?(a.setValue(c),this._onChange(c)):n&&o.decay&&this._onChange(l),this._stop()}else n&&this._onChange(l)}set(t){return St.batchedUpdates(()=>{this._stop(),this._focus(t),this._set(t)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Ac(this)){const{to:t,config:e}=this.animation;St.batchedUpdates(()=>{this._onStart(),e.decay||this._set(t,!1),this._stop()})}return this}update(t){return(this.queue||(this.queue=[])).push(t),this}start(t,e){let n;return ze.und(t)?(n=this.queue||[],this.queue=[]):n=[ze.obj(t)?t:{...e,to:t}],Promise.all(n.map(r=>this._update(r))).then(r=>QP(this,r))}stop(t){const{to:e}=this.animation;return this._focus(this.get()),O0(this._state,t&&this._lastCallId),St.batchedUpdates(()=>this._stop(e,t)),this}reset(){this._update({reset:!0})}eventObserved(t){t.type=="change"?this._start():t.type=="priority"&&(this.priority=t.priority+1)}_prepareNode(t){const e=this.key||"";let{to:n,from:r}=t;n=ze.obj(n)?n[e]:n,(n==null||WR(n))&&(n=void 0),r=ze.obj(r)?r[e]:r,r==null&&(r=void 0);const i={to:n,from:r};return RA(this)||(t.reverse&&([n,r]=[r,n]),r=Wi(r),ze.und(r)?pa(this)||this._set(n):this._set(r)),i}_update({...t},e){const{key:n,defaultProps:r}=this;t.default&&Object.assign(r,jT(t,(s,a)=>/^on/.test(a)?fX(s,n):s)),G7(this,t,"onProps"),i1(this,"onProps",t,this);const i=this._prepareNode(t);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const o=this._state;return gX(++this._lastCallId,{key:n,props:t,defaultProps:r,state:o,actions:{pause:()=>{n1(this)||(q7(this,!0),P1(o.pauseQueue),i1(this,"onPause",Ls(this,r1(this,this.animation.to)),this))},resume:()=>{n1(this)&&(q7(this,!1),Ac(this)&&this._resume(),P1(o.resumeQueue),i1(this,"onResume",Ls(this,r1(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(s=>{if(t.loop&&s.finished&&!(e&&s.noop)){const a=wX(t);if(a)return this._update(a,!0)}return s})}_merge(t,e,n){if(e.cancel)return this.stop(!0),n(Fp(this));const r=!ze.und(t.to),i=!ze.und(t.from);if(r||i)if(e.callId>this._lastToId)this._lastToId=e.callId;else return n(Fp(this));const{key:o,defaultProps:s,animation:a}=this,{to:l,from:c}=a;let{to:u=l,from:d=c}=t;i&&!r&&(!e.default||ze.und(u))&&(u=d),e.reverse&&([u,d]=[d,u]);const f=!vl(d,c);f&&(a.from=d),d=Wi(d);const h=!vl(u,l);h&&this._focus(u);const p=WR(e.to),{config:m}=a,{decay:g,velocity:y}=m;(r||i)&&(m.velocity=0),e.config&&!p&&M5e(m,Gi(e.config,o),e.config!==s.config?Gi(s.config,o):void 0);let b=pa(this);if(!b||ze.und(u))return n(Ls(this,!0));const v=ze.und(e.reset)?i&&!e.default:!ze.und(d)&&Ey(e.reset,o),S=v?d:this.get(),I=P0(u),O=ze.num(I
4535)||ze.arr(I)||VT(I),T=!p&&(!O||Ey(s.immediate||e.immediate,o));if(h){const P=qR(u);if(P!==b.constructor)if(T)b=this._set(I);else throw Error(`Cannot animate between ${b.constructor.name} and ${P.name}, as the "to" prop suggests`)}const A=b.constructor;let R=ns(u),k=!1;if(!R){const P=v||!RA(this)&&f;(h||P)&&(k=vl(P0(S),I),R=!k),(!vl(a.immediate,T)&&!T||!vl(m.decay,g)||!vl(m.velocity,y))&&(R=!0)}if(k&&Ac(this)&&(a.changed&&!v?R=!0:R||this._stop(l)),!p&&((R||ns(l))&&(a.values=b.getPayload(),a.toValues=ns(u)?null:A==GS?[1]:Mi(I)),a.immediate!=T&&(a.immediate=T,!T&&!v&&this._set(l)),R)){const{onRest:P}=a;yt(D5e,_=>G7(this,e,_));const C=Ls(this,r1(this,l));P1(this._pendingCalls,C),this._pendingCalls.add(n),a.changed&&St.batchedUpdates(()=>{var _;a.changed=!v,P==null||P(C,this),v?Gi(s.onRest,C):(_=a.onStart)==null||_.call(a,C,this)})}v&&this._set(S),p?n(vX(e.to,e,this._state,this)):R?this._start():Ac(this)&&!h?this._pendingCalls.add(n):n(yX(S))}_focus(t){const e=this.animation;t!==e.to&&(D7(this)&&this._detach(),e.to=t,D7(this)&&this._attach())}_attach(){let t=0;const{to:e}=this.animation;ns(e)&&(Sg(e,this),YR(e)&&(t=e.priority+1)),this.priority=t}_detach(){const{to:t}=this.animation;ns(t)&&M0(t,this)}_set(t,e=!0){const n=Wi(t);if(!ze.und(n)){const r=pa(this);if(!r||!vl(n,r.getValue())){const i=qR(n);!r||r.constructor!=i?YP(this,i.create(n)):r.setValue(n),r&&St.batchedUpdates(()=>{this._onChange(n,e)})}}return pa(this)}_onStart(){const t=this.animation;t.changed||(t.changed=!0,i1(this,"onStart",Ls(this,r1(this,t.to)),this))}_onChange(t,e){e||(this._onStart(),Gi(this.animation.onChange,t,this)),Gi(this.defaultProps.onChange,t,this),super._onChange(t,e)}_start(){const t=this.animation;pa(this).reset(Wi(t.to)),t.immediate||(t.fromValues=t.values.map(e=>e.lastPosition)),Ac(this)||(U7(this,!0),n1(this)||this._resume())}_resume(){Ys.skipAnimation?this.finish():DT.start(this)}_stop(t,e){if(Ac(this)){U7(this,!1);const n=this.animation;yt(n.values,i=>{i.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),R0(this,{type:"idle",parent:this});const r=e?Fp(this.get()):Ls(this.get(),r1(this,t??n.to));P1(this._pendingCalls,r),n.changed&&(n.changed=!1,i1(this,"onRest",r,this))}}};function r1(t,e){const n=P0(e),r=P0(t.get());return vl(r,n)}function wX(t,e=t.loop,n=t.to){const r=Gi(e);if(r){const i=r!==!0&&XP(r),o=(i||t).reverse,s=!i||i.reset;return N0({...t,loop:e,default:!1,pause:void 0,to:!o||WR(n)?n:void 0,from:s?t.from:void 0,reset:s,...i})}}function N0(t){const{to:e,from:n}=t=XP(t),r=new Set;return ze.obj(e)&&W7(e,r),ze.obj(n)&&W7(n,r),t.keys=r.size?Array.from(r):null,t}function N5e(t){const e=N0(t);return ze.und(e.default)&&(e.default=jT(e)),e}function W7(t,e){Ha(t,(n,r)=>n!=null&&e.add(r))}var D5e=["onStart","onRest","onChange","onPause","onResume"];function G7(t,e,n){t.animation[n]=e[n]!==hX(e,n)?fX(e[n],t.key):void 0}function i1(t,e,...n){var r,i,o,s;(i=(r=t.animation)[e])==null||i.call(r,...n),(s=(o=t.defaultProps)[e])==null||s.call(o,...n)}var L5e=["onStart","onChange","onRest"],z5e=1,SX=class{constructor(t,e){this.id=z5e++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),e&&(this._flush=e),t&&this.start({default:!0,...t})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(t=>t.idle&&!t.isDelayed&&!t.isPaused)}get item(){return this._item}set item(t){this._item=t}get(){const t={};return this.each((e,n)=>t[n]=e.get()),t}set(t){for(const e in t){const n=t[e];ze.und(n)||this.springs[e].set(n)}}update(t){return t&&this.queue.push(N0(t)),this}start(t){let{queue:e}=this;return t?e=Mi(t).map(N0):this.queue=[],this._flush?this._flush(this,e):(_X(this,e),JR(this,e))}stop(t,e){if(t!==!!t&&(e=t),e){const n=this.springs;yt(Mi(e),r=>n[r].stop(!!t))}else O0(this._state,this._lastAsyncId),this.each(n=>n.stop(!!t));return this}pause(t){if(ze.und(t))this.start({pause:!0});else{const e=this.springs;yt(Mi(t),n=>e[n].pause())}return this}resume(t){if(ze.und(t))this.start({pause:!1});else{const e=this.springs;yt(Mi(t),n=>e[n].resume())}return this}each(t){Ha(this.springs,t)}_onFrame(){const{onStart:t,onChange:e,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Sy(t,([a,l])=>{l.value=this.get(),a(l,this,this._item)}));const o=!r&&this._started,s=i||o&&n.size?this.get():null;i&&e.size&&Sy(e,([a,l])=>{l.value=s,a(l,this,this._item)}),o&&(this._started=!1,Sy(n,([a,l])=>{l.value=s,a(l,this,this._item)}))}eventObserved(t){if(t.type=="change")this._changed.add(t.parent),t.idle||this._active.add(t.parent);else if(t.type=="idle")this._active.delete(t.parent);else return;St.onFrame(this._onFrame)}};function JR(t,e){return Promise.all(e.map(n=>xX(t,n))).then(n=>QP(t,n))}async function xX(t,e,n){const{keys:r,to:i,from:o,loop:s,onRest:a,onRes
4535olve:l}=e,c=ze.obj(e.default)&&e.default;s&&(e.loop=!1),i===!1&&(e.to=null),o===!1&&(e.from=null);const u=ze.arr(i)||ze.fun(i)?i:void 0;u?(e.to=void 0,e.onRest=void 0,c&&(c.onRest=void 0)):yt(L5e,m=>{const g=e[m];if(ze.fun(g)){const y=t._events[m];e[m]=({finished:b,cancelled:v})=>{const S=y.get(g);S?(b||(S.finished=!1),v&&(S.cancelled=!0)):y.set(g,{value:null,finished:b||!1,cancelled:v||!1})},c&&(c[m]=e[m])}});const d=t._state;e.pause===!d.paused?(d.paused=e.pause,P1(e.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(e.pause=!0);const f=(r||Object.keys(t.springs)).map(m=>t.springs[m].start(e)),h=e.cancel===!0||hX(e,"cancel")===!0;(u||h&&d.asyncId)&&f.push(gX(++t._lastAsyncId,{props:e,state:d,actions:{pause:jR,resume:jR,start(m,g){h?(O0(d,t._lastAsyncId),g(Fp(t))):(m.onRest=a,g(vX(u,m,d,t)))}}})),d.paused&&await new Promise(m=>{d.resumeQueue.add(m)});const p=QP(t,await Promise.all(f));if(s&&p.finished&&!(n&&p.noop)){const m=wX(e,s,i);if(m)return _X(t,[m]),xX(t,m,!0)}return l&&St.batchedUpdates(()=>l(p,t,t.item)),p}function ZR(t,e){const n={...t.springs};return e&&yt(Mi(e),r=>{ze.und(r.keys)&&(r=N0(r)),ze.obj(r.to)||(r={...r,to:void 0}),CX(n,r,i=>TX(i))}),EX(t,n),n}function EX(t,e){Ha(e,(n,r)=>{t.springs[r]||(t.springs[r]=n,Sg(n,t))})}function TX(t,e){const n=new O5e;return n.key=t,e&&Sg(n,e),n}function CX(t,e,n){e.keys&&yt(e.keys,r=>{(t[r]||(t[r]=n(r)))._prepareNode(e)})}function _X(t,e){yt(e,n=>{CX(t.springs,n,r=>TX(r,t))})}var AX=E.createContext({pause:!1,immediate:!1}),IX=()=>{const t=[],e=function(r){p5e();const i=[];return yt(t,(o,s)=>{if(ze.und(r))i.push(o.start());else{const a=n(r,o,s);a&&i.push(o.start(a))}}),i};e.current=t,e.add=function(r){t.includes(r)||t.push(r)},e.delete=function(r){const i=t.indexOf(r);~i&&t.splice(i,1)},e.pause=function(){return yt(t,r=>r.pause(...arguments)),this},e.resume=function(){return yt(t,r=>r.resume(...arguments)),this},e.set=function(r){yt(t,(i,o)=>{const s=ze.fun(r)?r(o,i):r;s&&i.set(s)})},e.start=function(r){const i=[];return yt(t,(o,s)=>{if(ze.und(r))i.push(o.start());else{const a=this._getProps(r,o,s);a&&i.push(o.start(a))}}),i},e.stop=function(){return yt(t,r=>r.stop(...arguments)),this},e.update=function(r){return yt(t,(i,o)=>i.update(this._getProps(r,i,o))),this};const n=function(r,i,o){return ze.fun(r)?r(o,i):r};return e._getProps=n,e};function V5e(t,e,n){const r=ze.fun(e)&&e;r&&!n&&(n=[]);const i=E.useMemo(()=>r||arguments.length==3?IX():void 0,[]),o=E.useRef(0),s=GP(),a=E.useMemo(()=>({ctrls:[],queue:[],flush(y,b){const v=ZR(y,b);return o.current>0&&!a.queue.length&&!Object.keys(v).some(I=>!y.springs[I])?JR(y,b):new Promise(I=>{EX(y,v),a.queue.push(()=>{I(JR(y,b))}),s()})}}),[]),l=E.useRef([...a.ctrls]),c=E.useRef([]),u=UR(t)||0;E.useMemo(()=>{yt(l.current.slice(t,u),y=>{GR(y,i),y.stop(!0)}),l.current.length=t,d(u,t)},[t]),E.useMemo(()=>{d(0,Math.min(u,t))},n);function d(y,b){for(let v=y;v<b;v++){const S=l.current[v]||(l.current[v]=new SX(null,a.flush)),I=r?r(v,S):e[v];I&&(c.current[v]=N5e(I))}}const f=l.current.map((y,b)=>ZR(y,c.current[b])),h=E.useContext(AX),p=UR(h),m=h!==p&&pX(h);Jd(()=>{o.current++,a.ctrls=l.current;const{queue:y}=a;y.length&&(a.queue=[],yt(y,b=>b())),yt(l.current,(b,v)=>{i==null||i.add(b),m&&b.start({default:h});const S=c.current[v];S&&(mX(b,S.ref),b.ref?b.queue.push(S):b.start(S))})}),KP(()=>()=>{yt(a.ctrls,y=>y.stop(!0))});const g=f.map(y=>({...y}));return i?[g,i]:g}function wet(t,e){const n=ze.fun(t),[[r],i]=V5e(1,n?t:[t],n?[]:e);return n||arguments.length==2?[r,i]:r}function xet(t,e,n){const r=ze.fun(e)&&e,{reset:i,sort:o,trail:s=0,expires:a=!0,exitBeforeEnter:l=!1,onDestroyed:c,ref:u,config:d}=r?r():e,f=E.useMemo(()=>r||arguments.length==3?IX():void 0,[]),h=Mi(t),p=[],m=E.useRef(null),g=i?null:m.current;Jd(()=>{m.current=p}),KP(()=>(yt(p,M=>{f==null||f.add(M.ctrl),M.ctrl.ref=f}),()=>{yt(m.current,M=>{M.expired&&clearTimeout(M.expirationId),GR(M.ctrl,f),M.ctrl.stop(!0)})}));const y=$5e(h,r?r():e,g),b=i&&m.current||[];Jd(()=>yt(b,({ctrl:M,item:V,key:N})=>{GR(M,f),Gi(c,V,N)}));const v=[];if(g&&yt(g,(M,V)=>
4535{M.expired?(clearTimeout(M.expirationId),b.push(M)):(V=v[V]=y.indexOf(M.key),~V&&(p[V]=M))}),yt(h,(M,V)=>{p[V]||(p[V]={key:y[V],item:M,phase:"mount",ctrl:new SX},p[V].ctrl.item=M)}),v.length){let M=-1;const{leave:V}=r?r():e;yt(v,(N,z)=>{const L=g[z];~N?(M=p.indexOf(L),p[M]={...L,item:h[N]}):V&&p.splice(++M,0,L)})}ze.fun(o)&&p.sort((M,V)=>o(M.item,V.item));let S=-s;const I=GP(),O=jT(e),T=new Map,A=E.useRef(new Map),R=E.useRef(!1);yt(p,(M,V)=>{const N=M.key,z=M.phase,L=r?r():e;let B,j;const H=Gi(L.delay||0,N);if(z=="mount")B=L.enter,j="enter";else{const G=y.indexOf(N)<0;if(z!="leave")if(G)B=L.leave,j="leave";else if(B=L.update)j="update";else return;else if(!G)B=L.enter,j="enter";else return}if(B=Gi(B,M.item,V),B=ze.obj(B)?XP(B):{to:B},!B.config){const G=d||O.config;B.config=Gi(G,M.item,V,j)}S+=s;const q={...O,delay:H+S,ref:u,immediate:L.immediate,reset:!1,...B};if(j=="enter"&&ze.und(q.from)){const G=r?r():e,X=ze.und(G.initial)||g?G.from:G.initial;q.from=Gi(X,M.item,V)}const{onResolve:Y}=q;q.onResolve=G=>{Gi(Y,G);const X=m.current,K=X.find(J=>J.key===N);if(K&&!(G.cancelled&&K.phase!="update")&&K.ctrl.idle){const J=X.every(te=>te.ctrl.idle);if(K.phase=="leave"){const te=Gi(a,K.item);if(te!==!1){const ne=te===!0?0:te;if(K.expired=!0,!J&&ne>0){ne<=2147483647&&(K.expirationId=setTimeout(I,ne));return}}}J&&X.some(te=>te.expired)&&(A.current.delete(K),l&&(R.current=!0),I())}};const Z=ZR(M.ctrl,q);j==="leave"&&l?A.current.set(M,{phase:j,springs:Z,payload:q}):T.set(M,{phase:j,springs:Z,payload:q})});const k=E.useContext(AX),P=UR(k),C=k!==P&&pX(k);Jd(()=>{C&&yt(p,M=>{M.ctrl.start({default:k})})},[k]),yt(T,(M,V)=>{if(A.current.size){const N=p.findIndex(z=>z.key===V.key);p.splice(N,1)}}),Jd(()=>{yt(A.current.size?A.current:T,({phase:M,payload:V},N)=>{const{ctrl:z}=N;N.phase=M,f==null||f.add(z),C&&M=="enter"&&z.start({default:k}),V&&(mX(z,V.ref),(z.ref||f)&&!R.current?z.update(V):(z.start(V),R.current&&(R.current=!1)))})},i?void 0:n);const _=M=>E.createElement(E.Fragment,null,p.map((V,N)=>{const{springs:z}=T.get(V)||V.ctrl,L=M({...z},V.item,V,N),B=ze.str(V.key)||ze.num(V.key)?V.key:V.ctrl.id,j=E.version<"19.0.0",H=(L==null?void 0:L.props)??{},q=j?L==null?void 0:L.ref:H==null?void 0:H.ref;return L&&L.type?E.createElement(L.type,{...H,key:B,ref:q}):L}));return f?[_,f]:_}var B5e=1;function $5e(t,{key:e,keys:n=e},r){if(n===null){const i=new Set;return t.map(o=>{const s=r&&r.find(a=>a.item===o&&a.phase!=="leave"&&!i.has(a));return s?(i.add(s),s.key):B5e++})}return ze.und(n)?t:ze.fun(n)?t.map(n):Mi(n)}var RX=class extends JP{constructor(t,e){super(),this.source=t,this.idle=!0,this._active=new Set,this.calc=A0(...e);const n=this._get(),r=qR(n);YP(this,r.create(n))}advance(t){const e=this._get(),n=this.get();vl(e,n)||(pa(this).setValue(e),this._onChange(e,this.idle)),!this.idle&&K7(this._active)&&MA(this)}_get(){const t=ze.arr(this.source)?this.source.map(Wi):Mi(Wi(this.source));return this.calc(...t)}_start(){this.idle&&!K7(this._active)&&(this.idle=!1,yt(BT(this),t=>{t.done=!1}),Ys.skipAnimation?(St.batchedUpdates(()=>this.advance()),MA(this)):DT.start(this))}_attach(){let t=1;yt(Mi(this.source),e=>{ns(e)&&Sg(e,this),YR(e)&&(e.idle||this._active.add(e),t=Math.max(t,e.priority+1))}),this.priority=t,this._start()}_detach(){yt(Mi(this.source),t=>{ns(t)&&M0(t,this)}),this._active.clear(),MA(this)}eventObserved(t){t.type=="change"?t.idle?this.advance():(this._active.add(t.parent),this._start()):t.type=="idle"?this._active.delete(t.parent):t.type=="priority"&&(this.priority=Mi(this.source).reduce((e,n)=>Math.max(e,(YR(n)?n.priority:0)+1),0))}};function F5e(t){return t.idle!==!1}function K7(t){return!t.size||Array.from(t).every(F5e)}function MA(t){t.idle||(t.idle=!0,yt(BT(t),e=>{e.done=!0}),R0(t,{type:"idle",parent:t}))}var Eet=(t,...e)=>new RX(t,e);Ys.assign({createStringInterpolator:sX,to:(t,e)=>new RX(t,e)});var MX=/^--/;function j5e(t,e){return e==null||typeof e=="boolean"||e===""?"":typeof e=="number"&&e!==0&&!MX.test(t)&&!(Ty.hasOwnProperty(t)&&Ty[t])?e+"px":(""+e).trim()}var Y7={};function H5e(t,e){if(!t.nodeType||!t.setAttribute)return!1;const n=t.nodeName==="filter"||t.parentNode&&t.parentNode.nodeName==="filter",{className:r,style:i,children:o,scrollTop:s,scrollLeft:a,viewBox:l,...c}=e,u=Object.values(c),d=Object.keys(c).map(f=>n||t.hasAttribute(f)?f:Y7[f]||(Y7[f]=f.replace(/([A-Z])/g,h=>"-"+h.toLowerCase())));o!==void 0&&(t.textContent=o);for(const f in i)if(i.hasOwnProperty(f)){const h=j5e(f,i[f]);MX.test(f)?t.style.setProperty(f,h):t.style[f]=h}
4535d.forEach((f,h)=>{t.setAttribute(f,u[h])}),r!==void 0&&(t.className=r),s!==void 0&&(t.scrollTop=s),a!==void 0&&(t.scrollLeft=a),l!==void 0&&t.setAttribute("viewBox",l)}var Ty={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,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},U5e=(t,e)=>t+e.charAt(0).toUpperCase()+e.substring(1),q5e=["Webkit","Ms","Moz","O"];Ty=Object.keys(Ty).reduce((t,e)=>(q5e.forEach(n=>t[U5e(n,e)]=t[e]),t),Ty);var W5e=/^(matrix|translate|scale|rotate|skew)/,G5e=/^(translate)/,K5e=/^(rotate|skew)/,kA=(t,e)=>ze.num(t)&&t!==0?t+e:t,gw=(t,e)=>ze.arr(t)?t.every(n=>gw(n,e)):ze.num(t)?t===e:parseFloat(t)===e,Y5e=class extends FT{constructor({x:t,y:e,z:n,...r}){const i=[],o=[];(t||e||n)&&(i.push([t||0,e||0,n||0]),o.push(s=>[`translate3d(${s.map(a=>kA(a,"px")).join(",")})`,gw(s,0)])),Ha(r,(s,a)=>{if(a==="transform")i.push([s||""]),o.push(l=>[l,l===""]);else if(W5e.test(a)){if(delete r[a],ze.und(s))return;const l=G5e.test(a)?"px":K5e.test(a)?"deg":"";i.push(Mi(s)),o.push(a==="rotate3d"?([c,u,d,f])=>[`rotate3d(${c},${u},${d},${kA(f,l)})`,gw(f,0)]:c=>[`${a}(${c.map(u=>kA(u,l)).join(",")})`,gw(c,a.startsWith("scale")?1:0)])}}),i.length&&(r.transform=new X5e(i,o)),super(r)}},X5e=class extends rX{constructor(t,e){super(),this.inputs=t,this.transforms=e,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let t="",e=!0;return yt(this.inputs,(n,r)=>{const i=Wi(n[0]),[o,s]=this.transforms[r](ze.arr(i)?i:n.map(Wi));t+=" "+o,e=e&&s}),e?"none":t}observerAdded(t){t==1&&yt(this.inputs,e=>yt(e,n=>ns(n)&&Sg(n,this)))}observerRemoved(t){t==0&&yt(this.inputs,e=>yt(e,n=>ns(n)&&M0(n,this)))}eventObserved(t){t.type=="change"&&(this._value=null),R0(this,t)}},Q5e=["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","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"];Ys.assign({batchedUpdates:za.unstable_batchedUpdates,createStringInterpolator:sX,colors:WIe});var J5e=E5e(Q5e,{applyAnimatedValues:H5e,createAnimatedStyle:t=>new Y5e(t),getComponentProps:({scrollTop:t,scrollLeft:e,...n})=>n}),Tet=J5e.animated;let gs;typeof window<"u"?gs=window:typeof self<"u"?gs=self:gs=global;let e4=null,t4=null;const X7=20,PA=gs.clearTimeout,Q7=gs.setTimeout,OA=gs.cancelAnimationFrame||gs.mozCancelAnimationFrame||gs.webkitCancelAnimationFrame,J7=gs.requestAnimationFrame||gs.mozRequestAnimationFrame||gs.webkitRequestAnimationFrame;OA==null||J7==null?(e4=PA,t4=function(e){return Q7(e,X7)}):(e4=function([e,n]){OA(e),PA(n)},t4=function(e){const n=J7(function(){PA(r),e()}),r=Q7(function(){OA(n),e()},X7);return[n,r]});function Z5e(t){let e,n,r,i,o,s,a;const l=typeof document<"u"&&document.attachEvent;if(!l){s=function(y){const b=y.__resizeTriggers__,v=b.firstElementChild,S=b.lastElementChild,I=v.firstElementChild;S.scrollLeft=S.scrollWidth,S.scrollTop=S.scrollHeight,I.style.width=v.offsetWidth+1+"px",I.style.height=v.offsetHeight+1+"px",v.
4535scrollLeft=v.scrollWidth,v.scrollTop=v.scrollHeight},o=function(y){return y.offsetWidth!==y.__resizeLast__.width||y.offsetHeight!==y.__resizeLast__.height},a=function(y){if(y.target.className&&typeof y.target.className.indexOf=="function"&&y.target.className.indexOf("contract-trigger")<0&&y.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&e4(this.__resizeRAF__),this.__resizeRAF__=t4(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(I){I.call(b,y)}))})};let f=!1,h="";r="animationstart";const p="Webkit Moz O ms".split(" ");let m="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),g="";{const y=document.createElement("fakeelement");if(y.style.animationName!==void 0&&(f=!0),f===!1){for(let b=0;b<p.length;b++)if(y.style[p[b]+"AnimationName"]!==void 0){g=p[b],h="-"+g.toLowerCase()+"-",r=m[b],f=!0;break}}}n="resizeanim",e="@"+h+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",i=h+"animation: 1ms "+n+"; "}const c=function(f){if(!f.getElementById("detectElementResize")){const h=(e||"")+".resize-triggers { "+(i||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',p=f.head||f.getElementsByTagName("head")[0],m=f.createElement("style");m.id="detectElementResize",m.type="text/css",t!=null&&m.setAttribute("nonce",t),m.styleSheet?m.styleSheet.cssText=h:m.appendChild(f.createTextNode(h)),p.appendChild(m)}};return{addResizeListener:function(f,h){if(l)f.attachEvent("onresize",h);else{if(!f.__resizeTriggers__){const p=f.ownerDocument,m=gs.getComputedStyle(f);m&&m.position==="static"&&(f.style.position="relative"),c(p),f.__resizeLast__={},f.__resizeListeners__=[],(f.__resizeTriggers__=p.createElement("div")).className="resize-triggers";const g=p.createElement("div");g.className="expand-trigger",g.appendChild(p.createElement("div"));const y=p.createElement("div");y.className="contract-trigger",f.__resizeTriggers__.appendChild(g),f.__resizeTriggers__.appendChild(y),f.appendChild(f.__resizeTriggers__),s(f),f.addEventListener("scroll",a,!0),r&&(f.__resizeTriggers__.__animationListener__=function(v){v.animationName===n&&s(f)},f.__resizeTriggers__.addEventListener(r,f.__resizeTriggers__.__animationListener__))}f.__resizeListeners__.push(h)}},removeResizeListener:function(f,h){if(l)f.detachEvent("onresize",h);else if(f.__resizeListeners__.splice(f.__resizeListeners__.indexOf(h),1),!f.__resizeListeners__.length){f.removeEventListener("scroll",a,!0),f.__resizeTriggers__.__animationListener__&&(f.__resizeTriggers__.removeEventListener(r,f.__resizeTriggers__.__animationListener__),f.__resizeTriggers__.__animationListener__=null);try{f.__resizeTriggers__=!f.removeChild(f.__resizeTriggers__)}catch{}}}}}class Cet extends E.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){const o=window.getComputedStyle(this._parentNode)||{},s=parseFloat(o.paddingLeft||"0"),a=parseFloat(o.paddingRight||"0"),l=parseFloat(o.paddingTop||"0"),c=parseFloat(o.paddingBottom||"0"),u=this._parentNode.getBoundingClientRect(),d=u.height-l-c,f=u.width-s-a;if(!n&&this.state.height!==d||!r&&this.state.width!==f){this.setState({height:d,width:f});const h=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof i=="function"&&i({height:d,width:f,get scaledHeight(){return h(),d},get scaledWidth(){return h(),f}})}}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:e}=this.props,n=this._autoSizer?this._autoSizer.parentNode:null;if(n!=null&&n.ownerDocument&&n.ownerDocument.defaultView&&n instanceof n.ownerDocument.defaultView.HTMLElement){this._parentNode=n;const r=n.ownerDocument.defaultView.ResizeObserver;r!=null?(this._resizeObserver=new r(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(n)):(this._detectElementResize=Z5e(e),this._detectElementResize.addResizeListener(n,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:s=!1,nonce:a,onResize:l,style:c={},tagName:u="div",...d}=this.props,{height:f,width:h}=this.state,p={overflow:"visible"},m={};let g=!1;
vendor: 4,560 bytes, line 4535
4535return i||(f===0&&(g=!0),p.height=0,m.height=f,m.scaledHeight=f),o||(h===0&&(g=!0),p.width=0,m.width=h,m.scaledWidth=h),s&&(g=!1),E.createElement(u,{ref:this._setRef,style:{...p,...c},...d},!g&&e(m))}}function HT(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function ZP(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xg(){}var Hf=.7,Om=1/Hf,jp="\\s*([+-]?\\d+)\\s*",D0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Da="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eRe=/^#([0-9a-f]{3,8})$/,tRe=new RegExp(`^rgb\\(${jp},${jp},${jp}\\)$`),nRe=new RegExp(`^rgb\\(${Da},${Da},${Da}\\)$`),rRe=new RegExp(`^rgba\\(${jp},${jp},${jp},${D0}\\)$`),iRe=new RegExp(`^rgba\\(${Da},${Da},${Da},${D0}\\)$`),oRe=new RegExp(`^hsl\\(${D0},${Da},${Da}\\)$`),sRe=new RegExp(`^hsla\\(${D0},${Da},${Da},${D0}\\)$`),Z7={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};HT(xg,Uf,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ez,formatHex:ez,formatHex8:aRe,formatHsl:lRe,formatRgb:tz,toString:tz});function ez(){return this.rgb().formatHex()}function aRe(){return this.rgb().formatHex8()}function lRe(){return PX(this).formatHsl()}function tz(){return this.rgb().formatRgb()}function Uf(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=eRe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?nz(e):n===3?new yi(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?s2(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?s2(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=tRe.exec(t))?new yi(e[1],e[2],e[3],1):(e=nRe.exec(t))?new yi(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=rRe.exec(t))?s2(e[1],e[2],e[3],e[4]):(e=iRe.exec(t))?s2(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=oRe.exec(t))?oz(e[1],e[2]/100,e[3]/100,1):(e=sRe.exec(t))?oz(e[1],e[2]/100,e[3]/100,e[4]):Z7.hasOwnProperty(t)?nz
vendor: 4,963 bytes, line 4535
4535(Z7[t]):t==="transparent"?new yi(NaN,NaN,NaN,0):null}function nz(t){return new yi(t>>16&255,t>>8&255,t&255,1)}function s2(t,e,n,r){return r<=0&&(t=e=n=NaN),new yi(t,e,n,r)}function kX(t){return t instanceof xg||(t=Uf(t)),t?(t=t.rgb(),new yi(t.r,t.g,t.b,t.opacity)):new yi}function YS(t,e,n,r){return arguments.length===1?kX(t):new yi(t,e,n,r??1)}function yi(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}HT(yi,YS,ZP(xg,{brighter(t){return t=t==null?Om:Math.pow(Om,t),new yi(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Hf:Math.pow(Hf,t),new yi(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new yi(mf(this.r),mf(this.g),mf(this.b),XS(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rz,formatHex:rz,formatHex8:cRe,formatRgb:iz,toString:iz}));function rz(){return`#${Zd(this.r)}${Zd(this.g)}${Zd(this.b)}`}function cRe(){return`#${Zd(this.r)}${Zd(this.g)}${Zd(this.b)}${Zd((isNaN(this.opacity)?1:this.opacity)*255)}`}function iz(){const t=XS(this.opacity);return`${t===1?"rgb(":"rgba("}${mf(this.r)}, ${mf(this.g)}, ${mf(this.b)}${t===1?")":`, ${t})`}`}function XS(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function mf(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Zd(t){return t=mf(t),(t<16?"0":"")+t.toString(16)}function oz(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new zs(t,e,n,r)}function PX(t){if(t instanceof zs)return new zs(t.h,t.s,t.l,t.opacity);if(t instanceof xg||(t=Uf(t)),!t)return new zs;if(t instanceof zs)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n<r)*6:n===o?s=(r-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new zs(s,a,l,t.opacity)}function uRe(t,e,n,r){return arguments.length===1?PX(t):new zs(t,e,n,r??1)}function zs(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}HT(zs,uRe,ZP(xg,{brighter(t){return t=t==null?Om:Math.pow(Om,t),new zs(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Hf:Math.pow(Hf,t),new zs(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yi(NA(t>=240?t-240:t+120,i,r),NA(t,i,r),NA(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new zs(sz(this.h),a2(this.s),a2(this.l),XS(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=XS(this.opacity);return`${t===1?"hsl(":"hsla("}${sz(this.h)}, ${a2(this.s)*100}%, ${a2(this.l)*100}%${t===1?")":`, ${t})`}`}}));function sz(t){return t=(t||0)%360,t<0?t+360:t}function a2(t){return Math.max(0,Math.min(1,t||0))}function NA(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const dRe=Math.PI/180,fRe=180/Math.PI;var OX=-.14861,eO=1.78277,tO=-.29227,UT=-.90649,L0=1.97294,az=L0*UT,lz=L0*eO,cz=eO*tO-UT*OX;function hRe(t){if(t instanceof gf)return new gf(t.h,t.s,t.l,t.opacity);t instanceof yi||(t=kX(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(cz*r+az*e-lz*n)/(cz+az-lz),o=r-i,s=(L0*(n-i)-tO*o)/UT,a=Math.sqrt(s*s+o*o)/(L0*i*(1-i)),l=a?Math.atan2(s,o)*fRe-120:NaN;return new gf(l<0?l+360:l,a,i,t.opacity)}function n4(t,e,n,r){return arguments.length===1?hRe(t):new gf(t,e,n,r??1)}function gf(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}HT(gf,n4,ZP(xg,{brighter(t){return t=t==null?Om:Math.pow(Om,t),new gf(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Hf:Math.pow(Hf,t),new gf(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=isNaN(this.h)?0:(this.h+120)*dRe,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new yi(255*(e+n*(OX*r+eO*i)),255*(e+n*(tO*r+UT*i)),255*(e+n*(L0*r)),this.opacity)}}));function pRe(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}function mRe(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return pRe((n-r/e)*e,s,i,o,a)}}const qT=t=>()=>t;function NX(t,e){return function(n){return t+n*e}}function gRe(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function yRe(t,e){var n=e-t;return n?NX(t,n>180||n<-180?n-360*Math.round(n/360):n):qT(isNaN(t)?e:t)}function vRe(t){return(t=+t)==1?Hp:function(e,n){return n-e?gRe(e,n,t):qT(isNaN(e)?n:e)}}function Hp(t,e){var n=e-t;return n?NX(t,n):qT(isNaN(t)?e:t)}const QS=function t(e){var n=vRe(e);function r(i,o){var s=n((i=YS(i)).r,(o=YS(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),c=Hp(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=t,r}(1);function bRe(t){return function(e){var n=e.length,r=new Array(n),i=new Array(n),o=new Array(n),s,a;for(s=0;s<n;
vendor: 4,823 bytes, lines 4535-4539
4535++s)a=YS(e[s]),r[s]=a.r||0,i[s]=a.g||0,o[s]=a.b||0;return r=t(r),i=t(i),o=t(o),a.opacity=1,function(l){return a.r=r(l),a.g=i(l),a.b=o(l),a+""}}}var _et=bRe(mRe);function wRe(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,r=e.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=t[i]*(1-o)+e[i]*o;return r}}function SRe(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function xRe(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Cy(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<r;++s)o[s]=i[s](a);return o}}function ERe(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function ba(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function TRe(t,e){var n={},r={},i;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(i in e)i in t?n[i]=Cy(t[i],e[i]):r[i]=e[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var r4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,DA=new RegExp(r4.source,"g");function CRe(t){return function(){return t}}function _Re(t){return function(e){return t(e)+""}}function DX(t,e){var n=r4.lastIndex=DA.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=r4.exec(t))&&(i=DA.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:ba(r,i)})),n=DA.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?_Re(l[0].x):CRe(e):(e=l.length,function(c){for(var u=0,d;u<e;++u)a[(d=l[u]).i]=d.x(c);return a.join("")})}function Cy(t,e){var n=typeof e,r;return e==null||n==="boolean"?qT(e):(n==="number"?ba:n==="string"?(r=Uf(e))?(e=r,QS):DX:e instanceof Uf?QS:e instanceof Date?ERe:SRe(e)?wRe:Array.isArray(e)?xRe:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?TRe:ba)(t,e)}function Aet(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var uz=180/Math.PI,i4={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function LX(t,e,n,r,i,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(l=t*n+e*r)&&(n-=t*l,r-=e*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),t*r<e*n&&(t=-t,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*uz,skewX:Math.atan(l)*uz,scaleX:s,scaleY:a}}var l2;function ARe(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?i4:LX(e.a,e.b,e.c,e.d,e.e,e.f)}function IRe(t){return t==null||(l2||(l2=document.createElementNS("http://www.w3.org/2000/svg","g")),l2.setAttribute("transform",t),!(t=l2.transform.baseVal.consolidate()))?i4:(t=t.matrix,LX(t.a,t.b,t.c,t.d,t.e,t.f))}function zX(t,e,n,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,d,f,h,p){if(c!==d||u!==f){var m=h.push("translate(",null,e,null,n);p.push({i:m-4,x:ba(c,d)},{i:m-2,x:ba(u,f)})}else(d||f)&&h.push("translate("+d+e+f+n)}function s(c,u,d,f){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:ba(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function a(c,u,d,f){c!==u?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:ba(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,f,h,p){if(c!==d||u!==f){var m=h.push(i(h)+"scale(",null,",",null,")");p.push({i:m-4,x:ba(c,d)},{i:m-2,x:ba(u,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(c,u){var d=[],f=[];return c=t(c),u=t(u),o(c.translateX,c.translateY,u.translateX,u.translateY,d,f),s(c.rotate,u.rotate,d,f),a(c.skewX,u.skewX,d,f),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,f),c=u=null,function(h){for(var p=-1,m=f.length,g;++p<m;)d[(g=f[p]).i]=g.x(h);return d.join("")}}}var RRe=zX(ARe,"px, ","px)","deg)"),MRe=zX(IRe,", ",")",")"),kRe=1e-12;function dz(t){return((t=Math.exp(t))+1/t)/2}function PRe(t){return((t=Math.exp(t))-1/t)/2}function ORe(t){return((t=Math.exp(2*t))-1)/(t+1)}const yw=function t(e,n,r){function i(o,s){var a=o[0],l=o[1],c=o[2],u=s[0],d=s[1],f=s[2],h=u-a,p=d-l,m=h*h+p*p,g,y;if(m<kRe)y=Math.log(f/c)/e,g=function(T){return[a+T*h,l+T*p,c*Math.exp(e*T*y)]};else{var b=Math.sqrt(m),v=(f*f-c*c+r*m)/(2*c*n*b),S=(f*f-c*c-r*m)/(2*f*n*b),I=Math.log(Math.sqrt(v*v+1)-v),O=Math.log(Math.sqrt(S*S+1)-S);y=(O-I)/e,g=function(T){var A=T*y,R=dz(I),k=c/(n*b)*(R*ORe(e*A+I)-PRe(I));return[a+k*h,l+k*p,c*R/dz(e*A+I)]}}return g.duration=y*1e3*e/Math.SQRT2,g}return i.rho=function(o){var s=Math.max(.001,+o),a=s*s,l=a*a;return t(s,a,l)},i}(Math.SQRT2,2,4);function VX(t){return function e(n){n=+n;function r(i,o){var s=t((i=n4(i)).h,(o=n4(o)).h),a=Hp(i.s,o.s),l=Hp(i.l,o.l),c=Hp(i.opacity,o.opacity);return function(u){return i.h=s(u),i.s=a(u),i.l=l(Math.pow(u,n)),i.opacity=c(u),i+""}}return r.gamma=e,r}(1)}VX(yRe);var Iet=VX(Hp);/** 4536 * @license 4537 * Copyright 2017 Google LLC 4538 * 4539 * Licensed under the Apache License, Version 2.0 (the "License");
4540 * you may not use this file except in compliance with the License. 4541 * You may obtain a copy of the License at 4542 * 4543 * http://www.apache.org/licenses/LICENSE-2.0 4544 * 4545 * Unless required by applicable law or agreed to in writing, software 4546 * distributed under the License is distributed on an "AS IS" BASIS, 4547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4548 * See the License for the specific language governing permissions and 4549 * limitations under the License. 4550 */const BX="firebasestorage.googleapis.com",$X="storageBucket",NRe=2*60*1e3,DRe=10*60*1e3;/** 4551 * @license 4552 * Copyright 2017 Google LLC 4553 * 4554 * Licensed under the Apache License, Version 2.0 (the "License"); 4555 * you may not use this file except in compliance with the License. 4556 * You may obtain a copy of the License at 4557 * 4558 * http://www.apache.org/licenses/LICENSE-2.0 4559 * 4560 * Unless required by applicable law or agreed to in writing, software 4561 * distributed under the License is distributed on an "AS IS" BASIS, 4562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4563 * See the License for the specific language governing permissions and 4564 * limitations under the License. 4565 */class ur extends ea{constructor(e,n,r=0){super(LA(e),`Firebase Storage: ${n} (${LA(e)})`),this.status_=r,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,ur.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return LA(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 4566${this.customData.serverResponse}`:this.message=this._baseMessage}}var lr;(function(t){t.UNKNOWN="unknown",t.OBJECT_NOT_FOUND="object-not-found",t.BUCKET_NOT_FOUND="bucket-not-found",t.PROJECT_NOT_FOUND="project-not-found",t.QUOTA_EXCEEDED="quota-exceeded",t.UNAUTHENTICATED="unauthenticated",t.UNAUTHORIZED="unauthorized",t.UNAUTHORIZED_APP="unauthorized-app",t.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",t.INVALID_CHECKSUM="invalid-checksum",t.CANCELED="canceled",t.INVALID_EVENT_NAME="invalid-event-name",t.INVALID_URL="invalid-url",t.INVALID_DEFAULT_BUCKET="invalid-default-bucket",t.NO_DEFAULT_BUCKET="no-default-bucket",t.CANNOT_SLICE_BLOB="cannot-slice-blob",t.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",t.NO_DOWNLOAD_URL="no-download-url",t.INVALID_ARGUMENT="invalid-argument",t.INVALID_ARGUMENT_COUNT="invalid-argument-count",t.APP_DELETED="app-deleted",t.INVALID_ROOT_OPERATION="invalid-root-operation",t.INVALID_FORMAT="invalid-format",t.INTERNAL_ERROR="internal-error",t.UNSUPPORTED_ENVIRONMENT="unsupported-environment"})(lr||(lr={}));function LA(t){return"storage/"+t}function nO(){const t="An unknown error occurred, please check the error payload for server response.";return new ur(lr.UNKNOWN,t)}function LRe(t){return new ur(lr.OBJECT_NOT_FOUND,"Object '"+t+"' does not exist.")}function zRe(t){return new ur(lr.QUOTA_EXCEEDED,"Quota for bucket '"+t+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function VRe(){const t="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new ur(lr.UNAUTHENTICATED,t)}function BRe(){return new ur(lr.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function $Re(t){return new ur(lr.UNAUTHORIZED,"User does not have permission to access '"+t+"'.")}function FRe(){return new ur(lr.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function jRe(){return new ur(lr.CANCELED,"User canceled the upload/download.")}function HRe(t){return new ur(lr.INVALID_URL,"Invalid URL '"+t+"'.")}function URe(t){return new ur(lr.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+t+"'.")}function qRe(){return new ur(lr.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+$X+"' property when initializing the app?")}function WRe(){return new ur(lr.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function GRe(){return new ur(lr.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function KRe(t){return new ur(lr.UNSUPPORTED_ENVIRONMENT,`${t} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function o4(t){return new ur(lr.INVALID_ARGUMENT,t)}function FX(){return new ur(lr.APP_DELETED,"The Firebase app was deleted.")}function YRe(t){return new ur(lr.INVALID_ROOT_OPERATION,"The operation '"+t+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function _y(t,e){return new ur(lr.INVALID_FORMAT,"String does not match format '"+t+"': "+e)}function o1(t){throw new ur(lr.INTERNAL_ERROR,"Internal error: "+t)}/** 4567 * @license 4568 * Copyright 2017 Google LLC 4569 * 4570 * Licensed under the Apache License, Version 2.0 (the "License");
4571 * you may not use this file except in compliance with the License. 4572 * You may obtain a copy of the License at 4573 * 4574 * http://www.apache.org/licenses/LICENSE-2.0 4575 * 4576 * Unless required by applicable law or agreed to in writing, software 4577 * distributed under the License is distributed on an "AS IS" BASIS, 4578 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4579 * See the License for the specific language governing permissions and 4580 * limitations under the License. 4581 */class ki{constructor(e,n){this.bucket=e,this.path_=n}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){const e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,n){let r;try{r=ki.makeFromUrl(e,n)}catch{return new ki(e,"")}if(r.path==="")return r;throw URe(e)}static makeFromUrl(e,n){let r=null;const i="([A-Za-z0-9.\\-_]+)";function o(S){S.path.charAt(S.path.length-1)==="/"&&(S.path_=S.path_.slice(0,-1))}const s="(/(.*))?$",a=new RegExp("^gs://"+i+s,"i"),l={bucket:1,path:3};function c(S){S.path_=decodeURIComponent(S.path)}const u="v[A-Za-z0-9_]+",d=n.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",h=new RegExp(`^https?://${d}/${u}/b/${i}/o${f}`,"i"),p={bucket:1,path:3},m=n===BX?"(?:storage.googleapis.com|storage.cloud.google.com)":n,g="([^?#]*)",y=new RegExp(`^https?://${m}/${i}/${g}`,"i"),v=[{regex:a,indices:l,postModify:o},{regex:h,indices:p,postModify:c},{regex:y,indices:{bucket:1,path:2},postModify:c}];for(let S=0;S<v.length;S++){const I=v[S],O=I.regex.exec(e);if(O){const T=O[I.indices.bucket];let A=O[I.indices.path];A||(A=""),r=new ki(T,A),I.postModify(r);break}}if(r==null)throw HRe(e);return r}}class XRe{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}}/** 4582 * @license 4583 * Copyright 2017 Google LLC 4584 * 4585 * Licensed under the Apache License, Version 2.0 (the "License"); 4586 * you may not use this file except in compliance with the License. 4587 * You may obtain a copy of the License at 4588 * 4589 * http://www.apache.org/licenses/LICENSE-2.0 4590 * 4591 * Unless required by applicable law or agreed to in writing, software 4592 * distributed under the License is distributed on an "AS IS" BASIS, 4593 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4594 * See the License for the specific language governing permissions and 4595 * limitations under the License. 4596 */function QRe(t,e,n){let r=1,i=null,o=null,s=!1,a=0;function l(){return a===2}let c=!1;function u(...g){c||(c=!0,e.apply(null,g))}function d(g){i=setTimeout(()=>{i=null,t(h,l())},g)}function f(){o&&clearTimeout(o)}function h(g,...y){if(c){f();return}if(g){f(),u.call(null,g,...y);return}if(l()||s){f(),u.call(null,g,...y);return}r<64&&(r*=2);let v;a===1?(a=2,v=0):v=(r+Math.random())*1e3,d(v)}let p=!1;function m(g){p||(p=!0,f(),!c&&(i!==null?(g||(a=2),clearTimeout(i),d(0)):g||(a=1)))}return d(0),o=setTimeout(()=>{s=!0,m(!0)},n),m}function JRe(t){t(!1)}/** 4597 * @license 4598 * Copyright 2017 Google LLC 4599 * 4600 * Licensed under the Apache License, Version 2.0 (the "License"); 4601 * you may not use this file except in compliance with the License. 4602 * You may obtain a copy of the License at 4603 * 4604 * http://www.apache.org/licenses/LICENSE-2.0 4605 * 4606 * Unless required by applicable law or agreed to in writing, software 4607 * distributed under the License is distributed on an "AS IS" BASIS, 4608 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4609 * See the License for the specific language governing permissions and 4610 * limitations under the License. 4611 */function ZRe(t){return t!==void 0}function e4e(t){return typeof t=="object"&&!Array.isArray(t)}function rO(t){return typeof t=="string"||t instanceof String}function fz(t){return iO()&&t instanceof Blob}function iO(){return typeof Blob<"u"}function s4(t,e,n,r){if(r<e)throw o4(`Invalid value for '${t}'. Expected ${e} or greater.`);if(r>n)throw o4(`Invalid value for '${t}'. Expected ${n} or less.`)}/** 4612 * @license 4613 * Copyright 2017 Google LLC 4614 * 4615 * Licensed under the Apache License, Version 2.0 (the "License");
4616 * you may not use this file except in compliance with the License. 4617 * You may obtain a copy of the License at 4618 * 4619 * http://www.apache.org/licenses/LICENSE-2.0 4620 * 4621 * Unless required by applicable law or agreed to in writing, software 4622 * distributed under the License is distributed on an "AS IS" BASIS, 4623 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4624 * See the License for the specific language governing permissions and 4625 * limitations under the License. 4626 */function Wv(t,e,n){let r=e;return n==null&&(r=`https://${e}`),`${n}://${r}/v0${t}`}function jX(t){const e=encodeURIComponent;let n="?";for(const r in t)if(t.hasOwnProperty(r)){const i=e(r)+"="+e(t[r]);n=n+i+"&"}return n=n.slice(0,-1),n}var yf;(function(t){t[t.NO_ERROR=0]="NO_ERROR",t[t.NETWORK_ERROR=1]="NETWORK_ERROR",t[t.ABORT=2]="ABORT"})(yf||(yf={}));/** 4627 * @license 4628 * Copyright 2022 Google LLC 4629 * 4630 * Licensed under the Apache License, Version 2.0 (the "License"); 4631 * you may not use this file except in compliance with the License. 4632 * You may obtain a copy of the License at 4633 * 4634 * http://www.apache.org/licenses/LICENSE-2.0 4635 * 4636 * Unless required by applicable law or agreed to in writing, software 4637 * distributed under the License is distributed on an "AS IS" BASIS, 4638 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4639 * See the License for the specific language governing permissions and 4640 * limitations under the License. 4641 */function t4e(t,e){const n=t>=500&&t<600,i=[408,429].indexOf(t)!==-1,o=e.indexOf(t)!==-1;return n||i||o}/** 4642 * @license 4643 * Copyright 2017 Google LLC 4644 * 4645 * Licensed under the Apache License, Version 2.0 (the "License"); 4646 * you may not use this file except in compliance with the License. 4647 * You may obtain a copy of the License at 4648 * 4649 * http://www.apache.org/licenses/LICENSE-2.0 4650 * 4651 * Unless required by applicable law or agreed to in writing, software 4652 * distributed under the License is distributed on an "AS IS" BASIS, 4653 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4654 * See the License for the specific language governing permissions and 4655 * limitations under the License. 4656 */class n4e{constructor(e,n,r,i,o,s,a,l,c,u,d,f=!0,h=!1){this.url_=e,this.method_=n,this.headers_=r,this.body_=i,this.successCodes_=o,this.additionalRetryCodes_=s,this.callback_=a,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.isUsingEmulator=h,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((p,m)=>{this.resolve_=p,this.reject_=m,this.start_()})}start_(){const e=(r,i)=>{if(i){r(!1,new c2(!1,null,!0));return}const o=this.connectionFactory_();this.pendingConnection_=o;const s=a=>{const l=a.loaded,c=a.lengthComputable?a.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&o.addUploadProgressListener(s),o.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&o.removeUploadProgressListener(s),this.pendingConnection_=null;const a=o.getErrorCode()===yf.NO_ERROR,l=o.getStatus();if(!a||t4e(l,this.additionalRetryCodes_)&&this.retry){const u=o.getErrorCode()===yf.ABORT;r(!1,new c2(!1,null,u));return}const c=this.successCodes_.indexOf(l)!==-1;r(!0,new c2(c,o))})},n=(r,i)=>{const o=this.resolve_,s=this.reject_,a=i.connection;if(i.wasSuccessCode)try{const l=this.callback_(a,a.getResponse());ZRe(l)?o(l):o()}catch(l){s(l)}else if(a!==null){const l=nO();l.serverResponse=a.getErrorText(),this.errorCallback_?s(this.errorCallback_(a,l)):s(l)}else if(i.canceled){const l=this.appDelete_?FX():jRe();s(l)}else{const l=FRe();s(l)}};this.canceled_?n(!1,new c2(!1,null,!0)):this.backoffId_=QRe(e,n,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&JRe(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}}class c2{constructor(e,n,r){this.wasSuccessCode=e,this.connection=n,this.canceled=!!r}}function r4e(t,e){e!==null&&e.length>0&&(t.Authorization="Firebase "+e)}function i4e(t,e){t["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function o4e(t,e){e&&(t["X-Firebase-GMPID"]=e)}function s4e(t,e){e!==null&&(t["X-Firebase-AppCheck"]=e)}
vendor: 10,142 bytes, lines 4656-4765
4656function a4e(t,e,n,r,i,o,s=!0,a=!1){const l=jX(t.urlParams),c=t.url+l,u=Object.assign({},t.headers);return o4e(u,e),r4e(u,n),i4e(u,o),s4e(u,r),new n4e(c,t.method,u,t.body,t.successCodes,t.additionalRetryCodes,t.handler,t.errorHandler,t.timeout,t.progressCallback,i,s,a)}/** 4657 * @license 4658 * Copyright 2017 Google LLC 4659 * 4660 * Licensed under the Apache License, Version 2.0 (the "License"); 4661 * you may not use this file except in compliance with the License. 4662 * You may obtain a copy of the License at 4663 * 4664 * http://www.apache.org/licenses/LICENSE-2.0 4665 * 4666 * Unless required by applicable law or agreed to in writing, software 4667 * distributed under the License is distributed on an "AS IS" BASIS, 4668 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4669 * See the License for the specific language governing permissions and 4670 * limitations under the License. 4671 */function l4e(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function c4e(...t){const e=l4e();if(e!==void 0){const n=new e;for(let r=0;r<t.length;r++)n.append(t[r]);return n.getBlob()}else{if(iO())return new Blob(t);throw new ur(lr.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function u4e(t,e,n){return t.webkitSlice?t.webkitSlice(e,n):t.mozSlice?t.mozSlice(e,n):t.slice?t.slice(e,n):null}/** 4672 * @license 4673 * Copyright 2021 Google LLC 4674 * 4675 * Licensed under the Apache License, Version 2.0 (the "License"); 4676 * you may not use this file except in compliance with the License. 4677 * You may obtain a copy of the License at 4678 * 4679 * http://www.apache.org/licenses/LICENSE-2.0 4680 * 4681 * Unless required by applicable law or agreed to in writing, software 4682 * distributed under the License is distributed on an "AS IS" BASIS, 4683 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4684 * See the License for the specific language governing permissions and 4685 * limitations under the License. 4686 */function d4e(t){if(typeof atob>"u")throw KRe("base-64");return atob(t)}/** 4687 * @license 4688 * Copyright 2017 Google LLC 4689 * 4690 * Licensed under the Apache License, Version 2.0 (the "License"); 4691 * you may not use this file except in compliance with the License. 4692 * You may obtain a copy of the License at 4693 * 4694 * http://www.apache.org/licenses/LICENSE-2.0 4695 * 4696 * Unless required by applicable law or agreed to in writing, software 4697 * distributed under the License is distributed on an "AS IS" BASIS, 4698 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4699 * See the License for the specific language governing permissions and 4700 * limitations under the License. 4701 */const $s={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};class zA{constructor(e,n){this.data=e,this.contentType=n||null}}function HX(t,e){switch(t){case $s.RAW:return new zA(UX(e));case $s.BASE64:case $s.BASE64URL:return new zA(qX(t,e));case $s.DATA_URL:return new zA(h4e(e),p4e(e))}throw nO()}function UX(t){const e=[];for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(r<=127)e.push(r);else if(r<=2047)e.push(192|r>>6,128|r&63);else if((r&64512)===55296)if(!(n<t.length-1&&(t.charCodeAt(n+1)&64512)===56320))e.push(239,191,189);else{const o=r,s=t.charCodeAt(++n);r=65536|(o&1023)<<10|s&1023,e.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|r&63)}else(r&64512)===56320?e.push(239,191,189):e.push(224|r>>12,128|r>>6&63,128|r&63)}return new Uint8Array(e)}function f4e(t){let e;try{e=decodeURIComponent(t)}catch{throw _y($s.DATA_URL,"Malformed data URL.")}return UX(e)}function qX(t,e){switch(t){case $s.BASE64:{const i=e.indexOf("-")!==-1,o=e.indexOf("_")!==-1;if(i||o)throw _y(t,"Invalid character '"+(i?"-":"_")+"' found: is it base64url encoded?");break}case $s.BASE64URL:{const i=e.indexOf("+")!==-1,o=e.indexOf("/")!==-1;if(i||o)throw _y(t,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/");break}}let n;try{n=d4e(e)}catch(i){throw i.message.includes("polyfill")?i:_y(t,"Invalid character found")}const r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}class WX{constructor(e){this.base64=!1,this.contentType=null;const n=e.match(/^data:([^,]+)?,/);if(n===null)throw _y($s.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");const r=n[1]||null;r!=null&&(this.base64=m4e(r,";base64"),this.contentType=this.base64?r.substring(0,r.length-7):r),this.rest=e.substring(e.indexOf(",")+1)}}function h4e(t){const e=new WX(t);return e.base64?qX($s.BASE64,e.rest):f4e(e.rest)}function p4e(t){return new WX(t).contentType}function m4e(t,e){return t.length>=e.length?t.substring(t.length-e.length)===e:!1}/** 4702 * @license 4703 * Copyright 2017 Google LLC 4704 * 4705 * Licensed under the Apache License, Version 2.0 (the "License"); 4706 * you may not use this file except in compliance with the License. 4707 * You may obtain a copy of the License at 4708 * 4709 * http://www.apache.org/licenses/LICENSE-2.0 4710 * 4711 * Unless required by applicable law or agreed to in writing, software 4712 * distributed under the License is distributed on an "AS IS" BASIS, 4713 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4714 * See the License for the specific language governing permissions and 4715 * limitations under the License. 4716 */class Hc{constructor(e,n){let r=0,i="";fz(e)?(this.data_=e,r=e.size,i=e.type):e instanceof ArrayBuffer?(n?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),r=this.data_.length):e instanceof Uint8Array&&(n?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),r=e.length),this.size_=r,this.type_=i}size(){return this.size_}type(){return this.type_}slice(e,n){if(fz(this.data_)){const r=this.data_,i=u4e(r,e,n);return i===null?null:new Hc(i)}else{const r=new Uint8Array(this.data_.buffer,e,n-e);return new Hc(r,!0)}}static getBlob(...e){if(iO()){const n=e.map(r=>r instanceof Hc?r.data_:r);return new Hc(c4e.apply(null,n))}else{const n=e.map(s=>rO(s)?HX($s.RAW,s).data:s.data_);let r=0;n.forEach(s=>{r+=s.byteLength});const i=new Uint8Array(r);let o=0;return n.forEach(s=>{for(let a=0;a<s.length;a++)i[o++]=s[a]}),new Hc(i,!0)}}uploadData(){return this.data_}}/** 4717 * @license 4718 * Copyright 2017 Google LLC 4719 * 4720 * Licensed under the Apache License, Version 2.0 (the "License"); 4721 * you may not use this file except in compliance with the License. 4722 * You may obtain a copy of the License at 4723 * 4724 * http://www.apache.org/licenses/LICENSE-2.0 4725 * 4726 * Unless required by applicable law or agreed to in writing, software 4727 * distributed under the License is distributed on an "AS IS" BASIS, 4728 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4729 * See the License for the specific language governing permissions and 4730 * limitations under the License. 4731 */function oO(t){let e;try{e=JSON.parse(t)}catch{return null}return e4e(e)?e:null}/** 4732 * @license 4733 * Copyright 2017 Google LLC 4734 * 4735 * Licensed under the Apache License, Version 2.0 (the "License"); 4736 * you may not use this file except in compliance with the License. 4737 * You may obtain a copy of the License at 4738 * 4739 * http://www.apache.org/licenses/LICENSE-2.0 4740 * 4741 * Unless required by applicable law or agreed to in writing, software 4742 * distributed under the License is distributed on an "AS IS" BASIS, 4743 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4744 * See the License for the specific language governing permissions and 4745 * limitations under the License. 4746 */function g4e(t){if(t.length===0)return null;const e=t.lastIndexOf("/");return e===-1?"":t.slice(0,e)}function y4e(t,e){const n=e.split("/").filter(r=>r.length>0).join("/");return t.length===0?n:t+"/"+n}function GX(t){const e=t.lastIndexOf("/",t.length-2);return e===-1?t:t.slice(e+1)}/** 4747 * @license 4748 * Copyright 2017 Google LLC 4749 * 4750 * Licensed under the Apache License, Version 2.0 (the "License"); 4751 * you may not use this file except in compliance with the License. 4752 * You may obtain a copy of the License at 4753 * 4754 * http://www.apache.org/licenses/LICENSE-2.0 4755 * 4756 * Unless required by applicable law or agreed to in writing, software 4757 * distributed under the License is distributed on an "AS IS" BASIS, 4758 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4759 * See the License for the specific language governing permissions and 4760 * limitations under the License. 4761 */function v4e(t,e){return e}let Ti=class{constructor(e,n,r,i){this.server=e,this.local=n||e,this.writable=!!r,this.xform=i||v4e}},u2=null;function b4e(t){return!rO(t)||t.length<2?t:GX(t)}function KX(){if(u2)return u2;const t=[];t.push(new Ti("bucket")),t.push(new Ti("generation")),t.push(new Ti("metageneration")),t.push(new Ti("name","fullPath",!0));function e(o,s){return b4e(s)}const n=new Ti("name");n.xform=e,t.push(n);function r(o,s){return s!==void 0?Number(s):s}const i=new Ti("size");return i.xform=r,t.push(i),t.push(new Ti("timeCreated")),t.push(new Ti("updated")),t.push(new Ti("md5Hash",null,!0)),t.push(new Ti("cacheControl",null,!0)),t.push(new Ti("contentDisposition",null,!0)),t.push(new Ti("contentEncoding",null,!0)),t.push(new Ti("contentLanguage",null,!0)),t.push(new Ti("contentType",null,!0)),t.push(new Ti("metadata","customMetadata",!0)),u2=t,u2}function w4e(t,e){function n(){const r=t.bucket,i=t.fullPath,o=new ki(r,i);return e._makeStorageReference(o)}Object.defineProperty(t,"ref",{get:n})}function S4e(t,e,n){const r={};r.type="file";const i=n.length;for(let o=0;o<i;o++){const s=n[o];r[s.local]=s.xform(r,e[s.server])}return w4e(r,t),r}function YX(t,e,n){const r=oO(e);return r===null?null:S4e(t,r,n)}function x4e(t,e,n,r){const i=oO(e);if(i===null||!rO(i.downloadTokens))return null;const o=i.downloadTokens;if(o.length===0)return null;const s=encodeURIComponent;return o.split(",").map(c=>{const u=t.bucket,d=t.fullPath,f="/b/"+s(u)+"/o/"+s(d),h=Wv(f,n,r),p=jX({alt:"media",token:c});return h+p})[0]}function E4e(t,e){const n={},r=e.length;for(let i=0;i<r;i++){const o=e[i];o.writable&&(n[o.server]=t[o.local])}return JSON.stringify(n)}/** 4762 * @license 4763 * Copyright 2019 Google LLC 4764 * 4765 * Licensed under the Apache License, Version 2.0 (the "License");
4766 * you may not use this file except in compliance with the License. 4767 * You may obtain a copy of the License at 4768 * 4769 * http://www.apache.org/licenses/LICENSE-2.0 4770 * 4771 * Unless required by applicable law or agreed to in writing, software 4772 * distributed under the License is distributed on an "AS IS" BASIS, 4773 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4774 * See the License for the specific language governing permissions and 4775 * limitations under the License. 4776 */const hz="prefixes",pz="items";function T4e(t,e,n){const r={prefixes:[],items:[],nextPageToken:n.nextPageToken};if(n[hz])for(const i of n[hz]){const o=i.replace(/\/$/,""),s=t._makeStorageReference(new ki(e,o));r.prefixes.push(s)}if(n[pz])for(const i of n[pz]){const o=t._makeStorageReference(new ki(e,i.name));r.items.push(o)}return r}function C4e(t,e,n){const r=oO(n);return r===null?null:T4e(t,e,r)}class WT{constructor(e,n,r,i){this.url=e,this.method=n,this.handler=r,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}/** 4777 * @license 4778 * Copyright 2017 Google LLC 4779 * 4780 * Licensed under the Apache License, Version 2.0 (the "License"); 4781 * you may not use this file except in compliance with the License. 4782 * You may obtain a copy of the License at 4783 * 4784 * http://www.apache.org/licenses/LICENSE-2.0 4785 * 4786 * Unless required by applicable law or agreed to in writing, software 4787 * distributed under the License is distributed on an "AS IS" BASIS, 4788 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4789 * See the License for the specific language governing permissions and 4790 * limitations under the License. 4791 */function sO(t){if(!t)throw nO()}function _4e(t,e){function n(r,i){const o=YX(t,i,e);return sO(o!==null),o}return n}function A4e(t,e){function n(r,i){const o=C4e(t,e,i);return sO(o!==null),o}return n}function I4e(t,e){function n(r,i){const o=YX(t,i,e);return sO(o!==null),x4e(o,i,t.host,t._protocol)}return n}function aO(t){function e(n,r){let i;return n.getStatus()===401?n.getErrorText().includes("Firebase App Check token is invalid")?i=BRe():i=VRe():n.getStatus()===402?i=zRe(t.bucket):n.getStatus()===403?i=$Re(t.path):i=r,i.status=n.getStatus(),i.serverResponse=r.serverResponse,i}return e}function XX(t){const e=aO(t);function n(r,i){let o=e(r,i);return r.getStatus()===404&&(o=LRe(t.path)),o.serverResponse=i.serverResponse,o}return n}function R4e(t,e,n,r,i){const o={};e.isRoot?o.prefix="":o.prefix=e.path+"/",n.length>0&&(o.delimiter=n),r&&(o.pageToken=r),i&&(o.maxResults=i);const s=e.bucketOnlyServerUrl(),a=Wv(s,t.host,t._protocol),l="GET",c=t.maxOperationRetryTime,u=new WT(a,l,A4e(t,e.bucket),c);return u.urlParams=o,u.errorHandler=aO(e),u}function M4e(t,e,n){const r=e.fullServerUrl(),i=Wv(r,t.host,t._protocol),o="GET",s=t.maxOperationRetryTime,a=new WT(i,o,I4e(t,n),s);return a.errorHandler=XX(e),a}function k4e(t,e){const n=e.fullServerUrl(),r=Wv(n,t.host,t._protocol),i="DELETE",o=t.maxOperationRetryTime;function s(l,c){}const a=new WT(r,i,s,o);return a.successCodes=[200,204],a.errorHandler=XX(e),a}function P4e(t,e){return t&&t.contentType||e&&e.type()||"application/octet-stream"}function O4e(t,e,n){const r=Object.assign({},n);return r.fullPath=t.path,r.size=e.size(),r.contentType||(r.contentType=P4e(null,e)),r}function N4e(t,e,n,r,i){const o=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"};function a(){let v="";for(let S=0;S<2;S++)v=v+Math.random().toString().slice(2);return v}const l=a();s["Content-Type"]="multipart/related; boundary="+l;const c=O4e(e,r,i),u=E4e(c,n),d="--"+l+`\r 4792Content-Type: application/json; charset=utf-8\r 4793\r 4794`+u+`\r 4795--`+l+`\r 4796Content-Type: `+c.contentType+`\r 4797\r 4798`,f=`\r 4799--`+l+"--",h=Hc.getBlob(d,r,f);if(h===null)throw WRe();const p={name:c.fullPath},m=Wv(o,t.host,t._protocol),g="POST",y=t.maxUploadRetryTime,b=new WT(m,g,_4e(t,n),y);return b.urlParams=p,b.headers=s,b.body=h.uploadData(),b.errorHandler=aO(e),b}class D4e{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=yf.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=yf.ABORT,e()}),this.xhr_.addEventListener("error",()=>
4799{this.errorCode_=yf.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,n,r,i,o){if(this.sent_)throw o1("cannot .send() more than once");if(Zs(e)&&r&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(n,e,!0),o!==void 0)for(const s in o)o.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,o[s].toString());return i!==void 0?this.xhr_.send(i):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw o1("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw o1("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw o1("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw o1("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}}class L4e extends D4e{initXhr(){this.xhr_.responseType="text"}}function GT(){return new L4e}/** 4800 * @license 4801 * Copyright 2019 Google LLC 4802 * 4803 * Licensed under the Apache License, Version 2.0 (the "License"); 4804 * you may not use this file except in compliance with the License. 4805 * You may obtain a copy of the License at 4806 * 4807 * http://www.apache.org/licenses/LICENSE-2.0 4808 * 4809 * Unless required by applicable law or agreed to in writing, software 4810 * distributed under the License is distributed on an "AS IS" BASIS, 4811 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4812 * See the License for the specific language governing permissions and 4813 * limitations under the License. 4814 */class qf{constructor(e,n){this._service=e,n instanceof ki?this._location=n:this._location=ki.makeFromUrl(n,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,n){return new qf(e,n)}get root(){const e=new ki(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return GX(this._location.path)}get storage(){return this._service}get parent(){const e=g4e(this._location.path);if(e===null)return null;const n=new ki(this._location.bucket,e);return new qf(this._service,n)}_throwIfRoot(e){if(this._location.path==="")throw YRe(e)}}function QX(t,e,n){t._throwIfRoot("uploadBytes");const r=N4e(t.storage,t._location,KX(),new Hc(e,!0),n);return t.storage.makeRequestWithTokens(r,GT).then(i=>({metadata:i,ref:t}))}function z4e(t,e,n=$s.RAW,r){t._throwIfRoot("uploadString");const i=HX(n,e),o={...r};return o.contentType==null&&i.contentType!=null&&(o.contentType=i.contentType),QX(t,i.data,o)}function V4e(t){const e={prefixes:[],items:[]};return JX(t,e).then(()=>e)}async function JX(t,e,n){const i=await B4e(t,{pageToken:n});e.prefixes.push(...i.prefixes),e.items.push(...i.items),i.nextPageToken!=null&&await JX(t,e,i.nextPageToken)}function B4e(t,e){e!=null&&typeof e.maxResults=="number"&&s4("options.maxResults",1,1e3,e.maxResults);const n=e||{},r=R4e(t.storage,t._location,"/",n.pageToken,n.maxResults);return t.storage.makeRequestWithTokens(r,GT)}function $4e(t){t._throwIfRoot("getDownloadURL");const e=M4e(t.storage,t._location,KX());return t.storage.makeRequestWithTokens(e,GT).then(n=>{if(n===null)throw GRe();return n})}function F4e(t){t._throwIfRoot("deleteObject");const e=k4e(t.storage,t._location);return t.storage.makeRequestWithTokens(e,GT)}function j4e(t,e){const n=y4e(t._location.path,e),r=new ki(t._location.bucket,n);return new qf(t.storage,r)}/** 4815 * @license 4816 * Copyright 2017 Google LLC 4817 * 4818 * Licensed under the Apache License, Version 2.0 (the "License"); 4819 * you may not use this file except in compliance with the License. 4820 * You may obtain a copy of the License at 4821 * 4822 * http://www.apache.org/licenses/LICENSE-2.0 4823 * 4824 * Unless required by applicable law or agreed to in writing, software 4825 * distributed under the License is distributed on an "AS IS" BASIS, 4826 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4827 * See the License for the specific language governing permissions and 4828 * limitations under the License. 4829 */function H4e(t){return/^[A-Za-z]+:\/\//.test(t)}function U4e(t,e){return new qf(t,e)}function ZX(t,e){if(t instanceof lO){const n=t;if(n._bucket==null)throw qRe();const r=new qf(n,n._bucket);return e!=null?ZX(r,e):r}else return e!==void 0?j4e(t,e):t}function q4e(t,e){if(e&&H4e(e)){if(t instanceof lO)return U4e(t,e);throw o4("To use ref(service, url), the first argument must be a Storage instance.")}else return ZX(t,e)}function mz(t,e){const n=e==null?void 0:e[$X];return n==null?null:ki.makeFromBucketSpec(n,t)}function W4e(t,e,n,r={}){t.host=`${e}:${n}`;const i=Zs(e);i&&(mv(`https://${t.host}/b`),rE("Storage",!0)),t._isUsingEmulator=!0,t._protocol=i?"https":"http";const{mockUserToken:o}=r;
4829o&&(t._overrideAuthToken=typeof o=="string"?o:SU(o,t.app.options.projectId))}class lO{constructor(e,n,r,i,o,s=!1){this.app=e,this._authProvider=n,this._appCheckProvider=r,this._url=i,this._firebaseVersion=o,this._isUsingEmulator=s,this._bucket=null,this._host=BX,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=NRe,this._maxUploadRetryTime=DRe,this._requests=new Set,i!=null?this._bucket=ki.makeFromBucketSpec(i,this._host):this._bucket=mz(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=ki.makeFromBucketSpec(this._url,e):this._bucket=mz(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){s4("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){s4("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}async _getAuthToken(){if(this._overrideAuthToken)return this._overrideAuthToken;const e=this._authProvider.getImmediate({optional:!0});if(e){const n=await e.getToken();if(n!==null)return n.accessToken}return null}async _getAppCheckToken(){if(On(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const e=this._appCheckProvider.getImmediate({optional:!0});return e?(await e.getToken()).token:null}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new qf(this,e)}_makeRequest(e,n,r,i,o=!0){if(this._deleted)return new XRe(FX());{const s=a4e(e,this._appId,r,i,n,this._firebaseVersion,o,this._isUsingEmulator);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}async makeRequestWithTokens(e,n){const[r,i]=await Promise.all([this._getAuthToken(),this._getAppCheckToken()]);return this._makeRequest(e,n,r,i).getPromise()}}const gz="@firebase/storage",yz="0.14.1";/** 4830 * @license 4831 * Copyright 2020 Google LLC 4832 * 4833 * Licensed under the Apache License, Version 2.0 (the "License"); 4834 * you may not use this file except in compliance with the License. 4835 * You may obtain a copy of the License at 4836 * 4837 * http://www.apache.org/licenses/LICENSE-2.0 4838 * 4839 * Unless required by applicable law or agreed to in writing, software 4840 * distributed under the License is distributed on an "AS IS" BASIS, 4841 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4842 * See the License for the specific language governing permissions and 4843 * limitations under the License. 4844 */const eQ="storage";function Met(t,e,n){return t=Ze(t),QX(t,e,n)}function ket(t,e,n,r){return t=Ze(t),z4e(t,e,n,r)}function Pet(t){return t=Ze(t),V4e(t)}function Oet(t){return t=Ze(t),$4e(t)}function Net(t){return t=Ze(t),F4e(t)}function Det(t,e){return t=Ze(t),q4e(t,e)}function Let(t=wM(),e){t=Ze(t);const r=yv(t,eQ).getImmediate({identifier:e}),i=vU("storage");return i&&G4e(r,...i),r}function G4e(t,e,n,r={}){W4e(t,e,n,r)}function K4e(t,{instanceIdentifier:e}){const n=t.getProvider("app").getImmediate(),r=t.getProvider("auth-internal"),i=t.getProvider("app-check-internal");return new lO(n,r,i,e,dh)}function Y4e(){zu(new Xl(eQ,K4e,"PUBLIC").setMultipleInstances(!0)),fs(gz,yz,""),fs(gz,yz,"esm2020")}Y4e();/** 4845 * @license 4846 * Copyright 2017 Google LLC 4847 * 4848 * Licensed under the Apache License, Version 2.0 (the "License"); 4849 * you may not use this file except in compliance with the License. 4850 * You may obtain a copy of the License at 4851 * 4852 * http://www.apache.org/licenses/LICENSE-2.0 4853 * 4854 * Unless required by applicable law or agreed to in writing, software 4855 * distributed under the License is distributed on an "AS IS" BASIS, 4856 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4857 * See the License for the specific language governing permissions and 4858 * limitations under the License. 4859 */const X4e="type.googleapis.com/google.protobuf.Int64Value",Q4e="type.googleapis.com/google.protobuf.UInt64Value";function tQ(t,e){const n={};for(const r in t)t.hasOwnProperty(r)&&(n[r]=e(t[r]));return n}function JS(t){if(t==null)return null;if(t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&isFinite(t)||t===!0||t===!1||Object.prototype.toString.call(t)==="[object String]")return t;if(t instanceof Date)return t.toISOString();if(Array.isArray(t))return t.map(e=>JS(e));if(typeof t=="function"||typeof t=="object")return tQ(t,e=>JS(e));throw new Error("Data cannot be encoded in JSON: "+t)}function Nm(t){if(t==null)return t;if(t["@type"])switch(t["@type"]){case X4e:case Q4e:{const e=Number(t.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+t);return e}default:throw new Error("Data cannot be decoded from JSON: "+t)}return Array.isArray(t)?t.map(e=>Nm(e)):typeof t=="function"||typeof t=="object"?tQ(t,e=>Nm(e)):t}/** 4860 * @license 4861 * Copyright 2020 Google LLC 4862 * 4863 * Licensed under the Apache License, Version 2.0 (the "License");
4864 * you may not use this file except in compliance with the License. 4865 * You may obtain a copy of the License at 4866 * 4867 * http://www.apache.org/licenses/LICENSE-2.0 4868 * 4869 * Unless required by applicable law or agreed to in writing, software 4870 * distributed under the License is distributed on an "AS IS" BASIS, 4871 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4872 * See the License for the specific language governing permissions and 4873 * limitations under the License. 4874 */const cO="functions";/** 4875 * @license 4876 * Copyright 2017 Google LLC 4877 * 4878 * Licensed under the Apache License, Version 2.0 (the "License"); 4879 * you may not use this file except in compliance with the License. 4880 * You may obtain a copy of the License at 4881 * 4882 * http://www.apache.org/licenses/LICENSE-2.0 4883 * 4884 * Unless required by applicable law or agreed to in writing, software 4885 * distributed under the License is distributed on an "AS IS" BASIS, 4886 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4887 * See the License for the specific language governing permissions and 4888 * limitations under the License. 4889 */const vz={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Xi extends ea{constructor(e,n,r){super(`${cO}/${e}`,n||""),this.details=r,Object.setPrototypeOf(this,Xi.prototype)}}function J4e(t){if(t>=200&&t<300)return"ok";switch(t){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function ZS(t,e){let n=J4e(t),r=n,i;try{const o=e&&e.error;if(o){const s=o.status;if(typeof s=="string"){if(!vz[s])return new Xi("internal","internal");n=vz[s],r=s}const a=o.message;typeof a=="string"&&(r=a),i=o.details,i!==void 0&&(i=Nm(i))}}catch{}return n==="ok"?null:new Xi(n,r,i)}/** 4890 * @license 4891 * Copyright 2017 Google LLC 4892 * 4893 * Licensed under the Apache License, Version 2.0 (the "License"); 4894 * you may not use this file except in compliance with the License. 4895 * You may obtain a copy of the License at 4896 * 4897 * http://www.apache.org/licenses/LICENSE-2.0 4898 * 4899 * Unless required by applicable law or agreed to in writing, software 4900 * distributed under the License is distributed on an "AS IS" BASIS, 4901 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4902 * See the License for the specific language governing permissions and 4903 * limitations under the License. 4904 */let Z4e=class{constructor(e,n,r,i){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,On(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=n.getImmediate({optional:!0}),this.messaging=r.getImmediate({optional:!0}),this.auth||n.get().then(o=>this.auth=o,()=>{}),this.messaging||r.get().then(o=>this.messaging=o,()=>{}),this.appCheck||i==null||i.get().then(o=>this.appCheck=o,()=>{})}async getAuthToken(){if(this.auth)try{const e=await this.auth.getToken();return e==null?void 0:e.accessToken}catch{return}}async getMessagingToken(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return await this.messaging.getToken()}catch{return}}async getAppCheckToken(e){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){const n=e?await this.appCheck.getLimitedUseToken():await this.appCheck.getToken();return n.error?null:n.token}return null}async getContext(e){const n=await this.getAuthToken(),r=await this.getMessagingToken(),i=await this.getAppCheckToken(e);
4904return{authToken:n,messagingToken:r,appCheckToken:i}}};/** 4905 * @license 4906 * Copyright 2017 Google LLC 4907 * 4908 * Licensed under the Apache License, Version 2.0 (the "License"); 4909 * you may not use this file except in compliance with the License. 4910 * You may obtain a copy of the License at 4911 * 4912 * http://www.apache.org/licenses/LICENSE-2.0 4913 * 4914 * Unless required by applicable law or agreed to in writing, software 4915 * distributed under the License is distributed on an "AS IS" BASIS, 4916 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4917 * See the License for the specific language governing permissions and 4918 * limitations under the License. 4919 */const a4="us-central1",e3e=/^data: (.*?)(?:\n|$)/;function t3e(t){let e=null;return{promise:new Promise((n,r)=>{e=setTimeout(()=>{r(new Xi("deadline-exceeded","deadline-exceeded"))},t)}),cancel:()=>{e&&clearTimeout(e)}}}class n3e{constructor(e,n,r,i,o=a4,s=(...a)=>fetch(...a)){this.app=e,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new Z4e(e,n,r,i),this.cancelAllRequests=new Promise(a=>{this.deleteService=()=>Promise.resolve(a())});try{const a=new URL(o);this.customDomain=a.origin+(a.pathname==="/"?"":a.pathname),this.region=a4}catch{this.customDomain=null,this.region=o}}_delete(){return this.deleteService()}_url(e){const n=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${n}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${n}.cloudfunctions.net/${e}`}}function r3e(t,e,n){const r=Zs(e);t.emulatorOrigin=`http${r?"s":""}://${e}:${n}`,r&&(mv(t.emulatorOrigin+"/backends"),rE("Functions",!0))}function i3e(t,e,n){const r=i=>s3e(t,e,i,n||{});return r.stream=(i,o)=>l3e(t,e,i,o),r}function nQ(t){return t.emulatorOrigin&&Zs(t.emulatorOrigin)?"include":void 0}async function o3e(t,e,n,r,i){n["Content-Type"]="application/json";let o;try{o=await r(t,{method:"POST",body:JSON.stringify(e),headers:n,credentials:nQ(i)})}catch{return{status:0,json:null}}let s=null;try{s=await o.json()}catch{}return{status:o.status,json:s}}async function rQ(t,e){const n={},r=await t.contextProvider.getContext(e.limitedUseAppCheckTokens);return r.authToken&&(n.Authorization="Bearer "+r.authToken),r.messagingToken&&(n["Firebase-Instance-ID-Token"]=r.messagingToken),r.appCheckToken!==null&&(n["X-Firebase-AppCheck"]=r.appCheckToken),n}function s3e(t,e,n,r){const i=t._url(e);return a3e(t,i,n,r)}async function a3e(t,e,n,r){n=JS(n);const i={data:n},o=await rQ(t,r),s=r.timeout||7e4,a=t3e(s),l=await Promise.race([o3e(e,i,o,t.fetchImpl,t),a.promise,t.cancelAllRequests]);if(a.cancel(),!l)throw new Xi("cancelled","Firebase Functions instance was deleted.");const c=ZS(l.status,l.json);if(c)throw c;if(!l.json)throw new Xi("internal","Response is not valid JSON object.");let u=l.json.data;if(typeof u>"u"&&(u=l.json.result),typeof u>"u")throw new Xi("internal","Response is missing data field.");return{data:Nm(u)}}function l3e(t,e,n,r){const i=t._url(e);return c3e(t,i,n,r||{})}async function c3e(t,e,n,r){var f;n=JS(n);const i={data:n},o=await rQ(t,r);o["Content-Type"]="application/json",o.Accept="text/event-stream";let s;try{s=await t.fetchImpl(e,{method:"POST",body:JSON.stringify(i),headers:o,signal:r==null?void 0:r.signal,credentials:nQ(t)})}catch(h){if(h instanceof Error&&h.name==="AbortError"){const m=new Xi("cancelled","Request was cancelled.");return{data:Promise.reject(m),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(m)}}}}}}const p=ZS(0,null);return{data:Promise.reject(p),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(p)}}}}}}let a,l;const c=new Promise((h,p)=>{a=h,l=p});(f=r==null?void 0:r.signal)==null||f.addEventListener("abort",()=>{const h=new Xi("cancelled","Request was cancelled.");l(h)});const u=s.body.getReader(),d=u3e(u,a,l,r==null?void 0:r.signal);return{stream:{[Symbol.asyncIterator](){const h=d.getReader();return{async next(){const{value:p,done:m}=await h.read();return{value:p,done:m}},async return(){return await h.cancel(),{done:!0,value:void 0}}}}},data:c}}function u3e(t,e,n,r){const i=(s,a)=>{const l=s.match(e3e);if(!l)return;const c=l[1];try{const u=JSON.parse(c);if("result"in u){e(Nm(u.result));return}if("message"in u){a.enqueue(Nm(u.message));return}if("error"in u){const d=ZS(0,u);a.error(d),n(d);return}}catch(u){if(u instanceof Xi){a.error(u),n(u);return}}},o=new TextDecoder;return new ReadableStream({start(s){let a="";return l();async function l(){if(r!=null&&r.aborted){const c=new Xi("cancelled","Request was cancelled");return s.error(c),n(c),Promise.resolve()}try{const{value:c,done:u}=await t.read();if(u){a.trim()&&i(a.trim(),s),s.close();return}if(r!=null&&r.aborted){const f=new Xi("cancelled","Request was cancelled");s.error(f),n(f),await t.cancel();return}a+=o.decode(c,{stream:!0});const d=a.split(` 4920`);a=d.pop()||"";for(const f of d)f.trim()&&i(f.trim(),s);return l()}catch(c){const u=c instanceof Xi?c:ZS(0,null);s.error(u),n(u)}}},cancel(){return t.cancel()}})}const bz="@firebase/functions",wz="0.13.2";/** 4921 * @license 4922 * Copyright 2019 Google LLC 4923 * 4924 * Licensed under the Apache License, Version 2.0 (the "License");
4925 * you may not use this file except in compliance with the License. 4926 * You may obtain a copy of the License at 4927 * 4928 * http://www.apache.org/licenses/LICENSE-2.0 4929 * 4930 * Unless required by applicable law or agreed to in writing, software 4931 * distributed under the License is distributed on an "AS IS" BASIS, 4932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4933 * See the License for the specific language governing permissions and 4934 * limitations under the License. 4935 */const d3e="auth-internal",f3e="app-check-internal",h3e="messaging-internal";function p3e(t){const e=(n,{instanceIdentifier:r})=>{const i=n.getProvider("app").getImmediate(),o=n.getProvider(d3e),s=n.getProvider(h3e),a=n.getProvider(f3e);return new n3e(i,o,s,a,r)};zu(new Xl(cO,e,"PUBLIC").setMultipleInstances(!0)),fs(bz,wz,t),fs(bz,wz,"esm2020")}/** 4936 * @license 4937 * Copyright 2020 Google LLC 4938 * 4939 * Licensed under the Apache License, Version 2.0 (the "License"); 4940 * you may not use this file except in compliance with the License. 4941 * You may obtain a copy of the License at 4942 * 4943 * http://www.apache.org/licenses/LICENSE-2.0 4944 * 4945 * Unless required by applicable law or agreed to in writing, software 4946 * distributed under the License is distributed on an "AS IS" BASIS, 4947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 4948 * See the License for the specific language governing permissions and 4949 * limitations under the License. 4950 */function Vet(t=wM(),e=a4){const r=yv(Ze(t),cO).getImmediate({identifier:e}),i=vU("functions");return i&&m3e(r,...i),r}function m3e(t,e,n){r3e(Ze(t),e,n)}function Bet(t,e,n){return i3e(Ze(t),e,n)}p3e();const Sa={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_ENV:"production",VITE_FIREBASE_API_KEY:"AIzaSyCR2A5eJBYUAvV_fLSRcpLxNiki3iENcGc",VITE_FIREBASE_APP_ID:"1:748595691330:web:61ac67b96d705f62b092db",VITE_FIREBASE_AUTH_DOMAIN:"studio.writinghabit.app",VITE_FIREBASE_DATABASE_URL:"https://writinghabit-2459c.firebaseio.com",VITE_FIREBASE_MEASUREMENT_ID:"G-R8QQ9LG7QC",VITE_FIREBASE_MESSAGING_SENDER_ID:"748595691330",VITE_FIREBASE_PROJECT_ID:"writinghabit-2459c",VITE_FIREBASE_RECAPTCHA_SITE_KEY:"6LfVIyIhAAAAAMh7yyoX2NjnVzTwShMlge2irXnb",VITE_FIREBASE_STORAGE_BUCKET:"writinghabit-2459c.appspot.com",VITE_FIREBASE_VAPID_KEY:"BGIEcaEE0qlckZtty72OyWSPWaAaeswTNJ_9INpNdZzoMajIbPtRoM4frj_5akXwZ2QGuJisKRdr_rc2oNcWcFs",VITE_GOOGLE_DOCS_API_KEY:"AIzaSyA1r6X0sy4xsT_4axFxowPGwLvOBHGOrQs",VITE_GOOGLE_OAUTH_CLIENT_ID:"748595691330-pep9l133rhnqj0ln89l7pjdguoe05vrb.apps.googleusercontent.com",VITE_GOOGLE_OAUTH_CLIENT_SECRET:"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",VITE_POSTHOG_HOST:"https://s.writinghabit.app",VITE_POSTHOG_PROJECT_TOKEN:"phc_ydtbisWd5p8ZGNW8VhWrPoWDKQxEaKC9iTnJFuYJXhBi",VITE_STAGING_URL:"https://staging-studio.writinghabit.app"};function iQ(t){return"init"in t}function l4(t){return!!t.write}function Sz(t){return"v"in t||"e"in t}function ex(t){if("e"in t)throw t.e;if((Sa?"production":void 0)!=="production"&&!("v"in t))throw new Error("[Bug] atom state is not initialized");return t.v}function tx(t){return typeof(t==null?void 0:t.then)=="function"}function oQ(t,e,n){if(!n.p.has(t)){n.p.add(t);const r=()=>n.p.delete(t);e.then(r,r)}}function sQ(t,e,n){var r;const i=new Set;for(const o of((r=n.get(t))==null?void 0:r.t)||[])i.add(o);for(const o of e.p)i.add(o);return i}const g3e=(t,e,...n)=>e.read(...n),y3e=(t,e,...n)=>e.write(...n),v3e=(t,e)=>{var n;return(n=e.INTERNAL_onInit)==null?void 0:n.call(e,t)},b3e=(t,e,n)=>{var r;return(r=e.onMount)==null?void 0:r.call(e,n)},w3e=(t,e)=>{var n;const r=Nr(t),i=r[0],o=r[6],s=r[9];if((Sa?"production":void 0)!=="production"&&!e)throw new Error("Atom is undefined or null");let a=i.get(e);return a||(a={d:new Map,p:new Set,n:0},i.set(e,a),(n=o.i)==null||n.call(o,e),s==null||s(t,e)),a},S3e=t=>{const e=Nr(t),n=e[1],r=e[3],i=e[4],o=e[5],s=e[6],a=e[13],l=[],c=u=>{try{u()}catch(d){l.push(d)}};do{s.f&&c(s.f);const u=new Set,d=u.add.bind(u);r.forEach(f=>{var h;return(h=n.get(f))==null?void 0:h.l.forEach(d)}),r.clear(),o.forEach(d),o.clear(),i.forEach(d),i.clear(),u.forEach(c),r.size&&a(t)}while(r.size||o.size||i.size);if(l.length)throw new AggregateError(l)},x3e=t=>{const e=Nr(t),n=e[1],r=e[2],i=e[3],o=e[11],s=e[14],a=e[17],l=[],c=new WeakSet,u=ne
4950w WeakSet,d=Array.from(i);for(;d.length;){const f=d[d.length-1],h=o(t,f);if(u.has(f)){d.pop();continue}if(c.has(f)){if(r.get(f)===h.n)l.push([f,h]);else if((Sa?"production":void 0)!=="production"&&r.has(f))throw new Error("[Bug] invalidated atom exists");u.add(f),d.pop();continue}c.add(f);for(const p of sQ(f,h,n))c.has(p)||d.push(p)}for(let f=l.length-1;f>=0;--f){const[h,p]=l[f];let m=!1;for(const g of p.d.keys())if(g!==h&&i.has(g)){m=!0;break}m&&(r.set(h,p.n),s(t,h),a(t,h)),r.delete(h)}},c4=new WeakSet,E3e=(t,e)=>{var n,r;const i=Nr(t),o=i[1],s=i[2],a=i[3],l=i[6],c=i[7],u=i[11],d=i[12],f=i[13],h=i[14],p=i[16],m=i[17],g=i[20],y=i[26],b=u(t,e);if(Sz(b)){if(o.has(e)&&s.get(e)!==b.n)return b;let M=!1;for(const[V,N]of b.d)if(h(t,V).n!==N){M=!0;break}if(!M)return b}let v=!0;const S=new Set(b.d.keys()),I=new Map,O=()=>{for(const M of S)I.has(M)||b.d.delete(M)},T=()=>{if(o.has(e)){const M=!a.size;m(t,e),M&&(f(t),d(t))}},A=M=>{var V;if(M===e){const z=u(t,M);if(!Sz(z))if(iQ(M))g(t,M,M.init);else throw new Error("no atom init");return ex(z)}const N=h(t,M);try{return ex(N)}finally{I.set(M,N.n),b.d.set(M,N.n),tx(b.v)&&oQ(e,b.v,N),o.has(e)&&((V=o.get(M))==null||V.t.add(e)),v||T()}};let R,k;const P={get signal(){return R||(R=new AbortController),R.signal},get setSelf(){return(Sa?"production":void 0)!=="production"&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),(Sa?"production":void 0)!=="production"&&!l4(e)&&console.warn("setSelf function cannot be used with read-only atom"),!k&&l4(e)&&(k=(...M)=>{if((Sa?"production":void 0)!=="production"&&v&&console.warn("setSelf function cannot be called in sync"),!v)try{return p(t,e,...M)}finally{f(t),d(t)}}),k}},C=b.n,_=s.get(e)===C;try{(Sa?"production":void 0)!=="production"&&c4.delete(t);const M=c(t,e,A,P);if((Sa?"production":void 0)!=="production"&&c4.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),g(t,e,M),tx(M)){y(t,M,
4950()=>R==null?void 0:R.abort());const V=()=>{O(),T()};M.then(V,V)}else O();return(n=l.r)==null||n.call(l,e),b}catch(M){return delete b.v,b.e=M,++b.n,b}finally{v=!1,b.n!==C&&_&&(s.set(e,b.n),a.add(e),(r=l.c)==null||r.call(l,e))}},T3e=(t,e)=>{const n=Nr(t),r=n[1],i=n[2],o=n[11],s=[e];for(;s.length;){const a=s.pop(),l=o(t,a);for(const c of sQ(a,l,r)){const u=o(t,c);i.get(c)!==u.n&&(i.set(c,u.n),s.push(c))}}},C3e=(t,e,...n)=>{const r=Nr(t),i=r[3],o=r[6],s=r[8],a=r[11],l=r[12],c=r[13],u=r[14],d=r[15],f=r[16],h=r[17],p=r[20];let m=!0;const g=b=>ex(u(t,b)),y=(b,...v)=>{var S;const I=a(t,b);try{if(b===e){if(!iQ(b))throw new Error("atom not writable");(Sa?"production":void 0)!=="production"&&c4.add(t);const O=I.n,T=v[0];p(t,b,T),h(t,b),O!==I.n&&(i.add(b),d(t,b),(S=o.c)==null||S.call(o,b));return}else return f(t,b,...v)}finally{m||(c(t),l(t))}};try{return s(t,e,g,y,...n)}finally{m=!1}},_3e=(t,e)=>{var n;const r=Nr(t),i=r[1],o=r[3],s=r[6],a=r[11],l=r[15],c=r[18],u=r[19],d=a(t,e),f=i.get(e);if(f){for(const[h,p]of d.d)if(!f.d.has(h)){const m=a(t,h);c(t,h).t.add(e),f.d.add(h),p!==m.n&&(o.add(h),l(t,h),(n=s.c)==null||n.call(s,h))}for(const h of f.d)if(!d.d.has(h)){f.d.delete(h);const p=u(t,h);p==null||p.t.delete(e)}}},A3e=(t,e)=>{var n;const r=Nr(t),i=r[1],o=r[4],s=r[6],a=r[10],l=r[11],c=r[12],u=r[13],d=r[14],f=r[16],h=r[18],p=l(t,e);let m=i.get(e);if(!m){d(t,e);for(const g of p.d.keys())h(t,g).t.add(e);if(m={l:new Set,d:new Set(p.d.keys()),t:new Set},i.set(e,m),l4(e)){const g=()=>{let y=!0;const b=(...v)=>{try{return f(t,e,...v)}finally{y||(u(t),c(t))}};try{const v=a(t,e,b);v&&(m.u=()=>{y=!0;try{v()}finally{y=!1}})}finally{y=!1}};o.add(g)}(n=s.m)==null||n.call(s,e)}return m},I3e=(t,e)=>{var n,r;const i=Nr(t),o=i[1],s=i[5],a=i[6],l=i[11],c=i[19],u=l(t,e);let d=o.get(e);if(!d||d.l.size)return d;let f=!1;for(const h of d.t)if((n=o.get(h))!=null&&n.d.has(e)){f=!0;break}if(!f){d.u&&s.add(d.u),d=void 0,o.delete(e);for(const h of u.d.keys()){const p=c(t,h);p==null||p.t.delete(e)}(r=a.u)==null||r.call(a,e);return}return d},R3e=(t,e,n)=>{const r=Nr(t),i=r[11],o=r[27],s=i(t,e),a="v"in s,l=s.v;if(tx(n))for(const c of s.d.keys())oQ(e,n,i(t,c));s.v=n,delete s.e,(!a||!Object.is(l,s.v))&&(++s.n,tx(l)&&o(t,l))},M3e=(t,e)=>{const n=Nr(t)[14];return ex(n(t,e))},k3e=(t,e,...n)=>{const r=Nr(t),i=r[3],o=r[12],s=r[13],a=r[16],l=i.size;try{return a(t,e,...n)}finally{i.size!==l&&(s(t),o(t))}},P3e=(t,e,n)=>{const r=Nr(t),i=r[12],o=r[18],s=r[19],l=o(t,e).l;return l.add(n),i(t),()=>{l.delete(n),s(t,e),i(t)}},O3e=(t,e,n)=>{const i=Nr(t)[25];let o=i.get(e);if(!o){o=new Set,i.set(e,o);const s=()=>i.delete(e);e.then(s,s)}o.add(n)},N3e=(t,e)=>{const i=Nr(t)[25].get(e);i==null||i.forEach(o=>o())},aQ=new WeakMap,Nr=t=>{const e=aQ.get(t);if((Sa?"production":void 0)!=="production"&&!e)throw new Error("Store must be created by buildStore to read its building blocks");return e};function D3e(t){const e=Nr(t),n=e[24];return n?n(e):e}function L3e(...t){const e={get(r){const i=Nr(e)[21];return i(e,r)},set(r,...i){const o=Nr(e)[22];return o(e,r,...i)},sub(r,i){const o=Nr(e)[23];return o(e,r,i)}},n=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},g3e,y3e,v3e,b3e,w3e,S3e,x3e,E3e,T3e,C3e,_3e,A3e,I3e,R3e,M3e,k3e,P3e,void 0,new WeakMap,O3e,N3e].map((r,i)=>t[i]||r);return aQ.set(e,Object.freeze(n)),e}const lQ={};let z3e=0;function $et(t,e){const n=`atom${++z3e}`,r={toString(){return(lQ?"production":void 0)!=="production"&&this.debugLabel?n+":"+this.debugLabel:n}};return typeof t=="function"?r.read=t:(r.init=t,r.read=V3e,r.write=B3e),r}function V3e(t){return t(this)}function B3e(t,e,n){return e(this,typeof n=="function"?n(t(this)):n)}function cQ(){return L3e()}let s1;function $3e(){return s1||(s1=cQ(),(lQ?"production":void 0)!=="production"&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=s1),globalThis.__JOTAI_DEFAULT_STORE__!==s1&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),s1}const F3e={},u4=E.createContext(void 0);function uQ(t){return E.useContext(u4)||$3e()}function Fet({children:t,store:e}){const n=E.useRef(null);return e?E.createElement(u4.Provider,{value:e},t):(n.current===null&&(n.current=cQ()),E.createElement(u4.Provider,{value:n.current},t))}const d4=t=>typeof(t==null?void 0:t.then)=="function",f4=t=>{t.status||(t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}))},j3e=ft.use||(t=>{if(t.status==="pending")throw t;if(t.status==="fulfilled")return t.value;throw t.status==="rejected"?t.reason:(f4(t),t)}),VA=new WeakMap,xz=(t,e,n)=>{const i=D3e(t)[26];let o=VA.get(e);return o||(o=new Promise((s,a)=>{let l=e;const c=f=>h=>{l===f&&s(h)},u=f=>h=>{l===f&&a(h)},d=()=>{try{const f=n();d4(f)?(VA.set(f,o),l=f,f.then(c(f),u(f)),i(t,f,d)):s(f)}catch(f){a(f)}};e.then(c(e),u(e)),i(t,e,d)}),VA.set(e,o)),o};function H3e(t,e){const{delay:n,unstable_promiseStatus:r=!ft.use}={},i=uQ(),[[o,s,a],l]=E.useReducer(u=>{const d=i.get(t);return Object.is(u[0],d)&&u[1]===i&&u[2]===t?u:[d,i,t]},void 0,()=>[i.get(t),i,t]);let c=o;if((s!==i||a!==t)&&(l(),c=i.get(t)),E.useEffect(()=>{const u=i.sub(t,()=>{if(r)try{const d=i.get(t);d4(d)&&f4(xz(i,d,()=>i.get(t)))}catch{}if(typeof n=="number"){setTimeout(l,n);return}l()});return l(),u}
4950,[i,t,n,r]),E.useDebugValue(c),d4(c)){const u=xz(i,c,()=>i.get(t));return r&&f4(u),j3e(u)}return c}function U3e(t,e){const n=uQ();return E.useCallback((...i)=>{if((F3e?"production":void 0)!=="production"&&!("write"in t))throw new Error("not writable atom");return n.set(t,...i)},[n,t])}function jet(t,e){return[H3e(t),U3e(t)]}function Het(t,e){let n=null;const r=new Map,i=new Set;function o(a){let l;if(l=r.get(a),l!==void 0)if(n!=null&&n(l[1],a))o.remove(a);else return l[0];const c=t(a);return r.set(a,[c,Date.now()]),s("CREATE",a,c),c}function s(a,l,c){for(const u of i)u({type:a,param:l,atom:c})}return o.unstable_listen=a=>(i.add(a),()=>{i.delete(a)}),o.getParams=()=>r.keys(),o.remove=a=>{{if(!r.has(a))return;const[l]=r.get(a);r.delete(a),s("REMOVE",a,l)}},o.setShouldRemove=a=>{if(n=a,!!n)for(const[l,[c,u]]of r)n(u,l)&&(r.delete(l),s("REMOVE",l,c))},o}const q3e=E.createContext(null),BA={didCatch:!1,error:null};class Uet extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=BA}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var n,r,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];(n=(r=this.props).onReset)===null||n===void 0||n.call(r,{args:o,reason:"imperative-api"}),this.setState(BA)}}componentDidCatch(e,n){var r,i;(r=(i=this.props).onError)===null||r===void 0||r.call(i,e,n)}componentDidUpdate(e,n){const{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&n.error!==null&&W3e(e.resetKeys,i)){var o,s;(o=(s=this.props).onReset)===null||o===void 0||o.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(BA)}}render(){const{children:e,fallbackRender:n,FallbackComponent:r,fallback:i}=this.props,{didCatch:o,error:s}=this.state;let a=e;if(o){const l={error:s,resetErrorBoundary:this.resetErrorBoundary};if(typeof n=="function")a=n(l);else if(r)a=E.createElement(r,l);else if(i!==void 0)a=i;else throw s}return E.createElement(q3e.Provider,{value:{didCatch:o,error:s,resetErrorBoundary:this.resetErrorBoundary}},a)}}function W3e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t.length!==e.length||t.some((n,r)=>!Object.is(n,e[r]))}var dQ={exports:{}},fQ={};/** 4951 * @license React 4952 * use-sync-external-store-shim.production.js 4953 * 4954 * Copyright (c) Meta Platforms, Inc. and affiliates. 4955 * 4956 * This source code is licensed under the MIT license found in the 4957 * LICENSE file in the root directory of this source tree. 4958 */var Dm=E;function G3e(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var K3e=typeof Object.is=="function"?Object.is:G3e,Y3e=Dm.useState,X3e=Dm.useEffect,Q3e=Dm.useLayoutEffect,J3e=Dm.useDebugValue;function Z3e(t,e){var n=e(),r=Y3e({inst:{value:n,getSnapshot:e}}),i=r[0].inst,o=r[1];return Q3e(function(){i.value=n,i.getSnapshot=e,$A(i)&&o({inst:i})},[t,n,e]),X3e(function(){return $A(i)&&o({inst:i}),t(function(){$A(i)&&o({inst:i})})},[t]),J3e(n),n}function $A(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!K3e(t,n)}catch{return!0}}function eMe(t,e){return e()}var tMe=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?eMe:Z3e;fQ.useSyncExternalStore=Dm.useSyncExternalStore!==void 0?Dm.useSyncExternalStore:tMe;dQ.exports=fQ;var KT=dQ.exports;function Zr(t){this.content=t}Zr.prototype={constructor:Zr,find:function(t){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===t)return e;return-1},get:function(t){var e=this.find(t);return e==-1?void 0:this.content[e+1]},update:function(t,e,n){var r=n&&n!=t?this.remove(n):this,i=r.find(t),o=r.content.slice();return i==-1?o.push(n||t,e):(o[i+1]=e,n&&(o[i]=n)),new Zr(o)},remove:function(t){var e=this.find(t);if(e==-1)return this;var n=this.content.slice();return n.splice(e,2),new Zr(n)},addToStart:function(t,e){return new Zr([t,e].concat(this.remove(t).content))},addToEnd:function(t,e){var n=this.remove(t).content.slice();return n.push(t,e),new Zr(n)},addBefore:function(t,e,n){var r=this.remove(e),i=r.content.slice(),o=r.find(t);return i.splice(o==-1?i.length:o,0,e,n),new Zr(i)}
vendor: 13,242 bytes, line 4958
4958,forEach:function(t){for(var e=0;e<this.content.length;e+=2)t(this.content[e],this.content[e+1])},prepend:function(t){return t=Zr.from(t),t.size?new Zr(t.content.concat(this.subtract(t).content)):this},append:function(t){return t=Zr.from(t),t.size?new Zr(this.subtract(t).content.concat(t.content)):this},subtract:function(t){var e=this;t=Zr.from(t);for(var n=0;n<t.content.length;n+=2)e=e.remove(t.content[n]);return e},toObject:function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},get size(){return this.content.length>>1}};Zr.from=function(t){if(t instanceof Zr)return t;var e=[];if(t)for(var n in t)e.push(n,t[n]);return new Zr(e)};function hQ(t,e,n){for(let r=0;;r++){if(r==t.childCount||r==e.childCount)return t.childCount==e.childCount?null:n;let i=t.child(r),o=e.child(r);if(i==o){n+=i.nodeSize;continue}if(!i.sameMarkup(o))return n;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)n++;return n}if(i.content.size||o.content.size){let s=hQ(i.content,o.content,n+1);if(s!=null)return s}n+=i.nodeSize}}function pQ(t,e,n,r){for(let i=t.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:n,b:r};let s=t.child(--i),a=e.child(--o),l=s.nodeSize;if(s==a){n-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:n,b:r};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,n--,r--;return{a:n,b:r}}if(s.content.size||a.content.size){let c=pQ(s.content,a.content,n-1,r-1);if(c)return c}n-=l,r-=l}}class Ce{constructor(e,n){if(this.content=e,this.size=n||0,n==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,n,r,i=0,o){for(let s=0,a=0;a<n;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&r(l,i+a,o||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,n-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,n,r,i){let o="",s=!0;return this.nodesBetween(e,n,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,n-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let n=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new Ce(i,this.size+e.size)}cut(e,n=this.size){if(e==0&&n==this.size)return this;let r=[],i=0;if(n>e)for(let o=0,s=0;s<n;o++){let a=this.content[o],l=s+a.nodeSize;l>e&&((s<e||l>n)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,n-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,n-s-1))),r.push(a),i+=a.nodeSize),s=l}return new Ce(r,i)}cutByIndex(e,n){return e==n?Ce.empty:e==0&&n==this.content.length?this:new Ce(this.content.slice(e,n))}replaceChild(e,n){let r=this.content[e];if(r==n)return this;let i=this.content.slice(),o=this.size+n.nodeSize-r.nodeSize;return i[e]=n,new Ce(i,o)}addToStart(e){return new Ce([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new Ce(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let n=0;n<this.content.length;n++)if(!this.content[n].eq(e.content[n]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let n=this.content[e];if(!n)throw new RangeError("Index "+e+" out of range for "+this);return n}maybeChild(e){return this.content[e]||null}forEach(e){for(let n=0,r=0;n<this.content.length;n++){let i=this.content[n];e(i,r,n),r+=i.nodeSize}}findDiffStart(e,n=0){return hQ(this,e,n)}findDiffEnd(e,n=this.size,r=e.size){return pQ(this,e,n,r)}findIndex(e){if(e==0)return d2(0,e);if(e==this.size)return d2(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let n=0,r=0;;n++){let i=this.child(n),o=r+i.nodeSize;if(o>=e)return o==e?d2(n+1,o):d2(n,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,n){if(!n)return Ce.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new Ce(n.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return Ce.empty;let n,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(n||(n=e.slice(0,i)),n[n.length-1]=o.withText(n[n.length-1].text+o.text)):n&&n.push(o)}return new Ce(n||e,r)}static from(e){if(!e)return Ce.empty;if(e instanceof Ce)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new Ce([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}Ce.empty=new Ce([],0);const FA={index:0,offset:0};function d2(t,e){return FA.index=t,FA.offset=e,FA}function nx(t,e){if(t===e)return!0;if(!(t&&typeof t=="object")||!(e&&typeof e=="object"))return!1;let n=Array.isArray(t);if(Array.isArray(e)!=n)return!1;if(n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!nx(t[r],e[r]))return!1}else{for(let r in t)if(!(r in e)||!nx(t[r],e[r]))return!1;for(let r in e)if(!(r in t))return!1}return!0}let xn=class h4{constructor(e,n){this.type=e,this.attrs=n}addToSet(e){let n,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))n||(n=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(n||(n=e.slice(0,i)),n.push(this),r=!0),n&&n.push(o)}}return n||(n=e.slice()),r||n.push(this),n}removeFromSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return e.slice(0,n).concat(e.slice(n+1));return e}isInSet(e){for(let n=0;n<e.length;n++)if(this.eq(e[n]))return!0;return!1}eq(e){return this==e||this.type==e.type&&nx(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[n.type];if(!r)throw new RangeError(`There is no mark type ${n.type} in this schema`);let i=r.create(n.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,n){if(e==n)return!0;if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(n[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return h4.none;if(e instanceof h4)return[e];let n=e.slice();return n.sort((r,i)=>r.type.rank-i.type.rank),n}};xn.none=[];class rx extends Error{}class We{constructor(e,n,r){this.content=e,this.openStart=n,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,n){let r=gQ(this.content,e+this.openStart,n);return r&&new We(r,this.openStart,this.openEnd)}removeBetween(e,n){return new We(mQ(this.content,e+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,n){if(!n)return We.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new We(Ce.fromJSON(e,n.content),r,i)}static maxOpen(e,n=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(n||!o.type.spec.isolating);o=o.lastChild)i++;return new We(e,r,i)}}We.empty=new We(Ce.empty,0,0);function mQ(t,e,n){let{index:r,offset:i}=t.findIndex(e),o=t.maybeChild(r),{index:s,offset:a}=t.findIndex(n);if(i==e||o.isText){if(a!=n&&!t.child(s).isText)throw new RangeError("Removing non-flat range");return t.cut(0,e).append(t.cut(n))}if(r!=s)throw new RangeError("Removing non-flat range");return t.replaceChild(r,o.copy(mQ(o.content,e-i-1,n-i-1)))}function gQ(t,e,n,r){let{index:i,offset:o}=t.findIndex(e),s=t.maybeChild(i);if(o==e||s.isText)return r&&!r.canReplace(i,i,n)?null:t.cut(0,e).append(n).append(t.cut(e));let a=gQ(s.content,e-o-1,n,s);return a&&t.replaceChild(i,s.copy(a))}function nMe(t,e,n){if(n.openStart>t.depth)throw new rx("Inserted content deeper than insertion position");if(t.depth-n.openStart!=e.depth-n.openEnd)throw new rx("Inconsistent open depths");return yQ(t,e,n,0)}function yQ(t,e,n,r){let i=t.index(r),o=t.node(r);if(i==e.index(r)&&r<t.depth-n.openStart){let s=yQ(t,e,n,r+1);return o.copy(o.content.replaceChild(i,s))}else if(n.content.size)if(!n.openStart&&!n.openEnd&&t.depth==r&&e.depth==r){let s=t.parent,a=s.content;return bf(s,a.cut(0,t.parentOffset).append(n.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=rMe(n,t);return bf(o,bQ(t,s,a,e,r))}else return bf(o,ix(t,e,r))}function vQ(t,e){if(!e.type.compatibleContent(t.type))throw new rx("Cannot join "+e.type.name+" onto "+t.type.name)}function p4(t,e,n){let r=t.node(n);return vQ(r,e.node(n)),r}function vf(t,e){let n=e.length-1;n>=0&&t.isText&&t.sameMarkup(e[n])?e[n]=t.withText(e[n].text+t.text):e.push(t)}function Ay(t,e,n,r){let i=(e||t).node(n),o=0,s=e?e.index(n):i.childCount;t&&(o=t.index(n),t.depth>n?o++:t.textOffset&&(vf(t.nodeAfter,r),o++));for(let a=o;a<s;a++)vf(i.child(a),r);e&&e.depth==n&&e.textOffset&&vf(e.nodeBefore,r)}function bf(t,e){return t.type.checkContent(e),t.copy(e)}function bQ(t,e,n,r,i){let o=t.depth>i&&p4(t,e,i+1),s=r.depth>i&&p4(n,r,i+1),a=[];return Ay(null,t,i,a),o&&s&&e.index(i)==n.index(i)?(vQ(o,s),vf(bf(o,bQ(t,e,n,r,i+1)),a)):(o&&vf(bf(o,ix(t,e,i+1)),a),Ay(e,n,i,a),s&&vf(bf(s,ix(n,r,i+1)),a)),Ay(r,null,i,a),new Ce(a)}function ix(t,e,n){let r=[];if(Ay(null,t,n,r),t.depth>n){let i=p4(t,e,n+1);vf(bf(i,ix(t,e,n+1)),r)}return Ay(e,null,n,r),new Ce(r)}function rMe(t,e){let n=e.depth-t.openStart,i=e.node(n).copy(t.content);for(let o=n-1;o>=0;o--)i=e.node(o).copy(Ce.from(i));return{start:i.resolveNoCache(t.openStart+n),end:i.resolveNoCache(i.content.size-t.openEnd-n)}}class z0{constructor(e,n,r){this.pos=e,this.path=n,this.parentOffset=r,this.depth=n.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,n=this.index(this.depth);if(n==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(n);return r?e.child(n).cut(r):i}get nodeBefore(){let e=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(e).cut(0,n):e==0?null:this.parent.child(e-1)}posAtIndex(e,n){n=this.resolveDepth(n);let r=this.path[n*3],i=n==0?0:this.path[n*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,n=this.index();if(e.content.size==0)return xn.none;if(this.textOffset)return e.child(n).marks;let r=e.maybeChild(n-1),i=e.maybeChild(n);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let n=this.parent.maybeChild(this.index());if(!n||!n.isInline)return null;let r=n.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let n=this.depth;n>0;n--)if(this.start(n)<=e&&this.end(n)>=e)return n;return 0}blockRange(e=this,n){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!n||n(this.node(r))))return new ox(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let n=1;n<=this.depth;n++)e+=(e?"/":"")+this.node(n).type.name+"_"+this.index(n-1);return e+":"+this.parentOffset}static resolve(e,n){if(!(n>=0&&n<=e.content.size))throw new RangeError("Position "+n+" out of range");let r=[],i=0,o=n;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,a,i+l),!c||(s=s.child(a),s.isText))break;o=c-1,i+=l+1}return new z0(n,r,o)}
vendor: 8,118 bytes, line 4958
4958static resolveCached(e,n){let r=Ez.get(e);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==n)return s}else Ez.set(e,r=new iMe);let i=r.elts[r.i]=z0.resolve(e,n);return r.i=(r.i+1)%oMe,i}}class iMe{constructor(){this.elts=[],this.i=0}}const oMe=12,Ez=new WeakMap;class ox{constructor(e,n,r){this.$from=e,this.$to=n,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const sMe=Object.create(null);let Au=class m4{constructor(e,n,r,i=xn.none){this.type=e,this.attrs=n,this.marks=i,this.content=r||Ce.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,n,r,i=0){this.content.nodesBetween(e,n,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,n,r,i){return this.content.textBetween(e,n,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,n,r){return this.type==e&&nx(this.attrs,n||e.defaultAttrs||sMe)&&xn.sameSet(this.marks,r||xn.none)}copy(e=null){return e==this.content?this:new m4(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new m4(this.type,this.attrs,this.content,e)}cut(e,n=this.content.size){return e==0&&n==this.content.size?this:this.copy(this.content.cut(e,n))}slice(e,n=this.content.size,r=!1){if(e==n)return We.empty;let i=this.resolve(e),o=this.resolve(n),s=r?0:i.sharedDepth(n),a=i.start(s),c=i.node(s).content.cut(i.pos-a,o.pos-a);return new We(c,i.depth-s,o.depth-s)}replace(e,n,r){return nMe(this.resolve(e),this.resolve(n),r)}nodeAt(e){for(let n=this;;){let{index:r,offset:i}=n.content.findIndex(e);if(n=n.maybeChild(r),!n)return null;if(i==e||n.isText)return n;e-=i+1}}childAfter(e){let{index:n,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(n),index:n,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:n,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(n),index:n,offset:r};let i=this.content.child(n-1);return{node:i,index:n-1,offset:r-i.nodeSize}}resolve(e){return z0.resolveCached(this,e)}resolveNoCache(e){return z0.resolve(this,e)}rangeHasMark(e,n,r){let i=!1;return n>e&&this.nodesBetween(e,n,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),wQ(this.marks,e)}contentMatchAt(e){let n=this.type.contentMatch.matchFragment(this.content,0,e);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(e,n,r=Ce.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,n);if(!a||!a.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,n,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,n);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=xn.none;for(let n=0;n<this.marks.length;n++){let r=this.marks[n];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!xn.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(n=>n.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let e={type:this.type.name};for(let n in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(n=>n.toJSON())),e}static fromJSON(e,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let r;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=n.marks.map(e.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(n.text,r)}let i=Ce.fromJSON(e,n.content),o=e.nodeType(n.type).create(n.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};Au.prototype.text=void 0;class sx extends Au{constructor(e,n,r,i){if(super(e,n,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):wQ(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,n){return this.text.slice(e,n)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new sx(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new sx(this.type,this.attrs,e,this.marks)}cut(e=0,n=this.text.length){return e==0&&n==this.text.length?this:this.withText(this.text.slice(e,n))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function wQ(t,e){for(let n=t.length-1;n>=0;n--)e=t[n].type.name+"("+e+")";return e}class Wf{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,n){let r=new aMe(e,n);if(r.next==null)return Wf.empty;let i=SQ(r);r.next&&r.err("Unexpected trailing text");let o=pMe(hMe(i));return mMe(o,r),o}matchType(e){for(let n=0;n<this.next.length;n++)if(this.next[n].type==e)return this.next[n].next;return null}matchFragment(e,n=0,r=e.childCount){let i=this;for(let o=n;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:n}=this.next[e];if(!(n.isText||n.hasRequiredAttrs()))return n}return null}compatible(e){for(let n=0;n<this.next.length;n++)for(let r=0;r<e.next.length;r++)if(this.next[n].type==e.next[r].type)return!0;return!1}fillBefore(e,n=!1,r=0){let i=[this];function o(s,a){let l=s.matchFragment(e,r);if(l&&(!n||l.validEnd))return Ce.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:d}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(d)==-1){i.push(d);let f=o(d,a.concat(u));if(f)return f}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let n=this.computeWrapping(e);return this.wrapCache.push(e,n),n}computeWrapping(e){let n=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:l}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in n)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),n[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function n(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&n(r.next[i].next)}return n(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}
vendor: 5,669 bytes, lines 4958-4959
4958).join(` 4959`)}}Wf.empty=new Wf(!0);class aMe{constructor(e,n){this.string=e,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function SQ(t){let e=[];do e.push(lMe(t));while(t.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function lMe(t){let e=[];do e.push(cMe(t));while(t.next&&t.next!=")"&&t.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function cMe(t){let e=fMe(t);for(;;)if(t.eat("+"))e={type:"plus",expr:e};else if(t.eat("*"))e={type:"star",expr:e};else if(t.eat("?"))e={type:"opt",expr:e};else if(t.eat("{"))e=uMe(t,e);else break;return e}function Tz(t){/\D/.test(t.next)&&t.err("Expected number, got '"+t.next+"'");let e=Number(t.next);return t.pos++,e}function uMe(t,e){let n=Tz(t),r=n;return t.eat(",")&&(t.next!="}"?r=Tz(t):r=-1),t.eat("}")||t.err("Unclosed braced range"),{type:"range",min:n,max:r,expr:e}}function dMe(t,e){let n=t.nodeTypes,r=n[e];if(r)return[r];let i=[];for(let o in n){let s=n[o];s.isInGroup(e)&&i.push(s)}return i.length==0&&t.err("No node type or group '"+e+"' found"),i}function fMe(t){if(t.eat("(")){let e=SQ(t);return t.eat(")")||t.err("Missing closing paren"),e}else if(/\W/.test(t.next))t.err("Unexpected token '"+t.next+"'");else{let e=dMe(t,t.next).map(n=>(t.inline==null?t.inline=n.isInline:t.inline!=n.isInline&&t.err("Mixing inline and block content"),{type:"name",value:n}));return t.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function hMe(t){let e=[[]];return i(o(t,0),n()),e;function n(){return e.push([])-1}function r(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],a);if(l==s.exprs.length-1)return c;i(c,a=n())}else if(s.type=="star"){let l=n();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=n();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=n();i(o(s.expr,l),u),l=u}if(s.max==-1)i(o(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=n();r(l,u),i(o(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function xQ(t,e){return e-t}function Cz(t,e){let n=[];return r(e),n.sort(xQ);function r(i){let o=t[i];if(o.length==1&&!o[0].term)return r(o[0].to);n.push(i);for(let s=0;s<o.length;s++){let{term:a,to:l}=o[s];!a&&n.indexOf(l)==-1&&r(l)}}}function pMe(t){let e=Object.create(null);return n(Cz(t,0));function n(r){let i=[];r.forEach(s=>{t[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);Cz(t,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new Wf(r.indexOf(t.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(xQ);o.next.push({type:i[s][0],next:e[a.join(",")]||n(a)})}return o}}function mMe(t,e){for(let n=0,r=[t];n<r.length;n++){let i=r[n],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];s.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function EQ(t){let e=Object.create(null);for(let n in t){let r=t[n];if(!r.hasDefault)return null;e[n]=r.default}return e}function TQ(t,e){let n=Object.create(null);for(let r in t){let i=e&&e[r];if(i===void 0){let o=t[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}n[r]=i}return n}function CQ(t,e,n,r){for(let i in e)if(!(i in t))throw new RangeError(`Unsupported attribute ${i} for ${n} of type ${i}`);for(let i in t){let o=t[i];o.validate&&o.validate(e[i])}}function _Q(t,e){let n=Object.create(null);if(e)for(let r in e)n[r]=new yMe(t,r,e[r]);return n}let _z=class AQ{constructor(e,n,r){this.name=e,this.schema=n,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=_Q(e,r.attrs),this.defaultAttrs=EQ(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==Wf.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:TQ(this.attrs,e)}create(e=null,n,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new Au(this,this.computeAttrs(e),Ce.from(n),xn.setFrom(r))}createChecked(e=null,n,r){return n=Ce.from(n),this.checkContent(n),new Au(this,this.computeAttrs(e),n,xn.setFrom(r))}createAndFill(e=null,n,r){if(e=this.computeAttrs(e),n=Ce.from(n),n.size){let s=this.contentMatch.fillBefore(n);if(!s)return null;n=s.append(n)}let i=this.contentMatch.matchFragment(n),o=i&&i.fillBefore(Ce.empty,!0);return o?new Au(this,e,n.append(o),xn.setFrom(r)):null}validContent(e){let n=this.contentMatch.matchFragment(e);
vendor: 10,954 bytes, lines 4959-4961
4959if(!n||!n.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){CQ(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let n=0;n<e.length;n++)if(!this.allowsMarkType(e[n].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let n;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?n&&n.push(e[r]):n||(n=e.slice(0,r));return n?n.length?n:xn.none:e}static compile(e,n){let r=Object.create(null);e.forEach((o,s)=>r[o]=new AQ(o,n,s));let i=n.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function gMe(t,e,n){let r=n.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${t}, got ${o}`)}}class yMe{constructor(e,n,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?gMe(e,n,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class YT{constructor(e,n,r,i){this.name=e,this.rank=n,this.schema=r,this.spec=i,this.attrs=_Q(e,i.attrs),this.excluded=null;let o=EQ(this.attrs);this.instance=o?new xn(this,o):null}create(e=null){return!e&&this.instance?this.instance:new xn(this,TQ(this.attrs,e))}static compile(e,n){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new YT(o,i++,n,s)),r}removeFromSet(e){for(var n=0;n<e.length;n++)e[n].type==this&&(e=e.slice(0,n).concat(e.slice(n+1)),n--);return e}isInSet(e){for(let n=0;n<e.length;n++)if(e[n].type==this)return e[n]}checkAttrs(e){CQ(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class IQ{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let n=this.spec={};for(let i in e)n[i]=e[i];n.nodes=Zr.from(e.nodes),n.marks=Zr.from(e.marks||{}),this.nodes=_z.compile(this.spec.nodes,this),this.marks=YT.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=Wf.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?Az(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:Az(this,s.split(" "))}this.nodeFromJSON=i=>Au.fromJSON(this,i),this.markFromJSON=i=>xn.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,n=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof _z){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(n,r,i)}text(e,n){let r=this.nodes.text;return new sx(r,r.defaultAttrs,e,xn.setFrom(n))}mark(e,n){return typeof e=="string"&&(e=this.marks[e]),e.create(n)}nodeType(e){let n=this.nodes[e];if(!n)throw new RangeError("Unknown node type: "+e);return n}}function Az(t,e){let n=[];for(let r=0;r<e.length;r++){let i=e[r],o=t.marks[i],s=o;if(o)n.push(o);else for(let a in t.marks){let l=t.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&n.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return n}function vMe(t){return t.tag!=null}function bMe(t){return t.style!=null}let Iy=class g4{constructor(e,n){this.schema=e,this.rules=n,this.tags=[],this.styles=[];let r=this.matchedStyles=[];n.forEach(i=>{if(vMe(i))this.tags.push(i);else if(bMe(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,n={}){let r=new Rz(this,n,!1);return r.addAll(e,xn.none,n.from,n.to),r.finish()}parseSlice(e,n={}){let r=new Rz(this,n,!0);return r.addAll(e,xn.none,n.from,n.to),We.maxOpen(r.finish())}matchTag(e,n,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(xMe(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||n.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(e);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(e,n,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=n))){if(s.getAttrs){let l=s.getAttrs(n);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let n=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<n.length;s++){let a=n[s];if((a.priority==null?50:a.priority)<o)break}n.splice(s,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Mz(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Mz(s)),s.node||s.ignore||s.mark||(s.node=i)})}return n}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new g4(e,g4.schemaRules(e)))}};const RQ={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},wMe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},MQ={ol:!0,ul:!0},V0=1,y4=2,Ry=4;function Iz(t,e,n){return e!=null?(e?V0:0)|(e==="full"?y4:0):t&&t.whitespace=="pre"?V0|y4:n&~Ry}class f2{constructor(e,n,r,i,o,s){this.type=e,this.attrs=n,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=xn.none,this.match=o||(s&Ry?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(Ce.from(e));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&V0)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let n=Ce.from(this.content);return!e&&this.match&&(n=n.append(this.match.fillBefore(Ce.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!RQ.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Rz{constructor(e,n,r){this.parser=e,this.options=n,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=n.topNode,o,s=Iz(null,n.preserveWhitespace,0)|(r?Ry:0);i?o=new f2(i.type,i.attrs,xn.none,!0,n.topMatch||i.type.contentMatch,s):r?o=new f2(null,null,xn.none,!0,null,s):o=new f2(e.schema.topNodeType,null,xn.none,!0,null,s),this.nodes=[o],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,n){e.nodeType==3?this.addTextNode(e,n):e.nodeType==1&&this.addElement(e,n)}addTextNode(e,n){let r=e.nodeValue,i=this.top,o=i.options&y4?"full":this.localPreserveWS||(i.options&V0)>0,{schema:s}=this.parser;if(o==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)if(o==="full")r=r.replace(/\r\n?/g,` 4960`);else if(s.linebreakReplacement&&/[\r\n]/.test(r)&&this.top.findWrapping(s.linebreakReplacement.create())){let a=r.split(/\r?\n|\r/);for(let l=0;l<a.length;l++)l&&this.insertNode(s.linebreakReplacement.create(),n,!0),a[l]&&this.insertNode(s.text(a[l]),n,!/\S/.test(a[l]));r=""}else r=r.replace(/\r?\n|\r/g," ");else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let a=i.content[i.content.length-1],l=e.previousSibling;(!a||l&&l.nodeName=="BR"||a.isText&&/[ \t\r\n\u000c]$/.test(a.text))&&(r=r.slice(1))}r&&this.insertNode(s.text(r),n,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,n,r){let i=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;MQ.hasOwnProperty(s)&&this.parser.normalizeLists&&SMe(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:wMe.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,n);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(RQ.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,n);break e}let d=l&&l.skip?n:this.readStyles(e,n);d&&this.addAll(e,d),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(e,n);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(e,n){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(` 4961`),n)}ignoreFallback(e,n){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),n,!0)}readStyles(e,n){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],s=r.getPropertyValue(o);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(o,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?n=n.filter(c=>!l.clearMark(c)):n=n.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return n}addElementByRule(e,n,r,i){let o,s;if(n.node)if(s=this.parser.schema.nodes[n.node],s.isLeaf)this.insertNode(s.create(n.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,n.attrs||null,r,n.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[n.mark];r=r.concat(l.create(n.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(n.getContent)this.findInside(e),n.getContent(e,this.parser.schema).forEac
vendor: 4,077 bytes, line 4961
4961h(l=>this.insertNode(l,r,!1));else{let l=e;typeof n.contentElement=="string"?l=e.querySelector(n.contentElement):typeof n.contentElement=="function"?l=n.contentElement(e):n.contentElement&&(l=n.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(a)&&this.open--}addAll(e,n,r,i){let o=r||0;for(let s=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];s!=a;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s,n);this.findAtPoint(e,o)}findPlace(e,n,r){let i,o;for(let s=this.open,a=0;s>=0;s--){let l=this.nodes[s],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+a)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;a+=2}}if(!i)return null;this.sync(o);for(let s=0;s<i.length;s++)n=this.enterInner(i[s],null,n,!1);return n}insertNode(e,n,r){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(n=this.enterInner(o,null,n))}let i=this.findPlace(e,n,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let s=xn.none;for(let a of i.concat(e.marks))(o.type?o.type.allowsMarkType(a.type):kz(a.type,e.type))&&(s=a.addToSet(s));return o.content.push(e.mark(s)),!0}return!1}enter(e,n,r,i){let o=this.findPlace(e.create(n),r,!1);return o&&(o=this.enterInner(e,n,r,!0,i)),o}enterInner(e,n,r,i=!1,o){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=Iz(e,o,s.options);s.options&Ry&&s.content.length==0&&(a|=Ry);let l=xn.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):kz(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new f2(e,n,l,i,null,a)),this.open++,r}closeExtra(e=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let n=this.open;n>=0;n--){if(this.nodes[n]==e)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=V0)}return!1}get currentPos(){this.closeExtra();let e=0;for(let n=this.open;n>=0;n--){let r=this.nodes[n].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;n&&e++}return e}findAtPoint(e,n){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==n&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].pos==null&&e.nodeType==1&&e.contains(this.find[n].node)&&(this.find[n].pos=this.currentPos)}findAround(e,n,r){if(e!=n&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&n.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let n=0;n<this.find.length;n++)this.find[n].node==e&&(this.find[n].pos=this.currentPos-(e.nodeValue.length-this.find[n].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let n=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,l)=>{for(;a>=0;a--){let c=n[a];if(c==""){if(a==n.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return s(n.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let n=e.depth;n>=0;n--){let r=e.node(n).contentMatchAt(e.indexAfter(n)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let n in this.parser.schema.nodes){let r=this.parser.schema.nodes[n];if(r.isTextblock&&r.defaultAttrs)return r}}}function SMe(t){for(let e=t.firstChild,n=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&MQ.hasOwnProperty(r)&&n?(n.appendChild(e),e=n):r=="li"?n=e:r&&(n=null)}}function xMe(t,e){return(t.matches||t.msMatchesSelector||t.webkitMatchesSelector||t.mozMatchesSelector).call(t,e)}function Mz(t){let e={};for(let n in t)e[n]=t[n];return e}
vendor: 7,423 bytes, line 4961
4961function kz(t,e){let n=e.schema.nodes;for(let r in n){let i=n[r];if(!i.allowsMarkType(t))continue;let o=[],s=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||o.indexOf(u)<0&&s(u))return!0}};if(s(i.contentMatch))return!0}}class yh{constructor(e,n){this.nodes=e,this.marks=n}serializeFragment(e,n={},r){r||(r=jA(n).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let a=0,l=0;for(;a<o.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,n);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(s,n))}),r}serializeNodeInner(e,n){let{dom:r,contentDOM:i}=vw(jA(n),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,n,i)}return r}serializeNode(e,n={}){let r=this.serializeNodeInner(e,n);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,n);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,n,r={}){let i=this.marks[e.type.name];return i&&vw(jA(r),i(e,n),null,e.attrs)}static renderSpec(e,n,r=null,i){return vw(e,n,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new yh(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let n=Pz(e.nodes);return n.text||(n.text=r=>r.text),n}static marksFromSchema(e){return Pz(e.marks)}}function Pz(t){let e={};for(let n in t){let r=t[n].spec.toDOM;r&&(e[n]=r)}return e}function jA(t){return t.document||window.document}const Oz=new WeakMap;function EMe(t){let e=Oz.get(t);return e===void 0&&Oz.set(t,e=TMe(t)),e}function TMe(t){let e=null;function n(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)n(r[i]);else for(let i in r)n(r[i])}return n(t),e}function vw(t,e,n,r){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=EMe(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(n=i.slice(0,s),i=i.slice(s+1));let a,l=n?t.createElementNS(n,i):t.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let d in c)if(c[d]!=null){let f=d.indexOf(" ");f>0?l.setAttributeNS(d.slice(0,f),d.slice(f+1),c[d]):d=="style"&&l.style?l.style.cssText=c[d]:l.setAttribute(d,c[d])}}for(let d=u;d<e.length;d++){let f=e[d];if(f===0){if(d<e.length-1||d>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:h,contentDOM:p}=vw(t,f,n,r);if(l.appendChild(h),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const kQ=65535,PQ=Math.pow(2,16);function CMe(t,e){return t+e*PQ}function Nz(t){return t&kQ}function _Me(t){return(t-(t&kQ))/PQ}const OQ=1,NQ=2,bw=4,DQ=8;class v4{constructor(e,n,r){this.pos=e,this.delInfo=n,this.recover=r}get deleted(){return(this.delInfo&DQ)>0}get deletedBefore(){return(this.delInfo&(OQ|bw))>0}get deletedAfter(){return(this.delInfo&(NQ|bw))>0}get deletedAcross(){return(this.delInfo&bw)>0}}class So{constructor(e,n=!1){if(this.ranges=e,this.inverted=n,!e.length&&So.empty)return So.empty}recover(e){let n=0,r=Nz(e);if(!this.inverted)for(let i=0;i<r;i++)n+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+n+_Me(e)}mapResult(e,n=1){return this._map(e,n,!1)}map(e,n=1){return this._map(e,n,!0)}_map(e,n,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[a+o],u=this.ranges[a+s],d=l+c;if(e<=d){let f=c?e==l?-1:e==d?1:n:n,h=l+i+(f<0?0:u);if(r)return h;let p=e==(n<0?l:d)?null:CMe(a/3,e-l),m=e==l?NQ:e==d?OQ:bw;return(n<0?e!=l:e!=d)&&(m|=DQ),new v4(h,m,p)}i+=u-c}return r?e+i:new v4(e+i,0,null)}touches(e,n){let r=0,i=Nz(n),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+o],u=l+c;if(e<=u&&a==i*3)return!0;r+=this.ranges[a+s]-c}return!1}forEach(e){let n=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],a=s-(this.inverted?o:0),l=s+(this.inverted?0:o),c=this.ranges[i+n],u=this.ranges[i+r];e(a,a+c,l,l+u),o+=u-c}}invert(){return new So(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?So.empty:new So(e<0?[0,-e,0]:[0,0,e])}}So.empty=new So([]);class ax{constructor(e,n,r=0,i=e?e.length:0){this.mirror=n,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||n)}get maps(){return this._maps}slice(e=0,n=this.maps.length){return new ax(this._maps,this.mirror,e,n)}appendMap(e,n){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),n!=null&&this.setMirror(this._maps.length-1,n)}appendMapping(e){for(let n=0,r=this._maps.length;n<e._maps.length;n++){let i=e.getMirror(n);this.appendMap(e._maps[n],i!=null&&i<n?r+i:void 0)}}getMirror(e){if(this.mirror){for(let n=0;n<this.mirror.length;n++)if(this.mirror[n]==e)return this.mirror[n+(n%2?-1:1)]}}setMirror(e,n){this.mirror||(this.mirror=[]),this.mirror.push(e,n)}appendMappingInverted(e){for(let n=e.maps.length-1,r=this._maps.length+e._maps.length;n>=0;n--){let i=e.getMirror(n);this.appendMap(e._maps[n].invert(),i!=null&&i>n?r-i-1:void 0)}}invert(){let e=new ax;return e.appendMappingInverted(this),e}map(e,n=1){if(this.mirror)return this._map(e,n,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,n);return e}mapResult(e,n=1){return this._map(e,n,!1)}_map(e,n,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this._maps[o],a=s.mapResult(e,n);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new v4(e,i,null)}}const HA=Object.create(null);class Si{getMap(){return So.empty}merge(e){return null}static fromJSON(e,n){if(!n||!n.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=HA[n.stepType];if(!r)throw new RangeError(`No step type ${n.stepType} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in HA)throw new RangeError("Duplicate use of step JSON ID "+e);return HA[e]=n,n.prototype.jsonID=e,n}}class Ir{constructor(e,n){this.doc=e,this.failed=n}static ok(e){return new Ir(e,null)}static fail(e){return new Ir(null,e)}static fromReplace(e,n,r,i){try{return Ir.ok(e.replace(n,r,i))}catch(o){if(o instanceof rx)return Ir.fail(o.message);throw o}}}function uO(t,e,n){let r=[];for(let i=0;i<t.childCount;i++){let o=t.child(i);o.content.size&&(o=o.copy(uO(o.content,e,o))),o.isInline&&(o=e(o,n,i)),r.push(o)}return Ce.fromArray(r)}class iu extends Si{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.no
vendor: 6,898 bytes, line 4961
4961de(r.sharedDepth(this.to)),o=new We(uO(n.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),n.openStart,n.openEnd);return Ir.fromReplace(e,this.from,this.to,o)}invert(){return new Fs(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new iu(n.pos,r.pos,this.mark)}merge(e){return e instanceof iu&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new iu(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new iu(n.from,n.to,e.markFromJSON(n.mark))}}Si.jsonID("addMark",iu);class Fs extends Si{constructor(e,n,r){super(),this.from=e,this.to=n,this.mark=r}apply(e){let n=e.slice(this.from,this.to),r=new We(uO(n.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),n.openStart,n.openEnd);return Ir.fromReplace(e,this.from,this.to,r)}invert(){return new iu(this.from,this.to,this.mark)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new Fs(n.pos,r.pos,this.mark)}merge(e){return e instanceof Fs&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Fs(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Fs(n.from,n.to,e.markFromJSON(n.mark))}}Si.jsonID("removeMark",Fs);class ou extends Si{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ir.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return Ir.fromReplace(e,this.pos,this.pos+1,new We(Ce.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);if(n){let r=this.mark.addToSet(n.marks);if(r.length==n.marks.length){for(let i=0;i<n.marks.length;i++)if(!n.marks[i].isInSet(r))return new ou(this.pos,n.marks[i]);return new ou(this.pos,this.mark)}}return new Gf(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new ou(n.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ou(n.pos,e.markFromJSON(n.mark))}}Si.jsonID("addNodeMark",ou);class Gf extends Si{constructor(e,n){super(),this.pos=e,this.mark=n}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ir.fail("No node at mark step's position");let r=n.type.create(n.attrs,null,this.mark.removeFromSet(n.marks));return Ir.fromReplace(e,this.pos,this.pos+1,new We(Ce.from(r),0,n.isLeaf?0:1))}invert(e){let n=e.nodeAt(this.pos);return!n||!this.mark.isInSet(n.marks)?this:new ou(this.pos,this.mark)}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Gf(n.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,n){if(typeof n.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Gf(n.pos,e.markFromJSON(n.mark))}}Si.jsonID("removeNodeMark",Gf);class Hr extends Si{constructor(e,n,r,i=!1){super(),this.from=e,this.to=n,this.slice=r,this.structure=i}apply(e){return this.structure&&b4(e,this.from,this.to)?Ir.fail("Structure replace would overwrite content"):Ir.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new So([this.from,this.to-this.from,this.slice.size])}invert(e){return new Hr(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return n.deletedAcross&&r.deletedAcross?null:new Hr(n.pos,Math.max(n.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof Hr)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let n=this.slice.size+e.slice.size==0?We.empty:new We(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Hr(this.from,this.to+(e.to-e.from),n,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let n=this.slice.size+e.slice.size==0?We.empty:new We(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Hr(e.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Hr(n.from,n.to,We.fromJSON(e,n.slice),!!n.structure)}}Si.jsonID("replace",Hr);class Yr extends Si{constructor(e,n,r,i,o,s,a=!1){super(),this.from=e,this.to=n,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(e){if(this.structure&&(b4(e,this.from,this.gapFrom)||b4(e,this.gapTo,this.to)))return Ir.fail("Structure gap-replace would overwrite content");let n=e.slice(this.gapFrom,this.gapTo);if(n.openStart||n.openEnd)return Ir.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,n.content);return r?Ir.fromReplace(e,this.from,this.to,r):Ir.fail("Content does not fit in gap")}getMap(){return new So([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let n=this.gapTo-this.gapFrom;return new Yr(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let n=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||o>r.pos?null:new Yr(n.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Yr(n.from,n.to,n.gapFrom,n.gapTo,We.fromJSON(e,n.slice),n.insert,!!n.structure)}}Si.jsonID("replaceAround",Yr);function b4(t,e,n){let r=t.resolve(e),i=n-e,o=r.depth;for(;i>0&&o>
vendor: 1,070 bytes, line 4961
49610&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function AMe(t,e,n,r){let i=[],o=[],s,a;t.doc.nodesBetween(e,n,(l,c,u)=>{if(!l.isInline)return;let d=l.marks;if(!r.isInSet(d)&&u.type.allowsMarkType(r.type)){let f=Math.max(c,e),h=Math.min(c+l.nodeSize,n),p=r.addToSet(d);for(let m=0;m<d.length;m++)d[m].isInSet(p)||(s&&s.to==f&&s.mark.eq(d[m])?s.to=h:i.push(s=new Fs(f,h,d[m])));a&&a.to==f?a.to=h:o.push(a=new iu(f,h,r))}}),i.forEach(l=>t.step(l)),o.forEach(l=>t.step(l))}function IMe(t,e,n,r){let i=[],o=0;t.doc.nodesBetween(e,n,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof YT){let c=s.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,n);for(let u=0;u<l.length;u++){let d=l[u],f;for(let h=0;h<i.length;h++){let p=i[h];p.step==o-1&&d.eq(i[h].style)&&(f=p)}f?(f.to=c,f.step=o):i.push({style:d,from:Math.max(a,e),to:c,step:o})}}}
vendor: 4,492 bytes, lines 4961-4962
4961),i.forEach(s=>t.step(new Fs(s.from,s.to,s.style)))}function dO(t,e,n,r=n.contentMatch,i=!0){let o=t.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,d=r.matchType(c.type);if(!d)s.push(new Hr(a,u,We.empty));else{r=d;for(let f=0;f<c.marks.length;f++)n.allowsMarkType(c.marks[f].type)||t.step(new Fs(a,u,c.marks[f]));if(i&&c.isText&&n.whitespace!="pre"){let f,h=/\r?\n|\r/g,p;for(;f=h.exec(c.text);)p||(p=new We(Ce.from(n.schema.text(" ",n.allowedMarks(c.marks))),0,0)),s.push(new Hr(a+f.index,a+f.index+f[0].length,p))}}a=u}if(!r.validEnd){let l=r.fillBefore(Ce.empty,!0);t.replace(a,a,new We(l,0,0))}for(let l=s.length-1;l>=0;l--)t.step(s[l])}function RMe(t,e,n){return(e==0||t.canReplace(e,t.childCount))&&(n==t.childCount||t.canReplace(0,n))}function Eg(t){let n=t.parent.content.cutByIndex(t.startIndex,t.endIndex);for(let r=t.depth,i=0,o=0;;--r){let s=t.$from.node(r),a=t.$from.index(r)+i,l=t.$to.indexAfter(r)-o;if(r<t.depth&&s.canReplace(a,l,n))return r;if(r==0||s.type.spec.isolating||!RMe(s,a,l))break;a&&(i=1),l<s.childCount&&(o=1)}return null}function MMe(t,e,n){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),a=i.after(o+1),l=s,c=a,u=Ce.empty,d=0;for(let p=o,m=!1;p>n;p--)m||r.index(p)>0?(m=!0,u=Ce.from(r.node(p).copy(u)),d++):l--;let f=Ce.empty,h=0;for(let p=o,m=!1;p>n;p--)m||i.after(p+1)<i.end(p)?(m=!0,f=Ce.from(i.node(p).copy(f)),h++):c++;t.step(new Yr(l,c,s,a,new We(u.append(f),d,h),u.size-d,!0))}function fO(t,e,n=null,r=t){let i=kMe(t,e),o=i&&PMe(r,e);return o?i.map(Dz).concat({type:e,attrs:n}).concat(o.map(Dz)):null}function Dz(t){return{type:t,attrs:null}}function kMe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return n.canReplaceWith(r,i,s)?o:null}function PMe(t,e){let{parent:n,startIndex:r,endIndex:i}=t,o=n.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(n.child(c).type);return!l||!l.validEnd?null:s}function OMe(t,e,n){let r=Ce.empty;for(let s=n.length-1;s>=0;s--){if(r.size){let a=n[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=Ce.from(n[s].type.create(n[s].attrs,r))}let i=e.start,o=e.end;t.step(new Yr(i,o,i,o,new We(r,0,0),n.length,!0))}function NMe(t,e,n,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=t.steps.length;t.doc.nodesBetween(e,n,(s,a)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&DMe(t.doc,t.mapping.slice(o).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let h=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);h&&!p?c=!1:!h&&p&&(c=!0)}c===!1&&zQ(t,s,a,o),dO(t,t.mapping.slice(o).map(a,1),r,void 0,c===null);let u=t.mapping.slice(o),d=u.map(a,1),f=u.map(a+s.nodeSize,1);return t.step(new Yr(d,f,d+1,f-1,new We(Ce.from(r.create(l,null,s.marks)),0,0),1,!0)),c===!0&&LQ(t,s,a,o),!1}})}function LQ(t,e,n,r){e.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let l=t.mapping.slice(r).map(n+1+o+s.index);t.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function zQ(t,e,n,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let s=t.mapping.slice(r).map(n+1+o);t.replaceWith(s,s+1,e.type.schema.text(` 4962`))}})}function DMe(t,e,n){let r=t.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,n)}function LMe(t,e,n,r,i){let o=t.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");n||(n=o.type);let s=n.create(r,null,i||o.marks);if(o.isLeaf)return t.replaceWith(e,e+o.nodeSize,s);if(!n.validContent(o.content))throw new RangeError("Invalid content for node type "+n.name);t.step(new Yr(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new We(Ce.from(s),0,0),1,!0))}function Hl(t,e,n=1,r){let i=t.resolve(e),o=i.depth-n,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=n-2;c>o;c--,u--){let d=i.node(c),f=i.index(c);if(d.type.spec.isolating)return!1;let h=d.content.cutByIndex(f,d.childCount),p=r&&r[u+1];p&&(h=h.replaceChild(0,p.type.create(p.attrs)));let m=r&&r[u]||d;if(!d.canReplace(f+1,d.childCount)||!m.type.validContent(h))return!1}
vendor: 12,740 bytes, line 4962
4962let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function zMe(t,e,n=1,r){let i=t.doc.resolve(e),o=Ce.empty,s=Ce.empty;for(let a=i.depth,l=i.depth-n,c=n-1;a>l;a--,c--){o=Ce.from(i.node(a).copy(o));let u=r&&r[c];s=Ce.from(u?u.type.create(u.attrs,s):i.node(a).copy(s))}t.step(new Hr(e,e,new We(o.append(s),n,n),!0))}function cd(t,e){let n=t.resolve(e),r=n.index();return VQ(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(r,r+1)}function VMe(t,e){e.content.size||t.type.compatibleContent(e.type);let n=t.contentMatchAt(t.childCount),{linebreakReplacement:r}=t.type.schema;for(let i=0;i<e.childCount;i++){let o=e.child(i),s=o.type==r?t.type.schema.nodes.text:o.type;if(n=n.matchType(s),!n||!t.type.allowsMarks(o.marks))return!1}return n.validEnd}function VQ(t,e){return!!(t&&e&&!t.isLeaf&&VMe(t,e))}function XT(t,e,n=-1){let r=t.resolve(e);for(let i=r.depth;;i--){let o,s,a=r.index(i);if(i==r.depth?(o=r.nodeBefore,s=r.nodeAfter):n>0?(o=r.node(i+1),a++,s=r.node(i).maybeChild(a)):(o=r.node(i).maybeChild(a-1),s=r.node(i+1)),o&&!o.isTextblock&&VQ(o,s)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=n<0?r.before(i):r.after(i)}}function BMe(t,e,n){let r=null,{linebreakReplacement:i}=t.doc.type.schema,o=t.doc.resolve(e-n),s=o.node().type;if(i&&s.inlineContent){let u=s.whitespace=="pre",d=!!s.contentMatch.matchType(i);u&&!d?r=!1:!u&&d&&(r=!0)}let a=t.steps.length;if(r===!1){let u=t.doc.resolve(e+n);zQ(t,u.node(),u.before(),a)}s.inlineContent&&dO(t,e+n-1,s,o.node().contentMatchAt(o.index()),r==null);let l=t.mapping.slice(a),c=l.map(e-n);if(t.step(new Hr(c,l.map(e+n,-1),We.empty,!0)),r===!0){let u=t.doc.resolve(c);LQ(t,u.node(),u.before(),t.steps.length)}return t}function $Me(t,e,n){let r=t.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),n))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,n))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,n))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function FMe(t,e,n){let r=t.resolve(e);if(!n.content.size)return e;let i=n.content;for(let o=0;o<n.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(n.openStart==0&&n.size?2:1);o++)for(let s=r.depth;s>=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(a>0?1:0),c=r.node(s),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let d=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=d&&c.canReplaceWith(l,l,d[0])}if(u)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function QT(t,e,n=e,r=We.empty){if(e==n&&!r.size)return null;let i=t.resolve(e),o=t.resolve(n);return BQ(i,o,r)?new Hr(e,n,r):new jMe(i,o,r).fit()}function BQ(t,e,n){return!n.openStart&&!n.openEnd&&t.start()==e.start()&&t.parent.canReplace(t.index(),e.index(),n.content)}class jMe{constructor(e,n,r){this.$from=e,this.$to=n,this.unplaced=r,this.frontier=[],this.placed=Ce.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=Ce.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let l=new We(o,s,a);return e>-1?new Yr(r.pos,e,this.$to.pos,this.$to.end(),l,n):l.size||r.pos!=this.$to.pos?new Hr(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let n=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=n.firstChild;if(n.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}n=o.content}for(let n=1;n<=2;n++)for(let r=n==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=UA(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,d=null;if(n==1&&(s?c.matchType(s.type)||(d=c.fillBefore(Ce.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:d};if(n==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=UA(e,n);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new We(e,n+1,Math.max(r,i.size+n>=e.size-r?n+1:0)),!0)}dropNode(){let{content:e,openStart:n,openEnd:r}=this.unplaced,i=UA(e,n);if(i.childCount<=1&&n>0){let o=e.size-n<=n+i.size;this.unplaced=new We(O1(e,n-1,1),n-1,o?n-1:r)}else this.unplaced=new We(O1(e,n,1),n,r)}placeNodes({sliceDepth:e,frontierDepth:n,parent:r,inject:i,wrap:o}){for(;this.depth>n;)this.closeFrontierNode();if(o)for(let m=0;m<o.length;m++)this.openFrontierNode(o[m]);let s=this.unplaced,a=r?r.content:s.content,l=s.openStart-e,c=0,u=[],{match:d,type:f}=this.frontier[n];if(i){for(let m=0;m<i.childCount;m++)u.push(i.child(m));d=d.matchFragment(i)}let h=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let m=a.child(c),g=d.matchType(m.type);if(!g)break;c++,(c>1||l==0||m.content.size)&&(d=g,u.push($Q(m.mark(f.allowedMarks(m.marks)),c==1?l:0,c==a.childCount?h:-1)))}let p=c==a.childCount;p||(h=-1),this.placed=N1(this.placed,n,Ce.from(u)),this.frontier[n].match=d,p&&h<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let m=0,g=a;m<h;m++){let y=g.lastChild;this.frontier.push({type:y.type,match:y.contentMatchAt(y.childCount)}),g=y.content}this.unplaced=p?e==0?We.empty:new We(O1(s.content,e-1,1),e-1,h<0?s.openEnd:e-1):new We(O1(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],n;if(!e.type.isTextblock||!qA(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(n=this.findCloseLevel(this.$to))&&n.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let n=Math.min(this.depth,e.depth);n>=0;n--){let{match:r,type:i}=this.frontier[n],o=n<e.depth&&e.end(n+1)==e.pos+(e.depth-(n+1)),s=qA(e,n,i,r,o);if(s){for(let a=n-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=qA(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:n,fit:s,move:o?e.doc.resolve(e.after(n+1)):e}}}}close(e){let n=this.findCloseLevel(e);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=N1(this.placed,n.depth,n.fit)),e=n.move;for(let r=n.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,n=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=N1(this.placed,this.depth,Ce.from(e.create(n,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let n=this.frontier.pop().match.fillBefore(Ce.empty,!0);n.childCount&&(this.placed=N1(this.placed,this.frontier.length,n))}}function O1(t,e,n){return e==0?t.cutByIndex(n,t.childCount):t.replaceChild(0,t.firstChild.copy(O1(t.firstChild.content,e-1,n)))}function N1(t,e,n){return e==0?t.append(n):t.replaceChild(t.childCount-1,t.lastChild.copy(N1(t.lastChild.content,e-1,n)))}function UA(t,e){for(let n=0;n<e;n++)t=t.firstChild.content;return t}function $Q(t,e,n){if(e<=0)return t;let r=t.content;return e>1&&(r=r.replaceChild(0,$Q(r.firstChild,e-1,r.childCount==1?n-1:0))),e>0&&(r=t.type.contentMatch.fillBefore(r).append(r),n<=0&&(r=r.append(t.type.contentMatch.matchFragment(r).fillBefore(Ce.empty,!0)))),t.copy(r)}function qA(t,e,n,r,i){let o=t.node(e),s=i?t.indexAfter(e):t.index(e);if(s==o.childCount&&!n.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!HMe(n,o.content,s)?a:null}function HMe(t,e,n){for(let r=n;r<e.childCount;r++)if(!t.allowsMarks(e.child(r).marks))return!0;return!1}function UMe(t){return t.spec.defining||t.spec.definingForContent}function qMe(t,e,n,r){if(!r.size)return t.deleteRange(e,n);let i=t.doc.resolve(e),o=t.doc.resolve(n);if(BQ(i,o,r))return t.step(new Hr(e,n,r));let s=jQ(i,o);s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let f=i.depth,h=i.pos-1;f>0;f--,h--){let p=i.node(f).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(f)>-1?a=f:i.before(f)==h&&s.splice(1,0,-f)}let l=s.indexOf(a),c=[],u=r.openStart;for(let f=r.content,h=0;;h++){let p=f.firstChild;if(c.push(p),h==r.openStart)break;f=p.content}for(let f=u-1;f>=0;f--){let h=c[f],p=UMe(h.type);if(p&&!h.sameMarkup(i.node(Math.abs(a)-1)))u=f;else if(p||!h.type.isTextblock)break}for(let f=r.openStart;f>=0;f--){let h=(f+u+1)%(r.openStart+1),p=c[h];if(p)for(let m=0;m<s.length;m++){let g=s[(m+l)%s.length],y=!0;g<0&&(y=!1,g=-g);let b=i.node(g-1),v=i.index(g-1);if(b.canReplaceWith(v,v,p.type,p.marks))return t.replace(i.before(g),y?o.after(g):n,new We(FQ(r.content,0,r.openStart,h),h,r.openEnd))}}let d=t.steps.length;for(let f=s.length-1;f>=0&&(t.replace(e,n,r),!(t.steps.length>d));f--){let h=s[f];h<0||(e=i.before(h),n=o.after(h))}}function FQ(t,e,n,r,i){if(e<n){let o=t.firstChild;t=t.replaceChild(0,o.copy(FQ(o.content,e+1,n,r,o)))}if(e>r){let o=i.contentMatchAt(0),s=o.fillBefore(t).append(t);t=s.append(o.matchFragment(s).fillBefore(Ce.empty,!0))}return t}function WMe(t,e,n,r){if(!r.isInline&&e==n&&t.doc.resolve(e).parent.content.size){let i=$Me(t.doc,e,r.type);i!=null&&(e=n=i)}t.replaceRange(e,n,new We(Ce.from(r),0,0))}function GMe(t,e,n){let r=t.doc.resolve(e),i=t.doc.resolve(n),o=jQ(r,i);for(let s=0;s<o.length;s++){let a=o[s],l=s==o.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return t.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return t.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&n>r.end(s)&&i.end(s)-n!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return t.delete(r.before(s),n);t.delete(e,n)}function jQ(t,e){let n=[],r=Math.min(t.depth,e.depth);for(let i=r;i>=0;i--){let o=t.start(i);if(o<t.pos-(t.depth-i)||e.end(i)>e.pos+(e.depth-i)||t.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==t.depth&&i==e.depth&&t.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&n.push(i)}return n}class Up extends Si{constructor(e,n,r){super(),this.pos=e,this.attr=n,this.value=r}apply(e){let n=e.nodeAt(this.pos);if(!n)return Ir.fail("No node at attribute step's position");let r=Object.create(null);for(let o in n.attrs)r[o]=n.attrs[o];r[this.attr]=this.value;let i=n.type.create(r,null,n.marks);return Ir.fromReplace(e,this.pos,this.pos+1,new We(Ce.from(i),0,n.isLeaf?0:1))}getMap(){return So.empty}invert(e){return new Up(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let n=e.mapResult(this.pos,1);return n.deletedAfter?null:new Up(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Up(n.pos,n.attr,n.value)}}Si.jsonID("attr",Up);class B0 extends Si{constructor(e,n){super(),this.attr=e,this.value=n}apply(e){let n=Object.create(null);for(let i in e.attrs)n[i]=e.attrs[i];n[this.attr]=this.value;let r=e.type.create(n,e.content,e.marks);return Ir.ok(r)}getMap(){return So.empty}invert(e){return new B0(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new B0(n.attr,n.value)}}Si.jsonID("docAttr",B0);let Lm=class extends Error{};Lm=function t(e){let n=Error.call(this,e);return n.__proto__=t.prototype,n};Lm.prototype=Object.create(Error.prototype);Lm.prototype.constructor=Lm;Lm.prototype.name="TransformError";let hO=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new ax}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let n=this.maybeStep(e);if(n.failed)throw new Lm(n.failed);return this}maybeStep(e){let n=e.apply(this.doc);return n.failed||this.addStep(e,n.doc),n}get docChanged(){return this.steps.length>0}changedRange(){let e=1e9,n=-1e9;for(let r=0;r<this.mapping.maps.length;r++){let i=this.mapping.maps[r];
vendor: 10,364 bytes, line 4962
4962r&&(e=i.map(e,1),n=i.map(n,-1)),i.forEach((o,s,a,l)=>{e=Math.min(e,a),n=Math.max(n,l)})}return e==1e9?null:{from:e,to:n}}addStep(e,n){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=n}replace(e,n=e,r=We.empty){let i=QT(this.doc,e,n,r);return i&&this.step(i),this}replaceWith(e,n,r){return this.replace(e,n,new We(Ce.from(r),0,0))}delete(e,n){return this.replace(e,n,We.empty)}insert(e,n){return this.replaceWith(e,e,n)}replaceRange(e,n,r){return qMe(this,e,n,r),this}replaceRangeWith(e,n,r){return WMe(this,e,n,r),this}deleteRange(e,n){return GMe(this,e,n),this}lift(e,n){return MMe(this,e,n),this}join(e,n=1){return BMe(this,e,n),this}wrap(e,n){return OMe(this,e,n),this}setBlockType(e,n=e,r,i=null){return NMe(this,e,n,r,i),this}setNodeMarkup(e,n,r=null,i){return LMe(this,e,n,r,i),this}setNodeAttribute(e,n,r){return this.step(new Up(e,n,r)),this}setDocAttribute(e,n){return this.step(new B0(e,n)),this}addNodeMark(e,n){return this.step(new ou(e,n)),this}removeNodeMark(e,n){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(n instanceof xn)n.isInSet(r.marks)&&this.step(new Gf(e,n));else{let i=r.marks,o,s=[];for(;o=n.isInSet(i);)s.push(new Gf(e,o)),i=o.removeFromSet(i);for(let a=s.length-1;a>=0;a--)this.step(s[a])}return this}split(e,n=1,r){return zMe(this,e,n,r),this}addMark(e,n,r){return AMe(this,e,n,r),this}removeMark(e,n,r){return IMe(this,e,n,r),this}clearIncompatible(e,n,r){return dO(this,e,n,r),this}};const WA=Object.create(null);let vt=class{constructor(e,n,r){this.$anchor=e,this.$head=n,this.ranges=r||[new HQ(e.min(n),e.max(n))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let n=0;n<e.length;n++)if(e[n].$from.pos!=e[n].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,n=We.empty){let r=n.content.lastChild,i=null;for(let a=0;a<n.openEnd;a++)i=r,r=r.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),a?We.empty:n),a==0&&Vz(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,n){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],l=e.mapping.slice(r),c=l.map(s.pos),u=l.map(a.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,n),Vz(e,r,n.isInline?-1:1))}}static findFrom(e,n,r=!1){let i=e.parent.inlineContent?new mt(e):ep(e.node(0),e.parent,e.pos,e.index(),n,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let s=n<0?ep(e.node(0),e.node(o),e.before(o+1),e.index(o),n,r):ep(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,n,r);if(s)return s}return null}static near(e,n=1){return this.findFrom(e,n)||this.findFrom(e,-n)||new Oo(e.node(0))}static atStart(e){return ep(e,e,0,0,1)||new Oo(e)}static atEnd(e){return ep(e,e,e.content.size,e.childCount,-1)||new Oo(e)}static fromJSON(e,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=WA[n.type];if(!r)throw new RangeError(`No selection type ${n.type} defined`);return r.fromJSON(e,n)}static jsonID(e,n){if(e in WA)throw new RangeError("Duplicate use of selection JSON ID "+e);return WA[e]=n,n.prototype.jsonID=e,n}getBookmark(){return mt.between(this.$anchor,this.$head).getBookmark()}};vt.prototype.visible=!0;class HQ{constructor(e,n){this.$from=e,this.$to=n}}let Lz=!1;function zz(t){!Lz&&!t.parent.inlineContent&&(Lz=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+t.parent.type.name+")"))}class mt extends vt{constructor(e,n=e){zz(e),zz(n),super(e,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,n){let r=e.resolve(n.map(this.head));if(!r.parent.inlineContent)return vt.near(r);let i=e.resolve(n.map(this.anchor));return new mt(i.parent.inlineContent?i:r,r)}replace(e,n=We.empty){if(super.replace(e,n),n==We.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof mt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new JT(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new mt(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){let i=e.resolve(n);return new this(i,r==n?i:e.resolve(r))}static between(e,n,r){let i=e.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let o=vt.findFrom(n,r,!0)||vt.findFrom(n,-r,!0);if(o)n=o.$head;else return vt.near(n,r)}return e.parent.inlineContent||(i==0?e=n:(e=(vt.findFrom(e,-r,!0)||vt.findFrom(e,r,!0)).$anchor,e.pos<n.pos!=i<0&&(e=n))),new mt(e,n)}}vt.jsonID("text",mt);class JT{constructor(e,n){this.anchor=e,this.head=n}map(e){return new JT(e.map(this.anchor),e.map(this.head))}resolve(e){return mt.between(e.resolve(this.anchor),e.resolve(this.head))}}class lt extends vt{constructor(e){let n=e.nodeAfter,r=e.node(0).resolve(e.pos+n.nodeSize);super(e,r),this.node=n}map(e,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),o=e.resolve(i);return r?vt.near(o):new lt(o)}content(){return new We(Ce.from(this.node),0,0)}eq(e){return e instanceof lt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new pO(this.anchor)}static fromJSON(e,n){if(typeof n.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new lt(e.resolve(n.anchor))}static create(e,n){return new lt(e.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}lt.prototype.visible=!1;vt.jsonID("node",lt);class pO{constructor(e){this.anchor=e}map(e){let{deleted:n,pos:r}=e.mapResult(this.anchor);return n?new JT(r,r):new pO(r)}resolve(e){let n=e.resolve(this.anchor),r=n.nodeAfter;return r&<.isSelectable(r)?new lt(n):vt.near(n)}}class Oo extends vt{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,n=We.empty){if(n==We.empty){e.delete(0,e.doc.content.size);let r=vt.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,n)}toJSON(){return{type:"all"}}static fromJSON(e){return new Oo(e)}map(e){return new Oo(e)}eq(e){return e instanceof Oo}getBookmark(){return KMe}}vt.jsonID("all",Oo);const KMe={map(){return this},resolve(t){return new Oo(t)}};function ep(t,e,n,r,i,o=!1){if(e.inlineContent)return mt.create(t,n);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let a=e.child(s);if(a.isAtom){if(!o&<.isSelectable(a))return lt.create(t,n-(i<0?a.nodeSize:0))}else{let l=ep(t,a,n+i,i<0?a.childCount:0,i,o);if(l)return l}n+=a.nodeSize*i}return null}function Vz(t,e,n){let r=t.steps.length-1;if(r<e)return;let i=t.steps[r];if(!(i instanceof Hr||i instanceof Yr))return;let o=t.mapping.maps[r],s;o.forEach((a,l,c,u)=>{s==null&&(s=u)}),t.setSelection(vt.near(t.doc.resolve(s),n))}const Bz=1,h2=2,$z=4;class YMe extends hO{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|Bz)&~h2,this.storedMarks=null,this}get selectionSet(){return(this.updated&Bz)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=h2,this}ensureMarks(e){return xn.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&h2)>0}addStep(e,n){super.addStep(e,n),this.updated=this.updated&~h2,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,n=!0){let r=this.selection;return n&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||xn.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,n,r){let i=this.doc.type.schema;if(n==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=n),!e)return this.deleteRange(n,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(n);o=r==n?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(n,r,i.text(e,o)),!this.selection.empty&&this.selection.to==n+e.length&&this.setSelection(vt.near(this.selection.$to)),this}}setMeta(e,n){return this.meta[typeof e=="string"?e:e.key]=n,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=$z,this}get scrolledIntoView(){return(this.updated&$z)>0}}function Fz(t,e){return!e||!t?t:t.bind(e)}class D1{constructor(e,n,r){this.name=e,this.init=Fz(n.init,r),this.apply=Fz(n.apply,r)}}const XMe=[new D1("doc",{init(t){return t.doc||t.schema.topNodeType.createAndFill()},apply(t){return t.doc}}),new D1("selection",{init(t,e){return t.selection||vt.atStart(e.doc)},apply(t){return t.selection}}),new D1("storedMarks",{init(t){return t.storedMarks||null},apply(t,e,n,r){return r.selection.$cursor?t.storedMarks:null}}),new D1("scrollToSelection",{init(){return 0},apply(t,e){return t.scrolledIntoView?e+1:e}})];class GA{constructor(e,n){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=XMe.slice(),n&&n.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new D1(r.key,r.spec.state,r))})}}class vp{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}
vendor: 4,629 bytes, line 4962
4962apply(e){return this.applyTransaction(e).state}filterTransaction(e,n=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=n){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let n=[e],r=this.applyInner(e),i=null;for(;;){let o=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=i?i[s].n:0,c=i?i[s].state:this,u=l<n.length&&a.spec.appendTransaction.call(a,l?n.slice(l):n,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(let d=0;d<this.config.plugins.length;d++)i.push(d<s?{state:r,n:n.length}:{state:this,n:0})}n.push(u),r=r.applyInner(u),o=!0}i&&(i[s]={state:r,n:n.length})}}if(!o)return{state:r,transactions:n}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let n=new vp(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];n[o.name]=o.apply(e,this[o.name],this,n)}return n}get tr(){return new YMe(this)}static create(e){let n=new GA(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new vp(n);for(let i=0;i<n.fields.length;i++)r[n.fields[i].name]=n.fields[i].init(e,r);return r}reconfigure(e){let n=new GA(this.schema,e.plugins),r=n.fields,i=new vp(n);for(let o=0;o<r.length;o++){let s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(e,i)}return i}toJSON(e){let n={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(n.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(n[r]=o.toJSON.call(i,this[i.key]))}return n}static fromJSON(e,n,r){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new GA(e.schema,e.plugins),o=new vp(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=Au.fromJSON(e.schema,n.doc);else if(s.name=="selection")o.selection=vt.fromJSON(o.doc,n.selection);else if(s.name=="storedMarks")n.storedMarks&&(o.storedMarks=n.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,a)){o[s.name]=c.fromJSON.call(l,e,n[a],o);return}}o[s.name]=s.init(e,o)}}),o}}function UQ(t,e,n){for(let r in t){let i=t[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=UQ(i,e,{})),n[r]=i}return n}class Li{constructor(e){this.spec=e,this.props={},e.props&&UQ(e.props,this,this.props),this.key=e.key?e.key.key:qQ("plugin")}getState(e){return e[this.key]}}const KA=Object.create(null);function qQ(t){return t in KA?t+"$"+ ++KA[t]:(KA[t]=0,t+"$")}class lo{constructor(e="key"){this.key=qQ(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const mO=(t,e)=>t.selection.empty?!1:(e&&e(t.tr.deleteSelection().scrollIntoView()),!0);function WQ(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("backward",t):n.parentOffset>0)?null:n}const GQ=(t,e,n)=>{let r=WQ(t,n);if(!r)return!1;let i=gO(r);if(!i){let s=r.blockRange(),a=s&&Eg(s);return a==null?!1:(e&&e(t.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(nJ(t,i,e,-1))return!0;if(r.parent.content.size==0&&(zm(o,"end")||lt.isSelectable(o)))for(let s=r.depth;;s--){let a=QT(t.doc,r.before(s),r.after(s),We.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=t.tr.step(a);l.setSelection(zm(o,"end")?vt.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):lt.create(l.doc,i.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},QMe=(t,e,n)=>{let r=WQ(t,n);if(!r)return!1;let i=gO(r);return i?KQ(t,i,e):!1},JMe=(t,e,n)=>{let r=XQ(t,n);if(!r)return!1;let i=yO(r);return i?KQ(t,i,e):!1};function KQ(t,e,n){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=QT(t.doc,o,l,We.empty);if(!c||c.from!=o||c instanceof Hr&&c.slice.size>=l-o)return!1;if(n){let u=t.tr.step(c);u.setSelection(mt.create(u.doc,o)),n(u.scrollIntoView())}return!0}function zm(t,e,n=!1){for(let r=t;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;
vendor: 5,759 bytes, lines 4962-4963
4962if(n&&r.childCount!=1)return!1}return!1}const YQ=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("backward",t):r.parentOffset>0)return!1;o=gO(r)}let s=o&&o.nodeBefore;return!s||!lt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(lt.create(t.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function gO(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){if(t.index(e)>0)return t.doc.resolve(t.before(e+1));if(t.node(e).type.spec.isolating)break}return null}function XQ(t,e){let{$cursor:n}=t.selection;return!n||(e?!e.endOfTextblock("forward",t):n.parentOffset<n.parent.content.size)?null:n}const QQ=(t,e,n)=>{let r=XQ(t,n);if(!r)return!1;let i=yO(r);if(!i)return!1;let o=i.nodeAfter;if(nJ(t,i,e,1))return!0;if(r.parent.content.size==0&&(zm(o,"start")||lt.isSelectable(o))){let s=QT(t.doc,r.before(),r.after(),We.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=t.tr.step(s);a.setSelection(zm(o,"start")?vt.findFrom(a.doc.resolve(a.mapping.map(i.pos)),1):lt.create(a.doc,a.mapping.map(i.pos))),e(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(t.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},JQ=(t,e,n)=>{let{$head:r,empty:i}=t.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(n?!n.endOfTextblock("forward",t):r.parentOffset<r.parent.content.size)return!1;o=yO(r)}let s=o&&o.nodeAfter;return!s||!lt.isSelectable(s)?!1:(e&&e(t.tr.setSelection(lt.create(t.doc,o.pos)).scrollIntoView()),!0)};function yO(t){if(!t.parent.type.spec.isolating)for(let e=t.depth-1;e>=0;e--){let n=t.node(e);if(t.index(e)+1<n.childCount)return t.doc.resolve(t.after(e+1));if(n.type.spec.isolating)break}return null}const ZMe=(t,e)=>{let n=t.selection,r=n instanceof lt,i;if(r){if(n.node.isTextblock||!cd(t.doc,n.from))return!1;i=n.from}else if(i=XT(t.doc,n.from,-1),i==null)return!1;if(e){let o=t.tr.join(i);r&&o.setSelection(lt.create(o.doc,i-t.doc.resolve(i).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},eke=(t,e)=>{let n=t.selection,r;if(n instanceof lt){if(n.node.isTextblock||!cd(t.doc,n.to))return!1;r=n.to}else if(r=XT(t.doc,n.to,1),r==null)return!1;return e&&e(t.tr.join(r).scrollIntoView()),!0},tke=(t,e)=>{let{$from:n,$to:r}=t.selection,i=n.blockRange(r),o=i&&Eg(i);return o==null?!1:(e&&e(t.tr.lift(i,o).scrollIntoView()),!0)},ZQ=(t,e)=>{let{$head:n,$anchor:r}=t.selection;return!n.parent.type.spec.code||!n.sameParent(r)?!1:(e&&e(t.tr.insertText(` 4963`).scrollIntoView()),!0)};function vO(t){for(let e=0;e<t.edgeCount;e++){let{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}const nke=(t,e)=>{let{$head:n,$anchor:r}=t.selection;if(!n.parent.type.spec.code||!n.sameParent(r))return!1;let i=n.node(-1),o=n.indexAfter(-1),s=vO(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(e){let a=n.after(),l=t.tr.replaceWith(a,a,s.createAndFill());l.setSelection(vt.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},eJ=(t,e)=>{let n=t.selection,{$from:r,$to:i}=n;if(n instanceof Oo||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=vO(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=t.tr.insert(s,o.createAndFill());a.setSelection(mt.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},tJ=(t,e)=>{let{$cursor:n}=t.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let o=n.before();if(Hl(t.doc,o))return e&&e(t.tr.split(o).scrollIntoView()),!0}let r=n.blockRange(),i=r&&Eg(r);return i==null?!1:(e&&e(t.tr.lift(r,i).scrollIntoView()),!0)};function rke(t){return(e,n)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof lt&&e.selection.node.isBlock)return!r.parentOffset||!Hl(e.doc,r.pos)?!1:(n&&n(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],s,a,l=!1,c=!1;for(let h=r.depth;;h--)if(r.node(h).isBlock){l=r.end(h)==r.pos+(r.depth-h),c=r.start(h)==r.pos-(r.depth-h),a=vO(r.node(h-1).contentMatchAt(r.indexAfter(h-1))),o.unshift(l&&a?{type:a}:null),s=h;break}else{if(h==1)return!1;o.unshift(null)}let u=e.tr;(e.selection instanceof mt||e.selection instanceof Oo)&&u.deleteSelection();let d=u.mapping.map(r.pos),f=Hl(u.doc,d,o.length,o);if(f||(o[0]=a?{type:a}:null,f=Hl(u.doc,d,o.length,o)),!f)return!1;if(u.split(d,o.length,o),!l&&c&&r.node(s).type!=a){let h=u.mapping.map(r.before(s)),p=u.doc.resolve(h);a&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(r.before(s)),a)}return n&&n(u.scrollIntoView()),!0}}const ike=rke(),oke=(t,e)=>{let{$from:n,to:r}=t.selection,i,o=n.sharedDepth(r);return o==0?!1:(i=n.before(o),e&&e(t.tr.setSelection(lt.create(t.doc,i))),!0)};function ske(t,e,n){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(n&&n(t.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||cd(t.doc,e.pos))?!1:(n&&n(t.tr.join(e.pos).scrollIntoView()),!0)}function nJ(t,e,n,r){let i=e.nodeBefore,o=e.nodeAfter,s,a,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&ske(t,e,n))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(s[0]||o.type).validEnd){if(n){let h=e.pos+o.nodeSize,p=Ce.empty;for(let y=s.length-1;y>=0;y--)p=Ce.from(s[y].create(null,p));p=Ce.from(i.copy(p));let m=t.tr.step(new Yr(e.pos-1,h,e.pos,h,new We(p,1,0),s.length,!0)),g=m.doc.resolve(h+2*s.length);g.nodeAfter&&g.nodeAfter.type==i.type&&cd(m.doc,g.pos)&&m.join(g.pos),n(m.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:vt.findFrom(e,1),d=u&&u.$from.blockRange(u.$to),f=d&&Eg(
vendor: 4,851 bytes, line 4963
4963d);if(f!=null&&f>=e.depth)return n&&n(t.tr.lift(d,f).scrollIntoView()),!0;if(c&&zm(o,"start",!0)&&zm(i,"end")){let h=i,p=[];for(;p.push(h),!h.isTextblock;)h=h.lastChild;let m=o,g=1;for(;!m.isTextblock;m=m.firstChild)g++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(n){let y=Ce.empty;for(let v=p.length-1;v>=0;v--)y=Ce.from(p[v].copy(y));let b=t.tr.step(new Yr(e.pos-p.length,e.pos+o.nodeSize,e.pos+g,e.pos+o.nodeSize-g,new We(y,p.length,0),0,!0));n(b.scrollIntoView())}return!0}}return!1}function rJ(t){return function(e,n){let r=e.selection,i=t<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(n&&n(e.tr.setSelection(mt.create(e.doc,t<0?i.start(o):i.end(o)))),!0):!1}}const ake=rJ(-1),lke=rJ(1);function cke(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o),a=s&&fO(s,t,e);return a?(r&&r(n.tr.wrap(s,a).scrollIntoView()),!0):!1}}function jz(t,e=null){return function(n,r){let i=!1;for(let o=0;o<n.selection.ranges.length&&!i;o++){let{$from:{pos:s},$to:{pos:a}}=n.selection.ranges[o];n.doc.nodesBetween(s,a,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(t,e)))if(l.type==t)i=!0;else{let u=n.doc.resolve(c),d=u.index();i=u.parent.canReplaceWith(d,d+1,t)}})}if(!i)return!1;if(r){let o=n.tr;for(let s=0;s<n.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=n.selection.ranges[s];o.setBlockType(a,l,t,e)}r(o.scrollIntoView())}return!0}}function bO(...t){return function(e,n,r){for(let i=0;i<t.length;i++)if(t[i](e,n,r))return!0;return!1}}bO(mO,GQ,YQ);bO(mO,QQ,JQ);bO(ZQ,eJ,tJ,ike);typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function uke(t,e=null){return function(n,r){let{$from:i,$to:o}=n.selection,s=i.blockRange(o);if(!s)return!1;let a=r?n.tr:null;return dke(a,s,t,e)?(r&&r(a.scrollIntoView()),!0):!1}}function dke(t,e,n,r=null){let i=!1,o=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(n)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);o=new ox(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new ox(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let a=fO(o,n,r,e);return a?(t&&fke(t,e,a,i,n),!0):!1}function fke(t,e,n,r,i){let o=Ce.empty;for(let u=n.length-1;u>=0;u--)o=Ce.from(n[u].type.create(n[u].attrs,o));t.step(new Yr(e.start-(r?2:0),e.end,e.start,e.end,new We(o,0,0),n.length,!0));let s=0;for(let u=0;u<n.length;u++)n[u].type==i&&(s=u+1);let a=n.length-s,l=e.start+n.length-(r?2:0),c=e.parent;for(let u=e.startIndex,d=e.endIndex,f=!0;u<d;u++,f=!1)!f&&Hl(t.doc,l,a)&&(t.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return t}function hke(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==t);return o?n?r.node(o.depth-1).type==t?pke(e,n,t,o):mke(e,n,o):!0:!1}}function pke(t,e,n,r){let i=t.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new Yr(o-1,s,o,s,new We(Ce.from(n.create(null,r.parent.copy())),1,0),1,!0)),r=new ox(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const a=Eg(r);if(a==null)return!1;i.lift(r,a);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return cd(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function mke(t,e,n){let r=t.tr,i=n.parent;for(let h=n.end,p=n.endIndex-1,m=n.startIndex;p>m;p--)h-=i.child(p).nodeSize,r.delete(h-1,h+1);let o=r.doc.resolve(n.start),s=o.nodeAfter;if(r.mapping.map(n.end)!=n.start+o.nodeAfter.nodeSize)return!1;let a=n.startIndex==0,l=n.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?Ce.empty:Ce.from(i))))return!1;let d=o.pos,f=d+s.nodeSize;return r.step(new Yr(d-(a?1:0),f+(l?1:0),d+1,f-1,new We((a?Ce.empty:Ce.from(i.copy(Ce.empty))).append(l?Ce.empty:Ce.from(i.copy(Ce.empty))),a?0:1,l?0:1),a?0:1)),e(r.scrollIntoView()),!0}function gke(t){return function(e,n){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==t);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=t)return!1;if(n){let c=l.lastChild&&l.lastChild.type==a.type,u=Ce.from(c?t.create():null),d=new We(Ce.from(t.create(null,Ce.from(a.type.create(null,u)))),c?3:1,0),f=o.start,h=o.end;n(e.tr.step(new Yr(f-(c?3:1),h,f,h,d,1,!0)).scrollIntoView())}return!0}}const ri=function(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e},Vm=function(t){let e=t.assignedSlot||t.parentNode;return e&&e.nodeType==11?e.host:e};let w4=null;const bl=function(t,e,n){let r=w4||(w4=document.createRange());return r.setEnd(t,n??t.nodeValue.length),r.setStart(t,e||0),r},yke=function(){w4=null},Kf=function(t,e,n,r){return n&&(Hz(t,e,n,r,-1)||Hz(t,e,n,r,1))},vke=/^(img|br|input|textarea|hr)$/i;function Hz(t,e,n,r,i){for(var o;;){if(t==n&&e==r)return!0;
vendor: 6,632 bytes, line 4963
4963if(e==(i<0?0:ls(t))){let s=t.parentNode;if(!s||s.nodeType!=1||Gv(t)||vke.test(t.nodeName)||t.contentEditable=="false")return!1;e=ri(t)+(i<0?0:1),t=s}else if(t.nodeType==1){let s=t.childNodes[e+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((o=s.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=i;else return!1;else t=s,e=i<0?ls(t):0}else return!1}}function ls(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function bke(t,e){for(;;){if(t.nodeType==3&&e)return t;if(t.nodeType==1&&e>0){if(t.contentEditable=="false")return null;t=t.childNodes[e-1],e=ls(t)}else if(t.parentNode&&!Gv(t))e=ri(t),t=t.parentNode;else return null}}function wke(t,e){for(;;){if(t.nodeType==3&&e<t.nodeValue.length)return t;if(t.nodeType==1&&e<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[e],e=0}else if(t.parentNode&&!Gv(t))e=ri(t)+1,t=t.parentNode;else return null}}function Ske(t,e,n){for(let r=e==0,i=e==ls(t);r||i;){if(t==n)return!0;let o=ri(t);if(t=t.parentNode,!t)return!1;r=r&&o==0,i=i&&o==ls(t)}}function Gv(t){let e;for(let n=t;n&&!(e=n.pmViewDesc);n=n.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==t||e.contentDOM==t)}const ZT=function(t){return t.focusNode&&Kf(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)};function Ud(t,e){let n=document.createEvent("Event");return n.initEvent("keydown",!0,!0),n.keyCode=t,n.key=n.code=e,n}function xke(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Eke(t,e,n){if(t.caretPositionFromPoint)try{let r=t.caretPositionFromPoint(e,n);if(r)return{node:r.offsetNode,offset:Math.min(ls(r.offsetNode),r.offset)}}catch{}if(t.caretRangeFromPoint){let r=t.caretRangeFromPoint(e,n);if(r)return{node:r.startContainer,offset:Math.min(ls(r.startContainer),r.startOffset)}}}const Ua=typeof navigator<"u"?navigator:null,Uz=typeof document<"u"?document:null,ud=Ua&&Ua.userAgent||"",S4=/Edge\/(\d+)/.exec(ud),iJ=/MSIE \d/.exec(ud),x4=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ud),to=!!(iJ||x4||S4),Iu=iJ?document.documentMode:x4?+x4[1]:S4?+S4[1]:0,ys=!to&&/gecko\/(\d+)/i.test(ud);ys&&+(/Firefox\/(\d+)/.exec(ud)||[0,0])[1];const E4=!to&&/Chrome\/(\d+)/.exec(ud),li=!!E4,oJ=E4?+E4[1]:0,bi=!to&&!!Ua&&/Apple Computer/.test(Ua.vendor),Bm=bi&&(/Mobile\/\w+/.test(ud)||!!Ua&&Ua.maxTouchPoints>2),Qo=Bm||(Ua?/Mac/.test(Ua.platform):!1),sJ=Ua?/Win/.test(Ua.platform):!1,Nl=/Android \d/.test(ud),Kv=!!Uz&&"webkitFontSmoothing"in Uz.documentElement.style,Tke=Kv?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function Cke(t){let e=t.defaultView&&t.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.documentElement.clientWidth,top:0,bottom:t.documentElement.clientHeight}}function hl(t,e){return typeof t=="number"?t:t[e]}function _ke(t){let e=t.getBoundingClientRect(),n=e.width/t.offsetWidth||1,r=e.height/t.offsetHeight||1;return{left:e.left,right:e.left+t.clientWidth*n,top:e.top,bottom:e.top+t.clientHeight*r}}function qz(t,e,n){let r=t.someProp("scrollThreshold")||0,i=t.someProp("scrollMargin")||5,o=t.dom.ownerDocument;for(let s=n||t.dom;s;){if(s.nodeType!=1){s=Vm(s);continue}let a=s,l=a==o.body,c=l?Cke(o):_ke(a),u=0,d=0;if(e.top<c.top+hl(r,"top")?d=-(c.top-e.top+hl(i,"top")):e.bottom>c.bottom-hl(r,"bottom")&&(d=e.bottom-e.top>c.bottom-c.top?e.top+hl(i,"top")-c.top:e.bottom-c.bottom+hl(i,"bottom")),e.left<c.left+hl(r,"left")?u=-(c.left-e.left+hl(i,"left")):e.right>c.right-hl(r,"right")&&(u=e.right-c.right+hl(i,"right")),u||d)if(l)o.defaultView.scrollBy(u,d);else{let h=a.scrollLeft,p=a.scrollTop;d&&(a.scrollTop+=d),u&&(a.scrollLeft+=u);let m=a.scrollLeft-h,g=a.scrollTop-p;e={left:e.left-m,top:e.top-g,right:e.right-m,bottom:e.bottom-g}}let f=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(f))break;s=f=="absolute"?s.offsetParent:Vm(s)}}function Ake(t){let e=t.dom.getBoundingClientRect(),n=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,s=n+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=t.root.elementFromPoint(o,s);if(!a||a==t.dom||!t.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=n-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:aJ(t.dom)}}function aJ(t){let e=[],n=t.ownerDocument;for(let r=t;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),t!=n);r=Vm(r));return e}function Ike({refDOM:t,refTop:e,stack:n}){let r=t?t.getBoundingClientRect().top:0;lJ(n,r==0?0:r-e)}function lJ(t,e){for(let n=0;n<t.length;n++){let{dom:r,top:i,left:o}=t[n];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}let Fh=null;function Rke(t){if(t.setActive)return t.setActive();if(Fh)return t.focus(Fh);let e=aJ(t);t.focus(Fh==null?{get preventScroll(){return Fh={preventScroll:!0},!0}}:void 0),Fh||(Fh=!1,lJ(e,0))}function cJ(t,e){let n,r=2e8,i,o=0,s=e.top,a=e.top,l,c;for(let u=t.firstChild,d=0;u;u=u.nextSibling,d++){let f;if(u.nodeType==1)f=u.getClientRects();else if(u.nodeType==3)f=bl(u).getClientRects();else continue;for(let h=0;h<f.length;h++){let p=f[h];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let m=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(m<r){n=u,r=m,i=m&&n.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&m&&(o=d+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!n&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(o=d+1)}}return!n&&l&&(n=l,i=c,r=0),n&&n.nodeType==3?Mke(n,i):!n||r&&n.nodeType==1?{node:t,offset:o}:cJ(n,i)}function Mke(t,e){let n=t.nodeValue.length,r=document.createRange(),i;for(let o=0;o<n;o++){r.setEnd(t,o+1),r.setStart(t,o);let s=kc(r,1);if(s.top!=s.bottom&&wO(e,s)){i={node:t,offset:o+(e.left>=(s.left+s.right)/2?1:0)};break}}return r.detach(),i||{node:t,offset:0}}function wO(t,e){return t.left>=e.left-1&&t.left<=e.right+1&&t.top>=e.top-1&&t.top<=e.bottom+1}function kke(t,e){let n=t.parentNode;return n&&/^li$/i.test(n.nodeName)&&e.left<t.getBoundingClientRect().left?n:t}function Pke(t,e,n){let{node:r,offset:i}=cJ(e,n),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&n.left>(s.left+s.right)/2?1:-1}return t.docView.posFromDOM(r,i,o)}function Oke(t,e,n,r){let i=-1;for(let o=e,s=!1;o!=t.dom;){let a=t.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(a.dom.nodeName)&&(!s&&l.left>r.left||l.top>
vendor: 4,384 bytes, line 4963
4963r.top?i=a.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=a.posAfter),s=!0),!a.contentDOM&&i<0&&!a.node.isText))return(a.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return i>-1?i:t.docView.posFromDOM(e,n,-1)}function uJ(t,e,n){let r=t.childNodes.length;if(r&&n.top<n.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-n.top)/(n.bottom-n.top))-2)),o=i;;){let s=t.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(wO(e,c))return uJ(s,e,c)}}if((o=(o+1)%r)==i)break}return t}function Nke(t,e){let n=t.dom.ownerDocument,r,i=0,o=Eke(n,e.left,e.top);o&&({node:r,offset:i}=o);let s=(t.root.elementFromPoint?t.root:n).elementFromPoint(e.left,e.top),a;if(!s||!t.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=t.dom.getBoundingClientRect();if(!wO(e,c)||(s=uJ(t.dom,e,c),!s))return null}if(bi)for(let c=s;r&&c;c=Vm(c))c.draggable&&(r=void 0);if(s=kke(s,e),r){if(ys&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],d;u.nodeName=="IMG"&&(d=u.getBoundingClientRect()).right<=e.left&&d.bottom>e.top&&i++}let c;Kv&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==t.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=t.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=Oke(t,r,i,e))}a==null&&(a=Pke(t,s,e));let l=t.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function Wz(t){return t.top<t.bottom||t.left<t.right}function kc(t,e){let n=t.getClientRects();if(n.length){let r=n[e<0?0:n.length-1];if(Wz(r))return r}return Array.prototype.find.call(n,Wz)||t.getBoundingClientRect()}const Dke=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function dJ(t,e,n){let{node:r,offset:i,atom:o}=t.docView.domFromPos(e,n<0?-1:1),s=Kv||ys;if(r.nodeType==3)if(s&&(Dke.test(r.nodeValue)||(n<0?!i:i==r.nodeValue.length))){let l=kc(bl(r,i,i),n);if(ys&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let c=kc(bl(r,i-1,i-1),-1);if(c.top==l.top){let u=kc(bl(r,i,i+1),-1);if(u.top!=l.top)return a1(u,u.left<c.left)}}return l}else{let l=i,c=i,u=n<0?1:-1;return n<0&&!i?(c++,u=-1):n>=0&&i==r.nodeValue.length?(l--,u=1):n<0?l--:c++,a1(kc(bl(r,l,c),u),u<0)}if(!t.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(n<0||i==ls(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return YA(l.getBoundingClientRect(),!1)}if(o==null&&i<ls(r)){let l=r.childNodes[i];if(l.nodeType==1)return YA(l.getBoundingClientRect(),!0)}return YA(r.getBoundingClientRect(),n>=0)}if(o==null&&i&&(n<0||i==ls(r))){let l=r.childNodes[i-1],c=l.nodeType==3?bl(l,ls(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return a1(kc(c,1),!1)}if(o==null&&i<ls(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?bl(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return a1(kc(c,-1),!0)}return a1(kc(r.nodeType==3?bl(r):r,-n),n>=0)}function a1(t,e){if(t.width==0)return t;let n=e?t.left:t.right;return{top:t.top,bottom:t.bottom,left:n,right:n}}function YA(t,e){if(t.height==0)return t;let n=e?t.top:t.bottom;return{top:n,bottom:n,left:t.left,right:t.right}}function fJ(t,e,n){let r=t.state,i=t.root.activeElement;r!=e&&t.updateState(e),i!=t.dom&&t.focus();try{return n()}finally{r!=e&&t.updateState(r),i!=t.dom&&i&&i.focus()}}function Lke(t,e,n){let r=e.selection,i=n=="up"?r.$from:r.$to;return fJ(t,e,()=>{let{node:o}=t.docView.domFromPos(i.pos,n=="up"?-1:1);for(;;){let a=t.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=dJ(t,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=bl(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(n=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const zke=/[\u0590-\u08ac]/;function Vke(t,e,n){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=t.domSelection();return a?!zke.test(r.parent.textContent)||!a.modify?n=="left"||n=="backward"?o:s:fJ(t,e,()=>
vendor: 7,096 bytes, lines 4963-4964
4963{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:d}=t.domSelectionRange(),f=a.caretBidiLevel;a.modify("move",n,"character");let h=r.depth?t.docView.domAfterPos(r.before()):t.dom,{focusNode:p,focusOffset:m}=t.domSelectionRange(),g=p&&!h.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==m;try{a.collapse(u,d),l&&(l!=u||c!=d)&&a.extend&&a.extend(l,c)}catch{}return f!=null&&(a.caretBidiLevel=f),g}):r.pos==r.start()||r.pos==r.end()}let Gz=null,Kz=null,Yz=!1;function Bke(t,e,n){return Gz==e&&Kz==n?Yz:(Gz=e,Kz=n,Yz=n=="up"||n=="down"?Lke(t,e,n):Vke(t,e,n))}const vs=0,Xz=1,ef=2,qa=3;class Yv{constructor(e,n,r,i){this.parent=e,this.children=n,this.dom=r,this.contentDOM=i,this.dirty=vs,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,n,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let n=0;n<this.children.length;n++)e+=this.children[n].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let n=0,r=this.posAtStart;;n++){let i=this.children[n];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,n,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let o,s;if(e==this.contentDOM)o=e.childNodes[n-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(s)+s.size:this.posAtStart}else{let o,s;if(e==this.contentDOM)o=e.childNodes[n];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=n>ri(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&n==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,n=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!n||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return o}}getDesc(e){let n=e.pmViewDesc;for(let r=n;r;r=r.parent)if(r==this)return n}posFromDOM(e,n,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,n,r)}return-1}descAt(e){for(let n=0,r=0;n<this.children.length;n++){let i=this.children[n],o=r+i.size;if(r==e&&o!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let a=i.children[s];if(a.size){i=a;break}}return i}if(e<o)return i.descAt(e-r-i.border);r=o}}domFromPos(e,n){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.size;if(a>e||s instanceof pJ){i=e-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,n);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof hJ&&o.side>=0;r--);if(n<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&n&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,n):{node:this.contentDOM,offset:o?ri(o.dom)+1:0}}else{let o,s=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,s=!1);return o&&s&&!o.border&&!o.domAtom?o.domFromPos(0,n):{node:this.contentDOM,offset:o?ri(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,n,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:n,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let l=this.children[a],c=s+l.size;if(i==-1&&e<=c){let u=s+l.border;if(e>=u&&n<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,n,u);e=s;for(let d=a;d>0;d--){let f=this.children[d-1];if(f.size&&f.dom.parentNode==this.contentDOM&&!f.emptyChildAt(1)){i=ri(f.dom)+1;break}e-=f.size}i==-1&&(i=0)}if(i>-1&&(c>n||a==this.children.length-1)){n=c;for(let u=a+1;u<this.children.length;u++){let d=this.children[u];if(d.size&&d.dom.parentNode==this.contentDOM&&!d.emptyChildAt(-1)){o=ri(d.dom);break}n+=d.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:n,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let n=this.children[e<0?0:this.children.length-1];return n.size==0||n.emptyChildAt(e)}domAfterPos(e){let{node:n,offset:r}=this.domFromPos(e,0);if(n.nodeType!=1||r==n.childNodes.length)throw new RangeError("No node after pos "+e);return n.childNodes[r]}setSelection(e,n,r,i=!1){let o=Math.min(e,n),s=Math.max(e,n);for(let h=0,p=0;h<this.children.length;h++){let m=this.children[h],g=p+m.size;if(o>p&&s<g)return m.setSelection(e-p-m.border,n-p-m.border,r,i);p=g}let a=this.domFromPos(e,e?-1:1),l=n==e?a:this.domFromPos(n,n?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),d=!1;if((ys||bi)&&e==n){let{node:h,offset:p}=a;if(h.nodeType==3){if(d=!!(p&&h.nodeValue[p-1]==` 4964`),d&&p==h.nodeValue.length)for(let m=h,g;m;m=m.parentNode){if(g=m.nextSibling){g.nodeName=="BR"&&(a=l={node:g.parentNode,offset:ri(g)+1});break}let y=m.pmViewDesc;if(y&&y.node&&y.node.isBlock)break}}else{let m=h.childNodes[p-1];d=m&&(m.nodeName=="BR"||m.contentEditable=="false")}}if(ys&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let h=u.focusNode.childNodes[u.focusOffset];h&&h.contentEditable=="false"&&(i=!0)}if(!(i||d&&bi)&&Kf(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Kf(l.node,l.offset,u.focusNode,u.focusOffset))return;let f=!1;if((c.extend||e==n)&&!(d&&ys)){c.collapse(a.node,a.offset);try{e!=n&&c.extend(l.node,l.offset),f=!0}catch{}}if(!f){if(e>n){let p=a;a=l,l=p}let h=document.createRange();h.setEnd(l.node,l.offset),h.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(h)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,n){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],s=r+o.size;if(r==s?e<=s&&n>=r:e<s&&n>r){let a=r+o.border,l=s-o.border;if(e>=a&&n<=l){this.dirty=e==r||n==s?ef:Xz,e==a&&n==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=qa:o.markDirty(e-a,n-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?ef:qa}r=s}this.dirty=ef}markParentsDirty(){let e=1;for(let n=this.parent;n;n=n.parent,e++){let r=e==1?ef:Xz;n.dirty<r&&(n.dirty=r)}
vendor: 3,740 bytes, line 4964
4964}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class hJ extends Yv{constructor(e,n,r,i){let o,s=n.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!n.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=n,this.widget=n,o=this}matchesWidget(e){return this.dirty==vs&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let n=this.widget.spec.stopEvent;return n?n(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class $ke extends Yv{constructor(e,n,r,i){super(e,[],n,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,n){return e!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Yf extends Yv{constructor(e,n,r,i,o){super(e,[],r,i),this.mark=n,this.spec=o}static create(e,n,r,i){let o=i.nodeViews[n.type.name],s=o&&o(n,i,r);return(!s||!s.dom)&&(s=yh.renderSpec(document,n.type.spec.toDOM(n,r),null,n.attrs)),new Yf(e,n,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&qa||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=qa&&this.mark.eq(e)}markDirty(e,n){if(super.markDirty(e,n),this.dirty!=vs){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=vs}}slice(e,n,r){let i=Yf.create(this.parent,this.mark,!0,r),o=this.children,s=this.size;n<s&&(o=C4(o,n,s,r)),e>0&&(o=C4(o,0,e,r));for(let a=0;a<o.length;a++)o[a].parent=i;return i.children=o,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class Ru extends Yv{constructor(e,n,r,i,o,s,a,l,c){super(e,[],o,s),this.node=n,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=a}static create(e,n,r,i,o,s){let a=o.nodeViews[n.type.name],l,c=a&&a(n,o,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,d=c&&c.contentDOM;if(n.isText){if(!u)u=document.createTextNode(n.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:d}=yh.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!d&&!n.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),n.type.spec.draggable&&(u.draggable=!0));let f=u;return u=yJ(u,r,n),c?l=new Fke(e,n,r,i,u,d||null,f,c,o,s+1):n.isText?new eC(e,n,r,i,u,f,o):new Ru(e,n,r,i,u,d||null,f,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let r=this.children[n];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>Ce.empty)}return e}matchesNode(e,n,r){return this.dirty==vs&&e.eq(this.node)&&lx(n,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}
vendor: 12,384 bytes, line 4964
4964updateChildren(e,n){let r=this.node.inlineContent,i=n,o=e.composing?this.localCompositionInfo(e,n):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new Hke(this,s&&s.node,e);Wke(this.node,this.innerDeco,(c,u,d)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e,u):c.type.side>=0&&!d&&l.syncToMarks(u==this.node.childCount?xn.none:this.node.child(u).marks,r,e,u),l.placeWidget(c,e,i)},(c,u,d,f)=>{l.syncToMarks(c.marks,r,e,f);let h;l.findNodeMatch(c,u,d,f)||a&&e.state.selection.from>i&&e.state.selection.to<i+c.nodeSize&&(h=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,d,h,e)||l.updateNextNode(c,u,d,e,f,i)||l.addNode(c,u,d,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e,0),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==ef)&&(s&&this.protectLocalComposition(e,s),mJ(this.contentDOM,this.children,e),Bm&&Gke(this.dom))}localCompositionInfo(e,n){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof mt)||r<n||i>n+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,a=Kke(this.node.content,s,r-n,i-n);return a<0?null:{node:o,pos:a,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:n,pos:r,text:i}){if(this.getDesc(n))return;let o=n;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new $ke(this,o,n,i);e.input.compositionNodes.push(s),this.children=C4(this.children,r,r+i.length,e,s)}update(e,n,r,i){return this.dirty==qa||!e.sameMarkup(this.node)?!1:(this.updateInner(e,n,r,i),!0)}updateInner(e,n,r,i){this.updateOuterDeco(n),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=vs}updateOuterDeco(e){if(lx(e,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=gJ(this.dom,this.nodeDOM,T4(this.outerDeco,this.node,n),T4(e,this.node,n)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Qz(t,e,n,r,i){yJ(r,e,t);let o=new Ru(void 0,t,e,n,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class eC extends Ru{constructor(e,n,r,i,o,s,a){super(e,n,r,i,o,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,n,r,i){return this.dirty==qa||this.dirty!=vs&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=vs||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=vs,!0)}inParent(){let e=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,n,r){return e==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(e,n,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,n,r){let i=this.node.cut(e,n),o=document.createTextNode(i.text);return new eC(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,n){super.markDirty(e,n),this.dom!=this.nodeDOM&&(e==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=qa)}get domAtom(){return!1}isText(e){return this.node.text==e}}class pJ extends Yv{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==vs&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class Fke extends Ru{constructor(e,n,r,i,o,s,a,l,c,u){super(e,n,r,i,o,s,a,c,u),this.spec=l}update(e,n,r,i){if(this.dirty==qa)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,n,r);return o&&this.updateInner(e,n,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,n,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,n,r,i){this.spec.setSelection?this.spec.setSelection(e,n,r.root):super.setSelection(e,n,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function mJ(t,e,n){let r=t.firstChild,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=s.dom;if(a.parentNode==t){for(;a!=r;)r=Jz(r),i=!0;r=r.nextSibling}else i=!0,t.insertBefore(a,r);if(s instanceof Yf){let l=r?r.previousSibling:t.lastChild;mJ(s.contentDOM,s.children,n),r=l?l.nextSibling:t.firstChild}}for(;r;)r=Jz(r),i=!0;i&&n.trackWrites==t&&(n.trackWrites=null)}const My=function(t){t&&(this.nodeName=t)};My.prototype=Object.create(null);const tf=[new My];function T4(t,e,n){if(t.length==0)return tf;let r=n?tf[0]:new My,i=[r];for(let o=0;o<t.length;o++){let s=t[o].type.attrs;if(s){s.nodeName&&i.push(r=new My(s.nodeName));for(let a in s){let l=s[a];l!=null&&(n&&i.length==1&&i.push(r=new My(e.isInline?"span":"div")),a=="class"?r.class=(r.class?r.class+" ":"")+l:a=="style"?r.style=(r.style?r.style+";":"")+l:a!="nodeName"&&(r[a]=l))}}}return i}function gJ(t,e,n,r){if(n==tf&&r==tf)return e;let i=e;for(let o=0;o<r.length;o++){let s=r[o],a=n[o];if(o){let l;a&&a.nodeName==s.nodeName&&i!=t&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),a=tf[0]),i=l}jke(i,a||tf[0],s)}return i}function jke(t,e,n){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in n)&&t.removeAttribute(r);for(let r in n)r!="class"&&r!="style"&&r!="nodeName"&&n[r]!=e[r]&&t.setAttribute(r,n[r]);if(e.class!=n.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=n.class?n.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&t.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&t.classList.add(i[o]);t.classList.length==0&&t.removeAttribute("class")}if(e.style!=n.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)t.style.removeProperty(i[1])}n.style&&(t.style.cssText+=n.style)}}function yJ(t,e,n){return gJ(t,t,tf,T4(e,n,t.nodeType!=1))}function lx(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].type.eq(e[n].type))return!1;return!0}function Jz(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Hke{constructor(e,n,r){this.lock=n,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=Uke(e.node.content,e)}destroyBetween(e,n){if(e!=n){for(let r=e;r<n;r++)this.top.children[r].destroy();this.top.children.splice(e,n-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,n,r,i){let o=0,s=this.stack.length>>1,a=Math.min(s,e.length);for(;o<a&&(o==s-1?this.top:this.stack[o+1<<1]).matchesMark(e[o])&&e[o].type.spec.spanning!==!1;)o++;for(;o<s;)this.destroyRest(),this.top.dirty=vs,this.index=this.stack.pop(),this.top=this.stack.pop(),s--;for(;s<e.length;){this.stack.push(this.top,this.index+1);let l=-1,c=this.top.children.length;i<this.preMatch.index&&(c=Math.min(this.index+3,c));for(let u=this.index;u<c;u++){let d=this.top.children[u];if(d.matchesMark(e[s])&&!this.isLocked(d.dom)){l=u;break}}if(l>-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Yf.create(this.top,e[s],n,r);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(e,n,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,n,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,n,r)&&!this.preMatch.matched.has(c)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,n,r,i,o){let s=this.top.children[i];return s.dirty==qa&&s.dom==s.contentDOM&&(s.dirty=ef),s.update(e,n,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let n=e.parentNode;if(!n)return-1;if(n==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=n}}updateNextNode(e,n,r,i,o,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof Ru){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,d,f=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=qa&&lx(n,l.outerDeco));if(!f&&l.update(e,n,r,i))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!f&&(d=this.recreateWrapper(l,e,n,r,i,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=d,d.contentDOM&&(d.dirty=ef,d.updateChildren(i,s+1),d.dirty=vs),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,n,r,i,o,s){if(e.dirty||n.isAtom||!e.children.length||!e.node.content.eq(n.content)||!lx(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let a=Ru.create(this.top,n,r,i,o,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,n,r,i,o){let s=Ru.create(this.top,e,n,r,i,o);s.contentDOM&&s.updateChildren(i,o+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,n,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new hJ(this.top,e,n,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],n=this.top;for(;e instanceof Yf;)n=e,e=n.children[n.children.length-1];(!e||!(e instanceof eC)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((bi||li)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",n),this.addHackNode("BR",this.top))}addHackNode(e,n){if(n==this.top&&this.index<n.children.length&&n.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new pJ(this.top,[],r,null);n!=this.top?n.children.push(i):n.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function Uke(t,e){let n=e,r=n.children.length,i=t.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(r){let c=n.children[r-1];if(c instanceof Yf)n=c,r=c.children.length;else{a=c,r--;break}}else{if(n==e)break e;r=n.parent.children.indexOf(n),n=n.parent}let l=a.node;if(l){if(l!=t.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function qke(t,e){return t.type.side-e.type.side}function Wke(t,e,n,r){let i=e.locals(t),o=0;if(i.length==0){for(let c=0;c<t.childCount;c++){let u=t.child(c);r(u,i,e.forChild(o,u),c),o+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,d;for(;s<i.length&&i[s].to==o;){let g=i[s++];g.widget&&(u?(d||(d=[u])).push(g):u=g)}if(u)if(d){d.sort(qke);for(let g=0;g<d.length;g++)n(d[g],c,!!l)}else n(u,c,!!l);let f,h;if(l)h=-1,f=l,l=null;else if(c<t.childCount)h=c,f=t.child(c++);else break;for(let g=0;g<a.length;g++)a[g].to<=o&&a.splice(g--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let p=o+f.nodeSize;if(f.isText){let g=p;s<i.length&&i[s].from<g&&(g=i[s].from);for(let y=0;y<a.length;y++)a[y].to<g&&(g=a[y].to);g<p&&(l=f.cut(g-o),f=f.cut(0,g-o),p=g,h=-1)}else for(;s<i.length&&i[s].to<p;)s++;let m=f.isInline&&!f.isLeaf?a.filter(g=>!g.inline):a.slice();r(f,m,e.forChild(o,f),h),o=p}}
vendor: 9,485 bytes, line 4964
4964function Gke(t){if(t.nodeName=="UL"||t.nodeName=="OL"){let e=t.style.cssText;t.style.cssText=e+"; list-style: square !important",window.getComputedStyle(t).listStyle,t.style.cssText=e}}function Kke(t,e,n,r){for(let i=0,o=0;i<t.childCount&&o<=r;){let s=t.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<t.childCount;){let c=t.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=n){if(o>=r&&l.slice(r-e.length-a,r-a)==e)return r-e.length;let c=a<r?l.lastIndexOf(e,r-a-1):-1;if(c>=0&&c+e.length+a>=n)return a+c;if(n==r&&l.length>=r+e.length-a&&l.slice(r-a,r-a+e.length)==e)return r}}return-1}function C4(t,e,n,r,i){let o=[];for(let s=0,a=0;s<t.length;s++){let l=t[s],c=a,u=a+=l.size;c>=n||u<=e?o.push(l):(c<e&&o.push(l.slice(0,e-c,r)),i&&(o.push(i),i=void 0),u>n&&o.push(l.slice(n-c,l.size,r)))}return o}function SO(t,e=null){let n=t.domSelectionRange(),r=t.state.doc;if(!n.focusNode)return null;let i=t.docView.nearestDesc(n.focusNode),o=i&&i.size==0,s=t.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,c;if(ZT(n)){for(l=s;i&&!i.node;)i=i.parent;let d=i.node;if(i&&d.isAtom&<.isSelectable(d)&&i.parent&&!(d.isInline&&Ske(n.focusNode,n.focusOffset,i.dom))){let f=i.posBefore;c=new lt(s==f?a:r.resolve(f))}}else{if(n instanceof t.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let d=s,f=s;for(let h=0;h<n.rangeCount;h++){let p=n.getRangeAt(h);d=Math.min(d,t.docView.posFromDOM(p.startContainer,p.startOffset,1)),f=Math.max(f,t.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(d<0)return null;[l,s]=f==t.state.selection.anchor?[f,d]:[d,f],a=r.resolve(s)}else l=t.docView.posFromDOM(n.anchorNode,n.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let d=e=="pointer"||t.state.selection.head<a.pos&&!o?1:-1;c=xO(t,u,a,d)}return c}function vJ(t){return t.editable?t.hasFocus():wJ(t)&&document.activeElement&&document.activeElement.contains(t.dom)}function Ul(t,e=!1){let n=t.state.selection;if(bJ(t,n),!!vJ(t)){if(!e&&t.input.mouseDown&&t.input.mouseDown.allowDefault&&li){let r=t.domSelectionRange(),i=t.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Kf(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){t.input.mouseDown.delayedSelectionSync=!0,t.domObserver.setCurSelection();return}}if(t.domObserver.disconnectSelection(),t.cursorWrapper)Xke(t);else{let{anchor:r,head:i}=n,o,s;Zz&&!(n instanceof mt)&&(n.$from.parent.inlineContent||(o=eV(t,n.from)),!n.empty&&!n.$from.parent.inlineContent&&(s=eV(t,n.to))),t.docView.setSelection(r,i,t,e),Zz&&(o&&tV(o),s&&tV(s)),n.visible?t.dom.classList.remove("ProseMirror-hideselection"):(t.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&Yke(t))}t.domObserver.setCurSelection(),t.domObserver.connectSelection()}}const Zz=bi||li&&oJ<63;function eV(t,e){let{node:n,offset:r}=t.docView.domFromPos(e,0),i=r<n.childNodes.length?n.childNodes[r]:null,o=r?n.childNodes[r-1]:null;if(bi&&i&&i.contentEditable=="false")return XA(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return XA(i);if(o)return XA(o)}}function XA(t){return t.contentEditable="true",bi&&t.draggable&&(t.draggable=!1,t.wasDraggable=!0),t}function tV(t){t.contentEditable="false",t.wasDraggable&&(t.draggable=!0,t.wasDraggable=null)}function Yke(t){let e=t.dom.ownerDocument;e.removeEventListener("selectionchange",t.input.hideSelectionGuard);let n=t.domSelectionRange(),r=n.anchorNode,i=n.anchorOffset;e.addEventListener("selectionchange",t.input.hideSelectionGuard=()=>{(n.anchorNode!=r||n.anchorOffset!=i)&&(e.removeEventListener("selectionchange",t.input.hideSelectionGuard),setTimeout(()=>{(!vJ(t)||t.state.selection.visible)&&t.dom.classList.remove("ProseMirror-hideselection")},20))})}function Xke(t){let e=t.domSelection();if(!e)return;let n=t.cursorWrapper.dom,r=n.nodeName=="IMG";r?e.collapse(n.parentNode,ri(n)+1):e.collapse(n,0),!r&&!t.state.selection.visible&&to&&Iu<=11&&(n.disabled=!0,n.disabled=!1)}function bJ(t,e){if(e instanceof lt){let n=t.docView.descAt(e.from);n!=t.lastSelectedViewDesc&&(nV(t),n&&n.selectNode(),t.lastSelectedViewDesc=n)}else nV(t)}function nV(t){t.lastSelectedViewDesc&&(t.lastSelectedViewDesc.parent&&t.lastSelectedViewDesc.deselectNode(),t.lastSelectedViewDesc=void 0)}function xO(t,e,n,r){return t.someProp("createSelectionBetween",i=>i(t,e,n))||mt.between(e,n,r)}function rV(t){return t.editable&&!t.hasFocus()?!1:wJ(t)}function wJ(t){let e=t.domSelectionRange();if(!e.anchorNode)return!1;try{return t.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(t.editable||t.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function Qke(t){let e=t.docView.domFromPos(t.state.selection.anchor,0),n=t.domSelectionRange();return Kf(e.node,e.offset,n.anchorNode,n.anchorOffset)}function _4(t,e){let{$anchor:n,$head:r}=t.selection,i=e>0?n.max(r):n.min(r),o=i.parent.inlineContent?i.depth?t.doc.resolve(e>0?i.after():i.before()):null:i;return o&&vt.findFrom(o,e)}function Dc(t,e){return t.dispatch(t.state.tr.setSelection(e).scrollIntoView()),!0}function iV(t,e,n){let r=t.state.selection;if(r instanceof mt)if(n.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=t.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return Dc(t,new mt(r.$anchor,s))}else if(r.empty){if(t.endOfTextblock(e>0?"forward":"backward")){let i=_4(t.state,e);return i&&i instanceof lt?Dc(t,i):!1}else if(!(Qo&&n.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=t.docView.descAt(a))&&!s.contentDOM?lt.isSelectable(o)?Dc(t,new lt(e<0?t.state.doc.resolve(i.pos-o.nodeSize):i)):Kv?Dc(t,new mt(t.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof lt&&r.node.isInline)return Dc(t,new mt(e>0?r.$to:r.$from));{let i=_4(t.state,e);return i?Dc(t,i):!1}}}function cx(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function ky(t,e){let n=t.pmViewDesc;return n&&n.size==0&&(e<0||t.nextSibling||t.nodeName!="BR")}function jh(t,e){return e<0?Jke(t):Zke(t)}function Jke(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i,o,s=!1;for(ys&&n.nodeType==1&&r<cx(n)&&ky(n.childNodes[r],-1)&&(s=!0);;)if(r>0){if(n.nodeType!=1)break;{let a=n.childNodes[r-1];if(ky(a,-1))i=n,o=--r;else if(a.nodeType==3)n=a,r=n.nodeValue.length;else break}}else{if(SJ(n))break;{let a=n.previousSibling;for(;a&&ky(a,-1);)i=n.parentNode,o=ri(a),a=a.previousSibling;if(a)n=a,r=cx(n);else{if(n=n.parentNode,n==t.dom)break;r=0}}}s?A4(t,n,r):i&&A4(t,i,o)}function Zke(t){let e=t.domSelectionRange(),n=e.focusNode,r=e.focusOffset;if(!n)return;let i=cx(n),o,s;for(;;)if(r<i){if(n.nodeType!=1)break;let a=n.childNodes[r];if(ky(a,1))o=n,s=++r;else break}else{if(SJ(n))break;{let a=n.nextSibling;for(;a&&ky(a,1);)o=a.parentNode,s=ri(a)+1,a=a.nextSibling;if(a)n=a,r=0,i=cx(n);else{if(n=n.parentNode,n==t.dom)break;r=i=0}}}o&&A4(t,o,s)}function SJ(t){let e=t.pmViewDesc;return e&&e.node&&e.node.isBlock}function ePe(t,e){for(;t&&e==t.childNodes.length&&!Gv(t);)e=ri(t)+1,t=t.parentNode;for(;t&&e<t.childNodes.length;){let n=t.childNodes[e];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=0}}function tPe(t,e){for(;t&&!e&&!Gv(t);)e=ri(t),t=t.parentNode;for(;t&&e;){let n=t.childNodes[e-1];if(n.nodeType==3)return n;if(n.nodeType==1&&n.contentEditable=="false")break;t=n,e=t.childNodes.length}}function A4(t,e,n){if(e.nodeType!=3){let o,s;(s=ePe(e,n))?(e=s,n=0):(o=tPe(e,n))&&(e=o,n=o.nodeValue.length)}let r=t.domSelection();if(!r)return;if(ZT(r)){let o=document.createRange();o.setEnd(e,n),o.setStart(e,n),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(e,n);t.domObserver.setCurSelection();let{state:i}=t;setTimeout(()=>{t.state==i&&Ul(t)},50)}function oV(t,e){let n=t.state.doc.resolve(e);if(!(li||sJ)&&n.parent.inlineContent){let i=t.coordsAtPos(e);if(e>n.start()){let o=t.coordsAtPos(e-1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(e<n.end()){let o=t.coordsAtPos(e+1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(t.dom).direction=="rtl"?"rtl":"ltr"}function sV(t,e,n){let r=t.state.selection;if(r instanceof mt&&!r.empty||n.indexOf("s")>-1||Qo&&n.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||t.endOfTextblock(e<0?"up":"down")){let s=_4(t.state,e);if(s&&s instanceof lt)return Dc(t,s)}if(!i.parent.inlineContent){let s=e<0?i:o,a=r instanceof Oo?vt.near(s,e):vt.findFrom(s,e);return a?Dc(t,a):!1}return!1}function aV(t,e){if(!(t.state.selection instanceof mt))return!0;let{$head:n,$anchor:r,empty:i}=t.state.selection;if(!n.sameParent(r))return!0;if(!i)return!1;if(t.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!n.textOffset&&(e<0?n.nodeBefore:n.nodeAfter);if(o&&!o.isText){let s=t.state.tr;return e<0?s.delete(n.pos-o.nodeSize,n.pos):s.delete(n.pos,n.pos+o.nodeSize),t.dispatch(s),!0}return!1}function lV(t,e,n){t.domObserver.stop(),e.contentEditable=n,t.domObserver.start()}function nPe(t){if(!bi||t.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(e&&e.nodeType==1&&n==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;
vendor: 4,250 bytes, lines 4964-4967
4964lV(t,r,"true"),setTimeout(()=>lV(t,r,"false"),20)}return!1}function rPe(t){let e="";return t.ctrlKey&&(e+="c"),t.metaKey&&(e+="m"),t.altKey&&(e+="a"),t.shiftKey&&(e+="s"),e}function iPe(t,e){let n=e.keyCode,r=rPe(e);if(n==8||Qo&&n==72&&r=="c")return aV(t,-1)||jh(t,-1);if(n==46&&!e.shiftKey||Qo&&n==68&&r=="c")return aV(t,1)||jh(t,1);if(n==13||n==27)return!0;if(n==37||Qo&&n==66&&r=="c"){let i=n==37?oV(t,t.state.selection.from)=="ltr"?-1:1:-1;return iV(t,i,r)||jh(t,i)}else if(n==39||Qo&&n==70&&r=="c"){let i=n==39?oV(t,t.state.selection.from)=="ltr"?1:-1:1;return iV(t,i,r)||jh(t,i)}else{if(n==38||Qo&&n==80&&r=="c")return sV(t,-1,r)||jh(t,-1);if(n==40||Qo&&n==78&&r=="c")return nPe(t)||sV(t,1,r)||jh(t,1);if(r==(Qo?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function EO(t,e){t.someProp("transformCopied",h=>{e=h(e,t)});let n=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let h=r.firstChild;n.push(h.type.name,h.attrs!=h.type.defaultAttrs?h.attrs:null),r=h.content}let s=t.someProp("clipboardSerializer")||yh.fromSchema(t.state.schema),a=AJ(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c=l.firstChild,u,d=0;for(;c&&c.nodeType==1&&(u=_J[c.nodeName.toLowerCase()]);){for(let h=u.length-1;h>=0;h--){let p=a.createElement(u[h]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),d++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${d?` -${d}`:""} ${JSON.stringify(n)}`);let f=t.someProp("clipboardTextSerializer",h=>h(e,t))||e.content.textBetween(0,e.content.size,` 4965 4966`);return{dom:l,text:f,slice:e}}function xJ(t,e,n,r,i){let o=i.parent.type.spec.code,s,a;if(!n&&!e)return null;let l=!!e&&(r||o||!n);if(l){if(t.someProp("transformPastedText",f=>{e=f(e,o||r,t)}),o)return a=new We(Ce.from(t.state.schema.text(e.replace(/\r\n?/g,` 4967`))),0,0),t.someProp("transformPasted",f=>{a=f(a,t,!0)}),a;let d=t.someProp("clipboardTextParser",f=>f(e,i,r,t));if(d)a=d;else{let f=i.marks(),{schema:h}=t.state,p=yh.fromSchema(h);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(m=>{let g=s.appendChild(document.createElement("p"));m&&g.appendChild(p.serializeNode(h.text(m,f)))})}}else t.someProp("transformPastedHTML",d=>{n=d(n,t)}),s=lPe(n),Kv&&cPe(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let d=+u[3];d>0;d--){let f=s.firstChild;for(;f&&f.nodeType!=1;)f=f.nextSibling;if(!f)break;s=f}if(a||(a=(t.someProp("clipboardParser")||t.someProp("domParser")||Iy.fromSchema(t.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(f){return f.nodeName=="BR"&&!f.nextSibling&&f.parentNode&&!oPe.test(f.parentNode.nodeName)?{ignore:!0}:null}})),u)a=uPe(cV(a,+u[1],+u[2]),u[4]);else if(a=We.maxOpen(sPe(a.content,i),!0),a.openStart||a.openEnd){let d=0,f=0;for(let h=a.content.firstChild;d<a.openStart&&!h.type.spec.isolating;d++,h=h.firstChild);for(let h=a.content.lastChild;f<a.openEnd&&!h.type.spec.isolating;f++,h=h.lastChild);a=cV(a,d,f)}return t.someProp("transformPasted",d=>{a=d(a,t,l)}),a}const oPe=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function sPe(t,e){if(t.childCount<2)return t;for(let n=e.depth;n>=0;n--){let i=e.node(n).contentMatchAt(e.index(n)),o,s=[];if(t.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&o.length&&TJ(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=CJ(s[s.length-1],o.length));let u=EJ(a,l);s.push(u),i=i.matchType(u.type),o=l}}),s)return Ce.from(s)}return t}function EJ(t,e,n=0){for(let r=e.length-1;r>=n;r--)t=e[r].create(null,Ce.from(t));return t}function TJ(t,e,n,r,i){if(i<t.length&&i<e.length&&t[i]==e[i]){let o=TJ(t,e,n,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==t.length-1?n.type:t[i+1]))return r.copy(r.content.append(Ce.from(EJ(n,t,i+1))))}}function CJ(t,e){if(e==0)return t;let n=t.content.replaceChild(t.childCount-1,CJ(t.lastChild,e-1)),r=t.contentMatchAt(t.childCount).fillBefore(Ce.empty,!0);return t.copy(n.append(r))}
vendor: 4,791 bytes, line 4967
4967function I4(t,e,n,r,i,o){let s=e<0?t.firstChild:t.lastChild,a=s.content;return t.childCount>1&&(o=0),i<r-1&&(a=I4(a,e,n,r,i+1,o)),i>=n&&(a=e<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(Ce.empty,!0))),t.replaceChild(e<0?0:t.childCount-1,s.copy(a))}function cV(t,e,n){return e<t.openStart&&(t=new We(I4(t.content,-1,e,t.openStart,0,t.openEnd),e,t.openEnd)),n<t.openEnd&&(t=new We(I4(t.content,1,n,t.openEnd,0,0),t.openStart,n)),t}const _J={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let uV=null;function AJ(){return uV||(uV=document.implementation.createHTMLDocument("title"))}let QA=null;function aPe(t){let e=window.trustedTypes;return e?(QA||(QA=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:n=>n})),QA.createHTML(t)):t}function lPe(t){let e=/^(\s*<meta [^>]*>)*/.exec(t);e&&(t=t.slice(e[0].length));let n=AJ().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(t),i;if((i=r&&_J[r[1].toLowerCase()])&&(t=i.map(o=>"<"+o+">").join("")+t+i.map(o=>"</"+o+">").reverse().join("")),n.innerHTML=aPe(t),i)for(let o=0;o<i.length;o++)n=n.querySelector(i[o])||n;return n}function cPe(t){let e=t.querySelectorAll(li?"span:not([class]):not([style])":"span.Apple-converted-space");for(let n=0;n<e.length;n++){let r=e[n];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "),r)}}function uPe(t,e){if(!t.size)return t;let n=t.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return t}let{content:i,openStart:o,openEnd:s}=t;for(let a=r.length-2;a>=0;a-=2){let l=n.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=Ce.from(l.create(r[a+1],i)),o++,s++}return new We(i,o,s)}const Oi={},Ni={},dPe={touchstart:!0,touchmove:!0};class fPe{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.badSafariComposition=!1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function hPe(t){for(let e in Oi){let n=Oi[e];t.dom.addEventListener(e,t.input.eventHandlers[e]=r=>{mPe(t,r)&&!TO(t,r)&&(t.editable||!(r.type in Ni))&&n(t,r)},dPe[e]?{passive:!0}:void 0)}bi&&t.dom.addEventListener("input",()=>null),R4(t)}function su(t,e){t.input.lastSelectionOrigin=e,t.input.lastSelectionTime=Date.now()}function pPe(t){t.domObserver.stop();for(let e in t.input.eventHandlers)t.dom.removeEventListener(e,t.input.eventHandlers[e]);clearTimeout(t.input.composingTimeout),clearTimeout(t.input.lastIOSEnterFallbackTimeout)}function R4(t){t.someProp("handleDOMEvents",e=>{for(let n in e)t.input.eventHandlers[n]||t.dom.addEventListener(n,t.input.eventHandlers[n]=r=>TO(t,r))})}function TO(t,e){return t.someProp("handleDOMEvents",n=>{let r=n[e.type];return r?r(t,e)||e.defaultPrevented:!1})}function mPe(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target;n!=t.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(e))return!1;return!0}function gPe(t,e){!TO(t,e)&&Oi[e.type]&&(t.editable||!(e.type in Ni))&&Oi[e.type](t,e)}Ni.keydown=(t,e)=>{let n=e;if(t.input.shiftKey=n.keyCode==16||n.shiftKey,!RJ(t,n)&&(t.input.lastKeyCode=n.keyCode,t.input.lastKeyCodeTime=Date.now(),!(Nl&&li&&n.keyCode==13)))if(n.keyCode!=229&&t.domObserver.forceFlush(),Bm&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let r=Date.now();t.input.lastIOSEnter=r,t.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{t.input.lastIOSEnter==r&&(t.someProp("handleKeyDown",i=>i(t,Ud(13,"Enter"))),t.input.lastIOSEnter=0)},200)}else t.someProp("handleKeyDown",r=>r(t,n))||iPe(t,n)?n.preventDefault():su(t,"key")};Ni.keyup=(t,e)=>{e.keyCode==16&&(t.input.shiftKey=!1)};Ni.keypress=(t,e)=>{let n=e;if(RJ(t,n)||!n.charCode||n.ctrlKey&&!n.altKey||Qo&&n.metaKey)return;if(t.someProp("handleKeyPress",i=>i(t,n))){n.preventDefault();return}let r=t.state.selection;if(!(r instanceof mt)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(n.charCode),o=()=>t.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!t.someProp("handleTextInput",s=>s(t,r.$from.pos,r.$to.pos,i,o))&&t.dispatch(o()),n.preventDefault()}};function tC(t){return{left:t.clientX,top:t.clientY}}function yPe(t,e){let n=e.x-t.clientX,r=e.y-t.clientY;return n*n+r*r<100}
vendor: 10,614 bytes, line 4967
4967function CO(t,e,n,r,i){if(r==-1)return!1;let o=t.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(t.someProp(e,a=>s>o.depth?a(t,n,o.nodeAfter,o.before(s),i,!0):a(t,n,o.node(s),o.before(s),i,!1)))return!0;return!1}function qp(t,e,n){if(t.focused||t.focus(),t.state.selection.eq(e))return;let r=t.state.tr.setSelection(e);r.setMeta("pointer",!0),t.dispatch(r)}function vPe(t,e){if(e==-1)return!1;let n=t.state.doc.resolve(e),r=n.nodeAfter;return r&&r.isAtom&<.isSelectable(r)?(qp(t,new lt(n)),!0):!1}function bPe(t,e){if(e==-1)return!1;let n=t.state.selection,r,i;n instanceof lt&&(r=n.node);let o=t.state.doc.resolve(e);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(lt.isSelectable(a)){r&&n.$from.depth>0&&s>=n.$from.depth&&o.before(n.$from.depth+1)==n.$from.pos?i=o.before(n.$from.depth):i=o.before(s);break}}return i!=null?(qp(t,lt.create(t.state.doc,i)),!0):!1}function wPe(t,e,n,r,i){return CO(t,"handleClickOn",e,n,r)||t.someProp("handleClick",o=>o(t,e,r))||(i?bPe(t,n):vPe(t,n))}function SPe(t,e,n,r){return CO(t,"handleDoubleClickOn",e,n,r)||t.someProp("handleDoubleClick",i=>i(t,e,r))}function xPe(t,e,n,r){return CO(t,"handleTripleClickOn",e,n,r)||t.someProp("handleTripleClick",i=>i(t,e,r))||EPe(t,n,r)}function EPe(t,e,n){if(n.button!=0)return!1;let r=t.state.doc;if(e==-1)return r.inlineContent?(qp(t,mt.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)qp(t,mt.create(r,a+1,a+1+s.content.size));else if(lt.isSelectable(s))qp(t,lt.create(r,a));else continue;return!0}}function _O(t){return ux(t)}const IJ=Qo?"metaKey":"ctrlKey";Oi.mousedown=(t,e)=>{let n=e;t.input.shiftKey=n.shiftKey;let r=_O(t),i=Date.now(),o="singleClick";i-t.input.lastClick.time<500&&yPe(n,t.input.lastClick)&&!n[IJ]&&t.input.lastClick.button==n.button&&(t.input.lastClick.type=="singleClick"?o="doubleClick":t.input.lastClick.type=="doubleClick"&&(o="tripleClick")),t.input.lastClick={time:i,x:n.clientX,y:n.clientY,type:o,button:n.button};let s=t.posAtCoords(tC(n));s&&(o=="singleClick"?(t.input.mouseDown&&t.input.mouseDown.done(),t.input.mouseDown=new TPe(t,s,n,!!r)):(o=="doubleClick"?SPe:xPe)(t,s.pos,s.inside,n)?n.preventDefault():su(t,"pointer"))};class TPe{constructor(e,n,r,i){this.view=e,this.pos=n,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[IJ],this.allowDefault=r.shiftKey;let o,s;if(n.inside>-1)o=e.state.doc.nodeAt(n.inside),s=n.inside;else{let u=e.state.doc.resolve(n.pos);o=u.parent,s=u.depth?u.before():0}const a=i?null:r.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.nodeDOM.nodeType==1?l.nodeDOM:null;let{selection:c}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof lt&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ys&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),su(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Ul(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(tC(e))),this.updateAllowDefault(e),this.allowDefault||!n?su(this.view,"pointer"):wPe(this.view,n.pos,n.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||bi&&this.mightDrag&&!this.mightDrag.node.isAtom||li&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(qp(this.view,vt.near(this.view.state.doc.resolve(n.pos))),e.preventDefault()):su(this.view,"pointer")}move(e){this.updateAllowDefault(e),su(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Oi.touchstart=t=>{t.input.lastTouch=Date.now(),_O(t),su(t,"pointer")};Oi.touchmove=t=>{t.input.lastTouch=Date.now(),su(t,"pointer")};Oi.contextmenu=t=>_O(t);function RJ(t,e){return t.composing?!0:bi&&Math.abs(e.timeStamp-t.input.compositionEndedAt)<500?(t.input.compositionEndedAt=-2e8,!0):!1}const CPe=Nl?5e3:-1;Ni.compositionstart=Ni.compositionupdate=t=>{if(!t.composing){t.domObserver.flush();let{state:e}=t,n=e.selection.$to;if(e.selection instanceof mt&&(e.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)||li&&sJ&&_Pe(t)))t.markCursor=t.state.storedMarks||n.marks(),ux(t,!0),t.markCursor=null;else if(ux(t,!e.selection.empty),ys&&e.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let r=t.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){let a=t.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else i=s,o=-1}}t.input.composing=!0}MJ(t,CPe)};function _Pe(t){let{focusNode:e,focusOffset:n}=t.domSelectionRange();if(!e||e.nodeType!=1||n>=e.childNodes.length)return!1;let r=e.childNodes[n];return r.nodeType==1&&r.contentEditable=="false"}Ni.compositionend=(t,e)=>{t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=e.timeStamp,t.input.compositionPendingChanges=t.domObserver.pendingRecords().length?t.input.compositionID:0,t.input.compositionNode=null,t.input.badSafariComposition?t.domObserver.forceFlush():t.input.compositionPendingChanges&&Promise.resolve().then(()=>t.domObserver.flush()),t.input.compositionID++,MJ(t,20))};function MJ(t,e){clearTimeout(t.input.composingTimeout),e>-1&&(t.input.composingTimeout=setTimeout(()=>ux(t),e))}function kJ(t){for(t.composing&&(t.input.composing=!1,t.input.compositionEndedAt=IPe());t.input.compositionNodes.length>0;)t.input.compositionNodes.pop().markParentsDirty()}function APe(t){let e=t.domSelectionRange();if(!e.focusNode)return null;let n=bke(e.focusNode,e.focusOffset),r=wke(e.focusNode,e.focusOffset);if(n&&r&&n!=r){let i=r.pmViewDesc,o=t.domObserver.lastChangedTextNode;if(n==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(t.input.compositionNode==r){let s=n.pmViewDesc;if(!(!s||!s.isText(n.nodeValue)))return r}}return n||r}function IPe(){let t=document.createEvent("Event");return t.initEvent("event",!0,!0),t.timeStamp}function ux(t,e=!1){if(!(Nl&&t.domObserver.flushingSoon>=0)){if(t.domObserver.forceFlush(),kJ(t),e||t.docView&&t.docView.dirty){let n=SO(t),r=t.state.selection;return n&&!n.eq(r)?t.dispatch(t.state.tr.setSelection(n)):(t.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?t.dispatch(t.state.tr.deleteSelection()):t.updateState(t.state),!0}return!1}}function RPe(t,e){if(!t.dom.parentNode)return;let n=t.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(e),n.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),t.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),t.focus()},50)}const $0=to&&Iu<15||Bm&&Tke<604;Oi.copy=Ni.cut=(t,e)=>{let n=e,r=t.state.selection,i=n.type=="cut";if(r.empty)return;let o=$0?null:n.clipboardData,s=r.content(),{dom:a,text:l}=EO(t,s);o?(n.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):RPe(t,a),i&&t.dispatch(t.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function MPe(t){return t.openStart==0&&t.openEnd==0&&t.content.childCount==1?t.content.firstChild:null}function kPe(t,e){if(!t.dom.parentNode)return;let n=t.input.shiftKey||t.state.selection.$from.parent.type.spec.code,r=t.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=t.input.shiftKey&&t.input.lastKeyCode!=45;setTimeout(()=>{t.focus(),r.parentNode&&r.parentNode.removeChild(r),n?F0(t,r.value,null,i,e):F0(t,r.textContent,r.innerHTML,i,e)},50)}function F0(t,e,n,r,i){let o=xJ(t,e,n,r,t.state.selection.$from);if(t.someProp("handlePaste",l=>l(t,i,o||We.empty)))return!0;if(!o)return!1;let s=MPe(o),a=s?t.state.tr.replaceSelectionWith(s,r):t.state.tr.replaceSelection(o);return t.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function PJ(t){let e=t.getData("text/plain")||t.getData("Text");if(e)return e;let n=t.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Ni.paste=(t,e)=>{let n=e;if(t.composing&&!Nl)return;let r=$0?null:n.clipboardData,i=t.input.shiftKey&&t.input.lastKeyCode!=45;r&&F0(t,PJ(r),r.getData("text/html"),i,n)?n.preventDefault():kPe(t,n)};class OJ{constructor(e,n,r){this.slice=e,this.move=n,this.node=r}}const PPe=Qo?"altKey":"ctrlKey";function NJ(t,e){let n=t.someProp("dragCopies",r=>!r(e));return n??!e[PPe]}Oi.dragstart=(t,e)=>{let n=e,r=t.input.mouseDown;if(r&&r.done(),!n.dataTransfer)return;let i=t.state.selection,o=i.empty?null:t.posAtCoords(tC(n)),s;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof lt?i.to-1:i.to))){if(r&&r.mightDrag)s=lt.create(t.state.doc,r.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let d=t.docView.nearestDesc(n.target,!0);d&&d.node.type.spec.draggable&&d!=t.docView&&(s=lt.create(t.state.doc,d.posBefore))}}let a=(s||t.state.selection).content(),{dom:l,text:c,slice:u}=EO(t,a);(!n.dataTransfer.files.length||!li||oJ>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData($0?"Text":"text/html",l.innerHTML),n.dataTransfer.effectAllowed="copyMove",$0||n.dataTransfer.setData("text/plain",c),t.dragging=new OJ(u,NJ(t,n),s)};Oi.dragend=t=>{let e=t.dragging;window.setTimeout(()=>{t.dragging==e&&(t.dragging=null)},50)};Ni.dragover=Ni.dragenter=(t,e)=>e.preventDefault();Ni.drop=(t,e)=>
vendor: 4,444 bytes, line 4967
4967{try{OPe(t,e,t.dragging)}finally{t.dragging=null}};function OPe(t,e,n){if(!e.dataTransfer)return;let r=t.posAtCoords(tC(e));if(!r)return;let i=t.state.doc.resolve(r.pos),o=n&&n.slice;o?t.someProp("transformPasted",h=>{o=h(o,t,!1)}):o=xJ(t,PJ(e.dataTransfer),$0?null:e.dataTransfer.getData("text/html"),!1,i);let s=!!(n&&NJ(t,e));if(t.someProp("handleDrop",h=>h(t,e,o||We.empty,s))){e.preventDefault();return}if(!o)return;e.preventDefault();let a=o?FMe(t.state.doc,i.pos,o):i.pos;a==null&&(a=i.pos);let l=t.state.tr;if(s){let{node:h}=n;h?h.replace(l):l.deleteSelection()}let c=l.mapping.map(a),u=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,d=l.doc;if(u?l.replaceRangeWith(c,c,o.content.firstChild):l.replaceRange(c,c,o),l.doc.eq(d))return;let f=l.doc.resolve(c);if(u&<.isSelectable(o.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(o.content.firstChild))l.setSelection(new lt(f));else{let h=l.mapping.map(a);l.mapping.maps[l.mapping.maps.length-1].forEach((p,m,g,y)=>h=y),l.setSelection(xO(t,f,l.doc.resolve(h)))}t.focus(),t.dispatch(l.setMeta("uiEvent","drop"))}Oi.focus=t=>{t.input.lastFocus=Date.now(),t.focused||(t.domObserver.stop(),t.dom.classList.add("ProseMirror-focused"),t.domObserver.start(),t.focused=!0,setTimeout(()=>{t.docView&&t.hasFocus()&&!t.domObserver.currentSelection.eq(t.domSelectionRange())&&Ul(t)},20))};Oi.blur=(t,e)=>{let n=e;t.focused&&(t.domObserver.stop(),t.dom.classList.remove("ProseMirror-focused"),t.domObserver.start(),n.relatedTarget&&t.dom.contains(n.relatedTarget)&&t.domObserver.currentSelection.clear(),t.focused=!1)};Oi.beforeinput=(t,e)=>{if(li&&Nl&&e.inputType=="deleteContentBackward"){t.domObserver.flushSoon();let{domChangeCount:r}=t.input;setTimeout(()=>{if(t.input.domChangeCount!=r||(t.dom.blur(),t.focus(),t.someProp("handleKeyDown",o=>o(t,Ud(8,"Backspace")))))return;let{$cursor:i}=t.state.selection;i&&i.pos>0&&t.dispatch(t.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let t in Ni)Oi[t]=Ni[t];function j0(t,e){if(t==e)return!0;for(let n in t)if(t[n]!==e[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}class dx{constructor(e,n){this.toDOM=e,this.spec=n||wf,this.side=this.spec.side||0}map(e,n,r,i){let{pos:o,deleted:s}=e.mapResult(n.from+i,this.side<0?-1:1);return s?null:new Qi(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof dx&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&j0(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class Mu{constructor(e,n){this.attrs=e,this.spec=n||wf}map(e,n,r,i){let o=e.map(n.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(n.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new Qi(o,s,this)}valid(e,n){return n.from<n.to}eq(e){return this==e||e instanceof Mu&&j0(this.attrs,e.attrs)&&j0(this.spec,e.spec)}static is(e){return e.type instanceof Mu}destroy(){}}class AO{constructor(e,n){this.attrs=e,this.spec=n||wf}map(e,n,r,i){let o=e.mapResult(n.from+i,1);if(o.deleted)return null;let s=e.mapResult(n.to+i,-1);return s.deleted||s.pos<=o.pos?null:new Qi(o.pos-r,s.pos-r,this)}valid(e,n){let{index:r,offset:i}=e.content.findIndex(n.from),o;return i==n.from&&!(o=e.child(r)).isText&&i+o.nodeSize==n.to}eq(e){return this==e||e instanceof AO&&j0(this.attrs,e.attrs)&&j0(this.spec,e.spec)}destroy(){}}class Qi{constructor(e,n,r){this.from=e,this.to=n,this.type=r}copy(e,n){return new Qi(e,n,this.type)}eq(e,n=0){return this.type.eq(e.type)&&this.from+n==e.from&&this.to+n==e.to}map(e,n,r){return this.type.map(e,this,n,r)}static widget(e,n,r){return new Qi(e,e,new dx(n,r))}static inline(e,n,r,i){return new Qi(e,n,new Mu(r,i))}static node(e,n,r,i){return new Qi(e,n,new AO(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof Mu}get widget(){return this.type instanceof dx}}const tp=[],wf={};class dr{constructor(e,n){this.local=e.length?e:tp,this.children=n.length?n:tp}static create(e,n){return n.length?fx(n,e,0,wf):mi}find(e,n,r){let i=[];return this.findInner(e??0,n??1e9,i,0,r),i}findInner(e,n,r,i,o){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=n&&a.to>=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<n&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,n-a,r,i+a,o)}}map(e,n,r){return this==mi||e.maps.length==0?this:this.mapInner(e,n,0,0,r||wf)}mapInner(e,n,r,i,o){let s;for(let a=0;a<this.local.length;
vendor: 5,985 bytes, line 4967
4967a++){let l=this.local[a].map(e,r,i);l&&l.type.valid(n,l)?(s||(s=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?NPe(this.children,s||[],e,n,r,i,o):s?new dr(s.sort(Sf),tp):mi}add(e,n){return n.length?this==mi?dr.create(e,n):this.addInner(e,n,0):this}addInner(e,n,r){let i,o=0;e.forEach((a,l)=>{let c=l+r,u;if(u=LJ(n,a,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(a,u,c+1):i.splice(o,0,l,l+a.nodeSize,fx(u,a,c+1,wf)),o+=3}});let s=DJ(o?zJ(n):n,-r);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new dr(s.length?this.local.concat(s).sort(Sf):this.local,i||this.children)}remove(e){return e.length==0||this==mi?this:this.removeInner(e,0)}removeInner(e,n){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let s,a=r[o]+n,l=r[o+1]+n;for(let u=0,d;u<e.length;u++)(d=e[u])&&d.from>a&&d.to<l&&(e[u]=null,(s||(s=[])).push(d));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(s,a+1);c!=mi?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,s;o<e.length;o++)if(s=e[o])for(let a=0;a<i.length;a++)i[a].eq(s,n)&&(i==this.local&&(i=this.local.slice()),i.splice(a--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new dr(i,r):mi}forChild(e,n){if(this==mi)return this;if(n.isLeaf)return dr.empty;let r,i;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(r=this.children[a+2]);break}let o=e+1,s=o+n.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof Mu){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let a=new dr(i.sort(Sf),tp);return r?new Uc([a,r]):a}return r||mi}eq(e){if(this==e)return!0;if(!(e instanceof dr)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let n=0;n<this.local.length;n++)if(!this.local[n].eq(e.local[n]))return!1;for(let n=0;n<this.children.length;n+=3)if(this.children[n]!=e.children[n]||this.children[n+1]!=e.children[n+1]||!this.children[n+2].eq(e.children[n+2]))return!1;return!0}locals(e){return IO(this.localsInner(e))}localsInner(e){if(this==mi)return tp;if(e.inlineContent||!this.local.some(Mu.is))return this.local;let n=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof Mu||n.push(this.local[r]);return n}forEachSet(e){e(this)}}dr.empty=new dr([],[]);dr.removeOverlap=IO;const mi=dr.empty;class Uc{constructor(e){this.members=e}map(e,n){const r=this.members.map(i=>i.map(e,n,wf));return Uc.from(r)}forChild(e,n){if(n.isLeaf)return dr.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(e,n);o!=mi&&(o instanceof Uc?r=r.concat(o.members):r.push(o))}return Uc.from(r)}eq(e){if(!(e instanceof Uc)||e.members.length!=this.members.length)return!1;for(let n=0;n<this.members.length;n++)if(!this.members[n].eq(e.members[n]))return!1;return!0}locals(e){let n,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(e);if(o.length)if(!n)n=o;else{r&&(n=n.slice(),r=!1);for(let s=0;s<o.length;s++)n.push(o[s])}}return n?IO(r?n:n.sort(Sf)):tp}static from(e){switch(e.length){case 0:return mi;case 1:return e[0];default:return new Uc(e.every(n=>n instanceof dr)?e:e.reduce((n,r)=>n.concat(r instanceof dr?r:r.members),[]))}}forEachSet(e){for(let n=0;n<this.members.length;n++)this.members[n].forEachSet(e)}}function NPe(t,e,n,r,i,o,s){let a=t.slice();for(let c=0,u=o;c<n.maps.length;c++){let d=0;n.maps[c].forEach((f,h,p,m)=>{let g=m-p-(h-f);for(let y=0;y<a.length;y+=3){let b=a[y+1];if(b<0||f>b+u-d)continue;let v=a[y]+u-d;h>=v?a[y+1]=f<=v?-2:-1:f>=u&&g&&(a[y]+=g,a[y+1]+=g)}d+=g}),u=n.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=n.map(t[c]+o),d=u-i;if(d<0||d>=r.content.size){l=!0;continue}let f=n.map(t[c+1]+o,-1),h=f-i,{index:p,offset:m}=r.content.findIndex(d),g=r.maybeChild(p);if(g&&m==d&&m+g.nodeSize==h){let y=a[c+2].mapInner(n,g,u+1,t[c]+o+1,s);y!=mi?(a[c]=d,a[c+1]=h,a[c+2]=y):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=DPe(a,t,e,n,i,o,s),u=fx(c,r,0,s);e=u.local;for(let d=0;d<a.length;d+=3)a[d+1]<0&&(a.splice(d,3),d-=3);for(let d=0,f=0;d<u.children.length;d+=3){let h=u.children[d];for(;f<a.length&&a[f]<h;)f+=3;a.splice(f,0,u.children[d],u.children[d+1],u.children[d+2])}}return new dr(e.sort(Sf),a)}function DJ(t,e){if(!e||!t.length)return t;let n=[];for(let r=0;r<t.length;r++){let i=t[r];n.push(new Qi(i.from+e,i.to+e,i.type))}return n}function DPe(t,e,n,r,i,o,s){function a(l,c){for(let u=0;u<l.local.length;u++){let d=l.local[u].map(r,i,c);d?n.push(d):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<t.length;l+=3)t[l+1]==-1&&a(t[l+2],e[l]+o+1);return n}function LJ(t,e,n){if(e.isLeaf)return null;let r=n+e.nodeSize,i=null;for(let o=0,s;o<t.length;o++)(s=t[o])&&s.from>n&&s.to<r&&((i||(i=[])).push(s),t[o]=null);return i}function zJ(t){let e=[];for(let n=0;n<t.length;n++)t[n]!=null&&e.push(t[n]);return e}function fx(t,e,n,r){let i=[],o=!1;e.forEach((a,l)=>{let c=LJ(t,a,l+n);if(c){o=!0;let u=fx(c,a,n+l+1,r);u!=mi&&i.push(l,l+a.nodeSize,u)}});let s=DJ(o?zJ(t):t,-n).sort(Sf);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new dr(s,i):mi}function Sf(t,e){return t.from-e.from||t.to-e.to}function IO(t){let e=t;for(let n=0;n<e.length-1;n++){let r=e[n];if(r.from!=r.to)for(let i=n+1;i<e.length;i++){let o=e[i];if(o.from==r.from){o.to!=r.to&&(e==t&&(e=t.slice()),e[i]=o.copy(o.from,r.to),dV(e,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(e==t&&(e=t.slice()),e[n]=r.copy(r.from,o.from),dV(e,i,r.copy(o.from,r.to)));break}}}return e}function dV(t,e,n){for(;e<t.length&&Sf(n,t[e])>0;)e++;t.splice(e,0,n)}function JA(t){let e=[];return t.someProp("decorations",n=>{let r=n(t.state);r&&r!=mi&&e.push(r)}
vendor: 10,386 bytes, line 4967
4967),t.cursorWrapper&&e.push(dr.create(t.state.doc,[t.cursorWrapper.deco])),Uc.from(e)}const LPe={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},zPe=to&&Iu<=11;class VPe{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class BPe{constructor(e,n){this.view=e,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new VPe,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);to&&Iu<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():bi&&e.composing&&r.some(i=>i.type=="childList"&&i.target.nodeName=="TR")?(e.input.badSafariComposition=!0,this.flushSoon()):this.flush()}),zPe&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,LPe)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let n=0;n<e.length;n++)this.queue.push(e[n]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(rV(this.view)){if(this.suppressingSelectionUpdates)return Ul(this.view);if(to&&Iu<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Kf(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let n=new Set,r;for(let o=e.focusNode;o;o=Vm(o))n.add(o);for(let o=e.anchorNode;o;o=Vm(o))if(n.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&rV(e)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<n.length;u++){let d=this.registerMutation(n[u],l);d&&(o=o<0?d.from:Math.min(d.from,o),s=s<0?d.to:Math.max(d.to,s),d.typeOver&&(a=!0))}if(l.some(u=>u.nodeName=="BR")&&(e.input.lastKeyCode==8||e.input.lastKeyCode==46)){for(let u of l)if(u.nodeName=="BR"&&u.parentNode){let d=u.nextSibling;for(;d&&d.nodeType==1;){if(d.contentEditable=="false"){u.parentNode.removeChild(u);break}d=d.firstChild}}}else if(ys&&l.length){let u=l.filter(d=>d.nodeName=="BR");if(u.length==2){let[d,f]=u;d.parentNode&&d.parentNode.parentNode==f.parentNode?f.remove():d.remove()}else{let{focusNode:d}=this.currentSelection;for(let f of u){let h=f.parentNode;h&&h.nodeName=="LI"&&(!d||jPe(e,d)!=h)&&f.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&ZT(r)&&(c=SO(e))&&c.eq(vt.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Ul(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,s),$Pe(e)),e.input.badSafariComposition&&(e.input.badSafariComposition=!1,HPe(e,l)),this.handleDOMChange(o,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Ul(e),this.currentSelection.set(r))}registerMutation(e,n){if(n.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let d=e.addedNodes[u];n.push(d),d.nodeType==3&&(this.lastChangedTextNode=d)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,o=e.nextSibling;if(to&&Iu<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:d,nextSibling:f}=e.addedNodes[u];(!d||Array.prototype.indexOf.call(e.addedNodes,d)<0)&&(i=d),(!f||Array.prototype.indexOf.call(e.addedNodes,f)<0)&&(o=f)}let s=i&&i.parentNode==e.target?ri(i)+1:0,a=r.localPosFromDOM(e.target,s,-1),l=o&&o.parentNode==e.target?ri(o):e.target.childNodes.length,c=r.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let fV=new WeakMap,hV=!1;function $Pe(t){if(!fV.has(t)&&(fV.set(t,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(t.dom).whiteSpace)!==-1)){if(t.requiresGeckoHackNode=ys,hV)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),hV=!0}}function pV(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,s=t.domAtPos(t.state.selection.anchor);return Kf(s.node,s.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function FPe(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return pV(t,i)}let n;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),t.dom.removeEventListener("beforeinput",r,!0),n?pV(t,n):null}function jPe(t,e){for(let n=e.parentNode;n&&n!=t.dom;n=n.parentNode){let r=t.docView.nearestDesc(n,!0);if(r&&r.node.isBlock)return n}return null}function HPe(t,e){var n;let{focusNode:r,focusOffset:i}=t.domSelectionRange();for(let o of e)if(((n=o.parentNode)===null||n===void 0?void 0:n.nodeName)=="TR"){let s=o.nextSibling;for(;s&&s.nodeName!="TD"&&s.nodeName!="TH";)s=s.nextSibling;if(s){let a=s;for(;;){let l=a.firstChild;if(!l||l.nodeType!=1||l.contentEditable=="false"||/^(BR|IMG)$/.test(l.nodeName))break;a=l}a.insertBefore(o,a.firstChild),r==o&&t.domSelection().collapse(o,i)}else o.parentNode.removeChild(o)}}function UPe(t,e,n){let{node:r,fromOffset:i,toOffset:o,from:s,to:a}=t.docView.parseRange(e,n),l=t.domSelectionRange(),c,u=l.anchorNode;if(u&&t.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],ZT(l)||c.push({node:l.focusNode,offset:l.focusOffset})),li&&t.input.lastKeyCode===8)for(let g=o;g>i;g--){let y=r.childNodes[g-1],b=y.pmViewDesc;if(y.nodeName=="BR"&&!b){o=g;break}if(!b||b.size)break}let d=t.state.doc,f=t.someProp("domParser")||Iy.fromSchema(t.state.schema),h=d.resolve(s),p=null,m=f.parse(r,{topNode:h.parent,topMatch:h.parent.contentMatchAt(h.index()),topOpen:!0,from:i,to:o,preserveWhitespace:h.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:qPe,context:h});if(c&&c[0].pos!=null){let g=c[0].pos,y=c[1]&&c[1].pos;y==null&&(y=g),p={anchor:g+s,head:y+s}}return{doc:m,sel:p,from:s,to:a}}function qPe(t){let e=t.pmViewDesc;if(e)return e.parseRule();if(t.nodeName=="BR"&&t.parentNode){if(bi&&/^(ul|ol)$/i.test(t.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(t.parentNode.lastChild==t||bi&&/^(tr|table)$/i.test(t.parentNode.nodeName))return{ignore:!0}}else if(t.nodeName=="IMG"&&t.getAttribute("mark-placeholder"))return{ignore:!0};return null}const WPe=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function GPe(t,e,n,r,i){let o=t.input.compositionPendingChanges||(t.composing?t.input.compositionID:0);if(t.input.compositionPendingChanges=0,e<0){let T=t.input.lastSelectionTime>Date.now()-50?t.input.lastSelectionOrigin:null,A=SO(t,T);if(A&&!t.state.selection.eq(A)){if(li&&Nl&&t.input.lastKeyCode===13&&Date.now()-100<t.input.lastKeyCodeTime&&t.someProp("handleKeyDown",k=>k(t,Ud(13,"Enter"))))return;let R=t.state.tr.setSelection(A);T=="pointer"?R.setMeta("pointer",!0):T=="key"&&R.scrollIntoView(),o&&R.setMeta("composition",o),t.dispatch(R)}return}let s=t.state.doc.resolve(e),a=s.sharedDepth(n);e=s.before(a+1),n=t.state.doc.resolve(n).after(a+1);let l=t.state.selection,c=UPe(t,e,n),u=t.state.doc,d=u.slice(c.from,c.to),f,h;t.input.lastKeyCode===8&&Date.now()-100<t.input.lastKeyCodeTime?(f=t.state.selection.to,h="end"):(f=t.state.selection.from,h="start"),t.input.lastKeyCode=null;let p=XPe(d.content,c.doc.content,c.from,f,h);if(p&&t.input.domChangeCount++,(Bm&&t.input.lastIOSEnter>Date.now()-225||Nl)&&i.some(T=>T.nodeType==1&&!WPe.test(T.nodeName))&&(!p||p.endA>=p.endB)&&t.someProp("handleKeyDown",T=>T(t,Ud(13,"Enter")))){t.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof mt&&!l.empty&&l.$head.sameParent(l.$anchor)&&!t.composing&&!(c.sel&&c.sel.anchor!=c.sel.head)
vendor: 4,139 bytes, line 4967
4967)p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let T=mV(t,t.state.doc,c.sel);if(T&&!T.eq(t.state.selection)){let A=t.state.tr.setSelection(T);o&&A.setMeta("composition",o),t.dispatch(A)}}return}t.state.selection.from<t.state.selection.to&&p.start==p.endB&&t.state.selection instanceof mt&&(p.start>t.state.selection.from&&p.start<=t.state.selection.from+2&&t.state.selection.from>=c.from?p.start=t.state.selection.from:p.endA<t.state.selection.to&&p.endA>=t.state.selection.to-2&&t.state.selection.to<=c.to&&(p.endB+=t.state.selection.to-p.endA,p.endA=t.state.selection.to)),to&&Iu<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let m=c.doc.resolveNoCache(p.start-c.from),g=c.doc.resolveNoCache(p.endB-c.from),y=u.resolve(p.start),b=m.sameParent(g)&&m.parent.inlineContent&&y.end()>=p.endA;if((Bm&&t.input.lastIOSEnter>Date.now()-225&&(!b||i.some(T=>T.nodeName=="DIV"||T.nodeName=="P"))||!b&&m.pos<c.doc.content.size&&(!m.sameParent(g)||!m.parent.inlineContent)&&m.pos<g.pos&&!/\S/.test(c.doc.textBetween(m.pos,g.pos,"","")))&&t.someProp("handleKeyDown",T=>T(t,Ud(13,"Enter")))){t.input.lastIOSEnter=0;return}if(t.state.selection.anchor>p.start&&YPe(u,p.start,p.endA,m,g)&&t.someProp("handleKeyDown",T=>T(t,Ud(8,"Backspace")))){Nl&&li&&t.domObserver.suppressSelectionUpdates();return}li&&p.endB==p.start&&(t.input.lastChromeDelete=Date.now()),Nl&&!b&&m.start()!=g.start()&&g.parentOffset==0&&m.depth==g.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,g=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{t.someProp("handleKeyDown",function(T){return T(t,Ud(13,"Enter"))})},20));let v=p.start,S=p.endA,I=T=>{let A=T||t.state.tr.replace(v,S,c.doc.slice(p.start-c.from,p.endB-c.from));if(c.sel){let R=mV(t,A.doc,c.sel);R&&!(li&&t.composing&&R.empty&&(p.start!=p.endB||t.input.lastChromeDelete<Date.now()-100)&&(R.head==v||R.head==A.mapping.map(S)-1)||to&&R.empty&&R.head==v)&&A.setSelection(R)}return o&&A.setMeta("composition",o),A.scrollIntoView()},O;if(b)if(m.pos==g.pos){to&&Iu<=11&&m.parentOffset==0&&(t.domObserver.suppressSelectionUpdates(),setTimeout(()=>Ul(t),20));let T=I(t.state.tr.delete(v,S)),A=u.resolve(p.start).marksAcross(u.resolve(p.endA));A&&T.ensureMarks(A),t.dispatch(T)}else if(p.endA==p.endB&&(O=KPe(m.parent.content.cut(m.parentOffset,g.parentOffset),y.parent.content.cut(y.parentOffset,p.endA-y.start())))){let T=I(t.state.tr);O.type=="add"?T.addMark(v,S,O.mark):T.removeMark(v,S,O.mark),t.dispatch(T)}else if(m.parent.child(m.index()).isText&&m.index()==g.index()-(g.textOffset?0:1)){let T=m.parent.textBetween(m.parentOffset,g.parentOffset),A=()=>I(t.state.tr.insertText(T,v,S));t.someProp("handleTextInput",R=>R(t,v,S,T,A))||t.dispatch(A())}else t.dispatch(I());else t.dispatch(I())}function mV(t,e,n){return Math.max(n.anchor,n.head)>e.content.size?null:xO(t,e.resolve(n.anchor),e.resolve(n.head))}function KPe(t,e){let n=t.firstChild.marks,r=e.firstChild.marks,i=n,o=r,s,a,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<n.length;u++)o=n[u].removeFromSet(o);if(i.length==1&&o.length==0)a=i[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(Ce.from(c).eq(t))return{mark:a,type:s}}function YPe(t,e,n,r,i){if(n-e<=i.pos-r.pos||ZA(r,!0,!1)<i.pos)return!1;let o=t.resolve(e);if(!r.parent.isTextblock){let a=o.nodeAfter;return a!=null&&n==e+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=t.resolve(ZA(o,!0,!0));return!s.parent.isTextblock||s.pos>n||ZA(s,!0,!1)<n?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function ZA(t,e,n){let r=t.depth,i=e?t.end():t.pos;for(;r>0&&(e||t.indexAfter(r)==t.node(r).childCount);)r--,i++,e=!1;if(n){let o=t.node(r).maybeChild(t.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function XPe(t,e,n,r,i){let o=t.findDiffStart(e,n);if(o==null)return null;let{a:s,b:a}=t.findDiffEnd(e,n+t.size,n+e.size);
vendor: 4,459 bytes, line 4967
4967if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s<o&&t.size<e.size){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<e.size&&gV(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}else if(a<o){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<t.size&&gV(t.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}function gV(t){if(t.length!=2)return!1;let e=t.charCodeAt(0),n=t.charCodeAt(1);return e>=56320&&e<=57343&&n>=55296&&n<=56319}class VJ{constructor(e,n){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new fPe,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(SV),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=bV(this),vV(this),this.nodeViews=wV(this),this.docView=Qz(this.state.doc,yV(this),JA(this),this.dom,this),this.domObserver=new BPe(this,(r,i,o,s)=>GPe(this,r,i,o,s)),this.domObserver.start(),hPe(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let n in e)this._props[n]=e[n];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&R4(this);let n=this._props;this._props=e,e.plugins&&(e.plugins.forEach(SV),this.directPlugins=e.plugins),this.updateStateInner(e.state,n)}setProps(e){let n={};for(let r in this._props)n[r]=this._props[r];n.state=this.state;for(let r in e)n[r]=e[r];this.update(n)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,n){var r;let i=this.state,o=!1,s=!1;e.storedMarks&&this.composing&&(kJ(this),s=!0),this.state=e;let a=i.plugins!=e.plugins||this._props.plugins!=n.plugins;if(a||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let h=wV(this);JPe(h,this.nodeViews)&&(this.nodeViews=h,o=!0)}(a||n.handleDOMEvents!=this._props.handleDOMEvents)&&R4(this),this.editable=bV(this),vV(this);let l=JA(this),c=yV(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",d=o||!this.docView.matchesNode(e.doc,c,l);(d||!e.selection.eq(i.selection))&&(s=!0);let f=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&Ake(this);if(s){this.domObserver.stop();let h=d&&(to||li)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&QPe(i.selection,e.selection);if(d){let p=li?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=APe(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Qz(e.doc,c,l,this.dom,this)),p&&(!this.trackWrites||!this.dom.contains(this.trackWrites))&&(h=!0)}h||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&Qke(this))?Ul(this,h):(bJ(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():f&&Ike(f)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof lt){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&qz(this,n.getBoundingClientRect(),e)}else qz(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n<this.directPlugins.length;n++){let r=this.directPlugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let n=0;n<this.state.plugins.length;n++){let r=this.state.plugins[n];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let n=0;n<this.pluginViews.length;n++){let r=this.pluginViews[n];r.update&&r.update(this,e)}}updateDraggedNode(e,n){let r=e.node,i=-1;
vendor: 6,082 bytes, line 4967
4967if(r.from<this.state.doc.content.size&&this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-n.doc.content.size);(o>0&&o<this.state.doc.content.size&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new OJ(e.slice,e.move,i<0?void 0:lt.create(this.state.doc,i))}someProp(e,n){let r=this._props&&this._props[e],i;if(r!=null&&(i=n?n(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(i=n?n(a):a))return i}let o=this.state.plugins;if(o)for(let s=0;s<o.length;s++){let a=o[s].props[e];if(a!=null&&(i=n?n(a):a))return i}}hasFocus(){if(to){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&Rke(this.dom),Ul(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let n=this.dom.parentNode;n;n=n.parentNode)if(n.nodeType==9||n.nodeType==11&&n.host)return n.getSelection||(Object.getPrototypeOf(n).getSelection=()=>n.ownerDocument.getSelection()),this._root=n}return e||document}updateRoot(){this._root=null}posAtCoords(e){return Nke(this,e)}coordsAtPos(e,n=1){return dJ(this,e,n)}domAtPos(e,n=0){return this.docView.domFromPos(e,n)}nodeDOM(e){let n=this.docView.descAt(e);return n?n.nodeDOM:null}posAtDOM(e,n,r=-1){let i=this.docView.posFromDOM(e,n,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,n){return Bke(this,n||this.state,e)}pasteHTML(e,n){return F0(this,"",e,!1,n||new ClipboardEvent("paste"))}pasteText(e,n){return F0(this,e,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(e){return EO(this,e)}destroy(){this.docView&&(pPe(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],JA(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,yke())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return gPe(this,e)}domSelectionRange(){let e=this.domSelection();return e?bi&&this.root.nodeType===11&&xke(this.dom.ownerDocument)==this.dom&&FPe(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}VJ.prototype.dispatch=function(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))};function yV(t){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(t.editable),t.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(t.state)),n)for(let r in n)r=="class"?e.class+=" "+n[r]:r=="style"?e.style=(e.style?e.style+";":"")+n[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(n[r]))}),e.translate||(e.translate="no"),[Qi.node(0,t.state.doc.content.size,e)]}function vV(t){if(t.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),t.cursorWrapper={dom:e,deco:Qi.widget(t.state.selection.from,e,{raw:!0,marks:t.markCursor})}}else t.cursorWrapper=null}function bV(t){return!t.someProp("editable",e=>e(t.state)===!1)}function QPe(t,e){let n=Math.min(t.$anchor.sharedDepth(t.head),e.$anchor.sharedDepth(e.head));return t.$anchor.start(n)!=e.$anchor.start(n)}function wV(t){let e=Object.create(null);function n(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return t.someProp("nodeViews",n),t.someProp("markViews",n),e}function JPe(t,e){let n=0,r=0;for(let i in t){if(t[i]!=e[i])return!0;n++}for(let i in e)r++;return n!=r}function SV(t){if(t.spec.state||t.spec.filterTransaction||t.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Wu={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},hx={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ZPe=typeof navigator<"u"&&/Mac/.test(navigator.platform),eOe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var ii=0;ii<10;ii++)Wu[48+ii]=Wu[96+ii]=String(ii);for(var ii=1;ii<=24;ii++)Wu[ii+111]="F"+ii;for(var ii=65;ii<=90;ii++)Wu[ii]=String.fromCharCode(ii+32),hx[ii]=String.fromCharCode(ii);for(var eI in Wu)hx.hasOwnProperty(eI)||(hx[eI]=Wu[eI]);function tOe(t){var e=ZPe&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||eOe&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?hx:Wu)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const nOe=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),rOe=typeof navigator<"u"&&/Win/.test(navigator.platform);function iOe(t){let e=t.split(/-(?!$)/),n=e[e.length-1];n=="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))nOe?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(n="Alt-"+n),i&&(n="Ctrl-"+n),s&&(n="Meta-"+n),o&&(n="Shift-"+n),n}function oOe(t){let e=Object.create(null);for(let n in t)e[iOe(n)]=t[n];return e}
vendor: 22,424 bytes, lines 4967-4968
4967function tI(t,e,n=!0){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n&&e.shiftKey&&(t="Shift-"+t),t}function sOe(t){return new Li({props:{handleKeyDown:BJ(t)}})}function BJ(t){let e=oOe(t);return function(n,r){let i=tOe(r),o,s=e[tI(i,r)];if(s&&s(n.state,n.dispatch,n))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let a=e[tI(i,r,!1)];if(a&&a(n.state,n.dispatch,n))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(rOe&&r.ctrlKey&&r.altKey)&&(o=Wu[r.keyCode])&&o!=i){let a=e[tI(o,r)];if(a&&a(n.state,n.dispatch,n))return!0}}return!1}}var aOe=Object.defineProperty,RO=(t,e)=>{for(var n in e)aOe(t,n,{get:e[n],enumerable:!0})};function nC(t){const{state:e,transaction:n}=t;let{selection:r}=n,{doc:i}=n,{storedMarks:o}=n;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=n.selection,i=n.doc,o=n.storedMarks,n}}}var rC=class{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:n}=this,{view:r}=e,{tr:i}=n,o=this.buildProps(i);return Object.fromEntries(Object.entries(t).map(([s,a])=>[s,(...c)=>{const u=a(...c)(o);return!i.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(i),u}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s=[],a=!!t,l=t||i.tr,c=()=>(!a&&e&&!l.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(l),s.every(d=>d===!0)),u={...Object.fromEntries(Object.entries(n).map(([d,f])=>[d,(...p)=>{const m=this.buildProps(l,e),g=f(...p)(m);return s.push(g),u}])),run:c};return u}createCan(t){const{rawCommands:e,state:n}=this,r=!1,i=t||n.tr,o=this.buildProps(i,r);return{...Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...c)=>l(...c)({...o,dispatch:void 0})])),chain:()=>this.createChain(i,r)}}buildProps(t,e=!0){const{rawCommands:n,editor:r,state:i}=this,{view:o}=r,s={tr:t,editor:r,view:o,state:nC({state:i,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(n).map(([a,l])=>[a,(...c)=>l(...c)(s)]))}};return s}},$J={};RO($J,{blur:()=>lOe,clearContent:()=>cOe,clearNodes:()=>uOe,command:()=>dOe,createParagraphNear:()=>fOe,cut:()=>hOe,deleteCurrentNode:()=>pOe,deleteNode:()=>mOe,deleteRange:()=>gOe,deleteSelection:()=>yOe,enter:()=>vOe,exitCode:()=>bOe,extendMarkRange:()=>wOe,first:()=>SOe,focus:()=>EOe,forEach:()=>TOe,insertContent:()=>COe,insertContentAt:()=>IOe,joinBackward:()=>kOe,joinDown:()=>MOe,joinForward:()=>POe,joinItemBackward:()=>OOe,joinItemForward:()=>NOe,joinTextblockBackward:()=>DOe,joinTextblockForward:()=>LOe,joinUp:()=>ROe,keyboardShortcut:()=>VOe,lift:()=>BOe,liftEmptyBlock:()=>$Oe,liftListItem:()=>FOe,newlineInCode:()=>jOe,resetAttributes:()=>HOe,scrollIntoView:()=>UOe,selectAll:()=>qOe,selectNodeBackward:()=>WOe,selectNodeForward:()=>GOe,selectParentNode:()=>KOe,selectTextblockEnd:()=>YOe,selectTextblockStart:()=>XOe,setContent:()=>QOe,setMark:()=>vNe,setMeta:()=>bNe,setNode:()=>wNe,setNodeSelection:()=>SNe,setTextDirection:()=>xNe,setTextSelection:()=>ENe,sinkListItem:()=>TNe,splitBlock:()=>CNe,splitListItem:()=>_Ne,toggleList:()=>INe,toggleMark:()=>RNe,toggleNode:()=>MNe,toggleWrap:()=>kNe,undoInputRule:()=>PNe,unsetAllMarks:()=>ONe,unsetMark:()=>NNe,unsetTextDirection:()=>DNe,updateAttributes:()=>LNe,wrapIn:()=>zNe,wrapInList:()=>VNe});var lOe=()=>({editor:t,view:e})=>(requestAnimationFrame(()=>{var n;t.isDestroyed||(e.dom.blur(),(n=window==null?void 0:window.getSelection())==null||n.removeAllRanges())}),!0),cOe=(t=!0)=>({commands:e})=>e.setContent("",{emitUpdate:t}),uOe=()=>({state:t,tr:e,dispatch:n})=>{const{selection:r}=e,{ranges:i}=r;return n&&i.forEach(({$from:o,$to:s})=>{t.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,d=c.resolve(u.map(l)),f=c.resolve(u.map(l+a.nodeSize)),h=d.blockRange(f);if(!h)return;const p=Eg(h);if(a.type.isTextblock){const{defaultType:m}=d.parent.contentMatchAt(d.index());e.setNodeMarkup(h.start,m)}(p||p===0)&&e.lift(h,p)})}),!0},dOe=t=>e=>t(e),fOe=()=>({state:t,dispatch:e})=>eJ(t,e),hOe=(t,e)=>({editor:n,tr:r})=>{const{state:i}=n,o=i.doc.slice(t.from,t.to);r.deleteRange(t.from,t.to);const s=r.mapping.map(e);return r.insert(s,o.content),r.setSelection(new mt(r.doc.resolve(Math.max(s-1,0)))),!0},pOe=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,r=n.$anchor.node();if(r.content.size>0)return!1;const i=t.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(e){const a=i.before(o),l=i.after(o);t.delete(a,l).scrollIntoView()}return!0}return!1};function Xr(t,e){if(typeof t=="string"){if(!e.nodes[t])throw Error(`There is no node type named '${t}'. Maybe you forgot to add the extension?`);return e.nodes[t]}return t}var mOe=t=>({tr:e,state:n,dispatch:r})=>{const i=Xr(t,n.schema),o=e.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i){if(r){const l=o.before(s),c=o.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},gOe=t=>({tr:e,dispatch:n})=>{const{from:r,to:i}=t;return n&&e.delete(r,i),!0},yOe=()=>({state:t,dispatch:e})=>mO(t,e),vOe=()=>({commands:t})=>t.keyboardShortcut("Enter"),bOe=()=>({state:t,dispatch:e})=>nke(t,e);function MO(t){return Object.prototype.toString.call(t)==="[object RegExp]"}function px(t,e,n={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>n.strict?e[i]===t[i]:MO(e[i])?e[i].test(t[i]):e[i]===t[i]):!0}function FJ(t,e,n={}){return t.find(r=>r.type===e&&px(Object.fromEntries(Object.keys(n).map(i=>[i,r.attrs[i]])),n))}function xV(t,e,n={}){return!!FJ(t,e,n)}function kO(t,e,n){if(!t||!e)return;let r=t.parent.childAfter(t.parentOffset);if((!r.node||!r.node.marks.some(c=>c.type===e))&&(r=t.parent.childBefore(t.parentOffset)),!r.node||!r.node.marks.some(c=>c.type===e))return;if(!n){const c=r.node.marks.find(u=>u.type===e);c&&(n=c.attrs)}if(!FJ([...r.node.marks],e,n))return;let o=r.index,s=t.start()+r.offset,a=o+1,l=s+r.node.nodeSize;for(;o>0&&xV([...t.parent.child(o-1).marks],e,n);)o-=1,s-=t.parent.child(o).nodeSize;for(;a<t.parent.childCount&&xV([...t.parent.child(a).marks],e,n);)l+=t.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function dc(t,e){if(typeof t=="string"){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`);return e.marks[t]}return t}var wOe=(t,e)=>({tr:n,state:r,dispatch:i})=>{const o=dc(t,r.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:u}=a;if(i){const d=kO(l,o,e);if(d&&d.from<=c&&d.to>=u){const f=mt.create(s,d.from,d.to);n.setSelection(f)}}return!0},SOe=t=>e=>{const n=typeof t=="function"?t(e):t;for(let r=0;r<n.length;r+=1)if(n[r](e))return!0;return!1};function iC(t){return t instanceof mt}function Dl(t=0,e=0,n=0){return Math.min(Math.max(t,e),n)}function jJ(t,e=null){if(!e)return null;const n=vt.atStart(t),r=vt.atEnd(t);if(e==="start"||e===!0)return n;if(e==="end")return r;const i=n.from,o=r.to;return e==="all"?mt.create(t,Dl(0,i,o),Dl(t.content.size,i,o)):mt.create(t,Dl(e,i,o),Dl(e,i,o))}function M4(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function H0(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function xOe(){return typeof navigator<"u"?/^((?!chrome|android).)*safari/i.test(navigator.userAgent):!1}var EOe=(t=null,e={})=>({editor:n,view:r,tr:i,dispatch:o})=>{e={scrollIntoView:!0,...e};const s=()=>{(H0()||M4())&&r.dom.focus(),xOe()&&!H0()&&!M4()&&r.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&n.commands.scrollIntoView())})};try{if(r.hasFocus()&&t===null||t===!1)return!0}catch{return!1}if(o&&t===null&&!iC(n.state.selection))return s(),!0;const a=jJ(i.doc,t)||n.state.selection,l=n.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},TOe=(t,e)=>n=>t.every((r,i)=>e(r,{...n,index:i})),COe=(t,e)=>({tr:n,commands:r})=>r.insertContentAt({from:n.selection.from,to:n.selection.to},t,e),HJ=t=>{const e=t.childNodes;for(let n=e.length-1;n>=0;n-=1){const r=e[n];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?t.removeChild(r):r.nodeType===1&&HJ(r)}return t};function p2(t){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const e=`<body>${t}</body>`,n=new window.DOMParser().parseFromString(e,"text/html").body;return HJ(n)}function U0(t,e,n){if(t instanceof Au||t instanceof Ce)return t;n={slice:!0,parseOptions:{},...n};const r=typeof t=="object"&&t!==null,i=typeof t=="string";if(r)try{if(Array.isArray(t)&&t.length>0)return Ce.fromArray(t.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(t);return n.errorOnInvalidContent&&s.check(),s}catch(o){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",t,"Error:",o),U0("",e,n)}if(i){if(n.errorOnInvalidContent){let s=!1,a="";const l=new IQ({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?Iy.fromSchema(l).parseSlice(p2(t),n.parseOptions):Iy.fromSchema(l).parse(p2(t),n.parseOptions),n.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=Iy.fromSchema(e);return n.slice?o.parseSlice(p2(t),n.parseOptions).content:o.parse(p2(t),n.parseOptions)}return U0("",e,n)}function _Oe(t,e,n){const r=t.steps.length-1;if(r<e)return;const i=t.steps[r];if(!(i instanceof Hr||i instanceof Yr))return;const o=t.mapping.maps[r];let s=0;o.forEach((a,l,c,u)=>{s===0&&(s=u)}),t.setSelection(vt.near(t.doc.resolve(s),n))}var AOe=t=>!("type"in t),IOe=(t,e,n)=>({tr:r,dispatch:i,editor:o})=>{var s;if(i){n={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let a;const l=g=>{o.emit("contentError",{editor:o,error:g,disableCollaboration:()=>{"collaboration"in o.storage&&typeof o.storage.collaboration=="object"&&o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{U0(e,o.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(g){l(g)}try{a=U0(e,o.schema,{parseOptions:c,errorOnInvalidContent:(s=n.errorOnInvalidContent)!=null?s:o.options.enableContentCheck})}catch(g){return l(g),!1}let{from:u,to:d}=typeof t=="number"?{from:t,to:t}:{from:t.from,to:t.to},f=!0,h=!0;if((AOe(a)?a:[a]).forEach(g=>{g.check(),f=f?g.isText&&g.marks.length===0:!1,h=h?g.isBlock:!1}),u===d&&h){const{parent:g}=r.doc.resolve(u);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(u-=1,d+=1)}let m;if(f){if(Array.isArray(e))m=e.map(g=>g.text||"").join("");else if(e instanceof Ce){let g="";e.forEach(y=>{y.text&&(g+=y.text)}),m=g}else typeof e=="object"&&e&&e.text?m=e.text:m=e;r.insertText(m,u,d)}else{m=a;const g=r.doc.resolve(u),y=g.node(),b=g.parentOffset===0,v=y.isText||y.isTextblock,S=y.content.size>0;b&&v&&S&&h&&(u=Math.max(0,u-1)),r.replaceWith(u,d,m)}n.updateSelection&&_Oe(r,r.steps.length-1,-1),n.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:m}),n.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:m})}return!0},ROe=()=>({state:t,dispatch:e})=>ZMe(t,e),MOe=()=>({state:t,dispatch:e})=>eke(t,e),kOe=()=>({state:t,dispatch:e})=>GQ(t,e),POe=()=>({state:t,dispatch:e})=>QQ(t,e),OOe=()=>({state:t,dispatch:e,tr:n})=>{try{const r=XT(t.doc,t.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},NOe=()=>({state:t,dispatch:e,tr:n})=>{try{const r=XT(t.doc,t.selection.$from.pos,1);return r==null?!1:(n.join(r,2),e&&e(n),!0)}catch{return!1}},DOe=()=>({state:t,dispatch:e})=>QMe(t,e),LOe=()=>({state:t,dispatch:e})=>JMe(t,e);function UJ(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function zOe(t){const e=t.split(/-(?!$)/);let n=e[e.length-1];n==="Space"&&(n=" ");let r,i,o,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))H0()||UJ()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(n=`Alt-${n}`),i&&(n=`Ctrl-${n}`),s&&(n=`Meta-${n}`),o&&(n=`Shift-${n}`),n}var VOe=t=>({editor:e,view:n,tr:r,dispatch:i})=>{const o=zOe(t).split(/-(?!$)/),s=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,a))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function q0(t,e,n={}){const{from:r,to:i,empty:o}=t.selection,s=e?Xr(e,t.schema):null,a=[];t.doc.nodesBetween(r,i,(d,f)=>{if(d.isText)return;const h=Math.max(r,f),p=Math.min(i,f+d.nodeSize);a.push({node:d,from:h,to:p})});const l=i-r,c=a.filter(d=>s?s.name===d.node.type.name:!0).filter(d=>px(d.node.attrs,n,{strict:!1}));return o?!!c.length:c.reduce((d,f)=>d+f.to-f.from,0)>=l}var BOe=(t,e={})=>({state:n,dispatch:r})=>{const i=Xr(t,n.schema);return q0(n,i,e)?tke(n,r):!1},$Oe=()=>({state:t,dispatch:e})=>tJ(t,e),FOe=t=>({state:e,dispatch:n})=>{const r=Xr(t,e.schema);return hke(r)(e,n)},jOe=()=>({state:t,dispatch:e})=>ZQ(t,e);function oC(t,e){return e.nodes[t]?"node":e.marks[t]?"mark":null}function EV(t,e){const n=typeof e=="string"?[e]:e;return Object.keys(t).reduce((r,i)=>(n.includes(i)||(r[i]=t[i]),r),{})}var HOe=(t,e)=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=oC(typeof t=="string"?t:t.name,r.schema);if(!a)return!1;a==="node"&&(o=Xr(t,r.schema)),a==="mark"&&(s=dc(t,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{r.doc.nodesBetween(c.$from.pos,c.$to.pos,(u,d)=>{o&&o===u.type&&(l=!0,i&&n.setNodeMarkup(d,void 0,EV(u.attrs,e))),s&&u.marks.length&&u.marks.forEach(f=>{s===f.type&&(l=!0,i&&n.addMark(d,d+u.nodeSize,s.create(EV(f.attrs,e))))})})}),l},UOe=()=>({tr:t,dispatch:e})=>(e&&t.scrollIntoView(),!0),qOe=()=>({tr:t,dispatch:e})=>{if(e){const n=new Oo(t.doc);t.setSelection(n)}return!0},WOe=()=>({state:t,dispatch:e})=>YQ(t,e),GOe=()=>({state:t,dispatch:e})=>JQ(t,e),KOe=()=>({state:t,dispatch:e})=>oke(t,e),YOe=()=>({state:t,dispatch:e})=>lke(t,e),XOe=()=>({state:t,dispatch:e})=>ake(t,e);function k4(t,e,n={},r={}){return U0(t,e,{slice:!1,parseOptions:n,errorOnInvalidContent:r.errorOnInvalidContent})}var QOe=(t,{errorOnInvalidContent:e,emitUpdate:n=!0,parseOptions:r={}}={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{const{doc:l}=o;if(r.preserveWhitespace!=="full"){const c=k4(t,i.schema,r,{errorOnInvalidContent:e??i.options.enableContentCheck});return s&&o.replaceWith(0,l.content.size,c).setMeta("preventUpdate",!n),!0}return s&&o.setMeta("preventUpdate",!n),a.insertContentAt({from:0,to:l.content.size},t,{parseOptions:r,errorOnInvalidContent:e??i.options.enableContentCheck})};function qJ(t,e){const n=dc(e,t.schema),{from:r,to:i,empty:o}=t.selection,s=[];o?(t.storedMarks&&s.push(...t.storedMarks),s.push(...t.selection.$head.marks())):t.doc.nodesBetween(r,i,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function JOe(t,e){const n=new hO(t);return e.forEach(r=>{r.steps.forEach(i=>{n.step(i)})}),n}function ZOe(t){for(let e=0;e<t.edgeCount;e+=1){const{type:n}=t.edge(e);if(n.isTextblock&&!n.hasRequiredAttrs())return n}return null}function Get(t,e,n){const r=[];return t.nodesBetween(e.from,e.to,(i,o)=>{n(i)&&r.push({node:i,pos:o})}),r}function eNe(t,e){for(let n=t.depth;n>0;n-=1){const r=t.node(n);if(e(r))return{pos:n>0?t.before(n):0,start:t.start(n),depth:n,node:r}}}function sC(t){return e=>eNe(e.$from,t)}function ot(t,e,n){return t.config[e]===void 0&&t.parent?ot(t.parent,e,n):typeof t.config[e]=="function"?t.config[e].bind({...n,parent:t.parent?ot(t.parent,e,n):null}):t.config[e]}function PO(t){return t.map(e=>{const n={name:e.name,options:e.options,storage:e.storage},r=ot(e,"addExtensions",n);return r?[e,...PO(r())]:e}).flat(10)}function OO(t,e){const n=yh.fromSchema(e).serializeFragment(t),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function WJ(t){return typeof t=="function"}function gn(t,e=void 0,...n){return WJ(t)?e?t.bind(e)(...n):t(...n):t}function tNe(t={}){return Object.keys(t).length===0&&t.constructor===Object}function $m(t){const e=t.filter(i=>i.type==="extension"),n=t.filter(i=>i.type==="node"),r=t.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:n,markExtensions:r}}function GJ(t){const e=[],{nodeExtensions:n,markExtensions:r}=$m(t),i=[...n,...r],o={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1},s=n.filter(c=>c.name!=="text").map(c=>c.name),a=r.map(c=>c.name),l=[...s,...a];return t.forEach(c=>{const u={name:c.name,options:c.options,storage:c.storage,extensions:i},d=ot(c,"addGlobalAttributes",u);if(!d)return;d().forEach(h=>{let p;Array.isArray(h.types)?p=h.types:h.types==="*"?p=l:h.types==="nodes"?p=s:h.types==="marks"?p=a:p=[],p.forEach(m=>{Object.entries(h.attributes).forEach(([g,y])=>{e.push({type:m,name:g,attribute:{...o,...y}})})})})}),i.forEach(c=>{const u={name:c.name,options:c.options,storage:c.storage},d=ot(c,"addAttributes",u);if(!d)return;const f=d();Object.entries(f).forEach(([h,p])=>{const m={...o,...p};typeof(m==null?void 0:m.default)=="function"&&(m.default=m.default()),m!=null&&m.isRequired&&(m==null?void 0:m.default)===void 0&&delete m.default,e.push({type:c.name,name:h,attribute:m})})}),e}function nNe(t){const e=[];let n="",r=!1,i=!1,o=0;const s=t.length;for(let a=0;a<s;a+=1){const l=t[a];if(l==="'"&&!i){r=!r,n+=l;continue}if(l==='"'&&!r){i=!i,n+=l;continue}if(!r&&!i){if(l==="("){o+=1,n+=l;continue}if(l===")"&&o>0){o-=1,n+=l;continue}if(l===";"&&o===0){e.push(n),n="";continue}}n+=l}return n&&e.push(n),e}function TV(t){const e=[],n=nNe(t||""),r=n.length;for(let i=0;i<r;i+=1){const o=n[i],s=o.indexOf(":");if(s===-1)continue;const a=o.slice(0,s).trim(),l=o.slice(s+1).trim();a&&l&&e.push([a,l])}return e}function rNe(...t){return t.filter(e=>!!e).reduce((e,n)=>{const r={...e};return Object.entries(n).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const a=o?String(o).split(" "):[],l=r[i]?r[i].split(" "):[],c=a.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else if(i==="style"){const a=new Map([...TV(r[i]),...TV(o)]);r[i]=Array.from(a.entries()).map(([l,c])=>`${l}: ${c}`).join("; ")}else r[i]=o}),r},{})}function W0(t,e){return e.filter(n=>n.type===t.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(t.attrs)||{}:{[n.name]:t.attrs[n.name]}).reduce((n,r)=>rNe(n,r),{})}function iNe(t){return typeof t!="string"?t:t.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(t):t==="true"?!0:t==="false"?!1:t}function CV(t,e){return"style"in t?t:{...t,getAttrs:n=>{const r=t.getAttrs?t.getAttrs(n):t.attrs;if(r===!1)return!1;const i=e.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(n):iNe(n.getAttribute(s.name));return a==null?o:{...o,[s.name]:a}},{});return{...r,...i}}}}function _V(t){return Object.fromEntries(Object.entries(t).filter(([e,n])=>e==="attrs"&&tNe(n)?!1:n!=null))}function AV(t){var e,n;const r={};return!((e=t==null?void 0:t.attribute)!=null&&e.isRequired)&&"default"in((t==null?void 0:t.attribute)||{})&&(r.default=t.attribute.default),((n=t==null?void 0:t.attribute)==null?void 0:n.validate)!==void 0&&(r.validate=t.attribute.validate),[t.name,r]}function oNe(t,e){var n;const r=GJ(t),{nodeExtensions:i,markExtensions:o}=$m(t),s=(n=i.find(c=>ot(c,"topNode")))==null?void 0:n.name,a=Object.fromEntries(i.map(c=>{const u=r.filter(y=>y.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},f=t.reduce((y,b)=>{const v=ot(b,"extendNodeSchema",d);return{...y,...v?v(c):{}}},{}),h=_V({...f,content:gn(ot(c,"content",d)),marks:gn(ot(c,"marks",d)),group:gn(ot(c,"group",d)),inline:gn(ot(c,"inline",d)),atom:gn(ot(c,"atom",d)),selectable:gn(ot(c,"selectable",d)),draggable:gn(ot(c,"draggable",d)),code:gn(ot(c,"code",d)),whitespace:gn(ot(c,"whitespace",d)),linebreakReplacement:gn(ot(c,"linebreakReplacement",d)),defining:gn(ot(c,"defining",d)),isolating:gn(ot(c,"isolating",d)),attrs:Object.fromEntries(u.map(AV))}),p=gn(ot(c,"parseHTML",d));p&&(h.parseDOM=p.map(y=>CV(y,u)));const m=ot(c,"renderHTML",d);m&&(h.toDOM=y=>m({node:y,HTMLAttributes:W0(y,u)}));const g=ot(c,"renderText",d);return g&&(h.toText=g),[c.name,h]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(g=>g.type===c.name),d={name:c.name,options:c.options,storage:c.storage,editor:e},f=t.reduce((g,y)=>{const b=ot(y,"extendMarkSchema",d);return{...g,...b?b(c):{}}},{}),h=_V({...f,inclusive:gn(ot(c,"inclusive",d)),excludes:gn(ot(c,"excludes",d)),group:gn(ot(c,"group",d)),spanning:gn(ot(c,"spanning",d)),code:gn(ot(c,"code",d)),attrs:Object.fromEntries(u.map(AV))}),p=gn(ot(c,"parseHTML",d));p&&(h.parseDOM=p.map(g=>CV(g,u)));const m=ot(c,"renderHTML",d);return m&&(h.toDOM=g=>m({mark:g,HTMLAttributes:W0(g,u)})),[c.name,h]}));return new IQ({topNode:s,nodes:a,marks:l})}function sNe(t){const e=t.filter((n,r)=>t.indexOf(n)!==r);return Array.from(new Set(e))}function Py(t){return t.sort((n,r)=>{const i=ot(n,"priority")||100,o=ot(r,"priority")||100;return i>o?-1:i<o?1:0})}function KJ(t){const e=Py(PO(t)),n=sNe(e.map(r=>r.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}function YJ(t,e,n){const{from:r,to:i}=e,{blockSeparator:o=` 4968
4969`,textSerializers:s={}}=n||{};let a="";return t.nodesBetween(r,i,(l,c,u,d)=>{var f;l.isBlock&&c>r&&(a+=o);const h=s==null?void 0:s[l.type.name];if(h)return u&&(a+=h({node:l,pos:c,parent:u,index:d,range:e})),!1;l.isText&&(a+=(f=l==null?void 0:l.text)==null?void 0:f.slice(Math.max(r,c)-c,i-c))}),a}function XJ(t,e){const n={from:0,to:t.content.size};return YJ(t,n,e)}function NO(t){return Object.fromEntries(Object.entries(t.nodes).filter(([,e])=>e.spec.toText).map(([e,n])=>[e,n.spec.toText]))}function aNe(t,e){const n=Xr(e,t.schema),{from:r,to:i}=t.selection,o=[];t.doc.nodesBetween(r,i,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===n.name);return s?{...s.attrs}:{}}function lNe(t,e){const n=oC(typeof e=="string"?e:e.name,t.schema);return n==="node"?aNe(t,e):n==="mark"?qJ(t,e):{}}function cNe(t,e=JSON.stringify){const n={};return t.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(n,i)?!1:n[i]=!0})}function uNe(t){const e=cNe(t);return e.length===1?e:e.filter((n,r)=>!e.filter((o,s)=>s!==r).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function dNe(t){const{mapping:e,steps:n}=t,r=[];return e.maps.forEach((i,o)=>{const s=[];if(i.ranges.length)i.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=n[o];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(o).map(a,-1),u=e.slice(o).map(l),d=e.invert().map(c,-1),f=e.invert().map(u);r.push({oldRange:{from:d,to:f},newRange:{from:c,to:u}})})}),uNe(r)}function QJ(t,e,n){const r=[];return t===e?n.resolve(t).marks().forEach(i=>{const o=n.resolve(t),s=kO(o,i.type);s&&r.push({mark:i,...s})}):n.nodesBetween(t,e,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(s=>({from:o,to:o+i.nodeSize,mark:s})))}),r}var Ket=(t,e,n,r=20)=>{const i=t.doc.resolve(n);let o=r,s=null;for(;o>0&&s===null;){const a=i.node(o);(a==null?void 0:a.type.name)===e?s=a:o-=1}return[s,o]};function l1(t,e){return e.nodes[t]||e.marks[t]||null}function ww(t,e,n){return Object.fromEntries(Object.entries(n).filter(([r])=>{const i=t.find(o=>o.type===e&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}var fNe=(t,e=500)=>{let n="";const r=t.parentOffset;return t.parent.nodesBetween(Math.max(0,r-e),r,(i,o,s,a)=>{var l,c;const u=((c=(l=i.type.spec).toText)==null?void 0:c.call(l,{node:i,pos:o,parent:s,index:a}))||i.textContent||"%leaf%";n+=i.isAtom&&!i.isText?u:u.slice(0,Math.max(0,r-o))}),n};function P4(t,e,n={}){const{empty:r,ranges:i}=t.selection,o=e?dc(e,t.schema):null;if(r)return!!(t.storedMarks||t.selection.$from.marks()).filter(d=>o?o.name===d.type.name:!0).find(d=>px(d.attrs,n,{strict:!1}));let s=0;const a=[];if(i.forEach(({$from:d,$to:f})=>{const h=d.pos,p=f.pos;t.doc.nodesBetween(h,p,(m,g)=>{if(o&&m.inlineContent&&!m.type.allowsMarkType(o))return!1;if(!m.isText&&!m.marks.length)return;const y=Math.max(h,g),b=Math.min(p,g+m.nodeSize),v=b-y;s+=v,a.push(...m.marks.map(S=>({mark:S,from:y,to:b})))})}),s===0)return!1;const l=a.filter(d=>o?o.name===d.mark.type.name:!0).filter(d=>px(d.mark.attrs,n,{strict:!1})).reduce((d,f)=>d+f.to-f.from,0),c=a.filter(d=>o?d.mark.type!==o&&d.mark.type.excludes(o):!0).reduce((d,f)=>d+f.to-f.from,0);return(l>0?l+c:l)>=s}function hNe(t,e,n={}){if(!e)return q0(t,null,n)||P4(t,null,n);const r=oC(e,t.schema);return r==="node"?q0(t,e,n):r==="mark"?P4(t,e,n):!1}var Yet=(t,e)=>{const{$from:n,$to:r,$anchor:i}=t.selection;if(e){const o=sC(a=>a.type.name===e)(t.selection);if(!o)return!1;const s=t.doc.resolve(o.pos+1);return i.pos+1===s.end()}return!(r.parentOffset<r.parent.nodeSize-2||n.pos!==r.pos)},Xet=t=>{const{$from:e,$to:n}=t.selection;return!(e.parentOffset>0||e.pos!==n.pos)};function IV(t,e){return Array.isArray(e)?e.some(n=>(typeof n=="string"?n:n.name)===t.name):e}function nI(t,e){const{nodeExtensions:n}=$m(e),r=n.find(s=>s.name===t);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=gn(ot(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function DO(t,{checkChildren:e=!0,ignoreWhitespace:n=!1}={}){var r;if(n){if(t.type.name==="hardBreak")return!0;
4969if(t.isText)return!/\S/.test((r=t.text)!=null?r:"")}if(t.isText)return!t.text;if(t.isAtom||t.isLeaf)return!1;if(t.content.childCount===0)return!0;if(e){let i=!0;return t.content.forEach(o=>{i!==!1&&(DO(o,{ignoreWhitespace:n,checkChildren:e})||(i=!1))}),i}return!1}function Qet(t){return t instanceof lt}function pNe({selection:t,pos:e,nodeSize:n,selectedOnTextSelection:r=!1}){const{from:i,to:o}=t;return!!(i<=e&&o>=e+n||r&&iC(t)&&i>e&&o<e+n)}var JJ=class ZJ{constructor(e){this.position=e}static fromJSON(e){return new ZJ(e.position)}toJSON(){return{position:this.position}}};function mNe(t,e){const n=e.mapping.mapResult(t.position);return{position:new JJ(n.pos),mapResult:n}}function gNe(t){return new JJ(t)}function eZ(t,e,n){const i=t.state.doc.content.size,o=Dl(e,0,i),s=Dl(n,0,i),a=t.coordsAtPos(o),l=t.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),d=Math.min(a.left,l.left),f=Math.max(a.right,l.right),h=f-d,p=u-c,y={top:c,bottom:u,left:d,right:f,width:h,height:p,x:d,y:c};return{...y,toJSON:()=>y}}function yNe(t,e,n){var r;const{selection:i}=e;let o=null;
vendor: 43,653 bytes, lines 4969-5042
4969if(iC(i)&&(o=i.$cursor),o){const a=(r=t.storedMarks)!=null?r:o.marks();return o.parent.type.allowsMarkType(n)&&(!!n.isInSet(a)||!a.some(c=>c.type.excludes(n)))}const{ranges:s}=i;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?t.doc.inlineContent&&t.doc.type.allowsMarkType(n):!1;return t.doc.nodesBetween(a.pos,l.pos,(u,d,f)=>{if(c)return!1;if(u.isInline){const h=!f||f.type.allowsMarkType(n),p=!!n.isInSet(u.marks)||!u.marks.some(m=>m.type.excludes(n));c=h&&p}return!c}),c})}var vNe=(t,e={})=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=n,{empty:s,ranges:a}=o,l=dc(t,r.schema);if(i)if(s){const c=qJ(r,l);n.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;r.doc.nodesBetween(u,d,(f,h)=>{const p=Math.max(h,u),m=Math.min(h+f.nodeSize,d);f.marks.find(y=>y.type===l)?f.marks.forEach(y=>{l===y.type&&n.addMark(p,m,l.create({...y.attrs,...e}))}):n.addMark(p,m,l.create(e))})});return yNe(r,n,l)},bNe=(t,e)=>({tr:n})=>(n.setMeta(t,e),!0),wNe=(t,e={})=>({state:n,dispatch:r,chain:i})=>{const o=Xr(t,n.schema);let s;return n.selection.$anchor.sameParent(n.selection.$head)&&(s=n.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:a})=>jz(o,{...s,...e})(n)?!0:a.clearNodes()).command(({state:a})=>jz(o,{...s,...e})(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},SNe=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,i=Dl(t,0,r.content.size),o=lt.create(r,i);e.setSelection(o)}return!0},xNe=(t,e)=>({tr:n,state:r,dispatch:i})=>{const{selection:o}=r;let s,a;return typeof e=="number"?(s=e,a=e):e&&"from"in e&&"to"in e?(s=e.from,a=e.to):(s=o.from,a=o.to),i&&n.doc.nodesBetween(s,a,(l,c)=>{l.isText||n.setNodeMarkup(c,void 0,{...l.attrs,dir:t})}),!0},ENe=t=>({tr:e,dispatch:n})=>{if(n){const{doc:r}=e,{from:i,to:o}=typeof t=="number"?{from:t,to:t}:t,s=mt.atStart(r).from,a=mt.atEnd(r).to,l=Dl(i,s,a),c=Dl(o,s,a),u=mt.create(r,l,c);e.setSelection(u)}return!0},TNe=t=>({state:e,dispatch:n})=>{const r=Xr(t,e.schema);return gke(r)(e,n)};function RV(t,e){const n=t.storedMarks||t.selection.$to.parentOffset&&t.selection.$from.marks();if(n){const r=n.filter(i=>e==null?void 0:e.includes(i.type.name));t.tr.ensureMarks(r)}}var CNe=({keepMarks:t=!0}={})=>({tr:e,state:n,dispatch:r,editor:i})=>{const{selection:o,doc:s}=e,{$from:a,$to:l}=o,c=i.extensionManager.attributes,u=ww(c,a.node().type.name,a.node().attrs);if(o instanceof lt&&o.node.isBlock)return!a.parentOffset||!Hl(s,a.pos)?!1:(r&&(t&&RV(n,i.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const d=l.parentOffset===l.parent.content.size,f=a.depth===0?void 0:ZOe(a.node(-1).contentMatchAt(a.indexAfter(-1)));let h=d&&f?[{type:f,attrs:u}]:void 0,p=Hl(e.doc,e.mapping.map(a.pos),1,h);if(!h&&!p&&Hl(e.doc,e.mapping.map(a.pos),1,f?[{type:f}]:void 0)&&(p=!0,h=f?[{type:f,attrs:u}]:void 0),r){if(p&&(o instanceof mt&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,h),f&&!d&&!a.parentOffset&&a.parent.type!==f)){const m=e.mapping.map(a.before()),g=e.doc.resolve(m);a.node(-1).canReplaceWith(g.index(),g.index()+1,f)&&e.setNodeMarkup(e.mapping.map(a.before()),f)}t&&RV(n,i.extensionManager.splittableMarks),e.scrollIntoView()}return p},_Ne=(t,e={})=>({tr:n,state:r,dispatch:i,editor:o})=>{var s;const a=Xr(t,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const d=l.node(-1);if(d.type!==a)return!1;const f=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let y=Ce.empty;const b=l.index(-1)?1:l.index(-2)?2:3;for(let A=l.depth-b;A>=l.depth-3;A-=1)y=Ce.from(l.node(A).copy(y));const v=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,S={...ww(f,l.node().type.name,l.node().attrs),...e},I=((s=a.contentMatch.defaultType)==null?void 0:s.createAndFill(S))||void 0;y=y.append(Ce.from(a.createAndFill(null,I)||void 0));const O=l.before(l.depth-(b-1));n.replace(O,l.after(-v),new We(y,4-b,0));let T=-1;n.doc.nodesBetween(O,n.doc.content.size,(A,R)=>{if(T>-1)return!1;A.isTextblock&&A.content.size===0&&(T=R+1)}),T>-1&&n.setSelection(mt.near(n.doc.resolve(T))),n.scrollIntoView()}return!0}const h=c.pos===l.end()?d.contentMatchAt(0).defaultType:null,p={...ww(f,d.type.name,d.attrs),...e},m={...ww(f,l.node().type.name,l.node().attrs),...e};n.delete(l.pos,c.pos);const g=h?[{type:a,attrs:p},{type:h,attrs:m}]:[{type:a,attrs:p}];if(!Hl(n.doc,l.pos,2))return!1;if(i){const{selection:y,storedMarks:b}=r,{splittableMarks:v}=o.extensionManager,S=b||y.$to.parentOffset&&y.$from.marks();if(n.split(l.pos,2,g).scrollIntoView(),!S||!i)return!0;const I=S.filter(O=>v.includes(O.type.name));n.ensureMarks(I)}return!0},rI=(t,e)=>{const n=sC(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&cd(t.doc,n.pos)&&t.join(n.pos),!0},iI=(t,e)=>{const n=sC(s=>s.type===e)(t.selection);if(!n)return!0;const r=t.doc.resolve(n.start).after(n.depth);if(r===void 0)return!0;const i=t.doc.nodeAt(r);return n.node.type===(i==null?void 0:i.type)&&cd(t.doc,r)&&t.join(r),!0};function ANe(t){const e=t.doc,n=e.firstChild;if(!n)return null;const r=e.resolve(1),i=e.resolve(n.nodeSize-1);return mt.between(r,i)}var INe=(t,e,n,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:d,splittableMarks:f}=i.extensionManager,h=Xr(t,s.schema),p=Xr(e,s.schema),{selection:m,storedMarks:g}=s,{$from:y,$to:b}=m,v=y.blockRange(b),S=g||m.$to.parentOffset&&m.$from.marks();if(!v)return!1;const I=sC(_=>nI(_.type.name,d))(m),O=m.from===0&&m.to===s.doc.content.size,T=s.doc.content.content,A=T.length===1?T[0]:null,R=O&&A&&nI(A.type.name,d)?{node:A,pos:0}:null,k=I??R,P=!!I&&v.depth>=1&&v.depth-I.depth<=1,C=!!R;if((P||C)&&k){if(k.node.type===h)return O&&C?l().command(({tr:_,dispatch:M})=>{const V=ANe(_);return V?(_.setSelection(V),M&&M(_),!0):!1}).liftListItem(p).run():c.liftListItem(p);if(nI(k.node.type.name,d)&&h.validContent(k.node.content))return l().command(()=>(o.setNodeMarkup(k.pos,h),!0)).command(()=>rI(o,h)).command(()=>iI(o,h)).run()}return!n||!S||!a?l().command(()=>u().wrapInList(h,r)?!0:c.clearNodes()).wrapInList(h,r).command(()=>rI(o,h)).command(()=>iI(o,h)).run():l().command(()=>{const _=u().wrapInList(h,r),M=S.filter(V=>f.includes(V.type.name));return o.ensureMarks(M),_?!0:c.clearNodes()}).wrapInList(h,r).command(()=>rI(o,h)).command(()=>iI(o,h)).run()},RNe=(t,e={},n={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=n,s=dc(t,r.schema);return P4(r,s,e)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,e)},MNe=(t,e,n={})=>({state:r,commands:i})=>{const o=Xr(t,r.schema),s=Xr(e,r.schema),a=q0(r,o,n);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?i.setNode(s,l):i.setNode(o,{...l,...n})},kNe=(t,e={})=>({state:n,commands:r})=>{const i=Xr(t,n.schema);return q0(n,i,e)?r.lift(i):r.wrapIn(i,e)},PNe=()=>({state:t,dispatch:e})=>{const n=t.plugins;for(let r=0;r<n.length;r+=1){const i=n[r];let o;if(i.spec.isInputRules&&(o=i.getState(t))){if(e){const s=t.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,t.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},ONe=()=>({tr:t,dispatch:e})=>{const{selection:n}=t,{empty:r,ranges:i}=n;return r||e&&i.forEach(o=>{t.removeMark(o.$from.pos,o.$to.pos)}),!0},NNe=(t,e={})=>({tr:n,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=n,l=dc(t,r.schema),{$from:c,empty:u,ranges:d}=a;if(!i)return!0;if(u&&s){let{from:f,to:h}=a;const p=(o=c.marks().find(g=>g.type===l))==null?void 0:o.attrs,m=kO(c,l,p);m&&(f=m.from,h=m.to),n.removeMark(f,h,l)}else d.forEach(f=>{n.removeMark(f.$from.pos,f.$to.pos,l)});return n.removeStoredMark(l),!0},DNe=t=>({tr:e,state:n,dispatch:r})=>{const{selection:i}=n;let o,s;return typeof t=="number"?(o=t,s=t):t&&"from"in t&&"to"in t?(o=t.from,s=t.to):(o=i.from,s=i.to),r&&e.doc.nodesBetween(o,s,(a,l)=>{if(a.isText)return;const c={...a.attrs};delete c.dir,e.setNodeMarkup(l,void 0,c)}),!0},LNe=(t,e={})=>({tr:n,state:r,dispatch:i})=>{let o=null,s=null;const a=oC(typeof t=="string"?t:t.name,r.schema);if(!a)return!1;a==="node"&&(o=Xr(t,r.schema)),a==="mark"&&(s=dc(t,r.schema));let l=!1;return n.selection.ranges.forEach(c=>{const u=c.$from.pos,d=c.$to.pos;let f,h,p,m;n.selection.empty?r.doc.nodesBetween(u,d,(g,y)=>{o&&o===g.type&&(l=!0,p=Math.max(y,u),m=Math.min(y+g.nodeSize,d),f=y,h=g)}):r.doc.nodesBetween(u,d,(g,y)=>{y<u&&o&&o===g.type&&(l=!0,p=Math.max(y,u),m=Math.min(y+g.nodeSize,d),f=y,h=g),y>=u&&y<=d&&(o&&o===g.type&&(l=!0,i&&n.setNodeMarkup(y,void 0,{...g.attrs,...e})),s&&g.marks.length&&g.marks.forEach(b=>{if(s===b.type&&(l=!0,i)){const v=Math.max(y,u),S=Math.min(y+g.nodeSize,d);n.addMark(v,S,s.create({...b.attrs,...e}))}}))}),h&&(f!==void 0&&i&&n.setNodeMarkup(f,void 0,{...h.attrs,...e}),s&&h.marks.length&&h.marks.forEach(g=>{s===g.type&&i&&n.addMark(p,m,s.create({...g.attrs,...e}))}))}),l},zNe=(t,e={})=>({state:n,dispatch:r})=>{const i=Xr(t,n.schema);return cke(i,e)(n,r)},VNe=(t,e={})=>({state:n,dispatch:r})=>{const i=Xr(t,n.schema);return uke(i,e)(n,r)},BNe=class{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const n=this.callbacks[t];return n&&n.forEach(r=>r.apply(this,e)),this}off(t,e){const n=this.callbacks[t];return n&&(e?this.callbacks[t]=n.filter(r=>r!==e):delete this.callbacks[t]),this}once(t,e){const n=(...r)=>{this.off(t,n),e.apply(this,r)};return this.on(t,n)}removeAllListeners(){this.callbacks={}}},Xv=class{constructor(t){var e;this.find=t.find,this.handler=t.handler,this.undoable=(e=t.undoable)!=null?e:!0}},$Ne=(t,e)=>{if(MO(e))return e.exec(t);const n=e(t);if(!n)return null;const r=[n.text];return r.index=n.index,r.input=t,r.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(n.replaceWith)),r};function m2(t){var e;const{editor:n,from:r,to:i,text:o,rules:s,plugin:a}=t,{view:l}=n;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||(e=c.nodeBefore||c.nodeAfter)!=null&&e.marks.find(f=>f.type.spec.code))return!1;let u=!1;const d=fNe(c)+o;return s.forEach(f=>{if(u)return;const h=$Ne(d,f.find);if(!h)return;const p=l.state.tr,m=nC({state:l.state,transaction:p}),g={from:r-(h[0].length-o.length),to:i},{commands:y,chain:b,can:v}=new rC({editor:n,state:m});f.handler({state:m,range:g,match:h,commands:y,chain:b,can:v})===null||!p.steps.length||(f.undoable&&p.setMeta(a,{transform:p,from:r,to:i,text:o}),l.dispatch(p),u=!0)}),u}function FNe(t){const{editor:e,rules:n}=t,r=new Li({state:{init(){return null},apply(i,o,s){const a=i.getMeta(r);if(a)return a;const l=i.getMeta("applyInputRules");return!!l&&setTimeout(()=>{let{text:u}=l;typeof u=="string"?u=u:u=OO(Ce.from(u),s.schema);const{from:d}=l,f=d+u.length;m2({editor:e,from:d,to:f,text:u,rules:n,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,s,a){return m2({editor:e,from:o,to:s,text:a,rules:n,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&m2({editor:e,from:o.pos,to:o.pos,text:"",rules:n,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?m2({editor:e,from:s.pos,to:s.pos,text:` 4970`,rules:n,plugin:r}):!1}},isInputRules:!0});return r}function jNe(t){return Object.prototype.toString.call(t).slice(8,-1)}function g2(t){return jNe(t)!=="Object"?!1:t.constructor===Object&&Object.getPrototypeOf(t)===Object.prototype}function tZ(t,e){const n={...t};return g2(t)&&g2(e)&&Object.keys(e).forEach(r=>{g2(e[r])&&g2(t[r])?n[r]=tZ(t[r],e[r]):n[r]=e[r]}),n}var LO=class{constructor(t={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...t},this.name=this.config.name}get options(){return{...gn(ot(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...gn(ot(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(t={}){const e=this.extend({...this.config,addOptions:()=>tZ(this.options,t)});return e.name=this.name,e.parent=this.parent,this.child=null,e}extend(t={}){const e=new this.constructor({...this.config,...t});return e.parent=this,this.child=e,e.name="name"in t?t.name:e.parent.name,e}},HNe=class nZ extends LO{constructor(){super(...arguments),this.type="mark"}static create(e={}){const n=typeof e=="function"?e():e;return new nZ(n)}static handleExit({editor:e,mark:n}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===n.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===n.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}};function UNe(t){return typeof t=="number"}var qNe=class{constructor(t){this.find=t.find,this.handler=t.handler}},WNe=(t,e,n)=>{if(MO(e))return[...t.matchAll(e)];const r=e(t,n);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=t,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function GNe(t){const{editor:e,state:n,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=t,{commands:l,chain:c,can:u}=new rC({editor:e,state:n}),d=[];return n.doc.nodesBetween(r,i,(h,p)=>{var m,g,y,b,v;if((g=(m=h.type)==null?void 0:m.spec)!=null&&g.code||!(h.isText||h.isTextblock||h.isInline))return;const S=(v=(b=(y=h.content)==null?void 0:y.size)!=null?b:h.nodeSize)!=null?v:0,I=Math.max(r,p),O=Math.min(i,p+S);if(I>=O)return;const T=h.isText?h.text||"":h.textBetween(I-p,O-p,void 0,"");WNe(T,o.find,s).forEach(R=>{if(R.index===void 0)return;const k=I+R.index+1,P=k+R[0].length,C={from:n.tr.mapping.map(k),to:n.tr.mapping.map(P)},_=o.handler({state:n,range:C,match:R,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});d.push(_)})}),d.every(h=>h!==null)}var y2=null,KNe=t=>{var e;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=n.clipboardData)==null||e.setData("text/html",t),n};function YNe(t){const{editor:e,rules:n}=t;let r=null,i=!1,o=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a;try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}const l=({state:u,from:d,to:f,rule:h,pasteEvt:p})=>{const m=u.tr,g=nC({state:u,transaction:m});if(!(!GNe({editor:e,state:g,from:Math.max(d-1,0),to:f.b-1,rule:h,pasteEvent:p,dropEvent:a})||!m.steps.length)){try{a=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{a=null}return s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(u=>new Li({view(d){const f=p=>{var m;r=(m=d.dom.parentElement)!=null&&m.contains(p.target)?d.dom.parentElement:null,r&&(y2=e)},h=()=>{y2&&(y2=null)};return window.addEventListener("dragstart",f),window.addEventListener("dragend",h),{destroy(){window.removeEventListener("dragstart",f),window.removeEventListener("dragend",h)}}},props:{handleDOMEvents:{drop:(d,f)=>{if(o=r===d.dom.parentElement,a=f,!o){const h=y2;h!=null&&h.isEditable&&setTimeout(()=>{const p=h.state.selection;p&&h.commands.deleteRange({from:p.from,to:p.to})},10)}return!1},paste:(d,f)=>{var h;const p=(h=f.clipboardData)==null?void 0:h.getData("text/html");return s=f,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(d,f,h)=>{const p=d[0],m=p.getMeta("uiEvent")==="paste"&&!i,g=p.getMeta("uiEvent")==="drop"&&!o,y=p.getMeta("applyPasteRules"),b=!!y;if(!m&&!g&&!b)return;if(b){let{text:I}=y;typeof I=="string"?I=I:I=OO(Ce.from(I),h.schema);const{from:O}=y,T=O+I.length,A=KNe(I);return l({rule:u,state:h,from:O,to:{b:T},pasteEvt:A})}const v=f.doc.content.findDiffStart(h.doc.content),S=f.doc.content.findDiffEnd(h.doc.content);if(!(!UNe(v)||!S||v===S.b))return l({rule:u,state:h,from:v,to:S,pasteEvt:s})}}))}var aC=class{constructor(t,e){this.splittableMarks=[],this.editor=e,this.baseExtensions=t,this.extensions=KJ(t),this.schema=oNe(this.extensions,e),this.setupExtensions()}get commands(){return this.extensions.reduce((t,e)=>{const n={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:l1(e.name,this.schema)},r=ot(e,"addCommands",n);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this;return Py([...this.extensions].reverse()).flatMap(r=>{const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:t,type:l1(r.name,this.schema)},o=[],s=ot(r,"addKeyboardShortcuts",i);let a={};if(r.type==="mark"&&ot(r,"exitable",i)&&(a.ArrowRight=()=>HNe.handleExit({editor:t,mark:r})),s){const f=Object.fromEntries(Object.entries(s()).map(([h,p])=>[h,()=>p({editor:t})]));a={...a,...f}}const l=sOe(a);o.push(l);const c=ot(r,"addInputRules",i);if(IV(r,t.options.enableInputRules)&&c){const f=c();if(f&&f.length){const h=FNe({editor:t,rules:f}),p=Array.isArray(h)?h:[h];o.push(...p)}}const u=ot(r,"addPasteRules",i);if(IV(r,t.options.enablePasteRules)&&u){const f=u();if(f&&f.length){const h=YNe({editor:t,rules:f});o.push(...h)}}const d=ot(r,"addProseMirrorPlugins",i);if(d){const f=d();o.push(...f)}return o})}get attributes(){return GJ(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=$m(this.extensions);return Object.fromEntries(e.filter(n=>!!ot(n,"addNodeView")).map(n=>{const r=this.attributes.filter(l=>l.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:Xr(n.name,this.schema)},o=ot(n,"addNodeView",i);if(!o)return[];const s=o();if(!s)return[];const a=(l,c,u,d,f)=>{const h=W0(l,r);return s({node:l,view:c,getPos:u,decorations:d,innerDecorations:f,editor:t,extension:n,HTMLAttributes:h})};return[n.name,a]}))}dispatchTransaction(t){const{editor:e}=this;return Py([...this.extensions].reverse()).reduceRight((r,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:e,type:l1(i.name,this.schema)},s=ot(i,"dispatchTransaction",o);return s?a=>{s.call(o,{transaction:a,next:r})}:r},t)}transformPastedHTML(t){const{editor:e}=this;return Py([...this.extensions]).reduce((r,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:e,type:l1(i.name,this.schema)},s=ot(i,"transformPastedHTML",o);return s?(a,l)=>{const c=r(a,l);return s.call(o,c)}:r},t||(r=>r))}get markViews(){const{editor:t}=this,{markExtensions:e}=$m(this.extensions);return Object.fromEntries(e.filter(n=>!!ot(n,"addMarkView")).map(n=>{const r=this.attributes.filter(a=>a.type===n.name),i={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:t,type:dc(n.name,this.schema)},o=ot(n,"addMarkView",i);if(!o)return[];const s=(a,l,c)=>{const u=W0(a,r);return o()({mark:a,view:l,inline:c,editor:t,extension:n,HTMLAttributes:u,updateAttributes:d=>{f9e(a,t,d)}})};return[n.name,s]}))}destroy(){this.extensions.forEach(t=>{let e=t;for(;e.parent;){const n=e.parent;n.child===e&&(n.child=null),e=n}}),this.extensions=[],this.baseExtensions=[],this.schema=null,this.editor=null}setupExtensions(){const t=this.extensions;this.editor.extensionStorage=Object.fromEntries(t.map(e=>[e.name,e.storage])),t.forEach(e=>{var n;const r={name:e.name,options:e.options,storage:this.editor.extensionStorage[e.name],editor:this.editor,type:l1(e.name,this.schema)};e.type==="mark"&&((n=gn(ot(e,"keepOnSplit",r)))==null||n)&&this.splittableMarks.push(e.name);const i=ot(e,"onBeforeCreate",r),o=ot(e,"onCreate",r),s=ot(e,"onUpdate",r),a=ot(e,"onSelectionUpdate",r),l=ot(e,"onTransaction",r),c=ot(e,"onFocus",r),u=ot(e,"onBlur",r),d=ot(e,"onDestroy",r);i&&this.editor.on("beforeCreate",i),o&&this.editor.on("create",o),s&&this.editor.on("update",s),a&&this.editor.on("selectionUpdate",a),l&&this.editor.on("transaction",l),c&&this.editor.on("focus",c),u&&this.editor.on("blur",u),d&&this.editor.on("destroy",d)})}};aC.resolve=KJ;aC.sort=Py;aC.flatten=PO;var XNe={};RO(XNe,{ClipboardTextSerializer:()=>iZ,Commands:()=>oZ,Delete:()=>sZ,Drop:()=>aZ,Editable:()=>lZ,FocusEvents:()=>uZ,Keymap:()=>dZ,Paste:()=>fZ,Tabindex:()=>hZ,TextDirection:()=>pZ,focusEventsPluginKey:()=>cZ});var As=class rZ extends LO{constructor(){super(...arguments),this.type="extension"}static create(e={}){const n=typeof e=="function"?e():e;return new rZ(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},iZ=As.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new Li({key:new lo("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:t}=this,{state:e,schema:n}=t,{doc:r,selection:i}=e,{ranges:o}=i,s=Math.min(...o.map(u=>u.$from.pos)),a=Math.max(...o.map(u=>u.$to.pos)),l=NO(n);return YJ(r,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),oZ=As.create({name:"commands",addCommands(){return{...$J}}}),sZ=As.create({name:"delete",onUpdate({transaction:t,appendedTransactions:e}){var n,r,i;const o=()=>{var s,a,l,c;if((c=(l=(a=(s=this.editor.options.coreExtensionOptions)==null?void 0:s.delete)==null?void 0:a.filterTransaction)==null?void 0:l.call(a,t))!=null?c:t.getMeta("y-sync$"))return;const u=JOe(t.before,[t,...e]);dNe(u).forEach(h=>{u.mapping.mapResult(h.oldRange.from).deletedAfter&&u.mapping.mapResult(h.oldRange.to).deletedBefore&&u.before.nodesBetween(h.oldRange.from,h.oldRange.to,(p,m)=>{const g=m+p.nodeSize-2,y=h.oldRange.from<=m&&g<=h.oldRange.to;this.editor.emit("delete",{type:"node",node:p,from:m,to:g,newFrom:u.mapping.map(m),newTo:u.mapping.map(g),deletedRange:h.oldRange,newRange:h.newRange,partial:!y,editor:this.editor,transaction:t,combinedTransform:u})})});const f=u.mapping;u.steps.forEach((h,p)=>{var m,g;if(h instanceof Fs){const y=f.slice(p).map(h.from,-1),b=f.slice(p).map(h.to),v=f.invert().map(y,-1),S=f.invert().map(b),I=y>0?(m=u.doc.nodeAt(y-1))==null?void 0:m.marks.some(T=>T.eq(h.mark)):!1,O=(g=u.doc.nodeAt(b))==null?void 0:g.marks.some(T=>T.eq(h.mark));this.editor.emit("delete",{type:"mark",mark:h.mark,from:h.from,to:h.to,deletedRange:{from:v,to:S},newRange:{from:y,to:b},partial:!!(O||I),editor:this.editor,transaction:t,combinedTransform:u})}})};(i=(r=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:r.async)==null||i?setTimeout(o,0):o()}}),aZ=As.create({name:"drop",addProseMirrorPlugins(){return[new Li({key:new lo("tiptapDrop"),props:{handleDrop:(t,e,n,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:r})}}})]}}),lZ=As.create({name:"editable",addProseMirrorPlugins(){return[new Li({key:new lo("editable"),props:{editable:()=>this.editor.options.editable}})]}}),cZ=new lo("focusEvents"),uZ=As.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this;return[new Li({key:cZ,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0;const r=t.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,n)=>{t.isFocused=!1;const r=t.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),dZ=As.create({name:"keymap",addKeyboardShortcuts(){const t=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:d}=l,{pos:f,parent:h}=d,p=d.parent.isTextblock&&f>0?a.doc.resolve(f-1):d,m=p.parent.type.spec.isolating,g=d.pos-d.parentOffset,y=m&&p.parent.childCount===1?g===d.pos:vt.atStart(c).from===f;return!u||!h.type.isTextblock||h.textContent.length||!y||y&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:t,"Mod-Backspace":t,"Shift-Backspace":t,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":t,"Alt-Backspace":t,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return H0()||UJ()?o:i},addProseMirrorPlugins(){return[new Li({key:new lo("clearDocument"),appendTransaction:(t,e,n)=>{if(t.some(m=>m.getMeta("composition")))return;const r=t.some(m=>m.docChanged)&&!e.doc.eq(n.doc),i=t.some(m=>m.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:s,to:a}=e.selection,l=vt.atStart(e.doc).from,c=vt.atEnd(e.doc).to;if(o||!(s===l&&a===c)||!DO(n.doc))return;const f=n.tr,h=nC({state:n,transaction:f}),{commands:p}=new rC({editor:this.editor,state:h});if(p.clearNodes(),!!f.steps.length)return f}})]}}),fZ=As.create({name:"paste",addProseMirrorPlugins(){return[new Li({key:new lo("tiptapPaste"),props:{handlePaste:(t,e,n)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:n})}}})]}}),hZ=As.create({name:"tabindex",addOptions(){return{value:void 0}},addProseMirrorPlugins(){return[new Li({key:new lo("tabindex"),props:{attributes:()=>{var t;return!this.editor.isEditable&&this.options.value===void 0?{}:{tabindex:(t=this.options.value)!=null?t:"0"}}}})]}}),pZ=As.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:t}=$m(this.extensions);return[{types:t.filter(e=>e.name!=="text").map(e=>e.name),attributes:{dir:{default:this.options.direction,parseHTML:e=>{const n=e.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:e=>e.dir?{dir:e.dir}:{}}}}]},addProseMirrorPlugins(){return[new Li({key:new lo("textDirection"),props:{attributes:()=>{const t=this.options.direction;return t?{dir:t}:{}}}})]}}),QNe=class L1{constructor(e,n,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=n,this.currentNode=i}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!=null?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let n=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}n=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:n,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(e);return new L1(n,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new L1(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new L1(e,this.editor)}get children(){const e=[];return this.node.content.forEach((n,r)=>{const i=n.isBlock&&!n.isTextblock,o=n.isAtom&&!n.isText,s=n.isInline,a=this.pos+r+(o?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!i&&!s&&l.depth<=this.depth)return;const c=new L1(l,this.editor,i,i||s?n:null);i&&(c.actualDepth=this.depth+1),e.push(c)}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,n={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(n).length>0){const o=i.node.attrs,s=Object.keys(n);for(let a=0;a<s.length;a+=1){const l=s[a];if(o[l]!==n[l])break}}else r=i;i=i.parent}return r}querySelector(e,n={}){return this.querySelectorAll(e,n,!0)[0]||null}querySelectorAll(e,n={},r=!1){let i=[];if(!this.children||this.children.length===0)return i;const o=Object.keys(n);return this.children.forEach(s=>{r&&i.length>0||(s.node.type.name===e&&o.every(l=>n[l]===s.node.attrs[l])&&i.push(s),!(r&&i.length>0)&&(i=i.concat(s.querySelectorAll(e,n,r))))}),i}setAttribute(e){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...e}),this.editor.view.dispatch(n)}},JNe=`.ProseMirror { 4971 position: relative; 4972} 4973 4974.ProseMirror { 4975 word-wrap: break-word; 4976 white-space: pre-wrap; 4977 white-space: break-spaces; 4978 -webkit-font-variant-ligatures: none; 4979 font-variant-ligatures: none; 4980 font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ 4981} 4982 4983.ProseMirror [contenteditable="false"] { 4984 white-space: normal; 4985} 4986 4987.ProseMirror [contenteditable="false"] [contenteditable="true"] { 4988 white-space: pre-wrap; 4989} 4990 4991.ProseMirror pre { 4992 white-space: pre-wrap; 4993} 4994 4995img.ProseMirror-separator { 4996 display: inline !important; 4997 border: none !important; 4998 margin: 0 !important; 4999 width: 0 !important; 5000 height: 0 !important; 5001} 5002 5003.ProseMirror-gapcursor { 5004 display: none; 5005 pointer-events: none; 5006 position: absolute; 5007 margin: 0; 5008} 5009 5010.ProseMirror-gapcursor:after { 5011 content: ""; 5012 display: block; 5013 position: absolute; 5014 top: -2px; 5015 width: 20px; 5016 border-top: 1px solid black; 5017 animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; 5018} 5019 5020@keyframes ProseMirror-cursor-blink { 5021 to { 5022 visibility: hidden; 5023 } 5024} 5025 5026.ProseMirror-hideselection *::selection { 5027 background: transparent; 5028} 5029 5030.ProseMirror-hideselection *::-moz-selection { 5031 background: transparent; 5032} 5033 5034.ProseMirror-hideselection * { 5035 caret-color: transparent; 5036} 5037 5038.ProseMirror-focused .ProseMirror-gapcursor { 5039 display: block; 5040}`;function ZNe(t,e,n){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(i),i}var e9e=class extends BNe{constructor(t={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.destroyed=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:r})=>{throw r},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:mNe,createMappablePosition:gNe},this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),this.on("drop",({event:r,slice:i,moved:o})=>this.options.onDrop(r,i,o)),this.on("paste",({event:r,slice:i})=>this.options.onPaste(r,i)),this.on("delete",this.options.onDelete);const e=this.createDoc(),n=jJ(e,this.options.autofocus);this.editorState=vp.create({doc:e,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(t){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(t),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const t=this.editorView.dom;t!=null&&t.editor&&delete t.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(t){console.warn("Failed to remove CSS element:",t)}this.css=null,this.emit("unmount",{editor:this})}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&typeof document<"u"&&(this.css=ZNe(JNe,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:t=>{this.editorState=t},dispatch:t=>{this.dispatchTransaction(t)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(t,e)=>{if(this.editorView)return this.editorView[e];if(e==="state")return this.editorState;if(e in t)return Reflect.get(t,e);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${e}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(t,e){const n=WJ(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}unregisterPlugin(t){if(this.isDestroyed)return;const e=this.state.plugins;let n=e;if([].concat(t).forEach(i=>{const o=typeof i=="string"?`${i}$`:i.key;n=n.filter(s=>!s.key.startsWith(o))}),e.length===n.length)return;const r=this.state.reconfigure({plugins:n});return this.view.updateState(r),r}createExtensionManager(){var t,e,n,r;const o=[...this.options.enableCoreExtensions?[lZ,iZ.configure({blockSeparator:(e=(t=this.options.coreExtensionOptions)==null?void 0:t.clipboardTextSerializer)==null?void 0:e.blockSeparator}),oZ,uZ,dZ,hZ.configure({value:(r=(n=this.options.coreExtensionOptions)==null?void 0:n.tabindex)==null?void 0:r.value}),aZ,fZ,sZ,pZ.configure({direction:this.options.textDirection})].filter(s=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[s.name]!==!1:!0):[],...this.options.extensions].filter(s=>["extension","node","mark"].includes(s==null?void 0:s.type));this.extensionManager=new aC(o,this)}createCommandManager(){this.commandManager=new rC({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let t;try{t=k4(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(e){if(!(e instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(e.message))throw e;this.emit("contentError",{editor:this,error:e,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),t=k4(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return t}createView(t){const{editorProps:e,enableExtensionDispatchTransaction:n}=this.options,r=e.dispatchTransaction||this.dispatchTransaction.bind(this),i=n?this.extensionManager.dispatchTransaction(r):r,o=e.transformPastedHTML,s=this.extensionManager.transformPastedHTML(o);this.editorView=new VJ(t,{...e,attributes:{role:"textbox",...e==null?void 0:e.attributes},dispatchTransaction:i,transformPastedHTML:s,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const a=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(a),this.prependClass(),this.injectCSS();const l=this.view.dom;l.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(c=>{var u;return(u=this.capturedTransaction)==null?void 0:u.step(c)});return}const{state:e,transactions:n}=this.state.applyTransaction(t),r=!this.state.selection.eq(e.selection),i=n.includes(t),o=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:t,nextState:e}),!i)return;this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t,appendedTransactions:n.slice(1)}),r&&this.emit("selectionUpdate",{editor:this,transaction:t});const s=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),a=s==null?void 0:s.getMeta("focus"),l=s==null?void 0:s.getMeta("blur");a&&this.emit("focus",{editor:this,event:a.event,transaction:s}),l&&this.emit("blur",{editor:this,event:l.event,transaction:s}),!(t.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||o.doc.eq(e.doc))&&this.emit("update",{editor:this,transaction:t,appendedTransactions:n.slice(1)})}getAttributes(t){return lNe(this.state,t)}isActive(t,e){const n=typeof t=="string"?t:null,r=typeof t=="string"?e:t;return hNe(this.state,n,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return OO(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=` 5041 5042`,textSerializers:n={}}=t||{};return XJ(this.state.doc,{blockSeparator:e,textSerializers:{...NO(this.schema),...n}})}get isEmpty(){return DO(this.state.doc)}destroy(){this.destroyed||(this.destroyed=!0,this.emit("destroy"),this.unmount(),this.removeAllListeners(),this.extensionManager.destroy(),this.extensionManager=null,this.schema=null,this.commandManager=null,this.extensionStorage={})}get isDestroyed(){var t,e;return(e=(t=this.editorView)==null?void 0:t.isDestroyed)!=null?e:!0}$node(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelector(t,e))||null}$nodes(t,e){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(t,e))||null}$pos(t){const e=this.state.doc.resolve(t);return new QNe(e,this)}get $doc(){return this.$pos(0)}};function Jet(t){return new Xv({find:t.find,handler:({state:e,range:n,match:r})=>{const i=gn(t.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),c=n.from+a.indexOf(s),u=c+s.length;if(QJ(n.from,n.to,e.doc).filter(h=>h.mark.type.excluded.find(m=>m===t.type&&m!==h.mark.type)).filter(h=>h.to>c).length)return null;u<n.to&&o.delete(u,n.to),c>n.from&&o.delete(n.from+l,c);const f=n.from+l+s.length;o.addMark(n.from+l,f,t.type.create(i||{})),o.removeStoredMark(t.type)}},undoable:t.undoable})}function Zet(t){return new Xv({find:t.find,handler:({state:e,range:n,match:r})=>{const i=gn(t.getAttributes,void 0,r)||{},{tr:o}=e,s=n.from;let a=n.to;const l=t.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=s+c;u>a?u=a:a=u+r[1].length;const d=r[0][r[0].length-1];o.insertText(d,s+r[0].length-1),o.replaceWith(u,a,l)}else if(r[0]){const c=t.type.isInline?s:s-1;o.insert(c,t.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()},undoable:t.undoable})}function ett(t){return new Xv({find:t.find,handler:({state:e,range:n,match:r})=>{const i=e.doc.resolve(n.from),o=gn(t.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),t.type))return null;e.tr.delete(n.from,n.to).setBlockType(n.from,n.from,t.type,o)},undoable:t.undoable})}function ttt(t){return new Xv({find:t.find,handler:({state:e,range:n,match:r})=>{let i=t.replace,o=n.from;const s=n.to;if(r[1]){const a=r[0].lastIndexOf(r[1]);i+=r[0].slice(a+r[1].length),o+=a;const l=o-s;l>0&&(i=r[0].slice(a-l,a)+i,o=s)}e.tr.insertText(i,o,s)},undoable:t.undoable})}function ntt(t){return new Xv({find:t.find,handler:({state:e,range:n,match:r,chain:i})=>{const o=gn(t.getAttributes,void 0,r)||{},s=e.tr.delete(n.from,n.to),l=s.doc.resolve(n.from).blockRange(),c=l&&fO(l,t.type,o);if(!c)return null;if(s.wrap(l,c),t.keepMarks&&t.editor){const{selection:d,storedMarks:f}=e,{splittableMarks:h}=t.editor.extensionManager,p=f||d.$to.parentOffset&&d.$from.marks();if(p){const m=p.filter(g=>h.includes(g.type.name));s.ensureMarks(m)}}if(t.keepAttributes){const d=t.type.name==="bulletList"||t.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(d,o).run()}const u=s.doc.resolve(n.from-1).nodeBefore;u&&u.type===t.type&&cd(s.doc,n.from-1)&&(!t.joinPredicate||t.joinPredicate(r,u))&&s.join(n.from-1)},undoable:t.undoable})}var t9e=t=>"touches"in t,rtt=class{constructor(t){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=a=>{if(!this.isResizing||!this.activeHandle)return;const l=a.clientX-this.startX,c=a.clientY-this.startY;this.handleResize(l,c)},this.handleTouchMove=a=>{if(!this.isResizing||!this.activeHandle)return;const l=a.touches[0];if(!l)return;const c=l.clientX-this.startX,u=l.clientY-this.startY;this.handleResize(c,u)},this.handleMouseUp=()=>
5042{if(!this.isResizing)return;const a=this.element.offsetWidth,l=this.element.offsetHeight;this.onCommit(a,l),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=a=>{a.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=a=>{a.key==="Shift"&&(this.isShiftKeyPressed=!1)};var e,n,r,i,o,s;this.node=t.node,this.editor=t.editor,this.element=t.element,this.contentElement=t.contentElement,this.getPos=t.getPos,this.onResize=t.onResize,this.onCommit=t.onCommit,this.onUpdate=t.onUpdate,(e=t.options)!=null&&e.min&&(this.minSize={...this.minSize,...t.options.min}),(n=t.options)!=null&&n.max&&(this.maxSize=t.options.max),(r=t==null?void 0:t.options)!=null&&r.directions&&(this.directions=t.options.directions),(i=t.options)!=null&&i.preserveAspectRatio&&(this.preserveAspectRatio=t.options.preserveAspectRatio),(o=t.options)!=null&&o.className&&(this.classNames={container:t.options.className.container||"",wrapper:t.options.className.wrapper||"",handle:t.options.className.handle||"",resizing:t.options.className.resizing||""}),(s=t.options)!=null&&s.createCustomHandle&&(this.createCustomHandle=t.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){var t;return(t=this.contentElement)!=null?t:null}handleEditorUpdate(){const t=this.editor.isEditable;t!==this.lastEditableState&&(this.lastEditableState=t,t?t&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(t,e,n){return t.type!==this.node.type?!1:(this.node=t,this.onUpdate?this.onUpdate(t,e,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const t=document.createElement("div");return t.dataset.resizeContainer="",t.dataset.node=this.node.type.name,t.style.display=this.node.type.isInline?"inline-flex":"flex",this.classNames.container&&(t.className=this.classNames.container),t.appendChild(this.wrapper),t}createWrapper(){const t=document.createElement("div");return t.style.position="relative",t.style.display="block",t.dataset.resizeWrapper="",this.classNames.wrapper&&(t.className=this.classNames.wrapper),t.appendChild(this.element),t}createHandle(t){const e=document.createElement("div");return e.dataset.resizeHandle=t,e.style.position="absolute",this.classNames.handle&&(e.className=this.classNames.handle),e}positionHandle(t,e){const n=e.includes("top"),r=e.includes("bottom"),i=e.includes("left"),o=e.includes("right");n&&(t.style.top="0"),r&&(t.style.bottom="0"),i&&(t.style.left="0"),o&&(t.style.right="0"),(e==="top"||e==="bottom")&&(t.style.left="0",t.style.right="0"),(e==="left"||e==="right")&&(t.style.top="0",t.style.bottom="0")}attachHandles(){this.directions.forEach(t=>{let e;this.createCustomHandle?e=this.createCustomHandle(t):e=this.createHandle(t),e instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${t}") did not return an HTMLElement. Falling back to default handle.`),e=this.createHandle(t)),this.createCustomHandle||this.positionHandle(e,t),e.addEventListener("mousedown",n=>this.handleResizeStart(n,t)),e.addEventListener("touchstart",n=>this.handleResizeStart(n,t)),this.handleMap.set(t,e),this.wrapper.appendChild(e)})}
5042removeHandles(){this.handleMap.forEach(t=>t.remove()),this.handleMap.clear()}applyInitialSize(){const t=this.node.attrs.width,e=this.node.attrs.height;t?(this.element.style.width=`${t}px`,this.initialWidth=t):this.initialWidth=this.element.offsetWidth,e?(this.element.style.height=`${e}px`,this.initialHeight=e):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(t,e){t.preventDefault(),t.stopPropagation(),this.isResizing=!0,this.activeHandle=e,t9e(t)?(this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY):(this.startX=t.clientX,this.startY=t.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(t,e){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:r,height:i}=this.calculateNewDimensions(this.activeHandle,t,e),o=this.applyConstraints(r,i,n);this.element.style.width=`${o.width}px`,this.element.style.height=`${o.height}px`,this.onResize&&this.onResize(o.width,o.height)}calculateNewDimensions(t,e,n){let r=this.startWidth,i=this.startHeight;const o=t.includes("right"),s=t.includes("left"),a=t.includes("bottom"),l=t.includes("top");return o?r=this.startWidth+e:s&&(r=this.startWidth-e),a?i=this.startHeight+n:l&&(i=this.startHeight-n),(t==="right"||t==="left")&&(r=this.startWidth+(o?e:-e)),(t==="top"||t==="bottom")&&(i=this.startHeight+(a?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(r,i,t):{width:r,height:i}}applyConstraints(t,e,n){var r,i,o,s;if(!n){let c=Math.max(this.minSize.width,t),u=Math.max(this.minSize.height,e);return(r=this.maxSize)!=null&&r.width&&(c=Math.min(this.maxSize.width,c)),(i=this.maxSize)!=null&&i.height&&(u=Math.min(this.maxSize.height,u)),{width:c,height:u}}let a=t,l=e;return a<this.minSize.width&&(a=this.minSize.width,l=a/this.aspectRatio),l<this.minSize.height&&(l=this.minSize.height,a=l*this.aspectRatio),(o=this.maxSize)!=null&&o.width&&a>this.maxSize.width&&(a=this.maxSize.width,l=a/this.aspectRatio),(s=this.maxSize)!=null&&s.height&&l>this.maxSize.height&&(l=this.maxSize.height,a=l*this.aspectRatio),{width:a,height:l}}applyAspectRatio(t,e,n){const r=n==="left"||n==="right",i=n==="top"||n==="bottom";return r?{width:t,height:t/this.aspectRatio}:i?{width:e*this.aspectRatio,height:e}:{width:t,height:t/this.aspectRatio}}};function itt(t,e){const{selection:n}=t,{$from:r}=n;if(n instanceof lt){const o=r.index();return r.parent.canReplaceWith(o,o+1,e)}let i=r.depth;for(;i>=0;){const o=r.index(i);if(r.node(i).contentMatchAt(o).matchType(e))return!0;i-=1}return!1}function ott(t){return t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function stt(t,e){const n=t.getAttribute("style");if(!n)return null;const r=n.split(";").map(o=>o.trim()).filter(Boolean),i=e.toLowerCase();for(let o=r.length-1;o>=0;o-=1){const s=r[o],a=s.indexOf(":");if(a===-1)continue;if(s.slice(0,a).trim().toLowerCase()===i)return s.slice(a+1).trim()}return null}var n9e={};RO(n9e,{createAtomBlockMarkdownSpec:()=>r9e,createBlockMarkdownSpec:()=>i9e,createInlineMarkdownSpec:()=>a9e,parseAttributes:()=>zO,parseIndentedBlocks:()=>l9e,renderNestedMarkdownContent:()=>c9e,serializeAttributes:()=>VO});function zO(t){if(!(t!=null&&t.trim()))return{};const e={},n=[],r=t.replace(/["']([^"']*)["']/g,c=>(n.push(c),`__QUOTED_${n.length-1}__`)),i=r.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(i){const c=i.map(u=>u.trim().slice(1));e.class=c.join(" ")}const o=r.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);o&&(e.id=o[1]);
vendor: 5,828 bytes, lines 5042-5054
5042const s=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(r.matchAll(s)).forEach(([,c,u])=>{var d;const f=parseInt(((d=u.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),h=n[f];h&&(e[c]=h.slice(1,-1))});const l=r.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(e[u]=!0)}),e}function VO(t){if(!t||Object.keys(t).length===0)return"";const e=[];return t.class&&String(t.class).split(/\s+/).filter(Boolean).forEach(r=>e.push(`.${r}`)),t.id&&e.push(`#${t.id}`),Object.entries(t).forEach(([n,r])=>{n==="class"||n==="id"||(r===!0?e.push(n):r!==!1&&r!=null&&e.push(`${n}="${String(r)}"`))}),e.join(" ")}function r9e(t){const{nodeName:e,name:n,parseAttributes:r=zO,serializeAttributes:i=VO,defaultAttributes:o={},requiredAttributes:s=[],allowedAttributes:a}=t,l=n||e,c=u=>{if(!a)return u;const d={};return a.forEach(f=>{f in u&&(d[f]=u[f])}),d};return{parseMarkdown:(u,d)=>{const f={...o,...u.attributes};return d.createNode(e,f,[])},markdownTokenizer:{name:e,level:"block",start(u){var d;const f=new RegExp(`^:::${l}(?:\\s|$)`,"m"),h=(d=u.match(f))==null?void 0:d.index;return h!==void 0?h:-1},tokenize(u,d,f){const h=new RegExp(`^:::${l}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),p=u.match(h);if(!p)return;const m=p[1]||"",g=r(m);if(!s.find(b=>!(b in g)))return{type:e,raw:p[0],attributes:g}}},renderMarkdown:u=>{const d=c(u.attrs||{}),f=i(d),h=f?` {${f}}`:"";return`:::${l}${h} :::`}}}function i9e(t){const{nodeName:e,name:n,getContent:r,parseAttributes:i=zO,serializeAttributes:o=VO,defaultAttributes:s={},content:a="block",allowedAttributes:l}=t,c=n||e,u=d=>{if(!l)return d;const f={};return l.forEach(h=>{h in d&&(f[h]=d[h])}),f};return{parseMarkdown:(d,f)=>{let h;if(r){const m=r(d);h=typeof m=="string"?[{type:"text",text:m}]:m}else a==="block"?h=f.parseChildren(d.tokens||[]):h=f.parseInline(d.tokens||[]);const p={...s,...d.attributes};return f.createNode(e,p,h)},markdownTokenizer:{name:e,level:"block",start(d){var f;const h=new RegExp(`^:::${c}`,"m"),p=(f=d.match(h))==null?void 0:f.index;return p!==void 0?p:-1},tokenize(d,f,h){var p;const m=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),g=d.match(m);if(!g)return;const[y,b=""]=g,v=i(b);let S=1;const I=y.length;let O="";const T=/^:::([\w-]*)(\s.*)?/gm,A=d.slice(I);for(T.lastIndex=0;;){const R=T.exec(A);if(R===null)break;const k=R.index,P=R[1];if(!((p=R[2])!=null&&p.endsWith(":::"))){if(P)S+=1;else if(S-=1,S===0){const C=A.slice(0,k);O=C.trim();const _=d.slice(0,I+k+R[0].length);let M=[];if(O)if(a==="block")for(M=h.blockTokens(C),M.forEach(V=>{V.text&&(!V.tokens||V.tokens.length===0)&&(V.tokens=h.inlineTokens(V.text))});M.length>0;){const V=M[M.length-1];if(V.type==="paragraph"&&(!V.text||V.text.trim()===""))M.pop();else break}else M=h.inlineTokens(O);return{type:e,raw:_,attributes:v,content:O,tokens:M}}}}}},renderMarkdown:(d,f)=>{const h=u(d.attrs||{}),p=o(h),m=p?` {${p}}`:"",g=f.renderChildren(d.content||[],` 5043 5044`);return`:::${c}${m} 5045 5046${g} 5047 5048:::`}}}function o9e(t){if(!t.trim())return{};const e={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let r=n.exec(t);for(;r!==null;){const[,i,o,s]=r;e[i]=o||s,r=n.exec(t)}return e}function s9e(t){return Object.entries(t).filter(([,e])=>e!=null).map(([e,n])=>`${e}="${n}"`).join(" ")}function a9e(t){const{nodeName:e,name:n,getContent:r,parseAttributes:i=o9e,serializeAttributes:o=s9e,defaultAttributes:s={},selfClosing:a=!1,allowedAttributes:l}=t,c=n||e,u=f=>{if(!l)return f;const h={};return l.forEach(p=>{const m=typeof p=="string"?p:p.name,g=typeof p=="string"?void 0:p.skipIfDefault;if(m in f){const y=f[m];if(g!==void 0&&y===g)return;h[m]=y}}),h},d=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(f,h)=>{const p={...s,...f.attributes};if(a)return h.createNode(e,p);const m=r?r(f):f.content||"";return m?h.createNode(e,p,[h.createTextNode(m)]):h.createNode(e,p,[])},markdownTokenizer:{name:e,level:"inline",start(f){const h=a?new RegExp(`\\[${d}\\s*[^\\]]*\\]`):new RegExp(`\\[${d}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${d}\\]`),p=f.match(h),m=p==null?void 0:p.index;return m!==void 0?m:-1},tokenize(f,h,p){const m=a?new RegExp(`^\\[${d}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${d}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${d}\\]`),g=f.match(m);if(!g)return;let y="",b="";if(a){const[,S]=g;b=S}else{const[,S,I]=g;b=S,y=I||""}const v=i(b.trim());return{type:e,raw:g[0],content:y.trim(),attributes:v}}},renderMarkdown:f=>{let h="";r?h=r(f):f.content&&f.content.length>0&&(h=f.content.filter(y=>y.type==="text").map(y=>y.text).join(""));const p=u(f.attrs||{}),m=o(p),g=m?` ${m}`:"";return a?`[${c}${g}]`:`[${c}${g}]${h}[/${c}]`}}}function l9e(t,e,n){var r,i,o,s;const a=t.split(` 5049`),l=[];let c="",u=0;const d=e.baseIndentSize||2;for(;u<a.length;){const f=a[u],h=f.match(e.itemPattern);if(!h){if(l.length>0)break;if(f.trim()===""){u+=1,c=`${c}${f} 5050`;continue}else return}const p=e.extractItemData(h),{indentLevel:m,mainContent:g}=p;c=`${c}${f} 5051`;const y=[g];for(u+=1;u<a.length;){const I=a[u];if(I.trim()===""){const T=a.slice(u+1).findIndex(k=>k.trim()!=="");if(T===-1)break;if((((i=(r=a[u+1+T].match(/^(\s*)/))==null?void 0:r[1])==null?void 0:i.length)||0)>m){y.push(I),c=`${c}${I} 5052`,u+=1;continue}else break}if((((s=(o=I.match(/^(\s*)/))==null?void 0:o[1])==null?void 0:s.length)||0)>m)y.push(I),c=`${c}${I} 5053`,u+=1;else break}let b;const v=y.slice(1);if(v.length>0){const I=v.map(O=>O.slice(m+d)).join(` 5054`);I.trim()&&(e.customNestedParser?b=e.customNestedParser(I):b=n.blockTokens(I))}const S=e.createToken(p,b);l.push(S)}if(l.length!==0)return{items:l,raw:c}}function c9e(t,e,n,r){if(!t||!Array.isArray(t.content))return"";const i=typeof n=="function"?n(r):n,[o,...s]=t.content,a=e.renderChildren([o]);let l=`${i}${a}`;return s&&s.length>
50540&&s.forEach((c,u)=>{var d,f;const h=(f=(d=e.renderChild)==null?void 0:d.call(e,c,u+1))!=null?f:e.renderChildren([c]);if(h!=null){const p=h.split(` 5055`).map(m=>m?e.indent(m):e.indent("")).join(` 5056`);l+=c.type==="paragraph"?` 5057 5058${p}`:` 5059${p}`}}),l}var mx=new WeakMap;function u9e(t,e){let n=mx.get(t);if(!n){const r={callbacks:new Set,rafId:null,handler:()=>{r.rafId!==null&&cancelAnimationFrame(r.rafId),r.rafId=requestAnimationFrame(()=>{r.rafId=null,r.callbacks.forEach(i=>i())})}};mx.set(t,r),t.on("update",r.handler),n=r}n.callbacks.add(e)}function d9e(t,e){const n=mx.get(t);n&&(n.callbacks.delete(e),n.callbacks.size===0&&(n.rafId!==null&&cancelAnimationFrame(n.rafId),t.off("update",n.handler),mx.delete(t)))}function f9e(t,e,n={}){const{state:r}=e,{doc:i,tr:o}=r,s=t;i.descendants((a,l)=>{const c=o.mapping.map(l),u=o.mapping.map(l)+a.nodeSize;let d=null;if(a.marks.forEach(h=>{if(h!==s)return!1;d=h}),!d)return;let f=!1;if(Object.keys(n).forEach(h=>{n[h]!==d.attrs[h]&&(f=!0)}),f){const h=t.type.create({...t.attrs,...n});o.removeMark(c,u,t.type),o.addMark(c,u,h)}}),o.docChanged&&e.view.dispatch(o)}var att=class mZ extends LO{constructor(){super(...arguments),this.type="node"}static create(e={}){const n=typeof e=="function"?e():e;return new mZ(n)}configure(e){return super.configure(e)}extend(e){const n=typeof e=="function"?e():e;return super.extend(n)}},h9e=class{constructor(t,e,n){this.isDragging=!1,this.component=t,this.editor=e.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=e.extension,this.node=e.node,this.decorations=e.decorations,this.innerDecorations=e.innerDecorations,this.view=e.view,this.HTMLAttributes=e.HTMLAttributes,this.getPos=e.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(t){var e,n,r,i,o,s,a;const{view:l}=this.editor,c=t.target,u=c.nodeType===3?(e=c.parentElement)==null?void 0:e.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(c)||!u)return;let d=0,f=0;if(this.dom!==u){const b=this.dom.getBoundingClientRect(),v=u.getBoundingClientRect(),S=(i=t.offsetX)!=null?i:(r=t.nativeEvent)==null?void 0:r.offsetX,I=(s=t.offsetY)!=null?s:(o=t.nativeEvent)==null?void 0:o.offsetY;d=v.x-b.x+S,f=v.y-b.y+I}const h=this.dom.cloneNode(!0);try{const b=this.dom.getBoundingClientRect();h.style.width=`${Math.round(b.width)}px`,h.style.height=`${Math.round(b.height)}px`,h.style.boxSizing="border-box",h.style.pointerEvents="none"}catch{}let p=null;try{p=document.createElement("div"),p.style.position="absolute",p.style.top="-9999px",p.style.left="-9999px",p.style.pointerEvents="none",p.appendChild(h),document.body.appendChild(p),(a=t.dataTransfer)==null||a.setDragImage(h,d,f)}finally{p&&setTimeout(()=>{try{p==null||p.remove()}catch{}},0)}const m=this.getPos();if(typeof m!="number")return;const g=lt.create(l.state.doc,m),y=l.state.tr.setSelection(g);l.dispatch(y)}stopEvent(t){var e;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:t});const n=t.target;if(!(this.dom.contains(n)&&!((e=this.contentDOM)!=null&&e.contains(n))))return!1;const i=t.type.startsWith("drag"),o=t.type==="dragover"||t.type==="dragenter",s=t.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!s&&!i)return!0;const{isEditable:l}=this.editor,{isDragging:c}=this,u=!!this.node.type.spec.draggable,d=lt.isSelectable(this.node),f=t.type==="copy",h=t.type==="paste",p=t.type==="cut",m=t.type==="mousedown";if(!u&&d&&i&&t.target===this.dom&&t.preventDefault(),u&&i&&!c&&t.target===this.dom)return t.preventDefault(),!1;if(u&&l&&!c&&m){const g=n.closest("[data-drag-handle]");g&&(this.dom===g||this.dom.contains(g))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||o||s||f||h||p||m&&d)}ignoreMutation(t){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:t}):this.node.isLeaf||this.node.isAtom?!0:t.type==="selection"||this.dom.contains(t.target)&&t.type==="childList"&&(H0()||M4
5059())&&this.editor.isFocused&&[...Array.from(t.addedNodes),...Array.from(t.removedNodes)].every(n=>n.isContentEditable)?!1:this.contentDOM===t.target&&t.type==="attributes"?!0:!this.contentDOM.contains(t.target)}updateAttributes(t){this.editor.commands.command(({tr:e})=>{const n=this.getPos();return typeof n!="number"?!1:(e.setNodeMarkup(n,void 0,{...this.node.attrs,...t}),!0)})}deleteNode(){const t=this.getPos();if(typeof t!="number")return;const e=t+this.node.nodeSize;this.editor.commands.deleteRange({from:t,to:e})}};function ltt(t){return new qNe({find:t.find,handler:({state:e,range:n,match:r,pasteEvent:i})=>{const o=gn(t.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let c=n.to;if(a){const u=l.search(/\S/),d=n.from+l.indexOf(a),f=d+a.length;if(QJ(n.from,n.to,e.doc).filter(m=>m.mark.type.excluded.find(y=>y===t.type&&y!==m.mark.type)).filter(m=>m.to>d).length)return null;f<n.to&&s.delete(f,n.to),d>n.from&&s.delete(n.from+u,d),c=n.from+u+a.length,s.addMark(n.from+u,c,t.type.create(o||{})),r.index!==void 0&&r.input!==void 0&&r.index+r[0].length>=r.input.length||s.removeStoredMark(t.type)}}})}const{getOwnPropertyNames:p9e,getOwnPropertySymbols:m9e}=Object,{hasOwnProperty:g9e}=Object.prototype;function oI(t,e){return function(r,i,o){return t(r,i,o)&&e(r,i,o)}}function v2(t){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return t(n,r,i);const{cache:o}=i,s=o.get(n),a=o.get(r);if(s&&a)return s===r&&a===n;o.set(n,r),o.set(r,n);const l=t(n,r,i);return o.delete(n),o.delete(r),l}}function y9e(t){return t!=null?t[Symbol.toStringTag]:void 0}function MV(t){return p9e(t).concat(m9e(t))}const v9e=Object.hasOwn||((t,e)=>g9e.call(t,e));function vh(t,e){return t===e||!t&&!e&&t!==t&&e!==e}const b9e="__v",w9e="__o",S9e="_owner",{getOwnPropertyDescriptor:kV,keys:PV}=Object;function x9e(t,e){return t.byteLength===e.byteLength&&gx(new Uint8Array(t),new Uint8Array(e))}function E9e(t,e,n){let r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function T9e(t,e){return t.byteLength===e.byteLength&&gx(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),new Uint8Array(e.buffer,e.byteOffset,e.byteLength))}function C9e(t,e){return vh(t.getTime(),e.getTime())}function _9e(t,e){return t.name===e.name&&t.message===e.message&&t.cause===e.cause&&t.stack===e.stack}function A9e(t,e){return t===e}function OV(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),o=t.entries();let s,a,l=0;for(;(s=o.next())&&!s.done;){const c=e.entries();let u=!1,d=0;for(;(a=c.next())&&!a.done;){if(i[d]){d++;continue}const f=s.value,h=a.value;if(n.equals(f[0],h[0],l,d,t,e,n)&&n.equals(f[1],h[1],f[0],h[0],t,e,n)){u=i[d]=!0;break}d++}if(!u)return!1;l++}return!0}const I9e=vh;function R9e(t,e,n){const r=PV(t);let i=r.length;if(PV(e).length!==i)return!1;for(;i-- >0;)if(!gZ(t,e,n,r[i]))return!1;return!0}function c1(t,e,n){const r=MV(t);let i=r.length;if(MV(e).length!==i)return!1;let o,s,a;for(;i-- >0;)if(o=r[i],!gZ(t,e,n,o)||(s=kV(t,o),a=kV(e,o),(s||a)&&(!s||!a||s.configurable!==a.configurable||s.enumerable!==a.enumerable||s.writable!==a.writable)))return!1;return!0}function M9e(t,e){return vh(t.valueOf(),e.valueOf())}function k9e(t,e){return t.source===e.source&&t.flags===e.flags}function NV(t,e,n){const r=t.size;if(r!==e.size)return!1;if(!r)return!0;const i=new Array(r),o=t.values();let s,a;for(;(s=o.next())&&!s.done;){const l=e.values();let c=!1,u=0;for(;(a=l.next())&&!a.done;){if(!i[u]&&n.equals(s.value,a.value,s.value,a.value,t,e,n)){c=i[u]=!0;break}u++}if(!c)return!1}return!0}function gx(t,e){let n=t.byteLength;if(e.byteLength!==n||t.byteOffset!==e.byteOffset)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}function P9e(t,e){return t.hostname===e.hostname&&t.pathname===e.pathname&&t.protocol===e.protocol&&t.port===e.port&&t.hash===e.hash&&t.username===e.username&&t.password===e.password}function gZ(t,e,n,r){return(r===S9e||r===w9e||r===b9e)&&(t.$$typeof||e.$$typeof)?!0:v9e(e,r)&&n.equals(t[r],e[r],r,r,t,e,n)}const O9e="[object ArrayBuffer]",N9e="[object Arguments]",D9e="[object Boolean]",L9e="[object DataView]",z9e="[object Date]",V9e="[object Error]",B9e="[object Map]",$9e="[object Number]",F9e="[object Object]",j9e="[object RegExp]",H9e="[object Set]",U9e="[object String]",q9e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array
5059]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},W9e="[object URL]",G9e=Object.prototype.toString;function K9e({areArrayBuffersEqual:t,areArraysEqual:e,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:i,areFunctionsEqual:o,areMapsEqual:s,areNumbersEqual:a,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:u,areSetsEqual:d,areTypedArraysEqual:f,areUrlsEqual:h,unknownTagComparators:p}){return function(g,y,b){if(g===y)return!0;if(g==null||y==null)return!1;const v=typeof g;if(v!==typeof y)return!1;if(v!=="object")return v==="number"?a(g,y,b):v==="function"?o(g,y,b):!1;const S=g.constructor;if(S!==y.constructor)return!1;if(S===Object)return l(g,y,b);if(Array.isArray(g))return e(g,y,b);if(S===Date)return r(g,y,b);if(S===RegExp)return u(g,y,b);if(S===Map)return s(g,y,b);if(S===Set)return d(g,y,b);const I=G9e.call(g);if(I===z9e)return r(g,y,b);if(I===j9e)return u(g,y,b);if(I===B9e)return s(g,y,b);if(I===H9e)return d(g,y,b);if(I===F9e)return typeof g.then!="function"&&typeof y.then!="function"&&l(g,y,b);if(I===W9e)return h(g,y,b);if(I===V9e)return i(g,y,b);if(I===N9e)return l(g,y,b);if(q9e[I])return f(g,y,b);if(I===O9e)return t(g,y,b);if(I===L9e)return n(g,y,b);if(I===D9e||I===$9e||I===U9e)return c(g,y,b);if(p){let O=p[I];if(!O){const T=y9e(g);T&&(O=p[T])}if(O)return O(g,y,b)}return!1}}function Y9e({circular:t,createCustomConfig:e,strict:n}){let r={areArrayBuffersEqual:x9e,areArraysEqual:n?c1:E9e,areDataViewsEqual:T9e,areDatesEqual:C9e,areErrorsEqual:_9e,areFunctionsEqual:A9e,areMapsEqual:n?oI(OV,c1):OV,areNumbersEqual:I9e,areObjectsEqual:n?c1:R9e,arePrimitiveWrappersEqual:M9e,areRegExpsEqual:k9e,areSetsEqual:n?oI(NV,c1):NV,areTypedArraysEqual:n?oI(gx,c1):gx,areUrlsEqual:P9e,unknownTagComparators:void 0};if(e&&(r=Object.assign({},r,e(r))),t){const i=v2(r.areArraysEqual),o=v2(r.areMapsEqual),s=v2(r.areObjectsEqual),a=v2(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:a})}return r}function X9e(t){return function(e,n,r,i,o,s,a){return t(e,n,a)}}function Q9e({circular:t,comparator:e,createState:n,equals:r,strict:i}){if(n)return function(a,l){const{cache:c=t?new WeakMap:void 0,meta:u}=n();return e(a,l,{cache:c,equals:r,meta:u,strict:i})};if(t)return function(a,l){return e(a,l,{cache:new WeakMap,equals:r,meta:void 0,strict:i})};const o={cache:void 0,equals:r,meta:void 0,strict:i};return function(a,l){return e(a,l,o)}}const J9e=dd();dd({strict:!0});dd({circular:!0});dd({circular:!0,strict:!0});dd({createInternalComparator:()=>vh});dd({strict:!0,createInternalComparator:()=>vh});dd({circular:!0,createInternalComparator:()=>vh});dd({circular:!0,createInternalComparator:()=>vh,strict:!0});function dd(t={}){const{circular:e=!1,createInternalComparator:n,createState:r,strict:i=!1}=t,o=Y9e(t),s=K9e(o),a=n?n(s):X9e(s);return Q9e({circular:e,comparator:s,createState:r,equals:a,strict:i})}
5059var yZ={exports:{}},vZ={};/** 5060 * @license React 5061 * use-sync-external-store-shim/with-selector.production.js 5062 * 5063 * Copyright (c) Meta Platforms, Inc. and affiliates. 5064 * 5065 * This source code is licensed under the MIT license found in the 5066 * LICENSE file in the root directory of this source tree. 5067 */var lC=E,Z9e=KT;function e6e(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var t6e=typeof Object.is=="function"?Object.is:e6e,n6e=Z9e.useSyncExternalStore,r6e=lC.useRef,i6e=lC.useEffect,o6e=lC.useMemo,s6e=lC.useDebugValue;vZ.useSyncExternalStoreWithSelector=function(t,e,n,r,i){var o=r6e(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=o6e(function(){function l(h){if(!c){if(c=!0,u=h,h=r(h),i!==void 0&&s.hasValue){var p=s.value;if(i(p,h))return d=p}return d=h}if(p=d,t6e(u,h))return p;var m=r(h);return i!==void 0&&i(p,m)?(u=h,p):(u=h,d=m)}var c=!1,u,d,f=n===void 0?null:n;return[function(){return l(e())},f===null?void 0:function(){return l(f())}]},[e,n,r,i]);var a=n6e(t,o[0],o[1]);return i6e(function(){s.hasValue=!0,s.value=a},[a]),s6e(a),a};yZ.exports=vZ;var BO=yZ.exports;const a6e=Ts(BO);var l6e=(...t)=>e=>{t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})},c6e=({contentComponent:t})=>{const e=KT.useSyncExternalStore(t.subscribe,t.getSnapshot,t.getServerSnapshot);return x.jsx(x.Fragment,{children:Object.values(e)})};function u6e(){const t=new Set;let e={};return{subscribe(n){return t.add(n),()=>{t.delete(n)}},getSnapshot(){return e},getServerSnapshot(){return e},setRenderer(n,r){e={...e,[n]:p1.createPortal(r.reactElement,r.element,n)},t.forEach(i=>i())},removeRenderer(n){const r={...e};delete r[n],e=r,t.forEach(i=>i())}}}var d6e=class extends ft.Component{constructor(t){super(t),this.editorContentRef=ft.createRef()}componentDidMount(){this.init()}componentDidUpdate(){this.init()}init(){var t;const e=this.props.editor;if(e&&!e.isDestroyed&&((t=e.view.dom)!=null&&t.parentNode)){if(e.contentComponent)return;const n=this.editorContentRef.current;n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n}),e.contentComponent=u6e(),e.createNodeViews(),e.isEditorContentInitialized=!0,this.forceUpdate()}}componentWillUnmount(){var t;const e=this.props.editor;if(e){e.isEditorContentInitialized=!1,e.isDestroyed||e.view.setProps({nodeViews:{}}),e.contentComponent=null;try{if(!((t=e.view.dom)!=null&&t.parentNode))return;const n=document.createElement("div");n.append(...e.view.dom.parentNode.childNodes),e.setOptions({element:n})}catch{}}}render(){const{editor:t,innerRef:e,...n}=this.props;return x.jsxs(x.Fragment,{children:[x.jsx("div",{ref:l6e(e,this.editorContentRef),...n}),(t==null?void 0:t.contentComponent)&&x.jsx(c6e,{contentComponent:t.contentComponent})]})}},f6e=E.forwardRef((t,e)=>{const n=ft.useMemo(()=>Math.floor(Math.random()*4294967295).toString(),[t.editor]);return ft.createElement(d6e,{key:n,innerRef:e,...t})}),h6e=ft.memo(f6e),p6e=typeof window<"u"?E.useLayoutEffect:E.useEffect,m6e=class{constructor(t){this.transactionNumber=0,this.lastTransactionNumber=0,this.subscribers=new Set,this.editor=t,this.lastSnapshot={editor:t,transactionNumber:0},this.getSnapshot=this.getSnapshot.bind(this),this.getServerSnapshot=this.getServerSnapshot.bind(this),this.watch=this.watch.bind(this),this.subscribe=this.subscribe.bind(this)}getSnapshot(){return this.transactionNumber===this.lastTransactionNumber?this.lastSnapshot:(this.lastTransactionNumber=this.transactionNumber,this.lastSnapshot={editor:this.editor,transactionNumber:this.transactionNumber},this.lastSnapshot)}getServerSnapshot(){return{editor:null,transactionNumber:0}}subscribe(t){return this.subscribers.add(t),()=>{this.subscribers.delete(t)}}watch(t){if(this.editor=t,this.editor){const e=()=>{this.transactionNumber+=1,this.subscribers.forEach(r=>r())},n=this.editor;return n.on("transaction",e),()=>{n.off("transaction",e)}}}};function g6e(t){var e;const[n]=E.useState(()=>new m6e(t.editor)),r=BO.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getServerSnapshot,t.selector,(e=t.equalityFn)!=null?e:J9e);return p6e(()=>n.watch(t.editor),[t.editor,n]),E.useDebugValue(r),r}var bZ=typeof window>"u",y6e=bZ||!!(typeof window<"u"&&window.next),v6e=class wZ{constructor(e){this.editor=null,this.subscriptions=new Set,this.isComponentMounted=!1,this.previousDeps=null,this.instanceId="",this.options=e,this.subscriptions=new Set,this.setEditor(this.getInitialEditor()),this.scheduleDestroy(),this.getEditor=this.getEditor.bind(this),this.get
5067ServerSnapshot=this.getServerSnapshot.bind(this),this.subscribe=this.subscribe.bind(this),this.refreshEditorInstance=this.refreshEditorInstance.bind(this),this.scheduleDestroy=this.scheduleDestroy.bind(this),this.onRender=this.onRender.bind(this),this.createEditor=this.createEditor.bind(this)}setEditor(e){this.editor=e,this.instanceId=Math.random().toString(36).slice(2,9),this.subscriptions.forEach(n=>n())}getInitialEditor(){var e;let n=(e=this.options.current.immediatelyRender)!=null?e:!0;return n&&(bZ||y6e)&&(n=!1),n?this.createEditor():null}createEditor(){const e={...this.options.current,onBeforeCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onBeforeCreate)==null?void 0:o.call(i,...r)},onBlur:(...r)=>{var i,o;return(o=(i=this.options.current).onBlur)==null?void 0:o.call(i,...r)},onCreate:(...r)=>{var i,o;return(o=(i=this.options.current).onCreate)==null?void 0:o.call(i,...r)},onDestroy:(...r)=>{var i,o;return(o=(i=this.options.current).onDestroy)==null?void 0:o.call(i,...r)},onFocus:(...r)=>{var i,o;return(o=(i=this.options.current).onFocus)==null?void 0:o.call(i,...r)},onSelectionUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onSelectionUpdate)==null?void 0:o.call(i,...r)},onTransaction:(...r)=>{var i,o;return(o=(i=this.options.current).onTransaction)==null?void 0:o.call(i,...r)},onUpdate:(...r)=>{var i,o;return(o=(i=this.options.current).onUpdate)==null?void 0:o.call(i,...r)},onContentError:(...r)=>{var i,o;return(o=(i=this.options.current).onContentError)==null?void 0:o.call(i,...r)},onDrop:(...r)=>{var i,o;return(o=(i=this.options.current).onDrop)==null?void 0:o.call(i,...r)},onPaste:(...r)=>{var i,o;return(o=(i=this.options.current).onPaste)==null?void 0:o.call(i,...r)},onDelete:(...r)=>{var i,o;return(o=(i=this.options.current).onDelete)==null?void 0:o.call(i,...r)}};return new e9e(e)}getEditor(){return this.editor}getServerSnapshot(){return null}subscribe(e){return this.subscriptions.add(e),()=>{this.subscriptions.delete(e)}}static compareOptions(e,n){return Object.keys(e).every(r=>["onCreate","onBeforeCreate","onDestroy","onUpdate","onTransaction","onFocus","onBlur","onSelectionUpdate","onContentError","onDrop","onPaste"].includes(r)?!0:r==="extensions"&&e.extensions&&n.extensions?e.extensions.length!==n.extensions.length?!1:e.extensions.every((i,o)=>{var s;return i===((s=n.extensions)==null?void 0:s[o])}):e[r]===n[r])}onRender(e){return()=>(this.isComponentMounted=!0,clearTimeout(this.scheduledDestructionTimeout),this.editor&&!this.editor.isDestroyed&&e.length===0?wZ.compareOptions(this.options.current,this.editor.options)||this.editor.setOptions({...this.options.current,editable:this.editor.isEditable}):this.refreshEditorInstance(e),()=>{this.isComponentMounted=!1,this.scheduleDestroy()})}refreshEditorInstance(e){if(this.editor&&!this.editor.isDestroyed){if(this.previousDeps===null){this.previousDeps=e;return}if(this.previousDeps.length===e.length&&this.previousDeps.every((r,i)=>r===e[i]))return}this.editor&&!this.editor.isDestroyed&&this.editor.destroy(),this.setEditor(this.createEditor()),this.previousDeps=e}scheduleDestroy(){const e=this.instanceId,n=this.editor;this.scheduledDestructionTimeout=setTimeout(()=>{if(this.isComponentMounted&&this.instanceId===e){n&&n.setOptions(this.options.current);return}n&&!n.isDestroyed&&(n.destroy(),this.instanceId===e&&this.setEditor(null))},1)}};function ctt(t={},e=[]){const n=E.useRef(t);n.current=t;const[r]=E.useState(()=>new v6e(n)),i=KT.useSyncExternalStore(r.subscribe,r.getEditor,r.getServerSnapshot);return E.useDebugValue(i),E.useEffect(r.onRender(e)),g6e({editor:i,selector:({transactionNumber:o})=>t.shouldRerenderOnTransaction===!1||t.shouldRerenderOnTransaction===void 0?null:t.immediatelyRender&&o===0?0:o+1}),i}var $O=E.createContext({editor:null});$O.Consumer;var SZ=()=>E.useContext($O),xZ=E.createContext({onDragStart:()=>{},nodeViewContentChildren:void 0,nodeViewContentRef:()=>{}}),EZ=()=>E.useContext(xZ);function utt({as:t="div",...e}){const{nodeViewContentRef:n,nodeViewContentChildren:r}=EZ();return x.jsx(t,{...e,ref:n,"data-node-view-content":"",style:{whiteSpace:"pre-wrap",...e.style},children:r})}var dtt=ft.forwardRef((t,e)=>{const{onDragStart:n}=EZ(),r=t.as||"div";return x.jsx(r,{...t,ref:e,"data-node-view-wrapper":"",onDragStart:n,style:{whiteSpace:"normal",...t.style}})});function DV(t){return!!(typeof t=="function"&&t.prototype&&t.prototype.isReactComponent)}function LV(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.forward_ref)"||t.$$typeof.description==="react.forward_ref"))}function b6e(t){return!!(typeof t=="object"&&t.$$typeof&&(t.$$typeof.toString()==="Symbol(react.memo)"||t.$$typeof.description==="react.memo"))}function w6e(t){if(DV(t)||LV(t))return!0;
5067if(b6e(t)){const e=t.type;if(e)return DV(e)||LV(e)}return!1}function S6e(){try{if(E.version)return parseInt(E.version.split(".")[0],10)>=19}catch{}return!1}var x6e=class{constructor(t,{editor:e,props:n={},as:r="div",className:i=""}){this.ref=null,this.destroyed=!1,this.id=Math.floor(Math.random()*4294967295).toString(),this.component=t,this.editor=e,this.props=n,this.element=document.createElement(r),this.element.classList.add("react-renderer"),i&&this.element.classList.add(...i.split(" ")),this.editor.isEditorContentInitialized?za.flushSync(()=>{this.render()}):queueMicrotask(()=>{this.destroyed||this.render()})}render(){var t;if(this.destroyed)return;const e=this.component,n=this.props,r=this.editor,i=S6e(),o=w6e(e),s={...n};s.ref&&!(i||o)&&delete s.ref,!s.ref&&(i||o)&&(s.ref=a=>{this.ref=a}),this.reactElement=x.jsx(e,{...s}),(t=r==null?void 0:r.contentComponent)==null||t.setRenderer(this.id,this)}updateProps(t={}){this.destroyed||(this.props={...this.props,...t},this.render())}destroy(){var t;this.destroyed=!0;const e=this.editor;(t=e==null?void 0:e.contentComponent)==null||t.removeRenderer(this.id);try{this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element)}catch{}}updateAttributes(t){Object.keys(t).forEach(e=>{this.element.setAttribute(e,t[e])})}};ft.createContext({markViewContentRef:()=>{}});var E6e=class extends h9e{constructor(t,e,n){if(super(t,e,n),this.selectionRafId=null,this.positionCheckCallback=null,this.cachedExtensionWithSyncedStorage=null,!this.node.isLeaf){this.options.contentDOMElementTag?this.contentDOMElement=document.createElement(this.options.contentDOMElementTag):this.contentDOMElement=document.createElement(this.node.isInline?"span":"div"),this.contentDOMElement.dataset.nodeViewContentReact="",this.contentDOMElement.dataset.nodeViewWrapper="",this.contentDOMElement.style.whiteSpace="inherit";const r=this.dom.querySelector("[data-node-view-content]");if(!r)return;r.appendChild(this.contentDOMElement)}}get extensionWithSyncedStorage(){if(!this.cachedExtensionWithSyncedStorage){const t=this.editor,e=this.extension;this.cachedExtensionWithSyncedStorage=new Proxy(e,{get(n,r,i){var o;return r==="storage"?(o=t.storage[e.name])!=null?o:{}:Reflect.get(n,r,i)}})}return this.cachedExtensionWithSyncedStorage}mount(){const t={editor:this.editor,node:this.node,decorations:this.decorations,innerDecorations:this.innerDecorations,view:this.view,selected:!1,extension:this.extensionWithSyncedStorage,HTMLAttributes:this.HTMLAttributes,getPos:()=>this.getPos(),updateAttributes:(l={})=>this.updateAttributes(l),deleteNode:()=>this.deleteNode(),ref:E.createRef()};if(!this.component.displayName){const l=c=>c.charAt(0).toUpperCase()+c.substring(1);this.component.displayName=l(this.extension.name)}const r={onDragStart:this.onDragStart.bind(this),nodeViewContentRef:l=>{l&&this.contentDOMElement&&l.firstChild!==this.contentDOMElement&&(l.hasAttribute("data-node-view-wrapper")&&l.removeAttribute("data-node-view-wrapper"),l.appendChild(this.contentDOMElement))}},i=this.component,o=E.memo(l=>x.jsx(xZ.Provider,{value:r,children:E.createElement(i,l)}));o.displayName="ReactNodeView";let s=this.node.isInline?"span":"div";this.options.as&&(s=this.options.as);const{className:a=""}=this.options;this.handleSelectionUpdate=this.handleSelectionUpdate.bind(this),this.renderer=new x6e(o,{editor:this.editor,props:t,as:s,className:`node-${this.node.type.name} ${a}`.trim()}),this.editor.on("selectionUpdate",this.handleSelectionUpdate),this.updateElementAttributes(),this.currentPos=this.getPos(),this.positionCheckCallback=()=>{const l=this.getPos();typeof l!="number"||l===this.currentPos||(this.currentPos=l,this.renderer.updateProps({getPos:()=>this.getPos()}),typeof this.options.attrs=="function"&&this.updateElementAttributes())},u9e(this.editor,this.positionCheckCallback)}get dom(){var t;if(this.renderer.element.firstElementChild&&!((t=this.renderer.element.firstElementChild)!=null&&t.hasAttribute("data-node-view-wrapper")))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}
5067get contentDOM(){return this.node.isLeaf?null:this.contentDOMElement}handleSelectionUpdate(){this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null),this.selectionRafId=requestAnimationFrame(()=>{this.selectionRafId=null;const t=this.currentPos;if(typeof t!="number")return;if(pNe({selection:this.editor.state.selection,pos:t,nodeSize:this.node.nodeSize,selectedOnTextSelection:this.options.selectedOnTextSelection})){if(this.renderer.props.selected)return;this.selectNode()}else{if(!this.renderer.props.selected)return;this.deselectNode()}})}update(t,e,n){const r=o=>{this.renderer.updateProps(o),typeof this.options.attrs=="function"&&this.updateElementAttributes()};if(t.type!==this.node.type)return!1;if(typeof this.options.update=="function"){const o=this.node,s=this.decorations,a=this.innerDecorations;return this.node=t,this.decorations=e,this.innerDecorations=n,this.currentPos=this.getPos(),this.options.update({oldNode:o,oldDecorations:s,newNode:t,newDecorations:e,oldInnerDecorations:a,innerDecorations:n,updateProps:()=>r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage})})}const i=this.getPos();return t===this.node&&this.decorations===e&&this.innerDecorations===n?(i===this.currentPos||(this.currentPos=i,r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage,getPos:()=>this.getPos()})),!0):(this.node=t,this.decorations=e,this.innerDecorations=n,this.currentPos=i,r({node:t,decorations:e,innerDecorations:n,extension:this.extensionWithSyncedStorage}),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}destroy(){this.renderer.destroy(),this.editor.off("selectionUpdate",this.handleSelectionUpdate),this.positionCheckCallback&&(d9e(this.editor,this.positionCheckCallback),this.positionCheckCallback=null),this.contentDOMElement=null,this.selectionRafId&&(cancelAnimationFrame(this.selectionRafId),this.selectionRafId=null)}updateElementAttributes(){if(this.options.attrs){let t={};if(typeof this.options.attrs=="function"){const e=this.editor.extensionManager.attributes,n=W0(this.node,e);t=this.options.attrs({node:this.node,HTMLAttributes:n})}else t=this.options.attrs;this.renderer.updateAttributes(t)}}};function ftt(t,e){return n=>n.editor.contentComponent?new E6e(t,n,e):{}}var FO=E.createContext({get editor(){throw new Error("useTiptap must be used within a <Tiptap> provider")}});FO.displayName="TiptapContext";var T6e=()=>E.useContext(FO);function TZ({editor:t,instance:e,children:n}){const r=t??e;if(!r)throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");const i=E.useMemo(()=>({editor:r}),[r]),o=E.useMemo(()=>({editor:r}),[r]);return x.jsx($O.Provider,{value:o,children:x.jsx(FO.Provider,{value:i,children:n})})}TZ.displayName="Tiptap";function CZ({...t}){const{editor:e}=T6e();return x.jsx(h6e,{editor:e,...t})}CZ.displayName="Tiptap.Content";Object.assign(TZ,{Content:CZ});var jO={},HO={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function n(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}t.isTag=n,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(HO);var Pt={},fd=an&&an.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}
vendor: 4,145 bytes, line 5067
5067e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Oy=an&&an.__assign||function(){return Oy=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},Oy.apply(this,arguments)};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.cloneNode=Pt.hasChildren=Pt.isDocument=Pt.isDirective=Pt.isComment=Pt.isText=Pt.isCDATA=Pt.isTag=Pt.Element=Pt.Document=Pt.CDATA=Pt.NodeWithChildren=Pt.ProcessingInstruction=Pt.Comment=Pt.Text=Pt.DataNode=Pt.Node=void 0;var no=HO,UO=function(){function t(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),t.prototype.cloneNode=function(e){return e===void 0&&(e=!1),qO(this,e)},t}();Pt.Node=UO;var cC=function(t){fd(e,t);function e(n){var r=t.call(this)||this;return r.data=n,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(n){this.data=n},enumerable:!1,configurable:!0}),e}(UO);Pt.DataNode=cC;var _Z=function(t){fd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=no.ElementType.Text,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(cC);Pt.Text=_Z;var AZ=function(t){fd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=no.ElementType.Comment,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(cC);Pt.Comment=AZ;var IZ=function(t){fd(e,t);function e(n,r){var i=t.call(this,r)||this;return i.name=n,i.type=no.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(cC);Pt.ProcessingInstruction=IZ;var uC=function(t){fd(e,t);function e(n){var r=t.call(this)||this;return r.children=n,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var n;return(n=this.children[0])!==null&&n!==void 0?n:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(n){this.children=n},enumerable:!1,configurable:!0}),e}(UO);Pt.NodeWithChildren=uC;var RZ=function(t){fd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=no.ElementType.CDATA,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(uC);Pt.CDATA=RZ;var MZ=function(t){fd(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=no.ElementType.Root,n}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(uC);Pt.Document=MZ;var kZ=function(t){fd(e,t);function e(n,r,i,o){i===void 0&&(i=[]),o===void 0&&(o=n==="script"?no.ElementType.Script:n==="style"?no.ElementType.Style:no.ElementType.Tag);var s=t.call(this,i)||this;return s.name=n,s.attribs=r,s.type=o,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(n){this.name=n},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var n=this;return Object.keys(this.attribs).map(function(r){var i,o;return{name:r,value:n.attribs[r],namespace:(i=n["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(o=n["x-attribsPrefix"])===null||o===void 0?void 0:o[r]}})}
vendor: 4,872 bytes, line 5067
5067,enumerable:!1,configurable:!0}),e}(uC);Pt.Element=kZ;function PZ(t){return(0,no.isTag)(t)}Pt.isTag=PZ;function OZ(t){return t.type===no.ElementType.CDATA}Pt.isCDATA=OZ;function NZ(t){return t.type===no.ElementType.Text}Pt.isText=NZ;function DZ(t){return t.type===no.ElementType.Comment}Pt.isComment=DZ;function LZ(t){return t.type===no.ElementType.Directive}Pt.isDirective=LZ;function zZ(t){return t.type===no.ElementType.Root}Pt.isDocument=zZ;function C6e(t){return Object.prototype.hasOwnProperty.call(t,"children")}Pt.hasChildren=C6e;function qO(t,e){e===void 0&&(e=!1);var n;if(NZ(t))n=new _Z(t.data);else if(DZ(t))n=new AZ(t.data);else if(PZ(t)){var r=e?sI(t.children):[],i=new kZ(t.name,Oy({},t.attribs),r);r.forEach(function(l){return l.parent=i}),t.namespace!=null&&(i.namespace=t.namespace),t["x-attribsNamespace"]&&(i["x-attribsNamespace"]=Oy({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(i["x-attribsPrefix"]=Oy({},t["x-attribsPrefix"])),n=i}else if(OZ(t)){var r=e?sI(t.children):[],o=new RZ(r);r.forEach(function(c){return c.parent=o}),n=o}else if(zZ(t)){var r=e?sI(t.children):[],s=new MZ(r);r.forEach(function(c){return c.parent=s}),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),n=s}else if(LZ(t)){var a=new IZ(t.name,t.data);t["x-name"]!=null&&(a["x-name"]=t["x-name"],a["x-publicId"]=t["x-publicId"],a["x-systemId"]=t["x-systemId"]),n=a}else throw new Error("Not implemented yet: ".concat(t.type));return n.startIndex=t.startIndex,n.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(n.sourceCodeLocation=t.sourceCodeLocation),n}Pt.cloneNode=qO;function sI(t){for(var e=t.map(function(r){return qO(r,!0)}),n=1;n<e.length;n++)e[n].prev=e[n-1],e[n-1].next=e[n];return e}(function(t){var e=an&&an.__createBinding||(Object.create?function(a,l,c,u){u===void 0&&(u=c);var d=Object.getOwnPropertyDescriptor(l,c);(!d||("get"in d?!l.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(a,u,d)}:function(a,l,c,u){u===void 0&&(u=c),a[u]=l[c]}),n=an&&an.__exportStar||function(a,l){for(var c in a)c!=="default"&&!Object.prototype.hasOwnProperty.call(l,c)&&e(l,a,c)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var r=HO,i=Pt;n(Pt,t);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function a(l,c,u){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof c=="function"&&(u=c,c=o),typeof l=="object"&&(c=l,l=void 0),this.callback=l??null,this.options=c??o,this.elementCB=u??null}return a.prototype.onparserinit=function(l){this.parser=l},a.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},a.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},a.prototype.onerror=function(l){this.handleCallback(l)},a.prototype.onclosetag=function(){this.lastNode=null;var l=this.tagStack.pop();this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(l)},a.prototype.onopentag=function(l,c){var u=this.options.xmlMode?r.ElementType.Tag:void 0,d=new i.Element(l,c,void 0,u);this.addNode(d),this.tagStack.push(d)},a.prototype.ontext=function(l){var c=this.lastNode;if(c&&c.type===r.ElementType.Text)c.data+=l,this.options.withEndIndices&&(c.endIndex=this.parser.endIndex);else{var u=new i.Text(l);this.addNode(u),this.lastNode=u}},a.prototype.oncomment=function(l){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=l;return}var c=new i.Comment(l);this.addNode(c),this.lastNode=c},a.prototype.oncommentend=function(){this.lastNode=null},a.prototype.oncdatastart=function(){var l=new i.Text(""),c=new i.CDATA([l]);this.addNode(c),l.parent=c,this.lastNode=l},a.prototype.oncdataend=function(){this.lastNode=null},a.prototype.onprocessinginstruction=function(l,c){var u=new i.ProcessingInstruction(l,c);this.addNode(u)},a.prototype.handleCallback=function(l){if(typeof this.callback=="function")this.callback(l,this.dom);else if(l)throw l},a.prototype.addNode=function(l){var c=this.tagStack[this.tagStack.length-1],u=c.children[c.children.length-1];this.options.withStartIndices&&(l.startIndex=this.parser.startIndex),this.options.withEndIndices&&(l.endIndex=this.parser.endIndex),c.children.push(l),u&&(l.prev=u,u.next=l),l.parent=c,this.lastNode=null},a}();t.DomHandler=s,t.default=s})(jO);var zV="html",VV="head",b2="body",_6e=/<([a-zA-Z]+[0-9]?)/,BV=/<head[^]*>/i,$V=/<body[^]*>/i,yx=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},O4=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},FV=typeof window=="object"&&window.DOMParser;if(typeof FV=="function"){var A6e=new FV,I6e="text/html";
5067O4=function(t,e){return e&&(t="<"+e+">"+t+"</"+e+">"),A6e.parseFromString(t,I6e)},yx=O4}if(typeof document=="object"&&document.implementation){var w2=document.implementation.createHTMLDocument();yx=function(t,e){if(e){var n=w2.documentElement.querySelector(e);return n.innerHTML=t,w2}return w2.documentElement.innerHTML=t,w2}}var aI=typeof document=="object"?document.createElement("template"):{},N4;aI.content&&(N4=function(t){return aI.innerHTML=t,aI.content.childNodes});function R6e(t){var e,n=t.match(_6e);n&&n[1]&&(e=n[1].toLowerCase());var r,i,o;switch(e){case zV:return r=O4(t),BV.test(t)||(i=r.querySelector(VV),i&&i.parentNode.removeChild(i)),$V.test(t)||(i=r.querySelector(b2),i&&i.parentNode.removeChild(i)),r.querySelectorAll(zV);case VV:case b2:return r=yx(t),o=r.querySelectorAll(e),$V.test(t)&&BV.test(t)?o[0].parentNode.childNodes:o;default:return N4?N4(t):(i=yx(t,b2).querySelector(b2),i.childNodes)}}var M6e=R6e,WO={},VZ={};VZ.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"];var dC=jO,k6e=VZ,jV=k6e.CASE_SENSITIVE_TAG_NAMES,P6e=dC.Comment,O6e=dC.Element,N6e=dC.ProcessingInstruction,D6e=dC.Text,BZ={},lI;for(var cI=0,L6e=jV.length;cI<L6e;cI++)lI=jV[cI],BZ[lI.toLowerCase()]=lI;function z6e(t){return BZ[t]}function $Z(t){for(var e={},n,r=0,i=t.length;r<i;r++)n=t[r],e[n.name]=n.value;return e}function V6e(t){t=t.toLowerCase();var e=z6e(t);return e||t}function FZ(t,e,n){e=e||null;for(var r=[],i,o=0,s=t.length;o<s;o++){var a=t[o],l;switch(a.nodeType){case 1:i=V6e(a.nodeName),l=new O6e(i,$Z(a.attributes)),l.children=FZ(i==="template"?a.content.childNodes:a.childNodes,l);break;case 3:l=new D6e(a.nodeValue);break;case 8:l=new P6e(a.nodeValue);break;default:continue}var c=r[o-1]||null;c&&(c.next=l),l.parent=e,l.prev=c,l.next=null,r.push(l)}return n&&(l=new N6e(n.substring(0,n.indexOf(" ")).toLowerCase(),n),l.next=r[0]||null,l.parent=e,r.unshift(l),r[1]&&(r[1].prev=r[0])),r}WO.formatAttributes=$Z;WO.formatDOM=FZ;var B6e=M6e,$6e=WO,F6e=$6e.formatDOM,j6e=/<(![a-zA-Z\s]+)>/;function H6e(t){if(typeof t!="string")throw new TypeError("First argument must be a string");if(t==="")return[];var e=t.match(j6e),n;return e&&e[1]&&(n=e[1]),F6e(B6e(t),null,n)}var U6e=H6e,Is={},fC={},q6e=0;fC.SAME=q6e;var W6e=1;fC.CAMELCASE=W6e;fC
vendor: 7,404 bytes, line 5067
5067.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}
5067;Object.defineProperty(Is,"__esModule",{value:!0});function G6e(t,e){return K6e(t)||Y6e(t,e)||X6e(t,e)||Q6e()}function K6e(t){if(Array.isArray(t))return t}function Y6e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,s,a;try{for(n=n.call(t);!(i=(s=n.next()).done)&&(r.push(s.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw a}}return r}}function X6e(t,e){if(t){if(typeof t=="string")return HV(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HV(t,e)}}function HV(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q6e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 5068In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jZ=0,hd=1,hC=2,pC=3,GO=4,HZ=5,UZ=6;function J6e(t){return di.hasOwnProperty(t)?di[t]:null}function zi(t,e,n,r,i,o,s){this.acceptsBooleans=e===hC||e===pC||e===GO,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=o,this.removeEmptyString=s}var di={},Z6e=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Z6e.forEach(function(t){di[t]=new zi(t,jZ,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=G6e(t,2),n=e[0],r=e[1];di[n]=new zi(n,hd,!1,r,null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){di[t]=new zi(t,hC,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){di[t]=new zi(t,hC,!1,t,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"].forEach(function(t){di[t]=new zi(t,pC,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){di[t]=new zi(t,pC,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){di[t]=new zi(t,GO,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){di[t]=new zi(t,UZ,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){di[t]=new zi(t,HZ,!1,t.toLowerCase(),null,!1,!1)});var KO=/[\-\:]([a-z])/g,YO=function(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
5068-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"].forEach(function(t){var e=t.replace(KO,YO);di[e]=new zi(e,hd,!1,t,null,!1,!1)});["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(t){var e=t.replace(KO,YO);di[e]=new zi(e,hd,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(KO,YO);di[e]=new zi(e,hd,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){di[t]=new zi(t,hd,!1,t.toLowerCase(),null,!1,!1)});var eDe="xlinkHref";di[eDe]=new zi("xlinkHref",hd,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){di[t]=new zi(t,hd,!1,t.toLowerCase(),null,!0,!0)});var XO=fC,tDe=XO.CAMELCASE,nDe=XO.SAME,UV=XO.possibleStandardNames,rDe=":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",iDe=rDe+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",oDe=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+iDe+"]*$")),sDe=Object.keys(UV).reduce(function(t,e){var n=UV[e];return n===nDe?t[e]=e:n===tDe?t[e.toLowerCase()]=e:t[e]=n,t},{});Is.BOOLEAN=pC;Is.BOOLEANISH_STRING=hC;Is.NUMERIC=HZ;Is.OVERLOADED_BOOLEAN=GO;Is.POSITIVE_NUMERIC=UZ;Is.RESERVED=jZ;Is.STRING=hd;Is.getPropertyInfo=J6e;Is.isCustomAttribute=oDe;Is.possibleStandardNames=sDe;var qZ={},QO={exports:{}},qV=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,aDe=/\n/g,lDe=/^\s*/,cDe=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,uDe=/^:\s*/,dDe=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};
5068])+)/,fDe=/^[;\s]*/,hDe=/^\s+|\s+$/g,pDe=` 5069`,WV="/",GV="*",qd="",mDe="comment",gDe="declaration",yDe=function(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function i(p){var m=p.match(aDe);m&&(n+=m.length);var g=p.lastIndexOf(pDe);r=~g?p.length-g:r+p.length}function o(){var p={line:n,column:r};return function(m){return m.position=new s(p),c(),m}}function s(p){this.start=p,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function a(p){var m=new Error(e.source+":"+n+":"+r+": "+p);if(m.reason=p,m.filename=e.source,m.line=n,m.column=r,m.source=t,!e.silent)throw m}function l(p){var m=p.exec(t);if(m){var g=m[0];return i(g),t=t.slice(g.length),m}}function c(){l(lDe)}function u(p){var m;for(p=p||[];m=d();)m!==!1&&p.push(m);return p}function d(){var p=o();if(!(WV!=t.charAt(0)||GV!=t.charAt(1))){for(var m=2;qd!=t.charAt(m)&&(GV!=t.charAt(m)||WV!=t.charAt(m+1));)++m;if(m+=2,qd===t.charAt(m-1))return a("End of comment missing");var g=t.slice(2,m-2);return r+=2,i(g),t=t.slice(m),r+=2,p({type:mDe,comment:g})}}function f(){var p=o(),m=l(cDe);if(m){if(d(),!l(uDe))return a("property missing ':'");var g=l(dDe),y=p({type:gDe,property:KV(m[0].replace(qV,qd)),value:g?KV(g[0].replace(qV,qd)):qd});return l(fDe),y}}function h(){var p=[];u(p);for(var m;m=f();)m!==!1&&(p.push(m),u(p));return p}return c(),h()};function KV(t){return t?t.replace(hDe,qd):qd}var vDe=yDe;function WZ(t,e){var n=null;if(!t||typeof t!="string")return n;for(var r,i=vDe(t),o=typeof e=="function",s,a,l=0,c=i.length;l<c;l++)r=i[l],s=r.property,a=r.value,o?e(s,a,r):a&&(n||(n={}),n[s]=a);return n}QO.exports=WZ;QO.exports.default=WZ;var bDe=QO.exports,mC={};mC.__esModule=!0;mC.camelCase=void 0;var wDe=/^--[a-zA-Z0-9-]+$/,SDe=/-([a-z])/g,xDe=/^[^-]+$/,EDe=/^-(webkit|moz|ms|o|khtml)-/,TDe=/^-(ms)-/,CDe=function(t){return!t||xDe.test(t)||wDe.test(t)},_De=function(t,e){return e.toUpperCase()},YV=function(t,e){return"".concat(e,"-")},ADe=function(t,e){return e===void 0&&(e={}),CDe(t)?t:(t=t.toLowerCase(),e.reactCompat?t=t.replace(TDe,YV):t=t.replace(EDe,YV),t.replace(SDe,_De))};mC.camelCase=ADe;(function(t){var e=an&&an.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};t.__esModule=!0;var n=e(bDe),r=mC;function i(o,s){var a={};return!o||typeof o!="string"||(0,n.default)(o,function(l,c){l&&c&&(a[(0,r.camelCase)(l,s)]=c)}),a}t.default=i})(qZ);var IDe=E,RDe=qZ.default;function MDe(t,e){if(!t||typeof t!="object")throw new TypeError("First argument must be an object");var n,r,i=typeof e=="function",o={},s={};for(n in t){if(r=t[n],i&&(o=e(n,r),o&&o.length===2)){s[o[0]]=o[1];continue}typeof r=="string"&&(s[r]=n)}return s}function kDe(t,e){if(t.indexOf("-")===-1)return e&&typeof e.is=="string";switch(t){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 PDe={reactCompat:!0};function ODe(t,e){if(t!=null)try{e.style=RDe(t,PDe)}catch{e.style={}}}var NDe=IDe.version.split(".")[0]>=16,GZ=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);function DDe(t){return!GZ.has(t.name)}var KZ={PRESERVE_CUSTOM_ATTRIBUTES:NDe,invertObject:MDe,isCustomComponent:kDe,setStyleProp:ODe,canTextBeChildOfNode:DDe,elementsWithNoTextChildren:GZ},z1=Is,XV=KZ,LDe=["checked","value"],zDe=["input","select","textarea"],VDe={reset:!0,submit:!0},YZ=function(e,n){e=e||{};var r,i,o,s,a,l={},c=e.type&&VDe[e.type];for(r in e){if(o=e[r],z1.isCustomAttribute(r)){l[r]=o;continue}if(i=r.toLowerCase(),s=QV(i),s){switch(a=z1.getPropertyInfo(s),LDe.indexOf(s)!==-1&&zDe.indexOf(n)!==-1&&!c&&(s=QV("default"+i)),l[s]=o,a&&a.type){case z1.BOOLEAN:l[s]=!0;break;case z1.OVERLOADED_BOOLEAN:o===""&&(l[s]=!0);break}continue}XV.PRESERVE_CUSTOM_ATTRIBUTES&&(l[r]=o)}return XV.setStyleProp(e.style,l),l};function QV(t){return z1.possibleStandardNames[t]}var BDe=E,$De=YZ,vx=KZ,FDe=vx.setStyleProp,jDe=vx.canTextBeChildOfNode;function XZ(t,e){e=e||{};for(var n=e.library||BDe,r=n.cloneElement,i=n.createElement,o=n.isValidElement,s=[],a,l,c=typeof e.replace=="function",u,d,f,h=e.trim,p=0,m=t.length;p<m;p++){if(a=t[p],c&&(u=e.replace(a),o(u))){m>1&&(u=r(u,{key:u.key||p})),s.push(u);continue}if(a.type==="text"){if(l=!a.data.trim().length,l&&a.parent&&!jDe(a.parent)||h&&l)continue;s.push(a.data);continue}switch(d=a.attribs,HDe(a)?FDe(d.style,d):d&&(d=$De(d,a.name)),f=null,a.type){case"script":case"style":a.children[0]&&(d.dangerouslySetInnerHTML={__html:a.children[0].data});break;case"tag":a.name==="textarea"&&a.children[0]?d.defaultValue=a.children[0].data:a.children&&a.children.length&&(f=XZ(a.children,e));break;default:continue}m>1&&(d.key=p),s.push(i(a.name,d,f))}return s.length===1?s[0]:s}function HDe(t){return vx.PRESERVE_CUSTOM_ATTRIBUTES&&t.type==="tag"&&vx.isCustomComponent(t.name,t.attribs)}var UDe=XZ,gC=jO,bp=U6e,qDe=YZ,QZ=UDe;bp=typeof bp.default=="function"?bp.default:bp;var WDe={lowerCaseAttributeNames:!1};function Wa(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");return t===""?[]:(e=e||{},QZ(bp(t,e.htmlparser2||WDe),e))}Wa.domToReact=QZ;Wa.htmlToDOM=bp;Wa.attributesToProps=qDe;Wa.Comment=gC.Comment;Wa.Element=gC.Element;Wa.ProcessingInstruction=gC.ProcessingInstruction;Wa.Text=gC.Text;var GDe=Wa;Wa.default=Wa;const bh=Ts(GDe);bh.domToReact;bh.htmlToDOM;bh.attributesToProps;bh.Comment;bh.Element;bh.ProcessingInstruction;bh.Text;function KDe(t){return t&&typeof t=="object"&&"default"in t?t.default:t}var JZ=E,YDe=KDe(JZ);function JV(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function XDe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var QDe=!!(typeof window<"u"&&window.document&&window.document.createElement);function JDe(t,e,n){if(typeof t!="function")throw new Error("Expected reducePropsToState to be a function.");
5069if(typeof e!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof n<"u"&&typeof n!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function r(i){return i.displayName||i.name||"Component"}return function(o){if(typeof o!="function")throw new Error("Expected WrappedComponent to be a React component.");var s=[],a;function l(){a=t(s.map(function(u){return u.props})),c.canUseDOM?e(a):n&&(a=n(a))}var c=function(u){XDe(d,u);function d(){return u.apply(this,arguments)||this}d.peek=function(){return a},d.rewind=function(){if(d.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var p=a;return a=void 0,s=[],p};var f=d.prototype;return f.UNSAFE_componentWillMount=function(){s.push(this),l()},f.componentDidUpdate=function(){l()},f.componentWillUnmount=function(){var p=s.indexOf(this);s.splice(p,1),l()},f.render=function(){return YDe.createElement(o,this.props)},d}(JZ.PureComponent);return JV(c,"displayName","SideEffect("+r(o)+")"),JV(c,"canUseDOM",QDe),c}}var ZDe=JDe;const e8e=Ts(ZDe);var t8e=typeof Element<"u",n8e=typeof Map=="function",r8e=typeof Set=="function",i8e=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Sw(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var n,r,i;if(Array.isArray(t)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(!Sw(t[r],e[r]))return!1;return!0}var o;if(n8e&&t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;for(o=t.entries();!(r=o.next()).done;)if(!Sw(r.value[1],e.get(r.value[0])))return!1;return!0}if(r8e&&t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o=t.entries();!(r=o.next()).done;)if(!e.has(r.value[0]))return!1;return!0}if(i8e&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){if(n=t.length,n!=e.length)return!1;for(r=n;r--!==0;)if(t[r]!==e[r])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf&&typeof t.valueOf=="function"&&typeof e.valueOf=="function")return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString&&typeof t.toString=="function"&&typeof e.toString=="function")return t.toString()===e.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(e).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[r]))return!1;if(t8e&&t instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&t.$$typeof)&&!Sw(t[i[r]],e[i[r]]))return!1;return!0}return t!==t&&e!==e}var o8e=function(e,n){try{return Sw(e,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const s8e=Ts(o8e);/* 5070object-assign 5071(c) Sindre Sorhus 5072@license MIT
5073*/var ZV=Object.getOwnPropertySymbols,a8e=Object.prototype.hasOwnProperty,l8e=Object.prototype.propertyIsEnumerable;function c8e(t){if(t==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function u8e(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de",Object.getOwnPropertyNames(t)[0]==="5")return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(e).map(function(o){return e[o]});if(r.join("")!=="0123456789")return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(o){i[o]=o}),Object.keys(Object.assign({},i)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var d8e=u8e()?Object.assign:function(t,e){for(var n,r=c8e(t),i,o=1;o<arguments.length;o++){n=Object(arguments[o]);for(var s in n)a8e.call(n,s)&&(r[s]=n[s]);if(ZV){i=ZV(n);for(var a=0;a<i.length;a++)l8e.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r};const f8e=Ts(d8e);var xf={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},wt={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(wt).map(function(t){return wt[t]});var Hn={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},bx={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},G0={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},h8e=Object.keys(bx).reduce(function(t,e){return t[bx[e]]=e,t},{}),p8e=[wt.NOSCRIPT,wt.SCRIPT,wt.STYLE],js="data-react-helmet",m8e=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},g8e=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},y8e=function(){function t(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),ji=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},v8e=function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)},eB=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},b8e=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t},D4=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return n===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},w8e=function(e){var n=Wp(e,wt.TITLE),r=Wp(e,G0.TITLE_TEMPLATE);if(r&&n)return r.replace(/%s/g,function(){return Array.isArray(n)?n.join(""):n});var i=Wp(e,G0.DEFAULT_TITLE);return n||i||void 0},S8e=function(e){return Wp(e,G0.ON_CHANGE_CLIENT_STATE)||function(){}},uI=function(e,n){return n.filter(function(r){return typeof r[e]<"u"}).map(function(r){return r[e]}).reduce(function(r,i){return ji({},r,i)},{})},x8e=function(e,n){return n.filter(function(r){return typeof r[wt.BASE]<"u"}).map(function(r){return r[wt.BASE]}).reverse().reduce(function(r,i){if(!r.length)for(var o=Object.keys(i),s=0;s<o.length;s++){var a=o[s],l=a.toLowerCase();if(e.indexOf(l)!==-1&&i[l])return r.concat(i)}return r},[])},u1=function(e,n,r){var i={};return r.filter(function(o){return Array.isArray(o[e])?!0:(typeof o[e]<"u"&&_8e("Helmet: "+e+' should be of type "Array". Instead found type "'+m8e(o[e])+'"'),!1)}).map(function(o){return o[e]}).reverse().reduce(function(o,s){var a={};s.filter(function(f){for(var h=void 0,p=Object.keys(f),m=0;m<p.length;m++){var g=p[m],y=g.toLowerCase();
5073n.indexOf(y)!==-1&&!(h===Hn.REL&&f[h].toLowerCase()==="canonical")&&!(y===Hn.REL&&f[y].toLowerCase()==="stylesheet")&&(h=y),n.indexOf(g)!==-1&&(g===Hn.INNER_HTML||g===Hn.CSS_TEXT||g===Hn.ITEM_PROP)&&(h=g)}if(!h||!f[h])return!1;var b=f[h].toLowerCase();return i[h]||(i[h]={}),a[h]||(a[h]={}),i[h][b]?!1:(a[h][b]=!0,!0)}).reverse().forEach(function(f){return o.push(f)});for(var l=Object.keys(a),c=0;c<l.length;c++){var u=l[c],d=f8e({},i[u],a[u]);i[u]=d}return o},[]).reverse()},Wp=function(e,n){for(var r=e.length-1;r>=0;r--){var i=e[r];if(i.hasOwnProperty(n))return i[n]}return null},E8e=function(e){return{baseTag:x8e([Hn.HREF,Hn.TARGET],e),bodyAttributes:uI(xf.BODY,e),defer:Wp(e,G0.DEFER),encode:Wp(e,G0.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:uI(xf.HTML,e),linkTags:u1(wt.LINK,[Hn.REL,Hn.HREF],e),metaTags:u1(wt.META,[Hn.NAME,Hn.CHARSET,Hn.HTTPEQUIV,Hn.PROPERTY,Hn.ITEM_PROP],e),noscriptTags:u1(wt.NOSCRIPT,[Hn.INNER_HTML],e),onChangeClientState:S8e(e),scriptTags:u1(wt.SCRIPT,[Hn.SRC,Hn.INNER_HTML],e),styleTags:u1(wt.STYLE,[Hn.CSS_TEXT],e),title:w8e(e),titleAttributes:uI(xf.TITLE,e)}},L4=function(){var t=Date.now();return function(e){var n=Date.now();n-t>16?(t=n,e(n)):setTimeout(function(){L4(e)},0)}}(),tB=function(e){return clearTimeout(e)},T8e=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||L4:global.requestAnimationFrame||L4,C8e=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tB:global.cancelAnimationFrame||tB,_8e=function(e){return console&&typeof console.warn=="function"&&console.warn(e)},d1=null,A8e=function(e){d1&&C8e(d1),e.defer?d1=T8e(function(){nB(e,function(){d1=null})}):(nB(e),d1=null)},nB=function(e,n){var r=e.baseTag,i=e.bodyAttributes,o=e.htmlAttributes,s=e.linkTags,a=e.metaTags,l=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,d=e.styleTags,f=e.title,h=e.titleAttributes;z4(wt.BODY,i),z4(wt.HTML,o),I8e(f,h);var p={baseTag:Hh(wt.BASE,r),linkTags:Hh(wt.LINK,s),metaTags:Hh(wt.META,a),noscriptTags:Hh(wt.NOSCRIPT,l),scriptTags:Hh(wt.SCRIPT,u),styleTags:Hh(wt.STYLE,d)},m={},g={};Object.keys(p).forEach(function(y){var b=p[y],v=b.newTags,S=b.oldTags;v.length&&(m[y]=v),S.length&&(g[y]=p[y].oldTags)}),n&&n(),c(e,m,g)},ZZ=function(e){return Array.isArray(e)?e.join(""):e},I8e=function(e,n){typeof e<"u"&&document.title!==e&&(document.title=ZZ(e)),z4(wt.TITLE,n)},z4=function(e,n){var r=document.getElementsByTagName(e)[0];if(r){for(var i=r.getAttribute(js),o=i?i.split(","):[],s=[].concat(o),a=Object.keys(n),l=0;l<a.length;l++){var c=a[l],u=n[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),o.indexOf(c)===-1&&o.push(c);var d=s.indexOf(c);d!==-1&&s.splice(d,1)}for(var f=s.length-1;f>=0;f--)r.removeAttribute(s[f]);o.length===s.length?r.removeAttribute(js):r.getAttribute(js)!==a.join(",")&&r.setAttribute(js,a.join(","))}},Hh=function(e,n){var r=document.head||document.querySelector(wt.HEAD),i=r.querySelectorAll(e+"["+js+"]"),o=Array.prototype.slice.call(i),s=[],a=void 0;return n&&n.length&&n.forEach(function(l){var c=document.createElement(e);for(var u in l)if(l.hasOwnProperty(u))if(u===Hn.INNER_HTML)c.innerHTML=l.innerHTML;else if(u===Hn.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{var d=typeof l[u]>"u"?"":l[u];c.setAttribute(u,d)}c.setAttribute(js,"true"),o.some(function(f,h){return a=h,c.isEqualNode(f)})?o.splice(a,1):s.push(c)}),o.forEach(function(l){return l.parentNode.removeChild(l)}),s.forEach(function(l){return r.appendChild(l)}),{oldTags:o,newTags:s}},eee=function(e){return Object.keys(e).reduce(function(n,r){var i=typeof e[r]<"u"?r+'="'+e[r]+'"':""+r;return n?n+" "+i:i},"")},R8e=function(e,n,r,i){var o=eee(r),s=ZZ(n);return o?"<"+e+" "+js+'="true" '+o+">"+D4(s,i)+"</"+e+">":"<"+e+" "+js+'="true">'+D4(s,i)+"</"+e+">"},M8e=function(e,n,r){return n.reduce(function(i,o){var s=Object.keys(o).filter(function(c){return!(c===Hn.INNER_HTML||c===Hn.CSS_TEXT)}).reduce(function(c,u){var d=typeof o[u]>"u"?u:u+'="'+D4(o[u],r)+'"';return c?c+" "+d:d},""),a=o.innerHTML||o.cssText||"",l=p8e.indexOf(e)===-1;return i+"<"+e+" "+js+'="true" '+s+(l?"/>":">"+a+"</"+e+">")},"")},tee=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,i){return r[bx[i]||i]=e[i],r},n)},k8e=function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(e).reduce(function(r,i){return r[h8e[i]||i]=e[i],r},n)},P8e=function(e,n,r){var i,o=(i={key:n},i[js]=!0,i),s=tee(r,o);return[ft.createElement(wt.TITLE,s,n)]},O8e=function(e,n){return n.map(function(r,i){var o,s=(o={key:i},o[js]=!0,o);return Object.keys(r).forEach(function(a){var l=bx[a]||a;if(l===Hn.INNER_HTML||l===Hn.CSS_TEXT){var c=r.innerHTML||r.cssText;s.dangerouslySetInnerHTML={__html:c}}else s[l]=r[a]}),ft.createElement(e,s)})},pl=function(e,n,r){switch(e){case wt.TITLE:return{toComponent:function(){return P8e(e,n.title,n.titleAttributes)},toString:function(){return R8e(e,n.title,n.titleAttributes,r)}};case xf.BODY:case xf.HTML:return{toComponent:function(){return tee(n)},toString:function(){return eee(n)}};default:return{toComponent:function(){return O8e(e,n)},toString:function(){return M8e(e,n,r)}}}},nee=function(e){var n=e.baseTag,r=e.bodyAttributes,i=e.encode,o=e.htmlAttributes,s=e.linkTags,a=e.metaTags,l=e.noscriptTags,c=e.scriptTags,u=e.styleTags,d=e.title,f=d===void 0?"":d,h=e.titleAttributes;return{base:pl(wt.BASE,n,i),bodyAttributes:pl(xf.BODY,r,i),htmlAttributes:pl(xf.HTML,o,i),link:pl(wt.LINK,s,i),meta:pl(wt.META,a,i),noscript:pl(wt.NOSCRIPT,l,i),script:pl(wt.SCRIPT,c,i),style:pl(wt.STYLE,u,i),title:pl(wt.TITLE,{title:f,titleAttributes:h},i)}},N8e=function(e){var n,r;return r=n=function(i){v8e(o,i);function o(){return g8e(this,o),b8e(this,i.apply(this,arguments))}return o.prototype.shouldComponentUpdate=function(a){return!s8e(this.props,a)},o.prototype.mapNestedChildrenToProps=function(a,l){if(!l)return null;switch(a.type){case wt.SCRIPT:case wt.NOSCRIPT:return{innerHTML:l};case wt.STYLE:return{cssText:l}}throw new Error("<"+a.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},o.prototype.flattenArrayTypeChildren=function(a){var l,c=a.child,u=a.arrayTypeChildren,d=a.newChildProps,f=a.nestedChildren;return ji({},u,(l={},l[c.type]=[].concat(u[c.type]||[],[ji({},d,this.mapNestedChildrenToProps(c,f))]),l))},o.prototype.mapObjectTypeChildren=function(a){var l,c,u=a.child,d=a.newProps,f=a.newChildProps,h=a.nestedChildren;switch(u.type){case wt.TITLE:return ji({},d,(l={},l[u.type]=h,l.titleAttributes=ji({},f),l));case wt.BODY:return ji({},d,{bodyAttributes:ji({},f)});case wt.HTML:return ji({},d,{htmlAttributes:ji({},f)})}return ji({},d,(c={},c[u.type]=ji({},f),c))},o.prototype.mapArrayTypeChildrenToProps=function(a,l){var c=ji({},l);
5073return Object.keys(a).forEach(function(u){var d;c=ji({},c,(d={},d[u]=a[u],d))}),c},o.prototype.warnOnInvalidChildren=function(a,l){return!0},o.prototype.mapChildrenToProps=function(a,l){var c=this,u={};return ft.Children.forEach(a,function(d){if(!(!d||!d.props)){var f=d.props,h=f.children,p=eB(f,["children"]),m=k8e(p);switch(c.warnOnInvalidChildren(d,h),d.type){case wt.LINK:case wt.META:case wt.NOSCRIPT:case wt.SCRIPT:case wt.STYLE:u=c.flattenArrayTypeChildren({child:d,arrayTypeChildren:u,newChildProps:m,nestedChildren:h});break;default:l=c.mapObjectTypeChildren({child:d,newProps:l,newChildProps:m,nestedChildren:h});break}}}),l=this.mapArrayTypeChildrenToProps(u,l),l},o.prototype.render=function(){var a=this.props,l=a.children,c=eB(a,["children"]),u=ji({},c);return l&&(u=this.mapChildrenToProps(l,u)),ft.createElement(e,u)},y8e(o,null,[{key:"canUseDOM",set:function(a){e.canUseDOM=a}}]),o}(ft.Component),n.propTypes={base:Sn.object,bodyAttributes:Sn.object,children:Sn.oneOfType([Sn.arrayOf(Sn.node),Sn.node]),defaultTitle:Sn.string,defer:Sn.bool,encodeSpecialCharacters:Sn.bool,htmlAttributes:Sn.object,link:Sn.arrayOf(Sn.object),meta:Sn.arrayOf(Sn.object),noscript:Sn.arrayOf(Sn.object),onChangeClientState:Sn.func,script:Sn.arrayOf(Sn.object),style:Sn.arrayOf(Sn.object),title:Sn.string,titleAttributes:Sn.object,titleTemplate:Sn.string},n.defaultProps={defer:!0,encodeSpecialCharacters:!0},n.peek=e.peek,n.rewind=function(){var i=e.rewind();return i||(i=nee({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),i},r},D8e=function(){return null},L8e=e8e(E8e,A8e,nee)(D8e),rB=N8e(L8e);rB.renderStatic=rB.rewind;function z8e(t={}){const{nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}=t,[i,o]=E.useState(!1),s=E.useRef(n);s.current=n;const a=E.useRef(r);return a.current=r,E.useEffect(()=>{const l=document.createElement("script");return l.src="https://accounts.google.com/gsi/client",l.async=!0,l.defer=!0,l.nonce=e,l.onload=()=>{var c;o(!0),(c=s.current)===null||c===void 0||c.call(s)},l.onerror=()=>{var c;o(!1),(c=a.current)===null||c===void 0||c.call(a)},document.body.appendChild(l),()=>{document.body.removeChild(l)}},[e]),i}const ree=E.createContext(null);function htt({clientId:t,nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r,children:i}){const o=z8e({nonce:e,onScriptLoadSuccess:n,onScriptLoadError:r}),s=E.useMemo(()=>({clientId:t,scriptLoadedSuccessfully:o}),[t,o]);return ft.createElement(ree.Provider,{value:s},i)}function V8e(){const t=E.useContext(ree);if(!t)throw new Error("Google OAuth components must be used within GoogleOAuthProvider");return t}function ptt({flow:t="implicit",scope:e="",onSuccess:n,onError:r,onNonOAuthError:i,overrideScope:o,state:s,...a}){const{clientId:l,scriptLoadedSuccessfully:c}=V8e(),u=E.useRef(),d=E.useRef(n);d.current=n;const f=E.useRef(r);f.current=r;const h=E.useRef(i);h.current=i,E.useEffect(()=>{var g;if(!c)return;const y=t==="implicit"?"initTokenClient":"initCodeClient",b=(g=window==null?void 0:window.google)===null||g===void 0?void 0:g.accounts.oauth2[y]({client_id:l,scope:o?e:`openid profile email ${e}`,callback:v=>{var S,I;if(v.error)return(S=f.current)===null||S===void 0?void 0:S.call(f,v);(I=d.current)===null||I===void 0||I.call(d,v)},error_callback:v=>{var S;(S=h.current)===null||S===void 0||S.call(h,v)},state:s,...a});u.current=b},[l,c,t,e,s]);const p=E.useCallback(g=>{var y;return(y=u.current)===null||y===void 0?void 0:y.requestAccessToken(g)},[]),m=E.useCallback(()=>{var g;return(g=u.current)===null||g===void 0?void 0:g.requestCode()},[]);return t==="implicit"?p:m}function mtt(t,e,...n){var r,i,o;return window!=null&&window.google&&((o=(i=(r=window==null?void 0:window.google)===null||r===void 0?void 0:r.accounts)===null||i===void 0?void 0:i.oauth2)===null||o===void 0?void 0:o.hasGrantedAnyScope(t,e,...n))||!1}let V4,B4;if(typeof WeakMap<"u"){let t=new WeakMap;V4=e=>t.get(e),B4=(e,n)=>(t.set(e,n),n)}else{const t=[];let n=0;V4=r=>{for(let i=0;i<t.length;i+=2)if(t[i]==r)return t[i+1]},B4=(r,i)=>(n==10&&(n=0),t[n++]=r,t[n++]=i)}var sr=class{constructor(t,e,n,r){this.width=t,this.height=e,this.map=n,this.problems=r}findCell(t){for(let e=0;e<this.map.length;e++){const n=this.map[e];if(n!=t)continue;const r=e%this.width,i=e/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[e+a]==n;a++)o++;for(let a=1;s<this.height&&this.map[e+this.width*a]==n;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${t} found`)}colCount(t){for(let e=0;e<this.map.length;e++)if(this.map[e]==t)return e%this.width;throw new RangeError(`No cell with offset ${t} found`)}nextCell(t,e,n){const{left:r,right:i,top:o,bottom:s}=this.findCell(t);return e=="horiz"?(n<0?r==0:i==this.width)?null:this.map[o*this.width+(n<0?r-1:i)]:(n<0?o==0:s==this.height)?null:this.map[r+this.width*(n<0?o-1:s)]}rectBetween(t,e){const{left:n,right:r,top:i,bottom:o}=this.findCell(t),{left:s,right:a,top:l,bottom:c}=this.findCell(e);return{left:Math.min(n,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(t){const e=[],n={};for(let r=t.top;r<t.bottom;r++)for(let i=t.left;i<t.right;i++){const o=r*this.width+i,s=this.map[o];n[s]||(n[s]=!0,!(i==t.left&&i&&this.map[o-1]==s||r==t.top&&r&&this.map[o-this.width]==s)&&e.push(s))}return e}positionAt(t,e,n){for(let r=0,i=0;;r++){const o=i+n.child(r).nodeSize;if(r==t){let s=e+t*this.width;const a=(t+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(t){return V4(t)||B4(t,B8e(t))}};function B8e(t){if(t.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+t.type.name);const e=$8e(t),n=t.childCount,r=[];let i=0,o=null;const s=[];for(let c=0,u=e*n;c<u;c++)r[c]=0;for(let c=0,u=0;c<n;c++){const d=t.child(c);u++;for(let p=0;;p++){for(;i<r.length&&r[i]!=0;)i++;if(p==d.childCount)break;const m=d.child(p),{colspan:g,rowspan:y,colwidth:b}=m.attrs;for(let v=0;v<y;v++){if(v+c>=n){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:y-v});break}const S=i+v*e;for(let I=0;I<g;I++){r[S+I]==0?r[S+I]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:g-I});const O=b&&b[I];if(O){const T=(S+I)%e*2,A=s[T];A==null||A!=O&&s[T+1]==1?(s[T]=O,s[T+1]=1):A==O&&s[T+1]++}}}i+=g,u+=m.nodeSize}const f=(c+1)*e;let h=0;for(;i<f;)r[i++]==0&&h++;h&&(o||(o=[])).push({type:"missing",row:c,n:h}),u++}(e===0||n===0)&&(o||(o=[])).push({type:"zero_sized"});const a=new sr(e,n,r,o);let l=!1;for(let c=0;!l&&c<s.length;c+=2)s[c]!=null&&s[c+1]<n&&(l=!0);return l&&F8e(a,s,t),a}function $8e(t){let e=-1,n=!1;for(let r=0;r<t.childCount;r++){const i=t.child(r);let o=0;if(n)for(let s=0;s<r;s++){const a=t.child(s);for(let l=0;l<a.childCount;l++){const c=a.child(l);s+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(n=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function F8e(t,e,n){t.problems||(t.problems=[]);const r={};for(let i=0;i<t.map.length;i++){const o=t.map[i];if(r[o])continue;r[o]=!0;const s=n.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let c=0;c<l.colspan;c++){const u=e[(i+c)%t.width*2];u!=null&&(!l.colwidth||l.colwidth[c]!=u)&&((a||(a=j8e(l)))[c]=u)}a&&t.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function j8e(t){if(t.colwidth)return t.colwidth.slice();const e=[];for(let n=0;n<t.colspan;n++)e.push(0);return e}function wi(t){let e=t.cached.tableNodeTypes;if(!e){e=t.cached.tableNodeTypes={};
vendor: 31,626 bytes, line 5073
5073for(const n in t.nodes){const r=t.nodes[n],i=r.spec.tableRole;i&&(e[i]=r)}}return e}const qc=new lo("selectingCells");function Xf(t){for(let e=t.depth-1;e>0;e--)if(t.node(e).type.spec.tableRole=="row")return t.node(0).resolve(t.before(e+1));return null}function H8e(t){for(let e=t.depth;e>0;e--){const n=t.node(e).type.spec.tableRole;if(n==="cell"||n==="header_cell")return t.node(e)}return null}function ia(t){const e=t.selection.$head;for(let n=e.depth;n>0;n--)if(e.node(n).type.spec.tableRole=="row")return!0;return!1}function yC(t){const e=t.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const n=Xf(e.$head)||U8e(e.$head);if(n)return n;throw new RangeError(`No cell found around position ${e.head}`)}function U8e(t){for(let e=t.nodeAfter,n=t.pos;e;e=e.firstChild,n++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n)}for(let e=t.nodeBefore,n=t.pos;e;e=e.lastChild,n--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return t.doc.resolve(n-e.nodeSize)}}function $4(t){return t.parent.type.spec.tableRole=="row"&&!!t.nodeAfter}function q8e(t){return t.node(0).resolve(t.pos+t.nodeAfter.nodeSize)}function JO(t,e){return t.depth==e.depth&&t.pos>=e.start(-1)&&t.pos<=e.end(-1)}function iee(t,e,n){const r=t.node(-1),i=sr.get(r),o=t.start(-1),s=i.nextCell(t.pos-o,e,n);return s==null?null:t.node(0).resolve(o+s)}function Qf(t,e,n=1){const r={...t,colspan:t.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,n),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function oee(t,e,n=1){const r={...t,colspan:t.colspan+n};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<n;i++)r.colwidth.splice(e,0,0)}return r}function W8e(t,e,n){const r=wi(e.type.schema).header_cell;for(let i=0;i<t.height;i++)if(e.nodeAt(t.map[n+i*t.width]).type!=r)return!1;return!0}var Dn=class yl extends vt{constructor(e,n=e){const r=e.node(-1),i=sr.get(r),o=e.start(-1),s=i.rectBetween(e.pos-o,n.pos-o),a=e.node(0),l=i.cellsInRect(s).filter(u=>u!=n.pos-o);l.unshift(n.pos-o);const c=l.map(u=>{const d=r.nodeAt(u);if(!d)throw new RangeError(`No cell with offset ${u} found`);const f=o+u+1;return new HQ(a.resolve(f),a.resolve(f+d.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=n}map(e,n){const r=e.resolve(n.map(this.$anchorCell.pos)),i=e.resolve(n.map(this.$headCell.pos));if($4(r)&&$4(i)&&JO(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?yl.rowSelection(r,i):o&&this.isColSelection()?yl.colSelection(r,i):new yl(r,i)}return mt.between(r,i)}content(){const e=this.$anchorCell.node(-1),n=sr.get(e),r=this.$anchorCell.start(-1),i=n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},s=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*n.width+i.left,d=i.left;d<i.right;d++,u++){const f=n.map[u];if(o[f])continue;o[f]=!0;const h=n.findCell(f);let p=e.nodeAt(f);if(!p)throw new RangeError(`No cell with offset ${f} found`);const m=i.left-h.left,g=h.right-i.right;if(m>0||g>0){let y=p.attrs;if(m>0&&(y=Qf(y,0,m)),g>0&&(y=Qf(y,y.colspan-g,g)),h.left<i.left){if(p=p.type.createAndFill(y),!p)throw new RangeError(`Could not create cell with attrs ${JSON.stringify(y)}`)}else p=p.type.create(y,p.content)}if(h.top<i.top||h.bottom>i.bottom){const y={...p.attrs,rowspan:Math.min(h.bottom,i.bottom)-Math.max(h.top,i.top)};h.top<i.top?p=p.type.createAndFill(y):p=p.type.create(y,p.content)}c.push(p)}s.push(e.child(l).copy(Ce.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?e:s;return new We(Ce.from(a),1,1)}replace(e,n=We.empty){const r=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){const{$from:a,$to:l}=i[s],c=e.mapping.slice(r);e.replace(c.map(a.pos),c.map(l.pos),s?We.empty:n)}const o=vt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,n){this.replace(e,new We(Ce.from(n),0,0))}forEachCell(e){const n=this.$anchorCell.node(-1),r=sr.get(n),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let s=0;s<o.length;s++)e(n.nodeAt(o[s]),i+o[s])}isColSelection(){const e=this.$anchorCell.index(-1),n=this.$headCell.index(-1);if(Math.min(e,n)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=n+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,n=e){const r=e.node(-1),i=sr.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(n.pos-o),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(n=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(n=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new yl(e,n)}isRowSelection(){const e=this.$anchorCell.node(-1),n=sr.get(e),r=this.$anchorCell.start(-1),i=n.colCount(this.$anchorCell.pos-r),o=n.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const s=i+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==n.width}eq(e){return e instanceof yl&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,n=e){const r=e.node(-1),i=sr.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(n.pos-o),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(n=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(n=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(e=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new yl(e,n)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,n){return new yl(e.resolve(n.anchor),e.resolve(n.head))}static create(e,n,r=n){return new yl(e.resolve(n),e.resolve(r))}getBookmark(){return new G8e(this.$anchorCell.pos,this.$headCell.pos)}};Dn.prototype.visible=!1;vt.jsonID("cell",Dn);var G8e=class see{constructor(e,n){this.anchor=e,this.head=n}map(e){return new see(e.map(this.anchor),e.map(this.head))}resolve(e){const n=e.resolve(this.anchor),r=e.resolve(this.head);return n.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&n.index()<n.parent.childCount&&r.index()<r.parent.childCount&&JO(n,r)?new Dn(n,r):vt.near(r,1)}};function K8e(t){if(!(t.selection instanceof Dn))return null;const e=[];return t.selection.forEachCell((n,r)=>{e.push(Qi.node(r,r+n.nodeSize,{class:"selectedCell"}))}),dr.create(t.doc,e)}function Y8e({$from:t,$to:e}){if(t.pos==e.pos||t.pos<e.pos-6)return!1;let n=t.pos,r=e.pos,i=t.depth;for(;i>=0&&!(t.after(i+1)<t.end(i));i--,n++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return n==r&&/row|table/.test(t.node(i).type.spec.tableRole)}function X8e({$from:t,$to:e}){let n,r;for(let i=t.depth;i>0;i--){const o=t.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){n=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return n!==r&&e.parentOffset===0}function Q8e(t,e,n){const r=(e||t).selection,i=(e||t).doc;let o,s;if(r instanceof lt&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")o=Dn.create(i,r.from);else if(s=="row"){const a=i.resolve(r.from+1);o=Dn.rowSelection(a,a)}else if(!n){const a=sr.get(r.node),l=r.from+1,c=l+a.map[a.width*a.height-1];o=Dn.create(i,l+1,c)}}else r instanceof mt&&Y8e(r)?o=mt.create(i,r.from):r instanceof mt&&X8e(r)&&(o=mt.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=t.tr)).setSelection(o),e}const J8e=new lo("fix-tables");function aee(t,e,n,r){const i=t.childCount,o=e.childCount;e:for(let s=0,a=0;s<o;s++){const l=e.child(s);for(let c=a,u=Math.min(i,s+3);c<u;c++)if(t.child(c)==l){a=c+1,n+=l.nodeSize;continue e}r(l,n),a<i&&t.child(a).sameMarkup(l)?aee(t.child(a),l,n+1,r):l.nodesBetween(0,l.content.size,r,n+1),n+=l.nodeSize}}function Z8e(t,e){let n;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(n=eLe(t,i,o,n))};return e?e.doc!=t.doc&&aee(e.doc,t.doc,0,r):t.doc.descendants(r),n}function eLe(t,e,n,r){const i=sr.get(e);if(!i.problems)return r;r||(r=t.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=e.nodeAt(c.pos);if(!u)continue;const d=u.attrs;for(let f=0;f<d.rowspan;f++)o[c.row+f]+=c.n;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,Qf(d,d.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(n+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){const u=r.mapping.map(n);r.delete(u,u+e.nodeSize)}}let s,a;for(let l=0;l<o.length;l++)o[l]&&(s==null&&(s=l),a=l);for(let l=0,c=n+1;l<i.height;l++){const u=e.child(l),d=c+u.nodeSize,f=o[l];if(f>0){let h="cell";u.firstChild&&(h=u.firstChild.type.spec.tableRole);const p=[];for(let g=0;g<f;g++){const y=wi(t.schema)[h].createAndFill();y&&p.push(y)}const m=(l==0||s==l-1)&&a==l?c+1:d-1;r.insert(r.mapping.map(m),p)}c=d}return r.setMeta(J8e,{fixTables:!0})}function el(t){const e=t.selection,n=yC(t),r=n.node(-1),i=n.start(-1),o=sr.get(r);return{...e instanceof Dn?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(n.pos-i),tableStart:i,map:o,table:r}}function lee(t,{map:e,tableStart:n,table:r},i){let o=i>0?-1:0;W8e(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let s=0;s<e.height;s++){const a=s*e.width+i;if(i>0&&i<e.width&&e.map[a-1]==e.map[a]){const l=e.map[a],c=r.nodeAt(l);t.setNodeMarkup(t.mapping.map(n+l),null,oee(c.attrs,i-e.colCount(l))),s+=c.attrs.rowspan-1}else{const l=o==null?wi(r.type.schema).cell:r.nodeAt(e.map[a+o]).type,c=e.positionAt(s,i,r);t.insert(t.mapping.map(n+c),l.createAndFill())}}return t}function gtt(t,e){if(!ia(t))return!1;if(e){const n=el(t);e(lee(t.tr,n,n.left))}return!0}function ytt(t,e){if(!ia(t))return!1;if(e){const n=el(t);e(lee(t.tr,n,n.right))}return!0}function tLe(t,{map:e,table:n,tableStart:r},i){const o=t.mapping.maps.length;for(let s=0;s<e.height;){const a=s*e.width+i,l=e.map[a],c=n.nodeAt(l),u=c.attrs;if(i>0&&e.map[a-1]==l||i<e.width-1&&e.map[a+1]==l)t.setNodeMarkup(t.mapping.slice(o).map(r+l),null,Qf(u,i-e.colCount(l)));else{const d=t.mapping.slice(o).map(r+l);t.delete(d,d+c.nodeSize)}s+=u.rowspan}}function vtt(t,e){if(!ia(t))return!1;if(e){const n=el(t),r=t.tr;if(n.left==0&&n.right==n.map.width)return!1;for(let i=n.right-1;tLe(r,n,i),i!=n.left;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=sr.get(o)}e(r)}return!0}function nLe(t,e,n){var r;const i=wi(e.type.schema).header_cell;for(let o=0;o<t.width;o++)if(((r=e.nodeAt(t.map[o+n*t.width]))===null||r===void 0?void 0:r.type)!=i)return!1;return!0}function cee(t,{map:e,tableStart:n,table:r},i){let o=n;for(let c=0;c<i;c++)o+=r.child(c).nodeSize;const s=[];let a=i>0?-1:0;nLe(e,r,i+a)&&(a=i==0||i==e.height?null:0);for(let c=0,u=e.width*i;c<e.width;c++,u++)if(i>0&&i<e.height&&e.map[u]==e.map[u-e.width]){const d=e.map[u],f=r.nodeAt(d).attrs;t.setNodeMarkup(n+d,null,{...f,rowspan:f.rowspan+1}),c+=f.colspan-1}else{var l;const d=a==null?wi(r.type.schema).cell:(l=r.nodeAt(e.map[u+a*e.width]))===null||l===void 0?void 0:l.type,f=d==null?void 0:d.createAndFill();f&&s.push(f)}return t.insert(o,wi(r.type.schema).row.create(null,s)),t}function btt(t,e){if(!ia(t))return!1;if(e){const n=el(t);e(cee(t.tr,n,n.top))}return!0}function wtt(t,e){if(!ia(t))return!1;if(e){const n=el(t);e(cee(t.tr,n,n.bottom))}return!0}function rLe(t,{map:e,table:n,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=n.child(c).nodeSize;const s=o+n.child(i).nodeSize,a=t.mapping.maps.length;t.delete(o+r,s+r);const l=new Set;for(let c=0,u=i*e.width;c<e.width;c++,u++){const d=e.map[u];if(!l.has(d)){if(l.add(d),i>0&&d==e.map[u-e.width]){const f=n.nodeAt(d).attrs;t.setNodeMarkup(t.mapping.slice(a).map(d+r),null,{...f,rowspan:f.rowspan-1}),c+=f.colspan-1}else if(i<e.height&&d==e.map[u+e.width]){const f=n.nodeAt(d),h=f.attrs,p=f.type.create({...h,rowspan:f.attrs.rowspan-1},f.content),m=e.positionAt(i+1,c,n);t.insert(t.mapping.slice(a).map(r+m),p),c+=h.colspan-1}}}}function Stt(t,e){if(!ia(t))return!1;if(e){const n=el(t),r=t.tr;if(n.top==0&&n.bottom==n.map.height)return!1;for(let i=n.bottom-1;rLe(r,n,i),i!=n.top;i--){const o=n.tableStart?r.doc.nodeAt(n.tableStart-1):r.doc;if(!o)throw new RangeError("No table found");n.table=o,n.map=sr.get(n.table)}e(r)}return!0}function iB(t){const e=t.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function iLe({width:t,height:e,map:n},r){let i=r.top*t+r.left,o=i,s=(r.bottom-1)*t+r.left,a=i+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&n[o]==n[o-1]||r.right<t&&n[a]==n[a+1])return!0;o+=t,a+=t}for(let l=r.left;l<r.right;l++){if(r.top>0&&n[i]==n[i-t]||r.bottom<e&&n[s]==n[s+t])return!0;i++,s++}return!1}function xtt(t,e){const n=t.selection;if(!(n instanceof Dn)||n.$anchorCell.pos==n.$headCell.pos)return!1;const r=el(t),{map:i}=r;if(iLe(i,r))return!1;if(e){const o=t.tr,s={};let a=Ce.empty,l,c;for(let u=r.top;u<r.bottom;u++)for(let d=r.left;d<r.right;d++){const f=i.map[u*i.width+d],h=r.table.nodeAt(f);if(!(s[f]||!h))if(s[f]=!0,l==null)l=f,c=h;else{iB(h)||(a=a.append(h.content));const p=o.mapping.map(f+r.tableStart);o.delete(p,p+h.nodeSize)}}if(l==null||c==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...oee(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),a.size>0){const u=l+1+c.content.size,d=iB(c)?l+1:u;o.replaceWith(d+r.tableStart,u+r.tableStart,a)}o.setSelection(new Dn(o.doc.resolve(l+r.tableStart))),e(o)}return!0}function Ett(t,e){const n=wi(t.schema);return oLe(({node:r})=>n[r.type.spec.tableRole])(t,e)}function oLe(t){return(e,n)=>{const r=e.selection;let i,o;if(r instanceof Dn){if(r.$anchorCell.pos!=r.$headCell.pos)return!1;i=r.$anchorCell.nodeAfter,o=r.$anchorCell.pos}else{var s;if(i=H8e(r.$from),!i)return!1;o=(s=Xf(r.$from))===null||s===void 0?void 0:s.pos}if(i==null||o==null||i.attrs.colspan==1&&i.attrs.rowspan==1)return!1;if(n){let a=i.attrs;const l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const u=el(e),d=e.tr;for(let h=0;h<u.right-u.left;h++)l.push(c?{...a,colwidth:c&&c[h]?[c[h]]:null}:a);let f;for(let h=u.top;h<u.bottom;h++){let p=u.map.positionAt(h,u.left,u.table);h==u.top&&(p+=i.nodeSize);for(let m=u.left,g=0;m<u.right;m++,g++)m==u.left&&h==u.top||d.insert(f=d.mapping.map(p+u.tableStart,1),t({node:i,row:h,col:m}).createAndFill(l[g]))}d.setNodeMarkup(o,t({node:i,row:u.top,col:u.left}),l[0]),r instanceof Dn&&d.setSelection(new Dn(d.doc.resolve(r.$anchorCell.pos),f?d.doc.resolve(f):void 0)),n(d)}return!0}}function Ttt(t,e){return function(n,r){if(!ia(n))return!1;const i=yC(n);if(i.nodeAfter.attrs[t]===e)return!1;if(r){const o=n.tr;n.selection instanceof Dn?n.selection.forEachCell((s,a)=>{s.attrs[t]!==e&&o.setNodeMarkup(a,null,{...s.attrs,[t]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[t]:e}),r(o)}return!0}}function sLe(t){return function(e,n){if(!ia(e))return!1;if(n){const r=wi(e.schema),i=el(e),o=e.tr,s=i.map.cellsInRect(t=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:t=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length===0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);n(o)}return!0}}function oB(t,e,n){const r=e.map.cellsInRect({left:0,top:0,right:t=="row"?e.map.width:1,bottom:t=="column"?e.map.height:1});for(let i=0;i<r.length;i++){const o=e.table.nodeAt(r[i]);if(o&&o.type!==n.header_cell)return!1}return!0}function ZO(t,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?sLe(t):function(n,r){if(!ia(n))return!1;if(r){const i=wi(n.schema),o=el(n),s=n.tr,a=oB("row",o,i),l=oB("column",o,i),c=(t==="column"?a:t==="row"&&l)?1:0,u=t=="column"?{left:0,top:c,right:1,bottom:o.map.height}:t=="row"?{left:c,top:0,right:o.map.width,bottom:1}:o,d=t=="column"?l?i.cell:i.header_cell:t=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(u).forEach(f=>{const h=f+o.tableStart,p=s.doc.nodeAt(h);p&&s.setNodeMarkup(h,d,p.attrs)}),r(s)}return!0}}ZO("row",{useDeprecatedLogic:!0});ZO("column",{useDeprecatedLogic:!0});const Ctt=ZO("cell",{useDeprecatedLogic:!0});function aLe(t,e){if(e<0){const n=t.nodeBefore;if(n)return t.pos-n.nodeSize;for(let r=t.index(-1)-1,i=t.before();r>=0;r--){const o=t.node(-1).child(r),s=o.lastChild;if(s)return i-1-s.nodeSize;i-=o.nodeSize}}else{if(t.index()<t.parent.childCount-1)return t.pos+t.nodeAfter.nodeSize;const n=t.node(-1);for(let r=t.indexAfter(-1),i=t.after();r<n.childCount;r++){const o=n.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function _tt(t){return function(e,n){if(!ia(e))return!1;const r=aLe(yC(e),t);if(r==null)return!1;if(n){const i=e.doc.resolve(r);n(e.tr.setSelection(mt.between(i,q8e(i))).scrollIntoView())}return!0}}function Att(t,e){const n=t.selection.$anchor;for(let r=n.depth;r>0;r--)if(n.node(r).type.spec.tableRole=="table")return e&&e(t.tr.delete(n.before(r),n.after(r)).scrollIntoView()),!0;return!1}function S2(t,e){const n=t.selection;if(!(n instanceof Dn))return!1;if(e){const r=t.tr,i=wi(t.schema).cell.createAndFill().content;n.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new We(i,0,0))}),r.docChanged&&e(r)}return!0}function lLe(t){if(t.size===0)return null;let{content:e,openStart:n,openEnd:r}=t;for(;e.childCount==1&&(n>0&&r>0||e.child(0).type.spec.tableRole=="table");)n--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if(o=="row")for(let l=0;l<e.childCount;l++){let c=e.child(l).content;const u=l?0:Math.max(0,n-1),d=l<e.childCount-1?0:Math.max(0,r-1);(u||d)&&(c=F4(wi(s).row,new We(c,u,d)).content),a.push(c)}else if(o=="cell"||o=="header_cell")a.push(n||r?F4(wi(s).row,new We(e,n,r)).content:e);else return null;return cLe(s,a)}function cLe(t,e){const n=[];for(let i=0;i<e.length;i++){const o=e[i];for(let s=o.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=i;c<i+a;c++)n[c]=(n[c]||0)+l}}let r=0;for(let i=0;i<n.length;i++)r=Math.max(r,n[i]);for(let i=0;i<n.length;i++)if(i>=e.length&&e.push(Ce.empty),n[i]<r){const o=wi(t).cell.createAndFill(),s=[];for(let a=n[i];a<r;a++)s.push(o);e[i]=e[i].append(Ce.from(s))}return{height:e.length,width:r,rows:e}}function F4(t,e){const n=t.createAndFill();return new hO(n).replace(0,n.content.size,e).doc}function uLe({width:t,height:e,rows:n},r,i){if(t!=r){const o=[],s=[];for(let a=0;a<n.length;a++){const l=n[a],c=[];for(let u=o[a]||0,d=0;u<r;d++){let f=l.child(d%l.childCount);u+f.attrs.colspan>r&&(f=f.type.createChecked(Qf(f.attrs,f.attrs.colspan,u+f.attrs.colspan-r),f.content)),c.push(f),u+=f.attrs.colspan;for(let h=1;h<f.attrs.rowspan;h++)o[a+h]=(o[a+h]||0)+f.attrs.colspan}s.push(Ce.from(c))}n=s,t=r}if(e!=i){const o=[];for(let s=0,a=0;s<i;s++,a++){const l=[],c=n[a%e];for(let u=0;u<c.childCount;u++){let d=c.child(u);s+d.attrs.rowspan>i&&(d=d.type.create({...d.attrs,rowspan:Math.max(1,i-d.attrs.rowspan)},d.content)),l.push(d)}o.push(Ce.from(l))}n=o,e=i}return{width:t,height:e,rows:n}}function dLe(t,e,n,r,i,o,s){const a=t.doc.type.schema,l=wi(a);let c,u;if(i>e.width)for(let d=0,f=0;d<e.height;d++){const h=n.child(d);f+=h.nodeSize;const p=[];let m;h.lastChild==null||h.lastChild.type==l.cell?m=c||(c=l.cell.createAndFill()):m=u||(u=l.header_cell.createAndFill());for(let g=e.width;g<i;g++)p.push(m);t.insert(t.mapping.slice(s).map(f-1+r),p)}if(o>e.height){const d=[];for(let p=0,m=(e.height-1)*e.width;p<Math.max(e.width,i);p++){const g=p>=e.width?!1:n.nodeAt(e.map[m+p]).type==l.header_cell;d.push(g?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const f=l.row.create(null,Ce.from(d)),h=[];for(let p=e.height;p<o;p++)h.push(f);t.insert(t.mapping.slice(s).map(r+n.nodeSize-2),h)}return!!(c||u)}function sB(t,e,n,r,i,o,s,a){if(s==0||s==e.height)return!1;let l=!1;for(let c=i;c<o;c++){const u=s*e.width+c,d=e.map[u];if(e.map[u-e.width]==d){l=!0;const f=n.nodeAt(d),{top:h,left:p}=e.findCell(d);t.setNodeMarkup(t.mapping.slice(a).map(d+r),null,{...f.attrs,rowspan:s-h}),t.insert(t.mapping.slice(a).map(e.positionAt(s,p,n)),f.type.createAndFill({...f.attrs,rowspan:h+f.attrs.rowspan-s})),c+=f.attrs.colspan-1}}return l}function aB(t,e,n,r,i,o,s,a){if(s==0||s==e.width)return!1;let l=!1;for(let c=i;c<o;c++){const u=c*e.width+s,d=e.map[u];if(e.map[u-1]==d){l=!0;const f=n.nodeAt(d),h=e.colCount(d),p=t.mapping.slice(a).map(d+r);t.setNodeMarkup(p,null,Qf(f.attrs,s-h,f.attrs.colspan-(s-h))),t.insert(p+f.nodeSize,f.type.createAndFill(Qf(f.attrs,0,s-h))),c+=f.attrs.rowspan-1}}return l}function lB(t,e,n,r,i){let o=n?t.doc.nodeAt(n-1):t.doc;if(!o)throw new Error("No table found");let s=sr.get(o);const{top:a,left:l}=r,c=l+i.width,u=a+i.height,d=t.tr;let f=0;function h(){if(o=n?d.doc.nodeAt(n-1):d.doc,!o)throw new Error("No table found");s=sr.get(o),f=d.mapping.maps.length}dLe(d,s,o,n,c,u,f)&&h(),sB(d,s,o,n,l,c,a,f)&&h(),sB(d,s,o,n,l,c,u,f)&&h(),aB(d,s,o,n,a,u,l,f)&&h(),aB(d,s,o,n,a,u,c,f)&&h();for(let p=a;p<u;p++){const m=s.positionAt(p,l,o),g=s.positionAt(p,c,o);d.replace(d.mapping.slice(f).map(m+n),d.mapping.slice(f).map(g+n),new We(i.rows[p-a],0,0))}h(),d.setSelection(new Dn(d.doc.resolve(n+s.positionAt(a,l,o)),d.doc.resolve(n+s.positionAt(u-1,c-1,o)))),e(d)}const fLe=BJ({ArrowLeft:x2("horiz",-1),ArrowRight:x2("horiz",1),ArrowUp:x2("vert",-1),ArrowDown:x2("vert",1),"Shift-ArrowLeft":E2("horiz",-1),"Shift-ArrowRight":E2("horiz",1),"Shift-ArrowUp":E2("vert",-1),"Shift-ArrowDown":E2("vert",1),Backspace:S2,"Mod-Backspace":S2,Delete:S2,"Mod-Delete":S2});function xw(t,e,n){return n.eq(t.selection)?!1:(e&&e(t.tr.setSelection(n).scrollIntoView()),!0)}function x2(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;if(o instanceof Dn)return xw(n,r,vt.near(o.$headCell,e));if(t!="horiz"&&!o.empty)return!1;const s=uee(i,t,e);if(s==null)return!1;if(t=="horiz")return xw(n,r,vt.near(n.doc.resolve(o.head+e),e));{const a=n.doc.resolve(s),l=iee(a,t,e);let c;return l?c=vt.near(l,1):e<0?c=vt.near(n.doc.resolve(a.before(-1)),-1):c=vt.near(n.doc.resolve(a.after(-1)),1),xw(n,r,c)}}}function E2(t,e){return(n,r,i)=>{if(!i)return!1;const o=n.selection;let s;if(o instanceof Dn)s=o;else{const l=uee(i,t,e);if(l==null)return!1;s=new Dn(n.doc.resolve(l))}const a=iee(s.$headCell,t,e);return a?xw(n,r,new Dn(s.$anchorCell,a)):!1}}function hLe(t,e){const n=t.state.doc,r=Xf(n.resolve(e));return r?(t.dispatch(t.state.tr.setSelection(new Dn(r))),!0):!1}function pLe(t,e,n){if(!ia(t.state))return!1;let r=lLe(n);const i=t.state.selection;if(i instanceof Dn){r||(r={width:1,height:1,rows:[Ce.from(F4(wi(t.state.schema).cell,n))]});const o=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),a=sr.get(o).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return r=uLe(r,a.right-a.left,a.bottom-a.top),lB(t.state,t.dispatch,s,a,r),!0}else if(r){const o=yC(t.state),s=o.start(-1);return lB(t.state,t.dispatch,s,sr.get(o.node(-1)).findCell(o.pos-s),r),!0}else return!1}function mLe(t,e){var n;if(e.button!=0||e.ctrlKey||e.metaKey)return;const r=cB(t,e.target);let i;if(e.shiftKey&&t.state.selection instanceof Dn)o(t.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=Xf(t.state.selection.$anchor))!=null&&((n=dI(t,e))===null||n===void 0?void 0:n.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=dI(t,c);const d=qc.getState(t.state)==null;if(!u||!JO(l,u))if(d)u=l;else return;const f=new Dn(l,u);if(d||!t.state.selection.eq(f)){const h=t.state.tr.setSelection(f);d&&h.setMeta(qc,l.pos),t.dispatch(h)}}function s(){t.root.removeEventListener("mouseup",s),t.root.removeEventListener("dragstart",s),t.root.removeEventListener("mousemove",a),qc.getState(t.state)!=null&&t.dispatch(t.state.tr.setMeta(qc,-1))}function a(l){const c=l,u=qc.getState(t.state);let d;if(u!=null)d=t.state.doc.resolve(u);else if(cB(t,c.target)!=r&&(d=dI(t,e),!d))return s();d&&o(d,c)}t.root.addEventListener("mouseup",s),t.root.addEventListener("dragstart",s),t.root.addEventListener("mousemove",a)}function uee(t,e,n){if(!(t.state.selection instanceof mt))return null;const{$head:r}=t.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const s=r.before(i),a=e=="vert"?n>0?"down":"up":n>0?"right":"left";return t.endOfTextblock(a)?s:null}}return null}function cB(t,e){for(;e&&e!=t.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function dI(t,e){const n=t.posAtCoords({left:e.clientX,top:e.clientY});if(!n)return null;let{inside:r,pos:i}=n;return r>=0&&Xf(t.state.doc.resolve(r))||Xf(t.state.doc.resolve(i))}var gLe=class{constructor(t,e){this.node=t,this.defaultCellMinWidth=e,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${e}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),j4(t,this.colgroup,this.table,e),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(t){return t.type!=this.node.type?!1:(this.node=t,j4(t,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(t){return t.type=="attributes"&&(t.target==this.table||this.colgroup.contains(t.target))}};function j4(t,e,n,r,i,o){let s=0,a=!0,l=e.firstChild;const c=t.firstChild;if(c){for(let d=0,f=0;d<c.childCount;d++){const{colspan:h,colwidth:p}=c.child(d).attrs;for(let m=0;m<h;m++,f++){const g=i==f?o:p&&p[m],y=g?g+"px":"";if(s+=g||r,g||(a=!1),l)l.style.width!=y&&(l.style.width=y),l=l.nextSibling;else{const b=document.createElement("col");b.style.width=y,e.appendChild(b)}}}for(;l;){var u;const d=l.nextSibling;(u=l.parentNode)===null||u===void 0||u.removeChild(l),l=d}a?(n.style.width=s+"px",n.style.minWidth=""):(n.style.width="",n.style.minWidth=s+"px")}}const xo=new lo("tableColumnResizing");function Itt({handleWidth:t=5,cellMinWidth:e=25,defaultCellMinWidth:n=100,View:r=gLe,lastColumnResizable:i=!0}={}){const o=new Li({key:xo,state:{init(s,a){var l;const c=(l=o.spec)===null||l===void 0||(l=l.props)===null||l===void 0?void 0:l.nodeViews,u=wi(a.schema).table.name;return r&&c&&(c[u]=(d,f)=>new r(d,n,f)),new yLe(-1,!1)},apply(s,a){return a.apply(s)}},props:{attributes:s=>{const a=xo.getState(s);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,a)=>{vLe(s,a,t,i)},mouseleave:s=>{bLe(s)},mousedown:(s,a)=>{wLe(s,a,e,n)}},decorations:s=>{const a=xo.getState(s);if(a&&a.activeHandle>-1)return CLe(s,a.activeHandle)},nodeViews:{}}});return o}var yLe=class Ew{constructor(e,n){this.activeHandle=e,this.dragging=n}apply(e){const n=this,r=e.getMeta(xo);if(r&&r.setHandle!=null)return new Ew(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new Ew(n.activeHandle,r.setDragging);if(n.activeHandle>-1&&e.docChanged){let i=e.mapping.map(n.activeHandle,-1);return $4(e.doc.resolve(i))||(i=-1),new Ew(i,n.dragging)}return n}};function vLe(t,e,n,r){if(!t.editable)return;const i=xo.getState(t.state);if(i&&!i.dragging){const o=xLe(e.target);let s=-1;if(o){const{left:a,right:l}=o.getBoundingClientRect();e.clientX-a<=n?s=uB(t,e,"left",n):l-e.clientX<=n&&(s=uB(t,e,"right",n))}if(s!=i.activeHandle){if(!r&&s!==-1){const a=t.state.doc.resolve(s),l=a.node(-1),c=sr.get(l),u=a.start(-1);if(c.colCount(a.pos-u)+a.nodeAfter.attrs.colspan-1==c.width-1)return}dee(t,s)}}}function bLe(t){if(!t.editable)return;const e=xo.getState(t.state);e&&e.activeHandle>-1&&!e.dragging&&dee(t,-1)}function wLe(t,e,n,r){var i;if(!t.editable)return!1;const o=(i=t.dom.ownerDocument.defaultView)!==null&&i!==void 0?i:window,s=xo.getState(t.state);if(!s||s.activeHandle==-1||s.dragging)return!1;const a=t.state.doc.nodeAt(s.activeHandle),l=SLe(t,s.activeHandle,a.attrs);t.dispatch(t.state.tr.setMeta(xo,{setDragging:{startX:e.clientX,startWidth:l}}));function c(d){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const f=xo.getState(t.state);f!=null&&f.dragging&&(ELe(t,f.activeHandle,dB(f.dragging,d,n)),t.dispatch(t.state.tr.setMeta(xo,{setDragging:null})))}function u(d){if(!d.which)return c(d);const f=xo.getState(t.state);if(f&&f.dragging){const h=dB(f.dragging,d,n);fB(t,f.activeHandle,h,r)}}return fB(t,s.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),e.preventDefault(),!0}function SLe(t,e,{colspan:n,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=t.domAtPos(e);let s=o.node.childNodes[o.offset].offsetWidth,a=n;if(r)for(let l=0;l<n;l++)r[l]&&(s-=r[l],a--);return s/a}function xLe(t){for(;t&&t.nodeName!="TD"&&t.nodeName!="TH";)t=t.classList&&t.classList.contains("ProseMirror")?null:t.parentNode;return t}function uB(t,e,n,r){const i=n=="right"?-r:r,o=t.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;const{pos:s}=o,a=Xf(t.state.doc.resolve(s));if(!a)return-1;if(n=="right")return a.pos;const l=sr.get(a.node(-1)),c=a.start(-1),u=l.map.indexOf(a.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function dB(t,e,n){const r=e.clientX-t.startX;return Math.max(n,t.startWidth+r)}function dee(t,e){t.dispatch(t.state.tr.setMeta(xo,{setHandle:e}))}function ELe(t,e,n){const r=t.state.doc.resolve(e),i=r.node(-1),o=sr.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=t.state.tr;for(let c=0;c<o.height;c++){const u=c*o.width+a;if(c&&o.map[u]==o.map[u-o.width])continue;const d=o.map[u],f=i.nodeAt(d).attrs,h=f.colspan==1?0:a-o.colCount(d);if(f.colwidth&&f.colwidth[h]==n)continue;const p=f.colwidth?f.colwidth.slice():TLe(f.colspan);p[h]=n,l.setNodeMarkup(s+d,null,{...f,colwidth:p})}l.docChanged&&t.dispatch(l)}function fB(t,e,n,r){const i=t.state.doc.resolve(e),o=i.node(-1),s=i.start(-1),a=sr.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;let l=t.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&j4(o,l.firstChild,l,r,a,n)}function TLe(t){return Array(t).fill(0)}function CLe(t,e){const n=[],r=t.doc.resolve(e),i=r.node(-1);if(!i)return dr.empty;const o=sr.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1;for(let c=0;c<o.height;c++){const u=a+c*o.width;if((a==o.width-1||o.map[u]!=o.map[u+1])&&(c==0||o.map[u]!=o.map[u-o.width])){var l;const d=o.map[u],f=s+d+i.nodeAt(d).nodeSize-1,h=document.createElement("div");h.className="column-resize-handle",!((l=xo.getState(t))===null||l===void 0)&&l.dragging&&n.push(Qi.node(s+d,s+d+i.nodeAt(d).nodeSize,{class:"column-resize-dragging"})),n.push(Qi.widget(f,h))}}return dr.create(t.doc,n)}function Rtt({allowTableNodeSelection:t=!1}={}){return new Li({key:qc,state:{init(){return null},apply(e,n){const r=e.getMeta(qc);if(r!=null)return r==-1?null:r;if(n==null||!e.docChanged)return n;const{deleted:i,pos:o}=e.mapping.mapResult(n);return i?null:o}},props:{decorations:K8e,handleDOMEvents:{mousedown:mLe},createSelectionBetween(e){return qc.getState(e.state)!=null?e.state.selection:null},handleTripleClick:hLe,handleKeyDown:fLe,handlePaste:pLe}
5073,appendTransaction(e,n,r){return Q8e(r,Z8e(r,n),t)}})}const eN=parseInt(E.version,10),Mtt=t=>{if(eN>=19){const e=n=>t(n,n.ref??null);return e.displayName=t.displayName??t.name,e}return E.forwardRef(t)},_Le=new TextEncoder;let Tw=2*1024,Ny=new ArrayBuffer(Tw),fI=new Uint8Array(Ny),_d=new Int32Array(Ny);const ktt=ALe;function ALe(t){const e=t.length*2;e>Tw&&(Tw=e+(4-e%4),Ny=new ArrayBuffer(Tw),fI=new Uint8Array(Ny),_d=new Int32Array(Ny));const n=_Le.encodeInto(t,fI).written,r=0,i=n|0;let o=0,s=(r+i|0)+374761393|0;if(i<16)for(;(o+3|0)<i;o=o+4|0)s=Math.imul(ks(s+Math.imul(_d[o]|0,3266489917)|0,17)|0,668265263);else{let a=r+606290984|0,l=r+2246822519|0,c=r,u=r-2654435761|0;for(;(o+15|0)<i;o=o+16|0)a=Math.imul(ks(a+Math.imul(_d[o+0|0]|0,2246822519)|0,13)|0,2654435761),l=Math.imul(ks(l+Math.imul(_d[o+4|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(ks(c+Math.imul(_d[o+8|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(ks(u+Math.imul(_d[o+12|0]|0,2246822519)|0,13)|0,2654435761);for(s=(((ks(a,1)|0+ks(l,7)|0)+ks(c,12)|0)+ks(u,18)|0)+i|0;(o+3|0)<i;o=o+4|0)s=Math.imul(ks(s+Math.imul(_d[o]|0,3266489917)|0,17)|0,668265263)}for(;o<i;o=o+1|0)s=Math.imul(ks(s+Math.imul(fI[o]|0,374761393)|0,11)|0,2654435761);return s=Math.imul(s^s>>>15,2246822519),s=Math.imul(s^s>>>13,3266489917),((s^s>>>16)>>>0).toString()}function ks(t,e){return t<<e|t>>>32-e}const ILe=Object.is;function RLe(t,e){if(t===e)return!0;if(!(t instanceof Object)||!(e instanceof Object))return!1;let n=0,r=0;for(const i in t)if(n+=1,!ILe(t[i],e[i])||!(i in e))return!1;for(const i in e)r+=1;return n===r}var wx=Symbol("NOT_FOUND");function MLe(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function kLe(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function PLe(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(n=>typeof n=="function")){const n=t.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${e}[${n}]`)}}var hB=t=>Array.isArray(t)?t:[t];function OLe(t){const e=Array.isArray(t[0])?t[0]:t;return PLe(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function NLe(t,e){const n=[],{length:r}=t;for(let i=0;i<r;i++)n.push(t[i].apply(null,e));return n}function DLe(t){let e;return{get(n){return e&&t(e.key,n)?e.value:wx},put(n,r){e={key:n,value:r}},getEntries(){return e?[e]:[]},clear(){e=void 0}}}function LLe(t,e){let n=[];function r(a){const l=n.findIndex(c=>e(a,c.key));if(l>-1){const c=n[l];return l>0&&(n.splice(l,1),n.unshift(c)),c.value}return wx}function i(a,l){r(a)===wx&&(n.unshift({key:a,value:l}),n.length>t&&n.pop())}function o(){return n}function s(){n=[]}return{get:r,put:i,getEntries:o,clear:s}}var zLe=(t,e)=>t===e;function VLe(t){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:i}=n;for(let o=0;o<i;o++)if(!t(n[o],r[o]))return!1;return!0}}function BLe(t,e){const n=typeof e=="object"?e:{equalityCheck:e},{equalityCheck:r=zLe,maxSize:i=1,resultEqualityCheck:o}=n,s=VLe(r);let a=0;const l=i<=1?DLe(s):LLe(i,s);function c(){let u=l.get(arguments);if(u===wx){if(u=t.apply(null,arguments),a++,o){const f=l.getEntries().find(h=>o(h.value,u));f&&(u=f.value,a!==0&&a--)}l.put(arguments,u)}return u}return c.clearCache=()=>{l.clear(),c.resetResultsCount()},c.resultsCount=()=>a,c.resetResultsCount=()=>{a=0},c}var $Le=class{constructor(t){this.value=t}deref(){return this.value}},FLe=typeof WeakRef<"u"?WeakRef:$Le,jLe=0,pB=1;function T2(){return{s:jLe,v:void 0,o:null,p:null}}function fee(t,e={}){let n=T2();const{resultEqualityCheck:r}=e;let i,o=0;function s(){var d;let a=n;const{length:l}=arguments;for(let f=0,h=l;f<h;f++){const p=arguments[f];if(typeof p=="function"||typeof p=="object"&&p!==null){let m=a.o;m===null&&(a.o=m=new WeakMap);const g=m.get(p);g===void 0?(a=T2(),m.set(p,a)):a=g}else{let m=a.p;m===null&&(a.p=m=new Map);const g=m.get(p);g===void 0?(a=T2(),m.set(p,a)):a=g}}const c=a;let u;
vendor: 2,566 bytes, line 5073
5073if(a.s===pB)u=a.v;else if(u=t.apply(null,arguments),o++,r){const f=((d=i==null?void 0:i.deref)==null?void 0:d.call(i))??i;f!=null&&r(f,u)&&(u=f,o!==0&&o--),i=typeof u=="object"&&u!==null||typeof u=="function"?new FLe(u):u}return c.s=pB,c.v=u,u}return s.clearCache=()=>{n=T2(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function hee(t,...e){const n=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,r=(...i)=>{let o=0,s=0,a,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),MLe(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...n,...l},{memoize:d,memoizeOptions:f=[],argsMemoize:h=fee,argsMemoizeOptions:p=[]}=u,m=hB(f),g=hB(p),y=OLe(i),b=d(function(){return o++,c.apply(null,arguments)},...m),v=h(function(){s++;const I=NLe(y,arguments);return a=b.apply(null,I),a},...g);return Object.assign(v,{resultFunc:c,memoizedResultFunc:b,dependencies:y,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>a,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:d,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var HLe=hee(fee),ULe=Object.assign((t,e=HLe)=>{kLe(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const n=Object.keys(t),r=n.map(o=>t[o]);return e(r,(...o)=>o.reduce((s,a,l)=>(s[n[l]]=a,s),{}))},{withTypes:()=>ULe});const qLe=hee({memoize:BLe,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),Ic=(t,e,n,r,i,o,s,a,...l)=>{if(l.length>0)throw new Error("Unsupported number of selectors");let c;if(t&&e&&n&&r&&i&&o&&s&&a)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h),g=n(u,d,f,h),y=r(u,d,f,h),b=i(u,d,f,h),v=o(u,d,f,h),S=s(u,d,f,h);return a(p,m,g,y,b,v,S,d,f,h)};else if(t&&e&&n&&r&&i&&o&&s)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h),g=n(u,d,f,h),y=r(u,d,f,h),b=i(u,d,f,h),v=o(u,d,f,h);return s(p,m,g,y,b,v,d,f,h)};else if(t&&e&&n&&r&&i&&o)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h),g=n(u,d,f,h),y=r(u,d,f,h),b=i(u,d,f,h);return o(p,m,g,y,b,d,f,h)};else if(t&&e&&n&&r&&i)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h),g=n(u,d,f,h),y=r(u,d,f,h);return i(p,m,g,y,d,f,h)};else if(t&&e&&n&&r)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h),g=n(u,d,f,h);return r(p,m,g,d,f,h)};else if(t&&e&&n)c=(u,d,f,h)=>{const p=t(u,d,f,h),m=e(u,d,f,h);return n(p,m,d,f,h)};else if(t&&e)c=(u,d,f,h)=>{const p=t(u,d,f,h);return e(p,d,f,h)};else if(t)c=t;else throw new Error("Missing arguments");return c},WLe=t=>(...e)=>{const n=new WeakMap;let r=1;
5073const i=e[e.length-1],o=e.length-1||1,s=Math.max(i.length-o,0);if(s>3)throw new Error("Unsupported number of arguments");return(l,c,u,d)=>{let f=l.__cacheKey__;f||(f={id:r},l.__cacheKey__=f,r+=1);let h=n.get(f);if(!h){const p=e.length===1?[y=>y,i]:e;let m=e;const g=[void 0,void 0,void 0];switch(s){case 0:break;case 1:{m=[...p.slice(0,-1),()=>g[0],i];break}case 2:{m=[...p.slice(0,-1),()=>g[0],()=>g[1],i];break}case 3:{m=[...p.slice(0,-1),()=>g[0],()=>g[1],()=>g[2],i];break}default:throw new Error("Unsupported number of arguments")}h=qLe(...m),h.selectorArgs=g,n.set(f,h)}switch(s){case 3:h.selectorArgs[2]=d;case 2:h.selectorArgs[1]=u;case 1:h.selectorArgs[0]=c}switch(s){case 0:return h(l);case 1:return h(l,c);case 2:return h(l,c,u);case 3:return h(l,c,u,d);default:throw new Error("unreachable")}}},Ns=WLe(),GLe=eN>=19,KLe=GLe?YLe:XLe;function wp(t,e,n,r,i){return KLe(t,e,n,r,i)}function YLe(t,e,n,r,i){const o=E.useCallback(()=>e(t.getSnapshot(),n,r,i),[t,e,n,r,i]);return KT.useSyncExternalStore(t.subscribe,o,o)}function XLe(t,e,n,r,i){return BO.useSyncExternalStoreWithSelector(t.subscribe,t.getSnapshot,t.getSnapshot,o=>e(o,n,r,i))}const QLe=()=>{};function mB(t,e,n){const r=wg(JLe,{store:t,selector:e}).current;r.effect=n,iY(r.onMount)}function JLe(t){const{store:e,selector:n}=t;let r=n(e.state);const i={effect:QLe,dispose:null,subscribe:()=>{i.dispose??(i.dispose=e.subscribe(o=>{const s=n(o);if(!Object.is(r,s)){const a=r;r=s,i.effect(a,s)}}))},onMount:()=>(i.subscribe(),()=>{var o;(o=i.dispose)==null||o.call(i),i.dispose=null})};return i.subscribe(),i}class tN{constructor(e){fi(this,"subscribe",e=>(this.listeners.add(e),()=>{this.listeners.delete(e)}));fi(this,"getSnapshot",()=>this.state);fi(this,"use",(e,n,r,i)=>wp(this,e,n,r,i));this.state=e,this.listeners=new Set,this.updateTick=0}static create(e){return new tN(e)}setState(e){this.state=e,this.updateTick+=1;const n=this.updateTick,r=this.listeners.values();let i;for(;i=r.next(),!i.done;){if(n!==this.updateTick)return;const o=i.value;o(e)}}update(e){for(const n in e)if(!Object.is(this.state[n],e[n])){this.setState(Er({},this.state,e));return}}set(e,n){Object.is(this.state[e],n)||this.setState(Er({},this.state,{[e]:n}))}}function Ptt(t){return E.memo(t,RLe)}function Ott(t){for(const e in t)return!1;return!0}const ZLe=()=>{},e7e=(t,e)=>{const n=E.useRef(!1);An(()=>n.current||!t?ZLe:(n.current=!0,e()),[n.current||t])};function Ntt(t){const e=E.useRef(!0);e.current&&(e.current=!1,t())}const t7e={},n7e={initialize:r7e,use:i7e,selectors:t7e};function r7e(t){return{colspanMap:new Map}}function i7e(t,e,n){var a;const r=(a=e.colspan)==null?void 0:a.getColspan,i=()=>{t.state.colspanMap=new Map},o=(l,c)=>{var u;return(u=t.state.colspanMap.get(l))==null?void 0:u[c]},s=jt(r?(l,c,u,d)=>{for(let f=c;f<u;f+=1){const h=o7e(t.state.colspanMap,f,l,c,u,d,r);h.colSpan>1&&(f+=h.colSpan-1)}}:()=>{});return n.calculateColSpan=s,{resetColSpan:i,getCellColSpanInfo:o,calculateColSpan:s}}function o7e(t,e,n,r,i,o,s){const a=o.length,l=o[e],c=s(n,l,e);if(!c||c===1)return hI(t,n,e,{spannedByColSpan:!1,cellProps:{colSpan:1,width:l.computedWidth}}),{colSpan:1};let u=l.computedWidth;for(let d=1;d<c;d+=1){const f=e+d;if(f>=r&&f<i){const h=o[f];u+=h.computedWidth,hI(t,n,e+d,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(e+c,a-1),leftVisibleCellIndex:e})}hI(t,n,e,{spannedByColSpan:!1,cellProps:{colSpan:c,width:u}})}return{colSpan:c}}function hI(t,e,n,r){let i=t.get(e);i||(i={},t.set(e,i)),i[n]=r}function s7e(t,e=166){let n,r;const i=()=>{n=void 0,t(...r)};function o(...s){r=s,n===void 0&&(n=setTimeout(i,e))}return o.clear=()=>{clearTimeout(n),n=void 0},o}function Cw(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;if(Array.isArray(t)){const i=t.length;if(i!==e.length)return!1;for(let o=0;o<i;o+=1)if(!Cw(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;const i=Array.from(t.entries());for(let o=0;o<i.length;o+=1)if(!e.has(i[o][0]))return!1;for(let o=0;o<i.length;o+=1){const s=i[o];if(!Cw(s[1],e.get(s[0])))return!1}return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;const i=Array.from(t.entries());for(let o=0;o<i.length;o+=1)if(!e.has(i[o][0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(e)){const i=t.length;if(i!==e.length)return!1;for(let o=0;o<i;o+=1)if(t[o]!==e[o])return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===e.toString();const n=Object.keys(t),r=n.length;if(r!==Object.keys(e).length)return!1;for(let i=0;i<r;i+=1)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(let i=0;i<r;i+=1){const o=n[i];if(!Cw(t[o],e[o]))return!1}return!0}return t!==t&&e!==e}function V1(t,e){return Math.round(t*10**e)/10**e}const _l={EMPTY:{width:0,height:0},equals:(t,e)=>t.width===e.width&&t.height===e.height},a7e={EMPTY:{top:[],bottom:[]}}
5073,l7e={EMPTY:{left:[],right:[]}},c7e={EMPTY:{top:0,left:0}};let Xn=function(t){return t[t.NONE=0]="NONE",t[t.UP=1]="UP",t[t.DOWN=2]="DOWN",t[t.LEFT=3]="LEFT",t[t.RIGHT=4]="RIGHT",t}({});(function(t){function e(n,r){return n===0&&r===0?Xn.NONE:Math.abs(r)>=Math.abs(n)?r>0?Xn.DOWN:Xn.UP:n>0?Xn.RIGHT:Xn.LEFT}t.forDelta=e})(Xn||(Xn={}));const u7e={isReady:!1,root:_l.EMPTY,viewportOuterSize:_l.EMPTY,viewportInnerSize:_l.EMPTY,contentSize:_l.EMPTY,minimumSize:_l.EMPTY,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topContainerHeight:0,bottomContainerHeight:0,autoHeight:!1,minimalContentHeight:void 0},Gp={rootSize:t=>t.rootSize,dimensions:t=>t.dimensions,rowHeight:t=>t.dimensions.rowHeight,columnsTotalWidth:t=>t.dimensions.columnsTotalWidth,contentHeight:t=>t.dimensions.contentSize.height,autoHeight:t=>t.dimensions.autoHeight,minimalContentHeight:t=>t.dimensions.minimalContentHeight,rowsMeta:t=>t.rowsMeta,rowPositions:t=>t.rowsMeta.positions,columnPositions:Ns((t,e)=>{const n=[];let r=0;for(let i=0;i<e.length;i+=1)n.push(r),r+=e[i].computedWidth;return n}),needsHorizontalScrollbar:t=>t.dimensions.viewportOuterSize.width>0&&t.dimensions.columnsTotalWidth>t.dimensions.viewportOuterSize.width},ir={initialize:d7e,use:f7e,selectors:Gp};function d7e(t){const e=Er({},u7e,t.dimensions,{autoHeight:t.dimensions.autoHeight,minimalContentHeight:t.dimensions.minimalContentHeight}),{rowCount:n}=t,{rowHeight:r}=e,i={currentPageTotalHeight:n*r,positions:Array.from({length:n},(s,a)=>a*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0},o=new Map;return{rootSize:_l.EMPTY,dimensions:e,rowsMeta:i,rowHeights:o}}function f7e(t,e,n){const r=E.useRef(!0),{layout:i,dimensions:{rowHeight:o,columnsTotalWidth:s,leftPinnedWidth:a,rightPinnedWidth:l,topPinnedHeight:c,bottomPinnedHeight:u},onResize:d}=e,f=E.useCallback(y=>{if(y&&(r.current=!1),r.current)return;const b=i.refs.container.current,v=Gp.rootSize(t.state),S=Gp.rowsMeta(t.state),I=m7e(b,e.dimensions.scrollbarSize),O=c+S.pinnedTopRowsTotalHeight,T=u+S.pinnedBottomRowsTotalHeight,A={width:s,height:V1(S.currentPageTotalHeight,1)};let R,k,P=!1,C=!1;if(e.dimensions.autoHeight)C=!1,P=Math.round(s)>Math.round(v.width),R={width:v.width,height:O+T+A.height},k={width:Math.max(0,R.width-(C?I:0)),height:Math.max(0,R.height-(P?I:0))};else{R={width:v.width,height:v.height},k={width:Math.max(0,R.width),height:Math.max(0,R.height-O-T)};const z=A,L=k,B=z.width>L.width,j=z.height>L.height;(B||j)&&(C=j,P=z.width+(C?I:0)>L.width,P&&(C=z.height+I>L.height)),C&&(k.width-=I),P&&(k.height-=I)}e.disableHorizontalScroll&&(P=!1),e.disableVerticalScroll&&(C=!1);const _=Math.max(R.width,s+(C?I:0)),M={width:s,height:O+A.height+T},V={isReady:!0,root:v,viewportOuterSize:R,viewportInnerSize:k,contentSize:A,minimumSize:M,hasScrollX:P,hasScrollY:C,scrollbarSize:I,rowWidth:_,rowHeight:o,columnsTotalWidth:s,leftPinnedWidth:a,rightPinnedWidth:l,topContainerHeight:O,bottomContainerHeight:T,autoHeight:e.dimensions.autoHeight,minimalContentHeight:e.dimensions.minimalContentHeight},N=t.state.dimensions;Cw(N,V)||(t.update({dimensions:V}),d==null||d(V.root))},[t,i.refs.container,e.dimensions.scrollbarSize,e.dimensions.autoHeight,e.dimensions.minimalContentHeight,e.disableHorizontalScroll,e.disableVerticalScroll,d,o,s,a,l,c,u]),{resizeThrottleMs:h}=e,p=jt(f),m=E.useMemo(()=>h>0?s7e(p,h):void 0,[h,p]);E.useEffect(()=>m==null?void 0:m.clear,[m]),An(f,[f]),An(()=>{t.update({dimensions:Er({},t.state.dimensions,{autoHeight:e.dimensions.autoHeight,minimalContentHeight:e.dimensions.minimalContentHeight})})},[t,e.dimensions.autoHeight,e.dimensions.minimalContentHeight]);const g=h7e(t,e,f);return{updateDimensions:f,debouncedUpdateDimensions:m,rowsMeta:g}}function h7e(t,e,n){const r=t.state.rowHeights,{rows:i,getRowHeight:o,getRowSpacing:s,getEstimatedRowHeight:a}=e,l=E.useRef(-1),c=E.useRef(!1),u=E.useRef(!1),d=e.pinnedRows,f=wp(t,Gp.rowHeight),h=jt(k=>{let P=r.get(k);return P===void 0&&(P={content:t.state.dimensions.rowHeight,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},r.set(k,P)),P}),{applyRowHeight:p}=e,m=E.useCallback(k=>{const P=Gp.dimensions(t.state),C=P.rowHeight,_=h(k.id);if(!o)_.content=C,_.needsFirstMeasurement=!1;else{const M=o(k);if(M==="auto"){if(_.needsFirstMeasurement){const V=a?a(k):C;_.content=V??C}c.current=!0,_.autoHeight=!0}else _.content=M??P.rowHeight,_.needsFirstMeasurement=!1,_.autoHeight=!1}if(s){const M=s(k);_.spacingTop=M.top??0,_.spacingBottom=M.bottom??0}else _.spacingTop=0,_.spacingBottom=0;return p==null||p(_,k),_},[t,o,h,a,f,s,p]),g=E.useCallback(()=>{c.current=!1;const k=(d==null?void 0:d.top.reduce((N,z)=>{const L=m(z);return N+L.content+L.spacingTop+L.spacingBottom+L.detail},0))??0,P=(d==null?void 0:d.bottom.reduce((N,z)=>{const L=m(z);return N+L.content+L.spacingTop+L.spacingBottom+L.detail},0))??0,C=[],_=i.reduce((N,z)=>{C.push(N);const L=m(z),B=L.content+L.spacingTop+L.spacingBottom+L.detail;return N+B},0);c.current||(l.current=1/0);const M=k!==t.state.rowsMeta.pinnedTopRowsTotalHeight||P!==t.state.rowsMeta.pinnedBottomRowsTotalHeight||_!==t.state.rowsMeta.currentPageTotalHeight,V={currentPageTotalHeight:_,positions:C,pinnedTopRowsTotalHeight:k,pinnedBottomRowsTotalHeight:P};t.set("rowsMeta",V),M&&n(),u.current=!0},[t,d,i,m,n]),y=jt(g),b=k=>{var P;return((P=r.get(k))==null?void 0:P.content)??Gp.rowHeight(t.state)},v=(k,P)=>{const C=h(k),_=C.content!==P;C.needsFirstMeasurement=!1,C.content=P,u.current&&(u.current=!_)},S=k=>{var P;return((P=r.get(k))==null?void 0:P.autoHeight)??!1},I=()=>l.current,O=k=>{c.current&&k>l.current&&(l.current=k)},T=()=>{r.clear(),g()},A=wg(()=>typeof ResizeObserver>"u"?void 0:new ResizeObserver(k=>{var P,C;for(let _=0;_<k.length;_+=1){const M=k[_],V=M.borderBoxSize&&M.borderBoxSize.length>0?M.borderBoxSize[0].blockSize:M.contentRect.height,N=M.target.__mui_id;
5073if(((C=(P=e.focusedVirtualCell)==null?void 0:P.call(e))==null?void 0:C.id)===N&&V===0)return;v(N,V)}u.current||requestAnimationFrame(()=>{y()})})).current,R=(k,P)=>(k.__mui_id=P,A==null||A.observe(k),()=>A==null?void 0:A.unobserve(k));return An(()=>{g()},[g]),{getRowHeight:b,setLastMeasuredRowIndex:O,storeRowHeightMeasurement:v,hydrateRowsMeta:g,observeRowHeight:R,rowHasAutoHeight:S,getRowHeightEntry:h,getLastMeasuredRowIndex:I,resetRowHeights:T}}function p7e(t,e,n){if(!t)return;const r=t.getBoundingClientRect(),i={width:V1(r.width,1),height:V1(r.height,1)};if((e.state.rootSize===_l.EMPTY||!_l.equals(i,e.state.rootSize))&&n(i),typeof ResizeObserver>"u")return;const o=new ResizeObserver(([s])=>{if(!s)return;const a={width:V1(s.contentRect.width,1),height:V1(s.contentRect.height,1)};_l.equals(a,e.state.rootSize)||n(a)});return o.observe(t),()=>{o.disconnect()}}const gB=new WeakMap;function m7e(t,e){if(e!==void 0)return e;if(t===null)return 0;const n=gB.get(t);if(n!==void 0)return n;const i=In(t).createElement("div");i.style.width="99px",i.style.height="99px",i.style.position="absolute",i.style.overflow="scroll",i.className="scrollDiv",t.appendChild(i);const o=i.offsetWidth-i.clientWidth;return t.removeChild(i),gB.set(t,o),o}const g7e=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",pee=g7e.includes("firefox"),pI=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),Kp=(t,e,n)=>
5073Math.max(e,Math.min(n,t)),mI=50,yB={top:0,left:0},y7e=Object.freeze(new Map),H4={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},_w=(()=>{const t=Ic(e=>e.virtualization.renderContext.firstRowIndex);return{store:Ic(e=>e.virtualization),renderContext:Ic(e=>e.virtualization.renderContext),enabledForRows:Ic(e=>e.virtualization.enabledForRows),enabledForColumns:Ic(e=>e.virtualization.enabledForColumns),offsetTop:Ic(ir.selectors.rowPositions,t,(e,n)=>e[n]??0),context:Ic(e=>e.virtualization.context),scrollPosition:Ic(e=>e.virtualization.scrollPosition)}})(),Yo={initialize:v7e,use:b7e,selectors:_w};function v7e(t){var n;return{virtualization:Er({enabled:!pI,enabledForRows:!pI,enabledForColumns:!pI,renderContext:H4,props:t.layout.constructor.elements.reduce((r,i)=>(r[i],r),{}),context:{},scrollPosition:{current:c7e.EMPTY}},(n=t.initialState)==null?void 0:n.virtualization),getters:null}}function b7e(t,e,n){const{layout:r,dimensions:{rowHeight:i,columnsTotalWidth:o=0},virtualization:{isRtl:s=!1,rowBufferPx:a=150,columnBufferPx:l=150},colspan:c,initialState:u,rows:d,range:f,columns:h,pinnedRows:p=a7e.EMPTY,pinnedColumns:m=l7e.EMPTY,onWheel:g,onTouchMove:y,onRenderContextChange:b,onScrollChange:v,scrollReset:S,renderRow:I,renderInfiniteLoadingTrigger:O}=e,T=p.bottom.length>0,[A,R]=E.useState(y7e),k=E.useRef(!1),P=E.useRef(!1),C=wp(t,_w.renderContext),_=wp(t,_w.enabledForRows),M=wp(t,_w.enabledForColumns),V=wp(t,ir.selectors.contentHeight),N=E.useRef((u==null?void 0:u.scroll)??yB),z=E.useRef(!1),L=E.useRef(yB),B=E.useRef(H4),j=Ol(),H=E.useRef(void 0),q=wg(()=>E7e(s,a,l,i*15,mI*6)).current,Y=E.useCallback(se=>{xB(se,t.state.virtualization.renderContext)||t.set("virtualization",Er({},t.state.virtualization,{renderContext:se,scrollPosition:{current:Er({},N.current)}}));const ae=ir.selectors.dimensions(t.state).isReady,ke=se.firstRowIndex!==B.current.firstRowIndex||se.lastRowIndex!==B.current.lastRowIndex;ae&&ke&&(B.current=se,b==null||b(se)),L.current=N.current},[t,b]),Z=jt(()=>{const se=r.refs.scroller.current;if(!se)return;const ae=ir.selectors.dimensions(t.state),ke=Math.ceil(ae.contentSize.height-ae.viewportInnerSize.height),Ee=Math.ceil(ae.contentSize.width-ae.viewportInnerSize.width),_e={top:Kp(se.scrollTop,0,ke),left:s?Kp(se.scrollLeft,-Math.abs(Ee),0):Kp(se.scrollLeft,0,Ee)},we=_e.left-N.current.left,et=_e.top-N.current.top,rt=we!==0||et!==0;N.current=_e;const he=rt?Xn.forDelta(we,et):Xn.NONE,be=Math.abs(N.current.top-L.current.top),De=Math.abs(N.current.left-L.current.left),Be=be>=i||De>=mI,Xe=q.direction!==he;if(!(Be||Xe))return t.set("virtualization",Er({},t.state.virtualization,{scrollPosition:{current:Er({},N.current)}})),C;if(Xe)switch(he){case Xn.NONE:case Xn.LEFT:case Xn.RIGHT:H.current=void 0;break;default:H.current=C;break}q.direction=he,q.buffer=mee(s,he,a,l,i*15,mI*6);const xe=bB(t,e,n,_,M),Ge=wB(xe,N.current,q);return xB(Ge,C)?t.set("virtualization",Er({},t.state.virtualization,{scrollPosition:{current:Er({},N.current)}})):(za.flushSync(()=>{Y(Ge)}),j.start(1e3,Z)),Ge}),G=()=>{if(!ir.selectors.dimensions(t.state).isReady&&(_||M))return;const se=bB(t,e,n,_,M),ae=wB(se,N.current,q);H.current=void 0,Y(ae)},X=jt(G);mB(t,ir.selectors.dimensions,(se,ae)=>{ae.isReady&&G()}),An(()=>{k.current&&(G(),k.current=!1)});const K=()=>{k.current=!0},J=jt(()=>{if(z.current){z.current=!1;return}const se=Z();se&&(v==null||v(N.current,se))}),te=(se={},ae)=>{var xe;if(!se.rows&&!f)return[];let ke=C;se.renderContext&&(ke=se.renderContext,ke.firstColumnIndex=C.firstColumnIndex,ke.lastColumnIndex=C.lastColumnIndex);const Ee=!T&&se.position===void 0||T&&se.position==="bottom",_e=se.position!==void 0;let we;switch(se.position){case"top":we=0;break;case"bottom":we=p.top.length+d.length;break;case void 0:default:we=p.top.length;break}const et=se.rows??d,rt=ke.firstRowIndex,he=Math.min(ke.lastRowIndex,et.length),be=se.rows?EB(0,se.rows.length):EB(rt,he);let De=-1;const Be=(xe=e.focusedVirtualCell)==null?void 0:xe.call(e);!_e&&Be&&(Be.rowIndex<rt&&(be.unshift(Be.rowIndex),De=Be.rowIndex),Be.rowIndex>he&&(be.push(Be.rowIndex),De=Be.rowIndex));const Xe=[],Me=ir.selectors.columnPositions(t.state,h);return be.forEach(Ge=>{const{id:Ke,model:nt}=et[Ge];
5073if(ae&&!ae[Ke])return;const en=((f==null?void 0:f.firstRowIndex)||0)+we+Ge;if(c!=null&&c.enabled){const Ct=m.left.length,$e=h.length-m.right.length;n.calculateColSpan(Ke,Ct,$e,h),m.left.length>0&&n.calculateColSpan(Ke,0,m.left.length,h),m.right.length>0&&n.calculateColSpan(Ke,h.length-m.right.length,h.length,h)}const Wt=n.rowsMeta.rowHasAutoHeight(Ke)?"auto":n.rowsMeta.getRowHeight(Ke);let Jt=!1;se.position===void 0&&(Jt=Ge===0);let pn=!1;const Cn=Ge===et.length-1;if(Ee)if(_e)pn=Cn;else{const Ct=d.length-1;Ge===Ct&&(pn=!0)}let tn=ke;H.current&&Ge>=H.current.firstRowIndex&&Ge<H.current.lastRowIndex&&(tn=H.current);const Ue=Ge===De,Fe=(Be==null?void 0:Be.rowIndex)===en,ct=x7e(Me,tn,m.left.length),Dt=Cn&&se.position==="top",Gt=tn.firstColumnIndex,mn=tn.lastColumnIndex;if(Xe.push(I({id:Ke,model:nt,rowIndex:en,offsetLeft:ct,columnsTotalWidth:o,baseRowHeight:Wt,firstColumnIndex:Gt,lastColumnIndex:mn,focusedColumnIndex:Fe?Be.columnIndex:void 0,isFirstVisible:Jt,isLastVisible:pn,isVirtualFocusRow:Ue,showBottomBorder:Dt})),Ue)return;const st=A.get(Ke);st&&Xe.push(st),se.position===void 0&&Cn&&O&&Xe.push(O(Ke))}),Xe},ne=E.useRef(null);An(()=>{P.current&&X()},[M,_,X]),An(()=>{r.refs.scroller.current&&(r.refs.scroller.current.scrollLeft=0)},[r.refs.scroller,S]),e7e(C!==H4,()=>{if(v==null||v(N.current,C),P.current=!0,u!=null&&u.scroll&&r.refs.scroller.current){const se=r.refs.scroller.current,{top:ae,left:ke}=u.scroll,Ee={top:!(ae>0),left:!(ke>0)};!Ee.left&&o&&(se.scrollLeft=ke,Ee.left=!0,z.current=!0),!Ee.top&&V&&(se.scrollTop=ae,z.current=!0),(!Ee.top||!Ee.left)&&(ne.current=(_e,we)=>{!Ee.left&&_e&&(se.scrollLeft=ke,Ee.left=!0,z.current=!0),!Ee.top&&we&&(se.scrollTop=ae,Ee.top=!0,z.current=!0),Ee.left&&Ee.top&&(ne.current=null)})}}),mB(t,ir.selectors.dimensions,G),An(()=>{var se;r.refs.scroller&&((se=ne.current)==null||se.call(ne,o,V))},[r.refs.scroller,o,V]);const ce=E.useRef(!0),ie=vB(se=>{r.refs.container.current=se;const ae=p7e(se,t,ke=>{ke.width===0&&ke.height===0&&t.state.rootSize.height!==0&&t.state.rootSize.width!==0||(t.state.rootSize=ke,ce.current||!n.debouncedUpdateDimensions?(n.updateDimensions(ce.current),ce.current=!1):n.debouncedUpdateDimensions())});return()=>{ae==null||ae(),r.refs.container.current=null}}),oe=vB(se=>{r.refs.scroller.current=se;const ae={passive:!0};return se.addEventListener("scroll",J,ae),se.addEventListener("wheel",g,ae),se.addEventListener("touchmove",y,ae),()=>{se.removeEventListener("scroll",J,ae),se.removeEventListener("wheel",g,ae),se.removeEventListener("touchmove",y,ae),r.refs.scroller.current=null}}),ue={containerRef:ie,scrollerRef:oe},pe=r.use(t,e,n,ue),ve=Er({setPanels:R,getRows:te,rows:e.rows},pe);return Er({getters:ve,setPanels:R,forceUpdateRenderContext:G,scheduleUpdateRenderContext:K},C7e())}function vB(t){const e=E.useRef(void 0);return jt(r=>{var i;if(!r){(i=e.current)==null||i.call(e);return}if(e.current=t(r),eN>=19)return e.current})}function bB(t,e,n,r,i){var f;const o=ir.selectors.dimensions(t.state),s=e.rows,a=e.range,l=e.columns,c=n.getHiddenCellsOrigin(),u=(f=e.rows.at(-1))==null?void 0:f.id,d=l.at(-1);return{api:n,enabledForRows:r,enabledForColumns:i,autoHeight:o.autoHeight,rowBufferPx:e.virtualization.rowBufferPx,columnBufferPx:e.virtualization.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:u!==void 0?n.rowsMeta.getRowHeight(u):0,lastColumnWidth:(d==null?void 0:d.computedWidth)??0,rowsMeta:ir.selectors.rowsMeta(t.state),columnPositions:ir.selectors.columnPositions(t.state,e.columns),rows:s,range:a,pinnedColumns:e.pinnedColumns,columns:l,hiddenCellsOriginMap:c,virtualizeColumnsWithAutoRowHeight:e.virtualizeColumnsWithAutoRowHeight}}function wB(t,e,n){const r={firstRowIndex:0,lastRowIndex:t.rows.length,firstColumnIndex:0,lastColumnIndex:t.columns.length},{top:i,left:o}=e,s=Math.abs(o)+t.leftPinnedWidth;if(t.enabledForRows){let l=Math.min(SB(t,i,{atStart:!0,lastPosition:t.rowsMeta.positions[t.rowsMeta.positions.length-1]+t.lastRowHeight}),t.rowsMeta.positions.length-1);const c=t.hiddenCellsOriginMap[l];if(c){const d=Math.min(...Object.values(c));l=Math.min(l,d)}const u=t.autoHeight?l+t.rows.length:SB(t,i+t.viewportInnerHeight);r.firstRowIndex=l,r.lastRowIndex=u}if(t.enabledForColumns){let l=0,c=t.columnPositions.length,u=!1;const[d,f]=U4({firstIndex:r.firstRowIndex,lastIndex:r.lastRowIndex,minFirstIndex:0,maxLastIndex:t.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:t.rowsMeta.positions,lastSize:t.lastRowHeight});if(!t.virtualizeColumnsWithAutoRowHeight)for(let h=d;h<f&&!u;h+=1){const p=t.rows[h];u=t.api.rowsMeta.rowHasAutoHeight(p.id)}(!u||t.virtualizeColumnsWithAutoRowHeight)&&(l=Gu(s,t.columnPositions,{atStart:!0,lastPosition:t.columnsTotalWidth}),c=Gu(s+t.viewportInnerWidth,t.columnPositions)),r.firstColumnIndex=l,r.lastColumnIndex=c}return w7e(t,r,n)}function SB(t,e,n){var s,a;const r=t.api.rowsMeta.getLastMeasuredRowIndex();let i=r===1/0;(s=t.range)!=null&&s.lastRowIndex&&!i&&(i=r>=t.range.lastRowIndex);const o=Kp(r-(((a=t.range)==null?void 0:a.firstRowIndex)||0),0,t.rowsMeta.positions.length);return i||t.rowsMeta.positions[o]>=e?Gu(e,t.rowsMeta.positions,n):S7e(e,t.rowsMeta.positions,o,n)}function w7e(t,e,n){var l,c;const[r,i]=U4({firstIndex:e.firstRowIndex,lastIndex:e.lastRowIndex,minFirstIndex:0,maxLastIndex:t.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:t.rowsMeta.positions,lastSize:t.lastRowHeight}
5073),[o,s]=U4({firstIndex:e.firstColumnIndex,lastIndex:e.lastColumnIndex,minFirstIndex:((l=t.pinnedColumns)==null?void 0:l.left.length)??0,maxLastIndex:t.columns.length-(((c=t.pinnedColumns)==null?void 0:c.right.length)??0),bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:t.columnPositions,lastSize:t.lastColumnWidth}),a=T7e({api:t.api,firstColumnToRender:o,firstRowToRender:r,lastRowToRender:i,visibleRows:t.rows});return{firstRowIndex:r,lastRowIndex:i,firstColumnIndex:a,lastColumnIndex:s}}function Gu(t,e,n=void 0,r=0,i=e.length){if(e.length<=0)return-1;if(r>=i)return r;const o=r+Math.floor((i-r)/2),s=e[o];let a;if(n!=null&&n.atStart){const l=(o===e.length-1?n.lastPosition:e[o+1])-s;a=t-l<s}else a=t<=s;return a?Gu(t,e,n,r,o):Gu(t,e,n,o+1,i)}function S7e(t,e,n,r=void 0){let i=1;for(;n<e.length&&Math.abs(e[n])<t;)n+=i,i*=2;return Gu(t,e,r,Math.floor(n/2),Math.min(n,e.length))}function U4({firstIndex:t,lastIndex:e,bufferBefore:n,bufferAfter:r,minFirstIndex:i,maxLastIndex:o,positions:s,lastSize:a}){const l=s[t]-n,c=s[e]+r,u=Gu(l,s,{atStart:!0,lastPosition:s[s.length-1]+a}),d=Gu(c,s);return[Kp(u,i,o),Kp(d,i,o)]}function xB(t,e){return t===e?!0:t.firstRowIndex===e.firstRowIndex&&t.lastRowIndex===e.lastRowIndex&&t.firstColumnIndex===e.firstColumnIndex&&t.lastColumnIndex===e.lastColumnIndex}function x7e(t,e,n){const r=(t[e.firstColumnIndex]??0)-(t[n]??0);return Math.abs(r)}function mee(t,e,n,r,i,o){if(t)switch(e){case Xn.LEFT:e=Xn.RIGHT;break;case Xn.RIGHT:e=Xn.LEFT;break}switch(e){case Xn.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case Xn.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:o};case Xn.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:o,columnBefore:0};case Xn.UP:return{rowAfter:0,rowBefore:i,columnAfter:0,columnBefore:0};case Xn.DOWN:return{rowAfter:i,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}function E7e(t,e,n,r,i){return{direction:Xn.NONE,buffer:mee(t,Xn.NONE,e,n,r,i)}}function EB(t,e){return Array.from({length:e-t}).map((n,r)=>t+r)}function T7e({api:t,firstColumnToRender:e,firstRowToRender:n,lastRowToRender:r,visibleRows:i}){let o=e,s=!1;for(;!s&&o>=0;){s=!0;for(let a=n;a<r;a+=1)if(i[a]){const c=i[a].id,u=t.getCellColSpanInfo(c,o);if(u&&u.spannedByColSpan&&u.leftVisibleCellIndex<o){o=u.leftVisibleCellIndex,s=!1;break}}}return o}function C7e(){return{getCellColSpanInfo:()=>{throw new Error("Unimplemented: colspan feature is required")},calculateColSpan:()=>{throw new Error("Unimplemented: colspan feature is required")},getHiddenCellsOrigin:()=>{throw new Error("Unimplemented: rowspan feature is required")}}}class nN{constructor(e){this.refs=e}refSetter(e){return n=>{n&&this.refs[e].current!==n&&(this.refs[e].current=n)}}}fi(nN,"elements",["scroller","container"]);class fa extends nN{use(e,n,r,i){const{scrollerRef:o,containerRef:s}=i,a=jt(this.refSetter("scrollbarVertical")),l=jt(this.refSetter("scrollbarHorizontal"));e.state.virtualization.context={scrollerRef:o,containerRef:s,scrollbarVerticalRef:a,scrollbarHorizontalRef:l}}}fi(fa,"elements",["scroller","container","content","positioner","scrollbarVertical","scrollbarHorizontal"]),fi(fa,"selectors",{containerProps:Ns(Yo.selectors.context,e=>({ref:e.containerRef})),scrollerProps:Ns(Yo.selectors.context,ir.selectors.autoHeight,ir.selectors.needsHorizontalScrollbar,(e,n,r)=>({ref:e.scrollerRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0},role:"presentation",tabIndex:pee?-1:void 0})),contentProps:Ns(ir.selectors.contentHeight,ir.selectors.minimalContentHeight,ir.selectors.columnsTotalWidth,ir.selectors.needsHorizontalScrollbar,(e,n,r,i)=>({style:{width:i?r:"auto",flexBasis:e===0?n:e,flexShrink:0},role:"presentation"})),positionerProps:Ns(Yo.selectors.offsetTop,e=>({style:{transform:`translate3d(0, ${e}px, 0)`}})),scrollbarHorizontalProps:Ns(Yo.selectors.context,Yo.selectors.scrollPosition,(e,n)=>({ref:e.scrollbarHorizontalRef,scrollPosition:n})),scrollbarVerticalProps:Ns(Yo.selectors.context,Yo.selectors.scrollPosition,(e,n)=>({ref:e.scrollbarVerticalRef,scrollPosition:n})),scrollAreaProps:Ns(Yo.selectors.scrollPosition,e=>({scrollPosition:e}))});class Dtt extends fa{use(e,n,r,i){super.use(e,n,r,i);const o=e.use(fa.selectors.containerProps),s=e.use(fa.selectors.scrollerProps),a=e.use(fa.selectors.contentProps),l=e.use(fa.selectors.positionerProps),c=e.use(fa.selectors.scrollbarVerticalProps),u=e.use(fa.selectors.scrollbarHorizontalProps),d=e.use(fa.selectors.scrollAreaProps);return{getContainerProps:()=>o,getScrollerProps:()=>s,getContentProps:()=>a,getPositionerProps:()=>l,getScrollbarVerticalProps:()=>c,getScrollbarHorizontalProps:()=>u,getScrollAreaProps:()=>d}}}class TB extends nN{use(e,n,r,i){const{scrollerRef:o,containerRef:s}=i,a=fn(o,s);e.state.virtualization.context={mergedRef:a}}}fi(TB,"elements",["scroller","container","content","positioner"]),fi(TB,"selectors",{containerProps:Ns(Yo.selectors.context,ir.selectors.autoHeight,ir.selectors.needsHorizontalScrollbar,(e,n,r)=>({ref:e.mergedRef,style:{overflowX:r?void 0:"hidden",overflowY:n?"hidden":void 0,position:"relative"},role:"presentation",tabIndex:pee?-1:void 0})),contentProps:Ns(ir.selectors.contentHeight,e=>({style:{position:"absolute",display:"inline-block",width:"100%",height:e,top:0,left:0,zIndex:-1},role:"presentation"})),positionerProps:Ns(Yo.selectors.offsetTop,e=>({style:{height:e}}))});const _7e={}
5073,A7e={initialize:I7e,use:R7e,selectors:_7e};function I7e(t){return{}}function R7e(t,e,n){return{getViewportPageSize:()=>{const i=ir.selectors.dimensions(t.state);if(!i.isReady)return 0;if(e.getRowHeight){const s=Yo.selectors.renderContext(t.state),a=s.lastRowIndex-s.firstRowIndex;return Math.min(a-1,e.rows.length)}const o=Math.floor(i.viewportInnerSize.height/i.rowHeight);return Math.min(o,e.rows.length)}}}const M7e={firstRowIndex:0,lastRowIndex:0},k7e={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},gee={state:t=>t.rowSpanning,hiddenCells:t=>t.rowSpanning.caches.hiddenCells,spannedCells:t=>t.rowSpanning.caches.spannedCells,hiddenCellsOriginMap:t=>t.rowSpanning.caches.hiddenCellOriginMap},P7e={initialize:O7e,use:N7e,selectors:gee};function O7e(t){var e;return{rowSpanning:((e=t.initialState)==null?void 0:e.rowSpanning)??{caches:k7e,processedRange:M7e}}}function N7e(t,e,n){return{getHiddenCellsOrigin:()=>gee.hiddenCellsOriginMap(t.state)}}const D7e=[{field:"DEFAULT_COLUMN"}],L7e={resizeThrottleMs:100,columns:D7e,dimensions:{autoHeight:!1,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,topPinnedHeight:0,bottomPinnedHeight:0},virtualization:{isRtl:!1,rowBufferPx:150,columnBufferPx:150}},CB=[ir,Yo,n7e,P7e,A7e],Ltt=t=>{const e=yee(t,L7e),n=wg(()=>new tN(CB.map(i=>i.initialize(e)).reduce((i,o)=>Object.assign(i,o),{}))).current,r={};for(const i of CB)Object.assign(r,i.use(n,e,r));return{store:n,api:r}};function yee(t,e){const n=Er({},t);for(const r in e)if(Object.hasOwn(e,r)){const i=e[r];i!==null&&typeof i=="object"&&!Array.isArray(i)?n[r]=yee(t[r]??{},i):n[r]=t[r]??i}return n}function ztt(t,e,n,r={}){return typeof e=="function"?e(n,r):e?(e.props.className&&(n.className=z7e(e.props.className,n.className)),(e.props.style||n.style)&&(n.style=Er({},n.style,e.props.style)),E.cloneElement(e,n)):E.createElement(t,n)}function z7e(t,e){return!t||!e?t||e:`${t} ${e}`}function Vtt(t,e,n){const r=[],i=e.querySelectorAll("style, link[rel='stylesheet']");for(let o=0;o<i.length;o+=1){const s=i[o],a=t.createElement(s.tagName);if(s.tagName==="STYLE"){const l=s.sheet;if(l){let c="";for(let u=0;u<l.cssRules.length;u+=1)typeof l.cssRules[u].cssText=="string"&&(c+=`${l.cssRules[u].cssText}\r 5074`);a.appendChild(t.createTextNode(c))}}else if(s.getAttribute("href")){for(let l=0;l<s.attributes.length;l+=1){const c=s.attributes[l];c&&a.setAttribute(c.nodeName,c.nodeValue||"")}r.push(new Promise(l=>{a.addEventListener("load",()=>l())}))}t.head.appendChild(a)}return r}class Btt{constructor(){fi(this,"maxListeners",20);fi(this,"warnOnce",!1);fi(this,"events",{})}on(e,n,r={}){let i=this.events[e];i||(i={highPriority:new Map,regular:new Map},this.events[e]=i),r.isFirst?i.highPriority.set(n,!0):i.regular.set(n,!0)}removeListener(e,n){this.events[e]&&(this.events[e].regular.delete(n),this.events[e].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(e,...n){const r=this.events[e];if(!r)return;const i=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=i.length-1;s>=0;s-=1){const a=i[s];r.highPriority.has(a)&&a.apply(this,n)}for(let s=0;s<o.length;s+=1){const a=o[s];r.regular.has(a)&&a.apply(this,n)}}once(e,n){const r=this;this.on(e,function i(...o){r.removeListener(e,i),n.apply(r,o)})}}var vee={exports:{}};/*! 5075 Copyright (c) 2018 Jed Watson. 5076 Licensed under the MIT License (MIT), see 5077 http://jedwatson.github.io/classnames 5078*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var o="",s=0;s<arguments.length;s++){var a=arguments[s];a&&(o=i(o,r(a)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return n.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var a in o)e.call(o,a)&&o[a]&&(s=i(s,a));return s}function i(o,s){return s?o?o+" "+s:o+s:o}t.exports?(n.default=n,t.exports=n):window.classNames=n})()})(vee);var bee=vee.exports;const $tt=Ts(bee);var wee={},ku={},See={},fc={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(){}e.prototype={diff:function(i,o){var s,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},l=a.callback;typeof a=="function"&&(l=a,a={}),this.options=a;var c=this;function u(T){return l?(setTimeout(function(){l(void 0,T)},0),!0):T}i=this.castInput(i),o=this.castInput(o),i=this.removeEmpty(this.tokenize(i)),o=this.removeEmpty(this.tokenize(o));var d=o.length,f=i.length,h=1,p=d+f;a.maxEditLength&&(p=Math.min(p,a.maxEditLength));var m=(s=a.timeout)!==null&&s!==void 0?s:1/0,g=Date.now()+m,y=[{oldPos:-1,lastComponent:void 0}],b=this.extractCommon(y[0],o,i,0);if(y[0].oldPos+1>=f&&b+1>=d)return u([{value:this.join(o),count:o.length}]);var v=-1/0,S=1/0;function I(){for(var T=Math.max(v,-h);T<=Math.min(S,h);T+=2){var A=void 0,R=y[T-1],k=y[T+1];
5078R&&(y[T-1]=void 0);var P=!1;if(k){var C=k.oldPos-T;P=k&&0<=C&&C<d}var _=R&&R.oldPos+1<f;if(!P&&!_){y[T]=void 0;continue}if(!_||P&&R.oldPos+1<k.oldPos?A=c.addToPath(k,!0,void 0,0):A=c.addToPath(R,void 0,!0,1),b=c.extractCommon(A,o,i,T),A.oldPos+1>=f&&b+1>=d)return u(n(c,A.lastComponent,o,i,c.useLongestToken));y[T]=A,A.oldPos+1>=f&&(S=Math.min(S,T-1)),b+1>=d&&(v=Math.max(v,T+1))}h++}if(l)(function T(){setTimeout(function(){if(h>p||Date.now()>g)return l();I()||T()},0)})();else for(;h<=p&&Date.now()<=g;){var O=I();if(O)return O}},addToPath:function(i,o,s,a){var l=i.lastComponent;return l&&l.added===o&&l.removed===s?{oldPos:i.oldPos+a,lastComponent:{count:l.count+1,added:o,removed:s,previousComponent:l.previousComponent}}:{oldPos:i.oldPos+a,lastComponent:{count:1,added:o,removed:s,previousComponent:l}}},extractCommon:function(i,o,s,a){for(var l=o.length,c=s.length,u=i.oldPos,d=u-a,f=0;d+1<l&&u+1<c&&this.equals(o[d+1],s[u+1]);)d++,u++,f++;return f&&(i.lastComponent={count:f,previousComponent:i.lastComponent}),i.oldPos=u,d},equals:function(i,o){return this.options.comparator?this.options.comparator(i,o):i===o||this.options.ignoreCase&&i.toLowerCase()===o.toLowerCase()},removeEmpty:function(i){for(var o=[],s=0;s<i.length;s++)i[s]&&o.push(i[s]);return o},castInput:function(i){return i},tokenize:function(i){return i.split("")},join:function(i){return i.join("")}};function n(r,i,o,s,a){for(var l=[],c;i;)l.push(i),c=i.previousComponent,delete i.previousComponent,i=c;l.reverse();for(var u=0,d=l.length,f=0,h=0;u<d;u++){var p=l[u];if(p.removed){if(p.value=r.join(s.slice(h,h+p.count)),h+=p.count,u&&l[u-1].added){var g=l[u-1];l[u-1]=l[u],l[u]=g}}else{if(!p.added&&a){var m=o.slice(f,f+p.count);m=m.map(function(b,v){var S=s[h+v];return S.length>b.length?S:b}),p.value=r.join(m)}else p.value=r.join(o.slice(f,f+p.count));f+=p.count,p.added||(h+=p.count)}}var y=l[d-1];return d>1&&typeof y.value=="string"&&(y.added||y.removed)&&r.equals("",y.value)&&(l[d-2].value+=y.value,l.pop()),l}})(fc);var Qv={};Object.defineProperty(Qv,"__esModule",{value:!0});Qv.diffChars=$7e;Qv.characterDiff=void 0;var V7e=B7e(fc);function B7e(t){return t&&t.__esModule?t:{default:t}}var xee=new V7e.default;Qv.characterDiff=xee;function $7e(t,e,n){return xee.diff(t,e,n)}var Tg={},vC={};Object.defineProperty(vC,"__esModule",{value:!0});vC.generateOptions=F7e;function F7e(t,e){if(typeof t=="function")e.callback=t;else if(t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Object.defineProperty(Tg,"__esModule",{value:!0});Tg.diffWords=q7e;Tg.diffWordsWithSpace=W7e;Tg.wordDiff=void 0;var j7e=U7e(fc),H7e=vC;function U7e(t){return t&&t.__esModule?t:{default:t}}var _B=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,AB=/\S/,Jv=new j7e.default;Tg.wordDiff=Jv;Jv.equals=function(t,e){return this.options.ignoreCase&&(t=t.toLowerCase(),e=e.toLowerCase()),t===e||this.options.ignoreWhitespace&&!AB.test(t)&&!AB.test(e)};Jv.tokenize=function(t){for(var e=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<e.length-1;n++)!e[n+1]&&e[n+2]&&_B.test(e[n])&&_B.test(e[n+2])&&(e[n]+=e[n+2],e.splice(n+1,2),n--);return e};function q7e(t,e,n){return n=(0,H7e.generateOptions)(n,{ignoreWhitespace:!0}),Jv.diff(t,e,n)}function W7e(t,e,n){return Jv.diff(t,e,n)}var pd={};Object.defineProperty(pd,"__esModule",{value:!0});pd.diffLines=X7e;pd.diffTrimmedLines=Q7e;pd.lineDiff=void 0;var G7e=Y7e(fc),K7e=vC;function Y7e(t){return t&&t.__esModule?t:{default:t}}var bC=new G7e.default;pd.lineDiff=bC;bC.tokenize=function(t){this.options.stripTrailingCr&&(t=t.replace(/\r\n/g,` 5079`));var e=[],n=t.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?e[e.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),e.push(i))}return e};function X7e(t,e,n){return bC.diff(t,e,n)}function Q7e(t,e,n){var r=(0,K7e.generateOptions)(n,{ignoreWhitespace:!0});return bC.diff(t,e,r)}var Zv={};Object.defineProperty(Zv,"__esModule",{value:!0});Zv.diffSentences=eze;Zv.sentenceDiff=void 0;var J7e=Z7e(fc);function Z7e(t){return t&&t.__esModule?t:{default:t}}var rN=new J7e.default;Zv.sentenceDiff=rN;rN.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};function eze(t,e,n){return rN.diff(t,e,n)}var eb={};
5079Object.defineProperty(eb,"__esModule",{value:!0});eb.diffCss=rze;eb.cssDiff=void 0;var tze=nze(fc);function nze(t){return t&&t.__esModule?t:{default:t}}var iN=new tze.default;eb.cssDiff=iN;iN.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function rze(t,e,n){return iN.diff(t,e,n)}var Cg={};Object.defineProperty(Cg,"__esModule",{value:!0});Cg.diffJson=aze;Cg.canonicalize=Sx;Cg.jsonDiff=void 0;var Eee=oze(fc),ize=pd;function oze(t){return t&&t.__esModule?t:{default:t}}function Aw(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Aw=function(n){return typeof n}:Aw=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Aw(t)}var sze=Object.prototype.toString,Jf=new Eee.default;Cg.jsonDiff=Jf;Jf.useLongestToken=!0;Jf.tokenize=ize.lineDiff.tokenize;Jf.castInput=function(t){var e=this.options,n=e.undefinedReplacement,r=e.stringifyReplacer,i=r===void 0?function(o,s){return typeof s>"u"?n:s}:r;return typeof t=="string"?t:JSON.stringify(Sx(t,null,null,i),i," ")};Jf.equals=function(t,e){return Eee.default.prototype.equals.call(Jf,t.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function aze(t,e,n){return Jf.diff(t,e,n)}function Sx(t,e,n,r,i){e=e||[],n=n||[],r&&(t=r(i,t));var o;for(o=0;o<e.length;o+=1)if(e[o]===t)return n[o];var s;if(sze.call(t)==="[object Array]"){for(e.push(t),s=new Array(t.length),n.push(s),o=0;o<t.length;o+=1)s[o]=Sx(t[o],e,n,r,i);return e.pop(),n.pop(),s}if(t&&t.toJSON&&(t=t.toJSON()),Aw(t)==="object"&&t!==null){e.push(t),s={},n.push(s);var a=[],l;for(l in t)t.hasOwnProperty(l)&&a.push(l);for(a.sort(),o=0;o<a.length;o+=1)l=a[o],s[l]=Sx(t[l],e,n,r,l);e.pop(),n.pop()}else s=t;return s}var tb={};Object.defineProperty(tb,"__esModule",{value:!0});tb.diffArrays=uze;tb.arrayDiff=void 0;var lze=cze(fc);function cze(t){return t&&t.__esModule?t:{default:t}}var K0=new lze.default;tb.arrayDiff=K0;K0.tokenize=function(t){return t.slice()};K0.join=K0.removeEmpty=function(t){return t};function uze(t,e,n){return K0.diff(t,e,n)}var wC={},nb={};Object.defineProperty(nb,"__esModule",{value:!0});nb.parsePatch=dze;function dze(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.split(/\r\n|[\n\v\f\r\x85]/),r=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var c={};for(i.push(c);o<n.length;){var u=n[o];if(/^(\-\-\-|\+\+\+|@@)\s/.test(u))break;var d=/^(?:Index:|diff(?: -r \w+)+)\s+/.exec(u);d&&(c.index=u.substring(d[0].length).trim()),o++}for(a(c),a(c),c.hunks=[];o<n.length;){var f=n[o];if(/^(Index:|diff|\-\-\-|\+\+\+)\s/.test(f))break;if(/^@@/.test(f))c.hunks.push(l());else{if(f&&e.strict)throw new Error("Unknown line "+(o+1)+" "+JSON.stringify(f));o++}}}function a(c){var u=/^(---|\+\+\+)\s+/.exec(n[o]);if(u){var d=u[1]==="---"?"old":"new",f=n[o].substring(3).trim().split(" ",2),h=f[0].replace(/\\\\/g,"\\");h.startsWith('"')&&h.endsWith('"')&&(h=h.substr(1,h.length-2)),c[d+"FileName"]=h,c[d+"Header"]=(f[1]||"").trim(),o++}}function l(){var c=o,u=n[o++],d=u.split(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),f={oldStart:+d[1],oldLines:typeof d[2]>"u"?1:+d[2],newStart:+d[3],newLines:typeof d[4]>"u"?1:+d[4],lines:[],linedelimiters:[]};f.oldLines===0&&(f.oldStart+=1),f.newLines===0&&(f.newStart+=1);for(var h=0,p=0;o<n.length&&!(n[o].indexOf("--- ")===0&&o+2<n.length&&n[o+1].indexOf("+++ ")===0&&n[o+2].indexOf("@@")===0);o++){var m=n[o].length==0&&o!=n.length-1?" ":n[o][0];if(m==="+"||m==="-"||m===" "||m==="\\")f.lines.push(n[o]),f.linedelimiters.push(r[o]||` 5080`),m==="+"?h++:m==="-"?p++:m===" "&&(h++,p++);else break}if(!h&&f.newLines===1&&(f.newLines=0),!p&&f.oldLines===1&&(f.oldLines=0),e.strict){if(h!==f.newLines)throw new Error("Added line count did not match for hunk at line "+(c+1));if(p!==f.oldLines)throw new Error("Removed line count did not match for hunk at line "+(c+1))}return f}for(;o<n.length;)s();return i}var Tee={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=e;function e(n,r,i){var o=!0,s=!1,a=!1,l=1;return function c(){if(o&&!a){if(s?l++:o=!1,n+l<=i)return l;a=!0}if(!s)return a||(o=!0),r<=n-l?-l++:(s=!0,c())}}})(Tee);Object.defineProperty(wC,"__esModule",{value:!0});wC.applyPatch=_ee;wC.applyPatches=pze;var Cee=nb,fze=hze(Tee);function hze(t){return t&&t.__esModule?t:{default:t}}function _ee(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string"&&(e=(0,Cee.parsePatch)(e)),Array.isArray(e)){if(e.length>
50801)throw new Error("applyPatch only works with a single input.");e=e[0]}var r=t.split(/\r\n|[\n\v\f\r\x85]/),i=t.match(/\r\n|[\n\v\f\r\x85]/g)||[],o=e.hunks,s=n.compareLine||function(V,N,z,L){return N===L},a=0,l=n.fuzzFactor||0,c=0,u=0,d,f;function h(V,N){for(var z=0;z<V.lines.length;z++){var L=V.lines[z],B=L.length>0?L[0]:" ",j=L.length>0?L.substr(1):L;if(B===" "||B==="-"){if(!s(N+1,r[N],B,j)&&(a++,a>l))return!1;N++}}return!0}for(var p=0;p<o.length;p++){for(var m=o[p],g=r.length-m.oldLines,y=0,b=u+m.oldStart-1,v=(0,fze.default)(b,c,g);y!==void 0;y=v())if(h(m,b+y)){m.offset=u+=y;break}if(y===void 0)return!1;c=m.offset+m.oldStart+m.oldLines}for(var S=0,I=0;I<o.length;I++){var O=o[I],T=O.oldStart+O.offset+S-1;S+=O.newLines-O.oldLines;for(var A=0;A<O.lines.length;A++){var R=O.lines[A],k=R.length>0?R[0]:" ",P=R.length>0?R.substr(1):R,C=O.linedelimiters&&O.linedelimiters[A]||` 5081`;if(k===" ")T++;else if(k==="-")r.splice(T,1),i.splice(T,1);else if(k==="+")r.splice(T,0,P),i.splice(T,0,C),T++;else if(k==="\\"){var _=O.lines[A-1]?O.lines[A-1][0]:null;_==="+"?d=!0:_==="-"&&(f=!0)}}}if(d)for(;!r[r.length-1];)r.pop(),i.pop();else f&&(r.push(""),i.push(` 5082`));for(var M=0;M<r.length-1;M++)r[M]=r[M]+i[M];return r.join("")}function pze(t,e){typeof t=="string"&&(t=(0,Cee.parsePatch)(t));var n=0;function r(){var i=t[n++];if(!i)return e.complete();e.loadFile(i,function(o,s){if(o)return e.complete(o);var a=_ee(s,i,e);e.patched(i,a,function(l){if(l)return e.complete(l);r()})})}r()}var SC={},wh={};Object.defineProperty(wh,"__esModule",{value:!0});wh.structuredPatch=Aee;wh.formatPatch=oN;wh.createTwoFilesPatch=Iee;wh.createPatch=wze;var mze=pd;function gI(t){return bze(t)||vze(t)||yze(t)||gze()}function gze(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5083In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yze(t,e){if(t){if(typeof t=="string")return q4(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q4(t,e)}}function vze(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function bze(t){if(Array.isArray(t))return q4(t)}function q4(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Aee(t,e,n,r,i,o,s){s||(s={}),typeof s.context>"u"&&(s.context=4);var a=(0,mze.diffLines)(n,r,s);if(!a)return;a.push({value:"",lines:[]});function l(y){return y.map(function(b){return" "+b})}for(var c=[],u=0,d=0,f=[],h=1,p=1,m=function(b){var v=a[b],S=v.lines||v.value.replace(/\n$/,"").split(` 5084`);if(v.lines=S,v.added||v.removed){var I;if(!u){var O=a[b-1];u=h,d=p,O&&(f=s.context>0?l(O.lines.slice(-s.context)):[],u-=f.length,d-=f.length)}(I=f).push.apply(I,gI(S.map(function(M){return(v.added?"+":"-")+M}))),v.added?p+=S.length:h+=S.length}else{if(u)if(S.length<=s.context*2&&b<a.length-2){var T;(T=f).push.apply(T,gI(l(S)))}else{var A,R=Math.min(S.length,s.context);(A=f).push.apply(A,gI(l(S.slice(0,R))));var k={oldStart:u,oldLines:h-u+R,newStart:d,newLines:p-d+R,lines:f};if(b>=a.length-2&&S.length<=s.context){var P=/\n$/.test(n),C=/\n$/.test(r),_=S.length==0&&f.length>k.oldLines;!P&&_&&n.length>0&&f.splice(k.oldLines,0,"\\ No newline at end of file"),(!P&&!_||!C)&&f.push("\\ No newline at end of file")}c.push(k),u=0,d=0,f=[]}h+=S.length,p+=S.length}},g=0;g<a.length;g++)m(g);return{oldFileName:t,newFileName:e,oldHeader:i,newHeader:o,hunks:c}}function oN(t){if(Array.isArray(t))return t.map(oN).join(` 5085`);var e=[];t.oldFileName==t.newFileName&&e.push("Index: "+t.oldFileName),e.push("==================================================================="),e.push("--- "+t.oldFileName+(typeof t.oldHeader>"u"?"":" "+t.oldHeader)),e.push("+++ "+t.newFileName+(typeof t.newHeader>"u"?"":" "+t.newHeader));for(var n=0;n<t.hunks.length;n++){var r=t.hunks[n];r.oldLines===0&&(r.oldStart-=1),r.newLines===0&&(r.newStart-=1),e.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),e.push.apply(e,r.lines)}return e.join(` 5086`)+` 5087`}function Iee(t,e,n,r,i,o,s){return oN(Aee(t,e,n,r,i,o,s))}function wze(t,e,n,r,i,o){return Iee(t,t,e,n,r,i,o)}var xC={};Object.defineProperty(xC,"__esModule",{value:!0});xC.arrayEqual=Sze;xC.arrayStartsWith=Ree;function Sze(t,e){return t.length!==e.length?!1:Ree(t,e)}function Ree(t,e){if(e.length>t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}Object.defineProperty(SC,"__esModule",{value:!0});SC.calcLineCount=Mee;SC.merge=Ize;var xze=wh,Eze=nb,yI=xC;function Yp(t){return Aze(t)||_ze(t)||Cze(t)||Tze()}function Tze(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5088In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cze(t,e){if(t){if(typeof t=="string")return W4(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W4(t,e)}}function _ze(t){if(typeof Symbol<"u"&&Symbol.iterator in Object(t))return Array.from(t)}function Aze(t){if(Array.isArray(t))return W4(t)}function W4(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Mee(t){var e=G4(t.lines),n=e.oldLines,r=e.newLines;n!==void 0?t.oldLines=n:delete t.oldLines,r!==void 0?t.newLines=r:delete t.newLines}function Ize(t,e,n){t=IB(t,n),e=IB(e,n);var r={};(t.index||e.index)&&(r.index=t.index||e.index),(t.newFileName||e.newFileName)&&(RB(t)?RB(e)?(r.oldFileName=C2(r,t.oldFileName,e.oldFileName),r.newFileName=C2(r,t.newFileName,e.newFileName),r.oldHeader=C2(r,t.oldHeader,e.oldHeader),r.newHeader=C2(r,t.newHeader,e.newHeader)):(r.oldFileName=t.oldFileName,r.newFileName=t.newFileName,r.oldHeader=t.oldHeader,r.newHeader=t.newHeader):(r.oldFileName=e.oldFileName||t.oldFileName,r.newFileName=e.newFileName||t.newFileName,r.oldHeader=e.oldHeader||t.oldHeader,r.newHeader=e.newHeader||t.newHeader)),r.hunks=[];for(var i=0,o=0,s=0,a=0;i<t.hunks.length||o<e.hunks.length;){var l=t.hunks[i]||{oldStart:1/0},c=e.hunks[o]||{oldStart:1/0};if(MB(l,c))r.hunks.push(kB(l,s)),i++,a+=l.newLines-l.oldLines;else if(MB(c,l))r.hunks.push(kB(c,a)),o++,s+=c.newLines-c.oldLines;else{var u={oldStart:Math.min(l.oldStart,c.oldStart),oldLines:0,newStart:Math.min(l.newStart+s,c.oldStart+a),newLines:0,lines:[]};Rze(u,l.oldStart,l.lines,c.oldStart,c.lines),o++,i++,r.hunks.push(u)}}return r}function IB(t,e){if(typeof t=="string"){if(/^@@/m.test(t)||/^Index:/m.test(t))return(0,Eze.parsePatch)(t)[0];
5088if(!e)throw new Error("Must provide a base reference or pass in a patch");return(0,xze.structuredPatch)(void 0,void 0,e,t)}return t}function RB(t){return t.newFileName&&t.newFileName!==t.oldFileName}function C2(t,e,n){return e===n?e:(t.conflict=!0,{mine:e,theirs:n})}function MB(t,e){return t.oldStart<e.oldStart&&t.oldStart+t.oldLines<e.oldStart}function kB(t,e){return{oldStart:t.oldStart,oldLines:t.oldLines,newStart:t.newStart+e,newLines:t.newLines,lines:t.lines}}function Rze(t,e,n,r,i){var o={offset:e,lines:n,index:0},s={offset:r,lines:i,index:0};for(OB(t,o,s),OB(t,s,o);o.index<o.lines.length&&s.index<s.lines.length;){var a=o.lines[o.index],l=s.lines[s.index];if((a[0]==="-"||a[0]==="+")&&(l[0]==="-"||l[0]==="+"))Mze(t,o,s);else if(a[0]==="+"&&l[0]===" "){var c;(c=t.lines).push.apply(c,Yp(nf(o)))}else if(l[0]==="+"&&a[0]===" "){var u;(u=t.lines).push.apply(u,Yp(nf(s)))}else a[0]==="-"&&l[0]===" "?PB(t,o,s):l[0]==="-"&&a[0]===" "?PB(t,s,o,!0):a===l?(t.lines.push(a),o.index++,s.index++):sN(t,nf(o),nf(s))}NB(t,o),NB(t,s),Mee(t)}function Mze(t,e,n){var r=nf(e),i=nf(n);if(DB(r)&&DB(i)){if((0,yI.arrayStartsWith)(r,i)&&LB(n,r,r.length-i.length)){var o;(o=t.lines).push.apply(o,Yp(r));return}else if((0,yI.arrayStartsWith)(i,r)&&LB(e,i,i.length-r.length)){var s;(s=t.lines).push.apply(s,Yp(i));return}}else if((0,yI.arrayEqual)(r,i)){var a;(a=t.lines).push.apply(a,Yp(r));return}sN(t,r,i)}function PB(t,e,n,r){var i=nf(e),o=kze(n,i);if(o.merged){var s;(s=t.lines).push.apply(s,Yp(o.merged))}else sN(t,r?o:i,r?i:o)}function sN(t,e,n){t.conflict=!0,t.lines.push({conflict:!0,mine:e,theirs:n})}function OB(t,e,n){for(;e.offset<n.offset&&e.index<e.lines.length;){var r=e.lines[e.index++];t.lines.push(r),e.offset++}}function NB(t,e){for(;e.index<e.lines.length;){var n=e.lines[e.index++];t.lines.push(n)}}function nf(t){for(var e=[],n=t.lines[t.index][0];t.index<t.lines.length;){var r=t.lines[t.index];if(n==="-"&&r[0]==="+"&&(n="+"),n===r[0])e.push(r),t.index++;else break}return e}function kze(t,e){for(var n=[],r=[],i=0,o=!1,s=!1;i<e.length&&t.index<t.lines.length;){var a=t.lines[t.index],l=e[i];if(l[0]==="+")break;
5088if(o=o||a[0]!==" ",r.push(l),i++,a[0]==="+")for(s=!0;a[0]==="+";)n.push(a),a=t.lines[++t.index];l.substr(1)===a.substr(1)?(n.push(a),t.index++):s=!0}if((e[i]||"")[0]==="+"&&o&&(s=!0),s)return n;for(;i<e.length;)r.push(e[i++]);return{merged:r,changes:n}}function DB(t){return t.reduce(function(e,n){return e&&n[0]==="-"},!0)}function LB(t,e,n){for(var r=0;r<n;r++){var i=e[e.length-n+r].substr(1);if(t.lines[t.index+r]!==" "+i)return!1}return t.index+=n,!0}function G4(t){var e=0,n=0;return t.forEach(function(r){if(typeof r!="string"){var i=G4(r.mine),o=G4(r.theirs);e!==void 0&&(i.oldLines===o.oldLines?e+=i.oldLines:e=void 0),n!==void 0&&(i.newLines===o.newLines?n+=i.newLines:n=void 0)}else n!==void 0&&(r[0]==="+"||r[0]===" ")&&n++,e!==void 0&&(r[0]==="-"||r[0]===" ")&&e++}),{oldLines:e,newLines:n}}var aN={};Object.defineProperty(aN,"__esModule",{value:!0});aN.reversePatch=kee;function zB(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function VB(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?zB(Object(n),!0).forEach(function(r){Pze(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zB(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kee(t){return Array.isArray(t)?t.map(kee).reverse():VB(VB({},t),{},{oldFileName:t.newFileName,oldHeader:t.newHeader,newFileName:t.oldFileName,newHeader:t.oldHeader,hunks:t.hunks.map(function(e){return{oldLines:e.newLines,oldStart:e.newStart,newLines:e.oldLines,newStart:e.oldStart,linedelimiters:e.linedelimiters,lines:e.lines.map(function(n){return n.startsWith("-")?"+".concat(n.slice(1)):n.startsWith("+")?"-".concat(n.slice(1)):n})}})})}var lN={};Object.defineProperty(lN,"__esModule",{value:!0});lN.convertChangesToDMP=Oze;function Oze(t){for(var e=[],n,r,i=0;i<t.length;i++)n=t[i],n.added?r=1:n.removed?r=-1:r=0,e.push([r,n.value]);return e}var cN={};Object.defineProperty(cN,"__esModule",{value:!0});cN.convertChangesToXML=Nze;function Nze(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];r.added?e.push("<ins>"):r.removed&&e.push("<del>"),e.push(Dze(r.value)),r.added?e.push("</ins>"):r.removed&&e.push("</del>")}return e.join("")}function Dze(t){var e=t;return e=e.replace(/&/g,"&"),e=e.replace(/</g,"<"),e=e.replace(/>/g,">"),e=e.replace(/"/g,"""),e}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return o.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return s.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return a.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return a.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return l.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return c.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return c.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return u.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return d.merge}}),Object.defineProperty(t,"reversePatch",{enumerable:!0,get:function(){return f.reversePatch}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return h.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return h.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return h.createPatch}}),Object.defineProperty(t,"formatPatch",{enumerable:!0,get:function(){return h.formatPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return p.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return m.convertChangesToXML}});var e=g(fc),n=Qv,r=Tg,i=pd,o=Zv,s=eb,a=Cg,l=tb,c=wC,u=nb,d=SC,f=aN,h=wh,p=lN,m=cN;function g(y){return y&&y.__esModule?y:{default:y}}})(See);var Lze=an&&an.__createBinding||(Object.create?function(t,e,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){r===void 0&&(r=n),t[r]=e[n]}),zze=an&&an.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Vze=an&&an.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&Lze(e,t,n);return zze(e,t),e};
5088Object.defineProperty(ku,"__esModule",{value:!0});ku.computeLineInformation=ku.DiffMethod=ku.DiffType=void 0;const K4=Vze(See),Bze=K4;var Ll;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ADDED=1]="ADDED",t[t.REMOVED=2]="REMOVED",t[t.CHANGED=3]="CHANGED"})(Ll||(ku.DiffType=Ll={}));var xx;(function(t){t.CHARS="diffChars",t.WORDS="diffWords",t.WORDS_WITH_SPACE="diffWordsWithSpace",t.LINES="diffLines",t.TRIMMED_LINES="diffTrimmedLines",t.SENTENCES="diffSentences",t.CSS="diffCss",t.JSON="diffJson"})(xx||(ku.DiffMethod=xx={}));const BB=t=>t===""?[]:t.replace(/\n$/,"").split(` 5089`),$ze=(t,e,n=xx.CHARS)=>{const r=Bze[n](t,e),i={left:[],right:[]};return r.forEach(({added:o,removed:s,value:a})=>{const l={};return o&&(l.type=Ll.ADDED,l.value=a,i.right.push(l)),s&&(l.type=Ll.REMOVED,l.value=a,i.left.push(l)),!s&&!o&&(l.type=Ll.DEFAULT,l.value=a,i.right.push(l),i.left.push(l)),l}),i},Fze=(t,e,n=!1,r=xx.CHARS,i=0,o=[])=>{let s=[];typeof t=="string"&&typeof e=="string"?s=K4.diffLines(t.trimRight(),e.trimRight(),{newlineIsToken:!1,ignoreWhitespace:!1,ignoreCase:!1}):s=K4.diffJson(t,e);let a=i,l=i,c=[],u=0;const d=[],f=[],h=(p,m,g,y,b)=>BB(p).map((S,I)=>{const O={},T={};if(!(f.includes(`${m}-${I}`)||b&&I!==0)){if(g||y){let A=!0;if(y){l+=1,O.lineNumber=l,O.type=Ll.REMOVED,O.value=S||" ";const R=s[m+1];if(R&&R.added){const k=BB(R.value)[I];if(k){const P=h(k,m,!0,!1,!0),{value:C,lineNumber:_,type:M}=P[0].right;if(f.push(`${m+1}-${I}`),T.lineNumber=_,O.value===C)A=!1,T.type=0,O.type=0,T.value=C;else if(T.type=M,n)T.value=C;else{const V=$ze(S,C,r);T.value=V.right,O.value=V.left}}}}else a+=1,T.lineNumber=a,T.type=Ll.ADDED,T.value=S;A&&!b&&(d.includes(u)||d.push(u))}else l+=1,a+=1,O.lineNumber=l,O.type=Ll.DEFAULT,O.value=S,T.lineNumber=a,T.type=Ll.DEFAULT,T.value=S;return(o!=null&&o.includes(`L-${O.lineNumber}`)||o!=null&&o.includes(`R-${T.lineNumber}`)&&!d.includes(u))&&d.push(u),b||(u+=1),{right:T,left:O}}}).filter(Boolean);return s.forEach(({added:p,removed:m,value:g},y)=>{c=[...c,...h(g,y,p,m)]}),{lineInformation:c,diffLines:d}};ku.computeLineInformation=Fze;var uN={};function $B(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function FB(t,e,n){var r=[],i=XE(t,r,n);return r.length<2?n:i+e(r)}var jze=function(e){var n=Yk(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var r=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Tu(c,n.registered,void 0);return QE(n,d,!1),n.key+"-"+d.name},i=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Tu(c,n.registered),f="animation-"+d.name;return $B(n,{name:d.name,styles:"@keyframes "+f+"{"+d.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];var d=Tu(c,n.registered);$B(n,d)},s=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return FB(n.registered,r,Hze(c))};return{css:r,cx:s,injectGlobal:o,keyframes:i,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:XE.bind(null,n.registered),merge:FB.bind(null,n.registered,r)}},Hze=function t(e){for(var n="",r=0;r<e.length;r++){var i=e[r];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=t(i);else{o="";for(var s in i)i[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=i}o&&(n&&(n+=" "),n+=o)}}return n};const Uze=Object.freeze(Object.defineProperty({__proto__:null,default:jze},Symbol.toStringTag,{value:"Module"})),qze=J$(Uze);var Wze=an&&an.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n},Gze=an&&an.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(uN,"__esModule",{value:!0});const Kze=Gze(qze);uN.default=(t,e=!1,n="")=>{const{variables:r={}}=t,i=Wze(t,["variables"]),o={light:Object.assign({diffViewerBackgroun
5089d:"#fff",diffViewerColor:"#212529",addedBackground:"#e6ffed",addedColor:"#24292e",removedBackground:"#ffeef0",removedColor:"#24292e",changedBackground:"#fffbdd",wordAddedBackground:"#acf2bd",wordRemovedBackground:"#fdb8c0",addedGutterBackground:"#cdffd8",removedGutterBackground:"#ffdce0",gutterBackground:"#f7f7f7",gutterBackgroundDark:"#f3f1f1",highlightBackground:"#fffbdd",highlightGutterBackground:"#fff5b1",codeFoldGutterBackground:"#dbedff",codeFoldBackground:"#f1f8ff",emptyLineBackground:"#fafbfc",gutterColor:"#212529",addedGutterColor:"#212529",removedGutterColor:"#212529",codeFoldContentColor:"#212529",diffViewerTitleBackground:"#fafbfc",diffViewerTitleColor:"#212529",diffViewerTitleBorderColor:"#eee"},r.light||{}),dark:Object.assign({diffViewerBackground:"#2e303c",diffViewerColor:"#FFF",addedBackground:"#044B53",addedColor:"white",removedBackground:"#632F34",removedColor:"white",changedBackground:"#3e302c",wordAddedBackground:"#055d67",wordRemovedBackground:"#7d383f",addedGutterBackground:"#034148",removedGutterBackground:"#632b30",gutterBackground:"#2c2f3a",gutterBackgroundDark:"#262933",highlightBackgroun
5089d:"#2a3967",highlightGutterBackground:"#2d4077",codeFoldGutterBackground:"#21232b",codeFoldBackground:"#262831",emptyLineBackground:"#363946",gutterColor:"#666c87",addedGutterColor:"#8c8c8c",removedGutterColor:"#8c8c8c",codeFoldContentColor:"#656a8b",diffViewerTitleBackground:"#2f323e",diffViewerTitleColor:"#555a7b",diffViewerTitleBorderColor:"#353846"},r.dark||{})},s=e?o.dark:o.light,{css:a,cx:l}=(0,Kze.default)({key:"react-diff",nonce:n}),c=a({width:"100%",label:"content"}),u=a({[`.${c}`]:{width:"50%"},label:"split-view"}),d=a({width:"100%",background:s.diffViewerBackground,pre:{margin:0,whiteSpace:"pre-wrap",lineHeight:"25px"},label:"diff-container",borderCollapse:"collapse"}),f=a({color:s.codeFoldContentColor,label:"code-fold-content"}),h=a({color:s.diffViewerColor,label:"content-text"}),p=a({background:s.diffViewerTitleBackground,padding:10,borderBottom:`1px solid ${s.diffViewerTitleBorderColor}`,label:"title-block",":last-child":{borderLeft:`1px solid ${s.diffViewerTitleBorderColor}`},[`.${h}`]:{color:s.diffViewerTitleColor}}),m=a({color:s.gutterColor,label:"line-number"}),g=a({background:s.removedBackground,color:s.removedColor,pre:{color:s.removedColor},[`.${m}`]:{color:s.removedGutterColor},label:"diff-removed"}),y=a({background:s.addedBackground,color:s.addedColor,pre:{color:s.addedColor},[`.${m}`]:{color:s.addedGutterColor},label:"diff-added"}),b=a({background:s.changedBackground,[`.${m}`]:{color:s.gutterColor},label:"diff-changed"}),v=a({padding:2,display:"inline-flex",borderRadius:4,wordBreak:"break-all",label:"word-diff"}),S=a({background:s.wordAddedBackground,label:"word-added"}),I=a({background:s.wordRemovedBackground,label:"word-removed"}),O=a({backgroundColor:s.codeFoldGutterBackground,label:"code-fold-gutter"}),T=a({backgroundColor:s.codeFoldBackground,height:40,fontSize:14,fontWeight:700,label:"code-fold",a:{textDecoration:"underline !important",cursor:"pointer",pre:{display:"inline"}}}),A=a({backgroundColor:s.emptyLineBackground,label:"empty-line"}),R=a({width:25,paddingLeft:10,paddingRight:10,userSelect:"none",label:"marker",[`&.${y}`]:{pre:{color:s.addedColor}},[`&.${g}`]:{pre:{color:s.removedColor}}}
5089),k=a({background:s.highlightBackground,label:"highlighted-line",[`.${S}, .${I}`]:{backgroundColor:"initial"}}),P=a({label:"highlighted-gutter"}),C=a({userSelect:"none",minWidth:50,padding:"0 10px",whiteSpace:"nowrap",label:"gutter",textAlign:"right",background:s.gutterBackground,"&:hover":{cursor:"pointer",background:s.gutterBackgroundDark,pre:{opacity:1}},pre:{opacity:.5},[`&.${y}`]:{background:s.addedGutterBackground},[`&.${g}`]:{background:s.removedGutterBackground},[`&.${P}`]:{background:s.highlightGutterBackground,"&:hover":{background:s.highlightGutterBackground}}}),_=a({"&:hover":{background:s.gutterBackground,cursor:"initial"},label:"empty-gutter"}),M=a({verticalAlign:"baseline",label:"line"}),V={diffContainer:d,diffRemoved:g,diffAdded:y,diffChanged:b,splitView:u,marker:R,highlightedGutter:P,highlightedLine:k,gutter:C,line:M,wordDiff:v,wordAdded:S,wordRemoved:I,codeFoldGutter:O,codeFold:T,emptyGutter:_,emptyLine:A,lineNumber:m,contentText:h,content:c,codeFoldContent:f,titleBlock:p},N=Object.keys(i).reduce((z,L)=>Object.assign(Object.assign({},z),{[L]:a(i[L])}),{});return Object.keys(V).reduce((z,L)=>Object.assign(Object.assign({},z),{[L]:N[L]?l(V[L],N[L]):V[L]}),{})};var EC={};Object.defineProperty(EC,"__esModule",{value:!0});EC.computeHiddenBlocks=void 0;function Yze(t,e,n){let r=0,i,o={},s=[];return t.forEach((a,l)=>{const c=e.some(u=>u>=l-n&&u<=l+n);!c&&i==null?(i={index:r,startLine:l,endLine:l,lines:1},s.push(i),o[l]=i.index,r++):c?i=void 0:(i.endLine=l,i.lines++,o[l]=i.index)}),{lineBlocks:o,blocks:s}}EC.computeHiddenBlocks=Yze;var jB=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function Xze(t,e){return!!(t===e||jB(t)&&jB(e))}function Qze(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!Xze(t[n],e[n]))return!1;return!0}function Jze(t,e){e===void 0&&(e=Qze);var n=null;function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];if(n&&n.lastThis===this&&e(i,n.lastArgs))return n.lastResult;var s=t.apply(this,i);return n={lastResult:s,lastArgs:i,lastThis:this},s}return r.clear=function(){n=null},r}const Zze=Object.freeze(Object.defineProperty({__proto__:null,default:Jze},Symbol.toStringTag,{value:"Module"})),eVe=J$(Zze);(function(t){var e=an&&an.__createBinding||(Object.create?function(m,g,y,b){b===void 0&&(b=y);var v=Object.getOwnPropertyDescriptor(g,y);(!v||("get"in v?!g.__esModule:v.writable||v.configurable))&&(v={enumerable:!0,get:function(){return g[y]}}),Object.defineProperty(m,b,v)}:function(m,g,y,b){b===void 0&&(b=y),m[b]=g[y]}),n=an&&an.__setModuleDefault||(Object.create?function(m,g){Object.defineProperty(m,"default",{enumerable:!0,value:g})}:function(m,g){m.default=g}),r=an&&an.__importStar||function(m){if(m&&m.__esModule)return m;var g={};if(m!=null)for(var y in m)y!=="default"&&Object.prototype.hasOwnProperty.call(m,y)&&e(g,m,y);return n(g,m),g},i=an&&an.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiffMethod=t.LineNumberPrefix=void 0;const o=x,s=r(E),a=i(bee),l=ku;Object.defineProperty(t,"DiffMethod",{enumerable:!0,get:function(){return l.DiffMethod}});const c=i(uN),u=EC,d=eVe,f=d.default||d;var h;(function(m){m.LEFT="L",m.RIGHT="R"})(h||(t.LineNumberPrefix=h={}));class p extends s.Component{constructor(g){super(g),this.resetCodeBlocks=()=>this.state.expandedBlocks.length>0?(this.setState({expandedBlocks:[]}),!0):!1,this.onBlockExpand=y=>{const b=this.state.expandedBlocks.slice();b.push(y),this.setState({expandedBlocks:b})},this.computeStyles=f(c.default),this.onLineNumberClickProxy=y=>this.props.onLineNumberClick?b=>this.props.onLineNumberClick(y,b):()=>{},this.renderWordDiff=(y,b)=>y.map((v,S)=>(0,o.jsx)("span",{className:(0,a.default)(this.styles.wordDiff,{[this.styles.wordAdded]:v.type===l.DiffType.ADDED,[this.styles.wordRemoved]:v.type===l.DiffType.REMOVED}),children:b?b(v.value):v.value},S)),this.renderLine=(y,b,v,S,I,O)=>{const T=`${v}-${y}`,A=`${O}-${I}`,R=this.props.highlightLines.includes(T)||this.props.highlightLines.includes(A),k=b===l.DiffType.ADDED,P=b===l.DiffType.REMOVED,C=b===l.DiffType.CHANGED;let _;return Array.isArray(S)?_=this.renderWordDiff(S,this.props.renderContent):this.props.renderContent?_=this.props.renderContent(S):_=S,(0,o.jsxs)(s.Fragment,{children:[!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:y&&this.onLineNumberClickProxy(T),className:(0,a.default)(this.styles.gutter,{[this.styles.emptyGutter]:!y,[this.styles.diffAdded]:k,[this.styles.diffRemoved]:P,[this.styles.diffChanged]:C,[this.styles.highlightedGutter]:R}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:y})}),!this.props.splitView&&!this.props.hideLineNumbers&&(0,o.jsx)("td",{onClick:I&&this.onLineNumberClickProxy(A),className:(0,a.default)(this.styles.gutter,{[this.styles.emptyGutter]:!I,[this.styles.diffAdded]:k,[this.styles.diffRemoved]:P,[this.styles.diffChanged]:C,[this.styles.highlightedGutter]:R}),children:(0,o.jsx)("pre",{className:this.styles.lineNumber,children:I})}),this.props.renderGutter?this.props.renderGutter({lineNumber:y,type:b,prefix:v,value:S,additionalLineNumber:I,additionalPrefix:O,styles:this.styles}):null,!this.props.hideMarkers&&(0,o.jsx)("td",{className:(0,a.default)(this.styles.marker,{[this.styles.emptyLine]:!_,[this.styles.diffAdded]:k,[this.styles.diffRemoved]:P,[this.styles.diffChanged]:C,[this.styles.highlightedLine]:R}),children:(0,o.jsxs)("pre",{children:[k&&"+",P&&"-"]})}),(0,o.jsx)("td",{className:(0,a.default)(this.styles.content,{[this.styles.emptyLine]:!_,[this.styles.diffAdded]:k,[this.styles.diffRemoved]:P,[this.styles.diffChanged]:C,[this.styles.highlightedLine]:R}),children:(0,o.jsx)("pre",{className:this.styles.contentText,children:_})})]})},this.renderSplitView=({left:y,right:b},v)=>(0,o.jsxs)("tr",{className:this.styles.line,children:[this.renderLine(y.lineNumber,y.type,h.LEFT,y.value),this.renderLine(b.lineNumber,b.type,h.RIGHT,b.value)]},v),this.renderInlineView=({left:y,right:b},v)=>{let S;return y.type===l.DiffType.REMOVED&&b.type===l.DiffType.ADDED?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(y.lineNumber,y.type,h.LEFT,y.value,null)}),(0,o.jsx)("tr",{className:this.styles.line,children:this.renderLine(null,b.type,h.RIGHT,b.value,b.lineNumber)})]},v):(y.type===l.DiffType.REMOVED&&(S=this.renderLine(y.lineNumber,y.type,h.LEFT,y.value,null)),y.type===l.DiffType.DEFAULT&&(S=this.renderLine(y.lineNumber,y.type,h.LEFT,y.value,b.lineNumber,h.RIGHT)),b.type===l.DiffType.ADDED&&(S=this.renderLine(null,b.type,h.RIGHT,b.value,b.lineNumber)),(0,o.jsx)("tr",{className:this.styles.line,children:S},v))},this.onBlockClickProxy=y=>()=>this.onBlockExpand(y),this.renderSkippedLineIndicator=(y,b,v,S)=>{const{hideLineNumbers:I,splitView:O}=this.props,T=this.props.codeFoldMessageRenderer?this.props.codeFoldMessageRenderer(y,v,S):(0,o.jsxs)("pre",{className:this.styles.codeFoldContent,children:["Expand ",y," lines ..."]}),A=(0,o.jsx)("td",{children:(0,o.jsx)("a",{onClick:this.onBlockClickProxy(b),tabIndex:0,children:T})}),R=!O&&!I;return(0,o.jsxs)("tr",{className:this.styles.codeFold,children:[!I&&(0,o.jsx)("td",{className:this.styles.codeFoldGutter}),this.props.renderGutter?(0,o.jsx)("td",{className:this.styles.codeFoldGutter}):null,(0,o.jsx)("td",{className:(0,a.default)({[this.styles.codeFoldGutter]:R})}),R?(0,o.jsxs)(s.Fragment,{children:[(0,o.jsx)("td",{}),A]}):(0,o.jsxs)(s.Fragment,{children:[A,this.props.renderGutter?(0,o.jsx)("td",{}):null,(0,o.jsx)("td",{})]}),(0,o.jsx)("td",{}),(0,o.jsx)("td",{})]},`${v}-${S}`)},this.renderDiff=()=>{const{oldValue:y,newValue:b,splitView:v,disableWordDiff:S,compareMethod:I,linesOffset:O}=this.props,{lineInformation:T,diffLines:A}=(0,l.computeLineInformation)(y,b,S,I,O,this.props.alwaysShowLine
5089s),R=this.props.extraLinesSurroundingDiff<0?0:Math.round(this.props.extraLinesSurroundingDiff),{lineBlocks:k,blocks:P}=(0,u.computeHiddenBlocks)(T,A,R);return T.map((C,_)=>{if(this.props.showDiffOnly){const V=k[_];if(V!==void 0){const N=P[V].endLine===_;if(!this.state.expandedBlocks.includes(V)&&N)return(0,o.jsx)(s.Fragment,{children:this.renderSkippedLineIndicator(P[V].lines,V,C.left.lineNumber,C.right.lineNumber)},_);if(!this.state.expandedBlocks.includes(V))return null}}return v?this.renderSplitView(C,_):this.renderInlineView(C,_)})},this.render=()=>{const{oldValue:y,newValue:b,useDarkTheme:v,leftTitle:S,rightTitle:I,splitView:O,hideLineNumbers:T,hideMarkers:A,nonce:R}=this.props;if(this.props.compareMethod!==l.DiffMethod.JSON&&(typeof y!="string"||typeof b!="string"))throw Error('"oldValue" and "newValue" should be strings');this.styles=this.computeStyles(this.props.styles,v,R);const k=this.renderDiff();let P=T?2:3,C=T?2:4;A&&(P-=1,C-=1);const _=this.props.renderGutter?1:0,M=(S||I)&&(0,o.jsxs)("tr",{children:[(0,o.jsx)("td",{colSpan:(O?P:C)+_,className:this.styles.titleBlock,children:(0,o.jsx)("pre",{className:this.styles.contentText,children:S})}),O&&(0,o.jsx)("td",{colSpan:P+_,className:this.styles.titleBlock,children:(0,o.jsx)("pre",{className:this.styles.contentText,children:I})})]});return(0,o.jsx)("table",{className:(0,a.default)(this.styles.diffContainer,{[this.styles.splitView]:O}),children:(0,o.jsxs)("tbody",{children:[M,k]})})},this.state={expandedBlocks:[]}}}p.defaultProps={oldValue:"",newValue:"",splitView:!0,highlightLines:[],disableWordDiff:!1,compareMethod:l.DiffMethod.CHARS,styles:{},hideLineNumbers:!1,hideMarkers:!1,extraLinesSurroundingDiff:3,showDiffOnly:!0,useDarkTheme:!1,linesOffset:0,nonce:""},t.default=p})(wee);const Ftt=Ts(wee),Pee=["top","right","bottom","left"],HB=["start","end"],UB=Pee.reduce((t,e)=>t.concat(e,e+"-"+HB[0],e+"-"+HB[1]),[]),Ga=Math.min,Ai=Math.max,Ex=Math.round,La=t=>({x:t,y:t}
vendor: 7,019 bytes, line 5089
5089),tVe={left:"right",right:"left",bottom:"top",top:"bottom"};function Y4(t,e,n){return Ai(t,Ga(e,n))}function hc(t,e){return typeof t=="function"?t(e):t}function Es(t){return t.split("-")[0]}function Gs(t){return t.split("-")[1]}function Oee(t){return t==="x"?"y":"x"}function dN(t){return t==="y"?"height":"width"}function Ia(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function fN(t){return Oee(Ia(t))}function Nee(t,e,n){n===void 0&&(n=!1);const r=Gs(t),i=fN(t),o=dN(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Cx(s)),[s,Cx(s)]}function nVe(t){const e=Cx(t);return[Tx(t),e,Tx(e)]}function Tx(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const qB=["left","right"],WB=["right","left"],rVe=["top","bottom"],iVe=["bottom","top"];function oVe(t,e,n){switch(t){case"top":case"bottom":return n?e?WB:qB:e?qB:WB;case"left":case"right":return e?rVe:iVe;default:return[]}}function sVe(t,e,n,r){const i=Gs(t);let o=oVe(Es(t),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(Tx)))),o}function Cx(t){const e=Es(t);return tVe[e]+t.slice(e.length)}function aVe(t){return{top:0,right:0,bottom:0,left:0,...t}}function hN(t){return typeof t!="number"?aVe(t):{top:t,right:t,bottom:t,left:t}}function Fm(t){const{x:e,y:n,width:r,height:i}=t;return{width:r,height:i,top:n,left:e,right:e+r,bottom:n+i,x:e,y:n}}function GB(t,e,n){let{reference:r,floating:i}=t;const o=Ia(e),s=fN(e),a=dN(s),l=Es(e),c=o==="y",u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Gs(e)){case"start":h[s]-=f*(n&&c?-1:1);break;case"end":h[s]+=f*(n&&c?-1:1);break}return h}async function lVe(t,e){var n;e===void 0&&(e={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=hc(e,t),p=hN(h),g=a[f?d==="floating"?"reference":"floating":d],y=Fm(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),b=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))?await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1}:{x:1,y:1},I=Fm(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:b,offsetParent:v,strategy:l}):b);return{top:(y.top-I.top+p.top)/S.y,bottom:(I.bottom-y.bottom+p.bottom)/S.y,left:(y.left-I.left+p.left)/S.x,right:(I.right-y.right+p.right)/S.x}}const cVe=50,uVe=async(t,e,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:lVe},l=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=GB(c,r,l),f=r,h=0;const p={};for(let m=0;m<o.length;m++){const g=o[m];if(!g)continue;const{name:y,fn:b}=g,{x:v,y:S,data:I,reset:O}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,p[y]={...p[y],...I},O&&h<cVe&&(h++,typeof O=="object"&&(O.placement&&(f=O.placement),O.rects&&(c=O.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):O.rects),{x:u,y:d}=GB(c,f,l)),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}},dVe=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:l}=e,{element:c,padding:u=0}=hc(t,e)||{};if(c==null)return{};const d=hN(u),f={x:n,y:r},h=fN(i),p=dN(h),m=await s.getDimensions(c),g=h==="y",y=g?"top":"left",b=g?"bottom":"right",v=g?"clientHeight":"clientWidth",S=o.reference[p]+o.reference[h]-f[h]-o.floating[p],I=f[h]-o.reference[h],O=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let T=O?O[v]:0;(!T||!await(s.isElement==null?void 0:s.isElement(O)))&&(T=a.floating[v]||o.floating[p]);const A=S/2-I/2,R=T/2-m[p]/2-1,k=Ga(d[y],R),P=Ga(d[b],R),C=k,_=T-m[p]-P,M=T/2-m[p]/2+A,V=Y4(C,M,_),N=!l.arrow&&Gs(i)!=null&&M!==V&&o.reference[p]/2-(M<C?k:P)-m[p]/2<0,z=N?M<C?M-C:M-_:0;return{[h]:f[h]+z,data:{[h]:V,centerOffset:M-V-z,...N&&{alignmentOffset:z}},reset:N}}});function fVe(t,e,n){return(t?[...n.filter(i=>Gs(i)===t),...n.filter(i=>Gs(i)!==t)]:n.filter(i=>Es(i)===i)).filter(i=>t?Gs(i)===t||(e?Tx(i)!==i:!1):!0)}const hVe=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var n,r,i;const{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:f=UB,autoAlignment:h=!0,...p}=hc(t,e),m=d!==void 0||f===UB?fVe(d||null,h,f):f,g=await l.detectOverflow(e,p),y=((n=s.autoPlacement)==null?void 0:n.index)||0,b=m[y];if(b==null)return{};const v=Nee(b,o,await(l.isRTL==null?void 0:l.isRTL(c.floating)));if(a!==b)return{reset:{placement:m[0]}};const S=[g[Es(b)],g[v[0]],g[v[1]]],I=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:b,overflows:S}],O=m[y+1];if(O)return{data:{index:y+1,overflows:I},reset:{placement:O}};const T=I.map(k=>{const P=Gs(k.placement);return[k.placement,P&&u?k.overflows.slice(0,2).reduce((C,_)=>C+_,0):k.overflows[0],k.overflows]}).sort((k,P)=>k[1]-P[1]),R=((i=T.filter(k=>k[2].slice(0,Gs(k[0])?2:3).every(P=>P<=0))[0])==null?void 0:i[0])||T[0][0];return R!==a?{data:{index:y+1,overflows:I},reset:{placement:R}}:{}}}},pVe=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=hc(t,e);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const y=Es(i),b=Ia(a),v=Es(a)===a,S=await(l.isRTL==null?void 0:l.isRTL(c.floating)),I=f||(v||!m?[Cx(a)]:nVe(a)),O=p!=="none";!f&&O&&I.push(...sVe(a,m,p,S));const T=[a,...I],A=await l.detectOverflow(e,g),R=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(u&&R.push(A[y]),d){const M=Nee(i,s,S);R.push(A[M[0]],A[M[1]])}if(k=[...k,{placement:i,overflows:R}],!R.every(M=>M<=0)){var P,C;const M=(((P=o.flip)==null?void 0:P.index)||0)+1,V=T[M];if(V&&(!(d==="alignment"?b!==Ia(V):!1)||k.every(L=>Ia(L.placement)===b?L.overflows[0]>0:!0)))return{data:{index:M,overflows:k},reset:{placement:V}};let N=(C=k.filter(z=>z.overflows[0]<=0).sort((z,L)=>z.overflows[1]-L.overflows[1])[0])==null?void 0:C.placement;if(!N)switch(h){case"bestFit":{var _;const z=(_=k.filter(L=>{if(O){const B=Ia(L.placement);return B===b||B==="y"}return!0}).map(L=>
vendor: 4,733 bytes, line 5089
5089[L.placement,L.overflows.filter(B=>B>0).reduce((B,j)=>B+j,0)]).sort((L,B)=>L[1]-B[1])[0])==null?void 0:_[0];z&&(N=z);break}case"initialPlacement":N=a;break}if(i!==N)return{reset:{placement:N}}}return{}}}};function KB(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function YB(t){return Pee.some(e=>t[e]>=0)}const mVe=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:i="referenceHidden",...o}=hc(t,e);switch(i){case"referenceHidden":{const s=await r.detectOverflow(e,{...o,elementContext:"reference"}),a=KB(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:YB(a)}}}case"escaped":{const s=await r.detectOverflow(e,{...o,altBoundary:!0}),a=KB(s,n.floating);return{data:{escapedOffsets:a,escaped:YB(a)}}}default:return{}}}}};function Dee(t){const e=Ga(...t.map(o=>o.left)),n=Ga(...t.map(o=>o.top)),r=Ai(...t.map(o=>o.right)),i=Ai(...t.map(o=>o.bottom));return{x:e,y:n,width:r-e,height:i-n}}function gVe(t){const e=t.slice().sort((i,o)=>i.y-o.y),n=[];let r=null;for(let i=0;i<e.length;i++){const o=e[i];!r||o.y-r.y>r.height/2?n.push([o]):n[n.length-1].push(o),r=o}return n.map(i=>Fm(Dee(i)))}const yVe=function(t){return t===void 0&&(t={}),{name:"inline",options:t,async fn(e){const{placement:n,elements:r,rects:i,platform:o,strategy:s}=e,{padding:a=2,x:l,y:c}=hc(t,e),u=Array.from(await(o.getClientRects==null?void 0:o.getClientRects(r.reference))||[]),d=gVe(u),f=Fm(Dee(u)),h=hN(a);function p(){if(d.length===2&&d[0].left>d[1].right&&l!=null&&c!=null)return d.find(g=>l>g.left-h.left&&l<g.right+h.right&&c>g.top-h.top&&c<g.bottom+h.bottom)||f;if(d.length>=2){if(Ia(n)==="y"){const k=d[0],P=d[d.length-1],C=Es(n)==="top",_=k.top,M=P.bottom,V=C?k.left:P.left,N=C?k.right:P.right,z=N-V,L=M-_;return{top:_,bottom:M,left:V,right:N,width:z,height:L,x:V,y:_}}const g=Es(n)==="left",y=Ai(...d.map(k=>k.right)),b=Ga(...d.map(k=>k.left)),v=d.filter(k=>g?k.left===b:k.right===y),S=v[0].top,I=v[v.length-1].bottom,O=b,T=y,A=T-O,R=I-S;return{top:S,bottom:I,left:O,right:T,width:A,height:R,x:O,y:S}}return f}const m=await o.getElementRects({reference:{getBoundingClientRect:p},floating:r.floating,strategy:s});return i.reference.x!==m.reference.x||i.reference.y!==m.reference.y||i.reference.width!==m.reference.width||i.reference.height!==m.reference.height?{reset:{rects:m}}:{}}}},vVe=new Set(["left","top"]);async function bVe(t,e){const{placement:n,platform:r,elements:i}=t,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Es(n),a=Gs(n),l=Ia(n)==="y",c=vVe.has(s)?-1:1,u=o&&l?-1:1,d=hc(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof p=="number"&&(h=a==="end"?p*-1:p),l?{x:h*u,y:f*c}:{x:f*c,y:h*u}}const wVe=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=e,l=await bVe(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},SVe=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:i,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:b,y:v}=y;return{x:b,y:v}}},...c}=hc(t,e),u={x:n,y:r},d=await o.detectOverflow(e,c),f=Ia(Es(i)),h=Oee(f);let p=u[h],m=u[f];if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",v=p+d[y],S=p-d[b];p=Y4(v,p,S)}if(a){const y=f==="y"?"top":"left",b=f==="y"?"bottom":"right",v=m+d[y],S=m-d[b];m=Y4(v,m,S)}const g=l.fn({...e,[h]:p,[f]:m});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[f]:a}}}}}},xVe=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:i,rects:o,platform:s,elements:a}=e,{apply:l=()=>{},...c}=hc(t,e),u=await s.detectOverflow(e,c),d=Es(i),f=Gs(i),h=Ia(i)==="y",{width:p,height:m}=o.floating;let g,y;d==="top"||d==="bottom"?(g=d,y=f===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,g=f==="end"?"top":"bottom");const b=m-u.top-u.bottom,v=p-u.left-u.right,S=Ga(m-u[g],b),I=Ga(p-u[y],v),O=!e.middlewareData.shift;let T=S,A=I;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(A=v),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(T=b),O&&!f){const k=Ai(u.left,0),P=Ai(u.right,0),C=Ai(u.top,0),_=Ai(u.bottom,0);h?A=p-2*(k!==0||P!==0?k+P:Ai(u.left,u.right)):T=m-2*(C!==0||_!==0?C+_:Ai(u.top,u.bottom))}await l({...e,availableWidth:A,availableHeight:T});const R=await s.getDimensions(a.floating);return p!==R.width||m!==R.height?{reset:{rects:!0}}:{}}}};function TC(){return typeof window<"u"}
vendor: 2,824 bytes, line 5089
5089function _g(t){return Lee(t)?(t.nodeName||"").toLowerCase():"#document"}function No(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function pc(t){var e;return(e=(Lee(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Lee(t){return TC()?t instanceof Node||t instanceof No(t).Node:!1}function Xs(t){return TC()?t instanceof Element||t instanceof No(t).Element:!1}function mc(t){return TC()?t instanceof HTMLElement||t instanceof No(t).HTMLElement:!1}function XB(t){return!TC()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof No(t).ShadowRoot}function rb(t){const{overflow:e,overflowX:n,overflowY:r,display:i}=Qs(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&i!=="inline"&&i!=="contents"}function EVe(t){return/^(table|td|th)$/.test(_g(t))}function CC(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const TVe=/transform|translate|scale|rotate|perspective|filter/,CVe=/paint|layout|strict|content/,Ad=t=>!!t&&t!=="none";let vI;function pN(t){const e=Xs(t)?Qs(t):t;return Ad(e.transform)||Ad(e.translate)||Ad(e.scale)||Ad(e.rotate)||Ad(e.perspective)||!mN()&&(Ad(e.backdropFilter)||Ad(e.filter))||TVe.test(e.willChange||"")||CVe.test(e.contain||"")}function _Ve(t){let e=Ku(t);for(;mc(e)&&!jm(e);){if(pN(e))return e;if(CC(e))return null;e=Ku(e)}return null}function mN(){return vI==null&&(vI=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),vI}function jm(t){return/^(html|body|#document)$/.test(_g(t))}function Qs(t){return No(t).getComputedStyle(t)}function _C(t){return Xs(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ku(t){if(_g(t)==="html")return t;const e=t.assignedSlot||t.parentNode||XB(t)&&t.host||pc(t);return XB(e)?e.host:e}function zee(t){const e=Ku(t);return jm(e)?t.ownerDocument?t.ownerDocument.body:t.body:mc(e)&&rb(e)?e:zee(e)}function Vee(t,e,n){var r;e===void 0&&(e=[]);const i=zee(t),o=i===((r=t.ownerDocument)==null?void 0:r.body),s=No(i);return o?(X4(s),e.concat(s,s.visualViewport||[],rb(i)?i:[],[])):e.concat(i,Vee(i,[]))}function X4(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Bee(t){const e=Qs(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=mc(t),o=i?t.offsetWidth:n,s=i?t.offsetHeight:r,a=Ex(n)!==o||Ex(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function $ee(t){return Xs(t)?t:t.contextElement}function Xp(t){const e=$ee(t);if(!mc(e))return La(1);const n=e.getBoundingClientRect(),{width:r,height:i,$:o}=Bee(e);let s=(o?Ex(n.width):n.width)/r,a=(o?Ex(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const AVe=La(0);function Fee(t){const e=No(t);
vendor: 4,534 bytes, line 5089
5089return!mN()||!e.visualViewport?AVe:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function IVe(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==No(t)?!1:e}function Y0(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),o=$ee(t);let s=La(1);e&&(r?Xs(r)&&(s=Xp(r)):s=Xp(t));const a=IVe(o,n,r)?Fee(o):La(0);let l=(i.left+a.x)/s.x,c=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(o){const f=No(o),h=r&&Xs(r)?No(r):r;let p=f,m=X4(p);for(;m&&r&&h!==p;){const g=Xp(m),y=m.getBoundingClientRect(),b=Qs(m),v=y.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,S=y.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=v,c+=S,p=No(m),m=X4(p)}}return Fm({width:u,height:d,x:l,y:c})}function AC(t,e){const n=_C(t).scrollLeft;return e?e.left+n:Y0(pc(t)).left+n}function jee(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-AC(t,n),i=n.top+e.scrollTop;return{x:r,y:i}}function RVe(t){let{elements:e,rect:n,offsetParent:r,strategy:i}=t;const o=i==="fixed",s=pc(r),a=e?CC(e.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},c=La(1);const u=La(0),d=mc(r);if((d||!d&&!o)&&((_g(r)!=="body"||rb(s))&&(l=_C(r)),d)){const h=Y0(r);c=Xp(r),u.x=h.x+r.clientLeft,u.y=h.y+r.clientTop}const f=s&&!d&&!o?jee(s,l):La(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}}function MVe(t){return Array.from(t.getClientRects())}function kVe(t){const e=pc(t),n=_C(t),r=t.ownerDocument.body,i=Ai(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),o=Ai(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+AC(t);const a=-n.scrollTop;return Qs(r).direction==="rtl"&&(s+=Ai(e.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}const QB=25;function PVe(t,e){const n=No(t),r=pc(t),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=mN();(!u||u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=AC(r);if(c<=0){const u=r.ownerDocument,d=u.body,f=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(r.clientWidth-d.clientWidth-h);p<=QB&&(o-=p)}else c<=QB&&(o+=c);return{width:o,height:s,x:a,y:l}}function OVe(t,e){const n=Y0(t,!0,e==="fixed"),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=mc(t)?Xp(t):La(1),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=i*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function JB(t,e,n){let r;if(e==="viewport")r=PVe(t,n);else if(e==="document")r=kVe(pc(t));else if(Xs(e))r=OVe(e,n);else{const i=Fee(t);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Fm(r)}function Hee(t,e){const n=Ku(t);return n===e||!Xs(n)||jm(n)?!1:Qs(n).position==="fixed"||Hee(n,e)}function NVe(t,e){const n=e.get(t);if(n)return n;let r=Vee(t,[]).filter(a=>Xs(a)&&_g(a)!=="body"),i=null;const o=Qs(t).position==="fixed";let s=o?Ku(t):t;for(;Xs(s)&&!jm(s);){const a=Qs(s),l=pN(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||rb(s)&&!l&&Hee(t,s))?r=r.filter(u=>u!==s):i=a,s=Ku(s)}return e.set(t,r),r}function DVe(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t;const s=[...n==="clippingAncestors"?CC(e)?[]:NVe(e,this._c):[].concat(n),r],a=JB(e,s[0],i);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let f=1;f<s.length;f++){const h=JB(e,s[f],i);l=Ai(h.top,l),c=Ga(h.right,c),u=Ga(h.bottom,u),d=Ai(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function LVe(t){const{width:e,height:n}=Bee(t);return{width:e,height:n}}function zVe(t,e,n){const r=mc(e),i=pc(e),o=n==="fixed",s=Y0(t,!0,o,e);let a={scrollLeft:0,scrollTop:0};const l=La(0);function c(){l.x=AC(i)}if(r||!r&&!o)if((_g(e)!=="body"||rb(i))&&(a=_C(e)),r){const h=Y0(e,!0,o,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();o&&!r&&i&&c();const u=i&&!r&&!o?jee(i,a):La(0),d=s.left+a.scrollLeft-l.x-u.x,f=s.top+a.scrollTop-l.y-u.y;return{x:d,y:f,width:s.width,height:s.height}}function bI(t){return Qs(t).position==="static"}function ZB(t,e){if(!mc(t)||Qs(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return pc(t)===n&&(n=n.ownerDocument.body),n}function Uee(t,e){const n=No(t);if(CC(t))return n;if(!mc(t)){let i=Ku(t);for(;i&&!jm(i);){if(Xs(i)&&!bI(i))return i;i=Ku(i)}return n}let r=ZB(t,e);for(;r&&EVe(r)&&bI(r);)r=ZB(r,e);return r&&jm(r)&&bI(r)&&!pN(r)?n:r||_Ve(t)||n}const VVe=async function(t){const e=this.getOffsetParent||Uee,n=this.getDimensions,r=await n(t.floating);
5089return{reference:zVe(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function BVe(t){return Qs(t).direction==="rtl"}const $Ve={convertOffsetParentRelativeRectToViewportRelativeRect:RVe,getDocumentElement:pc,getClippingRect:DVe,getOffsetParent:Uee,getElementRects:VVe,getClientRects:MVe,getDimensions:LVe,getScale:Xp,isElement:Xs,isRTL:BVe},qee=wVe,Wee=hVe,Gee=SVe,Kee=pVe,Yee=xVe,Xee=mVe,Qee=dVe,Jee=yVe,Zee=(t,e,n)=>{const r=new Map,i={platform:$Ve,...n},o={...i.platform,_c:r};return uVe(t,e,{...i,platform:o})};function FVe(t,e){const n=Math.min(t.top,e.top),r=Math.max(t.bottom,e.bottom),i=Math.min(t.left,e.left),s=Math.max(t.right,e.right)-i,a=r-n,l=i,c=n;return new DOMRect(l,c,s,a)}var jVe=class{constructor({editor:t,element:e,view:n,pluginKey:r="bubbleMenu",updateDelay:i=250,resizeDelay:o=60,shouldShow:s,appendTo:a,getReferencedVirtualElement:l,options:c}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.floatingUIOptions={strategy:"absolute",placement:"top",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1,onShow:void 0,onHide:void 0,onUpdate:void 0,onDestroy:void 0},this.shouldShow=({view:d,state:f,from:h,to:p})=>{const{doc:m,selection:g}=f,{empty:y}=g,b=!m.textBetween(h,p).length&&iC(f.selection),v=this.element.contains(document.activeElement);return!(!(d.hasFocus()||v)||y||b||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:d})=>{var f;if(this.editor.isDestroyed){this.destroy();return}if(this.preventHide){this.preventHide=!1;return}d!=null&&d.relatedTarget&&((f=this.element.parentNode)!=null&&f.contains(d.relatedTarget))||(d==null?void 0:d.relatedTarget)!==this.editor.view.dom&&this.hide()},this.handleDebouncedUpdate=(d,f)=>{const h=!(f!=null&&f.selection.eq(d.state.selection)),p=!(f!=null&&f.doc.eq(d.state.doc));!h&&!p||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(d,h,p,f)},this.updateDelay))},this.updateHandler=(d,f,h,p)=>{const{composing:m}=d;if(m||!f&&!h)return;if(!this.getShouldShow(p)){this.hide();return}this.show(),this.updatePosition()},this.transactionHandler=({transaction:d})=>{const f=d.getMeta(this.pluginKey);f==="updatePosition"?this.updatePosition():f&&typeof f=="object"&&f.type==="updateOptions"?this.updateOptions(f.options):f==="hide"?this.hide():f==="show"&&(this.updatePosition(),this.show())};var u;this.editor=t,this.element=e,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=o,this.appendTo=a,this.scrollTarget=(u=c==null?void 0:c.scrollTarget)!=null?u:window,this.getReferencedVirtualElement=l,this.floatingUIOptions={...this.floatingUIOptions,...c},this.element.tabIndex=0,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(Kee(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(Gee(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(qee(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(Qee(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(Yee(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(Wee(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(Xee(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(Jee(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}get virtualElement(){var t,e,n;const{selection:r}=this.editor.state,i=(t=this.getReferencedVirtualElement)==null?void 0:t.call(this);if(i)return i;if(!((n=(e=this.view)==null?void 0:e.dom)!=null&&n.parentNode))return;const o=eZ(this.view,r.from,r.to);let s={getBoundingClientRect:()=>o,getClientRects:()=>[o]};if(r instanceof lt){let a=this.view.nodeDOM(r.from);const l=a.dataset.nodeViewWrapper?a:a.querySelector("[data-node-view-wrapper]");l&&(a=l),a&&(s={getBoundingClientRect:()=>a.getBoundingClientRect(),getClientRects:()=>[a.getBoundingClientRect()]})}if(r instanceof Dn){const{$anchorCell:a,$headCell:l}=r,c=a?a.pos:l.pos,u=l?l.pos:a.pos,d=this.view.nodeDOM(c),f=this.view.nodeDOM(u);if(!d||!f)return;const h=d===f?d.getBoundingClientRect():FVe(d.getBoundingClientRect(),f.getBoundingClientRect());s={getBoundingClientRect:()=>h,getClientRects:()=>[h]}}return s}updatePosition(){if(!this.isVisible)return;const t=this.virtualElement;t&&Zee(t,this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:e,y:n,strategy:r,middlewareData:i})=>{var o,s;if(!(!this.isVisible||this.editor.isDestroyed||!this.element.isConnected)){if((o=i.hide)!=null&&o.referenceHidden||(s=i.hide)!=null&&s.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=r,this.element.style.left=`${e}px`,this.element.style.top=`${n}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()}})}update(t,e){const{state:n}=t,r=n.selection.from!==n.selection.to;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(t,e);return}const i=!(e!=null&&e.selection.eq(t.state.selection)),o=!(e!=null&&e.doc.eq(t.state.doc));this.updateHandler(t,i,o,e)}getShouldShow(t){var e;const{state:n}=this.view,{selection:r}=n,{ranges:i}=r,o=Math.min(...i.map(l=>l.$from.pos)),s=Math.max(...i.map(l=>l.$to.pos));return((e=this.shouldShow)==null?void 0:e.call(this,{editor:this.editor,element:this.element,view:this.view,state:n,oldState:t,from:o,to:s}))||!1}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)==null||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}updateOptions(t){var e;if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.getReferencedVirtualElement!==void 0&&(this.getReferencedVirtualElement=t.getReferencedVirtualElement),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){const n=(e=t.options.scrollTarget)!=null?e:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},ete=t=>new Li({key:typeof t.pluginKey=="string"?new lo(t.pluginKey):t.pluginKey,view:e=>
5089new jVe({view:e,...t})});As.create({name:"bubbleMenu",addOptions(){return{element:null,pluginKey:"bubbleMenu",updateDelay:void 0,appendTo:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[ete({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,options:this.options.options,appendTo:this.options.appendTo,getReferencedVirtualElement:this.options.getReferencedVirtualElement,shouldShow:this.options.shouldShow})]:[]}});var HVe=class{constructor({editor:t,element:e,view:n,pluginKey:r="floatingMenu",updateDelay:i=250,resizeDelay:o=60,options:s,appendTo:a,shouldShow:l}){this.preventHide=!1,this.isVisible=!1,this.scrollTarget=window,this.shouldShow=({view:u,state:d})=>{const{selection:f}=d,{$anchor:h,empty:p}=f,m=h.depth===1,g=h.parent.isTextblock&&!h.parent.type.spec.code&&!h.parent.textContent&&h.parent.childCount===0&&!this.getTextContent(h.parent);return!(!u.hasFocus()||!p||!m||!g||!this.editor.isEditable)},this.floatingUIOptions={strategy:"absolute",placement:"right",offset:8,flip:{},shift:{},arrow:!1,size:!1,autoPlacement:!1,hide:!1,inline:!1},this.updateHandler=(u,d,f,h)=>{const{composing:p}=u;if(p||!d&&!f)return;if(!this.getShouldShow(h)){this.hide();return}this.updatePosition(),this.show()},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:u})=>{var d;if(this.preventHide){this.preventHide=!1;return}u!=null&&u.relatedTarget&&((d=this.element.parentNode)!=null&&d.contains(u.relatedTarget))||(u==null?void 0:u.relatedTarget)!==this.editor.view.dom&&this.hide()},this.transactionHandler=({transaction:u})=>{const d=u.getMeta(this.pluginKey);d==="updatePosition"?this.updatePosition():d&&typeof d=="object"&&d.type==="updateOptions"?this.updateOptions(d.options):d==="hide"?this.hide():d==="show"&&(this.updatePosition(),this.show())},this.resizeHandler=()=>{this.resizeDebounceTimer&&clearTimeout(this.resizeDebounceTimer),this.resizeDebounceTimer=window.setTimeout(()=>{this.updatePosition()},this.resizeDelay)};var c;this.editor=t,this.element=e,this.view=n,this.pluginKey=r,this.updateDelay=i,this.resizeDelay=o,this.appendTo=a,this.scrollTarget=(c=s==null?void 0:s.scrollTarget)!=null?c:window,this.floatingUIOptions={...this.floatingUIOptions,...s},this.element.tabIndex=0,l&&(this.shouldShow=l),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.editor.on("transaction",this.transactionHandler),window.addEventListener("resize",this.resizeHandler),this.scrollTarget.addEventListener("scroll",this.resizeHandler),this.update(n,n.state),this.getShouldShow()&&(this.show(),this.updatePosition())}getTextContent(t){return XJ(t,{textSerializers:NO(this.editor.schema)})}get middlewares(){const t=[];return this.floatingUIOptions.flip&&t.push(Kee(typeof this.floatingUIOptions.flip!="boolean"?this.floatingUIOptions.flip:void 0)),this.floatingUIOptions.shift&&t.push(Gee(typeof this.floatingUIOptions.shift!="boolean"?this.floatingUIOptions.shift:void 0)),this.floatingUIOptions.offset&&t.push(qee(typeof this.floatingUIOptions.offset!="boolean"?this.floatingUIOptions.offset:void 0)),this.floatingUIOptions.arrow&&t.push(Qee(this.floatingUIOptions.arrow)),this.floatingUIOptions.size&&t.push(Yee(typeof this.floatingUIOptions.size!="boolean"?this.floatingUIOptions.size:void 0)),this.floatingUIOptions.autoPlacement&&t.push(Wee(typeof this.floatingUIOptions.autoPlacement!="boolean"?this.floatingUIOptions.autoPlacement:void 0)),this.floatingUIOptions.hide&&t.push(Xee(typeof this.floatingUIOptions.hide!="boolean"?this.floatingUIOptions.hide:void 0)),this.floatingUIOptions.inline&&t.push(Jee(typeof this.floatingUIOptions.inline!="boolean"?this.floatingUIOptions.inline:void 0)),t}getShouldShow(t){var e;const{state:n}=this.view,{selection:r}=n,{ranges:i}=r,o=Math.min(...i.map(l=>l.$from.pos)),s=Math.max(...i.map(l=>l.$to.pos));return(e=this.shouldShow)==null?void 0:e.call(this,{editor:this.editor,view:this.view,state:n,oldState:t,from:o,to:s})}updateOptions(t){var e;if(t.updateDelay!==void 0&&(this.updateDelay=t.updateDelay),t.resizeDelay!==void 0&&(this.resizeDelay=t.resizeDelay),t.appendTo!==void 0&&(this.appendTo=t.appendTo),t.shouldShow!==void 0&&t.shouldShow&&(this.shouldShow=t.shouldShow),t.options!==void 0){const n=(e=t.options.scrollTarget)!=null?e:window;n!==this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.scrollTarget=n,this.scrollTarget.addEventListener("scroll",this.resizeHandler)),this.floatingUIOptions={...this.floatingUIOptions,...t.options}}}updatePosition(){var t,e;if(!((e=(t=this.view)==null?void 0:t.dom)!=null&&e.parentNode))return;const{selection:n}=this.editor.state,r=eZ(this.view,n.from,n.to);Zee({getBoundingClientRect:()=>r,getClientRects:()=>[r]},this.element,{placement:this.floatingUIOptions.placement,strategy:this.floatingUIOptions.strategy,middleware:this.middlewares}).then(({x:o,y:s,strategy:a,middlewareData:l})=>{var c,u;if((c=l.hide)!=null&&c.referenceHidden||(u=l.hide)!=null&&u.escaped){this.element.style.visibility="hidden";return}this.element.style.visibility="visible",this.element.style.width="max-content",this.element.style.position=a,this.element.style.left=`${o}px`,this.element.style.top=`${s}px`,this.isVisible&&this.floatingUIOptions.onUpdate&&this.floatingUIOptions.onUpdate()})}update(t,e){const n=!(e!=null&&e.selection.eq(t.state.selection)),r
5089=!(e!=null&&e.doc.eq(t.state.doc));this.updateHandler(t,n,r,e)}show(){var t;if(this.isVisible)return;this.element.style.visibility="visible",this.element.style.opacity="1";const e=typeof this.appendTo=="function"?this.appendTo():this.appendTo;(t=e??this.view.dom.parentElement)==null||t.appendChild(this.element),this.floatingUIOptions.onShow&&this.floatingUIOptions.onShow(),this.isVisible=!0}hide(){this.isVisible&&(this.element.style.visibility="hidden",this.element.style.opacity="0",this.element.remove(),this.floatingUIOptions.onHide&&this.floatingUIOptions.onHide(),this.isVisible=!1)}destroy(){this.hide(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),window.removeEventListener("resize",this.resizeHandler),this.scrollTarget.removeEventListener("scroll",this.resizeHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler),this.editor.off("transaction",this.transactionHandler),this.floatingUIOptions.onDestroy&&this.floatingUIOptions.onDestroy()}},tte=t=>new Li({key:typeof t.pluginKey=="string"?new lo(t.pluginKey):t.pluginKey,view:e=>new HVe({view:e,...t})});As.create({name:"floatingMenu",addOptions(){return{element:null,options:{},pluginKey:"floatingMenu",updateDelay:void 0,resizeDelay:void 0,appendTo:void 0,shouldShow:null}},addCommands(){return{updateFloatingMenuPosition:()=>({tr:t,dispatch:e})=>(e&&t.setMeta(this.options.pluginKey,"updatePosition"),!0)}},addProseMirrorPlugins(){return this.options.element?[tte({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,updateDelay:this.options.updateDelay,resizeDelay:this.options.resizeDelay,options:this.options.options,appendTo:this.options.appendTo,shouldShow:this.options.shouldShow})]:[]}});function nte(t,e){return t??new lo(e)}var UVe=typeof window<"u"?E.useLayoutEffect:E.useEffect,rte=new Set(["left","opacity","position","top","visibility","width"]),qVe=new Set(["animationIterationCount","aspectRatio","borderImageOutset","borderImageSlice","borderImageWidth","columnCount","columns","fillOpacity","flex","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineClamp","lineHeight","opacity","order","orphans","scale","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),WVe=new Set(["children","className","style"]),GVe=new Set(["tabIndex"]),KVe=new Set(["accessKey","autoCapitalize","contentEditable","contextMenu","dir","draggable","enterKeyHint","hidden","id","lang","nonce","role","slot","spellCheck","tabIndex","title","translate"]),YVe={Blur:"focusout",DoubleClick:"dblclick",Focus:"focusin",MouseEnter:"mouseenter",MouseLeave:"mouseleave"};function Q4(t,e){return/^on[A-Z]/.test(t)&&typeof e=="function"}function XVe(t){return t.startsWith("aria-")||t.startsWith("data-"),t}function QVe(t){return t.startsWith("aria-")||t.startsWith("data-")||KVe.has(t)}function ite(t){return t.startsWith("--")?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}function JVe(t){var e;const n=t.endsWith("Capture"),i=(n?t.slice(0,-7):t).slice(2);return{eventName:(e=YVe[i])!=null?e:i.toLowerCase(),options:n?{capture:!0}:void 0}}function ZVe(t,e){let n=e.defaultPrevented,r=!1;const i=Object.create(e);return Object.defineProperties(i,{nativeEvent:{value:e},currentTarget:{value:t},target:{value:e.target},persist:{value:()=>{}},isDefaultPrevented:{value:()=>n},isPropagationStopped:{value:()=>r},preventDefault:{value:()=>{n=!0,e.preventDefault()}},stopPropagation:{value:()=>{r=!0,e.stopPropagation()}}}),i}function wI(t){return GVe.has(t)}function e$(t,e,n){if(e==="tabIndex"){t.tabIndex=Number(n);return}t[e]=n}function eBe(t,e){if(e==="tabIndex"){t.removeAttribute("tabindex");return}const n=t[e];if(typeof n=="boolean"){t[e]=!1;return}if(typeof n=="number"){t[e]=0;return}t[e]=""}function tBe(t,e){return typeof e!="number"||e===0||t.startsWith("--")||qVe.has(t)?String(e):`${e}px`}function nBe(t,e){rte.has(e)||t.style.removeProperty(ite(e))}function rBe(t,e,n){rte.has(e)||t.style.setProperty(ite(e),tBe(e,n))}function iBe(t,e,n){new Set([...Object.keys(e),...Object.keys(n)]).forEac
5089h(i=>{if(WVe.has(i)||!QVe(i)||Q4(i,e[i])||Q4(i,n[i]))return;const o=e[i],s=n[i];if(o===s)return;const a=XVe(i);if(s==null||s===!1){wI(i)&&eBe(t,i),t.removeAttribute(a);return}if(s===!0){wI(i)&&e$(t,i,!0),t.setAttribute(a,"");return}if(wI(i)){e$(t,i,s);return}t.setAttribute(a,String(s))})}function oBe(t,e,n){if(e!==n){if(n){t.className=n;return}t.removeAttribute("class")}}function sBe(t,e,n){const r=e??{},i=n??{};new Set([...Object.keys(r),...Object.keys(i)]).forEach(s=>{const a=r[s],l=i[s];if(a!==l){if(l==null){nBe(t,s);return}rBe(t,s,l)}})}function aBe(t,e,n){e.forEach(({eventName:i,listener:o,options:s})=>{t.removeEventListener(i,o,s)});const r=[];return Object.entries(n).forEach(([i,o])=>{if(!Q4(i,o))return;const{eventName:s,options:a}=JVe(i),l=c=>{o(ZVe(t,c))};t.addEventListener(s,l,a),r.push({eventName:s,listener:l,options:a})}),r}function ote(t,e){const n=E.useRef({}),r=E.useRef([]);UVe(()=>{const i=n.current;return oBe(t,i.className,e.className),sBe(t,i.style,e.style),iBe(t,i,e),r.current=aBe(t,r.current,e),n.current=e,()=>{r.current.forEach(({eventName:o,listener:s,options:a})=>{t.removeEventListener(o,s,a)}),r.current=[]}},[t,e])}var jtt=ft.forwardRef(({pluginKey:t,editor:e,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:o=null,getReferencedVirtualElement:s,options:a,children:l,...c},u)=>{const d=E.useRef(document.createElement("div")),f=E.useRef(nte(t,"bubbleMenu")).current;ote(d.current,c),typeof u=="function"?u(d.current):u&&(u.current=d.current);const{editor:h}=SZ(),p=e||h,m={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:f,shouldShow:o,getReferencedVirtualElement:s,options:a},g=E.useRef(m);g.current=m;const[y,b]=E.useState(!1),v=E.useRef(!0);return E.useEffect(()=>{if(p!=null&&p.isDestroyed)return;if(!p){console.warn("BubbleMenu component is not rendered inside of an editor component or does not have editor prop.");return}const S=d.current;S.style.visibility="hidden",S.style.position="absolute";const I=ete({...g.current,editor:p,element:S});p.registerPlugin(I);const O=g.current.pluginKey;return v.current=!0,b(!0),()=>{b(!1),p.unregisterPlugin(O),window.requestAnimationFrame(()=>{S.parentNode&&S.parentNode.removeChild(S)})}},[p]),E.useEffect(()=>{if(!(!y||!p||p.isDestroyed)){if(v.current){v.current=!1;return}p.view.dispatch(p.state.tr.setMeta(f,{type:"updateOptions",options:g.current}))}},[y,p,n,r,o,a,i,s,f]),za.createPortal(l,d.current)});ft.forwardRef(({pluginKey:t,editor:e,updateDelay:n,resizeDelay:r,appendTo:i,shouldShow:o=null,options:s,children:a,...l},c)=>{const u=E.useRef(document.createElement("div")),d=E.useRef(nte(t,"floatingMenu")).current;ote(u.current,l),typeof c=="function"?c(u.current):c&&(c.current=u.current);const{editor:f}=SZ(),h=e||f,p={updateDelay:n,resizeDelay:r,appendTo:i,pluginKey:d,shouldShow:o,options:s},m=E.useRef(p);m.current=p;const[g,y]=E.useState(!1),b=E.useRef(!0);return E.useEffect(()=>{if(h!=null&&h.isDestroyed)return;if(!h){console.warn("FloatingMenu component is not rendered inside of an editor component or does not have editor prop.");return}const v=u.current;v.style.visibility="hidden",v.style.position="absolute";const S=tte({...m.current,editor:h,element:v});h.registerPlugin(S);const I=m.current.pluginKey;return b.current=!0,y(!0),()=>{y(!1),h.unregisterPlugin(I),window.requestAnimationFrame(()=>{v.parentNode&&v.parentNode.removeChild(v)})}},[h]),E.useEffect(()=>{if(!(!g||!h||h.isDestroyed)){if(b.current){b.current=!1;return}h.view.dispatch(h.state.tr.setMeta(d,{type:"updateOptions",options:m.current}))}},[g,h,n,r,o,s,i,d]),za.createPortal(a,u.current)});function lBe(t,e,n){E.useEffect(()=>{if(!document)return;const r=document.querySelector('script[src="'.concat(t,'"]'));if(r!=null&&r.dataset.loaded){e==null||e();return}const i=r||document.createElement("script");r||(i.src=t);const o=()=>{i.dataset.loaded="1",e==null||e()};i.addEventListener("load",o),n&&i.addEventListener("error",n),r||document.head.append(i)},[])}function cBe(t){let{chartVersion:e="current",chartPackages:n=["corechart","controls"],chartLanguage:r="en",mapsApiKey:i}=t;const[o,s]=E.useState(null),[a,l]=E.useState(!1);
5089return lBe("https://www.gstatic.com/charts/loader.js",()=>{const c=window==null?void 0:window.google;c&&(c.charts.load(e,{packages:n,language:r,mapsApiKey:i}),c.charts.setOnLoadCallback(()=>{s(c)}))},()=>{l(!0)}),[o,a]}function uBe(t){let{onLoad:e,onError:n,...r}=t;const[i,o]=cBe(r);return E.useEffect(()=>{i&&e&&e(i)},[i]),E.useEffect(()=>{o&&n&&n()},[o]),null}const ste={legend_toggle:!1,options:{},legendToggle:!1,getChartWrapper:()=>{},spreadSheetQueryParameters:{headers:1,gid:1},rootProps:{},chartWrapperParams:{}};let t$=0;const dBe=()=>(t$+=1,"reactgooglegraph-".concat(t$)),fBe=["#3366CC","#DC3912","#FF9900","#109618","#990099","#3B3EAC","#0099C6","#DD4477","#66AA00","#B82E2E","#316395","#994499","#22AA99","#AAAA11","#6633CC","#E67300","#8B0707","#329262","#5574A6","#3B3EAC"],hBe=async function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new Promise((r,i)=>{const o="".concat(n.headers?"headers=".concat(n.headers):"headers=0"),s="".concat(n.query?"&tq=".concat(encodeURIComponent(n.query)):""),a="".concat(n.gid?"&gid=".concat(n.gid):""),l="".concat(n.sheet?"&sheet=".concat(n.sheet):""),c="".concat(n.access_token?"&access_token=".concat(n.access_token):""),u="".concat(o).concat(a).concat(l).concat(s).concat(c),d="".concat(e,"/gviz/tq?").concat(u);new t.visualization.Query(d).send(h=>{h.isError()?i("Error in query: ".concat(h.getMessage()," ").concat(h.getDetailedMessage())):r(h.getDataTable())})})},{Provider:pBe,Consumer:mBe}=E.createContext(ste),gBe=t=>{let{children:e,value:n}=t;return E.createElement(pBe,{value:n},e)},ate=t=>{let{render:e}=t;return E.createElement(mBe,null,n=>e(n))},yBe="#CCCCCC";class vBe extends E.Component{componentDidMount(){this.draw(this.props),window.addEventListener("resize",this.onResize),(this.props.legend_toggle||this.props.legendToggle)&&this.listenToLegendToggle()}componentWillUnmount(){const{google:e,googleChartWrapper:n}=this.props;window.removeEventListener("resize",this.onResize),e.visualization.events.removeAllListeners(n),n.getChartType()==="Timeline"&&n.getChart()&&n.getChart().clearChart()}componentDidUpdate(){this.draw(this.props)}render(){return null}constructor(...e){super(...e),this.state={hiddenColumns:[]},this.listenToLegendToggle=()=>{const{google:n,googleChartWrapper:r}=this.props;n.visualization.events.addListener(r,"select",()=>{const o=r.getChart().getSelection(),s=r.getDataTable();if(o.length===0||o[0].row||!s)return;const a=o[0].column,l=this.getColumnID(s,a);this.state.hiddenColumns.includes(l)?this.setState(c=>({...c,hiddenColumns:[...c.hiddenColumns.filter(u=>u!==l)]})):this.setState(c=>({...c,hiddenColumns:[...c.hiddenColumns,l]}))})},this.applyFormatters=(n,r)=>{const{google:i}=this.props;for(let o of r)switch(o.type){case"ArrowFormat":{new i.visualization.ArrowFormat(o.options).format(n,o.column);break}case"BarFormat":{new i.visualization.BarFormat(o.options).format(n,o.column);break}case"ColorFormat":{const s=new i.visualization.ColorFormat(o.options),{ranges:a}=o;for(let l of a)s.addRange(...l);s.format(n,o.column);break}case"DateFormat":{new i.visualization.DateFormat(o.options).format(n,o.column);break}case"NumberFormat":{new i.visualization.NumberFormat(o.options).format(n,o.column);break}case"PatternFormat":{new i.visualization.PatternFormat(o.options).format(n,o.column);break}}},this.getColumnID=(n,r)=>n.getColumnId(r)||n.getColumnLabel(r),this.draw=async n=>{let{data:r,diffdata:i,rows:o,columns:s,options:a,legend_toggle:l,legendToggle:c,chartType:u,formatters:d,spreadSheetUrl:f,spreadSheetQueryParameters:h}=n;const{google:p,googleChartWrapper:m}=this.props;let g,y=null;if(i){const O=p.visualization.arrayToDataTable(i.old),T=p.visualization.arrayToDataTable(i.new);y=p.visualization[u].prototype.computeDiff(O,T)}r?Array.isArray(r)?g=p.visualization.arrayToDataTable(r):g=new p.visualization.DataTable(r):o&&s?g=p.visualization.arrayToDataTable([s,...o]):f?g=await hBe(p,f,h):g=p.visualization.arrayToDataTable([]);const b=g.getNumberOfColumns(),v=Array(b).fill(0).map((O,T)=>{const A=this.getColumnID(g,T);return this.state.hiddenColumns.includes(A)?{label:g.getColumnLabel(T),type:g.getColumnType(T),calc:()=>null}:T}),S=m.getChart();m.getChartType()==="Timeline"&&S&&S.clearChart(),m.setChartType(u),m.setOptions(a||{});const I=new p.visualization.DataView(g);I.setColumns(v),m.setDataTable(I),m.draw(),this.props.googleChartDashboard!==null&&this.props.googleChartDashboard.draw(g),y&&(m.setDataTable(y),m.draw()),d&&(this.applyFormatters(g,d),m.setDataTable(g),m.draw()),(c===!0||l===!0)&&this.grayOutHiddenColumns({options:a})},this.grayOutHiddenColumns=n=>{let{options:r}=n;const{googleChartWrapper:i}=this.props,o=i.getDataTable();if(!o)return;const s=o.getNumberOfColumns();if(this.state.hiddenColumns.length>0===!1)return;const l=Array.from({length:s-1}).map((c,u)=>{const d=this.getColumnID(o,u+1);return this.state.hiddenColumns.includes(d)?yBe:r&&r.colors?r.colors[u]:fBe[u]});i.setOptions({...r,colors:l}),i.draw()},this.onResize=()=>{const{googleChartWrapper:n}=this.props;n.draw()}}}
5089class bBe extends E.Component{componentDidMount(){}componentWillUnmount(){}shouldComponentUpdate(){return!1}render(){const{google:e,googleChartWrapper:n,googleChartDashboard:r}=this.props;return E.createElement(ate,{render:i=>E.createElement(vBe,Object.assign({},i,{google:e,googleChartWrapper:n,googleChartDashboard:r}))})}}class wBe extends E.Component{shouldComponentUpdate(){return!1}listenToEvents(e){let{chartEvents:n,google:r,googleChartWrapper:i}=e;if(n){r.visualization.events.removeAllListeners(i);for(let s of n){var o=this;const{eventName:a,callback:l}=s;r.visualization.events.addListener(i,a,function(){for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];l({chartWrapper:i,props:o.props,google:r,eventArgs:u})})}}}componentDidMount(){var e;const{google:n,googleChartWrapper:r}=this.props;this.listenToEvents({chartEvents:((e=this.propsFromContext)===null||e===void 0?void 0:e.chartEvents)||null,google:n,googleChartWrapper:r})}render(){return this.props,E.createElement(ate,{render:e=>(this.propsFromContext=e,null)})}constructor(e){super(e),this.propsFromContext=null}}let n$=0;class SBe extends E.Component{componentDidMount(){const{options:e,google:n,chartType:r,chartWrapperParams:i,toolbarItems:o,getChartEditor:s,getChartWrapper:a}=this.props,l={chartType:r,options:e,containerId:this.getGraphID(),...i},c=new n.visualization.ChartWrapper(l);c.setOptions(e||{}),a&&a(c,n);const u=new n.visualization.Dashboard(this.dashboard_ref),d=this.addControls(c,u);o&&n.visualization.drawToolbar(this.toolbar_ref.current,o);let f=null;s&&(f=new n.visualization.ChartEditor,s({chartEditor:f,chartWrapper:c,google:n})),this.setState({googleChartEditor:f,googleChartControls:d,googleChartDashboard:u,googleChartWrapper:c,isReady:!0})}componentDidUpdate(){if(!this.state.googleChartWrapper||!this.state.googleChartDashboard||!this.state.googleChartControls)return;const{controls:e}=this.props;if(e)for(let n=0;n<e.length;n+=1){const{controlType:r,options:i,controlWrapperParams:o}=e[n];o&&"state"in o&&this.state.googleChartControls[n].control.setState(o.state),this.state.googleChartControls[n].control.setOptions(i),this.state.googleChartControls[n].control.setControlType(r)}}shouldComponentUpdate(e,n){return this.state.isReady!==n.isReady||e.controls!==this.props.controls}render(){const{width:e,height:n,options:r,style:i}=this.props,o={height:n||r&&r.height,width:e||r&&r.width,...i};return this.props.render?E.createElement("div",{ref:this.dashboard_ref,style:o},E.createElement("div",{ref:this.toolbar_ref,id:"toolbar"}),this.props.render({renderChart:this.renderChart,renderControl:this.renderControl,renderToolbar:this.renderToolBar})):E.createElement("div",{ref:this.dashboard_ref,style:o},this.renderControl(s=>{let{controlProp:a}=s;return a.controlPosition!=="bottom"}),this.renderChart(),this.renderControl(s=>{let{controlProp:a}=s;return a.controlPosition==="bottom"}),this.renderToolBar())}constructor(...e){var n;super(...e),n=this,this.state={googleChartWrapper:null,googleChartDashboard:null,googleChartControls:null,googleChartEditor:null,isReady:!1},this.graphID=null,this.dashboard_ref=E.createRef(),this.toolbar_ref=E.createRef(),this.getGraphID=()=>{const{graphID:r,graph_id:i}=this.props;let o;return!r&&!i?this.graphID?o=this.graphID:o=dBe():r&&!i?o=r:i&&!r?o=i:o=r,this.graphID=o,this.graphID},this.getControlID=(r,i)=>{n$+=1;let o;return typeof r>"u"?o="googlechart-control-".concat(i,"-").concat(n$):o=r,o},this.addControls=(r,i)=>{const{google:o,controls:s}=this.props,a=s?s.map((c,u)=>{const{controlID:d,controlType:f,options:h,controlWrapperParams:p}=c,m=this.getControlID(d,u);return{controlProp:c,control:new o.visualization.ControlWrapper({containerId:m,controlType:f,options:h,...p})}}):null;if(!a)return null;i.bind(a.map(c=>{let{control:u}=c;return u}),r);for(let c of a){const{control:u,controlProp:d}=c,{controlEvents:f=[]}=d;for(let h of f){var l=this;const{callback:p,eventName:m}=h;o.visualization.events.removeListener(u,m,p),o.visualization.events.addListener(u,m,function(){for(var g=arguments.length,y=new Array(g),b=0;b<g;b++)y[b]=arguments[b];p({chartWrapper:r,controlWrapper:u,props:l.props,google:o,eventArgs:y})})}}return a},this.renderChart=()=>{const{width:r,height:i,options:o,style:s,className:a,rootProps:l,google:c}=this.props,u={height:i||o&&o.height,width:r||o&&o.width,...s};return E.createElement("div",Object.assign({id:this.getGraphID(),style:u,className:a},l),this.state.isReady&&this.state.googleChartWrapper!==null?E.createElement(E.Fragment,null,E.createElement(bBe,{googleChartWrapper:this.state.googleChartWrapper,google:c,googleChartDashboard:this.state.googleChartDashboard}),E.createElement(wBe,{googleChartWrapper:this.state.googleChartWrapper,google:c})):null)},this.renderControl=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:i=>!0;return n.state.isReady&&n.state.googleChartControls!==null?E.createElement(E.Fragment,null,n.state.googleChartControls.filter(i=>{let{controlProp:o,control:s}=i;return r({control:s,controlProp:o})}).map(i=>{let{control:o,controlProp:s}=i;return E.createElement("div",{key:o.getContainerId(),id:o.getContainerId()})})):null},this.renderToolBar=()=>this.props.toolbarItems?E.createElement("div",{ref:this.toolbar_ref}):null}}
5089class xBe extends E.Component{render(){const{chartLanguage:e,chartPackages:n,chartVersion:r,mapsApiKey:i,loader:o,errorElement:s}=this.props;return E.createElement(gBe,{value:this.props},this.state.loadingStatus==="ready"&&this.state.google!==null?E.createElement(SBe,Object.assign({},this.props,{google:this.state.google})):this.state.loadingStatus==="errored"&&s?s:o,E.createElement(uBe,{chartLanguage:e,chartPackages:n,chartVersion:r,mapsApiKey:i,onLoad:this.onLoad,onError:this.onError}))}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1}isFullyLoaded(e){const{controls:n,toolbarItems:r,getChartEditor:i}=this.props;return e&&e.visualization&&e.visualization.ChartWrapper&&e.visualization.Dashboard&&(!n||e.visualization.ChartWrapper)&&(!i||e.visualization.ChartEditor)&&(!r||e.visualization.drawToolbar)}constructor(...e){super(...e),this._isMounted=!1,this.state={loadingStatus:"loading",google:null},this.onLoad=n=>{if(this.props.onLoad&&this.props.onLoad(n),this.isFullyLoaded(n))this.onSuccess(n);else{const r=setInterval(()=>{const i=window.google;this._isMounted?i&&this.isFullyLoaded(i)&&(clearInterval(r),this.onSuccess(i)):clearInterval(r)},1e3)}},this.onSuccess=n=>{this.setState({loadingStatus:"ready",google:n})},this.onError=()=>{this.setState({loadingStatus:"errored"})}}}xBe.defaultProps=ste;var r$;(function(t){t.annotation="annotation",t.annotationText="annotationText",t.certainty="certainty",t.emphasis="emphasis",t.interval="interval",t.scope="scope",t.style="style",t.tooltip="tooltip",t.domain="domain"})(r$||(r$={}));var lte={exports:{}};(function(t,e){(function(n,r){t.exports=r(TK,E)})(an,function(n,r){function i(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var o=i(n),s=i(r);function a(_,M){for(var V=0;V<M.length;V++){var N=M[V];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(_,N.key,N)}}function l(_,M,V){return M in _?Object.defineProperty(_,M,{value:V,enumerable:!0,configurable:!0,writable:!0}):_[M]=V,_}function c(){return(c=Object.assign||function(_){for(var M=1;M<arguments.length;M++){var V=arguments[M];for(var N in V)Object.prototype.hasOwnProperty.call(V,N)&&(_[N]=V[N])}return _}).apply(this,arguments)}function u(_,M){var V,N=Object.keys(_);return Object.getOwnPropertySymbols&&(V=Object.getOwnPropertySymbols(_),M&&(V=V.filter(function(z){return Object.getOwnPropertyDescriptor(_,z).enumerable})),N.push.apply(N,V)),N}function d(_){for(var M=1;M<arguments.length;M++){var V=arguments[M]!=null?arguments[M]:{};M%2?u(Object(V),!0).forEach(function(N){l(_,N,V[N])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(V)):u(Object(V)).forEach(function(N){Object.defineProperty(_,N,Object.getOwnPropertyDescriptor(V,N))})}return _}function f(_){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(M){return M.__proto__||Object.getPrototypeOf(M)})(_)}function h(_,M){return(h=Object.setPrototypeOf||function(V,N){return V.__proto__=N,V})(_,M)}function p(_,M){if(_==null)return{};var V,N=function(B,j){if(B==null)return{};for(var H,q={},Y=Object.keys(B),Z=0;Z<Y.length;Z++)H=Y[Z],0<=j.indexOf(H)||(q[H]=B[H]);return q}(_,M);if(Object.getOwnPropertySymbols)for(var z=Object.getOwnPropertySymbols(_),L=0;L<z.length;L++)V=z[L],0<=M.indexOf(V)||Object.prototype.propertyIsEnumerable.call(_,V)&&(N[V]=_[V]);return N}function m(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}function g(_){var M=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var V,N,z,L,B=f(_);return N=M?(V=f(this).constructor,Reflect.construct(B,arguments,V)):B.apply(this,arguments),z=this,!(L=N)||typeof L!="object"&&typeof L!="function"?m(z):L}}function y(_,M){return function(V){if(Array.isArray(V))return V}(_)||function(V,N){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(V)))){var z=[],L=!0,B=!1,j=void 0;try{for(var H,q=V[Symbol.iterator]();!(L=(H=q.next()).done)&&(z.push(H.value),!N||z.length!==N);L=!0);}catch(Y){B=!0,j=Y}finally{try{L||q.return==null||q.return()}finally{if(B)throw j}}return z}}(_,M)||b(_,M)||function(){throw new TypeError(`Invalid attempt to de
5089structure non-iterable instance. 5090In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function b(_,M){if(_){if(typeof _=="string")return v(_,M);var V=Object.prototype.toString.call(_).slice(8,-1);return V==="Object"&&_.constructor&&(V=_.constructor.name),V==="Map"||V==="Set"?Array.from(_):V==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(V)?v(_,M):void 0}}function v(_,M){(M==null||M>_.length)&&(M=_.length);for(var V=0,N=new Array(M);V<M;V++)N[V]=_[V];return N}function S(_,M){return new Promise(function(V,N){var z,L=new Image;L.onload=function(){return V(L)},L.onerror=N,!((z=_)!==null&&z.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i))&&M&&(L.crossOrigin=M),L.src=_})}var I,O=!(typeof window>"u"||typeof navigator>"u"||!("ontouchstart"in window||0<navigator.msMaxTouchPoints)),T=typeof File<"u",A={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown"},native:{down:"mousedown",drag:"dragStart",move:"mousemove",up:"mouseup"}}},R=O?A.touch:A.desktop,k=typeof window<"u"&&window.devicePixelRatio?window.devicePixelRatio:1,P={x:.5,y:.5},C=function(){(function(z,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(L&&L.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),L&&h(z,L)})(N,s.default.Component);var _,M,V=g(N);function N(z){var L;return function(B,j){if(!(B instanceof j))throw new TypeError("Cannot call a class as a function")}(this,N),l(m(L=V.call(this,z)),"state",{drag:!1,my:null,mx:null,image:P}),l(m(L),"handleImageReady",function(B){var j=L.getInitialSize(B.width,B.height);j.resource=B,j.x=.5,j.y=.5,j.backgroundColor=L.props.backgroundColor,L.setState({drag:!1,image:j},L.props.onImageReady),L.props.onLoadSuccess(j)}),l(m(L),"clearImage",function(){L.canvas.getContext("2d").clearRect(0,0,L.canvas.width,L.canvas.height),L.setState({image:P})}),l(m(L),"handleMouseDown",function(B){(B=B||window.event).preventDefault(),L.setState({drag:!0,mx:null,my:null})}),l(m(L),"handleMouseUp",function(){L.state.drag&&(L.setState({drag:!1}),L.props.onMouseUp())}),l(m(L),"handleMouseMove",function(B){var j,H,q,Y,Z,G,X,K,J,te,ne,ce,ie,oe,ue,pe;B=B||window.event,L.state.drag!==!1&&(B.preventDefault(),q={mx:j=B.targetTouches?B.targetTouches[0].pageX:B.clientX,my:H=B.targetTouches?B.targetTouches[0].pageY:B.clientY},pe=L.props.rotate,pe=(pe%=360)<0?pe+360:pe,L.state.mx&&L.state.my&&(Y=L.state.mx-j,Z=L.state.my-H,G=L.state.image.width*L.props.scale,X=L.state.image.height*L.props.scale,J=(K=L.getCroppingRect()).x,te=K.y,J*=G,te*=X,ne=function(ve){return ve*(Math.PI/180)},ce=Math.cos(ne(pe)),oe=te+-Y*(ie=Math.sin(ne(pe)))+Z*ce,ue={x:(J+Y*ce+Z*ie)/G+1/L.props.scale*L.getXScale()/2,y:oe/X+1/L.props.scale*L.getYScale()/2},L.props.onPositionChange(ue),q.image=d(d({},L.state.image),ue)),L.setState(q),L.props.onMouseMove(B))}),l(m(L),"setCanvas",function(B){L.canvas=B}),L.canvas=null,L}return _=N,(M=[{key:"componentDidMount",value:function(){this.props.disableHiDPIScaling&&(k=1);var z,L,B=this.canvas.getContext("2d");this.props.image&&this.loadImage(this.props.image),this.paint(B),document&&(z=!!function(){var j=!1;try{var H=Object.defineProperty({},"passive",{get:function(){j=!0}});window.addEventListener("test",H,H),window.removeEventListener("test",H,H)}catch{j=!1}return j}()&&{passive:!1},L=R.native,document.addEventListener(L.move,this.handleMouseMove,z),document.addEventListener(L.up,this.handleMouseUp,z),O&&(document.addEventListener(L.mouseMove,this.handleMouseMove,z),document.addEventListener(L.mouseUp,this.handleMouseUp,z)))}},{key:"componentDidUpdate",value:function(z,L){this.props.image&&this.props.image!==z.image||this.props.width!==z.width||this.props.height!==z.height||this.props.backgroundColor!==z.backgroundColor?this.loadImage(this.props.image):this.props.image||L.image===P||this.clearImage();var B=this.canvas.getContext("2d");B.clearRect(0,0,this.canvas.width,this.canvas.height),this.paint(B),this.paintImage(B,this.state.image,this.props.border),z.image===this.props.image&&z.width===this.props.width&&z.height===this.props.height&&z.position===this.props.position&&z.scale===this.props.scale&&z.rotate===this.props.rotate&&L.my===this.state.my&&L.mx===this.state.mx&&L.image.x===this.state.image.x&&L.image.y===this.state.image.y&&L.backgroundColor===this.state.backgroundColor||this.props.onImageChange()}},{key:"componentWillUnmount",value:function(){var z;document&&(z=R.native,document.removeEventListener(z.move,this.handleMouseMove,!1),document.removeEventListener(z.up,this.handleMouseUp,!1),O&&(document.removeEventListener(z.mouseMove,this.handleMouseMove,!1),document.removeEventListener(z.mouseUp,this.handleMouseUp,!1)))}},{key:"isVertical",value:function(){return!this.props.disableCanvasRotation&&this.props.rotate%180!=0}},{key:"getBorders",value:function(z){var L=0<arguments.length&&z!==void 0?z:this.props.border;return Array.isArray(L)?L:[L,L]}},{key:"getDimensions",value:function(){var z=this.props,L=z.width,B=z.height,j=z.rotate,H=z.border,q={},Y=y(this.getBorders(H),2),Z=Y[0],G=Y[1],X=L,K=B;return this.isVertical()?(q.width=K,q.height=X):(q.width=X,q.height=K),q.width+=2*Z,q.height+=2*G,{canvas:q,rotate:j,width:L,height:B,border:H}}}
5090,{key:"getImage",value:function(){var z=this.getCroppingRect(),L=this.state.image;z.x*=L.resource.width,z.y*=L.resource.height,z.width*=L.resource.width,z.height*=L.resource.height;var B=document.createElement("canvas");this.isVertical()?(B.width=z.height,B.height=z.width):(B.width=z.width,B.height=z.height);var j=B.getContext("2d");return j.translate(B.width/2,B.height/2),j.rotate(this.props.rotate*Math.PI/180),j.translate(-B.width/2,-B.height/2),this.isVertical()&&j.translate((B.width-B.height)/2,(B.height-B.width)/2),L.backgroundColor&&(j.fillStyle=L.backgroundColor,j.fillRect(-z.x,-z.y,L.resource.width,L.resource.height)),j.drawImage(L.resource,-z.x,-z.y),B}},{key:"getImageScaledToCanvas",value:function(){var z=this.getDimensions(),L=z.width,B=z.height,j=document.createElement("canvas");return this.isVertical()?(j.width=B,j.height=L):(j.width=L,j.height=B),this.paintImage(j.getContext("2d"),this.state.image,0,1),j}},{key:"getXScale",value:function(){var z=this.props.width/this.props.height,L=this.state.image.width/this.state.image.height;return Math.min(1,z/L)}},{key:"getYScale",value:function(){var z=this.props.height/this.props.width,L=this.state.image.height/this.state.image.width;return Math.min(1,z/L)}},{key:"getCroppingRect",value:function(){var z=this.props.position||{x:this.state.image.x,y:this.state.image.y},L=1/this.props.scale*this.getXScale(),B=1/this.props.scale*this.getYScale(),j={x:z.x-L/2,y:z.y-B/2,width:L,height:B},H=0,q=1-j.width,Y=0,Z=1-j.height;return(this.props.disableBoundaryChecks||1<L||1<B)&&(H=-j.width,Y=-j.height,Z=q=1),d(d({},j),{},{x:Math.max(H,Math.min(j.x,q)),y:Math.max(Y,Math.min(j.y,Z))})}},{key:"loadImage",value:function(z){var L;T&&z instanceof File?this.loadingImage=(L=z,new Promise(function(B,j){var H=new FileReader;H.onload=function(q){try{var Y=S(q.target.result);B(Y)}catch(Z){j(Z)}},H.readAsDataURL(L)}).then(this.handleImageReady).catch(this.props.onLoadFailure)):typeof z=="string"&&(this.loadingImage=S(z,this.props.crossOrigin).then(this.handleImageReady).catch(this.props.onLoadFailure))}},{key:"getInitialSize",value:function(z,L){var B,j,H=this.getDimensions();return L/z<H.height/H.width?j=z*((B=this.getDimensions().height)/L):B=L*((j=this.getDimensions().width)/z),{height:B,width:j}}},{key:"paintImage",value:function(z,L,B,j){var H,q=3<arguments.length&&j!==void 0?j:k;L.resource&&(H=this.calculatePosition(L,B),z.save(),z.translate(z.canvas.width/2,z.canvas.height/2),z.rotate(this.props.rotate*Math.PI/180),z.translate(-z.canvas.width/2,-z.canvas.height/2),this.isVertical()&&z.translate((z.canvas.width-z.canvas.height)/2,(z.canvas.height-z.canvas.width)/2),z.scale(q,q),z.globalCompositeOperation="destination-over",z.drawImage(L.resource,H.x,H.y,H.width,H.height),L.backgroundColor&&(z.fillStyle=L.backgroundColor,z.fillRect(H.x,H.y,H.width,H.height)),z.restore())}},{key:"calculatePosition",value:function(z,L){z=z||this.state.image;var B=y(this.getBorders(L),2),j=B[0],H=B[1],q=this.getCroppingRect(),Y=z.width*this.props.scale,Z=z.height*this.props.scale,G=-q.x*Y,X=-q.y*Z;return this.isVertical()?(G+=H,X+=j):(G+=j,X+=H),{x:G,y:X,height:Z,width:Y}}},{key:"paint",value:function(z){z.save(),z.scale(k,k),z.translate(0,0),z.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var L,B,j,H,q,Y,Z,G,ie=this.props.borderRadius,X=this.getDimensions(),K=y(this.getBorders(X.border),2),J=K[0],te=K[1],ne=X.canvas.height,ce=X.canvas.width,ie=Math.max(ie,0);ie=Math.min(ie,ce/2-J,ne/2-te),z.beginPath(),L=z,H=ce-2*(B=J),q=ne-2*(j=te),(Y=ie)===0?L.rect(B,j,H,q):(Z=H-Y,G=q-Y,L.translate(B,j),L.arc(Y,Y,Y,Math.PI,1.5*Math.PI),L.lineTo(Z,0),L.arc(Z,Y,Y,1.5*Math.PI,2*Math.PI),L.lineTo(H,G),L.arc(Z,G,Y,2*Math.PI,.5*Math.PI),L.lineTo(Y,q),L.arc(Y,G,Y,.5*Math.PI,Math.PI),L.translate(-B,-j)),z.rect(ce,0,-ce,ne),z.fill("evenodd"),z.restore()}},{key:"render",value:function(){var z=this.props,L=(z.scale,z.rotate,z.image,z.border,z.borderRadius,z.width,z.height,z.position,z.color,z.backgroundColor,z.style),B=(z.crossOrigin,z.onLoadFailure,z.onLoadSuccess,z.onImageReady,z.onImageChange,z.onMouseUp,z.onMouseMove,z.onPositionChange,z.disableBoundaryChecks,z.disableHiDPIScaling,z.disableCanvasRotation,p(z,["scale","rotate","image","border","borderRadius","width","height","position","color","backgroundColor","style","crossOrigin","onLoadFailure","onLoadSuccess","onImageReady","onImageChange","onMouseUp","onMouseMove","onPositionChange","disableBoundaryChecks","disableHiDPIScaling","disableCanvasRotation"])),j=this.getDimensions(),H={width:j.canvas.width,height:j.canvas.height,cursor:this.state.drag?"grabbing":"grab",touchAction:"none"},q={width:j.canvas.width*k,height:j.canvas.height*k,style:d(d({},H),L)};return q[R.react.down]=this.handleMouseDown,O&&(q[R.react.mouseDown]=this.handleMouseDown),s.default.createElement("canvas",c({ref:this.setCanvas},q,B))}}])&&a(_.prototype,M),N}();
5090return l(C,"propTypes",{scale:o.default.number,rotate:o.default.number,image:o.default.oneOfType([o.default.string].concat(function(_){if(Array.isArray(_))return v(_)}(I=T?[o.default.instanceOf(File)]:[])||function(_){if(typeof Symbol<"u"&&Symbol.iterator in Object(_))return Array.from(_)}(I)||b(I)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 5091In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}())),border:o.default.oneOfType([o.default.number,o.default.arrayOf(o.default.number)]),borderRadius:o.default.number,width:o.default.number,height:o.default.number,position:o.default.shape({x:o.default.number,y:o.default.number}),color:o.default.arrayOf(o.default.number),backgroundColor:o.default.string,crossOrigin:o.default.oneOf(["","anonymous","use-credentials"]),onLoadFailure:o.default.func,onLoadSuccess:o.default.func,onImageReady:o.default.func,onImageChange:o.default.func,onMouseUp:o.default.func,onMouseMove:o.default.func,onPositionChange:o.default.func,disableBoundaryChecks:o.default.bool,disableHiDPIScaling:o.default.bool,disableCanvasRotation:o.default.bool}),l(C,"defaultProps",{scale:1,rotate:0,border:25,borderRadius:0,width:200,height:200,color:[0,0,0,.5],onLoadFailure:function(){},onLoadSuccess:function(){},onImageReady:function(){},onImageChange:function(){},onMouseUp:function(){},onMouseMove:function(){},onPositionChange:function(){},disableBoundaryChecks:!1,disableHiDPIScaling:!1,disableCanvasRotation:!0}),C})})(lte);var EBe=lte.exports;const Htt=Ts(EBe);var TBe=Object.defineProperty,_x=Object.getOwnPropertySymbols,cte=Object.prototype.hasOwnProperty,ute=Object.prototype.propertyIsEnumerable,i$=(t,e,n)=>e in t?TBe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,J4=(t,e)=>{for(var n in e||(e={}))cte.call(e,n)&&i$(t,n,e[n]);if(_x)for(var n of _x(e))ute.call(e,n)&&i$(t,n,e[n]);return t},Z4=(t,e)=>{var n={};for(var r in t)cte.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&_x)for(var r of _x(t))e.indexOf(r)<0&&ute.call(t,r)&&(n[r]=t[r]);return n};/** 5092 * @license QR Code generator library (TypeScript) 5093 * Copyright (c) Project Nayuki. 5094 * SPDX-License-Identifier: MIT 5095 */var Zf;(t=>{const e=class kt{constructor(l,c,u,d){if(this.version=l,this.errorCorrectionLevel=c,this.modules=[],this.isFunction=[],l<kt.MIN_VERSION||l>kt.MAX_VERSION)throw new RangeError("Version value out of range");if(d<-1||d>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let f=[];for(let p=0;p<this.size;p++)f.push(!1);for(let p=0;p<this.size;p++)this.modules.push(f.slice()),this.isFunction.push(f.slice());this.drawFunctionPatterns();const h=this.addEccAndInterleave(u);if(this.drawCodewords(h),d==-1){let p=1e9;for(let m=0;m<8;m++){this.applyMask(m),this.drawFormatBits(m);const g=this.getPenaltyScore();g<p&&(d=m,p=g),this.applyMask(m)}}i(0<=d&&d<=7),this.mask=d,this.applyMask(d),this.drawFormatBits(d),this.isFunction=[]}static encodeText(l,c){const u=t.QrSegment.makeSegments(l);return kt.encodeSegments(u,c)}static encodeBinary(l,c){const u=t.QrSegment.makeBytes(l);return kt.encodeSegments([u],c)}static encodeSegments(l,c,u=1,d=40,f=-1,h=!0){if(!(kt.MIN_VERSION<=u&&u<=d&&d<=kt.MAX_VERSION)||f<-1||f>7)throw new RangeError("Invalid value");let p,m;for(p=u;;p++){const v=kt.getNumDataCodewords(p,c)*8,S=s.getTotalBits(l,p);if(S<=v){m=S;break}if(p>=d)throw new RangeError("Data too long")}for(const v of[kt.Ecc.MEDIUM,kt.Ecc.QUARTILE,kt.Ecc.HIGH])h&&m<=kt.getNumDataCodewords(p,v)*8&&(c=v);let g=[];for(const v of l){n(v.mode.modeBits,4,g),n(v.numChars,v.mode.numCharCountBits(p),g);for(const S of v.getData())g.push(S)}i(g.length==m);const y=kt.getNumDataCodewords(p,c)*8;i(g.length<=y),n(0,Math.min(4,y-g.length),g),n(0,(8-g.length%8)%8,g),i(g.length%8==0);for(let v=236;g.length<y;v^=253)n(v,8,g);let b=[];for(;b.length*8<g.length;)b.push(0);return g.forEach((v,S)=>b[S>>>3]|=v<<7-(S&7)),new kt(p,c,b,f)}getModule(l,c){return 0<=l&&l<this.size&&0<=c&&c<this.size&&this.modules[c][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let u=0;u<this.size;u++)this.setFunctionModule(6,u,u%2==0),this.setFunctionModule(u,6,u%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),c=l.length;for(let u=0;u<c;u++)for(let d=0;d<c;d++)u==0&&d==0||u==0&&d==c-1||u==c-1&&d==0||this.drawAlignmentPattern(l[u],l[d]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const c=this.errorCorrectionLevel.formatBits<<3|l;let u=c;for(let f=0;f<10;f++)u=u<<1^(u>>>9)*1335;const d=(c<<10|u)^21522;i(d>>>15==0);for(let f=0;f<=5;f++)this.setFunctionModule(8,f,r(d,f));this.setFunctionModule(8,7,r(d,6)),this.setFunctionModule(8,8,r(d,7)),this.setFunctionModule(7,8,r(d,8));for(let f=9;f<15;f++)this.setFunctionModule(14-f,8,r(d,f));for(let f=0;f<8;f++)this.setFunctionModule(this.size-1-f,8,r(d,f));for(let f=8;f<15;f++)this.setFunctionModule(8,this.size-15+f,r(d,f));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let u=0;u<12;u++)l=l<<1^(l>>>11)*7973;const c=this.version<<12|l;i(c>>>18==0);for(let u=0;u<18;u++){const d=r(c,u),f=this.size-11+u%3,h=Math.floor(u/3);this.setFunctionModule(f,h,d),this.setFunctionModule(h,f,d)}}drawFinderPattern(l,c){for(let u=-4;u<=4;u++)for(let d=-4;d<=4;d++){const f=Math.max(Math.abs(d),Math.abs(u)),h=l+d,p=c+u;0<=h&&h<this.size&&0<=p&&p<this.size&&this.setFunctionModule(h,p,f!=2&&f!=4)}}drawAlignmentPattern(l,c){for(let u=-2;u<=2;u++)for(let d=-2;d<=2;d++)this.setFunctionModule(l+d,c+u,Math.max(Math.abs(d),Math.abs(u))!=1)}setFunctionModule(l,c,u){this.modules[c][l]=u,this.isFunction[c][l]=!0}addEccAndInterleave(l){const c=this.version,u=this.errorCorrectionLevel;if(l.length!=kt.getNumDataCodewords(c,u))throw new RangeError("Invalid argument");
vendor: 1,058 bytes, line 5095
5095const d=kt.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][c],f=kt.ECC_CODEWORDS_PER_BLOCK[u.ordinal][c],h=Math.floor(kt.getNumRawDataModules(c)/8),p=d-h%d,m=Math.floor(h/d);let g=[];const y=kt.reedSolomonComputeDivisor(f);for(let v=0,S=0;v<d;v++){let I=l.slice(S,S+m-f+(v<p?0:1));S+=I.length;const O=kt.reedSolomonComputeRemainder(I,y);v<p&&I.push(0),g.push(I.concat(O))}let b=[];for(let v=0;v<g[0].length;v++)g.forEach((S,I)=>{(v!=m-f||I>=p)&&b.push(S[v])});return i(b.length==h),b}drawCodewords(l){if(l.length!=Math.floor(kt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let c=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let d=0;d<this.size;d++)for(let f=0;f<2;f++){const h=u-f,m=(u+1&2)==0?this.size-1-d:d;!this.isFunction[m][h]&&c<l.length*8&&(this.modules[m][h]=r(l[c>>>3],7-(c&7)),c++)}}i(c==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let c=0;c<this.size;c++)for(let u=0;u<this.size;u++){let d;switch(l){case 0:d=(u+c)%2==0;break;case 1:d=c%2==0;break;case 2:d=u%3==0;break;
vendor: 4,686 bytes, line 5095
5095case 3:d=(u+c)%3==0;break;case 4:d=(Math.floor(u/3)+Math.floor(c/2))%2==0;break;case 5:d=u*c%2+u*c%3==0;break;case 6:d=(u*c%2+u*c%3)%2==0;break;case 7:d=((u+c)%2+u*c%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[c][u]&&d&&(this.modules[c][u]=!this.modules[c][u])}}getPenaltyScore(){let l=0;for(let f=0;f<this.size;f++){let h=!1,p=0,m=[0,0,0,0,0,0,0];for(let g=0;g<this.size;g++)this.modules[f][g]==h?(p++,p==5?l+=kt.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,m),h||(l+=this.finderPenaltyCountPatterns(m)*kt.PENALTY_N3),h=this.modules[f][g],p=1);l+=this.finderPenaltyTerminateAndCount(h,p,m)*kt.PENALTY_N3}for(let f=0;f<this.size;f++){let h=!1,p=0,m=[0,0,0,0,0,0,0];for(let g=0;g<this.size;g++)this.modules[g][f]==h?(p++,p==5?l+=kt.PENALTY_N1:p>5&&l++):(this.finderPenaltyAddHistory(p,m),h||(l+=this.finderPenaltyCountPatterns(m)*kt.PENALTY_N3),h=this.modules[g][f],p=1);l+=this.finderPenaltyTerminateAndCount(h,p,m)*kt.PENALTY_N3}for(let f=0;f<this.size-1;f++)for(let h=0;h<this.size-1;h++){const p=this.modules[f][h];p==this.modules[f][h+1]&&p==this.modules[f+1][h]&&p==this.modules[f+1][h+1]&&(l+=kt.PENALTY_N2)}let c=0;for(const f of this.modules)c=f.reduce((h,p)=>h+(p?1:0),c);const u=this.size*this.size,d=Math.ceil(Math.abs(c*20-u*10)/u)-1;return i(0<=d&&d<=9),l+=d*kt.PENALTY_N4,i(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,c=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let u=[6];for(let d=this.size-7;u.length<l;d-=c)u.splice(1,0,d);return u}}static getNumRawDataModules(l){if(l<kt.MIN_VERSION||l>kt.MAX_VERSION)throw new RangeError("Version number out of range");let c=(16*l+128)*l+64;if(l>=2){const u=Math.floor(l/7)+2;c-=(25*u-10)*u-55,l>=7&&(c-=36)}return i(208<=c&&c<=29648),c}static getNumDataCodewords(l,c){return Math.floor(kt.getNumRawDataModules(l)/8)-kt.ECC_CODEWORDS_PER_BLOCK[c.ordinal][l]*kt.NUM_ERROR_CORRECTION_BLOCKS[c.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let c=[];for(let d=0;d<l-1;d++)c.push(0);c.push(1);let u=1;for(let d=0;d<l;d++){for(let f=0;f<c.length;f++)c[f]=kt.reedSolomonMultiply(c[f],u),f+1<c.length&&(c[f]^=c[f+1]);u=kt.reedSolomonMultiply(u,2)}return c}static reedSolomonComputeRemainder(l,c){let u=c.map(d=>0);for(const d of l){const f=d^u.shift();u.push(0),c.forEach((h,p)=>u[p]^=kt.reedSolomonMultiply(h,f))}return u}static reedSolomonMultiply(l,c){if(l>>>8||c>>>8)throw new RangeError("Byte out of range");let u=0;for(let d=7;d>=0;d--)u=u<<1^(u>>>7)*285,u^=(c>>>d&1)*l;return i(u>>>8==0),u}finderPenaltyCountPatterns(l){const c=l[1];i(c<=this.size*3);const u=c>0&&l[2]==c&&l[3]==c*3&&l[4]==c&&l[5]==c;return(u&&l[0]>=c*4&&l[6]>=c?1:0)+(u&&l[6]>=c*4&&l[0]>=c?1:0)}finderPenaltyTerminateAndCount(l,c,u){return l&&(this.finderPenaltyAddHistory(c,u),c=0),c+=this.size,this.finderPenaltyAddHistory(c,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(l,c){c[0]==0&&(l+=this.size),c.pop(),c.unshift(l)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],t.QrCode=e;function n(a,l,c){if(l<0||l>31||a>>>l)throw new RangeError("Value out of range");for(let u=l-1;u>=0;u--)c.push(a>>>u&1)}function r(a,l){return(a>>>l&1)!=0}function i(a){if(!a)throw new Error("Assertion error")}const o=class er{constructor(l,c,u){if(this.mode=l,this.numChars=c,this.bitData=u,c<0)throw new RangeError("Invalid argument");this.bitData=u.slice()}static makeBytes(l){let c=[];for(const u of l)n(u,8,c);return new er(er.Mode.BYTE,l.length,c)}static makeNumeric(l){if(!er.isNumeric(l))throw new RangeError("String contains
5095non-numeric characters");let c=[];for(let u=0;u<l.length;){const d=Math.min(l.length-u,3);n(parseInt(l.substring(u,u+d),10),d*3+1,c),u+=d}return new er(er.Mode.NUMERIC,l.length,c)}static makeAlphanumeric(l){if(!er.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let c=[],u;for(u=0;u+2<=l.length;u+=2){let d=er.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u))*45;d+=er.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u+1)),n(d,11,c)}return u<l.length&&n(er.ALPHANUMERIC_CHARSET.indexOf(l.charAt(u)),6,c),new er(er.Mode.ALPHANUMERIC,l.length,c)}static makeSegments(l){return l==""?[]:er.isNumeric(l)?[er.makeNumeric(l)]:er.isAlphanumeric(l)?[er.makeAlphanumeric(l)]:[er.makeBytes(er.toUtf8ByteArray(l))]}static makeEci(l){let c=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)n(l,8,c);else if(l<16384)n(2,2,c),n(l,14,c);else if(l<1e6)n(6,3,c),n(l,21,c);else throw new RangeError("ECI assignment value out of range");return new er(er.Mode.ECI,0,c)}static isNumeric(l){return er.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return er.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,c){let u=0;for(const d of l){const f=d.mode.numCharCountBits(c);if(d.numChars>=1<<f)return 1/0;u+=4+f+d.bitData.length}return u}static toUtf8ByteArray(l){l=encodeURI(l);let c=[];for(let u=0;u<l.length;u++)l.charAt(u)!="%"?c.push(l.charCodeAt(u)):(c.push(parseInt(l.substring(u+1,u+3),16)),u+=2);return c}};o.NUMERIC_REGEX=/^[0-9]*$/,o.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,o.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=o;t.QrSegment=o})(Zf||(Zf={}));(t=>{(e=>{const n=class{constructor(i,o){this.ordinal=i,this.formatBits=o}};n.LOW=new n(0,1),n.MEDIUM=new n(1,0),n.QUARTILE=new n(2,3),n.HIGH=new n(3,2),e.Ecc=n})(t.QrCode||(t.QrCode={}))})(Zf||(Zf={}));(t=>{(e=>{const n=class{constructor(i,o){this.modeBits=i,this.numBitsCharCount=o}numCharCountBits(i){return this.numBitsCharCount[Math.floor((i+7)/17)]}};n.NUMERIC=new n(1,[10,12,14]),n.ALPHANUMERIC=new n(2,[9,11,13]),n.BYTE=new n(4,[8,16,16]),n.KANJI=new n(8,[8,10,12]),n.ECI=new n(7,[0,0,0]),e.Mode=n})(t.QrSegment||(t.QrSegment={}))})(Zf||(Zf={}));var Sp=Zf;/** 5096 * @license qrcode.react 5097 * Copyright (c) Paul O'Shannessy 5098 * SPDX-License-Identifier: ISC 5099 */var CBe={L:Sp.QrCode.Ecc.LOW,M:Sp.QrCode.Ecc.MEDIUM,Q:Sp.QrCode.Ecc.QUARTILE,H:Sp.QrCode.Ecc.HIGH},dte=128,fte="L",hte="#FFFFFF",pte="#000000",mte=!1,gte=1,_Be=4,ABe=0,IBe=.1;function yte(t,e=0){const n=[];return t.forEach(function(r,i){let o=null;r.forEach(function(s,a){if(!s&&o!==null){n.push(`M${o+e} ${i+e}h${a-o}v1H${o+e}z`),o=null;return}if(a===r.length-1){if(!s)return;o===null?n.push(`M${a+e},${i+e} h1v1H${a+e}z`):n.push(`M${o+e},${i+e} h${a+1-o}v1H${o+e}z`);return}s&&o===null&&(o=a)})}),n.join("")}function vte(t,e){return t.slice().map((n,r)=>r<e.y||r>=e.y+e.h?n:n.map((i,o)=>o<e.x||o>=e.x+e.w?i:!1))}function RBe(t,e,n,r){if(r==null)return null;const i=t.length+n*2,o=Math.floor(e*IBe),s=i/e,a=(r.width||o)*s,l=(r.height||o)*s,c=r.x==null?t.length/2-a/2:r.x*s,u=r.y==null?t.length/2-l/2:r.y*s,d=r.opacity==null?1:r.opacity;let f=null;if(r.excavate){let p=Math.floor(c),m=Math.floor(u),g=Math.ceil(a+c-p),y=Math.ceil(l+u-m);f={x:p,y:m,w:g,h:y}}const h=r.crossOrigin;return{x:c,y:u,h:l,w:a,excavation:f,opacity:d,crossOrigin:h}}function MBe(t,e){return e!=null?Math.max(Math.floor(e),0):t?_Be:ABe}function bte({value:t,level:e,minVersion:n,includeMargin:r,marginSize:i,imageSettings:o,size:s,boostLevel:a}){let l=ft.useMemo(()=>{const p=(Array.isArray(t)?t:[t]).reduce((m,g)=>(m.push(...Sp.QrSegment.makeSegments(g)),m),[]);return Sp.QrCode.encodeSegments(p,CBe[e],n,void 0,void 0,a)},[t,e,n,a]);const{cells:c,margin:u,numCells:d,calculatedImageSettings:f}=ft.useMemo(()=>{let h=l.getModules();const p=MBe(r,i),m=h.length+p*2,g=RBe(h,s,p,o);return{cells:h,margin:p,numCells:m,calculatedImageSettings:g}},[l,s,o,r,i]);return{qrcode:l,margin:u,cells:c,numCells:d,calculatedImageSettings:f}}var kBe=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),PBe=ft.forwardRef(function(e,n){const r=e,{value:i,size:o=dte,level:s=fte,bgColor:a=hte,fgColor:l=pte,includeMargin:c=mte,minVersion:u=gte,boostLevel:d,marginSize:f,imageSettings:h}=r,m=Z4(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:g}=m,y=Z4(m,["style"]),b=h==null?void 0:h.src,v=ft.useRef(null),S=ft.useRef(null),I=ft.useCallback(M=>{v.current=M,typeof n=="function"?n(M):n&&(n.current=M)},[n]),[O,T]=ft.useState(!1),{margin:A,cells:R,numCells:k,calculatedImageSettings:P}=bte({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:f,imageSettings:h,size:o});ft.useEffect(()=>{if(v.current!=null){const M=v.current,V=M.getContext("2d");if(!V)return;let N=R;
vendor: 8,183 bytes, line 5099
5099const z=S.current,L=P!=null&&z!==null&&z.complete&&z.naturalHeight!==0&&z.naturalWidth!==0;L&&P.excavation!=null&&(N=vte(R,P.excavation));const B=window.devicePixelRatio||1;M.height=M.width=o*B;const j=o/k*B;V.scale(j,j),V.fillStyle=a,V.fillRect(0,0,k,k),V.fillStyle=l,kBe?V.fill(new Path2D(yte(N,A))):R.forEach(function(H,q){H.forEach(function(Y,Z){Y&&V.fillRect(Z+A,q+A,1,1)})}),P&&(V.globalAlpha=P.opacity),L&&V.drawImage(z,P.x+A,P.y+A,P.w,P.h)}}),ft.useEffect(()=>{T(!1)},[b]);const C=J4({height:o,width:o},g);let _=null;return b!=null&&(_=ft.createElement("img",{src:b,key:b,style:{display:"none"},onLoad:()=>{T(!0)},ref:S,crossOrigin:P==null?void 0:P.crossOrigin})),ft.createElement(ft.Fragment,null,ft.createElement("canvas",J4({style:C,height:o,width:o,ref:I,role:"img"},y)),_)});PBe.displayName="QRCodeCanvas";var OBe=ft.forwardRef(function(e,n){const r=e,{value:i,size:o=dte,level:s=fte,bgColor:a=hte,fgColor:l=pte,includeMargin:c=mte,minVersion:u=gte,boostLevel:d,title:f,marginSize:h,imageSettings:p}=r,m=Z4(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:g,cells:y,numCells:b,calculatedImageSettings:v}=bte({value:i,level:s,minVersion:u,boostLevel:d,includeMargin:c,marginSize:h,imageSettings:p,size:o});let S=y,I=null;p!=null&&v!=null&&(v.excavation!=null&&(S=vte(y,v.excavation)),I=ft.createElement("image",{href:p.src,height:v.h,width:v.w,x:v.x+g,y:v.y+g,preserveAspectRatio:"none",opacity:v.opacity,crossOrigin:v.crossOrigin}));const O=yte(S,g);return ft.createElement("svg",J4({height:o,width:o,viewBox:`0 0 ${b} ${b}`,ref:n,role:"img"},m),!!f&&ft.createElement("title",null,f),ft.createElement("path",{fill:a,d:`M0,0 h${b}v${b}H0z`,shapeRendering:"crispEdges"}),ft.createElement("path",{fill:l,d:O,shapeRendering:"crispEdges"}),I)});OBe.displayName="QRCodeSVG";function Mr(t){if(typeof t=="string"||typeof t=="number")return""+t;let e="";if(Array.isArray(t))for(let n=0,r;n<t.length;n++)(r=Mr(t[n]))!==""&&(e+=(e&&" ")+r);else for(let n in t)t[n]&&(e+=(e&&" ")+n);return e}var NBe={value:()=>{}};function IC(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Iw(n)}function Iw(t){this._=t}function DBe(t,e){return t.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Iw.prototype=IC.prototype={constructor:Iw,on:function(t,e){var n=this._,r=DBe(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(t=r[o]).type)&&(i=LBe(n[i],t.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(t=r[o]).type)n[i]=o$(n[i],t.name,e);else if(e==null)for(i in n)n[i]=o$(n[i],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Iw(t)},call:function(t,e){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],r=0,i=o.length;r<i;++r)o[r].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};function LBe(t,e){for(var n=0,r=t.length,i;n<r;++n)if((i=t[n]).name===e)return i.value}function o$(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=NBe,t=t.slice(0,r).concat(t.slice(r+1));break}return n!=null&&t.push({name:e,value:n}),t}var e3="http://www.w3.org/1999/xhtml";const s$={svg:"http://www.w3.org/2000/svg",xhtml:e3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function RC(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),s$.hasOwnProperty(e)?{space:s$[e],local:t}:t}function zBe(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===e3&&e.documentElement.namespaceURI===e3?e.createElement(t):e.createElementNS(n,t)}}function VBe(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function wte(t){var e=RC(t);return(e.local?VBe:zBe)(e)}function BBe(){}function gN(t){return t==null?BBe:function(){return this.querySelector(t)}}function $Be(t){typeof t!="function"&&(t=gN(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=t.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new Fo(r,this._parents)}function FBe(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function jBe(){return[]}function Ste(t){return t==null?jBe:function(){return this.querySelectorAll(t)}}function HBe(t){return function(){return FBe(t.apply(this,arguments))}}function UBe(t){typeof t=="function"?t=HBe(t):t=Ste(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(t.call(l,l.__data__,c,s)),i.push(l));return new Fo(r,i)}function xte(t){return function(){return this.matches(t)}}function Ete(t){return function(e){return e.matches(t)}}var qBe=Array.prototype.find;function WBe(t){return function(){return qBe.call(this.children,t)}}function GBe(){return this.firstElementChild}function KBe(t){return this.select(t==null?GBe:WBe(typeof t=="function"?t:Ete(t)))}var YBe=Array.prototype.filter;function XBe(){return Array.from(this.children)}function QBe(t){return function(){return YBe.call(this.children,t)}}function JBe(t){return this.selectAll(t==null?XBe:QBe(typeof t=="function"?t:Ete(t)))}function ZBe(t){typeof t!="function"&&(t=xte(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Fo(r,this._parents)}function Tte(t){return new Array(t.length)}function e$e(){return new Fo(this._enter||this._groups.map(Tte),this._parents)}function Ax(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ax.prototype={constructor:Ax,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function t$e(t){return function(){return t}}function n$e(t,e,n,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Ax(t,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function r$e(t,e,n,r,i,o,s){var a,l,c=new Map,u=e.length,d=o.length,f=new Array(u),h;for(a=0;a<u;++a)(l=e[a])&&(f[a]=h=s.call(l,l.__data__,a,e)+"",c.has(h)?i[a]=l:c.set(h,l));for(a=0;a<d;++a)h=s.call(t,o[a],a,o)+"",(l=c.get(h))?(r[a]=l,l.__data__=o[a],c.delete(h)):n[a]=new Ax(t,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(f[a])===l&&(i[a]=l)}function i$e(t){return t.__data__}function o$e(t,e){if(!arguments.length)return Array.from(this,i$e);var n=e?r$e:n$e,r=this._parents,i=this._groups;typeof t!="function"&&(t=t$e(t));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],d=i[c],f=d.length,h=s$e(t.call(u,u&&u.__data__,c,r)),p=h.length,m=a[c]=new Array(p),g=s[c]=new Array(p),y=l[c]=new Array(f);n(u,d,m,g,y,h,e);for(var b=0,v=0,S,I;b<p;++b)if(S=m[b]){for(b>=v&&(v=b+1);!(I=g[v])&&++v<p;);S._next=I||null}}return s=new Fo(s,r),s._enter=a,s._exit=l,s}function s$e(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function a$e(){return new Fo(this._exit||this._groups.map(Tte),this._parents)}function l$e(t,e,n){var r=this.enter(),i=this,o=this.exit();return typeof t=="function"?(r=t(r),r&&(r=r.selection())):r=r.append(t+""),e!=null&&(i=e(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function c$e(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=n[l],u=r[l],d=c.length,f=a[l]=new Array(d),h,p=0;p<d;
vendor: 6,813 bytes, line 5099
5099++p)(h=c[p]||u[p])&&(f[p]=h);for(;l<i;++l)a[l]=n[l];return new Fo(a,this._parents)}function u$e(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r=t[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function d$e(t){t||(t=f$e);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var s=n[o],a=s.length,l=i[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new Fo(i,this._parents).order()}function f$e(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function h$e(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function p$e(){return Array.from(this)}function m$e(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function g$e(){let t=0;for(const e of this)++t;return t}function y$e(){return!this.node()}function v$e(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i=e[n],o=0,s=i.length,a;o<s;++o)(a=i[o])&&t.call(a,a.__data__,o,i);return this}function b$e(t){return function(){this.removeAttribute(t)}}function w$e(t){return function(){this.removeAttributeNS(t.space,t.local)}}function S$e(t,e){return function(){this.setAttribute(t,e)}}function x$e(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function E$e(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function T$e(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function C$e(t,e){var n=RC(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?w$e:b$e:typeof e=="function"?n.local?T$e:E$e:n.local?x$e:S$e)(n,e))}function Cte(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function _$e(t){return function(){this.style.removeProperty(t)}}function A$e(t,e,n){return function(){this.style.setProperty(t,e,n)}}function I$e(t,e,n){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function R$e(t,e,n){return arguments.length>1?this.each((e==null?_$e:typeof e=="function"?I$e:A$e)(t,e,n??"")):Hm(this.node(),t)}function Hm(t,e){return t.style.getPropertyValue(e)||Cte(t).getComputedStyle(t,null).getPropertyValue(e)}function M$e(t){return function(){delete this[t]}}function k$e(t,e){return function(){this[t]=e}}function P$e(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function O$e(t,e){return arguments.length>1?this.each((e==null?M$e:typeof e=="function"?P$e:k$e)(t,e)):this.node()[t]}function _te(t){return t.trim().split(/^|\s+/)}function yN(t){return t.classList||new Ate(t)}function Ate(t){this._node=t,this._names=_te(t.getAttribute("class")||"")}Ate.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Ite(t,e){for(var n=yN(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Rte(t,e){for(var n=yN(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function N$e(t){return function(){Ite(this,t)}}function D$e(t){return function(){Rte(this,t)}}function L$e(t,e){return function(){(e.apply(this,arguments)?Ite:Rte)(this,t)}}function z$e(t,e){var n=_te(t+"");if(arguments.length<2){for(var r=yN(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof e=="function"?L$e:e?N$e:D$e)(n,e))}function V$e(){this.textContent=""}function B$e(t){return function(){this.textContent=t}}function $$e(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function F$e(t){return arguments.length?this.each(t==null?V$e:(typeof t=="function"?$$e:B$e)(t)):this.node().textContent}function j$e(){this.innerHTML=""}function H$e(t){return function(){this.innerHTML=t}}function U$e(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function q$e(t){return arguments.length?this.each(t==null?j$e:(typeof t=="function"?U$e:H$e)(t)):this.node().innerHTML}function W$e(){this.nextSibling&&this.parentNode.appendChild(this)}function G$e(){return this.each(W$e)}function K$e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Y$e(){return this.each(K$e)}function X$e(t){var e=typeof t=="function"?t:wte(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Q$e(){return null}function J$e(t,e){var n=typeof t=="function"?t:wte(t),r=e==null?Q$e:typeof e=="function"?e:gN(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Z$e(){var t=this.parentNode;t&&t.removeChild(this)}function eFe(){return this.each(Z$e)}function tFe(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function nFe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function rFe(t){return this.select(t?nFe:tFe)}function iFe(t){return arguments.length?this.property("__data__",t):this.node().__data__}function oFe(t){return function(e){t.call(this,e,this.__data__)}}function sFe(t){return t.trim().split(/^|\s+/).map(function(e){var n="",r=e.indexOf(".");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function aFe(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n<i;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function lFe(t,e,n){return function(){var r=this.__on,i,o=oFe(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===t.type&&i.name===t.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=e;return}}this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function cFe(t,e,n){var r=sFe(t+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<o;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?lFe:aFe,i=0;i<o;++i)this.each(a(r[i],e,n));return this}function Mte(t,e,n){var r=Cte(t),i=r.CustomEvent;typeof i=="function"?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dis
vendor: 12,598 bytes, line 5099
5099patchEvent(i)}function uFe(t,e){return function(){return Mte(this,t,e)}}function dFe(t,e){return function(){return Mte(this,t,e.apply(this,arguments))}}function fFe(t,e){return this.each((typeof e=="function"?dFe:uFe)(t,e))}function*hFe(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var kte=[null];function Fo(t,e){this._groups=t,this._parents=e}function ib(){return new Fo([[document.documentElement]],kte)}function pFe(){return this}Fo.prototype=ib.prototype={constructor:Fo,select:$Be,selectAll:UBe,selectChild:KBe,selectChildren:JBe,filter:ZBe,data:o$e,enter:e$e,exit:a$e,join:l$e,merge:c$e,selection:pFe,order:u$e,sort:d$e,call:h$e,nodes:p$e,node:m$e,size:g$e,empty:y$e,each:v$e,attr:C$e,style:R$e,property:O$e,classed:z$e,text:F$e,html:q$e,raise:G$e,lower:Y$e,append:X$e,insert:J$e,remove:eFe,clone:rFe,datum:iFe,on:cFe,dispatch:fFe,[Symbol.iterator]:hFe};function Eo(t){return typeof t=="string"?new Fo([[document.querySelector(t)]],[document.documentElement]):new Fo([[t]],kte)}function mFe(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Ds(t,e){if(t=mFe(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}const gFe={passive:!1},X0={capture:!0,passive:!1};function SI(t){t.stopImmediatePropagation()}function Qp(t){t.preventDefault(),t.stopImmediatePropagation()}function Pte(t){var e=t.document.documentElement,n=Eo(t).on("dragstart.drag",Qp,X0);"onselectstart"in e?n.on("selectstart.drag",Qp,X0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function Ote(t,e){var n=t.document.documentElement,r=Eo(t).on("dragstart.drag",null);e&&(r.on("click.drag",Qp,X0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const _2=t=>()=>t;function t3(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}t3.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function yFe(t){return!t.ctrlKey&&!t.button}function vFe(){return this.parentNode}function bFe(t,e){return e??{x:t.x,y:t.y}}function wFe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nte(){var t=yFe,e=vFe,n=bFe,r=wFe,i={},o=IC("start","drag","end"),s=0,a,l,c,u,d=0;function f(S){S.on("mousedown.drag",h).filter(r).on("touchstart.drag",g).on("touchmove.drag",y,gFe).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function h(S,I){if(!(u||!t.call(this,S,I))){var O=v(this,e.call(this,S,I),S,I,"mouse");O&&(Eo(S.view).on("mousemove.drag",p,X0).on("mouseup.drag",m,X0),Pte(S.view),SI(S),c=!1,a=S.clientX,l=S.clientY,O("start",S))}}function p(S){if(Qp(S),!c){var I=S.clientX-a,O=S.clientY-l;c=I*I+O*O>d}i.mouse("drag",S)}function m(S){Eo(S.view).on("mousemove.drag mouseup.drag",null),Ote(S.view,c),Qp(S),i.mouse("end",S)}function g(S,I){if(t.call(this,S,I)){var O=S.changedTouches,T=e.call(this,S,I),A=O.length,R,k;for(R=0;R<A;++R)(k=v(this,T,S,I,O[R].identifier,O[R]))&&(SI(S),k("start",S,O[R]))}}function y(S){var I=S.changedTouches,O=I.length,T,A;for(T=0;T<O;++T)(A=i[I[T].identifier])&&(Qp(S),A("drag",S,I[T]))}function b(S){var I=S.changedTouches,O=I.length,T,A;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),T=0;T<O;++T)(A=i[I[T].identifier])&&(SI(S),A("end",S,I[T]))}function v(S,I,O,T,A,R){var k=o.copy(),P=Ds(R||O,I),C,_,M;if((M=n.call(S,new t3("beforestart",{sourceEvent:O,target:f,identifier:A,active:s,x:P[0],y:P[1],dx:0,dy:0,dispatch:k}),T))!=null)return C=M.x-P[0]||0,_=M.y-P[1]||0,function V(N,z,L){var B=P,j;switch(N){case"start":i[A]=V,j=s++;break;case"end":delete i[A],--s;case"drag":P=Ds(L||z,I),j=s;break}k.call(N,S,new t3(N,{sourceEvent:z,subject:M,target:f,identifier:A,active:j,x:P[0]+C,y:P[1]+_,dx:P[0]-B[0],dy:P[1]-B[1],dispatch:k}),T)}}return f.filter=function(S){return arguments.length?(t=typeof S=="function"?S:_2(!!S),f):t},f.container=function(S){return arguments.length?(e=typeof S=="function"?S:_2(S),f):e},f.subject=function(S){return arguments.length?(n=typeof S=="function"?S:_2(S),f):n},f.touchable=function(S){return arguments.length?(r=typeof S=="function"?S:_2(!!S),f):r},f.on=function(){var S=o.on.apply(o,arguments);return S===o?f:S},f.clickDistance=function(S){return arguments.length?(d=(S=+S)*S,f):Math.sqrt(d)},f}var Um=0,B1=0,f1=0,Dte=1e3,Ix,$1,Rx=0,eh=0,MC=0,Q0=typeof performance=="object"&&performance.now?performance:Date,Lte=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function vN(){return eh||(Lte(SFe),eh=Q0.now()+MC)}function SFe(){eh=0}function Mx(){this._call=this._time=this._next=null}Mx.prototype=zte.prototype={constructor:Mx,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?vN():+n)+(e==null?0:+e),!this._next&&$1!==this&&($1?$1._next=this:Ix=this,$1=this),this._call=t,this._time=n,n3()},stop:function(){this._call&&(this._call=null,this._time=1/0,n3())}};function zte(t,e,n){var r=new Mx;return r.restart(t,e,n),r}function xFe(){vN(),++Um;for(var t=Ix,e;t;)(e=eh-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Um}function a$(){eh=(Rx=Q0.now())+MC,Um=B1=0;try{xFe()}finally{Um=0,TFe(),eh=0}}function EFe(){var t=Q0.now(),e=t-Rx;e>Dte&&(MC-=e,Rx=t)}function TFe(){for(var t,e=Ix,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Ix=n);$1=t,n3(r)}function n3(t){if(!Um){B1&&(B1=clearTimeout(B1));var e=t-eh;e>24?(t<1/0&&(B1=setTimeout(a$,t-Q0.now()-MC)),f1&&(f1=clearInterval(f1))):(f1||(Rx=Q0.now(),f1=setInterval(EFe,Dte)),Um=1,Lte(a$))}}function l$(t,e,n){var r=new Mx;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var CFe=IC("start","end","cancel","interrupt"),_Fe=[],Vte=0,c$=1,r3=2,Rw=3,u$=4,i3=5,Mw=6;function kC(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;AFe(t,n,{name:e,index:r,group:i,on:CFe,tween:_Fe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Vte})}function bN(t,e){var n=oa(t,e);if(n.state>Vte)throw new Error("too late; already scheduled");return n}function tl(t,e){var n=oa(t,e);if(n.state>Rw)throw new Error("too late; already running");return n}function oa(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function AFe(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=zte(o,0,n.time);function o(c){n.state=c$,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,d,f,h;if(n.state!==c$)return l();for(u in r)if(h=r[u],h.name===n.name){if(h.state===Rw)return l$(s);h.state===u$?(h.state=Mw,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete r[u]):+u<e&&(h.state=Mw,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete r[u])}if(l$(function(){n.state===Rw&&(n.state=u$,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=r3,n.on.call("start",t,t.__data__,n.index,n.group),n.state===r3){for(n.state=Rw,i=new Array(f=n.tween.length),u=0,d=-1;u<f;++u)(h=n.tween[u].value.call(t,t.__data__,n.index,n.group))&&(i[++d]=h);i.length=d+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=i3,1),d=-1,f=i.length;++d<f;)i[d].call(t,u);n.state===i3&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Mw,n.timer.stop(),delete r[e];for(var c in r)return;delete t.__transition}}function kw(t,e){var n=t.__transition,r,i,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((r=n[s]).name!==e){o=!1;continue}i=r.state>r3&&r.state<i3,r.state=Mw,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function IFe(t){return this.each(function(){kw(this,t)})}function RFe(t,e){var n,r;return function(){var i=tl(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function MFe(t,e,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=tl(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function kFe(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r=oa(this.node(),n).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===t)return s.value;return null}return this.each((e==null?RFe:MFe)(n,t,e))}function wN(t,e,n){var r=t._id;return t.each(function(){var i=tl(this,r);(i.value||(i.value={}))[e]=n.apply(this,arguments)}),function(i){return oa(i,r).value[e]}}function Bte(t,e){var n;return(typeof e=="number"?ba:e instanceof Uf?QS:(n=Uf(e))?(e=n,QS):DX)(t,e)}function PFe(t){return function(){this.removeAttribute(t)}}function OFe(t){return function(){this.removeAttributeNS(t.space,t.local)}}function NFe(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttribute(t);return s===i?null:s===r?o:o=e(r=s,n)}}function DFe(t,e,n){var r,i=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===i?null:s===r?o:o=e(r=s,n)}}function LFe(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function zFe(t,e,n){var r,i,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function VFe(t,e){var n=RC(t),r=n==="transform"?MRe:Bte;return this.attrTween(t,typeof e=="function"?(n.local?zFe:LFe)(n,r,wN(this,"attr."+t,e)):e==null?(n.local?OFe:PFe)(n):(n.local?DFe:NFe)(n,r,e))}function BFe(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function $Fe(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function FFe(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&$Fe(t,o)),n}return i._value=e,i}function jFe(t,e){var n,r;function i(){var o=e.apply(this,arguments);return o!==r&&(n=(r=o)&&BFe(t,o)),n}return i._value=e,i}function HFe(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var r=RC(t);return this.tween(n,(r.local?FFe:jFe)(r,e))}function UFe(t,e){return function(){bN(this,t).delay=+e.apply(this,arguments)}}function qFe(t,e){return e=+e,function(){bN(this,t).delay=e}}function WFe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?UFe:qFe)(e,t)):oa(this.node(),e).delay}function GFe(t,e){return function(){tl(this,t).duration=+e.apply(this,arguments)}}function KFe(t,e){return e=+e,function(){tl(this,t).duration=e}}function YFe(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?GFe:KFe)(e,t)):oa(this.node(),e).duration}function XFe(t,e){if(typeof e!="function")throw new Error;return function(){tl(this,t).ease=e}}function QFe(t){var e=this._id;return arguments.length?this.each(XFe(e,t)):oa(this.node(),e).ease}function JFe(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;tl(this,t).ease=n}}function ZFe(t){if(typeof t!="function")throw new Error;return this.each(JFe(this._id,t))}function eje(t){typeof t!="function"&&(t=xte(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new oc(r,this._parents,this._name,this._id)}function tje(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=n[a],u=l.length,d=s[a]=new Array(u),f,h=0;h<u;
vendor: 4,546 bytes, line 5099
5099++h)(f=l[h]||c[h])&&(d[h]=f);for(;a<r;++a)s[a]=e[a];return new oc(s,this._parents,this._name,this._id)}function nje(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function rje(t,e,n){var r,i,o=nje(e)?bN:tl;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function ije(t,e){var n=this._id;return arguments.length<2?oa(this.node(),n).on.on(t):this.each(rje(n,t,e))}function oje(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function sje(){return this.on("end.remove",oje(this._id))}function aje(t){var e=this._name,n=this._id;typeof t!="function"&&(t=gN(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,d,f=0;f<l;++f)(u=a[f])&&(d=t.call(u,u.__data__,f,a))&&("__data__"in u&&(d.__data__=u.__data__),c[f]=d,kC(c[f],e,n,f,c,oa(u,n)));return new oc(o,this._parents,e,n)}function lje(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Ste(t));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var f=t.call(u,u.__data__,d,l),h,p=oa(u,n),m=0,g=f.length;m<g;++m)(h=f[m])&&kC(h,e,n,m,f,p);o.push(f),s.push(u)}return new oc(o,s,e,n)}var cje=ib.prototype.constructor;function uje(){return new cje(this._groups,this._parents)}function dje(t,e){var n,r,i;return function(){var o=Hm(this,t),s=(this.style.removeProperty(t),Hm(this,t));return o===s?null:o===n&&s===r?i:i=e(n=o,r=s)}}function $te(t){return function(){this.style.removeProperty(t)}}function fje(t,e,n){var r,i=n+"",o;return function(){var s=Hm(this,t);return s===i?null:s===r?o:o=e(r=s,n)}}function hje(t,e,n){var r,i,o;return function(){var s=Hm(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Hm(this,t))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function pje(t,e){var n,r,i,o="style."+e,s="end."+o,a;return function(){var l=tl(this,t),c=l.on,u=l.value[o]==null?a||(a=$te(e)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(s,i=u),l.on=r}}function mje(t,e,n){var r=(t+="")=="transform"?RRe:Bte;return e==null?this.styleTween(t,dje(t,r)).on("end.style."+t,$te(t)):typeof e=="function"?this.styleTween(t,hje(t,r,wN(this,"style."+t,e))).each(pje(this._id,t)):this.styleTween(t,fje(t,r,e),n).on("end.style."+t,null)}function gje(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}function yje(t,e,n){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&gje(t,s,n)),r}return o._value=e,o}function vje(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,yje(t,e,n??""))}function bje(t){return function(){this.textContent=t}}function wje(t){return function(){var e=t(this);this.textContent=e??""}}function Sje(t){return this.tween("text",typeof t=="function"?wje(wN(this,"text",t)):bje(t==null?"":t+""))}function xje(t){return function(e){this.textContent=t.call(this,e)}}function Eje(t){var e,n;function r(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&xje(i)),e}return r._value=t,r}function Tje(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Eje(t))}function Cje(){for(var t=this._name,e=this._id,n=Fte(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=oa(l,e);kC(l,t,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new oc(r,this._parents,t,n)}function _je(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};n.each(function(){var c=tl(this,r),u=c.on;u!==t&&(e=(t=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var Aje=0;function oc(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Fte(){return++Aje}var ml=ib.prototype;oc.prototype={constructor:oc,select:aje,selectAll:lje,selectChild:ml.selectChild,selectChildren:ml.selectChildren,filter:eje,merge:tje,selection:uje,transition:Cje,call:ml.call,nodes:ml.nodes,node:ml.node,size:ml.size,empty:ml.empty,each:ml.each,on:ije,attr:VFe,attrTween:HFe,style:mje,styleTween:vje,text:Sje,textTween:Tje,remove:sje,tween:kFe,delay:WFe,duration:YFe,ease:QFe,easeVarying:ZFe,end:_je,[Symbol.iterator]:ml[
vendor: 10,879 bytes, line 5099
5099Symbol.iterator]};function Ije(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Rje={time:null,delay:0,duration:250,ease:Ije};function Mje(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function kje(t){var e,n;t instanceof oc?(e=t._id,t=t._name):(e=Fte(),(n=Rje).time=vN(),t=t==null?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&kC(l,t,e,c,s,n||Mje(l,e));return new oc(r,this._parents,t,e)}ib.prototype.interrupt=IFe;ib.prototype.transition=kje;const A2=t=>()=>t;function Pje(t,{sourceEvent:e,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function zl(t,e,n){this.k=t,this.x=e,this.y=n}zl.prototype={constructor:zl,scale:function(t){return t===1?this:new zl(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new zl(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var PC=new zl(1,0,0);jte.prototype=zl.prototype;function jte(t){for(;!t.__zoom;)if(!(t=t.parentNode))return PC;return t.__zoom}function xI(t){t.stopImmediatePropagation()}function h1(t){t.preventDefault(),t.stopImmediatePropagation()}function Oje(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function Nje(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t,t.hasAttribute("viewBox")?(t=t.viewBox.baseVal,[[t.x,t.y],[t.x+t.width,t.y+t.height]]):[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]):[[0,0],[t.clientWidth,t.clientHeight]]}function d$(){return this.__zoom||PC}function Dje(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Lje(){return navigator.maxTouchPoints||"ontouchstart"in this}function zje(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],s=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function Hte(){var t=Oje,e=Nje,n=zje,r=Dje,i=Lje,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=yw,c=IC("start","zoom","end"),u,d,f,h=500,p=150,m=0,g=10;function y(M){M.property("__zoom",d$).on("wheel.zoom",A,{passive:!1}).on("mousedown.zoom",R).on("dblclick.zoom",k).filter(i).on("touchstart.zoom",P).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",_).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(M,V,N,z){var L=M.selection?M.selection():M;L.property("__zoom",d$),M!==L?I(M,V,N,z):L.interrupt().each(function(){O(this,arguments).event(z).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},y.scaleBy=function(M,V,N,z){y.scaleTo(M,function(){var L=this.__zoom.k,B=typeof V=="function"?V.apply(this,arguments):V;return L*B},N,z)},y.scaleTo=function(M,V,N,z){y.transform(M,function(){var L=e.apply(this,arguments),B=this.__zoom,j=N==null?S(L):typeof N=="function"?N.apply(this,arguments):N,H=B.invert(j),q=typeof V=="function"?V.apply(this,arguments):V;return n(v(b(B,q),j,H),L,s)},N,z)},y.translateBy=function(M,V,N,z){y.transform(M,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof N=="function"?N.apply(this,arguments):N),e.apply(this,arguments),s)},null,z)},y.translateTo=function(M,V,N,z,L){y.transform(M,function(){var B=e.apply(this,arguments),j=this.__zoom,H=z==null?S(B):typeof z=="function"?z.apply(this,arguments):z;return n(PC.translate(H[0],H[1]).scale(j.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof N=="function"?-N.apply(this,arguments):-N),B,s)},z,L)};function b(M,V){return V=Math.max(o[0],Math.min(o[1],V)),V===M.k?M:new zl(V,M.x,M.y)}function v(M,V,N){var z=V[0]-N[0]*M.k,L=V[1]-N[1]*M.k;return z===M.x&&L===M.y?M:new zl(M.k,z,L)}function S(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function I(M,V,N,z){M.on("start.zoom",function(){O(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){O(this,arguments).event(z).end()}).tween("zoom",function(){var L=this,B=arguments,j=O(L,B).event(z),H=e.apply(L,B),q=N==null?S(H):typeof N=="function"?N.apply(L,B):N,Y=Math.max(H[1][0]-H[0][0],H[1][1]-H[0][1]),Z=L.__zoom,G=typeof V=="function"?V.apply(L,B):V,X=l(Z.invert(q).concat(Y/Z.k),G.invert(q).concat(Y/G.k));return function(K){if(K===1)K=G;else{var J=X(K),te=Y/J[2];K=new zl(te,q[0]-J[0]*te,q[1]-J[1]*te)}j.zoom(null,K)}})}function O(M,V,N){return!N&&M.__zooming||new T(M,V)}function T(M,V){this.that=M,this.args=V,this.active=0,this.sourceEvent=null,this.extent=e.apply(M,V),this.taps=0}T.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,V){return this.mouse&&M!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var V=Eo(this.that).datum();c.call(M,this.that,new Pje(M,{sourceEvent:this.sourceEvent,target:y,transform:this.that.__zoom,dispatch:c}),V)}};function A(M,...V){if(!t.apply(this,arguments))return;var N=O(this,V).event(M),z=this.__zoom,L=Math.max(o[0],Math.min(o[1],z.k*Math.pow(2,r.apply(this,arguments)))),B=Ds(M);if(N.wheel)(N.mouse[0][0]!==B[0]||N.mouse[0][1]!==B[1])&&(N.mouse[1]=z.invert(N.mouse[0]=B)),clearTimeout(N.wheel);else{if(z.k===L)return;N.mouse=[B,z.invert(B)],kw(this),N.start()}h1(M),N.wheel=setTimeout(j,p),N.zoom("mouse",n(v(b(z,L),N.mouse[0],N.mouse[1]),N.extent,s));function j(){N.wheel=null,N.end()}}function R(M,...V){if(f||!t.apply(this,arguments))return;var N=M.currentTarget,z=O(this,V,!0).event(M),L=Eo(M.view).on("mousemove.zoom",q,!0).on("mouseup.zoom",Y,!0),B=Ds(M,N),j=M.clientX,H=M.clientY;Pte(M.view),xI(M),z.mouse=[B,this.__zoom.invert(B)],kw(this),z.start();function q(Z){if(h1(Z),!z.moved){var G=Z.clientX-j,X=Z.clientY-H;z.moved=G*G+X*X>m}z.event(Z).zoom("mouse",n(v(z.that.__zoom,z.mouse[0]=Ds(Z,N),z.mouse[1]),z.extent,s))}function Y(Z){L.on("mousemove.zoom mouseup.zoom",null),Ote(Z.view,z.moved),h1(Z),z.event(Z).end()}}function k(M,...V){if(t.apply(this,arguments)){var N=this.__zoom,z=Ds(M.changedTouches?M.changedTouches[0]:M,this),L=N.invert(z),B=N.k*(M.shiftKey?.5:2),j=n(v(b(N,B),z,L),e.apply(this,V),s);h1(M),a>0?Eo(this).transition().duration(a).call(I,j,z,M):Eo(this).call(y.transform,j,z,M)}}function P(M,...V){if(t.apply(this,arguments)){var N=M.touches,z=N.length,L=O(this,V,M.changedTouches.length===z).event(M),B,j,H,q;for(xI(M),j=0;j<z;++j)H=N[j],q=Ds(H,this),q=[q,this.__zoom.invert(q),H.identifier],L.touch0?!L.touch1&&L.touch0[2]!==q[2]&&(L.touch1=q,L.taps=0):(L.touch0=q,B=!0,L.taps=1+!!u);u&&(u=clearTimeout(u)),B&&(L.taps<2&&(d=q[0],u=setTimeout(function(){u=null},h)),kw(this),L.start())}}function C(M,...V){if(this.__zooming){var N=O(this,V).event(M),z=M.changedTouches,L=z.length,B,j,H,q;for(h1(M),B=0;B<L;++B)j=z[B],H=Ds(j,this),N.touch0&&N.touch0[2]===j.identifier?N.touch0[0]=H:N.touch1&&N.touch1[2]===j.identifier&&(N.touch1[0]=H);if(j=N.that.__zoom,N.touch1){var Y=N.touch0[0],Z=N.touch0[1],G=N.touch1[0],X=N.touch1[1],K=(K=G[0]-Y[0])*K+(K=G[1]-Y[1])*K,J=(J=X[0]-Z[0])*J+(J=X[1]-Z[1])*J;j=b(j,Math.sqrt(K/J)),H=[(Y[0]+G[0])/2,(Y[1]+G[1])/2],q=[(Z[0]+X[0])/2,(Z[1]+X[1])/2]}else if(N.touch0)H=N.touch0[0],q=N.touch0[1];else return;N.zoom("touch",n(v(j,H,q),N.extent,s))}}function _(M,...V){if(this.__zooming){var N=O(this,V).event(M),z=M.changedTouches,L=z.length,B,j;for(xI(M),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),B=0;B<L;++B)j=z[B],N.touch0&&N.touch0[2]===j.identifier?delete N.touch0:N.touch1&&N.touch1[2]===j.identifier&&delete N.touch1;if(N.touch1&&!N.touch0&&(N.touch0=N.touch1,delete N.touch1),N.touch0)N.touch0[1]=this.__zoom.invert(N.touch0[0]);else if(N.end(),N.taps===2&&(j=Ds(j,this),Math.hypot(d[0]-j[0],d[1]-j[1])<g)){var H=Eo(this).on("dblclick.zoom");H&&H.apply(this,arguments)}}}return y.wheelDelta=function(M){return arguments.length?(r=typeof M=="function"?M:A2(+M),y):r},y.filter=function(M){return arguments.length?(t=typeof M=="function"?M:A2(!!M),y):t},y.touchable=function(M){return arguments.length?(i=typeof M=="function"?M:A2(!!M),y):i},y.extent=function(M){return arguments.length?(e=typeof M=="function"?M:A2([[+M[0][0],+M[0][1]],[+M[1][0],+M[1][1]]]),y):e},y.scaleExtent=function(M){return arguments.length?(o[0]=+M[0],o[1]=+M[1],y):[o[0],o[1]]},y.translateExtent=function(M){return arguments.length?(s[0][0]=+M[0][0],s[1][0]=+M[1][0],s[0][1]=+M[0][1],s[1][1]=+M[1][1],y):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},y.constrain=function(M){return arguments.length?(n=M,y):n},y.duration=function(M){return arguments.length?(a=+M,y):a},y.interpolate=function(M){return arguments.length?(l=M,y):l},y.on=function(){var M=c.on.apply(c,arguments);return M===c?y:M},y.clickDistance=function(M){return arguments.length?(m=(M=+M)*M,y):Math.sqrt(m)},y.tapDistance=function(M){return arguments.length?(g=+M,y):g},y}const Ka={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error002:()=>"It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.",error003:t=>`Node type "${t}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error007:t=>`The old edge with id=${t} does not exist.`,error009:t=>`Marker type "${t}" doesn't exist.`,error008:(t,{id:e,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${t} handle id: "${t==="source"?n:r}", edge id: ${e}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:t=>`Edge type "${t}" not found. Using fallback type "default".`,error012:t=>
5099`Node with id "${t}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(t="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${t}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>"useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.",error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},J0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Ute=["Enter"," ","Escape"],qte={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:t,x:e,y:n})=>`Moved selected node ${t}. New position, x: ${e}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var qm;(function(t){t.Strict="strict",t.Loose="loose"})(qm||(qm={}));var Ef;(function(t){t.Free="free",t.Vertical="vertical",t.Horizontal="horizontal"})(Ef||(Ef={}));var Z0;(function(t){t.Partial="partial",t.Full="full"})(Z0||(Z0={}));const Wte={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Wc;(function(t){t.Bezier="default",t.Straight="straight",t.Step="step",t.SmoothStep="smoothstep",t.SimpleBezier="simplebezier"})(Wc||(Wc={}));var kx;(function(t){t.Arrow="arrow",t.ArrowClosed="arrowclosed"})(kx||(kx={}));var ut;(function(t){t.Left="left",t.Top="top",t.Right="right",t.Bottom="bottom"})(ut||(ut={}));const f$={[ut.Left]:ut.Right,[ut.Right]:ut.Left,[ut.Top]:ut.Bottom,[ut.Bottom]:ut.Top};function Gte(t){return t===null?null:t?"valid":"invalid"}const Kte=t=>"id"in t&&"source"in t&&"target"in t,Vje=t=>"id"in t&&"position"in t&&!("source"in t)&&!("target"in t),SN=t=>"id"in t&&"internals"in t&&!("source"in t)&&!("target"in t),ob=(t,e=[0,0])=>{const{width:n,height:r}=gc(t),i=t.origin??e,o=n*i[0],s=r*i[1];return{x:t.position.x-o,y:t.position.y-s}},Bje=(t,e={nodeOrigin:[0,0]})=>{if(t.length===0)return{x:0,y:0,width:0,height:0};const n=t.reduce((r,i)=>{const o=typeof i=="string";let s=!e.nodeLookup&&!o?i:void 0;e.nodeLookup&&(s=o?e.nodeLookup.get(i):SN(i)?i:e.nodeLookup.get(i.id));const a=s?Px(s,e.nodeOrigin):{x:0,y:0,x2:0,y2:0};return OC(r,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return NC(n)},sb=(t,e={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return t.forEach(i=>{(e.filter===void 0||e.filter(i))&&(n=OC(n,Px(i)),r=!0)}),r?NC(n):{x:0,y:0,width:0,height:0}},xN=(t,e,[n,r,i]=[0,0,1],o=!1,s=!1)=>{const a={...lb(e,[n,r,i]),width:e.width/i,height:e.height/i},l=[];for(const c of t.values()){const{measured:u,selectable:d=!0,hidden:f=!1}=c;if(s&&!d||f)continue;const h=u.width??c.width??c.initialWidth??null,p=u.height??c.height??c.initialHeight??null,m=ev(a,Gm(c)),g=(h??0)*(p??0),y=o&&m>0;(!c.internals.handleBounds||y||m>=g||c.dragging)&&l.push(c)}return l},$je=(t,e)=>{const n=new Set;return t.forEach(r=>{n.add(r.id)}),e.filter(r=>n.has(r.source)||n.has(r.target))};function Fje(t,e){const n=new Map,r=e!=null&&e.nodes?new Set(e.nodes.map(i=>i.id)):null;return t.forEach(i=>{i.measured.width&&i.measured.height&&((e==null?void 0:e.includeHiddenNodes)||!i.hidden)&&(!r||r.has(i.id))&&n.set(i.id,i)}),n}
5099async function jje({nodes:t,width:e,height:n,panZoom:r,minZoom:i,maxZoom:o},s){if(t.size===0)return Promise.resolve(!0);const a=Fje(t,s),l=sb(a),c=EN(l,e,n,(s==null?void 0:s.minZoom)??i,(s==null?void 0:s.maxZoom)??o,(s==null?void 0:s.padding)??.1);return await r.setViewport(c,{duration:s==null?void 0:s.duration,ease:s==null?void 0:s.ease,interpolate:s==null?void 0:s.interpolate}),Promise.resolve(!0)}function Yte({nodeId:t,nextPosition:e,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:o}){const s=n.get(t),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:c}=a?a.internals.positionAbsolute:{x:0,y:0},u=s.origin??r;let d=s.extent||i;if(s.extent==="parent"&&!s.expandParent)if(!a)o==null||o("005",Ka.error005());else{const h=a.measured.width,p=a.measured.height;h&&p&&(d=[[l,c],[l+h,c+p]])}else a&&Km(s.extent)&&(d=[[s.extent[0][0]+l,s.extent[0][1]+c],[s.extent[1][0]+l,s.extent[1][1]+c]]);const f=Km(d)?th(e,d,s.measured):e;return(s.measured.width===void 0||s.measured.height===void 0)&&(o==null||o("015",Ka.error015())),{position:{x:f.x-l+(s.measured.width??0)*u[0],y:f.y-c+(s.measured.height??0)*u[1]},positionAbsolute:f}}async function Hje({nodesToRemove:t=[],edgesToRemove:e=[],nodes:n,edges:r,onBeforeDelete:i}){const o=new Set(t.map(f=>f.id)),s=[];for(const f of n){if(f.deletable===!1)continue;const h=o.has(f.id),p=!h&&f.parentId&&s.find(m=>m.id===f.parentId);(h||p)&&s.push(f)}const a=new Set(e.map(f=>f.id)),l=r.filter(f=>f.deletable!==!1),u=$je(s,l);for(const f of l)a.has(f.id)&&!u.find(p=>p.id===f.id)&&u.push(f);if(!i)return{edges:u,nodes:s};const d=await i({nodes:s,edges:u});return typeof d=="boolean"?d?{edges:u,nodes:s}:{edges:[],nodes:[]}:d}const Wm=(t,e=0,n=1)=>Math.min(Math.max(t,e),n),th=(t={x:0,y:0},e,n)=>({x:Wm(t.x,e[0][0],e[1][0]-((n==null?void 0:n.width)??0)),y:Wm(t.y,e[0][1],e[1][1]-((n==null?void 0:n.height)??0))});function Xte(t,e,n){const{width:r,height:i}=gc(n),{x:o,y:s}=n.internals.positionAbsolute;return th(t,[[o,s],[o+r,s+i]],e)}const h$=(t,e,n)=>t<e?Wm(Math.abs(t-e),1,e)/e:t>n?-Wm(Math.abs(t-n),1,e)/e:0,Qte=(t,e,n=15,r=40)=>{const i=h$(t.x,r,e.width-r)*n,o=h$(t.y,r,e.height-r)*n;return[i,o]},OC=(t,e)=>({x:Math.min(t.x,e.x),y:Math.min(t.y,e.y),x2:Math.max(t.x2,e.x2),y2:Math.max(t.y2,e.y2)}),o3=({x:t,y:e,width:n,height:r})=>({x:t,y:e,x2:t+n,y2:e+r}),NC=({x:t,y:e,x2:n,y2:r})=>({x:t,y:e,width:n-t,height:r-e}),Gm=(t,e=[0,0])=>{var i,o;const{x:n,y:r}=SN(t)?t.internals.positionAbsolute:ob(t,e);return{x:n,y:r,width:((i=t.measured)==null?void 0:i.width)??t.width??t.initialWidth??0,height:((o=t.measured)==null?void 0:o.height)??t.height??t.initialHeight??0}},Px=(t,e=[0,0])=>{var i,o;const{x:n,y:r}=SN(t)?t.internals.positionAbsolute:ob(t,e);return{x:n,y:r,x2:n+(((i=t.measured)==null?void 0:i.width)??t.width??t.initialWidth??0),y2:r+(((o=t.measured)==null?void 0:o.height)??t.height??t.initialHeight??0)}},Jte=(t,e)=>NC(OC(o3(t),o3(e))),ev=(t,e)=>{const n=Math.max(0,Math.min(t.x+t.width,e.x+e.width)-Math.max(t.x,e.x)),r=Math.max(0,Math.min(t.y+t.height,e.y+e.height)-Math.max(t.y,e.y));return Math.ceil(n*r)},p$=t=>Hs(t.width)&&Hs(t.height)&&Hs(t.x)&&Hs(t.y),Hs=t=>!isNaN(t)&&isFinite(t),Uje=(t,e)=>{},ab=(t,e=[1,1])=>({x:e[0]*Math.round(t.x/e[0]),y:e[1]*Math.round(t.y/e[1])}),lb=({x:t,y:e},[n,r,i],o=!1,s=[1,1])=>{const a={x:(t-n)/i,y:(e-r)/i};return o?ab(a,s):a},Ox=({x:t,y:e},[n,r,i])=>({x:t*i+n,y:e*i+r});function Uh(t,e){if(typeof t=="number")return Math.floor((e-e/(1+t))*.5);if(typeof t=="string"&&t.endsWith("px")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(n)}if(typeof t=="string"&&t.endsWith("%")){const n=parseFloat(t);if(!Number.isNaN(n))return Math.floor(e*n*.01)}return console.error(`[React Flow] The padding value "${t}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function qje(t,e,n){if(typeof t=="string"||typeof t=="number"){const r=Uh(t,n),i=Uh(t,e);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof t=="object"){const r=Uh(t.top??t.y??0,n),i=Uh(t.bottom??t.y??0,n),o=Uh(t.left??t.x??0,e),s=Uh(t.right??t.x??0,e);return{top:r,right:s,bottom:i,left:o,x:o+s,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function Wje(t,e,n,r,i,o){const{x:s,y:a}=Ox(t,[e,n,r]),{x:l,y:c}=Ox({x:t.x+t.width,y:t.y+t.height},[e,n,r]),u=i-l,d=o-c;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(u),bottom:Math.floor(d)}}const EN=(t,e,n,r,i,o)=>{const s=qje(o,e,n),a=(e-s.x)/t.width,l=(n-s.y)/t.height,c=Math.min(a,l),u=Wm(c,r,i),d=t.x+t.width/2,f=t.y+t.height/2,h=e/2-d*u,p=n/2-f*u,m=Wje(t,h,p,u,e,n),g={left:Math.min(m.left-s.left,0),top:Math.min(m.top-s.top,0),right:Math.min(m.right-s.right,0),bottom:Math.min(m.bottom-s.bottom,0)};
5099return{x:h-g.left+g.right,y:p-g.top+g.bottom,zoom:u}},tv=()=>{var t;return typeof navigator<"u"&&((t=navigator==null?void 0:navigator.userAgent)==null?void 0:t.indexOf("Mac"))>=0};function Km(t){return t!=null&&t!=="parent"}function gc(t){var e,n;return{width:((e=t.measured)==null?void 0:e.width)??t.width??t.initialWidth??0,height:((n=t.measured)==null?void 0:n.height)??t.height??t.initialHeight??0}}function Zte(t){var e,n;return(((e=t.measured)==null?void 0:e.width)??t.width??t.initialWidth)!==void 0&&(((n=t.measured)==null?void 0:n.height)??t.height??t.initialHeight)!==void 0}function ene(t,e={width:0,height:0},n,r,i){const o={...t},s=r.get(n);if(s){const a=s.origin||i;o.x+=s.internals.positionAbsolute.x-(e.width??0)*a[0],o.y+=s.internals.positionAbsolute.y-(e.height??0)*a[1]}return o}function m$(t,e){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}function Gje(){let t,e;return{promise:new Promise((r,i)=>{t=r,e=i}),resolve:t,reject:e}}function Kje(t){return{...qte,...t||{}}}function Dy(t,{snapGrid:e=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){const{x:o,y:s}=Us(t),a=lb({x:o-((i==null?void 0:i.left)??0),y:s-((i==null?void 0:i.top)??0)},r),{x:l,y:c}=n?ab(a,e):a;return{xSnapped:l,ySnapped:c,...a}}const TN=t=>({width:t.offsetWidth,height:t.offsetHeight}),tne=t=>{var e;return((e=t==null?void 0:t.getRootNode)==null?void 0:e.call(t))||(window==null?void 0:window.document)},Yje=["INPUT","SELECT","TEXTAREA"];function nne(t){var r,i;const e=((i=(r=t.composedPath)==null?void 0:r.call(t))==null?void 0:i[0])||t.target;return(e==null?void 0:e.nodeType)!==1?!1:Yje.includes(e.nodeName)||e.hasAttribute("contenteditable")||!!e.closest(".nokey")}const rne=t=>"clientX"in t,Us=(t,e)=>{var o,s;const n=rne(t),r=n?t.clientX:(o=t.touches)==null?void 0:o[0].clientX,i=n?t.clientY:(s=t.touches)==null?void 0:s[0].clientY;return{x:r-((e==null?void 0:e.left)??0),y:i-((e==null?void 0:e.top)??0)}},g$=(t,e,n,r,i)=>{const o=e.querySelectorAll(`.${t}`);return!o||!o.length?null:Array.from(o).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:t,nodeId:i,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...TN(s)}})};function ine({sourceX:t,sourceY:e,targetX:n,targetY:r,sourceControlX:i,sourceControlY:o,targetControlX:s,targetControlY:a}){const l=t*.125+i*.375+s*.375+n*.125,c=e*.125+o*.375+a*.375+r*.125,u=Math.abs(l-t),d=Math.abs(c-e);return[l,c,u,d]}function I2(t,e){return t>=0?.5*t:e*25*Math.sqrt(-t)}function y$({pos:t,x1:e,y1:n,x2:r,y2:i,c:o}){switch(t){case ut.Left:return[e-I2(e-r,o),n];case ut.Right:return[e+I2(r-e,o),n];case ut.Top:return[e,n-I2(n-i,o)];case ut.Bottom:return[e,n+I2(i-n,o)]}}function one({sourceX:t,sourceY:e,sourcePosition:n=ut.Bottom,targetX:r,targetY:i,targetPosition:o=ut.Top,curvature:s=.25}){const[a,l]=y$({pos:n,x1:t,y1:e,x2:r,y2:i,c:s}),[c,u]=y$({pos:o,x1:r,y1:i,x2:t,y2:e,c:s}),[d,f,h,p]=ine({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:a,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${t},${e} C${a},${l} ${c},${u} ${r},${i}`,d,f,h,p]}function sne({sourceX:t,sourceY:e,targetX:n,targetY:r}){const i=Math.abs(n-t)/2,o=n<t?n+i:n-i,s=Math.abs(r-e)/2,a=r<e?r+s:r-s;return[o,a,i,s]}function Xje({sourceNode:t,targetNode:e,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:o="basic"}){if(o==="manual")return r;const s=i&&n?r+1e3:r,a=Math.max(t.parentId||i&&t.selected?t.internals.z:0,e.parentId||i&&e.selected?e.internals.z:0);return s+a}function Qje({sourceNode:t,targetNode:e,width:n,height:r,transform:i}){const o=OC(Px(t),Px(e));o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1);const s={x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]};return ev(s,NC(o))>0}const ane=({source:t,sourceHandle:e,target:n,targetHandle:r})=>`xy-edge__${t}${e||""}-${n}${r||""}`,Jje=(t,e)=>e.some(n=>n.source===t.source&&n.target===t.target&&(n.sourceHandle===t.sourceHandle||!n.sourceHandle&&!t.sourceHandle)&&(n.targetHandle===t.targetHandle||!n.targetHandle&&!t.targetHandle)),Zje=(t,e,n={})=>{if(!t.source||!t.target)return e;const r=n.getEdgeId||ane;let i;return Kte(t)?i={...t}:i={...t,id:r(t)},Jje(i,e)?e:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,e.concat(i))},Wtt=(t,e,n,r={shouldReplaceId:!0})=>{const{id:i,...o}=t;
5099if(!e.source||!e.target||!n.find(c=>c.id===t.id))return n;const a=r.getEdgeId||ane,l={...o,id:r.shouldReplaceId?a(e):i,source:e.source,target:e.target,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle};return n.filter(c=>c.id!==i).concat(l)};function lne({sourceX:t,sourceY:e,targetX:n,targetY:r}){const[i,o,s,a]=sne({sourceX:t,sourceY:e,targetX:n,targetY:r});return[`M ${t},${e}L ${n},${r}`,i,o,s,a]}const v$={[ut.Left]:{x:-1,y:0},[ut.Right]:{x:1,y:0},[ut.Top]:{x:0,y:-1},[ut.Bottom]:{x:0,y:1}},eHe=({source:t,sourcePosition:e=ut.Bottom,target:n})=>e===ut.Left||e===ut.Right?t.x<n.x?{x:1,y:0}:{x:-1,y:0}:t.y<n.y?{x:0,y:1}:{x:0,y:-1},b$=(t,e)=>Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));function tHe({source:t,sourcePosition:e=ut.Bottom,target:n,targetPosition:r=ut.Top,center:i,offset:o,stepPosition:s}){const a=v$[e],l=v$[r],c={x:t.x+a.x*o,y:t.y+a.y*o},u={x:n.x+l.x*o,y:n.y+l.y*o},d=eHe({source:c,sourcePosition:e,target:u}),f=d.x!==0?"x":"y",h=d[f];let p=[],m,g;const y={x:0,y:0},b={x:0,y:0},[,,v,S]=sne({sourceX:t.x,sourceY:t.y,targetX:n.x,targetY:n.y});if(a[f]*l[f]===-1){f==="x"?(m=i.x??c.x+(u.x-c.x)*s,g=i.y??(c.y+u.y)/2):(m=i.x??(c.x+u.x)/2,g=i.y??c.y+(u.y-c.y)*s);const O=[{x:m,y:c.y},{x:m,y:u.y}],T=[{x:c.x,y:g},{x:u.x,y:g}];a[f]===h?p=f==="x"?O:T:p=f==="x"?T:O}else{const O=[{x:c.x,y:u.y}],T=[{x:u.x,y:c.y}];if(f==="x"?p=a.x===h?T:O:p=a.y===h?O:T,e===r){const C=Math.abs(t[f]-n[f]);if(C<=o){const _=Math.min(o-1,o-C);a[f]===h?y[f]=(c[f]>t[f]?-1:1)*_:b[f]=(u[f]>n[f]?-1:1)*_}}if(e!==r){const C=f==="x"?"y":"x",_=a[f]===l[C],M=c[C]>u[C],V=c[C]<u[C];(a[f]===1&&(!_&&M||_&&V)||a[f]!==1&&(!_&&V||_&&M))&&(p=f==="x"?O:T)}const A={x:c.x+y.x,y:c.y+y.y},R={x:u.x+b.x,y:u.y+b.y},k=Math.max(Math.abs(A.x-p[0].x),Math.abs(R.x-p[0].x)),P=Math.max(Math.abs(A.y-p[0].y),Math.abs(R.y-p[0].y));k>=P?(m=(A.x+R.x)/2,g=p[0].y):(m=p[0].x,g=(A.y+R.y)/2)}return[[t,{x:c.x+y.x,y:c.y+y.y},...p,{x:u.x+b.x,y:u.y+b.y},n],m,g,v,S]}function nHe(t,e,n,r){const i=Math.min(b$(t,e)/2,b$(e,n)/2,r),{x:o,y:s}=e;if(t.x===o&&o===n.x||t.y===s&&s===n.y)return`L${o} ${s}`;if(t.y===s){const c=t.x<n.x?-1:1,u=t.y<n.y?1:-1;return`L ${o+i*c},${s}Q ${o},${s} ${o},${s+i*u}`}const a=t.x<n.x?1:-1,l=t.y<n.y?-1:1;return`L ${o},${s+i*l}Q ${o},${s} ${o+i*a},${s}`}function s3({sourceX:t,sourceY:e,sourcePosition:n=ut.Bottom,targetX:r,targetY:i,targetPosition:o=ut.Top,borderRadius:s=5,centerX:a,centerY:l,offset:c=20,stepPosition:u=.5}){const[d,f,h,p,m]=tHe({source:{x:t,y:e},sourcePosition:n,target:{x:r,y:i},targetPosition:o,center:{x:a,y:l},offset:c,stepPosition:u});return[d.reduce((y,b,v)=>{let S="";return v>0&&v<d.length-1?S=nHe(d[v-1],b,d[v+1],s):S=`${v===0?"M":"L"}${b.x} ${b.y}`,y+=S,y},""),f,h,p,m]}function w$(t){var e;return t&&!!(t.internals.handleBounds||(e=t.handles)!=null&&e.length)&&!!(t.measured.width||t.width||t.initialWidth)}function rHe(t){var d;const{sourceNode:e,targetNode:n}=t;if(!w$(e)||!w$(n))return null;const r=e.internals.handleBounds||S$(e.handles),i=n.internals.handleBounds||S$(n.handles),o=x$((r==null?void 0:r.source)??[],t.sourceHandle),s=x$(t.connectionMode===qm.Strict?(i==null?void 0:i.target)??[]:((i==null?void 0:i.target)??[]).concat((i==null?void 0:i.source)??[]),t.targetHandle);if(!o||!s)return(d=t.onError)==null||d.call(t,"008",Ka.error008(o?"target":"source",{id:t.id,sourceHandle:t.sourceHandle,targetHandle:t.targetHandle})),null;const a=(o==null?void 0:o.position)||ut.Bottom,l=(s==null?void 0:s.position)||ut.Top,c=nh(e,o,a),u=nh(n,s,l);return{sourceX:c.x,sourceY:c.y,targetX:u.x,targetY:u.y,sourcePosition:a,targetPosition:l}}function S$(t){if(!t)return null;const e=[],n=[];for(const r of t)r.width=r.width??1,r.height=r.height??1,r.type==="source"?e.push(r):r.type==="target"&&n.push(r);return{source:e,target:n}}function nh(t,e,n=ut.Left,r=!1){const i=((e==null?void 0:e.x)??0)+t.internals.positionAbsolute.x,o=((e==null?void 0:e.y)??0)+t.internals.positionAbsolute.y,{width:s,height:a}=e??gc(t);if(r)return{x:i+s/2,y:o+a/2};switch((e==null?void 0:e.position)??n){case ut.Top:return{x:i+s/2,y:o};case ut.Right:return{x:i+s,y:o+a/2};case ut.Bottom:return{x:i+s/2,y:o+a};case ut.Left:return{x:i,y:o+a/2}}}function x$(t,e){return t&&(e?t.find(n=>n.id===e):t[0])||null}function a3(t,e){return t?typeof t=="string"?t:`${e?`${e}__`:""}${Object.keys(t).sort().map(r=>`${r}=${t[r]}`).join("&")}`:""}function iHe(t,{id:e,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){const o=new Set;return t.reduce((s,a)=>
5099([a.markerStart||r,a.markerEnd||i].forEach(l=>{if(l&&typeof l=="object"){const c=a3(l,e);o.has(c)||(s.push({id:c,color:l.color||n,...l}),o.add(c))}}),s),[]).sort((s,a)=>s.id.localeCompare(a.id))}const cne=1e3,oHe=10,CN={nodeOrigin:[0,0],nodeExtent:J0,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},sHe={...CN,checkEquality:!0};function _N(t,e){const n={...t};for(const r in e)e[r]!==void 0&&(n[r]=e[r]);return n}function aHe(t,e,n){const r=_N(CN,n);for(const i of t.values())if(i.parentId)IN(i,t,e,r);else{const o=ob(i,r.nodeOrigin),s=Km(i.extent)?i.extent:r.nodeExtent,a=th(o,s,gc(i));i.internals.positionAbsolute=a}}function lHe(t,e){if(!t.handles)return t.measured?e==null?void 0:e.internals.handleBounds:void 0;const n=[],r=[];for(const i of t.handles){const o={id:i.id,width:i.width??1,height:i.height??1,nodeId:t.id,x:i.x,y:i.y,position:i.position,type:i.type};i.type==="source"?n.push(o):i.type==="target"&&r.push(o)}return{source:n,target:r}}function AN(t){return t==="manual"}function l3(t,e,n,r={}){var c,u;const i=_N(sHe,r),o={i:0},s=new Map(e),a=i!=null&&i.elevateNodesOnSelect&&!AN(i.zIndexMode)?cne:0;let l=t.length>0;e.clear(),n.clear();for(const d of t){let f=s.get(d.id);if(i.checkEquality&&d===(f==null?void 0:f.internals.userNode))e.set(d.id,f);else{const h=ob(d,i.nodeOrigin),p=Km(d.extent)?d.extent:i.nodeExtent,m=th(h,p,gc(d));f={...i.defaults,...d,measured:{width:(c=d.measured)==null?void 0:c.width,height:(u=d.measured)==null?void 0:u.height},internals:{positionAbsolute:m,handleBounds:lHe(d,f),z:une(d,a,i.zIndexMode),userNode:d}},e.set(d.id,f)}(f.measured===void 0||f.measured.width===void 0||f.measured.height===void 0)&&!f.hidden&&(l=!1),d.parentId&&IN(f,e,n,r,o)}return l}function cHe(t,e){if(!t.parentId)return;const n=e.get(t.parentId);n?n.set(t.id,t):e.set(t.parentId,new Map([[t.id,t]]))}function IN(t,e,n,r,i){const{elevateNodesOnSelect:o,nodeOrigin:s,nodeExtent:a,zIndexMode:l}=_N(CN,r),c=t.parentId,u=e.get(c);if(!u){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}cHe(t,n),i&&!u.parentId&&u.internals.rootParentIndex===void 0&&l==="auto"&&(u.internals.rootParentIndex=++i.i,u.internals.z=u.internals.z+i.i*oHe),i&&u.internals.rootParentIndex!==void 0&&(i.i=u.internals.rootParentIndex);const d=o&&!AN(l)?cne:0,{x:f,y:h,z:p}=uHe(t,u,s,a,d,l),{positionAbsolute:m}=t.internals,g=f!==m.x||h!==m.y;(g||p!==t.internals.z)&&e.set(t.id,{...t,internals:{...t.internals,positionAbsolute:g?{x:f,y:h}:m,z:p}})}function une(t,e,n){const r=Hs(t.zIndex)?t.zIndex:0;return AN(n)?r:r+(t.selected?e:0)}function uHe(t,e,n,r,i,o){const{x:s,y:a}=e.internals.positionAbsolute,l=gc(t),c=ob(t,n),u=Km(t.extent)?th(c,t.extent,l):c;let d=th({x:s+u.x,y:a+u.y},r,l);t.extent==="parent"&&(d=Xte(d,l,e));const f=une(t,i,o),h=e.internals.z??0;return{x:d.x,y:d.y,z:h>=f?h+1:f}}function RN(t,e,n,r=[0,0]){var s;const i=[],o=new Map;for(const a of t){const l=e.get(a.parentId);if(!l)continue;const c=((s=o.get(a.parentId))==null?void 0:s.expandedRect)??Gm(l),u=Jte(c,a.rect);o.set(a.parentId,{expandedRect:u,parent:l})}return o.size>0&&o.forEach(({expandedRect:a,parent:l},c)=>{var v;const u=l.internals.positionAbsolute,d=gc(l),f=l.origin??r,h=a.x<u.x?Math.round(Math.abs(u.x-a.x)):0,p=a.y<u.y?Math.round(Math.abs(u.y-a.y)):0,m=Math.max(d.width,Math.round(a.width)),g=Math.max(d.height,Math.round(a.height)),y=(m-d.width)*f[0],b=(g-d.height)*f[1];(h>0||p>0||y||b)&&(i.push({id:c,type:"position",position:{x:l.position.x-h+y,y:l.position.y-p+b}}),(v=n.get(c))==null||v.forEach(S=>{t.some(I=>I.id===S.id)||i.push({id:S.id,type:"position",position:{x:S.position.x+h,y:S.position.y+p}})})),(d.width<a.width||d.height<a.height||h||p)&&i.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:m+(h?f[0]*h-y:0),height:g+(p?f[1]*p-b:0)}})}),i}function dHe(t,e,n,r,i,o,s){const a=r==null?void 0:r.querySelector(".xyflow__viewport");let l=!1;if(!a)return{changes:[],updatedInternals:l};const c=[],u=window.getComputedStyle(a),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(const h of t.values()){const p=e.get(h.id);if(!p)continue;if(p.hidden){e.set(p.id,{...p,internals:{...p.internals,handleBounds:void 0}}),l=!0;continue}const m=TN(h.nodeElement),g=p.measured.width!==m.width||p.measured.height!==m.height;if(!!(m.width&&m.height&&(g||!p.internals.handleBounds||h.force))){const b=h.nodeElement.getBoundingClientRect(),v=Km(p.extent)?p.extent:o;let{positionAbsolute:S}=p.internals;p.parentId&&p.extent==="parent"?S=Xte(S,m,e.get(p.parentId)):v&&(S=th(S,v,m));const I={...p,measured:m,internals:{...p.internals,positionAbsolute:S,handleBounds:{source:g$("source",h.nodeElement,b,d,p.id),target:g$("target",h.nodeElement,b,d,p.id)}}};e.set(p.id,I),p.parentId&&IN(I,e,n,{nodeOrigin:i,zIndexMode:s}),l=!0,g&&(c.push({id:p.id,type:"dimensions",dimensions:m}),p.expandParent&&p.parentId&&f.push({id:p.id,parentId:p.parentId,rect:Gm(I,i)}))}}if(f.length>0){const h=RN(f,e,n,i);c.push(...h)}return{changes:c,updatedInternals:l}}async function fHe({delta:t,panZoom:e,transform:n,translateExtent:r,width:i,height:o}){if(!e||!t.x&&!t.y)return Promise.resolve(!1);const s=await e.setViewportConstrained({x:n[0]+t.x,y:n[1]+t.y,zoom:n[2]},[[0,0],[i,o]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}function E$(t,e,n,r,i,o){let s=i;const a=r.get(s)||new Map;r.set(s,a.set(n,e)),s=`${i}-${t}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,e)),o){s=`${i}-${t}-${o}`;const c=r.get(s)||new Map;r.set(s,c.set(n,e))}}function dne(t,e,n){t.clear(),e.clear();for(const r of n){const{source:i,target:o,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:i,target:o,sourceHandle:s,targetHandle:a},c=`${i}-${s}--${o}-${a}`,u=`${o}-${a}--${i}-${s}`;E$("source",l,u,t,i,s),E$("target",l,c,t,o,a),e.set(r.id,r)}}function fne(t,e){if(!t.parentId)return!1;const n=e.get(t.parentId);return n?n.selected?!0:fne(n,e):!1}function T$(t,e,n){var i;let r=t;do{if((i=r==null?void 0:r.matches)!=null&&i.call(r,e))return!0;
5099if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function hHe(t,e,n,r){const i=new Map;for(const[o,s]of t)if((s.selected||s.id===r)&&(!s.parentId||!fne(s,t))&&(s.draggable||e&&typeof s.draggable>"u")){const a=t.get(o);a&&i.set(o,{id:o,position:a.position||{x:0,y:0},distance:{x:n.x-a.internals.positionAbsolute.x,y:n.y-a.internals.positionAbsolute.y},extent:a.extent,parentId:a.parentId,origin:a.origin,expandParent:a.expandParent,internals:{positionAbsolute:a.internals.positionAbsolute||{x:0,y:0}},measured:{width:a.measured.width??0,height:a.measured.height??0}})}return i}function EI({nodeId:t,dragItems:e,nodeLookup:n,dragging:r=!0}){var s,a,l;const i=[];for(const[c,u]of e){const d=(s=n.get(c))==null?void 0:s.internals.userNode;d&&i.push({...d,position:u.position,dragging:r})}if(!t)return[i[0],i];const o=(a=n.get(t))==null?void 0:a.internals.userNode;return[o?{...o,position:((l=e.get(t))==null?void 0:l.position)||o.position,dragging:r}:i[0],i]}function pHe({dragItems:t,snapGrid:e,x:n,y:r}){const i=t.values().next().value;if(!i)return null;const o={x:n-i.distance.x,y:r-i.distance.y},s=ab(o,e);return{x:s.x-o.x,y:s.y-o.y}}function mHe({onNodeMouseDown:t,getStoreItems:e,onDragStart:n,onDrag:r,onDragStop:i}){let o={x:null,y:null},s=0,a=new Map,l=!1,c={x:0,y:0},u=null,d=!1,f=null,h=!1,p=!1,m=null;function g({noDragClassName:b,handleSelector:v,domNode:S,isSelectable:I,nodeId:O,nodeClickDistance:T=0}){f=Eo(S);function A({x:C,y:_}
5099){const{nodeLookup:M,nodeExtent:V,snapGrid:N,snapToGrid:z,nodeOrigin:L,onNodeDrag:B,onSelectionDrag:j,onError:H,updateNodePositions:q}=e();o={x:C,y:_};let Y=!1;const Z=a.size>1,G=Z&&V?o3(sb(a)):null,X=Z&&z?pHe({dragItems:a,snapGrid:N,x:C,y:_}):null;for(const[K,J]of a){if(!M.has(K))continue;let te={x:C-J.distance.x,y:_-J.distance.y};z&&(te=X?{x:Math.round(te.x+X.x),y:Math.round(te.y+X.y)}:ab(te,N));let ne=null;if(Z&&V&&!J.extent&&G){const{positionAbsolute:oe}=J.internals,ue=oe.x-G.x+V[0][0],pe=oe.x+J.measured.width-G.x2+V[1][0],ve=oe.y-G.y+V[0][1],se=oe.y+J.measured.height-G.y2+V[1][1];ne=[[ue,ve],[pe,se]]}const{position:ce,positionAbsolute:ie}=Yte({nodeId:K,nextPosition:te,nodeLookup:M,nodeExtent:ne||V,nodeOrigin:L,onError:H});Y=Y||J.position.x!==ce.x||J.position.y!==ce.y,J.position=ce,J.internals.positionAbsolute=ie}if(p=p||Y,!!Y&&(q(a,!0),m&&(r||B||!O&&j))){const[K,J]=EI({nodeId:O,dragItems:a,nodeLookup:M});r==null||r(m,a,K,J),B==null||B(m,K,J),O||j==null||j(m,J)}}async function R(){if(!u)return;const{transform:C,panBy:_,autoPanSpeed:M,autoPanOnNodeDrag:V}=e();if(!V){l=!1,cancelAnimationFrame(s);return}const[N,z]=Qte(c,u,M);(N!==0||z!==0)&&(o.x=(o.x??0)-N/C[2],o.y=(o.y??0)-z/C[2],await _({x:N,y:z})&&A(o)),s=requestAnimationFrame(R)}function k(C){var Z;const{nodeLookup:_,multiSelectionActive:M,nodesDraggable:V,transform:N,snapGrid:z,snapToGrid:L,selectNodesOnDrag:B,onNodeDragStart:j,onSelectionDragStart:H,unselectNodesAndEdges:q}=e();d=!0,(!B||!I)&&!M&&O&&((Z=_.get(O))!=null&&Z.selected||q()),I&&B&&O&&(t==null||t(O));const Y=Dy(C.sourceEvent,{transform:N,snapGrid:z,snapToGrid:L,containerBounds:u});if(o=Y,a=hHe(_,V,Y,O),a.size>0&&(n||j||!O&&H)){const[G,X]=EI({nodeId:O,dragItems:a,nodeLookup:_});n==null||n(C.sourceEvent,a,G,X),j==null||j(C.sourceEvent,G,X),O||H==null||H(C.sourceEvent,X)}}const P=Nte().clickDistance(T).on("start",C=>{const{domNode:_,nodeDragThreshold:M,transform:V,snapGrid:N,snapToGri
5099d:z}=e();u=(_==null?void 0:_.getBoundingClientRect())||null,h=!1,p=!1,m=C.sourceEvent,M===0&&k(C),o=Dy(C.sourceEvent,{transform:V,snapGrid:N,snapToGrid:z,containerBounds:u}),c=Us(C.sourceEvent,u)}).on("drag",C=>{const{autoPanOnNodeDrag:_,transform:M,snapGrid:V,snapToGrid:N,nodeDragThreshold:z,nodeLookup:L}=e(),B=Dy(C.sourceEvent,{transform:M,snapGrid:V,snapToGrid:N,containerBounds:u});if(m=C.sourceEvent,(C.sourceEvent.type==="touchmove"&&C.sourceEvent.touches.length>1||O&&!L.has(O))&&(h=!0),!h){if(!l&&_&&d&&(l=!0,R()),!d){const j=Us(C.sourceEvent,u),H=j.x-c.x,q=j.y-c.y;Math.sqrt(H*H+q*q)>z&&k(C)}(o.x!==B.xSnapped||o.y!==B.ySnapped)&&a&&d&&(c=Us(C.sourceEvent,u),A(B))}}).on("end",C=>{if(!(!d||h)&&(l=!1,d=!1,cancelAnimationFrame(s),a.size>0)){const{nodeLookup:_,updateNodePositions:M,onNodeDragStop:V,onSelectionDragStop:N}=e();if(p&&(M(a,!1),p=!1),i||V||!O&&N){const[z,L]=EI({nodeId:O,dragItems:a,nodeLookup:_,dragging:!1});i==null||i(C.sourceEvent,a,z,L),V==null||V(C.sourceEvent,z,L),O||N==null||N(C.sourceEvent,L)}}}).filter(C=>{const _=C.target;return!C.button&&(!b||!T$(_,`.${b}`,S))&&(!v||T$(_,v,S))});f.call(P)}function y(){f==null||f.on(".drag",null)}return{update:g,destroy:y}}function gHe(t,e,n){const r=[],i={x:t.x-n,y:t.y-n,width:n*2,height:n*2};for(const o of e.values())ev(i,Gm(o))>0&&r.push(o);return r}const yHe=250;function vHe(t,e,n,r){var a,l;let i=[],o=1/0;const s=gHe(t,n,e+yHe);for(const c of s){const u=[...((a=c.internals.handleBounds)==null?void 0:a.source)??[],...((l=c.internals.handleBounds)==null?void 0:l.target)??[]];for(const d of u){if(r.nodeId===d.nodeId&&r.type===d.type&&r.id===d.id)continue;const{x:f,y:h}=nh(c,d,d.position,!0),p=Math.sqrt(Math.pow(f-t.x,2)+Math.pow(h-t.y,2));p>e||(p<o?(i=[{...d,x:f,y:h}],o=p):p===o&&i.push({...d,x:f,y:h}))}}if(!i.length)return null;if(i.length>1){const c=r.type==="source"?"target":"source";return i.find(u=>u.type===c)??i[0]}return i[0]}function hne(t,e,n,r,i,o=!1){var c,u,d;const s=r.get(t);if(!s)return null;const a=i==="strict"?(c=s.internals.handleBounds)==null?void 0:c[e]:[...((u=s.internals.handleBounds)==null?void 0:u.source)??[],...((d=s.internals.handleBounds)==null?void 0:d.target)??[]],l=(n?a==null?void 0:a.find(f=>f.id===n):a==null?void 0:a[0])??null;return l&&o?{...l,...nh(s,l,l.position,!0)}:l}function pne(t,e){return t||(e!=null&&e.classList.contains("target")?"target":e!=null&&e.classList.contains("source")?"source":null)}function bHe(t,e){let n=null;return e?n=!0:t&&!e&&(n=!1),n}const mne=()=>!0;function wHe(t,{connectionMode:e,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:o,isTarget:s,domNode:a,nodeLookup:l,lib:c,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:h,onConnectStart:p,onConnect:m,onConnectEnd:g,isValidConnection:y=mne,onReconnectEnd:b,updateConnection:v,getTransform:S,getFromHandle:I,autoPanSpeed:O,dragThreshold:T=1,handleDomNode:A}){const R=tne(t.target);let k=0,P;const{x:C,y:_}=Us(t),M=pne(o,A),V=a==null?void 0:a.getBoundingClientRect();let N=!1;if(!V||!M)return;const z=hne(i,M,r,l,e);if(!z)return;let L=Us(t,V),B=!1,j=null,H=!1,q=null;function Y(){if(!u||!V)return;const[ce,ie]=Qte(L,V,O);f({x:ce,y:ie}),k=requestAnimationFrame(Y)}const Z={...z,nodeId:i,type:M,position:z.position},G=l.get(i);let K={inProgress:!0,isValid:null,from:nh(G,Z,ut.Left,!0),fromHandle:Z,fromPosition:Z.position,fromNode:G,to:L,toHandle:null,toPosition:f$[Z.position],toNode:null,pointer:L};function J(){N=!0,v(K),p==null||p(t,{nodeId:i,handleId:r,handleType:M})}T===0&&J();function te(ce){if(!N){const{x:se,y:ae}=Us(ce),ke=se-C,Ee=ae-_;if(!(ke*ke+Ee*Ee>T*T))return;J()}if(!I()||!Z){ne(ce);return}const ie=S();L=Us(ce,V),P=vHe(lb(L,ie,!1,[1,1]),n,l,Z),B||(Y(),B=!0);const oe=gne(ce,{handle:P,connectionMode:e,fromNodeId:i,fromHandleId:r,fromType:s?"target":"source",isValidConnection:y,doc:R,lib:c,flowId:d,nodeLookup:l});q=oe.handleDomNode,j=oe.connection,H=bHe(!!P,oe.isValid);const ue=l.get(i),pe=ue?nh(ue,Z,ut.Left,!0):K.from,ve={...K,from:pe,isValid:H,to:oe.toHandle&&H?Ox({x:oe.toHandle.x,y:oe.toHandle.y},ie):L,toHandle:oe.toHandle,toPosition:H&&oe.toHandle?oe.toHandle.position:f$[Z.position],toNode:oe.toHandle?l.get(oe.toHandle.nodeId):null,pointer:L};v(ve),K=ve}function ne(ce){if(!("touches"in ce&&ce.touches.length>0)){if(N){(P||q)&&j&&H&&(m==null||m(j));const{inProgress:ie,...oe}=K,ue={...oe,toPosition:K.toHandle?K.toPosition:null};g==null||g(ce,ue),o&&(b==null||b(ce,ue))}h(),cancelAnimationFrame(k),B=!1,H=!1,j=null,q=null,R.removeEventListener("mousemove",te),R.removeEventListener("mouseup",ne),R.removeEventListener("touchmove",te),R.removeEventListener("touchend",ne)}}R.addEventListener("mousemove",te),R.addEventListener("mouseup",ne),R.addEventListener("touchmove",te),R.addEventListener("touchend",ne)}function gne(t,{handle:e,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:o,doc:s,lib:a,flowId:l,isValidConnection:c=mne,nodeLookup:u}){const d=o==="target",f=e?s.querySelector(`.${a}-flow__handle[data-id="${l}-${e==null?void 0:e.nodeId}-${e==null?void 0:e.id}-${e==null?void 0:e.type}"]`):null,{x:h,y:p}=Us(t),m=s.elementFromPoint(h,p),g=m!=null&&m.classList.contains(`${a}
5099-flow__handle`)?m:f,y={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){const b=pne(void 0,g),v=g.getAttribute("data-nodeid"),S=g.getAttribute("data-handleid"),I=g.classList.contains("connectable"),O=g.classList.contains("connectableend");if(!v||!b)return y;const T={source:d?v:r,sourceHandle:d?S:i,target:d?r:v,targetHandle:d?i:S};y.connection=T;const R=I&&O&&(n===qm.Strict?d&&b==="source"||!d&&b==="target":v!==r||S!==i);y.isValid=R&&c(T),y.toHandle=hne(v,b,S,u,n,!0)}return y}const c3={onPointerDown:wHe,isValid:gne};function SHe({domNode:t,panZoom:e,getTransform:n,getViewScale:r}){const i=Eo(t);function o({translateExtent:a,width:l,height:c,zoomStep:u=1,pannable:d=!0,zoomable:f=!0,inversePan:h=!1}){const p=v=>{if(v.sourceEvent.type!=="wheel"||!e)return;const S=n(),I=v.sourceEvent.ctrlKey&&tv()?10:1,O=-v.sourceEvent.deltaY*(v.sourceEvent.deltaMode===1?.05:v.sourceEvent.deltaMode?1:.002)*u,T=S[2]*Math.pow(2,O*I);e.scaleTo(T)};let m=[0,0];const g=v=>{(v.sourceEvent.type==="mousedown"||v.sourceEvent.type==="touchstart")&&(m=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY])},y=v=>{const S=n();if(v.sourceEvent.type!=="mousemove"&&v.sourceEvent.type!=="touchmove"||!e)return;const I=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY],O=[I[0]-m[0],I[1]-m[1]];m=I;const T=r()*Math.max(S[2],Math.log(S[2]))*(h?-1:1),A={x:S[0]-O[0]*T,y:S[1]-O[1]*T},R=[[0,0],[l,c]];e.setViewportConstrained({x:A.x,y:A.y,zoom:S[2]},R,a)},b=Hte().on("start",g).on("zoom",d?y:null).on("zoom.wheel",f?p:null);i.call(b,{})}function s(){i.on("zoom",null)}return{update:o,destroy:s,pointer:Ds}}const DC=t=>({x:t.x,y:t.y,zoom:t.k}),TI=({x:t,y:e,zoom:n})=>PC.translate(t,e).scale(n),xp=(t,e)=>t.target.closest(`.${e}`),yne=(t,e)=>e===2&&Array.isArray(t)&&t.includes(2),xHe=t=>((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2,CI=(t,e=0,n=xHe,r=()=>{})=>{const i=typeof e=="number"&&e>0;return i||r(),i?t.transition().duration(e).ease(n).on("end",r):t},vne=t=>{const e=t.ctrlKey&&tv()?10:1;return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*e};function EHe({zoomPanValues:t,noWheelClassName:e,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:o,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:c}){return u=>{if(xp(u,e))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();const d=n.property("__zoom").k||1;if(u.ctrlKey&&s){const g=Ds(u),y=vne(u),b=d*Math.pow(2,y);r.scaleTo(n,b,g,u);return}const f=u.deltaMode===1?20:1;let h=i===Ef.Vertical?0:u.deltaX*f,p=i===Ef.Horizontal?0:u.deltaY*f;!tv()&&u.shiftKey&&i!==Ef.Vertical&&(h=u.deltaY*f,p=0),r.translateBy(n,-(h/d)*o,-(p/d)*o,{internal:!0});const m=DC(n.property("__zoom"));clearTimeout(t.panScrollTimeout),t.isPanScrolling?(l==null||l(u,m),t.panScrollTimeout=setTimeout(()=>{c==null||c(u,m),t.isPanScrolling=!1},150)):(t.isPanScrolling=!0,a==null||a(u,m))}}function THe({noWheelClassName:t,preventScrolling:e,d3ZoomHandler:n}){return function(r,i){const o=r.type==="wheel",s=!e&&o&&!r.ctrlKey,a=xp(r,t);if(r.ctrlKey&&o&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,i)}}function CHe({zoomPanValues:t,onDraggingChange:e,onPanZoomStart:n}){return r=>{var o,s,a;if((o=r.sourceEvent)!=null&&o.internal)return;const i=DC(r.transform);t.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,t.isZoomingOrPanning=!0,t.prevViewport=i,((a=r.sourceEvent)==null?void 0:a.type)==="mousedown"&&e(!0),n&&(n==null||n(r.sourceEvent,i))}}function _He({zoomPanValues:t,panOnDrag:e,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return o=>{var s,a;t.usedRightMouseButton=!!(n&&yne(e,t.mouseButton??0)),(s=o.sourceEvent)!=null&&s.sync||r([o.transform.x,o.transform.y,o.transform.k]),i&&!((a=o.sourceEvent)!=null&&a.internal)&&(i==null||i(o.sourceEvent,DC(o.transform)))}}function AHe({zoomPanValues:t,panOnDrag:e,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:o}){return s=>{var a;if(!((a=s.sourceEvent)!=null&&a.internal)&&(t.isZoomingOrPanning=!1,o&&yne(e,t.mouseButton??0)&&!t.usedRightMouseButton&&s.sourceEvent&&o(s.sourceEvent),t.usedRightMouseButton=!1,r(!1),i)){const l=DC(s.transform);t.prevViewport=l,clearTimeout(t.timerId),t.timerId=setTimeout(()=>{i==null||i(s.sourceEvent,l)},n?150:0)}}}function IHe({zoomActivationKeyPressed:t,zoomOnScroll:e,zoomOnPinch:n,panOnDrag:r,panOnScroll:i,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:c,connectionInProgress:u}){return d=>{var g;const f=t||e,h=n&&d.ctrlKey,p=d.type==="wheel";if(d.button===1&&d.type==="mousedown"&&(xp(d,`${c}-flow__node`)||xp(d,`${c}-flow__edge`)))return!0;
5099if(!r&&!f&&!i&&!o&&!n||s||u&&!p||xp(d,a)&&p||xp(d,l)&&(!p||i&&p&&!t)||!n&&d.ctrlKey&&p)return!1;if(!n&&d.type==="touchstart"&&((g=d.touches)==null?void 0:g.length)>1)return d.preventDefault(),!1;if(!f&&!i&&!h&&p||!r&&(d.type==="mousedown"||d.type==="touchstart")||Array.isArray(r)&&!r.includes(d.button)&&d.type==="mousedown")return!1;const m=Array.isArray(r)&&r.includes(d.button)||!d.button||d.button<=1;return(!d.ctrlKey||p)&&m}}function RHe({domNode:t,minZoom:e,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:o,onPanZoomStart:s,onPanZoomEnd:a,onDraggingChange:l}){const c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=t.getBoundingClientRect(),d=Hte().scaleExtent([e,n]).translateExtent(r),f=Eo(t).call(d);b({x:i.x,y:i.y,zoom:Wm(i.zoom,e,n)},[[0,0],[u.width,u.height]],r);const h=f.on("wheel.zoom"),p=f.on("dblclick.zoom");d.wheelDelta(vne);function m(P,C){return f?new Promise(_=>{d==null||d.interpolate((C==null?void 0:C.interpolate)==="linear"?Cy:yw).transform(CI(f,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>_(!0)),P)}):Promise.resolve(!1)}function g({noWheelClassName:P,noPanClassName:C,onPaneContextMenu:_,userSelectionActive:M,panOnScroll:V,panOnDrag:N,panOnScrollMode:z,panOnScrollSpeed:L,preventScrolling:B,zoomOnPinch:j,zoomOnScroll:H,zoomOnDoubleClick:q,zoomActivationKeyPressed:Y,lib:Z,onTransformChange:G,connectionInProgress:X,paneClickDistance:K,selectionOnDrag:J}){M&&!c.isZoomingOrPanning&&y();const te=V&&!Y&&!M;d.clickDistance(J?1/0:!Hs(K)||K<0?0:K);const ne=te?EHe({zoomPanValues:c,noWheelClassName:P,d3Selection:f,d3Zoom:d,panOnScrollMode:z,panOnScrollSpeed:L,zoomOnPinch:j,onPanZoomStart:s,onPanZoom:o,onPanZoomEnd:a}):THe({noWheelClassName:P,preventScrolling:B,d3ZoomHandler:h});if(f.on("wheel.zoom",ne,{passive:!1}),!M){const ie=CHe({zoomPanValues:c,onDraggingChange:l,onPanZoomStart:s});d.on("start",ie);const oe=_He({zoomPanValues:c,panOnDrag:N,onPaneContextMenu:!!_,onPanZoom:o,onTransformChange:G});d.on("zoom",oe);const ue=AHe({zoomPanValues:c,panOnDrag:N,panOnScroll:V,onPaneContextMenu:_,onPanZoomEnd:a,onDraggingChange:l});d.on("end",ue)}const ce=IHe({zoomActivationKeyPressed:Y,panOnDrag:N,zoomOnScroll:H,panOnScroll:V,zoomOnDoubleClick:q,zoomOnPinch:j,userSelectionActive:M,noPanClassName:C,noWheelClassName:P,lib:Z,connectionInProgress:X});d.filter(ce),q?f.on("dblclick.zoom",p):f.on("dblclick.zoom",null)}function y(){d.on("zoom",null)}async function b(P,C,_){const M=TI(P),V=d==null?void 0:d.constrain()(M,C,_);return V&&await m(V),new Promise(N=>N(V))}async function v(P,C){const _=TI(P);return await m(_,C),new Promise(M=>M(_))}function S(P){if(f){const C=TI(P),_=f.property("__zoom");(_.k!==P.zoom||_.x!==P.x||_.y!==P.y)&&(d==null||d.transform(f,C,null,{sync:!0}))}}function I(){const P=f?jte(f.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function O(P,C){return f?new Promise(_=>{d==null||d.interpolate((C==null?void 0:C.interpolate)==="linear"?Cy:yw).scaleTo(CI(f,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>_(!0)),P)}):Promise.resolve(!1)}function T(P,C){return f?new Promise(_=>{d==null||d.interpolate((C==null?void 0:C.interpolate)==="linear"?Cy:yw).scaleBy(CI(f,C==null?void 0:C.duration,C==null?void 0:C.ease,()=>_(!0)),P)}):Promise.resolve(!1)}function A(P){d==null||d.scaleExtent(P)}function R(P){d==null||d.translateExtent(P)}function k(P){const C=!Hs(P)||P<0?0:P;d==null||d.clickDistance(C)}return{update:g,destroy:y,setViewport:v,setViewportConstrained:b,getViewport:I,scaleTo:O,scaleBy:T,setScaleExtent:A,setTranslateExtent:R,syncViewport:S,setClickDistance:k}}var rh;(function(t){t.Line="line",t.Handle="handle"})(rh||(rh={}));const MHe=["top-left","top-right","bottom-left","bottom-right"],kHe=["top","right","bottom","left"];function PHe({width:t,prevWidth:e,height:n,prevHeight:r,affectsX:i,affectsY:o}){const s=t-e,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&i&&(l[0]=l[0]*-1),a&&o&&(l[1]=l[1]*-1),l}function C$(t){const e=t.includes("right")||t.includes("left"),n=t.includes("bottom")||t.includes("top"),r=t.includes("left"),i=t.includes("top");return{isHorizontal:e,isVertical:n,affectsX:r,affectsY:i}}function Rc(t,e){return Math.max(0,e-t)}function Mc(t,e){return Math.max(0,t-e)}function R2(t,e,n){return Math.max(0,e-t,t-n)}function _$(t,e){return t?!e:e}function OHe(t,e,n,r,i,o,s,a){let{affectsX:l,affectsY:c}=e;const{isHorizontal:u,isVertical:d}=e,f=u&&d,{xSnapped:h,ySnapped:p}=n,{minWidth:m,maxWidth:g,minHeight:y,maxHeight:b}=r,{x:v,y:S,width:I,height:O,aspectRatio:T}=t;let A=Math.floor(u?h-t.pointerX:0),R=Math.floor(d?p-t.pointerY:0);const k=I+(l?-A:A),P=O+(c?-R:R),C=-o[0]*I,_=-o[1]*O;let M=R2(k,m,g),V=R2(P,y,b);if(s){let L=0,B=0;l&&A<0?L=Rc(v+A+C,s[0][0]):!l&&A>0&&(L=Mc(v+k+C,s[1][0])),c&&R<0?B=Rc(S+R+_,s[0][1]):!c&&R>0&&(B=Mc(S+P+_,s[1][1])),M=Math.max(M,L),V=Math.max(V,B)}if(a){let L=0,B=0;l&&A>0?L=Mc(v+A,a[0][0]):!l&&A<0&&(L=Rc(v+k,a[1][0])),c&&R>0?B=Mc(S+R,a[0][1]):!c&&R<0&&(B=Rc(S+P,a[1][1])),M=Math.max(M,L),V=Math.max(V,B)}if(i){if(u){const L=R2(k/T,y,b)*T;if(M=Math.max(M,L),s){let B=0;!l&&!c||l&&!c&&f?B=Mc(S+_+k/T,s[1][1])*T:B=Rc(S+_+(l?A:-A)/T,s[0][1])*T,M=Math.max(M,B)}if(a){let B=0;!l&&!c||l&&!c&&f?B=Rc(S+k/T,a[1][1])*T:B=Mc(S+(l?A:-A)/T,a[0][1])*T,M=Math.max(M,B)}}if(d){const L=R2(P*T,m,g)/T;if(V=Math.max(V,L),s){let B=0;!l&&!c||c&&!l&&f?B=Mc(v+P*T+C,s[1][0])/T:B=Rc(v+(c?R:-R)*T+C,s[0][0])/T,V=Math.max(V,B)}if(a){let B=0;!l&&!c||c&&!l&&f?B=Rc(v+P*T,a[1][0])/T:B=Mc(v+(c?R:-R)*T,a[0][0])/T,V=Math.max(V,B)}}}R=R+(R<0?V:-V),A=A+(A<0?M:-M),i&&(f?k>P*T?R=(_$(l,c)?-A:A)/T:A=(_$(l,c)?-R:R)*T:u?(R=A/T,c=l):(A=R*T,l=c));const N=l?v+A:v,z=c?S+R:S;return{width:I+(l?-A:A),height:O+(c?-R:R),x:o[0]*A*(l?-1:1)+N,y:o[1]*R*(c?-1:1)+z}}const bne={width:0,height:0,x:0,y:0},NHe={...bne,pointerX:0,pointerY:0,aspectRatio:1};function DHe(t){return[[0,0],[t.measured.width,t.measured.height]]}function LHe(t,e,n){const r=e.position.x+t.position.x,i=e.position.y+t.position.y,o=t.measured.width??0,s=t.measured.height??0,a=n[0]*o,l=n[1]*s;return[[r-a,i-l],[r+o-a,i+s-l]]}function zHe({domNode:t,nodeId:e,getStoreItems:n,onChange:r,onEnd:i}){const o=Eo(t);let s={controlDirection:C$("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function a({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:f,onResizeStart:h,onResize:p,onResizeEnd:m,shouldResize:g}){let y={...bne},b={...NHe};s={boundaries:u,resizeDirection:f,keepAspectRatio:d,controlDirection:C$(c)};let v,S=null,I=[],O,T,A,R=!1;const k=Nte().on("start",P=>
5099{const{nodeLookup:C,transform:_,snapGrid:M,snapToGrid:V,nodeOrigin:N,paneDomNode:z}=n();if(v=C.get(e),!v)return;S=(z==null?void 0:z.getBoundingClientRect())??null;const{xSnapped:L,ySnapped:B}=Dy(P.sourceEvent,{transform:_,snapGrid:M,snapToGrid:V,containerBounds:S});y={width:v.measured.width??0,height:v.measured.height??0,x:v.position.x??0,y:v.position.y??0},b={...y,pointerX:L,pointerY:B,aspectRatio:y.width/y.height},O=void 0,v.parentId&&(v.extent==="parent"||v.expandParent)&&(O=C.get(v.parentId),T=O&&v.extent==="parent"?DHe(O):void 0),I=[],A=void 0;for(const[j,H]of C)if(H.parentId===e&&(I.push({id:j,position:{...H.position},extent:H.extent}),H.extent==="parent"||H.expandParent)){const q=LHe(H,v,H.origin??N);A?A=[[Math.min(q[0][0],A[0][0]),Math.min(q[0][1],A[0][1])],[Math.max(q[1][0],A[1][0]),Math.max(q[1][1],A[1][1])]]:A=q}h==null||h(P,{...y})}).on("drag",P=>{const{transform:C,snapGrid:_,snapToGrid:M,nodeOrigin:V}=n(),N=Dy(P.sourceEvent,{transform:C,snapGrid:_,snapToGrid:M,containerBounds:S}),z=[];if(!v)return;const{x:L,y:B,width:j,height:H}=y,q={},Y=v.origin??V,{width:Z,height:G,x:X,y:K}=OHe(b,s.controlDirection,N,s.boundaries,s.keepAspectRatio,Y,T,A),J=Z!==j,te=G!==H,ne=X!==L&&J,ce=K!==B&&te;if(!ne&&!ce&&!J&&!te)return;if((ne||ce||Y[0]===1||Y[1]===1)&&(q.x=ne?X:y.x,q.y=ce?K:y.y,y.x=q.x,y.y=q.y,I.length>0)){const pe=X-L,ve=K-B;for(const se of I)se.position={x:se.position.x-pe+Y[0]*(Z-j),y:se.position.y-ve+Y[1]*(G-H)},z.push(se)}if((J||te)&&(q.width=J&&(!s.resizeDirection||s.resizeDirection==="horizontal")?Z:y.width,q.height=te&&(!s.resizeDirection||s.resizeDirection==="vertical")?G:y.height,y.width=q.width,y.height=q.height),O&&v.expandParent){const pe=Y[0]*(q.width??0);q.x&&q.x<pe&&(y.x=pe,b.x=b.x-(q.x-pe));const ve=Y[1]*(q.height??0);q.y&&q.y<ve&&(y.y=ve,b.y=b.y-(q.y-ve))}const ie=PHe({width:y.width,prevWidth:j,height:y.height,prevHeight:H,affectsX:s.controlDirection.affectsX,affectsY:s.controlDirection.affectsY}),oe={...y,direction:ie};(g==null?void 0:g(P,oe))!==!1&&(R=!0,p==null||p(P,oe),r(q,z))}).on("end",P=>{R&&(m==null||m(P,{...y}),i==null||i({...y}),R=!1)});o.call(k)}function l(){o.on(".drag",null)}return{update:a,destroy:l}}const VHe={},A$=t=>{let e;const n=new Set,r=(u,d)=>{const f=typeof u=="function"?u(e):u;if(!Object.is(f,e)){const h=e;e=d??(typeof f!="object"||f===null)?f:Object.assign({},e,f),n.forEach(p=>p(e,h))}},i=()=>e,l={setState:r,getState:i,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(VHe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},c=e=t(r,i,l);return l},BHe=t=>t?A$(t):A$,{useDebugValue:$He}=ft,{useSyncExternalStoreWithSelector:FHe}=a6e,jHe=t=>t;function wne(t,e=jHe,n){const r=FHe(t.subscribe,t.getState,t.getServerState||t.getInitialState,e,n);return $He(r),r}const I$=(t,e)=>{const n=BHe(t),r=(i,o=e)=>wne(n,i,o);return Object.assign(r,n),r},HHe=(t,e)=>t?I$(t,e):I$;function Kn(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(const[r,i]of t)if(!Object.is(i,e.get(r)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const r of t)if(!e.has(r))return!1;return!0}const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(e,r)||!Object.is(t[r],e[r]))return!1;return!0}const LC=E.createContext(null),UHe=LC.Provider,Sne=Ka.error001();function Ut(t,e){const n=E.useContext(LC);if(n===null)throw new Error(Sne);return wne(n,t,e)}function Yn(){const t=E.useContext(LC);if(t===null)throw new Error(Sne);return E.useMemo(()=>({getState:t.getState,setState:t.setState,subscribe:t.subscribe}),[t])}const R$={display:"none"},qHe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},xne="react-flow__node-desc",Ene="react-flow__edge-desc",WHe="react-flow__aria-live",GHe=t=>t.ariaLiveMessage,KHe=t=>t.ariaLabelConfig;function YHe({rfId:t}){const e=Ut(GHe);return x.jsx("div",{id:`${WHe}-${t}`,"aria-live":"assertive","aria-atomic":"true",style:qHe,children:e})}function XHe({rfId:t,disableKeyboardA11y:e}){const n=Ut(KHe);return x.jsxs(x.Fragment,{children:[x.jsx("div",{id:`${xne}-${t}`,style:R$,children:e?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),x.jsx("div",{id:`${Ene}-${t}`,style:R$,children:n["edge.a11yDescription.default"]}),!e&&x.jsx(YHe,{rfId:t})]})}const zC=E.forwardRef(({position:t="top-left",children:e,className:n,style:r,...i},o)=>{const s=`${t}`.split("-");return x.jsx("div",{className:Mr(["react-flow__panel",n,...s]),style:r,ref:o,...i,children:e})});zC.displayName="Panel";function QHe({proOptions:t,position:e="bottom-right"}){return t!=null&&t.hideAttribution?null:x.jsx(zC,{position:e,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:x.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const JHe=t=>{const e=[],n=[];for(const[,r]of t.nodeLookup)r.selected&&e.push(r.internals.userNode);for(const[,r]of t.edgeLookup)r.selected&&n.push(r);return{selectedNodes:e,selectedEdges:n}},M2=t=>t.id;function ZHe(t,e){return Kn(t.selectedNodes.map(M2),e.selectedNodes.map(M2))&&Kn(t.selectedEdges.map(M2),e.selectedEdges.map(M2))}function eUe({onSelectionChange:t}){const e=Yn(),{selectedNodes:n,selectedEdges:r}=Ut(JHe,ZHe);return E.useEffect(()=>{const i={nodes:n,edges:r};
5099t==null||t(i),e.getState().onSelectionChangeHandlers.forEach(o=>o(i))},[n,r,t]),null}const tUe=t=>!!t.onSelectionChangeHandlers;function nUe({onSelectionChange:t}){const e=Ut(tUe);return t||e?x.jsx(eUe,{onSelectionChange:t}):null}const Tne=[0,0],rUe={x:0,y:0,zoom:1},iUe=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],M$=[...iUe,"rfId"],oUe=t=>({setNodes:t.setNodes,setEdges:t.setEdges,setMinZoom:t.setMinZoom,setMaxZoom:t.setMaxZoom,setTranslateExtent:t.setTranslateExtent,setNodeExtent:t.setNodeExtent,reset:t.reset,setDefaultNodesAndEdges:t.setDefaultNodesAndEdges}),k$={translateExtent:J0,nodeOrigin:Tne,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function sUe(t){const{setNodes:e,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:o,setNodeExtent:s,reset:a,setDefaultNodesAndEdges:l}=Ut(oUe,Kn),c=Yn();E.useEffect(()=>(l(t.defaultNodes,t.defaultEdges),()=>{u.current=k$,a()}),[]);const u=E.useRef(k$);return E.useEffect(()=>{for(const d of M$){const f=t[d],h=u.current[d];f!==h&&(typeof t[d]>"u"||(d==="nodes"?e(f):d==="edges"?n(f):d==="minZoom"?r(f):d==="maxZoom"?i(f):d==="translateExtent"?o(f):d==="nodeExtent"?s(f):d==="ariaLabelConfig"?c.setState({ariaLabelConfig:Kje(f)}):d==="fitView"?c.setState({fitViewQueued:f}):d==="fitViewOptions"?c.setState({fitViewOptions:f}):c.setState({[d]:f})))}u.current=t},M$.map(d=>t[d])),null}function P$(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function aUe(t){var r;const[e,n]=E.useState(t==="system"?null:t);return E.useEffect(()=>{if(t!=="system"){n(t);return}const i=P$(),o=()=>n(i!=null&&i.matches?"dark":"light");return o(),i==null||i.addEventListener("change",o),()=>{i==null||i.removeEventListener("change",o)}},[t]),e!==null?e:(r=P$())!=null&&r.matches?"dark":"light"}const O$=typeof document<"u"?document:null;function nv(t=null,e={target:O$,actInsideInputWithModifier:!0}){const[n,r]=E.useState(!1),i=E.useRef(!1),o=E.useRef(new Set([])),[s,a]=E.useMemo(()=>{if(t!==null){const c=(Array.isArray(t)?t:[t]).filter(d=>typeof d=="string").map(d=>d.replace("+",` 5100`).replace(` 5101 5102`,` 5103+`).split(` 5104`)),u=c.reduce((d,f)=>d.concat(...f),[]);return[c,u]}return[[],[]]},[t]);return E.useEffect(()=>{const l=(e==null?void 0:e.target)??O$,c=(e==null?void 0:e.actInsideInputWithModifier)??!0;if(t!==null){const u=h=>{var g,y;if(i.current=h.ctrlKey||h.metaKey||h.shiftKey||h.altKey,(!i.current||i.current&&!c)&&nne(h))return!1;const m=D$(h.code,a);if(o.current.add(h[m]),N$(s,o.current,!1)){const b=((y=(g=h.composedPath)==null?void 0:g.call(h))==null?void 0:y[0])||h.target,v=(b==null?void 0:b.nodeName)==="BUTTON"||(b==null?void 0:b.nodeName)==="A";e.preventDefault!==!1&&(i.current||!v)&&h.preventDefault(),r(!0)}},d=h=>{const p=D$(h.code,a);N$(s,o.current,!0)?(r(!1),o.current.clear()):o.current.delete(h[p]),h.key==="Meta"&&o.current.clear(),i.current=!1},f=()=>{o.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",u),l==null||l.addEventListener("keyup",d),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{l==null||l.removeEventListener("keydown",u),l==null||l.removeEventListener("keyup",d),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[t,r]),n}function N$(t,e,n){return t.filter(r=>n||r.length===e.size).some(r=>r.every(i=>e.has(i)))}function D$(t,e){return e.includes(t)?"code":"key"}const lUe=()=>{const t=Yn();return E.useMemo(()=>({zoomIn:e=>
5104{const{panZoom:n}=t.getState();return n?n.scaleBy(1.2,{duration:e==null?void 0:e.duration}):Promise.resolve(!1)},zoomOut:e=>{const{panZoom:n}=t.getState();return n?n.scaleBy(1/1.2,{duration:e==null?void 0:e.duration}):Promise.resolve(!1)},zoomTo:(e,n)=>{const{panZoom:r}=t.getState();return r?r.scaleTo(e,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>t.getState().transform[2],setViewport:async(e,n)=>{const{transform:[r,i,o],panZoom:s}=t.getState();return s?(await s.setViewport({x:e.x??r,y:e.y??i,zoom:e.zoom??o},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[e,n,r]=t.getState().transform;return{x:e,y:n,zoom:r}},setCenter:async(e,n,r)=>t.getState().setCenter(e,n,r),fitBounds:async(e,n)=>{const{width:r,height:i,minZoom:o,maxZoom:s,panZoom:a}=t.getState(),l=EN(e,r,i,o,s,(n==null?void 0:n.padding)??.1);return a?(await a.setViewport(l,{duration:n==null?void 0:n.duration,ease:n==null?void 0:n.ease,interpolate:n==null?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(e,n={})=>
5104{const{transform:r,snapGrid:i,snapToGrid:o,domNode:s}=t.getState();if(!s)return e;const{x:a,y:l}=s.getBoundingClientRect(),c={x:e.x-a,y:e.y-l},u=n.snapGrid??i,d=n.snapToGrid??o;return lb(c,r,d,u)},flowToScreenPosition:e=>{const{transform:n,domNode:r}=t.getState();if(!r)return e;const{x:i,y:o}=r.getBoundingClientRect(),s=Ox(e,n);return{x:s.x+i,y:s.y+o}}}),[])};function Cne(t,e){const n=[],r=new Map,i=[];for(const o of t)if(o.type==="add"){i.push(o);continue}else if(o.type==="remove"||o.type==="replace")r.set(o.id,[o]);else{const s=r.get(o.id);s?s.push(o):r.set(o.id,[o])}for(const o of e){const s=r.get(o.id);if(!s){n.push(o);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const a={...o};for(const l of s)cUe(l,a);n.push(a)}return i.length&&i.forEach(o=>{o.index!==void 0?n.splice(o.index,0,{...o.item}):n.push({...o.item})}),n}function cUe(t,e){switch(t.type){case"select":{e.selected=t.selected;break}case"position":{typeof t.position<"u"&&(e.position=t.position),typeof t.dragging<"u"&&(e.dragging=t.dragging);break}case"dimensions":{typeof t.dimensions<"u"&&(e.measured={...t.dimensions},t.setAttributes&&((t.setAttributes===!0||t.setAttributes==="width")&&(e.width=t.dimensions.width),(t.setAttributes===!0||t.setAttributes==="height")&&(e.height=t.dimensions.height))),typeof t.resizing=="boolean"&&(e.resizing=t.resizing);break}}}function uUe(t,e){return Cne(t,e)}function dUe(t,e){return Cne(t,e)}function zd(t,e){return{id:t,type:"select",selected:e}}function Ep(t,e=new Set,n=!1){const r=[];for(const[i,o]of t){const s=e.has(i);!(o.selected===void 0&&!s)&&o.selected!==s&&(n&&(o.selected=s),r.push(zd(o.id,s)))}return r}function L$({items:t=[],lookup:e}){var i;const n=[],r=new Map(t.map(o=>[o.id,o]));for(const[o,s]of t.entries()){const a=e.get(s.id),l=((i=a==null?void 0:a.internals)==null?void 0:i.userNode)??a;l!==void 0&&l!==s&&n.push({id:s.id,item:s,type:"replace"}),l===void 0&&n.push({item:s,type:"add",index:o})}for(const[o]of e)r.get(o)===void 0&&n.push({id:o,type:"remove"});return n}function z$(t){return{id:t.id,type:"remove"}}const V$=t=>Vje(t),fUe=t=>Kte(t);function _ne(t){return E.forwardRef(t)}const hUe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function B$(t){const[e,n]=E.useState(BigInt(0)),[r]=E.useState(()=>pUe(()=>n(i=>i+BigInt(1))));return hUe(()=>{const i=r.get();i.length&&(t(i),r.reset())},[e]),r}function pUe(t){let e=[];return{get:()=>e,reset:()=>{e=[]},push:n=>{e.push(n),t()}}}const Ane=E.createContext(null);function mUe({children:t}){const e=Yn(),n=E.useCallback(a=>{const{nodes:l=[],setNodes:c,hasDefaultNodes:u,onNodesChange:d,nodeLookup:f,fitViewQueued:h,onNodesChangeMiddlewareMap:p}=e.getState();let m=l;for(const y of a)m=typeof y=="function"?y(m):y;let g=L$({items:m,lookup:f});for(const y of p.values())g=y(g);u&&c(m),g.length>0?d==null||d(g):h&&window.requestAnimationFrame(()=>
5104{const{fitViewQueued:y,nodes:b,setNodes:v}=e.getState();y&&v(b)})},[]),r=B$(n),i=E.useCallback(a=>{const{edges:l=[],setEdges:c,hasDefaultEdges:u,onEdgesChange:d,edgeLookup:f}=e.getState();let h=l;for(const p of a)h=typeof p=="function"?p(h):p;u?c(h):d&&d(L$({items:h,lookup:f}))},[]),o=B$(i),s=E.useMemo(()=>({nodeQueue:r,edgeQueue:o}),[]);return x.jsx(Ane.Provider,{value:s,children:t})}function gUe(){const t=E.useContext(Ane);if(!t)throw new Error("useBatchContext must be used within a BatchProvider");return t}const yUe=t=>!!t.panZoom;function MN(){const t=lUe(),e=Yn(),n=gUe(),r=Ut(yUe),i=E.useMemo(()=>{const o=d=>e.getState().nodeLookup.get(d),s=d=>{n.nodeQueue.push(d)},a=d=>{n.edgeQueue.push(d)},l=d=>{var y,b;const{nodeLookup:f,nodeOrigin:h}=e.getState(),p=V$(d)?d:f.get(d.id),m=p.parentId?ene(p.position,p.measured,p.parentId,f,h):p.position,g={...p,position:m,width:((y=p.measured)==null?void 0:y.width)??p.width,height:((b=p.measured)==null?void 0:b.height)??p.height};return Gm(g)},c=(d,f,h={replace:!1})=>{s(p=>p.map(m=>{if(m.id===d){const g=typeof f=="function"?f(m):f;return h.replace&&V$(g)?g:{...m,...g}}return m}))},u=(d,f,h={replace:!1})=>{a(p=>p.map(m=>{if(m.id===d){const g=typeof f=="function"?f(m):f;return h.replace&&fUe(g)?g:{...m,...g}}return m}))};return{getNodes:()=>e.getState().nodes.map(d=>({...d})),getNode:d=>{var f;return(f=o(d))==null?void 0:f.internals.userNode},getInternalNode:o,getEdges:()=>{const{edges:d=[]}=e.getState();return d.map(f=>({...f}))},getEdge:d=>e.getState().edgeLookup.get(d),setNodes:s,setEdges:a,addNodes:d=>{const f=Array.isArray(d)?d:[d];n.nodeQueue.push(h=>[...h,...f])},addEdges:d=>{const f=Array.isArray(d)?d:[d];n.edgeQueue.push(h=>[...h,...f])},toObject:()=>{const{nodes:d=[],edges:f=[],transform:h}=e.getState(),[p,m,g]=h;return{nodes:d.map(y=>({...y})),edges:f.map(y=>({...y})),viewport:{x:p,y:m,zoom:g}}},deleteElements:async({nodes:d=[],edges:f=[]})=>{const{nodes:h,edges:p,onNodesDelete:m,onEdgesDelete:g,triggerNodeChanges:y,triggerEdgeChanges:b,onDelete:v,onBeforeDelete:S}=e.getState(),{nodes:I,edges:O}=await Hje({nodesToRemove:d,edgesToRemove:f,nodes:h,edges:p,onBeforeDelete:S}),T=O.length>0,A=I.length>0;if(T){const R=O.map(z$);g==null||g(O),b(R)}if(A){const R=I.map(z$);m==null||m(I),y(R)}return(A||T)&&(v==null||v({nodes:I,edges:O})),{deletedNodes:I,deletedEdges:O}},getIntersectingNodes:(d,f=!0,h)=>{const p=p$(d),m=p?d:l(d),g=h!==void 0;return m?(h||e.getState().nodes).filter(y=>{const b=e.getState().nodeLookup.get(y.id);if(b&&!p&&(y.id===d.id||!b.internals.positionAbsolute))return!1;const v=Gm(g?y:b),S=ev(v,m);return f&&S>0||S>=v.width*v.height||S>=m.width*m.height}):[]},isNodeIntersecting:(d,f,h=!0)=>{const m=p$(d)?d:l(d);if(!m)return!1;const g=ev(m,f);return h&&g>0||g>=f.width*f.height||g>=m.width*m.height},updateNode:c,updateNodeData:(d,f,h={replace:!1})=>{c(d,p=>{const m=typeof f=="function"?f(p):f;return h.replace?{...p,data:m}:{...p,data:{...p.data,...m}}},h)},updateEdge:u,updateEdgeData:(d,f,h={replace:!1})=>{u(d,p=>{const m=typeof f=="function"?f(p):f;return h.replace?{...p,data:m}:{...p,data:{...p.data,...m}}},h)},getNodesBounds:d=>{const{nodeLookup:f,nodeOrigin:h}=e.getState();return Bje(d,{nodeLookup:f,nodeOrigin:h})},getHandleConnections:({type:d,id:f,nodeId:h})=>{var p;return Array.from(((p=e.getState().connectionLookup.get(`${h}-${d}${f?`-${f}`:""}`))==null?void 0:p.values())??[])},getNodeConnections:({type:d,handleId:f,nodeId:h})=>{var p;return Array.from(((p=e.getState().connectionLookup.get(`${h}${d?f?`-${d}-${f}`:`-${d}`:""}`))==null?void 0:p.values())??[])},fitView:async d=>{const f=e.getState().fitViewResolver??Gje();return e.setState({fitViewQueued:!0,fitViewOptions:d,fitViewResolver:f}),n.nodeQueue.push(h=>[...h]),f.promise}}},[]);return E.useMemo(()=>({...i,...t,viewportInitialized:r}),[r])}const $$=t=>t.selected,vUe=typeof window<"u"?window:void 0;function bUe({deleteKeyCode:t,multiSelectionKeyCode:e}){const n=Yn(),{deleteElements:r}=MN(),i=nv(t,{actInsideInputWithModifier:!1}),o=nv(e,{target:vUe});E.useEffect(()=>{if(i){const{edges:s,nodes:a}=n.getState();r({nodes:a.filter($$),edges:s.filter($$)}),n.setState({nodesSelectionActive:!1})}},[i]),E.useEffect(()=>{n.setState({multiSelectionActive:o})},[o])}function wUe(t){const e=Yn();E.useEffect(()=>{const n=()=>{var i,o,s,a;if(!t.current||!(((o=(i=t.current).checkVisibility)==null?void 0:o.call(i))??!0))return!1;const r=TN(t.current);(r.height===0||r.width===0)&&((a=(s=e.getState()).onError)==null||a.call(s,"004",Ka.error004())),e.setState({width:r.width||500,height:r.height||500})};if(t.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(t.current),()=>{window.removeEventListener("resize",n),r&&t.current&&r.unobserve(t.current)}}},[])}const VC={position:"absolute",width:"100%",height:"100%",top:0,left:0},SUe=t=>({userSelectionActive:t.userSelectionActive,lib:t.lib,connectionInProgress:t.connection.inProgress});function xUe({onPaneContextMenu:t,zoomOnScroll:e=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:i=.5,panOnScrollMode:o=Ef.Free,zoomOnDoubleClick:s=!0,panOnDrag:a=!0,defaultViewport:l,translateExtent:c,minZoom:u,maxZoom:d,zoomActivationKeyCode:f,preventScrolling:h=!0,children:p,noWheelClassName:m,noPanClassName:g,onViewportChange:y,isControlledViewport:b,paneClickDistance:v,selectionOnDrag:S}){const I=Yn(),O=E.useRef(null),{userSelectionActive:T,lib:A,connectionInProgress:R}=Ut(SUe,Kn),k=nv(f),P=E.useRef();wUe(O);const C=E.useCallback(_=>{y==null||y({x:_[0],y:_[1],zoom:_[2]}),b||I.setState({transform:_})},[y,b]);return E.useEffect(()=>{if(O.current){P.current=RHe({domNode:O.current,minZoom:u,maxZoom:d,translateExtent:c,viewport:l,onDraggingChange:N=>I.setState(z=>z.paneDragging===N?z:{paneDragging:N}),onPanZoomStart:(N,z)=>{const{onViewportChangeStart:L,onMoveStart:B}=I.getState();B==null||B(N,z),L==null||L(z)},onPanZoom:(N,z)=>{const{onViewportChange:L,onMove:B}=I.getState();B==null||B(N,z),L==null||L(z)},onPanZoomEnd:(N,z)=>{const{onViewportChangeEnd:L,onMoveEnd:B}=I.getState();B==null||B(N,z),L==null||L(z)}});const{x:_,y:M,zoom:V}=P.current.getViewport();return I.setState({panZoom:P.current,transform:[_,M,V],domNode:O.current.closest(".react-flow")}),()=>{var N;(N=P.current)==null||N.destroy()}}},[]),E.useEffect(()=>{var _;(_=P.current)==null||_.update({onPaneContextMenu:t,zoomOnScroll:e,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:i,panOnScrollMode:o,zoomOnDoubleClick:s,panOnDrag:a,zoomActivationKeyPressed:k,preventScrolling:h,noPanClassName:g,userSelectionActive:T,noWheelClassName:m,lib:A,onTransformChange:C,connectionInProgress:R,selectionOnDrag:S,paneClickDistance:v})},[t,e,n,r,i,o,s,a,k,h,g,T,m,A,C,R,S,v]),x.jsx("div",{className:"react-flow__renderer",ref:O,style:VC,children:p})}const EUe=t=>({userSelectionActive:t.userSelectionActive,userSelectionRect:t.userSelectionRect});function TUe(){const{userSelectionActive:t,userSelectionRect:e}=Ut(EUe,Kn);return t&&e?x.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:e.width,height:e.height,transform:`translate(${e.x}px, ${e.y}px)`}}):null}const _I=(t,e)=>n=>{n.target===e.current&&(t==null||t(n))},CUe=t=>({userSelectionActive:t.userSelectionActive,elementsSelectable:t.elementsSelectable,connectionInProgress:t.connection.inProgress,dragging:t.paneDragging});function _Ue({isSelecting:t,selectionKeyPressed:e,selectionMode:n=Z0.Full,panOnDrag:r,paneClickDistance:i,selectionOnDrag:o,onSelectionStart:s,onSelectionEnd:a,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:u,onPaneMouseEnter:d,onPaneMouseMove:f,onPaneMouseLeave:h,children:p}){const m=Yn(),{userSelectionActive:g,elementsSelectable:y,dragging:b,connectionInProgress:v}=Ut(CUe,Kn),S=y&&(t||g),I=E.useRef(null),O=E.useRef(),T=E.useRef(new Set),A=E.useRef(new Set),R=E.useRef(!1),k=L=>{if(R.current||v){R.current=!1;return}l==null||l(L),m.getState().resetSelectedElements(),m.setState({nodesSelectionActive:!1})},P=L=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){L.preventDefault();return}c==null||c(L)},C=u?L=>u(L):void 0,_=L=>{R.current&&(L.stopPropagation(),R.current=!1)},M=L=>
5104{var G,X;const{domNode:B}=m.getState();if(O.current=B==null?void 0:B.getBoundingClientRect(),!O.current)return;const j=L.target===I.current;if(!j&&!!L.target.closest(".nokey")||!t||!(o&&j||e)||L.button!==0||!L.isPrimary)return;(X=(G=L.target)==null?void 0:G.setPointerCapture)==null||X.call(G,L.pointerId),R.current=!1;const{x:Y,y:Z}=Us(L.nativeEvent,O.current);m.setState({userSelectionRect:{width:0,height:0,startX:Y,startY:Z,x:Y,y:Z}}),j||(L.stopPropagation(),L.preventDefault())},V=L=>{const{userSelectionRect:B,transform:j,nodeLookup:H,edgeLookup:q,connectionLookup:Y,triggerNodeChanges:Z,triggerEdgeChanges:G,defaultEdgeOptions:X,resetSelectedElements:K}=m.getState();if(!O.current||!B)return;const{x:J,y:te}=Us(L.nativeEvent,O.current),{startX:ne,startY:ce}=B;if(!R.current){const ve=e?0:i;if(Math.hypot(J-ne,te-ce)<=ve)return;K(),s==null||s(L)}R.current=!0;const ie={startX:ne,startY:ce,x:J<ne?J:ne,y:te<ce?te:ce,width:Math.abs(J-ne),height:Math.abs(te-ce)},oe=T.current,ue=A.current;T.current=new Set(xN(H,ie,j,n===Z0.Partial,!0).map(ve=>ve.id)),A.current=new Set;const pe=(X==null?void 0:X.selectable)??!0;for(const ve of T.current){const se=Y.get(ve);if(se)for(const{edgeId:ae}of se.values()){const ke=q.get(ae);ke&&(ke.selectable??pe)&&A.current.add(ae)}}if(!m$(oe,T.current)){const ve=Ep(H,T.current,!0);Z(ve)}if(!m$(ue,A.current)){const ve=Ep(q,A.current);G(ve)}m.setState({userSelectionRect:ie,userSelectionActive:!0,nodesSelectionActive:!1})},N=L=>{var B,j;L.button===0&&((j=(B=L.target)==null?void 0:B.releasePointerCapture)==null||j.call(B,L.pointerId),!g&&L.target===I.current&&m.getState().userSelectionRect&&(k==null||k(L)),m.setState({userSelectionActive:!1,userSelectionRect:null}),R.current&&(a==null||a(L),m.setState({nodesSelectionActive:T.current.size>0})))},z=r===!0||Array.isArray(r)&&r.includes(0);return x.jsxs("div",{className:Mr(["react-flow__pane",{draggable:z,dragging:b,selection:t}]),onClick:S?void 0:_I(k,I),onContextMenu:_I(P,I),onWheel:_I(C,I),onPointerEnter:S?void 0:d,onPointerMove:S?V:f,onPointerUp:S?N:void 0,onPointerDownCapture:S?M:void 0,onClickCapture:S?_:void 0,onPointerLeave:h,ref:I,style:VC,children:[p,x.jsx(TUe,{})]})}function u3({id:t,store:e,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:i,unselectNodesAndEdges:o,multiSelectionActive:s,nodeLookup:a,onError:l}=e.getState(),c=a.get(t);if(!c){l==null||l("012",Ka.error012(t));return}e.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&s)&&(o({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=r==null?void 0:r.current)==null?void 0:u.blur()})):i([t])}function Ine({nodeRef:t,disabled:e=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:o,nodeClickDistance:s}){const a=Yn(),[l,c]=E.useState(!1),u=E.useRef();return E.useEffect(()=>{u.current=mHe({getStoreItems:()=>a.getState(),onNodeMouseDown:d=>{u3({id:d,store:a,nodeRef:t})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),E.useEffect(()=>{if(!(e||!t.current||!u.current))return u.current.update({noDragClassName:n,handleSelector:r,domNode:t.current,isSelectable:o,nodeId:i,nodeClickDistance:s}),()=>{var d;(d=u.current)==null||d.destroy()}},[n,r,e,o,t,i,s]),l}const AUe=t=>e=>e.selected&&(e.draggable||t&&typeof e.draggable>"u");function Rne(){const t=Yn();return E.useCallback(n=>{const{nodeExtent:r,snapToGrid:i,snapGrid:o,nodesDraggable:s,onError:a,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=t.getState(),d=new Map,f=AUe(s),h=i?o[0]:5,p=i?o[1]:5,m=n.direction.x*h*n.factor,g=n.direction.y*p*n.factor;for(const[,y]of c){if(!f(y))continue;let b={x:y.internals.positionAbsolute.x+m,y:y.internals.positionAbsolute.y+g};i&&(b=ab(b,o));const{position:v,positionAbsolute:S}=Yte({nodeId:y.id,nextPosition:b,nodeLookup:c,nodeExtent:r,nodeOrigin:u,onError:a});y.position=v,y.internals.positionAbsolute=S,d.set(y.id,y)}l(d)},[])}const kN=E.createContext(null),IUe=kN.Provider;kN.Consumer;const Mne=()=>E.useContext(kN),RUe=t=>({connectOnClick:t.connectOnClick,noPanClassName:t.noPanClassName,rfId:t.rfId}),MUe=(t,e,n)=>r=>{const{connectionClickStartHandle:i,connectionMode:o,connection:s}=r,{fromHandle:a,toHandle:l,isValid:c}=s,u=(l==null?void 0:l.nodeId)===t&&(l==null?void 0:l.id)===e&&(l==null?void 0:l.type)===n;return{connectingFrom:(a==null?void 0:a.nodeId)===t&&(a==null?void 0:a.id)===e&&(a==null?void 0:a.type)===n,connectingTo:u,clickConnecting:(i==null?void 0:i.nodeId)===t&&(i==null?void 0:i.id)===e&&(i==null?void 0:i.type)===n,isPossibleEndHandle:o===qm.Strict?(a==null?void 0:a.type)!==n:t!==(a==null?void 0:a.nodeId)||e!==(a==null?void 0:a.id),connectionInProcess:!!a,clickConnectionInProcess:!!i,valid:u&&c}};function kUe({type:t="source",position:e=ut.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:o=!0,id:s,onConnect:a,children:l,className:c,onMouseDown:u,onTouchStart:d,...f},h){var V,N;const p=s||null,m=t==="target",g=Yn(),y=Mne(),{connectOnClick:b,noPanClassName:v,rfId:S}=Ut(RUe,Kn),{connectingFrom:I,connectingTo:O,clickConnecting:T,isPossibleEndHandle:A,connectionInProcess:R,clickConnectionInProcess:k,valid:P}=Ut(MUe(y,p,t),Kn);y||(N=(V=g.getState()).onError)==null||N.call(V,"010",Ka.error010());const C=z=>{const{defaultEdgeOptions:L,onConnect:B,hasDefaultEdges:j}=g.getState(),H={...L,...z};if(j){const{edges:q,setEdges:Y}=g.getState();Y(Zje(H,q))}B==null||B(H),a==null||a(H)},_=z=>
5104{if(!y)return;const L=rne(z.nativeEvent);if(i&&(L&&z.button===0||!L)){const B=g.getState();c3.onPointerDown(z.nativeEvent,{handleDomNode:z.currentTarget,autoPanOnConnect:B.autoPanOnConnect,connectionMode:B.connectionMode,connectionRadius:B.connectionRadius,domNode:B.domNode,nodeLookup:B.nodeLookup,lib:B.lib,isTarget:m,handleId:p,nodeId:y,flowId:B.rfId,panBy:B.panBy,cancelConnection:B.cancelConnection,onConnectStart:B.onConnectStart,onConnectEnd:(...j)=>{var H,q;return(q=(H=g.getState()).onConnectEnd)==null?void 0:q.call(H,...j)},updateConnection:B.updateConnection,onConnect:C,isValidConnection:n||((...j)=>{var H,q;return((q=(H=g.getState()).isValidConnection)==null?void 0:q.call(H,...j))??!0}),getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,autoPanSpeed:B.autoPanSpeed,dragThreshold:B.connectionDragThreshold})}L?u==null||u(z):d==null||d(z)},M=z=>{const{onClickConnectStart:L,onClickConnectEnd:B,connectionClickStartHandle:j,connectionMode:H,isValidConnection:q,lib:Y,rfId:Z,nodeLookup:G,connection:X}=g.getState();if(!y||!j&&!i)return;if(!j){L==null||L(z.nativeEvent,{nodeId:y,handleId:p,handleType:t}),g.setState({connectionClickStartHandle:{nodeId:y,type:t,id:p}});return}const K=tne(z.target),J=n||q,{connection:te,isValid:ne}=c3.isValid(z.nativeEvent,{handle:{nodeId:y,id:p,type:t},connectionMode:H,fromNodeId:j.nodeId,fromHandleId:j.id||null,fromType:j.type,isValidConnection:J,flowId:Z,doc:K,lib:Y,nodeLookup:G});ne&&te&&C(te);const ce=structuredClone(X);delete ce.inProgress,ce.toPosition=ce.toHandle?ce.toHandle.position:null,B==null||B(z,ce),g.setState({connectionClickStartHandle:null})};return x.jsx("div",{"data-handleid":p,"data-nodeid":y,"data-handlepos":e,"data-id":`${S}-${y}-${p}-${t}`,className:Mr(["react-flow__handle",`react-flow__handle-${e}`,"nodrag",v,c,{source:!m,target:m,connectable:r,connectablestart:i,connectableend:o,clickconnecting:T,connectingfrom:I,connectingto:O,valid:P,connectionindicator:r&&(!R||A)&&(R||k?o:i)}]),onMouseDown:_,onTouchStart:_,onClick:b?M:void 0,ref:h,...f,children:l})}const Nx=E.memo(_ne(kUe));function PUe({data:t,isConnectable:e,sourcePosition:n=ut.Bottom}){return x.jsxs(x.Fragment,{children:[t==null?void 0:t.label,x.jsx(Nx,{type:"source",position:n,isConnectable:e})]})}function OUe({data:t,isConnectable:e,targetPosition:n=ut.Top,sourcePosition:r=ut.Bottom}){return x.jsxs(x.Fragment,{children:[x.jsx(Nx,{type:"target",position:n,isConnectable:e}),t==null?void 0:t.label,x.jsx(Nx,{type:"source",position:r,isConnectable:e})]})}function NUe(){return null}function DUe({data:t,isConnectable:e,targetPosition:n=ut.Top}){return x.jsxs(x.Fragment,{children:[x.jsx(Nx,{type:"target",position:n,isConnectable:e}),t==null?void 0:t.label]})}const Dx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},F$={input:PUe,default:OUe,output:DUe,group:NUe};function LUe(t){var e,n,r,i;return t.internals.handleBounds===void 0?{width:t.width??t.initialWidth??((e=t.style)==null?void 0:e.width),height:t.height??t.initialHeight??((n=t.style)==null?void 0:n.height)}:{width:t.width??((r=t.style)==null?void 0:r.width),height:t.height??((i=t.style)==null?void 0:i.height)}}const zUe=t=>{const{width:e,height:n,x:r,y:i}=sb(t.nodeLookup,{filter:o=>!!o.selected});return{width:Hs(e)?e:null,height:Hs(n)?n:null,userSelectionActive:t.userSelectionActive,transformString:`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]}) translate(${r}px,${i}px)`}};function VUe({onSelectionContextMenu:t,noPanClassName:e,disableKeyboardA11y:n}){const r=Yn(),{width:i,height:o,transformString:s,userSelectionActive:a}=Ut(zUe,Kn),l=Rne(),c=E.useRef(null);E.useEffect(()=>{var h;n||(h=c.current)==null||h.focus({preventScroll:!0})},[n]);const u=!a&&i!==null&&o!==null;if(Ine({nodeRef:c,disabled:!u}),!u)return null;const d=t?h=>{const p=r.getState().nodes.filter(m=>m.selected);t(h,p)}:void 0,f=h=>{Object.prototype.hasOwnProperty.call(Dx,h.key)&&(h.preventDefault(),l({direction:Dx[h.key],factor:h.shiftKey?4:1}))};return x.jsx("div",{className:Mr(["react-flow__nodesselection","react-flow__container",e]),style:{transform:s},children:x.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:i,height:o}})})}
5104const j$=typeof window<"u"?window:void 0,BUe=t=>({nodesSelectionActive:t.nodesSelectionActive,userSelectionActive:t.userSelectionActive});function kne({children:t,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,paneClickDistance:a,deleteKeyCode:l,selectionKeyCode:c,selectionOnDrag:u,selectionMode:d,onSelectionStart:f,onSelectionEnd:h,multiSelectionKeyCode:p,panActivationKeyCode:m,zoomActivationKeyCode:g,elementsSelectable:y,zoomOnScroll:b,zoomOnPinch:v,panOnScroll:S,panOnScrollSpeed:I,panOnScrollMode:O,zoomOnDoubleClick:T,panOnDrag:A,defaultViewport:R,translateExtent:k,minZoom:P,maxZoom:C,preventScrolling:_,onSelectionContextMenu:M,noWheelClassName:V,noPanClassName:N,disableKeyboardA11y:z,onViewportChange:L,isControlledViewport:B}){const{nodesSelectionActive:j,userSelectionActive:H}=Ut(BUe,Kn),q=nv(c,{target:j$}),Y=nv(m,{target:j$}),Z=Y||A,G=Y||S,X=u&&Z!==!0,K=q||H||X;return bUe({deleteKeyCode:l,multiSelectionKeyCode:p}),x.jsx(xUe,{onPaneContextMenu:o,elementsSelectable:y,zoomOnScroll:b,zoomOnPinch:v,panOnScroll:G,panOnScrollSpeed:I,panOnScrollMode:O,zoomOnDoubleClick:T,panOnDrag:!q&&Z,defaultViewport:R,translateExtent:k,minZoom:P,maxZoom:C,zoomActivationKeyCode:g,preventScrolling:_,noWheelClassName:V,noPanClassName:N,onViewportChange:L,isControlledViewport:B,paneClickDistance:a,selectionOnDrag:X,children:x.jsxs(_Ue,{onSelectionStart:f,onSelectionEnd:h,onPaneClick:e,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:o,onPaneScroll:s,panOnDrag:Z,isSelecting:!!K,selectionMode:d,selectionKeyPressed:q,paneClickDistance:a,selectionOnDrag:X,children:[t,j&&x.jsx(VUe,{onSelectionContextMenu:M,noPanClassName:N,disableKeyboardA11y:z})]})})}kne.displayName="FlowRenderer";const $Ue=E.memo(kne),FUe=t=>e=>t?xN(e.nodeLookup,{x:0,y:0,width:e.width,height:e.height},e.transform,!0).map(n=>n.id):Array.from(e.nodeLookup.keys());function jUe(t){return Ut(E.useCallback(FUe(t),[t]),Kn)}const HUe=t=>t.updateNodeInternals;function UUe(){const t=Ut(HUe),[e]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(i=>{const o=i.target.getAttribute("data-id");r.set(o,{id:o,nodeElement:i.target,force:!0})}),t(r)}));return E.useEffect(()=>()=>{e==null||e.disconnect()},[e]),e}function qUe({node:t,nodeType:e,hasDimensions:n,resizeObserver:r}){const i=Yn(),o=E.useRef(null),s=E.useRef(null),a=E.useRef(t.sourcePosition),l=E.useRef(t.targetPosition),c=E.useRef(e),u=n&&!!t.internals.handleBounds;return E.useEffect(()=>{o.current&&!t.hidden&&(!u||s.current!==o.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(o.current),s.current=o.current)},[u,t.hidden]),E.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(o.current){const d=c.current!==e,f=a.current!==t.sourcePosition,h=l.current!==t.targetPosition;(d||f||h)&&(c.current=e,a.current=t.sourcePosition,l.current=t.targetPosition,i.getState().updateNodeInternals(new Map([[t.id,{id:t.id,nodeElement:o.current,force:!0}]])))}},[t.id,e,t.sourcePosition,t.targetPosition]),o}function WUe({id:t,onClick:e,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:o,onDoubleClick:s,nodesDraggable:a,elementsSelectable:l,nodesConnectable:c,nodesFocusable:u,resizeObserver:d,noDragClassName:f,noPanClassName:h,disableKeyboardA11y:p,rfId:m,nodeTypes:g,nodeClickDistance:y,onError:b}){const{node:v,internals:S,isParent:I}=Ut(J=>{const te=J.nodeLookup.get(t),ne=J.parentLookup.has(t);return{node:te,internals:te.internals,isParent:ne}},Kn);let O=v.type||"default",T=(g==null?void 0:g[O])||F$[O];T===void 0&&(b==null||b("003",Ka.error003(O)),O="default",T=(g==null?void 0:g.default)||F$.default);const A=!!(v.draggable||a&&typeof v.draggable>"u"),R=!!(v.selectable||l&&typeof v.selectable>"u"),k=!!(v.connectable||c&&typeof v.connectable>"u"),P=!!(v.focusable||u&&typeof v.focusable>"u"),C=Yn(),_=Zte(v),M=qUe({node:v,nodeType:O,hasDimensions:_,resizeObserver:d}),V=Ine({nodeRef:M,disabled:v.hidden||!A,noDragClassName:f,handleSelector:v.dragHandle,nodeId:t,isSelectable:R,nodeClickDistance:y}),N=Rne();if(v.hidden)return null;const z=gc(v),L=LUe(v),B=R||A||e||n||r||i,j=n?J=>n(J,{...S.userNode}):void 0,H=r?J=>r(J,{...S.userNode}):void 0,q=i?J=>i(J,{...S.userNode}):void 0,Y=o?J=>o(J,{...S.userNode}):void 0,Z=s?J=>s(J,{...S.userNode}):void 0,G=J=>{const{selectNodesOnDrag:te,nodeDragThreshold:ne}=C.getState();R&&(!te||!A||ne>0)&&u3({id:t,store:C,nodeRef:M}),e&&e(J,{...S.userNode})},X=J=>{if(!(nne(J.nativeEvent)||p)){if(Ute.includes(J.key)&&R){const te=J.key==="Escape";u3({id:t,store:C,unselect:te,nodeRef:M})}else if(A&&v.selected&&Object.prototype.hasOwnProperty.call(Dx,J.key)){J.preventDefault();const{ariaLabelConfig:te}=C.getState();C.setState({ariaLiveMessage:te["node.a11yDescription.ariaLiveMessage"]({direction:J.key.replace("Arrow","").toLowerCase(),x:~~S.positionAbsolute.x,y:~~S.positionAbsolute.y})}),N({direction:Dx[J.key],factor:J.shiftKey?4:1})}}},K=()=>{var ue;if(p||!((ue=M.current)!=null&&ue.matches(":focus-visible")))return;const{transform:J,width:te,height:ne,autoPanOnNodeFocus:ce,setCenter:ie}=C.getState();if(!ce)return;xN(new Map([[t,v]]),{x:0,y:0,width:te,height:ne},J,!0).length>0||ie(v.position.x+z.width/2,v.position.y+z.height/2,{zoom:J[2]})};return x.jsx("div",{className:Mr(["react-flow__node",`react-flow__node-${O}`,{[h]:A},v.className,{selected:v.selected,selectable:R,parent:I,draggable:A,dragging:V}]),ref:M,style:{zIndex:S.z,transform:`translate(${S.positionAbsolute.x}px,${S.positionAbsolute.y}px)`,pointerEvents:B?"all":"none",visibility:_?"visible":"hidden",...v.style,...L},"data-id":t,"data-testid":`rf__node-${t}`,onMouseEnter:j,onMouseMove:H,onMouseLeave:q,onContextMenu:Y,onClick:G,onDoubleClick:Z,onKeyDown:P?X:void 0,tabIndex:P?0:void 0,onFocus:P?K:void 0,role:v.ariaRole??(P?"group":void 0),"aria-roledescription":"node","aria-describedby":p?void 0:`${xne}-${m}`,"aria-label":v.ariaLabel,...v.domAttributes,children:x.jsx(IUe,{value:t,children:x.jsx(T,{id:t,data:v.data,type:O,positionAbsoluteX:S.positionAbsolute.x,positionAbsoluteY:S.positionAbsolute.y,selected:v.selected??!1,selectable:R,draggable:A,deletable:v.deletable??!0,isConnectable:k,sourcePosition:v.sourcePosition,targetPosition:v.targetPosition,dragging:V,dragHandle:v.dragHandle,zIndex:S.z,parentId:v.parentId,...z})})})}var GUe=E.memo(WUe);const KUe=t=>({nodesDraggable:t.nodesDraggable,nodesConnectable:t.nodesConnectable,no
vendor: 5,299 bytes, line 5104
5104desFocusable:t.nodesFocusable,elementsSelectable:t.elementsSelectable,onError:t.onError});function Pne(t){const{nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,onError:o}=Ut(KUe,Kn),s=jUe(t.onlyRenderVisibleElements),a=UUe();return x.jsx("div",{className:"react-flow__nodes",style:VC,children:s.map(l=>x.jsx(GUe,{id:l,nodeTypes:t.nodeTypes,nodeExtent:t.nodeExtent,onClick:t.onNodeClick,onMouseEnter:t.onNodeMouseEnter,onMouseMove:t.onNodeMouseMove,onMouseLeave:t.onNodeMouseLeave,onContextMenu:t.onNodeContextMenu,onDoubleClick:t.onNodeDoubleClick,noDragClassName:t.noDragClassName,noPanClassName:t.noPanClassName,rfId:t.rfId,disableKeyboardA11y:t.disableKeyboardA11y,resizeObserver:a,nodesDraggable:e,nodesConnectable:n,nodesFocusable:r,elementsSelectable:i,nodeClickDistance:t.nodeClickDistance,onError:o},l))})}Pne.displayName="NodeRenderer";const YUe=E.memo(Pne);function XUe(t){return Ut(E.useCallback(n=>{if(!t)return n.edges.map(i=>i.id);const r=[];if(n.width&&n.height)for(const i of n.edges){const o=n.nodeLookup.get(i.source),s=n.nodeLookup.get(i.target);o&&s&&Qje({sourceNode:o,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(i.id)}return r},[t]),Kn)}const QUe=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t}};return x.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},JUe=({color:t="none",strokeWidth:e=1})=>{const n={strokeWidth:e,...t&&{stroke:t,fill:t}};return x.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},H$={[kx.Arrow]:QUe,[kx.ArrowClosed]:JUe};function ZUe(t){const e=Yn();return E.useMemo(()=>{var i,o;return Object.prototype.hasOwnProperty.call(H$,t)?H$[t]:((o=(i=e.getState()).onError)==null||o.call(i,"009",Ka.error009(t)),null)},[t])}const eqe=({id:t,type:e,color:n,width:r=12.5,height:i=12.5,markerUnits:o="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=ZUe(e);return l?x.jsx("marker",{className:"react-flow__arrowhead",id:t,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:a,refX:"0",refY:"0",children:x.jsx(l,{color:n,strokeWidth:s})}):null},One=({defaultColor:t,rfId:e})=>{const n=Ut(o=>o.edges),r=Ut(o=>o.defaultEdgeOptions),i=E.useMemo(()=>iHe(n,{id:e,defaultColor:t,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,e,t]);return i.length?x.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:x.jsx("defs",{children:i.map(o=>x.jsx(eqe,{id:o.id,type:o.type,color:o.color,width:o.width,height:o.height,markerUnits:o.markerUnits,strokeWidth:o.strokeWidth,orient:o.orient},o.id))})}):null};One.displayName="MarkerDefinitions";var tqe=E.memo(One);function Nne({x:t,y:e,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:o,labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:c,...u}){const[d,f]=E.useState({x:1,y:0,width:0,height:0}),h=Mr(["react-flow__edge-textwrapper",c]),p=E.useRef(null);return E.useEffect(()=>{if(p.current){const m=p.current.getBBox();f({x:m.x,y:m.y,width:m.width,height:m.height})}},[n]),n?x.jsxs("g",{transform:`translate(${t-d.width/2} ${e-d.height/2})`,className:h,visibility:d.width?"visible":"hidden",...u,children:[i&&x.jsx("rect",{width:d.width+2*s[0],x:-s[0],y:-s[1],height:d.height+2*s[1],className:"react-flow__edge-textbg",style:o,rx:a,ry:a}),x.jsx("text",{className:"react-flow__edge-text",y:d.height/2,dy:"0.3em",ref:p,style:r,children:n}),l]}):null}Nne.displayName="EdgeText";const nqe=E.memo(Nne);function BC({path:t,labelX:e,labelY:n,label:r,labelStyle:i,labelShowBg:o,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l,interactionWidth:c=20,...u}){return x.jsxs(x.Fragment,{children:[x.jsx("path",{...u,d:t,fill:"none",className:Mr(["react-flow__edge-path",u.className])}),c?x.jsx("path",{d:t,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}):null,r&&Hs(e)&&Hs(n)?x.jsx(nqe,{x:e,y:n,label:r,labelStyle:i,labelShowBg:o,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l}):null]})}function U$({pos:t,x1:e,y1:n,x2:r,y2:i}){return t===ut.Left||t===ut.Right?[.5*(e+r),n]:[e,.5*(n+i)]}function Dne({sourceX:t,sourceY:e,sourcePosition:n=ut.Bottom,targetX:r,targetY:i,targetPosition:o=ut.Top}){const[s,a]=U$({pos:n,x1:t,y1:e,x2:r,y2:i}),[l,c]=U$({pos:o,x1:r,y1:i,x2:t,y2:e}),[u,d,f,h]=ine({sourceX:t,sourceY:e,targetX:r,targetY:i,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:c});return[`M${t},${e} C${s},${a} ${l},${c} ${r},${i}`,u,d,f,h]}function Lne(t){return E.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s,targetPosition:a,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:p,markerEnd:m,markerStart:g,interactionWidth:y})=>{const[b,v,S]=Dne({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a}),I=t.isInternal?void 0:e;return x.jsx(BC,{id:I,path:b,labelX:v,labelY:S,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:p,markerEnd:m,markerStart:g,interactionWidth:y})})}const rqe=Lne({isInternal:!1}),zne=Lne({isInternal:!0});rqe.displayName="SimpleBezierEdge";
5104zne.displayName="SimpleBezierEdgeInternal";function Vne(t){return E.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:o,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,sourcePosition:h=ut.Bottom,targetPosition:p=ut.Top,markerEnd:m,markerStart:g,pathOptions:y,interactionWidth:b})=>{const[v,S,I]=s3({sourceX:n,sourceY:r,sourcePosition:h,targetX:i,targetY:o,targetPosition:p,borderRadius:y==null?void 0:y.borderRadius,offset:y==null?void 0:y.offset,stepPosition:y==null?void 0:y.stepPosition}),O=t.isInternal?void 0:e;return x.jsx(BC,{id:O,path:v,labelX:S,labelY:I,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:m,markerStart:g,interactionWidth:b})})}const Bne=Vne({isInternal:!1}),$ne=Vne({isInternal:!0});Bne.displayName="SmoothStepEdge";$ne.displayName="SmoothStepEdgeInternal";function Fne(t){return E.memo(({id:e,...n})=>{var i;const r=t.isInternal?void 0:e;return x.jsx(Bne,{...n,id:r,pathOptions:E.useMemo(()=>{var o;return{borderRadius:0,offset:(o=n.pathOptions)==null?void 0:o.offset}},[(i=n.pathOptions)==null?void 0:i.offset])})})}const iqe=Fne({isInternal:!1}),jne=Fne({isInternal:!0});iqe.displayName="StepEdge";jne.displayName="StepEdgeInternal";function Hne(t){return E.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:o,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:p,interactionWidth:m})=>{const[g,y,b]=lne({sourceX:n,sourceY:r,targetX:i,targetY:o}),v=t.isInternal?void 0:e;return x.jsx(BC,{id:v,path:g,labelX:y,labelY:b,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:p,interactionWidth:m})})}const oqe=Hne({isInternal:!1}),Une=Hne({isInternal:!0});oqe.displayName="StraightEdge";Une.displayName="StraightEdgeInternal";function qne(t){return E.memo(({id:e,sourceX:n,sourceY:r,targetX:i,targetY:o,sourcePosition:s=ut.Bottom,targetPosition:a=ut.Top,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:p,markerEnd:m,markerStart:g,pathOptions:y,interactionWidth:b})=>{const[v,S,I]=one({sourceX:n,sourceY:r,sourcePosition:s,targetX:i,targetY:o,targetPosition:a,curvature:y==null?void 0:y.curvature}),O=t.isInternal?void 0:e;return x.jsx(BC,{id:O,path:v,labelX:S,labelY:I,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:h,style:p,markerEnd:m,markerStart:g,interactionWidth:b})})}const sqe=qne({isInternal:!1}),Wne=qne({isInternal:!0});sqe.displayName="BezierEdge";Wne.displayName="BezierEdgeInternal";const q$={default:Wne,straight:Une,step:jne,smoothstep:$ne,simplebezier:zne},W$={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},aqe=(t,e,n)=>n===ut.Left?t-e:n===ut.Right?t+e:t,lqe=(t,e,n)=>n===ut.Top?t-e:n===ut.Bottom?t+e:t,G$="react-flow__edgeupdater";function K$({position:t,centerX:e,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:o,onMouseOut:s,type:a}){return x.jsx("circle",{onMouseDown:i,onMouseEnter:o,onMouseOut:s,className:Mr([G$,`${G$}-${a}`]),cx:aqe(e,r,t),cy:lqe(n,r,t),r,stroke:"transparent",fill:"transparent"})}function cqe({isReconnectable:t,reconnectRadius:e,edge:n,sourceX:r,sourceY:i,targetX:o,targetY:s,sourcePosition:a,targetPosition:l,onReconnect:c,onReconnectStart:u,onReconnectEnd:d,setReconnecting:f,setUpdateHover:h}){const p=Yn(),m=(S,I)=>{if(S.button!==0)return;const{autoPanOnConnect:O,domNode:T,connectionMode:A,connectionRadius:R,lib:k,onConnectStart:P,cancelConnection:C,nodeLookup:_,rfId:M,panBy:V,updateConnection:N}=p.getState(),z=I.type==="target",L=(H,q)=>{f(!1),d==null||d(H,n,I.type,q)},B=H=>c==null?void 0:c(n,H),j=(H,q)=>{f(!0),u==null||u(S,n,I.type),P==null||P(H,q)};c3.onPointerDown(S.nativeEvent,{autoPanOnConnect:O,connectionMode:A,connectionRadius:R,domNode:T,handleId:I.id,nodeId:I.nodeId,nodeLookup:_,isTarget:z,edgeUpdaterType:I.type,lib:k,flowId:M,cancelConnection:C,panBy:V,isValidConnection:(...H)=>{var q,Y;return((Y=(q=p.getState()).isValidConnection)==null?void 0:Y.call(q,...H))??!0},onConnect:B,onConnectStart:j,onConnectEnd:(...H)=>{var q,Y;return(Y=(q=p.getState()).onConnectEnd)==null?void 0:Y.call(q,...H)},onReconnectEnd:L,updateConnection:N,getTransform:()=>p.getState().transform,getFromHandle:()=>p.getState().connection.fromHandle,dragThreshold:p.getState().connectionDragThreshold,handleDomNo
5104de:S.currentTarget})},g=S=>m(S,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),y=S=>m(S,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),b=()=>h(!0),v=()=>h(!1);return x.jsxs(x.Fragment,{children:[(t===!0||t==="source")&&x.jsx(K$,{position:a,centerX:r,centerY:i,radius:e,onMouseDown:g,onMouseEnter:b,onMouseOut:v,type:"source"}),(t===!0||t==="target")&&x.jsx(K$,{position:l,centerX:o,centerY:s,radius:e,onMouseDown:y,onMouseEnter:b,onMouseOut:v,type:"target"})]})}function uqe({id:t,edgesFocusable:e,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:o,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:h,rfId:p,edgeTypes:m,noPanClassName:g,onError:y,disableKeyboardA11y:b}){let v=Ut(ie=>ie.edgeLookup.get(t));const S=Ut(ie=>ie.defaultEdgeOptions);v=S?{...S,...v}:v;let I=v.type||"default",O=(m==null?void 0:m[I])||q$[I];O===void 0&&(y==null||y("011",Ka.error011(I)),I="default",O=(m==null?void 0:m.default)||q$.default);const T=!!(v.focusable||e&&typeof v.focusable>"u"),A=typeof d<"u"&&(v.reconnectable||n&&typeof v.reconnectable>"u"),R=!!(v.selectable||r&&typeof v.selectable>"u"),k=E.useRef(null),[P,C]=E.useState(!1),[_,M]=E.useState(!1),V=Yn(),{zIndex:N,sourceX:z,sourceY:L,targetX:B,targetY:j,sourcePosition:H,targetPosition:q}=Ut(E.useCallback(ie=>{const oe=ie.nodeLookup.get(v.source),ue=ie.nodeLookup.get(v.target);if(!oe||!ue)return{zIndex:v.zIndex,...W$};const pe=rHe({id:t,sourceNode:oe,targetNode:ue,sourceHandle:v.sourceHandle||null,targetHandle:v.targetHandle||null,connectionMode:ie.connectionMode,onError:y});return{zIndex:Xje({selected:v.selected,zIndex:v.zIndex,sourceNode:oe,targetNode:ue,elevateOnSelect:ie.elevateEdgesOnSelect,zIndexMode:ie.zIndexMode}),...pe||W$}},[v.source,v.target,v.sourceHandle,v.targetHandle,v.selected,v.zIndex]),Kn),Y=E.useMemo(()=>v.markerStart?`url('#${a3(v.markerStart,p)}')`:void 0,[v.markerStart,p]),Z=E.useMemo(()=>v.markerEnd?`url('#${a3(v.markerEnd,p)}')`:void 0,[v.markerEnd,p]);if(v.hidden||z===null||L===null||B===null||j===null)return null;const G=ie=>{var ve;const{addSelectedEdges:oe,unselectNodesAndEdges:ue,multiSelectionActive:pe}=V.getState();R&&(V.setState({nodesSelectionActive:!1}),v.selected&&pe?(ue({nodes:[],edges:[v]}),(ve=k.current)==null||ve.blur()):oe([t])),i&&i(ie,v)},X=o?ie=>{o(ie,{...v})}:void 0,K=s?ie=>{s(ie,{...v})}:void 0,J=a?ie=>{a(ie,{...v})}:void 0,te=l?ie=>{l(ie,{...v})}:void 0,ne=c?ie=>{c(ie,{...v})}:void 0,ce=ie=>{var oe;if(!b&&Ute.includes(ie.key)&&R){const{unselectNodesAndEdges:ue,addSelectedEdges:pe}=V.getState();ie.key==="Escape"?((oe=k.current)==null||oe.blur(),ue({edges:[v]})):pe([t])}};return x.jsx("svg",{style:{zIndex:N},children:x.jsxs("g",{className:Mr(["react-flow__edge",`react-flow__edge-${I}`,v.className,g,{selected:v.selected,animated:v.animated,inactive:!R&&!i,updating:P,selectable:R}]),onClick:G,onDoubleClick:X,onContextMenu:K,onMouseEnter:J,onMouseMove:te,onMouseLeave:ne,onKeyDown:T?ce:void 0,tabIndex:T?0:void 0,role:v.ariaRole??(T?"group":"img"),"aria-roledescription":"edge","data-id":t,"data-testid":`rf__edge-${t}`,"aria-label":v.ariaLabel===null?void 0:v.ariaLabel||`Edge from ${v.source} to ${v.target}`,"aria-describedby":T?`${Ene}-${p}`:void 0,ref:k,...v.domAttributes,children:[!_&&x.jsx(O,{id:t,source:v.source,target:v.target,type:v.type,selected:v.selected,animated:v.animated,selectable:R,deletable:v.deletable??!0,label:v.label,labelStyle:v.labelStyle,labelShowBg:v.labelShowBg,labelBgStyle:v.labelBgStyle,labelBgPadding:v.labelBgPadding,labelBgBorderRadius:v.labelBgBorderRadius,sourceX:z,sourceY:L,targetX:B,targetY:j,sourcePosition:H,targetPosition:q,data:v.data,style:v.style,sourceHandleId:v.sourceHandle,targetHandleId:v.targetHandle,markerStart:Y,markerEnd:Z,pathOptions:"pathOptions"in v?v.pathOptions:void 0,interactionWidth:v.interactionWidth}),A&&x.jsx(cqe,{edge:v,isReconnectable:A,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:h,sourceX:z,sourceY:L,targetX:B,targetY:j,sourcePosition:H,targetPosition:q,setUpdateHover:C,setReconnecting:M})]})})}var dqe=E.memo(uqe);const fqe=t=>({edgesFocusable:t.edgesFocusable,edgesReconnectable:t.edgesReconnectable,elementsSelectable:t.elementsSelectable,connectionMode:t.connectionMode,onError:t.onError});function Gne({defaultMarkerColor:t,onlyRenderVisibleElements:e,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:o,onEdgeContextMenu:s,onEdgeMouseEnter:a,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:f,onReconnectStart:h,onReconnectEnd:p,disableKeyboardA11y:m}){const{edgesFocusable:g,edgesReconnectable:y,elementsSelectable:b,onError:v}=Ut(fqe,Kn),S=XUe(e);return x.jsxs("div",{className:"react-flow__edges",children:[x.jsx(tqe,{defaultColor:t,rfId:n}),S.map(I=>x.jsx(dqe,{id:I,edgesFocusable:g,edgesReconnectable:y,elementsSelectable:b,noPanClassName:i,onReconnect:o,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,onClick:u,reconnectRadius:d,onDoubleClick:f,onReconnectStart:h,onReconnectEnd:p,rfId:n,onError:v,edgeTypes:r,disableKeyboardA11y:m},I))]})}Gne.displayName="EdgeRenderer";const hqe=E.memo(Gne),pqe=t=>`translate(${t.transform[0]}px,${t.transform[1]}px) scale(${t.transform[2]})`;function mqe({children:t}){const e=Ut(pqe);return x.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:e},children:t})}function gqe(t){const e=MN(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&e.viewportInitialized&&t&&(setTimeout(()=>t(e),1),n.current=!0)}
5104,[t,e.viewportInitialized])}const yqe=t=>{var e;return(e=t.panZoom)==null?void 0:e.syncViewport};function vqe(t){const e=Ut(yqe),n=Yn();return E.useEffect(()=>{t&&(e==null||e(t),n.setState({transform:[t.x,t.y,t.zoom]}))},[t,e]),null}function bqe(t){return t.connection.inProgress?{...t.connection,to:lb(t.connection.to,t.transform)}:{...t.connection}}function wqe(t){return bqe}function Sqe(t){const e=wqe();return Ut(e,Kn)}const xqe=t=>({nodesConnectable:t.nodesConnectable,isValid:t.connection.isValid,inProgress:t.connection.inProgress,width:t.width,height:t.height});function Eqe({containerStyle:t,style:e,type:n,component:r}){const{nodesConnectable:i,width:o,height:s,isValid:a,inProgress:l}=Ut(xqe,Kn);return!(o&&i&&l)?null:x.jsx("svg",{style:t,width:o,height:s,className:"react-flow__connectionline react-flow__container",children:x.jsx("g",{className:Mr(["react-flow__connection",Gte(a)]),children:x.jsx(Kne,{style:e,type:n,CustomComponent:r,isValid:a})})})}const Kne=({style:t,type:e=Wc.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:i,from:o,fromNode:s,fromHandle:a,fromPosition:l,to:c,toNode:u,toHandle:d,toPosition:f,pointer:h}=Sqe();if(!i)return;if(n)return x.jsx(n,{connectionLineType:e,connectionLineStyle:t,fromNode:s,fromHandle:a,fromX:o.x,fromY:o.y,toX:c.x,toY:c.y,fromPosition:l,toPosition:f,connectionStatus:Gte(r),toNode:u,toHandle:d,pointer:h});let p="";const m={sourceX:o.x,sourceY:o.y,sourcePosition:l,targetX:c.x,targetY:c.y,targetPosition:f};switch(e){case Wc.Bezier:[p]=one(m);break;case Wc.SimpleBezier:[p]=Dne(m);break;case Wc.Step:[p]=s3({...m,borderRadius:0});break;case Wc.SmoothStep:[p]=s3(m);break;default:[p]=lne(m)}return x.jsx("path",{d:p,fill:"none",className:"react-flow__connection-path",style:t})};Kne.displayName="ConnectionLine";const Tqe={};function Y$(t=Tqe){E.useRef(t),Yn(),E.useEffect(()=>{},[t])}function Cqe(){Yn(),E.useRef(!1),E.useEffect(()=>{},[])}function Yne({nodeTypes:t,edgeTypes:e,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:o,onEdgeDoubleClick:s,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:f,onSelectionEnd:h,connectionLineType:p,connectionLineStyle:m,connectionLineComponent:g,connectionLineContainerStyle:y,selectionKeyCode:b,selectionOnDrag:v,selectionMode:S,multiSelectionKeyCode:I,panActivationKeyCode:O,zoomActivationKeyCode:T,deleteKeyCode:A,onlyRenderVisibleElements:R,elementsSelectable:k,defaultViewport:P,translateExtent:C,minZoom:_,maxZoom:M,preventScrolling:V,defaultMarkerColor:N,zoomOnScroll:z,zoomOnPinch:L,panOnScroll:B,panOnScrollSpeed:j,panOnScrollMode:H,zoomOnDoubleClick:q,panOnDrag:Y,onPaneClick:Z,onPaneMouseEnter:G,onPaneMouseMove:X,onPaneMouseLeave:K,onPaneScroll:J,onPaneContextMenu:te,paneClickDistance:ne,nodeClickDistance:ce,onEdgeContextMenu:ie,onEdgeMouseEnter:oe,onEdgeMouseMove:ue,onEdgeMouseLeave:pe,reconnectRadius:ve,onReconnect:se,onReconnectStart:ae,onReconnectEnd:ke,noDragClassName:Ee,noWheelClassName:_e,noPanClassName:we,disableKeyboardA11y:et,nodeExtent:rt,rfId:he,viewport:be,onViewportChange:De}){return Y$(t),Y$(e),Cqe(),gqe(n),vqe(be),x.jsx($Ue,{onPaneClick:Z,onPaneMouseEnter:G,onPaneMouseMove:X,onPaneMouseLeave:K,onPaneContextMenu:te,onPaneScroll:J,paneClickDistance:ne,deleteKeyCode:A,selectionKeyCode:b,selectionOnDrag:v,selectionMode:S,onSelectionStart:f,onSelectionEnd:h,multiSelectionKeyCode:I,panActivationKeyCode:O,zoomActivationKeyCode:T,elementsSelectable:k,zoomOnScroll:z,zoomOnPinch:L,zoomOnDoubleClick:q,panOnScroll:B,panOnScrollSpeed:j,panOnScrollMode:H,panOnDrag:Y,defaultViewport:P,translateExtent:C,minZoom:_,maxZoom:M,onSelectionContextMenu:d,preventScrolling:V,noDragClassName:Ee,noWheelClassName:_e,noPanClassName:we,disableKeyboardA11y:et,onViewportChange:De,isControlledViewport:!!be,children:x.jsxs(mqe,{children:[x.jsx(hqe,{edgeTypes:e,onEdgeClick:i,onEdgeDoubleClick:s,onReconnect:se,onReconnectStart:ae,onReconnectEnd:ke,onlyRenderVisibleElements:R,onEdgeContextMenu:ie,onEdgeMouseEnter:oe,onEdgeMouseMove:ue,onEdgeMouseLeave:pe,reconnectRadius:ve,defaultMarkerColor:N,noPanClassName:we,disableKeyboardA11y:et,rfId:he}),x.jsx(Eqe,{style:m,type:p,component:g,containerStyle:y}),x.jsx("div",{className:"react-flow__edgelabel-renderer"}),x.jsx(YUe,{nodeTypes:t,onNodeClick:r,onNodeDoubleClick:o,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,nodeClickDistance:ce,onlyRenderVisibleElements:R,noPanClassName:we,noDragClassName:Ee,disableKeyboardA11y:et,nodeExtent:rt,rfId:he}),x.jsx("div",{className:"react-flow__viewport-portal"})]})})}Yne.displayName="GraphView";const _qe=E.memo(Yne),X$=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l=.5,maxZoom:c=2,nodeOrigin:u,nodeExtent:d,zIndexMode:f="basic"}={})=>{const h=new Map,p=new Map,m=new Map,g=new Map,y=r??e??[],b=n??t??[],v=u??[0,0],S=d??J0;dne(m,g,y);const I=l3(b,h,p,{nodeOrigin:v,nodeExtent:S,zIndexMode:f});let O=[0,0,1];if(s&&i&&o){const T=sb(h,{filter:P=>!!((P.width||P.initialWidth)&&(P.height||P.initialHeight))}),{x:A,y:R,zoom:k}=EN(T,i,o,l,c,(a==null?void 0:a.padding)??.1);O=[A,R,k]}return{rfId:"1",width:i??0,height:o??0,transform:O,nodes:b,nodesInitialized:I,nodeLookup:h,parentLookup:p,edges:y,edgeLookup:g,connectionLookup:m,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:l,maxZoom:c,translateExtent:J0,nodeExtent:S,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:qm.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:v,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGri
5104d:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:a,fitViewResolver:null,connection:{...Wte},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Uje,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:qte,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},Aqe=({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d,zIndexMode:f})=>HHe((h,p)=>{async function m(){const{nodeLookup:g,panZoom:y,fitViewOptions:b,fitViewResolver:v,width:S,height:I,minZoom:O,maxZoom:T}=p();y&&(await jje({nodes:g,width:S,height:I,panZoom:y,minZoom:O,maxZoom:T},b),v==null||v.resolve(!0),h({fitViewResolver:null}))}return{...X$({nodes:t,edges:e,width:i,height:o,fitView:s,fitViewOptions:a,minZoom:l,maxZoom:c,nodeOrigin:u,nodeExtent:d,defaultNodes:n,defaultEdges:r,zIndexMode:f}),setNodes:g=>{const{nodeLookup:y,parentLookup:b,nodeOrigin:v,elevateNodesOnSelect:S,fitViewQueued:I,zIndexMode:O}=p(),T=l3(g,y,b,{nodeOrigin:v,nodeExtent:d,elevateNodesOnSelect:S,checkEquality:!0,zIndexMode:O});I&&T?(m(),h({nodes:g,nodesInitialized:T,fitViewQueued:!1,fitViewOptions:void 0})):h({nodes:g,nodesInitialized:T})},setEdges:g=>{const{connectionLookup:y,edgeLookup:b}=p();dne(y,b,g),h({edges:g})},setDefaultNodesAndEdges:(g,y)=>{if(g){const{setNodes:b}=p();b(g),h({hasDefaultNodes:!0})}if(y){const{setEdges:b}=p();b(y),h({hasDefaultEdges:!0})}},updateNodeInternals:g=>{const{triggerNodeChanges:y,nodeLookup:b,parentLookup:v,domNode:S,nodeOrigin:I,nodeExtent:O,debug:T,fitViewQueued:A,zIndexMode:R}=p(),{changes:k,updatedInternals:P}=dHe(g,b,v,S,I,O,R);P&&(aHe(b,v,{nodeOrigin:I,nodeExtent:O,zIndexMode:R}),A?(m(),h({fitViewQueued:!1,fitViewOptions:void 0})):h({}),(k==null?void 0:k.length)>0&&(T&&console.log("React Flow: trigger node changes",k),y==null||y(k)))},updateNodePositions:(g,y=!1)=>{const b=[];let v=[];const{nodeLookup:S,triggerNodeChanges:I,connection:O,updateConnection:T,onNodesChangeMiddlewareMap:A}=p();for(const[R,k]of g){const P=S.get(R),C=!!(P!=null&&P.expandParent&&(P!=null&&P.parentId)&&(k!=null&&k.position)),_={id:R,type:"position",position:C?{x:Math.max(0,k.position.x),y:Math.max(0,k.position.y)}:k.position,dragging:y};if(P&&O.inProgress&&O.fromNode.id===P.id){const M=nh(P,O.fromHandle,ut.Left,!0);T({...O,from:M})}C&&P.parentId&&b.push({id:R,parentId:P.parentId,rect:{...k.internals.positionAbsolute,width:k.measured.width??0,height:k.measured.height??0}}),v.push(_)}if(b.length>0){const{parentLookup:R,nodeOrigin:k}=p(),P=RN(b,S,R,k);v.push(...P)}for(const R of A.values())v=R(v);I(v)},triggerNodeChanges:g=>{const{onNodesChange:y,setNodes:b,nodes:v,hasDefaultNodes:S,debug:I}=p();if(g!=null&&g.length){if(S){const O=uUe(g,v);b(O)}I&&console.log("React Flow: trigger node changes",g),y==null||y(g)}},triggerEdgeChanges:g=>{const{onEdgesChange:y,setEdges:b,edges:v,hasDefaultEdges:S,debug:I}=p();if(g!=null&&g.length){if(S){const O=dUe(g,v);b(O)}I&&console.log("React Flow: trigger edge changes",g),y==null||y(g)}},addSelectedNodes:g=>{const{multiSelectionActive:y,edgeLookup:b,nodeLookup:v,triggerNodeChanges:S,triggerEdgeChanges:I}=p();if(y){const O=g.map(T=>zd(T,!0));S(O);return}S(Ep(v,new Set([...g]),!0)),I(Ep(b))},addSelectedEdges:g=>{const{multiSelectionActive:y,edgeLookup:b,nodeLookup:v,triggerNodeChanges:S,triggerEdgeChanges:I}=p();if(y){const O=g.map(T=>zd(T,!0));I(O);return}I(Ep(b,new Set([...g]))),S(Ep(v,new Set,!0))},unselectNodesAndEdges:({nodes:g,edges:y}={})=>{const{edges:b,nodes:v,nodeLookup:S,triggerNodeChanges:I,triggerEdgeChanges:O}=p(),T=g||v,A=y||b,R=[];for(const P of T){if(!P.selected)continue;const C=S.get(P.id);C&&(C.selected=!1),R.push(zd(P.id,!1))}const k=[];for(const P of A)P.selected&&k.push(zd(P.id,!1));I(R),O(k)},setMinZoom:g=>
5104{const{panZoom:y,maxZoom:b}=p();y==null||y.setScaleExtent([g,b]),h({minZoom:g})},setMaxZoom:g=>{const{panZoom:y,minZoom:b}=p();y==null||y.setScaleExtent([b,g]),h({maxZoom:g})},setTranslateExtent:g=>{var y;(y=p().panZoom)==null||y.setTranslateExtent(g),h({translateExtent:g})},resetSelectedElements:()=>{const{edges:g,nodes:y,triggerNodeChanges:b,triggerEdgeChanges:v,elementsSelectable:S}=p();if(!S)return;const I=y.reduce((T,A)=>A.selected?[...T,zd(A.id,!1)]:T,[]),O=g.reduce((T,A)=>A.selected?[...T,zd(A.id,!1)]:T,[]);b(I),v(O)},setNodeExtent:g=>{const{nodes:y,nodeLookup:b,parentLookup:v,nodeOrigin:S,elevateNodesOnSelect:I,nodeExtent:O,zIndexMode:T}=p();g[0][0]===O[0][0]&&g[0][1]===O[0][1]&&g[1][0]===O[1][0]&&g[1][1]===O[1][1]||(l3(y,b,v,{nodeOrigin:S,nodeExtent:g,elevateNodesOnSelect:I,checkEquality:!1,zIndexMode:T}),h({nodeExtent:g}))},panBy:g=>{const{transform:y,width:b,height:v,panZoom:S,translateExtent:I}=p();return fHe({delta:g,panZoom:S,transform:y,translateExtent:I,width:b,height:v})},setCenter:async(g,y,b)=>{const{width:v,height:S,maxZoom:I,panZoom:O}=p();if(!O)return Promise.resolve(!1);const T=typeof(b==null?void 0:b.zoom)<"u"?b.zoom:I;return await O.setViewport({x:v/2-g*T,y:S/2-y*T,zoom:T},{duration:b==null?void 0:b.duration,ease:b==null?void 0:b.ease,interpolate:b==null?void 0:b.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{h({connection:{...Wte}})},updateConnection:g=>{h({connection:g})},reset:()=>h({...X$()})}},Object.is);function Iqe({initialNodes:t,initialEdges:e,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:o,initialMinZoom:s,initialMaxZoom:a,initialFitViewOptions:l,fitView:c,nodeOrigin:u,nodeExtent:d,zIndexMode:f,children:h}){const[p]=E.useState(()=>Aqe({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,width:i,height:o,fitView:c,minZoom:s,maxZoom:a,fitViewOptions:l,nodeOrigin:u,nodeExtent:d,zIndexMode:f}));return x.jsx(UHe,{value:p,children:x.jsx(mUe,{children:h})})}function Rqe({children:t,nodes:e,edges:n,defaultNodes:r,defaultEdges:i,width:o,height:s,fitView:a,fitViewOptions:l,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:h}){return E.useContext(LC)?x.jsx(x.Fragment,{children:t}):x.jsx(Iqe,{initialNodes:e,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:o,initialHeight:s,fitView:a,initialFitViewOptions:l,initialMinZoom:c,initialMaxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:h,children:t})}const Mqe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function kqe({nodes:t,edges:e,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:o,edgeTypes:s,onNodeClick:a,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:h,onConnectStart:p,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,onNodeMouseEnter:b,onNodeMouseMove:v,onNodeMouseLeave:S,onNodeContextMenu:I,onNodeDoubleClick:O,onNodeDragStart:T,onNodeDrag:A,onNodeDragStop:R,onNodesDelete:k,onEdgesDelete:P,onDelete:C,onSelectionChange:_,onSelectionDragStart:M,onSelectionDrag:V,onSelectionDragStop:N,onSelectionContextMenu:z,onSelectionStart:L,onSelectionEnd:B,onBeforeDelete:j,connectionMode:H,connectionLineType:q=Wc.Bezier,connectionLineStyle:Y,connectionLineComponent:Z,connectionLineContainerStyle:G,deleteKeyCode:X="Backspace",selectionKeyCode:K="Shift",selectionOnDrag:J=!1,selectionMode:te=Z0.Full,panActivationKeyCode:ne="Space",multiSelectionKeyCode:ce=tv()?"Meta":"Control",zoomActivationKeyCode:ie=tv()?"Meta":"Control",snapToGrid:oe,snapGrid:ue,onlyRenderVisibleElements:pe=!1,selectNodesOnDrag:ve,nodesDraggable:se,autoPanOnNodeFocus:ae,nodesConnectable:ke,nodesFocusable:Ee,nodeOrigin:_e=Tne,edgesFocusable:we,edgesReconnectable:et,elementsSelectable:rt=!0,defaultViewport:he=rUe,minZoom:be=.5,maxZoom:De=2,translateExtent:Be=J0,preventScrolling:Xe=!0,nodeExtent:Me,defaultMarkerColor:xe="#b1b1b7",zoomOnScroll:Ge=!0,zoomOnPinch:Ke=!0,panOnScroll:nt=!1,panOnScrollSpeed:en=.5,panOnScrollMode:Wt=Ef.Free,zoomOnDoubleClick:Jt=!0,panOnDrag:pn=!0,onPaneClick:Cn,onPaneMouseEnter:tn,onPaneMouseMove:Ue,onPaneMouseLeave:Fe,onPaneScroll:ct,onPaneContextMenu:Dt,paneClickDistance:Gt=1,nodeClickDistance:mn=0,children:st,onReconnect:Ct,onReconnectStart:$e,onReconnectEnd:Je,onEdgeContextMenu:ht,onEdgeDoubleClick:bt,onEdgeMouseEnter:qt,onEdgeMouseMove:vr,onEdgeMouseLeave:kr,reconnectRadius:co=10,onNodesChange:Jr,onEdgesChange:Vi,noDragClassName:Bn="nodrag",noWheelClassName:$n="nowheel",noPanClassName:xi="nopan",fitView:nl,fitViewOptions:sa,connectOnClick:rl,attributionPosition:ge,proOptions:me,defaultEdgeOptions:qe,elevateNodesOnSelect:at=!0,elevateEdgesOnSelect:dt=!1,disableKeyboardA11y:nn=!1,autoPanOnConnect:bn,autoPanOnNodeDrag:Ei,autoPanSpeed:il,connectionRadius:md,isValidConnection:ol,onError:aa,style:Rt,id:Bi,nodeDragThreshold:uo,connectionDragThreshold:la,viewport:$C,onViewportChange:ca,width:qo,height:gd,colorMode:yd="light",debug:Ag,onScroll:Zt,ariaLabelConfig:Sh,zIndexMode:yc="basic",...vd},FC){const xh=Bi||"1",jC=aUe(yd),HC=E.useCallback(cb=>{cb.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Zt==null||Zt(cb)},[Zt]);return x.jsx("div",{"data-testid":"rf__wrapper",...vd,onScroll:HC,style:{...Rt,...Mqe},ref:FC,className:Mr(["react-flow",i,jC]),id:Bi,role:"application",children:x.jsxs(Rqe,{nodes:t,edges:e,width:qo,height:gd,fitView:nl,fitViewOptions:sa,minZoom:be,maxZoom:De,nodeOrigin:_e,nodeExtent:Me,zIndexMode:yc,children:[x.jsx(_qe,{onInit:c,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:b,onNodeMouseMove:v,onNodeMouseLeave:S,onNodeContextMenu:I,onNodeDoubleClick:O,nodeTypes:o,edgeTypes:s,connectionLineType:q,connectionLineStyle:Y,connectionLineComponent:Z,connectionLineContainerStyle:G,selectionKeyCode:K,selectionOnDrag:J,selectionMode:te,deleteKeyCode:X,multiSelectionKeyCode:ce,panActivationKeyCode:ne,zoomActivationKeyCode:ie,onlyRenderVisibleElements:pe,defaultViewport:he,translateExtent:Be,minZoom:be,maxZoom:De,preventScrolling:Xe,zoomOnScroll:Ge,zoomOnPinch:Ke,zoomOnDoubleClick:Jt,panOnScroll:nt,panOnScrollSpeed:en,panOnScrollMode:Wt,panOnDrag:pn,onPaneClick:Cn,onPaneMouseEnter:tn,onPaneMouseMove:Ue,onPaneMouseLeave:Fe,onPaneScroll:ct,onPaneContextMenu:Dt,paneClickDistance:Gt,nodeClickDistance:mn,onSelectionContextMenu:z,onSelectionStart:L,onSelectionEnd:B,onReconnect:Ct,onReconnectStart:$e,onReconnectEnd:Je,onEdgeContextMenu:ht,onEdgeDoubleClick:bt,onEdgeMouseEnter:qt,onEdgeMouseMove:vr,onEdgeMouseLeave:kr,reconnectRadius:co,defaultMarkerColor:xe,noDragClassName:Bn,noWheelClassName:$n,noPanClassName:xi,rfId:xh,disableKeyboardA11y:nn,nodeExtent:Me,viewport:$C,onViewportChange:ca}),x.jsx(sUe,{nodes:t,edges:e,defaultNodes:n,defaultEdges:r,onConnect:h,onConnectStart:p,onConnectEnd:m,onClickConnectStart:g,onClickConnectEnd:y,nodesDraggable:se,autoPanOnNodeFocus:ae,nodesConnectable:ke,nodesFocusable:Ee,edgesFocusable:we,edgesReconnectable:et,elementsSelectable:rt,elevateNodesOnSelect:at,elevateEdgesOnSelect:dt,minZoom:be,maxZoom:De,nodeExtent:Me,onNodesChange:Jr,onEdgesChange:Vi,snapToGri
vendor: 4,880 bytes, line 5104
5104d:oe,snapGrid:ue,connectionMode:H,translateExtent:Be,connectOnClick:rl,defaultEdgeOptions:qe,fitView:nl,fitViewOptions:sa,onNodesDelete:k,onEdgesDelete:P,onDelete:C,onNodeDragStart:T,onNodeDrag:A,onNodeDragStop:R,onSelectionDrag:V,onSelectionDragStart:M,onSelectionDragStop:N,onMove:u,onMoveStart:d,onMoveEnd:f,noPanClassName:xi,nodeOrigin:_e,rfId:xh,autoPanOnConnect:bn,autoPanOnNodeDrag:Ei,autoPanSpeed:il,onError:aa,connectionRadius:md,isValidConnection:ol,selectNodesOnDrag:ve,nodeDragThreshold:uo,connectionDragThreshold:la,onBeforeDelete:j,debug:Ag,ariaLabelConfig:Sh,zIndexMode:yc}),x.jsx(nUe,{onSelectionChange:_}),st,x.jsx(QHe,{proOptions:me,position:ge}),x.jsx(XHe,{rfId:xh,disableKeyboardA11y:nn})]})})}var Gtt=_ne(kqe);function Pqe({dimensions:t,lineWidth:e,variant:n,className:r}){return x.jsx("path",{strokeWidth:e,d:`M${t[0]/2} 0 V${t[1]} M0 ${t[1]/2} H${t[0]}`,className:Mr(["react-flow__background-pattern",n,r])})}function Oqe({radius:t,className:e}){return x.jsx("circle",{cx:t,cy:t,r:t,className:Mr(["react-flow__background-pattern","dots",e])})}var Pu;(function(t){t.Lines="lines",t.Dots="dots",t.Cross="cross"})(Pu||(Pu={}));const Nqe={[Pu.Dots]:1,[Pu.Lines]:1,[Pu.Cross]:6},Dqe=t=>({transform:t.transform,patternId:`pattern-${t.rfId}`});function Xne({id:t,variant:e=Pu.Dots,gap:n=20,size:r,lineWidth:i=1,offset:o=0,color:s,bgColor:a,style:l,className:c,patternClassName:u}){const d=E.useRef(null),{transform:f,patternId:h}=Ut(Dqe,Kn),p=r||Nqe[e],m=e===Pu.Dots,g=e===Pu.Cross,y=Array.isArray(n)?n:[n,n],b=[y[0]*f[2]||1,y[1]*f[2]||1],v=p*f[2],S=Array.isArray(o)?o:[o,o],I=g?[v,v]:b,O=[S[0]*f[2]||1+I[0]/2,S[1]*f[2]||1+I[1]/2],T=`${h}${t||""}`;return x.jsxs("svg",{className:Mr(["react-flow__background",c]),style:{...l,...VC,"--xy-background-color-props":a,"--xy-background-pattern-color-props":s},ref:d,"data-testid":"rf__background",children:[x.jsx("pattern",{id:T,x:f[0]%b[0],y:f[1]%b[1],width:b[0],height:b[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${O[0]},-${O[1]})`,children:m?x.jsx(Oqe,{radius:v/2,className:u}):x.jsx(Pqe,{dimensions:I,lineWidth:i,variant:e,className:u})}),x.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${T})`})]})}Xne.displayName="Background";const Ktt=E.memo(Xne);function Lqe(){return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:x.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function zqe(){return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:x.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Vqe(){return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:x.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Bqe(){return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:x.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function $qe(){return x.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:x.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function k2({children:t,className:e,...n}){return x.jsx("button",{type:"button",className:Mr(["react-flow__controls-button",e]),...n,children:t})}const Fqe=t=>({isInteractive:t.nodesDraggable||t.nodesConnectable||t.elementsSelectable,minZoomReached:t.transform[2]<=t.minZoom,maxZoomReached:t.transform[2]>=t.maxZoom,ariaLabelConfig:t.ariaLabelConfig});function Qne({style:t,showZoom:e=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:o,onZoomOut:s,onFitView:a,onInteractiveChange:l,className:c,children:u,position:d="bottom-left",orientation:f="vertical","aria-label":h}){const p=Yn(),{isInteractive:m,minZoomReached:g,maxZoomReached:y,ariaLabelConfig:b}=Ut(Fqe,Kn),{zoomIn:v,zoomOut:S,fitView:I}=MN(),O=()=>
5104{v(),o==null||o()},T=()=>{S(),s==null||s()},A=()=>{I(i),a==null||a()},R=()=>{p.setState({nodesDraggable:!m,nodesConnectable:!m,elementsSelectable:!m}),l==null||l(!m)},k=f==="horizontal"?"horizontal":"vertical";return x.jsxs(zC,{className:Mr(["react-flow__controls",k,c]),position:d,style:t,"data-testid":"rf__controls","aria-label":h??b["controls.ariaLabel"],children:[e&&x.jsxs(x.Fragment,{children:[x.jsx(k2,{onClick:O,className:"react-flow__controls-zoomin",title:b["controls.zoomIn.ariaLabel"],"aria-label":b["controls.zoomIn.ariaLabel"],disabled:y,children:x.jsx(Lqe,{})}),x.jsx(k2,{onClick:T,className:"react-flow__controls-zoomout",title:b["controls.zoomOut.ariaLabel"],"aria-label":b["controls.zoomOut.ariaLabel"],disabled:g,children:x.jsx(zqe,{})})]}),n&&x.jsx(k2,{className:"react-flow__controls-fitview",onClick:A,title:b["controls.fitView.ariaLabel"],"aria-label":b["controls.fitView.ariaLabel"],children:x.jsx(Vqe,{})}),r&&x.jsx(k2,{className:"react-flow__controls-interactive",onClick:R,title:b["controls.interactive.ariaLabel"],"aria-label":b["controls.interactive.ariaLabel"],children:m?x.jsx($qe,{}):x.jsx(Bqe,{})}),u]})}Qne.displayName="Controls";const Ytt=E.memo(Qne);function jqe({id:t,x:e,y:n,width:r,height:i,style:o,color:s,strokeColor:a,strokeWidth:l,className:c,borderRadius:u,shapeRendering:d,selected:f,onClick:h}){const{background:p,backgroundColor:m}=o||{},g=s||p||m;return x.jsx("rect",{className:Mr(["react-flow__minimap-node",{selected:f},c]),x:e,y:n,rx:u,ry:u,width:r,height:i,style:{fill:g,stroke:a,strokeWidth:l},shapeRendering:d,onClick:h?y=>h(y,t):void 0})}const Hqe=E.memo(jqe),Uqe=t=>t.nodes.map(e=>e.id),AI=t=>t instanceof Function?t:()=>t;function qqe({nodeStrokeColor:t,nodeColor:e,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:o=Hqe,onClick:s}){const a=Ut(Uqe,Kn),l=AI(e),c=AI(t),u=AI(n),d=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return x.jsx(x.Fragment,{children:a.map(f=>x.jsx(Gqe,{id:f,nodeColorFunc:l,nodeStrokeColorFunc:c,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:o,onClick:s,shapeRendering:d},f))})}function Wqe({id:t,nodeColorFunc:e,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:o,shapeRendering:s,NodeComponent:a,onClick:l}){const{node:c,x:u,y:d,width:f,height:h}=Ut(p=>{const m=p.nodeLookup.get(t);if(!m)return{node:void 0,x:0,y:0,width:0,height:0};const g=m.internals.userNode,{x:y,y:b}=m.internals.positionAbsolute,{width:v,height:S}=gc(g);return{node:g,x:y,y:b,width:v,height:S}},Kn);return!c||c.hidden||!Zte(c)?null:x.jsx(a,{x:u,y:d,width:f,height:h,style:c.style,selected:!!c.selected,className:r(c),color:e(c),borderRadius:i,strokeColor:n(c),strokeWidth:o,shapeRendering:s,onClick:l,id:c.id})}const Gqe=E.memo(Wqe);var Kqe=E.memo(qqe);const Yqe=200,Xqe=150,Qqe=t=>!t.hidden,Jqe=t=>{const e={x:-t.transform[0]/t.transform[2],y:-t.transform[1]/t.transform[2],width:t.width/t.transform[2],height:t.height/t.transform[2]};return{viewBB:e,boundingRect:t.nodeLookup.size>0?Jte(sb(t.nodeLookup,{filter:Qqe}),e):e,rfId:t.rfId,panZoom:t.panZoom,translateExtent:t.translateExtent,flowWidth:t.width,flowHeight:t.height,ariaLabelConfig:t.ariaLabelConfig}},Zqe="react-flow__minimap-desc";function Jne({style:t,className:e,nodeStrokeColor:n,nodeColor:r,nodeClassName:i="",nodeBorderRadius:o=5,nodeStrokeWidth:s,nodeComponent:a,bgColor:l,maskColor:c,maskStrokeColor:u,maskStrokeWidth:d,position:f="bottom-right",onClick:h,onNodeClick:p,pannable:m=!1,zoomable:g=!1,ariaLabel:y,inversePan:b,zoomStep:v=1,offsetScale:S=5}){const I=Yn(),O=E.useRef(null),{boundingRect:T,viewBB:A,rfId:R,panZoom:k,translateExtent:P,flowWidth:C,flowHeight:_,ariaLabelConfig:M}=Ut(Jqe,Kn),V=(t==null?void 0:t.width)??Yqe,N=(t==null?void 0:t.height)??Xqe,z=T.width/V,L=T.height/N,B=Math.max(z,L),j=B*V,H=B*N,q=S*B,Y=T.x-(j-T.width)/2-q,Z=T.y-(H-T.height)/2-q,G=j+q*2,X=H+q*2,K=`${Zqe}-${R}`,J=E.useRef(0),te=E.useRef();J.current=B,E.useEffect(()=>{if(O.current&&k)return te.current=SHe({domNode:O.current,panZoom:k,getTransform:()=>I.getState().transform,getViewScale:()=>J.current}),()=>{var oe;(oe=te.current)==null||oe.destroy()}},[k]),E.useEffect(()=>{var oe;(oe=te.current)==null||oe.update({translateExtent:P,width:C,height:_,inversePan:b,pannable:m,zoomStep:v,zoomable:g})},[m,g,b,v,P,C,_]);const ne=h?oe=>{var ve;const[ue,pe]=((ve=te.current)==null?void 0:ve.pointer(oe))||[0,0];h(oe,{x:ue,y:pe})}:void 0,ce=p?E.useCallback((oe,ue)=>{const pe=I.getState().nodeLookup.get(ue).internals.userNode;p(oe,pe)},[]):void 0,ie=y??M["minimap.ariaLabel"];return x.jsx(zC,{position:f,style:{...t,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d=="number"?d*B:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:Mr(["react-flow__minimap",e]),"data-testid":"rf__minimap",children:x.jsxs("svg",{width:V,height:N,viewBox:`${Y} ${Z} ${G} ${X}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":K,ref:O,onClick:ne,children:[ie&&x.jsx("title",{id:K,children:ie}),x.jsx(Kqe,{onClick:ce,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:o,nodeClassName:i,nodeStrokeWidth:s,nodeComponent:a}),x.jsx("path",{className:"react-flow__minimap-mask",d:`M${Y-q},${Z-q}h${G+q*2}v${X+q*2}h${-G-q*2}z 5105 M${A.x},${A.y}h${A.width}v${A.height}h${-A.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}
5105Jne.displayName="MiniMap";const Xtt=E.memo(Jne),eWe=t=>e=>t?`${Math.max(1/e.transform[2],1)}`:void 0,tWe={[rh.Line]:"right",[rh.Handle]:"bottom-right"};function nWe({nodeId:t,position:e,variant:n=rh.Handle,className:r,style:i=void 0,children:o,color:s,minWidth:a=10,minHeight:l=10,maxWidth:c=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:f,autoScale:h=!0,shouldResize:p,onResizeStart:m,onResize:g,onResizeEnd:y}){const b=Mne(),v=typeof t=="string"?t:b,S=Yn(),I=E.useRef(null),O=n===rh.Handle,T=Ut(E.useCallback(eWe(O&&h),[O,h]),Kn),A=E.useRef(null),R=e??tWe[n];E.useEffect(()=>{if(!(!I.current||!v))return A.current||(A.current=zHe({domNode:I.current,nodeId:v,getStoreItems:()=>{const{nodeLookup:P,transform:C,snapGrid:_,snapToGrid:M,nodeOrigin:V,domNode:N}=S.getState();return{nodeLookup:P,transform:C,snapGrid:_,snapToGrid:M,nodeOrigin:V,paneDomNode:N}},onChange:(P,C)=>{const{triggerNodeChanges:_,nodeLookup:M,parentLookup:V,nodeOrigin:N}=S.getState(),z=[],L={x:P.x,y:P.y},B=M.get(v);if(B&&B.expandParent&&B.parentId){const j=B.origin??N,H=P.width??B.measured.width??0,q=P.height??B.measured.height??0,Y={id:B.id,parentId:B.parentId,rect:{width:H,height:q,...ene({x:P.x??B.position.x,y:P.y??B.position.y},{width:H,height:q},B.parentId,M,j)}},Z=RN([Y],M,V,N);z.push(...Z),L.x=P.x?Math.max(j[0]*H,P.x):void 0,L.y=P.y?Math.max(j[1]*q,P.y):void 0}if(L.x!==void 0&&L.y!==void 0){const j={id:v,type:"position",position:{...L}};z.push(j)}if(P.width!==void 0&&P.height!==void 0){const H={id:v,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:P.width,height:P.height}};z.push(H)}for(const j of C){const H={...j,type:"position"};z.push(H)}_(z)},onEnd:({width:P,height:C})=>{const _={id:v,type:"dimensions",resizing:!1,dimensions:{width:P,height:C}};S.getState().triggerNodeChanges([_])}})),A.current.update({controlPosition:R,boundaries:{minWidth:a,minHeight:l,maxWidth:c,maxHeight:u},keepAspectRatio:d,resizeDirection:f,onResizeStart:m,onResize:g,onResizeEnd:y,shouldResize:p}),()=>{var P;(P=A.current)==null||P.destroy()}},[R,a,l,c,u,d,m,g,y,p]);const k=R.split("-");return x.jsx("div",{className:Mr(["react-flow__resize-control","nodrag",...k,n,r]),ref:I,style:{...i,scale:T,...s&&{[O?"backgroundColor":"borderColor"]:s}},children:o})}const Q$=E.memo(nWe);function Qtt({nodeId:t,isVisible:e=!0,handleClassName:n,handleStyle:r,lineClassName:i,lineStyle:o,color:s,minWidth:a=10,minHeight:l=10,maxWidth:c=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:d=!1,autoScale:f=!0,shouldResize:h,onResizeStart:p,onResize:m,onResizeEnd:g}){return e?x.jsxs(x.Fragment,{children:[kHe.map(y=>x.jsx(Q$,{className:i,style:o,nodeId:t,position:y,variant:rh.Line,color:s,minWidth:a,minHeight:l,maxWidth:c,maxHeight:u,onResizeStart:p,keepAspectRatio:d,autoScale:f,shouldResize:h,onResize:m,onResizeEnd:g},y)),MHe.map(y=>x.jsx(Q$,{className:n,style:r,nodeId:t,position:y,color:s,minWidth:a,minHeight:l,maxWidth:c,maxHeight:u,onResizeStart:p,keepAspectRatio:d,autoScale:f,shouldResize:h,onResize:m,onResizeEnd:g},y))]}):null}export{Aet as $,oGe as A,wGe as B,nGe as C,tGe as D,rGe as E,ZWe as F,wT as G,PGe as H,hP as I,bT as J,Lh as K,eGe as L,iGe as M,jGe as N,tKe as O,E as P,kR as Q,ft as R,Twe as S,Ri as T,LQe as U,pGe as V,SGe as W,wet as X,Tet as Y,ba as Z,Cy as _,cn as a,QJe as a$,_et as a0,Iet as a1,n4 as a2,YS as a3,Cet as a4,I5e as a5,DX as a6,Eet as a7,xet as a8,Ho as a9,PWe as aA,wWe as aB,jWe as aC,OWe as aD,hXe as aE,bKe as aF,vKe as aG,yKe as aH,DYe as aI,gKe as aJ,sKe as aK,ZGe as aL,zTe as aM,EYe as aN,AYe as aO,pQe as aP,xKe as aQ,AJe as aR,oQe as aS,OGe as aT,cY as aU,sXe as aV,UZe as aW,$Ke as aX,dTe as aY,UGe as aZ,KGe as a_,AQe as aa,TQe as ab,uKe as ac,na as ad,lKe as ae,dKe as af,hKe as ag,$R as ah,cKe as ai,EGe as aj,AGe as ak,nKe as al,Xd as am,SQe as an,_Ge as ao,ER as ap,vGe as aq,eQe as ar,det as as,JGe as at,bXe as au,jQe as av,$Ge as aw,HZe as ax,MGe as ay,kWe as az,$We as b,LWe as b$,JL as b0,za as b1,lXe as b2,wYe as b3,kT as b4,nZe as b5,FYe as b6,het as b7,uet as b8,HGe as b9,vEe as bA,GEe as bB,LP as bC,RGe as bD,NP as bE,FGe as bF,eZe as bG,TYe as bH,CYe as bI,AKe as bJ,MQe as bK,sYe as bL,cZe as bM,zZe as bN,bYe as bO,RXe as bP,tet as bQ,_Ze as bR,YXe as bS,$Ye as bT,TJe as bU,BJe as bV,XJe as bW,KJe as bX,Rle as bY,Vet as bZ,SWe as b_,mKe as ba,aKe as bb,PYe as bc,MR as bd,kYe as be,IGe as bf,xJe as bg,lZe as bh,DXe as bi,OJe as bj,ZKe as bk,oet as bl,CKe as bm,fet as bn,BZe as bo,so as bp,oJe as bq,qTe as br,XTe as bs,GGe as bt,mXe as bu,zGe as bv,DGe as bw,LGe as bx,NGe as by,lEe as bz,an as c,eKe as c$,vWe as c0,Let as c1,G4e as c2,tq as c3,m3e as c4,zWe as c5,Bet as c6,$et as c7,FWe as c8,WWe as c9,Sde as cA,cq as cB,mue as cC,bue as cD,lue as cE,cue as cF,bde as cG,_de as cH,pue as cI,Pue as cJ,aue as cK,H3e as cL,uh as cM,lWe as cN,cWe as cO,_We as cP,pJe as cQ,fWe as cR,PQe as cS,XGe as cT,BGe as cU,YGe as cV,HJe as cW,RQe as cX,LYe as cY,CQe as cZ,sGe as c_,GWe as ca,HWe as cb,Het as cc,KWe as cd,Zme as ce,Jme as cf,NWe as cg,jet as ch,U3e as ci,Pde as cj,Due as ck,_ue as cl,vq as cm,hue as cn,due as co,$ue as cp,Nq as cq,cf as cr,Oq as cs,
5105cde as ct,Ju as cu,uq as cv,El as cw,wde as cx,rue as cy,eue as cz,jme as d,x6e as d$,__e as d0,qYe as d1,_Qe as d2,qWe as d3,IYe as d4,Uet as d5,VYe as d6,IWe as d7,PXe as d8,JKe as d9,dNe as dA,Get as dB,QJ as dC,lNe as dD,c9e as dE,As as dF,W0 as dG,l9e as dH,q0 as dI,Xet as dJ,Yet as dK,Xr as dL,Ket as dM,FMe as dN,Ce as dO,We as dP,BJ as dQ,dr as dR,Qi as dS,ax as dT,gn as dU,ot as dV,DO as dW,ttt as dX,swe as dY,m2e as dZ,qGe as d_,yM as da,rQe as db,JXe as dc,vet as dd,aGe as de,cGe as df,kGe as dg,cJe as dh,uJe as di,att as dj,ntt as dk,rNe as dl,HNe as dm,ltt as dn,Jet as dp,Li as dq,lo as dr,mt as ds,ett as dt,vt as du,Zet as dv,itt as dw,Qet as dx,lt as dy,JOe as dz,bWe as e,Xse as e$,ott as e0,Det as e1,Met as e2,Oet as e3,ket as e4,ctt as e5,IKe as e6,h6e as e7,GKe as e8,OKe as e9,BQe as eA,tXe as eB,aZe as eC,YQe as eD,HYe as eE,kQe as eF,fQe as eG,DKe as eH,JJe as eI,sZe as eJ,TZe as eK,bet as eL,qQe as eM,Oo as eN,JQe as eO,uYe as eP,EXe as eQ,gGe as eR,jAe as eS,rB as eT,HQe as eU,IJe as eV,dZe as eW,uue as eX,hWe as eY,xWe as eZ,oWe as e_,dXe as ea,Net as eb,bh as ec,cet as ed,aet as ee,ZQe as ef,oXe as eg,F as eh,NZe as ei,PZe as ej,hZe as ek,lQe as el,OZe as em,_Xe as en,AXe as eo,aWe as ep,pZe as eq,vXe as er,SYe as es,VKe as et,set as eu,yYe as ev,UYe as ew,nYe as ex,ZYe as ey,NKe as ez,DWe as f,QXe as f$,DEe as f0,yZe as f1,UQe as f2,VGe as f3,KKe as f4,mQe as f5,QGe as f6,sWe as f7,jYe as f8,SJe as f9,Ttt as fA,xtt as fB,Ett as fC,Ctt as fD,ZO as fE,Att as fF,Stt as fG,wtt as fH,btt as fI,vtt as fJ,ytt as fK,gtt as fL,eNe as fM,nI as fN,stt as fO,dtt as fP,ftt as fQ,rtt as fR,utt as fS,e9e as fT,zYe as fU,KXe as fV,IZe as fW,WXe as fX,bQe as fY,UXe as fZ,GXe as f_,PKe as fa,WQe as fb,jXe as fc,$Xe as fd,HXe as fe,FXe as ff,Ja as fg,YKe as fh,qXe as fi,cYe as fj,yJe as fk,JYe as fl,QYe as fm,XYe as fn,nQe as fo,OTe as fp,Pet as fq,ph as fr,uQ as fs,mNe as ft,JJ as fu,Itt as fv,Rtt as fw,Dn as fx,Z8e as fy,_tt as fz,Ts as g,dWe as g$,CZe as g0,_Ee as g1,FKe as g2,UKe as g3,mYe as g4,CGe as g5,dQe as g6,MJe as g7,WGe as g8,SZe as g9,NJe as gA,uGe as gB,hGe as gC,dGe as gD,oZe as gE,iZe as gF,iKe as gG,rKe as gH,Q_e as gI,FZe as gJ,LZe as gK,fZe as gL,OXe as gM,wXe as gN,AZe as gO,qJe as gP,iQe as gQ,nXe as gR,rZe as gS,uXe as gT,hQe as gU,DQe as gV,pXe as gW,NXe as gX,KZe as gY,Fet as gZ,htt as g_,mZe as ga,DZe as gb,jJe as gc,xZe as gd,gZe as ge,uQe as gf,QZe as gg,LJe as gh,KQe as gi,EQe as gj,LXe as gk,gXe as gl,cXe as gm,pet as gn,LKe as go,eJe as gp,rYe as gq,sJe as gr,XZe as gs,tJe as gt,hJe as gu,fJe as gv,nJe as gw,gQe as gx,Rue as gy,_Ye as gz,TWe as h,qZe as h$,uWe as h0,iWe as h1,iYe as h2,GQe as h3,ret as h4,$Qe as h5,OYe as h6,kZe as h7,yGe as h8,gJe as h9,NYe as hA,aXe as hB,yQe as hC,DJe as hD,tYe as hE,sQe as hF,get as hG,_Ke as hH,CJe as hI,FQe as hJ,GYe as hK,pYe as hL,BXe as hM,MKe as hN,nue as hO,bZe as hP,wZe as hQ,jtt as hR,kKe as hS,Si as hT,Hr as hU,P4 as hV,kO as hW,zJe as hX,GZe as hY,mGe as hZ,lYe as h_,yet as ha,TGe as hb,xGe as hc,RZe as hd,iet as he,net as hf,GJe as hg,WYe as hh,RKe as hi,o1e as hj,oKe as hk,W as hl,fYe as hm,VQe as hn,MZe as ho,eYe as hp,ZXe as hq,rXe as hr,met as hs,EJe as ht,vJe as hu,vQe as hv,iJe as hw,$tt as hx,zXe as hy,zQe as hz,mfe as i,wg as i$,BYe as i0,BKe as i1,vYe as i2,eXe as i3,pKe as i4,BY as i5,cQe as i6,YZe as i7,jKe as i8,qKe as i9,In as iA,Ol as iB,fn as iC,An as iD,ra as iE,Q as iF,oA as iG,Bo as iH,MEe as iI,sY as iJ,wKe as iK,_0 as iL,Exe as iM,CT as iN,mA as iO,vP as iP,rY as iQ,CA as iR,Sn as iS,fGe as iT,iXe as iU,oYe as iV,kJe as iW,XKe as iX,VZe as iY,mg as iZ,dYe as i_,WKe as ia,eet as ib,ZZe as ic,JZe as id,EWe as ie,PY as ig,kXe as ih,Ftt as ii,HKe as ij,FJe as ik,VXe as il,xXe as im,wee as io,Er as ip,mP as iq,lGe as ir,Pe as is,Le as it,Za as iu,qi as iv,de as iw,Oe as ix,Ws as iy,jt as iz,x as j,bJe as j$,KT as j0,RLe as j1,ktt as j2,Mtt as j3,Awe as j4,bGe as j5,k1 as j6,fKe as j7,wy as j8,yp as j9,x7e as jA,BK as jB,Btt as jC,tN as jD,aJe as jE,MYe as jF,vZe as jG,XQe as jH,UJe as jI,xBe as jJ,mJe as jK,AWe as jL,Lye as jM,XXe as jN,uZe as jO,yXe as jP,YYe as jQ,TKe as jR,Htt as jS,RP as jT,WZe as jU,wQe as jV,MXe as jW,fXe as jX,lJe as jY,xQe as jZ,OQe as j_,sxe as ja,n7 as jb,SL as jc,Ic as jd,Ns as je,Ott as jf,Am as jg,Ptt as jh,aP as ji,H4 as jj,iY as jk,Ntt as jl,Dtt as jm,Ltt as jn,mB as jo,ir as jp,Yo as jq,V1 as jr,BLe as js,wp as jt,P7e as ju,ztt as jv,Fv as jw,mo as jx,Cw as jy,Vtt as jz,zh as k,QQe as k0,VJe as k1,OBe as k2,ZJe as k3,yve as k4,PJe as k5,wJe as k6,gYe as k7,hYe as k8,NQe as k9,MN as kA,uUe as kB,dUe as kC,Wtt as kD,EZe as kE,$Ze as kF,YJe as kG,Gtt as kH,Ktt as kI,Xtt as kJ,Ytt as kK,s3 as kL,BC as kM,dJe as kN,aYe as kO,zKe as kP,QKe as kQ,J$ as kR,SKe as kS,mWe as kT,$Je as ka,TXe as kb,CXe as kc,RYe as kd,_Je as ke,KYe as kf,mtt as kg,ptt as kh,rJe as ki,xYe as kj,SXe as kk,EKe as kl,jZe as km,tQe as kn,aQe as ko,IXe as kp,WJe as kq,IQe as kr,tZe as ks,RJe as kt,f8e as ku,ut as kv,kx as kw,Nx as kx,Qtt as ky,Iqe as kz,Dh as l,YWe as m,Oh as n,Gg as o,Nh as p,RWe as q,BWe as r,CWe as s,JWe as t,UWe as u,dge as v,MWe as w,XWe as x,x0 as y,QWe as z};
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.