vendor: 3,773 bytes, lines 1-18
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/engine-CThjqeAu.js","assets/fileTools.pure-O3hflNMy.js","assets/perfCounter-BXP6OJRQ.js","assets/baseTexture.pure-BeMB4zCM.js","assets/math.size-F3xmSqZc.js","assets/tier3-babylon-z6xMXPxH.js","assets/smartArray-B7wVGkJ5.js","assets/tools.pure-PAKPbutq.js","assets/thinEngine-DI9LWTqR.js","assets/helperFunctions-D7-zXdUR.js"])))=>i.map(i=>d[i]); 2(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))s(u);new MutationObserver(u=>{for(const h of u)if(h.type==="childList")for(const p of h.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&s(p)}).observe(document,{childList:!0,subtree:!0});function o(u){const h={};return u.integrity&&(h.integrity=u.integrity),u.referrerPolicy&&(h.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?h.credentials="include":u.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function s(u){if(u.ep)return;u.ep=!0;const h=o(u);fetch(u.href,h)}})();var sc={exports:{}},ri={};/** 3 * @license React 4 * react-jsx-runtime.production.js 5 * 6 * Copyright (c) Meta Platforms, Inc. and affiliates. 7 * 8 * This source code is licensed under the MIT license found in the 9 * LICENSE file in the root directory of this source tree. 10 */var Ah;function Hy(){if(Ah)return ri;Ah=1;var f=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(s,u,h){var p=null;if(h!==void 0&&(p=""+h),u.key!==void 0&&(p=""+u.key),"key"in u){h={};for(var g in u)g!=="key"&&(h[g]=u[g])}else h=u;return u=h.ref,{$$typeof:f,type:s,key:p,ref:u!==void 0?u:null,props:h}}return ri.Fragment=r,ri.jsx=o,ri.jsxs=o,ri}var Ch;function qy(){return Ch||(Ch=1,sc.exports=Hy()),sc.exports}var T=qy(),rc={exports:{}},oi={},oc={exports:{}},cc={};/** 11 * @license React 12 * scheduler.production.js 13 * 14 * Copyright (c) Meta Platforms, Inc. and affiliates. 15 * 16 * This source code is licensed under the MIT license found in the 17 * LICENSE file in the root directory of this source tree. 18 */var wh;function Yy(){return wh||(wh=1,(function(f){function r(O,B){var U=O.length;O.push(B);e:for(;0<U;){var ge=U-1>>>1,pe=O[ge];if(0<u(pe,B))O[ge]=B,O[U]=pe,U=ge;else break e}}function o(O){return O.length===0?null:O[0]}function s(O){if(O.length===0)return null;var B=O[0],U=O.pop();if(U!==B){O[0]=U;e:for(var ge=0,pe=O.length,b=pe>>>1;ge<b;){var D=2*(ge+1)-1,G=O[D],H=D+1,$=O[H];if(0>u(G,U))H<pe&&0>u($,G)?(O[ge]=$,O[H]=U,ge=H):(O[ge]=G,O[D]=U,ge=D);else if(H<pe&&0>u($,U))O[ge]=$,O[H]=U,ge=H;else break e}}return B}function u(O,B){var U=O.sortIndex-B.sortIndex;return U!==0?U:O.id-B.id}if(f.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;f.unstable_now=function(){return h.now()}}else{var p=Date,g=p.now();f.unstable_now=function(){return p.now()-g}}var m=[],v=[],z=1,x=null,L=3,Q=!1,P=!1,ee=!1,Oe=!1,Ne=typeof setTimeout=="function"?setTimeout:null,me=typeof clearTimeout=="function"?clearTimeout:null,ye=typeof setImmediate<"u"?setImmediate:null;function ve(O){for(var B=o(v);B!==null;){if(B.callback===null)s(v);else if(B.startTime<=O)s(v),B.sortIndex=B.expirationTime,r(m,B);else break;B=o(v)}}function Te(O){if(ee=!1,ve(O),!P)if(o(m)!==null)P=!0,De||(De=!0,Be());else{var B=o(v);B!==null&&Ge(Te,B.startTime-O)}}var De=!1,le=-1,K=5,je=-1;function Et(){return Oe?!0:!(f.unstable_now()-je<K)}function Pe(){if(Oe=!1,De){var O=f.unstable_now();je=O;var B=!0;try{e:{P=!1,ee&&(ee=!1,me(le),le=-1),Q=!0;var U=L;try{t:{for(ve(O),x=o(m);x!==null&&!(x.expirationTime>O&&Et());){var ge=x.callback;if(typeof ge=="function"){x.callback=null,L=x.priorityLevel;var pe=ge(x.expirationTime<=O);
vendor: 17,870 bytes, lines 18-42
18if(O=f.unstable_now(),typeof pe=="function"){x.callback=pe,ve(O),B=!0;break t}x===o(m)&&s(m),ve(O)}else s(m);x=o(m)}if(x!==null)B=!0;else{var b=o(v);b!==null&&Ge(Te,b.startTime-O),B=!1}}break e}finally{x=null,L=U,Q=!1}B=void 0}}finally{B?Be():De=!1}}}var Be;if(typeof ye=="function")Be=function(){ye(Pe)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,at=Rt.port2;Rt.port1.onmessage=Pe,Be=function(){at.postMessage(null)}}else Be=function(){Ne(Pe,0)};function Ge(O,B){le=Ne(function(){O(f.unstable_now())},B)}f.unstable_IdlePriority=5,f.unstable_ImmediatePriority=1,f.unstable_LowPriority=4,f.unstable_NormalPriority=3,f.unstable_Profiling=null,f.unstable_UserBlockingPriority=2,f.unstable_cancelCallback=function(O){O.callback=null},f.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<O?Math.floor(1e3/O):5},f.unstable_getCurrentPriorityLevel=function(){return L},f.unstable_next=function(O){switch(L){case 1:case 2:case 3:var B=3;break;default:B=L}var U=L;L=B;try{return O()}finally{L=U}},f.unstable_requestPaint=function(){Oe=!0},f.unstable_runWithPriority=function(O,B){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var U=L;L=O;try{return B()}finally{L=U}},f.unstable_scheduleCallback=function(O,B,U){var ge=f.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?ge+U:ge):U=ge,O){case 1:var pe=-1;break;case 2:pe=250;break;case 5:pe=1073741823;break;case 4:pe=1e4;break;default:pe=5e3}return pe=U+pe,O={id:z++,callback:B,priorityLevel:O,startTime:U,expirationTime:pe,sortIndex:-1},U>ge?(O.sortIndex=U,r(v,O),o(m)===null&&O===o(v)&&(ee?(me(le),le=-1):ee=!0,Ge(Te,U-ge))):(O.sortIndex=pe,r(m,O),P||Q||(P=!0,De||(De=!0,Be()))),O},f.unstable_shouldYield=Et,f.unstable_wrapCallback=function(O){var B=L;return function(){var U=L;L=B;try{return O.apply(this,arguments)}finally{L=U}}}})(cc)),cc}var Mh;function Vy(){return Mh||(Mh=1,oc.exports=Yy()),oc.exports}var uc={exports:{}},te={};/** 19 * @license React 20 * react.production.js 21 * 22 * Copyright (c) Meta Platforms, Inc. and affiliates. 23 * 24 * This source code is licensed under the MIT license found in the 25 * LICENSE file in the root directory of this source tree. 26 */var Oh;function Xy(){if(Oh)return te;Oh=1;var f=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),p=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),L=Symbol.iterator;function Q(b){return b===null||typeof b!="object"?null:(b=L&&b[L]||b["@@iterator"],typeof b=="function"?b:null)}var P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ee=Object.assign,Oe={};function Ne(b,D,G){this.props=b,this.context=D,this.refs=Oe,this.updater=G||P}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(b,D){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,D,"setState")},Ne.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function me(){}me.prototype=Ne.prototype;function ye(b,D,G){this.props=b,this.context=D,this.refs=Oe,this.updater=G||P}var ve=ye.prototype=new me;ve.constructor=ye,ee(ve,Ne.prototype),ve.isPureReactComponent=!0;var Te=Array.isArray;function De(){}var le={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function je(b,D,G){var H=G.ref;return{$$typeof:f,type:b,key:D,ref:H!==void 0?H:null,props:G}}function Et(b,D){return je(b.type,D,b.props)}function Pe(b){return typeof b=="object"&&b!==null&&b.$$typeof===f}function Be(b){var D={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(G){return D[G]})}var Rt=/\/+/g;function at(b,D){return typeof b=="object"&&b!==null&&b.key!=null?Be(""+b.key):D.toString(36)}function Ge(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(De,De):(b.status="pending",b.then(function(D){b.status==="pending"&&(b.status="fulfilled",b.value=D)},function(D){b.status==="pending"&&(b.status="rejected",b.reason=D)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function O(b,D,G,H,$){var ae=typeof b;(ae==="undefined"||ae==="boolean")&&(b=null);var Z=!1;if(b===null)Z=!0;else switch(ae){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(b.$$typeof){case f:case r:Z=!0;break;case z:return Z=b._init,O(Z(b._payload),D,G,H,$)}}if(Z)return $=$(b),Z=H===""?"."+at(b,0):H,Te($)?(G="",Z!=null&&(G=Z.replace(Rt,"$&/")+"/"),O($,D,G,"",function(nt){return nt})):$!=null&&(Pe($)&&($=Et($,G+($.key==null||b&&b.key===$.key?"":(""+$.key).replace(Rt,"$&/")+"/")+Z)),D.push($)),1;Z=0;var Ye=H===""?".":H+":";if(Te(b))for(var se=0;se<b.length;se++)H=b[se],ae=Ye+at(H,se),Z+=O(H,D,G,ae,$);else if(se=Q(b),typeof se=="function")for(b=se.call(b),se=0;!(H=b.next()).done;)H=H.value,ae=Ye+at(H,se++),Z+=O(H,D,G,ae,$);else if(ae==="object"){if(typeof b.then=="function")return O(Ge(b),D,G,H,$);throw D=String(b),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return Z}function B(b,D,G){if(b==null)return b;var H=[],$=0;return O(b,H,"","",function(ae){return D.call(G,ae,$++)}),H}function U(b){if(b._status===-1){var D=b._result;D=D(),D.then(function(G){(b._status===0||b._status===-1)&&(b._status=1,b._result=G)},function(G){(b._status===0||b._status===-1)&&(b._status=2,b._result=G)}),b._status===-1&&(b._status=0,b._result=D)}if(b._status===1)return b._result.default;throw b._result}var ge=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},pe={map:B,forEach:function(b,D,G){B(b,function(){D.apply(this,arguments)},G)},count:function(b){var D=0;return B(b,function(){D++}),D},toArray:function(b){return B(b,function(D){return D})||[]},only:function(b){if(!Pe(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return te.Activity=x,te.Children=pe,te.Component=Ne,te.Fragment=o,te.Profiler=u,te.PureComponent=ye,te.StrictMode=s,te.Suspense=m,te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,te.__COMPILER_RUNTIME={__proto__:null,c:function(b){return le.H.useMemoCache(b)}},te.cache=function(b){return function(){return b.apply(null,arguments)}},te.cacheSignal=function(){return null},te.cloneElement=function(b,D,G){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var H=ee({},b.props),$=b.key;if(D!=null)for(ae in D.key!==void 0&&($=""+D.key),D)!K.call(D,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&D.ref===void 0||(H[ae]=D[ae]);var ae=arguments.length-2;if(ae===1)H.children=G;else if(1<ae){for(var Z=Array(ae),Ye=0;Ye<ae;Ye++)Z[Ye]=arguments[Ye+2];H.children=Z}return je(b.type,$,H)},te.createContext=function(b){return b={$$typeof:p,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:h,_context:b},b},te.createElement=function(b,D,G){var H,$={},ae=null;if(D!=null)for(H in D.key!==void 0&&(ae=""+D.key),D)K.call(D,H)&&H!=="key"&&H!=="__self"&&H!=="__source"&&($[H]=D[H]);var Z=arguments.length-2;if(Z===1)$.children=G;else if(1<Z){for(var Ye=Array(Z),se=0;se<Z;se++)Ye[se]=arguments[se+2];$.children=Ye}if(b&&b.defaultProps)for(H in Z=b.defaultProps,Z)$[H]===void 0&&($[H]=Z[H]);return je(b,ae,$)},te.createRef=function(){return{current:null}},te.forwardRef=function(b){return{$$typeof:g,render:b}},te.isValidElement=Pe,te.lazy=function(b){return{$$typeof:z,_payload:{_status:-1,_result:b},_init:U}},te.memo=function(b,D){return{$$typeof:v,type:b,compare:D===void 0?null:D}},te.startTransition=function(b){var D=le.T,G={};le.T=G;try{var H=b(),$=le.S;$!==null&&$(G,H),typeof H=="object"&&H!==null&&typeof H.then=="function"&&H.then(De,ge)}catch(ae){ge(ae)}finally{D!==null&&G.types!==null&&(D.types=G.types),le.T=D}},te.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()},te.use=function(b){return le.H.use(b)},te.useActionState=function(b,D,G){return le.H.useActionState(b,D,G)},te.useCallback=function(b,D){return le.H.useCallback(b,D)},te.useContext=function(b){return le.H.useContext(b)},te.useDebugValue=function(){},te.useDeferredValue=function(b,D){return le.H.useDeferredValue(b,D)},te.useEffect=function(b,D){return le.H.useEffect(b,D)},te.useEffectEvent=function(b){return le.H.useEffectEvent(b)},te.useId=function(){return le.H.useId()},te.useImperativeHandle=function(b,D,G){return le.H.useImperativeHandle(b,D,G)},te.useInsertionEffect=function(b,D){return le.H.useInsertionEffect(b,D)},te.useLayoutEffect=function(b,D){return le.H.useLayoutEffect(b,D)},te.useMemo=function(b,D){return le.H.useMemo(b,D)},te.useOptimistic=function(b,D){return le.H.useOptimistic(b,D)},te.useReducer=function(b,D,G){return le.H.useReducer(b,D,G)},te.useRef=function(b){return le.H.useRef(b)},te.useState=function(b){return le.H.useState(b)},te.useSyncExternalStore=function(b,D,G){return le.H.useSyncExternalStore(b,D,G)},te.useTransition=function(){return le.H.useTransition()},te.version="19.2.1",te}var Nh;function Cc(){return Nh||(Nh=1,uc.exports=Xy()),uc.exports}var fc={exports:{}},ht={};/** 27 * @license React 28 * react-dom.production.js 29 * 30 * Copyright (c) Meta Platforms, Inc. and affiliates. 31 * 32 * This source code is licensed under the MIT license found in the 33 * LICENSE file in the root directory of this source tree. 34 */var Dh;function Ky(){if(Dh)return ht;Dh=1;var f=Cc();function r(m){var v="https://react.dev/errors/"+m;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)v+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+m+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var s={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function h(m,v,z){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:x==null?null:""+x,children:m,containerInfo:v,implementation:z}}var p=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(m,v){if(m==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ht.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ht.createPortal=function(m,v){var z=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(r(299));return h(m,v,null,z)},ht.flushSync=function(m){var v=p.T,z=s.p;try{if(p.T=null,s.p=2,m)return m()}finally{p.T=v,s.p=z,s.d.f()}},ht.preconnect=function(m,v){typeof m=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,s.d.C(m,v))},ht.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ht.preinit=function(m,v){if(typeof m=="string"&&v&&typeof v.as=="string"){var z=v.as,x=g(z,v.crossOrigin),L=typeof v.integrity=="string"?v.integrity:void 0,Q=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;z==="style"?s.d.S(m,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:x,integrity:L,fetchPriority:Q}):z==="script"&&s.d.X(m,{crossOrigin:x,integrity:L,fetchPriority:Q,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ht.preinitModule=function(m,v){if(typeof m=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var z=g(v.as,v.crossOrigin);s.d.M(m,{crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&s.d.M(m)},ht.preload=function(m,v){if(typeof m=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var z=v.as,x=g(z,v.crossOrigin);s.d.L(m,z,{crossOrigin:x,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ht.preloadModule=function(m,v){if(typeof m=="string")if(v){var z=g(v.as,v.crossOrigin);s.d.m(m,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:z,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else s.d.m(m)},ht.requestFormReset=function(m){s.d.r(m)},ht.unstable_batchedUpdates=function(m,v){return m(v)},ht.useFormState=function(m,v,z){return p.H.useFormState(m,v,z)},ht.useFormStatus=function(){return p.H.useHostTransitionStatus()},ht.version="19.2.1",ht}var kh;function Qy(){if(kh)return fc.exports;kh=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(r){console.error(r)}}return f(),fc.exports=Ky(),fc.exports}/** 35 * @license React 36 * react-dom-client.production.js 37 * 38 * Copyright (c) Meta Platforms, Inc. and affiliates. 39 * 40 * This source code is licensed under the MIT license found in the 41 * LICENSE file in the root directory of this source tree. 42 */var _h;function Zy(){if(_h)return oi;_h=1;var f=Vy(),r=Cc(),o=Qy();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(h(e)!==e)throw Error(s(188))}function v(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return m(n),e;if(i===a)return m(n),t;i=i.sibling}throw Error(s(188))}if(l.return!==a.return)l=n,a=i;else{for(var c=!1,d=n.child;d;){if(d===l){c=!0,l=n,a=i;break}if(d===a){c=!0,a=n,l=i;break}d=d.sibling}if(!c){for(d=i.child;d;){if(d===l){c=!0,l=i,a=n;break}if(d===a){c=!0,a=i,l=n;break}d=d.sibling}if(!c)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function z(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=z(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,L=Symbol.for("react.element"),Q=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),ee=Symbol.for("react.fragment"),Oe=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),me=Symbol.for("react.consumer"),ye=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),Te=Symbol.for("react.suspense"),De=Symbol.for("react.suspense_list"),le=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),je=Symbol.for("react.activity"),Et=Symbol.for("react.memo_cache_sentinel"),Pe=Symbol.iterator;function Be(e){return e===null||typeof e!="object"?null:(e=Pe&&e[Pe]||e["@@iterator"],typeof e=="function"?e:null)}var Rt=Symbol.for("react.client.reference");function at(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Rt?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ee:return"Fragment";case Ne:return"Profiler";case Oe:return"StrictMode";case Te:return"Suspense";case De:return"SuspenseList";case je:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case P:return"Portal";case ye:return e.displayName||"Context";case me:return(e._context.displayName||"Context")+".Consumer";case ve:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case le:return t=e.displayName||null,t!==null?t:at(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return at(e(t))}catch{}}return null}var Ge=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},ge=[],pe=-1;function b(e){return{current:e}}function D(e){0>pe||(e.current=ge[pe],ge[pe]=null,pe--)}function G(e,t){pe++,ge[pe]=e.current,e.current=t}var H=b(null),$=b(null),ae=b(null),Z=b(null);
vendor: 1,268 bytes, lines 42-44
42function Ye(e,t){switch(G(ae,t),G($,e),G(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jd(t),e=Wd(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(H),G(H,e)}function se(){D(H),D($),D(ae)}function nt(e){e.memoizedState!==null&&G(Z,e);var t=H.current,l=Wd(t,e.type);t!==l&&(G($,e),G(H,l))}function Qt(e){$.current===e&&(D(H),D($)),Z.current===e&&(D(Z),ai._currentValue=U)}var $t,hi;function al(e){if($t===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);$t=t&&t[1]||"",hi=-1<l.stack.indexOf(` 43 at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return` 44`+$t+e+hi}var hn=!1;function nl(e,t){if(!e||hn)return"";hn=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(M){var w=M}Reflect.construct(e,[],_)}else{try{_.call()}catch(M){w=M}e.call(_.prototype)}}else{try{throw Error()}catch(M){w=M}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}
vendor: 10,838 bytes, lines 44-49
44catch(M){if(M&&w&&typeof M.stack=="string")return[M.stack,w.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),c=i[0],d=i[1];if(c&&d){var y=c.split(` 45`),C=d.split(` 46`);for(n=a=0;a<y.length&&!y[a].includes("DetermineComponentFrameRoot");)a++;for(;n<C.length&&!C[n].includes("DetermineComponentFrameRoot");)n++;if(a===y.length||n===C.length)for(a=y.length-1,n=C.length-1;1<=a&&0<=n&&y[a]!==C[n];)n--;for(;1<=a&&0<=n;a--,n--)if(y[a]!==C[n]){if(a!==1||n!==1)do if(a--,n--,0>n||y[a]!==C[n]){var N=` 47`+y[a].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=a&&0<=n);break}}}finally{hn=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?al(l):""}function Ks(e,t){switch(e.tag){case 26:case 27:case 5:return al(e.type);case 16:return al("Lazy");case 13:return e.child!==t&&t!==null?al("Suspense Fallback"):al("Suspense");case 19:return al("SuspenseList");case 0:case 15:return nl(e.type,!1);case 11:return nl(e.type.render,!1);case 1:return nl(e.type,!0);case 31:return al("Activity");default:return""}}function mi(e){try{var t="",l=null;do t+=Ks(e,l),l=e,e=e.return;while(e);return t}catch(a){return` 48Error generating stack: `+a.message+` 49`+a.stack}}var va=Object.prototype.hasOwnProperty,ba=f.unstable_scheduleCallback,mn=f.unstable_cancelCallback,pn=f.unstable_shouldYield,Sa=f.unstable_requestPaint,dt=f.unstable_now,Il=f.unstable_getCurrentPriorityLevel,E=f.unstable_ImmediatePriority,j=f.unstable_UserBlockingPriority,J=f.unstable_NormalPriority,oe=f.unstable_LowPriority,Ve=f.unstable_IdlePriority,pt=f.log,Qs=f.unstable_setDisableYieldValue,il=null,it=null;function kt(e){if(typeof pt=="function"&&Qs(e),it&&typeof it.setStrictMode=="function")try{it.setStrictMode(il,e)}catch{}}var st=Math.clz32?Math.clz32:Cm,Rm=Math.log,Am=Math.LN2;function Cm(e){return e>>>=0,e===0?32:31-(Rm(e)/Am|0)|0}var pi=256,yi=262144,gi=4194304;function Pl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,i=e.suspendedLanes,c=e.pingedLanes;e=e.warmLanes;var d=a&134217727;return d!==0?(a=d&~i,a!==0?n=Pl(a):(c&=d,c!==0?n=Pl(c):l||(l=d&~e,l!==0&&(n=Pl(l))))):(d=a&~i,d!==0?n=Pl(d):c!==0?n=Pl(c):l||(l=a&~e,l!==0&&(n=Pl(l)))),n===0?0:t!==0&&t!==n&&(t&i)===0&&(i=n&-n,l=t&-t,i>=l||i===32&&(l&4194048)!==0)?t:n}function yn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wm(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Mc(){var e=gi;return gi<<=1,(gi&62914560)===0&&(gi=4194304),e}function Zs(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function gn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Mm(e,t,l,a,n,i){var c=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var d=e.entanglements,y=e.expirationTimes,C=e.hiddenUpdates;for(l=c&~l;0<l;){var N=31-st(l),_=1<<N;d[N]=0,y[N]=-1;var w=C[N];if(w!==null)for(C[N]=null,N=0;N<w.length;N++){var M=w[N];M!==null&&(M.lane&=-536870913)}l&=~_}a!==0&&Oc(e,a,0),i!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=i&~(c&~t))}function Oc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-st(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function Nc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-st(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function Dc(e,t){var l=t&-t;return l=(l&42)!==0?1:Js(l),(l&(e.suspendedLanes|t))!==0?0:l}function Js(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ws(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function kc(){var e=B.p;return e!==0?e:(e=window.event,e===void 0?32:vh(e.type))}function _c(e,t){var l=B.p;try{return B.p=e,t()}finally{B.p=l}}var Cl=Math.random().toString(36).slice(2),rt="__reactFiber$"+Cl,yt="__reactProps$"+Cl,Ta="__reactContainer$"+Cl,Fs="__reactEvents$"+Cl,Om="__reactListeners$"+Cl,Nm="__reactHandles$"+Cl,zc="__reactResources$"+Cl,vn="__reactMarker$"+Cl;function $s(e){delete e[rt],delete e[yt],delete e[Fs],delete e[Om],delete e[Nm]}function xa(e){var t=e[rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Ta]||l[rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=lh(e);e!==null;){if(l=e[rt])return l;e=lh(e)}return t}e=l,l=e.parentNode}return null}function Ea(e){if(e=e[rt]||e[Ta]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function bn(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function Ra(e){var t=e[zc];return t||(t=e[zc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[vn]=!0}var Uc=new Set,Gc={};function ea(e,t){Aa(e,t),Aa(e+"Capture",t)}function Aa(e,t){for(Gc[e]=t,e=0;e<t.length;e++)Uc.add(t[e])}var Dm=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lc={},jc={};function km(e){return va.call(jc,e)?!0:va.call(Lc,e)?!1:Dm.test(e)?jc[e]=!0:(Lc[e]=!0,!1)}function bi(e,t,l){if(km(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Si(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function sl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function _t(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Bc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _m(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(c){l=""+c,i.call(this,c)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(c){l=""+c},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Is(e){if(!e._valueTracker){var t=Bc(e)?"checked":"value";e._valueTracker=_m(e,t,""+e[t])}}function Hc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=Bc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function Ti(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zm=/[\n"\\]/g;function zt(e){return e.replace(zm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ps(e,t,l,a,n,i,c,d){e.name="",c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"?e.type=c:e.removeAttribute("type"),t!=null?c==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+_t(t)):e.value!==""+_t(t)&&(e.value=""+_t(t)):c!=="submit"&&c!=="reset"||e.removeAttribute("value"),t!=null?er(e,c,_t(t)):l!=null?er(e,c,_t(l)):a!=null&&e.removeAttribute("value"),n==null&&i!=null&&(e.defaultChecked=!!i),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.name=""+_t(d):e.removeAttribute("name")}function qc(e,t,l,a,n,i,c,d){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Is(e);return}l=l!=null?""+_t(l):"",t=t!=null?""+_t(t):l,d||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=d?e.checked:!!a,e.defaultChecked=!!a,c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.name=c),Is(e)}function er(e,t,l){t==="number"&&Ti(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Ca(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+_t(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Yc(e,t,l){if(t!=null&&(t=""+_t(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+_t(l):""}function Vc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Ge(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=_t(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Is(e)}function wa(e,t){if(t){var l=e.firstChild;
vendor: 4,140 bytes, line 49
49if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Um=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 Xc(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Um.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Kc(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&Xc(e,n,a)}else for(var i in t)t.hasOwnProperty(i)&&Xc(e,i,t[i])}function tr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Gm=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
49-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"]]),Lm=/^[\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 xi(e){return Lm.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function rl(){}var lr=null;function ar(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Oa=null;function Qc(e){var t=Ea(e);if(t&&(e=t.stateNode)){var l=e[yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ps(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+zt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[yt]||null;if(!n)throw Error(s(90));Ps(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Hc(a)}break e;case"textarea":Yc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Ca(e,!!l.multiple,t,!1)}}}var nr=!1;function Zc(e,t,l){if(nr)return e(t,l);nr=!0;try{var a=e(t);return a}finally{if(nr=!1,(Ma!==null||Oa!==null)&&(cs(),Ma&&(t=Ma,e=Oa,Oa=Ma=null,Qc(t),e)))for(t=0;t<e.length;t++)Qc(e[t])}}function Sn(e,t){var l=e.stateNode;if(l===null)return null;var a=l[yt]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(s(231,t,typeof l));return l}var ol=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ir=!1;if(ol)try{var Tn={};Object.defineProperty(Tn,"passive",{get:function(){ir=!0}}),window.addEventListener("test",Tn,Tn),window.removeEventListener("test",Tn,Tn)}catch{ir=!1}var wl=null,sr=null,Ei=null;function Jc(){if(Ei)return Ei;var e,t=sr,l=t.length,a,n="value"in wl?wl.value:wl.textContent,i=n.length;for(e=0;e<l&&t[e]===n[e];e++);var c=l-e;for(a=1;a<=c&&t[l-a]===n[i-a];a++);return Ei=n.slice(e,1<a?1-a:void 0)}function Ri(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ai(){return!0}function Wc(){return!1}function gt(e){function t(l,a,n,i,c){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=c,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(l=e[d],this[d]=l?l(i):i[d]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Ai:Wc,this.isPropagationStopped=Wc,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ai)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ai)},persist:function(){},isPersistent:Ai}),t}var ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ci=gt(ta),xn=x({},ta,{view:0,detail:0}),jm=gt(xn),rr,or,En,wi=x({},xn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ur,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==En&&(En&&e.type==="mousemove"?(rr=e.screenX-En.screenX,or=e.screenY-En.screenY):or=rr=0,En=e),rr)},movementY:function(e){return"movementY"in e?e.movementY:or}}),Fc=gt(wi),Bm=x({},wi,{dataTransfer:0}),Hm=gt(Bm),qm=x({},xn,{relatedTarget:0}),cr=gt(qm),Ym=x({},ta,{animationName:0,elapsedTime:0,pseudoElement:0}),Vm=gt(Ym),Xm=x({},ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Km=gt(Xm),Qm=x({},ta,{data:0}),$c=gt(Qm),Zm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jm={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"},Wm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fm(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wm[e])?!!t[e]:!1}function ur(){return Fm}var $m=x({},xn,{key:function(e){if(e.key){var t=Zm[e.key]||e.key;if(t!=="Unidentified")return t}
vendor: 4,948 bytes, line 49
49return e.type==="keypress"?(e=Ri(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ur,charCode:function(e){return e.type==="keypress"?Ri(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ri(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Im=gt($m),Pm=x({},wi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ic=gt(Pm),ep=x({},xn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ur}),tp=gt(ep),lp=x({},ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),ap=gt(lp),np=x({},wi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ip=gt(np),sp=x({},ta,{newState:0,oldState:0}),rp=gt(sp),op=[9,13,27,32],fr=ol&&"CompositionEvent"in window,Rn=null;ol&&"documentMode"in document&&(Rn=document.documentMode);var cp=ol&&"TextEvent"in window&&!Rn,Pc=ol&&(!fr||Rn&&8<Rn&&11>=Rn),eu=" ",tu=!1;function lu(e,t){switch(e){case"keyup":return op.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function au(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Na=!1;function up(e,t){switch(e){case"compositionend":return au(t);case"keypress":return t.which!==32?null:(tu=!0,eu);case"textInput":return e=t.data,e===eu&&tu?null:e;default:return null}}function fp(e,t){if(Na)return e==="compositionend"||!fr&&lu(e,t)?(e=Jc(),Ei=sr=wl=null,Na=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Pc&&t.locale!=="ko"?null:t.data;default:return null}}var dp={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 nu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!dp[e.type]:t==="textarea"}function iu(e,t,l,a){Ma?Oa?Oa.push(a):Oa=[a]:Ma=a,t=ys(t,"onChange"),0<t.length&&(l=new Ci("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var An=null,Cn=null;function hp(e){Yd(e,0)}function Mi(e){var t=bn(e);if(Hc(t))return e}function su(e,t){if(e==="change")return t}var ru=!1;if(ol){var dr;if(ol){var hr="oninput"in document;if(!hr){var ou=document.createElement("div");ou.setAttribute("oninput","return;"),hr=typeof ou.oninput=="function"}dr=hr}else dr=!1;ru=dr&&(!document.documentMode||9<document.documentMode)}function cu(){An&&(An.detachEvent("onpropertychange",uu),Cn=An=null)}function uu(e){if(e.propertyName==="value"&&Mi(Cn)){var t=[];iu(t,Cn,e,ar(e)),Zc(hp,t)}}function mp(e,t,l){e==="focusin"?(cu(),An=t,Cn=l,An.attachEvent("onpropertychange",uu)):e==="focusout"&&cu()}function pp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Mi(Cn)}function yp(e,t){if(e==="click")return Mi(t)}function gp(e,t){if(e==="input"||e==="change")return Mi(t)}function vp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var At=typeof Object.is=="function"?Object.is:vp;function wn(e,t){if(At(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!va.call(t,n)||!At(e[n],t[n]))return!1}return!0}function fu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function du(e,t){var l=fu(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=fu(l)}}function hu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?hu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mu(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ti(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=Ti(e.document)}return t}function mr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var bp=ol&&"documentMode"in document&&11>=document.documentMode,Da=null,pr=null,Mn=null,yr=!1;function pu(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;
vendor: 20,390 bytes, line 49
49yr||Da==null||Da!==Ti(a)||(a=Da,"selectionStart"in a&&mr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Mn&&wn(Mn,a)||(Mn=a,a=ys(pr,"onSelect"),0<a.length&&(t=new Ci("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=Da)))}function la(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var ka={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionrun:la("Transition","TransitionRun"),transitionstart:la("Transition","TransitionStart"),transitioncancel:la("Transition","TransitionCancel"),transitionend:la("Transition","TransitionEnd")},gr={},yu={};ol&&(yu=document.createElement("div").style,"AnimationEvent"in window||(delete ka.animationend.animation,delete ka.animationiteration.animation,delete ka.animationstart.animation),"TransitionEvent"in window||delete ka.transitionend.transition);function aa(e){if(gr[e])return gr[e];if(!ka[e])return e;var t=ka[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in yu)return gr[e]=t[l];return e}var gu=aa("animationend"),vu=aa("animationiteration"),bu=aa("animationstart"),Sp=aa("transitionrun"),Tp=aa("transitionstart"),xp=aa("transitioncancel"),Su=aa("transitionend"),Tu=new Map,vr="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(" ");vr.push("scrollEnd");function Zt(e,t){Tu.set(e,t),ea(t,[e])}var Oi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],_a=0,br=0;function Ni(){for(var e=_a,t=br=_a=0;t<e;){var l=Ut[t];Ut[t++]=null;var a=Ut[t];Ut[t++]=null;var n=Ut[t];Ut[t++]=null;var i=Ut[t];if(Ut[t++]=null,a!==null&&n!==null){var c=a.pending;c===null?n.next=n:(n.next=c.next,c.next=n),a.pending=n}i!==0&&xu(l,n,i)}}function Di(e,t,l,a){Ut[_a++]=e,Ut[_a++]=t,Ut[_a++]=l,Ut[_a++]=a,br|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function Sr(e,t,l,a){return Di(e,t,l,a),ki(e)}function na(e,t){return Di(e,null,null,t),ki(e)}function xu(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=e.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(n=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,n&&t!==null&&(n=31-st(l),e=i.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),i):null}function ki(e){if(50<Fn)throw Fn=0,No=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var za={};function Ep(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,l,a){return new Ep(e,t,l,a)}function Tr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function cl(e,t){var l=e.alternate;return l===null?(l=Ct(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Eu(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function _i(e,t,l,a,n,i){var c=0;if(a=e,typeof e=="function")Tr(e)&&(c=1);else if(typeof e=="string")c=My(e,l,H.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case je:return e=Ct(31,l,t,n),e.elementType=je,e.lanes=i,e;case ee:return ia(l.children,n,i,t);case Oe:c=8,n|=24;break;case Ne:return e=Ct(12,l,t,n|2),e.elementType=Ne,e.lanes=i,e;case Te:return e=Ct(13,l,t,n),e.elementType=Te,e.lanes=i,e;case De:return e=Ct(19,l,t,n),e.elementType=De,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:c=10;break e;case me:c=9;break e;case ve:c=11;break e;case le:c=14;break e;case K:c=16,a=null;break e}c=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=Ct(c,l,t,n),t.elementType=e,t.type=a,t.lanes=i,t}function ia(e,t,l,a){return e=Ct(7,e,a,t),e.lanes=l,e}function xr(e,t,l){return e=Ct(6,e,null,t),e.lanes=l,e}function Ru(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function Er(e,t,l){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Au=new WeakMap;function Gt(e,t){if(typeof e=="object"&&e!==null){var l=Au.get(e);return l!==void 0?l:(t={value:e,source:t,stack:mi(t)},Au.set(e,t),t)}return{value:e,source:t,stack:mi(t)}}var Ua=[],Ga=0,zi=null,On=0,Lt=[],jt=0,Ml=null,It=1,Pt="";function ul(e,t){Ua[Ga++]=On,Ua[Ga++]=zi,zi=e,On=t}function Cu(e,t,l){Lt[jt++]=It,Lt[jt++]=Pt,Lt[jt++]=Ml,Ml=e;var a=It;e=Pt;var n=32-st(a)-1;a&=~(1<<n),l+=1;var i=32-st(t)+n;if(30<i){var c=n-n%5;i=(a&(1<<c)-1).toString(32),a>>=c,n-=c,It=1<<32-st(t)+n|l<<n|a,Pt=i+e}else It=1<<i|l<<n|a,Pt=e}function Rr(e){e.return!==null&&(ul(e,1),Cu(e,1,0))}function Ar(e){for(;e===zi;)zi=Ua[--Ga],Ua[Ga]=null,On=Ua[--Ga],Ua[Ga]=null;for(;e===Ml;)Ml=Lt[--jt],Lt[jt]=null,Pt=Lt[--jt],Lt[jt]=null,It=Lt[--jt],Lt[jt]=null}function wu(e,t){Lt[jt++]=It,Lt[jt++]=Pt,Lt[jt++]=Ml,It=t.id,Pt=t.overflow,Ml=e}var ot=null,ke=null,he=!1,Ol=null,Bt=!1,Cr=Error(s(519));function Nl(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nn(Gt(t,e)),Cr}function Mu(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[rt]=e,t[yt]=a,l){case"dialog":ue("cancel",t),ue("close",t);break;case"iframe":case"object":case"embed":ue("load",t);break;case"video":case"audio":for(l=0;l<In.length;l++)ue(In[l],t);break;case"source":ue("error",t);break;case"img":case"image":case"link":ue("error",t),ue("load",t);break;case"details":ue("toggle",t);break;case"input":ue("invalid",t),qc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ue("invalid",t);break;case"textarea":ue("invalid",t),Vc(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||Qd(t.textContent,l)?(a.popover!=null&&(ue("beforetoggle",t),ue("toggle",t)),a.onScroll!=null&&ue("scroll",t),a.onScrollEnd!=null&&ue("scrollend",t),a.onClick!=null&&(t.onclick=rl),t=!0):t=!1,t||Nl(e,!0)}function Ou(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Bt=!1;return;case 27:case 3:Bt=!0;return;default:ot=ot.return}}function La(e){if(e!==ot)return!1;if(!he)return Ou(e),he=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Ko(e.type,e.memoizedProps)),l=!l),l&&ke&&Nl(e),Ou(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=th(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));ke=th(e)}else t===27?(t=ke,Xl(e.type)?(e=Fo,Fo=null,ke=e):ke=t):ke=ot?qt(e.stateNode.nextSibling):null;return!0}function sa(){ke=ot=null,he=!1}function wr(){var e=Ol;return e!==null&&(Tt===null?Tt=e:Tt.push.apply(Tt,e),Ol=null),e}function Nn(e){Ol===null?Ol=[e]:Ol.push(e)}var Mr=b(null),ra=null,fl=null;function Dl(e,t,l){G(Mr,t._currentValue),t._currentValue=l}function dl(e){e._currentValue=Mr.current,D(Mr)}function Or(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Nr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var i=n.dependencies;if(i!==null){var c=n.child;i=i.firstContext;e:for(;i!==null;){var d=i;i=n;for(var y=0;y<t.length;y++)if(d.context===t[y]){i.lanes|=l,d=i.alternate,d!==null&&(d.lanes|=l),Or(i.return,l,e),a||(c=null);break e}i=d.next}}else if(n.tag===18){if(c=n.return,c===null)throw Error(s(341));c.lanes|=l,i=c.alternate,i!==null&&(i.lanes|=l),Or(c,l,e),c=null}else c=n.child;if(c!==null)c.return=n;else for(c=n;c!==null;){if(c===e){c=null;break}if(n=c.sibling,n!==null){n.return=c.return,c=n;break}c=c.return}n=c}}function ja(e,t,l,a){e=null;for(var n=t,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var c=n.alternate;if(c===null)throw Error(s(387));if(c=c.memoizedProps,c!==null){var d=n.type;At(n.pendingProps.value,c.value)||(e!==null?e.push(d):e=[d])}}else if(n===Z.current){if(c=n.alternate,c===null)throw Error(s(387));c.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}n=n.return}e!==null&&Nr(t,e,l,a),t.flags|=262144}function Ui(e){for(e=e.firstContext;e!==null;){if(!At(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function oa(e){ra=e,fl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ct(e){return Nu(ra,e)}function Gi(e,t){return ra===null&&oa(e),Nu(e,t)}function Nu(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},fl===null){if(e===null)throw Error(s(308));fl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fl=fl.next=t;return l}var Rp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Ap=f.unstable_scheduleCallback,Cp=f.unstable_NormalPriority,Qe={$$typeof:ye,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dr(){return{controller:new Rp,data:new Map,refCount:0}}function Dn(e){e.refCount--,e.refCount===0&&Ap(Cp,function(){e.controller.abort()})}var kn=null,kr=0,Ba=0,Ha=null;function wp(e,t){if(kn===null){var l=kn=[];kr=0,Ba=Go(),Ha={status:"pending",value:void 0,then:function(a){l.push(a)}}}return kr++,t.then(Du,Du),t}function Du(){if(--kr===0&&kn!==null){Ha!==null&&(Ha.status="fulfilled");var e=kn;kn=null,Ba=0,Ha=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ku=O.S;O.S=function(e,t){yd=dt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&wp(e,t),ku!==null&&ku(e,t)};var ca=b(null);function _r(){var e=ca.current;return e!==null?e:Me.pooledCache}function Li(e,t){t===null?G(ca,ca.current):G(ca,t.pool)}function _u(){var e=_r();return e===null?null:{parent:Qe._currentValue,pool:e}}var qa=Error(s(460)),zr=Error(s(474)),ji=Error(s(542)),Bi={then:function(){}};function zu(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Uu(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(rl,rl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lu(e),e;default:if(typeof t.status=="string")t.then(rl,rl);else{if(e=Me,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Lu(e),e}throw fa=t,qa}}function ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(fa=l,qa):l}}var fa=null;function Gu(){if(fa===null)throw Error(s(459));var e=fa;return fa=null,e}function Lu(e){if(e===qa||e===ji)throw Error(s(483))}var Ya=null,_n=0;function Hi(e){var t=_n;return _n+=1,Ya===null&&(Ya=[]),Uu(Ya,e,t)}function zn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function qi(e,t){throw t.$$typeof===L?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function ju(e){function t(R,S){if(e){var A=R.deletions;A===null?(R.deletions=[S],R.flags|=16):A.push(S)}}function l(R,S){if(!e)return null;for(;S!==null;)t(R,S),S=S.sibling;return null}function a(R){for(var S=new Map;R!==null;)R.key!==null?S.set(R.key,R):S.set(R.index,R),R=R.sibling;return S}function n(R,S){return R=cl(R,S),R.index=0,R.sibling=null,R}function i(R,S,A){return R.index=A,e?(A=R.alternate,A!==null?(A=A.index,A<S?(R.flags|=67108866,S):A):(R.flags|=67108866,S)):(R.flags|=1048576,S)}function c(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function d(R,S,A,k){return S===null||S.tag!==6?(S=xr(A,R.mode,k),S.return=R,S):(S=n(S,A),S.return=R,S)}function y(R,S,A,k){var W=A.type;return W===ee?N(R,S,A.props.children,k,A.key):S!==null&&(S.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&ua(W)===S.type)?(S=n(S,A.props),zn(S,A),S.return=R,S):(S=_i(A.type,A.key,A.props,null,R.mode,k),zn(S,A),S.return=R,S)}function C(R,S,A,k){return S===null||S.tag!==4||S.stateNode.containerInfo!==A.containerInfo||S.stateNode.implementation!==A.implementation?(S=Er(A,R.mode,k),S.return=R,S):(S=n(S,A.children||[]),S.return=R,S)}function N(R,S,A,k,W){return S===null||S.tag!==7?(S=ia(A,R.mode,k,W),S.return=R,S):(S=n(S,A),S.return=R,S)}function _(R,S,A){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=xr(""+S,R.mode,A),S.return=R,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Q:return A=_i(S.type,S.key,S.props,null,R.mode,A),zn(A,S),A.return=R,A;case P:return S=Er(S,R.mode,A),S.return=R,S;case K:return S=ua(S),_(R,S,A)}if(Ge(S)||Be(S))return S=ia(S,R.mode,A,null),S.return=R,S;if(typeof S.then=="function")return _(R,Hi(S),A);if(S.$$typeof===ye)return _(R,Gi(R,S),A);qi(R,S)}return null}function w(R,S,A,k){var W=S!==null?S.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return W!==null?null:d(R,S,""+A,k);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case Q:return A.key===W?y(R,S,A,k):null;case P:return A.key===W?C(R,S,A,k):null;case K:return A=ua(A),w(R,S,A,k)}if(Ge(A)||Be(A))return W!==null?null:N(R,S,A,k,null);if(typeof A.then=="function")return w(R,S,Hi(A),k);if(A.$$typeof===ye)return w(R,S,Gi(R,A),k);qi(R,A)}return null}function M(R,S,A,k,W){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return R=R.get(A)||null,d(S,R,""+k,W);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Q:return R=R.get(k.key===null?A:k.key)||null,y(S,R,k,W);case P:return R=R.get(k.key===null?A:k.key)||null,C(S,R,k,W);case K:return k=ua(k),M(R,S,A,k,W)}if(Ge(k)||Be(k))return R=R.get(A)||null,N(S,R,k,W,null);if(typeof k.then=="function")return M(R,S,A,Hi(k),W);if(k.$$typeof===ye)return M(R,S,A,Gi(S,k),W);qi(S,k)}return null}function q(R,S,A,k){for(var W=null,be=null,X=S,ie=S=0,de=null;X!==null&&ie<A.length;ie++){X.index>ie?(de=X,X=null):de=X.sibling;var Se=w(R,X,A[ie],k);if(Se===null){X===null&&(X=de);break}e&&X&&Se.alternate===null&&t(R,X),S=i(Se,S,ie),be===null?W=Se:be.sibling=Se,be=Se,X=de}if(ie===A.length)return l(R,X),he&&ul(R,ie),W;if(X===null){for(;ie<A.length;ie++)X=_(R,A[ie],k),X!==null&&(S=i(X,S,ie),be===null?W=X:be.sibling=X,be=X);return he&&ul(R,ie),W}for(X=a(X);ie<A.length;ie++)de=M(X,R,ie,A[ie],k),de!==null&&(e&&de.alternate!==null&&X.delete(de.key===null?ie:de.key),S=i(de,S,ie),be===null?W=de:be.sibling=de,be=de);return e&&X.forEach(function(Wl){return t(R,Wl)}),he&&ul(R,ie),W}function I(R,S,A,k){if(A==null)throw Error(s(151));for(var W=null,be=null,X=S,ie=S=0,de=null,Se=A.next();X!==null&&!Se.done;ie++,Se=A.next()){X.index>ie?(de=X,X=null):de=X.sibling;var Wl=w(R,X,Se.value,k);if(Wl===null){X===null&&(X=de);break}e&&X&&Wl.alternate===null&&t(R,X),S=i(Wl,S,ie),be===null?W=Wl:be.sibling=Wl,be=Wl,X=de}if(Se.done)return l(R,X),he&&ul(R,ie),W;if(X===null){for(;!Se.done;ie++,Se=A.next())Se=_(R,Se.value,k),Se!==null&&(S=i(Se,S,ie),be===null?W=Se:be.sibling=Se,be=Se);return he&&ul(R,ie),W}for(X=a(X);!Se.done;ie++,Se=A.next())Se=M(X,R,ie,Se.value,k),Se!==null&&(e&&Se.alternate!==null&&X.delete(Se.key===null?ie:Se.key),S=i(Se,S,ie),be===null?W=Se:be.sibling=Se,be=Se);return e&&X.forEach(function(By){return t(R,By)}),he&&ul(R,ie),W}function we(R,S,A,k){if(typeof A=="object"&&A!==null&&A.type===ee&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case Q:e:{for(var W=A.key;S!==null;){if(S.key===W){if(W=A.type,W===ee){if(S.tag===7){l(R,S.sibling),k=n(S,A.props.children),k.return=R,R=k;break e}}else if(S.elementType===W||typeof W=="object"&&W!==null&&W.$$typeof===K&&ua(W)===S.type){l(R,S.sibling),k=n(S,A.props),zn(k,A),k.return=R,R=k;break e}l(R,S);break}else t(R,S);S=S.sibling}A.type===ee?(k=ia(A.props.children,R.mode,k,A.key),k.return=R,R=k):(k=_i(A.type,A.key,A.props,null,R.mode,k),zn(k,A),k.return=R,R=k)}return c(R);case P:e:{for(W=A.key;S!==null;){if(S.key===W)if(S.tag===4&&S.stateNode.containerInfo===A.containerInfo&&S.stateNode.implementation===A.implementation){l(R,S.sibling),k=n(S,A.children||[]),k.return=R,R=k;break e}else{l(R,S);break}else t(R,S);S=S.sibling}k=Er(A,R.mode,k),k.return=R,R=k}return c(R);case K:return A=ua(A),we(R,S,A,k)}if(Ge(A))return q(R,S,A,k);if(Be(A)){if(W=Be(A),typeof W!="function")throw Error(s(150));return A=W.call(A),I(R,S,A,k)}if(typeof A.then=="function")return we(R,S,Hi(A),k);if(A.$$typeof===ye)return we(R,S,Gi(R,A),k);qi(R,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,S!==null&&S.tag===6?(l(R,S.sibling),k=n(S,A),k.return=R,R=k):(l(R,S),k=xr(A,R.mode,k),k.return=R,R=k),c(R)):l(R,S)}return function(R,S,A,k){try{_n=0;var W=we(R,S,A,k);return Ya=null,W}catch(X){if(X===qa||X===ji)throw X;var be=Ct(29,X,null,R.mode);return be.lanes=k,be.return=R,be}finally{}}}var da=ju(!0),Bu=ju(!1),kl=!1;function Ur(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Gr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function _l(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function zl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(xe&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=ki(e),xu(e,null,l),t}return Di(e,a,t,l),ki(e)}function Un(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nc(e,l)}}function Lr(e,t){var l=e.updateQueue,a=e.alternate;
vendor: 4,325 bytes, line 49
49if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var c={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=c:i=i.next=c,l=l.next}while(l!==null);i===null?n=i=t:i=i.next=t}else n=i=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var jr=!1;function Gn(){if(jr){var e=Ha;if(e!==null)throw e}}function Ln(e,t,l,a){jr=!1;var n=e.updateQueue;kl=!1;var i=n.firstBaseUpdate,c=n.lastBaseUpdate,d=n.shared.pending;if(d!==null){n.shared.pending=null;var y=d,C=y.next;y.next=null,c===null?i=C:c.next=C,c=y;var N=e.alternate;N!==null&&(N=N.updateQueue,d=N.lastBaseUpdate,d!==c&&(d===null?N.firstBaseUpdate=C:d.next=C,N.lastBaseUpdate=y))}if(i!==null){var _=n.baseState;c=0,N=C=y=null,d=i;do{var w=d.lane&-536870913,M=w!==d.lane;if(M?(fe&w)===w:(a&w)===w){w!==0&&w===Ba&&(jr=!0),N!==null&&(N=N.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{var q=e,I=d;w=t;var we=l;switch(I.tag){case 1:if(q=I.payload,typeof q=="function"){_=q.call(we,_,w);break e}_=q;break e;case 3:q.flags=q.flags&-65537|128;case 0:if(q=I.payload,w=typeof q=="function"?q.call(we,_,w):q,w==null)break e;_=x({},_,w);break e;case 2:kl=!0}}w=d.callback,w!==null&&(e.flags|=64,M&&(e.flags|=8192),M=n.callbacks,M===null?n.callbacks=[w]:M.push(w))}else M={lane:w,tag:d.tag,payload:d.payload,callback:d.callback,next:null},N===null?(C=N=M,y=_):N=N.next=M,c|=w;if(d=d.next,d===null){if(d=n.shared.pending,d===null)break;M=d,d=M.next,M.next=null,n.lastBaseUpdate=M,n.shared.pending=null}}while(!0);N===null&&(y=_),n.baseState=y,n.firstBaseUpdate=C,n.lastBaseUpdate=N,i===null&&(n.shared.lanes=0),Bl|=c,e.lanes=c,e.memoizedState=_}}function Hu(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function qu(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Hu(l[e],t)}var Va=b(null),Yi=b(0);function Yu(e,t){e=Tl,G(Yi,e),G(Va,t),Tl=e|t.baseLanes}function Br(){G(Yi,Tl),G(Va,Va.current)}function Hr(){Tl=Yi.current,D(Va),D(Yi)}var wt=b(null),Ht=null;function Ul(e){var t=e.alternate;G(Xe,Xe.current&1),G(wt,e),Ht===null&&(t===null||Va.current!==null||t.memoizedState!==null)&&(Ht=e)}function qr(e){G(Xe,Xe.current),G(wt,e),Ht===null&&(Ht=e)}function Vu(e){e.tag===22?(G(Xe,Xe.current),G(wt,e),Ht===null&&(Ht=e)):Gl()}function Gl(){G(Xe,Xe.current),G(wt,wt.current)}function Mt(e){D(wt),Ht===e&&(Ht=null),D(Xe)}var Xe=b(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jo(l)||Wo(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var hl=0,ne=null,Ae=null,Ze=null,Xi=!1,Xa=!1,ha=!1,Ki=0,jn=0,Ka=null,Op=0;function He(){throw Error(s(321))}function Yr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!At(e[l],t[l]))return!1;return!0}function Vr(e,t,l,a,n,i){return hl=i,ne=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?wf:no,ha=!1,i=l(a,n),ha=!1,Xa&&(i=Ku(t,l,a,n)),Xu(e),i}function Xu(e){O.H=qn;var t=Ae!==null&&Ae.next!==null;if(hl=0,Ze=Ae=ne=null,Xi=!1,jn=0,Ka=null,t)throw Error(s(300));e===null||Je||(e=e.dependencies,e!==null&&Ui(e)&&(Je=!0))}function Ku(e,t,l,a){ne=e;var n=0;do{if(Xa&&(Ka=null),jn=0,Xa=!1,25<=n)throw Error(s(301));if(n+=1,Ze=Ae=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}O.H=Mf,i=t(l,a)}while(Xa);return i}function Np(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?Bn(t):t,e=e.useState()[0],(Ae!==null?Ae.memoizedState:null)!==e&&(ne.flags|=1024),t}function Xr(){var e=Ki!==0;return Ki=0,e}function Kr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Qr(e){if(Xi){for(e=e.memoizedState;e!==null;){var t=e.queue;
vendor: 13,698 bytes, line 49
49t!==null&&(t.pending=null),e=e.next}Xi=!1}hl=0,Ze=Ae=ne=null,Xa=!1,jn=Ki=0,Ka=null}function mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ne.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ke(){if(Ae===null){var e=ne.alternate;e=e!==null?e.memoizedState:null}else e=Ae.next;var t=Ze===null?ne.memoizedState:Ze.next;if(t!==null)Ze=t,Ae=e;else{if(e===null)throw ne.alternate===null?Error(s(467)):Error(s(310));Ae=e,e={memoizedState:Ae.memoizedState,baseState:Ae.baseState,baseQueue:Ae.baseQueue,queue:Ae.queue,next:null},Ze===null?ne.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bn(e){var t=jn;return jn+=1,Ka===null&&(Ka=[]),e=Uu(Ka,e,t),t=ne,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?wf:no),e}function Zi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bn(e);if(e.$$typeof===ye)return ct(e)}throw Error(s(438,String(e)))}function Zr(e){var t=null,l=ne.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ne.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Qi(),ne.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Et;return t.index++,l}function ml(e,t){return typeof t=="function"?t(e):t}function Ji(e){var t=Ke();return Jr(t,Ae,e)}function Jr(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var n=e.baseQueue,i=a.pending;if(i!==null){if(n!==null){var c=n.next;n.next=i.next,i.next=c}t.baseQueue=n=i,a.pending=null}if(i=e.baseState,n===null)e.memoizedState=i;else{t=n.next;var d=c=null,y=null,C=t,N=!1;do{var _=C.lane&-536870913;if(_!==C.lane?(fe&_)===_:(hl&_)===_){var w=C.revertLane;if(w===0)y!==null&&(y=y.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),_===Ba&&(N=!0);else if((hl&w)===w){C=C.next,w===Ba&&(N=!0);continue}else _={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},y===null?(d=y=_,c=i):y=y.next=_,ne.lanes|=w,Bl|=w;_=C.action,ha&&l(i,_),i=C.hasEagerState?C.eagerState:l(i,_)}else w={lane:_,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},y===null?(d=y=w,c=i):y=y.next=w,ne.lanes|=_,Bl|=_;C=C.next}while(C!==null&&C!==t);if(y===null?c=i:y.next=d,!At(i,e.memoizedState)&&(Je=!0,N&&(l=Ha,l!==null)))throw l;e.memoizedState=i,e.baseState=c,e.baseQueue=y,a.lastRenderedState=i}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Wr(e){var t=Ke(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,i=t.memoizedState;if(n!==null){l.pending=null;var c=n=n.next;do i=e(i,c.action),c=c.next;while(c!==n);At(i,t.memoizedState)||(Je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),l.lastRenderedState=i}return[i,a]}function Qu(e,t,l){var a=ne,n=Ke(),i=he;if(i){if(l===void 0)throw Error(s(407));l=l()}else l=t();var c=!At((Ae||n).memoizedState,l);if(c&&(n.memoizedState=l,Je=!0),n=n.queue,Ir(Wu.bind(null,a,n,e),[e]),n.getSnapshot!==t||c||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Qa(9,{destroy:void 0},Ju.bind(null,a,n,l,t),null),Me===null)throw Error(s(349));i||(hl&127)!==0||Zu(a,t,l)}return l}function Zu(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ne.updateQueue,t===null?(t=Qi(),ne.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Ju(e,t,l,a){t.value=l,t.getSnapshot=a,Fu(t)&&$u(e)}function Wu(e,t,l){return l(function(){Fu(t)&&$u(e)})}function Fu(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!At(e,l)}catch{return!0}}function $u(e){var t=na(e,2);t!==null&&xt(t,e,2)}function Fr(e){var t=mt();if(typeof e=="function"){var l=e;if(e=l(),ha){kt(!0);try{l()}finally{kt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:e},t}function Iu(e,t,l,a){return e.baseState=l,Jr(e,Ae,typeof a=="function"?a:ml)}function Dp(e,t,l,a,n){if($i(e))throw Error(s(485));if(e=t.action,e!==null){var i={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(c){i.listeners.push(c)}};O.T!==null?l(!0):i.isTransition=!1,a(i),l=t.pending,l===null?(i.next=t.pending=i,Pu(t,i)):(i.next=l.next,t.pending=l.next=i)}}function Pu(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var i=O.T,c={};O.T=c;try{var d=l(n,a),y=O.S;y!==null&&y(c,d),ef(e,t,d)}catch(C){$r(e,t,C)}finally{i!==null&&c.types!==null&&(i.types=c.types),O.T=i}}else try{i=l(n,a),ef(e,t,i)}catch(C){$r(e,t,C)}}function ef(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){tf(e,t,a)},function(a){return $r(e,t,a)}):tf(e,t,l)}function tf(e,t,l){t.status="fulfilled",t.value=l,lf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Pu(e,l)))}function $r(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,lf(t),t=t.next;while(t!==a)}e.action=null}function lf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function af(e,t){return t}function nf(e,t){if(he){var l=Me.formState;if(l!==null){e:{var a=ne;if(he){if(ke){t:{for(var n=ke,i=Bt;n.nodeType!==8;){if(!i){n=null;break t}if(n=qt(n.nextSibling),n===null){n=null;break t}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){ke=qt(n.nextSibling),a=n.data==="F!";break e}}Nl(a)}a=!1}a&&(t=l[0])}}return l=mt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:af,lastRenderedState:t},l.queue=a,l=Rf.bind(null,ne,a),a.dispatch=l,a=Fr(!1),i=ao.bind(null,ne,!1,a.queue),a=mt(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Dp.bind(null,ne,n,i,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function sf(e){var t=Ke();return rf(t,Ae,e)}function rf(e,t,l){if(t=Jr(e,t,af)[0],e=Ji(ml)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Bn(t)}catch(c){throw c===qa?ji:c}else a=t;t=Ke();var n=t.queue,i=n.dispatch;return l!==t.memoizedState&&(ne.flags|=2048,Qa(9,{destroy:void 0},kp.bind(null,n,l),null)),[a,i,e]}function kp(e,t){e.action=t}function of(e){var t=Ke(),l=Ae;if(l!==null)return rf(t,l,e);Ke(),t=t.memoizedState,l=Ke();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Qa(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ne.updateQueue,t===null&&(t=Qi(),ne.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function cf(){return Ke().memoizedState}function Wi(e,t,l,a){var n=mt();ne.flags|=e,n.memoizedState=Qa(1|t,{destroy:void 0},l,a===void 0?null:a)}function Fi(e,t,l,a){var n=Ke();a=a===void 0?null:a;var i=n.memoizedState.inst;Ae!==null&&a!==null&&Yr(a,Ae.memoizedState.deps)?n.memoizedState=Qa(t,i,l,a):(ne.flags|=e,n.memoizedState=Qa(1|t,i,l,a))}function uf(e,t){Wi(8390656,8,e,t)}function Ir(e,t){Fi(2048,8,e,t)}function _p(e){ne.flags|=4;var t=ne.updateQueue;if(t===null)t=Qi(),ne.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function ff(e){var t=Ke().memoizedState;return _p({ref:t,nextImpl:e}),function(){if((xe&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function df(e,t){return Fi(4,2,e,t)}function hf(e,t){return Fi(4,4,e,t)}function mf(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function pf(e,t,l){l=l!=null?l.concat([e]):null,Fi(4,4,mf.bind(null,t,e),l)}function Pr(){}function yf(e,t){var l=Ke();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Yr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function gf(e,t){var l=Ke();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Yr(t,a[1]))return a[0];if(a=e(),ha){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[a,t],a}function eo(e,t,l){return l===void 0||(hl&1073741824)!==0&&(fe&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=vd(),ne.lanes|=e,Bl|=e,l)}function vf(e,t,l,a){return At(l,t)?l:Va.current!==null?(e=eo(e,l,a),At(e,t)||(Je=!0),e):(hl&42)===0||(hl&1073741824)!==0&&(fe&261930)===0?(Je=!0,e.memoizedState=l):(e=vd(),ne.lanes|=e,Bl|=e,t)}function bf(e,t,l,a,n){var i=B.p;B.p=i!==0&&8>i?i:8;var c=O.T,d={};O.T=d,ao(e,!1,t,l);try{var y=n(),C=O.S;if(C!==null&&C(d,y),y!==null&&typeof y=="object"&&typeof y.then=="function"){var N=Mp(y,a);Hn(e,t,N,Dt(e))}else Hn(e,t,a,Dt(e))}catch(_){Hn(e,t,{then:function(){},status:"rejected",reason:_},Dt())}finally{B.p=i,c!==null&&d.types!==null&&(c.types=d.types),O.T=c}}function zp(){}function to(e,t,l,a){if(e.tag!==5)throw Error(s(476));var n=Sf(e).queue;bf(e,n,t,U,l===null?zp:function(){return Tf(e),l(a)})}function Sf(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:U},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ml,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Tf(e){var t=Sf(e);t.next===null&&(t=e.alternate.memoizedState),Hn(e,t.next.queue,{},Dt())}function lo(){return ct(ai)}function xf(){return Ke().memoizedState}function Ef(){return Ke().memoizedState}function Up(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=Dt();e=_l(l);var a=zl(t,e,l);a!==null&&(xt(a,t,l),Un(a,t,l)),t={cache:Dr()},e.payload=t;return}t=t.return}}function Gp(e,t,l){var a=Dt();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$i(e)?Af(t,l):(l=Sr(e,t,l,a),l!==null&&(xt(l,e,a),Cf(l,t,a)))}function Rf(e,t,l){var a=Dt();Hn(e,t,l,a)}function Hn(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if($i(e))Af(t,n);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var c=t.lastRenderedState,d=i(c,l);if(n.hasEagerState=!0,n.eagerState=d,At(d,c))return Di(e,t,n,0),Me===null&&Ni(),!1}catch{}finally{}if(l=Sr(e,t,n,a),l!==null)return xt(l,e,a),Cf(l,t,a),!0}return!1}function ao(e,t,l,a){if(a={lane:2,revertLane:Go(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},$i(e)){if(t)throw Error(s(479))}else t=Sr(e,l,a,2),t!==null&&xt(t,e,2)}function $i(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function Af(e,t){Xa=Xi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Cf(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,Nc(e,l)}}var qn={readContext:ct,use:Zi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};qn.useEffectEvent=He;var wf={readContext:ct,use:Zi,useCallback:function(e,t){return mt().memoizedState=[e,t===void 0?null:t],e},useContext:ct,useEffect:uf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Wi(4194308,4,mf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Wi(4194308,4,e,t)},useInsertionEffect:function(e,t){Wi(4,2,e,t)},useMemo:function(e,t){var l=mt();t=t===void 0?null:t;var a=e();if(ha){kt(!0);try{e()}finally{kt(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=mt();if(l!==void 0){var n=l(t);if(ha){kt(!0);try{l(t)}finally{kt(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Gp.bind(null,ne,e),[a.memoizedState,e]},useRef:function(e){var t=mt();return e={current:e},t.memoizedState=e},useState:function(e){e=Fr(e);var t=e.queue,l=Rf.bind(null,ne,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Pr,useDeferredValue:function(e,t){var l=mt();return eo(l,e,t)},useTransition:function(){var e=Fr(!1);return e=bf.bind(null,ne,e.queue,!0,!1),mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ne,n=mt();if(he){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Me===null)throw Error(s(349));(fe&127)!==0||Zu(a,t,l)}n.memoizedState=l;var i={value:l,getSnapshot:t};return n.queue=i,uf(Wu.bind(null,a,i,e),[e]),a.flags|=2048,Qa(9,{destroy:void 0},Ju.bind(null,a,i,l,t),null),l},useId:function(){var e=mt(),t=Me.identifierPrefix;if(he){var l=Pt,a=It;l=(a&~(1<<32-st(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ki++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Op++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lo,useFormState:nf,useActionState:nf,useOptimistic:function(e){var t=mt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=ao.bind(null,ne,!0,l),l.dispatch=t,[e,t]},useMemoCache:Zr,useCacheRefresh:function(){return mt().memoizedState=Up.bind(null,ne)},useEffectEvent:function(e){var t=mt(),l={impl:e};return t.memoizedState=l,function(){if((xe&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},no={readContext:ct,use:Zi,useCallback:yf,useContext:ct,useEffect:Ir,useImperativeHandle:pf,useInsertionEffect:df,useLayoutEffect:hf,useMemo:gf,useReducer:Ji,useRef
vendor: 14,724 bytes, line 49
49:cf,useState:function(){return Ji(ml)},useDebugValue:Pr,useDeferredValue:function(e,t){var l=Ke();return vf(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Ji(ml)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Bn(e),t]},useSyncExternalStore:Qu,useId:xf,useHostTransitionStatus:lo,useFormState:sf,useActionState:sf,useOptimistic:function(e,t){var l=Ke();return Iu(l,Ae,e,t)},useMemoCache:Zr,useCacheRefresh:Ef};no.useEffectEvent=ff;var Mf={readContext:ct,use:Zi,useCallback:yf,useContext:ct,useEffect:Ir,useImperativeHandle:pf,useInsertionEffect:df,useLayoutEffect:hf,useMemo:gf,useReducer:Wr,useRef:cf,useState:function(){return Wr(ml)},useDebugValue:Pr,useDeferredValue:function(e,t){var l=Ke();return Ae===null?eo(l,e,t):vf(l,Ae.memoizedState,e,t)},useTransition:function(){var e=Wr(ml)[0],t=Ke().memoizedState;return[typeof e=="boolean"?e:Bn(e),t]},useSyncExternalStore:Qu,useId:xf,useHostTransitionStatus:lo,useFormState:of,useActionState:of,useOptimistic:function(e,t){var l=Ke();return Ae!==null?Iu(l,Ae,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Zr,useCacheRefresh:Ef};Mf.useEffectEvent=ff;function io(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var so={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=_l(a);n.payload=t,l!=null&&(n.callback=l),t=zl(e,n,a),t!==null&&(xt(t,e,a),Un(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=Dt(),n=_l(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=zl(e,n,a),t!==null&&(xt(t,e,a),Un(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=Dt(),a=_l(l);a.tag=2,t!=null&&(a.callback=t),t=zl(e,a,l),t!==null&&(xt(t,e,l),Un(t,e,l))}};function Of(e,t,l,a,n,i,c){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,i,c):t.prototype&&t.prototype.isPureReactComponent?!wn(l,a)||!wn(n,i):!0}function Nf(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&so.enqueueReplaceState(t,t.state,null)}function ma(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=x({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function Df(e){Oi(e)}function kf(e){console.error(e)}function _f(e){Oi(e)}function Ii(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function zf(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function ro(e,t,l){return l=_l(l),l.tag=3,l.payload={element:null},l.callback=function(){Ii(e,t)},l}function Uf(e){return e=_l(e),e.tag=3,e}function Gf(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;e.payload=function(){return n(i)},e.callback=function(){zf(t,l,a)}}var c=l.stateNode;c!==null&&typeof c.componentDidCatch=="function"&&(e.callback=function(){zf(t,l,a),typeof n!="function"&&(Hl===null?Hl=new Set([this]):Hl.add(this));var d=a.stack;this.componentDidCatch(a.value,{componentStack:d!==null?d:""})})}function Lp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&ja(t,l,n,!0),l=wt.current,l!==null){switch(l.tag){case 31:case 13:return Ht===null?us():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Bi?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),_o(e,a,n)),!1;case 22:return l.flags|=65536,a===Bi?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),_o(e,a,n)),!1}throw Error(s(435,l.tag))}return _o(e,a,n),us(),!1}if(he)return t=wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Cr&&(e=Error(s(422),{cause:a}),Nn(Gt(e,l)))):(a!==Cr&&(t=Error(s(423),{cause:a}),Nn(Gt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=Gt(a,l),n=ro(e.stateNode,a,n),Lr(e,n),qe!==4&&(qe=2)),!1;var i=Error(s(520),{cause:a});if(i=Gt(i,l),Wn===null?Wn=[i]:Wn.push(i),qe!==4&&(qe=2),t===null)return!0;a=Gt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=ro(l.stateNode,a,e),Lr(l,e),!1;case 1:if(t=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Hl===null||!Hl.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=Uf(n),Gf(n,e,l,a),Lr(l,n),!1}l=l.return}while(l!==null);return!1}var oo=Error(s(461)),Je=!1;function ut(e,t,l,a){t.child=e===null?Bu(t,null,l,a):da(t,e.child,l,a)}function Lf(e,t,l,a,n){l=l.render;var i=t.ref;if("ref"in a){var c={};for(var d in a)d!=="ref"&&(c[d]=a[d])}else c=a;return oa(t),a=Vr(e,t,l,c,i,n),d=Xr(),e!==null&&!Je?(Kr(e,t,n),pl(e,t,n)):(he&&d&&Rr(t),t.flags|=1,ut(e,t,a,n),t.child)}function jf(e,t,l,a,n){if(e===null){var i=l.type;return typeof i=="function"&&!Tr(i)&&i.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=i,Bf(e,t,i,a,n)):(e=_i(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!go(e,n)){var c=i.memoizedProps;if(l=l.compare,l=l!==null?l:wn,l(c,a)&&e.ref===t.ref)return pl(e,t,n)}return t.flags|=1,e=cl(i,a),e.ref=t.ref,e.return=t,t.child=e}function Bf(e,t,l,a,n){if(e!==null){var i=e.memoizedProps;if(wn(i,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=i,go(e,n))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,pl(e,t,n)}return co(e,t,l,a,n)}function Hf(e,t,l,a){var n=a.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,t.child=null;return qf(e,t,i,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Li(t,i!==null?i.cachePool:null),i!==null?Yu(t,i):Br(),Vu(t);else return a=t.lanes=536870912,qf(e,t,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(Li(t,i.cachePool),Yu(t,i),Gl(),t.memoizedState=null):(e!==null&&Li(t,null),Br(),Gl());return ut(e,t,n,l),t.child}function Yn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function qf(e,t,l,a,n){var i=_r();return i=i===null?null:{parent:Qe._currentValue,pool:i},t.memoizedState={baseLanes:l,cachePool:i},e!==null&&Li(t,null),Br(),Vu(t),e!==null&&ja(e,t,a,!0),t.childLanes=n,null}function Pi(e,t){return t=ts({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Yf(e,t,l){return da(t,e.child,null,l),e=Pi(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function jp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(he){if(a.mode==="hidden")return e=Pi(t,a),t.lanes=536870912,Yn(null,e);if(qr(t),(e=ke)?(e=eh(e,Bt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},l=Ru(e),l.return=t,t.child=l,ot=t,ke=null)):e=null,e===null)throw Nl(t);return t.lanes=536870912,null}return Pi(t,a)}var i=e.memoizedState;if(i!==null){var c=i.dehydrated;if(qr(t),n)if(t.flags&256)t.flags&=-257,t=Yf(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Je||ja(e,t,l,!1),n=(l&e.childLanes)!==0,Je||n){if(a=Me,a!==null&&(c=Dc(a,l),c!==0&&c!==i.retryLane))throw i.retryLane=c,na(e,c),xt(a,e,c),oo;us(),t=Yf(e,t,l)}else e=i.treeContext,ke=qt(c.nextSibling),ot=t,he=!0,Ol=null,Bt=!1,e!==null&&wu(t,e),t=Pi(t,a),t.flags|=4096;return t}return e=cl(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function es(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function co(e,t,l,a,n){return oa(t),l=Vr(e,t,l,a,void 0,n),a=Xr(),e!==null&&!Je?(Kr(e,t,n),pl(e,t,n)):(he&&a&&Rr(t),t.flags|=1,ut(e,t,l,n),t.child)}function Vf(e,t,l,a,n,i){return oa(t),t.updateQueue=null,l=Ku(t,a,l,n),Xu(e),a=Xr(),e!==null&&!Je?(Kr(e,t,i),pl(e,t,i)):(he&&a&&Rr(t),t.flags|=1,ut(e,t,l,i),t.child)}function Xf(e,t,l,a,n){if(oa(t),t.stateNode===null){var i=za,c=l.contextType;typeof c=="object"&&c!==null&&(i=ct(c)),i=new l(a,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=so,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=a,i.state=t.memoizedState,i.refs={},Ur(t),c=l.contextType,i.context=typeof c=="object"&&c!==null?ct(c):za,i.state=t.memoizedState,c=l.getDerivedStateFromProps,typeof c=="function"&&(io(t,l,c,a),i.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(c=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),c!==i.state&&so.enqueueReplaceState(i,i.state,null),Ln(t,a,i,n),Gn(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){i=t.stateNode;var d=t.memoizedProps,y=ma(l,d);i.props=y;var C=i.context,N=l.contextType;c=za,typeof N=="object"&&N!==null&&(c=ct(N));var _=l.getDerivedStateFromProps;N=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function",d=t.pendingProps!==d,N||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(d||C!==c)&&Nf(t,i,a,c),kl=!1;var w=t.memoizedState;i.state=w,Ln(t,a,i,n),Gn(),C=t.memoizedState,d||w!==C||kl?(typeof _=="function"&&(io(t,l,_,a),C=t.memoizedState),(y=kl||Of(t,l,y,a,w,C,c))?(N||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=C),i.props=a,i.state=C,i.context=c,a=y):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Gr(e,t),c=t.memoizedProps,N=ma(l,c),i.props=N,_=t.pendingProps,w=i.context,C=l.contextType,y=za,typeof C=="object"&&C!==null&&(y=ct(C)),d=l.getDerivedStateFromProps,(C=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(c!==_||w!==y)&&Nf(t,i,a,y),kl=!1,w=t.memoizedState,i.state=w,Ln(t,a,i,n),Gn();var M=t.memoizedState;c!==_||w!==M||kl||e!==null&&e.dependencies!==null&&Ui(e.dependencies)?(typeof d=="function"&&(io(t,l,d,a),M=t.memoizedState),(N=kl||Of(t,l,N,a,w,M,y)||e!==null&&e.dependencies!==null&&Ui(e.dependencies))?(C||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,M,y),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,M,y)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=M),i.props=a,i.state=M,i.context=y,a=N):(typeof i.componentDidUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||c===e.memoizedProps&&w===e.memoizedState||(t.flags|=1024),a=!1)}return i=a,es(e,t),a=(t.flags&128)!==0,i||a?(i=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&a?(t.child=da(t,e.child,null,n),t.child=da(t,null,l,n)):ut(e,t,l,n),t.memoizedState=i.state,e=t.child):e=pl(e,t,n),e}function Kf(e,t,l,a){return sa(),t.flags|=256,ut(e,t,l,a),t.child}var uo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fo(e){return{baseLanes:e,cachePool:_u()}}function ho(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=Nt),e}function Qf(e,t,l){var a=t.pendingProps,n=!1,i=(t.flags&128)!==0,c;if((c=i)||(c=e!==null&&e.memoizedState===null?!1:(Xe.current&2)!==0),c&&(n=!0,t.flags&=-129),c=(t.flags&32)!==0,t.flags&=-33,e===null){if(he){if(n?Ul(t):Gl(),(e=ke)?(e=eh(e,Bt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ml!==null?{id:It,overflow:Pt}:null,retryLane:536870912,hydrationErrors:null},l=Ru(e),l.return=t,t.child=l,ot=t,ke=null)):e=null,e===null)throw Nl(t);return Wo(e)?t.lanes=32:t.lanes=536870912,null}var d=a.children;return a=a.fallback,n?(Gl(),n=t.mode,d=ts({mode:"hidden",children:d},n),a=ia(a,n,l,null),d.return=t,a.return=t,d.sibling=a,t.child=d,a=t.child,a.memoizedState=fo(l),a.childLanes=ho(e,c,l),t.memoizedState=uo,Yn(null,a)):(Ul(t),mo(t,d))}var y=e.memoizedState;if(y!==null&&(d=y.dehydrated,d!==null)){if(i)t.flags&256?(Ul(t),t.flags&=-257,t=po(e,t,l)):t.memoizedState!==null?(Gl(),t.child=e.child,t.flags|=128,t=null):(Gl(),d=a.fallback,n=t.mode,a=ts({mode:"visible",children:a.children},n),d=ia(d,n,l,null),d.flags|=2,a.return=t,d.return=t,a.sibling=d,t.child=a,da(t,e.child,null,l),a=t.child,a.memoizedState=fo(l),a.childLanes=ho(e,c,l),t.memoizedState=uo,t=Yn(null,a));else if(Ul(t),Wo(d)){if(c=d.nextSibling&&d.nextSibling.dataset,c)var C=c.dgst;c=C,a=Error(s(419)),a.stack="",a.digest=c,Nn({value:a,source:null,stack:null}),t=po(e,t,l)}else if(Je||ja(e,t,l,!1),c=(l&e.childLanes)!==0,Je||c){if(c=Me,c!==null&&(a=Dc(c,l),a!==0&&a!==y.retryLane))throw y.retryLane=a,na(e,a),xt(c,e,a),oo;Jo(d)||us(),t=po(e,t,l)}else Jo(d)?(t.flags|=192,t.child=e.child,t=null):(e=y.treeContext,ke=qt(d.nextSibling),ot=t,he=!0,Ol=null,Bt=!1,e!==null&&wu(t,e),t=mo(t,a.children),t.flags|=4096);return t}return n?(Gl(),d=a.fallback,n=t.mode,y=e.child,C=y.sibling,a=cl(y,{mode:"hidden",children:a.children}),a.subtreeFlags=y.subtreeFlags&65011712,C!==null?d=cl(C,d):(d=ia(d,n,l,null),d.flags|=2),d.return=t,a.return=t,a.sibling=d,t.child=a,Yn(null,a),a=t.child,d=e.child.memoizedState,d===null?d=fo(l):(n=d.cachePool,n!==null?(y=Qe._currentValue,n=n.parent!==y?{parent:y,pool:y}
vendor: 7,949 bytes, line 49
49:n):n=_u(),d={baseLanes:d.baseLanes|l,cachePool:n}),a.memoizedState=d,a.childLanes=ho(e,c,l),t.memoizedState=uo,Yn(e.child,a)):(Ul(t),l=e.child,e=l.sibling,l=cl(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(c=t.deletions,c===null?(t.deletions=[e],t.flags|=16):c.push(e)),t.child=l,t.memoizedState=null,l)}function mo(e,t){return t=ts({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ts(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function po(e,t,l){return da(t,e.child,null,l),e=mo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Zf(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Or(e.return,t,l)}function yo(e,t,l,a,n,i){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(c.isBackwards=t,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=l,c.tailMode=n,c.treeForkCount=i)}function Jf(e,t,l){var a=t.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var c=Xe.current,d=(c&2)!==0;if(d?(c=c&1|2,t.flags|=128):c&=1,G(Xe,c),ut(e,t,a,l),a=he?On:0,!d&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Zf(e,l,t);else if(e.tag===19)Zf(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Vi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),yo(t,!1,n,l,i,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Vi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}yo(t,!0,l,null,i,a);break;case"together":yo(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function pl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Bl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(ja(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=cl(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=cl(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function go(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ui(e)))}function Bp(e,t,l){switch(t.tag){case 3:Ye(t,t.stateNode.containerInfo),Dl(t,Qe,e.memoizedState.cache),sa();break;case 27:case 5:nt(t);break;case 4:Ye(t,t.stateNode.containerInfo);break;case 10:Dl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,qr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Ul(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Qf(e,t,l):(Ul(t),e=pl(e,t,l),e!==null?e.sibling:null);Ul(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(ja(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return Jf(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),G(Xe,Xe.current),a)break;return null;case 22:return t.lanes=0,Hf(e,t,l,t.pendingProps);case 24:Dl(t,Qe,e.memoizedState.cache)}return pl(e,t,l)}function Wf(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!go(e,l)&&(t.flags&128)===0)return Je=!1,Bp(e,t,l);Je=(e.flags&131072)!==0}else Je=!1,he&&(t.flags&1048576)!==0&&Cu(t,On,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ua(t.elementType),t.type=e,typeof e=="function")Tr(e)?(a=ma(e,a),t.tag=1,t=Xf(null,t,e,a,l)):(t.tag=0,t=co(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===ve){t.tag=11,t=Lf(null,t,e,a,l);break e}else if(n===le){t.tag=14,t=jf(null,t,e,a,l);break e}}throw t=at(e)||e,Error(s(306,t,""))}}return t;case 0:return co(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=ma(a,t.pendingProps),Xf(e,t,a,n,l);case 3:e:{if(Ye(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var i=t.memoizedState;n=i.element,Gr(e,t),Ln(t,a,null,l);var c=t.memoizedState;if(a=c.cache,Dl(t,Qe,a),a!==i.cache&&Nr(t,[Qe],l,!0),Gn(),a=c.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:c.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=Kf(e,t,a,l);break e}else if(a!==n){n=Gt(Error(s(424)),t),Nn(n),t=Kf(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ke=qt(e.firstChild),ot=t,he=!0,Ol=null,Bt=!0,l=Bu(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(sa(),a===n){t=pl(e,t,l);break e}ut(e,t,a,l)}t=t.child}return t;case 26:return es(e,t),e===null?(l=sh(t.type,null,t.pendingProps,null))?t.memoizedState=l:he||(l=t.type,e=t.pendingProps,a=gs(ae.current).createElement(l),a[rt]=t,a[yt]=e,ft(a,l,e),et(a),t.stateNode=a):t.memoizedState=sh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return nt(t),e===null&&he&&(a=t.stateNode=ah(t.type,t.pendingProps,ae.current),ot=t,Bt=!0,n=ke,Xl(t.type)?(Fo=n,ke=qt(a.firstChild)):ke=n),ut(e,t,t.pendingProps.children,l),es(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&he&&((n=a=ke)&&(a=py(a,t.type,t.pendingProps,Bt),a!==null?(t.stateNode=a,ot=t,ke=qt(a.firstChild),Bt=!1,n=!0):n=!1),n||Nl(t)),nt(t),n=t.type,i=t.pendingProps,c=e!==null?e.memoizedProps:null,a=i.children,Ko(n,i)?a=null:c!==null&&Ko(n,c)&&(t.flags|=32),t.memoizedState!==null&&(n=Vr(e,t,Np,null,null,l),ai._currentValue=n),es(e,t),ut(e,t,a,l),t.child;case 6:return e===null&&he&&((e=l=ke)&&(l=yy(l,t.pendingProps,Bt),l!==null?(t.stateNode=l,ot=t,ke=null,e=!0):e=!1),e||Nl(t)),null;case 13:return Qf(e,t,l);case 4:return Ye(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=da(t,null,a,l):ut(e,t,a,l),t.child;case 11:return Lf(e,t,t.type,t.pendingProps,l);case 7:return ut(e,t,t.pendingProps,l),t.child;case 8:return ut(e,t,t.pendingProps.children,l),t.child;case 12:return ut(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Dl(t,t.type,a.value),ut(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,oa(t),n=ct(n),a=a(n),t.flags|=1,ut(e,t,a,l),t.child;case 14:return jf(e,t,t.type,t.pendingProps,l);case 15:return Bf(e,t,t.type,t.pendingProps,l);case 19:return Jf(e,t,l);case 31:return jp(e,t,l);case 22:return Hf(e,t,l,t.pendingProps);case 24:return oa(t),a=ct(Qe),e===null?(n=_r(),n===null&&(n=Me,i=Dr(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),t.memoizedState={parent:a,cache:n},Ur(t),Dl(t,Qe,n)):((e.lanes&l)!==0&&(Gr(e,t),Ln(t,null,null,l),Gn()),n=e.memoizedState,i=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Dl(t,Qe,a)):(a=i.cache,Dl(t,Qe,a),a!==n.cache&&Nr(t,[Qe],l,!0))),ut(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function yl(e){e.flags|=4}function vo(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(xd())e.flags|=8192;else throw fa=Bi,zr}else e.flags&=-16777217}function Ff(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!fh(t))if(xd())e.flags|=8192;else throw fa=Bi,zr}function ls(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Mc():536870912,e.lanes|=t,Fa|=t)}function Vn(e,t){if(!he)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function _e(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;
vendor: 8,036 bytes, line 49
49)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Hp(e,t,l){var a=t.pendingProps;switch(Ar(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _e(t),null;case 1:return _e(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),dl(Qe),se(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(La(t)?yl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,wr())),_e(t),null;case 26:var n=t.type,i=t.memoizedState;return e===null?(yl(t),i!==null?(_e(t),Ff(t,i)):(_e(t),vo(t,n,null,a,l))):i?i!==e.memoizedState?(yl(t),_e(t),Ff(t,i)):(_e(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&yl(t),_e(t),vo(t,n,e,a,l)),null;case 27:if(Qt(t),l=ae.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}e=H.current,La(t)?Mu(t):(e=ah(n,a,l),t.stateNode=e,yl(t))}return _e(t),null;case 5:if(Qt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&yl(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return _e(t),null}if(i=H.current,La(t))Mu(t);else{var c=gs(ae.current);switch(i){case 1:i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=c.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=c.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=c.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?c.createElement("select",{is:a.is}):c.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?c.createElement(n,{is:a.is}):c.createElement(n)}}i[rt]=t,i[yt]=a;e:for(c=t.child;c!==null;){if(c.tag===5||c.tag===6)i.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===t)break e;for(;c.sibling===null;){if(c.return===null||c.return===t)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}t.stateNode=i;e:switch(ft(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&yl(t)}}return _e(t),vo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&yl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=ae.current,La(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=ot,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[rt]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Qd(e.nodeValue,l)),e||Nl(t,!0)}else e=gs(e).createTextNode(a),e[rt]=t,t.stateNode=e}return _e(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=La(t),l!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[rt]=t}else sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),e=!1}else l=wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return _e(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=La(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(s(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));n[rt]=t}else sa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;_e(t),n=!1}else n=wr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ls(t,t.updateQueue),_e(t),null);case 4:return se(),e===null&&Ho(t.stateNode.containerInfo),_e(t),null;case 10:return dl(t.type),_e(t),null;case 19:if(D(Xe),a=t.memoizedState,a===null)return _e(t),null;if(n=(t.flags&128)!==0,i=a.rendering,i===null)if(n)Vn(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Vi(e),i!==null){for(t.flags|=128,Vn(a,!1),e=i.updateQueue,t.updateQueue=e,ls(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Eu(l,e),l=l.sibling;return G(Xe,Xe.current&1|2),he&&ul(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&dt()>rs&&(t.flags|=128,n=!0,Vn(a,!1),t.lanes=4194304)}else{if(!n)if(e=Vi(i),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,ls(t,e),Vn(a,!0),a.tail===null&&a.tailMode==="hidden"&&!i.alternate&&!he)return _e(t),null}else 2*dt()-a.renderingStartTime>rs&&l!==536870912&&(t.flags|=128,n=!0,Vn(a,!1),t.lanes=4194304);a.isBackwards?(i.sibling=t.child,t.child=i):(e=a.last,e!==null?e.sibling=i:t.child=i,a.last=i)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=dt(),e.sibling=null,l=Xe.current,G(Xe,n?l&1|2:l&1),he&&ul(t,a.treeForkCount),e):(_e(t),null);case 22:case 23:return Mt(t),Hr(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(_e(t),t.subtreeFlags&6&&(t.flags|=8192)):_e(t),l=t.updateQueue,l!==null&&ls(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&D(ca),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),dl(Qe),_e(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function qp(e,t){switch(Ar(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return dl(Qe),se(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Qt(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(s(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));sa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(Xe),null;case 4:return se(),null;case 10:return dl(t.type),null;case 22:case 23:return Mt(t),Hr(),e!==null&&D(ca),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return dl(Qe),null;case 25:return null;default:return null}}function $f(e,t){switch(Ar(t),t.tag){case 3:dl(Qe),se();break;case 26:case 27:case 5:Qt(t);break;case 4:se();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:D(Xe);break;case 10:dl(t.type);break;case 22:case 23:Mt(t),Hr(),e!==null&&D(ca);break;case 24:dl(Qe)}}function Xn(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var i=l.create,c=l.inst;a=i(),c.destroy=a}l=l.next}while(l!==n)}}catch(d){Re(t,t.return,d)}}function Ll(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&e)===e){var c=a.inst,d=c.destroy;if(d!==void 0){c.destroy=void 0,n=t;var y=l,C=d;try{C()}catch(N){Re(n,y,N)}}}a=a.next}while(a!==i)}}catch(N){Re(t,t.return,N)}}function If(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{qu(t,l)}catch(a){Re(e,e.return,a)}}}function Pf(e,t,l){l.props=ma(e.type,e.memoizedProps),l.state=e.memoizedState;
vendor: 13,665 bytes, line 49
49try{l.componentWillUnmount()}catch(a){Re(e,t,a)}}function Kn(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Re(e,t,n)}}function el(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Re(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Re(e,t,n)}else l.current=null}function ed(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Re(e,e.return,n)}}function bo(e,t,l){try{var a=e.stateNode;cy(a,e.type,l,t),a[yt]=t}catch(n){Re(e,e.return,n)}}function td(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xl(e.type)||e.tag===4}function So(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||td(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function To(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=rl));else if(a!==4&&(a===27&&Xl(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(To(e,t,l),e=e.sibling;e!==null;)To(e,t,l),e=e.sibling}function as(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&Xl(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(as(e,t,l),e=e.sibling;e!==null;)as(e,t,l),e=e.sibling}function ld(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);ft(t,a,l),t[rt]=e,t[yt]=l}catch(i){Re(e,e.return,i)}}var gl=!1,We=!1,xo=!1,ad=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Yp(e,t){if(e=e.containerInfo,Vo=Rs,e=mu(e),mr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{l.nodeType,i.nodeType}catch{l=null;break e}var c=0,d=-1,y=-1,C=0,N=0,_=e,w=null;t:for(;;){for(var M;_!==l||n!==0&&_.nodeType!==3||(d=c+n),_!==i||a!==0&&_.nodeType!==3||(y=c+a),_.nodeType===3&&(c+=_.nodeValue.length),(M=_.firstChild)!==null;)w=_,_=M;for(;;){if(_===e)break t;if(w===l&&++C===n&&(d=c),w===i&&++N===a&&(y=c),(M=_.nextSibling)!==null)break;_=w,w=_.parentNode}_=M}l=d===-1||y===-1?null:{start:d,end:y}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xo={focusedElem:e,selectionRange:l},Rs=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,i=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&i!==null){e=void 0,l=t,n=i.memoizedProps,i=i.memoizedState,a=l.stateNode;try{var q=ma(l.type,n);e=a.getSnapshotBeforeUpdate(q,i),a.__reactInternalSnapshotBeforeUpdate=e}catch(I){Re(l,l.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zo(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function nd(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:bl(e,l),a&4&&Xn(5,l);break;case 1:if(bl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(c){Re(l,l.return,c)}else{var n=ma(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(c){Re(l,l.return,c)}}a&64&&If(l),a&512&&Kn(l,l.return);break;case 3:if(bl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{qu(e,t)}catch(c){Re(l,l.return,c)}}break;case 27:t===null&&a&4&&ld(l);case 26:case 5:bl(e,l),t===null&&a&4&&ed(l),a&512&&Kn(l,l.return);break;case 12:bl(e,l);break;case 31:bl(e,l),a&4&&rd(e,l);break;case 13:bl(e,l),a&4&&od(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=$p.bind(null,l),gy(e,l))));break;case 22:if(a=l.memoizedState!==null||gl,!a){t=t!==null&&t.memoizedState!==null||We,n=gl;var i=We;gl=a,(We=t)&&!i?Sl(e,l,(l.subtreeFlags&8772)!==0):bl(e,l),gl=n,We=i}break;case 30:break;default:bl(e,l)}}function id(e){var t=e.alternate;t!==null&&(e.alternate=null,id(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&$s(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Le=null,vt=!1;function vl(e,t,l){for(l=l.child;l!==null;)sd(e,t,l),l=l.sibling}function sd(e,t,l){if(it&&typeof it.onCommitFiberUnmount=="function")try{it.onCommitFiberUnmount(il,l)}catch{}switch(l.tag){case 26:We||el(l,t),vl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:We||el(l,t);var a=Le,n=vt;Xl(l.type)&&(Le=l.stateNode,vt=!1),vl(e,t,l),ei(l.stateNode),Le=a,vt=n;break;case 5:We||el(l,t);case 6:if(a=Le,n=vt,Le=null,vl(e,t,l),Le=a,vt=n,Le!==null)if(vt)try{(Le.nodeType===9?Le.body:Le.nodeName==="HTML"?Le.ownerDocument.body:Le).removeChild(l.stateNode)}catch(i){Re(l,t,i)}else try{Le.removeChild(l.stateNode)}catch(i){Re(l,t,i)}break;case 18:Le!==null&&(vt?(e=Le,Id(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),nn(e)):Id(Le,l.stateNode));break;case 4:a=Le,n=vt,Le=l.stateNode.containerInfo,vt=!0,vl(e,t,l),Le=a,vt=n;break;case 0:case 11:case 14:case 15:Ll(2,l,t),We||Ll(4,l,t),vl(e,t,l);break;case 1:We||(el(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Pf(l,t,a)),vl(e,t,l);break;case 21:vl(e,t,l);break;case 22:We=(a=We)||l.memoizedState!==null,vl(e,t,l),We=a;break;default:vl(e,t,l)}}function rd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{nn(e)}catch(l){Re(t,t.return,l)}}}function od(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{nn(e)}catch(l){Re(t,t.return,l)}}function Vp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new ad),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new ad),t;default:throw Error(s(435,e.tag))}}function ns(e,t){var l=Vp(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=Ip.bind(null,e,a);a.then(n,n)}})}function bt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],i=e,c=t,d=c;e:for(;d!==null;){switch(d.tag){case 27:if(Xl(d.type)){Le=d.stateNode,vt=!1;break e}break;case 5:Le=d.stateNode,vt=!1;break e;case 3:case 4:Le=d.stateNode.containerInfo,vt=!0;break e}d=d.return}if(Le===null)throw Error(s(160));sd(i,c,n),Le=null,vt=!1,i=n.alternate,i!==null&&(i.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cd(t,e),t=t.sibling}var Jt=null;function cd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:bt(t,e),St(e),a&4&&(Ll(3,e,e.return),Xn(3,e),Ll(5,e,e.return));break;case 1:bt(t,e),St(e),a&512&&(We||l===null||el(l,l.return)),a&64&&gl&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=Jt;if(bt(t,e),St(e),a&512&&(We||l===null||el(l,l.return)),a&4){var i=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":i=n.getElementsByTagName("title")[0],(!i||i[vn]||i[rt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=n.createElement(a),n.head.insertBefore(i,n.querySelector("head > title"))),ft(i,a,l),i[rt]=e,et(i),a=i;break e;case"link":var c=ch("link","href",n).get(a+(l.href||""));if(c){for(var d=0;d<c.length;d++)if(i=c[d],i.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&i.getAttribute("rel")===(l.rel==null?null:l.rel)&&i.getAttribute("title")===(l.title==null?null:l.title)&&i.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){c.splice(d,1);break t}}i=n.createElement(a),ft(i,a,l),n.head.appendChild(i);break;case"meta":if(c=ch("meta","content",n).get(a+(l.content||""))){for(d=0;d<c.length;d++)if(i=c[d],i.getAttribute("content")===(l.content==null?null:""+l.content)&&i.getAttribute("name")===(l.name==null?null:l.name)&&i.getAttribute("property")===(l.property==null?null:l.property)&&i.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&i.getAttribute("charset")===(l.charSet==null?null:l.charSet)){c.splice(d,1);break t}}i=n.createElement(a),ft(i,a,l),n.head.appendChild(i);break;default:throw Error(s(468,a))}i[rt]=e,et(i),a=i}e.stateNode=a}else uh(n,e.type,e.stateNode);else e.stateNode=oh(n,a,e.memoizedProps);else i!==a?(i===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):i.count--,a===null?uh(n,e.type,e.stateNode):oh(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&bo(e,e.memoizedProps,l.memoizedProps)}break;case 27:bt(t,e),St(e),a&512&&(We||l===null||el(l,l.return)),l!==null&&a&4&&bo(e,e.memoizedProps,l.memoizedProps);break;case 5:if(bt(t,e),St(e),a&512&&(We||l===null||el(l,l.return)),e.flags&32){n=e.stateNode;try{wa(n,"")}catch(q){Re(e,e.return,q)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,bo(e,n,l!==null?l.memoizedProps:n)),a&1024&&(xo=!0);break;case 6:if(bt(t,e),St(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(q){Re(e,e.return,q)}}break;case 3:if(Ss=null,n=Jt,Jt=vs(t.containerInfo),bt(t,e),Jt=n,St(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{nn(t.containerInfo)}catch(q){Re(e,e.return,q)}xo&&(xo=!1,ud(e));break;case 4:a=Jt,Jt=vs(e.stateNode.containerInfo),bt(t,e),St(e),Jt=a;break;case 12:bt(t,e),St(e);break;case 31:bt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ns(e,a)));break;case 13:bt(t,e),St(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ss=dt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ns(e,a)));break;case 22:n=e.memoizedState!==null;var y=l!==null&&l.memoizedState!==null,C=gl,N=We;if(gl=C||n,We=N||y,bt(t,e),We=N,gl=C,St(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||y||gl||We||pa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){y=l=t;try{if(i=y.stateNode,n)c=i.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none";else{d=y.stateNode;var _=y.memoizedProps.style,w=_!=null&&_.hasOwnProperty("display")?_.display:null;d.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(q){Re(y,y.return,q)}}}else if(t.tag===6){if(l===null){y=t;try{y.stateNode.nodeValue=n?"":y.memoizedProps}catch(q){Re(y,y.return,q)}}}else if(t.tag===18){if(l===null){y=t;try{var M=y.stateNode;n?Pd(M,!0):Pd(y.stateNode,!1)}catch(q){Re(y,y.return,q)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,ns(e,l))));break;case 19:bt(t,e),St(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,ns(e,a)));break;case 30:break;case 21:break;default:bt(t,e),St(e)}}function St(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(td(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var n=l.stateNode,i=So(e);as(e,i,n);break;case 5:var c=l.stateNode;l.flags&32&&(wa(c,""),l.flags&=-33);var d=So(e);as(e,d,c);break;case 3:case 4:var y=l.stateNode.containerInfo,C=So(e);To(e,C,y);break;default:throw Error(s(161))}}catch(N){Re(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ud(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ud(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nd(e,t.alternate,t),t=t.sibling}function pa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ll(4,t,t.return),pa(t);break;case 1:el(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Pf(t,t.return,l),pa(t);break;case 27:ei(t.stateNode);case 26:case 5:el(t,t.return),pa(t);break;case 22:t.memoizedState===null&&pa(t);break;case 30:pa(t);break;default:pa(t)}e=e.sibling}}function Sl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,i=t,c=i.flags;switch(i.tag){case 0:case 11:case 15:Sl(n,i,l),Xn(4,i);break;case 1:if(Sl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(C){Re(a,a.return,C)}if(a=i,n=a.updateQueue,n!==null){var d=a.stateNode;try{var y=n.shared.hiddenCallbacks;
vendor: 7,909 bytes, line 49
49if(y!==null)for(n.shared.hiddenCallbacks=null,n=0;n<y.length;n++)Hu(y[n],d)}catch(C){Re(a,a.return,C)}}l&&c&64&&If(i),Kn(i,i.return);break;case 27:ld(i);case 26:case 5:Sl(n,i,l),l&&a===null&&c&4&&ed(i),Kn(i,i.return);break;case 12:Sl(n,i,l);break;case 31:Sl(n,i,l),l&&c&4&&rd(n,i);break;case 13:Sl(n,i,l),l&&c&4&&od(n,i);break;case 22:i.memoizedState===null&&Sl(n,i,l),Kn(i,i.return);break;case 30:break;default:Sl(n,i,l)}t=t.sibling}}function Eo(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&Dn(l))}function Ro(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Dn(e))}function Wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)fd(e,t,l,a),t=t.sibling}function fd(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,l,a),n&2048&&Xn(9,t);break;case 1:Wt(e,t,l,a);break;case 3:Wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Dn(e)));break;case 12:if(n&2048){Wt(e,t,l,a),e=t.stateNode;try{var i=t.memoizedProps,c=i.id,d=i.onPostCommit;typeof d=="function"&&d(c,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(y){Re(t,t.return,y)}}else Wt(e,t,l,a);break;case 31:Wt(e,t,l,a);break;case 13:Wt(e,t,l,a);break;case 23:break;case 22:i=t.stateNode,c=t.alternate,t.memoizedState!==null?i._visibility&2?Wt(e,t,l,a):Qn(e,t):i._visibility&2?Wt(e,t,l,a):(i._visibility|=2,Za(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&Eo(c,t);break;case 24:Wt(e,t,l,a),n&2048&&Ro(t.alternate,t);break;default:Wt(e,t,l,a)}}function Za(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,c=t,d=l,y=a,C=c.flags;switch(c.tag){case 0:case 11:case 15:Za(i,c,d,y,n),Xn(8,c);break;case 23:break;case 22:var N=c.stateNode;c.memoizedState!==null?N._visibility&2?Za(i,c,d,y,n):Qn(i,c):(N._visibility|=2,Za(i,c,d,y,n)),n&&C&2048&&Eo(c.alternate,c);break;case 24:Za(i,c,d,y,n),n&&C&2048&&Ro(c.alternate,c);break;default:Za(i,c,d,y,n)}t=t.sibling}}function Qn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:Qn(l,a),n&2048&&Eo(a.alternate,a);break;case 24:Qn(l,a),n&2048&&Ro(a.alternate,a);break;default:Qn(l,a)}t=t.sibling}}var Zn=8192;function Ja(e,t,l){if(e.subtreeFlags&Zn)for(e=e.child;e!==null;)dd(e,t,l),e=e.sibling}function dd(e,t,l){switch(e.tag){case 26:Ja(e,t,l),e.flags&Zn&&e.memoizedState!==null&&Oy(l,Jt,e.memoizedState,e.memoizedProps);break;case 5:Ja(e,t,l);break;case 3:case 4:var a=Jt;Jt=vs(e.stateNode.containerInfo),Ja(e,t,l),Jt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Zn,Zn=16777216,Ja(e,t,l),Zn=a):Ja(e,t,l));break;default:Ja(e,t,l)}}function hd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Jn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];tt=a,pd(a,e)}hd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)md(e),e=e.sibling}function md(e){switch(e.tag){case 0:case 11:case 15:Jn(e),e.flags&2048&&Ll(9,e,e.return);break;case 3:Jn(e);break;case 12:Jn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,is(e)):Jn(e);break;default:Jn(e)}}function is(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];tt=a,pd(a,e)}hd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ll(8,t,t.return),is(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,is(t));break;default:is(t)}e=e.sibling}}function pd(e,t){for(;tt!==null;){var l=tt;switch(l.tag){case 0:case 11:case 15:Ll(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Dn(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,tt=a;else e:for(l=e;tt!==null;){a=tt;var n=a.sibling,i=a.return;if(id(a),a===l){tt=null;break e}if(n!==null){n.return=i,tt=n;break e}tt=i}}}var Xp={getCacheForType:function(e){var t=ct(Qe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return ct(Qe).controller.signal}},Kp=typeof WeakMap=="function"?WeakMap:Map,xe=0,Me=null,ce=null,fe=0,Ee=0,Ot=null,jl=!1,Wa=!1,Ao=!1,Tl=0,qe=0,Bl=0,ya=0,Co=0,Nt=0,Fa=0,Wn=null,Tt=null,wo=!1,ss=0,yd=0,rs=1/0,os=null,Hl=null,$e=0,ql=null,$a=null,xl=0,Mo=0,Oo=null,gd=null,Fn=0,No=null;function Dt(){return(xe&2)!==0&&fe!==0?fe&-fe:O.T!==null?Go():kc()}function vd(){if(Nt===0)if((fe&536870912)===0||he){var e=yi;yi<<=1,(yi&3932160)===0&&(yi=262144),Nt=e}else Nt=536870912;return e=wt.current,e!==null&&(e.flags|=32),Nt}function xt(e,t,l){(e===Me&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)&&(Ia(e,0),Yl(e,fe,Nt,!1)),gn(e,l),((xe&2)===0||e!==Me)&&(e===Me&&((xe&2)===0&&(ya|=l),qe===4&&Yl(e,fe,Nt,!1)),tl(e))}function bd(e,t,l){if((xe&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||yn(e,t),n=a?Jp(e,t):ko(e,t,!0),i=a;do{if(n===0){Wa&&!a&&Yl(e,t,0,!1);break}else{if(l=e.current.alternate,i&&!Qp(l)){n=ko(e,t,!1),i=!1;continue}if(n===2){if(i=t,e.errorRecoveryDisabledLanes&i)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){t=c;e:{var d=e;n=Wn;var y=d.current.memoizedState.isDehydrated;if(y&&(Ia(d,c).flags|=256),c=ko(d,c,!1),c!==2){if(Ao&&!y){d.errorRecoveryDisabledLanes|=i,ya|=i,n=4;break e}i=Tt,Tt=n,i!==null&&(Tt===null?Tt=i:Tt.push.apply(Tt,i))}n=c}if(i=!1,n!==2)continue}}if(n===1){Ia(e,0),Yl(e,t,0,!0);break}e:{switch(a=e,i=n,i){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Yl(a,t,Nt,!jl);break e;case 2:Tt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(n=ss+300-dt(),10<n)){if(Yl(a,t,Nt,!jl),vi(a,0,!0)!==0)break e;xl=t,a.timeoutHandle=Fd(Sd.bind(null,a,l,Tt,os,wo,t,Nt,ya,Fa,jl,i,"Throttled",-0,0),n);break e}Sd(a,l,Tt,os,wo,t,Nt,ya,Fa,jl,i,null,-0,0)}}break}while(!0);tl(e)}function Sd(e,t,l,a,n,i,c,d,y,C,N,_,w,M){if(e.timeoutHandle=-1,_=t.subtreeFlags,_&8192||(_&16785408)===16785408){_={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:rl},dd(t,i,_);var q=(i&62914560)===i?ss-dt():(i&4194048)===i?yd-dt():0;if(q=Ny(_,q),q!==null){xl=i,e.cancelPendingCommit=q(Md.bind(null,e,t,i,l,a,n,c,d,y,N,_,null,w,M)),Yl(e,i,c,!C);return}}Md(e,t,i,l,a,n,c,d,y)}function Qp(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!At(i(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Yl(e,t,l,a){t&=~Co,t&=~ya,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var i=31-st(n),c=1<<i;a[i]=-1,n&=~c}l!==0&&Oc(e,l,t)}function cs(){return(xe&6)===0?($n(0),!1):!0}function Do(){if(ce!==null){if(Ee===0)var e=ce.return;else e=ce,fl=ra=null,Qr(e),Ya=null,_n=0,e=ce;for(;e!==null;)$f(e.alternate,e),e=e.return;ce=null}}function Ia(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,dy(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),xl=0,Do(),Me=e,ce=l=cl(e.current,null),fe=t,Ee=0,Ot=null,jl=!1,Wa=yn(e,t),Ao=!1,Fa=Nt=Co=ya=Bl=qe=0,Tt=Wn=null,wo=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;
vendor: 4,513 bytes, line 49
49){var n=31-st(a),i=1<<n;t|=e[n],a&=~i}return Tl=t,Ni(),l}function Td(e,t){ne=null,O.H=qn,t===qa||t===ji?(t=Gu(),Ee=3):t===zr?(t=Gu(),Ee=4):Ee=t===oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,ce===null&&(qe=1,Ii(e,Gt(t,e.current)))}function xd(){var e=wt.current;return e===null?!0:(fe&4194048)===fe?Ht===null:(fe&62914560)===fe||(fe&536870912)!==0?e===Ht:!1}function Ed(){var e=O.H;return O.H=qn,e===null?qn:e}function Rd(){var e=O.A;return O.A=Xp,e}function us(){qe=4,jl||(fe&4194048)!==fe&&wt.current!==null||(Wa=!0),(Bl&134217727)===0&&(ya&134217727)===0||Me===null||Yl(Me,fe,Nt,!1)}function ko(e,t,l){var a=xe;xe|=2;var n=Ed(),i=Rd();(Me!==e||fe!==t)&&(os=null,Ia(e,t)),t=!1;var c=qe;e:do try{if(Ee!==0&&ce!==null){var d=ce,y=Ot;switch(Ee){case 8:Do(),c=6;break e;case 3:case 2:case 9:case 6:wt.current===null&&(t=!0);var C=Ee;if(Ee=0,Ot=null,Pa(e,d,y,C),l&&Wa){c=0;break e}break;default:C=Ee,Ee=0,Ot=null,Pa(e,d,y,C)}}Zp(),c=qe;break}catch(N){Td(e,N)}while(!0);return t&&e.shellSuspendCounter++,fl=ra=null,xe=a,O.H=n,O.A=i,ce===null&&(Me=null,fe=0,Ni()),c}function Zp(){for(;ce!==null;)Ad(ce)}function Jp(e,t){var l=xe;xe|=2;var a=Ed(),n=Rd();Me!==e||fe!==t?(os=null,rs=dt()+500,Ia(e,t)):Wa=yn(e,t);e:do try{if(Ee!==0&&ce!==null){t=ce;var i=Ot;t:switch(Ee){case 1:Ee=0,Ot=null,Pa(e,t,i,1);break;case 2:case 9:if(zu(i)){Ee=0,Ot=null,Cd(t);break}t=function(){Ee!==2&&Ee!==9||Me!==e||(Ee=7),tl(e)},i.then(t,t);break e;case 3:Ee=7;break e;case 4:Ee=5;break e;case 7:zu(i)?(Ee=0,Ot=null,Cd(t)):(Ee=0,Ot=null,Pa(e,t,i,7));break;case 5:var c=null;switch(ce.tag){case 26:c=ce.memoizedState;case 5:case 27:var d=ce;if(c?fh(c):d.stateNode.complete){Ee=0,Ot=null;var y=d.sibling;if(y!==null)ce=y;else{var C=d.return;C!==null?(ce=C,fs(C)):ce=null}break t}}Ee=0,Ot=null,Pa(e,t,i,5);break;case 6:Ee=0,Ot=null,Pa(e,t,i,6);break;case 8:Do(),qe=6;break e;default:throw Error(s(462))}}Wp();break}catch(N){Td(e,N)}while(!0);return fl=ra=null,O.H=a,O.A=n,xe=l,ce!==null?0:(Me=null,fe=0,Ni(),qe)}function Wp(){for(;ce!==null&&!pn();)Ad(ce)}function Ad(e){var t=Wf(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,t===null?fs(e):ce=t}function Cd(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Vf(l,t,t.pendingProps,t.type,void 0,fe);break;case 11:t=Vf(l,t,t.pendingProps,t.type.render,t.ref,fe);break;case 5:Qr(t);default:$f(l,t),t=ce=Eu(t,Tl),t=Wf(l,t,Tl)}e.memoizedProps=e.pendingProps,t===null?fs(e):ce=t}function Pa(e,t,l,a){fl=ra=null,Qr(t),Ya=null,_n=0;var n=t.return;try{if(Lp(e,n,t,l,fe)){qe=1,Ii(e,Gt(l,e.current)),ce=null;return}}catch(i){if(n!==null)throw ce=n,i;qe=1,Ii(e,Gt(l,e.current)),ce=null;return}t.flags&32768?(he||a===1?e=!0:Wa||(fe&536870912)!==0?e=!1:(jl=e=!0,(a===2||a===9||a===3||a===6)&&(a=wt.current,a!==null&&a.tag===13&&(a.flags|=16384))),wd(t,e)):fs(t)}function fs(e){var t=e;do{if((t.flags&32768)!==0){wd(t,jl);return}e=t.return;var l=Hp(t.alternate,t,Tl);if(l!==null){ce=l;return}if(t=t.sibling,t!==null){ce=t;return}ce=t=e}while(t!==null);qe===0&&(qe=5)}function wd(e,t){do{var l=qp(e.alternate,e);if(l!==null){l.flags&=32767,ce=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){ce=e;return}ce=e=l}while(e!==null);qe=6,ce=null}function Md(e,t,l,a,n,i,c,d,y){e.cancelPendingCommit=null;do ds();while($e!==0);if((xe&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(i=t.lanes|t.childLanes,i|=br,Mm(e,l,i,c,d,y),e===Me&&(ce=Me=null,fe=0),$a=t,ql=e,xl=l,Mo=i,Oo=n,gd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Pp(J,function(){return _d(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null,n=B.p,B.p=2,c=xe,xe|=4;try{Yp(e,t,l)}finally{xe=c,B.p=n,O.T=a}}$e=1,Od(),Nd(),Dd()}}function Od(){if($e===1){$e=0;var e=ql,t=$a,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=O.T,O.T=null;var a=B.p;B.p=2;var n=xe;xe|=4;try{cd(t,e);var i=Xo,c=mu(e.containerInfo),d=i.focusedElem,y=i.selectionRange;if(c!==d&&d&&d.ownerDocument&&hu(d.ownerDocument.documentElement,d)){if(y!==null&&mr(d)){var C=y.start,N=y.end;if(N===void 0&&(N=C),"selectionStart"in d)d.selectionStart=C,d.selectionEnd=Math.min(N,d.value.length);else{var _=d.ownerDocument||document,w=_&&_.defaultView||window;if(w.getSelection){var M=w.getSelection(),q=d.textContent.length,I=Math.min(y.start,q),we=y.end===void 0?I:Math.min(y.end,q);!M.extend&&I>we&&(c=we,we=I,I=c);var R=du(d,I),S=du(d,we);
vendor: 13,701 bytes, line 49
49if(R&&S&&(M.rangeCount!==1||M.anchorNode!==R.node||M.anchorOffset!==R.offset||M.focusNode!==S.node||M.focusOffset!==S.offset)){var A=_.createRange();A.setStart(R.node,R.offset),M.removeAllRanges(),I>we?(M.addRange(A),M.extend(S.node,S.offset)):(A.setEnd(S.node,S.offset),M.addRange(A))}}}}for(_=[],M=d;M=M.parentNode;)M.nodeType===1&&_.push({element:M,left:M.scrollLeft,top:M.scrollTop});for(typeof d.focus=="function"&&d.focus(),d=0;d<_.length;d++){var k=_[d];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Rs=!!Vo,Xo=Vo=null}finally{xe=n,B.p=a,O.T=l}}e.current=t,$e=2}}function Nd(){if($e===2){$e=0;var e=ql,t=$a,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=O.T,O.T=null;var a=B.p;B.p=2;var n=xe;xe|=4;try{nd(e,t.alternate,t)}finally{xe=n,B.p=a,O.T=l}}$e=3}}function Dd(){if($e===4||$e===3){$e=0,Sa();var e=ql,t=$a,l=xl,a=gd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?$e=5:($e=0,$a=ql=null,kd(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Hl=null),Ws(l),t=t.stateNode,it&&typeof it.onCommitFiberRoot=="function")try{it.onCommitFiberRoot(il,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=O.T,n=B.p,B.p=2,O.T=null;try{for(var i=e.onRecoverableError,c=0;c<a.length;c++){var d=a[c];i(d.value,{componentStack:d.stack})}}finally{O.T=t,B.p=n}}(xl&3)!==0&&ds(),tl(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===No?Fn++:(Fn=0,No=e):Fn=0,$n(0)}}function kd(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Dn(t)))}function ds(){return Od(),Nd(),Dd(),_d()}function _d(){if($e!==5)return!1;var e=ql,t=Mo;Mo=0;var l=Ws(xl),a=O.T,n=B.p;try{B.p=32>l?32:l,O.T=null,l=Oo,Oo=null;var i=ql,c=xl;if($e=0,$a=ql=null,xl=0,(xe&6)!==0)throw Error(s(331));var d=xe;if(xe|=4,md(i.current),fd(i,i.current,c,l),xe=d,$n(0,!1),it&&typeof it.onPostCommitFiberRoot=="function")try{it.onPostCommitFiberRoot(il,i)}catch{}return!0}finally{B.p=n,O.T=a,kd(e,t)}}function zd(e,t,l){t=Gt(l,t),t=ro(e.stateNode,t,2),e=zl(e,t,2),e!==null&&(gn(e,2),tl(e))}function Re(e,t,l){if(e.tag===3)zd(e,e,l);else for(;t!==null;){if(t.tag===3){zd(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Hl===null||!Hl.has(a))){e=Gt(l,e),l=Uf(2),a=zl(t,l,2),a!==null&&(Gf(l,a,t,e),gn(a,2),tl(a));break}}t=t.return}}function _o(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Kp;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ao=!0,n.add(l),e=Fp.bind(null,e,t,l),t.then(e,e))}function Fp(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Me===e&&(fe&l)===l&&(qe===4||qe===3&&(fe&62914560)===fe&&300>dt()-ss?(xe&2)===0&&Ia(e,0):Co|=l,Fa===fe&&(Fa=0)),tl(e)}function Ud(e,t){t===0&&(t=Mc()),e=na(e,t),e!==null&&(gn(e,t),tl(e))}function $p(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Ud(e,l)}function Ip(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),Ud(e,l)}function Pp(e,t){return ba(e,t)}var hs=null,en=null,zo=!1,ms=!1,Uo=!1,Vl=0;function tl(e){e!==en&&e.next===null&&(en===null?hs=en=e:en=en.next=e),ms=!0,zo||(zo=!0,ty())}function $n(e,t){if(!Uo&&ms){Uo=!0;do for(var l=!1,a=hs;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var c=a.suspendedLanes,d=a.pingedLanes;i=(1<<31-st(42|e)+1)-1,i&=n&~(c&~d),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Bd(a,i))}else i=fe,i=vi(a,a===Me?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||yn(a,i)||(l=!0,Bd(a,i));a=a.next}while(l);Uo=!1}}function ey(){Gd()}function Gd(){ms=zo=!1;var e=0;Vl!==0&&fy()&&(e=Vl);for(var t=dt(),l=null,a=hs;a!==null;){var n=a.next,i=Ld(a,t);i===0?(a.next=null,l===null?hs=n:l.next=n,n===null&&(en=l)):(l=a,(e!==0||(i&3)!==0)&&(ms=!0)),a=n}$e!==0&&$e!==5||$n(e),Vl!==0&&(Vl=0)}function Ld(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var c=31-st(i),d=1<<c,y=n[c];y===-1?((d&l)===0||(d&a)!==0)&&(n[c]=wm(d,t)):y<=t&&(e.expiredLanes|=d),i&=~d}if(t=Me,l=fe,l=vi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ee===2||Ee===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&mn(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||yn(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&mn(a),Ws(l)){case 2:case 8:l=j;break;case 32:l=J;break;case 268435456:l=Ve;break;default:l=J}return a=jd.bind(null,e),l=ba(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&mn(a),e.callbackPriority=2,e.callbackNode=null,2}function jd(e,t){if($e!==0&&$e!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ds()&&e.callbackNode!==l)return null;var a=fe;return a=vi(e,e===Me?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(bd(e,a,t),Ld(e,dt()),e.callbackNode!=null&&e.callbackNode===l?jd.bind(null,e):null)}function Bd(e,t){if(ds())return null;bd(e,t,!0)}function ty(){hy(function(){(xe&6)!==0?ba(E,ey):Gd()})}function Go(){if(Vl===0){var e=Ba;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),Vl=e}return Vl}function Hd(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:xi(""+e)}function qd(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function ly(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var i=Hd((n[yt]||null).action),c=a.submitter;c&&(t=(t=c[yt]||null)?Hd(t.formAction):c.getAttribute("formAction"),t!==null&&(i=t,c=null));var d=new Ci("action","action",null,a,n);e.push({event:d,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Vl!==0){var y=c?qd(n,c):new FormData(n);to(l,{pending:!0,data:y,method:n.method,action:i},null,y)}}else typeof i=="function"&&(d.preventDefault(),y=c?qd(n,c):new FormData(n),to(l,{pending:!0,data:y,method:n.method,action:i},i,y))},currentTarget:n}]})}}for(var Lo=0;Lo<vr.length;Lo++){var jo=vr[Lo],ay=jo.toLowerCase(),ny=jo[0].toUpperCase()+jo.slice(1);Zt(ay,"on"+ny)}Zt(gu,"onAnimationEnd"),Zt(vu,"onAnimationIteration"),Zt(bu,"onAnimationStart"),Zt("dblclick","onDoubleClick"),Zt("focusin","onFocus"),Zt("focusout","onBlur"),Zt(Sp,"onTransitionRun"),Zt(Tp,"onTransitionStart"),Zt(xp,"onTransitionCancel"),Zt(Su,"onTransitionEnd"),Aa("onMouseEnter",["mouseout","mouseover"]),Aa("onMouseLeave",["mouseout","mouseover"]),Aa("onPointerEnter",["pointerout","pointerover"]),Aa("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var In="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(" "),iy=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(In));function Yd(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var i=void 0;if(t)for(var c=a.length-1;0<=c;c--){var d=a[c],y=d.instance,C=d.currentTarget;if(d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=C;try{i(n)}catch(N){Oi(N)}n.currentTarget=null,i=y}else for(c=0;c<a.length;c++){if(d=a[c],y=d.instance,C=d.currentTarget,d=d.listener,y!==i&&n.isPropagationStopped())break e;i=d,n.currentTarget=C;try{i(n)}catch(N){Oi(N)}n.currentTarget=null,i=y}}}}function ue(e,t){var l=t[Fs];l===void 0&&(l=t[Fs]=new Set);var a=e+"__bubble";l.has(a)||(Vd(t,e,2,!1),l.add(a))}function Bo(e,t,l){var a=0;t&&(a|=4),Vd(l,e,a,t)}var ps="_reactListening"+Math.random().toString(36).slice(2);function Ho(e){if(!e[ps]){e[ps]=!0,Uc.forEach(function(l){l!=="selectionchange"&&(iy.has(l)||Bo(l,!1,e),Bo(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ps]||(t[ps]=!0,Bo("selectionchange",!1,t))}}function Vd(e,t,l,a){switch(vh(t)){case 2:var n=_y;break;case 8:n=zy;break;default:n=tc}l=n.bind(null,t,l,e),n=void 0,!ir||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function qo(e,t,l,a,n){var i=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var c=a.tag;if(c===3||c===4){var d=a.stateNode.containerInfo;if(d===n)break;if(c===4)for(c=a.return;c!==null;){var y=c.tag;if((y===3||y===4)&&c.stateNode.containerInfo===n)return;c=c.return}for(;d!==null;){if(c=xa(d),c===null)return;if(y=c.tag,y===5||y===6||y===26||y===27){a=i=c;continue e}d=d.parentNode}}a=a.return}Zc(function(){var C=i,N=ar(l),_=[];e:{var w=Tu.get(e);if(w!==void 0){var M=Ci,q=e;switch(e){case"keypress":if(Ri(l)===0)break e;case"keydown":case"keyup":M=Im;break;case"focusin":q="focus",M=cr;break;case"focusout":q="blur",M=cr;break;case"beforeblur":case"afterblur":M=cr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":M=Fc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":M=Hm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":M=tp;break;case gu:case vu:case bu:M=Vm;break;case Su:M=ap;break;case"scroll":case"scrollend":M=jm;break;case"wheel":M=ip;break;case"copy":case"cut":case"paste":M=Km;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":M=Ic;break;case"toggle":case"beforetoggle":M=rp}var I=(t&4)!==0,we=!I&&(e==="scroll"||e==="scrollend"),R=I?w!==null?w+"Capture":null:w;I=[];for(var S=C,A;S!==null;){var k=S;if(A=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||A===null||R===null||(k=Sn(S,R),k!=null&&I.push(Pn(S,k,A))),we)break;S=S.return}0<I.length&&(w=new M(w,q,null,l,N),_.push({event:w,listeners:I}))}}if((t&7)===0){e:{if(w=e==="mouseover"||e==="pointerover",M=e==="mouseout"||e==="pointerout",w&&l!==lr&&(q=l.relatedTarget||l.fromElement)&&(xa(q)||q[Ta]))break e;if((M||w)&&(w=N.window===N?N:(w=N.ownerDocument)?w.defaultView||w.parentWindow:window,M?(q=l.relatedTarget||l.toElement,M=C,q=q?xa(q):null,q!==null&&(we=h(q),I=q.tag,q!==we||I!==5&&I!==27&&I!==6)&&(q=null)):(M=null,q=C),M!==q)){if(I=Fc,k="onMouseLeave",R="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(I=Ic,k="onPointerLeave",R="onPointerEnter",S="pointer"),we=M==null?w:bn(M),A=q==null?w:bn(q),w=new I(k,S+"leave",M,l,N),w.target=we,w.relatedTarget=A,k=null,xa(N)===C&&(I=new I(R,S+"enter",q,l,N),I.target=A,I.relatedTarget=we,k=I),we=k,M&&q)t:{for(I=sy,R=M,S=q,A=0,k=R;k;k=I(k))A++;k=0;for(var W=S;W;W=I(W))k++;for(;0<A-k;)R=I(R),A--;for(;0<k-A;)S=I(S),k--;for(;A--;){if(R===S||S!==null&&R===S.alternate){I=R;break t}R=I(R),S=I(S)}I=null}else I=null;M!==null&&Xd(_,w,M,I,!1),q!==null&&we!==null&&Xd(_,we,q,I,!0)}}e:{if(w=C?bn(C):window,M=w.nodeName&&w.nodeName.toLowerCase(),M==="select"||M==="input"&&w.type==="file")var be=su;else if(nu(w))if(ru)be=gp;else{be=pp;var X=mp}else M=w.nodeName,!M||M.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?C&&tr(C.elementType)&&(be=su):be=yp;if(be&&(be=be(e,C))){iu(_,be,l,N);break e}X&&X(e,w,C),e==="focusout"&&C&&w.type==="number"&&C.memoizedProps.value!=null&&er(w,"number",w.value)}switch(X=C?bn(C):window,e){case"focusin":(nu(X)||X.contentEditable==="true")&&(Da=X,pr=C,Mn=null);break;case"focusout":Mn=pr=Da=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,pu(_,l,N);break;case"selectionchange":if(bp)break;case"keydown":case"keyup":pu(_,l,N)}var ie;if(fr)e:{switch(e){case"compositionstart":var de="onCompositionStart";break e;case"compositionend":de="onCompositionEnd";break e;case"compositionupdate":de="onCompositionUpdate";break e}de=void 0}else Na?lu(e,l)&&(de="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(de="onCompositionStart");de&&(Pc&&l.locale!=="ko"&&(Na||de!=="onCompositionStart"?de==="onCompositionEnd"&&Na&&(ie=Jc()):(wl=N,sr="value"in wl?wl.value:wl.textContent,Na=!0)),X=ys(C,de),0<X.length&&(de=new $c(de,e,null,l,N),_.push({event:de,listeners:X}),ie?de.data=ie:(ie=au(l),ie!==null&&(de.data=ie)))),(ie=cp?up(e,l):fp(e,l))&&(de=ys(C,"onBeforeInput"),0<de.length&&(X=new $c("onBeforeInput","beforeinput",null,l,N),_.push({event:X,listeners:de}),X.data=ie)),ly(_,e,C,l,N)}Yd(_,t)})}function Pn(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ys(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Sn(e,l),n!=null&&a.unshift(Pn(e,n,i)),n=Sn(e,t),n!=null&&a.push(Pn(e,n,i))),e.tag===3)return a;e=e.return}return[]}function sy(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xd(e,t,l,a,n){for(var i=t._reactName,c=[];l!==null&&l!==a;){var d=l,y=d.alternate,C=d.stateNode;
vendor: 4,992 bytes, lines 49-50
49if(d=d.tag,y!==null&&y===a)break;d!==5&&d!==26&&d!==27||C===null||(y=C,n?(C=Sn(l,i),C!=null&&c.unshift(Pn(l,C,y))):n||(C=Sn(l,i),C!=null&&c.push(Pn(l,C,y)))),l=l.return}c.length!==0&&e.push({event:t,listeners:c})}var ry=/\r\n?/g,oy=/\u0000|\uFFFD/g;function Kd(e){return(typeof e=="string"?e:""+e).replace(ry,` 50`).replace(oy,"")}function Qd(e,t){return t=Kd(t),Kd(e)===t}function Ce(e,t,l,a,n,i){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||wa(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&wa(e,""+a);break;case"className":Si(e,"class",a);break;case"tabIndex":Si(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Si(e,l,a);break;case"style":Kc(e,a,i);break;case"data":if(t!=="object"){Si(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=xi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 i=="function"&&(l==="formAction"?(t!=="input"&&Ce(e,t,"name",n.name,n,null),Ce(e,t,"formEncType",n.formEncType,n,null),Ce(e,t,"formMethod",n.formMethod,n,null),Ce(e,t,"formTarget",n.formTarget,n,null)):(Ce(e,t,"encType",n.encType,n,null),Ce(e,t,"method",n.method,n,null),Ce(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=xi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=rl);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=xi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":ue("beforetoggle",e),ue("toggle",e),bi(e,"popover",a);break;case"xlinkActuate":sl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":sl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":sl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":sl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":sl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":sl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":sl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":sl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":sl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":bi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Gm.get(l)||l,bi(e,l,a))}}function Yo(e,t,l,a,n,i){switch(l){case"style":Kc(e,a,i);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(s(60));e.innerHTML=l}}break;
vendor: 6,730 bytes, line 50
50case"children":typeof a=="string"?wa(e,a):(typeof a=="number"||typeof a=="bigint")&&wa(e,""+a);break;case"onScroll":a!=null&&ue("scroll",e);break;case"onScrollEnd":a!=null&&ue("scrollend",e);break;case"onClick":a!=null&&(e.onclick=rl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),i=e[yt]||null,i=i!=null?i[l]:null,typeof i=="function"&&e.removeEventListener(t,i,n),typeof a=="function")){typeof i!="function"&&i!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):bi(e,l,a)}}}function ft(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ue("error",e),ue("load",e);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var c=l[i];if(c!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,i,c,l,null)}}n&&Ce(e,t,"srcSet",l.srcSet,l,null),a&&Ce(e,t,"src",l.src,l,null);return;case"input":ue("invalid",e);var d=i=c=n=null,y=null,C=null;for(a in l)if(l.hasOwnProperty(a)){var N=l[a];if(N!=null)switch(a){case"name":n=N;break;case"type":c=N;break;case"checked":y=N;break;case"defaultChecked":C=N;break;case"value":i=N;break;case"defaultValue":d=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(s(137,t));break;default:Ce(e,t,a,N,l,null)}}qc(e,i,d,y,C,c,n,!1);return;case"select":ue("invalid",e),a=c=i=null;for(n in l)if(l.hasOwnProperty(n)&&(d=l[n],d!=null))switch(n){case"value":i=d;break;case"defaultValue":c=d;break;case"multiple":a=d;default:Ce(e,t,n,d,l,null)}t=i,l=c,e.multiple=!!a,t!=null?Ca(e,!!a,t,!1):l!=null&&Ca(e,!!a,l,!0);return;case"textarea":ue("invalid",e),i=n=a=null;for(c in l)if(l.hasOwnProperty(c)&&(d=l[c],d!=null))switch(c){case"value":a=d;break;case"defaultValue":n=d;break;case"children":i=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:Ce(e,t,c,d,l,null)}Vc(e,a,n,i);return;case"option":for(y in l)if(l.hasOwnProperty(y)&&(a=l[y],a!=null))switch(y){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Ce(e,t,y,a,l,null)}return;case"dialog":ue("beforetoggle",e),ue("toggle",e),ue("cancel",e),ue("close",e);break;case"iframe":case"object":ue("load",e);break;case"video":case"audio":for(a=0;a<In.length;a++)ue(In[a],e);break;case"image":ue("error",e),ue("load",e);break;case"details":ue("toggle",e);break;case"embed":case"source":case"link":ue("error",e),ue("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(C in l)if(l.hasOwnProperty(C)&&(a=l[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Ce(e,t,C,a,l,null)}return;default:if(tr(t)){for(N in l)l.hasOwnProperty(N)&&(a=l[N],a!==void 0&&Yo(e,t,N,a,l,void 0));return}}for(d in l)l.hasOwnProperty(d)&&(a=l[d],a!=null&&Ce(e,t,d,a,l,null))}function cy(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,c=null,d=null,y=null,C=null,N=null;for(M in l){var _=l[M];if(l.hasOwnProperty(M)&&_!=null)switch(M){case"checked":break;case"value":break;case"defaultValue":y=_;default:a.hasOwnProperty(M)||Ce(e,t,M,null,a,_)}}for(var w in a){var M=a[w];if(_=l[w],a.hasOwnProperty(w)&&(M!=null||_!=null))switch(w){case"type":i=M;break;case"name":n=M;break;case"checked":C=M;break;case"defaultChecked":N=M;break;case"value":c=M;break;case"defaultValue":d=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(s(137,t));break;default:M!==_&&Ce(e,t,w,M,a,_)}}Ps(e,c,d,y,C,N,i,n);return;case"select":M=c=d=w=null;for(i in l)if(y=l[i],l.hasOwnProperty(i)&&y!=null)switch(i){case"value":break;case"multiple":M=y;default:a.hasOwnProperty(i)||Ce(e,t,i,null,a,y)}for(n in a)if(i=a[n],y=l[n],a.hasOwnProperty(n)&&(i!=null||y!=null))switch(n){case"value":w=i;break;case"defaultValue":d=i;break;case"multiple":c=i;default:i!==y&&Ce(e,t,n,i,a,y)}t=d,l=c,a=M,w!=null?Ca(e,!!l,w,!1):!!a!=!!l&&(t!=null?Ca(e,!!l,t,!0):Ca(e,!!l,l?[]:"",!1));return;case"textarea":M=w=null;for(d in l)if(n=l[d],l.hasOwnProperty(d)&&n!=null&&!a.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Ce(e,t,d,null,a,n)}for(c in a)if(n=a[c],i=l[c],a.hasOwnProperty(c)&&(n!=null||i!=null))switch(c){case"value":w=n;break;case"defaultValue":M=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(s(91));break;default:n!==i&&Ce(e,t,c,n,a,i)}Yc(e,w,M);return;case"option":for(var q in l)if(w=l[q],l.hasOwnProperty(q)&&w!=null&&!a.hasOwnProperty(q))switch(q){case"selected":e.selected=!1;break;default:Ce(e,t,q,null,a,w)}for(y in a)if(w=a[y],M=l[y],a.hasOwnProperty(y)&&w!==M&&(w!=null||M!=null))switch(y){case"selected":e.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ce(e,t,y,w,a,M)}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 I in l)w=l[I],l.hasOwnProperty(I)&&w!=null&&!a.hasOwnProperty(I)&&Ce(e,t,I,null,a,w);for(C in a)if(w=a[C],M=l[C],a.hasOwnProperty(C)&&w!==M&&(w!=null||M!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(s(137,t));break;default:Ce(e,t,C,w,a,M)}return;default:if(tr(t)){for(var we in l)w=l[we],l.hasOwnProperty(we)&&w!==void 0&&!a.hasOwnProperty(we)&&Yo(e,t,we,void 0,a,w);for(N in a)w=a[N],M=l[N],!a.hasOwnProperty(N)||w===M||w===void 0&&M===void 0||Yo(e,t,N,w,a,M);return}}for(var R in l)w=l[R],l.hasOwnProperty(R)&&w!=null&&!a.hasOwnProperty(R)&&Ce(e,t,R,null,a,w);for(_ in a)w=a[_],M=l[_],!a.hasOwnProperty(_)||w===M||w==null&&M==null||Ce(e,t,_,w,a,M)}function Zd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function uy(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,c=n.initiatorType,d=n.duration;if(i&&d&&Zd(c)){for(c=0,d=n.responseEnd,a+=1;a<l.length;a++){var y=l[a],C=y.startTime;if(C>d)break;var N=y.transferSize,_=y.initiatorType;N&&Zd(_)&&(y=y.responseEnd,c+=N*(y<d?1:(d-C)/(y-C)))}if(--a,t+=8*(i+c)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Vo=null,Xo=null;
vendor: 14,014 bytes, line 50
50function gs(e){return e.nodeType===9?e:e.ownerDocument}function Jd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wd(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ko(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qo=null;function fy(){var e=window.event;return e&&e.type==="popstate"?e===Qo?!1:(Qo=e,!0):(Qo=null,!1)}var Fd=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,$d=typeof Promise=="function"?Promise:void 0,hy=typeof queueMicrotask=="function"?queueMicrotask:typeof $d<"u"?function(e){return $d.resolve(null).then(e).catch(my)}:Fd;function my(e){setTimeout(function(){throw e})}function Xl(e){return e==="head"}function Id(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),nn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")ei(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,ei(l);for(var i=l.firstChild;i;){var c=i.nextSibling,d=i.nodeName;i[vn]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=c}}else l==="body"&&ei(e.ownerDocument.body);l=n}while(l);nn(t)}function Pd(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Zo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zo(l),$s(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function py(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[vn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=qt(e.nextSibling),e===null)break}return null}function yy(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=qt(e.nextSibling),e===null))return null;return e}function eh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=qt(e.nextSibling),e===null))return null;return e}function Jo(e){return e.data==="$?"||e.data==="$~"}function Wo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function gy(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function qt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Fo=null;function th(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return qt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function lh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function ah(e,t,l){switch(t=gs(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function ei(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);$s(e)}var Yt=new Map,nh=new Set;function vs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var El=B.d;B.d={f:vy,r:by,D:Sy,C:Ty,L:xy,m:Ey,X:Ay,S:Ry,M:Cy};function vy(){var e=El.f(),t=cs();return e||t}function by(e){var t=Ea(e);t!==null&&t.tag===5&&t.type==="form"?Tf(t):El.r(e)}var tn=typeof document>"u"?null:document;function ih(e,t,l){var a=tn;if(a&&typeof t=="string"&&t){var n=zt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),nh.has(n)||(nh.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),ft(t,"link",e),et(t),a.head.appendChild(t)))}}function Sy(e){El.D(e),ih("dns-prefetch",e,null)}function Ty(e,t){El.C(e,t),ih("preconnect",e,t)}function xy(e,t,l){El.L(e,t,l);var a=tn;if(a&&e&&t){var n='link[rel="preload"][as="'+zt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+zt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+zt(l.imageSizes)+'"]')):n+='[href="'+zt(e)+'"]';var i=n;switch(t){case"style":i=ln(e);break;case"script":i=an(e)}Yt.has(i)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Yt.set(i,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(ti(i))||t==="script"&&a.querySelector(li(i))||(t=a.createElement("link"),ft(t,"link",e),et(t),a.head.appendChild(t)))}}function Ey(e,t){El.m(e,t);var l=tn;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+zt(a)+'"][href="'+zt(e)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=an(e)}if(!Yt.has(i)&&(e=x({rel:"modulepreload",href:e},t),Yt.set(i,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(li(i)))return}a=l.createElement("link"),ft(a,"link",e),et(a),l.head.appendChild(a)}}}function Ry(e,t,l){El.S(e,t,l);var a=tn;if(a&&e){var n=Ra(a).hoistableStyles,i=ln(e);t=t||"default";var c=n.get(i);if(!c){var d={loading:0,preload:null};if(c=a.querySelector(ti(i)))d.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Yt.get(i))&&$o(e,l);var y=c=a.createElement("link");et(y),ft(y,"link",e),y._p=new Promise(function(C,N){y.onload=C,y.onerror=N}),y.addEventListener("load",function(){d.loading|=1}),y.addEventListener("error",function(){d.loading|=2}),d.loading|=4,bs(c,t,a)}c={type:"stylesheet",instance:c,count:1,state:d},n.set(i,c)}}}function Ay(e,t){El.X(e,t);var l=tn;if(l&&e){var a=Ra(l).hoistableScripts,n=an(e),i=a.get(n);i||(i=l.querySelector(li(n)),i||(e=x({src:e,async:!0},t),(t=Yt.get(n))&&Io(e,t),i=l.createElement("script"),et(i),ft(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Cy(e,t){El.M(e,t);var l=tn;if(l&&e){var a=Ra(l).hoistableScripts,n=an(e),i=a.get(n);i||(i=l.querySelector(li(n)),i||(e=x({src:e,async:!0,type:"module"},t),(t=Yt.get(n))&&Io(e,t),i=l.createElement("script"),et(i),ft(i,"link",e),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function sh(e,t,l,a){var n=(n=ae.current)?vs(n):null;if(!n)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ln(l.href),l=Ra(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ln(l.href);var i=Ra(n).hoistableStyles,c=i.get(e);if(c||(n=n.ownerDocument||n,c={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,c),(i=n.querySelector(ti(e)))&&!i._p&&(c.instance=i,c.state.loading=5),Yt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Yt.set(e,l),i||wy(n,e,l,c.state))),t&&a===null)throw Error(s(528,""));return c}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=an(l),l=Ra(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ln(e){return'href="'+zt(e)+'"'}function ti(e){return'link[rel="stylesheet"]['+e+"]"}function rh(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function wy(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ft(t,"link",l),et(t),e.head.appendChild(t))}function an(e){return'[src="'+zt(e)+'"]'}function li(e){return"script[async]"+e}function oh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+zt(l.href)+'"]');if(a)return t.instance=a,et(a),a;var n=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),ft(a,"style",n),bs(a,l.precedence,e),t.instance=a;case"stylesheet":n=ln(l.href);var i=e.querySelector(ti(n));if(i)return t.state.loading|=4,t.instance=i,et(i),i;a=rh(l),(n=Yt.get(n))&&$o(a,n),i=(e.ownerDocument||e).createElement("link"),et(i);var c=i;return c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),ft(i,"link",a),t.state.loading|=4,bs(i,l.precedence,e),t.instance=i;case"script":return i=an(l.src),(n=e.querySelector(li(i)))?(t.instance=n,et(n),n):(a=l,(n=Yt.get(i))&&(a=x({},l),Io(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),et(n),ft(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,bs(a,l.precedence,e));return t.instance}function bs(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,c=0;c<a.length;c++){var d=a[c];if(d.dataset.precedence===t)i=d;else if(i!==n)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function $o(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Io(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ss=null;function ch(e,t,l){if(Ss===null){var a=new Map,n=Ss=new Map;n.set(l,a)}else n=Ss,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var i=l[n];if(!(i[vn]||i[rt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var c=i.getAttribute(t)||"";c=e+c;var d=a.get(c);d?d.push(i):a.set(c,[i])}}return a}function uh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function My(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function fh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Oy(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=ln(a.href),i=t.querySelector(ti(n));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ts.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=i,et(i);return}i=t.ownerDocument||t,a=rh(a),(n=Yt.get(n))&&$o(a,n),i=i.createElement("link"),et(i);var c=i;c._p=new Promise(function(d,y){c.onload=d,c.onerror=y}),ft(i,"link",a),l.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ts.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Po=0;function Ny(e,t){return e.stylesheets&&e.count===0&&Es(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&Es(e,e.stylesheets),e.unsu
vendor: 10,522 bytes, line 50
50spend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Po===0&&(Po=62500*uy());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Es(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Po?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Ts(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Es(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var xs=null;function Es(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,xs=new Map,t.forEach(Dy,e),xs=null,Ts.call(e))}function Dy(e,t){if(!(t.state.loading&4)){var l=xs.get(e);if(l)var a=l.get(null);else{l=new Map,xs.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var c=n[i];(c.nodeName==="LINK"||c.getAttribute("media")!=="not all")&&(l.set(c.dataset.precedence,c),a=c)}a&&l.set(null,a)}n=t.instance,c=n.getAttribute("data-precedence"),i=l.get(c)||a,i===a&&l.set(null,n),l.set(c,n),this.count++,a=Ts.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:ye,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function ky(e,t,l,a,n,i,c,d,y){this.tag=1,this.containerInfo=e,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=Zs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Zs(0),this.hiddenUpdates=Zs(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=c,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=y,this.incompleteTransitions=new Map}function dh(e,t,l,a,n,i,c,d,y,C,N,_){return e=new ky(e,t,l,c,y,C,N,_,d),t=1,i===!0&&(t|=24),i=Ct(3,null,null,t),e.current=i,i.stateNode=e,t=Dr(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:t},Ur(i),e}function hh(e){return e?(e=za,e):za}function mh(e,t,l,a,n,i){n=hh(n),a.context===null?a.context=n:a.pendingContext=n,a=_l(t),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=zl(e,a,t),l!==null&&(xt(l,e,t),Un(l,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ec(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function yh(e){if(e.tag===13||e.tag===31){var t=na(e,67108864);t!==null&&xt(t,e,67108864),ec(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Dt();t=Js(t);var l=na(e,t);l!==null&&xt(l,e,t),ec(e,t)}}var Rs=!0;function _y(e,t,l,a){var n=O.T;O.T=null;var i=B.p;try{B.p=2,tc(e,t,l,a)}finally{B.p=i,O.T=n}}function zy(e,t,l,a){var n=O.T;O.T=null;var i=B.p;try{B.p=8,tc(e,t,l,a)}finally{B.p=i,O.T=n}}function tc(e,t,l,a){if(Rs){var n=lc(a);if(n===null)qo(e,t,a,As,l),bh(e,a);else if(Gy(n,e,t,l,a))a.stopPropagation();else if(bh(e,a),t&4&&-1<Uy.indexOf(e)){for(;n!==null;){var i=Ea(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var c=Pl(i.pendingLanes);if(c!==0){var d=i;for(d.pendingLanes|=2,d.entangledLanes|=2;c;){var y=1<<31-st(c);d.entanglements[1]|=y,c&=~y}tl(i),(xe&6)===0&&(rs=dt()+500,$n(0))}}break;case 31:case 13:d=na(i,2),d!==null&&xt(d,i,2),cs(),ec(i,2)}if(i=lc(a),i===null&&qo(e,t,a,As,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else qo(e,t,a,null,l)}}function lc(e){return e=ar(e),ac(e)}var As=null;function ac(e){if(As=null,e=xa(e),e!==null){var t=h(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=p(t),e!==null)return e;e=null}else if(l===31){if(e=g(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return As=e,null}function vh(e){switch(e){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(Il()){case E:return 2;case j:return 8;case J:case oe:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var nc=!1,Kl=null,Ql=null,Zl=null,ni=new Map,ii=new Map,Jl=[],Uy="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 bh(e,t){switch(e){case"focusin":case"focusout":Kl=null;break;case"dragenter":case"dragleave":Ql=null;break;case"mouseover":case"mouseout":Zl=null;break;case"pointerover":case"pointerout":ni.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ii.delete(t.pointerId)}}function si(e,t,l,a,n,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},t!==null&&(t=Ea(t),t!==null&&yh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Gy(e,t,l,a,n){switch(t){case"focusin":return Kl=si(Kl,e,t,l,a,n),!0;case"dragenter":return Ql=si(Ql,e,t,l,a,n),!0;case"mouseover":return Zl=si(Zl,e,t,l,a,n),!0;case"pointerover":var i=n.pointerId;return ni.set(i,si(ni.get(i)||null,e,t,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,ii.set(i,si(ii.get(i)||null,e,t,l,a,n)),!0}return!1}function Sh(e){var t=xa(e.target);if(t!==null){var l=h(t);if(l!==null){if(t=l.tag,t===13){if(t=p(l),t!==null){e.blockedOn=t,_c(e.priority,function(){gh(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,_c(e.priority,function(){gh(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Cs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=lc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);lr=a,l.target.dispatchEvent(a),lr=null}else return t=Ea(l),t!==null&&yh(t),e.blockedOn=l,!1;t.shift()}return!0}function Th(e,t,l){Cs(e)&&l.delete(t)}function Ly(){nc=!1,Kl!==null&&Cs(Kl)&&(Kl=null),Ql!==null&&Cs(Ql)&&(Ql=null),Zl!==null&&Cs(Zl)&&(Zl=null),ni.forEach(Th),ii.forEach(Th)}function ws(e,t){e.blockedOn===t&&(e.blockedOn=null,nc||(nc=!0,f.unstable_scheduleCallback(f.unstable_NormalPriority,Ly)))}var Ms=null;function xh(e){Ms!==e&&(Ms=e,f.unstable_scheduleCallback(f.unstable_NormalPriority,function(){Ms===e&&(Ms=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(ac(a||l)===null)continue;break}var i=Ea(l);i!==null&&(e.splice(t,3),t-=3,to(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function nn(e){function t(y){return ws(y,e)}Kl!==null&&ws(Kl,e),Ql!==null&&ws(Ql,e),Zl!==null&&ws(Zl,e),ni.forEach(t),ii.forEach(t);for(var l=0;l<Jl.length;l++){var a=Jl[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Jl.length&&(l=Jl[0],l.blockedOn===null);)Sh(l),l.blockedOn===null&&Jl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],c=n[yt]||null;if(typeof i=="function")c||xh(l);else if(c){var d=null;if(i&&i.hasAttribute("formAction")){if(n=i,c=i[yt]||null)d=c.formAction;else if(ac(n)!==null)continue}else d=c.action;typeof d=="function"?l[a+1]=d:(l.splice(a,3),a-=3),xh(l)}}}function Eh(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(c){return n=c})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function ic(e){this._internalRoot=e}Os.prototype.render=ic.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=Dt();mh(l,a,e,t,null,null)},Os.prototype.unmount=ic.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;mh(e.current,2,null,e,null,null),cs(),t[Ta]=null}};function Os(e){this._internalRoot=e}Os.prototype.unstable_scheduleHydration=function(e){if(e){var t=kc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Jl.length&&t!==0&&t<Jl[l].priority;l++);Jl.splice(l,0,e),l===0&&Sh(e)}};var Rh=r.version;if(Rh!=="19.2.1")throw Error(s(527,Rh,"19.2.1"));B.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=v(t),e=e!==null?z(e):null,e=e===null?null:e.stateNode,e};var jy={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.1"};
vendor: 4,226 bytes, line 50
50if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ns=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ns.isDisabled&&Ns.supportsFiber)try{il=Ns.inject(jy),it=Ns}catch{}}return oi.createRoot=function(e,t){if(!u(e))throw Error(s(299));var l=!1,a="",n=Df,i=kf,c=_f;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=dh(e,1,!1,null,null,l,a,null,n,i,c,Eh),e[Ta]=t.current,Ho(e),new ic(t)},oi.hydrateRoot=function(e,t,l){if(!u(e))throw Error(s(299));var a=!1,n="",i=Df,c=kf,d=_f,y=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(c=l.onCaughtError),l.onRecoverableError!==void 0&&(d=l.onRecoverableError),l.formState!==void 0&&(y=l.formState)),t=dh(e,1,!0,t,l??null,a,n,y,i,c,d,Eh),t.context=hh(null),l=t.current,a=Dt(),a=Js(a),n=_l(a),n.callback=null,zl(l,n,a),l=a,t.current.lanes=l,gn(t,l),tl(t),e[Ta]=t.current,Ho(e),new Os(t)},oi.version="19.2.1",oi}var zh;function Jy(){if(zh)return rc.exports;zh=1;function f(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(f)}catch(r){console.error(r)}}return f(),rc.exports=Zy(),rc.exports}var Wy=Jy();function lm(f){var r,o,s="";if(typeof f=="string"||typeof f=="number")s+=f;else if(typeof f=="object")if(Array.isArray(f)){var u=f.length;for(r=0;r<u;r++)f[r]&&(o=lm(f[r]))&&(s&&(s+=" "),s+=o)}else for(o in f)f[o]&&(s&&(s+=" "),s+=o);return s}function Fy(){for(var f,r,o=0,s="",u=arguments.length;o<u;o++)(f=arguments[o])&&(r=lm(f))&&(s&&(s+=" "),s+=r);return s}const wc="-",$y=f=>{const r=Py(f),{conflictingClassGroups:o,conflictingClassGroupModifiers:s}=f;return{getClassGroupId:p=>{const g=p.split(wc);return g[0]===""&&g.length!==1&&g.shift(),am(g,r)||Iy(p)},getConflictingClassGroupIds:(p,g)=>{const m=o[p]||[];return g&&s[p]?[...m,...s[p]]:m}}},am=(f,r)=>{if(f.length===0)return r.classGroupId;const o=f[0],s=r.nextPart.get(o),u=s?am(f.slice(1),s):void 0;if(u)return u;if(r.validators.length===0)return;const h=f.join(wc);return r.validators.find(({validator:p})=>p(h))?.classGroupId},Uh=/^\[(.+)\]$/,Iy=f=>{if(Uh.test(f)){const r=Uh.exec(f)[1],o=r?.substring(0,r.indexOf(":"));if(o)return"arbitrary.."+o}},Py=f=>{const{theme:r,classGroups:o}=f,s={nextPart:new Map,validators:[]};for(const u in o)xc(o[u],s,u,r);return s},xc=(f,r,o,s)=>{f.forEach(u=>{if(typeof u=="string"){const h=u===""?r:Gh(r,u);h.classGroupId=o;return}if(typeof u=="function"){if(e0(u)){xc(u(s),r,o,s);return}r.validators.push({validator:u,classGroupId:o});return}Object.entries(u).forEach(([h,p])=>{xc(p,Gh(r,h),o,s)})})},Gh=(f,r)=>{let o=f;return r.split(wc).forEach(s=>{o.nextPart.has(s)||o.nextPart.set(s,{nextPart:new Map,validators:[]}),o=o.nextPart.get(s)}),o},e0=f=>f.isThemeGetter,t0=f=>{if(f<1)return{get:()=>{},set:()=>{}};let r=0,o=new Map,s=new Map;const u=(h,p)=>{o.set(h,p),r++,r>f&&(r=0,s=o,o=new Map)};return{get(h){let p=o.get(h);if(p!==void 0)return p;if((p=s.get(h))!==void 0)return u(h,p),p},set(h,p){o.has(h)?o.set(h,p):u(h,p)}}},Ec="!",Rc=":",l0=Rc.length,a0=f=>{const{prefix:r,experimentalParseClassName:o}=f;let s=u=>{const h=[];let p=0,g=0,m=0,v;for(let P=0;P<u.length;P++){let ee=u[P];if(p===0&&g===0){if(ee===Rc){h.push(u.slice(m,P)),m=P+l0;continue}if(ee==="/"){v=P;continue}}ee==="["?p++:ee==="]"?p--:ee==="("?g++:ee===")"&&g--}const z=h.length===0?u:u.substring(m),x=n0(z),L=x!==z,Q=v&&v>m?v-m:void 0;return{modifiers:h,hasImportantModifier:L,baseClassName:x,maybePostfixModifierPosition:Q}};if(r){const u=r+Rc,h=s;s=p=>p.startsWith(u)?h(p.substring(u.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:p,maybePostfixModifierPosition:void 0}}if(o){const u=s;s=h=>o({className:h,parseClassName:u})}return s},n0=f=>f.endsWith(Ec)?f.substring(0,f.length-1):f.startsWith(Ec)?f.substring(1):f,i0=f=>{const r=Object.fromEntries(f.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const u=[];let h=[];
vendor: 5,071 bytes, line 50
50return s.forEach(p=>{p[0]==="["||r[p]?(u.push(...h.sort(),p),h=[]):h.push(p)}),u.push(...h.sort()),u}},s0=f=>({cache:t0(f.cacheSize),parseClassName:a0(f),sortModifiers:i0(f),...$y(f)}),r0=/\s+/,o0=(f,r)=>{const{parseClassName:o,getClassGroupId:s,getConflictingClassGroupIds:u,sortModifiers:h}=r,p=[],g=f.trim().split(r0);let m="";for(let v=g.length-1;v>=0;v-=1){const z=g[v],{isExternal:x,modifiers:L,hasImportantModifier:Q,baseClassName:P,maybePostfixModifierPosition:ee}=o(z);if(x){m=z+(m.length>0?" "+m:m);continue}let Oe=!!ee,Ne=s(Oe?P.substring(0,ee):P);if(!Ne){if(!Oe){m=z+(m.length>0?" "+m:m);continue}if(Ne=s(P),!Ne){m=z+(m.length>0?" "+m:m);continue}Oe=!1}const me=h(L).join(":"),ye=Q?me+Ec:me,ve=ye+Ne;if(p.includes(ve))continue;p.push(ve);const Te=u(Ne,Oe);for(let De=0;De<Te.length;++De){const le=Te[De];p.push(ye+le)}m=z+(m.length>0?" "+m:m)}return m};function c0(){let f=0,r,o,s="";for(;f<arguments.length;)(r=arguments[f++])&&(o=nm(r))&&(s&&(s+=" "),s+=o);return s}const nm=f=>{if(typeof f=="string")return f;let r,o="";for(let s=0;s<f.length;s++)f[s]&&(r=nm(f[s]))&&(o&&(o+=" "),o+=r);return o};function u0(f,...r){let o,s,u,h=p;function p(m){const v=r.reduce((z,x)=>x(z),f());return o=s0(v),s=o.cache.get,u=o.cache.set,h=g,g(m)}function g(m){const v=s(m);if(v)return v;const z=o0(m,o);return u(m,z),z}return function(){return h(c0.apply(null,arguments))}}const Ie=f=>{const r=o=>o[f]||[];return r.isThemeGetter=!0,r},im=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,sm=/^\((?:(\w[\w-]*):)?(.+)\)$/i,f0=/^\d+\/\d+$/,d0=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,h0=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,m0=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,p0=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,y0=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,sn=f=>f0.test(f),re=f=>!!f&&!Number.isNaN(Number(f)),Fl=f=>!!f&&Number.isInteger(Number(f)),dc=f=>f.endsWith("%")&&re(f.slice(0,-1)),Rl=f=>d0.test(f),g0=()=>!0,v0=f=>h0.test(f)&&!m0.test(f),rm=()=>!1,b0=f=>p0.test(f),S0=f=>y0.test(f),T0=f=>!Y(f)&&!V(f),x0=f=>fn(f,um,rm),Y=f=>im.test(f),ga=f=>fn(f,fm,v0),hc=f=>fn(f,w0,re),Lh=f=>fn(f,om,rm),E0=f=>fn(f,cm,S0),Ds=f=>fn(f,dm,b0),V=f=>sm.test(f),ci=f=>dn(f,fm),R0=f=>dn(f,M0),jh=f=>dn(f,om),A0=f=>dn(f,um),C0=f=>dn(f,cm),ks=f=>dn(f,dm,!0),fn=(f,r,o)=>{const s=im.exec(f);return s?s[1]?r(s[1]):o(s[2]):!1},dn=(f,r,o=!1)=>{const s=sm.exec(f);return s?s[1]?r(s[1]):o:!1},om=f=>f==="position"||f==="percentage",cm=f=>f==="image"||f==="url",um=f=>f==="length"||f==="size"||f==="bg-size",fm=f=>f==="length",w0=f=>f==="number",M0=f=>f==="family-name",dm=f=>f==="shadow",O0=()=>{const f=Ie("color"),r=Ie("font"),o=Ie("text"),s=Ie("font-weight"),u=Ie("tracking"),h=Ie("leading"),p=Ie("breakpoint"),g=Ie("container"),m=Ie("spacing"),v=Ie("radius"),z=Ie("shadow"),x=Ie("inset-shadow"),L=Ie("text-shadow"),Q=Ie("drop-shadow"),P=Ie("blur"),ee=Ie("perspective"),Oe=Ie("aspect"),Ne=Ie("ease"),me=Ie("animate"),ye=()=>["auto","avoid","all","avoid-page","page","left","right","column"],ve=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Te=()=>[...ve(),V,Y],De=()=>["auto","hidden","clip","visible","scroll"],le=()=>["auto","contain","none"],K=()=>[V,Y,m],je=()=>[sn,"full","auto",...K()],Et=()=>[Fl,"none","subgrid",V,Y],Pe=()=>["auto",{span:["full",Fl,V,Y]},Fl,V,Y],Be=()=>[Fl,"auto",V,Y],Rt=()=>["auto","min","max","fr",V,Y],at=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ge=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...K()],B=()=>[sn,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...K()],U=()=>[f,V,Y],ge=()=>[...ve(),jh,Lh,{position:[V,Y]}],pe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],b=()=>["auto","cover","contain",A0,x0,{size:[V,Y]}],D=()=>[dc,ci,ga],G=()=>["","none","full",v,V,Y],H=()=>["",re,ci,ga],$=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Z=()=>[re,dc,jh,Lh],Ye=()=>["","none",P,V,Y],se=()=>["none",re,V,Y],nt=()=>["none",re,V,Y],Qt=()=>[re,V,Y],$t=()=>[sn,"full",...K()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Rl],breakpoint:[Rl],color:[g0],container:[Rl],"drop-shadow":[Rl],ease:["in","out","in-out"],font:[T0],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Rl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Rl],shadow:[Rl],spacing:["px",re],text:[Rl],"text-shadow":[Rl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",sn,Y,V,Oe]}
vendor: 12,779 bytes, line 50
50],container:["container"],columns:[{columns:[re,Y,V,g]}],"break-after":[{"break-after":ye()}],"break-before":[{"break-before":ye()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:Te()}],overflow:[{overflow:De()}],"overflow-x":[{"overflow-x":De()}],"overflow-y":[{"overflow-y":De()}],overscroll:[{overscroll:le()}],"overscroll-x":[{"overscroll-x":le()}],"overscroll-y":[{"overscroll-y":le()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:je()}],"inset-x":[{"inset-x":je()}],"inset-y":[{"inset-y":je()}],start:[{start:je()}],end:[{end:je()}],top:[{top:je()}],right:[{right:je()}],bottom:[{bottom:je()}],left:[{left:je()}],visibility:["visible","invisible","collapse"],z:[{z:[Fl,"auto",V,Y]}],basis:[{basis:[sn,"full","auto",g,...K()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[re,sn,"auto","initial","none",Y]}],grow:[{grow:["",re,V,Y]}],shrink:[{shrink:["",re,V,Y]}],order:[{order:[Fl,"first","last","none",V,Y]}],"grid-cols":[{"grid-cols":Et()}],"col-start-end":[{col:Pe()}],"col-start":[{"col-start":Be()}],"col-end":[{"col-end":Be()}],"grid-rows":[{"grid-rows":Et()}],"row-start-end":[{row:Pe()}],"row-start":[{"row-start":Be()}],"row-end":[{"row-end":Be()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Rt()}],"auto-rows":[{"auto-rows":Rt()}],gap:[{gap:K()}],"gap-x":[{"gap-x":K()}],"gap-y":[{"gap-y":K()}],"justify-content":[{justify:[...at(),"normal"]}],"justify-items":[{"justify-items":[...Ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ge()]}],"align-content":[{content:["normal",...at()]}],"align-items":[{items:[...Ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":at()}],"place-items":[{"place-items":[...Ge(),"baseline"]}],"place-self":[{"place-self":["auto",...Ge()]}],p:[{p:K()}],px:[{px:K()}],py:[{py:K()}],ps:[{ps:K()}],pe:[{pe:K()}],pt:[{pt:K()}],pr:[{pr:K()}],pb:[{pb:K()}],pl:[{pl:K()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":K()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":K()}],"space-y-reverse":["space-y-reverse"],size:[{size:B()}],w:[{w:[g,"screen",...B()]}],"min-w":[{"min-w":[g,"screen","none",...B()]}],"max-w":[{"max-w":[g,"screen","none","prose",{screen:[p]},...B()]}],h:[{h:["screen","lh",...B()]}],"min-h":[{"min-h":["screen","lh","none",...B()]}],"max-h":[{"max-h":["screen","lh",...B()]}],"font-size":[{text:["base",o,ci,ga]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,V,hc]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",dc,Y]}],"font-family":[{font:[R0,Y,r]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[u,V,Y]}],"line-clamp":[{"line-clamp":[re,"none",V,hc]}],leading:[{leading:[h,...K()]}],"list-image":[{"list-image":["none",V,Y]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",V,Y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:U()}],"text-color":[{text:U()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[re,"from-font","auto",V,ga]}],"text-decoration-color":[{decoration:U()}],"underline-offset":[{"underline-offset":[re,"auto",V,Y]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:K()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V,Y]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V,Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:pe()}],"bg-size":[{bg:b()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fl,V,Y],radial:["",V,Y],conic:[Fl,V,Y]},C0,E0]}],"bg-color":[{bg:U()}],"gradient-from-pos":[{from:D()}],"gradient-via-pos":[{via:D()}],"gradient-to-pos":[{to:D()}],"gradient-from":[{from:U()}],"gradient-via":[{via:U()}],"gradient-to":[{to:U()}],rounded:[{rounded:G()}],"rounded-s":[{"rounded-s":G()}],"rounded-e":[{"rounded-e":G()}],"rounded-t":[{"rounded-t":G()}],"rounded-r":[{"rounded-r":G()}],"rounded-b":[{"rounded-b":G()}],"rounded-l":[{"rounded-l":G()}],"rounded-ss":[{"rounded-ss":G()}],"rounded-se":[{"rounded-se":G()}],"rounded-ee":[{"rounded-ee":G()}],"rounded-es":[{"rounded-es":G()}],"rounded-tl":[{"rounded-tl":G()}],"rounded-tr":[{"rounded-tr":G()}],"rounded-br":[{"rounded-br":G()}],"rounded-bl":[{"rounded-bl":G()}],"border-w":[{border:H()}],"border-w-x":[{"border-x":H()}],"border-w-y":[{"border-y":H()}],"border-w-s":[{"border-s":H()}],"border-w-e":[{"border-e":H()}],"border-w-t":[{"border-t":H()}],"border-w-r":[{"border-r":H()}],"border-w-b":[{"border-b":H()}],"border-w-l":[{"border-l":H()}],"divide-x":[{"divide-x":H()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":H()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:U()}],"border-color-x":[{"border-x":U()}],"border-color-y":[{"border-y":U()}],"border-color-s":[{"border-s":U()}],"border-color-e":[{"border-e":U()}],"border-color-t":[{"border-t":U()}],"border-color-r":[{"border-r":U()}],"border-color-b":[{"border-b":U()}],"border-color-l":[{"border-l":U()}],"divide-color":[{divide:U()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[re,V,Y]}],"outline-w":[{outline:["",re,ci,ga]}],"outline-color":[{outline:U()}],shadow:[{shadow:["","none",z,ks,Ds]}],"shadow-color":[{shadow:U()}],"inset-shadow":[{"inset-shadow":["none",x,ks,Ds]}],"inset-shadow-color":[{"inset-shadow":U()}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:U()}],"ring-offset-w":[{"ring-offset":[re,ga]}],"ring-offset-color":[{"ring-offset":U()}],"inset-ring-w":[{"inset-ring":H()}],"inset-ring-color":[{"inset-ring":U()}],"text-shadow":[{"text-shadow":["none",L,ks,Ds]}],"text-shadow-color":[{"text-shadow":U()}],opacity:[{opacity:[re,V,Y]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[re]}],"mask-image-linear-from-pos":[{"mask-linear-from":Z()}],"mask-image-linear-to-pos":[{"mask-linear-to":Z()}],"mask-image-linear-from-color":[{"mask-linear-from":U()}],"mask-image-linear-to-color":[{"mask-linear-to":U()}],"mask-image-t-from-pos":[{"mask-t-from":Z()}],"mask-image-t-to-pos":[{"mask-t-to":Z()}],"mask-image-t-from-color":[{"mask-t-from":U()}],"mask-image-t-to-color":[{"mask-t-to":U()}],"mask-image-r-from-pos":[{"mask-r-from":Z()}],"mask-image-r-to-pos":[{"mask-r-to":Z()}],"mask-image-r-from-color":[{"mask-r-from":U()}],"mask-image-r-to-color":[{"mask-r-to":U()}],"mask-image-b-from-pos":[{"mask-b-from":Z()}],"mask-image-b-to-pos":[{"mask-b-to":Z()}],"mask-image-b-from-color":[{"mask-b-from":U()}],"mask-image-b-to-color":[{"mask-b-to":U()}],"mask-image-l-from-pos":[{"mask-l-from":Z()}],"mask-image-l-to-pos":[{"mask-l-to":Z()}],"mask-image-l-from-color":[{"mask-l-from":U()}],"mask-image-l-to-color":[{"mask-l-to":U()}],"mask-image-x-from-pos":[{"mask-x-from":Z()}],"mask-image-x-to-pos":[{"mask-x-to":Z()}],"mask-image-x-from-color":[{"mask-x-from":U()}],"mask-image-x-to-color":[{"mask-x-to":U()}],"mask-image-y-from-pos":[{"mask-y-from":Z()}],"mask-image-y-to-pos":[{"mask-y-to":Z()}],"mask-image-y-from-color":[{"mask-y-from":U()}],"mask-image-y-to-color":[{"mask-y-to":U()}],"mask-image-radial":[{"mask-radial":[V,Y]}],"mask-image-radial-from-pos":[{"mask-radial-from":Z()}],"mask-image-radial-to-pos":[{"mask-radial-to":Z()}],"mask-image-radial-from-color":[{"mask-radial-from":U()}],"mask-image-radial-to-color":[{"mask-radial-to":U()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":ve()}],"mask-image-conic-pos":[{"mask-conic":[re]}],"mask-image-conic-from-pos":[{"mask-conic-from":Z()}],"mask-image-conic-to-pos":[{"mask-conic-to":Z()}],"mask-image-conic-from-color":[{"mask-conic-from":U()}],"mask-image-conic-to-color":[{"mask-conic-to":U()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:pe()}],"mask-size":[{mask:b()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",V,Y]}],filter:[{filter:["","none",V,Y]}],blur:[{blur:Ye()}],brightness:[{brightness:[re,V,Y]}],contrast:[{contrast:[re,V,Y]}],"drop-shadow":[{"drop-shadow":["","none",Q,ks,Ds]}],"drop-shadow-color":[{"drop-shadow":U()}],grayscale:[{grayscale:["",re,V,Y]}],"hue-rotate":[{"hue-rotate":[re,V,Y]}],invert:[{invert:["",re,V,Y]}],saturate:[{saturate:[re,V,Y]}],sepia:[{sepia:["",re,V,Y]}],"backdrop-filter":[{"backdrop-filter":["","none",V,Y]}],"backdrop-blur":[{"backdrop-blur":Ye()}],"backdrop-brightness":[{"backdrop-brightness":[re,V,Y]}],"backdrop-contrast":[{"backdrop-contrast":[re,V,Y]}],"backdrop-grayscale":[{"backdrop-grayscale":["",re,V,Y]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[re,V,Y]}],"backdrop-invert":[{"backdrop-invert":["",re,V,Y]}],"backdrop-opacity":[{"backdrop-opacity":[re,V,Y]}],"backdrop-saturate":[{"backdrop-saturate":[re,V,Y]}],"backdrop-sepia":[{"backdrop-sepia":["",re,V,Y]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":K()}],"border-spacing-x":[{"border-spacing-x":K()}],"border-spacing-y":[{"border-spacing-y":K()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",V,Y]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[re,"initial",V,Y]}],ease:[{ease:["linear","initial",Ne,V,Y]}],delay:[{delay:[re,V,Y]}],animate:[{animate:["none",me,V,Y]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[ee,V,Y]}],"perspective-origin":[{"perspective-origin":Te()}],rotate:[{rotate:se()}],"rotate-x":[{"rotate-x":se()}],"rotate-y":[{"rotate-y":se()}],"rotate-z":[{"rotate-z":se()}],scale:[{scale:nt()}],"scale-x":[{"scale-x":nt()}],"scale-y":[{"scale-y":nt()}],"scale-z":[{"scale-z":nt()}],"scale-3d":["scale-3d"],skew:[{skew:Qt()}],"skew-x":[{"skew-x":Qt()}],"skew-y":[{"skew-y":Qt()}],transform:[{transform:[V,Y,"","none","gpu","cpu"]}],"transform-origin":[{origin:Te()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$t()}],"translate-x":[{"translate-x":$t()}],"translate-y":[{"translate-y":$t()}],"translate-z":[{"translate-z":$t()}],"translate-none":["translate-none"],accent:[{accent:U()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:U()}
vendor: 6,677 bytes, lines 50-80
50],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V,Y]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":K()}],"scroll-mx":[{"scroll-mx":K()}],"scroll-my":[{"scroll-my":K()}],"scroll-ms":[{"scroll-ms":K()}],"scroll-me":[{"scroll-me":K()}],"scroll-mt":[{"scroll-mt":K()}],"scroll-mr":[{"scroll-mr":K()}],"scroll-mb":[{"scroll-mb":K()}],"scroll-ml":[{"scroll-ml":K()}],"scroll-p":[{"scroll-p":K()}],"scroll-px":[{"scroll-px":K()}],"scroll-py":[{"scroll-py":K()}],"scroll-ps":[{"scroll-ps":K()}],"scroll-pe":[{"scroll-pe":K()}],"scroll-pt":[{"scroll-pt":K()}],"scroll-pr":[{"scroll-pr":K()}],"scroll-pb":[{"scroll-pb":K()}],"scroll-pl":[{"scroll-pl":K()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V,Y]}],fill:[{fill:["none",...U()]}],"stroke-w":[{stroke:[re,ci,ga,hc]}],stroke:[{stroke:["none",...U()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},N0=u0(O0);function D0(...f){return N0(Fy(f))}var F=Cc();/** 51 * @license lucide-react v0.453.0 - ISC 52 * 53 * This source code is licensed under the ISC license. 54 * See the LICENSE file in the root directory of this source tree. 55 */const k0=f=>f.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),hm=(...f)=>f.filter((r,o,s)=>!!r&&s.indexOf(r)===o).join(" ");/** 56 * @license lucide-react v0.453.0 - ISC 57 * 58 * This source code is licensed under the ISC license. 59 * See the LICENSE file in the root directory of this source tree. 60 */var _0={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 61 * @license lucide-react v0.453.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const z0=F.forwardRef(({color:f="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:u="",children:h,iconNode:p,...g},m)=>F.createElement("svg",{ref:m,..._0,width:r,height:r,stroke:f,strokeWidth:s?Number(o)*24/Number(r):o,className:hm("lucide",u),...g},[...p.map(([v,z])=>F.createElement(v,z)),...Array.isArray(h)?h:[h]]));/** 66 * @license lucide-react v0.453.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */const mm=(f,r)=>{const o=F.forwardRef(({className:s,...u},h)=>F.createElement(z0,{ref:h,iconNode:r,className:hm(`lucide-${k0(f)}`,s),...u}));return o.displayName=`${f}`,o};/** 71 * @license lucide-react v0.453.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const U0=mm("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** 76 * @license lucide-react v0.453.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const G0=mm("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);
80class L0 extends F.Component{constructor(r){super(r),this.state={hasError:!1,error:null}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}render(){return this.state.hasError?T.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:27",className:"flex items-center justify-center min-h-screen p-8 bg-background",children:T.jsxs("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:28",className:"flex flex-col items-center w-full max-w-2xl p-8",children:[T.jsx(G0,{"data-loc":"client/src/components/ErrorBoundary.tsx:29",size:48,className:"text-destructive mb-6 flex-shrink-0"}),T.jsx("h2",{"data-loc":"client/src/components/ErrorBoundary.tsx:34",className:"text-xl mb-4",children:"An unexpected error occurred."}),T.jsx("div",{"data-loc":"client/src/components/ErrorBoundary.tsx:36",className:"p-4 w-full rounded bg-muted overflow-auto mb-6",children:T.jsx("pre",{"data-loc":"client/src/components/ErrorBoundary.tsx:37",className:"text-sm text-muted-foreground whitespace-break-spaces",children:this.state.error?.stack})}),T.jsxs("button",{"data-loc":"client/src/components/ErrorBoundary.tsx:42",onClick:()=>window.location.reload(),className:D0("flex items-center gap-2 px-4 py-2 rounded-lg","bg-primary text-primary-foreground","hover:opacity-90 cursor-pointer"),children:[T.jsx(U0,{"data-loc":"client/src/components/ErrorBoundary.tsx:50",size:16}),"Reload Page"]})]})}):this.props.children}}const j0="modulepreload",B0=function(f){return"/"+f},Bh={},Hh=function(r,o,s){let u=Promise.resolve();if(o&&o.length>0){let m=function(v){return Promise.all(v.map(z=>Promise.resolve(z).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const p=document.querySelector("meta[property=csp-nonce]"),g=p?.nonce||p?.getAttribute("nonce");u=m(o.map(v=>{if(v=B0(v),v in Bh)return;Bh[v]=!0;const z=v.endsWith(".css"),x=z?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${x}`))return;const L=document.createElement("link");if(L.rel=z?"stylesheet":j0,z||(L.as="script"),L.crossOrigin="",L.href=v,g&&L.setAttribute("nonce",g),document.head.appendChild(L),z)return new Promise((Q,P)=>{L.addEventListener("load",Q),L.addEventListener("error",()=>P(new Error(`Unable to preload CSS for ${v}`)))})}))}function h(p){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=p,window.dispatchEvent(g),!g.defaultPrevented)throw p}return u.then(p=>{for(const g of p||[])g.status==="rejected"&&h(g.reason);return r().catch(h)})};class H0{context=null;enabled=!0;setEnabled(r){this.enabled=r,this.context&&(r?this.context.resume():this.context.suspend())}async unlock(){if(!this.enabled)return;const r=this.getContext();r.state==="suspended"&&await r.resume()}handleEvent(r){if(this.enabled)switch(r.type){case"deliveryCompleted":this.sequence([{frequency:392,duration:.12,waveform:"triangle"},{frequency:523.25,duration:.13,waveform:"triangle"},{frequency:659.25,duration:.22,waveform:"sine"}]);break;case"doorAppeared":this.rumble(1.35,.026),this.sequence([{frequency:73.42,duration:.42,waveform:"sine"},{frequency:146.83,duration:.18,waveform:"triangle"},{frequency:196,duration:.2,waveform:"triangle"},{frequency:293.66,duration:.34,waveform:"sine"}]);break;case"doorOpened":this.rumble(1.9,.04),this.sequence([{frequency:55,duration:.5,waveform:"sine",detune:-7},{frequency:110,duration:.22,waveform:"triangle"},{frequency:164.81,duration:.22,waveform:"triangle"},{frequency:220,duration:.25,waveform:"triangle"},{frequency:329.63,duration:.48,waveform:"sine"}]);break;case"creatureBonded":this.sequence([{frequency:523.25,duration:.08},{frequency:659.25,duration:.08},{frequency:783.99,duration:.16}]);break;case"tilePlaced":this.sequence([{frequency:130.81,duration:.06},{frequency:98,duration:.08}]);break;case"saveReset":this.sequence([{frequency:220,duration:.08},{frequency:174.61,duration:.08},{frequency:130.81,duration:.16}]);break}}dispose(){this.context?.close(),this.context=null}getContext(){return this.context||(this.context=new AudioContext),this.context}sequence(r){const o=this.getContext();if(o.state==="suspended")return;let s=o.currentTime;for(const u of r){const h=o.createOscillator(),p=o.createGain();h.type=u.waveform??"square",h.frequency.setValueAtTime(u.frequency,s),h.detune.setValueAtTime(u.detune??0,s),p.gain.setValueAtTime(1e-4,s),p.gain.exponentialRampToValueAtTime(u.volume??.035,s+Math.min(.018,u.duration*.2)),p.gain.exponentialRampToValueAtTime(1e-4,s+u.duration),h.connect(p),p.connect(o.destination),h.start(s),h.stop(s+u.duration),s+=u.duration*.88}}rumble(r,o){const s=this.getContext();if(s.state==="suspended")return;const u=Math.ceil(s.sampleRate*r),h=s.createBuffer(1,u,s.sampleRate),p=h.getChannelData(0);let g=0;for(let x=0;x<u;x++){const L=Math.sin(x*12.9898+78.233)*43758.5453,Q=(L-Math.floor(L))*2-1;g=g*.97+Q*.03,p[x]=g}const m=s.createBufferSource(),v=s.createBiquadFilter(),z=s.createGain();v.type="lowpass",v.frequency.setValueAtTime(180,s.currentTime),v.frequency.exponentialRampToValueAtTime(58,s.currentTime+r),z.gain.setValueAtTime(o,s.currentTime),z.gain.exponentialRampToValueAtTime(1e-4,s.currentTime+r),m.buffer=h,m.connect(v),v.connect(z),z.connect(s.destination),m.start()}}const pm="atlas.controls.v1",Ft=f=>f,ym={standard:{moveUp:[12],moveDown:[13],moveLeft:[14],moveRight:[15],interact:[0],back:[1],start:[9],select:[8],run:[4,7],build:[3],reset:[]},xbox:{moveUp:[12],moveDown:[13],moveLeft:[14],moveRight:[15],interact:[0],back:[1],start:[9],select:[8],run:[4,7],build:[3],reset:[]},playstation:{moveUp:[12],moveDown:[13],moveLeft:[14],moveRight:[15],interact:[0],back:[1],start:[9],select:[8],run:[4,7],build:[2],reset:[]}};function gm(f){return Object.fromEntries(Object.entries(ym[f]).map(([r,o])=>[r,[...o]]))}function Xs(){return{version:1,keyboard:{moveUp:Ft(["KeyW","ArrowUp"]),moveDown:Ft(["KeyS","ArrowDown"]),moveLeft:Ft
80(["KeyA","ArrowLeft"]),moveRight:Ft(["KeyD","ArrowRight"]),interact:Ft(["KeyE","Space","KeyZ"]),back:Ft(["Escape","KeyX"]),start:Ft(["Enter","KeyP"]),select:Ft(["Tab","KeyC"]),run:Ft(["ShiftLeft","ShiftRight"]),build:Ft(["KeyB"]),reset:Ft(["KeyR"])},gamepad:gm("standard"),gamepadPreset:"standard",gamepadDeadzone:"standard",gamepadCenter:{x:0,y:0},touch:{handedness:"left",size:"large",showStartSelect:!0,controlStyle:"analog",sensitivity:"standard",opacity:"soft",showCameraReset:!0,onboardingComplete:!1},haptics:"subtle",notifications:"off",tutorial:{stage:"move",dismissed:!1}}}function q0(f){return!!f&&typeof f=="object"}function Vs(f){const r=Xs();if(!f||typeof f!="object")return r;const o=f,s=(u,h)=>q0(u)?Object.fromEntries(Object.entries(h).map(([p,g])=>{const m=u[p];return[p,Array.isArray(m)?m.filter(v=>typeof v==typeof g[0]):g]})):h;return{version:1,keyboard:s(o.keyboard,r.keyboard),gamepad:s(o.gamepad,r.gamepad),gamepadPreset:o.gamepadPreset==="xbox"||o.gamepadPreset==="playstation"?o.gamepadPreset:"standard",gamepadDeadzone:o.gamepadDeadzone==="tight"||o.gamepadDeadzone==="wide"?o.gamepadDeadzone:"standard",gamepadCenter:{x:typeof o.gamepadCenter?.x=="number"&&Number.isFinite(o.gamepadCenter.x)?Math.max(-1,Math.min(1,o.gamepadCenter.x)):0,y:typeof o.gamepadCenter?.y=="number"&&Number.isFinite(o.gamepadCenter.y)?Math.max(-1,Math.min(1,o.gamepadCenter.y)):0},touch:{handedness:o.touch?.handedness==="right"?"right":"left",size:o.touch?.size==="normal"?"normal":"large",showStartSelect:o.touch?.showStartSelect!==!1,controlStyle:o.touch?.controlStyle==="dpad"?"dpad":"analog",sensitivity:o.touch?.sensitivity==="gentle"||o.touch?.sensitivity==="quick"?o.touch.sensitivity:"standard",opacity:o.touch?.opacity==="solid"?"solid":"soft",showCameraReset:o.touch?.showCameraReset!==!1,onboardingComplete:o.touch?.onboardingComplete===!0},haptics:o.haptics==="off"?"off":"subtle",notifications:o.notifications==="route-reminders"?"route-reminders":"off",tutorial:{stage:o.tutorial?.stage==="listen"||o.tutorial?.stage==="build"||o.tutorial?.stage==="complete"?o.tutorial.stage:"move",dismissed:o.tutorial?.dismissed===!0}}}function Y0(f,r){return{...f,gamepad:gm(r),gamepadPreset:r}}function V0(f,r){return{...f,gamepad:{...f.gamepad,[r]:[...ym[f.gamepadPreset][r]]}}}function X0(f,r){const o=Xs();return{...f,keyboard:{...f.keyboard,[r]:[...o.keyboard[r]]}}}const K0=new Set(["moveUp","moveDown","moveLeft","moveRight"]);function Q0(f){const r=new Map;for(const o of Object.keys(f.keyboard))for(const s of f.keyboard[o]){const u=r.get(s)??[];u.push(o),r.set(s,u)}return[...r.entries()].filter(([,o])=>o.length>1&&!o.every(s=>K0.has(s))).map(([o,s])=>({code:o,actions:s}))}function Z0(f){const r=new Map;for(const o of Object.keys(f.gamepad))for(const s of f.gamepad[o]){const u=r.get(s)??[];u.push(o),r.set(s,u)}return[...r.entries()].filter(([,o])=>o.length>1).map(([o,s])=>({button:o,actions:s}))}function J0(f=typeof window>"u"?null:window.localStorage){try{return Vs(f?JSON.parse(f.getItem(pm)??"null"):null)}catch{return Xs()}}function W0(f,r=typeof window>"u"?null:window.localStorage){try{r?.setItem(pm,JSON.stringify(Vs(f)))}catch{}}const F0={tight:.16,standard:.24,wide:.34};function qh(f,r,o){const s=Math.hypot(f,r),u=F0[o];if(s<=u)return{x:0,y:0};const h=Math.min(1,(s-u)/(1-u));return{x:f/s*h,y:r/s*h}}class $0{constructor(r=window,o=J0()){this.target=r,this.profile=Vs(o),r.addEventListener("keydown",this.onKeyDownBound,{passive:!1}),r.addEventListener("keyup",this.onKeyUpBound,{passive:!1}),r.addEventListener("blur",this.onBlurBound)}keys=new Set;virtualDirections=new Set;virtualStick={x:0,y:0};virtualRun=!1;queued=new Set;gamepadPressed=new Set;gamepadCapturePending=!1;capturedGamepadButton=null;profile;onKeyDownBound=r=>this.onKeyDown(r);onKeyUpBound=r=>this.onKeyUp(r);onBlurBound=()=>this.clearHeldInput();nextFrame(){const r=this.readGamepad(),o=L=>this.profile.keyboard[L].some(Q=>this.keys.has(Q))||this.profile.gamepad[L].some(Q=>r.buttons.has(Q)),s=o("moveLeft")||this.virtualDirections.has("left"),u=o("moveRight")||this.virtualDirections.has("right"),h=o("moveUp")||this.virtualDirections.has("up"),p=o("moveDown")||this.virtualDirections.has("down"),g=Number(u)-Number(s),m=Number(p)-Number(h),v=g!==0||m!==0,z=this.virtualStick.x!==0||this.virtualStick.y!==0;return{moveX:v?g:z?this.virtualStick.x:r.x,moveY:v?m:z?this.virtualStick.y:r.y,run:o("run")||this.virtualRun,interactPressed:this.consume("interact"),buildPressed:this.consume("build"),resetPressed:this.consume("reset")&&(this.keys.has("ShiftLeft")||this.keys.has("ShiftRight")),startPressed:this.consume("start"),selectPressed:this.consume("select"),backPressed:this.consume("back")}}getProfile(){return structuredClone(this.profile)}setProfile(r){this.profile=Vs(r),W0(this.profile)}resetProfile(){this.setProfile(Xs())}calibrateGamepadCenter(){const r=this.getGamepadTelemetry();return r.connected?(this.setProfile({...this.profile,gamepadCenter:{x:r.rawX,y:r.rawY}}),this.getGamepadTelemetry()):r}resetGamepadCenter(){this.setProfile({...this.profile,gamepadCenter:{x:0,y:0}})}getGamepadTelemetry(){const r=this.target.navigator?.getGamepads?.().find(Boolean);if(!r)return{connected:!1,id:null,mapping:null,rawX:0,rawY:0,x:0,y:0,pressedButtons:[]};const o=rn(r.axes[0]??0),s=rn(r.axes[1]??0),u=qh(rn(o-this.profile.gamepadCenter.x),rn(s-this.profile.gamepadCenter.y),this.profile.gamepadDeadzone);return{connected:!0,id:r.id||"CONTROLLER",mapping:r.mapping||null,rawX:o,rawY:s,x:u.x,y:u.y,pressedButtons:[...this.currentGamepadButtons()]}}async testGamepadHaptics(){const r=this.target.navigator?.getGamepads?.().find(Boolean),o=r?.vibrationActuator?.playEffect;if(!o)return!1;try{return await o.call(r.vibrationActuator,"dual-rumble",{duration:90,startDelay:0,strongMagnitude:.18,weakMagnitude:.1}),!0}catch{return!1}}setVirtualDirection(r,o){o?this.virtualDirections.add(r):this.virtualDirections.delete(r)}setVirtualStick(r,o){const s=Math.hypot(r,o);this.virtualStick=s>1?{x:r/s,y:o/s}:{x:r,y:o}}setVirtualRun(r){this.virtualRun=r}pressAction(r){this.queued.add(r)}pressInteract(){this.pressAction("interact")}pressBuild(){this.pressAction("build")}pressStart(){this.pressAction("start")}pressSelect(){this.pressAction("select")}pressBack(){this.pressAction("back")}pressReset(){this.pressAction("reset")}beginGamepadCapture(){this.gamepadCapturePending=!0,this.capturedGamepadButton=null,this.gamepadPressed=this.currentGamepadButtons()}
80consumeCapturedGamepadButton(){const r=this.capturedGamepadButton;return r!==null&&(this.gamepadCapturePending=!1,this.capturedGamepadButton=null),r}cancelGamepadCapture(){this.gamepadCapturePending=!1,this.capturedGamepadButton=null}dispose(){this.target.removeEventListener("keydown",this.onKeyDownBound),this.target.removeEventListener("keyup",this.onKeyUpBound),this.target.removeEventListener("blur",this.onBlurBound),this.clearHeldInput()}onKeyDown(r){const o=this.actionForCode(r.code);(o||r.code==="Space")&&r.preventDefault();const s=this.keys.has(r.code);this.keys.add(r.code),!s&&o&&this.queued.add(o)}onKeyUp(r){this.keys.delete(r.code)}actionForCode(r){return Object.keys(this.profile.keyboard).find(o=>this.profile.keyboard[o].includes(r))??null}consume(r){const o=this.queued.has(r);return this.queued.delete(r),o}readGamepad(){const r=this.target.navigator?.getGamepads?.().find(Boolean);if(!r)return this.gamepadPressed.clear(),{buttons:new Set,x:0,y:0};const o=this.currentGamepadButtons();if(this.gamepadCapturePending){const u=[...o].find(h=>!this.gamepadPressed.has(h));u!==void 0&&(this.capturedGamepadButton=u,this.gamepadCapturePending=!1)}else for(const u of Object.keys(this.profile.gamepad))this.profile.gamepad[u].some(h=>o.has(h)&&!this.gamepadPressed.has(h))&&this.queued.add(u);this.gamepadPressed=o;const s=qh(rn((r.axes[0]??0)-this.profile.gamepadCenter.x),rn((r.axes[1]??0)-this.profile.gamepadCenter.y),this.profile.gamepadDeadzone);return{buttons:o,...s}}currentGamepadButtons(){const r=this.target.navigator?.getGamepads?.().find(Boolean),o=new Set;return r?.buttons.forEach((s,u)=>{s?.pressed&&o.add(u)}),o}clearHeldInput(){this.keys.clear(),this.virtualDirections.clear(),this.virtualStick={x:0,y:0},this.virtualRun=!1,this.queued.clear(),this.gamepadPressed.clear()}}function rn(f){return Math.max(-1,Math.min(1,Number.isFinite(f)?f:0))}const Al=[{id:1,title:"The Librarian's Weather",recipient:"Eleanor Voss, retired librarian",instruction:"Tie the balloon to the old weather vane. The pigeons have not signed a release.",locationLabel:"North Library Courtyard",target:{x:7,y:-5},consequence:"Children begin using the balloon as north on their hand-drawn maps.",doorPosition:{x:4,y:-7}},{id:2,title:"A Bridge With Expectations",recipient:"The footbridge itself",instruction:"Attach the balloon to the center rail. Do not ask how the bridge placed the order.",locationLabel:"Canal Footbridge",target:{x:20,y:4},consequence:"The bridge creaks less often, which engineers find more alarming than the creaking.",doorPosition:{x:16,y:6}},{id:3,title:"Bureaucrat Accepts Service",recipient:"Bureaucrat, an unaffiliated street cat",instruction:"The recipient must accept voluntarily. Departmental policy forbids explaining what that means.",locationLabel:"East Garden",target:{x:-18,y:14},consequence:"A red balloon follows Bureaucrat. Local government forms a committee and immediately adjourns.",doorPosition:{x:-13,y:11}}],Ys=[{id:"verdant-fox-001",commonName:"Verdant fox",scientificName:"Vulpes atlas verdans",position:{x:-10,y:-11},preferredOffering:"quiet",fieldNote:"Not technically green. Mostly moss, poor boundaries, and excellent posture."},{id:"bureaucrat-001",commonName:"Bureaucrat",scientificName:"Felis catus administrativus",position:{x:-18,y:14},preferredOffering:"food",fieldNote:"Will not recognize verbal instructions. Requires snacks in triplicate."}],vm=1,Xt=32,_s="atlas.kernel.v0.1.save",I0=7291847362,P0=24e4,bm="atlas-save",Sm=1;class un extends Error{constructor(r){super(r),this.name="PortableSaveError"}}function e1(){return typeof window>"u"?null:window.localStorage}function t1(){return Object.fromEntries(Al.map(f=>[String(f.id),{id:f.id,position:f.doorPosition,visible:!1,opened:!1}]))}function zs(f=3){return{version:vm,worldSeed:I0,graphicsTier:f,player:{position:{x:0,y:0},facing:"south",balloonsCarried:1,doorsOpened:0,deliveriesCompleted:0},deliveries:Object.fromEntries(Al.map(r=>[String(r.id),{delivered:!1}])),doors:t1(),creatures:Object.fromEntries(Ys.map(r=>[r.id,{id:r.id,trust:0,bonded:!1}])),world:{placedTiles:{},buildMarks:{},worldFlags:{}},currentWorld:"library",platformRouteChosen:!1,northboundArrived:!1,northboundSignalWitnessed:!1,northboundKeeperMet:!1,northboundRoutePowered:!1,lanternSpanUnlocked:!1,lanternSpanVisited:!1,glimmerValeVisited:!1,glimmerLampsLit:0,kitegardenUnlocked:!1,kitegardenVisited:!1,kiteKitesPerched:0,quietFerryUnlocked:!1,quietFerryVisited:!1,quietFerryTicketReturned:!1,doorMemories:{},updatedAt:Date.now()}}function Tm(f){if(!f||typeof f!="object")return!1;const r=f;return r.version===vm&&typeof r.worldSeed=="number"&&!!r.player&&!!r.deliveries&&!!r.doors&&!!r.creatures&&!!r.world}function xm(f){if(!Tm(f))return null;const r=f;return!Number.isFinite(r.worldSeed)||!Number.isFinite(r.player.position.x)||!Number.isFinite(r.player.position.y)?null:{...r,world:{placedTiles:r.world.placedTiles&&typeof r.world.placedTiles=="object"?r.world.placedTiles:{},buildMarks:r.world.buildMarks&&typeof r.world.buildMarks=="object"?r.world.buildMarks:{},worldFlags:r.world.worldFlags&&typeof r.world.worldFlags=="object"?r.world.worldFlags:{}},currentWorld:["library","platform","northbound","lanternSpan","glimmerVale","kitegarden","quietFerry"].includes(r.currentWorld)?r.currentWorld:"library",platformRouteChosen:r.platformRouteChosen===!0,northboundArrived:r.northboundArrived===!0,northboundSignalWitnessed:r.northboundSignalWitnessed===!0,northboundKeeperMet:r.northboundKeeperMet===!0,northboundRoutePowered:r.northboundRoutePowered===!0,lanternSpanUnlocked:r.lanternSpanUnlocked===!0,lanternSpanVisited:r.lanternSpanVisited===!0,glimmerValeVisited:r.glimmerValeVisited===!0,glimmerLampsLit:
80Math.max(0,Math.min(3,Number(r.glimmerLampsLit)||0)),kitegardenUnlocked:r.kitegardenUnlocked===!0,kitegardenVisited:r.kitegardenVisited===!0,kiteKitesPerched:Math.max(0,Math.min(3,Number(r.kiteKitesPerched)||0)),quietFerryUnlocked:r.quietFerryUnlocked===!0,quietFerryVisited:r.quietFerryVisited===!0,quietFerryTicketReturned:r.quietFerryTicketReturned===!0,doorMemories:r.doorMemories&&typeof r.doorMemories=="object"?r.doorMemories:{},updatedAt:Number.isFinite(r.updatedAt)?r.updatedAt:Date.now()}}function l1(f){const r=xm(f);if(!r)throw new un("The current route cannot be serialized safely.");return JSON.stringify({format:bm,formatVersion:Sm,exportedAt:Date.now(),save:structuredClone(r)},null,2)}function Yh(f){if(!f||f.length>P0)throw new un("That route file is empty or too large for this version of ATLAS.");let r;try{r=JSON.parse(f)}catch{throw new un("That file is not readable ATLAS route data.")}if(!r||typeof r!="object")throw new un("That file is not an ATLAS route export.");const o=r;if(o.format!==bm||o.formatVersion!==Sm)throw new un("This route file uses an unsupported ATLAS export format.");const s=xm(o.save);if(!s)throw new un("This route file is incomplete or incompatible with the current ATLAS save format.");return s}class a1{constructor(r=e1()){this.storage=r}load(){try{const r=this.storage?.getItem(_s);if(!r)return zs();const o=JSON.parse(r);return Tm(o)?{...o,world:{placedTiles:o.world.placedTiles&&typeof o.world.placedTiles=="object"?o.world.placedTiles:{},buildMarks:o.world.buildMarks&&typeof o.world.buildMarks=="object"?o.world.buildMarks:{},worldFlags:o.world.worldFlags&&typeof o.world.worldFlags=="object"?o.world.worldFlags:{}},currentWorld:o.currentWorld==="quietFerry"?"quietFerry":o.currentWorld==="kitegarden"?"kitegarden":o.currentWorld==="glimmerVale"?"glimmerVale":o.currentWorld==="lanternSpan"?"lanternSpan":o.currentWorld==="northbound"?"northbound":o.currentWorld==="platform"?"platform":"library",platformRouteChosen:o.platformRouteChosen===!0,northboundArrived:o.northboundArrived===!0,northboundSignalWitnessed:o.northboundSignalWitnessed===!0,northboundKeeperMet:o.northboundKeeperMet===!0,northboundRoutePowered:o.northboundRoutePowered===!0,lanternSpanUnlocked:o.lanternSpanUnlocked===!0,lanternSpanVisited:o.lanternSpanVisited===!0,glimmerValeVisited:o.glimmerValeVisited===!0,glimmerLampsLit:
80Math.max(0,Math.min(3,Number(o.glimmerLampsLit)||0)),kitegardenUnlocked:o.kitegardenUnlocked===!0,kitegardenVisited:o.kitegardenVisited===!0,kiteKitesPerched:Math.max(0,Math.min(3,Number(o.kiteKitesPerched)||0)),quietFerryUnlocked:o.quietFerryUnlocked===!0,quietFerryVisited:o.quietFerryVisited===!0,quietFerryTicketReturned:o.quietFerryTicketReturned===!0,doorMemories:o.doorMemories&&typeof o.doorMemories=="object"?o.doorMemories:{}}:zs()}catch{return zs()}}loadRaw(){return this.storage?.getItem(_s)??null}save(r){r.updatedAt=Date.now();try{this.storage?.setItem(_s,JSON.stringify(r))}catch{}}reset(r=3){try{this.storage?.removeItem(_s)}catch{}return zs(r)}}function n1(f,r,o){let s=f^Math.imul(r,668265261)^Math.imul(o,374761393);return s=Math.imul(s^s>>>15,2246822507),s=Math.imul(s^s>>>13,3266489909),(s^s>>>16)>>>0}function ll(f,r,o){return n1(f,r,o)/4294967295}function Vh(f){return f*f*(3-2*f)}function mc(f,r,o){return f+(r-f)*o}function i1(f,r,o,s=16){const u=r/s,h=o/s,p=Math.floor(u),g=Math.floor(h),m=Vh(u-p),v=Vh(h-g),z=ll(f,p,g),x=ll(f,p+1,g),L=ll(f,p,g+1),Q=ll(f,p+1,g+1);return mc(mc(z,x,m),mc(L,Q,m),v)}function on(f,r,o){let s=0,u=.55,h=0,p=28;for(let g=0;g<4;g+=1)s+=i1(f+g*977,r,o,p)*u,h+=u,u*=.5,p*=.5;return s/h}const s1={grass:!0,road:!0,pavement:!0,water:!1,tree:!1,wall:!1,flowers:!0,tallGrass:!0,sand:!0,snow:!0,ruin:!0,house:!1};function ui(f,r){return`${f},${r}`}function Us(f,r){return(f%r+r)%r}function pc(f,r,o,s){const u=f.x-r,h=f.y-o;return u*u+h*h<=s*s}class r1{seed;delta;cache=new Map;constructor(r,o){this.seed=r,this.delta=o}setDelta(r){this.delta=r,this.cache.clear()}getChunkCoordinate(r){return Math.floor(r/Xt)}getChunkAt(r,o){return{x:this.getChunkCoordinate(r),y:this.getChunkCoordinate(o)}}getBiome(r,o){if(r>=13&&r<=27&&o>=-2&&o<=10)return"canal";if(Math.abs(r)<=42&&Math.abs(o)<=36)return"city";const s=on(this.seed,r,o),u=on(this.seed+7331,r,o);return on(this.seed+127,r,o)<.27?"tundra":s<.31||u<.25?"coast":u>.68?"wetland":s>.78?"highlands":"meadow"}generateChunk(r){const o={x:r.x*Xt,y:r.y*Xt},s=[];for(let u=0;u<Xt;u+=1)for(let h=0;h<Xt;h+=1)s.push(this.getTile(o.x+h,o.y+u));return{coordinate:{...r},origin:o,size:Xt,biome:this.getBiome(o.x+Xt/2,o.y+Xt/2),tiles:s}}getTile(r,o){const s=Math.floor(r),u=Math.floor(o),h=ui(s,u),p=this.delta.placedTiles[h];if(p)return{kind:p,walkable:s1[p],variant:0,build:this.delta.buildMarks?.[h]};const g=this.cache.get(h);if(g)return g;const m=this.generateTile(s,u);return this.cache.set(h,m),this.cache.size>1e4&&this.cache.clear(),m}isWalkable(r,o){return this.getTile(r,o).walkable}canPlaceBuild(r,o){const s=ui(Math.floor(r),Math.floor(o));if(this.delta.buildMarks?.[s])return!1;const u=this.getTile(r,o);return["grass","flowers","tallGrass","sand","snow"].includes(u.kind)?!Al.some(h=>pc(h.target,r,o,2.5)):!1}placeTile(r,o,s){this.delta.placedTiles[ui(Math.floor(r),Math.floor(o))]=s,this.cache.delete(ui(Math.floor(r),Math.floor(o)))}placeBuild(r,o,s){const u=s.kind==="nest"?"house":s.kind==="garden"?"flowers":"tallGrass",h=ui(Math.floor(r),Math.floor(o));return this.delta.placedTiles[h]=u,(this.delta.buildMarks??={})[h]=s,this.cache.delete(h),u}getBuildMarkCount(){return Object.keys(this.delta.buildMarks??{}).length}generateTile(r,o){const s=Math.floor(ll(this.seed,r,o)*4);for(const g of Al)if(pc(g.target,r,o,2.25)||pc(g.doorPosition,r,o,1.5))return{kind:"pavement",walkable:!0,variant:s};if(r>=13&&r<=27&&o>=-2&&o<=10){if(o>=2&&o<=6&&!(r>=18&&r<=22))return{kind:"water",walkable:!1,variant:s};if(r>=18&&r<=22)return{kind:"pavement",walkable:!0,variant:s}}if(Math.abs(r)<=42&&Math.abs(o)<=36){const g=Us(r+2,12)<=2,m=Us(o-1,10)<=2;if(g||m)return{kind:"road",walkable:!0,variant:s};const v=Us(r+2,12),z=Us(o-1,10);if(ll(this.seed+17,Math.floor(r/12),Math.floor(o/10))>.72){const L=ll(this.seed+31,r,o);return L>.88?{kind:"flowers",walkable:!0,variant:s}:L<.08?{kind:"tree",walkable:!1,variant:s}:{kind:"grass",walkable:!0,variant:s}}return v>=4&&v<=9&&z>=4&&z<=7?{kind:"wall",walkable:!1,blocksSight:!0,variant:s}:{kind:"pavement",walkable:!0,variant:s}}const u=on(this.seed,r,o),h=on(this.seed+7331,r,o),p=on(this.seed+127,r,o);if(u<.27)return{kind:"water",walkable:!1,variant:s};if(p<.27)return ll(this.seed+4,r,o)>.92?{kind:"tree",walkable:!1,variant:s}:{kind:"snow",walkable:!0,variant:s};if(u>.78)return{kind:"ruin",walkable:!0,variant:s};if(h<.25)return{kind:"sand",walkable:!0,variant:s};if(h>.68){const g=ll(this.seed+91,r,o);if(g>.73)return{kind:"tree",walkable:!1,variant:s};if(g>.5)return{kind:"tallGrass",walkable:!0,variant:s}}return ll(this.seed+213,r,o)>
80.93?{kind:"flowers",walkable:!0,variant:s}:{kind:"grass",walkable:!0,variant:s}}}const o1={loadRadius:2,retainRadius:3},Xh=({x:f,y:r})=>`${f},${r}`;class c1{constructor(r,o=o1){if(this.world=r,this.options=o,o.loadRadius<0||o.retainRadius<o.loadRadius)throw new Error("Invalid chunk radii")}resident=new Map;update(r){const o=this.world.getChunkAt(r.x,r.y);for(let s=o.y-this.options.loadRadius;s<=o.y+this.options.loadRadius;s+=1)for(let u=o.x-this.options.loadRadius;u<=o.x+this.options.loadRadius;u+=1){const h={x:u,y:s},p=Xh(h);this.resident.has(p)||this.resident.set(p,this.world.generateChunk(h))}for(const[s,u]of this.resident)Math.max(Math.abs(u.coordinate.x-o.x),Math.abs(u.coordinate.y-o.y))>this.options.retainRadius&&this.resident.delete(s);return this.getResidentChunks()}invalidate(r){this.resident.delete(Xh(r))}getResidentChunks(){return[...this.resident.values()].sort((r,o)=>r.coordinate.y-o.coordinate.y||r.coordinate.x-o.coordinate.x)}}const u1={nest:["Nest placed. An unnamed future resident has begun judging the floor plan.","Nest placed. The roof is doing its best, which is more than most roofs promise.","Nest placed. The zoning map has become expressive."],garden:["Garden placed. The city will now form a committee about bees.","Garden placed. A bird has already claimed it by standing near it confidently.","Garden placed. The sidewalk has requested a small emotional update."],lamp:["Lamp installed. Night has filed no formal objection.","Lamp installed. Three moths are reviewing the proposal.","Lamp installed. The dark has been asked to wait outside."]},f1={brick:"Brick says: permanent enough for a feeling, temporary enough for weather.",sun:"Sun says: even a tiny place may be allowed to glow.",tide:"Tide says: the city remembers it was once water with errands.",moss:"Moss says: patience is a color, apparently."};function d1(f,r,o){const s=u1[f];return`${s[o%s.length]} ${f1[r]}`}const h1={x:0,y:0},Kh={x:7,y:0},m1={x:-7,y:0},p1={x:0,y:0},y1={x:4.8,y:0},g1={x:-5.8,y:0},v1={x:2.25,y:-1.75},Qh={x:6.35,y:0},b1={x:0,y:0},S1={x:-5.4,y:0},Zh={x:7,y:0},T1={x:0,y:0},x1={x:-6.2,y:0},yc=[{x:-2.4,y:-1.25},{x:.9,y:1.2},{x:3.4,y:-1.1}],Jh={x:6.3,y:0},E1={x:0,y:0},R1={x:-6.2,y:0},gc=[{x:-2.2,y:-1.2},{x:1.1,y:1.25},{x:3.7,y:-1.05}],Wh={x:6.4,y:0},A1={x:0,y:0},C1={x:-6.3,y:0},w1={x:1.8,y:-.6},Gs={minX:-8.5,maxX:8.5,minY:-3.5,maxY:3.5};function M1(f){return f.x>=Gs.minX&&f.x<=Gs.maxX&&f.y>=Gs.minY&&f.y<=Gs.maxY}const Ls={minX:-7,maxX:7,minY:-2.8,maxY:2.8};function O1(f){return f.x>=Ls.minX&&f.x<=Ls.maxX&&f.y>=Ls.minY&&f.y<=Ls.maxY}const js={minX:-6.2,maxX:8.2,minY:-2.25,maxY:2.25};function N1(f){return f.x>=js.minX&&f.x<=js.maxX&&f.y>=js.minY&&f.y<=js.maxY}const Bs={minX:-7.2,maxX:7.6,minY:-3.2,maxY:3.2};function D1(f){return f.x>=Bs.minX&&f.x<=Bs.maxX&&f.y>=Bs.minY&&f.y<=Bs.maxY}const $l=.28,Fe=1.35,k1=4.2,_1=6.2,z1=4.5,Fh=10,Hs=3,U1=8,G1=2.8,L1=2.35,j1=2.15,B1=64,vc=["nest","garden","lamp"],bc=["brick","sun","tide","moss"],$h=6;function ze(f,r){return Math.hypot(f.x-r.x,f.y-r.y)}function qs(f,r,o){return Math.max(r,Math.min(o,f))}function Sc(f){switch(f){case"north":return{x:0,y:-1};case"south":return{x:0,y:1};case"east":return{x:1,y:0};case"west":return{x:-1,y:0}}}class H1{world;chunks;saveStore;save;mode="explore";buildMode=!1;selectedBuildKind="nest";selectedBuildColor="brick";message="Walk the neighborhood. The balloon knows where it is going.";messageUntil=performance.now()/1e3+7;trustSession=null;visionDoorId=null;visionUntil=0;arrivalUntil=0;pausedMode=null;compassUntil=0;microTransitTarget=null;escapeElapsed=0;escapeStartedAt=performance.now()/1e3;eventListeners=new Set;saveAccumulator=0;sessionSeconds=0;restartConfirmUntil=0;constructor(r=new a1){this.saveStore=r,this.save=r.load(),this.world=new r1(this.save.worldSeed,this.save.world),this.chunks=new c1(this.world),this.chunks.update(this.save.player.position)}onEvent(r){return this.eventListeners.add(r),()=>this.eventListeners.delete(r)}update(r,o){const s=performance.now()/1e3;if(o.resetPressed){s<=this.restartConfirmUntil?this.restartNow(s):this.requestRestart(s);return}if(this.mode==="paused"){(o.startPressed||o.backPressed)&&(this.mode=this.pausedMode??"explore",this.pausedMode=null,this.showMessage("ATLAS resumes. The world kept its place.",2.5));return}if(this.mode==="doorCommit"){(s>=this.visionUntil||o.interactPressed||o.startPressed)&&this.enterPlatform(!0);return}if(this.mode==="arrivalAfterglow"){(s>=this.arrivalUntil||o.interactPressed||o.startPressed)&&(this.mode="explore",this.showMessage("The world is listening. Move when you are ready.",3),o.interactPressed&&this.interact());return}if(this.mode==="doorVision"){(s>=this.visionUntil||o.interactPressed)&&(this.mode="explore",this.visionDoorId=null);return}if(this.mode==="worldComplete"){(s>=this.visionUntil||o.interactPressed)&&this.enterPlatform();return}if(this.mode==="railTransit"){(s>=this.visionUntil||o.interactPressed||o.startPressed)&&this.enterNorthbound(!0);return}if(this.mode==="spanTransit"){(s>=this.visionUntil||o.interactPressed||o.startPressed)&&this.enterLanternSpan(!0);return}if(this.mode==="microTransit"){(s>=this.visionUntil||o.interactPressed||o.startPressed)&&this.enterMicroWorld(this.microTransitTarget??"glimmerVale",!0);return}if(this.mode==="trust"){this.updateTrustSession(r,o.interactPressed);return}if(o.startPressed){this.pausedMode=this.mode,this.mode="paused",this.showMessage("ATLAS paused. START or B returns to the world.",60);return}if(this.sessionSeconds+=Math.max(0,r),o.selectPressed)if(this.buildMode){const u=(bc.indexOf(this.selectedBuildColor)+1)%bc.length;this.selectedBuildColor=bc[u],this.showMessage(`Material switched to ${this.selectedBuildColor.toUpperCase()}. The paint department is cautiously optimistic.`,3.2)}else this.compassUntil=s+3.2,this.showMessage("The balloon settles toward what needs your attention.",3.2);if(o.backPressed&&this.buildMode)this.buildMode=!1,this.showMessage("Build mode closed. The permit office is relieved.",2.5);else if(o.buildPressed)if(this.buildMode){const u=(vc.indexOf(this.selectedBuildKind)+1)%vc.length;this.selectedBuildKind=vc[u],this.showMessage(`Build type: ${this.selectedBuildKind.toUpperCase()}. The zoning map has become expressive.`,3.2)}else this.buildMode=!0,this.showMessage("BUILD MODE: choose a small mark, then face an open natural tile and press A / E.",4.5);this.updateMovement(r,o),this.save.currentWorld==="library"&&this.chunks.update(this.save.player.position),this.escapeElapsed+=r,this.maybeManifestEscapeDoor(s),o.interactPressed&&(this.buildMode?this.tryPlaceBuild():this.interact()),this.saveAccumulator+=r,this.saveAccumulator>=2&&(this.saveAccumulator=0,this.persist())}getSnapshot(){const r=performance.now()/1e3,o=this.getActiveDelivery();return{now:r,mode:this.mode,player:structuredClone(this.save.player),activeDelivery:o,deliveries:Al.map(s=>({...s,...this.save.deliveries[String(s.id)]})),doors:Object.values(this.save.doors).map(s=>structuredClone(s)),creatures:Ys.map(s=>({...s,...this.save.creatures[s.id]})),worldSeed:this.save.worldSeed,graphicsTier:this.save.graphicsTier,buildMode:this.buildMode,selectedBuildKind:this.selectedBuildKind,selectedBuildColor:this.selectedBuildColor,buildMarkCount:this.world.getBuildMarkCount(),message:r<=this.messageUntil?this.message:"",messageUntil:this.messageUntil,sessionSeconds:this.sessionSeconds,lastSavedAt:this.save.updatedAt,restartConfirmSeconds:r<this.restartConfirmUntil?Math.max(0,this.restartConfirmUntil-r):null,trustSession:this.trustSession?{...this.trustSession}:null,visionDoorId:this.visionDoorId,escapeSecondsRemaining:this.getEscapeSecondsRemaining(),currentWorld:this.save.currentWorld,platformRouteChosen:this.save.platformRouteChosen,northboundArrived:this.save.northboundArrived,northboundSignalWitnessed:this.save.northboundSignalWitnessed,northboundKeeperMet:this.save.northboundKeeperMet,northboundRoutePowered:this.save.northboundRoutePowered,lanternSpanUnlocked:this.save.lanternSpanUnlocked,lanternSpanVisited:this.save.lanternSpanVisited,glimmerValeVisited:this.save.glimmerValeVisited,glimmerLampsLit:this.save.glimmerLampsLit,kitegardenUnlocked:this.save.kitegardenUnlocked,kitegardenVisited:this.save.kitegardenVisited,kiteKitesPerched:this.save.kiteKitesPerched,quietFerryUnlocked:this.save.quietFerryUnlocked,quietFerryVisited:this.save.quietFerryVisited,quietFerryTicketReturned:this.save.quietFerryTicketReturned,transitionSecondsRemaining:this.mode==="worldComplete"?Math.max(0,Math.ceil(this.visionUntil-r)):null,railSecondsRemaining:this.mode==="railTransit"?Math.max(0,Math.ceil(this.visionUntil-r)):null,spanSecondsRemaining:this.mode==="spanTransit"?Math.max(0,Math.ceil(this.visionUntil-r)):null,microTransitSecondsRemaining:this.mode==="microTransit"?Math.max(0,Math.ceil(this.visionUntil-r)):null,doorAttention:this.getDoorAttention(),doorCommitSeconds:this.mode==="doorCommit"?Math.max(0,this.visionUntil-r):null,arrivalAfterglowSeconds:this.mode==="arrivalAfterglow"?Math.max(0,this.arrivalUntil-r):null,compassFocusActive:r<this.compassUntil,paused:this.mode==="paused",victory:this.save.world.worldFlags.door_one_escape_complete===!0||this.save.player.doorsOpened>=Al.length,activeChunks:this.chunks.getResidentChunks().map(s=>({...s.coordinate}))}}getGraphicsTier(){return this.save.graphicsTier}exportPortableSave(){return this.persist(),l1(this.save)}previewPortableSave(r){return Yh(r)}importPortableSave(r){const o=Yh(r);if(o.worldSeed!==this.save.worldSeed)throw new Error("This route belongs to a different Atlas world seed and cannot replace this local route.");return this.save=o,this.world.setDelta(this.save.world),this.chunks.update(this.save.player.position),this.mode="explore",this.buildMode=!1,this.trustSession=null,this.visionDoorId=null,this.arrivalUntil=0,this.pausedMode=null,this.compassUntil=0,this.microTransitTarget=null,this.escapeElapsed=0,this.escapeStartedAt=performance.now()/1e3,this.sessionSeconds=0,this.restartConfirmUntil=0,this.showMessage("Route restored locally. The city remembers.",4.5),this.persist(),this.emit
80({type:"saveImported"}),structuredClone(this.save)}setGraphicsTier(r){this.save.graphicsTier=r,this.persist()}dismissMessage(){this.messageUntil=0}saveNow(){this.persist(),this.showMessage("Progress saved in this browser. The route is holding.",2.8)}requestRestart(r=performance.now()/1e3){this.restartConfirmUntil=r+$h,this.showMessage("Restart requested. Confirm within six seconds; your current local route will be replaced.",$h)}confirmRestart(r=performance.now()/1e3){if(r>this.restartConfirmUntil){this.requestRestart(r);return}this.restartNow(r)}dispose(){this.persist(),this.eventListeners.clear()}updateMovement(r,o){let s=o.moveX,u=o.moveY;const h=Math.hypot(s,u);h>1&&(s/=h,u/=h),(Math.abs(s)>.05||Math.abs(u)>.05)&&(Math.abs(s)>Math.abs(u)?this.save.player.facing=s>0?"east":"west":this.save.player.facing=u>0?"south":"north");const p=o.run?_1:k1,g=s*p*r,m=u*p*r,v=this.save.player.position,z={x:v.x+g,y:v.y};this.positionWalkable(z)&&(v.x=z.x);const x={x:v.x,y:v.y+m};this.positionWalkable(x)&&(v.y=x.y)}positionWalkable(r){return this.save.currentWorld==="platform"?M1(r):this.save.currentWorld==="northbound"?O1(r):this.save.currentWorld==="lanternSpan"?N1(r):["glimmerVale","kitegarden","quietFerry"].includes(this.save.currentWorld)?D1(r):[{x:r.x-$l,y:r.y-$l},{x:r.x+$l,y:r.y-$l},{x:r.x-$l,y:r.y+$l},{x:r.x+$l,y:r.y+$l}].every(s=>this.world.isWalkable(s.x,s.y))}interact(){const r=this.save.player.position;if(this.save.currentWorld==="platform"){if(ze(r,m1)<=Fe){this.returnToLibrary();return}if(ze(r,Kh)<=Fe){this.beginNorthbound();return}this.showMessage("The clouds keep their own schedule. The sign points north.",3.5);return}if(this.save.currentWorld==="northbound"){if(ze(r,g1)<=Fe){this.returnToPlatform();return}if(ze(r,v1)<=Fe){this.interactSignalkeeper();return}if(ze(r,y1)<=Fe){this.powerNorthboundRoute();return}if(this.save.lanternSpanUnlocked&&ze(r,Qh)<=Fe){this.beginLanternSpan();return}this.showMessage(this.save.lanternSpanUnlocked?"The blue gate is live. The Lantern Span waits beyond the rail.":"Northbound Halt is small because the next world is still traveling toward you.",4);return}if(this.save.currentWorld==="lanternSpan"){if(ze(r,S1)<=Fe){this.returnToNorthbound();return}if(ze(r,Zh)<=Fe){this.beginMicroTransit("glimmerVale","GLIMMER VALE. The first lamp is waiting for someone to notice it.");return}this.showMessage("The eastern arch is dark. Step closer and listen for the first lamp.",4);return}if(this.save.currentWorld==="glimmerVale"){if(ze(r,x1)<=Fe){this.returnToLanternSpan();return}if(ze(r,Jh)<=Fe&&this.save.kitegardenUnlocked){this.beginMicroTransit("kitegarden","KITEGARDEN. The wind has made a path for you.");return}this.lightGlimmerLamp(r);return}if(this.save.currentWorld==="kitegarden"){if(ze(r,R1)<=Fe){this.returnToGlimmerVale();return}if(ze(r,Wh)<=Fe&&this.save.quietFerryUnlocked){this.beginMicroTransit("quietFerry","THE QUIET FERRY. Someone is still holding your ticket.");return}this.perchKite(r);return}if(this.save.currentWorld==="quietFerry"){if(ze(r,C1)<=Fe){this.returnToKitegarden();return}if(ze(r,w1)<=Fe){this.returnFerryTicket();return}this.showMessage("NIA: The ferry leaves when a passenger is remembered. The Ticket Wren is waiting by the rail.",4.5);return}const o=Object.values(this.save.doors).filter(m=>m.visible&&!m.opened).sort((m,v)=>ze(m.position,r)-ze(v.position,r))[0];if(o&&ze(o.position,r)<=Fe){this.openDoor(o.id);return}const s=this.getActiveDelivery();if(s&&ze(s.target,r)<=Fe){if(s.id===3&&!this.save.creatures["bureaucrat-001"]?.bonded){this.showMessage("Bureaucrat has not accepted you. Trust must precede service.",4.5),this.startTrustSession("bureaucrat-001");return}this.completeDelivery(s.id);return}const u=Ys.filter(m=>!this.save.creatures[m.id]?.bonded).sort((m,v)=>ze(m.position,r)-ze(v.position,r))[0];if(u&&ze(u.position,r)<=Fe){this.startTrustSession(u.id);return}const h=Sc(this.save.player.facing),p={x:Math.floor(r.x+h.x),y:Math.floor(r.y+h.y)},g=this.world.getTile(p.x,p.y);this.showMessage(`Pepe inspects ${g.kind}. It declines to comment.`,2.8)}completeDelivery(r){const o=this.save.deliveries[String(r)];if(!o||o.delivered||this.save.player.balloonsCarried<=0)return;o.delivered=!0,o.deliveredAt=Date.now(),this.save.player.deliveriesCompleted+=1,this.save.player.balloonsCarried=0,this.save.world.worldFlags[`delivery_${r}_complete`]=!0;const s=Al.find(h=>h.id===r),u=this.save.doors[String(r)];u.visible=!0,u.appearedAt=Date.now(),this.showMessage(`${s.consequence}
80 A door has appeared.`,7),this.emit({type:"deliveryCompleted",deliveryId:r}),this.emit({type:"doorAppeared",doorId:r}),this.persist()}openDoor(r){const o=this.save.doors[String(r)];if(!o||o.opened)return;if(o.opened=!0,o.openedAt=Date.now(),this.save.player.doorsOpened+=1,this.save.world.worldFlags[`door_${r}_opened`]=!0,r===1&&this.save.world.worldFlags.door_one_escape_manifested===!0){this.save.player.balloonsCarried=0,this.save.world.worldFlags.door_one_escape_complete=!0,this.save.doorMemories??={},this.save.doorMemories[String(r)]={doorId:r,originWorld:"library",destinationWorld:"platform",care:"noticed",consequenceFlag:"door_one_escape_complete",crossedAt:Date.now()},this.mode="doorCommit",this.visionDoorId=r,this.visionUntil=performance.now()/1e3+.65,this.showMessage("The city stopped testing you. Press A or START to cross when you are ready.",4),this.emit({type:"doorOpened",doorId:r}),this.persist();return}Al.find(h=>!this.save.deliveries[String(h.id)]?.delivered)&&(this.save.player.balloonsCarried=1),this.mode="doorVision",this.visionDoorId=r,this.visionUntil=performance.now()/1e3+5.5,this.emit({type:"doorOpened",doorId:r}),this.persist()}startTrustSession(r){const o=this.save.creatures[r];!o||o.bonded||(this.mode="trust",this.trustSession={creatureId:r,pulse:0,direction:1,targetStart:.42,targetEnd:.64,attempts:0,message:"Wait. Press A / E when the pulse enters the calm band."})}updateTrustSession(r,o){const s=this.trustSession;if(!s){this.mode="explore";return}if(s.pulse+=s.direction*r*.75,s.pulse>=1?(s.pulse=1,s.direction=-1):s.pulse<=0&&(s.pulse=0,s.direction=1),!o)return;s.attempts+=1;const u=this.save.creatures[s.creatureId],h=s.pulse>=s.targetStart&&s.pulse<=s.targetEnd;if(u.trust=qs(u.trust+(h?40:8),0,100),u.lastInteractionAt=Date.now(),u.trust>=100){u.bonded=!0,this.mode="explore",this.trustSession=null;const p=Ys.find(g=>g.id===u.id);this.showMessage(`${p.commonName} trusts you. ${p.fieldNote}`,6),this.emit({type:"creatureBonded",creatureId:u.id}),this.persist();return}s.message=h?`Trust +40. ${u.trust}/100. The creature remains professionally cautious.`:`Trust +8. ${u.trust}/100. You were loud, but not unforgivable.`,s.targetStart=qs(.16+u.trust/250,.16,.5),s.targetEnd=qs(s.targetStart+.2,.36,.78)}setBuildSelection(r,o){this.selectedBuildKind=r,this.selectedBuildColor=o,this.showMessage(`${r.toUpperCase()} / ${o.toUpperCase()} selected. Make it gentle.`,2.4)}tryPlaceBuild(){const r=Sc(this.save.player.facing),o=Math.floor(this.save.player.position.x+r.x*1.2),s=Math.floor(this.save.player.position.y+r.y*1.2);if(this.world.getBuildMarkCount()>=B1){this.showMessage("Your 64 small marks are holding. The city is full of excellent evidence.",4.2);return}if(!this.world.canPlaceBuild(o,s)){this.showMessage("Construction denied: road, landmark, water, route, or existing confidence.",3.5);return}const u={kind:this.selectedBuildKind,color:this.selectedBuildColor},h=this.world.placeBuild(o,s,u);this.chunks.invalidate(this.world.getChunkAt(o,s)),this.save.world.worldFlags.first_house_placed=!0,this.showMessage(d1(u.kind,u.color,this.world.getBuildMarkCount()),5.5),this.emit({type:"tilePlaced",position:{x:o,y:s},tile:h,build:u}),this.persist()}getActiveDelivery(){return this.save.currentWorld!=="library"||this.save.world.worldFlags.door_one_escape_manifested===!0||this.save.player.balloonsCarried<=0?null:Al.find(r=>!this.save.deliveries[String(r.id)]?.delivered)??null}getEscapeSecondsRemaining(r=performance.now()/1e3){const o=this.save.doors[1];return!o||o.visible||o.opened||this.save.world.worldFlags.door_one_escape_complete===!0?null:Math.max(0,Math.ceil(Fh-this.getEscapeElapsed(r)))}showMessage(r,o=z1){this.message=r,this.messageUntil=performance.now()/1e3+o}emit(r){for(const o of this.eventListeners)o(r)}persist(){this.saveStore.save(this.save),this.emit({type:"savePersisted",savedAt:this.save.updatedAt})}restartNow(r){this.save=this.saveStore.reset(this.save.graphicsTier),this.world.setDelta(this.save.world),this.chunks.update(this.save.player.position),this.mode="explore",this.buildMode=!1,this.trustSession=null,this.visionDoorId=null,this.arrivalUntil=0,this.pausedMode=null,this.compassUntil=0,this.microTransitTarget=null,this.escapeElapsed=0,this.escapeStartedAt=r,this.sessionSeconds=0,this.restartConfirmUntil=0,this.showMessage("New route started. The Department misplaced the old paperwork.",5),this.emit
80({type:"saveReset"}),this.persist()}enterPlatform(r=!1){this.save.currentWorld="platform",this.save.player.position={...h1},this.save.player.facing="east",this.buildMode=!1,this.mode=r?"arrivalAfterglow":"explore",this.arrivalUntil=r?performance.now()/1e3+2.6:0,this.visionDoorId=null,this.showMessage("WORLD TWO: THE PLATFORM. The sky is not a ceiling.",r?3.4:6),this.persist()}returnToLibrary(){const r=this.save.doors[1];this.save.currentWorld="library",this.save.player.position=r?{...r.position}:{x:0,y:0},this.save.player.facing="south",this.chunks.update(this.save.player.position),this.showMessage("The Library District remembers your return.",4.5),this.persist()}beginNorthbound(){this.save.platformRouteChosen=!0,this.save.world.worldFlags.platform_northbound_route_chosen=!0,this.mode="railTransit",this.visionUntil=performance.now()/1e3+G1,this.showMessage("NORTHBOUND. The rail only appears when you decide to leave.",3.2),this.persist()}enterNorthbound(r=!1){this.save.currentWorld="northbound",this.save.northboundArrived=!0,this.save.world.worldFlags.northbound_arrived=!0,this.save.player.position={...p1},this.save.player.facing="east",this.buildMode=!1,this.mode=r?"arrivalAfterglow":"explore",this.arrivalUntil=r?performance.now()/1e3+2.2:0,this.visionDoorId=null,this.showMessage("NORTHBOUND HALT. The rail has not forgotten you.",6),this.persist()}returnToPlatform(){this.save.currentWorld="platform",this.save.player.position={...Kh},this.save.player.facing="west",this.showMessage("The Platform keeps its promise: return is always possible.",4.5),this.persist()}interactSignalkeeper(){this.save.northboundKeeperMet?this.save.northboundRoutePowered?this.showMessage("ROOK: There. The Span remembers us. Take it if you mean to keep going.",5.5):this.showMessage("ROOK: Blue means the road is listening. Pull it slowly.",5.5):(this.save.northboundKeeperMet=!0,this.save.world.worldFlags.northbound_signalkeeper_met=!0,this.showMessage("ROOK: You found the Halt. That is harder than
80it looks.",5.5)),this.persist()}powerNorthboundRoute(){if(!this.save.northboundRoutePowered){this.save.northboundSignalWitnessed=!0,this.save.northboundRoutePowered=!0,this.save.lanternSpanUnlocked=!0,this.save.world.worldFlags.northbound_signal_witnessed=!0,this.save.world.worldFlags.northbound_route_powered=!0,this.save.world.worldFlags.lantern_span_unlocked=!0,this.showMessage("The blue route holds steady. An eastern gate arrives where the rail ends.",6),this.persist();return}this.showMessage("The route is powered. The blue gate is waiting east of the lever.",4)}beginLanternSpan(){this.mode="spanTransit",this.visionUntil=performance.now()/1e3+L1,this.showMessage("LANTERN SPAN. The rail is learning how to cross the air.",3),this.persist()}enterLanternSpan(r=!1){this.save.currentWorld="lanternSpan",this.save.lanternSpanVisited=!0,this.save.world.worldFlags.lantern_span_visited=!0,this.save.player.position={...b1},this.save.player.facing="east",this.buildMode=!1,this.mode=r?"arrivalAfterglow":"explore",this.arrivalUntil=r?performance.now()/1e3+2.2:0,this.visionDoorId=null,this.showMessage("LANTERN SPAN. The road has arrived, but it has not told you why.",6),this.persist()}returnToNorthbound(){this.save.currentWorld="northbound",this.save.player.position={...Qh},this.save.player.facing="west",this.showMessage("Northbound Halt is still lit. Rook is pretending not to have waited.",4.5),this.persist()}beginMicroTransit(r,o){this.microTransitTarget=r,this.mode="microTransit",this.visionUntil=performance.now()/1e3+j1,this.showMessage(o,3.2),this.persist()}enterMicroWorld(r,o=!1){this.microTransitTarget=null,this.save.currentWorld=r,this.buildMode=!1,this.save.player.facing="east",this.mode=o?"arrivalAfterglow":"explore",this.arrivalUntil=o?performance.now()/1e3+2.25:0,this.visionDoorId=null,r==="glimmerVale"?(this.save.glimmerValeVisited=!0,this.save.world.worldFlags.glimmer_vale_visited=!0,this.save.player.position={...T1},this.showMessage("GLIMMER VALE. Three lamps forgot whom they were meant to guide.",6)):r==="kitegarden"?(this.save.kitegardenVisited=!0,this.save.world.worldFlags.kitegarden_visited=!0,this.save.player.position={...E1},this.showMessage("KITEGARDEN. The wind is trying to put itself back together.",6)):(this.save.quietFerryVisited=!0,this.save.world.worldFlags.quiet_ferry_visited=!0,this.save.player.position={...A1},this.showMessage("THE QUIET FERRY. Nia is still holding a ticket with no name on it.",6)),this.persist()}returnToLanternSpan(){this.save.currentWorld="lanternSpan",this.save.player.position={...Zh},this.save.player.facing="west",this.showMessage("Lantern Span keeps one light on for every return.",4.5),this.persist()}returnToGlimmerVale(){this.save.currentWorld="glimmerVale",this.save.player.position={...Jh},this.save.player.facing="west",this.showMessage("Glimmer Vale is brighter now. The lamps remembered enough.",4.5),this.persist()}returnToKitegarden(){this.save.currentWorld="kitegarden",this.save.player.position={...Wh},this.save.player.facing="west",this.showMessage("Kitegarden catches you gently. The orchard keeps the wind in order.",4.5),this.persist()}lightGlimmerLamp(r){const o=yc.findIndex((s,u)=>ze(r,s)<=Fe&&this.save.world.worldFlags[`glimmer_lamp_${u+1}_lit`]!==!0);if(o<0){this.save.glimmerLampsLit>=yc.length?this.showMessage("MORROW: The central lantern is awake. Kitegarden is listening east of the vale.",4.5):this.showMessage("MORROW: A lamp only wakes when someone notices who it was waiting for.",4.5);return}this.save.world.worldFlags[`glimmer_lamp_${o+1}_lit`]=!0,this.save.glimmerLampsLit+=1,this.save.glimmerLampsLit>=yc.length?(this.save.kitegardenUnlocked=!0,this.save.world.worldFlags.kitegarden_unlocked=!0,this.showMessage("The lamps join into one skyward beam. A wind gate opens east of the vale.",6)):this.showMessage(`A memory lamp wakes. ${this.save.glimmerLampsLit}/3 lights remember their way home.`,4.5),this.persist()}perchKite(r){const o=gc.findIndex((s,u)=>ze(r,s)<=Fe&&this.save.world.worldFlags[`kite_${u+1}_perched`]!==!0);if(o<0){this.save.kiteKitesPerched>=gc.length?this.showMessage("JUN: The canopy has become a dock. The Quiet Ferry is waiting east of the orchard.",4.5):this.showMessage("JUN: The balloon is leaning toward a loose kite. It would like to be home.",4.5);return}this.save.world.worldFlags[`kite_${o+1}_perched`]=!0,this.save.kiteKitesPerched+=1,this.save.kiteKitesPerched>=gc.length?(this.save.quietFerryUnlocked=!0,this.save.world.worldFlags.quiet_ferry_unlocked=!0,this.showMessage("The orchard folds its canopy into a dock. A quiet ferry has arrived.",6)):this.showMessage(`A kite settles into its perch. ${this.save.kiteKitesPerched}/3 winds are back where they belong.`,4.5),this.persist()}returnFerryTicket(){if(!this.save.quietFerryTicketReturned){this.save.quietFerryTicketReturned=!0,this.save.world.worldFlags.quiet_ferry_ticket_returned=!0,this.showMessage("NIA: There you are. The ferry can remember its passenger now. The next map is awake.",6),this.persist();return}this.showMessage("NIA: Keep the ticket. Every future ferry will know you are expected.",4.5)}maybeManifestEscapeDoor(r){if(this.save.currentWorld!=="library")return;const o=this.save.doors[1];!o||o.visible||o.opened||this.getEscapeElapsed(r)<Fh||this.save.world.worldFlags.door_one_escape_complete===!0||(o.position=this.findEscapeDoorPosition(),o.visible=!0,o.appearedAt=Date.now(),this.save.player.balloonsCarried=0,this.save.world.worldFlags.door_one_escape_manifested=!0,this.showMessage("The route dissolves. You are not being tested. The red door is here.",8),this.emit
80({type:"doorAppeared",doorId:1}),this.persist())}findEscapeDoorPosition(){const r=this.save.player.position,o=Math.round(r.x),s=Math.round(r.y);for(let h=Hs;h<=U1;h+=1)for(let p=-h;p<=h;p+=1){const g=[{x:o+p,y:s-h},{x:o+h,y:s+p},{x:o+p,y:s+h},{x:o-h,y:s+p}];for(const m of g)if(ze(m,r)>=Hs&&this.positionWalkable(m))return m}const u=Sc(this.save.player.facing);return{x:o+u.x*Hs,y:s+u.y*Hs}}getEscapeElapsed(r){return Math.max(this.escapeElapsed,r-this.escapeStartedAt)}getDoorAttention(){if(this.save.currentWorld!=="library")return 0;const r=Object.values(this.save.doors).find(s=>s.visible&&!s.opened);if(!r)return 0;const o=1-qs((ze(r.position,this.save.player.position)-Fe)/6.5,0,1);return Number(o.toFixed(3))}}const q1={library:[{x:-1.85,y:-1.35},{x:1.9,y:-1.65},{x:2.55,y:1.4}],platform:[{x:-3.5,y:-1.6},{x:2.8,y:1.5},{x:5.4,y:-1.3}],northbound:[{x:-3.7,y:-1.45},{x:1.2,y:1.45},{x:5.45,y:-1.5}],lanternSpan:[{x:-3.6,y:-.9},{x:1.8,y:.9},{x:5.7,y:-.85}],glimmerVale:[{x:-4.6,y:-1.6},{x:.6,y:1.7},{x:5.4,y:-1.3}],kitegarden:[{x:-4.9,y:1.4},{x:.5,y:-1.6},{x:5.5,y:1.35}],quietFerry:[{x:-4.8,y:-1.25},{x:.1,y:1.45},{x:5.2,y:-1.15}]};function Y1(f){let r=f>>>0;return r=Math.imul(r^r>>>16,73244475),r=Math.imul(r^r>>>16,73244475),(r^r>>>16)>>>0}function fi(f){return Y1(f)/4294967295}function V1(f){return[...f].reduce((r,o)=>r+o.charCodeAt(0),0)}function X1(f,r){const o=1+f.player.doorsOpened+f.player.deliveriesCompleted,s=2**Math.min(20,o),u=Math.min(Math.max(0,r),2**Math.min(4,o)),h=q1[f.currentWorld],p=V1(f.currentWorld),g=[];for(let m=0;m<u;m+=1){const v=h[m%h.length],z=f.worldSeed+p*97+m*7919,x=fi(z)*Math.PI*2,L=.45+fi(z+1)*1.25;g.push({index:m,position:{x:v.x+Math.cos(x)*L,y:v.y+Math.sin(x)*L*.68},scale:.78+fi(z+2)*.18,phase:fi(z+3)*Math.PI*2,coatVariant:Math.floor(fi(z+4)*3)})}return{generation:o,storyPopulation:s,echoes:g}}const K1={grass:"#8bac0f",road:"#306230",pavement:"#8bac0f",water:"#306230",tree:"#0f380f",wall:"#0f380f",flowers:"#8bac0f",tallGrass:"#306230",sand:"#9bbc0f",snow:"#9bbc0f",ruin:"#306230",house:"#0f380f"},Q1={grass:"#78b84a",road:"#55545d",pavement:"#bbb9a8",water:"#3f87c7",tree:"#285d34",wall:"#7b5b52",flowers:"#70a84a",tallGrass:"#3f7c3e",sand:"#d8bd72",snow:"#dceaf0",ruin:"#82776c",house:"#6c4148"},Z1={id:0,label:"T-00 · DMG 1991",screen:"#9bbc0f",darkest:"#0f380f",dark:"#306230",light:"#8bac0f",lightest:"#9bbc0f",red:"#0f380f",blue:"#306230",gold:"#8bac0f",tile:K1},J1={id:1,label:"T-01 · COLOR 2001",screen:"#b8d98d",darkest:"#172225",dark:"#354b4f",light:"#a6c26e",lightest:"#edf3cf",red:"#dc2438",blue:"#2d6fb6",gold:"#e6bd49",tile:Q1};function Ac(f){return f===1?J1:Z1}const lt=160,Vt=144,Kt=8,Ih=lt/Kt,Ph=Vt/Kt,em={A:["010","101","111","101","101"],B:["110","101","110","101","110"],C:["011","100","100","100","011"],D:["110","101","101","101","110"],E:["111","100","110","100","111"],F:["111","100","110","100","100"],G:["011","100","101","101","011"],H:["101","101","111","101","101"],I:["111","010","010","010","111"],J:["001","001","001","101","010"],K:["101","101","110","101","101"],L:["100","100","100","100","111"],M:["101","111","111","101","101"],N:["101","111","111","111","101"],O:["010","101","101","101","010"],P:["110","101","110","100","100"],Q:["010","101","101","111","011"],R:["110","101","110","101","101"],S:["011","100","010","001","110"],T:["111","010","010","010","010"],U:["101","101","101","101","111"],V:["101","101","101","101","010"],W:["101","101","111","111","101"],X:["101","101","010","101","101"],Y:["101","101","010","010","010"],Z:["111","001","010","100","111"],0:["111","101","101","101","111"],1:["010","110","010","010","111"],2:["110","001","010","100","111"],3:["110","001","010","001","110"],4:["101","101","111","001","001"],5:["111","100","110","001","110"],6:["011","100","111","101","111"],7:["111","001","010","010","010"],8:["111","101","111","101","111"],9:["111","101","111","001","110"],".":["000","000","000","000","010"],":":["000","010","000","010","000"],"!":["010","010","010","000","010"],"?":["110","001","010","000","010"],"-":["000","000","111","000","000"],"/":["001","001","010","100","100"],"'"
80:["010","010","000","000","000"]," ":["000","000","000","000","000"]};function Ue(f,r){return{x:Math.round((f.x-r.x)*Kt),y:Math.round((f.y-r.y)*Kt)}}function W1(f,r){const o=f.toUpperCase().replace(/[^A-Z0-9 .:!?\-/'â]/g,"").split(/\s+/),s=[];let u="";for(const h of o){const p=u?`${u} ${h}`:h;p.length>r&&u?(s.push(u),u=h):u=p}return u&&s.push(u),s}class F1{constructor(r,o=0){this.canvas=r,r.width=lt,r.height=Vt;const s=r.getContext("2d",{alpha:!1});if(!s)throw new Error("Canvas 2D is unavailable.");s.imageSmoothingEnabled=!1,this.context=s,this.palette=Ac(o)}context;palette;setTier(r){this.palette=Ac(r)}render(r,o){const s=r.player.position,u={x:s.x-Ih/2,y:s.y-Ph/2};if(this.context.fillStyle=this.palette.screen,this.context.fillRect(0,0,lt,Vt),r.currentWorld!=="library"){r.currentWorld==="platform"?this.drawPlatform(r,u):r.currentWorld==="northbound"?this.drawNorthbound(r,u):r.currentWorld==="lanternSpan"?this.drawLanternSpan(r,u):r.currentWorld==="glimmerVale"?this.drawGlimmerVale(r,u):r.currentWorld==="kitegarden"?this.drawKitegarden(r,u):this.drawQuietFerry(r,u),this.drawPlayer(r,u),this.drawHud(r),r.mode==="arrivalAfterglow"&&this.drawArrivalAfterglow(r);return}this.drawWorld(o,u,r.now),this.drawTargets(r,u),this.drawDoors(r,u),this.drawObjectiveCompass(r),this.drawCreatures(r,u),this.drawPlayer(r,u),this.drawHud(r),r.mode==="trust"&&r.trustSession&&this.drawTrust(r),r.mode==="doorVision"&&r.visionDoorId&&this.drawDoorVision(r.visionDoorId),r.mode==="doorCommit"&&this.drawDoorCommit(r),r.currentWorld==="library"&&r.victory&&(r.mode==="explore"||r.mode==="worldComplete")&&this.drawVictory()}drawPlatform(r,o){const s=this.context,u=this.palette;s.fillStyle=u.dark,s.fillRect(0,13,lt,Vt-13);for(let g=0;g<28;g+=1){const m=(g*29+7)%lt,v=18+g*17%50;s.fillStyle=g%3===0?u.lightest:u.light,s.fillRect(m,v,1,1)}s.fillStyle=u.light,s.fillRect(3,77,154,42),s.fillStyle=u.darkest,s.fillRect(3,82,154,34),s.fillStyle=u.dark,s.fillRect(7,86,146,26),s.fillStyle=u.lightest,s.fillRect(10,91,29,13),s.fillStyle=u.gold,s.fillRect(14,95,4,4);const h=Ue({x:7,y:0},o);s.fillStyle=u.gold,s.fillRect(h.x-1,h.y-11,2,14),s.fillRect(h.x-6,h.y-14,11,5),this.drawText("N",h.x-2,h.y-13,1,u.darkest),!r.platformRouteChosen&&Math.floor(r.now*3)%2===0&&(s.strokeStyle=u.red,s.strokeRect(h.x-8,h.y-16,15,22));const p=Ue({x:-7,y:0},o);s.fillStyle=u.red,s.fillRect(p.x-4,p.y-10,9,14),s.fillStyle=u.darkest,s.fillRect(p.x-2,p.y-8,5,10),this.drawText("WORLD 02: PLATFORM",43,22,1,u.lightest)}drawNorthbound(r,o){const s=this.context,u=this.palette;s.fillStyle=u.darkest,s.fillRect(0,13,lt,Vt-13);for(let m=0;m<36;m+=1){const v=(m*31+5)%lt,z=17+m*13%54;s.fillStyle=m%4===0?u.lightest:u.light,s.fillRect(v,z,1,1)}s.fillStyle=u.light,s.fillRect(3,76,154,43),s.fillStyle=u.dark,s.fillRect(3,82,154,33),s.fillStyle=u.gold,s.fillRect(9,88,144,1),s.fillRect(9,105,144,1);const h=Ue({x:4.8,y:0},o);s.fillStyle=u.lightest,s.fillRect(h.x-1,h.y-13,2,15),s.fillStyle=u.gold,s.fillRect(h.x-4,h.y-15,8,4),!r.northboundSignalWitnessed&&Math.floor(r.now*3)%2===0&&(s.strokeStyle=u.red,s.strokeRect(h.x-7,h.y-17,15,23));const p=Ue({x:2.25,y:-1.75},o);if(s.fillStyle=u.lightest,s.fillRect(p.x-2,p.y-9,5,7),s.fillStyle=u.gold,s.fillRect(p.x-3,p.y-4,7,2),!r.northboundKeeperMet&&Math.floor(r.now*3)%2===0&&(s.strokeStyle=u.red,s.strokeRect(p.x-6,p.y-13,13,15)),r.lanternSpanUnlocked){const m=Ue({x:6.35,y:0},o);s.fillStyle=u.lightest,s.fillRect(m.x-1,m.y-15,3,17),s.fillRect(m.x-6,m.y-16,9,3),Math.floor(r.now*3)%2===0&&(s.strokeStyle=u.gold,s.strokeRect(m.x-8,m.y-18,15,23))}const g=Ue({x:-5.8,y:0},o);s.fillStyle=u.red,s.fillRect(g.x-4,g.y-10,9,14),s.fillStyle=u.darkest,s.fillRect(g.x-2,g.y-8,5,10),this.drawText("WORLD 02: NORTHBOUND",34,22,1,u.lightest)}drawLanternSpan(r,o){const s=this.context,u=this.palette;s.fillStyle=u.darkest,s.fillRect(0,13,lt,Vt-13);for(let g=0;g<42;g+=1){const m=(g*23+11)%lt,v=16+g*19%52;s.fillStyle=g%5===0?u.lightest:u.light,s.fillRect(m,v,1,1)}s.fillStyle=u.light,s.fillRect(3,77,154,42),s.fillStyle=u.dark,s.fillRect(3,82,154,33),s.fillStyle=u.gold,s.fillRect(8,90,145,1),s.fillRect(8,103,145,1);const h=Ue({x:3.2,y:-1.32},o);s.fillStyle=u.gold,s.fillRect(h.x-1,h.y-15,3,15),s.fillStyle=u.lightest,s.fillRect(h.x-3,h.y-17,7,4);const p=Ue({x:-5.4,y:0},o);s.fillStyle=u.red,s.fillRect(p.x-4,p.y-10,9,14),s.fillStyle=u.darkest,s.fillRect(p.x-2,p.y-8,5,10),this.drawText("WORLD 02: LANTERN SPAN",27,22,1,u.lightest)}drawGlimmerVale(r,o){const s=this.context,u=this.palette;this.drawMicroSky(41,u),s.fillStyle=u.dark,s.fillRect(3,78,154,41),[[-2.4,-1.25],[.9,1.2],[3.4,-1.1]].forEac
80h(([m,v],z)=>{const x=Ue({x:m,y:v},o);s.fillStyle=u.lightest,s.fillRect(x.x-1,x.y-12,2,13),z<r.glimmerLampsLit&&(s.fillStyle=u.gold,s.fillRect(x.x-3,x.y-15,6,5))});const p=Ue({x:-.2,y:-1.75},o);s.fillStyle=u.lightest,s.fillRect(p.x-2,p.y-9,5,7),s.fillStyle=u.gold,s.fillRect(p.x+3,p.y-5,3,3);const g=Ue({x:-6.2,y:0},o);if(this.drawReturnDoor(g),r.kitegardenUnlocked){const m=Ue({x:6.3,y:0},o);s.strokeStyle=u.gold,s.strokeRect(m.x-7,m.y-17,13,18),this.drawText("K",m.x-2,m.y-14,1,u.lightest)}this.drawText("GLIMMER VALE",45,22,1,u.lightest)}drawKitegarden(r,o){const s=this.context,u=this.palette;this.drawMicroSky(47,u),s.fillStyle=u.dark,s.fillRect(3,78,154,41),[[-2.2,-1.2],[1.1,1.25],[3.7,-1.05]].forEach(([g,m],v)=>{const z=Ue({x:g,y:m},o);s.fillStyle=u.lightest,s.fillRect(z.x-1,z.y-11,2,12),s.fillStyle=v<r.kiteKitesPerched?u.gold:u.light,s.fillRect(z.x-3,z.y-15,6,5)});const p=Ue({x:-.25,y:-1.85},o);if(s.fillStyle=u.lightest,s.fillRect(p.x-2,p.y-9,5,7),s.fillStyle=u.gold,s.fillRect(p.x-3,p.y-11,7,3),this.drawReturnDoor(Ue({x:-6.2,y:0},o)),r.quietFerryUnlocked){const g=Ue({x:6.35,y:0},o);s.fillStyle=u.lightest,s.fillRect(g.x-6,g.y-4,13,5),s.fillStyle=u.gold,s.fillRect(g.x-1,g.y-12,3,8)}this.drawText("KITEGARDEN",49,22,1,u.lightest)}drawQuietFerry(r,o){const s=this.context,u=this.palette;this.drawMicroSky(53,u),s.fillStyle=u.light,s.fillRect(3,78,154,41),s.fillStyle=u.dark,s.fillRect(9,93,144,2),s.fillRect(9,106,144,2);const h=Ue({x:4.35,y:-1.75},o);s.fillStyle=u.darkest,s.fillRect(h.x-12,h.y-4,24,6),s.fillStyle=u.lightest,s.fillRect(h.x-4,h.y-12,9,8);const p=Ue({x:-.2,y:-1.3},o);if(s.fillStyle=u.lightest,s.fillRect(p.x-2,p.y-9,5,7),s.fillStyle=u.dark,s.fillRect(p.x-3,p.y-11,7,3),!r.quietFerryTicketReturned){const g=Ue({x:1.8,y:-.6},o);s.fillStyle=u.gold,s.fillRect(g.x-2,g.y-4,5,3)}this.drawReturnDoor(Ue({x:-6.3,y:0},o)),this.drawText("THE QUIET FERRY",35,22,1,u.lightest)}drawMicroSky(r,o){const s=this.context;s.fillStyle=o.darkest,s.fillRect(0,13,lt,Vt-13);for(let u=0;u<38;u+=1){const h=(u*29+r)%lt,p=17+(u*17+r)%50;s.fillStyle=u%4===0?o.lightest:o.light,s.fillRect(h,p,1,1)}}drawReturnDoor(r){const o=this.context,s=this.palette;o.fillStyle=s.red,o.fillRect(r.x-4,r.y-10,9,14),o.fillStyle=s.darkest,o.fillRect(r.x-2,r.y-8,5,10)}drawWorld(r,o,s){const u=Math.floor(o.x),h=Math.floor(o.y);for(let p=-1;p<=Ph;p+=1)for(let g=-1;g<=Ih;g+=1){const m=u+g,v=h+p,z=Math.floor((m-o.x)*Kt),x=Math.floor((v-o.y)*Kt);this.drawTile(r.getTile(m,v),z,x,m,v,s)}}drawTile(r,o,s,u,h,p){const g=this.context,m=this.palette;switch(g.fillStyle=m.tile[r.kind],g.fillRect(o,s,Kt,Kt),r.kind){case"grass":g.fillStyle=m.dark,(u+h+r.variant)%3===0&&g.fillRect(o+2,s+3,1,2),(u-h+r.variant)%4===0&&g.fillRect(o+6,s+6,1,1);break;case"road":g.fillStyle=m.light,(u+h)%4===0&&g.fillRect(o+3,s+3,2,1);break;case"pavement":g.strokeStyle=m.dark,g.lineWidth=1,g.strokeRect(o,s,Kt,Kt);break;case"water":{const v=Math.floor(p*3+u+h)%4;g.fillStyle=m.light,g.fillRect(o+v,s+2,4,1),g.fillRect(o+(v+4)%6,s+6,3,1);break}case"tree":g.fillStyle=m.darkest,g.fillRect(o+3,s+5,2,3),g.fillRect(o+1,s+1,6,5),g.fillStyle=m.dark,g.fillRect(o+2,s+1,2,2);break;case"wall":g.fillStyle=m.darkest,g.fillRect(o,s,Kt,Kt),g.fillStyle=m.dark,g.fillRect(o+1,s+1,6,2),g.fillRect(o+1,s+5,6,2);break;case"flowers":if(r.build?.kind==="garden"){g.fillStyle=r.build.color==="sun"?m.gold:r.build.color==="tide"?m.blue:r.build.color==="brick"?m.red:m.dark,g.fillRect(o+1,s+1,6,6),g.fillStyle=m.lightest,g.fillRect(o+3,s+3,2,2);break}g.fillStyle=m.dark,g.fillRect(o+1,s+2,2,2),g.fillRect(o+5,s+5,2,2);break;case"tallGrass":if(r.build?.kind==="lamp"){g.fillStyle=m.darkest,g.fillRect(o+3,s+2,2,6),g.fillStyle=r.build.color==="tide"?m.blue:r.build.color==="moss"?m.light:r.build.color==="brick"?m.red:m.gold,g.fillRect(o+2,s,4,3);break}g.fillStyle=m.darkest;for(let v=1;v<8;v+=3)g.fillRect(o+v,s+3,1,4),g.fillRect(o+v+1,s+4,1,3);break;case"sand":g.fillStyle=m.dark,g.fillRect(o+2,s+2,1,1),g.fillRect(o+6,s+5,1,1);break;case"snow":g.fillStyle=m.dark,g.fillRect(o+3,s+3,1,1);break;case"ruin":g.fillStyle=m.darkest,g.fillRect(o+1,s+4,6,3),g.fillRect(o+2,s+2,2,2);break;case"house":g.fillStyle=m.darkest,g.fillRect(o,s+3,8,5),g.fillStyle=r.build?.color==="sun"?m.gold:r.build?.color==="tide"?m.blue:r.build?.color==="moss"?m.dark:m.red,g.fillRect(o+1,s+1,6,3),g.fillStyle=m.lightest,g.fillRect(o+3,s+5,2,3);break}}drawTargets(r,o){const s=r.activeDelivery;if(!s)return;const u=Ue(s.target,o),h=Math.floor(r.now*4)%2,p=this.context;p.strokeStyle=this.palette.red,p.lineWidth=1,p.strokeRect(u.x-4-h,u.y-4-h,8+h*2,8+h
80*2),p.fillStyle=this.palette.red,p.fillRect(u.x-1,u.y-1,3,3)}drawDoors(r,o){const s=this.context;for(const u of r.doors){if(!u.visible||u.opened)continue;const h=Ue(u.position,o);s.fillStyle=this.palette.darkest,s.fillRect(h.x-4,h.y-9,9,13),s.fillStyle=this.palette.light,s.fillRect(h.x-2,h.y-7,5,9),s.fillStyle=this.palette.darkest,s.fillRect(h.x+1,h.y-3,1,1),Math.floor(r.now*3)%2===0&&(s.strokeStyle=this.palette.gold,s.strokeRect(h.x-5,h.y-10,11,15))}}drawObjectiveCompass(r){const o=r.currentWorld==="platform"?r.platformRouteChosen?{x:-7,y:0}:{x:7,y:0}:r.activeDelivery?.target??r.doors.find(L=>L.visible&&!L.opened)?.position;if(!o)return;const s=o.x-r.player.position.x,u=o.y-r.player.position.y;if(Math.hypot(s,u)<7)return;const p=Math.atan2(u,s),g=68,m=50,v=Math.round(80+Math.cos(p)*g),z=Math.round(73+Math.sin(p)*m),x=this.context;x.fillStyle=this.palette.red,x.save(),x.translate(v,z),x.rotate(p),x.beginPath(),x.moveTo(5,0),x.lineTo(-3,-3),x.lineTo(-3,3),x.closePath(),x.fill(),x.restore()}drawCreatures(r,o){for(const s of r.creatures){const u=Ue(s.position,o);u.x<-12||u.y<-12||u.x>172||u.y>156||(s.id.startsWith("verdant")?this.drawFox(u.x,u.y,s.bonded):this.drawCat(u.x,u.y,"east",!1,s.bonded))}}drawPlayer(r,o){const s=Ue(r.player.position,o),u=Math.floor(r.now*7)%2;if(this.drawPepeEchoes(r,o),this.drawCat(s.x,s.y,r.player.facing,u===1,!1,!0),r.player.balloonsCarried>0){const h=Math.round(Math.sin(r.now*3)*2),p=this.context;p.strokeStyle=this.palette.darkest,p.beginPath(),p.moveTo(s.x+4,s.y-7),p.lineTo(s.x+8+h,s.y-19),p.stroke(),p.fillStyle=this.palette.red,p.fillRect(s.x+5+h,s.y-26,7,7),p.fillRect(s.x+6+h,s.y-28,5,2),p.fillStyle=this.palette.darkest,p.fillRect(s.x+8+h,s.y-19,1,2)}}drawPepeEchoes(r,o){const s=X1(r,4).echoes;for(const u of s){const h=Ue(u.position,o);h.x<-10||h.y<-14||h.x>170||h.y>152||this.drawCat(h.x,h.y,"east",Math.floor(r.now*2+u.phase)%2===0,!1,!0)}}drawCat(r,o,s,u,h,p=!1){const g=this.context,m=this.palette,v=s==="west";g.fillStyle=p?m.light:h?m.gold:m.darkest,g.fillRect(r-5,o-6,10,8),g.fillRect(r-4,o-10,8,5),g.fillStyle=p?m.darkest:h?m.gold:m.darkest,g.fillRect(r-4,o-12,2,3),g.fillRect(r+2,o-12,2,3),g.fillRect(r-6,o,3,2),g.fillRect(r+3,o,3,2),p&&(g.fillRect(r-3,o-9,6,3),g.fillStyle=m.lightest,g.fillRect(r-5,o-7,1,2),g.fillRect(r+4,o-7,1,2)),u?(g.fillRect(r-4,o+2,2,2),g.fillRect(r+2,o+1,2,3)):(g.fillRect(r-4,o+1,2,3),g.fillRect(r+2,o+2,2,2)),g.fillStyle=p?m.gold:m.lightest;const z=v?r-2:r+1;g.fillRect(z,o-8,1,1)}drawFox(r,o,s){const u=this.context,h=this.palette;u.fillStyle=s?h.gold:h.dark,u.fillRect(r-5,o-5,9,6),u.fillRect(r-3,o-9,7,5),u.fillRect(r-3,o-11,2,3),u.fillRect(r+2,o-11,2,3),u.fillRect(r+4,o-3,4,2),u.fillStyle=h.lightest,u.fillRect(r+1,o-7,1,1)}drawHud(r){const o=this.context,s=this.palette;o.fillStyle=s.darkest,o.fillRect(0,0,lt,13),o.fillStyle=s.lightest,this.drawText(r.currentWorld==="platform"?"PLATFORM":`D ${r.player.deliveriesCompleted}/3`,3,3,1,s.lightest),this.drawText(r.currentWorld==="platform"?"NORTH":`DOOR ${r.player.doorsOpened}/3`,47,3,1,s.lightest),this.drawText(`B ${r.player.balloonsCarried}`,123,3,1,s.lightest),r.buildMode&&(o.fillStyle=s.gold,o.fillRect(0,13,lt,8),this.drawText("BUILD MODE",3,15,1,s.darkest));const u=r.message||(r.currentWorld==="platform"?r.platformRouteChosen?"ROUTE REMEMBERED. RED DOOR RETURNS.":"FOLLOW THE BALLOON TO NORTHBOUND.":r.activeDelivery?.instruction||"FIND THE NEXT DOOR"),h=W1(u,35).slice(0,2),p=h.length>1?18:11;o.fillStyle=s.darkest,o.fillRect(1,Vt-p-1,lt-2,p),o.strokeStyle=s.light,o.strokeRect(1,Vt-p-1,lt-2,p),h.forEach((g,m)=>{this.drawText(g,4,Vt-p+2+m*7,1,s.lightest)})}drawTrust(r){const o=r.trustSession,s=r.creatures.find(v=>v.id===o.creatureId),u=this.context,h=this.palette;u.fillStyle=h.darkest,u.fillRect(12,37,136,70),u.strokeStyle=h.lightest,u.strokeRect(14,39,132,66),this.drawText("EARN TRUST",51,45,1,h.lightest),this.drawText(`${s?.commonName??"CREATURE"} ${s?.trust??0}/100`,31,56,1,h.light);const p=25,g=72,m=110;u.fillStyle=h.dark,u.fillRect(p,g,m,8),u.fillStyle=h.gold,u.fillRect(p+Math.floor(o.targetStart*m),g,Math.max(2,Math.floor((o.targetEnd-o.targetStart)*m)),8),u.fillStyle=h.lightest,u.fillRect(p+Math.floor(o.pulse*m),g-2,2,12),this.drawText("PRESS A IN CALM BAND",25,89,1,h.lightest)}drawDoorVision(r){const o=this.context,s=this.palette;o.fillStyle=s.darkest,o.fillRect(0,0,lt,Vt);for(let h=0;h<34;h+=1){const p=(h*47+r*13)%lt,g=(h*29+r*31)%88;o.fillStyle=h%3===0?s.lightest:s.dark,o.fillRect(p,g,1,1)}o.strokeStyle=s.lightest,o.strokeRect(57,20,46,80),o.fillStyle=s.red,o.fillRect(62,25,36,70),o.fillStyle=s.darkest,o.fillRect(67,30,26,60),o.fillStyle=s.lightest,o.fillRect(89,59,2,2),this.drawText(`DOOR 0${r} OPEN`,43,108,1,s.lightest);const u=r===3?"THE MAP IS LARGER NOW":"SOMETHING LOOKED BACK";this.drawText(u,Math.max(3,80-u.length*2),121,1,s.light)}drawDoorCommit(r){const o=this.context,s=this.palette;o.fillStyle=s.darkest,o.fillRect(16,44,128,54),o.strokeStyle=s.lightest,o.strokeRect(16.5,44.5,127,53),o.fillStyle=s.gold,o.fillRect(75,53,10,25),this.drawText("THE CITY STOPPED TESTING YOU",28,83,1,s.lightest),this.drawText("A / START TO CROSS",47,91,1,s.light)}drawArrivalAfterglow(r){const o=this.context,s=this.palette,u=r.currentWorld==="platform"?"THE SKY IS NOT A CEILING":r.currentWorld==="northbound"?"THE RAIL REMEMBERS":"THE ROAD ARRIVED";o.fillStyle=s.darkest,o.fillRect(9,48,142,21),o.strokeStyle=s.lightest,o.strokeRect(9.5,48.5,141,20),this.drawText(u,Math.max(8,80-u.length*2),55,1,s.lightest),this.drawText("A / START WHEN READY",43,63,1,s.light)}drawVictory(){const r=this.context,o=this.palette;r.fillStyle=o.darkest,r.fillRect(18,33,124,78),r.strokeStyle=o.gold,r.strokeRect(20,35,120,74),this.drawText("WORLD 01 COMPLETE",34,46,1,o.lightest),this.drawText("YOU WERE NEVER",45,61,1,o.red),this.drawText("MEANT TO STAY",48,71,1,o.light),this.drawText("DOOR 02 AWAITS",45,87,1,o.lightest),this.drawText("IN THE NEXT WORLD",37,97,1,o.lightest)}drawText(r,o,s,u,h){const p=this.context;p.fillStyle=h;let g=o;for(const m of r.toUpperCase()){const z=em[m==="â"?"'":m]??em["?"];for(let x=0;x<z.length;x+=1)for(let L=0;L<z[x].length;L+=1)z[x][L]==="1"&&p.fillRect(g+L*u,s+x*u,u,u);g+=4*u}}}class $1{constructor(r,o,s=Number.POSITIVE_INFINITY){this.scene=r,this.chunks=o,this.renderRadius=s}visible=new Map;diagnostics={residentChunks:0,chunkUpserts:0,chunkRemovals:0,snapshotRenders:0};async prime(r,o=3,s=()=>new Promise(u=>requestAnimationFrame(()=>u()))){if(!Number.isInteger(o)||o<1)throw new Error("Tier adapter prime batch size must be a positive integer");if(r.currentWorld!=="library"){for(const p of this.visible.keys())this.scene.removeChunk(p),this.diagnostics.chunkRemovals+=1;this.visible.clear(),this.diagnostics.residentChunks=0,this.diagnostics.snapshotRenders+=1,this.scene.renderSnapshot(r);return}const u=new Map;let h=0;for(const p of this.getRenderableChunks(r)){const g=`${p.coordinate.x},${p.coordinate.y}`;u.set(g,p),this.visible.get(g)!==p&&(this.scene.upsertChunk(p),this.diagnostics.chunkUpserts+=1,h+=1,h%o===0&&await s())}for(const p of this.visible.keys())u.has(p)||(this.scene.removeChunk(p),this.diagnostics.chunkRemovals+=1);this.visible=u,this.diagnostics.residentChunks=u.size,this.diagnostics.snapshotRenders+=1,this.scene.renderSnapshot(r)}render(r){if(r.currentWorld!=="library"){for(const s of this.visible.keys())this.scene.removeChunk(s),this.diagnostics.chunkRemovals+=1;this.visible.clear(),this.diagnostics.residentChunks=0,this.diagnostics.snapshotRenders+=1,this.scene.renderSnapshot(r);return}const o=new Map;for(const s of this.getRenderableChunks(r)){const u=`${s.coordinate.x},${s.coordinate.y}`;o.set(u,s),this.visible.get(u)!==s&&(this.scene.upsertChunk(s),this.diagnostics.chunkUpserts+=1)}for(const s of this.visible.keys())o.has(s)||(this.scene.removeChunk(s),this.diagnostics.chunkRemovals+=1);this.visible=o,this.diagnostics.residentChunks=o.size,this.diagnostics.snapshotRenders+=1,this.scene.renderSnapshot(r)}getDiagnostics(){return{...this.diagnostics}}getRenderableChunks(r){if(!Number.isFinite(this.renderRadius))return this.chunks.getResidentChunks();const o={x:Math.floor(r.player.position.x/Xt),y:Math.floor(r.player.position.y/Xt)};return this.chunks.getResidentChunks().filter(s=>{const u=Math.max(Math.abs(s.coordinate.x-o.x),Math.abs(s.coordinate.y-o.y))<=this.renderRadius,h=r.doors.some(p=>p.visible&&Math.floor(p.position.x/Xt)===s.coordinate.x&&Math.floor(p.position.y/Xt)===s.coordinate.y);return u||h})}dispose(){this.visible.clear(),this.scene.dispose()}}function di({label:f,className:r="",onHeldChange:o}){const s=()=>o(!1);return T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:66",type:"button",className:`atlas-control-button ${r}`,"aria-label":f,onPointerDown:u=>{u.preventDefault(),u.currentTarget.setPointerCapture(u.pointerId),o(!0)},onPointerUp:s,onPointerCancel:s,onPointerLeave:s,children:f})}const Em={0:"A",1:"B",2:"X",3:"Y",4:"L1",5:"R1",6:"L2",7:"R2",8:"SELECT",9:"START",12:"DPAD UP",13:"DPAD DOWN",14:"DPAD LEFT",15:"DPAD RIGHT"},I1=["moveUp","moveDown","moveLeft","moveRight","interact","back","start","select","run","build"],P1=[{id:"standard",label:"STANDARD"},{id:"xbox",label:"XBOX"},{id:"playstation",label:"PLAYSTATION"}],eg=[{id:"nest",label:"NEST"},{id:"garden",label:"GARDEN"},{id:"lamp",label:"LAMP"}],tg=[{id:"brick",label:"BRICK"},{id:"sun",label:"SUN"},{id:"tide",label:"TIDE"},{id:"moss",label:"MOSS"}];function Tc(f){return f.map(r=>Em[r]??`BTN ${r}`).join(" / ")||"UNBOUND"}function tm(f){const r=Math.max(0,Math.floor(f));return`${String(Math.floor(r/60)).padStart(2,"0")}
80:${String(r%60).padStart(2,"0")}`}function cn({label:f,className:r="",onPress:o}){return T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:127",type:"button",className:`atlas-control-button ${r}`,"aria-label":f,onPointerDown:s=>{s.preventDefault(),o()},children:f})}function lg({sensitivity:f,onMove:r}){const o=F.useRef(null),[s,u]=F.useState({x:0,y:0}),h=f==="gentle"?.72:f==="quick"?1.14:.92,p=m=>{const v=m.currentTarget.getBoundingClientRect(),z=Math.max(1,Math.min(v.width,v.height)*.34),x=(m.clientX-(v.left+v.width/2))/z,L=(m.clientY-(v.top+v.height/2))/z,Q=Math.hypot(x,L),P=Q>1?{x:x/Q,y:L/Q}:{x,y:L},ee={x:Math.max(-1,Math.min(1,P.x*h)),y:Math.max(-1,Math.min(1,P.y*h))};u(ee),r(ee.x,ee.y)},g=()=>{o.current=null,u({x:0,y:0}),r(0,0)};return T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:170",className:"atlas-analog-pad",role:"application","aria-label":"Analog movement pad. Drag in any direction to move; diagonal movement is supported.",onPointerDown:m=>{m.preventDefault(),o.current=m.pointerId,m.currentTarget.setPointerCapture(m.pointerId),p(m)},onPointerMove:m=>{o.current===m.pointerId&&p(m)},onPointerUp:m=>{o.current===m.pointerId&&g()},onPointerCancel:g,onLostPointerCapture:g,children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:189",className:"atlas-analog-ring","aria-hidden":"true"}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:190",className:"atlas-analog-puck","aria-hidden":"true",style:{transform:`translate(${s.x*34}%, ${s.y*34}%)`}}),T.jsx("small",{"data-loc":"client/src/components/GameCanvas.tsx:191",children:"MOVE"})]})}function ag(f,r){const o=new H1,s=new $0,u=new H0,h=new F1(f,o.getGraphicsTier()),p=o.onEvent(me=>u.handleEvent(me));let g=!0,m=0,v=performance.now(),z=0,x=null,L=null,Q=null,P=null;const ee=()=>L?.renderFrame(),Oe=me=>{if(!g)return;const ye=Math.min((me-v)/1e3,.05);v=me,o.update(ye,s.nextFrame());const ve=o.getSnapshot();x&&ve.graphicsTier>=3?x.render(ve):h.render(ve,o.world),z+=ye,z>=.15&&(z=0,r(ve)),m=requestAnimationFrame(Oe)},Ne=()=>{Q&&Q.stopRenderLoop(ee),P&&window.removeEventListener("resize",P),P=null,x?.dispose(),Q?.dispose(),x=null,L=null,Q=null};return h.render(o.getSnapshot(),o.world),m=requestAnimationFrame(Oe),{kernel:o,input:s,audio:u,renderer:h,get tier3Adapter(){return x},get tier3Scene(){return L},attachTier3(me,ye,ve){Ne(),x=me,L=ye,Q=ve,P=()=>ve.resize(),window.addEventListener("resize",P),ve.runRenderLoop(ee)},activateTier3(){Q?.runRenderLoop(ee)},deactivateTier3(){Q?.stopRenderLoop(ee)},stop(){g=!1,cancelAnimationFrame(m),p(),Ne(),o.dispose(),s.dispose(),u.dispose()}}}function ng(){const f=F.useRef(null),r=F.useRef(null),o=F.useRef(null),[s,u]=F.useState(null),[h,p]=F.useState(!0),[g,m]=F.useState(!1),[v,z]=F.useState(!1),[x,L]=F.useState(null),[Q,P]=F.useState(null),[ee,Oe]=F.useState(null),[Ne,me]=F.useState(null),[ye,ve]=F.useState(null),[Te,De]=F.useState(null),[le,K]=F.useState(!1),[je,Et]=F.useState(!1),Pe=F.useRef(null),Be=F.useRef(null),Rt=F.useRef(!1),at=F.useRef(null),[Ge,O]=F.useState(!1),[B,U]=F.useState(null),[ge,pe]=F.useState(!0),b=F.useRef(null),[D,G]=F.useState(null),[H,$]=F.useState(null),[ae,Z]=F.useState(null);F.useEffect(()=>{const E=f.current;if(!E)return;const j=ag(E,u);return o.current=j,u(j.kernel.getSnapshot()),L(j.input.getProfile()),at.current={...j.kernel.getSnapshot().player.position},window.__ATLAS_TEST__={getSnapshot:()=>j.kernel.getSnapshot(),getTier3Diagnostics:()=>j.tier3Scene?.getDiagnostics()??null,getAdapterDiagnostics:()=>j.tier3Adapter?.getDiagnostics()??null,getControlProfile:()=>j.input.getProfile(),getGamepadTelemetry:()=>j.input.getGamepadTelemetry(),exportPortableSave:()=>j.kernel.exportPortableSave(),importPortableSave:J=>j.kernel.importPortableSave(J)},()=>{j.stop(),o.current=null,delete window.__ATLAS_TEST__}},[]),F.useEffect(()=>{if(!Q||ee!=="keyboard")return;const E=j=>{j.preventDefault(),j.stopPropagation();const J=o.current;if(!J)return;const oe=J.input.getProfile();oe.keyboard[Q]=[j.code];const Ve=Q0(oe).find(pt=>pt.code===j.code);if(Ve){me(`${j.code} already belongs to ${Ve.actions.filter(pt=>pt!==Q).join(" / ").toUpperCase()}. Choose another key.`),P(null),Oe(null);return}J.input.setProfile(oe),L(oe),me(`${Q.toUpperCase()} is now ${j.code}.`),P(null),Oe(null)};return window.addEventListener("keydown",E,!0),()=>window.removeEventListener("keydown",E,!0)},[Q,ee]),F.useEffect(()=>{if(!Q||ee!=="gamepad")return;const E=o.current;if(!E)return;E.input.beginGamepadCapture();const j=window.setInterval(()=>{const J=E.input.consumeCapturedGamepadButton();if(J===null)return;const oe=E.input.getProfile();oe.gamepad[Q]=[J];const Ve=Z0(oe).find(pt=>pt.button===J);Ve?me(`${Tc([J])} already belongs to ${Ve.actions.filter(pt=>pt!==Q).join(" / ").toUpperCase()}. Choose another button.`):(E.input.setProfile(oe),L(oe),me(`${Q.toUpperCase()} is now ${Tc([J])}.`)),P(null),Oe(null)},60);return()=>{window.clearInterval(j),E.input.cancelGamepadCapture()}},[Q,ee]),F.useEffect(()=>{const E=()=>
80navigator.getGamepads?.().find(Boolean)??null,j=()=>ve(E()?.id??null),J=Ve=>ve(Ve.gamepad.id||"CONTROLLER"),oe=()=>window.setTimeout(j,0);return j(),window.addEventListener("gamepadconnected",J),window.addEventListener("gamepaddisconnected",oe),()=>{window.removeEventListener("gamepadconnected",J),window.removeEventListener("gamepaddisconnected",oe)}},[]),F.useEffect(()=>{if(!v)return;const E=()=>{const J=o.current?.input.getGamepadTelemetry()??null;De(J),J?.connected&&ve(J.id)};E();const j=window.setInterval(E,100);return()=>window.clearInterval(j)},[v]);const Ye=s?`${s.currentWorld}:${s.mode}:${s.message}`:"";F.useEffect(()=>{if(!Ye)return;pe(!0);const E=window.setTimeout(()=>pe(!1),7e3);return()=>window.clearTimeout(E)},[Ye]),F.useEffect(()=>{!x||x.touch.onboardingComplete||Rt.current||window.matchMedia("(pointer: coarse)").matches&&(Rt.current=!0,K(!0))},[x]),F.useEffect(()=>{if(!s||!x||x.tutorial.dismissed||x.tutorial.stage==="complete"||s.currentWorld!=="library")return;const E=at.current??s.player.position;at.current??={...E};const j=Math.hypot(s.player.position.x-E.x,s.player.position.y-E.y),J=x.tutorial.stage==="move"&&j>=.35?"listen":x.tutorial.stage==="listen"&&s.compassFocusActive?"build":x.tutorial.stage==="build"&&s.buildMode?"complete":null;if(!J)return;const oe=o.current;if(!oe)return;const Ve=oe.input.getProfile();oe.input.setProfile({...Ve,tutorial:{...Ve.tutorial,stage:J}}),L(oe.input.getProfile())},[s,x]),F.useEffect(()=>{const E=J=>{J.preventDefault(),Pe.current=J,Et(!0)},j=()=>{Pe.current=null,Et(!1)};return window.addEventListener("beforeinstallprompt",E),window.addEventListener("appinstalled",j),()=>{window.removeEventListener("beforeinstallprompt",E),window.removeEventListener("appinstalled",j)}},[]),F.useEffect(()=>{s&&(s.mode==="doorCommit"&&Be.current!=="doorCommit"&&x?.haptics==="subtle"&&navigator.vibrate?.(14),Be.current=s.mode)},[s,x?.haptics]);const se=s?.graphicsTier??0,nt=F.useMemo(()=>Ac(se),[se]),Qt=F.useCallback(E=>{const j=o.current,J=j?.input.getProfile();if(!j||!J)return;const oe={...J,touch:{...J.touch,handedness:E,onboardingComplete:!0}};j.input.setProfile(oe),L(oe),K(!1),me(`${E.toUpperCase()}-HAND TOUCH LAYOUT READY. You can change it any time in Controls.`)},[]),$t=F.useCallback(()=>{const E=o.current,j=E?.input.getProfile();!E||!j||(E.input.setProfile({...j,tutorial:{...j.tutorial,dismissed:!0}}),L(E.input.getProfile()))},[]),hi=F.useCallback(()=>{const E=o.current;if(!E)return;const j=E.kernel.exportPortableSave(),J=new Blob([j],{type:"application/json"}),oe=URL.createObjectURL(J),Ve=document.createElement("a");Ve.href=oe,Ve.download=`atlas-route-${new Date().toISOString().slice(0,10)}.json`,Ve.click(),URL.revokeObjectURL(oe),u(E.kernel.getSnapshot()),Z("Route file exported locally. Keep it somewhere you trust.")},[]),al=F.useCallback(async E=>{const j=o.current;if(!(!j||!E))try{if(E.size>24e4)throw new Error("That route file is too large for this version of ATLAS.");const J=await E.text(),oe=j.kernel.previewPortableSave(J);G(oe),$(J),Z(null)}catch(J){G(null),$(null),Z(J instanceof Error?J.message:"That file is not readable ATLAS route data.")}finally{b.current&&(b.current.value="")}},[]),hn=F.useCallback(()=>{const E=o.current;if(!(!E||!H))try{const j=E.kernel.getGraphicsTier();E.kernel.importPortableSave(H),E.kernel.getGraphicsTier()!==j&&E.kernel.setGraphicsTier(j),u(E.kernel.getSnapshot()),G(null),$(null),Z("Local route replaced safely. The city remembers.")}
80catch(j){Z(j instanceof Error?j.message:"Route import could not be completed.")}},[H]),nl=F.useCallback(async E=>{const j=o.current;if(!j)return;if(U(null),E<3){j.deactivateTier3(),j.kernel.setGraphicsTier(E),j.renderer.setTier(E);const oe=j.kernel.getSnapshot();j.renderer.render(oe,j.kernel.world),u(oe);return}if(j.kernel.setGraphicsTier(E),u(j.kernel.getSnapshot()),j.tier3Scene){j.activateTier3();return}O(!0);let J=null;try{const oe=r.current;if(!oe)throw new Error("The T-03 canvas is unavailable.");const{Engine:Ve}=await Hh(async()=>{const{Engine:kt}=await import("./engine-CThjqeAu.js").then(st=>st.e);return{Engine:kt}},__vite__mapDeps([0,1,2,3,4])),pt=window.matchMedia("(max-width: 768px)").matches;J=new Ve(oe,!0,{preserveDrawingBuffer:!0,stencil:!0,adaptToDeviceRatio:!pt}),J.disableUniformBuffers=!0;const{createTier3Scene:Qs}=await Hh(async()=>{const{createTier3Scene:kt}=await import("./tier3-babylon-z6xMXPxH.js").then(st=>st.ak);return{createTier3Scene:kt}},__vite__mapDeps([5,1,6,7,8,9])),il=await Qs(J,oe),it=new $1(il,j.kernel.chunks,il.getDiagnostics().qualityProfile==="balanced"?0:1);await it.prime(j.kernel.getSnapshot(),2),j.attachTier3(it,il,J),it.render(j.kernel.getSnapshot()),J.resize()}catch(oe){J?.dispose();const Ve=oe instanceof Error?oe.message:"T-03 failed to initialize.";console.error("[ATLAS T-03] Initialization failed",oe),U(Ve),j.kernel.setGraphicsTier(1),j.renderer.setTier(1);const pt=j.kernel.getSnapshot();j.renderer.render(pt,j.kernel.world),u(pt)}finally{O(!1)}},[]),Ks=F.useCallback(async()=>{const E=Pe.current;E&&(await E.prompt(),await E.userChoice,Pe.current=null,Et(!1))},[]),mi=F.useCallback(async()=>{if(!x||!("Notification"in window))return;if(x.notifications==="route-reminders"){const J={...x,notifications:"off"};o.current?.input.setProfile(J),L(J);return}if(await Notification.requestPermission()!=="granted")return;const j={...x,notifications:"route-reminders"};o.current?.input.setProfile(j),L(j)},[x]);F.useEffect(()=>{(s?.graphicsTier??0)>=3&&!o.current?.tier3Scene&&!Ge&&nl(3)},[nl,s?.graphicsTier,Ge]);const va=()=>{o.current?.audio.unlock()},ba=s?.doors.find(E=>E.visible&&!E.opened),mn=s?s.mode==="railTransit"?"Northbound rail arriving. Interact to skip the threshold.":s.mode==="spanTransit"?"Lantern Span arriving. Interact to skip the threshold.":s.mode==="microTransit"?"A new small world is gathering itself around you. Interact to arrive.":s.currentWorld==="quietFerry"?s.quietFerryTicketReturned?"The Quiet Ferry remembers its passenger. The route map is awake.":"Nia is waiting by the ferry. A small Ticket Wren is holding the way forward.":s.currentWorld==="kitegarden"?s.quietFerryUnlocked?"The orchard bridge has folded into a ferry dock. Follow the warm lamp.":`Kitegarden. Settle the loose kites: ${s.kiteKitesPerched}/3.`:s.currentWorld==="glimmerVale"?s.kitegardenUnlocked?"The central lantern has become a wind gate. Kitegarden is waiting.":`Glimmer Vale. Listen for the lamps: ${s.glimmerLampsLit}/3 remembered.`:s.currentWorld==="lanternSpan"?"Lantern Span. The road has arrived. Follow the blue rail or return through the red door.":s.currentWorld==="northbound"?s.northboundKeeperMet?s.northboundRoutePowered?"The Lantern Span is live. Follow the balloon to the blue eastern gate.":"Rook is waiting. Pull the blue signal lever when the road is listening.":"Northbound Halt. Follow the balloon to Rook beside the warm cabin.":s.currentWorld==="platform"?s.platformRouteChosen?"Northbound route selected. The rail will remember.":"World Two: The Platform. Follow the balloon to the northbound sign.":s.mode==="worldComplete"?"World One complete. The next world is waiting beyond the red door.":ba?"The red door has manifested. Approach it and interact.":"Move anywhere. The red door will find you in ten seconds.":"Loading ATLAS Door One.",pn=s?s.mode==="railTransit"?{kicker:"NORTHBOUND RAIL",title:"THE TRACK HAS APPEARED",detail:s.message||`Arrival in ${s.railSecondsRemaining??0} seconds. Interact to skip.`}:s.mode==="spanTransit"?{kicker:"LANTERN SPAN",title:"THE ROAD IS ARRIVING",detail:s.message||`Arrival in ${s.spanSecondsRemaining??0} seconds. Interact to skip.`}:s.mode==="microTransit"?{kicker:"A SMALL WORLD REMEMBERS",title:"THE ROUTE IS OPENING",detail:s.message||"Interact when you are ready to arrive."}:s.currentWorld==="quietFerry"?s.quietFerryTicketReturned?{kicker:"THE QUIET FERRY",title:"THE PASSENGER IS REMEMBERED",detail
80:"The ferry is now a living route map. The red door returns you safely to Kitegarden."}:{kicker:"THE QUIET FERRY",title:"RETURN THE LOST TICKET",detail:"Nia waits by the dock. The Ticket Wren holds a small story in its beak."}:s.currentWorld==="kitegarden"?s.quietFerryUnlocked?{kicker:"KITEGARDEN",title:"THE FERRY DOCK IS HERE",detail:"The canopy opened a bridge. Follow the warm dock lamp east."}:{kicker:"KITEGARDEN",title:"SETTLE THE WIND",detail:`Guide the loose kites home: ${s.kiteKitesPerched}/3.`}:s.currentWorld==="glimmerVale"?s.kitegardenUnlocked?{kicker:"GLIMMER VALE",title:"THE WIND GATE IS OPEN",detail:"Morrowâs lamps now point toward Kitegarden. The red door returns you safely."}:{kicker:"GLIMMER VALE",title:"REMEMBER THE LAMPS",detail:`Wake the three memory lamps: ${s.glimmerLampsLit}/3. Morrow is near the violet path.`}:s.currentWorld==="lanternSpan"?{kicker:"WORLD TWO · LANTERN SPAN",title:"THE ROAD REMEMBERS",detail:"The first crossing holds. The red door returns you safely to Northbound Halt."}:s.currentWorld==="northbound"?s.northboundKeeperMet?s.northboundRoutePowered?{kicker:"ROUTE POWERED",title:"THE LANTERN SPAN IS LIVE",detail:"Follow the blue gate east of the lever. The red door still returns you safely."}:{kicker:"WORLD TWO · NORTHBOUND",title:"PULL THE BLUE SIGNAL",detail:"Rook says blue means the road is listening. Pull the lever slowly."}
80:{kicker:"NORTHBOUND HALT",title:"MEET THE SIGNALKEEPER",detail:"Rook is waiting beside the warm cabin. The balloon knows the way."}:s.mode==="doorVision"?{kicker:"THRESHOLD CROSSED",title:"THE LIBRARY DOOR IS OPEN",detail:"The district holds its breath. A new balloon is waiting."}:s.currentWorld==="platform"?s.platformRouteChosen?{kicker:"ROUTE REMEMBERED",title:"NORTHBOUND IS WAITING",detail:"A future door will open where the rail points."}:{kicker:"WORLD TWO · THE PLATFORM",title:"CHOOSE A DIRECTION",detail:"Follow the red balloon to the northbound sign."}:s.mode==="worldComplete"?{kicker:"WORLD ONE COMPLETE",title:"YOU WERE NEVER MEANT TO STAY",detail:"The city was a threshold. The story belongs to the worlds ahead."}:ba?{kicker:"IMPOSSIBLE EVENT DETECTED",title:"THE RED DOOR HAS MANIFESTED",detail:s.message||"Approach the threshold and interact."}:{kicker:"DEPARTURE WINDOW",title:"THE DOOR WILL FIND YOU",detail:s.message||`Move anywhere. Threshold in ${s.escapeSecondsRemaining??0} seconds.`}:null,Sa=!s||s.buildMode||!x||x.tutorial.dismissed||x.tutorial.stage==="complete"||s.currentWorld!=="library"||s.mode!=="explore"?null:x.tutorial.stage==="move"?{number:"01 / 03",title:"TAKE A FEW STEPS",detail:"Move with WASD, arrows, the D-pad, or your left stick."}:x.tutorial.stage==="listen"?{number:"02 / 03",title:"ASK THE BALLOON",detail:"Press SELECT, TAB, or C. It points toward what needs attention."}:{number:"03 / 03",title:"MAKE A MARK",detail:"Press BUILD, B, or Y. The world can change because you are here."},dt=(E,j)=>{const J=o.current;J&&(J.kernel.setBuildSelection(E,j),u(J.kernel.getSnapshot()))},Il=(()=>{switch(s?.currentWorld){case"quietFerry":return{top:"WORLD THREE · THE QUIET FERRY",name:"THE QUIET FERRY",sub:"BLUE WATER / MEMORY ROUTE"};case"kitegarden":return{top:"WORLD THREE · KITEGARDEN",name:"KITEGARDEN",sub:"WIND ORCHARD / ROUTE 03"};case"glimmerVale":return{top:"WORLD THREE · GLIMMER VALE",name:"GLIMMER VALE",sub:"MEMORY LAMPS / ROUTE 03"};case"lanternSpan":return{top:"WORLD TWO · LANTERN SPAN",name:"LANTERN SPAN",sub:"FIRST CROSSING / ROUTE 02"};case"northbound":return{top:"WORLD TWO · NORTHBOUND HALT",name:"NORTHBOUND HALT",sub:"ELEVATED RAIL / SIGNAL 01"};case"platform":return{top:"WORLD TWO · THE PLATFORM",name:"THE PLATFORM",sub:"ABOVE CLOUDLINE / NORTHBOUND"};default:return{top:"DOOR ONE · OPEN WORLD KERNEL v0.2.1",name:"LIBRARY DISTRICT",sub:"DUSK / COURIER ROUTE 01"}}})();return T.jsxs("main",{"data-loc":"client/src/components/GameCanvas.tsx:840",className:"atlas-shell",style:{"--atlas-screen":nt.screen,"--atlas-darkest":nt.darkest,"--atlas-dark":nt.dark,"--atlas-light":nt.light,"--atlas-lightest":nt.lightest,"--atlas-red":nt.red},onPointerDown:va,children:[T.jsxs("section",{"data-loc":"client/src/components/GameCanvas.tsx:852",className:"atlas-topbar","aria-label":"Game settings",children:[T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:853",children:[T.jsxs("strong",{"data-loc":"client/src/components/GameCanvas.tsx:854",className:"atlas-route-wordmark",children:[T.jsx("i",{"data-loc":"client/src/components/GameCanvas.tsx:854","aria-hidden":"true"}),"ATLAS"]}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:855",children:Il.top})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:857",className:"atlas-topbar-actions",children:[ye&&T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:858",className:"atlas-controller-chip",title:ye,"aria-label":`Controller connected: ${ye}`,children:[T.jsx("i",{"data-loc":"client/src/components/GameCanvas.tsx:858"})," PAD READY"]}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:859",type:"button",className:se===0?"active":"",onClick:()=>void nl(0),"aria-pressed":se===0,children:"T-00"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:862",type:"button",className:se===1?"active":"",onClick:()=>void nl(1),"aria-pressed":se===1,children:"T-01"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:865",type:"button",className:se>=3?"active":"",onClick:()=>void nl(3),"aria-pressed":se>=3,disabled:Ge,title:"Stylized low-poly 3D using Babylon.js",children:Ge?"T-03â¦":"T-03"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:875",type:"button",onClick:()=>{const E=!h;p(E),o.current?.audio.setEnabled(E),E&&va()},"aria-pressed":h,children:h?"AUDIO":"MUTED"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:887",type:"button",onClick:()=>m(E=>!E),"aria-expanded":g,children:"FIELD GUIDE"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:890",type:"button",onClick:()=>z(E=>!E),"aria-expanded":v,"aria-label":"CONTROLS",children:"RIG"})]})]}),T.jsxs("section",{"data-loc":"client/src/components/GameCanvas.tsx:896",className:"atlas-stage","aria-label":`ATLAS ${Il.name}`,children:[T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:897",className:`atlas-device-frame ${se>=3?"atlas-device-frame-3d":""}`,children:[T.jsx("canvas",{"data-loc":"client/src/components/GameCanvas.tsx:898",ref:f,width:lt,height:Vt,className:"atlas-canvas","aria-label":"A pixel-art ATLAS world with doors, routes, and safe return paths.",style:{display:se>=3?"none":void 0}}),T.jsx("canvas",{"data-loc":"client/src/components/GameCanvas.tsx:906",ref:r,width:720,height:405,className:"atlas-canvas atlas-canvas-3d",style:{display:se>=3?void 0:"none"},"aria-label":"A stylized 3D ATLAS world. Follow doors, powered routes, and return paths through each destination."}),se>=3&&s&&T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:915",className:`atlas-cinematic-hud atlas-cinematic-hud-${s.mode}`,"aria-label":"Route status",children:[T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:919",className:"atlas-cinematic-bars"}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:920",className:"atlas-location-card",children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:921",children:Il.top.replace("WORLD THREE","WORLD THREE · T-03").replace("WORLD TWO","WORLD TWO · T-03").replace("DOOR ONE","DOOR ONE · T-03")}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:922",children:Il.name}),T.jsx("small",{"data-loc":"client/src/components/GameCanvas.tsx:923",children:Il.sub})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:925",className:`atlas-objective-card ${ge?"":"atlas-objective-card-hidden"}`,children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:926",type:"button",className:"atlas-prompt-clear",onClick:()=>pe(!1),"aria-label":"Clear route prompt",children:"Ã"}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:927",className:"atlas-objective-kicker",children:pn?.kicker}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:930",children:pn?.title}),T.jsx("small",{"data-loc":"client/src/components/GameCanvas.tsx:931",children:pn?.detail})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:933",className:"atlas-progress-card",children:[T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:934",children:[T.jsx("i",{"data-loc":"client/src/components/GameCanvas.tsx:934"})," ESCAPE ROUTE"]}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:935",children:"WORLD 01"}),T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:936",children:[s.player.doorsOpened,"/99 DOORS"]}),T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:937",children:["SESSION ",tm(s.sessionSeconds)]}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:938",className:"atlas-save-chip",children:"LOCAL SAVED"}),T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:939",className:"atlas-quality-chip",children:"AUTO QUALITY"})]}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:941",className:"atlas-controls-hint",children:"WASD MO
80VE · SHIFT RUN · E INTERACT"})]}),Ge&&T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:944",className:"atlas-tier-loading",children:"BUILDING T-03â¦"}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:945",className:"atlas-device-mark",children:"UHC · ATLAS"})]}),B&&T.jsxs("p",{"data-loc":"client/src/components/GameCanvas.tsx:947",className:"atlas-tier-error",role:"alert",children:["T-03 unavailable: ",B]})]}),T.jsxs("section",{"data-loc":"client/src/components/GameCanvas.tsx:950",className:`atlas-controls atlas-controls-touch-${x?.touch.size??"large"} atlas-controls-opacity-${x?.touch.opacity??"soft"} ${x?.touch.handedness==="right"?"atlas-controls-right-handed":""}`,"aria-label":"Touch controls",children:[x?.touch.controlStyle==="dpad"?T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:952",className:"atlas-dpad","aria-label":"Movement pad",children:[T.jsx(di,{"data-loc":"client/src/components/GameCanvas.tsx:953",label:"UP",className:"up",onHeldChange:E=>o.current?.input.setVirtualDirection("up",E)}),T.jsx(di,{"data-loc":"client/src/components/GameCanvas.tsx:954",label:"LEFT",className:"left",onHeldChange:E=>o.current?.input.setVirtualDirection("left",E)}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:955",className:"dpad-center","aria-hidden":"true"}),T.jsx(di,{"data-loc":"client/src/components/GameCanvas.tsx:956",label:"RIGHT",className:"right",onHeldChange:E=>o.current?.input.setVirtualDirection("right",E)}),T.jsx(di,{"data-loc":"client/src/components/GameCanvas.tsx:957",label:"DOWN",className:"down",onHeldChange:E=>o.current?.input.setVirtualDirection("down",E)})]}):T.jsx(lg,{"data-loc":"client/src/components/GameCanvas.tsx:960",sensitivity:x?.touch.sensitivity??"standard",onMove:(E,j)=>o.current?.input.setVirtualStick(E,j)}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:963",className:"atlas-system-buttons",children:[T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:964",label:"PLACE",onPress:()=>o.current?.input.pressBuild()}),T.jsx(di,{"data-loc":"client/src/components/GameCanvas.tsx:965",label:"HURRY",onHeldChange:E=>o.current?.input.setVirtualRun(E)}),x?.touch.showCameraReset!==!1&&se>=3&&T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:966",label:"REORIENT",onPress:()=>o.current?.tier3Scene?.resetCamera()}),x?.touch.showStartSelect!==!1&&T.jsxs(T.Fragment,{children:[T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:968",label:"SIGNAL",onPress:()=>o.current?.input.pressSelect()}),T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:969",label:"PAUSE",onPress:()=>o.current?.input.pressStart()})]})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:973",className:"atlas-action-buttons",children:[T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:974",label:"STOW",className:"button-b",onPress:()=>o.current?.input.pressBack()}),T.jsx(cn,{"data-loc":"client/src/components/GameCanvas.tsx:975",label:"KNOCK",className:"button-a",onPress:()=>o.current?.input.pressInteract()})]})]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:979",className:"atlas-screen-reader-status","aria-live":"polite",children:mn}),s?.buildMode&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:982",className:"atlas-build-palette","aria-label":"Build Mode palette","aria-live":"polite",children:[T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:983",children:["BUILD MODE · ",s.buildMarkCount,"/64 MARKS"]}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:984",children:"LEAVE A SMALL GOOD THING"}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:985",className:"atlas-build-options","aria-label":"Build type",children:eg.map(E=>T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:987",type:"button",className:s.selectedBuildKind===E.id?"active":"","aria-pressed":s.selectedBuildKind===E.id,onClick:()=>dt(E.id,s.selectedBuildColor),children:E.label},E.id))}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:990",className:"atlas-build-options atlas-build-colors","aria-label":"Build color",children:tg.map(E=>
80T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:992",type:"button",className:`build-color-${E.id} ${s.selectedBuildColor===E.id?"active":""}`,"aria-pressed":s.selectedBuildColor===E.id,onClick:()=>dt(s.selectedBuildKind,E.id),children:E.label},E.id))}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:995",children:"A places it ahead of Pepe. SELECT cycles color. BUILD cycles type."})]}),Sa&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:1000",className:"atlas-first-steps","aria-label":"First steps tutorial","aria-live":"polite",children:[T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:1001",children:["FIRST STEPS · ",Sa.number]}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1002",children:Sa.title}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1003",children:Sa.detail}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1004",type:"button",onClick:$t,children:"TUTORIAL LATER"})]}),s?.paused&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:1009",className:"atlas-session-pause",role:"dialog","aria-modal":"false","aria-label":"Session paused",children:[T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:1010",children:["SESSION HOLD · ",tm(s.sessionSeconds)]}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1011",children:"THE ROUTE IS WAITING"}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1012",children:"Nothing moves while you are here. Your local progress is still holding."}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1013",className:"atlas-session-actions",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1014",type:"button",onClick:()=>o.current?.input.pressStart(),children:"RESUME ROUTE"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1015",type:"button",onClick:()=>{const E=o.current;E?.kernel.saveNow(),E&&u(E.kernel.getSnapshot())},children:"SAVE PROGRESS"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1016",type:"button",className:s.restartConfirmSeconds?"atlas-restart-confirm":"",onClick:()=>{const E=o.current;E&&(s.restartConfirmSeconds?E.kernel.confirmRestart():E.kernel.requestRestart(),u(E.kernel.getSnapshot()))},children:s.restartConfirmSeconds?`CONFIRM RESTART ${Math.ceil(s.restartConfirmSeconds)}`:"RESTART ROUTE"})]})]}),g&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:1024",className:"atlas-help",role:"dialog","aria-modal":"false","aria-label":"How to play",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1025",type:"button",className:"atlas-help-close",onClick:()=>m(!1),"aria-label":"Close help",children:"Ã"}),T.jsx("h1",{"data-loc":"client/src/components/GameCanvas.tsx:1026",children:"Door One"}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1027",children:"Move anywhere. After ten seconds, the red door appears near you. Open it to leave World One behind."}),T.jsxs("dl",{"data-loc":"client/src/components/GameCanvas.tsx:1028",children:[T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1029",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1029",children:"Move"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1029",children:"WASD, arrows, or D-pad"})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1030",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1030",children:"Interact"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1030",children:"E, Space, Enter, Z, or A"})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1031",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1031",children:"Start"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1031",children:"Enter, P, or START. Pause, resume, or continue a threshold."})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1032",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1032",children:"Select"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1032",children:"Tab, C, or SELECT. Ask the balloon what it is attending to."})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1033",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1033",children:"Leave"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1033",children:"Approach the red door, then press E, Space, Enter, Z, or A"})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1034",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1034",children:"Run"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1034",children:"Shift or hold RUN"})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1035",children:[T.jsx("dt",{"data-loc":"client/src/components/GameCanvas.tsx:1035",children:"Reset world"}),T.jsx("dd",{"data-loc":"client/src/components/GameCanvas.tsx:1035",children:"Shift + R"})]})]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1037",children:"T-00, T-01, and T-03 render the same live world and read the same save file."})]}),v&&x&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:1042",className:"atlas-help atlas-controls-panel",role:"dialog","aria-modal":"false","aria-label":"Control settings",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1043",type:"button",className:"atlas-help-close",onClick:()=>{o.current?.input.cancelGamepadCapture(),z(!1),P(null),Oe(null)},"aria-label":"Close controls",children:"Ã"}),T.jsx("h1",{"data-loc":"client/src/components/GameCanvas.tsx:1044",children:"Controls"}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1045",children:"Map the intention, not the hardware. Keyboard and gamepad bindings are stored separately."}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1046",className:"atlas-binding-heading",children:"KEYBOARD"}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:1047",className:"atlas-bindings",children:["interact","back","start","select","run","build"].map(E=>T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1049",className:"atlas-binding-row",children:[T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1050",type:"button",className:Q===E&&ee==="keyboard"?"atlas-binding-capturing":"",onClick:()=>{o.current?.input.cancelGamepadCapture(),me(`Press one key for ${E.toUpperCase()}. Existing confirm/cancel bindings stay distinct.`),P(E),Oe("keyboard")},children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:1051",children:E.toUpperCase()}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1051",children:Q===E&&ee==="keyboard"?"PRESS A KEYâ¦":x.keyboard[E].join(" / ")})]}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1053",type:"button",className:"atlas-binding-restore","aria-label":`Restore ${E} keyboard binding`,onClick:()=>{const j=X0(x,E);o.current?.input.setProfile(j),L(j),me(`${E.toUpperCase()} keyboard binding restored.`)},children:"âº"})]},E))}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1057",className:"atlas-binding-heading",children:"GAMEPAD"}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:1058",className:"atlas-gamepad-presets","aria-label":"Gamepad presets",children:P1.map(E=>T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1060",type:"button",className:x.gamepadPreset===E.id?"active":"","aria-pressed":x.gamepadPreset===E.id,onClick:()=>{const j=Y0(x,E.id);o.current?.input.setProfile(j),L(j),me(`${E.label} gamepad layout applied.`)},children:E.label},E.id))}),T.jsx("div",{"data-loc":"client/src/components/GameCanvas.tsx:1063",className:"atlas-bindings atlas-gamepad-bindings",children:I1.map(E=>T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1065",className:"atlas-binding-row",children:[T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1066",type:"button",className:Q===E&&ee==="gamepad"?"atlas-binding-capturing":"",onClick:()=>{me(`Press one gamepad button for ${E.toUpperCase()}. ATLAS will reject competing bindings.`),P(E),Oe("gamepad")},children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:1067",children:E.toUpperCase()}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1067",children:Q===E&&ee==="gamepad"?"PRESS A BUTTONâ¦":Tc(x.gamepad[E])})]}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1069",type:"button",className:"atlas-binding-restore","aria-label":`Restore ${E} gamepad binding`,onClick:()=>{const j=V0(x,E);o.current?.input.setProfile(j),L(j),me(`${E.toUpperCase()} gamepad binding restored from ${j.gamepadPreset.toUpperCase()}.`)},children:"âº"})]},E))}),T.jsxs("section",{"data-loc":"client/src/components/GameCanvas.tsx:1073",className:"atlas-controller-check","aria-label":"Controller test and calibration",children:[T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1074",className:"atlas-controller-check-head",children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:1075",children:"DEVICE QA · CONTROLLER CHECK"}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1076",children:Te?.connected?"PAD READY":"NO PAD"})]}),Te?.connected?T.jsxs(T.Fragment,{children:[T.jsxs("p",{"data-loc":"client/src/components/GameCanvas.tsx:1079",children:[Te.id,Te.mapping?` · ${Te.mapping.toUpperCase()}`:""]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1080",className:"atlas-stick-meter","aria-label":`Left stick X ${Te.x.toFixed(2)}, Y ${Te.y.toFixed(2)}`,children:[T.jsx("i",{"data-loc":"client/src/components/GameCanvas.tsx:1081",style:{left:`${50+Te.x*42}%`,top:`${50+Te.y*42}%`}}),T.jsxs("span",{"data-loc":"client/src/components/GameCanvas.tsx:1082",children:["X ",Te.x.toFixed(2)," · Y ",Te.y.toFixed(2)]})]}),T.jsxs("p",{"data-loc":"client/src/components/GameCanvas.tsx:1084",className:"atlas-controller-buttons",children:["BUTTONS: ",Te.pressedButtons.length?Te.pressedButtons.map(E=>Em[E]??`BTN ${E}`).join(" · "):"none"]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1085",className:"atlas-controller-check-actions",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1086",type:"button",onClick:()=>{const E=o.current?.input.calibrateGamepadCenter();De(E??null),L(o.current?.input.getProfile()??null),me("Stick center saved. Release the stick before calibration for the cleanest result.")},children:"CALIBRATE CENTER"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1087",type:"button",onClick:()=>{o.current?.input.resetGamepadCenter(),De(o.current?.input.getGamepadTelemetry()??null),L(o.current?.input.getProfile()??null),me("Stick center reset to browser default.")},children:"RESET CENTER"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1088",type:"button",onClick:async()=>{const E=await o.current?.input.testGamepadHaptics();me(E?"Short controller haptic pulse sent.":"This controller or browser does not expose a vibration test. Movement and buttons still work.")},children:"TEST RUMBLE"})]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1093",className:"atlas-controller-qa-note",children:"QA path: center the stick, move it through all directions, press each button, then test vibration if available."})]}):T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1094",children:"Connect a Bluetooth or USB controller, then reopen Controls. Keyboard and touch controls stay available."})]}),T.jsxs("section",{"data-loc":"client/src/components/GameCanvas.tsx:1096",className:"atlas-portable-recovery","aria-label":"Portable route recovery",children:[T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1097",className:"atlas-controller-check-head",children:[T.jsx("span",{"data-loc":"client/src/components/GameCanvas.tsx:1098",children:"PORTABLE ROUTE"}),T.jsx("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1099",children:"LOCAL ONLY"})]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1101",children:"Export a route file you control. Import never changes this browser until you confirm it."}),T.jsx("input",{"data-loc":"client/src/components/GameCanvas.tsx:1102",ref:b,className:"atlas-file-input",type:"file",accept:"application/json,.json",onChange:E=>{al(E.currentTarget.files?.[0])},"aria-label":"Choose an ATLAS route file"}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1103",className:"atlas-controller-check-actions",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1104",type:"button",onClick:hi,children:"EXPORT ROUTE"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1105",type:"button",onClick:()=>b.current?.click(),children:"CHOOSE ROUTE FILE"})]}),D&&T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1108",className:"atlas-portable-confirm",children:[T.jsxs("strong",{"data-loc":"client/src/components/GameCanvas.tsx:1109",children:["READY: ",D.currentWorld.toUpperCase()," · ",D.player.doorsOpened," DOORS"]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1110",children:"Replace only this browserâs current local route?"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1111",type:"button",onClick:hn,children:"REPLACE LOCAL ROUTE"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1112",type:"button",onClick:()=>
80{G(null),$(null),Z("Route import cancelled. Current local route remains untouched.")},children:"KEEP CURRENT ROUTE"})]}),ae&&T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1115",className:"atlas-recovery-note","aria-live":"polite",children:ae})]}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1117",className:"atlas-control-options",children:[T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1118",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,handedness:x.touch.handedness==="left"?"right":"left",onboardingComplete:!0}};o.current?.input.setProfile(E),L(E)},children:["TOUCH: ",x.touch.handedness.toUpperCase()]}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1122",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,size:x.touch.size==="large"?"normal":"large"}};o.current?.input.setProfile(E),L(E)},children:["TOUCH SIZE: ",x.touch.size.toUpperCase()]}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1126",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,controlStyle:x.touch.controlStyle==="analog"?"dpad":"analog"}};o.current?.input.setProfile(E),L(E)},children:["MOVE PAD: ",x.touch.controlStyle.toUpperCase()]}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1130",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,sensitivity:x.touch.sensitivity==="gentle"?"standard":x.touch.sensitivity==="standard"?"quick":"gentle"}};o.current?.input.setProfile(E),L(E)},children:["TOUCH SPEED: ",x.touch.sensitivity.toUpperCase()]}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1134",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,opacity:x.touch.opacity==="soft"?"solid":"soft"}};o.current?.input.setProfile(E),L(E)},children:["TOUCH FADE: ",x.touch.opacity.toUpperCase()]}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1138",type:"button",onClick:()=>{const E={...x,touch:{...x.touch,showStartSelect:!x.touch.showStartSelect}};o.current?.input.setProfile(E),L(E)},children:x.touch.showStartSelect?"HIDE START/SELECT":"SHOW START/SELECT"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1142",type:"button",onClick:()=>{o.current?.input.resetProfile(),L(o.current?.input.getProfile()??null)},children:"RESET DEFAULTS"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1143",type:"button",onClick:()=>{const E=o.current;E?.kernel.saveNow(),E&&u(E.kernel.getSnapshot())},children:"SAVE PROGRESS"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1144",type:"button",className:s?.restartConfirmSeconds?"atlas-restart-confirm":"",onClick:()=>{const E=o.current;E&&(s?.restartConfirmSeconds?E.kernel.confirmRestart():E.kernel.requestRestart(),u(E.kernel.getSnapshot()))},children:s?.restartConfirmSeconds?`CONFIRM RESTART ${Math.ceil(s.restartConfirmSeconds)}`:"RESTART ROUTE"}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1147",type:"button",onClick:()=>{const E={...x,haptics:x.haptics==="subtle"?"off":"subtle"};o.current?.input.setProfile(E),L(E)},children:["HAPTICS: ",x.haptics.toUpperCase()]}),T.jsxs("button",{"data-loc":"client/src/components/GameCanvas.tsx:1151",type:"button",onClick:()=>{const E={...x,gamepadDeadzone:x.gamepadDeadzone==="tight"?"standard":x.gamepadDeadzone==="standard"?"wide":"tight"};o.current?.input.setProfile(E),L(E)},children:["STICK: ",x.gamepadDeadzone.toUpperCase()]}),"Notification"in window&&T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1155",type:"button",onClick:mi,children:x.notifications==="route-reminders"?"ROUTE REMINDERS: ON":"ENABLE ROUTE REMINDERS"}),je&&T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1158",type:"button",onClick:Ks,children:"INSTALL ATLAS"})]}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1160",className:"atlas-settings-note",children:Ne??(ye?`CONTROLLER CONNECTED: ${ye}. A confirms, B backs out, Start pauses, Select focuses the balloon.`:"No controller detected. Gamepad defaults: A confirms, B backs out, Start pauses, Select focuses the balloon. The left stick has a radial deadzone; L1 or R2 runs.")})]}),le&&T.jsxs("aside",{"data-loc":"client/src/components/GameCanvas.tsx:1164",className:"atlas-help atlas-controller-onboarding",role:"dialog","aria-modal":"true","aria-label":"Choose touch layout",children:[T.jsx("h1",{"data-loc":"client/src/components/GameCanvas.tsx:1165",children:"Choose your touch hand"}),T.jsx("p",{"data-loc":"client/src/components/GameCanvas.tsx:1166",children:"The D-pad and A/B buttons will move together. You can change this later in Controls."}),T.jsxs("div",{"data-loc":"client/src/components/GameCanvas.tsx:1167",className:"atlas-onboarding-actions",children:[T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1168",type:"button",onClick:()=>Qt("left"),children:"LEFT-HAND LAYOUT"}),T.jsx("button",{"data-loc":"client/src/components/GameCanvas.tsx:1169",type:"button",onClick:()=>
80Qt("right"),children:"RIGHT-HAND LAYOUT"})]})]})]})}function ig(){return T.jsx(L0,{"data-loc":"client/src/App.tsx:6",children:T.jsx(ng,{"data-loc":"client/src/App.tsx:7"})})}"serviceWorker"in navigator&&window.location.protocol!=="file:"&&window.addEventListener("load",()=>{navigator.serviceWorker.register("/service-worker.js").catch(()=>{})});Wy.createRoot(document.getElementById("root")).render(T.jsx(ig,{"data-loc":"client/src/main.tsx:13"}));export{Hh as _,X1 as g};
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.